@sysvale/cuida 3.30.2 → 3.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@
18
18
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
19
19
 
20
20
  `,`1) content: element.innerHTML
21
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=s.reduce(function(d,h){var f=h&&P7(h,i);return f&&d.push(f),d},[]);return jo(t)?c[0]:c}qo.defaultProps=Jn,qo.setDefaultProps=A7,qo.currentInput=Xi,Object.assign({},up,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}}),qo.setDefaultProps({render:qp});const kle="",Cle="",Go=(t,e)=>{setTimeout(()=>{const n=()=>{const r=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${r()}-${r()}`};if(e.value===null||e.value===void 0)return;const i=n();t.setAttribute("data-tippy",i);const s=`${t.tagName.toLowerCase()}[data-tippy="${i}"]`;qo(s,{content:e.value,arrow:!1,animation:"shift-away-subtle",delay:100})},500)},xle="",b1={directives:{cdstip:Go},components:{CdsSpinner:ga},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},secondary:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],predefinedSizes:["sm","md","lg"]}},computed:{widthResolver(){return this.block?"100%":"max-content"},tooltipDisabled(){return this.disabled&&this.tooltipText!==""?this.tooltipText:null},predefinedColor(){return this.secondary?"button--secondary":this.predefinedColors.indexOf(this.variant)>-1?`button--${this.variant}`:"button--green"},predefinedSize(){return this.predefinedSizes.indexOf(this.size)>-1?`button-size--${this.size}`:"button-size--md"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t} ${this.predefinedSize}`}},methods:{clickHandler(){this.disabled||this.$emit("button-click",!0)}}},Gp=()=>{a.useCssVars(t=>({"3a67bade":t.widthResolver}))},Kp=b1.setup;b1.setup=Kp?(t,e)=>(Gp(),Kp(t,e)):Gp;const L7=b1;function F7(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner"),c=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("button",{class:a.normalizeClass(["button__container",r.computedStyle]),onClick:e[0]||(e[0]=a.withModifiers((...d)=>r.clickHandler&&r.clickHandler(...d),["stop"]))},[n.loading?(a.openBlock(),a.createBlock(o,{key:0,variant:"white",size:"sm",class:"button__loader"})):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)),[[c,r.tooltipDisabled]])}const Sr=re(L7,[["render",F7],["__scopeId","data-v-0555dba6"]]),Sle="",R7={components:{CdsIcon:Ze,CdsButton:Sr},props:{show:{type:Boolean,default:!1,required:!1},float:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},light:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},data(){return{internalShow:!1}},computed:{hasActionSlot(){return Object.keys(this.$slots).some(t=>t==="actions")}},watch:{show(t){this.internalShow=t}},mounted(){this.internalShow=this.show},methods:{handleClose(){this.internalShow=!1,this.$emit("close",!0)}}},H7={key:0,class:"toolbar__container"},W7={key:0,class:"toolbar__buttons-container"},Y7={key:1,class:"toolbar__buttons-container"};function j7(t,e,n,i,s,r){const o=a.resolveComponent("cds-button"),c=a.resolveComponent("cds-icon");return s.internalShow?(a.openBlock(),a.createElementBlock("div",H7,[a.createElementVNode("div",{class:a.normalizeClass({"toolbar--fixed":n.float,"toolbar--light":n.light,"toolbar--dark":!n.light})},[a.renderSlot(t.$slots,"description",{},void 0,!0),r.hasActionSlot?(a.openBlock(),a.createElementBlock("div",W7,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",Y7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.actions,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"toolbar__button"},[a.createVNode(o,{id:`btn-${h+1}`,secondary:n.light,variant:"dark",onClick:f=>t.$emit("click",d)},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(d),1)]),_:2},1032,["id","secondary","onClick"])]))),128))])),n.dismissible?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(n.light?"toolbar__icon--light":"toolbar__icon--dark"),onClick:e[0]||(e[0]=(...d)=>r.handleClose&&r.handleClose(...d))},[a.createVNode(c,{name:"x-outline",height:"20",width:"20"})],2)):a.createCommentVNode("",!0)],2)])):a.createCommentVNode("",!0)}const U7=re(R7,[["render",j7],["__scopeId","data-v-72b9ba8b"]]);var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},w1={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=9007199254740991,r="[object Arguments]",o="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",b="[object Object]",k="[object Promise]",C="[object RegExp]",S="[object Set]",E="[object String]",A="[object Symbol]",x="[object WeakMap]",V="[object ArrayBuffer]",N="[object DataView]",L="[object Float32Array]",F="[object Float64Array]",q="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",K="[object Uint8Array]",ie="[object Uint8ClampedArray]",me="[object Uint16Array]",J="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,fe=/\w*$/,ye=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,R={};R[r]=R[o]=R[V]=R[N]=R[c]=R[d]=R[L]=R[F]=R[q]=R[ee]=R[ne]=R[g]=R[y]=R[b]=R[C]=R[S]=R[E]=R[A]=R[K]=R[ie]=R[me]=R[J]=!0,R[h]=R[f]=R[x]=!1;var pe=typeof cn=="object"&&cn&&cn.Object===Object&&cn,oe=typeof self=="object"&&self&&self.Object===Object&&self,Ee=pe||oe||Function("return this")(),Me=e&&!e.nodeType&&e,ge=Me&&!0&&t&&!t.nodeType&&t,Ne=ge&&ge.exports===Me;function lt(v,O){return v.set(O[0],O[1]),v}function Le(v,O){return v.add(O),v}function ht(v,O){for(var I=-1,U=v?v.length:0;++I<U&&O(v[I],I,v)!==!1;);return v}function It(v,O){for(var I=-1,U=O.length,Be=v.length;++I<U;)v[Be+I]=O[I];return v}function kt(v,O,I,U){var Be=-1,ke=v?v.length:0;for(U&&ke&&(I=v[++Be]);++Be<ke;)I=O(I,v[Be],Be,v);return I}function tt(v,O){for(var I=-1,U=Array(v);++I<v;)U[I]=O(I);return U}function st(v,O){return v==null?void 0:v[O]}function rt(v){var O=!1;if(v!=null&&typeof v.toString!="function")try{O=!!(v+"")}catch{}return O}function Yt(v){var O=-1,I=Array(v.size);return v.forEach(function(U,Be){I[++O]=[Be,U]}),I}function ft(v,O){return function(I){return v(O(I))}}function Ct(v){var O=-1,I=Array(v.size);return v.forEach(function(U){I[++O]=U}),I}var tn=Array.prototype,nn=Function.prototype,bt=Object.prototype,nt=Ee["__core-js_shared__"],Nt=function(){var v=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Ot=nn.toString,At=bt.hasOwnProperty,Dt=bt.toString,un=RegExp("^"+Ot.call(At).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$t=Ne?Ee.Buffer:void 0,te=Ee.Symbol,Ie=Ee.Uint8Array,We=ft(Object.getPrototypeOf,Object),pn=Object.create,Vn=bt.propertyIsEnumerable,jn=tn.splice,j=Object.getOwnPropertySymbols,le=$t?$t.isBuffer:void 0,ve=ft(Object.keys,Object),W=An(Ee,"DataView"),B=An(Ee,"Map"),Y=An(Ee,"Promise"),se=An(Ee,"Set"),Ce=An(Ee,"WeakMap"),Ye=An(Object,"create"),at=mn(W),xt=mn(B),sn=mn(Y),Gt=mn(se),Un=mn(Ce),pt=te?te.prototype:void 0,In=pt?pt.valueOf:void 0;function xn(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function ni(){this.__data__=Ye?Ye(null):{}}function Hi(v){return this.has(v)&&delete this.__data__[v]}function Ms(v){var O=this.__data__;if(Ye){var I=O[v];return I===i?void 0:I}return At.call(O,v)?O[v]:void 0}function oo(v){var O=this.__data__;return Ye?O[v]!==void 0:At.call(O,v)}function Jr(v,O){var I=this.__data__;return I[v]=Ye&&O===void 0?i:O,this}xn.prototype.clear=ni,xn.prototype.delete=Hi,xn.prototype.get=Ms,xn.prototype.has=oo,xn.prototype.set=Jr;function rn(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Gl(){this.__data__=[]}function Kl(v){var O=this.__data__,I=Os(O,v);if(I<0)return!1;var U=O.length-1;return I==U?O.pop():jn.call(O,I,1),!0}function Zl(v){var O=this.__data__,I=Os(O,v);return I<0?void 0:O[I][1]}function Xl(v){return Os(this.__data__,v)>-1}function Jl(v,O){var I=this.__data__,U=Os(I,v);return U<0?I.push([v,O]):I[U][1]=O,this}rn.prototype.clear=Gl,rn.prototype.delete=Kl,rn.prototype.get=Zl,rn.prototype.has=Xl,rn.prototype.set=Jl;function an(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Ql(){this.__data__={hash:new xn,map:new(B||rn),string:new xn}}function ec(v){return Wi(this,v).delete(v)}function tc(v){return Wi(this,v).get(v)}function nc(v){return Wi(this,v).has(v)}function ic(v,O){return Wi(this,v).set(v,O),this}an.prototype.clear=Ql,an.prototype.delete=ec,an.prototype.get=tc,an.prototype.has=nc,an.prototype.set=ic;function Sn(v){this.__data__=new rn(v)}function or(){this.__data__=new rn}function sc(v){return this.__data__.delete(v)}function lr(v){return this.__data__.get(v)}function rc(v){return this.__data__.has(v)}function ac(v,O){var I=this.__data__;if(I instanceof rn){var U=I.__data__;if(!B||U.length<n-1)return U.push([v,O]),this;I=this.__data__=new an(U)}return I.set(v,O),this}Sn.prototype.clear=or,Sn.prototype.delete=sc,Sn.prototype.get=lr,Sn.prototype.has=rc,Sn.prototype.set=ac;function cr(v,O){var I=ia(v)||dr(v)?tt(v.length,String):[],U=I.length,Be=!!U;for(var ke in v)(O||At.call(v,ke))&&!(Be&&(ke=="length"||_o(ke,U)))&&I.push(ke);return I}function Qr(v,O,I){var U=v[O];(!(At.call(v,O)&&na(U,I))||I===void 0&&!(O in v))&&(v[O]=I)}function Os(v,O){for(var I=v.length;I--;)if(na(v[I][0],O))return I;return-1}function ii(v,O){return v&&Vs(O,ra(O),v)}function ea(v,O,I,U,Be,ke,Re){var Ge;if(U&&(Ge=ke?U(v,Be,ke,Re):U(v)),Ge!==void 0)return Ge;if(!ki(v))return v;var He=ia(v);if(He){if(Ge=mo(v),!O)return fo(v,Ge)}else{var Xe=bi(v),zt=Xe==f||Xe==m;if(hr(v))return Ds(v,O);if(Xe==b||Xe==r||zt&&!ke){if(rt(v))return ke?v:{};if(Ge=wi(zt?{}:v),!O)return uc(v,ii(Ge,v))}else{if(!R[Xe])return ke?v:{};Ge=go(v,Xe,ea,O)}}Re||(Re=new Sn);var gn=Re.get(v);if(gn)return gn;if(Re.set(v,Ge),!He)var Ft=I?po(v):ra(v);return ht(Ft||v,function(gt,Qt){Ft&&(Qt=gt,gt=v[Qt]),Qr(Ge,Qt,ea(gt,O,I,U,Qt,v,Re))}),Ge}function oc(v){return ki(v)?pn(v):{}}function lc(v,O,I){var U=O(v);return ia(v)?U:It(U,I(v))}function cc(v){return Dt.call(v)}function lo(v){if(!ki(v)||vo(v))return!1;var O=sa(v)||rt(v)?un:ye;return O.test(mn(v))}function co(v){if(!bo(v))return ve(v);var O=[];for(var I in Object(v))At.call(v,I)&&I!="constructor"&&O.push(I);return O}function Ds(v,O){if(O)return v.slice();var I=new v.constructor(v.length);return v.copy(I),I}function Es(v){var O=new v.constructor(v.byteLength);return new Ie(O).set(new Ie(v)),O}function Bs(v,O){var I=O?Es(v.buffer):v.buffer;return new v.constructor(I,v.byteOffset,v.byteLength)}function ta(v,O,I){var U=O?I(Yt(v),!0):Yt(v);return kt(U,lt,new v.constructor)}function Ts(v){var O=new v.constructor(v.source,fe.exec(v));return O.lastIndex=v.lastIndex,O}function uo(v,O,I){var U=O?I(Ct(v),!0):Ct(v);return kt(U,Le,new v.constructor)}function dc(v){return In?Object(In.call(v)):{}}function ho(v,O){var I=O?Es(v.buffer):v.buffer;return new v.constructor(I,v.byteOffset,v.length)}function fo(v,O){var I=-1,U=v.length;for(O||(O=Array(U));++I<U;)O[I]=v[I];return O}function Vs(v,O,I,U){I||(I={});for(var Be=-1,ke=O.length;++Be<ke;){var Re=O[Be],Ge=U?U(I[Re],v[Re],Re,I,v):void 0;Qr(I,Re,Ge===void 0?v[Re]:Ge)}return I}function uc(v,O){return Vs(v,Mn(v),O)}function po(v){return lc(v,ra,Mn)}function Wi(v,O){var I=v.__data__;return yo(O)?I[typeof O=="string"?"string":"hash"]:I.map}function An(v,O){var I=st(v,O);return lo(I)?I:void 0}var Mn=j?ft(j,Object):mt,bi=cc;(W&&bi(new W(new ArrayBuffer(1)))!=N||B&&bi(new B)!=g||Y&&bi(Y.resolve())!=k||se&&bi(new se)!=S||Ce&&bi(new Ce)!=x)&&(bi=function(v){var O=Dt.call(v),I=O==b?v.constructor:void 0,U=I?mn(I):void 0;if(U)switch(U){case at:return N;case xt:return g;case sn:return k;case Gt:return S;case Un:return x}return O});function mo(v){var O=v.length,I=v.constructor(O);return O&&typeof v[0]=="string"&&At.call(v,"index")&&(I.index=v.index,I.input=v.input),I}function wi(v){return typeof v.constructor=="function"&&!bo(v)?oc(We(v)):{}}function go(v,O,I,U){var Be=v.constructor;switch(O){case V:return Es(v);case c:case d:return new Be(+v);case N:return Bs(v,U);case L:case F:case q:case ee:case ne:case K:case ie:case me:case J:return ho(v,U);case g:return ta(v,U,I);case y:case E:return new Be(v);case C:return Ts(v);case S:return uo(v,U,I);case A:return dc(v)}}function _o(v,O){return O=O??s,!!O&&(typeof v=="number"||we.test(v))&&v>-1&&v%1==0&&v<O}function yo(v){var O=typeof v;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?v!=="__proto__":v===null}function vo(v){return!!Nt&&Nt in v}function bo(v){var O=v&&v.constructor,I=typeof O=="function"&&O.prototype||bt;return v===I}function mn(v){if(v!=null){try{return Ot.call(v)}catch{}try{return v+""}catch{}}return""}function wo(v){return ea(v,!0,!0)}function na(v,O){return v===O||v!==v&&O!==O}function dr(v){return hc(v)&&At.call(v,"callee")&&(!Vn.call(v,"callee")||Dt.call(v)==r)}var ia=Array.isArray;function ur(v){return v!=null&&ko(v.length)&&!sa(v)}function hc(v){return Co(v)&&ur(v)}var hr=le||ct;function sa(v){var O=ki(v)?Dt.call(v):"";return O==f||O==m}function ko(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=s}function ki(v){var O=typeof v;return!!v&&(O=="object"||O=="function")}function Co(v){return!!v&&typeof v=="object"}function ra(v){return ur(v)?cr(v):co(v)}function mt(){return[]}function ct(){return!1}t.exports=wo})(w1,w1.exports);const Ko=w1.exports,Mle="",q7={props:{actions:{type:Array,default:()=>[],required:!0},numberOfExpandedActions:{type:Number,default:2,required:!1}},data(){return{action:Ko(this.actions),internalNumberOfExpandedActions:this.numberOfExpandedActions,itsBeingShown:!1}},methods:{toggleCollapseState(){this.internalNumberOfExpandedActions=this.itsBeingShown?this.numberOfExpandedActions:this.action.length,this.itsBeingShown=!this.itsBeingShown,this.$emit("expanded",this.itsBeingShown)},handleClick(t){t.disabled||this.$emit("action-clicked",t)}}},G7={class:"action-list"},K7={class:"action-list--right"},Z7=["onClick"];function X7(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",G7,[a.createElementVNode("div",K7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.actions,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:o.title},[a.createVNode(a.Transition,{name:"action-list__slide-fade"},{default:a.withCtx(()=>[c<=s.internalNumberOfExpandedActions-1?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({"action-list__item":c===0,"action-list__item--left-bordered":c!==0,"action-list__item--disabled":o.disabled}),onClick:a.withModifiers(d=>r.handleClick(o),["stop"])},[a.renderSlot(t.$slots,"action",{list:o},void 0,!0)],10,Z7)):a.createCommentVNode("",!0)]),_:2},1024)]))),128)),n.actions.length>n.numberOfExpandedActions?(a.openBlock(),a.createElementBlock("div",{key:0,class:"action-list__item--left-bordered",onClick:e[0]||(e[0]=a.withModifiers((...o)=>r.toggleCollapseState&&r.toggleCollapseState(...o),["stop"]))},[a.renderSlot(t.$slots,"action-trigger",{},()=>[a.createTextVNode(a.toDisplayString(s.itsBeingShown?"Menos a\xE7\xF5es":"Mais a\xE7\xF5es"),1)],!0)])):a.createCommentVNode("",!0)])])}const J7=re(q7,[["render",X7],["__scopeId","data-v-8ad639ef"]]),Ole="",Q7={components:{CdsIcon:Ze},props:{variant:{type:String,default:"info",required:!1},text:{type:String,default:"T\xEDtulo do AlertCard",required:!1},dismissible:{type:Boolean,default:!1,required:!1}},data(){return{icon:"warning-outline"}},watch:{variant:{handler(t){switch(t){case"info":this.icon="info-outline";break;case"success":this.icon="check-circle-outline";break;case"warning":this.icon="warning-outline";break;case"danger":this.icon="alert-outline";break;default:this.icon="alert-outline";break}},immediate:!0}},methods:{close(){this.$emit("close")}}},e8={id:"alert"},t8={class:"alert__body"},n8={key:0,class:"alert__text"},i8={key:1,class:"alert__text"};function s8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("span",e8,[a.createElementVNode("div",{class:a.normalizeClass(["alert",{"alert__container--info":n.variant==="info","alert__container--success":n.variant==="success","alert__container--warning":n.variant==="warning","alert__container--danger":n.variant==="danger"}])},[a.createElementVNode("div",t8,[a.createElementVNode("div",null,[a.createVNode(o,{name:s.icon,class:a.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["name","class"])]),n.text.length>0?(a.openBlock(),a.createElementBlock("span",n8,a.toDisplayString(n.text),1)):(a.openBlock(),a.createElementBlock("span",i8,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.dismissible?(a.openBlock(),a.createElementBlock("div",{key:0,class:"alert__close-button",onClick:e[0]||(e[0]=(...c)=>r.close&&r.close(...c))},[a.createVNode(o,{name:"x-outline",class:a.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["class"])])):a.createCommentVNode("",!0)],2)])}const r8=re(Q7,[["render",s8],["__scopeId","data-v-f6827c7b"]]),Dle="",a8={components:{CdsIcon:Ze},props:{variant:{type:String,default:"info"},title:{type:String,default:"T\xEDtulo do AlertCard"},subTitle:{type:String,default:"Subt\xEDtulo do AlertCard"},withIcon:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},data(){return{isSelected:this.value}},computed:{dynamicIcon(){switch(this.variant){case"info":return"info-outline";case"warning":return"warning-outline";case"danger":return"alert-outline";default:return"info-outline"}},alertCardContainerSelected(){let t="";if(this.muted)t="alert-card__container--muted";else if(this.selectable&&(t="alert-card__container--selectable"),this.isSelected)return`${t} alert-card__container--selected-${this.variant}`;return t},iconClass(){return`icon__container--${this.variant} ${this.noTitle?"align-self-center":""}`}}},o8={id:"alert-card"},l8={class:"alert-card__content-container"};function c8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("span",o8,[a.createElementVNode("div",{class:a.normalizeClass(["alert-card__container",r.alertCardContainerSelected])},[n.withIcon?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(r.iconClass)},[a.createVNode(o,{height:"24",width:"24",name:r.dynamicIcon,class:a.normalizeClass(`icon--${n.variant}`)},null,8,["name","class"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",l8,[t.noTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`alert-card__title--${n.variant}`)},a.toDisplayString(n.title),3)),a.createElementVNode("span",{class:a.normalizeClass(["alert-card__subtitle",`${t.noTitle?"mt-0":"mt-2"}`])},[a.renderSlot(t.$slots,"subTitle-slot",{},()=>[a.createTextVNode(a.toDisplayString(n.subTitle),1)],!0)],2),a.renderSlot(t.$slots,"content-slot",{class:"alert-card__content"},void 0,!0)])],2)])}const d8=re(a8,[["render",c8],["__scopeId","data-v-c55918a6"]]),Ele="",k1={props:{text:{type:String,default:null},vertical:{type:Boolean,default:!1},width:{type:[String,Number],default:null},dimmed:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{sanitizedWidth(){return this.width?`${this.width}px`:"100%"}}},Zp=()=>{a.useCssVars(t=>({"6fdba684":t.sanitizedWidth}))},Xp=k1.setup;k1.setup=Xp?(t,e)=>(Zp(),Xp(t,e)):Zp;const u8=k1,h8={key:0};function f8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["divider__container",{"divider__container--inline":n.inline}])},[n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",h8,a.toDisplayString(n.text),1)),a.createElementVNode("hr",{class:a.normalizeClass(["divider",{"divider--vertical":n.vertical,"divider--light":n.light,"divider--dimmed":n.dimmed}])},null,2)],2)}const Nc=re(u8,[["render",f8]]),Ble="",p8={props:{direction:{type:String,default:"bottom"},light:{type:Boolean,default:!1},size:{type:String,default:"md"},animate:{type:Boolean,default:!1}},data(){return{innerDirection:this.direction}},methods:{animationResolver(){if(!!this.animate)switch(this.innerDirection){case"top":this.innerDirection="bottom";break;case"bottom":this.innerDirection="top";break;case"right":this.innerDirection="left";break;case"left":this.innerDirection="right";break;default:this.innerDirection="bottom"}}}};function m8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{ref:"chevron",class:a.normalizeClass({"chevron--top":s.innerDirection==="top","chevron--right":s.innerDirection==="right","chevron--bottom":s.innerDirection==="bottom","chevron--left":s.innerDirection==="left","chevron--sm":n.size==="sm","chevron--md":n.size==="md","chevron--lg":n.size==="lg","chevron--light":n.light===!0}),onClick:e[0]||(e[0]=(...o)=>r.animationResolver&&r.animationResolver(...o))},null,2)}const Ca=re(p8,[["render",m8]]),Tle="",g8={props:{clickable:{type:Boolean,default:!1}}};function _8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({"clickable__container--clickable":n.clickable,"clickable__container--not-clickable":!n.clickable}),onClick:e[0]||(e[0]=a.withModifiers(o=>t.$emit("cds-click",!0),["stop"]))},[a.renderSlot(t.$slots,"default")],2)}const hs=re(g8,[["render",_8]]),Vle="",y8={props:{maxHeight:{type:String,default:"300px",required:!0},autoHeight:{type:Boolean,default:!1},horizontalScroll:{type:Boolean,default:!1}}},v8={id:"scrollable"};function b8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",v8,[a.createElementVNode("div",{class:a.normalizeClass(["scrollable__container",{"scrollable__container--horizontal":n.horizontalScroll}]),style:a.normalizeStyle({"max-height":n.maxHeight,height:n.autoHeight?"auto":n.maxHeight})},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)])}const C1=re(y8,[["render",b8],["__scopeId","data-v-f7d133e3"]]);var Jp={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(cn,function(){var n="__v-click-outside",i=typeof window<"u",s=typeof navigator<"u",r=i&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(f){var m=f.event,g=f.handler;(0,f.middleware)(m)&&g(m)},c=function(f,m){var g=function(E){var A=typeof E=="function";if(!A&&typeof E!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:A?E:E.handler,middleware:E.middleware||function(x){return x},events:E.events||r,isActive:E.isActive!==!1,detectIframe:E.detectIframe!==!1,capture:Boolean(E.capture)}}(m.value),y=g.handler,b=g.middleware,k=g.detectIframe,C=g.capture;if(g.isActive){if(f[n]=g.events.map(function(E){return{event:E,srcTarget:document.documentElement,handler:function(A){return function(x){var V=x.el,N=x.event,L=x.handler,F=x.middleware,q=N.path||N.composedPath&&N.composedPath();(q?q.indexOf(V)<0:!V.contains(N.target))&&o({event:N,handler:L,middleware:F})}({el:f,event:A,handler:y,middleware:b})},capture:C}}),k){var S={event:"blur",srcTarget:window,handler:function(E){return function(A){var x=A.el,V=A.event,N=A.handler,L=A.middleware;setTimeout(function(){var F=document.activeElement;F&&F.tagName==="IFRAME"&&!x.contains(F)&&o({event:V,handler:N,middleware:L})},0)}({el:f,event:E,handler:y,middleware:b})},capture:C};f[n]=[].concat(f[n],[S])}f[n].forEach(function(E){var A=E.event,x=E.srcTarget,V=E.handler;return setTimeout(function(){f[n]&&x.addEventListener(A,V,C)},0)})}},d=function(f){(f[n]||[]).forEach(function(m){return m.srcTarget.removeEventListener(m.event,m.handler,m.capture)}),delete f[n]},h=i?{beforeMount:c,updated:function(f,m){var g=m.value,y=m.oldValue;JSON.stringify(g)!==JSON.stringify(y)&&(d(f),c(f,{value:g}))},unmounted:d}:{};return{install:function(f){f.directive("click-outside",h)},directive:h}})})(Jp);const Mr=Jp.exports,w8={ESC:27};function zc(t=8){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length;for(let s=0;s<t;s+=1)e+=n.charAt(Math.floor(Math.random()*i));return e}const Qp=["thin","default","wide"],Ile="",x1={components:{CdsScrollable:C1},directives:{"on-click-outside":Mr.directive},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},height:{type:[String,Number],default:200},targetId:{type:String,default:""},rightAligned:{type:Boolean,default:!1},verticalFluid:{type:Boolean,default:!1}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:zc()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`},popoverHeight(){return this.verticalFluid?"fit-content":`${this.height}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=Ic(this.target,this.popover,{placement:`bottom-${this.variationPlacement}`,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:[`top-${this.variationPlacement}`]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]})),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.$nextTick(()=>{this.popover.removeAttribute("data-show"),this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},em=()=>{a.useCssVars(t=>({"4ffaa6dc":t.popoverHeight,"49dd78fb":t.popoverWidth}))},tm=x1.setup;x1.setup=tm?(t,e)=>(em(),tm(t,e)):em;const k8=x1,C8=["id"];function x8(t,e,n,i,s,r){const o=a.resolveComponent("cds-scrollable"),c=a.resolveDirective("on-click-outside");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:t.$attrs.id||s.id,class:"popover"},[n.verticalFluid?a.renderSlot(t.$slots,"default",{key:1},void 0,!0):(a.openBlock(),a.createBlock(o,{key:0,"max-height":`${r.popoverHeight}`},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["max-height"]))],8,C8)),[[c,r.hide]])}const Pc=re(k8,[["render",x8],["__scopeId","data-v-156cb3df"]]),Ale="",S8={components:{CdsChevron:Ca,CdsClickable:hs,CdsPopover:Pc},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},src:{type:String,default:""},initials:{type:String,default:null},name:{type:String,default:null},clickable:{type:Boolean,default:!1}},data(){return{showPopover:!1}},computed:{computedInitials(){return this.initials?this.initials:this.name?this.name.replace(/(\S+)(\s*)/gi,t=>t[0].toUpperCase()).slice(0,2):"UND"}},methods:{toggleDropdown(){!this.clickable||(this.showPopover=!this.showPopover)}}},M8={class:"avatar__container"},O8=["src","alt"];function D8(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-popover"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createBlock(d,{id:"avatar-dropdown",clickable:n.clickable,onClick:r.toggleDropdown},{default:a.withCtx(()=>[a.createElementVNode("div",M8,[a.createElementVNode("div",{class:a.normalizeClass(`avatar__container--${n.variant} avatar__container--${n.size}`)},[n.src?(a.openBlock(),a.createElementBlock("img",{key:1,src:n.src,alt:n.name,class:a.normalizeClass(`avatar__image--${n.size}`)},null,10,O8)):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`avatar__initials--${n.size}`)},a.toDisplayString(r.computedInitials),3))],2),n.clickable?(a.openBlock(),a.createBlock(o,{key:0,size:"sm",class:"avatar__chevron",direction:"bottom"})):a.createCommentVNode("",!0)]),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[0]||(e[0]=h=>s.showPopover=h),"target-id":"avatar-dropdown",width:"180","right-aligned":"","vertical-fluid":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"dropdown-content")]),_:3},8,["modelValue"])]),_:3},8,["clickable","onClick"])}const Zo=re(S8,[["render",D8]]),$le="",S1={components:{CdsIcon:Ze,CdsAvatar:Zo,CdsDivider:Nc,CdsClickable:hs},props:{hideSettings:{type:Boolean,default:!1},hideHelp:{type:Boolean,default:!1},hideNotification:{type:Boolean,default:!1},hideAppSwitcher:{type:Boolean,default:!1},hideLogout:{type:Boolean,default:!1},sysvaleBrand:{type:Boolean,default:!1},csBrand:{type:Boolean,default:!1},userName:{type:String,default:null},userDescription:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{hasAppSlot(){return Object.keys(this.$slots).some(t=>t==="app-info")},hasUserInfoSlot(){return Object.keys(this.$slots).some(t=>t==="user-info")},gridTemplateColumnsResolver(){return this.hasAppSlot?"1fr 1fr 1fr":"1fr 1fr"},gridTemplateAreasResolver(){return this.hasAppSlot?"'app logo icons'":"'logo icons'"},logoAlignmentResolver(){return this.hasAppSlot?"center":"flex-start"}},methods:{handleClick(t){this.$emit(`${t}-click`,!0)}}},nm=()=>{a.useCssVars(t=>({"244900c8":t.gridTemplateAreasResolver,"5097391f":t.gridTemplateColumnsResolver,a82bbc8c:t.logoAlignmentResolver}))},im=S1.setup;S1.setup=im?(t,e)=>(nm(),im(t,e)):nm;const E8=S1,B8={class:"app-bar__container"},T8={key:0,class:"app-bar__logo--cs",src:"https://framerusercontent.com/images/LqVj4DBbWvH0zr04qwYMlSPvEBY.svg",alt:"logo do Cidade Saud\xE1vel"},V8={key:1,class:"app-bar__logo--sv",src:"https://framerusercontent.com/images/djNYjj5IdpsZL50hF8HEDt5Wbg.svg",alt:"logo da Sysvale"},I8={class:"app-bar__icons-grid"},A8={key:4,class:"user-info__avatar-container"},$8={class:"user-info__container"},N8={class:"user-info__name"},z8={class:"user-info__description"},P8={key:5,class:"app-switcher__container"},L8={key:2,class:"app-switcher"};function F8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveComponent("cds-avatar"),h=a.resolveComponent("cds-divider");return a.openBlock(),a.createElementBlock("div",B8,[n.csBrand?(a.openBlock(),a.createElementBlock("img",T8)):n.sysvaleBrand?(a.openBlock(),a.createElementBlock("img",V8)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"brand",{class:"app-bar__logo"}),a.createElementVNode("div",I8,[n.hideNotification?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,clickable:"",onClick:e[0]||(e[0]=f=>r.handleClick("notification"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"notification-bell-outline"})]),_:1})),n.hideHelp?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:1,clickable:"",onClick:e[1]||(e[1]=f=>r.handleClick("help"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"help-outline"})]),_:1})),n.hideSettings?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:2,clickable:"",onClick:e[2]||(e[2]=f=>r.handleClick("settings"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"settings-outline"})]),_:1})),r.hasUserInfoSlot?a.renderSlot(t.$slots,"user-info",{key:3,class:"user-info__container"}):(a.openBlock(),a.createElementBlock("div",A8,[a.createElementVNode("div",$8,[a.createElementVNode("span",N8,a.toDisplayString(n.userName),1),a.createElementVNode("span",z8,a.toDisplayString(n.userDescription),1)]),a.createVNode(d,{name:n.userName,variant:"white",size:"md",clickable:n.clickable,onClick:e[3]||(e[3]=f=>r.handleClick("avatar"))},a.createSlots({_:2},[n.clickable?{name:"dropdown-content",fn:a.withCtx(()=>[a.renderSlot(t.$slots,"dropdown-content")]),key:"0"}:void 0]),1032,["name","clickable"])])),n.hideAppSwitcher?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",P8,[a.createVNode(h,{vertical:"",width:"30"}),a.createVNode(c,{clickable:"",onClick:e[4]||(e[4]=f=>r.handleClick("app-switcher"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"grid-outline"})]),_:1})])),n.hideLogout?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:6,clickable:"",onClick:e[5]||(e[5]=f=>r.handleClick("logout"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"logout-outline"})]),_:1}))]),r.hasAppSlot?(a.openBlock(),a.createElementBlock("div",L8,[a.renderSlot(t.$slots,"app-info")])):a.createCommentVNode("",!0)])}const R8=re(E8,[["render",F8]]),Nle="",M1={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},sm=()=>{a.useCssVars(t=>({13528900:t.widthResolver}))},rm=M1.setup;M1.setup=rm?(t,e)=>(sm(),rm(t,e)):sm;const H8=M1,W8={class:"truncate__container"};function Y8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",W8,[a.renderSlot(t.$slots,"default")])}const am=re(H8,[["render",Y8]]),zle="",j8={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1}},computed:{content(){return this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`}}},U8=["data-tippy-placement","data-tippy-content"];function q8(t,e,n,i,s,r){const o=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":r.content,"data-tippy-allowHTML":!0},[a.renderSlot(t.$slots,"default")],8,U8)),[[o,n.text]])}const Lc=re(j8,[["render",q8]]),Ple="",G8={components:{CdsAvatar:Zo,CdsClickable:hs,CdsPopover:Pc,CdsTruncate:am,CdsTooltip:Lc},props:{size:{type:String,default:"md"},avatars:{type:Array,default:()=>[]},maxCount:{type:Number,default:4}},data(){return{listAvatars:this.avatars.slice(0,this.maxCount),popoverAvatars:this.avatars.slice(this.maxCount,this.avatars.length),showPopover:!1}},computed:{showAvatarCounter(){return this.maxCount<this.avatars.length},avatarCounterText(){return`+ ${this.avatars.length-this.maxCount}`}}},K8={class:"avatar-group__container"},Z8={class:"avatar__name"};function X8(t,e,n,i,s,r){const o=a.resolveComponent("cds-avatar"),c=a.resolveComponent("cds-tooltip"),d=a.resolveComponent("cds-clickable"),h=a.resolveComponent("cds-truncate"),f=a.resolveComponent("cds-popover");return a.openBlock(),a.createElementBlock("div",K8,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.listAvatars,(m,g)=>(a.openBlock(),a.createBlock(c,{key:g,position:"bottom",text:m.name,slim:""},{default:a.withCtx(()=>[a.createVNode(o,a.mergeProps({ref_for:!0},m,{size:n.size,clickable:!1}),null,16,["size"])]),_:2},1032,["text"]))),128)),r.showAvatarCounter?(a.openBlock(),a.createBlock(d,{key:0,id:"avatar-counter",clickable:"",onClick:e[0]||(e[0]=m=>s.showPopover=!0)},{default:a.withCtx(()=>[a.createVNode(o,{size:n.size,clickable:!1,name:r.avatarCounterText,variant:"gray",class:"avatar-group__counter"},null,8,["size","name"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(f,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=m=>s.showPopover=m),"target-id":"avatar-counter",width:"180","right-aligned":"","vertical-fluid":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.popoverAvatars,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"avatar__data"},[a.createVNode(o,a.mergeProps({ref_for:!0},m,{size:"sm",clickable:!1}),null,16),a.createVNode(h,{width:"180"},{default:a.withCtx(()=>[a.createElementVNode("span",Z8,a.toDisplayString(m.name),1)]),_:2},1024)]))),128))]),_:1},8,["modelValue"])])}const J8=re(G8,[["render",X8]]),Lle="",Q8={components:{CdsClickable:hs},props:{variant:{type:String,default:"gray"},size:{type:String,default:"md"},clickable:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","white"],predefinedSizes:["sm","md","lg"]}},computed:{predefinedStyle(){let t="";return this.predefinedColors.indexOf(this.variant)>-1&&(t+=`badge--${this.variant}`),this.predefinedSizes.indexOf(this.size)>-1&&(t+=` badge--${this.size}`),t}}};function ew(t,e,n,i,s,r){const o=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["badge__container",r.predefinedStyle])},[a.createElementVNode("div",{class:a.normalizeClass({"badge__content--sm":n.size==="sm","badge__content--md":n.size==="md","badge__content--lg":n.size==="lg"})},[n.clickable?(a.openBlock(),a.createBlock(o,{key:0,onClick:e[0]||(e[0]=c=>t.$emit("click",!0))},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)],2)],2)}const tw=re(Q8,[["render",ew],["__scopeId","data-v-a2c0fc86"]]);/*!
21
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=s.reduce(function(d,h){var f=h&&P7(h,i);return f&&d.push(f),d},[]);return jo(t)?c[0]:c}qo.defaultProps=Jn,qo.setDefaultProps=A7,qo.currentInput=Xi,Object.assign({},up,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}}),qo.setDefaultProps({render:qp});const kle="",Cle="",Go=(t,e)=>{setTimeout(()=>{const n=()=>{const r=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${r()}-${r()}`};if(e.value===null||e.value===void 0)return;const i=n();t.setAttribute("data-tippy",i);const s=`${t.tagName.toLowerCase()}[data-tippy="${i}"]`;qo(s,{content:e.value,arrow:!1,animation:"shift-away-subtle",delay:100})},500)},xle="",b1={directives:{cdstip:Go},components:{CdsSpinner:ga},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},secondary:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],predefinedSizes:["sm","md","lg"]}},computed:{widthResolver(){return this.block?"100%":"max-content"},tooltipDisabled(){return this.disabled&&this.tooltipText!==""?this.tooltipText:null},predefinedColor(){return this.secondary?"button--secondary":this.predefinedColors.indexOf(this.variant)>-1?`button--${this.variant}`:"button--green"},predefinedSize(){return this.predefinedSizes.indexOf(this.size)>-1?`button-size--${this.size}`:"button-size--md"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t} ${this.predefinedSize}`}},methods:{clickHandler(){this.disabled||this.$emit("button-click",!0)}}},Gp=()=>{a.useCssVars(t=>({"3a67bade":t.widthResolver}))},Kp=b1.setup;b1.setup=Kp?(t,e)=>(Gp(),Kp(t,e)):Gp;const L7=b1;function F7(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner"),c=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("button",{class:a.normalizeClass(["button__container",r.computedStyle]),onClick:e[0]||(e[0]=a.withModifiers((...d)=>r.clickHandler&&r.clickHandler(...d),["stop"]))},[n.loading?(a.openBlock(),a.createBlock(o,{key:0,variant:"white",size:"sm",class:"button__loader"})):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)),[[c,r.tooltipDisabled]])}const Sr=re(L7,[["render",F7],["__scopeId","data-v-0555dba6"]]),Sle="",R7={components:{CdsIcon:Ze,CdsButton:Sr},props:{show:{type:Boolean,default:!1,required:!1},float:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},light:{type:Boolean,default:!1},actions:{type:Array,default:()=>[]}},data(){return{internalShow:!1}},computed:{hasActionSlot(){return Object.keys(this.$slots).some(t=>t==="actions")}},watch:{show(t){this.internalShow=t}},mounted(){this.internalShow=this.show},methods:{handleClose(){this.internalShow=!1,this.$emit("close",!0)}}},H7={key:0,class:"toolbar__container"},W7={key:0,class:"toolbar__buttons-container"},Y7={key:1,class:"toolbar__buttons-container"};function j7(t,e,n,i,s,r){const o=a.resolveComponent("cds-button"),c=a.resolveComponent("cds-icon");return s.internalShow?(a.openBlock(),a.createElementBlock("div",H7,[a.createElementVNode("div",{class:a.normalizeClass({"toolbar--fixed":n.float,"toolbar--light":n.light,"toolbar--dark":!n.light})},[a.renderSlot(t.$slots,"description",{},void 0,!0),r.hasActionSlot?(a.openBlock(),a.createElementBlock("div",W7,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",Y7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.actions,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"toolbar__button"},[a.createVNode(o,{id:`btn-${h+1}`,secondary:n.light,variant:"dark",onClick:f=>t.$emit("click",d)},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(d),1)]),_:2},1032,["id","secondary","onClick"])]))),128))])),n.dismissible?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(n.light?"toolbar__icon--light":"toolbar__icon--dark"),onClick:e[0]||(e[0]=(...d)=>r.handleClose&&r.handleClose(...d))},[a.createVNode(c,{name:"x-outline",height:"20",width:"20"})],2)):a.createCommentVNode("",!0)],2)])):a.createCommentVNode("",!0)}const U7=re(R7,[["render",j7],["__scopeId","data-v-72b9ba8b"]]);var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},w1={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=9007199254740991,r="[object Arguments]",o="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",b="[object Object]",k="[object Promise]",C="[object RegExp]",S="[object Set]",E="[object String]",A="[object Symbol]",x="[object WeakMap]",V="[object ArrayBuffer]",N="[object DataView]",L="[object Float32Array]",F="[object Float64Array]",q="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",K="[object Uint8Array]",ie="[object Uint8ClampedArray]",me="[object Uint16Array]",J="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,fe=/\w*$/,ye=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,R={};R[r]=R[o]=R[V]=R[N]=R[c]=R[d]=R[L]=R[F]=R[q]=R[ee]=R[ne]=R[g]=R[y]=R[b]=R[C]=R[S]=R[E]=R[A]=R[K]=R[ie]=R[me]=R[J]=!0,R[h]=R[f]=R[x]=!1;var pe=typeof cn=="object"&&cn&&cn.Object===Object&&cn,oe=typeof self=="object"&&self&&self.Object===Object&&self,Ee=pe||oe||Function("return this")(),Me=e&&!e.nodeType&&e,ge=Me&&!0&&t&&!t.nodeType&&t,Ne=ge&&ge.exports===Me;function lt(v,O){return v.set(O[0],O[1]),v}function Le(v,O){return v.add(O),v}function ht(v,O){for(var I=-1,U=v?v.length:0;++I<U&&O(v[I],I,v)!==!1;);return v}function It(v,O){for(var I=-1,U=O.length,Be=v.length;++I<U;)v[Be+I]=O[I];return v}function kt(v,O,I,U){var Be=-1,ke=v?v.length:0;for(U&&ke&&(I=v[++Be]);++Be<ke;)I=O(I,v[Be],Be,v);return I}function tt(v,O){for(var I=-1,U=Array(v);++I<v;)U[I]=O(I);return U}function st(v,O){return v==null?void 0:v[O]}function rt(v){var O=!1;if(v!=null&&typeof v.toString!="function")try{O=!!(v+"")}catch{}return O}function Yt(v){var O=-1,I=Array(v.size);return v.forEach(function(U,Be){I[++O]=[Be,U]}),I}function ft(v,O){return function(I){return v(O(I))}}function Ct(v){var O=-1,I=Array(v.size);return v.forEach(function(U){I[++O]=U}),I}var tn=Array.prototype,nn=Function.prototype,bt=Object.prototype,nt=Ee["__core-js_shared__"],Nt=function(){var v=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Ot=nn.toString,At=bt.hasOwnProperty,Dt=bt.toString,un=RegExp("^"+Ot.call(At).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$t=Ne?Ee.Buffer:void 0,te=Ee.Symbol,Ie=Ee.Uint8Array,We=ft(Object.getPrototypeOf,Object),pn=Object.create,Vn=bt.propertyIsEnumerable,jn=tn.splice,j=Object.getOwnPropertySymbols,le=$t?$t.isBuffer:void 0,ve=ft(Object.keys,Object),W=An(Ee,"DataView"),B=An(Ee,"Map"),Y=An(Ee,"Promise"),se=An(Ee,"Set"),Ce=An(Ee,"WeakMap"),Ye=An(Object,"create"),at=mn(W),xt=mn(B),sn=mn(Y),Gt=mn(se),Un=mn(Ce),pt=te?te.prototype:void 0,In=pt?pt.valueOf:void 0;function xn(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function ni(){this.__data__=Ye?Ye(null):{}}function Hi(v){return this.has(v)&&delete this.__data__[v]}function Ms(v){var O=this.__data__;if(Ye){var I=O[v];return I===i?void 0:I}return At.call(O,v)?O[v]:void 0}function oo(v){var O=this.__data__;return Ye?O[v]!==void 0:At.call(O,v)}function Jr(v,O){var I=this.__data__;return I[v]=Ye&&O===void 0?i:O,this}xn.prototype.clear=ni,xn.prototype.delete=Hi,xn.prototype.get=Ms,xn.prototype.has=oo,xn.prototype.set=Jr;function rn(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Gl(){this.__data__=[]}function Kl(v){var O=this.__data__,I=Os(O,v);if(I<0)return!1;var U=O.length-1;return I==U?O.pop():jn.call(O,I,1),!0}function Zl(v){var O=this.__data__,I=Os(O,v);return I<0?void 0:O[I][1]}function Xl(v){return Os(this.__data__,v)>-1}function Jl(v,O){var I=this.__data__,U=Os(I,v);return U<0?I.push([v,O]):I[U][1]=O,this}rn.prototype.clear=Gl,rn.prototype.delete=Kl,rn.prototype.get=Zl,rn.prototype.has=Xl,rn.prototype.set=Jl;function an(v){var O=-1,I=v?v.length:0;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Ql(){this.__data__={hash:new xn,map:new(B||rn),string:new xn}}function ec(v){return Wi(this,v).delete(v)}function tc(v){return Wi(this,v).get(v)}function nc(v){return Wi(this,v).has(v)}function ic(v,O){return Wi(this,v).set(v,O),this}an.prototype.clear=Ql,an.prototype.delete=ec,an.prototype.get=tc,an.prototype.has=nc,an.prototype.set=ic;function Sn(v){this.__data__=new rn(v)}function or(){this.__data__=new rn}function sc(v){return this.__data__.delete(v)}function lr(v){return this.__data__.get(v)}function rc(v){return this.__data__.has(v)}function ac(v,O){var I=this.__data__;if(I instanceof rn){var U=I.__data__;if(!B||U.length<n-1)return U.push([v,O]),this;I=this.__data__=new an(U)}return I.set(v,O),this}Sn.prototype.clear=or,Sn.prototype.delete=sc,Sn.prototype.get=lr,Sn.prototype.has=rc,Sn.prototype.set=ac;function cr(v,O){var I=ia(v)||dr(v)?tt(v.length,String):[],U=I.length,Be=!!U;for(var ke in v)(O||At.call(v,ke))&&!(Be&&(ke=="length"||_o(ke,U)))&&I.push(ke);return I}function Qr(v,O,I){var U=v[O];(!(At.call(v,O)&&na(U,I))||I===void 0&&!(O in v))&&(v[O]=I)}function Os(v,O){for(var I=v.length;I--;)if(na(v[I][0],O))return I;return-1}function ii(v,O){return v&&Vs(O,ra(O),v)}function ea(v,O,I,U,Be,ke,Re){var Ge;if(U&&(Ge=ke?U(v,Be,ke,Re):U(v)),Ge!==void 0)return Ge;if(!Ci(v))return v;var He=ia(v);if(He){if(Ge=mo(v),!O)return fo(v,Ge)}else{var Xe=wi(v),zt=Xe==f||Xe==m;if(hr(v))return Ds(v,O);if(Xe==b||Xe==r||zt&&!ke){if(rt(v))return ke?v:{};if(Ge=ki(zt?{}:v),!O)return uc(v,ii(Ge,v))}else{if(!R[Xe])return ke?v:{};Ge=go(v,Xe,ea,O)}}Re||(Re=new Sn);var gn=Re.get(v);if(gn)return gn;if(Re.set(v,Ge),!He)var Ft=I?po(v):ra(v);return ht(Ft||v,function(gt,Qt){Ft&&(Qt=gt,gt=v[Qt]),Qr(Ge,Qt,ea(gt,O,I,U,Qt,v,Re))}),Ge}function oc(v){return Ci(v)?pn(v):{}}function lc(v,O,I){var U=O(v);return ia(v)?U:It(U,I(v))}function cc(v){return Dt.call(v)}function lo(v){if(!Ci(v)||vo(v))return!1;var O=sa(v)||rt(v)?un:ye;return O.test(mn(v))}function co(v){if(!bo(v))return ve(v);var O=[];for(var I in Object(v))At.call(v,I)&&I!="constructor"&&O.push(I);return O}function Ds(v,O){if(O)return v.slice();var I=new v.constructor(v.length);return v.copy(I),I}function Es(v){var O=new v.constructor(v.byteLength);return new Ie(O).set(new Ie(v)),O}function Bs(v,O){var I=O?Es(v.buffer):v.buffer;return new v.constructor(I,v.byteOffset,v.byteLength)}function ta(v,O,I){var U=O?I(Yt(v),!0):Yt(v);return kt(U,lt,new v.constructor)}function Ts(v){var O=new v.constructor(v.source,fe.exec(v));return O.lastIndex=v.lastIndex,O}function uo(v,O,I){var U=O?I(Ct(v),!0):Ct(v);return kt(U,Le,new v.constructor)}function dc(v){return In?Object(In.call(v)):{}}function ho(v,O){var I=O?Es(v.buffer):v.buffer;return new v.constructor(I,v.byteOffset,v.length)}function fo(v,O){var I=-1,U=v.length;for(O||(O=Array(U));++I<U;)O[I]=v[I];return O}function Vs(v,O,I,U){I||(I={});for(var Be=-1,ke=O.length;++Be<ke;){var Re=O[Be],Ge=U?U(I[Re],v[Re],Re,I,v):void 0;Qr(I,Re,Ge===void 0?v[Re]:Ge)}return I}function uc(v,O){return Vs(v,Mn(v),O)}function po(v){return lc(v,ra,Mn)}function Wi(v,O){var I=v.__data__;return yo(O)?I[typeof O=="string"?"string":"hash"]:I.map}function An(v,O){var I=st(v,O);return lo(I)?I:void 0}var Mn=j?ft(j,Object):mt,wi=cc;(W&&wi(new W(new ArrayBuffer(1)))!=N||B&&wi(new B)!=g||Y&&wi(Y.resolve())!=k||se&&wi(new se)!=S||Ce&&wi(new Ce)!=x)&&(wi=function(v){var O=Dt.call(v),I=O==b?v.constructor:void 0,U=I?mn(I):void 0;if(U)switch(U){case at:return N;case xt:return g;case sn:return k;case Gt:return S;case Un:return x}return O});function mo(v){var O=v.length,I=v.constructor(O);return O&&typeof v[0]=="string"&&At.call(v,"index")&&(I.index=v.index,I.input=v.input),I}function ki(v){return typeof v.constructor=="function"&&!bo(v)?oc(We(v)):{}}function go(v,O,I,U){var Be=v.constructor;switch(O){case V:return Es(v);case c:case d:return new Be(+v);case N:return Bs(v,U);case L:case F:case q:case ee:case ne:case K:case ie:case me:case J:return ho(v,U);case g:return ta(v,U,I);case y:case E:return new Be(v);case C:return Ts(v);case S:return uo(v,U,I);case A:return dc(v)}}function _o(v,O){return O=O??s,!!O&&(typeof v=="number"||we.test(v))&&v>-1&&v%1==0&&v<O}function yo(v){var O=typeof v;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?v!=="__proto__":v===null}function vo(v){return!!Nt&&Nt in v}function bo(v){var O=v&&v.constructor,I=typeof O=="function"&&O.prototype||bt;return v===I}function mn(v){if(v!=null){try{return Ot.call(v)}catch{}try{return v+""}catch{}}return""}function wo(v){return ea(v,!0,!0)}function na(v,O){return v===O||v!==v&&O!==O}function dr(v){return hc(v)&&At.call(v,"callee")&&(!Vn.call(v,"callee")||Dt.call(v)==r)}var ia=Array.isArray;function ur(v){return v!=null&&ko(v.length)&&!sa(v)}function hc(v){return Co(v)&&ur(v)}var hr=le||ct;function sa(v){var O=Ci(v)?Dt.call(v):"";return O==f||O==m}function ko(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=s}function Ci(v){var O=typeof v;return!!v&&(O=="object"||O=="function")}function Co(v){return!!v&&typeof v=="object"}function ra(v){return ur(v)?cr(v):co(v)}function mt(){return[]}function ct(){return!1}t.exports=wo})(w1,w1.exports);const Ko=w1.exports,Mle="",q7={props:{actions:{type:Array,default:()=>[],required:!0},numberOfExpandedActions:{type:Number,default:2,required:!1}},data(){return{action:Ko(this.actions),internalNumberOfExpandedActions:this.numberOfExpandedActions,itsBeingShown:!1}},methods:{toggleCollapseState(){this.internalNumberOfExpandedActions=this.itsBeingShown?this.numberOfExpandedActions:this.action.length,this.itsBeingShown=!this.itsBeingShown,this.$emit("expanded",this.itsBeingShown)},handleClick(t){t.disabled||this.$emit("action-clicked",t)}}},G7={class:"action-list"},K7={class:"action-list--right"},Z7=["onClick"];function X7(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",G7,[a.createElementVNode("div",K7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.actions,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:o.title},[a.createVNode(a.Transition,{name:"action-list__slide-fade"},{default:a.withCtx(()=>[c<=s.internalNumberOfExpandedActions-1?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({"action-list__item":c===0,"action-list__item--left-bordered":c!==0,"action-list__item--disabled":o.disabled}),onClick:a.withModifiers(d=>r.handleClick(o),["stop"])},[a.renderSlot(t.$slots,"action",{list:o},void 0,!0)],10,Z7)):a.createCommentVNode("",!0)]),_:2},1024)]))),128)),n.actions.length>n.numberOfExpandedActions?(a.openBlock(),a.createElementBlock("div",{key:0,class:"action-list__item--left-bordered",onClick:e[0]||(e[0]=a.withModifiers((...o)=>r.toggleCollapseState&&r.toggleCollapseState(...o),["stop"]))},[a.renderSlot(t.$slots,"action-trigger",{},()=>[a.createTextVNode(a.toDisplayString(s.itsBeingShown?"Menos a\xE7\xF5es":"Mais a\xE7\xF5es"),1)],!0)])):a.createCommentVNode("",!0)])])}const J7=re(q7,[["render",X7],["__scopeId","data-v-8ad639ef"]]),Ole="",Q7={components:{CdsIcon:Ze},props:{variant:{type:String,default:"info",required:!1},text:{type:String,default:"T\xEDtulo do AlertCard",required:!1},dismissible:{type:Boolean,default:!1,required:!1}},data(){return{icon:"warning-outline"}},watch:{variant:{handler(t){switch(t){case"info":this.icon="info-outline";break;case"success":this.icon="check-circle-outline";break;case"warning":this.icon="warning-outline";break;case"danger":this.icon="alert-outline";break;default:this.icon="alert-outline";break}},immediate:!0}},methods:{close(){this.$emit("close")}}},e8={id:"alert"},t8={class:"alert__body"},n8={key:0,class:"alert__text"},i8={key:1,class:"alert__text"};function s8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("span",e8,[a.createElementVNode("div",{class:a.normalizeClass(["alert",{"alert__container--info":n.variant==="info","alert__container--success":n.variant==="success","alert__container--warning":n.variant==="warning","alert__container--danger":n.variant==="danger"}])},[a.createElementVNode("div",t8,[a.createElementVNode("div",null,[a.createVNode(o,{name:s.icon,class:a.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["name","class"])]),n.text.length>0?(a.openBlock(),a.createElementBlock("span",n8,a.toDisplayString(n.text),1)):(a.openBlock(),a.createElementBlock("span",i8,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.dismissible?(a.openBlock(),a.createElementBlock("div",{key:0,class:"alert__close-button",onClick:e[0]||(e[0]=(...c)=>r.close&&r.close(...c))},[a.createVNode(o,{name:"x-outline",class:a.normalizeClass({"alert__icon--info":n.variant==="info","alert__icon--success":n.variant==="success","alert__icon--warning":n.variant==="warning","alert__icon--danger":n.variant==="danger"})},null,8,["class"])])):a.createCommentVNode("",!0)],2)])}const r8=re(Q7,[["render",s8],["__scopeId","data-v-f6827c7b"]]),Dle="",a8={components:{CdsIcon:Ze},props:{variant:{type:String,default:"info"},title:{type:String,default:"T\xEDtulo do AlertCard"},subTitle:{type:String,default:"Subt\xEDtulo do AlertCard"},withIcon:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},data(){return{isSelected:this.value}},computed:{dynamicIcon(){switch(this.variant){case"info":return"info-outline";case"warning":return"warning-outline";case"danger":return"alert-outline";default:return"info-outline"}},alertCardContainerSelected(){let t="";if(this.muted)t="alert-card__container--muted";else if(this.selectable&&(t="alert-card__container--selectable"),this.isSelected)return`${t} alert-card__container--selected-${this.variant}`;return t},iconClass(){return`icon__container--${this.variant} ${this.noTitle?"align-self-center":""}`}}},o8={id:"alert-card"},l8={class:"alert-card__content-container"};function c8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("span",o8,[a.createElementVNode("div",{class:a.normalizeClass(["alert-card__container",r.alertCardContainerSelected])},[n.withIcon?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(r.iconClass)},[a.createVNode(o,{height:"24",width:"24",name:r.dynamicIcon,class:a.normalizeClass(`icon--${n.variant}`)},null,8,["name","class"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",l8,[t.noTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`alert-card__title--${n.variant}`)},a.toDisplayString(n.title),3)),a.createElementVNode("span",{class:a.normalizeClass(["alert-card__subtitle",`${t.noTitle?"mt-0":"mt-2"}`])},[a.renderSlot(t.$slots,"subTitle-slot",{},()=>[a.createTextVNode(a.toDisplayString(n.subTitle),1)],!0)],2),a.renderSlot(t.$slots,"content-slot",{class:"alert-card__content"},void 0,!0)])],2)])}const d8=re(a8,[["render",c8],["__scopeId","data-v-c55918a6"]]),Ele="",k1={props:{text:{type:String,default:null},vertical:{type:Boolean,default:!1},width:{type:[String,Number],default:null},dimmed:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:{sanitizedWidth(){return this.width?`${this.width}px`:"100%"}}},Zp=()=>{a.useCssVars(t=>({"6fdba684":t.sanitizedWidth}))},Xp=k1.setup;k1.setup=Xp?(t,e)=>(Zp(),Xp(t,e)):Zp;const u8=k1,h8={key:0};function f8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["divider__container",{"divider__container--inline":n.inline}])},[n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",h8,a.toDisplayString(n.text),1)),a.createElementVNode("hr",{class:a.normalizeClass(["divider",{"divider--vertical":n.vertical,"divider--light":n.light,"divider--dimmed":n.dimmed}])},null,2)],2)}const Nc=re(u8,[["render",f8]]),Ble="",p8={props:{direction:{type:String,default:"bottom"},light:{type:Boolean,default:!1},size:{type:String,default:"md"},animate:{type:Boolean,default:!1}},data(){return{innerDirection:this.direction}},methods:{animationResolver(){if(!!this.animate)switch(this.innerDirection){case"top":this.innerDirection="bottom";break;case"bottom":this.innerDirection="top";break;case"right":this.innerDirection="left";break;case"left":this.innerDirection="right";break;default:this.innerDirection="bottom"}}}};function m8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{ref:"chevron",class:a.normalizeClass({"chevron--top":s.innerDirection==="top","chevron--right":s.innerDirection==="right","chevron--bottom":s.innerDirection==="bottom","chevron--left":s.innerDirection==="left","chevron--sm":n.size==="sm","chevron--md":n.size==="md","chevron--lg":n.size==="lg","chevron--light":n.light===!0}),onClick:e[0]||(e[0]=(...o)=>r.animationResolver&&r.animationResolver(...o))},null,2)}const Ca=re(p8,[["render",m8]]),Tle="",g8={props:{clickable:{type:Boolean,default:!1}}};function _8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({"clickable__container--clickable":n.clickable,"clickable__container--not-clickable":!n.clickable}),onClick:e[0]||(e[0]=a.withModifiers(o=>t.$emit("cds-click",!0),["stop"]))},[a.renderSlot(t.$slots,"default")],2)}const hs=re(g8,[["render",_8]]),Vle="",y8={props:{maxHeight:{type:String,default:"300px",required:!0},autoHeight:{type:Boolean,default:!1},horizontalScroll:{type:Boolean,default:!1}}},v8={id:"scrollable"};function b8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",v8,[a.createElementVNode("div",{class:a.normalizeClass(["scrollable__container",{"scrollable__container--horizontal":n.horizontalScroll}]),style:a.normalizeStyle({"max-height":n.maxHeight,height:n.autoHeight?"auto":n.maxHeight})},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)])}const C1=re(y8,[["render",b8],["__scopeId","data-v-f7d133e3"]]);var Jp={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(cn,function(){var n="__v-click-outside",i=typeof window<"u",s=typeof navigator<"u",r=i&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(f){var m=f.event,g=f.handler;(0,f.middleware)(m)&&g(m)},c=function(f,m){var g=function(E){var A=typeof E=="function";if(!A&&typeof E!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:A?E:E.handler,middleware:E.middleware||function(x){return x},events:E.events||r,isActive:E.isActive!==!1,detectIframe:E.detectIframe!==!1,capture:Boolean(E.capture)}}(m.value),y=g.handler,b=g.middleware,k=g.detectIframe,C=g.capture;if(g.isActive){if(f[n]=g.events.map(function(E){return{event:E,srcTarget:document.documentElement,handler:function(A){return function(x){var V=x.el,N=x.event,L=x.handler,F=x.middleware,q=N.path||N.composedPath&&N.composedPath();(q?q.indexOf(V)<0:!V.contains(N.target))&&o({event:N,handler:L,middleware:F})}({el:f,event:A,handler:y,middleware:b})},capture:C}}),k){var S={event:"blur",srcTarget:window,handler:function(E){return function(A){var x=A.el,V=A.event,N=A.handler,L=A.middleware;setTimeout(function(){var F=document.activeElement;F&&F.tagName==="IFRAME"&&!x.contains(F)&&o({event:V,handler:N,middleware:L})},0)}({el:f,event:E,handler:y,middleware:b})},capture:C};f[n]=[].concat(f[n],[S])}f[n].forEach(function(E){var A=E.event,x=E.srcTarget,V=E.handler;return setTimeout(function(){f[n]&&x.addEventListener(A,V,C)},0)})}},d=function(f){(f[n]||[]).forEach(function(m){return m.srcTarget.removeEventListener(m.event,m.handler,m.capture)}),delete f[n]},h=i?{beforeMount:c,updated:function(f,m){var g=m.value,y=m.oldValue;JSON.stringify(g)!==JSON.stringify(y)&&(d(f),c(f,{value:g}))},unmounted:d}:{};return{install:function(f){f.directive("click-outside",h)},directive:h}})})(Jp);const Mr=Jp.exports,w8={ESC:27};function zc(t=8){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length;for(let s=0;s<t;s+=1)e+=n.charAt(Math.floor(Math.random()*i));return e}const Qp=["thin","default","wide"],Ile="",x1={components:{CdsScrollable:C1},directives:{"on-click-outside":Mr.directive},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},height:{type:[String,Number],default:200},targetId:{type:String,default:""},rightAligned:{type:Boolean,default:!1},verticalFluid:{type:Boolean,default:!1}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:zc()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`},popoverHeight(){return this.verticalFluid?"fit-content":`${this.height}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=Ic(this.target,this.popover,{placement:`bottom-${this.variationPlacement}`,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:[`top-${this.variationPlacement}`]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]})),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.$nextTick(()=>{this.popover.removeAttribute("data-show"),this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},em=()=>{a.useCssVars(t=>({"4ffaa6dc":t.popoverHeight,"49dd78fb":t.popoverWidth}))},tm=x1.setup;x1.setup=tm?(t,e)=>(em(),tm(t,e)):em;const k8=x1,C8=["id"];function x8(t,e,n,i,s,r){const o=a.resolveComponent("cds-scrollable"),c=a.resolveDirective("on-click-outside");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:t.$attrs.id||s.id,class:"popover"},[n.verticalFluid?a.renderSlot(t.$slots,"default",{key:1},void 0,!0):(a.openBlock(),a.createBlock(o,{key:0,"max-height":`${r.popoverHeight}`},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["max-height"]))],8,C8)),[[c,r.hide]])}const Pc=re(k8,[["render",x8],["__scopeId","data-v-156cb3df"]]),Ale="",S8={components:{CdsChevron:Ca,CdsClickable:hs,CdsPopover:Pc},props:{variant:{type:String,default:"green"},size:{type:String,default:"md"},src:{type:String,default:""},initials:{type:String,default:null},name:{type:String,default:null},clickable:{type:Boolean,default:!1}},data(){return{showPopover:!1}},computed:{computedInitials(){return this.initials?this.initials:this.name?this.name.replace(/(\S+)(\s*)/gi,t=>t[0].toUpperCase()).slice(0,2):"UND"}},methods:{toggleDropdown(){!this.clickable||(this.showPopover=!this.showPopover)}}},M8={class:"avatar__container"},O8=["src","alt"];function D8(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-popover"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createBlock(d,{id:"avatar-dropdown",clickable:n.clickable,onClick:r.toggleDropdown},{default:a.withCtx(()=>[a.createElementVNode("div",M8,[a.createElementVNode("div",{class:a.normalizeClass(`avatar__container--${n.variant} avatar__container--${n.size}`)},[n.src?(a.openBlock(),a.createElementBlock("img",{key:1,src:n.src,alt:n.name,class:a.normalizeClass(`avatar__image--${n.size}`)},null,10,O8)):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`avatar__initials--${n.size}`)},a.toDisplayString(r.computedInitials),3))],2),n.clickable?(a.openBlock(),a.createBlock(o,{key:0,size:"sm",class:"avatar__chevron",direction:"bottom"})):a.createCommentVNode("",!0)]),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[0]||(e[0]=h=>s.showPopover=h),"target-id":"avatar-dropdown",width:"180","right-aligned":"","vertical-fluid":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"dropdown-content")]),_:3},8,["modelValue"])]),_:3},8,["clickable","onClick"])}const Zo=re(S8,[["render",D8]]),$le="",S1={components:{CdsIcon:Ze,CdsAvatar:Zo,CdsDivider:Nc,CdsClickable:hs},props:{hideSettings:{type:Boolean,default:!1},hideHelp:{type:Boolean,default:!1},hideNotification:{type:Boolean,default:!1},hideAppSwitcher:{type:Boolean,default:!1},hideLogout:{type:Boolean,default:!1},sysvaleBrand:{type:Boolean,default:!1},csBrand:{type:Boolean,default:!1},userName:{type:String,default:null},userDescription:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{hasAppSlot(){return Object.keys(this.$slots).some(t=>t==="app-info")},hasUserInfoSlot(){return Object.keys(this.$slots).some(t=>t==="user-info")},gridTemplateColumnsResolver(){return this.hasAppSlot?"1fr 1fr 1fr":"1fr 1fr"},gridTemplateAreasResolver(){return this.hasAppSlot?"'app logo icons'":"'logo icons'"},logoAlignmentResolver(){return this.hasAppSlot?"center":"flex-start"}},methods:{handleClick(t){this.$emit(`${t}-click`,!0)}}},nm=()=>{a.useCssVars(t=>({"244900c8":t.gridTemplateAreasResolver,"5097391f":t.gridTemplateColumnsResolver,a82bbc8c:t.logoAlignmentResolver}))},im=S1.setup;S1.setup=im?(t,e)=>(nm(),im(t,e)):nm;const E8=S1,B8={class:"app-bar__container"},T8={key:0,class:"app-bar__logo--cs",src:"https://framerusercontent.com/images/LqVj4DBbWvH0zr04qwYMlSPvEBY.svg",alt:"logo do Cidade Saud\xE1vel"},V8={key:1,class:"app-bar__logo--sv",src:"https://framerusercontent.com/images/djNYjj5IdpsZL50hF8HEDt5Wbg.svg",alt:"logo da Sysvale"},I8={class:"app-bar__icons-grid"},A8={key:4,class:"user-info__avatar-container"},$8={class:"user-info__container"},N8={class:"user-info__name"},z8={class:"user-info__description"},P8={key:5,class:"app-switcher__container"},L8={key:2,class:"app-switcher"};function F8(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveComponent("cds-avatar"),h=a.resolveComponent("cds-divider");return a.openBlock(),a.createElementBlock("div",B8,[n.csBrand?(a.openBlock(),a.createElementBlock("img",T8)):n.sysvaleBrand?(a.openBlock(),a.createElementBlock("img",V8)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"brand",{class:"app-bar__logo"}),a.createElementVNode("div",I8,[n.hideNotification?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,clickable:"",onClick:e[0]||(e[0]=f=>r.handleClick("notification"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"notification-bell-outline"})]),_:1})),n.hideHelp?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:1,clickable:"",onClick:e[1]||(e[1]=f=>r.handleClick("help"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"help-outline"})]),_:1})),n.hideSettings?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:2,clickable:"",onClick:e[2]||(e[2]=f=>r.handleClick("settings"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"settings-outline"})]),_:1})),r.hasUserInfoSlot?a.renderSlot(t.$slots,"user-info",{key:3,class:"user-info__container"}):(a.openBlock(),a.createElementBlock("div",A8,[a.createElementVNode("div",$8,[a.createElementVNode("span",N8,a.toDisplayString(n.userName),1),a.createElementVNode("span",z8,a.toDisplayString(n.userDescription),1)]),a.createVNode(d,{name:n.userName,variant:"white",size:"md",clickable:n.clickable,onClick:e[3]||(e[3]=f=>r.handleClick("avatar"))},a.createSlots({_:2},[n.clickable?{name:"dropdown-content",fn:a.withCtx(()=>[a.renderSlot(t.$slots,"dropdown-content")]),key:"0"}:void 0]),1032,["name","clickable"])])),n.hideAppSwitcher?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",P8,[a.createVNode(h,{vertical:"",width:"30"}),a.createVNode(c,{clickable:"",onClick:e[4]||(e[4]=f=>r.handleClick("app-switcher"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"grid-outline"})]),_:1})])),n.hideLogout?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:6,clickable:"",onClick:e[5]||(e[5]=f=>r.handleClick("logout"))},{default:a.withCtx(()=>[a.createVNode(o,{height:"24",width:"24",light:"",name:"logout-outline"})]),_:1}))]),r.hasAppSlot?(a.openBlock(),a.createElementBlock("div",L8,[a.renderSlot(t.$slots,"app-info")])):a.createCommentVNode("",!0)])}const R8=re(E8,[["render",F8]]),Nle="",M1={props:{width:{type:[String,Number],default:"20"}},computed:{widthResolver(){return`${this.width}px`}}},sm=()=>{a.useCssVars(t=>({13528900:t.widthResolver}))},rm=M1.setup;M1.setup=rm?(t,e)=>(sm(),rm(t,e)):sm;const H8=M1,W8={class:"truncate__container"};function Y8(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",W8,[a.renderSlot(t.$slots,"default")])}const am=re(H8,[["render",Y8]]),zle="",j8={props:{position:{type:String,default:"top"},text:{type:String,default:null},slim:{type:Boolean,default:!1}},computed:{content(){return this.slim?`<span style="font-size: 11px; padding: 0px;">${this.text}</span>`:`<span style="font-size: 13px; padding: 0px 2px">${this.text}</span>`}}},U8=["data-tippy-placement","data-tippy-content"];function q8(t,e,n,i,s,r){const o=a.resolveDirective("cdstip");return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:"tooltip","data-tippy-placement":n.position,"data-tippy-content":r.content,"data-tippy-allowHTML":!0},[a.renderSlot(t.$slots,"default")],8,U8)),[[o,n.text]])}const Lc=re(j8,[["render",q8]]),Ple="",G8={components:{CdsAvatar:Zo,CdsClickable:hs,CdsPopover:Pc,CdsTruncate:am,CdsTooltip:Lc},props:{size:{type:String,default:"md"},avatars:{type:Array,default:()=>[]},maxCount:{type:Number,default:4}},data(){return{listAvatars:this.avatars.slice(0,this.maxCount),popoverAvatars:this.avatars.slice(this.maxCount,this.avatars.length),showPopover:!1}},computed:{showAvatarCounter(){return this.maxCount<this.avatars.length},avatarCounterText(){return`+ ${this.avatars.length-this.maxCount}`}}},K8={class:"avatar-group__container"},Z8={class:"avatar__name"};function X8(t,e,n,i,s,r){const o=a.resolveComponent("cds-avatar"),c=a.resolveComponent("cds-tooltip"),d=a.resolveComponent("cds-clickable"),h=a.resolveComponent("cds-truncate"),f=a.resolveComponent("cds-popover");return a.openBlock(),a.createElementBlock("div",K8,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.listAvatars,(m,g)=>(a.openBlock(),a.createBlock(c,{key:g,position:"bottom",text:m.name,slim:""},{default:a.withCtx(()=>[a.createVNode(o,a.mergeProps({ref_for:!0},m,{size:n.size,clickable:!1}),null,16,["size"])]),_:2},1032,["text"]))),128)),r.showAvatarCounter?(a.openBlock(),a.createBlock(d,{key:0,id:"avatar-counter",clickable:"",onClick:e[0]||(e[0]=m=>s.showPopover=!0)},{default:a.withCtx(()=>[a.createVNode(o,{size:n.size,clickable:!1,name:r.avatarCounterText,variant:"gray",class:"avatar-group__counter"},null,8,["size","name"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(f,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=m=>s.showPopover=m),"target-id":"avatar-counter",width:"180","right-aligned":"","vertical-fluid":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.popoverAvatars,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"avatar__data"},[a.createVNode(o,a.mergeProps({ref_for:!0},m,{size:"sm",clickable:!1}),null,16),a.createVNode(h,{width:"180"},{default:a.withCtx(()=>[a.createElementVNode("span",Z8,a.toDisplayString(m.name),1)]),_:2},1024)]))),128))]),_:1},8,["modelValue"])])}const J8=re(G8,[["render",X8]]),Lle="",Q8={components:{CdsClickable:hs},props:{variant:{type:String,default:"gray"},size:{type:String,default:"md"},clickable:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","white"],predefinedSizes:["sm","md","lg"]}},computed:{predefinedStyle(){let t="";return this.predefinedColors.indexOf(this.variant)>-1&&(t+=`badge--${this.variant}`),this.predefinedSizes.indexOf(this.size)>-1&&(t+=` badge--${this.size}`),t}}};function ew(t,e,n,i,s,r){const o=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["badge__container",r.predefinedStyle])},[a.createElementVNode("div",{class:a.normalizeClass({"badge__content--sm":n.size==="sm","badge__content--md":n.size==="md","badge__content--lg":n.size==="lg"})},[n.clickable?(a.openBlock(),a.createBlock(o,{key:0,onClick:e[0]||(e[0]=c=>t.$emit("click",!0))},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)],2)],2)}const tw=re(Q8,[["render",ew],["__scopeId","data-v-a2c0fc86"]]);/*!
22
22
  * @kurkle/color v0.3.2
23
23
  * https://github.com/kurkle/color#readme
24
24
  * (c) 2023 Jukka Kurkela
@@ -28,28 +28,28 @@
28
28
  * https://www.chartjs.org
29
29
  * (c) 2024 Chart.js Contributors
30
30
  * Released under the MIT License
31
- */function ps(){}const xw=(()=>{let t=0;return()=>t++})();function Je(t){return t===null||typeof t>"u"}function Et(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Ue(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ht(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Qn(t,e){return Ht(t)?t:e}function $e(t,e){return typeof t>"u"?e:t}const Sw=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,pm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Mt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function ut(t,e,n,i){let s,r,o;if(Et(t))if(r=t.length,i)for(s=r-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<r;s++)e.call(n,t[s],s);else if(Ue(t))for(o=Object.keys(t),r=o.length,s=0;s<r;s++)e.call(n,t[o[s]],o[s])}function Wc(t,e){let n,i,s,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],r=e[n],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function Yc(t){if(Et(t))return t.map(Yc);if(Ue(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=Yc(t[n[s]]);return e}return t}function mm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Mw(t,e,n,i){if(!mm(t))return;const s=e[t],r=n[t];Ue(s)&&Ue(r)?el(s,r,i):e[t]=Yc(r)}function el(t,e,n){const i=Et(e)?e:[e],s=i.length;if(!Ue(t))return t;n=n||{};const r=n.merger||Mw;let o;for(let c=0;c<s;++c){if(o=i[c],!Ue(o))continue;const d=Object.keys(o);for(let h=0,f=d.length;h<f;++h)r(d[h],t,o,n)}return t}function tl(t,e){return el(t,e,{merger:Ow})}function Ow(t,e,n){if(!mm(t))return;const i=e[t],s=n[t];Ue(i)&&Ue(s)?tl(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Yc(s))}const gm={"":t=>t,x:t=>t.x,y:t=>t.y};function Dw(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Ew(t){const e=Dw(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function js(t,e){return(gm[e]||(gm[e]=Ew(e)))(t)}function V1(t){return t.charAt(0).toUpperCase()+t.slice(1)}const nl=t=>typeof t<"u",Us=t=>typeof t=="function",_m=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function Bw(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Bt=Math.PI,Tt=2*Bt,Tw=Tt+Bt,jc=Number.POSITIVE_INFINITY,Vw=Bt/180,Ut=Bt/2,Or=Bt/4,ym=Bt*2/3,qs=Math.log10,Ji=Math.sign;function il(t,e,n){return Math.abs(t-e)<n}function vm(t){const e=Math.round(t);t=il(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(qs(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Iw(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(n|0)&&e.push(n),e.sort((s,r)=>s-r).pop(),e}function Sa(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Aw(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function bm(t,e,n){let i,s,r;for(i=0,s=t.length;i<s;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Ti(t){return t*(Bt/180)}function I1(t){return t*(180/Bt)}function wm(t){if(!Ht(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function km(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*Bt&&(r+=Tt),{angle:r,distance:s}}function A1(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $w(t,e){return(t-e+Tw)%Tt-Bt}function ei(t){return(t%Tt+Tt)%Tt}function sl(t,e,n,i){const s=ei(t),r=ei(e),o=ei(n),c=ei(r-s),d=ei(o-s),h=ei(s-r),f=ei(s-o);return s===r||s===o||i&&r===o||c>d&&h<f}function dn(t,e,n){return Math.max(e,Math.min(n,t))}function Nw(t){return dn(t,-32768,32767)}function ms(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function $1(t,e,n){n=n||(o=>t[o]<e);let i=t.length-1,s=0,r;for(;i-s>1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const gs=(t,e,n,i)=>$1(t,n,i?s=>{const r=t[s][e];return r<n||r===n&&t[s+1][e]===n}:s=>t[s][e]<n),zw=(t,e,n)=>$1(t,n,i=>t[i][e]>=n);function Pw(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}const Cm=["push","pop","shift","splice","unshift"];function Lw(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Cm.forEach(n=>{const i="_onData"+V1(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return t._chartjs.listeners.forEach(c=>{typeof c[i]=="function"&&c[i](...r)}),o}})})}function xm(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);s!==-1&&i.splice(s,1),!(i.length>0)&&(Cm.forEach(r=>{delete t[r]}),delete t._chartjs)}function Sm(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Mm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Om(t,e){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Mm.call(window,()=>{i=!1,t.apply(e,n)}))}}function Fw(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const N1=t=>t==="start"?"left":t==="end"?"right":"center",yn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Rw=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function Dm(t,e,n){const i=e.length;let s=0,r=i;if(t._sorted){const{iScale:o,_parsed:c}=t,d=o.axis,{min:h,max:f,minDefined:m,maxDefined:g}=o.getUserBounds();m&&(s=dn(Math.min(gs(c,d,h).lo,n?i:gs(e,d,o.getPixelForValue(h)).lo),0,i-1)),g?r=dn(Math.max(gs(c,o.axis,f,!0).hi+1,n?0:gs(e,d,o.getPixelForValue(f),!0).hi+1),s,i)-s:r=i-s}return{start:s,count:r}}function Em(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const Uc=t=>t===0||t===1,Bm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Tt/n)),Tm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Tt/n)+1,rl={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Ut)+1,easeOutSine:t=>Math.sin(t*Ut),easeInOutSine:t=>-.5*(Math.cos(Bt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Uc(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Uc(t)?t:Bm(t,.075,.3),easeOutElastic:t=>Uc(t)?t:Tm(t,.075,.3),easeInOutElastic(t){return Uc(t)?t:t<.5?.5*Bm(t*2,.1125,.45):.5+.5*Tm(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-rl.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?rl.easeInBounce(t*2)*.5:rl.easeOutBounce(t*2-1)*.5+.5};function z1(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Vm(t){return z1(t)?t:new Qo(t)}function P1(t){return z1(t)?t:new Qo(t).saturate(.5).darken(.1).hexString()}const Hw=["x","y","borderWidth","radius","tension"],Ww=["color","borderColor","backgroundColor"];function Yw(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Ww},numbers:{type:"number",properties:Hw}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function jw(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Im=new Map;function Uw(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Im.get(n);return i||(i=new Intl.NumberFormat(t,e),Im.set(n,i)),i}function al(t,e,n){return Uw(e,n).format(t)}const Am={values(t){return Et(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let s,r=t;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(s="scientific"),r=qw(t,n)}const o=qs(Math.abs(r)),c=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),d={notation:s,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),al(t,i,d)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(qs(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Am.numeric.call(this,t,e,n):""}};function qw(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var qc={formatters:Am};function Gw(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Dr=Object.create(null),L1=Object.create(null);function ol(t,e){if(!e)return t;const n=e.split(".");for(let i=0,s=n.length;i<s;++i){const r=n[i];t=t[r]||(t[r]=Object.create(null))}return t}function F1(t,e,n){return typeof e=="string"?el(ol(t,e),n):el(ol(t,""),e)}class Kw{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>P1(s.backgroundColor),this.hoverBorderColor=(i,s)=>P1(s.borderColor),this.hoverColor=(i,s)=>P1(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return F1(this,e,n)}get(e){return ol(this,e)}describe(e,n){return F1(L1,e,n)}override(e,n){return F1(Dr,e,n)}route(e,n,i,s){const r=ol(this,e),o=ol(this,i),c="_"+n;Object.defineProperties(r,{[c]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=o[s];return Ue(d)?Object.assign({},h,d):$e(d,h)},set(d){this[c]=d}}})}apply(e){e.forEach(n=>n(this))}}var Wt=new Kw({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Yw,jw,Gw]);function Zw(t){return!t||Je(t.size)||Je(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Gc(t,e,n,i,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,n.push(s)),r>i&&(i=r),i}function Xw(t,e,n,i){i=i||{};let s=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const c=n.length;let d,h,f,m,g;for(d=0;d<c;d++)if(m=n[d],m!=null&&!Et(m))o=Gc(t,s,r,o,m);else if(Et(m))for(h=0,f=m.length;h<f;h++)g=m[h],g!=null&&!Et(g)&&(o=Gc(t,s,r,o,g));t.restore();const y=r.length/2;if(y>n.length){for(d=0;d<y;d++)delete s[r[d]];r.splice(0,y)}return o}function Er(t,e,n){const i=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function $m(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function R1(t,e,n,i){Nm(t,e,n,i,null)}function Nm(t,e,n,i,s){let r,o,c,d,h,f,m,g;const y=e.pointStyle,b=e.rotation,k=e.radius;let C=(b||0)*Vw;if(y&&typeof y=="object"&&(r=y.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(C),t.drawImage(y,-y.width/2,-y.height/2,y.width,y.height),t.restore();return}if(!(isNaN(k)||k<=0)){switch(t.beginPath(),y){default:s?t.ellipse(n,i,s/2,k,0,0,Tt):t.arc(n,i,k,0,Tt),t.closePath();break;case"triangle":f=s?s/2:k,t.moveTo(n+Math.sin(C)*f,i-Math.cos(C)*k),C+=ym,t.lineTo(n+Math.sin(C)*f,i-Math.cos(C)*k),C+=ym,t.lineTo(n+Math.sin(C)*f,i-Math.cos(C)*k),t.closePath();break;case"rectRounded":h=k*.516,d=k-h,o=Math.cos(C+Or)*d,m=Math.cos(C+Or)*(s?s/2-h:d),c=Math.sin(C+Or)*d,g=Math.sin(C+Or)*(s?s/2-h:d),t.arc(n-m,i-c,h,C-Bt,C-Ut),t.arc(n+g,i-o,h,C-Ut,C),t.arc(n+m,i+c,h,C,C+Ut),t.arc(n-g,i+o,h,C+Ut,C+Bt),t.closePath();break;case"rect":if(!b){d=Math.SQRT1_2*k,f=s?s/2:d,t.rect(n-f,i-d,2*f,2*d);break}C+=Or;case"rectRot":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+g,i-o),t.lineTo(n+m,i+c),t.lineTo(n-g,i+o),t.closePath();break;case"crossRot":C+=Or;case"cross":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o);break;case"star":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o),C+=Or,m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o);break;case"line":o=s?s/2:Math.cos(C)*k,c=Math.sin(C)*k,t.moveTo(n-o,i-c),t.lineTo(n+o,i+c);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(C)*(s?s/2:k),i+Math.sin(C)*k);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function _s(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Kc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Zc(t){t.restore()}function Jw(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if(s==="middle"){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else s==="after"!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Qw(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function e9(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Je(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function t9(t,e,n,i,s){if(s.strikethrough||s.underline){const r=t.measureText(i),o=e-r.actualBoundingBoxLeft,c=e+r.actualBoundingBoxRight,d=n-r.actualBoundingBoxAscent,h=n+r.actualBoundingBoxDescent,f=s.strikethrough?(d+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,f),t.lineTo(c,f),t.stroke()}}function n9(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Br(t,e,n,i,s,r={}){const o=Et(e)?e:[e],c=r.strokeWidth>0&&r.strokeColor!=="";let d,h;for(t.save(),t.font=s.string,e9(t,r),d=0;d<o.length;++d)h=o[d],r.backdrop&&n9(t,r.backdrop),c&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Je(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(h,n,i,r.maxWidth)),t.fillText(h,n,i,r.maxWidth),t9(t,n,i,h,r),i+=Number(s.lineHeight);t.restore()}function ll(t,e){const{x:n,y:i,w:s,h:r,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*Bt,Bt,!0),t.lineTo(n,i+r-o.bottomLeft),t.arc(n+o.bottomLeft,i+r-o.bottomLeft,o.bottomLeft,Bt,Ut,!0),t.lineTo(n+s-o.bottomRight,i+r),t.arc(n+s-o.bottomRight,i+r-o.bottomRight,o.bottomRight,Ut,0,!0),t.lineTo(n+s,i+o.topRight),t.arc(n+s-o.topRight,i+o.topRight,o.topRight,0,-Ut,!0),t.lineTo(n+o.topLeft,i)}const i9=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,s9=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function r9(t,e){const n=(""+t).match(i9);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const a9=t=>+t||0;function H1(t,e){const n={},i=Ue(e),s=i?Object.keys(e):e,r=Ue(t)?i?o=>$e(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=a9(r(o));return n}function zm(t){return H1(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tr(t){return H1(t,["topLeft","topRight","bottomLeft","bottomRight"])}function vn(t){const e=zm(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function en(t,e){t=t||{},e=e||Wt.font;let n=$e(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=$e(t.style,e.style);i&&!(""+i).match(s9)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:$e(t.family,e.family),lineHeight:r9($e(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:$e(t.weight,e.weight),string:""};return s.string=Zw(s),s}function cl(t,e,n,i){let s=!0,r,o,c;for(r=0,o=t.length;r<o;++r)if(c=t[r],c!==void 0&&(e!==void 0&&typeof c=="function"&&(c=c(e),s=!1),n!==void 0&&Et(c)&&(c=c[n%c.length],s=!1),c!==void 0))return i&&!s&&(i.cacheable=!1),c}function o9(t,e,n){const{min:i,max:s}=t,r=pm(e,(s-i)/2),o=(c,d)=>n&&c===0?0:c+d;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function Gs(t,e){return Object.assign(Object.create(t),e)}function W1(t,e=[""],n,i,s=()=>t[0]){const r=n||t;typeof i>"u"&&(i=Hm("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:s,override:c=>W1([c,...t],e,r,i)};return new Proxy(o,{deleteProperty(c,d){return delete c[d],delete c._keys,delete t[0][d],!0},get(c,d){return Lm(c,d,()=>m9(d,e,t,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(c,d){return Wm(c).includes(d)},ownKeys(c){return Wm(c)},set(c,d,h){const f=c._storage||(c._storage=s());return c[d]=f[d]=h,delete c._keys,!0}})}function Ma(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Pm(t,i),setContext:r=>Ma(t,r,n,i),override:r=>Ma(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,c){return Lm(r,o,()=>c9(r,o,c))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,c){return t[o]=c,delete r[o],!0}})}function Pm(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Us(n)?n:()=>n,isIndexable:Us(i)?i:()=>i}}const l9=(t,e)=>t?t+V1(e):e,Y1=(t,e)=>Ue(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Lm(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function c9(t,e,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=t;let c=i[e];return Us(c)&&o.isScriptable(e)&&(c=d9(e,c,t,n)),Et(c)&&c.length&&(c=u9(e,c,t,o.isIndexable)),Y1(e,c)&&(c=Ma(c,s,r&&r[e],o)),c}function d9(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:c}=n;if(c.has(t))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+t);c.add(t);let d=e(r,o||i);return c.delete(t),Y1(t,d)&&(d=j1(s._scopes,s,t,d)),d}function u9(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:c}=n;if(typeof r.index<"u"&&i(t))return e[r.index%e.length];if(Ue(e[0])){const d=e,h=s._scopes.filter(f=>f!==d);e=[];for(const f of d){const m=j1(h,s,t,f);e.push(Ma(m,r,o&&o[t],c))}}return e}function Fm(t,e,n){return Us(t)?t(e,n):t}const h9=(t,e)=>t===!0?e:typeof t=="string"?js(e,t):void 0;function f9(t,e,n,i,s){for(const r of e){const o=h9(n,r);if(o){t.add(o);const c=Fm(o._fallback,n,s);if(typeof c<"u"&&c!==n&&c!==i)return c}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function j1(t,e,n,i){const s=e._rootScopes,r=Fm(e._fallback,n,i),o=[...t,...s],c=new Set;c.add(i);let d=Rm(c,o,n,r||n,i);return d===null||typeof r<"u"&&r!==n&&(d=Rm(c,o,r,d,i),d===null)?!1:W1(Array.from(c),[""],s,r,()=>p9(e,n,i))}function Rm(t,e,n,i,s){for(;n;)n=f9(t,e,n,i,s);return n}function p9(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return Et(s)&&Ue(n)?n:s||{}}function m9(t,e,n,i){let s;for(const r of e)if(s=Hm(l9(r,t),n),typeof s<"u")return Y1(t,s)?j1(n,i,t,s):s}function Hm(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function Wm(t){let e=t._keys;return e||(e=t._keys=g9(t._scopes)),e}function g9(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}function Ym(t,e,n,i){const{iScale:s}=t,{key:r="r"}=this._parsing,o=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+n,f=e[h],o[c]={r:s.parse(js(f,r),h)};return o}const _9=Number.EPSILON||1e-14,Oa=(t,e)=>e<t.length&&!t[e].skip&&t[e],jm=t=>t==="x"?"y":"x";function y9(t,e,n,i){const s=t.skip?e:t,r=e,o=n.skip?e:n,c=A1(r,s),d=A1(o,r);let h=c/(c+d),f=d/(c+d);h=isNaN(h)?0:h,f=isNaN(f)?0:f;const m=i*h,g=i*f;return{previous:{x:r.x-m*(o.x-s.x),y:r.y-m*(o.y-s.y)},next:{x:r.x+g*(o.x-s.x),y:r.y+g*(o.y-s.y)}}}function v9(t,e,n){const i=t.length;let s,r,o,c,d,h=Oa(t,0);for(let f=0;f<i-1;++f)if(d=h,h=Oa(t,f+1),!(!d||!h)){if(il(e[f],0,_9)){n[f]=n[f+1]=0;continue}s=n[f]/e[f],r=n[f+1]/e[f],c=Math.pow(s,2)+Math.pow(r,2),!(c<=9)&&(o=3/Math.sqrt(c),n[f]=s*o*e[f],n[f+1]=r*o*e[f])}}function b9(t,e,n="x"){const i=jm(n),s=t.length;let r,o,c,d=Oa(t,0);for(let h=0;h<s;++h){if(o=c,c=d,d=Oa(t,h+1),!c)continue;const f=c[n],m=c[i];o&&(r=(f-o[n])/3,c[`cp1${n}`]=f-r,c[`cp1${i}`]=m-r*e[h]),d&&(r=(d[n]-f)/3,c[`cp2${n}`]=f+r,c[`cp2${i}`]=m+r*e[h])}}function w9(t,e="x"){const n=jm(e),i=t.length,s=Array(i).fill(0),r=Array(i);let o,c,d,h=Oa(t,0);for(o=0;o<i;++o)if(c=d,d=h,h=Oa(t,o+1),!!d){if(h){const f=h[e]-d[e];s[o]=f!==0?(h[n]-d[n])/f:0}r[o]=c?h?Ji(s[o-1])!==Ji(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}v9(t,s,r),b9(t,r,e)}function Xc(t,e,n){return Math.max(Math.min(t,n),e)}function k9(t,e){let n,i,s,r,o,c=_s(t[0],e);for(n=0,i=t.length;n<i;++n)o=r,r=c,c=n<i-1&&_s(t[n+1],e),r&&(s=t[n],o&&(s.cp1x=Xc(s.cp1x,e.left,e.right),s.cp1y=Xc(s.cp1y,e.top,e.bottom)),c&&(s.cp2x=Xc(s.cp2x,e.left,e.right),s.cp2y=Xc(s.cp2y,e.top,e.bottom)))}function C9(t,e,n,i,s){let r,o,c,d;if(e.spanGaps&&(t=t.filter(h=>!h.skip)),e.cubicInterpolationMode==="monotone")w9(t,s);else{let h=i?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)c=t[r],d=y9(h,c,t[Math.min(r+1,o-(i?0:1))%o],e.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}e.capBezierPoints&&k9(t,n)}function U1(){return typeof window<"u"&&typeof document<"u"}function q1(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Jc(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const Qc=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function x9(t,e){return Qc(t).getPropertyValue(e)}const S9=["top","right","bottom","left"];function Vr(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=S9[s];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const M9=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function O9(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:r}=i;let o=!1,c,d;if(M9(s,r,t.target))c=s,d=r;else{const h=e.getBoundingClientRect();c=i.clientX-h.left,d=i.clientY-h.top,o=!0}return{x:c,y:d,box:o}}function Ir(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=Qc(n),r=s.boxSizing==="border-box",o=Vr(s,"padding"),c=Vr(s,"border","width"),{x:d,y:h,box:f}=O9(t,n),m=o.left+(f&&c.left),g=o.top+(f&&c.top);let{width:y,height:b}=e;return r&&(y-=o.width+c.width,b-=o.height+c.height),{x:Math.round((d-m)/y*n.width/i),y:Math.round((h-g)/b*n.height/i)}}function D9(t,e,n){let i,s;if(e===void 0||n===void 0){const r=t&&q1(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),c=Qc(r),d=Vr(c,"border","width"),h=Vr(c,"padding");e=o.width-h.width-d.width,n=o.height-h.height-d.height,i=Jc(c.maxWidth,r,"clientWidth"),s=Jc(c.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:i||jc,maxHeight:s||jc}}const ed=t=>Math.round(t*10)/10;function E9(t,e,n,i){const s=Qc(t),r=Vr(s,"margin"),o=Jc(s.maxWidth,t,"clientWidth")||jc,c=Jc(s.maxHeight,t,"clientHeight")||jc,d=D9(t,e,n);let{width:h,height:f}=d;if(s.boxSizing==="content-box"){const g=Vr(s,"border","width"),y=Vr(s,"padding");h-=y.width+g.width,f-=y.height+g.height}return h=Math.max(0,h-r.width),f=Math.max(0,i?h/i:f-r.height),h=ed(Math.min(h,o,d.maxWidth)),f=ed(Math.min(f,c,d.maxHeight)),h&&!f&&(f=ed(h/2)),(e!==void 0||n!==void 0)&&i&&d.height&&f>d.height&&(f=d.height,h=ed(Math.floor(f*i))),{width:h,height:f}}function Um(t,e,n){const i=e||1,s=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(t.currentDevicePixelRatio=i,o.height=s,o.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const B9=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};U1()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function qm(t,e){const n=x9(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ar(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function T9(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function V9(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Ar(t,s,n),c=Ar(s,r,n),d=Ar(r,e,n),h=Ar(o,c,n),f=Ar(c,d,n);return Ar(h,f,n)}const I9=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},A9=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Da(t,e,n){return t?I9(e,n):A9()}function Gm(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Km(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Zm(t){return t==="angle"?{between:sl,compare:$w,normalize:ei}:{between:ms,compare:(e,n)=>e-n,normalize:e=>e}}function Xm({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:s}}function $9(t,e,n){const{property:i,start:s,end:r}=n,{between:o,normalize:c}=Zm(i),d=e.length;let{start:h,end:f,loop:m}=t,g,y;if(m){for(h+=d,f+=d,g=0,y=d;g<y&&o(c(e[h%d][i]),s,r);++g)h--,f--;h%=d,f%=d}return f<h&&(f+=d),{start:h,end:f,loop:m,style:t.style}}function Jm(t,e,n){if(!n)return[t];const{property:i,start:s,end:r}=n,o=e.length,{compare:c,between:d,normalize:h}=Zm(i),{start:f,end:m,loop:g,style:y}=$9(t,e,n),b=[];let k=!1,C=null,S,E,A;const x=()=>d(s,A,S)&&c(s,A)!==0,V=()=>c(r,S)===0||d(r,A,S),N=()=>k||x(),L=()=>!k||V();for(let F=f,q=f;F<=m;++F)E=e[F%o],!E.skip&&(S=h(E[i]),S!==A&&(k=d(S,s,r),C===null&&N()&&(C=c(S,s)===0?F:q),C!==null&&L()&&(b.push(Xm({start:C,end:F,loop:g,count:o,style:y})),C=null),q=F,A=S));return C!==null&&b.push(Xm({start:C,end:m,loop:g,count:o,style:y})),b}function Qm(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const r=Jm(i[s],t.points,e);r.length&&n.push(...r)}return n}function N9(t,e,n,i){let s=0,r=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(r+=s);r>s&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}function z9(t,e,n,i){const s=t.length,r=[];let o=e,c=t[e],d;for(d=e+1;d<=n;++d){const h=t[d%s];h.skip||h.stop?c.skip||(i=!1,r.push({start:e%s,end:(d-1)%s,loop:i}),e=o=h.stop?d:null):(o=d,c.skip&&(e=d)),c=h}return o!==null&&r.push({start:e%s,end:o%s,loop:i}),r}function P9(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const r=!!t._loop,{start:o,end:c}=N9(n,s,r,i);if(i===!0)return eg(t,[{start:o,end:c,loop:r}],n,e);const d=c<o?c+s:c,h=!!t._fullLoop&&o===0&&c===s-1;return eg(t,z9(n,o,d,h),n,e)}function eg(t,e,n,i){return!i||!i.setContext||!n?e:L9(t,e,n,i)}function L9(t,e,n,i){const s=t._chart.getContext(),r=tg(t.options),{_datasetIndex:o,options:{spanGaps:c}}=t,d=n.length,h=[];let f=r,m=e[0].start,g=m;function y(b,k,C,S){const E=c?-1:1;if(b!==k){for(b+=d;n[b%d].skip;)b-=E;for(;n[k%d].skip;)k+=E;b%d!==k%d&&(h.push({start:b%d,end:k%d,loop:C,style:S}),f=S,m=k%d)}}for(const b of e){m=c?m:b.start;let k=n[m%d],C;for(g=m+1;g<=b.end;g++){const S=n[g%d];C=tg(i.setContext(Gs(s,{type:"segment",p0:k,p1:S,p0DataIndex:(g-1)%d,p1DataIndex:g%d,datasetIndex:o}))),F9(C,f)&&y(m,g-1,b.loop,f),k=S,f=C}m<g-1&&y(m,g-1,b.loop,f)}return h}function tg(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function F9(t,e){if(!e)return!1;const n=[],i=function(s,r){return z1(r)?(n.includes(r)||n.push(r),n.indexOf(r)):r};return JSON.stringify(t,i)!==JSON.stringify(e,i)}/*!
31
+ */function ps(){}const xw=(()=>{let t=0;return()=>t++})();function Je(t){return t===null||typeof t>"u"}function Et(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Ue(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ht(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Qn(t,e){return Ht(t)?t:e}function $e(t,e){return typeof t>"u"?e:t}const Sw=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,pm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Mt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function ut(t,e,n,i){let s,r,o;if(Et(t))if(r=t.length,i)for(s=r-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<r;s++)e.call(n,t[s],s);else if(Ue(t))for(o=Object.keys(t),r=o.length,s=0;s<r;s++)e.call(n,t[o[s]],o[s])}function Wc(t,e){let n,i,s,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],r=e[n],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function Yc(t){if(Et(t))return t.map(Yc);if(Ue(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=Yc(t[n[s]]);return e}return t}function mm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Mw(t,e,n,i){if(!mm(t))return;const s=e[t],r=n[t];Ue(s)&&Ue(r)?el(s,r,i):e[t]=Yc(r)}function el(t,e,n){const i=Et(e)?e:[e],s=i.length;if(!Ue(t))return t;n=n||{};const r=n.merger||Mw;let o;for(let c=0;c<s;++c){if(o=i[c],!Ue(o))continue;const d=Object.keys(o);for(let h=0,f=d.length;h<f;++h)r(d[h],t,o,n)}return t}function tl(t,e){return el(t,e,{merger:Ow})}function Ow(t,e,n){if(!mm(t))return;const i=e[t],s=n[t];Ue(i)&&Ue(s)?tl(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Yc(s))}const gm={"":t=>t,x:t=>t.x,y:t=>t.y};function Dw(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Ew(t){const e=Dw(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function js(t,e){return(gm[e]||(gm[e]=Ew(e)))(t)}function V1(t){return t.charAt(0).toUpperCase()+t.slice(1)}const nl=t=>typeof t<"u",Us=t=>typeof t=="function",_m=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function Bw(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Bt=Math.PI,Tt=2*Bt,Tw=Tt+Bt,jc=Number.POSITIVE_INFINITY,Vw=Bt/180,Ut=Bt/2,Or=Bt/4,ym=Bt*2/3,qs=Math.log10,Ji=Math.sign;function il(t,e,n){return Math.abs(t-e)<n}function vm(t){const e=Math.round(t);t=il(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(qs(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Iw(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(n|0)&&e.push(n),e.sort((s,r)=>s-r).pop(),e}function Sa(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Aw(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function bm(t,e,n){let i,s,r;for(i=0,s=t.length;i<s;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Vi(t){return t*(Bt/180)}function I1(t){return t*(180/Bt)}function wm(t){if(!Ht(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function km(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*Bt&&(r+=Tt),{angle:r,distance:s}}function A1(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $w(t,e){return(t-e+Tw)%Tt-Bt}function ei(t){return(t%Tt+Tt)%Tt}function sl(t,e,n,i){const s=ei(t),r=ei(e),o=ei(n),c=ei(r-s),d=ei(o-s),h=ei(s-r),f=ei(s-o);return s===r||s===o||i&&r===o||c>d&&h<f}function dn(t,e,n){return Math.max(e,Math.min(n,t))}function Nw(t){return dn(t,-32768,32767)}function ms(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function $1(t,e,n){n=n||(o=>t[o]<e);let i=t.length-1,s=0,r;for(;i-s>1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const gs=(t,e,n,i)=>$1(t,n,i?s=>{const r=t[s][e];return r<n||r===n&&t[s+1][e]===n}:s=>t[s][e]<n),zw=(t,e,n)=>$1(t,n,i=>t[i][e]>=n);function Pw(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}const Cm=["push","pop","shift","splice","unshift"];function Lw(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Cm.forEach(n=>{const i="_onData"+V1(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return t._chartjs.listeners.forEach(c=>{typeof c[i]=="function"&&c[i](...r)}),o}})})}function xm(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);s!==-1&&i.splice(s,1),!(i.length>0)&&(Cm.forEach(r=>{delete t[r]}),delete t._chartjs)}function Sm(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Mm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Om(t,e){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Mm.call(window,()=>{i=!1,t.apply(e,n)}))}}function Fw(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const N1=t=>t==="start"?"left":t==="end"?"right":"center",yn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Rw=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function Dm(t,e,n){const i=e.length;let s=0,r=i;if(t._sorted){const{iScale:o,_parsed:c}=t,d=o.axis,{min:h,max:f,minDefined:m,maxDefined:g}=o.getUserBounds();m&&(s=dn(Math.min(gs(c,d,h).lo,n?i:gs(e,d,o.getPixelForValue(h)).lo),0,i-1)),g?r=dn(Math.max(gs(c,o.axis,f,!0).hi+1,n?0:gs(e,d,o.getPixelForValue(f),!0).hi+1),s,i)-s:r=i-s}return{start:s,count:r}}function Em(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const Uc=t=>t===0||t===1,Bm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Tt/n)),Tm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Tt/n)+1,rl={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Ut)+1,easeOutSine:t=>Math.sin(t*Ut),easeInOutSine:t=>-.5*(Math.cos(Bt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Uc(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Uc(t)?t:Bm(t,.075,.3),easeOutElastic:t=>Uc(t)?t:Tm(t,.075,.3),easeInOutElastic(t){return Uc(t)?t:t<.5?.5*Bm(t*2,.1125,.45):.5+.5*Tm(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-rl.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?rl.easeInBounce(t*2)*.5:rl.easeOutBounce(t*2-1)*.5+.5};function z1(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Vm(t){return z1(t)?t:new Qo(t)}function P1(t){return z1(t)?t:new Qo(t).saturate(.5).darken(.1).hexString()}const Hw=["x","y","borderWidth","radius","tension"],Ww=["color","borderColor","backgroundColor"];function Yw(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Ww},numbers:{type:"number",properties:Hw}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function jw(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Im=new Map;function Uw(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Im.get(n);return i||(i=new Intl.NumberFormat(t,e),Im.set(n,i)),i}function al(t,e,n){return Uw(e,n).format(t)}const Am={values(t){return Et(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let s,r=t;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(s="scientific"),r=qw(t,n)}const o=qs(Math.abs(r)),c=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),d={notation:s,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),al(t,i,d)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(qs(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Am.numeric.call(this,t,e,n):""}};function qw(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var qc={formatters:Am};function Gw(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Dr=Object.create(null),L1=Object.create(null);function ol(t,e){if(!e)return t;const n=e.split(".");for(let i=0,s=n.length;i<s;++i){const r=n[i];t=t[r]||(t[r]=Object.create(null))}return t}function F1(t,e,n){return typeof e=="string"?el(ol(t,e),n):el(ol(t,""),e)}class Kw{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>P1(s.backgroundColor),this.hoverBorderColor=(i,s)=>P1(s.borderColor),this.hoverColor=(i,s)=>P1(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return F1(this,e,n)}get(e){return ol(this,e)}describe(e,n){return F1(L1,e,n)}override(e,n){return F1(Dr,e,n)}route(e,n,i,s){const r=ol(this,e),o=ol(this,i),c="_"+n;Object.defineProperties(r,{[c]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=o[s];return Ue(d)?Object.assign({},h,d):$e(d,h)},set(d){this[c]=d}}})}apply(e){e.forEach(n=>n(this))}}var Wt=new Kw({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Yw,jw,Gw]);function Zw(t){return!t||Je(t.size)||Je(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Gc(t,e,n,i,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,n.push(s)),r>i&&(i=r),i}function Xw(t,e,n,i){i=i||{};let s=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const c=n.length;let d,h,f,m,g;for(d=0;d<c;d++)if(m=n[d],m!=null&&!Et(m))o=Gc(t,s,r,o,m);else if(Et(m))for(h=0,f=m.length;h<f;h++)g=m[h],g!=null&&!Et(g)&&(o=Gc(t,s,r,o,g));t.restore();const y=r.length/2;if(y>n.length){for(d=0;d<y;d++)delete s[r[d]];r.splice(0,y)}return o}function Er(t,e,n){const i=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function $m(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function R1(t,e,n,i){Nm(t,e,n,i,null)}function Nm(t,e,n,i,s){let r,o,c,d,h,f,m,g;const y=e.pointStyle,b=e.rotation,k=e.radius;let C=(b||0)*Vw;if(y&&typeof y=="object"&&(r=y.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(C),t.drawImage(y,-y.width/2,-y.height/2,y.width,y.height),t.restore();return}if(!(isNaN(k)||k<=0)){switch(t.beginPath(),y){default:s?t.ellipse(n,i,s/2,k,0,0,Tt):t.arc(n,i,k,0,Tt),t.closePath();break;case"triangle":f=s?s/2:k,t.moveTo(n+Math.sin(C)*f,i-Math.cos(C)*k),C+=ym,t.lineTo(n+Math.sin(C)*f,i-Math.cos(C)*k),C+=ym,t.lineTo(n+Math.sin(C)*f,i-Math.cos(C)*k),t.closePath();break;case"rectRounded":h=k*.516,d=k-h,o=Math.cos(C+Or)*d,m=Math.cos(C+Or)*(s?s/2-h:d),c=Math.sin(C+Or)*d,g=Math.sin(C+Or)*(s?s/2-h:d),t.arc(n-m,i-c,h,C-Bt,C-Ut),t.arc(n+g,i-o,h,C-Ut,C),t.arc(n+m,i+c,h,C,C+Ut),t.arc(n-g,i+o,h,C+Ut,C+Bt),t.closePath();break;case"rect":if(!b){d=Math.SQRT1_2*k,f=s?s/2:d,t.rect(n-f,i-d,2*f,2*d);break}C+=Or;case"rectRot":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+g,i-o),t.lineTo(n+m,i+c),t.lineTo(n-g,i+o),t.closePath();break;case"crossRot":C+=Or;case"cross":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o);break;case"star":m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o),C+=Or,m=Math.cos(C)*(s?s/2:k),o=Math.cos(C)*k,c=Math.sin(C)*k,g=Math.sin(C)*(s?s/2:k),t.moveTo(n-m,i-c),t.lineTo(n+m,i+c),t.moveTo(n+g,i-o),t.lineTo(n-g,i+o);break;case"line":o=s?s/2:Math.cos(C)*k,c=Math.sin(C)*k,t.moveTo(n-o,i-c),t.lineTo(n+o,i+c);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(C)*(s?s/2:k),i+Math.sin(C)*k);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function _s(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Kc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Zc(t){t.restore()}function Jw(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if(s==="middle"){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else s==="after"!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Qw(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function e9(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Je(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function t9(t,e,n,i,s){if(s.strikethrough||s.underline){const r=t.measureText(i),o=e-r.actualBoundingBoxLeft,c=e+r.actualBoundingBoxRight,d=n-r.actualBoundingBoxAscent,h=n+r.actualBoundingBoxDescent,f=s.strikethrough?(d+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,f),t.lineTo(c,f),t.stroke()}}function n9(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Br(t,e,n,i,s,r={}){const o=Et(e)?e:[e],c=r.strokeWidth>0&&r.strokeColor!=="";let d,h;for(t.save(),t.font=s.string,e9(t,r),d=0;d<o.length;++d)h=o[d],r.backdrop&&n9(t,r.backdrop),c&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Je(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(h,n,i,r.maxWidth)),t.fillText(h,n,i,r.maxWidth),t9(t,n,i,h,r),i+=Number(s.lineHeight);t.restore()}function ll(t,e){const{x:n,y:i,w:s,h:r,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*Bt,Bt,!0),t.lineTo(n,i+r-o.bottomLeft),t.arc(n+o.bottomLeft,i+r-o.bottomLeft,o.bottomLeft,Bt,Ut,!0),t.lineTo(n+s-o.bottomRight,i+r),t.arc(n+s-o.bottomRight,i+r-o.bottomRight,o.bottomRight,Ut,0,!0),t.lineTo(n+s,i+o.topRight),t.arc(n+s-o.topRight,i+o.topRight,o.topRight,0,-Ut,!0),t.lineTo(n+o.topLeft,i)}const i9=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,s9=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function r9(t,e){const n=(""+t).match(i9);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const a9=t=>+t||0;function H1(t,e){const n={},i=Ue(e),s=i?Object.keys(e):e,r=Ue(t)?i?o=>$e(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=a9(r(o));return n}function zm(t){return H1(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tr(t){return H1(t,["topLeft","topRight","bottomLeft","bottomRight"])}function vn(t){const e=zm(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function en(t,e){t=t||{},e=e||Wt.font;let n=$e(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=$e(t.style,e.style);i&&!(""+i).match(s9)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:$e(t.family,e.family),lineHeight:r9($e(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:$e(t.weight,e.weight),string:""};return s.string=Zw(s),s}function cl(t,e,n,i){let s=!0,r,o,c;for(r=0,o=t.length;r<o;++r)if(c=t[r],c!==void 0&&(e!==void 0&&typeof c=="function"&&(c=c(e),s=!1),n!==void 0&&Et(c)&&(c=c[n%c.length],s=!1),c!==void 0))return i&&!s&&(i.cacheable=!1),c}function o9(t,e,n){const{min:i,max:s}=t,r=pm(e,(s-i)/2),o=(c,d)=>n&&c===0?0:c+d;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function Gs(t,e){return Object.assign(Object.create(t),e)}function W1(t,e=[""],n,i,s=()=>t[0]){const r=n||t;typeof i>"u"&&(i=Hm("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:s,override:c=>W1([c,...t],e,r,i)};return new Proxy(o,{deleteProperty(c,d){return delete c[d],delete c._keys,delete t[0][d],!0},get(c,d){return Lm(c,d,()=>m9(d,e,t,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(c,d){return Wm(c).includes(d)},ownKeys(c){return Wm(c)},set(c,d,h){const f=c._storage||(c._storage=s());return c[d]=f[d]=h,delete c._keys,!0}})}function Ma(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Pm(t,i),setContext:r=>Ma(t,r,n,i),override:r=>Ma(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,c){return Lm(r,o,()=>c9(r,o,c))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,c){return t[o]=c,delete r[o],!0}})}function Pm(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Us(n)?n:()=>n,isIndexable:Us(i)?i:()=>i}}const l9=(t,e)=>t?t+V1(e):e,Y1=(t,e)=>Ue(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Lm(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function c9(t,e,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=t;let c=i[e];return Us(c)&&o.isScriptable(e)&&(c=d9(e,c,t,n)),Et(c)&&c.length&&(c=u9(e,c,t,o.isIndexable)),Y1(e,c)&&(c=Ma(c,s,r&&r[e],o)),c}function d9(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:c}=n;if(c.has(t))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+t);c.add(t);let d=e(r,o||i);return c.delete(t),Y1(t,d)&&(d=j1(s._scopes,s,t,d)),d}function u9(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:c}=n;if(typeof r.index<"u"&&i(t))return e[r.index%e.length];if(Ue(e[0])){const d=e,h=s._scopes.filter(f=>f!==d);e=[];for(const f of d){const m=j1(h,s,t,f);e.push(Ma(m,r,o&&o[t],c))}}return e}function Fm(t,e,n){return Us(t)?t(e,n):t}const h9=(t,e)=>t===!0?e:typeof t=="string"?js(e,t):void 0;function f9(t,e,n,i,s){for(const r of e){const o=h9(n,r);if(o){t.add(o);const c=Fm(o._fallback,n,s);if(typeof c<"u"&&c!==n&&c!==i)return c}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function j1(t,e,n,i){const s=e._rootScopes,r=Fm(e._fallback,n,i),o=[...t,...s],c=new Set;c.add(i);let d=Rm(c,o,n,r||n,i);return d===null||typeof r<"u"&&r!==n&&(d=Rm(c,o,r,d,i),d===null)?!1:W1(Array.from(c),[""],s,r,()=>p9(e,n,i))}function Rm(t,e,n,i,s){for(;n;)n=f9(t,e,n,i,s);return n}function p9(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return Et(s)&&Ue(n)?n:s||{}}function m9(t,e,n,i){let s;for(const r of e)if(s=Hm(l9(r,t),n),typeof s<"u")return Y1(t,s)?j1(n,i,t,s):s}function Hm(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function Wm(t){let e=t._keys;return e||(e=t._keys=g9(t._scopes)),e}function g9(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}function Ym(t,e,n,i){const{iScale:s}=t,{key:r="r"}=this._parsing,o=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+n,f=e[h],o[c]={r:s.parse(js(f,r),h)};return o}const _9=Number.EPSILON||1e-14,Oa=(t,e)=>e<t.length&&!t[e].skip&&t[e],jm=t=>t==="x"?"y":"x";function y9(t,e,n,i){const s=t.skip?e:t,r=e,o=n.skip?e:n,c=A1(r,s),d=A1(o,r);let h=c/(c+d),f=d/(c+d);h=isNaN(h)?0:h,f=isNaN(f)?0:f;const m=i*h,g=i*f;return{previous:{x:r.x-m*(o.x-s.x),y:r.y-m*(o.y-s.y)},next:{x:r.x+g*(o.x-s.x),y:r.y+g*(o.y-s.y)}}}function v9(t,e,n){const i=t.length;let s,r,o,c,d,h=Oa(t,0);for(let f=0;f<i-1;++f)if(d=h,h=Oa(t,f+1),!(!d||!h)){if(il(e[f],0,_9)){n[f]=n[f+1]=0;continue}s=n[f]/e[f],r=n[f+1]/e[f],c=Math.pow(s,2)+Math.pow(r,2),!(c<=9)&&(o=3/Math.sqrt(c),n[f]=s*o*e[f],n[f+1]=r*o*e[f])}}function b9(t,e,n="x"){const i=jm(n),s=t.length;let r,o,c,d=Oa(t,0);for(let h=0;h<s;++h){if(o=c,c=d,d=Oa(t,h+1),!c)continue;const f=c[n],m=c[i];o&&(r=(f-o[n])/3,c[`cp1${n}`]=f-r,c[`cp1${i}`]=m-r*e[h]),d&&(r=(d[n]-f)/3,c[`cp2${n}`]=f+r,c[`cp2${i}`]=m+r*e[h])}}function w9(t,e="x"){const n=jm(e),i=t.length,s=Array(i).fill(0),r=Array(i);let o,c,d,h=Oa(t,0);for(o=0;o<i;++o)if(c=d,d=h,h=Oa(t,o+1),!!d){if(h){const f=h[e]-d[e];s[o]=f!==0?(h[n]-d[n])/f:0}r[o]=c?h?Ji(s[o-1])!==Ji(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}v9(t,s,r),b9(t,r,e)}function Xc(t,e,n){return Math.max(Math.min(t,n),e)}function k9(t,e){let n,i,s,r,o,c=_s(t[0],e);for(n=0,i=t.length;n<i;++n)o=r,r=c,c=n<i-1&&_s(t[n+1],e),r&&(s=t[n],o&&(s.cp1x=Xc(s.cp1x,e.left,e.right),s.cp1y=Xc(s.cp1y,e.top,e.bottom)),c&&(s.cp2x=Xc(s.cp2x,e.left,e.right),s.cp2y=Xc(s.cp2y,e.top,e.bottom)))}function C9(t,e,n,i,s){let r,o,c,d;if(e.spanGaps&&(t=t.filter(h=>!h.skip)),e.cubicInterpolationMode==="monotone")w9(t,s);else{let h=i?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)c=t[r],d=y9(h,c,t[Math.min(r+1,o-(i?0:1))%o],e.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}e.capBezierPoints&&k9(t,n)}function U1(){return typeof window<"u"&&typeof document<"u"}function q1(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Jc(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const Qc=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function x9(t,e){return Qc(t).getPropertyValue(e)}const S9=["top","right","bottom","left"];function Vr(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=S9[s];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const M9=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function O9(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:r}=i;let o=!1,c,d;if(M9(s,r,t.target))c=s,d=r;else{const h=e.getBoundingClientRect();c=i.clientX-h.left,d=i.clientY-h.top,o=!0}return{x:c,y:d,box:o}}function Ir(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=Qc(n),r=s.boxSizing==="border-box",o=Vr(s,"padding"),c=Vr(s,"border","width"),{x:d,y:h,box:f}=O9(t,n),m=o.left+(f&&c.left),g=o.top+(f&&c.top);let{width:y,height:b}=e;return r&&(y-=o.width+c.width,b-=o.height+c.height),{x:Math.round((d-m)/y*n.width/i),y:Math.round((h-g)/b*n.height/i)}}function D9(t,e,n){let i,s;if(e===void 0||n===void 0){const r=t&&q1(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),c=Qc(r),d=Vr(c,"border","width"),h=Vr(c,"padding");e=o.width-h.width-d.width,n=o.height-h.height-d.height,i=Jc(c.maxWidth,r,"clientWidth"),s=Jc(c.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:i||jc,maxHeight:s||jc}}const ed=t=>Math.round(t*10)/10;function E9(t,e,n,i){const s=Qc(t),r=Vr(s,"margin"),o=Jc(s.maxWidth,t,"clientWidth")||jc,c=Jc(s.maxHeight,t,"clientHeight")||jc,d=D9(t,e,n);let{width:h,height:f}=d;if(s.boxSizing==="content-box"){const g=Vr(s,"border","width"),y=Vr(s,"padding");h-=y.width+g.width,f-=y.height+g.height}return h=Math.max(0,h-r.width),f=Math.max(0,i?h/i:f-r.height),h=ed(Math.min(h,o,d.maxWidth)),f=ed(Math.min(f,c,d.maxHeight)),h&&!f&&(f=ed(h/2)),(e!==void 0||n!==void 0)&&i&&d.height&&f>d.height&&(f=d.height,h=ed(Math.floor(f*i))),{width:h,height:f}}function Um(t,e,n){const i=e||1,s=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(t.currentDevicePixelRatio=i,o.height=s,o.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const B9=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};U1()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function qm(t,e){const n=x9(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ar(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function T9(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function V9(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Ar(t,s,n),c=Ar(s,r,n),d=Ar(r,e,n),h=Ar(o,c,n),f=Ar(c,d,n);return Ar(h,f,n)}const I9=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},A9=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Da(t,e,n){return t?I9(e,n):A9()}function Gm(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Km(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Zm(t){return t==="angle"?{between:sl,compare:$w,normalize:ei}:{between:ms,compare:(e,n)=>e-n,normalize:e=>e}}function Xm({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:s}}function $9(t,e,n){const{property:i,start:s,end:r}=n,{between:o,normalize:c}=Zm(i),d=e.length;let{start:h,end:f,loop:m}=t,g,y;if(m){for(h+=d,f+=d,g=0,y=d;g<y&&o(c(e[h%d][i]),s,r);++g)h--,f--;h%=d,f%=d}return f<h&&(f+=d),{start:h,end:f,loop:m,style:t.style}}function Jm(t,e,n){if(!n)return[t];const{property:i,start:s,end:r}=n,o=e.length,{compare:c,between:d,normalize:h}=Zm(i),{start:f,end:m,loop:g,style:y}=$9(t,e,n),b=[];let k=!1,C=null,S,E,A;const x=()=>d(s,A,S)&&c(s,A)!==0,V=()=>c(r,S)===0||d(r,A,S),N=()=>k||x(),L=()=>!k||V();for(let F=f,q=f;F<=m;++F)E=e[F%o],!E.skip&&(S=h(E[i]),S!==A&&(k=d(S,s,r),C===null&&N()&&(C=c(S,s)===0?F:q),C!==null&&L()&&(b.push(Xm({start:C,end:F,loop:g,count:o,style:y})),C=null),q=F,A=S));return C!==null&&b.push(Xm({start:C,end:m,loop:g,count:o,style:y})),b}function Qm(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const r=Jm(i[s],t.points,e);r.length&&n.push(...r)}return n}function N9(t,e,n,i){let s=0,r=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(r+=s);r>s&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}function z9(t,e,n,i){const s=t.length,r=[];let o=e,c=t[e],d;for(d=e+1;d<=n;++d){const h=t[d%s];h.skip||h.stop?c.skip||(i=!1,r.push({start:e%s,end:(d-1)%s,loop:i}),e=o=h.stop?d:null):(o=d,c.skip&&(e=d)),c=h}return o!==null&&r.push({start:e%s,end:o%s,loop:i}),r}function P9(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const r=!!t._loop,{start:o,end:c}=N9(n,s,r,i);if(i===!0)return eg(t,[{start:o,end:c,loop:r}],n,e);const d=c<o?c+s:c,h=!!t._fullLoop&&o===0&&c===s-1;return eg(t,z9(n,o,d,h),n,e)}function eg(t,e,n,i){return!i||!i.setContext||!n?e:L9(t,e,n,i)}function L9(t,e,n,i){const s=t._chart.getContext(),r=tg(t.options),{_datasetIndex:o,options:{spanGaps:c}}=t,d=n.length,h=[];let f=r,m=e[0].start,g=m;function y(b,k,C,S){const E=c?-1:1;if(b!==k){for(b+=d;n[b%d].skip;)b-=E;for(;n[k%d].skip;)k+=E;b%d!==k%d&&(h.push({start:b%d,end:k%d,loop:C,style:S}),f=S,m=k%d)}}for(const b of e){m=c?m:b.start;let k=n[m%d],C;for(g=m+1;g<=b.end;g++){const S=n[g%d];C=tg(i.setContext(Gs(s,{type:"segment",p0:k,p1:S,p0DataIndex:(g-1)%d,p1DataIndex:g%d,datasetIndex:o}))),F9(C,f)&&y(m,g-1,b.loop,f),k=S,f=C}m<g-1&&y(m,g-1,b.loop,f)}return h}function tg(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function F9(t,e){if(!e)return!1;const n=[],i=function(s,r){return z1(r)?(n.includes(r)||n.push(r),n.indexOf(r)):r};return JSON.stringify(t,i)!==JSON.stringify(e,i)}/*!
32
32
  * Chart.js v4.4.3
33
33
  * https://www.chartjs.org
34
34
  * (c) 2024 Chart.js Contributors
35
35
  * Released under the MIT License
36
- */class R9{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(c=>c({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Mm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,c=!1,d;for(;o>=0;--o)d=r[o],d._active?(d._total>i.duration&&(i.duration=d._total),d.tick(e),c=!0):(r[o]=r[r.length-1],r.pop());c&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ys=new R9;const ng="transparent",H9={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Vm(t||ng),s=i.valid&&Vm(e||ng);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class W9{constructor(e,n,i,s){const r=n[i];s=cl([e.to,s,r,e.from]);const o=cl([e.from,r,s]);this._active=!0,this._fn=e.fn||H9[e.type||typeof o],this._easing=rl[e.easing]||rl.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=cl([e.to,n,s,e.from]),this._from=cl([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,c=this._to;let d;if(this._active=r!==c&&(o||n<i),!this._active){this._target[s]=c,this._notify(!0);return}if(n<0){this._target[s]=r;return}d=n/i%2,d=o&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[s]=this._fn(r,c,d)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ig{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Ue(e))return;const n=Object.keys(Wt.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const r=e[s];if(!Ue(r))return;const o={};for(const c of n)o[c]=r[c];(Et(r.properties)&&r.properties||[s]).forEach(c=>{(c===s||!i.has(c))&&i.set(c,o)})})}_animateOptions(e,n){const i=n.options,s=j9(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&Y9(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),c=Date.now();let d;for(d=o.length-1;d>=0;--d){const h=o[d];if(h.charAt(0)==="$")continue;if(h==="options"){s.push(...this._animateOptions(e,n));continue}const f=n[h];let m=r[h];const g=i.get(h);if(m)if(g&&m.active()){m.update(g,f,c);continue}else m.cancel();if(!g||!g.duration){e[h]=f;continue}r[h]=m=new W9(g,e,h,f),s.push(m)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return ys.add(this._chart,i),!0}}function Y9(t,e){const n=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const r=t[i[s]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function j9(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function sg(t,e){const n=t&&t.options||{},i=n.reverse,s=n.min===void 0?e:0,r=n.max===void 0?e:0;return{start:i?r:s,end:i?s:r}}function U9(t,e,n){if(n===!1)return!1;const i=sg(t,n),s=sg(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function q9(t){let e,n,i,s;return Ue(t)?(e=t.top,n=t.right,i=t.bottom,s=t.left):e=n=i=s=t,{top:e,right:n,bottom:i,left:s,disabled:t===!1}}function rg(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,r;for(s=0,r=i.length;s<r;++s)n.push(i[s].index);return n}function ag(t,e,n,i={}){const s=t.keys,r=i.mode==="single";let o,c,d,h;if(e!==null){for(o=0,c=s.length;o<c;++o){if(d=+s[o],d===n){if(i.all)continue;break}h=t.values[d],Ht(h)&&(r||e===0||Ji(e)===Ji(h))&&(e+=h)}return e}}function G9(t,e){const{iScale:n,vScale:i}=e,s=n.axis==="x"?"x":"y",r=i.axis==="x"?"x":"y",o=Object.keys(t),c=new Array(o.length);let d,h,f;for(d=0,h=o.length;d<h;++d)f=o[d],c[d]={[s]:f,[r]:t[f]};return c}function og(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function K9(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Z9(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function X9(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function lg(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const r=t[s.index];if(n&&r>0||!n&&r<0)return s.index}return null}function cg(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:c}=i,d=r.axis,h=o.axis,f=K9(r,o,i),m=e.length;let g;for(let y=0;y<m;++y){const b=e[y],{[d]:k,[h]:C}=b,S=b._stacks||(b._stacks={});g=S[h]=X9(s,f,k),g[c]=C,g._top=lg(g,o,!0,i.type),g._bottom=lg(g,o,!1,i.type);const E=g._visualValues||(g._visualValues={});E[c]=C}}function G1(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function J9(t,e){return Gs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Q9(t,e,n){return Gs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function dl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(!!i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const K1=t=>t==="reset"||t==="none",dg=(t,e)=>e?t:Object.assign({},t),ek=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:rg(n,!0),values:null};class Vi{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=og(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&dl(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(m,g,y,b)=>m==="x"?g:m==="r"?b:y,r=n.xAxisID=$e(i.xAxisID,G1(e,"x")),o=n.yAxisID=$e(i.yAxisID,G1(e,"y")),c=n.rAxisID=$e(i.rAxisID,G1(e,"r")),d=n.indexAxis,h=n.iAxisID=s(d,r,o,c),f=n.vAxisID=s(d,o,r,c);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&xm(this._data,this),e._stacked&&dl(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(Ue(n)){const s=this._cachedMeta;this._data=G9(n,s)}else if(i!==n){if(i){xm(i,this);const s=this._cachedMeta;dl(s),s._parsed=[]}n&&Object.isExtensible(n)&&Lw(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=og(n.vScale,n),n.stack!==i.stack&&(s=!0,dl(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&cg(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,c=r.axis;let d=e===0&&n===s.length?!0:i._sorted,h=e>0&&i._parsed[e-1],f,m,g;if(this._parsing===!1)i._parsed=s,i._sorted=!0,g=s;else{Et(s[e])?g=this.parseArrayData(i,s,e,n):Ue(s[e])?g=this.parseObjectData(i,s,e,n):g=this.parsePrimitiveData(i,s,e,n);const y=()=>m[c]===null||h&&m[c]<h[c];for(f=0;f<n;++f)i._parsed[f+e]=m=g[f],d&&(y()&&(d=!1),h=m);i._sorted=d}o&&cg(this,g)}parsePrimitiveData(e,n,i,s){const{iScale:r,vScale:o}=e,c=r.axis,d=o.axis,h=r.getLabels(),f=r===o,m=new Array(s);let g,y,b;for(g=0,y=s;g<y;++g)b=g+i,m[g]={[c]:f||r.parse(h[b],b),[d]:o.parse(n[b],b)};return m}parseArrayData(e,n,i,s){const{xScale:r,yScale:o}=e,c=new Array(s);let d,h,f,m;for(d=0,h=s;d<h;++d)f=d+i,m=n[f],c[d]={x:r.parse(m[0],f),y:o.parse(m[1],f)};return c}parseObjectData(e,n,i,s){const{xScale:r,yScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(s);let f,m,g,y;for(f=0,m=s;f<m;++f)g=f+i,y=n[g],h[f]={x:r.parse(js(y,c),g),y:o.parse(js(y,d),g)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const s=this.chart,r=this._cachedMeta,o=n[e.axis],c={keys:rg(s,!0),values:n._stacks[e.axis]._visualValues};return ag(c,o,r.index,{mode:i})}updateRangeFromParsed(e,n,i,s){const r=i[n.axis];let o=r===null?NaN:r;const c=s&&i._stacks[n.axis];s&&c&&(s.values=c,o=ag(s,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const i=this._cachedMeta,s=i._parsed,r=i._sorted&&e===i.iScale,o=s.length,c=this._getOtherScale(e),d=ek(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=Z9(c);let g,y;function b(){y=s[g];const k=y[c.axis];return!Ht(y[e.axis])||f>k||m<k}for(g=0;g<o&&!(!b()&&(this.updateRangeFromParsed(h,e,y,d),r));++g);if(r){for(g=o-1;g>=0;--g)if(!b()){this.updateRangeFromParsed(h,e,y,d);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s<r;++s)o=n[s][e.axis],Ht(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,s=n.vScale,r=this.getParsed(e);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=q9($e(this.options.clip,U9(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],r=n.chartArea,o=[],c=this._drawStart||0,d=this._drawCount||s.length-c,h=this.options.drawActiveElementsOnTop;let f;for(i.dataset&&i.dataset.draw(e,r,c,d),f=c;f<c+d;++f){const m=s[f];m.hidden||(m.active&&h?o.push(m):m.draw(e,r))}for(f=0;f<o.length;++f)o[f].draw(e,r)}getStyle(e,n){const i=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,n,i){const s=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=Q9(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=s.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=J9(this.chart.getContext(),this.index)),r.dataset=s,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=i,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",i){const s=n==="active",r=this._cachedDataOpts,o=e+"-"+n,c=r[o],d=this.enableOptionSharing&&nl(i);if(c)return dg(c,d);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,e),m=s?[`${e}Hover`,"hover",e,""]:[e,""],g=h.getOptionScopes(this.getDataset(),f),y=Object.keys(Wt.elements[e]),b=()=>this.getContext(i,s,n),k=h.resolveNamedOptions(g,y,b,m);return k.$shared&&(k.$shared=d,r[o]=Object.freeze(dg(k,d))),k}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,c=r[o];if(c)return c;let d;if(s.options.animation!==!1){const f=this.chart.config,m=f.datasetAnimationScopeKeys(this._type,n),g=f.getOptionScopes(this.getDataset(),m);d=f.createResolver(g,this.getContext(e,i,n))}const h=new ig(s,d&&d.animations);return d&&d._cacheable&&(r[o]=Object.freeze(h)),h}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||K1(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){K1(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!K1(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r<s&&this._removeElements(r,s-r)}_insertElements(e,n,i=!0){const s=this._cachedMeta,r=s.data,o=e+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=o;c--)h[c]=h[c-n]};for(d(r),c=e;c<o;++c)r[c]=new this.dataElementType;this._parsing&&d(s._parsed),this.parse(e,n),i&&this.updateElements(r,e,n,"reset")}updateElements(e,n,i,s){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(e,n);i._stacked&&dl(i,s)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,s]=e;this[n](i,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(Vi,"defaults",{}),ae(Vi,"datasetElementType",null),ae(Vi,"dataElementType",null);function tk(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let s=0,r=n.length;s<r;s++)i=i.concat(n[s].controller.getAllParsedValues(t));t._cache.$bar=Sm(i.sort((s,r)=>s-r))}return t._cache.$bar}function nk(t){const e=t.iScale,n=tk(e,t.type);let i=e._length,s,r,o,c;const d=()=>{o===32767||o===-32768||(nl(c)&&(i=Math.min(i,Math.abs(o-c)||i)),c=o)};for(s=0,r=n.length;s<r;++s)o=e.getPixelForValue(n[s]),d();for(c=void 0,s=0,r=e.ticks.length;s<r;++s)o=e.getPixelForTick(s),d();return i}function ik(t,e,n,i){const s=n.barThickness;let r,o;return Je(s)?(r=e.min*n.categoryPercentage,o=n.barPercentage):(r=s*i,o=1),{chunk:r/i,ratio:o,start:e.pixels[t]-r/2}}function sk(t,e,n,i){const s=e.pixels,r=s[t];let o=t>0?s[t-1]:null,c=t<s.length-1?s[t+1]:null;const d=n.categoryPercentage;o===null&&(o=r-(c===null?e.end-e.start:c-r)),c===null&&(c=r+r-o);const h=r-(r-Math.min(o,c))/2*d;return{chunk:Math.abs(c-o)/2*d/i,ratio:n.barPercentage,start:h}}function rk(t,e,n,i){const s=n.parse(t[0],i),r=n.parse(t[1],i),o=Math.min(s,r),c=Math.max(s,r);let d=o,h=c;Math.abs(o)>Math.abs(c)&&(d=c,h=o),e[n.axis]=h,e._custom={barStart:d,barEnd:h,start:s,end:r,min:o,max:c}}function ug(t,e,n,i){return Et(t)?rk(t,e,n,i):e[n.axis]=n.parse(t,i),e}function hg(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),c=s===r,d=[];let h,f,m,g;for(h=n,f=n+i;h<f;++h)g=e[h],m={},m[s.axis]=c||s.parse(o[h],h),d.push(ug(g,m,r,h));return d}function Z1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function ak(t,e,n){return t!==0?Ji(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function ok(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",r="start"):(s="start",r="end"),{start:n,end:i,reverse:e,top:s,bottom:r}}function lk(t,e,n,i){let s=e.borderSkipped;const r={};if(!s){t.borderSkipped=r;return}if(s===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:c,reverse:d,top:h,bottom:f}=ok(t);s==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=h:(n._bottom||0)===i?s=f:(r[fg(f,o,c,d)]=!0,s=h)),r[fg(s,o,c,d)]=!0,t.borderSkipped=r}function fg(t,e,n,i){return i?(t=ck(t,e,n),t=pg(t,n,e)):t=pg(t,e,n),t}function ck(t,e,n){return t===e?n:t===n?e:t}function pg(t,e,n){return t==="start"?e:t==="end"?n:t}function dk(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class ul extends Vi{parsePrimitiveData(e,n,i,s){return hg(e,n,i,s)}parseArrayData(e,n,i,s){return hg(e,n,i,s)}parseObjectData(e,n,i,s){const{iScale:r,vScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=r.axis==="x"?c:d,f=o.axis==="x"?c:d,m=[];let g,y,b,k;for(g=i,y=i+s;g<y;++g)k=n[g],b={},b[r.axis]=r.parse(js(k,h),g),m.push(ug(js(k,f),b,o,g));return m}updateRangeFromParsed(e,n,i,s){super.updateRangeFromParsed(e,n,i,s);const r=i._custom;r&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:i,vScale:s}=n,r=this.getParsed(e),o=r._custom,c=Z1(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,i,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),f=this._getRuler(),{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,s);for(let y=n;y<n+i;y++){const b=this.getParsed(y),k=r||Je(b[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(y),C=this._calculateBarIndexPixels(y,f),S=(b._stacks||{})[c.axis],E={horizontal:h,base:k.base,enableBorderRadius:!S||Z1(b._custom)||o===S._top||o===S._bottom,x:h?k.head:C.center,y:h?C.center:k.head,height:h?C.size:Math.abs(k.size),width:h?Math.abs(k.size):C.size};g&&(E.options=m||this.resolveDataElementOptions(y,e[y].active?"active":s));const A=E.options||e[y].options;lk(E,A,S,o),dk(E,A,f.ratio),this.updateElement(e[y],y,E,s)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),r=i.options.stacked,o=[],c=d=>{const h=d.controller.getParsed(n),f=h&&h[d.vScale.axis];if(Je(f)||isNaN(f))return!0};for(const d of s)if(!(n!==void 0&&c(d))&&((r===!1||o.indexOf(d.stack)===-1||r===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r<o;++r)s.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const c=e.barThickness;return{min:c||nk(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:r,minBarLength:o}}=this,c=r||0,d=this.getParsed(e),h=d._custom,f=Z1(h);let m=d[n.axis],g=0,y=i?this.applyStack(n,d,i):m,b,k;y!==m&&(g=y-m,y=m),f&&(m=h.barStart,y=h.barEnd-h.barStart,m!==0&&Ji(m)!==Ji(h.barEnd)&&(g=0),g+=m);const C=!Je(r)&&!f?r:g;let S=n.getPixelForValue(C);if(this.chart.getDataVisibility(e)?b=n.getPixelForValue(g+y):b=S,k=b-S,Math.abs(k)<o){k=ak(k,n,c)*o,m===c&&(S-=k/2);const E=n.getPixelForDecimal(0),A=n.getPixelForDecimal(1),x=Math.min(E,A),V=Math.max(E,A);S=Math.max(Math.min(S,V),x),b=S+k,i&&!f&&(d._stacks[n.axis]._visualValues[s]=n.getValueForPixel(b)-n.getValueForPixel(S))}if(S===n.getPixelForValue(c)){const E=Ji(k)*n.getLineWidthForValue(c)/2;S+=E,k-=E}return{size:k,base:S,head:b,center:b+k/2}}_calculateBarIndexPixels(e,n){const i=n.scale,s=this.options,r=s.skipNull,o=$e(s.maxBarThickness,1/0);let c,d;if(n.grouped){const h=r?this._getStackCount(e):n.stackCount,f=s.barThickness==="flex"?sk(e,n,s,h):ik(e,n,s,h),m=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);c=f.start+f.chunk*m+f.chunk/2,d=Math.min(o,f.chunk*f.ratio)}else c=i.getPixelForValue(this.getParsed(e)[i.axis],e),d=Math.min(o,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,s=i.length;let r=0;for(;r<s;++r)this.getParsed(r)[n.axis]!==null&&!i[r].hidden&&i[r].draw(this._ctx)}}ae(ul,"id","bar"),ae(ul,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(ul,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class td extends Vi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,s){const r=super.parsePrimitiveData(e,n,i,s);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+i).radius;return r}parseArrayData(e,n,i,s){const r=super.parseArrayData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c[2],this.resolveDataElementOptions(o+i).radius)}return r}parseObjectData(e,n,i,s){const r=super.parseObjectData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c&&c.r&&+c.r,this.resolveDataElementOptions(o+i).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let i=e.length-1;i>=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y),h=o._custom;return{label:i[e]||"",value:"("+c+", "+d+(h?", "+h:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,s),f=o.axis,m=c.axis;for(let g=n;g<n+i;g++){const y=e[g],b=!r&&this.getParsed(g),k={},C=k[f]=r?o.getPixelForDecimal(.5):o.getPixelForValue(b[f]),S=k[m]=r?c.getBasePixel():c.getPixelForValue(b[m]);k.skip=isNaN(C)||isNaN(S),h&&(k.options=d||this.resolveDataElementOptions(g,y.active?"active":s),r&&(k.options.radius=0)),this.updateElement(y,g,k,s)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let s=super.resolveDataElementOptions(e,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const r=s.radius;return n!=="active"&&(s.radius=0),s.radius+=$e(i&&i._custom,r),s}}ae(td,"id","bubble"),ae(td,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ae(td,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function uk(t,e,n){let i=1,s=1,r=0,o=0;if(e<Tt){const c=t,d=c+e,h=Math.cos(c),f=Math.sin(c),m=Math.cos(d),g=Math.sin(d),y=(A,x,V)=>sl(A,c,d,!0)?1:Math.max(x,x*n,V,V*n),b=(A,x,V)=>sl(A,c,d,!0)?-1:Math.min(x,x*n,V,V*n),k=y(0,h,m),C=y(Ut,f,g),S=b(Bt,h,m),E=b(Bt+Ut,f,g);i=(k-S)/2,s=(C-E)/2,r=-(k+S)/2,o=-(C+E)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class Ks extends Vi{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=d=>+i[d];if(Ue(i[e])){const{key:d="value"}=this._parsing;r=h=>+js(i[h],d)}let o,c;for(o=e,c=e+n;o<c;++o)s._parsed[o]=r(o)}}_getRotation(){return Ti(this.options.rotation-90)}_getCircumference(){return Ti(this.options.circumference)}_getRotationExtents(){let e=Tt,n=-Tt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,r=s._getRotation(),o=s._getCircumference();e=Math.min(e,r),n=Math.max(n,r+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,c=Math.max((Math.min(i.width,i.height)-o)/2,0),d=Math.min(Sw(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:f,rotation:m}=this._getRotationExtents(),{ratioX:g,ratioY:y,offsetX:b,offsetY:k}=uk(m,f,d),C=(i.width-o)/g,S=(i.height-o)/y,E=Math.max(Math.min(C,S)/2,0),A=pm(this.options.radius,E),x=Math.max(A*d,0),V=(A-x)/this._getVisibleDatasetWeightTotal();this.offsetX=b*A,this.offsetY=k*A,s.total=this.calculateTotal(),this.outerRadius=A-V*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-V*h,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Tt)}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,c=o.chartArea,h=o.options.animation,f=(c.left+c.right)/2,m=(c.top+c.bottom)/2,g=r&&h.animateScale,y=g?0:this.innerRadius,b=g?0:this.outerRadius,{sharedOptions:k,includeOptions:C}=this._getSharedOptions(n,s);let S=this._getRotation(),E;for(E=0;E<n;++E)S+=this._circumference(E,r);for(E=n;E<n+i;++E){const A=this._circumference(E,r),x=e[E],V={x:f+this.offsetX,y:m+this.offsetY,startAngle:S,endAngle:S+A,circumference:A,outerRadius:b,innerRadius:y};C&&(V.options=k||this.resolveDataElementOptions(E,x.active?"active":s)),S+=A,this.updateElement(x,E,V,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,s;for(s=0;s<n.length;s++){const r=e._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Tt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=al(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,c,d;if(!e){for(s=0,r=i.data.datasets.length;s<r;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),e=o.data,c=o.controller;break}}if(!e)return 0;for(s=0,r=e.length;s<r;++s)d=c.resolveDataElementOptions(s),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,s=e.length;i<s;++i){const r=this.resolveDataElementOptions(i);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(e){return Math.max($e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Ks,"id","doughnut"),ae(Ks,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(Ks,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ae(Ks,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class hl extends Vi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:c,count:d}=Dm(n,s,o);this._drawStart=c,this._drawCount=d,Em(n)&&(c=0,d=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=s;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:h},e),this.updateElements(s,c,d,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:m}=this._getSharedOptions(n,s),g=o.axis,y=c.axis,{spanGaps:b,segment:k}=this.options,C=Sa(b)?b:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||r||s==="none",E=n+i,A=e.length;let x=n>0&&this.getParsed(n-1);for(let V=0;V<A;++V){const N=e[V],L=S?N:{};if(V<n||V>=E){L.skip=!0;continue}const F=this.getParsed(V),q=Je(F[y]),ee=L[g]=o.getPixelForValue(F[g],V),ne=L[y]=r||q?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,F,d):F[y],V);L.skip=isNaN(ee)||isNaN(ne)||q,L.stop=V>0&&Math.abs(F[g]-x[g])>C,k&&(L.parsed=F,L.raw=h.data[V]),m&&(L.options=f||this.resolveDataElementOptions(V,N.active?"active":s)),S||this.updateElement(N,V,L,s),x=F}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ae(hl,"id","line"),ae(hl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(hl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ea extends Vi{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=al(n._parsed[e].r,i.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,i,s){return Ym.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),c=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,d=o.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,m=h.yCenter,g=h.getIndexAngle(0)-.5*Bt;let y=g,b;const k=360/this.countVisibleElements();for(b=0;b<n;++b)y+=this._computeAngle(b,s,k);for(b=n;b<n+i;b++){const C=e[b];let S=y,E=y+this._computeAngle(b,s,k),A=o.getDataVisibility(b)?h.getDistanceFromCenterForValue(this.getParsed(b).r):0;y=E,r&&(d.animateScale&&(A=0),d.animateRotate&&(S=E=g));const x={x:f,y:m,innerRadius:0,outerRadius:A,startAngle:S,endAngle:E,options:this.resolveDataElementOptions(b,C.active?"active":s)};this.updateElement(C,b,x,s)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?Ti(this.resolveDataElementOptions(e,n).angle||i):0}}ae(Ea,"id","polarArea"),ae(Ea,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class nd extends Ks{}ae(nd,"id","pie"),ae(nd,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class id extends Vi{getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,s){return Ym.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const c={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,c,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let c=n;c<n+i;c++){const d=e[c],h=this.resolveDataElementOptions(c,d.active?"active":s),f=r.getPointPositionForValue(c,this.getParsed(c).r),m=o?r.xCenter:f.x,g=o?r.yCenter:f.y,y={x:m,y:g,angle:f.angle,skip:isNaN(m)||isNaN(g),options:h};this.updateElement(d,c,y,s)}}}ae(id,"id","radar"),ae(id,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ae(id,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class sd extends Vi{getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y);return{label:i[e]||"",value:"("+c+", "+d+")"}}update(e){const n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:o}=Dm(n,i,s);if(this._drawStart=r,this._drawCount=o,Em(n)&&(r=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=n;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=i;const h=this.resolveDatasetElementOptions(e);h.segment=this.options.segment,this.updateElement(c,void 0,{animated:!s,options:h},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,r,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(f),g=this.includeOptions(s,m),y=o.axis,b=c.axis,{spanGaps:k,segment:C}=this.options,S=Sa(k)?k:Number.POSITIVE_INFINITY,E=this.chart._animationsDisabled||r||s==="none";let A=n>0&&this.getParsed(n-1);for(let x=n;x<n+i;++x){const V=e[x],N=this.getParsed(x),L=E?V:{},F=Je(N[b]),q=L[y]=o.getPixelForValue(N[y],x),ee=L[b]=r||F?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,N,d):N[b],x);L.skip=isNaN(q)||isNaN(ee)||F,L.stop=x>0&&Math.abs(N[y]-A[y])>S,C&&(L.parsed=N,L.raw=h.data[x]),g&&(L.options=m||this.resolveDataElementOptions(x,V.active?"active":s)),E||this.updateElement(V,x,L,s),A=N}this.updateSharedOptions(m,s,f)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let c=0;for(let d=n.length-1;d>=0;--d)c=Math.max(c,n[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const i=e.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}ae(sd,"id","scatter"),ae(sd,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(sd,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var hk=Object.freeze({__proto__:null,BarController:ul,BubbleController:td,DoughnutController:Ks,LineController:hl,PieController:nd,PolarAreaController:Ea,RadarController:id,ScatterController:sd});function $r(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class X1{constructor(e){ae(this,"options");this.options=e||{}}static override(e){Object.assign(X1.prototype,e)}init(){}formats(){return $r()}parse(){return $r()}format(){return $r()}add(){return $r()}diff(){return $r()}startOf(){return $r()}endOf(){return $r()}}var mg={_date:X1};function fk(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,c=s._cachedMeta.iScale;if(c&&e===c.axis&&e!=="r"&&o&&r.length){const d=c._reversePixels?zw:gs;if(i){if(s._sharedOptions){const h=r[0],f=typeof h.getRange=="function"&&h.getRange(e);if(f){const m=d(r,e,n-f),g=d(r,e,n+f);return{lo:m.lo,hi:g.hi}}}}else return d(r,e,n)}return{lo:0,hi:r.length-1}}function fl(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let c=0,d=r.length;c<d;++c){const{index:h,data:f}=r[c],{lo:m,hi:g}=fk(r[c],e,o,s);for(let y=m;y<=g;++y){const b=f[y];b.skip||i(b,h,y)}}}function pk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,s){const r=e?Math.abs(i.x-s.x):0,o=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function J1(t,e,n,i,s){const r=[];return!s&&!t.isPointInArea(e)||fl(t,n,e,function(c,d,h){!s&&!_s(c,t.chartArea,0)||c.inRange(e.x,e.y,i)&&r.push({element:c,datasetIndex:d,index:h})},!0),r}function mk(t,e,n,i){let s=[];function r(o,c,d){const{startAngle:h,endAngle:f}=o.getProps(["startAngle","endAngle"],i),{angle:m}=km(o,{x:e.x,y:e.y});sl(m,h,f)&&s.push({element:o,datasetIndex:c,index:d})}return fl(t,n,e,r),s}function gk(t,e,n,i,s,r){let o=[];const c=pk(n);let d=Number.POSITIVE_INFINITY;function h(f,m,g){const y=f.inRange(e.x,e.y,s);if(i&&!y)return;const b=f.getCenterPoint(s);if(!(!!r||t.isPointInArea(b))&&!y)return;const C=c(e,b);C<d?(o=[{element:f,datasetIndex:m,index:g}],d=C):C===d&&o.push({element:f,datasetIndex:m,index:g})}return fl(t,n,e,h),o}function Q1(t,e,n,i,s,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!i?mk(t,e,n,s):gk(t,e,n,i,s,r)}function gg(t,e,n,i,s){const r=[],o=n==="x"?"inXRange":"inYRange";let c=!1;return fl(t,n,e,(d,h,f)=>{d[o](e[n],s)&&(r.push({element:d,datasetIndex:h,index:f}),c=c||d.inRange(e.x,e.y,s))}),i&&!c?[]:r}var _k={evaluateInteractionItems:fl,modes:{index(t,e,n,i){const s=Ir(e,t),r=n.axis||"x",o=n.includeInvisible||!1,c=n.intersect?J1(t,s,r,i,o):Q1(t,s,r,!1,i,o),d=[];return c.length?(t.getSortedVisibleDatasetMetas().forEach(h=>{const f=c[0].index,m=h.data[f];m&&!m.skip&&d.push({element:m,datasetIndex:h.index,index:f})}),d):[]},dataset(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let c=n.intersect?J1(t,s,r,i,o):Q1(t,s,r,!1,i,o);if(c.length>0){const d=c[0].datasetIndex,h=t.getDatasetMeta(d).data;c=[];for(let f=0;f<h.length;++f)c.push({element:h[f],datasetIndex:d,index:f})}return c},point(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return J1(t,s,r,i,o)},nearest(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return Q1(t,s,r,n.intersect,i,o)},x(t,e,n,i){const s=Ir(e,t);return gg(t,s,"x",n.intersect,i)},y(t,e,n,i){const s=Ir(e,t);return gg(t,s,"y",n.intersect,i)}}};const _g=["left","top","right","bottom"];function pl(t,e){return t.filter(n=>n.pos===e)}function yg(t,e){return t.filter(n=>_g.indexOf(n.pos)===-1&&n.box.axis===e)}function ml(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function yk(t){const e=[];let n,i,s,r,o,c;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],{position:r,options:{stack:o,stackWeight:c=1}}=s,e.push({index:n,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:c});return e}function vk(t){const e={};for(const n of t){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!_g.includes(s))continue;const o=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function bk(t,e){const n=vk(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let r,o,c;for(r=0,o=t.length;r<o;++r){c=t[r];const{fullSize:d}=c.box,h=n[c.stack],f=h&&c.stackWeight/h.weight;c.horizontal?(c.width=f?f*i:d&&e.availableWidth,c.height=s):(c.width=i,c.height=f?f*s:d&&e.availableHeight)}return n}function wk(t){const e=yk(t),n=ml(e.filter(h=>h.box.fullSize),!0),i=ml(pl(e,"left"),!0),s=ml(pl(e,"right")),r=ml(pl(e,"top"),!0),o=ml(pl(e,"bottom")),c=yg(e,"x"),d=yg(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(d).concat(o).concat(c),chartArea:pl(e,"chartArea"),vertical:i.concat(s).concat(d),horizontal:r.concat(o).concat(c)}}function vg(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function bg(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function kk(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!Ue(s)){n.size&&(t[s]-=n.size);const m=i[n.stack]||{size:0,count:1};m.size=Math.max(m.size,n.horizontal?r.height:r.width),n.size=m.size/m.count,t[s]+=n.size}r.getPadding&&bg(o,r.getPadding());const c=Math.max(0,e.outerWidth-vg(o,t,"left","right")),d=Math.max(0,e.outerHeight-vg(o,t,"top","bottom")),h=c!==t.w,f=d!==t.h;return t.w=c,t.h=d,n.horizontal?{same:h,other:f}:{same:f,other:h}}function Ck(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function xk(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function gl(t,e,n,i){const s=[];let r,o,c,d,h,f;for(r=0,o=t.length,h=0;r<o;++r){c=t[r],d=c.box,d.update(c.width||e.w,c.height||e.h,xk(c.horizontal,e));const{same:m,other:g}=kk(e,n,c,i);h|=m&&s.length,f=f||g,d.fullSize||s.push(c)}return h&&gl(s,e,n,i)||f}function rd(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function wg(t,e,n,i){const s=n.padding;let{x:r,y:o}=e;for(const c of t){const d=c.box,h=i[c.stack]||{count:1,placed:0,weight:1},f=c.stackWeight/h.weight||1;if(c.horizontal){const m=e.w*f,g=h.size||d.height;nl(h.start)&&(o=h.start),d.fullSize?rd(d,s.left,o,n.outerWidth-s.right-s.left,g):rd(d,e.left+h.placed,o,m,g),h.start=o,h.placed+=m,o=d.bottom}else{const m=e.h*f,g=h.size||d.width;nl(h.start)&&(r=h.start),d.fullSize?rd(d,r,s.top,g,n.outerHeight-s.bottom-s.top):rd(d,r,e.top+h.placed,g,m),h.start=r,h.placed+=m,r=d.right}}e.x=r,e.y=o}var bn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const s=vn(t.options.layout.padding),r=Math.max(e-s.width,0),o=Math.max(n-s.height,0),c=wk(t.boxes),d=c.vertical,h=c.horizontal;ut(t.boxes,k=>{typeof k.beforeLayout=="function"&&k.beforeLayout()});const f=d.reduce((k,C)=>C.box.options&&C.box.options.display===!1?k:k+1,0)||1,m=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/f,hBoxMaxHeight:o/2}),g=Object.assign({},s);bg(g,vn(i));const y=Object.assign({maxPadding:g,w:r,h:o,x:s.left,y:s.top},s),b=bk(d.concat(h),m);gl(c.fullSize,y,m,b),gl(d,y,m,b),gl(h,y,m,b)&&gl(d,y,m,b),Ck(y),wg(c.leftAndTop,y,m,b),y.x+=y.w,y.y+=y.h,wg(c.rightAndBottom,y,m,b),t.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},ut(c.chartArea,k=>{const C=k.box;Object.assign(C,t.chartArea),C.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class kg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class Sk extends kg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ad="$chartjs",Mk={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cg=t=>t===null||t==="";function Ok(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[ad]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Cg(s)){const r=qm(t,"width");r!==void 0&&(t.width=r)}if(Cg(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=qm(t,"height");r!==void 0&&(t.height=r)}return t}const xg=B9?{passive:!0}:!1;function Dk(t,e,n){t&&t.addEventListener(e,n,xg)}function Ek(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,xg)}function Bk(t,e){const n=Mk[t.type]||t.type,{x:i,y:s}=Ir(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function od(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Tk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||od(c.addedNodes,i),o=o&&!od(c.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Vk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||od(c.removedNodes,i),o=o&&!od(c.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const _l=new Map;let Sg=0;function Mg(){const t=window.devicePixelRatio;t!==Sg&&(Sg=t,_l.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ik(t,e){_l.size||window.addEventListener("resize",Mg),_l.set(t,e)}function Ak(t){_l.delete(t),_l.size||window.removeEventListener("resize",Mg)}function $k(t,e,n){const i=t.canvas,s=i&&q1(i);if(!s)return;const r=Om((c,d)=>{const h=s.clientWidth;n(c,d),h<s.clientWidth&&n()},window),o=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,f=d.contentRect.height;h===0&&f===0||r(h,f)});return o.observe(s),Ik(t,r),o}function eh(t,e,n){n&&n.disconnect(),e==="resize"&&Ak(t)}function Nk(t,e,n){const i=t.canvas,s=Om(r=>{t.ctx!==null&&n(Bk(r,t))},t);return Dk(i,e,s),s}class zk extends kg{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Ok(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[ad])return!1;const i=n[ad].initial;["height","width"].forEach(r=>{const o=i[r];Je(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[ad],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:Tk,detach:Vk,resize:$k}[n]||Nk;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:eh,detach:eh,resize:eh}[n]||Ek)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return E9(e,n,i,s)}isAttached(e){const n=e&&q1(e);return!!(n&&n.isConnected)}}function Pk(t){return!U1()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Sk:zk}class Ii{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Sa(this.x)&&Sa(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}}ae(Ii,"defaults",{}),ae(Ii,"defaultRoutes");function Lk(t,e){const n=t.options.ticks,i=Fk(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?Hk(e):[],o=r.length,c=r[0],d=r[o-1],h=[];if(o>s)return Wk(e,h,r,o/s),h;const f=Rk(r,e,s);if(o>0){let m,g;const y=o>1?Math.round((d-c)/(o-1)):null;for(ld(e,h,f,Je(y)?0:c-y,c),m=0,g=o-1;m<g;m++)ld(e,h,f,r[m],r[m+1]);return ld(e,h,f,d,Je(y)?e.length:d+y),h}return ld(e,h,f),h}function Fk(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}function Rk(t,e,n){const i=Yk(t),s=e.length/n;if(!i)return Math.max(s,1);const r=Iw(i);for(let o=0,c=r.length-1;o<c;o++){const d=r[o];if(d>s)return d}return Math.max(s,1)}function Hk(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function Wk(t,e,n,i){let s=0,r=n[0],o;for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),s++,r=n[s*i])}function ld(t,e,n,i,s){const r=$e(i,0),o=Math.min($e(s,t.length),t.length);let c=0,d,h,f;for(n=Math.ceil(n),s&&(d=s-i,n=d/Math.floor(d/n)),f=r;f<0;)c++,f=Math.round(r+c*n);for(h=Math.max(r,0);h<o;h++)h===f&&(e.push(t[h]),c++,f=Math.round(r+c*n))}function Yk(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const jk=t=>t==="left"?"right":t==="right"?"left":t,Og=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Dg=(t,e)=>Math.min(e||t,t);function Eg(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;r<s;r+=i)n.push(t[Math.floor(r)]);return n}function Uk(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),r=t._startPixel,o=t._endPixel,c=1e-6;let d=t.getPixelForTick(s),h;if(!(n&&(i===1?h=Math.max(d-r,o-d):e===0?h=(t.getPixelForTick(1)-d)/2:h=(d-t.getPixelForTick(s-1))/2,d+=s<e?h:-h,d<r-c||d>o+c)))return d}function qk(t,e){ut(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;r<s;++r)delete n.data[i[r]];i.splice(0,s)}})}function yl(t){return t.drawTicks?t.tickLength:0}function Bg(t,e){if(!t.display)return 0;const n=en(t.font,e),i=vn(t.padding);return(Et(t.text)?t.text.length:1)*n.lineHeight+i.height}function Gk(t,e){return Gs(t,{scale:e,type:"scale"})}function Kk(t,e,n){return Gs(t,{tick:n,index:e,type:"tick"})}function Zk(t,e,n){let i=N1(t);return(n&&e!=="right"||!n&&e==="right")&&(i=jk(i)),i}function Xk(t,e,n,i){const{top:s,left:r,bottom:o,right:c,chart:d}=t,{chartArea:h,scales:f}=d;let m=0,g,y,b;const k=o-s,C=c-r;if(t.isHorizontal()){if(y=yn(i,r,c),Ue(n)){const S=Object.keys(n)[0],E=n[S];b=f[S].getPixelForValue(E)+k-e}else n==="center"?b=(h.bottom+h.top)/2+k-e:b=Og(t,n,e);g=c-r}else{if(Ue(n)){const S=Object.keys(n)[0],E=n[S];y=f[S].getPixelForValue(E)-C+e}else n==="center"?y=(h.left+h.right)/2-C+e:y=Og(t,n,e);b=yn(i,o,s),m=n==="left"?-Ut:Ut}return{titleX:y,titleY:b,maxWidth:g,rotation:m}}class Nr extends Ii{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return e=Qn(e,Number.POSITIVE_INFINITY),n=Qn(n,Number.NEGATIVE_INFINITY),i=Qn(i,Number.POSITIVE_INFINITY),s=Qn(s,Number.NEGATIVE_INFINITY),{min:Qn(e,i),max:Qn(n,s),minDefined:Ht(e),maxDefined:Ht(n)}}getMinMax(e){let{min:n,max:i,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:n,max:i};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)o=c[d].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),r||(i=Math.max(i,o.max));return n=r&&n>i?i:n,i=s&&n>i?n:i,{min:Qn(n,Qn(i,n)),max:Qn(i,Qn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mt(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,c=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=o9(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?Eg(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Lk(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,e=!e),this._startPixel=n,this._endPixel=i,this._reversePixels=e,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Mt(this.options.afterUpdate,[this])}beforeSetDimensions(){Mt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Mt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Mt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Mt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,s,r;for(i=0,s=e.length;i<s;i++)r=e[i],r.label=Mt(n.callback,[r.value,i,e],this)}afterTickToLabelConversion(){Mt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Mt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=Dg(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,r=n.maxRotation;let o=s,c,d,h;if(!this._isVisible()||!n.display||s>=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const f=this._getLabelSizes(),m=f.widest.width,g=f.highest.height,y=dn(this.chart.width-m,0,this.maxWidth);c=e.offset?this.maxWidth/i:y/(i-1),m+6>c&&(c=y/(i-(e.offset?.5:1)),d=this.maxHeight-yl(e.grid)-n.padding-Bg(e.title,this.chart.options.font),h=Math.sqrt(m*m+g*g),o=I1(Math.min(Math.asin(dn((f.highest.height+6)/c,-1,1)),Math.asin(dn(d/h,-1,1))-Math.asin(dn(g/h,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){Mt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),c=this.isHorizontal();if(o){const d=Bg(s,n.options.font);if(c?(e.width=this.maxWidth,e.height=yl(r)+d):(e.height=this.maxHeight,e.width=yl(r)+d),i.display&&this.ticks.length){const{first:h,last:f,widest:m,highest:g}=this._getLabelSizes(),y=i.padding*2,b=Ti(this.labelRotation),k=Math.cos(b),C=Math.sin(b);if(c){const S=i.mirror?0:C*m.width+k*g.height;e.height=Math.min(this.maxHeight,e.height+S+y)}else{const S=i.mirror?0:k*m.width+C*g.height;e.width=Math.min(this.maxWidth,e.width+S+y)}this._calculatePadding(h,f,C,k)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,s){const{ticks:{align:r,padding:o},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,y=0;d?h?(g=s*e.width,y=i*n.height):(g=i*e.height,y=s*n.width):r==="start"?y=n.width:r==="end"?g=e.width:r!=="inner"&&(g=e.width/2,y=n.width/2),this.paddingLeft=Math.max((g-f+o)*this.width/(this.width-f),0),this.paddingRight=Math.max((y-m+o)*this.width/(this.width-m),0)}else{let f=n.height/2,m=e.height/2;r==="start"?(f=0,m=e.height):r==="end"&&(f=n.height,m=0),this.paddingTop=f+o,this.paddingBottom=m+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n<i;n++)Je(e[n].label)&&(e.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=Eg(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,i){const{ctx:s,_longestTextCache:r}=this,o=[],c=[],d=Math.floor(n/Dg(n,i));let h=0,f=0,m,g,y,b,k,C,S,E,A,x,V;for(m=0;m<n;m+=d){if(b=e[m].label,k=this._resolveTickFontOptions(m),s.font=C=k.string,S=r[C]=r[C]||{data:{},gc:[]},E=k.lineHeight,A=x=0,!Je(b)&&!Et(b))A=Gc(s,S.data,S.gc,A,b),x=E;else if(Et(b))for(g=0,y=b.length;g<y;++g)V=b[g],!Je(V)&&!Et(V)&&(A=Gc(s,S.data,S.gc,A,V),x+=E);o.push(A),c.push(x),h=Math.max(A,h),f=Math.max(x,f)}qk(r,n);const N=o.indexOf(h),L=c.indexOf(f),F=q=>({width:o[q]||0,height:c[q]||0});return{first:F(0),last:F(n-1),widest:F(N),highest:F(L),widths:o,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Nw(this._alignToPixels?Er(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const i=n[e];return i.$context||(i.$context=Kk(this.getContext(),e,i))}return this.$context||(this.$context=Gk(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ti(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,c=r?r.widest.width+o:0,d=r?r.highest.height+o:0;return this.isHorizontal()?d*i>c*s?c/i:d/s:d*s<c*i?d/i:c/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:c}=s,d=r.offset,h=this.isHorizontal(),m=this.ticks.length+(d?1:0),g=yl(r),y=[],b=c.setContext(this.getContext()),k=b.display?b.width:0,C=k/2,S=function(he){return Er(i,he,k)};let E,A,x,V,N,L,F,q,ee,ne,K,ie;if(o==="top")E=S(this.bottom),L=this.bottom-g,q=E-C,ne=S(e.top)+C,ie=e.bottom;else if(o==="bottom")E=S(this.top),ne=e.top,ie=S(e.bottom)-C,L=E+C,q=this.top+g;else if(o==="left")E=S(this.right),N=this.right-g,F=E-C,ee=S(e.left)+C,K=e.right;else if(o==="right")E=S(this.left),ee=e.left,K=S(e.right)-C,N=E+C,F=this.left+g;else if(n==="x"){if(o==="center")E=S((e.top+e.bottom)/2+.5);else if(Ue(o)){const he=Object.keys(o)[0],fe=o[he];E=S(this.chart.scales[he].getPixelForValue(fe))}ne=e.top,ie=e.bottom,L=E+C,q=L+g}else if(n==="y"){if(o==="center")E=S((e.left+e.right)/2);else if(Ue(o)){const he=Object.keys(o)[0],fe=o[he];E=S(this.chart.scales[he].getPixelForValue(fe))}N=E-C,F=N-g,ee=e.left,K=e.right}const me=$e(s.ticks.maxTicksLimit,m),J=Math.max(1,Math.ceil(m/me));for(A=0;A<m;A+=J){const he=this.getContext(A),fe=r.setContext(he),ye=c.setContext(he),we=fe.lineWidth,R=fe.color,pe=ye.dash||[],oe=ye.dashOffset,Ee=fe.tickWidth,Me=fe.tickColor,ge=fe.tickBorderDash||[],Ne=fe.tickBorderDashOffset;x=Uk(this,A,d),x!==void 0&&(V=Er(i,x,we),h?N=F=ee=K=V:L=q=ne=ie=V,y.push({tx1:N,ty1:L,tx2:F,ty2:q,x1:ee,y1:ne,x2:K,y2:ie,width:we,color:R,borderDash:pe,borderDashOffset:oe,tickWidth:Ee,tickColor:Me,tickBorderDash:ge,tickBorderDashOffset:Ne}))}return this._ticksLength=m,this._borderValue=E,y}_computeLabelItems(e){const n=this.axis,i=this.options,{position:s,ticks:r}=i,o=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:f,mirror:m}=r,g=yl(i.grid),y=g+f,b=m?-f:y,k=-Ti(this.labelRotation),C=[];let S,E,A,x,V,N,L,F,q,ee,ne,K,ie="middle";if(s==="top")N=this.bottom-b,L=this._getXAxisLabelAlignment();else if(s==="bottom")N=this.top+b,L=this._getXAxisLabelAlignment();else if(s==="left"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,V=J.x}else if(s==="right"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,V=J.x}else if(n==="x"){if(s==="center")N=(e.top+e.bottom)/2+y;else if(Ue(s)){const J=Object.keys(s)[0],he=s[J];N=this.chart.scales[J].getPixelForValue(he)+y}L=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")V=(e.left+e.right)/2-y;else if(Ue(s)){const J=Object.keys(s)[0],he=s[J];V=this.chart.scales[J].getPixelForValue(he)}L=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(d==="start"?ie="top":d==="end"&&(ie="bottom"));const me=this._getLabelSizes();for(S=0,E=c.length;S<E;++S){A=c[S],x=A.label;const J=r.setContext(this.getContext(S));F=this.getPixelForTick(S)+r.labelOffset,q=this._resolveTickFontOptions(S),ee=q.lineHeight,ne=Et(x)?x.length:1;const he=ne/2,fe=J.color,ye=J.textStrokeColor,we=J.textStrokeWidth;let R=L;o?(V=F,L==="inner"&&(S===E-1?R=this.options.reverse?"left":"right":S===0?R=this.options.reverse?"right":"left":R="center"),s==="top"?h==="near"||k!==0?K=-ne*ee+ee/2:h==="center"?K=-me.highest.height/2-he*ee+ee:K=-me.highest.height+ee/2:h==="near"||k!==0?K=ee/2:h==="center"?K=me.highest.height/2-he*ee:K=me.highest.height-ne*ee,m&&(K*=-1),k!==0&&!J.showLabelBackdrop&&(V+=ee/2*Math.sin(k))):(N=F,K=(1-ne)*ee/2);let pe;if(J.showLabelBackdrop){const oe=vn(J.backdropPadding),Ee=me.heights[S],Me=me.widths[S];let ge=K-oe.top,Ne=0-oe.left;switch(ie){case"middle":ge-=Ee/2;break;case"bottom":ge-=Ee;break}switch(L){case"center":Ne-=Me/2;break;case"right":Ne-=Me;break;case"inner":S===E-1?Ne-=Me:S>0&&(Ne-=Me/2);break}pe={left:Ne,top:ge,width:Me+oe.width,height:Ee+oe.height,color:J.backdropColor}}C.push({label:x,font:q,textOffset:K,options:{rotation:k,color:fe,strokeColor:ye,strokeWidth:we,textAlign:R,textBaseline:ie,translation:[V,N],backdrop:pe}})}return C}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ti(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),c=e+r,d=o.widest.width;let h,f;return n==="left"?s?(f=this.right+r,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f+=d)):(f=this.right-c,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f=this.left)):n==="right"?s?(f=this.left+r,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f-=d)):(f=this.left+c,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const c=(d,h,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(d.x,d.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r<o;++r){const d=s[r];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:i,grid:s}}=this,r=i.setContext(this.getContext()),o=i.display?r.width:0;if(!o)return;const c=s.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,f,m,g;this.isHorizontal()?(h=Er(e,this.left,o)-o/2,f=Er(e,this.right,c)+c/2,m=g=d):(m=Er(e,this.top,o)-o/2,g=Er(e,this.bottom,c)+c/2,h=f=d),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(h,m),n.lineTo(f,g),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Kc(i,s);const r=this.getLabelItems(e);for(const o of r){const c=o.options,d=o.font,h=o.label,f=o.textOffset;Br(i,h,0,f,d,c)}s&&Zc(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const r=en(i.font),o=vn(i.padding),c=i.align;let d=r.lineHeight/2;n==="bottom"||n==="center"||Ue(n)?(d+=o.bottom,Et(i.text)&&(d+=r.lineHeight*(i.text.length-1))):d+=o.top;const{titleX:h,titleY:f,maxWidth:m,rotation:g}=Xk(this,d,n,c);Br(e,i.text,0,0,r,{color:i.color,maxWidth:m,rotation:g,textAlign:Zk(c,n,s),textBaseline:"middle",translation:[h,f]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,i=$e(e.grid&&e.grid.z,-1),s=$e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Nr.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r<o;++r){const c=n[r];c[i]===this.id&&(!e||c.type===e)&&s.push(c)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return en(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class cd{constructor(e,n,i){this.type=e,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let i;eC(n)&&(i=this.register(n));const s=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in s||(s[r]=e,Jk(e,o,i),this.override&&Wt.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,s=this.scope;i in n&&delete n[i],s&&i in Wt[s]&&(delete Wt[s][i],this.override&&delete Dr[i])}}function Jk(t,e,n){const i=el(Object.create(null),[n?Wt.get(n):{},Wt.get(e),t.defaults]);Wt.set(e,i),t.defaultRoutes&&Qk(e,t.defaultRoutes),t.descriptors&&Wt.describe(e,t.descriptors)}function Qk(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),c=o.pop(),d=o.join(".");Wt.route(r,s,d,c)})}function eC(t){return"id"in t&&"defaults"in t}class tC{constructor(){this.controllers=new cd(Vi,"datasets",!0),this.elements=new cd(Ii,"elements"),this.plugins=new cd(Object,"plugins"),this.scales=new cd(Nr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):ut(s,o=>{const c=i||this._getRegistryForType(o);this._exec(e,c,o)})})}_exec(e,n,i){const s=V1(e);Mt(i["before"+s],[],i),n[e](i),Mt(i["after"+s],[],i)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(e))return i}return this.plugins}_get(e,n,i){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return s}}var Qi=new tC;class nC{constructor(){this._init=[]}notify(e,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(r,e,n,i);return n==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,i,s){s=s||{};for(const r of e){const o=r.plugin,c=o[i],d=[n,s,r.options];if(Mt(c,d,o)===!1&&s.cancelable)return!1}return!0}invalidate(){Je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const i=e&&e.config,s=$e(i.options&&i.options.plugins,{}),r=iC(i);return s===!1&&!n?[]:rC(e,r,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,s=(r,o)=>r.filter(c=>!o.some(d=>c.plugin.id===d.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function iC(t){const e={},n=[],i=Object.keys(Qi.plugins.items);for(let r=0;r<i.length;r++)n.push(Qi.getPlugin(i[r]));const s=t.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function sC(t,e){return!e&&t===!1?null:t===!0?{}:t}function rC(t,{plugins:e,localIds:n},i,s){const r=[],o=t.getContext();for(const c of e){const d=c.id,h=sC(i[d],s);h!==null&&r.push({plugin:c,options:aC(t.config,{plugin:c,local:n[d]},h,o)})}return r}function aC(t,{plugin:e,local:n},i,s){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(i,r);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function th(t,e){const n=Wt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function oC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function lC(t,e){return t===e?"_index_":"_value_"}function Tg(t){if(t==="x"||t==="y"||t==="r")return t}function cC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function nh(t,...e){if(Tg(t))return t;for(const n of e){const i=n.axis||cC(n.position)||t.length>1&&Tg(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vg(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function dC(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return Vg(t,"x",n[0])||Vg(t,"y",n[0])}return{}}function uC(t,e){const n=Dr[t.type]||{scales:{}},i=e.scales||{},s=th(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const c=i[o];if(!Ue(c))return console.error(`Invalid scale configuration for scale: ${o}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const d=nh(o,c,dC(o,t),Wt.scales[c.type]),h=lC(d,s),f=n.scales||{};r[o]=tl(Object.create(null),[{axis:d},c,f[d],f[h]])}),t.data.datasets.forEach(o=>{const c=o.type||t.type,d=o.indexAxis||th(c,e),f=(Dr[c]||{}).scales||{};Object.keys(f).forEach(m=>{const g=oC(m,d),y=o[g+"AxisID"]||g;r[y]=r[y]||Object.create(null),tl(r[y],[{axis:g},i[y],f[m]])})}),Object.keys(r).forEach(o=>{const c=r[o];tl(c,[Wt.scales[c.type],Wt.scale])}),r}function Ig(t){const e=t.options||(t.options={});e.plugins=$e(e.plugins,{}),e.scales=uC(t,e)}function Ag(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function hC(t){return t=t||{},t.data=Ag(t.data),Ig(t),t}const $g=new Map,Ng=new Set;function dd(t,e){let n=$g.get(t);return n||(n=e(),$g.set(t,n),Ng.add(n)),n}const vl=(t,e,n)=>{const i=js(e,n);i!==void 0&&t.add(i)};class fC{constructor(e){this._config=hC(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Ag(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ig(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return dd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return dd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return dd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return dd(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),c=o.get(n);if(c)return c;const d=new Set;n.forEach(f=>{e&&(d.add(e),f.forEach(m=>vl(d,e,m))),f.forEach(m=>vl(d,s,m)),f.forEach(m=>vl(d,Dr[r]||{},m)),f.forEach(m=>vl(d,Wt,m)),f.forEach(m=>vl(d,L1,m))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),Ng.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,Dr[n]||{},Wt.datasets[n]||{},{type:n},Wt,L1]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:c}=zg(this._resolverCache,e,s);let d=o;if(mC(o,n)){r.$shared=!1,i=Us(i)?i():i;const h=this.createResolver(e,i,c);d=Ma(o,i,h)}for(const h of n)r[h]=d[h];return r}createResolver(e,n,i=[""],s){const{resolver:r}=zg(this._resolverCache,e,i);return Ue(n)?Ma(r,n,void 0,s):r}}function zg(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:W1(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},i.set(s,r)),r}const pC=t=>Ue(t)&&Object.getOwnPropertyNames(t).some(e=>Us(t[e]));function mC(t,e){const{isScriptable:n,isIndexable:i}=Pm(t);for(const s of e){const r=n(s),o=i(s),c=(o||r)&&t[s];if(r&&(Us(c)||pC(c))||o&&Et(c))return!0}return!1}var gC="4.4.3";const _C=["top","bottom","left","right","chartArea"];function Pg(t,e){return t==="top"||t==="bottom"||_C.indexOf(t)===-1&&e==="x"}function Lg(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Fg(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Mt(n&&n.onComplete,[t],e)}function yC(t){const e=t.chart,n=e.options.animation;Mt(n&&n.onProgress,[t],e)}function Rg(t){return U1()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ud={},Hg=t=>{const e=Rg(t);return Object.values(ud).filter(n=>n.canvas===e).pop()};function vC(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function bC(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function hd(t,e,n){return t.options.clip?t[n]:e[n]}function wC(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:hd(n,e,"left"),right:hd(n,e,"right"),top:hd(i,e,"top"),bottom:hd(i,e,"bottom")}:e}class pi{static register(...e){Qi.add(...e),Wg()}static unregister(...e){Qi.remove(...e),Wg()}constructor(e,n){const i=this.config=new fC(n),s=Rg(e),r=Hg(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Pk(s)),this.platform.updateConfig(i);const c=this.platform.acquireContext(s,o.aspectRatio),d=c&&c.canvas,h=d&&d.height,f=d&&d.width;if(this.id=xw(),this.ctx=c,this.canvas=d,this.width=f,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new nC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Fw(m=>this.update(m),o.resizeDelay||0),this._dataChanges=[],ud[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}ys.listen(this,"complete",Fg),ys.listen(this,"progress",yC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return Je(e)?n&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Um(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return $m(this.canvas,this.ctx),this}stop(){return ys.stop(this),this}resize(e,n){ys.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),c=i.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Um(this,c,!0)&&(this.notifyPlugins("resize",{size:o}),Mt(i.onResize,[this,o],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ut(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,c)=>(o[c]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const c=n[o],d=nh(o,c),h=d==="r",f=d==="x";return{options:c,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),ut(r,o=>{const c=o.options,d=c.id,h=nh(d,c),f=$e(c.type,o.dtype);(c.position===void 0||Pg(c.position,h)!==Pg(o.dposition))&&(c.position=o.dposition),s[d]=!0;let m=null;if(d in i&&i[d].type===f)m=i[d];else{const g=Qi.getScale(f);m=new g({id:d,type:f,ctx:this.ctx,chart:this}),i[m.id]=m}m.init(c,e)}),ut(s,(o,c)=>{o||delete i[c]}),ut(i,o=>{bn.configure(this,o,o.options),bn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(Lg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const r=n[i];let o=this.getDatasetMeta(i);const c=r.type||this.config.type;if(o.type&&o.type!==c&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=c,o.indexAxis=r.indexAxis||th(c,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const d=Qi.getController(c),{datasetElementType:h,dataElementType:f}=Wt.datasets[c];Object.assign(d,{dataElementType:Qi.getElement(f),datasetElementType:h&&Qi.getElement(h)}),o.controller=new d(this,i),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){ut(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:m}=this.getDatasetMeta(h),g=!s&&r.indexOf(m)===-1;m.buildOrUpdateElements(g),o=Math.max(+m.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||ut(r,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Lg("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){ut(this.scales,e=>{bn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!_m(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;vC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,c)=>c+","+o.splice(1).join(","))),s=i(0);for(let r=1;r<n;r++)if(!_m(s,i(r)))return;return Array.from(s).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],ut(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Us(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),s={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ys.has(this)?this.attached&&!ys.running(this)&&ys.start(this):(this.draw(),Fg({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resize(i,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,i=[];let s,r;for(s=0,r=n.length;s<r;++s){const o=n[s];(!e||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,s=!i.disabled,r=wC(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Kc(n,{left:i.left===!1?0:r.left-i.left,right:i.right===!1?this.width:r.right+i.right,top:i.top===!1?0:r.top-i.top,bottom:i.bottom===!1?this.height:r.bottom+i.bottom}),e.controller.draw(),s&&Zc(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return _s(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=_k.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Gs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);nl(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(c=>c.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),ys.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),$m(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ud[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,i=(r,o)=>{n.addEventListener(this,r,o),e[r]=o},s=(r,o,c)=>{r.offsetX=o,r.offsetY=c,this._eventHandler(r)};ut(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(d,h)=>{n.addEventListener(this,d,h),e[d]=h},s=(d,h)=>{e[d]&&(n.removeEventListener(this,d,h),delete e[d])},r=(d,h)=>{this.canvas&&this.resize(d,h)};let o;const c=()=>{s("attach",c),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",c)},n.isAttached(this.canvas)?c():o()}unbindEvents(){ut(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},ut(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,c,d;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){o=e[c];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:r,index:o})=>{const c=this.getDatasetMeta(r);if(!c)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:c.data[o],index:o}});!Wc(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(d,h)=>d.filter(f=>!h.some(m=>f.datasetIndex===m.datasetIndex&&f.index===m.index)),o=r(n,e),c=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),c.length&&s.mode&&this.updateHoverStyle(c,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,c=this._getActiveElements(e,s,i,o),d=Bw(e),h=bC(e,this._lastEvent,i,d);i&&(this._lastEvent=null,Mt(r.onHover,[e,c,this],this),d&&Mt(r.onClick,[e,c,this],this));const f=!Wc(c,s);return(f||n)&&(this._active=c,this._updateHoverStyles(c,s,n)),this._lastEvent=h,f}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}}ae(pi,"defaults",Wt),ae(pi,"instances",ud),ae(pi,"overrides",Dr),ae(pi,"registry",Qi),ae(pi,"version",gC),ae(pi,"getChart",Hg);function Wg(){return ut(pi.instances,t=>t._plugins.invalidate())}function kC(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:c,innerRadius:d}=e;let h=s/c;t.beginPath(),t.arc(r,o,c,i-h,n+h),d>s?(h=s/d,t.arc(r,o,d,n+h,i-h,!0)):t.arc(r,o,s,n+Ut,i-Ut),t.closePath(),t.clip()}function CC(t){return H1(t,["outerStart","outerEnd","innerStart","innerEnd"])}function xC(t,e,n,i){const s=CC(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),c=d=>{const h=(n-Math.min(r,d))*i/2;return dn(d,0,Math.min(r,h))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:dn(s.innerStart,0,o),innerEnd:dn(s.innerEnd,0,o)}}function Ba(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function fd(t,e,n,i,s,r){const{x:o,y:c,startAngle:d,pixelMargin:h,innerRadius:f}=e,m=Math.max(e.outerRadius+i+n-h,0),g=f>0?f+i+n+h:0;let y=0;const b=s-d;if(i){const J=f>0?f-i:0,he=m>0?m-i:0,fe=(J+he)/2,ye=fe!==0?b*fe/(fe+i):b;y=(b-ye)/2}const k=Math.max(.001,b*m-n/Bt)/m,C=(b-k)/2,S=d+C+y,E=s-C-y,{outerStart:A,outerEnd:x,innerStart:V,innerEnd:N}=xC(e,g,m,E-S),L=m-A,F=m-x,q=S+A/L,ee=E-x/F,ne=g+V,K=g+N,ie=S+V/ne,me=E-N/K;if(t.beginPath(),r){const J=(q+ee)/2;if(t.arc(o,c,m,q,J),t.arc(o,c,m,J,ee),x>0){const we=Ba(F,ee,o,c);t.arc(we.x,we.y,x,ee,E+Ut)}const he=Ba(K,E,o,c);if(t.lineTo(he.x,he.y),N>0){const we=Ba(K,me,o,c);t.arc(we.x,we.y,N,E+Ut,me+Math.PI)}const fe=(E-N/g+(S+V/g))/2;if(t.arc(o,c,g,E-N/g,fe,!0),t.arc(o,c,g,fe,S+V/g,!0),V>0){const we=Ba(ne,ie,o,c);t.arc(we.x,we.y,V,ie+Math.PI,S-Ut)}const ye=Ba(L,S,o,c);if(t.lineTo(ye.x,ye.y),A>0){const we=Ba(L,q,o,c);t.arc(we.x,we.y,A,S-Ut,q)}}else{t.moveTo(o,c);const J=Math.cos(q)*m+o,he=Math.sin(q)*m+c;t.lineTo(J,he);const fe=Math.cos(ee)*m+o,ye=Math.sin(ee)*m+c;t.lineTo(fe,ye)}t.closePath()}function SC(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c}=e;let d=e.endAngle;if(r){fd(t,e,n,i,d,s);for(let h=0;h<r;++h)t.fill();isNaN(c)||(d=o+(c%Tt||Tt))}return fd(t,e,n,i,d,s),t.fill(),d}function MC(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c,options:d}=e,{borderWidth:h,borderJoinStyle:f,borderDash:m,borderDashOffset:g}=d,y=d.borderAlign==="inner";if(!h)return;t.setLineDash(m||[]),t.lineDashOffset=g,y?(t.lineWidth=h*2,t.lineJoin=f||"round"):(t.lineWidth=h,t.lineJoin=f||"bevel");let b=e.endAngle;if(r){fd(t,e,n,i,b,s);for(let k=0;k<r;++k)t.stroke();isNaN(c)||(b=o+(c%Tt||Tt))}y&&kC(t,e,b),r||(fd(t,e,n,i,b,s),t.stroke())}class bl extends Ii{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.getProps(["x","y"],s),{angle:o,distance:c}=km(r,{x:n,y:i}),{startAngle:d,endAngle:h,innerRadius:f,outerRadius:m,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),y=(this.options.spacing+this.options.borderWidth)/2,k=$e(g,h-d)>=Tt||sl(o,d,h),C=ms(c,f+y,m+y);return k&&C}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:f}=this.options,m=(r+o)/2,g=(c+d+f+h)/2;return{x:i+Math.cos(m)*g,y:s+Math.sin(m)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>Tt?Math.floor(s/Tt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*r,Math.sin(d)*r);const h=1-Math.sin(Math.min(Bt,s||0)),f=r*h;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,SC(n,this,f,o,c),MC(n,this,f,o,c),n.restore()}}ae(bl,"id","arc"),ae(bl,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(bl,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(bl,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Yg(t,e,n=e){t.lineCap=$e(n.borderCapStyle,e.borderCapStyle),t.setLineDash($e(n.borderDash,e.borderDash)),t.lineDashOffset=$e(n.borderDashOffset,e.borderDashOffset),t.lineJoin=$e(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=$e(n.borderWidth,e.borderWidth),t.strokeStyle=$e(n.borderColor,e.borderColor)}function OC(t,e,n){t.lineTo(n.x,n.y)}function DC(t){return t.stepped?Jw:t.tension||t.cubicInterpolationMode==="monotone"?Qw:OC}function jg(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:c}=e,d=Math.max(s,o),h=Math.min(r,c),f=s<o&&r<o||s>c&&r>c;return{count:i,start:d,loop:e.loop,ilen:h<d&&!f?i+h-d:h-d}}function EC(t,e,n,i){const{points:s,options:r}=e,{count:o,start:c,loop:d,ilen:h}=jg(s,n,i),f=DC(r);let{move:m=!0,reverse:g}=i||{},y,b,k;for(y=0;y<=h;++y)b=s[(c+(g?h-y:y))%o],!b.skip&&(m?(t.moveTo(b.x,b.y),m=!1):f(t,k,b,g,r.stepped),k=b);return d&&(b=s[(c+(g?h:0))%o],f(t,k,b,g,r.stepped)),!!d}function BC(t,e,n,i){const s=e.points,{count:r,start:o,ilen:c}=jg(s,n,i),{move:d=!0,reverse:h}=i||{};let f=0,m=0,g,y,b,k,C,S;const E=x=>(o+(h?c-x:x))%r,A=()=>{k!==C&&(t.lineTo(f,C),t.lineTo(f,k),t.lineTo(f,S))};for(d&&(y=s[E(0)],t.moveTo(y.x,y.y)),g=0;g<=c;++g){if(y=s[E(g)],y.skip)continue;const x=y.x,V=y.y,N=x|0;N===b?(V<k?k=V:V>C&&(C=V),f=(m*f+x)/++m):(A(),t.lineTo(x,V),b=N,m=0,k=C=V),S=V}A()}function ih(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?BC:EC}function TC(t){return t.stepped?T9:t.tension||t.cubicInterpolationMode==="monotone"?V9:Ar}function VC(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),Yg(t,e.options),t.stroke(s)}function IC(t,e,n,i){const{segments:s,options:r}=e,o=ih(e);for(const c of s)Yg(t,r,c.style),t.beginPath(),o(t,e,c,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const AC=typeof Path2D=="function";function $C(t,e,n,i){AC&&!e.options.segment?VC(t,e,n,i):IC(t,e,n,i)}class Zs extends Ii{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;C9(this._points,i,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=P9(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,s=e[n],r=this.points,o=Qm(this,{property:n,start:s,end:s});if(!o.length)return;const c=[],d=TC(i);let h,f;for(h=0,f=o.length;h<f;++h){const{start:m,end:g}=o[h],y=r[m],b=r[g];if(y===b){c.push(y);continue}const k=Math.abs((s-y[n])/(b[n]-y[n])),C=d(y,b,k,i.stepped);C[n]=e[n],c.push(C)}return c.length===1?c[0]:c}pathSegment(e,n,i){return ih(this)(e,this,n,i)}path(e,n,i){const s=this.segments,r=ih(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const c of s)o&=r(e,this,c,{start:n,end:n+i-1});return!!o}draw(e,n,i,s){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),$C(e,this,i,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(Zs,"id","line"),ae(Zs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(Zs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(Zs,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Ug(t,e,n,i){const s=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<s.radius+s.hitRadius}class pd extends Ii{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.options,{x:o,y:c}=this.getProps(["x","y"],s);return Math.pow(n-o,2)+Math.pow(i-c,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(n,i){return Ug(this,n,"x",i)}inYRange(n,i){return Ug(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!_s(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,R1(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(pd,"id","point"),ae(pd,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(pd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function qg(t,e){const{x:n,y:i,base:s,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let c,d,h,f,m;return t.horizontal?(m=o/2,c=Math.min(n,s),d=Math.max(n,s),h=i-m,f=i+m):(m=r/2,c=n-m,d=n+m,h=Math.min(i,s),f=Math.max(i,s)),{left:c,top:h,right:d,bottom:f}}function Xs(t,e,n,i){return t?0:dn(e,n,i)}function NC(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,r=zm(i);return{t:Xs(s.top,r.top,0,n),r:Xs(s.right,r.right,0,e),b:Xs(s.bottom,r.bottom,0,n),l:Xs(s.left,r.left,0,e)}}function zC(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,r=Tr(s),o=Math.min(e,n),c=t.borderSkipped,d=i||Ue(s);return{topLeft:Xs(!d||c.top||c.left,r.topLeft,0,o),topRight:Xs(!d||c.top||c.right,r.topRight,0,o),bottomLeft:Xs(!d||c.bottom||c.left,r.bottomLeft,0,o),bottomRight:Xs(!d||c.bottom||c.right,r.bottomRight,0,o)}}function PC(t){const e=qg(t),n=e.right-e.left,i=e.bottom-e.top,s=NC(t,n/2,i/2),r=zC(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function sh(t,e,n,i){const s=e===null,r=n===null,c=t&&!(s&&r)&&qg(t,i);return c&&(s||ms(e,c.left,c.right))&&(r||ms(n,c.top,c.bottom))}function LC(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function FC(t,e){t.rect(e.x,e.y,e.w,e.h)}function rh(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+r,h:t.h+o,radius:t.radius}}class md extends Ii{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:r,outer:o}=PC(this),c=LC(o.radius)?ll:FC;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),c(e,rh(o,n,r)),e.clip(),c(e,rh(r,-n,o)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),c(e,rh(r,n)),e.fillStyle=s,e.fill(),e.restore()}inRange(e,n,i){return sh(this,e,n,i)}inXRange(e,n){return sh(this,e,null,n)}inYRange(e,n){return sh(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(n+s)/2:n,y:r?i:(i+s)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ae(md,"id","bar"),ae(md,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(md,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var RC=Object.freeze({__proto__:null,ArcElement:bl,BarElement:md,LineElement:Zs,PointElement:pd});const ah=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Gg=ah.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Kg(t){return ah[t%ah.length]}function Zg(t){return Gg[t%Gg.length]}function HC(t,e){return t.borderColor=Kg(e),t.backgroundColor=Zg(e),++e}function WC(t,e){return t.backgroundColor=t.data.map(()=>Kg(e++)),e}function YC(t,e){return t.backgroundColor=t.data.map(()=>Zg(e++)),e}function jC(t){let e=0;return(n,i)=>{const s=t.getDatasetMeta(i).controller;s instanceof Ks?e=WC(n,e):s instanceof Ea?e=YC(n,e):s&&(e=HC(n,e))}}function Xg(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function UC(t){return t&&(t.borderColor||t.backgroundColor)}var qC={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:s}=t.config,{elements:r}=s;if(!n.forceOverride&&(Xg(i)||UC(s)||r&&Xg(r)))return;const o=jC(t);i.forEach(o)}};function GC(t,e,n,i,s){const r=s.samples||i;if(r>=n)return t.slice(e,e+n);const o=[],c=(n-2)/(r-2);let d=0;const h=e+n-1;let f=e,m,g,y,b,k;for(o[d++]=t[f],m=0;m<r-2;m++){let C=0,S=0,E;const A=Math.floor((m+1)*c)+1+e,x=Math.min(Math.floor((m+2)*c)+1,n)+e,V=x-A;for(E=A;E<x;E++)C+=t[E].x,S+=t[E].y;C/=V,S/=V;const N=Math.floor(m*c)+1+e,L=Math.min(Math.floor((m+1)*c)+1,n)+e,{x:F,y:q}=t[f];for(y=b=-1,E=N;E<L;E++)b=.5*Math.abs((F-C)*(t[E].y-q)-(F-t[E].x)*(S-q)),b>y&&(y=b,g=t[E],k=E);o[d++]=g,f=k}return o[d++]=t[h],o}function KC(t,e,n,i){let s=0,r=0,o,c,d,h,f,m,g,y,b,k;const C=[],S=e+n-1,E=t[e].x,x=t[S].x-E;for(o=e;o<e+n;++o){c=t[o],d=(c.x-E)/x*i,h=c.y;const V=d|0;if(V===f)h<b?(b=h,m=o):h>k&&(k=h,g=o),s=(r*s+c.x)/++r;else{const N=o-1;if(!Je(m)&&!Je(g)){const L=Math.min(m,g),F=Math.max(m,g);L!==y&&L!==N&&C.push({...t[L],x:s}),F!==y&&F!==N&&C.push({...t[F],x:s})}o>0&&N!==y&&C.push(t[N]),C.push(c),f=V,r=0,b=k=h,m=g=y=o}}return C}function Jg(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Qg(t){t.data.datasets.forEach(e=>{Jg(e)})}function ZC(t,e){const n=e.length;let i=0,s;const{iScale:r}=t,{min:o,max:c,minDefined:d,maxDefined:h}=r.getUserBounds();return d&&(i=dn(gs(e,r.axis,o).lo,0,n-1)),h?s=dn(gs(e,r.axis,c).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var XC={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){Qg(t);return}const i=t.width;t.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:c}=s,d=t.getDatasetMeta(r),h=o||s.data;if(cl([c,t.options.indexAxis])==="y"||!d.controller.supportsDecimation)return;const f=t.scales[d.xAxisID];if(f.type!=="linear"&&f.type!=="time"||t.options.parsing)return;let{start:m,count:g}=ZC(d,h);const y=n.threshold||4*i;if(g<=y){Jg(s);return}Je(o)&&(s._data=h,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(k){this._data=k}}));let b;switch(n.algorithm){case"lttb":b=GC(h,m,g,i,n);break;case"min-max":b=KC(h,m,g,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=b})},destroy(t){Qg(t)}};function JC(t,e,n){const i=t.segments,s=t.points,r=e.points,o=[];for(const c of i){let{start:d,end:h}=c;h=lh(d,h,s);const f=oh(n,s[d],s[h],c.loop);if(!e.segments){o.push({source:c,target:f,start:s[d],end:s[h]});continue}const m=Qm(e,f);for(const g of m){const y=oh(n,r[g.start],r[g.end],g.loop),b=Jm(c,s,y);for(const k of b)o.push({source:k,target:g,start:{[n]:e2(f,y,"start",Math.max)},end:{[n]:e2(f,y,"end",Math.min)}})}}return o}function oh(t,e,n,i){if(i)return;let s=e[t],r=n[t];return t==="angle"&&(s=ei(s),r=ei(r)),{property:t,start:s,end:r}}function QC(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:c})=>{c=lh(o,c,s);const d=s[o],h=s[c];i!==null?(r.push({x:d.x,y:i}),r.push({x:h.x,y:i})):n!==null&&(r.push({x:n,y:d.y}),r.push({x:n,y:h.y}))}),r}function lh(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function e2(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function t2(t,e){let n=[],i=!1;return Et(t)?(i=!0,n=t):n=QC(t,e),n.length?new Zs({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function n2(t){return t&&t.fill!==!1}function ex(t,e,n){let s=t[e].fill;const r=[e];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!Ht(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function tx(t,e,n){const i=rx(t);if(Ue(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return Ht(s)&&Math.floor(s)===s?nx(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function nx(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function ix(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:Ue(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function sx(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:Ue(t)?i=t.value:i=e.getBaseValue(),i}function rx(t){const e=t.options,n=e.fill;let i=$e(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function ax(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,c=ox(e,n);c.push(t2({x:null,y:e.bottom},i));for(let d=0;d<r.length;d++){const h=r[d];for(let f=h.start;f<=h.end;f++)lx(s,o[f],c)}return new Zs({points:s,options:{}})}function ox(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let s=0;s<i.length;s++){const r=i[s];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}function lx(t,e,n){const i=[];for(let s=0;s<n.length;s++){const r=n[s],{first:o,last:c,point:d}=cx(r,e,"x");if(!(!d||o&&c)){if(o)i.unshift(d);else if(t.push(d),!c)break}}t.push(...i)}function cx(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const s=i[n],r=t.segments,o=t.points;let c=!1,d=!1;for(let h=0;h<r.length;h++){const f=r[h],m=o[f.start][n],g=o[f.end][n];if(ms(s,m,g)){c=s===m,d=s===g;break}}return{first:c,last:d,point:i}}class i2{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,i){const{x:s,y:r,radius:o}=this;return n=n||{start:0,end:Tt},e.arc(s,r,o,n.end,n.start,!0),!i.bounds}interpolate(e){const{x:n,y:i,radius:s}=this,r=e.angle;return{x:n+Math.cos(r)*s,y:i+Math.sin(r)*s,angle:r}}}function dx(t){const{chart:e,fill:n,line:i}=t;if(Ht(n))return ux(e,n);if(n==="stack")return ax(t);if(n==="shape")return!0;const s=hx(t);return s instanceof i2?s:t2(s,i)}function ux(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function hx(t){return(t.scale||{}).getPointPositionForValue?px(t):fx(t)}function fx(t){const{scale:e={},fill:n}=t,i=ix(n,e);if(Ht(i)){const s=e.isHorizontal();return{x:s?i:null,y:s?null:i}}return null}function px(t){const{scale:e,fill:n}=t,i=e.options,s=e.getLabels().length,r=i.reverse?e.max:e.min,o=sx(n,e,r),c=[];if(i.grid.circular){const d=e.getPointPositionForValue(0,r);return new i2({x:d.x,y:d.y,radius:e.getDistanceFromCenterForValue(o)})}for(let d=0;d<s;++d)c.push(e.getPointPositionForValue(d,o));return c}function ch(t,e,n){const i=dx(e),{line:s,scale:r,axis:o}=e,c=s.options,d=c.fill,h=c.backgroundColor,{above:f=h,below:m=h}=d||{};i&&s.points.length&&(Kc(t,n),mx(t,{line:s,target:i,above:f,below:m,area:n,scale:r,axis:o}),Zc(t))}function mx(t,e){const{line:n,target:i,above:s,below:r,area:o,scale:c}=e,d=n._loop?"angle":e.axis;t.save(),d==="x"&&r!==s&&(s2(t,i,o.top),r2(t,{line:n,target:i,color:s,scale:c,property:d}),t.restore(),t.save(),s2(t,i,o.bottom)),r2(t,{line:n,target:i,color:r,scale:c,property:d}),t.restore()}function s2(t,e,n){const{segments:i,points:s}=e;let r=!0,o=!1;t.beginPath();for(const c of i){const{start:d,end:h}=c,f=s[d],m=s[lh(d,h,s)];r?(t.moveTo(f.x,f.y),r=!1):(t.lineTo(f.x,n),t.lineTo(f.x,f.y)),o=!!e.pathSegment(t,c,{move:o}),o?t.closePath():t.lineTo(m.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function r2(t,e){const{line:n,target:i,property:s,color:r,scale:o}=e,c=JC(n,i,s);for(const{source:d,target:h,start:f,end:m}of c){const{style:{backgroundColor:g=r}={}}=d,y=i!==!0;t.save(),t.fillStyle=g,gx(t,o,y&&oh(s,f,m)),t.beginPath();const b=!!n.pathSegment(t,d);let k;if(y){b?t.closePath():a2(t,i,m,s);const C=!!i.pathSegment(t,h,{move:b,reverse:!0});k=b&&C,k||a2(t,i,f,s)}t.closePath(),t.fill(k?"evenodd":"nonzero"),t.restore()}}function gx(t,e,n){const{top:i,bottom:s}=e.chart.chartArea,{property:r,start:o,end:c}=n||{};r==="x"&&(t.beginPath(),t.rect(o,i,c-o,s-i),t.clip())}function a2(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}var _x={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,s=[];let r,o,c,d;for(o=0;o<i;++o)r=t.getDatasetMeta(o),c=r.dataset,d=null,c&&c.options&&c instanceof Zs&&(d={visible:t.isDatasetVisible(o),index:o,fill:tx(c,o,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:c}),r.$filler=d,s.push(d);for(o=0;o<i;++o)d=s[o],!(!d||d.fill===!1)&&(d.fill=ex(s,o,n.propagate))},beforeDraw(t,e,n){const i=n.drawTime==="beforeDraw",s=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let o=s.length-1;o>=0;--o){const c=s[o].$filler;!c||(c.line.updateControlPoints(r,c.axis),i&&c.fill&&ch(t.ctx,c,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;n2(r)&&ch(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!n2(i)||n.drawTime!=="beforeDatasetDraw"||ch(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const o2=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},yx=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class l2 extends Ii{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Mt(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=en(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=o2(i,r);let h,f;n.font=s.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(o,r,c,d)+10):(f=this.maxHeight,h=this._fitCols(o,s,c,d)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(f,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],f=s+c;let m=e;r.textAlign="left",r.textBaseline="middle";let g=-1,y=-f;return this.legendItems.forEach((b,k)=>{const C=i+n/2+r.measureText(b.text).width;(k===0||h[h.length-1]+C+2*c>o)&&(m+=f,h[h.length-(k>0?0:1)]=0,y+=f,g++),d[k]={left:0,top:y,row:g,width:C,height:s},h[h.length-1]+=C+c}),m}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],f=o-e;let m=c,g=0,y=0,b=0,k=0;return this.legendItems.forEach((C,S)=>{const{itemWidth:E,itemHeight:A}=vx(i,n,r,C,s);S>0&&y+A+2*c>f&&(m+=g+c,h.push({width:g,height:y}),b+=g+c,k++,g=y=0),d[S]={left:b,top:y,col:k,width:E,height:A},g=Math.max(g,E),y+=A+c}),m+=g,h.push({width:g,height:y}),m}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Da(r,this.left,this.width);if(this.isHorizontal()){let c=0,d=yn(i,this.left+s,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=yn(i,this.left+s,this.right-this.lineWidths[c])),h.top+=this.top+e+s,h.left=o.leftForLtr(o.x(d),h.width),d+=h.width+s}else{let c=0,d=yn(i,this.top+e+s,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=yn(i,this.top+e+s,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+s,h.left=o.leftForLtr(o.x(h.left),h.width),d+=h.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kc(e,this),this._draw(),Zc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,c=Wt.color,d=Da(e.rtl,this.left,this.width),h=en(o.font),{padding:f}=o,m=h.size,g=m/2;let y;this.drawTitle(),s.textAlign=d.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:b,boxHeight:k,itemHeight:C}=o2(o,m),S=function(N,L,F){if(isNaN(b)||b<=0||isNaN(k)||k<0)return;s.save();const q=$e(F.lineWidth,1);if(s.fillStyle=$e(F.fillStyle,c),s.lineCap=$e(F.lineCap,"butt"),s.lineDashOffset=$e(F.lineDashOffset,0),s.lineJoin=$e(F.lineJoin,"miter"),s.lineWidth=q,s.strokeStyle=$e(F.strokeStyle,c),s.setLineDash($e(F.lineDash,[])),o.usePointStyle){const ee={radius:k*Math.SQRT2/2,pointStyle:F.pointStyle,rotation:F.rotation,borderWidth:q},ne=d.xPlus(N,b/2),K=L+g;Nm(s,ee,ne,K,o.pointStyleWidth&&b)}else{const ee=L+Math.max((m-k)/2,0),ne=d.leftForLtr(N,b),K=Tr(F.borderRadius);s.beginPath(),Object.values(K).some(ie=>ie!==0)?ll(s,{x:ne,y:ee,w:b,h:k,radius:K}):s.rect(ne,ee,b,k),s.fill(),q!==0&&s.stroke()}s.restore()},E=function(N,L,F){Br(s,F.text,N,L+C/2,h,{strikethrough:F.hidden,textAlign:d.textAlign(F.textAlign)})},A=this.isHorizontal(),x=this._computeTitleHeight();A?y={x:yn(r,this.left+f,this.right-i[0]),y:this.top+f+x,line:0}:y={x:this.left+f,y:yn(r,this.top+x+f,this.bottom-n[0].height),line:0},Gm(this.ctx,e.textDirection);const V=C+f;this.legendItems.forEach((N,L)=>{s.strokeStyle=N.fontColor,s.fillStyle=N.fontColor;const F=s.measureText(N.text).width,q=d.textAlign(N.textAlign||(N.textAlign=o.textAlign)),ee=b+g+F;let ne=y.x,K=y.y;d.setWidth(this.width),A?L>0&&ne+ee+f>this.right&&(K=y.y+=V,y.line++,ne=y.x=yn(r,this.left+f,this.right-i[y.line])):L>0&&K+V>this.bottom&&(ne=y.x=ne+n[y.line].width+f,y.line++,K=y.y=yn(r,this.top+x+f,this.bottom-n[y.line].height));const ie=d.x(ne);if(S(ie,K,N),ne=Rw(q,ne+b+g,A?ne+ee:this.right,e.rtl),E(d.x(ne),K,N),A)y.x+=ee+f;else if(typeof N.text!="string"){const me=h.lineHeight;y.y+=c2(N,me)+f}else y.y+=V}),Km(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=en(n.font),s=vn(n.padding);if(!n.display)return;const r=Da(e.rtl,this.left,this.width),o=this.ctx,c=n.position,d=i.size/2,h=s.top+d;let f,m=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),f=this.top+h,m=yn(e.align,m,this.right-g);else{const b=this.columnSizes.reduce((k,C)=>Math.max(k,C.height),0);f=h+yn(e.align,this.top,this.bottom-b-e.labels.padding-this._computeTitleHeight())}const y=yn(c,m,m+g);o.textAlign=r.textAlign(N1(c)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,Br(o,n.text,y,f,i)}_computeTitleHeight(){const e=this.options.title,n=en(e.font),i=vn(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(ms(e,this.left,this.right)&&ms(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(s=r[i],ms(e,s.left,s.left+s.width)&&ms(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(e){const n=this.options;if(!kx(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,r=yx(s,i);s&&!r&&Mt(n.onLeave,[e,s,this],this),this._hoveredItem=i,i&&!r&&Mt(n.onHover,[e,i,this],this)}else i&&Mt(n.onClick,[e,i,this],this)}}function vx(t,e,n,i,s){const r=bx(i,t,e,n),o=wx(s,i,e.lineHeight);return{itemWidth:r,itemHeight:o}}function bx(t,e,n,i){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function wx(t,e,n){let i=t;return typeof e.text!="string"&&(i=c2(e,n)),i}function c2(t,e){const n=t.text?t.text.length:0;return e*n}function kx(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Cx={id:"legend",_element:l2,start(t,e,n){const i=t.legend=new l2({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i)},stop(t){bn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;bn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:c}}=t.legend.options;return t._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),f=vn(h.borderWidth);return{text:e[d.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:s||h.textAlign,borderRadius:o&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dh extends Ii{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Et(i.text)?i.text.length:1;this._padding=vn(i.padding);const r=s*en(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,c=o.align;let d=0,h,f,m;return this.isHorizontal()?(f=yn(c,i,r),m=n+e,h=r-i):(o.position==="left"?(f=i+e,m=yn(c,s,n),d=Bt*-.5):(f=r-e,m=yn(c,n,s),d=Bt*.5),h=s-n),{titleX:f,titleY:m,maxWidth:h,rotation:d}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=en(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(r);Br(e,n.text,0,0,i,{color:n.color,maxWidth:d,rotation:h,textAlign:N1(n.align),textBaseline:"middle",translation:[o,c]})}}function xx(t,e){const n=new dh({ctx:t.ctx,options:e,chart:t});bn.configure(t,n,e),bn.addBox(t,n),t.titleBlock=n}var Sx={id:"title",_element:dh,start(t,e,n){xx(t,n)},stop(t){const e=t.titleBlock;bn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gd=new WeakMap;var Mx={id:"subtitle",start(t,e,n){const i=new dh({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i),gd.set(t,i)},stop(t){bn.removeBox(t,gd.get(t)),gd.delete(t)},beforeUpdate(t,e,n){const i=gd.get(t);bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wl={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;e<n;++e){const c=t[e].element;if(c&&c.hasValue()){const d=c.tooltipPosition();i.add(d.x),s+=d.y,++r}}return{x:[...i].reduce((c,d)=>c+d)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,c;for(r=0,o=t.length;r<o;++r){const d=t[r].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),f=A1(e,h);f<s&&(s=f,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,i=d.y}return{x:n,y:i}}};function es(t,e){return e&&(Et(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vs(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
36
+ */class R9{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(c=>c({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Mm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,c=!1,d;for(;o>=0;--o)d=r[o],d._active?(d._total>i.duration&&(i.duration=d._total),d.tick(e),c=!0):(r[o]=r[r.length-1],r.pop());c&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ys=new R9;const ng="transparent",H9={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Vm(t||ng),s=i.valid&&Vm(e||ng);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class W9{constructor(e,n,i,s){const r=n[i];s=cl([e.to,s,r,e.from]);const o=cl([e.from,r,s]);this._active=!0,this._fn=e.fn||H9[e.type||typeof o],this._easing=rl[e.easing]||rl.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=cl([e.to,n,s,e.from]),this._from=cl([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,c=this._to;let d;if(this._active=r!==c&&(o||n<i),!this._active){this._target[s]=c,this._notify(!0);return}if(n<0){this._target[s]=r;return}d=n/i%2,d=o&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[s]=this._fn(r,c,d)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ig{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Ue(e))return;const n=Object.keys(Wt.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const r=e[s];if(!Ue(r))return;const o={};for(const c of n)o[c]=r[c];(Et(r.properties)&&r.properties||[s]).forEach(c=>{(c===s||!i.has(c))&&i.set(c,o)})})}_animateOptions(e,n){const i=n.options,s=j9(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&Y9(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),c=Date.now();let d;for(d=o.length-1;d>=0;--d){const h=o[d];if(h.charAt(0)==="$")continue;if(h==="options"){s.push(...this._animateOptions(e,n));continue}const f=n[h];let m=r[h];const g=i.get(h);if(m)if(g&&m.active()){m.update(g,f,c);continue}else m.cancel();if(!g||!g.duration){e[h]=f;continue}r[h]=m=new W9(g,e,h,f),s.push(m)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return ys.add(this._chart,i),!0}}function Y9(t,e){const n=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const r=t[i[s]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function j9(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function sg(t,e){const n=t&&t.options||{},i=n.reverse,s=n.min===void 0?e:0,r=n.max===void 0?e:0;return{start:i?r:s,end:i?s:r}}function U9(t,e,n){if(n===!1)return!1;const i=sg(t,n),s=sg(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function q9(t){let e,n,i,s;return Ue(t)?(e=t.top,n=t.right,i=t.bottom,s=t.left):e=n=i=s=t,{top:e,right:n,bottom:i,left:s,disabled:t===!1}}function rg(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,r;for(s=0,r=i.length;s<r;++s)n.push(i[s].index);return n}function ag(t,e,n,i={}){const s=t.keys,r=i.mode==="single";let o,c,d,h;if(e!==null){for(o=0,c=s.length;o<c;++o){if(d=+s[o],d===n){if(i.all)continue;break}h=t.values[d],Ht(h)&&(r||e===0||Ji(e)===Ji(h))&&(e+=h)}return e}}function G9(t,e){const{iScale:n,vScale:i}=e,s=n.axis==="x"?"x":"y",r=i.axis==="x"?"x":"y",o=Object.keys(t),c=new Array(o.length);let d,h,f;for(d=0,h=o.length;d<h;++d)f=o[d],c[d]={[s]:f,[r]:t[f]};return c}function og(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function K9(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Z9(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function X9(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function lg(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const r=t[s.index];if(n&&r>0||!n&&r<0)return s.index}return null}function cg(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:c}=i,d=r.axis,h=o.axis,f=K9(r,o,i),m=e.length;let g;for(let y=0;y<m;++y){const b=e[y],{[d]:k,[h]:C}=b,S=b._stacks||(b._stacks={});g=S[h]=X9(s,f,k),g[c]=C,g._top=lg(g,o,!0,i.type),g._bottom=lg(g,o,!1,i.type);const E=g._visualValues||(g._visualValues={});E[c]=C}}function G1(t,e){const n=t.scales;return Object.keys(n).filter(i=>n[i].axis===e).shift()}function J9(t,e){return Gs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Q9(t,e,n){return Gs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function dl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(!!i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const K1=t=>t==="reset"||t==="none",dg=(t,e)=>e?t:Object.assign({},t),ek=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:rg(n,!0),values:null};class Ii{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=og(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&dl(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(m,g,y,b)=>m==="x"?g:m==="r"?b:y,r=n.xAxisID=$e(i.xAxisID,G1(e,"x")),o=n.yAxisID=$e(i.yAxisID,G1(e,"y")),c=n.rAxisID=$e(i.rAxisID,G1(e,"r")),d=n.indexAxis,h=n.iAxisID=s(d,r,o,c),f=n.vAxisID=s(d,o,r,c);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&xm(this._data,this),e._stacked&&dl(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(Ue(n)){const s=this._cachedMeta;this._data=G9(n,s)}else if(i!==n){if(i){xm(i,this);const s=this._cachedMeta;dl(s),s._parsed=[]}n&&Object.isExtensible(n)&&Lw(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=og(n.vScale,n),n.stack!==i.stack&&(s=!0,dl(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&cg(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,c=r.axis;let d=e===0&&n===s.length?!0:i._sorted,h=e>0&&i._parsed[e-1],f,m,g;if(this._parsing===!1)i._parsed=s,i._sorted=!0,g=s;else{Et(s[e])?g=this.parseArrayData(i,s,e,n):Ue(s[e])?g=this.parseObjectData(i,s,e,n):g=this.parsePrimitiveData(i,s,e,n);const y=()=>m[c]===null||h&&m[c]<h[c];for(f=0;f<n;++f)i._parsed[f+e]=m=g[f],d&&(y()&&(d=!1),h=m);i._sorted=d}o&&cg(this,g)}parsePrimitiveData(e,n,i,s){const{iScale:r,vScale:o}=e,c=r.axis,d=o.axis,h=r.getLabels(),f=r===o,m=new Array(s);let g,y,b;for(g=0,y=s;g<y;++g)b=g+i,m[g]={[c]:f||r.parse(h[b],b),[d]:o.parse(n[b],b)};return m}parseArrayData(e,n,i,s){const{xScale:r,yScale:o}=e,c=new Array(s);let d,h,f,m;for(d=0,h=s;d<h;++d)f=d+i,m=n[f],c[d]={x:r.parse(m[0],f),y:o.parse(m[1],f)};return c}parseObjectData(e,n,i,s){const{xScale:r,yScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(s);let f,m,g,y;for(f=0,m=s;f<m;++f)g=f+i,y=n[g],h[f]={x:r.parse(js(y,c),g),y:o.parse(js(y,d),g)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,i){const s=this.chart,r=this._cachedMeta,o=n[e.axis],c={keys:rg(s,!0),values:n._stacks[e.axis]._visualValues};return ag(c,o,r.index,{mode:i})}updateRangeFromParsed(e,n,i,s){const r=i[n.axis];let o=r===null?NaN:r;const c=s&&i._stacks[n.axis];s&&c&&(s.values=c,o=ag(s,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const i=this._cachedMeta,s=i._parsed,r=i._sorted&&e===i.iScale,o=s.length,c=this._getOtherScale(e),d=ek(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=Z9(c);let g,y;function b(){y=s[g];const k=y[c.axis];return!Ht(y[e.axis])||f>k||m<k}for(g=0;g<o&&!(!b()&&(this.updateRangeFromParsed(h,e,y,d),r));++g);if(r){for(g=o-1;g>=0;--g)if(!b()){this.updateRangeFromParsed(h,e,y,d);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s<r;++s)o=n[s][e.axis],Ht(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,i=n.iScale,s=n.vScale,r=this.getParsed(e);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=q9($e(this.options.clip,U9(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],r=n.chartArea,o=[],c=this._drawStart||0,d=this._drawCount||s.length-c,h=this.options.drawActiveElementsOnTop;let f;for(i.dataset&&i.dataset.draw(e,r,c,d),f=c;f<c+d;++f){const m=s[f];m.hidden||(m.active&&h?o.push(m):m.draw(e,r))}for(f=0;f<o.length;++f)o[f].draw(e,r)}getStyle(e,n){const i=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,n,i){const s=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=Q9(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=s.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=J9(this.chart.getContext(),this.index)),r.dataset=s,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=i,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",i){const s=n==="active",r=this._cachedDataOpts,o=e+"-"+n,c=r[o],d=this.enableOptionSharing&&nl(i);if(c)return dg(c,d);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,e),m=s?[`${e}Hover`,"hover",e,""]:[e,""],g=h.getOptionScopes(this.getDataset(),f),y=Object.keys(Wt.elements[e]),b=()=>this.getContext(i,s,n),k=h.resolveNamedOptions(g,y,b,m);return k.$shared&&(k.$shared=d,r[o]=Object.freeze(dg(k,d))),k}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,c=r[o];if(c)return c;let d;if(s.options.animation!==!1){const f=this.chart.config,m=f.datasetAnimationScopeKeys(this._type,n),g=f.getOptionScopes(this.getDataset(),m);d=f.createResolver(g,this.getContext(e,i,n))}const h=new ig(s,d&&d.animations);return d&&d._cacheable&&(r[o]=Object.freeze(h)),h}getSharedOptions(e){if(!!e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||K1(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){K1(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!K1(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r<s&&this._removeElements(r,s-r)}_insertElements(e,n,i=!0){const s=this._cachedMeta,r=s.data,o=e+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=o;c--)h[c]=h[c-n]};for(d(r),c=e;c<o;++c)r[c]=new this.dataElementType;this._parsing&&d(s._parsed),this.parse(e,n),i&&this.updateElements(r,e,n,"reset")}updateElements(e,n,i,s){}_removeElements(e,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(e,n);i._stacked&&dl(i,s)}i.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,i,s]=e;this[n](i,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(Ii,"defaults",{}),ae(Ii,"datasetElementType",null),ae(Ii,"dataElementType",null);function tk(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let s=0,r=n.length;s<r;s++)i=i.concat(n[s].controller.getAllParsedValues(t));t._cache.$bar=Sm(i.sort((s,r)=>s-r))}return t._cache.$bar}function nk(t){const e=t.iScale,n=tk(e,t.type);let i=e._length,s,r,o,c;const d=()=>{o===32767||o===-32768||(nl(c)&&(i=Math.min(i,Math.abs(o-c)||i)),c=o)};for(s=0,r=n.length;s<r;++s)o=e.getPixelForValue(n[s]),d();for(c=void 0,s=0,r=e.ticks.length;s<r;++s)o=e.getPixelForTick(s),d();return i}function ik(t,e,n,i){const s=n.barThickness;let r,o;return Je(s)?(r=e.min*n.categoryPercentage,o=n.barPercentage):(r=s*i,o=1),{chunk:r/i,ratio:o,start:e.pixels[t]-r/2}}function sk(t,e,n,i){const s=e.pixels,r=s[t];let o=t>0?s[t-1]:null,c=t<s.length-1?s[t+1]:null;const d=n.categoryPercentage;o===null&&(o=r-(c===null?e.end-e.start:c-r)),c===null&&(c=r+r-o);const h=r-(r-Math.min(o,c))/2*d;return{chunk:Math.abs(c-o)/2*d/i,ratio:n.barPercentage,start:h}}function rk(t,e,n,i){const s=n.parse(t[0],i),r=n.parse(t[1],i),o=Math.min(s,r),c=Math.max(s,r);let d=o,h=c;Math.abs(o)>Math.abs(c)&&(d=c,h=o),e[n.axis]=h,e._custom={barStart:d,barEnd:h,start:s,end:r,min:o,max:c}}function ug(t,e,n,i){return Et(t)?rk(t,e,n,i):e[n.axis]=n.parse(t,i),e}function hg(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),c=s===r,d=[];let h,f,m,g;for(h=n,f=n+i;h<f;++h)g=e[h],m={},m[s.axis]=c||s.parse(o[h],h),d.push(ug(g,m,r,h));return d}function Z1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function ak(t,e,n){return t!==0?Ji(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function ok(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",r="start"):(s="start",r="end"),{start:n,end:i,reverse:e,top:s,bottom:r}}function lk(t,e,n,i){let s=e.borderSkipped;const r={};if(!s){t.borderSkipped=r;return}if(s===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:c,reverse:d,top:h,bottom:f}=ok(t);s==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=h:(n._bottom||0)===i?s=f:(r[fg(f,o,c,d)]=!0,s=h)),r[fg(s,o,c,d)]=!0,t.borderSkipped=r}function fg(t,e,n,i){return i?(t=ck(t,e,n),t=pg(t,n,e)):t=pg(t,e,n),t}function ck(t,e,n){return t===e?n:t===n?e:t}function pg(t,e,n){return t==="start"?e:t==="end"?n:t}function dk(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class ul extends Ii{parsePrimitiveData(e,n,i,s){return hg(e,n,i,s)}parseArrayData(e,n,i,s){return hg(e,n,i,s)}parseObjectData(e,n,i,s){const{iScale:r,vScale:o}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=r.axis==="x"?c:d,f=o.axis==="x"?c:d,m=[];let g,y,b,k;for(g=i,y=i+s;g<y;++g)k=n[g],b={},b[r.axis]=r.parse(js(k,h),g),m.push(ug(js(k,f),b,o,g));return m}updateRangeFromParsed(e,n,i,s){super.updateRangeFromParsed(e,n,i,s);const r=i._custom;r&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:i,vScale:s}=n,r=this.getParsed(e),o=r._custom,c=Z1(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,i,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),f=this._getRuler(),{sharedOptions:m,includeOptions:g}=this._getSharedOptions(n,s);for(let y=n;y<n+i;y++){const b=this.getParsed(y),k=r||Je(b[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(y),C=this._calculateBarIndexPixels(y,f),S=(b._stacks||{})[c.axis],E={horizontal:h,base:k.base,enableBorderRadius:!S||Z1(b._custom)||o===S._top||o===S._bottom,x:h?k.head:C.center,y:h?C.center:k.head,height:h?C.size:Math.abs(k.size),width:h?Math.abs(k.size):C.size};g&&(E.options=m||this.resolveDataElementOptions(y,e[y].active?"active":s));const A=E.options||e[y].options;lk(E,A,S,o),dk(E,A,f.ratio),this.updateElement(e[y],y,E,s)}}_getStacks(e,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),r=i.options.stacked,o=[],c=d=>{const h=d.controller.getParsed(n),f=h&&h[d.vScale.axis];if(Je(f)||isNaN(f))return!0};for(const d of s)if(!(n!==void 0&&c(d))&&((r===!1||o.indexOf(d.stack)===-1||r===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r<o;++r)s.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const c=e.barThickness;return{min:c||nk(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:r,minBarLength:o}}=this,c=r||0,d=this.getParsed(e),h=d._custom,f=Z1(h);let m=d[n.axis],g=0,y=i?this.applyStack(n,d,i):m,b,k;y!==m&&(g=y-m,y=m),f&&(m=h.barStart,y=h.barEnd-h.barStart,m!==0&&Ji(m)!==Ji(h.barEnd)&&(g=0),g+=m);const C=!Je(r)&&!f?r:g;let S=n.getPixelForValue(C);if(this.chart.getDataVisibility(e)?b=n.getPixelForValue(g+y):b=S,k=b-S,Math.abs(k)<o){k=ak(k,n,c)*o,m===c&&(S-=k/2);const E=n.getPixelForDecimal(0),A=n.getPixelForDecimal(1),x=Math.min(E,A),V=Math.max(E,A);S=Math.max(Math.min(S,V),x),b=S+k,i&&!f&&(d._stacks[n.axis]._visualValues[s]=n.getValueForPixel(b)-n.getValueForPixel(S))}if(S===n.getPixelForValue(c)){const E=Ji(k)*n.getLineWidthForValue(c)/2;S+=E,k-=E}return{size:k,base:S,head:b,center:b+k/2}}_calculateBarIndexPixels(e,n){const i=n.scale,s=this.options,r=s.skipNull,o=$e(s.maxBarThickness,1/0);let c,d;if(n.grouped){const h=r?this._getStackCount(e):n.stackCount,f=s.barThickness==="flex"?sk(e,n,s,h):ik(e,n,s,h),m=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);c=f.start+f.chunk*m+f.chunk/2,d=Math.min(o,f.chunk*f.ratio)}else c=i.getPixelForValue(this.getParsed(e)[i.axis],e),d=Math.min(o,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,n=e.vScale,i=e.data,s=i.length;let r=0;for(;r<s;++r)this.getParsed(r)[n.axis]!==null&&!i[r].hidden&&i[r].draw(this._ctx)}}ae(ul,"id","bar"),ae(ul,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(ul,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class td extends Ii{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,i,s){const r=super.parsePrimitiveData(e,n,i,s);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+i).radius;return r}parseArrayData(e,n,i,s){const r=super.parseArrayData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c[2],this.resolveDataElementOptions(o+i).radius)}return r}parseObjectData(e,n,i,s){const r=super.parseObjectData(e,n,i,s);for(let o=0;o<r.length;o++){const c=n[i+o];r[o]._custom=$e(c&&c.r&&+c.r,this.resolveDataElementOptions(o+i).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let i=e.length-1;i>=0;--i)n=Math.max(n,e[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y),h=o._custom;return{label:i[e]||"",value:"("+c+", "+d+(h?", "+h:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,s),f=o.axis,m=c.axis;for(let g=n;g<n+i;g++){const y=e[g],b=!r&&this.getParsed(g),k={},C=k[f]=r?o.getPixelForDecimal(.5):o.getPixelForValue(b[f]),S=k[m]=r?c.getBasePixel():c.getPixelForValue(b[m]);k.skip=isNaN(C)||isNaN(S),h&&(k.options=d||this.resolveDataElementOptions(g,y.active?"active":s),r&&(k.options.radius=0)),this.updateElement(y,g,k,s)}}resolveDataElementOptions(e,n){const i=this.getParsed(e);let s=super.resolveDataElementOptions(e,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const r=s.radius;return n!=="active"&&(s.radius=0),s.radius+=$e(i&&i._custom,r),s}}ae(td,"id","bubble"),ae(td,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ae(td,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function uk(t,e,n){let i=1,s=1,r=0,o=0;if(e<Tt){const c=t,d=c+e,h=Math.cos(c),f=Math.sin(c),m=Math.cos(d),g=Math.sin(d),y=(A,x,V)=>sl(A,c,d,!0)?1:Math.max(x,x*n,V,V*n),b=(A,x,V)=>sl(A,c,d,!0)?-1:Math.min(x,x*n,V,V*n),k=y(0,h,m),C=y(Ut,f,g),S=b(Bt,h,m),E=b(Bt+Ut,f,g);i=(k-S)/2,s=(C-E)/2,r=-(k+S)/2,o=-(C+E)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class Ks extends Ii{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=d=>+i[d];if(Ue(i[e])){const{key:d="value"}=this._parsing;r=h=>+js(i[h],d)}let o,c;for(o=e,c=e+n;o<c;++o)s._parsed[o]=r(o)}}_getRotation(){return Vi(this.options.rotation-90)}_getCircumference(){return Vi(this.options.circumference)}_getRotationExtents(){let e=Tt,n=-Tt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,r=s._getRotation(),o=s._getCircumference();e=Math.min(e,r),n=Math.max(n,r+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:i}=n,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,c=Math.max((Math.min(i.width,i.height)-o)/2,0),d=Math.min(Sw(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:f,rotation:m}=this._getRotationExtents(),{ratioX:g,ratioY:y,offsetX:b,offsetY:k}=uk(m,f,d),C=(i.width-o)/g,S=(i.height-o)/y,E=Math.max(Math.min(C,S)/2,0),A=pm(this.options.radius,E),x=Math.max(A*d,0),V=(A-x)/this._getVisibleDatasetWeightTotal();this.offsetX=b*A,this.offsetY=k*A,s.total=this.calculateTotal(),this.outerRadius=A-V*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-V*h,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Tt)}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,c=o.chartArea,h=o.options.animation,f=(c.left+c.right)/2,m=(c.top+c.bottom)/2,g=r&&h.animateScale,y=g?0:this.innerRadius,b=g?0:this.outerRadius,{sharedOptions:k,includeOptions:C}=this._getSharedOptions(n,s);let S=this._getRotation(),E;for(E=0;E<n;++E)S+=this._circumference(E,r);for(E=n;E<n+i;++E){const A=this._circumference(E,r),x=e[E],V={x:f+this.offsetX,y:m+this.offsetY,startAngle:S,endAngle:S+A,circumference:A,outerRadius:b,innerRadius:y};C&&(V.options=k||this.resolveDataElementOptions(E,x.active?"active":s)),S+=A,this.updateElement(x,E,V,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let i=0,s;for(s=0;s<n.length;s++){const r=e._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Tt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=al(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,c,d;if(!e){for(s=0,r=i.data.datasets.length;s<r;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),e=o.data,c=o.controller;break}}if(!e)return 0;for(s=0,r=e.length;s<r;++s)d=c.resolveDataElementOptions(s),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let i=0,s=e.length;i<s;++i){const r=this.resolveDataElementOptions(i);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(e){return Math.max($e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Ks,"id","doughnut"),ae(Ks,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(Ks,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ae(Ks,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class hl extends Ii{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:c,count:d}=Dm(n,s,o);this._drawStart=c,this._drawCount=d,Em(n)&&(c=0,d=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=s;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:h},e),this.updateElements(s,c,d,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:m}=this._getSharedOptions(n,s),g=o.axis,y=c.axis,{spanGaps:b,segment:k}=this.options,C=Sa(b)?b:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||r||s==="none",E=n+i,A=e.length;let x=n>0&&this.getParsed(n-1);for(let V=0;V<A;++V){const N=e[V],L=S?N:{};if(V<n||V>=E){L.skip=!0;continue}const F=this.getParsed(V),q=Je(F[y]),ee=L[g]=o.getPixelForValue(F[g],V),ne=L[y]=r||q?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,F,d):F[y],V);L.skip=isNaN(ee)||isNaN(ne)||q,L.stop=V>0&&Math.abs(F[g]-x[g])>C,k&&(L.parsed=F,L.raw=h.data[V]),m&&(L.options=f||this.resolveDataElementOptions(V,N.active?"active":s)),S||this.updateElement(N,V,L,s),x=F}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ae(hl,"id","line"),ae(hl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(hl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ea extends Ii{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=al(n._parsed[e].r,i.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,i,s){return Ym.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((i,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,i=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),c=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,n,i,s){const r=s==="reset",o=this.chart,d=o.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,m=h.yCenter,g=h.getIndexAngle(0)-.5*Bt;let y=g,b;const k=360/this.countVisibleElements();for(b=0;b<n;++b)y+=this._computeAngle(b,s,k);for(b=n;b<n+i;b++){const C=e[b];let S=y,E=y+this._computeAngle(b,s,k),A=o.getDataVisibility(b)?h.getDistanceFromCenterForValue(this.getParsed(b).r):0;y=E,r&&(d.animateScale&&(A=0),d.animateRotate&&(S=E=g));const x={x:f,y:m,innerRadius:0,outerRadius:A,startAngle:S,endAngle:E,options:this.resolveDataElementOptions(b,C.active?"active":s)};this.updateElement(C,b,x,s)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,i){return this.chart.getDataVisibility(e)?Vi(this.resolveDataElementOptions(e,n).angle||i):0}}ae(Ea,"id","polarArea"),ae(Ea,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class nd extends Ks{}ae(nd,"id","pie"),ae(nd,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class id extends Ii{getLabelAndValue(e){const n=this._cachedMeta.vScale,i=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(e,n,i,s){return Ym.bind(this)(e,n,i,s)}update(e){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const c={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,c,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let c=n;c<n+i;c++){const d=e[c],h=this.resolveDataElementOptions(c,d.active?"active":s),f=r.getPointPositionForValue(c,this.getParsed(c).r),m=o?r.xCenter:f.x,g=o?r.yCenter:f.y,y={x:m,y:g,angle:f.angle,skip:isNaN(m)||isNaN(g),options:h};this.updateElement(d,c,y,s)}}}ae(id,"id","radar"),ae(id,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ae(id,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class sd extends Ii{getLabelAndValue(e){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(e),c=s.getLabelForValue(o.x),d=r.getLabelForValue(o.y);return{label:i[e]||"",value:"("+c+", "+d+")"}}update(e){const n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:o}=Dm(n,i,s);if(this._drawStart=r,this._drawCount=o,Em(n)&&(r=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=n;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=i;const h=this.resolveDatasetElementOptions(e);h.segment=this.options.segment,this.updateElement(c,void 0,{animated:!s,options:h},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,r,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(f),g=this.includeOptions(s,m),y=o.axis,b=c.axis,{spanGaps:k,segment:C}=this.options,S=Sa(k)?k:Number.POSITIVE_INFINITY,E=this.chart._animationsDisabled||r||s==="none";let A=n>0&&this.getParsed(n-1);for(let x=n;x<n+i;++x){const V=e[x],N=this.getParsed(x),L=E?V:{},F=Je(N[b]),q=L[y]=o.getPixelForValue(N[y],x),ee=L[b]=r||F?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,N,d):N[b],x);L.skip=isNaN(q)||isNaN(ee)||F,L.stop=x>0&&Math.abs(N[y]-A[y])>S,C&&(L.parsed=N,L.raw=h.data[x]),g&&(L.options=m||this.resolveDataElementOptions(x,V.active?"active":s)),E||this.updateElement(V,x,L,s),A=N}this.updateSharedOptions(m,s,f)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let c=0;for(let d=n.length-1;d>=0;--d)c=Math.max(c,n[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const i=e.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}ae(sd,"id","scatter"),ae(sd,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(sd,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var hk=Object.freeze({__proto__:null,BarController:ul,BubbleController:td,DoughnutController:Ks,LineController:hl,PieController:nd,PolarAreaController:Ea,RadarController:id,ScatterController:sd});function $r(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class X1{constructor(e){ae(this,"options");this.options=e||{}}static override(e){Object.assign(X1.prototype,e)}init(){}formats(){return $r()}parse(){return $r()}format(){return $r()}add(){return $r()}diff(){return $r()}startOf(){return $r()}endOf(){return $r()}}var mg={_date:X1};function fk(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,c=s._cachedMeta.iScale;if(c&&e===c.axis&&e!=="r"&&o&&r.length){const d=c._reversePixels?zw:gs;if(i){if(s._sharedOptions){const h=r[0],f=typeof h.getRange=="function"&&h.getRange(e);if(f){const m=d(r,e,n-f),g=d(r,e,n+f);return{lo:m.lo,hi:g.hi}}}}else return d(r,e,n)}return{lo:0,hi:r.length-1}}function fl(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let c=0,d=r.length;c<d;++c){const{index:h,data:f}=r[c],{lo:m,hi:g}=fk(r[c],e,o,s);for(let y=m;y<=g;++y){const b=f[y];b.skip||i(b,h,y)}}}function pk(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(i,s){const r=e?Math.abs(i.x-s.x):0,o=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function J1(t,e,n,i,s){const r=[];return!s&&!t.isPointInArea(e)||fl(t,n,e,function(c,d,h){!s&&!_s(c,t.chartArea,0)||c.inRange(e.x,e.y,i)&&r.push({element:c,datasetIndex:d,index:h})},!0),r}function mk(t,e,n,i){let s=[];function r(o,c,d){const{startAngle:h,endAngle:f}=o.getProps(["startAngle","endAngle"],i),{angle:m}=km(o,{x:e.x,y:e.y});sl(m,h,f)&&s.push({element:o,datasetIndex:c,index:d})}return fl(t,n,e,r),s}function gk(t,e,n,i,s,r){let o=[];const c=pk(n);let d=Number.POSITIVE_INFINITY;function h(f,m,g){const y=f.inRange(e.x,e.y,s);if(i&&!y)return;const b=f.getCenterPoint(s);if(!(!!r||t.isPointInArea(b))&&!y)return;const C=c(e,b);C<d?(o=[{element:f,datasetIndex:m,index:g}],d=C):C===d&&o.push({element:f,datasetIndex:m,index:g})}return fl(t,n,e,h),o}function Q1(t,e,n,i,s,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!i?mk(t,e,n,s):gk(t,e,n,i,s,r)}function gg(t,e,n,i,s){const r=[],o=n==="x"?"inXRange":"inYRange";let c=!1;return fl(t,n,e,(d,h,f)=>{d[o](e[n],s)&&(r.push({element:d,datasetIndex:h,index:f}),c=c||d.inRange(e.x,e.y,s))}),i&&!c?[]:r}var _k={evaluateInteractionItems:fl,modes:{index(t,e,n,i){const s=Ir(e,t),r=n.axis||"x",o=n.includeInvisible||!1,c=n.intersect?J1(t,s,r,i,o):Q1(t,s,r,!1,i,o),d=[];return c.length?(t.getSortedVisibleDatasetMetas().forEach(h=>{const f=c[0].index,m=h.data[f];m&&!m.skip&&d.push({element:m,datasetIndex:h.index,index:f})}),d):[]},dataset(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let c=n.intersect?J1(t,s,r,i,o):Q1(t,s,r,!1,i,o);if(c.length>0){const d=c[0].datasetIndex,h=t.getDatasetMeta(d).data;c=[];for(let f=0;f<h.length;++f)c.push({element:h[f],datasetIndex:d,index:f})}return c},point(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return J1(t,s,r,i,o)},nearest(t,e,n,i){const s=Ir(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return Q1(t,s,r,n.intersect,i,o)},x(t,e,n,i){const s=Ir(e,t);return gg(t,s,"x",n.intersect,i)},y(t,e,n,i){const s=Ir(e,t);return gg(t,s,"y",n.intersect,i)}}};const _g=["left","top","right","bottom"];function pl(t,e){return t.filter(n=>n.pos===e)}function yg(t,e){return t.filter(n=>_g.indexOf(n.pos)===-1&&n.box.axis===e)}function ml(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function yk(t){const e=[];let n,i,s,r,o,c;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],{position:r,options:{stack:o,stackWeight:c=1}}=s,e.push({index:n,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:c});return e}function vk(t){const e={};for(const n of t){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!_g.includes(s))continue;const o=e[i]||(e[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function bk(t,e){const n=vk(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let r,o,c;for(r=0,o=t.length;r<o;++r){c=t[r];const{fullSize:d}=c.box,h=n[c.stack],f=h&&c.stackWeight/h.weight;c.horizontal?(c.width=f?f*i:d&&e.availableWidth,c.height=s):(c.width=i,c.height=f?f*s:d&&e.availableHeight)}return n}function wk(t){const e=yk(t),n=ml(e.filter(h=>h.box.fullSize),!0),i=ml(pl(e,"left"),!0),s=ml(pl(e,"right")),r=ml(pl(e,"top"),!0),o=ml(pl(e,"bottom")),c=yg(e,"x"),d=yg(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(d).concat(o).concat(c),chartArea:pl(e,"chartArea"),vertical:i.concat(s).concat(d),horizontal:r.concat(o).concat(c)}}function vg(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function bg(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function kk(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!Ue(s)){n.size&&(t[s]-=n.size);const m=i[n.stack]||{size:0,count:1};m.size=Math.max(m.size,n.horizontal?r.height:r.width),n.size=m.size/m.count,t[s]+=n.size}r.getPadding&&bg(o,r.getPadding());const c=Math.max(0,e.outerWidth-vg(o,t,"left","right")),d=Math.max(0,e.outerHeight-vg(o,t,"top","bottom")),h=c!==t.w,f=d!==t.h;return t.w=c,t.h=d,n.horizontal?{same:h,other:f}:{same:f,other:h}}function Ck(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function xk(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function gl(t,e,n,i){const s=[];let r,o,c,d,h,f;for(r=0,o=t.length,h=0;r<o;++r){c=t[r],d=c.box,d.update(c.width||e.w,c.height||e.h,xk(c.horizontal,e));const{same:m,other:g}=kk(e,n,c,i);h|=m&&s.length,f=f||g,d.fullSize||s.push(c)}return h&&gl(s,e,n,i)||f}function rd(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function wg(t,e,n,i){const s=n.padding;let{x:r,y:o}=e;for(const c of t){const d=c.box,h=i[c.stack]||{count:1,placed:0,weight:1},f=c.stackWeight/h.weight||1;if(c.horizontal){const m=e.w*f,g=h.size||d.height;nl(h.start)&&(o=h.start),d.fullSize?rd(d,s.left,o,n.outerWidth-s.right-s.left,g):rd(d,e.left+h.placed,o,m,g),h.start=o,h.placed+=m,o=d.bottom}else{const m=e.h*f,g=h.size||d.width;nl(h.start)&&(r=h.start),d.fullSize?rd(d,r,s.top,g,n.outerHeight-s.bottom-s.top):rd(d,r,e.top+h.placed,g,m),h.start=r,h.placed+=m,r=d.right}}e.x=r,e.y=o}var bn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const s=vn(t.options.layout.padding),r=Math.max(e-s.width,0),o=Math.max(n-s.height,0),c=wk(t.boxes),d=c.vertical,h=c.horizontal;ut(t.boxes,k=>{typeof k.beforeLayout=="function"&&k.beforeLayout()});const f=d.reduce((k,C)=>C.box.options&&C.box.options.display===!1?k:k+1,0)||1,m=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/f,hBoxMaxHeight:o/2}),g=Object.assign({},s);bg(g,vn(i));const y=Object.assign({maxPadding:g,w:r,h:o,x:s.left,y:s.top},s),b=bk(d.concat(h),m);gl(c.fullSize,y,m,b),gl(d,y,m,b),gl(h,y,m,b)&&gl(d,y,m,b),Ck(y),wg(c.leftAndTop,y,m,b),y.x+=y.w,y.y+=y.h,wg(c.rightAndBottom,y,m,b),t.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},ut(c.chartArea,k=>{const C=k.box;Object.assign(C,t.chartArea),C.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class kg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class Sk extends kg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ad="$chartjs",Mk={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cg=t=>t===null||t==="";function Ok(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[ad]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Cg(s)){const r=qm(t,"width");r!==void 0&&(t.width=r)}if(Cg(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=qm(t,"height");r!==void 0&&(t.height=r)}return t}const xg=B9?{passive:!0}:!1;function Dk(t,e,n){t&&t.addEventListener(e,n,xg)}function Ek(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,xg)}function Bk(t,e){const n=Mk[t.type]||t.type,{x:i,y:s}=Ir(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function od(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Tk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||od(c.addedNodes,i),o=o&&!od(c.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Vk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||od(c.removedNodes,i),o=o&&!od(c.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const _l=new Map;let Sg=0;function Mg(){const t=window.devicePixelRatio;t!==Sg&&(Sg=t,_l.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ik(t,e){_l.size||window.addEventListener("resize",Mg),_l.set(t,e)}function Ak(t){_l.delete(t),_l.size||window.removeEventListener("resize",Mg)}function $k(t,e,n){const i=t.canvas,s=i&&q1(i);if(!s)return;const r=Om((c,d)=>{const h=s.clientWidth;n(c,d),h<s.clientWidth&&n()},window),o=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,f=d.contentRect.height;h===0&&f===0||r(h,f)});return o.observe(s),Ik(t,r),o}function eh(t,e,n){n&&n.disconnect(),e==="resize"&&Ak(t)}function Nk(t,e,n){const i=t.canvas,s=Om(r=>{t.ctx!==null&&n(Bk(r,t))},t);return Dk(i,e,s),s}class zk extends kg{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Ok(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[ad])return!1;const i=n[ad].initial;["height","width"].forEach(r=>{const o=i[r];Je(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[ad],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:Tk,detach:Vk,resize:$k}[n]||Nk;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:eh,detach:eh,resize:eh}[n]||Ek)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return E9(e,n,i,s)}isAttached(e){const n=e&&q1(e);return!!(n&&n.isConnected)}}function Pk(t){return!U1()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Sk:zk}class Ai{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Sa(this.x)&&Sa(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}}ae(Ai,"defaults",{}),ae(Ai,"defaultRoutes");function Lk(t,e){const n=t.options.ticks,i=Fk(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?Hk(e):[],o=r.length,c=r[0],d=r[o-1],h=[];if(o>s)return Wk(e,h,r,o/s),h;const f=Rk(r,e,s);if(o>0){let m,g;const y=o>1?Math.round((d-c)/(o-1)):null;for(ld(e,h,f,Je(y)?0:c-y,c),m=0,g=o-1;m<g;m++)ld(e,h,f,r[m],r[m+1]);return ld(e,h,f,d,Je(y)?e.length:d+y),h}return ld(e,h,f),h}function Fk(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}function Rk(t,e,n){const i=Yk(t),s=e.length/n;if(!i)return Math.max(s,1);const r=Iw(i);for(let o=0,c=r.length-1;o<c;o++){const d=r[o];if(d>s)return d}return Math.max(s,1)}function Hk(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function Wk(t,e,n,i){let s=0,r=n[0],o;for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),s++,r=n[s*i])}function ld(t,e,n,i,s){const r=$e(i,0),o=Math.min($e(s,t.length),t.length);let c=0,d,h,f;for(n=Math.ceil(n),s&&(d=s-i,n=d/Math.floor(d/n)),f=r;f<0;)c++,f=Math.round(r+c*n);for(h=Math.max(r,0);h<o;h++)h===f&&(e.push(t[h]),c++,f=Math.round(r+c*n))}function Yk(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const jk=t=>t==="left"?"right":t==="right"?"left":t,Og=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Dg=(t,e)=>Math.min(e||t,t);function Eg(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;r<s;r+=i)n.push(t[Math.floor(r)]);return n}function Uk(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),r=t._startPixel,o=t._endPixel,c=1e-6;let d=t.getPixelForTick(s),h;if(!(n&&(i===1?h=Math.max(d-r,o-d):e===0?h=(t.getPixelForTick(1)-d)/2:h=(d-t.getPixelForTick(s-1))/2,d+=s<e?h:-h,d<r-c||d>o+c)))return d}function qk(t,e){ut(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;r<s;++r)delete n.data[i[r]];i.splice(0,s)}})}function yl(t){return t.drawTicks?t.tickLength:0}function Bg(t,e){if(!t.display)return 0;const n=en(t.font,e),i=vn(t.padding);return(Et(t.text)?t.text.length:1)*n.lineHeight+i.height}function Gk(t,e){return Gs(t,{scale:e,type:"scale"})}function Kk(t,e,n){return Gs(t,{tick:n,index:e,type:"tick"})}function Zk(t,e,n){let i=N1(t);return(n&&e!=="right"||!n&&e==="right")&&(i=jk(i)),i}function Xk(t,e,n,i){const{top:s,left:r,bottom:o,right:c,chart:d}=t,{chartArea:h,scales:f}=d;let m=0,g,y,b;const k=o-s,C=c-r;if(t.isHorizontal()){if(y=yn(i,r,c),Ue(n)){const S=Object.keys(n)[0],E=n[S];b=f[S].getPixelForValue(E)+k-e}else n==="center"?b=(h.bottom+h.top)/2+k-e:b=Og(t,n,e);g=c-r}else{if(Ue(n)){const S=Object.keys(n)[0],E=n[S];y=f[S].getPixelForValue(E)-C+e}else n==="center"?y=(h.left+h.right)/2-C+e:y=Og(t,n,e);b=yn(i,o,s),m=n==="left"?-Ut:Ut}return{titleX:y,titleY:b,maxWidth:g,rotation:m}}class Nr extends Ai{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return e=Qn(e,Number.POSITIVE_INFINITY),n=Qn(n,Number.NEGATIVE_INFINITY),i=Qn(i,Number.POSITIVE_INFINITY),s=Qn(s,Number.NEGATIVE_INFINITY),{min:Qn(e,i),max:Qn(n,s),minDefined:Ht(e),maxDefined:Ht(n)}}getMinMax(e){let{min:n,max:i,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:n,max:i};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)o=c[d].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),r||(i=Math.max(i,o.max));return n=r&&n>i?i:n,i=s&&n>i?n:i,{min:Qn(n,Qn(i,n)),max:Qn(i,Qn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mt(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,c=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=o9(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?Eg(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Lk(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,e=!e),this._startPixel=n,this._endPixel=i,this._reversePixels=e,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Mt(this.options.afterUpdate,[this])}beforeSetDimensions(){Mt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Mt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Mt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Mt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let i,s,r;for(i=0,s=e.length;i<s;i++)r=e[i],r.label=Mt(n.callback,[r.value,i,e],this)}afterTickToLabelConversion(){Mt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Mt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,i=Dg(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,r=n.maxRotation;let o=s,c,d,h;if(!this._isVisible()||!n.display||s>=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const f=this._getLabelSizes(),m=f.widest.width,g=f.highest.height,y=dn(this.chart.width-m,0,this.maxWidth);c=e.offset?this.maxWidth/i:y/(i-1),m+6>c&&(c=y/(i-(e.offset?.5:1)),d=this.maxHeight-yl(e.grid)-n.padding-Bg(e.title,this.chart.options.font),h=Math.sqrt(m*m+g*g),o=I1(Math.min(Math.asin(dn((f.highest.height+6)/c,-1,1)),Math.asin(dn(d/h,-1,1))-Math.asin(dn(g/h,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){Mt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),c=this.isHorizontal();if(o){const d=Bg(s,n.options.font);if(c?(e.width=this.maxWidth,e.height=yl(r)+d):(e.height=this.maxHeight,e.width=yl(r)+d),i.display&&this.ticks.length){const{first:h,last:f,widest:m,highest:g}=this._getLabelSizes(),y=i.padding*2,b=Vi(this.labelRotation),k=Math.cos(b),C=Math.sin(b);if(c){const S=i.mirror?0:C*m.width+k*g.height;e.height=Math.min(this.maxHeight,e.height+S+y)}else{const S=i.mirror?0:k*m.width+C*g.height;e.width=Math.min(this.maxWidth,e.width+S+y)}this._calculatePadding(h,f,C,k)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,s){const{ticks:{align:r,padding:o},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,y=0;d?h?(g=s*e.width,y=i*n.height):(g=i*e.height,y=s*n.width):r==="start"?y=n.width:r==="end"?g=e.width:r!=="inner"&&(g=e.width/2,y=n.width/2),this.paddingLeft=Math.max((g-f+o)*this.width/(this.width-f),0),this.paddingRight=Math.max((y-m+o)*this.width/(this.width-m),0)}else{let f=n.height/2,m=e.height/2;r==="start"?(f=0,m=e.height):r==="end"&&(f=n.height,m=0),this.paddingTop=f+o,this.paddingBottom=m+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n<i;n++)Je(e[n].label)&&(e.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=Eg(i,n)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,i){const{ctx:s,_longestTextCache:r}=this,o=[],c=[],d=Math.floor(n/Dg(n,i));let h=0,f=0,m,g,y,b,k,C,S,E,A,x,V;for(m=0;m<n;m+=d){if(b=e[m].label,k=this._resolveTickFontOptions(m),s.font=C=k.string,S=r[C]=r[C]||{data:{},gc:[]},E=k.lineHeight,A=x=0,!Je(b)&&!Et(b))A=Gc(s,S.data,S.gc,A,b),x=E;else if(Et(b))for(g=0,y=b.length;g<y;++g)V=b[g],!Je(V)&&!Et(V)&&(A=Gc(s,S.data,S.gc,A,V),x+=E);o.push(A),c.push(x),h=Math.max(A,h),f=Math.max(x,f)}qk(r,n);const N=o.indexOf(h),L=c.indexOf(f),F=q=>({width:o[q]||0,height:c[q]||0});return{first:F(0),last:F(n-1),widest:F(N),highest:F(L),widths:o,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Nw(this._alignToPixels?Er(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const i=n[e];return i.$context||(i.$context=Kk(this.getContext(),e,i))}return this.$context||(this.$context=Gk(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Vi(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,c=r?r.widest.width+o:0,d=r?r.highest.height+o:0;return this.isHorizontal()?d*i>c*s?c/i:d/s:d*s<c*i?d/i:c/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:c}=s,d=r.offset,h=this.isHorizontal(),m=this.ticks.length+(d?1:0),g=yl(r),y=[],b=c.setContext(this.getContext()),k=b.display?b.width:0,C=k/2,S=function(he){return Er(i,he,k)};let E,A,x,V,N,L,F,q,ee,ne,K,ie;if(o==="top")E=S(this.bottom),L=this.bottom-g,q=E-C,ne=S(e.top)+C,ie=e.bottom;else if(o==="bottom")E=S(this.top),ne=e.top,ie=S(e.bottom)-C,L=E+C,q=this.top+g;else if(o==="left")E=S(this.right),N=this.right-g,F=E-C,ee=S(e.left)+C,K=e.right;else if(o==="right")E=S(this.left),ee=e.left,K=S(e.right)-C,N=E+C,F=this.left+g;else if(n==="x"){if(o==="center")E=S((e.top+e.bottom)/2+.5);else if(Ue(o)){const he=Object.keys(o)[0],fe=o[he];E=S(this.chart.scales[he].getPixelForValue(fe))}ne=e.top,ie=e.bottom,L=E+C,q=L+g}else if(n==="y"){if(o==="center")E=S((e.left+e.right)/2);else if(Ue(o)){const he=Object.keys(o)[0],fe=o[he];E=S(this.chart.scales[he].getPixelForValue(fe))}N=E-C,F=N-g,ee=e.left,K=e.right}const me=$e(s.ticks.maxTicksLimit,m),J=Math.max(1,Math.ceil(m/me));for(A=0;A<m;A+=J){const he=this.getContext(A),fe=r.setContext(he),ye=c.setContext(he),we=fe.lineWidth,R=fe.color,pe=ye.dash||[],oe=ye.dashOffset,Ee=fe.tickWidth,Me=fe.tickColor,ge=fe.tickBorderDash||[],Ne=fe.tickBorderDashOffset;x=Uk(this,A,d),x!==void 0&&(V=Er(i,x,we),h?N=F=ee=K=V:L=q=ne=ie=V,y.push({tx1:N,ty1:L,tx2:F,ty2:q,x1:ee,y1:ne,x2:K,y2:ie,width:we,color:R,borderDash:pe,borderDashOffset:oe,tickWidth:Ee,tickColor:Me,tickBorderDash:ge,tickBorderDashOffset:Ne}))}return this._ticksLength=m,this._borderValue=E,y}_computeLabelItems(e){const n=this.axis,i=this.options,{position:s,ticks:r}=i,o=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:f,mirror:m}=r,g=yl(i.grid),y=g+f,b=m?-f:y,k=-Vi(this.labelRotation),C=[];let S,E,A,x,V,N,L,F,q,ee,ne,K,ie="middle";if(s==="top")N=this.bottom-b,L=this._getXAxisLabelAlignment();else if(s==="bottom")N=this.top+b,L=this._getXAxisLabelAlignment();else if(s==="left"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,V=J.x}else if(s==="right"){const J=this._getYAxisLabelAlignment(g);L=J.textAlign,V=J.x}else if(n==="x"){if(s==="center")N=(e.top+e.bottom)/2+y;else if(Ue(s)){const J=Object.keys(s)[0],he=s[J];N=this.chart.scales[J].getPixelForValue(he)+y}L=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")V=(e.left+e.right)/2-y;else if(Ue(s)){const J=Object.keys(s)[0],he=s[J];V=this.chart.scales[J].getPixelForValue(he)}L=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(d==="start"?ie="top":d==="end"&&(ie="bottom"));const me=this._getLabelSizes();for(S=0,E=c.length;S<E;++S){A=c[S],x=A.label;const J=r.setContext(this.getContext(S));F=this.getPixelForTick(S)+r.labelOffset,q=this._resolveTickFontOptions(S),ee=q.lineHeight,ne=Et(x)?x.length:1;const he=ne/2,fe=J.color,ye=J.textStrokeColor,we=J.textStrokeWidth;let R=L;o?(V=F,L==="inner"&&(S===E-1?R=this.options.reverse?"left":"right":S===0?R=this.options.reverse?"right":"left":R="center"),s==="top"?h==="near"||k!==0?K=-ne*ee+ee/2:h==="center"?K=-me.highest.height/2-he*ee+ee:K=-me.highest.height+ee/2:h==="near"||k!==0?K=ee/2:h==="center"?K=me.highest.height/2-he*ee:K=me.highest.height-ne*ee,m&&(K*=-1),k!==0&&!J.showLabelBackdrop&&(V+=ee/2*Math.sin(k))):(N=F,K=(1-ne)*ee/2);let pe;if(J.showLabelBackdrop){const oe=vn(J.backdropPadding),Ee=me.heights[S],Me=me.widths[S];let ge=K-oe.top,Ne=0-oe.left;switch(ie){case"middle":ge-=Ee/2;break;case"bottom":ge-=Ee;break}switch(L){case"center":Ne-=Me/2;break;case"right":Ne-=Me;break;case"inner":S===E-1?Ne-=Me:S>0&&(Ne-=Me/2);break}pe={left:Ne,top:ge,width:Me+oe.width,height:Ee+oe.height,color:J.backdropColor}}C.push({label:x,font:q,textOffset:K,options:{rotation:k,color:fe,strokeColor:ye,strokeWidth:we,textAlign:R,textBaseline:ie,translation:[V,N],backdrop:pe}})}return C}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Vi(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),c=e+r,d=o.widest.width;let h,f;return n==="left"?s?(f=this.right+r,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f+=d)):(f=this.right-c,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f=this.left)):n==="right"?s?(f=this.left+r,i==="near"?h="right":i==="center"?(h="center",f-=d/2):(h="left",f-=d)):(f=this.left+c,i==="near"?h="left":i==="center"?(h="center",f+=d/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const c=(d,h,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(d.x,d.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r<o;++r){const d=s[r];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:i,grid:s}}=this,r=i.setContext(this.getContext()),o=i.display?r.width:0;if(!o)return;const c=s.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,f,m,g;this.isHorizontal()?(h=Er(e,this.left,o)-o/2,f=Er(e,this.right,c)+c/2,m=g=d):(m=Er(e,this.top,o)-o/2,g=Er(e,this.bottom,c)+c/2,h=f=d),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(h,m),n.lineTo(f,g),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Kc(i,s);const r=this.getLabelItems(e);for(const o of r){const c=o.options,d=o.font,h=o.label,f=o.textOffset;Br(i,h,0,f,d,c)}s&&Zc(i)}drawTitle(){const{ctx:e,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const r=en(i.font),o=vn(i.padding),c=i.align;let d=r.lineHeight/2;n==="bottom"||n==="center"||Ue(n)?(d+=o.bottom,Et(i.text)&&(d+=r.lineHeight*(i.text.length-1))):d+=o.top;const{titleX:h,titleY:f,maxWidth:m,rotation:g}=Xk(this,d,n,c);Br(e,i.text,0,0,r,{color:i.color,maxWidth:m,rotation:g,textAlign:Zk(c,n,s),textBaseline:"middle",translation:[h,f]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,i=$e(e.grid&&e.grid.z,-1),s=$e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Nr.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r<o;++r){const c=n[r];c[i]===this.id&&(!e||c.type===e)&&s.push(c)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return en(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class cd{constructor(e,n,i){this.type=e,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let i;eC(n)&&(i=this.register(n));const s=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in s||(s[r]=e,Jk(e,o,i),this.override&&Wt.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,i=e.id,s=this.scope;i in n&&delete n[i],s&&i in Wt[s]&&(delete Wt[s][i],this.override&&delete Dr[i])}}function Jk(t,e,n){const i=el(Object.create(null),[n?Wt.get(n):{},Wt.get(e),t.defaults]);Wt.set(e,i),t.defaultRoutes&&Qk(e,t.defaultRoutes),t.descriptors&&Wt.describe(e,t.descriptors)}function Qk(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),c=o.pop(),d=o.join(".");Wt.route(r,s,d,c)})}function eC(t){return"id"in t&&"defaults"in t}class tC{constructor(){this.controllers=new cd(Ii,"datasets",!0),this.elements=new cd(Ai,"elements"),this.plugins=new cd(Object,"plugins"),this.scales=new cd(Nr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):ut(s,o=>{const c=i||this._getRegistryForType(o);this._exec(e,c,o)})})}_exec(e,n,i){const s=V1(e);Mt(i["before"+s],[],i),n[e](i),Mt(i["after"+s],[],i)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(e))return i}return this.plugins}_get(e,n,i){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+i+".");return s}}var Qi=new tC;class nC{constructor(){this._init=[]}notify(e,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(r,e,n,i);return n==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,i,s){s=s||{};for(const r of e){const o=r.plugin,c=o[i],d=[n,s,r.options];if(Mt(c,d,o)===!1&&s.cancelable)return!1}return!0}invalidate(){Je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const i=e&&e.config,s=$e(i.options&&i.options.plugins,{}),r=iC(i);return s===!1&&!n?[]:rC(e,r,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],i=this._cache,s=(r,o)=>r.filter(c=>!o.some(d=>c.plugin.id===d.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function iC(t){const e={},n=[],i=Object.keys(Qi.plugins.items);for(let r=0;r<i.length;r++)n.push(Qi.getPlugin(i[r]));const s=t.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function sC(t,e){return!e&&t===!1?null:t===!0?{}:t}function rC(t,{plugins:e,localIds:n},i,s){const r=[],o=t.getContext();for(const c of e){const d=c.id,h=sC(i[d],s);h!==null&&r.push({plugin:c,options:aC(t.config,{plugin:c,local:n[d]},h,o)})}return r}function aC(t,{plugin:e,local:n},i,s){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(i,r);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function th(t,e){const n=Wt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function oC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function lC(t,e){return t===e?"_index_":"_value_"}function Tg(t){if(t==="x"||t==="y"||t==="r")return t}function cC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function nh(t,...e){if(Tg(t))return t;for(const n of e){const i=n.axis||cC(n.position)||t.length>1&&Tg(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vg(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function dC(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return Vg(t,"x",n[0])||Vg(t,"y",n[0])}return{}}function uC(t,e){const n=Dr[t.type]||{scales:{}},i=e.scales||{},s=th(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const c=i[o];if(!Ue(c))return console.error(`Invalid scale configuration for scale: ${o}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const d=nh(o,c,dC(o,t),Wt.scales[c.type]),h=lC(d,s),f=n.scales||{};r[o]=tl(Object.create(null),[{axis:d},c,f[d],f[h]])}),t.data.datasets.forEach(o=>{const c=o.type||t.type,d=o.indexAxis||th(c,e),f=(Dr[c]||{}).scales||{};Object.keys(f).forEach(m=>{const g=oC(m,d),y=o[g+"AxisID"]||g;r[y]=r[y]||Object.create(null),tl(r[y],[{axis:g},i[y],f[m]])})}),Object.keys(r).forEach(o=>{const c=r[o];tl(c,[Wt.scales[c.type],Wt.scale])}),r}function Ig(t){const e=t.options||(t.options={});e.plugins=$e(e.plugins,{}),e.scales=uC(t,e)}function Ag(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function hC(t){return t=t||{},t.data=Ag(t.data),Ig(t),t}const $g=new Map,Ng=new Set;function dd(t,e){let n=$g.get(t);return n||(n=e(),$g.set(t,n),Ng.add(n)),n}const vl=(t,e,n)=>{const i=js(e,n);i!==void 0&&t.add(i)};class fC{constructor(e){this._config=hC(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Ag(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ig(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return dd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return dd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return dd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return dd(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),c=o.get(n);if(c)return c;const d=new Set;n.forEach(f=>{e&&(d.add(e),f.forEach(m=>vl(d,e,m))),f.forEach(m=>vl(d,s,m)),f.forEach(m=>vl(d,Dr[r]||{},m)),f.forEach(m=>vl(d,Wt,m)),f.forEach(m=>vl(d,L1,m))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),Ng.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,Dr[n]||{},Wt.datasets[n]||{},{type:n},Wt,L1]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:c}=zg(this._resolverCache,e,s);let d=o;if(mC(o,n)){r.$shared=!1,i=Us(i)?i():i;const h=this.createResolver(e,i,c);d=Ma(o,i,h)}for(const h of n)r[h]=d[h];return r}createResolver(e,n,i=[""],s){const{resolver:r}=zg(this._resolverCache,e,i);return Ue(n)?Ma(r,n,void 0,s):r}}function zg(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:W1(e,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},i.set(s,r)),r}const pC=t=>Ue(t)&&Object.getOwnPropertyNames(t).some(e=>Us(t[e]));function mC(t,e){const{isScriptable:n,isIndexable:i}=Pm(t);for(const s of e){const r=n(s),o=i(s),c=(o||r)&&t[s];if(r&&(Us(c)||pC(c))||o&&Et(c))return!0}return!1}var gC="4.4.3";const _C=["top","bottom","left","right","chartArea"];function Pg(t,e){return t==="top"||t==="bottom"||_C.indexOf(t)===-1&&e==="x"}function Lg(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Fg(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Mt(n&&n.onComplete,[t],e)}function yC(t){const e=t.chart,n=e.options.animation;Mt(n&&n.onProgress,[t],e)}function Rg(t){return U1()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ud={},Hg=t=>{const e=Rg(t);return Object.values(ud).filter(n=>n.canvas===e).pop()};function vC(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function bC(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function hd(t,e,n){return t.options.clip?t[n]:e[n]}function wC(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:hd(n,e,"left"),right:hd(n,e,"right"),top:hd(i,e,"top"),bottom:hd(i,e,"bottom")}:e}class pi{static register(...e){Qi.add(...e),Wg()}static unregister(...e){Qi.remove(...e),Wg()}constructor(e,n){const i=this.config=new fC(n),s=Rg(e),r=Hg(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Pk(s)),this.platform.updateConfig(i);const c=this.platform.acquireContext(s,o.aspectRatio),d=c&&c.canvas,h=d&&d.height,f=d&&d.width;if(this.id=xw(),this.ctx=c,this.canvas=d,this.width=f,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new nC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Fw(m=>this.update(m),o.resizeDelay||0),this._dataChanges=[],ud[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}ys.listen(this,"complete",Fg),ys.listen(this,"progress",yC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return Je(e)?n&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Um(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return $m(this.canvas,this.ctx),this}stop(){return ys.stop(this),this}resize(e,n){ys.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),c=i.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Um(this,c,!0)&&(this.notifyPlugins("resize",{size:o}),Mt(i.onResize,[this,o],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ut(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,c)=>(o[c]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const c=n[o],d=nh(o,c),h=d==="r",f=d==="x";return{options:c,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),ut(r,o=>{const c=o.options,d=c.id,h=nh(d,c),f=$e(c.type,o.dtype);(c.position===void 0||Pg(c.position,h)!==Pg(o.dposition))&&(c.position=o.dposition),s[d]=!0;let m=null;if(d in i&&i[d].type===f)m=i[d];else{const g=Qi.getScale(f);m=new g({id:d,type:f,ctx:this.ctx,chart:this}),i[m.id]=m}m.init(c,e)}),ut(s,(o,c)=>{o||delete i[c]}),ut(i,o=>{bn.configure(this,o,o.options),bn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);e.splice(n,i-n)}this._sortedMetasets=e.slice(0).sort(Lg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const r=n[i];let o=this.getDatasetMeta(i);const c=r.type||this.config.type;if(o.type&&o.type!==c&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=c,o.indexAxis=r.indexAxis||th(c,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const d=Qi.getController(c),{datasetElementType:h,dataElementType:f}=Wt.datasets[c];Object.assign(d,{dataElementType:Qi.getElement(f),datasetElementType:h&&Qi.getElement(h)}),o.controller=new d(this,i),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){ut(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:m}=this.getDatasetMeta(h),g=!s&&r.indexOf(m)===-1;m.buildOrUpdateElements(g),o=Math.max(+m.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||ut(r,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Lg("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){ut(this.scales,e=>{bn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!_m(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;vC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,c)=>c+","+o.splice(1).join(","))),s=i(0);for(let r=1;r<n;r++)if(!_m(s,i(r)))return;return Array.from(s).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],ut(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Us(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const i=this.getDatasetMeta(e),s={meta:i,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ys.has(this)?this.attached&&!ys.running(this)&&ys.start(this):(this.draw(),Fg({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resize(i,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,i=[];let s,r;for(s=0,r=n.length;s<r;++s){const o=n[s];(!e||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,s=!i.disabled,r=wC(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Kc(n,{left:i.left===!1?0:r.left-i.left,right:i.right===!1?this.width:r.right+i.right,top:i.top===!1?0:r.top-i.top,bottom:i.bottom===!1?this.height:r.bottom+i.bottom}),e.controller.draw(),s&&Zc(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return _s(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=_k.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Gs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);nl(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(c=>c.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),ys.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),$m(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ud[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,i=(r,o)=>{n.addEventListener(this,r,o),e[r]=o},s=(r,o,c)=>{r.offsetX=o,r.offsetY=c,this._eventHandler(r)};ut(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(d,h)=>{n.addEventListener(this,d,h),e[d]=h},s=(d,h)=>{e[d]&&(n.removeEventListener(this,d,h),delete e[d])},r=(d,h)=>{this.canvas&&this.resize(d,h)};let o;const c=()=>{s("attach",c),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",c)},n.isAttached(this.canvas)?c():o()}unbindEvents(){ut(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},ut(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,c,d;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){o=e[c];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],i=e.map(({datasetIndex:r,index:o})=>{const c=this.getDatasetMeta(r);if(!c)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:c.data[o],index:o}});!Wc(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(d,h)=>d.filter(f=>!h.some(m=>f.datasetIndex===m.datasetIndex&&f.index===m.index)),o=r(n,e),c=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),c.length&&s.mode&&this.updateHoverStyle(c,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,c=this._getActiveElements(e,s,i,o),d=Bw(e),h=bC(e,this._lastEvent,i,d);i&&(this._lastEvent=null,Mt(r.onHover,[e,c,this],this),d&&Mt(r.onClick,[e,c,this],this));const f=!Wc(c,s);return(f||n)&&(this._active=c,this._updateHoverStyles(c,s,n)),this._lastEvent=h,f}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}}ae(pi,"defaults",Wt),ae(pi,"instances",ud),ae(pi,"overrides",Dr),ae(pi,"registry",Qi),ae(pi,"version",gC),ae(pi,"getChart",Hg);function Wg(){return ut(pi.instances,t=>t._plugins.invalidate())}function kC(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:c,innerRadius:d}=e;let h=s/c;t.beginPath(),t.arc(r,o,c,i-h,n+h),d>s?(h=s/d,t.arc(r,o,d,n+h,i-h,!0)):t.arc(r,o,s,n+Ut,i-Ut),t.closePath(),t.clip()}function CC(t){return H1(t,["outerStart","outerEnd","innerStart","innerEnd"])}function xC(t,e,n,i){const s=CC(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),c=d=>{const h=(n-Math.min(r,d))*i/2;return dn(d,0,Math.min(r,h))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:dn(s.innerStart,0,o),innerEnd:dn(s.innerEnd,0,o)}}function Ba(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function fd(t,e,n,i,s,r){const{x:o,y:c,startAngle:d,pixelMargin:h,innerRadius:f}=e,m=Math.max(e.outerRadius+i+n-h,0),g=f>0?f+i+n+h:0;let y=0;const b=s-d;if(i){const J=f>0?f-i:0,he=m>0?m-i:0,fe=(J+he)/2,ye=fe!==0?b*fe/(fe+i):b;y=(b-ye)/2}const k=Math.max(.001,b*m-n/Bt)/m,C=(b-k)/2,S=d+C+y,E=s-C-y,{outerStart:A,outerEnd:x,innerStart:V,innerEnd:N}=xC(e,g,m,E-S),L=m-A,F=m-x,q=S+A/L,ee=E-x/F,ne=g+V,K=g+N,ie=S+V/ne,me=E-N/K;if(t.beginPath(),r){const J=(q+ee)/2;if(t.arc(o,c,m,q,J),t.arc(o,c,m,J,ee),x>0){const we=Ba(F,ee,o,c);t.arc(we.x,we.y,x,ee,E+Ut)}const he=Ba(K,E,o,c);if(t.lineTo(he.x,he.y),N>0){const we=Ba(K,me,o,c);t.arc(we.x,we.y,N,E+Ut,me+Math.PI)}const fe=(E-N/g+(S+V/g))/2;if(t.arc(o,c,g,E-N/g,fe,!0),t.arc(o,c,g,fe,S+V/g,!0),V>0){const we=Ba(ne,ie,o,c);t.arc(we.x,we.y,V,ie+Math.PI,S-Ut)}const ye=Ba(L,S,o,c);if(t.lineTo(ye.x,ye.y),A>0){const we=Ba(L,q,o,c);t.arc(we.x,we.y,A,S-Ut,q)}}else{t.moveTo(o,c);const J=Math.cos(q)*m+o,he=Math.sin(q)*m+c;t.lineTo(J,he);const fe=Math.cos(ee)*m+o,ye=Math.sin(ee)*m+c;t.lineTo(fe,ye)}t.closePath()}function SC(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c}=e;let d=e.endAngle;if(r){fd(t,e,n,i,d,s);for(let h=0;h<r;++h)t.fill();isNaN(c)||(d=o+(c%Tt||Tt))}return fd(t,e,n,i,d,s),t.fill(),d}function MC(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:c,options:d}=e,{borderWidth:h,borderJoinStyle:f,borderDash:m,borderDashOffset:g}=d,y=d.borderAlign==="inner";if(!h)return;t.setLineDash(m||[]),t.lineDashOffset=g,y?(t.lineWidth=h*2,t.lineJoin=f||"round"):(t.lineWidth=h,t.lineJoin=f||"bevel");let b=e.endAngle;if(r){fd(t,e,n,i,b,s);for(let k=0;k<r;++k)t.stroke();isNaN(c)||(b=o+(c%Tt||Tt))}y&&kC(t,e,b),r||(fd(t,e,n,i,b,s),t.stroke())}class bl extends Ai{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.getProps(["x","y"],s),{angle:o,distance:c}=km(r,{x:n,y:i}),{startAngle:d,endAngle:h,innerRadius:f,outerRadius:m,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),y=(this.options.spacing+this.options.borderWidth)/2,k=$e(g,h-d)>=Tt||sl(o,d,h),C=ms(c,f+y,m+y);return k&&C}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:f}=this.options,m=(r+o)/2,g=(c+d+f+h)/2;return{x:i+Math.cos(m)*g,y:s+Math.sin(m)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>Tt?Math.floor(s/Tt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*r,Math.sin(d)*r);const h=1-Math.sin(Math.min(Bt,s||0)),f=r*h;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,SC(n,this,f,o,c),MC(n,this,f,o,c),n.restore()}}ae(bl,"id","arc"),ae(bl,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(bl,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(bl,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Yg(t,e,n=e){t.lineCap=$e(n.borderCapStyle,e.borderCapStyle),t.setLineDash($e(n.borderDash,e.borderDash)),t.lineDashOffset=$e(n.borderDashOffset,e.borderDashOffset),t.lineJoin=$e(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=$e(n.borderWidth,e.borderWidth),t.strokeStyle=$e(n.borderColor,e.borderColor)}function OC(t,e,n){t.lineTo(n.x,n.y)}function DC(t){return t.stepped?Jw:t.tension||t.cubicInterpolationMode==="monotone"?Qw:OC}function jg(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:c}=e,d=Math.max(s,o),h=Math.min(r,c),f=s<o&&r<o||s>c&&r>c;return{count:i,start:d,loop:e.loop,ilen:h<d&&!f?i+h-d:h-d}}function EC(t,e,n,i){const{points:s,options:r}=e,{count:o,start:c,loop:d,ilen:h}=jg(s,n,i),f=DC(r);let{move:m=!0,reverse:g}=i||{},y,b,k;for(y=0;y<=h;++y)b=s[(c+(g?h-y:y))%o],!b.skip&&(m?(t.moveTo(b.x,b.y),m=!1):f(t,k,b,g,r.stepped),k=b);return d&&(b=s[(c+(g?h:0))%o],f(t,k,b,g,r.stepped)),!!d}function BC(t,e,n,i){const s=e.points,{count:r,start:o,ilen:c}=jg(s,n,i),{move:d=!0,reverse:h}=i||{};let f=0,m=0,g,y,b,k,C,S;const E=x=>(o+(h?c-x:x))%r,A=()=>{k!==C&&(t.lineTo(f,C),t.lineTo(f,k),t.lineTo(f,S))};for(d&&(y=s[E(0)],t.moveTo(y.x,y.y)),g=0;g<=c;++g){if(y=s[E(g)],y.skip)continue;const x=y.x,V=y.y,N=x|0;N===b?(V<k?k=V:V>C&&(C=V),f=(m*f+x)/++m):(A(),t.lineTo(x,V),b=N,m=0,k=C=V),S=V}A()}function ih(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?BC:EC}function TC(t){return t.stepped?T9:t.tension||t.cubicInterpolationMode==="monotone"?V9:Ar}function VC(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),Yg(t,e.options),t.stroke(s)}function IC(t,e,n,i){const{segments:s,options:r}=e,o=ih(e);for(const c of s)Yg(t,r,c.style),t.beginPath(),o(t,e,c,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const AC=typeof Path2D=="function";function $C(t,e,n,i){AC&&!e.options.segment?VC(t,e,n,i):IC(t,e,n,i)}class Zs extends Ai{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;C9(this._points,i,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=P9(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,s=e[n],r=this.points,o=Qm(this,{property:n,start:s,end:s});if(!o.length)return;const c=[],d=TC(i);let h,f;for(h=0,f=o.length;h<f;++h){const{start:m,end:g}=o[h],y=r[m],b=r[g];if(y===b){c.push(y);continue}const k=Math.abs((s-y[n])/(b[n]-y[n])),C=d(y,b,k,i.stepped);C[n]=e[n],c.push(C)}return c.length===1?c[0]:c}pathSegment(e,n,i){return ih(this)(e,this,n,i)}path(e,n,i){const s=this.segments,r=ih(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const c of s)o&=r(e,this,c,{start:n,end:n+i-1});return!!o}draw(e,n,i,s){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),$C(e,this,i,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(Zs,"id","line"),ae(Zs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(Zs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(Zs,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Ug(t,e,n,i){const s=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<s.radius+s.hitRadius}class pd extends Ai{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.options,{x:o,y:c}=this.getProps(["x","y"],s);return Math.pow(n-o,2)+Math.pow(i-c,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(n,i){return Ug(this,n,"x",i)}inYRange(n,i){return Ug(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!_s(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,R1(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(pd,"id","point"),ae(pd,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(pd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function qg(t,e){const{x:n,y:i,base:s,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let c,d,h,f,m;return t.horizontal?(m=o/2,c=Math.min(n,s),d=Math.max(n,s),h=i-m,f=i+m):(m=r/2,c=n-m,d=n+m,h=Math.min(i,s),f=Math.max(i,s)),{left:c,top:h,right:d,bottom:f}}function Xs(t,e,n,i){return t?0:dn(e,n,i)}function NC(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,r=zm(i);return{t:Xs(s.top,r.top,0,n),r:Xs(s.right,r.right,0,e),b:Xs(s.bottom,r.bottom,0,n),l:Xs(s.left,r.left,0,e)}}function zC(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,r=Tr(s),o=Math.min(e,n),c=t.borderSkipped,d=i||Ue(s);return{topLeft:Xs(!d||c.top||c.left,r.topLeft,0,o),topRight:Xs(!d||c.top||c.right,r.topRight,0,o),bottomLeft:Xs(!d||c.bottom||c.left,r.bottomLeft,0,o),bottomRight:Xs(!d||c.bottom||c.right,r.bottomRight,0,o)}}function PC(t){const e=qg(t),n=e.right-e.left,i=e.bottom-e.top,s=NC(t,n/2,i/2),r=zC(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function sh(t,e,n,i){const s=e===null,r=n===null,c=t&&!(s&&r)&&qg(t,i);return c&&(s||ms(e,c.left,c.right))&&(r||ms(n,c.top,c.bottom))}function LC(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function FC(t,e){t.rect(e.x,e.y,e.w,e.h)}function rh(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+r,h:t.h+o,radius:t.radius}}class md extends Ai{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:r,outer:o}=PC(this),c=LC(o.radius)?ll:FC;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),c(e,rh(o,n,r)),e.clip(),c(e,rh(r,-n,o)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),c(e,rh(r,n)),e.fillStyle=s,e.fill(),e.restore()}inRange(e,n,i){return sh(this,e,n,i)}inXRange(e,n){return sh(this,e,null,n)}inYRange(e,n){return sh(this,null,e,n)}getCenterPoint(e){const{x:n,y:i,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(n+s)/2:n,y:r?i:(i+s)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ae(md,"id","bar"),ae(md,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(md,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var RC=Object.freeze({__proto__:null,ArcElement:bl,BarElement:md,LineElement:Zs,PointElement:pd});const ah=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Gg=ah.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Kg(t){return ah[t%ah.length]}function Zg(t){return Gg[t%Gg.length]}function HC(t,e){return t.borderColor=Kg(e),t.backgroundColor=Zg(e),++e}function WC(t,e){return t.backgroundColor=t.data.map(()=>Kg(e++)),e}function YC(t,e){return t.backgroundColor=t.data.map(()=>Zg(e++)),e}function jC(t){let e=0;return(n,i)=>{const s=t.getDatasetMeta(i).controller;s instanceof Ks?e=WC(n,e):s instanceof Ea?e=YC(n,e):s&&(e=HC(n,e))}}function Xg(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function UC(t){return t&&(t.borderColor||t.backgroundColor)}var qC={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:s}=t.config,{elements:r}=s;if(!n.forceOverride&&(Xg(i)||UC(s)||r&&Xg(r)))return;const o=jC(t);i.forEach(o)}};function GC(t,e,n,i,s){const r=s.samples||i;if(r>=n)return t.slice(e,e+n);const o=[],c=(n-2)/(r-2);let d=0;const h=e+n-1;let f=e,m,g,y,b,k;for(o[d++]=t[f],m=0;m<r-2;m++){let C=0,S=0,E;const A=Math.floor((m+1)*c)+1+e,x=Math.min(Math.floor((m+2)*c)+1,n)+e,V=x-A;for(E=A;E<x;E++)C+=t[E].x,S+=t[E].y;C/=V,S/=V;const N=Math.floor(m*c)+1+e,L=Math.min(Math.floor((m+1)*c)+1,n)+e,{x:F,y:q}=t[f];for(y=b=-1,E=N;E<L;E++)b=.5*Math.abs((F-C)*(t[E].y-q)-(F-t[E].x)*(S-q)),b>y&&(y=b,g=t[E],k=E);o[d++]=g,f=k}return o[d++]=t[h],o}function KC(t,e,n,i){let s=0,r=0,o,c,d,h,f,m,g,y,b,k;const C=[],S=e+n-1,E=t[e].x,x=t[S].x-E;for(o=e;o<e+n;++o){c=t[o],d=(c.x-E)/x*i,h=c.y;const V=d|0;if(V===f)h<b?(b=h,m=o):h>k&&(k=h,g=o),s=(r*s+c.x)/++r;else{const N=o-1;if(!Je(m)&&!Je(g)){const L=Math.min(m,g),F=Math.max(m,g);L!==y&&L!==N&&C.push({...t[L],x:s}),F!==y&&F!==N&&C.push({...t[F],x:s})}o>0&&N!==y&&C.push(t[N]),C.push(c),f=V,r=0,b=k=h,m=g=y=o}}return C}function Jg(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Qg(t){t.data.datasets.forEach(e=>{Jg(e)})}function ZC(t,e){const n=e.length;let i=0,s;const{iScale:r}=t,{min:o,max:c,minDefined:d,maxDefined:h}=r.getUserBounds();return d&&(i=dn(gs(e,r.axis,o).lo,0,n-1)),h?s=dn(gs(e,r.axis,c).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var XC={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){Qg(t);return}const i=t.width;t.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:c}=s,d=t.getDatasetMeta(r),h=o||s.data;if(cl([c,t.options.indexAxis])==="y"||!d.controller.supportsDecimation)return;const f=t.scales[d.xAxisID];if(f.type!=="linear"&&f.type!=="time"||t.options.parsing)return;let{start:m,count:g}=ZC(d,h);const y=n.threshold||4*i;if(g<=y){Jg(s);return}Je(o)&&(s._data=h,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(k){this._data=k}}));let b;switch(n.algorithm){case"lttb":b=GC(h,m,g,i,n);break;case"min-max":b=KC(h,m,g,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=b})},destroy(t){Qg(t)}};function JC(t,e,n){const i=t.segments,s=t.points,r=e.points,o=[];for(const c of i){let{start:d,end:h}=c;h=lh(d,h,s);const f=oh(n,s[d],s[h],c.loop);if(!e.segments){o.push({source:c,target:f,start:s[d],end:s[h]});continue}const m=Qm(e,f);for(const g of m){const y=oh(n,r[g.start],r[g.end],g.loop),b=Jm(c,s,y);for(const k of b)o.push({source:k,target:g,start:{[n]:e2(f,y,"start",Math.max)},end:{[n]:e2(f,y,"end",Math.min)}})}}return o}function oh(t,e,n,i){if(i)return;let s=e[t],r=n[t];return t==="angle"&&(s=ei(s),r=ei(r)),{property:t,start:s,end:r}}function QC(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:c})=>{c=lh(o,c,s);const d=s[o],h=s[c];i!==null?(r.push({x:d.x,y:i}),r.push({x:h.x,y:i})):n!==null&&(r.push({x:n,y:d.y}),r.push({x:n,y:h.y}))}),r}function lh(t,e,n){for(;e>t;e--){const i=n[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function e2(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function t2(t,e){let n=[],i=!1;return Et(t)?(i=!0,n=t):n=QC(t,e),n.length?new Zs({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function n2(t){return t&&t.fill!==!1}function ex(t,e,n){let s=t[e].fill;const r=[e];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!Ht(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function tx(t,e,n){const i=rx(t);if(Ue(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return Ht(s)&&Math.floor(s)===s?nx(i[0],e,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function nx(t,e,n,i){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=i?!1:n}function ix(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:Ue(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function sx(t,e,n){let i;return t==="start"?i=n:t==="end"?i=e.options.reverse?e.min:e.max:Ue(t)?i=t.value:i=e.getBaseValue(),i}function rx(t){const e=t.options,n=e.fill;let i=$e(n&&n.target,n);return i===void 0&&(i=!!e.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function ax(t){const{scale:e,index:n,line:i}=t,s=[],r=i.segments,o=i.points,c=ox(e,n);c.push(t2({x:null,y:e.bottom},i));for(let d=0;d<r.length;d++){const h=r[d];for(let f=h.start;f<=h.end;f++)lx(s,o[f],c)}return new Zs({points:s,options:{}})}function ox(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let s=0;s<i.length;s++){const r=i[s];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}function lx(t,e,n){const i=[];for(let s=0;s<n.length;s++){const r=n[s],{first:o,last:c,point:d}=cx(r,e,"x");if(!(!d||o&&c)){if(o)i.unshift(d);else if(t.push(d),!c)break}}t.push(...i)}function cx(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const s=i[n],r=t.segments,o=t.points;let c=!1,d=!1;for(let h=0;h<r.length;h++){const f=r[h],m=o[f.start][n],g=o[f.end][n];if(ms(s,m,g)){c=s===m,d=s===g;break}}return{first:c,last:d,point:i}}class i2{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,i){const{x:s,y:r,radius:o}=this;return n=n||{start:0,end:Tt},e.arc(s,r,o,n.end,n.start,!0),!i.bounds}interpolate(e){const{x:n,y:i,radius:s}=this,r=e.angle;return{x:n+Math.cos(r)*s,y:i+Math.sin(r)*s,angle:r}}}function dx(t){const{chart:e,fill:n,line:i}=t;if(Ht(n))return ux(e,n);if(n==="stack")return ax(t);if(n==="shape")return!0;const s=hx(t);return s instanceof i2?s:t2(s,i)}function ux(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function hx(t){return(t.scale||{}).getPointPositionForValue?px(t):fx(t)}function fx(t){const{scale:e={},fill:n}=t,i=ix(n,e);if(Ht(i)){const s=e.isHorizontal();return{x:s?i:null,y:s?null:i}}return null}function px(t){const{scale:e,fill:n}=t,i=e.options,s=e.getLabels().length,r=i.reverse?e.max:e.min,o=sx(n,e,r),c=[];if(i.grid.circular){const d=e.getPointPositionForValue(0,r);return new i2({x:d.x,y:d.y,radius:e.getDistanceFromCenterForValue(o)})}for(let d=0;d<s;++d)c.push(e.getPointPositionForValue(d,o));return c}function ch(t,e,n){const i=dx(e),{line:s,scale:r,axis:o}=e,c=s.options,d=c.fill,h=c.backgroundColor,{above:f=h,below:m=h}=d||{};i&&s.points.length&&(Kc(t,n),mx(t,{line:s,target:i,above:f,below:m,area:n,scale:r,axis:o}),Zc(t))}function mx(t,e){const{line:n,target:i,above:s,below:r,area:o,scale:c}=e,d=n._loop?"angle":e.axis;t.save(),d==="x"&&r!==s&&(s2(t,i,o.top),r2(t,{line:n,target:i,color:s,scale:c,property:d}),t.restore(),t.save(),s2(t,i,o.bottom)),r2(t,{line:n,target:i,color:r,scale:c,property:d}),t.restore()}function s2(t,e,n){const{segments:i,points:s}=e;let r=!0,o=!1;t.beginPath();for(const c of i){const{start:d,end:h}=c,f=s[d],m=s[lh(d,h,s)];r?(t.moveTo(f.x,f.y),r=!1):(t.lineTo(f.x,n),t.lineTo(f.x,f.y)),o=!!e.pathSegment(t,c,{move:o}),o?t.closePath():t.lineTo(m.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function r2(t,e){const{line:n,target:i,property:s,color:r,scale:o}=e,c=JC(n,i,s);for(const{source:d,target:h,start:f,end:m}of c){const{style:{backgroundColor:g=r}={}}=d,y=i!==!0;t.save(),t.fillStyle=g,gx(t,o,y&&oh(s,f,m)),t.beginPath();const b=!!n.pathSegment(t,d);let k;if(y){b?t.closePath():a2(t,i,m,s);const C=!!i.pathSegment(t,h,{move:b,reverse:!0});k=b&&C,k||a2(t,i,f,s)}t.closePath(),t.fill(k?"evenodd":"nonzero"),t.restore()}}function gx(t,e,n){const{top:i,bottom:s}=e.chart.chartArea,{property:r,start:o,end:c}=n||{};r==="x"&&(t.beginPath(),t.rect(o,i,c-o,s-i),t.clip())}function a2(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}var _x={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,s=[];let r,o,c,d;for(o=0;o<i;++o)r=t.getDatasetMeta(o),c=r.dataset,d=null,c&&c.options&&c instanceof Zs&&(d={visible:t.isDatasetVisible(o),index:o,fill:tx(c,o,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:c}),r.$filler=d,s.push(d);for(o=0;o<i;++o)d=s[o],!(!d||d.fill===!1)&&(d.fill=ex(s,o,n.propagate))},beforeDraw(t,e,n){const i=n.drawTime==="beforeDraw",s=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let o=s.length-1;o>=0;--o){const c=s[o].$filler;!c||(c.line.updateControlPoints(r,c.axis),i&&c.fill&&ch(t.ctx,c,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;n2(r)&&ch(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;!n2(i)||n.drawTime!=="beforeDatasetDraw"||ch(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const o2=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},yx=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class l2 extends Ai{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Mt(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=en(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=o2(i,r);let h,f;n.font=s.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(o,r,c,d)+10):(f=this.maxHeight,h=this._fitCols(o,s,c,d)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(f,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],f=s+c;let m=e;r.textAlign="left",r.textBaseline="middle";let g=-1,y=-f;return this.legendItems.forEach((b,k)=>{const C=i+n/2+r.measureText(b.text).width;(k===0||h[h.length-1]+C+2*c>o)&&(m+=f,h[h.length-(k>0?0:1)]=0,y+=f,g++),d[k]={left:0,top:y,row:g,width:C,height:s},h[h.length-1]+=C+c}),m}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],f=o-e;let m=c,g=0,y=0,b=0,k=0;return this.legendItems.forEach((C,S)=>{const{itemWidth:E,itemHeight:A}=vx(i,n,r,C,s);S>0&&y+A+2*c>f&&(m+=g+c,h.push({width:g,height:y}),b+=g+c,k++,g=y=0),d[S]={left:b,top:y,col:k,width:E,height:A},g=Math.max(g,E),y+=A+c}),m+=g,h.push({width:g,height:y}),m}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Da(r,this.left,this.width);if(this.isHorizontal()){let c=0,d=yn(i,this.left+s,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=yn(i,this.left+s,this.right-this.lineWidths[c])),h.top+=this.top+e+s,h.left=o.leftForLtr(o.x(d),h.width),d+=h.width+s}else{let c=0,d=yn(i,this.top+e+s,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=yn(i,this.top+e+s,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+s,h.left=o.leftForLtr(o.x(h.left),h.width),d+=h.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kc(e,this),this._draw(),Zc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,c=Wt.color,d=Da(e.rtl,this.left,this.width),h=en(o.font),{padding:f}=o,m=h.size,g=m/2;let y;this.drawTitle(),s.textAlign=d.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:b,boxHeight:k,itemHeight:C}=o2(o,m),S=function(N,L,F){if(isNaN(b)||b<=0||isNaN(k)||k<0)return;s.save();const q=$e(F.lineWidth,1);if(s.fillStyle=$e(F.fillStyle,c),s.lineCap=$e(F.lineCap,"butt"),s.lineDashOffset=$e(F.lineDashOffset,0),s.lineJoin=$e(F.lineJoin,"miter"),s.lineWidth=q,s.strokeStyle=$e(F.strokeStyle,c),s.setLineDash($e(F.lineDash,[])),o.usePointStyle){const ee={radius:k*Math.SQRT2/2,pointStyle:F.pointStyle,rotation:F.rotation,borderWidth:q},ne=d.xPlus(N,b/2),K=L+g;Nm(s,ee,ne,K,o.pointStyleWidth&&b)}else{const ee=L+Math.max((m-k)/2,0),ne=d.leftForLtr(N,b),K=Tr(F.borderRadius);s.beginPath(),Object.values(K).some(ie=>ie!==0)?ll(s,{x:ne,y:ee,w:b,h:k,radius:K}):s.rect(ne,ee,b,k),s.fill(),q!==0&&s.stroke()}s.restore()},E=function(N,L,F){Br(s,F.text,N,L+C/2,h,{strikethrough:F.hidden,textAlign:d.textAlign(F.textAlign)})},A=this.isHorizontal(),x=this._computeTitleHeight();A?y={x:yn(r,this.left+f,this.right-i[0]),y:this.top+f+x,line:0}:y={x:this.left+f,y:yn(r,this.top+x+f,this.bottom-n[0].height),line:0},Gm(this.ctx,e.textDirection);const V=C+f;this.legendItems.forEach((N,L)=>{s.strokeStyle=N.fontColor,s.fillStyle=N.fontColor;const F=s.measureText(N.text).width,q=d.textAlign(N.textAlign||(N.textAlign=o.textAlign)),ee=b+g+F;let ne=y.x,K=y.y;d.setWidth(this.width),A?L>0&&ne+ee+f>this.right&&(K=y.y+=V,y.line++,ne=y.x=yn(r,this.left+f,this.right-i[y.line])):L>0&&K+V>this.bottom&&(ne=y.x=ne+n[y.line].width+f,y.line++,K=y.y=yn(r,this.top+x+f,this.bottom-n[y.line].height));const ie=d.x(ne);if(S(ie,K,N),ne=Rw(q,ne+b+g,A?ne+ee:this.right,e.rtl),E(d.x(ne),K,N),A)y.x+=ee+f;else if(typeof N.text!="string"){const me=h.lineHeight;y.y+=c2(N,me)+f}else y.y+=V}),Km(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=en(n.font),s=vn(n.padding);if(!n.display)return;const r=Da(e.rtl,this.left,this.width),o=this.ctx,c=n.position,d=i.size/2,h=s.top+d;let f,m=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),f=this.top+h,m=yn(e.align,m,this.right-g);else{const b=this.columnSizes.reduce((k,C)=>Math.max(k,C.height),0);f=h+yn(e.align,this.top,this.bottom-b-e.labels.padding-this._computeTitleHeight())}const y=yn(c,m,m+g);o.textAlign=r.textAlign(N1(c)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,Br(o,n.text,y,f,i)}_computeTitleHeight(){const e=this.options.title,n=en(e.font),i=vn(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(ms(e,this.left,this.right)&&ms(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(s=r[i],ms(e,s.left,s.left+s.width)&&ms(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(e){const n=this.options;if(!kx(e.type,n))return;const i=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,r=yx(s,i);s&&!r&&Mt(n.onLeave,[e,s,this],this),this._hoveredItem=i,i&&!r&&Mt(n.onHover,[e,i,this],this)}else i&&Mt(n.onClick,[e,i,this],this)}}function vx(t,e,n,i,s){const r=bx(i,t,e,n),o=wx(s,i,e.lineHeight);return{itemWidth:r,itemHeight:o}}function bx(t,e,n,i){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function wx(t,e,n){let i=t;return typeof e.text!="string"&&(i=c2(e,n)),i}function c2(t,e){const n=t.text?t.text.length:0;return e*n}function kx(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Cx={id:"legend",_element:l2,start(t,e,n){const i=t.legend=new l2({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i)},stop(t){bn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;bn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:c}}=t.legend.options;return t._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),f=vn(h.borderWidth);return{text:e[d.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:s||h.textAlign,borderRadius:o&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dh extends Ai{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Et(i.text)?i.text.length:1;this._padding=vn(i.padding);const r=s*en(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,c=o.align;let d=0,h,f,m;return this.isHorizontal()?(f=yn(c,i,r),m=n+e,h=r-i):(o.position==="left"?(f=i+e,m=yn(c,s,n),d=Bt*-.5):(f=r-e,m=yn(c,n,s),d=Bt*.5),h=s-n),{titleX:f,titleY:m,maxWidth:h,rotation:d}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=en(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(r);Br(e,n.text,0,0,i,{color:n.color,maxWidth:d,rotation:h,textAlign:N1(n.align),textBaseline:"middle",translation:[o,c]})}}function xx(t,e){const n=new dh({ctx:t.ctx,options:e,chart:t});bn.configure(t,n,e),bn.addBox(t,n),t.titleBlock=n}var Sx={id:"title",_element:dh,start(t,e,n){xx(t,n)},stop(t){const e=t.titleBlock;bn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gd=new WeakMap;var Mx={id:"subtitle",start(t,e,n){const i=new dh({ctx:t.ctx,options:n,chart:t});bn.configure(t,i,n),bn.addBox(t,i),gd.set(t,i)},stop(t){bn.removeBox(t,gd.get(t)),gd.delete(t)},beforeUpdate(t,e,n){const i=gd.get(t);bn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wl={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;e<n;++e){const c=t[e].element;if(c&&c.hasValue()){const d=c.tooltipPosition();i.add(d.x),s+=d.y,++r}}return{x:[...i].reduce((c,d)=>c+d)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,c;for(r=0,o=t.length;r<o;++r){const d=t[r].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),f=A1(e,h);f<s&&(s=f,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,i=d.y}return{x:n,y:i}}};function es(t,e){return e&&(Et(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vs(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
37
37
  `)>-1?t.split(`
38
- `):t}function Ox(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:c}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:c,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function d2(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:c}=e,d=en(e.bodyFont),h=en(e.titleFont),f=en(e.footerFont),m=r.length,g=s.length,y=i.length,b=vn(e.padding);let k=b.height,C=0,S=i.reduce((x,V)=>x+V.before.length+V.lines.length+V.after.length,0);if(S+=t.beforeBody.length+t.afterBody.length,m&&(k+=m*h.lineHeight+(m-1)*e.titleSpacing+e.titleMarginBottom),S){const x=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;k+=y*x+(S-y)*d.lineHeight+(S-1)*e.bodySpacing}g&&(k+=e.footerMarginTop+g*f.lineHeight+(g-1)*e.footerSpacing);let E=0;const A=function(x){C=Math.max(C,n.measureText(x).width+E)};return n.save(),n.font=h.string,ut(t.title,A),n.font=d.string,ut(t.beforeBody.concat(t.afterBody),A),E=e.displayColors?o+2+e.boxPadding:0,ut(i,x=>{ut(x.before,A),ut(x.lines,A),ut(x.after,A)}),E=0,n.font=f.string,ut(t.footer,A),n.restore(),C+=b.width,{width:C,height:k}}function Dx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Ex(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function Bx(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:c,right:d}}=t;let h="center";return i==="center"?h=s<=(c+d)/2?"left":"right":s<=r/2?h="left":s>=o-r/2&&(h="right"),Ex(h,t,e,n)&&(h="center"),h}function u2(t,e,n){const i=n.yAlign||e.yAlign||Dx(t,n);return{xAlign:n.xAlign||e.xAlign||Bx(t,e,n,i),yAlign:i}}function Tx(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function Vx(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function h2(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:c,yAlign:d}=n,h=s+r,{topLeft:f,topRight:m,bottomLeft:g,bottomRight:y}=Tr(o);let b=Tx(e,c);const k=Vx(e,d,h);return d==="center"?c==="left"?b+=h:c==="right"&&(b-=h):c==="left"?b-=Math.max(f,g)+s:c==="right"&&(b+=Math.max(m,y)+s),{x:dn(b,0,i.width-e.width),y:dn(k,0,i.height-e.height)}}function _d(t,e,n){const i=vn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function f2(t){return es([],vs(t))}function Ix(t,e,n){return Gs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function p2(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const m2={beforeTitle:ps,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:ps,beforeBody:ps,beforeLabel:ps,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Je(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ps,afterBody:ps,beforeFooter:ps,footer:ps,afterFooter:ps};function Fn(t,e,n,i){const s=t[e].call(n,i);return typeof s>"u"?m2[e].call(n,i):s}class uh extends Ii{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new ig(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Ix(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=Fn(i,"beforeTitle",this,e),r=Fn(i,"title",this,e),o=Fn(i,"afterTitle",this,e);let c=[];return c=es(c,vs(s)),c=es(c,vs(r)),c=es(c,vs(o)),c}getBeforeBody(e,n){return f2(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return ut(e,r=>{const o={before:[],lines:[],after:[]},c=p2(i,r);es(o.before,vs(Fn(c,"beforeLabel",this,r))),es(o.lines,Fn(c,"label",this,r)),es(o.after,vs(Fn(c,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return f2(Fn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=Fn(i,"beforeFooter",this,e),r=Fn(i,"footer",this,e),o=Fn(i,"afterFooter",this,e);let c=[];return c=es(c,vs(s)),c=es(c,vs(r)),c=es(c,vs(o)),c}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(Ox(this.chart,n[d]));return e.filter&&(c=c.filter((f,m,g)=>e.filter(f,m,g,i))),e.itemSort&&(c=c.sort((f,m)=>e.itemSort(f,m,i))),ut(c,f=>{const m=p2(e.callbacks,f);s.push(Fn(m,"labelColor",this,f)),r.push(Fn(m,"labelPointStyle",this,f)),o.push(Fn(m,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const c=wl[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const d=this._size=d2(this,i),h=Object.assign({},c,d),f=u2(this.chart,i,h),m=h2(i,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:m.x,y:m.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:c}=i,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:m}=Tr(c),{x:g,y}=e,{width:b,height:k}=n;let C,S,E,A,x,V;return r==="center"?(x=y+k/2,s==="left"?(C=g,S=C-o,A=x+o,V=x-o):(C=g+b,S=C+o,A=x-o,V=x+o),E=C):(s==="left"?S=g+Math.max(d,f)+o:s==="right"?S=g+b-Math.max(h,m)-o:S=this.caretX,r==="top"?(A=y,x=A-o,C=S-o,E=S+o):(A=y+k,x=A+o,C=S+o,E=S-o),V=A),{x1:C,x2:S,x3:E,y1:A,y2:x,y3:V}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,c,d;if(r){const h=Da(i.rtl,this.x,this.width);for(e.x=_d(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=en(i.titleFont),c=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,d=0;d<r;++d)n.fillText(s[d],h.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+c,d+1===r&&(e.y+=i.titleMarginBottom-c)}}_drawColorBox(e,n,i,s,r){const o=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:d,boxWidth:h}=r,f=en(r.bodyFont),m=_d(this,"left",r),g=s.x(m),y=d<f.lineHeight?(f.lineHeight-d)/2:0,b=n.y+y;if(r.usePointStyle){const k={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},C=s.leftForLtr(g,h)+h/2,S=b+d/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,R1(e,k,C,S),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,R1(e,k,C,S)}else{e.lineWidth=Ue(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const k=s.leftForLtr(g,h),C=s.leftForLtr(s.xPlus(g,1),h-2),S=Tr(o.borderRadius);Object.values(S).some(E=>E!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,ll(e,{x:k,y:b,w:h,h:d,radius:S}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ll(e,{x:C,y:b+1,w:h-2,h:d-2,radius:S}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(k,b,h,d),e.strokeRect(k,b,h,d),e.fillStyle=o.backgroundColor,e.fillRect(C,b+1,h-2,d-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:f}=i,m=en(i.bodyFont);let g=m.lineHeight,y=0;const b=Da(i.rtl,this.x,this.width),k=function(F){n.fillText(F,b.x(e.x+y),e.y+g/2),e.y+=g+r},C=b.textAlign(o);let S,E,A,x,V,N,L;for(n.textAlign=o,n.textBaseline="middle",n.font=m.string,e.x=_d(this,C,i),n.fillStyle=i.bodyColor,ut(this.beforeBody,k),y=c&&C!=="right"?o==="center"?h/2+f:h+2+f:0,x=0,N=s.length;x<N;++x){for(S=s[x],E=this.labelTextColors[x],n.fillStyle=E,ut(S.before,k),A=S.lines,c&&A.length&&(this._drawColorBox(n,e,x,b,i),g=Math.max(m.lineHeight,d)),V=0,L=A.length;V<L;++V)k(A[V]),g=m.lineHeight;ut(S.after,k)}y=0,g=m.lineHeight,ut(this.afterBody,k),e.y-=r}drawFooter(e,n,i){const s=this.footer,r=s.length;let o,c;if(r){const d=Da(i.rtl,this.x,this.width);for(e.x=_d(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=d.textAlign(i.footerAlign),n.textBaseline="middle",o=en(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,c=0;c<r;++c)n.fillText(s[c],d.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i.footerSpacing}}drawBackground(e,n,i,s){const{xAlign:r,yAlign:o}=this,{x:c,y:d}=e,{width:h,height:f}=i,{topLeft:m,topRight:g,bottomLeft:y,bottomRight:b}=Tr(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(c+m,d),o==="top"&&this.drawCaret(e,n,i,s),n.lineTo(c+h-g,d),n.quadraticCurveTo(c+h,d,c+h,d+g),o==="center"&&r==="right"&&this.drawCaret(e,n,i,s),n.lineTo(c+h,d+f-b),n.quadraticCurveTo(c+h,d+f,c+h-b,d+f),o==="bottom"&&this.drawCaret(e,n,i,s),n.lineTo(c+y,d+f),n.quadraticCurveTo(c,d+f,c,d+f-y),o==="center"&&r==="left"&&this.drawCaret(e,n,i,s),n.lineTo(c,d+m),n.quadraticCurveTo(c,d,c+m,d),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=wl[e.position].call(this,this._active,this._eventPosition);if(!o)return;const c=this._size=d2(this,e),d=Object.assign({},o,this._size),h=u2(n,e,d),f=h2(e,d,h,n);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=vn(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),Gm(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Km(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),r=!Wc(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),c=this._positionChanged(o,e),d=n||!Wc(o,r)||c;return d&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=wl[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}ae(uh,"positioners",wl);var Ax={id:"tooltip",_element:uh,positioners:wl,afterInit(t,e,n){n&&(t.tooltip=new uh({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:m2},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},$x=Object.freeze({__proto__:null,Colors:qC,Decimation:XC,Filler:_x,Legend:Cx,SubTitle:Mx,Title:Sx,Tooltip:Ax});const Nx=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function zx(t,e,n,i){const s=t.indexOf(e);if(s===-1)return Nx(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const Px=(t,e)=>t===null?null:dn(Math.round(t),0,e);function g2(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hh extends Nr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Je(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:zx(i,e,$e(n,e),this._addedLabels),Px(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,s=[];let r=this.getLabels();r=e===0&&n===r.length-1?r:r.slice(e,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=e;o<=n;o++)s.push({value:o});return s}getLabelForValue(e){return g2.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ae(hh,"id","category"),ae(hh,"defaults",{ticks:{callback:g2}});function Lx(t,e){const n=[],{bounds:s,step:r,min:o,max:c,precision:d,count:h,maxTicks:f,maxDigits:m,includeBounds:g}=t,y=r||1,b=f-1,{min:k,max:C}=e,S=!Je(o),E=!Je(c),A=!Je(h),x=(C-k)/(m+1);let V=vm((C-k)/b/y)*y,N,L,F,q;if(V<1e-14&&!S&&!E)return[{value:k},{value:C}];q=Math.ceil(C/V)-Math.floor(k/V),q>b&&(V=vm(q*V/b/y)*y),Je(d)||(N=Math.pow(10,d),V=Math.ceil(V*N)/N),s==="ticks"?(L=Math.floor(k/V)*V,F=Math.ceil(C/V)*V):(L=k,F=C),S&&E&&r&&Aw((c-o)/r,V/1e3)?(q=Math.round(Math.min((c-o)/V,f)),V=(c-o)/q,L=o,F=c):A?(L=S?o:L,F=E?c:F,q=h-1,V=(F-L)/q):(q=(F-L)/V,il(q,Math.round(q),V/1e3)?q=Math.round(q):q=Math.ceil(q));const ee=Math.max(wm(V),wm(L));N=Math.pow(10,Je(d)?ee:d),L=Math.round(L*N)/N,F=Math.round(F*N)/N;let ne=0;for(S&&(g&&L!==o?(n.push({value:o}),L<o&&ne++,il(Math.round((L+ne*V)*N)/N,o,_2(o,x,t))&&ne++):L<o&&ne++);ne<q;++ne){const K=Math.round((L+ne*V)*N)/N;if(E&&K>c)break;n.push({value:K})}return E&&g&&F!==c?n.length&&il(n[n.length-1].value,c,_2(c,x,t))?n[n.length-1].value=c:n.push({value:c}):(!E||F===c)&&n.push({value:F}),n}function _2(t,e,{horizontal:n,minRotation:i}){const s=Ti(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class yd extends Nr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Je(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=d=>s=n?s:d,c=d=>r=i?r:d;if(e){const d=Ji(s),h=Ji(r);d<0&&h<0?c(0):d>0&&h>0&&o(0)}if(s===r){let d=r===0?1:Math.abs(r*.05);c(r+d),e||o(s-d)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=Lx(s,r);return e.bounds==="ticks"&&bm(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return al(e,this.chart.options.locale,this.options.ticks.format)}}class fh extends yd{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?e:0,this.max=Ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Ti(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ae(fh,"id","linear"),ae(fh,"defaults",{ticks:{callback:qc.formatters.numeric}});const kl=t=>Math.floor(qs(t)),zr=(t,e)=>Math.pow(10,kl(t)+e);function y2(t){return t/Math.pow(10,kl(t))===1}function v2(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function Fx(t,e){const n=e-t;let i=kl(n);for(;v2(t,e,i)>10;)i++;for(;v2(t,e,i)<10;)i--;return Math.min(i,kl(t))}function Rx(t,{min:e,max:n}){e=Qn(t.min,e);const i=[],s=kl(e);let r=Fx(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const c=Math.pow(10,r),d=s>r?Math.pow(10,s):0,h=Math.round((e-d)*o)/o,f=Math.floor((e-d)/c/10)*c*10;let m=Math.floor((h-f)/Math.pow(10,r)),g=Qn(t.min,Math.round((d+f+m*Math.pow(10,r))*o)/o);for(;g<n;)i.push({value:g,major:y2(g),significand:m}),m>=10?m=m<15?15:20:m++,m>=20&&(r++,m=2,o=r>=0?1:o),g=Math.round((d+f+m*Math.pow(10,r))*o)/o;const y=Qn(t.max,g);return i.push({value:y,major:y2(y),significand:m}),i}class ph extends Nr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=yd.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Ht(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?Math.max(0,e):null,this.max=Ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ht(this._userMin)&&(this.min=e===zr(this.min,0)?zr(this.min,-1):zr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=c=>i=e?i:c,o=c=>s=n?s:c;i===s&&(i<=0?(r(1),o(10)):(r(zr(i,-1)),o(zr(s,1)))),i<=0&&r(zr(s,-1)),s<=0&&o(zr(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=Rx(n,this);return e.bounds==="ticks"&&bm(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":al(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=qs(e),this._valueRange=qs(this.max)-qs(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(qs(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ae(ph,"id","logarithmic"),ae(ph,"defaults",{ticks:{callback:qc.formatters.logarithmic,major:{enabled:!0}}});function mh(t){const e=t.ticks;if(e.display&&t.display){const n=vn(e.backdropPadding);return $e(e.font&&e.font.size,Wt.font.size)+n.height}return 0}function Hx(t,e,n){return n=Et(n)?n:[n],{w:Xw(t,e.string,n),h:n.length*e.lineHeight}}function b2(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function Wx(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,c=o.centerPointLabels?Bt/r:0;for(let d=0;d<r;d++){const h=o.setContext(t.getPointLabelContext(d));s[d]=h.padding;const f=t.getPointPosition(d,t.drawingArea+s[d],c),m=en(h.font),g=Hx(t.ctx,m,t._pointLabels[d]);i[d]=g;const y=ei(t.getIndexAngle(d)+c),b=Math.round(I1(y)),k=b2(b,f.x,g.w,0,180),C=b2(b,f.y,g.h,90,270);Yx(n,e,y,k,C)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=qx(t,i,s)}function Yx(t,e,n,i,s){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let c=0,d=0;i.start<e.l?(c=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-c)):i.end>e.r&&(c=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+c)),s.start<e.t?(d=(e.t-s.start)/o,t.t=Math.min(t.t,e.t-d)):s.end>e.b&&(d=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+d))}function jx(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:c}=n,d=t.getPointPosition(e,i+s+o,r),h=Math.round(I1(ei(d.angle+Ut))),f=Zx(d.y,c.h,h),m=Gx(h),g=Kx(d.x,c.w,m);return{visible:!0,x:d.x,y:f,textAlign:m,left:g,top:f,right:g+c.w,bottom:f+c.h}}function Ux(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(_s({x:n,y:i},e)||_s({x:n,y:r},e)||_s({x:s,y:i},e)||_s({x:s,y:r},e))}function qx(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:mh(r)/2,additionalAngle:o?Bt/s:0};let h;for(let f=0;f<s;f++){d.padding=n[f],d.size=e[f];const m=jx(t,f,d);i.push(m),c==="auto"&&(m.visible=Ux(m,h),m.visible&&(h=m))}return i}function Gx(t){return t===0||t===180?"center":t<180?"left":"right"}function Kx(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Zx(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xx(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:c}=e;if(!Je(c)){const d=Tr(e.borderRadius),h=vn(e.backdropPadding);t.fillStyle=c;const f=i-h.left,m=s-h.top,g=r-i+h.width,y=o-s+h.height;Object.values(d).some(b=>b!==0)?(t.beginPath(),ll(t,{x:f,y:m,w:g,h:y,radius:d}),t.fill()):t.fillRect(f,m,g,y)}}function Jx(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));Xx(n,o,r);const c=en(o.font),{x:d,y:h,textAlign:f}=r;Br(n,t._pointLabels[s],d,h+c.lineHeight/2,c,{color:o.color,textAlign:f,textBaseline:"middle"})}}function w2(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Tt);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o<i;o++)r=t.getPointPosition(o,e),s.lineTo(r.x,r.y)}}function Qx(t,e,n,i,s){const r=t.ctx,o=e.circular,{color:c,lineWidth:d}=e;!o&&!i||!c||!d||n<0||(r.save(),r.strokeStyle=c,r.lineWidth=d,r.setLineDash(s.dash),r.lineDashOffset=s.dashOffset,r.beginPath(),w2(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function eS(t,e,n){return Gs(t,{label:n,index:e,type:"pointLabel"})}class Cl extends yd{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=vn(mh(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ht(e)&&!isNaN(e)?e:0,this.max=Ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/mh(this.options))}generateTickLabels(e){yd.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const s=Mt(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?Wx(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Tt/(this._pointLabels.length||1),i=this.options.startAngle||0;return ei(e*n+Ti(i))}getDistanceFromCenterForValue(e){if(Je(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Je(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const i=n[e];return eS(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const s=this.getIndexAngle(e)-Ut+i;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:i,right:s,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:s,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),w2(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:s,border:r}=n,o=this._pointLabels.length;let c,d,h;if(n.pointLabels.display&&Jx(this,o),s.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){d=this.getDistanceFromCenterForValue(f.value);const g=this.getContext(m),y=s.setContext(g),b=r.setContext(g);Qx(this,y,d,o,b)}}),i.display){for(e.save(),c=o-1;c>=0;c--){const f=i.setContext(this.getPointLabelContext(c)),{color:m,lineWidth:g}=f;!g||!m||(e.lineWidth=g,e.strokeStyle=m,e.setLineDash(f.borderDash),e.lineDashOffset=f.borderDashOffset,d=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(c,d),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,d)=>{if(d===0&&this.min>=0&&!n.reverse)return;const h=i.setContext(this.getContext(d)),f=en(h.font);if(r=this.getDistanceFromCenterForValue(this.ticks[d].value),h.showLabelBackdrop){e.font=f.string,o=e.measureText(c.label).width,e.fillStyle=h.backdropColor;const m=vn(h.backdropPadding);e.fillRect(-o/2-m.left,-r-f.size/2-m.top,o+m.width,f.size+m.height)}Br(e,c.label,0,-r,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(Cl,"id","radialLinear"),ae(Cl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:qc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(Cl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(Cl,"descriptors",{angleLines:{_fallback:"grid"}});const vd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Rn=Object.keys(vd);function k2(t,e){return t-e}function C2(t,e){if(Je(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Ht(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Sa(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function x2(t,e,n,i){const s=Rn.length;for(let r=Rn.indexOf(t);r<s-1;++r){const o=vd[Rn[r]],c=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(c*o.size))<=i)return Rn[r]}return Rn[s-1]}function tS(t,e,n,i,s){for(let r=Rn.length-1;r>=Rn.indexOf(n);r--){const o=Rn[r];if(vd[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return Rn[n?Rn.indexOf(n):0]}function nS(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(vd[Rn[e]].common)return Rn[e]}function S2(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=$1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function iS(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let c,d;for(c=r;c<=o;c=+s.add(c,1,i))d=n[c],d>=0&&(e[d].major=!0);return e}function M2(t,e,n){const i=[],s={},r=e.length;let o,c;for(o=0;o<r;++o)c=e[o],s[c]=o,i.push({value:c,major:!1});return r===0||!n?i:iS(t,i,s,n)}class xl extends Nr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const i=e.time||(e.time={}),s=this._adapter=new mg._date(e.adapters.date);s.init(n),tl(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:C2(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:s,max:r,minDefined:o,maxDefined:c}=this.getUserBounds();function d(h){!o&&!isNaN(h.min)&&(s=Math.min(s,h.min)),!c&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!o||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),s=Ht(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=Ht(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,c=Pw(s,r,o);return this._unit=n.unit||(i.autoSkip?x2(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):tS(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:nS(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),M2(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=dn(n,0,o),i=dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||x2(r.minUnit,n,i,this._getLabelCapacity(n)),c=$e(s.ticks.stepSize,1),d=o==="week"?r.isoWeekday:!1,h=Sa(d)||d===!0,f={};let m=n,g,y;if(h&&(m=+e.startOf(m,"isoWeek",d)),m=+e.startOf(m,h?"day":o),e.diff(i,n,o)>1e5*c)throw new Error(n+" and "+i+" are too far apart with stepSize of "+c+" "+o);const b=s.ticks.source==="data"&&this.getDataTimestamps();for(g=m,y=0;g<i;g=+e.add(g,c,o),y++)S2(f,g,b);return(g===i||s.bounds==="ticks"||y===1)&&S2(f,g,b),Object.keys(f).sort(k2).map(k=>+k)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return Mt(o,[e,n,i],this);const c=r.time.displayFormats,d=this._unit,h=this._majorUnit,f=d&&c[d],m=h&&c[h],g=i[n],y=h&&m&&g&&g.major;return this._adapter.format(e,s||(y?m:f))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n<i;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,s=Ti(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:i*r+c*o,h:i*o+c*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,M2(this,[e],this._majorUnit),s),o=this._getLabelSize(r),c=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)e.push(C2(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Sm(e.sort(k2))}}ae(xl,"id","time"),ae(xl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function bd(t,e,n){let i=0,s=t.length-1,r,o,c,d;n?(e>=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=gs(t,"pos",e)),{pos:r,time:c}=t[i],{pos:o,time:d}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=gs(t,"time",e)),{time:r,pos:c}=t[i],{time:o,pos:d}=t[s]);const h=o-r;return h?c+(d-c)*(e-r)/h:c}class gh extends xl{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=bd(n,this.min),this._tableRange=bd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,c,d,h,f;for(o=0,c=e.length;o<c;++o)h=e[o],h>=n&&h<=i&&s.push(h);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,c=s.length;o<c;++o)f=s[o+1],d=s[o-1],h=s[o],Math.round((f+d)/2)!==h&&r.push({time:h,pos:o/(c-1)});return r}_generate(){const e=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(e)||!i.length)&&i.splice(0,0,e),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(bd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return bd(this._table,i*this._tableRange+this._minPos,!0)}}ae(gh,"id","timeseries"),ae(gh,"defaults",xl.defaults);var sS=Object.freeze({__proto__:null,CategoryScale:hh,LinearScale:fh,LogarithmicScale:ph,RadialLinearScale:Cl,TimeScale:xl,TimeSeriesScale:gh});const _h=[hk,RC,$x,sS],O2={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},rS={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...O2,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},aS=a.version[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Ta(t){return a.isProxy(t)?a.toRaw(t):t}function oS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function lS(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function D2(t,e){t.labels=e}function E2(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function cS(t,e){const n={labels:[],datasets:[]};return D2(n,t.labels),E2(n,t.datasets,e),n}const dS=a.defineComponent({props:rS,setup(t,e){let{expose:n,slots:i}=e;const s=a.ref(null),r=a.shallowRef(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:h,data:f,options:m,plugins:g,datasetIdKey:y}=t,b=cS(f,y),k=oS(b,f);r.value=new pi(s.value,{type:h,data:k,options:{...m},plugins:g})},c=()=>{const h=a.toRaw(r.value);h&&(t.destroyDelay>0?setTimeout(()=>{h.destroy(),r.value=null},t.destroyDelay):(h.destroy(),r.value=null))},d=h=>{h.update(t.updateMode)};return a.onMounted(o),a.onUnmounted(c),a.watch([()=>t.options,()=>t.data],(h,f)=>{let[m,g]=h,[y,b]=f;const k=a.toRaw(r.value);if(!k)return;let C=!1;if(m){const S=Ta(m),E=Ta(y);S&&S!==E&&(lS(k,S),C=!0)}if(g){const S=Ta(g.labels),E=Ta(b.labels),A=Ta(g.datasets),x=Ta(b.datasets);S!==E&&(D2(k.config.data,S),C=!0),A&&A!==x&&(E2(k.config.data,A,t.datasetIdKey),C=!0)}C&&a.nextTick(()=>{d(k)})},{deep:!0}),()=>a.h("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[a.h("p",{},[i.default?i.default():""])])}});function Sl(t,e){return pi.register(e),a.defineComponent({props:O2,setup(n,i){let{expose:s}=i;const r=a.shallowRef(null),o=c=>{r.value=c==null?void 0:c.chart};return s({chart:r}),()=>a.h(dS,aS({ref:o},{type:t,...n}))}})}const B2=Sl("bar",ul),T2=Sl("doughnut",Ks),uS=Sl("line",hl),hS=Sl("pie",nd),fS=Sl("polarArea",Ea),Hn={gp50:"#f3fcf8",gp100:"#e2f8ef",gp200:"#abedd3",gp300:"#6ddfb1",gp400:"#2db981",gp500:"#239f6d",gp600:"#1c7d56",gp700:"#136746",ta50:"#eefcfa",ta100:"#dcf9f6",ta200:"#a2f1e5",ta300:"#51e6d0",ta400:"#20c5ad",ta500:"#18aa94",ta600:"#138675",ta700:"#0f6b5d",ts50:"#f5fbff",ts100:"#e6f6fe",ts200:"#C2EDFF",ts300:"#7BD0F4",ts400:"#42AAD7",ts500:"#1F86B2",ts600:"#18698B",ts700:"#155875",bn50:"#f6f9fe",bn100:"#e6effe",bn200:"#b4cdf8",bn300:"#729ee9",bn400:"#467bd8",bn500:"#2f64c1",bn600:"#2051a7",bn700:"#19438a",in50:"#f5f6ff",in100:"#ebefff",in200:"#CED6FD",in300:"#9bacf8",in400:"#6a7cd7",in500:"#4b5caf",in600:"#374486",in700:"#2f396f",vr50:"#faf5ff",vr100:"#f7f0ff",vr200:"#E6D2F9",vr300:"#CEABED",vr400:"#a772d5",vr500:"#8955B9",vr600:"#6B3A98",vr700:"#5c3082",pp50:"#fff5fb",pp100:"#ffebf7",pp200:"#F9C8E2",pp300:"#EF8FC0",pp400:"#DA629F",pp500:"#BE377C",pp600:"#A12663",pp700:"#88255a",rc50:"#fef6f7",rc100:"#ffebed",rc200:"#FABDC5",rc300:"#F98B98",rc400:"#F3596C",rc500:"#E03E52",rc600:"#C92C3F",rc700:"#b22435",og50:"#fef7f6",og100:"#ffefeb",og200:"#FFD6CC",og300:"#FDAF9B",og400:"#FF8567",og500:"#F06442",og600:"#D64B29",og700:"#bc4224",al50:"#fefbf6",al100:"#fdf3e2",al200:"#ffe5b8",al300:"#fdd286",al400:"#f6bd5a",al500:"#eda831",al600:"#d89013",al700:"#c08011",n0:"#FFFFFF",n10:"#FAFCFE",n20:"#F4F8FB",n30:"#E7EDF3",n40:"#DFE5EC",n50:"#D6DCE3",n100:"#C3CCD5",n200:"#ACB8C3",n300:"#99A6B2",n400:"#8794A1",n500:"#647382",n600:"#52616F",n700:"#3B4754",n800:"#28333E",n900:"#1D262F",palete:'["Light Neutrals", "Light", #FFFFFF, #FAFCFE, #F4F8FB, #E7EDF3, #DFE5EC, "$n-0", "$n-10", "$n-20", "$n-30", "$n-40"], ["Mid Neutrals", "Gray", #D6DCE3, #C3CCD5, #ACB8C3, #99A6B2, #8794A1, "$n-50", "$n-100", "$n-200", "$n-300", "$n-400"], ["Dark Neutrals", "Dark", #647382, #52616F, #3B4754, #28333E, #1D262F, "$n-500", "$n-600", "$n-700", "$n-800", "$n-900"], ["Piccolo Green", "Green", #f3fcf8, #e2f8ef, #abedd3, #6ddfb1, #2db981, #239f6d, #1c7d56, #136746, "$gp-50", "$gp-100", "$gp-200", "$gp-300", "$gp-400", "$gp-500", "$gp-600", "$gp-700"], ["Aquaman Teal", "Teal", #eefcfa, #dcf9f6, #a2f1e5, #51e6d0, #20c5ad, #18aa94, #138675, #0f6b5d, "$ta-50", "$ta-100", "$ta-200", "$ta-300", "$ta-400", "$ta-500", "$ta-600", "$ta-700"], ["Sulivan Turquoise", "Turquoise", #f5fbff, #e6f6fe, #C2EDFF, #7BD0F4, #42AAD7, #1F86B2, #18698B, #155875, "$ts-50", "$ts-100", "$ts-200", "$ts-300", "$ts-400", "$ts-500", "$ts-600", "$ts-700"], ["Nocturne Blue", "Blue", #f6f9fe, #e6effe, #b4cdf8, #729ee9, #467bd8, #2f64c1, #2051a7, #19438a, "$bn-50", "$bn-100", "$bn-200", "$bn-300", "$bn-400", "$bn-500", "$bn-600", "$bn-700"], ["Nightwing Indigo", "Indigo", #f5f6ff, #ebefff, #CED6FD, #9bacf8, #6a7cd7, #4b5caf, #374486, #2f396f, "$in-50", "$in-100", "$in-200", "$in-300", "$in-400", "$in-500", "$in-600", "$in-700"], ["Raven Violet", "Violet", #faf5ff, #f7f0ff, #E6D2F9, #CEABED, #a772d5, #8955B9, #6B3A98, #5c3082, "$vr-50", "$vr-100", "$vr-200", "$vr-300", "$vr-400", "$vr-500", "$vr-600", "$vr-700"], ["Peppa Pink", "Pink", #fff5fb, #ffebf7, #F9C8E2, #EF8FC0, #DA629F, #BE377C, #A12663, #88255a, "$pp-50", "$pp-100", "$pp-200", "$pp-300", "$pp-400", "$pp-500", "$pp-600", "$pp-700"], ["Carmen Red", "Red", #fef6f7, #ffebed, #FABDC5, #F98B98, #F3596C, #E03E52, #C92C3F, #b22435, "$rc-50", "$rc-100", "$rc-200", "$rc-300", "$rc-400", "$rc-500", "$rc-600", "$rc-700"], ["Goku Orange", "Orange", #fef7f6, #ffefeb, #FFD6CC, #FDAF9B, #FF8567, #F06442, #D64B29, #bc4224, "$og-50", "$og-100", "$og-200", "$og-300", "$og-400", "$og-500", "$og-600", "$og-700"], ["Lisa Amber", "Amber", #fefbf6, #fdf3e2, #ffe5b8, #fdd286, #f6bd5a, #eda831, #d89013, #c08011, "$al-50", "$al-100", "$al-200", "$al-300", "$al-400", "$al-500", "$al-600", "$al-700"]',chartThemes:'["Blue Theme", "Blue", #467bd8, #42AAD7, #20c5ad, #19438a, #4b5caf, #6ddfb1, #FFD6CC, #ffefeb, #ffe5b8, #fdd286, "$bn-400", "$ts-400", "$ta-400", "$bn-700", "$in-500", "$gp-300", "$og-200", "$og-100", "$al-200", "$al-300"], ["Indigo Theme", "Indigo", #4b5caf, #CEABED, #FDAF9B, #ffebf7, #FFD6CC, #6a7cd7, #E7EDF3, #EF8FC0, #a772d5, #3B4754, "$in-500", "$pp-100", "$og-200", "$vr-300", "$in-400", "$og-300", "$n-30", "$n-700", "$vr-400", "$pp-300"]'},ts=t=>{let e=[],n={};const i=/(\[[^[\]]*\])/g,s=t.match(i);for(let r=0;r<s.length;r++){s[r]=s[r].replace("[",""),s[r]=s[r].replace("]","");let o=s[r].split(",");n.colorName=o[0].trim().replace(/"/g,""),n.variantName=o[1].trim().replace(/"/g,""),n.color400=o[6],n.colorShades=[],n.colorTokens=[],n.colorData=[];let c=!1;for(let d=2,h=2;d<o.length;d++,h++)o[d].includes("#")?(n.colorShades.push(o[d].trim()),n.colorData[h-2]={},n.colorData[h-2].shade=o[d].trim()):o[d].includes("$")&&(n.colorTokens.push(o[d].trim().replace(/"/g,"")),n.colorData[h-2].token=o[d].trim().replace(/"/g,"")),!c&&o[d+1].includes("$")&&(h=1,c=!0);e.push(n),n={}}return e},Bde="";pi.register(..._h);const pS={components:{Bar:B2},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Hn,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder: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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},mS={class:"responsive-container"};function gS(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",mS,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const _S=re(pS,[["render",gS],["__scopeId","data-v-1e55dea1"]]);class Pr extends Error{}class yS extends Pr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class vS extends Pr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class bS extends Pr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Va extends Pr{}class V2 extends Pr{constructor(e){super(`Invalid unit ${e}`)}}class Wn extends Pr{}class Js extends Pr{constructor(){super("Zone is an abstract class")}}const ce="numeric",Ai="short",ti="long",wd={year:ce,month:ce,day:ce},I2={year:ce,month:Ai,day:ce},wS={year:ce,month:Ai,day:ce,weekday:Ai},A2={year:ce,month:ti,day:ce},$2={year:ce,month:ti,day:ce,weekday:ti},N2={hour:ce,minute:ce},z2={hour:ce,minute:ce,second:ce},P2={hour:ce,minute:ce,second:ce,timeZoneName:Ai},L2={hour:ce,minute:ce,second:ce,timeZoneName:ti},F2={hour:ce,minute:ce,hourCycle:"h23"},R2={hour:ce,minute:ce,second:ce,hourCycle:"h23"},H2={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Ai},W2={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ti},Y2={year:ce,month:ce,day:ce,hour:ce,minute:ce},j2={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},U2={year:ce,month:Ai,day:ce,hour:ce,minute:ce},q2={year:ce,month:Ai,day:ce,hour:ce,minute:ce,second:ce},kS={year:ce,month:Ai,day:ce,weekday:Ai,hour:ce,minute:ce},G2={year:ce,month:ti,day:ce,hour:ce,minute:ce,timeZoneName:Ai},K2={year:ce,month:ti,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Ai},Z2={year:ce,month:ti,day:ce,weekday:ti,hour:ce,minute:ce,timeZoneName:ti},X2={year:ce,month:ti,day:ce,weekday:ti,hour:ce,minute:ce,second:ce,timeZoneName:ti};class Ml{get type(){throw new Js}get name(){throw new Js}get ianaName(){return this.name}get isUniversal(){throw new Js}offsetName(e,n){throw new Js}formatOffset(e,n){throw new Js}offset(e){throw new Js}equals(e){throw new Js}get isValid(){throw new Js}}let yh=null;class kd extends Ml{static get instance(){return yh===null&&(yh=new kd),yh}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return w3(e,n,i)}formatOffset(e,n){return Bl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Cd={};function CS(t){return Cd[t]||(Cd[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Cd[t]}const xS={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function SS(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,r,o,c,d,h,f]=i;return[o,s,r,c,d,h,f]}function MS(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=xS[r];r==="era"?i[c]=o:Te(c)||(i[c]=parseInt(o,10))}return i}let xd={};class bs extends Ml{static create(e){return xd[e]||(xd[e]=new bs(e)),xd[e]}static resetCache(){xd={},Cd={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=bs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return w3(e,n,i,this.name)}formatOffset(e,n){return Bl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const i=CS(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?MS(i,n):SS(i,n);c==="BC"&&(s=-Math.abs(s)+1);const g=Ed({year:s,month:r,day:o,hour:d===24?0:d,minute:h,second:f,millisecond:0});let y=+n;const b=y%1e3;return y-=b>=0?b:1e3+b,(g-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let J2={};function OS(t,e={}){const n=JSON.stringify([t,e]);let i=J2[n];return i||(i=new Intl.ListFormat(t,e),J2[n]=i),i}let vh={};function bh(t,e={}){const n=JSON.stringify([t,e]);let i=vh[n];return i||(i=new Intl.DateTimeFormat(t,e),vh[n]=i),i}let wh={};function DS(t,e={}){const n=JSON.stringify([t,e]);let i=wh[n];return i||(i=new Intl.NumberFormat(t,e),wh[n]=i),i}let kh={};function ES(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=kh[s];return r||(r=new Intl.RelativeTimeFormat(t,e),kh[s]=r),r}let Ol=null;function BS(){return Ol||(Ol=new Intl.DateTimeFormat().resolvedOptions().locale,Ol)}let Q2={};function TS(t){let e=Q2[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Q2[t]=e}return e}function VS(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,s;try{i=bh(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=bh(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function IS(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function AS(t){const e=[];for(let n=1;n<=12;n++){const i=ue.utc(2009,n,1);e.push(t(i))}return e}function $S(t){const e=[];for(let n=1;n<=7;n++){const i=ue.utc(2016,11,13+n);e.push(t(i))}return e}function Sd(t,e,n,i){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):i(e)}function NS(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class zS{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:r,...o}=i;if(!n||Object.keys(o).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=DS(e,c)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Eh(e,3);return Xt(n,this.padTo)}}}class PS{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&bs.create(c).valid?(s=c,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=bh(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class LS{constructor(e,n,i){this.opts={style:"long",...i},!n&&_3()&&(this.rtf=ES(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):rM(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const FS={firstDay:1,minimalDays:4,weekend:[6,7]};class yt{static fromOpts(e){return yt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,s,r=!1){const o=e||qt.defaultLocale,c=o||(r?"en-US":BS()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=Oh(s)||qt.defaultWeekSettings;return new yt(c,d,h,f,o)}static resetCache(){Ol=null,vh={},wh={},kh={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return yt.create(e,n,i,s)}constructor(e,n,i,s,r){const[o,c,d]=VS(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=IS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=NS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:yt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Oh(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Sd(this,e,x3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=AS(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return Sd(this,e,O3,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=$S(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Sd(this,void 0,()=>D3,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ue.utc(2016,11,13,9),ue.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Sd(this,e,E3,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[ue.utc(-40,1,1),ue.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const s=this.dtFormatter(e,n),r=s.formatToParts(),o=r.find(c=>c.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new zS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new PS(e,this.intl,n)}relFormatter(e={}){return new LS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return OS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:y3()?TS(this.locale):FS}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Ch=null;class En extends Ml{static get utcInstance(){return Ch===null&&(Ch=new En(0)),Ch}static instance(e){return e===0?En.utcInstance:new En(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new En(Bd(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Bl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class RS extends Ml{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qs(t,e){if(Te(t)||t===null)return e;if(t instanceof Ml)return t;if(YS(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?kd.instance:n==="utc"||n==="gmt"?En.utcInstance:En.parseSpecifier(n)||bs.create(t)}else return Lr(t)?En.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new RS(t)}let e3=()=>Date.now(),t3="system",n3=null,i3=null,s3=null,r3=60,a3,o3=null;class qt{static get now(){return e3}static set now(e){e3=e}static set defaultZone(e){t3=e}static get defaultZone(){return Qs(t3,kd.instance)}static get defaultLocale(){return n3}static set defaultLocale(e){n3=e}static get defaultNumberingSystem(){return i3}static set defaultNumberingSystem(e){i3=e}static get defaultOutputCalendar(){return s3}static set defaultOutputCalendar(e){s3=e}static get defaultWeekSettings(){return o3}static set defaultWeekSettings(e){o3=Oh(e)}static get twoDigitCutoffYear(){return r3}static set twoDigitCutoffYear(e){r3=e%100}static get throwOnInvalid(){return a3}static set throwOnInvalid(e){a3=e}static resetCaches(){yt.resetCache(),bs.resetCache()}}class $i{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const l3=[0,31,59,90,120,151,181,212,243,273,304,334],c3=[0,31,60,91,121,152,182,213,244,274,305,335];function mi(t,e){return new $i("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function xh(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function d3(t,e,n){return n+(Dl(t)?c3:l3)[e-1]}function u3(t,e){const n=Dl(t)?c3:l3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function Sh(t,e){return(t-e+7)%7+1}function Md(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=d3(i,s,r),c=Sh(xh(i,s,r),n);let d=Math.floor((o-c+14-e)/7),h;return d<1?(h=i-1,d=El(h,e,n)):d>El(i,e,n)?(h=i+1,d=1):h=i,{weekYear:h,weekNumber:d,weekday:c,...Vd(t)}}function h3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=Sh(xh(i,1,e),n),c=Aa(i);let d=s*7+r-o-7+e,h;d<1?(h=i-1,d+=Aa(h)):d>c?(h=i+1,d-=Aa(i)):h=i;const{month:f,day:m}=u3(h,d);return{year:h,month:f,day:m,...Vd(t)}}function Mh(t){const{year:e,month:n,day:i}=t,s=d3(e,n,i);return{year:e,ordinal:s,...Vd(t)}}function f3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=u3(e,n);return{year:e,month:i,day:s,...Vd(t)}}function p3(t,e){if(!Te(t.localWeekday)||!Te(t.localWeekNumber)||!Te(t.localWeekYear)){if(!Te(t.weekday)||!Te(t.weekNumber)||!Te(t.weekYear))throw new Va("Cannot mix locale-based week fields with ISO-based week fields");return Te(t.localWeekday)||(t.weekday=t.localWeekday),Te(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Te(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function HS(t,e=4,n=1){const i=Od(t.weekYear),s=gi(t.weekNumber,1,El(t.weekYear,e,n)),r=gi(t.weekday,1,7);return i?s?r?!1:mi("weekday",t.weekday):mi("week",t.weekNumber):mi("weekYear",t.weekYear)}function WS(t){const e=Od(t.year),n=gi(t.ordinal,1,Aa(t.year));return e?n?!1:mi("ordinal",t.ordinal):mi("year",t.year)}function m3(t){const e=Od(t.year),n=gi(t.month,1,12),i=gi(t.day,1,Dd(t.year,t.month));return e?n?i?!1:mi("day",t.day):mi("month",t.month):mi("year",t.year)}function g3(t){const{hour:e,minute:n,second:i,millisecond:s}=t,r=gi(e,0,23)||e===24&&n===0&&i===0&&s===0,o=gi(n,0,59),c=gi(i,0,59),d=gi(s,0,999);return r?o?c?d?!1:mi("millisecond",s):mi("second",i):mi("minute",n):mi("hour",e)}function Te(t){return typeof t>"u"}function Lr(t){return typeof t=="number"}function Od(t){return typeof t=="number"&&t%1===0}function YS(t){return typeof t=="string"}function jS(t){return Object.prototype.toString.call(t)==="[object Date]"}function _3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function US(t){return Array.isArray(t)?t:[t]}function v3(t,e,n){if(t.length!==0)return t.reduce((i,s)=>{const r=[e(s),s];return i&&n(i[0],r[0])===i[0]?i:r},null)[1]}function qS(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Oh(t){if(t==null)return null;if(typeof t!="object")throw new Wn("Week settings must be an object");if(!gi(t.firstDay,1,7)||!gi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!gi(e,1,7)))throw new Wn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function gi(t,e,n){return Od(t)&&t>=e&&t<=n}function GS(t,e){return t-e*Math.floor(t/e)}function Xt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function er(t){if(!(Te(t)||t===null||t===""))return parseInt(t,10)}function Fr(t){if(!(Te(t)||t===null||t===""))return parseFloat(t)}function Dh(t){if(!(Te(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Eh(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function Dl(t){return t%4===0&&(t%100!==0||t%400===0)}function Aa(t){return Dl(t)?366:365}function Dd(t,e){const n=GS(e-1,12)+1,i=t+(e-n)/12;return n===2?Dl(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ed(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function b3(t,e,n){return-Sh(xh(t,1,e),n)+e-1}function El(t,e=4,n=1){const i=b3(t,e,n),s=b3(t+1,e,n);return(Aa(t)-i+s)/7}function Bh(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function w3(t,e,n,i=null){const s=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);const o={timeZoneName:e,...r},c=new Intl.DateTimeFormat(n,o).formatToParts(s).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function Bd(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function k3(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Wn(`Invalid unit value ${t}`);return e}function Td(t,e){const n={};for(const i in t)if(Ia(t,i)){const s=t[i];if(s==null)continue;n[e(i)]=k3(s)}return n}function Bl(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Xt(n,2)}:${Xt(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Xt(n,2)}${Xt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vd(t){return qS(t,["hour","minute","second","millisecond"])}const KS=["January","February","March","April","May","June","July","August","September","October","November","December"],C3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ZS=["J","F","M","A","M","J","J","A","S","O","N","D"];function x3(t){switch(t){case"narrow":return[...ZS];case"short":return[...C3];case"long":return[...KS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const S3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],M3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],XS=["M","T","W","T","F","S","S"];function O3(t){switch(t){case"narrow":return[...XS];case"short":return[...M3];case"long":return[...S3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const D3=["AM","PM"],JS=["Before Christ","Anno Domini"],QS=["BC","AD"],eM=["B","A"];function E3(t){switch(t){case"narrow":return[...eM];case"short":return[...QS];case"long":return[...JS];default:return null}}function tM(t){return D3[t.hour<12?0:1]}function nM(t,e){return O3(e)[t.weekday-1]}function iM(t,e){return x3(e)[t.month-1]}function sM(t,e){return E3(e)[t.year<0?0:1]}function rM(t,e,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&r){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,h=s[t],f=i?d?h[1]:h[2]||h[1]:d?s[t][0]:t;return o?`${c} ${f} ago`:`in ${c} ${f}`}function B3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const aM={D:wd,DD:I2,DDD:A2,DDDD:$2,t:N2,tt:z2,ttt:P2,tttt:L2,T:F2,TT:R2,TTT:H2,TTTT:W2,f:Y2,ff:U2,fff:G2,ffff:Z2,F:j2,FF:q2,FFF:K2,FFFF:X2};class wn{static create(e,n={}){return new wn(e,n)}static parseFormat(e){let n=null,i="",s=!1;const r=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?(i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(e){return aM[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Xt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(y,b)=>this.loc.extract(e,y,b),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",c=()=>i?tM(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,b)=>i?iM(e,y):r(b?{month:y}:{month:y,day:"numeric"},"month"),h=(y,b)=>i?nM(e,y):r(b?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),f=y=>{const b=wn.macroTokenToFormatOpts(y);return b?this.formatWithSystemDefault(e,b):y},m=y=>i?sM(e,y):r({era:y},"era"),g=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return s?r({day:"numeric"},"day"):this.num(e.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(e.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(e.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(y)}};return B3(wn.parseFormat(n),g)}formatDurationFromString(e,n){const i=d=>{switch(d[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=d=>h=>{const f=i(h);return f?this.num(d.get(f),h.length):h},r=wn.parseFormat(n),o=r.reduce((d,{literal:h,val:f})=>h?d:d.concat(f),[]),c=e.shiftTo(...o.map(i).filter(d=>d));return B3(r,s(c))}}const T3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $a(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Na(...t){return e=>t.reduce(([n,i,s],r)=>{const[o,c,d]=r(e,s);return[{...n,...o},c||i,d]},[{},null,1]).slice(0,2)}function za(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const s=n.exec(t);if(s)return i(s)}return[null,null]}function V3(...t){return(e,n)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=er(e[n+s]);return[i,null,n+s]}}const I3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,oM=`(?:${I3.source}?(?:\\[(${T3.source})\\])?)?`,Th=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,A3=RegExp(`${Th.source}${oM}`),Vh=RegExp(`(?:T${A3.source})?`),lM=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,cM=/(\d{4})-?W(\d\d)(?:-?(\d))?/,dM=/(\d{4})-?(\d{3})/,uM=V3("weekYear","weekNumber","weekDay"),hM=V3("year","ordinal"),fM=/(\d{4})-(\d\d)-(\d\d)/,$3=RegExp(`${Th.source} ?(?:${I3.source}|(${T3.source}))?`),pM=RegExp(`(?: ${$3.source})?`);function Pa(t,e,n){const i=t[e];return Te(i)?n:er(i)}function mM(t,e){return[{year:Pa(t,e),month:Pa(t,e+1,1),day:Pa(t,e+2,1)},null,e+3]}function La(t,e){return[{hours:Pa(t,e,0),minutes:Pa(t,e+1,0),seconds:Pa(t,e+2,0),milliseconds:Dh(t[e+3])},null,e+4]}function Tl(t,e){const n=!t[e]&&!t[e+1],i=Bd(t[e+1],t[e+2]),s=n?null:En.instance(i);return[{},s,e+3]}function Vl(t,e){const n=t[e]?bs.create(t[e]):null;return[{},n,e+1]}const gM=RegExp(`^T?${Th.source}$`),_M=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function yM(t){const[e,n,i,s,r,o,c,d,h]=t,f=e[0]==="-",m=d&&d[0]==="-",g=(y,b=!1)=>y!==void 0&&(b||y&&f)?-y:y;return[{years:g(Fr(n)),months:g(Fr(i)),weeks:g(Fr(s)),days:g(Fr(r)),hours:g(Fr(o)),minutes:g(Fr(c)),seconds:g(Fr(d),d==="-0"),milliseconds:g(Dh(h),m)}]}const vM={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ih(t,e,n,i,s,r,o){const c={year:e.length===2?Bh(er(e)):er(e),month:C3.indexOf(n)+1,day:er(i),hour:er(s),minute:er(r)};return o&&(c.second=er(o)),t&&(c.weekday=t.length>3?S3.indexOf(t)+1:M3.indexOf(t)+1),c}const bM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function wM(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=Ih(e,s,i,n,r,o,c);let y;return d?y=vM[d]:h?y=0:y=Bd(f,m),[g,new En(y)]}function kM(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const CM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,xM=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,SM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function N3(t){const[,e,n,i,s,r,o,c]=t;return[Ih(e,s,i,n,r,o,c),En.utcInstance]}function MM(t){const[,e,n,i,s,r,o,c]=t;return[Ih(e,c,n,i,s,r,o),En.utcInstance]}const OM=$a(lM,Vh),DM=$a(cM,Vh),EM=$a(dM,Vh),BM=$a(A3),z3=Na(mM,La,Tl,Vl),TM=Na(uM,La,Tl,Vl),VM=Na(hM,La,Tl,Vl),IM=Na(La,Tl,Vl);function AM(t){return za(t,[OM,z3],[DM,TM],[EM,VM],[BM,IM])}function $M(t){return za(kM(t),[bM,wM])}function NM(t){return za(t,[CM,N3],[xM,N3],[SM,MM])}function zM(t){return za(t,[_M,yM])}const PM=Na(La);function LM(t){return za(t,[gM,PM])}const FM=$a(fM,pM),RM=$a($3),HM=Na(La,Tl,Vl);function WM(t){return za(t,[FM,z3],[RM,HM])}const P3="Invalid Duration",L3={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},YM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...L3},_i=146097/400,Fa=146097/4800,jM={years:{quarters:4,months:12,weeks:_i/7,days:_i,hours:_i*24,minutes:_i*24*60,seconds:_i*24*60*60,milliseconds:_i*24*60*60*1e3},quarters:{months:3,weeks:_i/28,days:_i/4,hours:_i*24/4,minutes:_i*24*60/4,seconds:_i*24*60*60/4,milliseconds:_i*24*60*60*1e3/4},months:{weeks:Fa/7,days:Fa,hours:Fa*24,minutes:Fa*24*60,seconds:Fa*24*60*60,milliseconds:Fa*24*60*60*1e3},...L3},Rr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],UM=Rr.slice(0).reverse();function tr(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Qe(i)}function F3(t,e){let n=e.milliseconds??0;for(const i of UM.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function R3(t,e){const n=F3(t,e)<0?-1:1;Rr.reduceRight((i,s)=>{if(Te(e[s]))return i;if(i){const r=e[i]*n,o=t[s][i],c=Math.floor(r/o);e[s]+=c*n,e[i]-=c*o*n}return s},null),Rr.reduce((i,s)=>{if(Te(e[s]))return i;if(i){const r=e[i]%1;e[i]-=r,e[s]+=r*t[i][s]}return s},null)}function qM(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Qe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?jM:YM;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||yt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Qe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Wn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Qe({values:Td(e,Qe.normalizeUnit),loc:yt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Lr(e))return Qe.fromMillis(e);if(Qe.isDuration(e))return e;if(typeof e=="object")return Qe.fromObject(e);throw new Wn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=zM(e);return i?Qe.fromObject(i,n):Qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=LM(e);return i?Qe.fromObject(i,n):Qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the Duration is invalid");const i=e instanceof $i?e:new $i(e,n);if(qt.throwOnInvalid)throw new bS(i);return new Qe({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new V2(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wn.create(this.loc,i).formatDurationFromString(this,e):P3}toHuman(e={}){if(!this.isValid)return P3;const n=Rr.map(i=>{const s=this.values[i];return Te(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Eh(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ue.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?F3(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e),i={};for(const s of Rr)(Ia(n.values,s)||Ia(this.values,s))&&(i[s]=n.get(s)+this.get(s));return tr(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=k3(e(this.values[i],i));return tr(this,{values:n},!0)}get(e){return this[Qe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Td(e,Qe.normalizeUnit)};return tr(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:i};return tr(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return R3(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=qM(this.normalize().shiftToAll().toObject());return tr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Qe.normalizeUnit(o));const n={},i={},s=this.toObject();let r;for(const o of Rr)if(e.indexOf(o)>=0){r=o;let c=0;for(const h in i)c+=this.matrix[h][o]*i[h],i[h]=0;Lr(s[o])&&(c+=s[o]);const d=Math.trunc(c);n[o]=d,i[o]=(c*1e3-d*1e3)/1e3}else Lr(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(n[r]+=o===r?i[o]:i[o]/this.matrix[r][o]);return R3(this.matrix,n),tr(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return tr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Rr)if(!n(this.values[i],e.values[i]))return!1;return!0}}const Ra="Invalid Interval";function GM(t,e){return!t||!t.isValid?Lt.invalid("missing or invalid start"):!e||!e.isValid?Lt.invalid("missing or invalid end"):e<t?Lt.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Lt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the Interval is invalid");const i=e instanceof $i?e:new $i(e,n);if(qt.throwOnInvalid)throw new vS(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=Al(e),s=Al(n),r=GM(i,s);return r??new Lt({start:i,end:s})}static after(e,n){const i=Qe.fromDurationLike(n),s=Al(e);return Lt.fromDateTimes(s,s.plus(i))}static before(e,n){const i=Qe.fromDurationLike(n),s=Al(e);return Lt.fromDateTimes(s.minus(i),s)}static fromISO(e,n){const[i,s]=(e||"").split("/",2);if(i&&s){let r,o;try{r=ue.fromISO(i,n),o=r.isValid}catch{o=!1}let c,d;try{c=ue.fromISO(s,n),d=c.isValid}catch{d=!1}if(o&&d)return Lt.fromDateTimes(r,c);if(o){const h=Qe.fromISO(s,n);if(h.isValid)return Lt.after(r,h)}else if(d){const h=Qe.fromISO(i,n);if(h.isValid)return Lt.before(c,h)}}return Lt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(i,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Lt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Al).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),i=[];let{s}=this,r=0;for(;s<this.e;){const o=n[r]||this.e,c=+o>+this.e?this.e:o;i.push(Lt.fromDateTimes(s,c)),s=c,r+=1}return i}splitBy(e){const n=Qe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,r;const o=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(d=>d*s));r=+c>+this.e?this.e:c,o.push(Lt.fromDateTimes(i,r)),i=r,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:Lt.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Lt.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((s,r)=>s.s-r.s).reduce(([s,r],o)=>r?r.overlaps(o)||r.abutsStart(o)?[s,r.union(o)]:[s.concat([r]),o]:[s,o],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const s=[],r=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...r),c=o.sort((d,h)=>d.time-h.time);for(const d of c)i+=d.type==="s"?1:-1,i===1?n=d.time:(n&&+n!=+d.time&&s.push(Lt.fromDateTimes(n,d.time)),n=null);return Lt.merge(s)}difference(...e){return Lt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ra}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=wd,n={}){return this.isValid?wn.create(this.s.loc.clone(n),e).formatInterval(this):Ra}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ra}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ra}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ra}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Ra}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Qe.invalid(this.invalidReason)}mapEndpoints(e){return Lt.fromDateTimes(e(this.s),e(this.e))}}class Id{static hasDST(e=qt.defaultZone){const n=ue.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return bs.isValidZone(e)}static normalizeZone(e){return Qs(e,qt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||yt.create(n,i,r)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||yt.create(n,i,r)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||yt.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||yt.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return yt.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return yt.create(n,null,"gregory").eras(e)}static features(){return{relative:_3(),localeWeek:y3()}}}function H3(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Qe.fromMillis(i).as("days"))}function KM(t,e,n){const i=[["years",(d,h)=>h.year-d.year],["quarters",(d,h)=>h.quarter-d.quarter+(h.year-d.year)*4],["months",(d,h)=>h.month-d.month+(h.year-d.year)*12],["weeks",(d,h)=>{const f=H3(d,h);return(f-f%7)/7}],["days",H3]],s={},r=t;let o,c;for(const[d,h]of i)n.indexOf(d)>=0&&(o=d,s[d]=h(t,e),c=r.plus(s),c>e?(s[d]--,t=r.plus(s),t>e&&(c=t,s[d]--,t=r.plus(s))):t=c);return[t,s,c,o]}function ZM(t,e,n,i){let[s,r,o,c]=KM(t,e,n);const d=e-s,h=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);h.length===0&&(o<e&&(o=s.plus({[c]:1})),o!==s&&(r[c]=(r[c]||0)+d/(o-s)));const f=Qe.fromObject(r,i);return h.length>0?Qe.fromMillis(d,i).shiftTo(...h).plus(f):f}const Ah={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},W3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},XM=Ah.hanidec.replace(/[\[|\]]/g,"").split("");function JM(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(t[n].search(Ah.hanidec)!==-1)e+=XM.indexOf(t[n]);else for(const s in W3){const[r,o]=W3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function Ni({numberingSystem:t},e=""){return new RegExp(`${Ah[t||"latn"]}${e}`)}const QM="missing Intl.DateTimeFormat.formatToParts support";function it(t,e=n=>n){return{regex:t,deser:([n])=>e(JM(n))}}const Y3=`[ ${String.fromCharCode(160)}]`,j3=new RegExp(Y3,"g");function eO(t){return t.replace(/\./g,"\\.?").replace(j3,Y3)}function U3(t){return t.replace(/\./g,"").replace(j3," ").toLowerCase()}function zi(t,e){return t===null?null:{regex:RegExp(t.map(eO).join("|")),deser:([n])=>t.findIndex(i=>U3(n)===U3(i))+e}}function q3(t,e){return{regex:t,deser:([,n,i])=>Bd(n,i),groups:e}}function Ad(t){return{regex:t,deser:([e])=>e}}function tO(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nO(t,e){const n=Ni(e),i=Ni(e,"{2}"),s=Ni(e,"{3}"),r=Ni(e,"{4}"),o=Ni(e,"{6}"),c=Ni(e,"{1,2}"),d=Ni(e,"{1,3}"),h=Ni(e,"{1,6}"),f=Ni(e,"{1,9}"),m=Ni(e,"{2,4}"),g=Ni(e,"{4,6}"),y=C=>({regex:RegExp(tO(C.val)),deser:([S])=>S,literal:!0}),k=(C=>{if(t.literal)return y(C);switch(C.val){case"G":return zi(e.eras("short"),0);case"GG":return zi(e.eras("long"),0);case"y":return it(h);case"yy":return it(m,Bh);case"yyyy":return it(r);case"yyyyy":return it(g);case"yyyyyy":return it(o);case"M":return it(c);case"MM":return it(i);case"MMM":return zi(e.months("short",!0),1);case"MMMM":return zi(e.months("long",!0),1);case"L":return it(c);case"LL":return it(i);case"LLL":return zi(e.months("short",!1),1);case"LLLL":return zi(e.months("long",!1),1);case"d":return it(c);case"dd":return it(i);case"o":return it(d);case"ooo":return it(s);case"HH":return it(i);case"H":return it(c);case"hh":return it(i);case"h":return it(c);case"mm":return it(i);case"m":return it(c);case"q":return it(c);case"qq":return it(i);case"s":return it(c);case"ss":return it(i);case"S":return it(d);case"SSS":return it(s);case"u":return Ad(f);case"uu":return Ad(c);case"uuu":return it(n);case"a":return zi(e.meridiems(),0);case"kkkk":return it(r);case"kk":return it(m,Bh);case"W":return it(c);case"WW":return it(i);case"E":case"c":return it(n);case"EEE":return zi(e.weekdays("short",!1),1);case"EEEE":return zi(e.weekdays("long",!1),1);case"ccc":return zi(e.weekdays("short",!0),1);case"cccc":return zi(e.weekdays("long",!0),1);case"Z":case"ZZ":return q3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return q3(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Ad(/[a-z_+-/]{1,256}?/i);case" ":return Ad(/[^\S\n\r]/);default:return y(C)}})(t)||{invalidReason:QM};return k.token=t,k}const iO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function sO(t,e,n){const{type:i,value:s}=t;if(i==="literal"){const d=/^\s+$/.test(s);return{literal:!d,val:d?" ":s}}const r=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let c=iO[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function rO(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function aO(t,e,n){const i=t.match(e);if(i){const s={};let r=1;for(const o in n)if(Ia(n,o)){const c=n[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(r,r+d))),r+=d}return[i,s]}else return[i,{}]}function oO(t){const e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Te(t.z)||(n=bs.create(t.z)),Te(t.Z)||(n||(n=new En(t.Z)),i=t.Z),Te(t.q)||(t.M=(t.q-1)*3+1),Te(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Te(t.u)||(t.S=Dh(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let $h=null;function lO(){return $h||($h=ue.fromMillis(1555555555555)),$h}function cO(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=Z3(n,e);return i==null||i.includes(void 0)?t:i}function G3(t,e){return Array.prototype.concat(...t.map(n=>cO(n,e)))}function K3(t,e,n){const i=G3(wn.parseFormat(n),t),s=i.map(o=>nO(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=rO(s),d=RegExp(o,"i"),[h,f]=aO(e,d,c),[m,g,y]=f?oO(f):[null,null,void 0];if(Ia(f,"a")&&Ia(f,"H"))throw new Va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:d,rawMatches:h,matches:f,result:m,zone:g,specificOffset:y}}}function dO(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=K3(t,e,n);return[i,s,r,o]}function Z3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(lO()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>sO(o,t,r))}const Nh="Invalid DateTime",X3=864e13;function $d(t){return new $i("unsupported zone",`the zone "${t.name}" is not supported`)}function zh(t){return t.weekData===null&&(t.weekData=Md(t.c)),t.weekData}function Ph(t){return t.localWeekData===null&&(t.localWeekData=Md(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Hr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ue({...n,...e,old:n})}function J3(t,e,n){let i=t-e*60*1e3;const s=n.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const r=n.offset(i);return s===r?[i,s]:[t-Math.min(s,r)*60*1e3,Math.max(s,r)]}function Nd(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function zd(t,e,n){return J3(Ed(t),e,n)}function Q3(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,r={...t.c,year:i,month:s,day:Math.min(t.c.day,Dd(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Qe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=Ed(r);let[d,h]=J3(c,n,t.zone);return o!==0&&(d+=o,h=t.zone.offset(d)),{ts:d,o:h}}function Il(t,e,n,i,s,r){const{setZone:o,zone:c}=n;if(t&&Object.keys(t).length!==0||e){const d=e||c,h=ue.fromObject(t,{...n,zone:d,specificOffset:r});return o?h:h.setZone(c)}else return ue.invalid(new $i("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Pd(t,e,n=!0){return t.isValid?wn.create(yt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Lh(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Xt(t.c.year,n?6:4),e?(i+="-",i+=Xt(t.c.month),i+="-",i+=Xt(t.c.day)):(i+=Xt(t.c.month),i+=Xt(t.c.day)),i}function e4(t,e,n,i,s,r){let o=Xt(t.c.hour);return e?(o+=":",o+=Xt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=Xt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=Xt(t.c.second),(t.c.millisecond!==0||!i)&&(o+=".",o+=Xt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!r?o+="Z":t.o<0?(o+="-",o+=Xt(Math.trunc(-t.o/60)),o+=":",o+=Xt(Math.trunc(-t.o%60))):(o+="+",o+=Xt(Math.trunc(t.o/60)),o+=":",o+=Xt(Math.trunc(t.o%60)))),r&&(o+="["+t.zone.ianaName+"]"),o}const t4={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},n4=["year","month","day","hour","minute","second","millisecond"],fO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pO=["year","ordinal","hour","minute","second","millisecond"];function mO(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new V2(t);return e}function i4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mO(t)}}function s4(t,e){const n=Qs(e.zone,qt.defaultZone),i=yt.fromObject(e),s=qt.now();let r,o;if(Te(t.year))r=s;else{for(const h of n4)Te(t[h])&&(t[h]=t4[h]);const c=m3(t)||g3(t);if(c)return ue.invalid(c);const d=n.offset(s);[r,o]=zd(t,d,n)}return new ue({ts:r,zone:n,loc:i,o})}function r4(t,e,n){const i=Te(n.round)?!0:n.round,s=(o,c)=>(o=Eh(o,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,c)),r=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return s(r(n.unit),n.unit);for(const o of n.units){const c=r(o);if(Math.abs(c)>=1)return s(c,o)}return s(t>e?-0:0,n.units[n.units.length-1])}function a4(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class ue{constructor(e){const n=e.zone||qt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new $i("invalid input"):null)||(n.isValid?null:$d(n));this.ts=Te(e.ts)?qt.now():e.ts;let s=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,r]=[e.old.c,e.old.o];else{const c=n.offset(this.ts);s=Nd(this.ts,c),i=Number.isNaN(s.year)?new $i("invalid input"):null,s=i?null:s,r=i?null:c}this._zone=n,this.loc=e.loc||yt.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new ue({})}static local(){const[e,n]=a4(arguments),[i,s,r,o,c,d,h]=n;return s4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=a4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,s4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=jS(e)?e.valueOf():NaN;if(Number.isNaN(i))return ue.invalid("invalid input");const s=Qs(n.zone,qt.defaultZone);return s.isValid?new ue({ts:i,zone:s,loc:yt.fromObject(n)}):ue.invalid($d(s))}static fromMillis(e,n={}){if(Lr(e))return e<-X3||e>X3?ue.invalid("Timestamp out of range"):new ue({ts:e,zone:Qs(n.zone,qt.defaultZone),loc:yt.fromObject(n)});throw new Wn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Lr(e))return new ue({ts:e*1e3,zone:Qs(n.zone,qt.defaultZone),loc:yt.fromObject(n)});throw new Wn("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Qs(n.zone,qt.defaultZone);if(!i.isValid)return ue.invalid($d(i));const s=yt.fromObject(n),r=Td(e,i4),{minDaysInFirstWeek:o,startOfWeek:c}=p3(r,s),d=qt.now(),h=Te(n.specificOffset)?i.offset(d):n.specificOffset,f=!Te(r.ordinal),m=!Te(r.year),g=!Te(r.month)||!Te(r.day),y=m||g,b=r.weekYear||r.weekNumber;if((y||f)&&b)throw new Va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&f)throw new Va("Can't mix ordinal dates with month/day");const k=b||r.weekday&&!y;let C,S,E=Nd(d,h);k?(C=fO,S=uO,E=Md(E,o,c)):f?(C=pO,S=hO,E=Mh(E)):(C=n4,S=t4);let A=!1;for(const ee of C){const ne=r[ee];Te(ne)?A?r[ee]=S[ee]:r[ee]=E[ee]:A=!0}const x=k?HS(r,o,c):f?WS(r):m3(r),V=x||g3(r);if(V)return ue.invalid(V);const N=k?h3(r,o,c):f?f3(r):r,[L,F]=zd(N,h,i),q=new ue({ts:L,zone:i,o:F,loc:s});return r.weekday&&y&&e.weekday!==q.weekday?ue.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[i,s]=AM(e);return Il(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=$M(e);return Il(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=NM(e);return Il(i,s,n,"HTTP",n)}static fromFormat(e,n,i={}){if(Te(e)||Te(n))throw new Wn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=i,o=yt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[c,d,h,f]=dO(o,e,n);return f?ue.invalid(f):Il(c,d,i,`format ${n}`,e,h)}static fromString(e,n,i={}){return ue.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,s]=WM(e);return Il(i,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the DateTime is invalid");const i=e instanceof $i?e:new $i(e,n);if(qt.throwOnInvalid)throw new yS(i);return new ue({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=Z3(e,yt.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return G3(wn.parseFormat(e),yt.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?zh(this).weekYear:NaN}get weekNumber(){return this.isValid?zh(this).weekNumber:NaN}get weekday(){return this.isValid?zh(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ph(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ph(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ph(this).weekYear:NaN}get ordinal(){return this.isValid?Mh(this.c).ordinal:NaN}get monthShort(){return this.isValid?Id.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Id.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Id.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Id.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=Ed(this.c),s=this.zone.offset(i-e),r=this.zone.offset(i+e),o=this.zone.offset(i-s*n),c=this.zone.offset(i-r*n);if(o===c)return[this];const d=i-o*n,h=i-c*n,f=Nd(d,o),m=Nd(h,c);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[Hr(this,{ts:d}),Hr(this,{ts:h})]:[this]}get isInLeapYear(){return Dl(this.year)}get daysInMonth(){return Dd(this.year,this.month)}get daysInYear(){return this.isValid?Aa(this.year):NaN}get weeksInWeekYear(){return this.isValid?El(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?El(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:s}=wn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(En.instance(e),n)}toLocal(){return this.setZone(qt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Qs(e,qt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||i){const r=e.offset(this.ts),o=this.toObject();[s]=zd(o,r,e)}return Hr(this,{ts:s,zone:e})}else return ue.invalid($d(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Hr(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Td(e,i4),{minDaysInFirstWeek:i,startOfWeek:s}=p3(n,this.loc),r=!Te(n.weekYear)||!Te(n.weekNumber)||!Te(n.weekday),o=!Te(n.ordinal),c=!Te(n.year),d=!Te(n.month)||!Te(n.day),h=c||d,f=n.weekYear||n.weekNumber;if((h||o)&&f)throw new Va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new Va("Can't mix ordinal dates with month/day");let m;r?m=h3({...Md(this.c,i,s),...n},i,s):Te(n.ordinal)?(m={...this.toObject(),...n},Te(n.day)&&(m.day=Math.min(Dd(m.year,m.month),m.day))):m=f3({...Mh(this.c),...n});const[g,y]=zd(m,this.o,this.zone);return Hr(this,{ts:g,o:y})}plus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e);return Hr(this,Q3(this,n))}minus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e).negate();return Hr(this,Q3(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Qe.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const r=this.loc.getStartOfWeek(),{weekday:o}=this;o<r&&(i.weekNumber=this.weekNumber-1),i.weekday=r}else i.weekday=1;if(s==="quarters"){const r=Math.ceil(this.month/3);i.month=(r-1)*3+1}return this.set(i)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?wn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Nh}toLocaleString(e=wd,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):Nh}toLocaleParts(e={}){return this.isValid?wn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o=e==="extended";let c=Lh(this,o);return c+="T",c+=e4(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?Lh(this,e==="extended"):null}toISOWeekDate(){return Pd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:r=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+e4(this,o==="extended",n,e,i,r):null}toRFC2822(){return Pd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Lh(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(i&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Pd(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Nh}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",i={}){if(!this.isValid||!e.isValid)return Qe.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=US(n).map(Qe.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=ZM(c,d,r,s);return o?h.negate():h}diffNow(e="milliseconds",n={}){return this.diff(ue.now(),e,n)}until(e){return this.isValid?Lt.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(n,i)<=s&&s<=r.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||ue.fromObject({},{zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(s=e.unit,r=void 0),r4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?r4(e.base||ue.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ue.isDateTime))throw new Wn("min requires all arguments be DateTimes");return v3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(ue.isDateTime))throw new Wn("max requires all arguments be DateTimes");return v3(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:s=null,numberingSystem:r=null}=i,o=yt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return K3(o,e,n)}static fromStringExplain(e,n,i={}){return ue.fromFormatExplain(e,n,i)}static get DATE_SHORT(){return wd}static get DATE_MED(){return I2}static get DATE_MED_WITH_WEEKDAY(){return wS}static get DATE_FULL(){return A2}static get DATE_HUGE(){return $2}static get TIME_SIMPLE(){return N2}static get TIME_WITH_SECONDS(){return z2}static get TIME_WITH_SHORT_OFFSET(){return P2}static get TIME_WITH_LONG_OFFSET(){return L2}static get TIME_24_SIMPLE(){return F2}static get TIME_24_WITH_SECONDS(){return R2}static get TIME_24_WITH_SHORT_OFFSET(){return H2}static get TIME_24_WITH_LONG_OFFSET(){return W2}static get DATETIME_SHORT(){return Y2}static get DATETIME_SHORT_WITH_SECONDS(){return j2}static get DATETIME_MED(){return U2}static get DATETIME_MED_WITH_SECONDS(){return q2}static get DATETIME_MED_WITH_WEEKDAY(){return kS}static get DATETIME_FULL(){return G2}static get DATETIME_FULL_WITH_SECONDS(){return K2}static get DATETIME_HUGE(){return Z2}static get DATETIME_HUGE_WITH_SECONDS(){return X2}}function Al(t){if(ue.isDateTime(t))return t;if(t&&t.valueOf&&Lr(t.valueOf()))return ue.fromJSDate(t);if(t&&typeof t=="object")return ue.fromObject(t);throw new Wn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/*!
38
+ `):t}function Ox(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:c}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:c,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function d2(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:c}=e,d=en(e.bodyFont),h=en(e.titleFont),f=en(e.footerFont),m=r.length,g=s.length,y=i.length,b=vn(e.padding);let k=b.height,C=0,S=i.reduce((x,V)=>x+V.before.length+V.lines.length+V.after.length,0);if(S+=t.beforeBody.length+t.afterBody.length,m&&(k+=m*h.lineHeight+(m-1)*e.titleSpacing+e.titleMarginBottom),S){const x=e.displayColors?Math.max(c,d.lineHeight):d.lineHeight;k+=y*x+(S-y)*d.lineHeight+(S-1)*e.bodySpacing}g&&(k+=e.footerMarginTop+g*f.lineHeight+(g-1)*e.footerSpacing);let E=0;const A=function(x){C=Math.max(C,n.measureText(x).width+E)};return n.save(),n.font=h.string,ut(t.title,A),n.font=d.string,ut(t.beforeBody.concat(t.afterBody),A),E=e.displayColors?o+2+e.boxPadding:0,ut(i,x=>{ut(x.before,A),ut(x.lines,A),ut(x.after,A)}),E=0,n.font=f.string,ut(t.footer,A),n.restore(),C+=b.width,{width:C,height:k}}function Dx(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function Ex(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function Bx(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:c,right:d}}=t;let h="center";return i==="center"?h=s<=(c+d)/2?"left":"right":s<=r/2?h="left":s>=o-r/2&&(h="right"),Ex(h,t,e,n)&&(h="center"),h}function u2(t,e,n){const i=n.yAlign||e.yAlign||Dx(t,n);return{xAlign:n.xAlign||e.xAlign||Bx(t,e,n,i),yAlign:i}}function Tx(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function Vx(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function h2(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:c,yAlign:d}=n,h=s+r,{topLeft:f,topRight:m,bottomLeft:g,bottomRight:y}=Tr(o);let b=Tx(e,c);const k=Vx(e,d,h);return d==="center"?c==="left"?b+=h:c==="right"&&(b-=h):c==="left"?b-=Math.max(f,g)+s:c==="right"&&(b+=Math.max(m,y)+s),{x:dn(b,0,i.width-e.width),y:dn(k,0,i.height-e.height)}}function _d(t,e,n){const i=vn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function f2(t){return es([],vs(t))}function Ix(t,e,n){return Gs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function p2(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const m2={beforeTitle:ps,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:ps,beforeBody:ps,beforeLabel:ps,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Je(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ps,afterBody:ps,beforeFooter:ps,footer:ps,afterFooter:ps};function Fn(t,e,n,i){const s=t[e].call(n,i);return typeof s>"u"?m2[e].call(n,i):s}class uh extends Ai{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new ig(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Ix(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=Fn(i,"beforeTitle",this,e),r=Fn(i,"title",this,e),o=Fn(i,"afterTitle",this,e);let c=[];return c=es(c,vs(s)),c=es(c,vs(r)),c=es(c,vs(o)),c}getBeforeBody(e,n){return f2(Fn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return ut(e,r=>{const o={before:[],lines:[],after:[]},c=p2(i,r);es(o.before,vs(Fn(c,"beforeLabel",this,r))),es(o.lines,Fn(c,"label",this,r)),es(o.after,vs(Fn(c,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return f2(Fn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=Fn(i,"beforeFooter",this,e),r=Fn(i,"footer",this,e),o=Fn(i,"afterFooter",this,e);let c=[];return c=es(c,vs(s)),c=es(c,vs(r)),c=es(c,vs(o)),c}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(Ox(this.chart,n[d]));return e.filter&&(c=c.filter((f,m,g)=>e.filter(f,m,g,i))),e.itemSort&&(c=c.sort((f,m)=>e.itemSort(f,m,i))),ut(c,f=>{const m=p2(e.callbacks,f);s.push(Fn(m,"labelColor",this,f)),r.push(Fn(m,"labelPointStyle",this,f)),o.push(Fn(m,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const c=wl[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const d=this._size=d2(this,i),h=Object.assign({},c,d),f=u2(this.chart,i,h),m=h2(i,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:m.x,y:m.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:c}=i,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:m}=Tr(c),{x:g,y}=e,{width:b,height:k}=n;let C,S,E,A,x,V;return r==="center"?(x=y+k/2,s==="left"?(C=g,S=C-o,A=x+o,V=x-o):(C=g+b,S=C+o,A=x-o,V=x+o),E=C):(s==="left"?S=g+Math.max(d,f)+o:s==="right"?S=g+b-Math.max(h,m)-o:S=this.caretX,r==="top"?(A=y,x=A-o,C=S-o,E=S+o):(A=y+k,x=A+o,C=S+o,E=S-o),V=A),{x1:C,x2:S,x3:E,y1:A,y2:x,y3:V}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,c,d;if(r){const h=Da(i.rtl,this.x,this.width);for(e.x=_d(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=en(i.titleFont),c=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,d=0;d<r;++d)n.fillText(s[d],h.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+c,d+1===r&&(e.y+=i.titleMarginBottom-c)}}_drawColorBox(e,n,i,s,r){const o=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:d,boxWidth:h}=r,f=en(r.bodyFont),m=_d(this,"left",r),g=s.x(m),y=d<f.lineHeight?(f.lineHeight-d)/2:0,b=n.y+y;if(r.usePointStyle){const k={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},C=s.leftForLtr(g,h)+h/2,S=b+d/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,R1(e,k,C,S),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,R1(e,k,C,S)}else{e.lineWidth=Ue(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const k=s.leftForLtr(g,h),C=s.leftForLtr(s.xPlus(g,1),h-2),S=Tr(o.borderRadius);Object.values(S).some(E=>E!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,ll(e,{x:k,y:b,w:h,h:d,radius:S}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ll(e,{x:C,y:b+1,w:h-2,h:d-2,radius:S}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(k,b,h,d),e.strokeRect(k,b,h,d),e.fillStyle=o.backgroundColor,e.fillRect(C,b+1,h-2,d-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:f}=i,m=en(i.bodyFont);let g=m.lineHeight,y=0;const b=Da(i.rtl,this.x,this.width),k=function(F){n.fillText(F,b.x(e.x+y),e.y+g/2),e.y+=g+r},C=b.textAlign(o);let S,E,A,x,V,N,L;for(n.textAlign=o,n.textBaseline="middle",n.font=m.string,e.x=_d(this,C,i),n.fillStyle=i.bodyColor,ut(this.beforeBody,k),y=c&&C!=="right"?o==="center"?h/2+f:h+2+f:0,x=0,N=s.length;x<N;++x){for(S=s[x],E=this.labelTextColors[x],n.fillStyle=E,ut(S.before,k),A=S.lines,c&&A.length&&(this._drawColorBox(n,e,x,b,i),g=Math.max(m.lineHeight,d)),V=0,L=A.length;V<L;++V)k(A[V]),g=m.lineHeight;ut(S.after,k)}y=0,g=m.lineHeight,ut(this.afterBody,k),e.y-=r}drawFooter(e,n,i){const s=this.footer,r=s.length;let o,c;if(r){const d=Da(i.rtl,this.x,this.width);for(e.x=_d(this,i.footerAlign,i),e.y+=i.footerMarginTop,n.textAlign=d.textAlign(i.footerAlign),n.textBaseline="middle",o=en(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,c=0;c<r;++c)n.fillText(s[c],d.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i.footerSpacing}}drawBackground(e,n,i,s){const{xAlign:r,yAlign:o}=this,{x:c,y:d}=e,{width:h,height:f}=i,{topLeft:m,topRight:g,bottomLeft:y,bottomRight:b}=Tr(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(c+m,d),o==="top"&&this.drawCaret(e,n,i,s),n.lineTo(c+h-g,d),n.quadraticCurveTo(c+h,d,c+h,d+g),o==="center"&&r==="right"&&this.drawCaret(e,n,i,s),n.lineTo(c+h,d+f-b),n.quadraticCurveTo(c+h,d+f,c+h-b,d+f),o==="bottom"&&this.drawCaret(e,n,i,s),n.lineTo(c+y,d+f),n.quadraticCurveTo(c,d+f,c,d+f-y),o==="center"&&r==="left"&&this.drawCaret(e,n,i,s),n.lineTo(c,d+m),n.quadraticCurveTo(c,d,c+m,d),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=wl[e.position].call(this,this._active,this._eventPosition);if(!o)return;const c=this._size=d2(this,e),d=Object.assign({},o,this._size),h=u2(n,e,d),f=h2(e,d,h,n);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=vn(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),Gm(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Km(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),r=!Wc(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),c=this._positionChanged(o,e),d=n||!Wc(o,r)||c;return d&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),d}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=wl[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}ae(uh,"positioners",wl);var Ax={id:"tooltip",_element:uh,positioners:wl,afterInit(t,e,n){n&&(t.tooltip=new uh({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:m2},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},$x=Object.freeze({__proto__:null,Colors:qC,Decimation:XC,Filler:_x,Legend:Cx,SubTitle:Mx,Title:Sx,Tooltip:Ax});const Nx=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function zx(t,e,n,i){const s=t.indexOf(e);if(s===-1)return Nx(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const Px=(t,e)=>t===null?null:dn(Math.round(t),0,e);function g2(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class hh extends Nr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Je(e))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===e?n:zx(i,e,$e(n,e),this._addedLabels),Px(n,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const e=this.min,n=this.max,i=this.options.offset,s=[];let r=this.getLabels();r=e===0&&n===r.length-1?r:r.slice(e,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=e;o<=n;o++)s.push({value:o});return s}getLabelForValue(e){return g2.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ae(hh,"id","category"),ae(hh,"defaults",{ticks:{callback:g2}});function Lx(t,e){const n=[],{bounds:s,step:r,min:o,max:c,precision:d,count:h,maxTicks:f,maxDigits:m,includeBounds:g}=t,y=r||1,b=f-1,{min:k,max:C}=e,S=!Je(o),E=!Je(c),A=!Je(h),x=(C-k)/(m+1);let V=vm((C-k)/b/y)*y,N,L,F,q;if(V<1e-14&&!S&&!E)return[{value:k},{value:C}];q=Math.ceil(C/V)-Math.floor(k/V),q>b&&(V=vm(q*V/b/y)*y),Je(d)||(N=Math.pow(10,d),V=Math.ceil(V*N)/N),s==="ticks"?(L=Math.floor(k/V)*V,F=Math.ceil(C/V)*V):(L=k,F=C),S&&E&&r&&Aw((c-o)/r,V/1e3)?(q=Math.round(Math.min((c-o)/V,f)),V=(c-o)/q,L=o,F=c):A?(L=S?o:L,F=E?c:F,q=h-1,V=(F-L)/q):(q=(F-L)/V,il(q,Math.round(q),V/1e3)?q=Math.round(q):q=Math.ceil(q));const ee=Math.max(wm(V),wm(L));N=Math.pow(10,Je(d)?ee:d),L=Math.round(L*N)/N,F=Math.round(F*N)/N;let ne=0;for(S&&(g&&L!==o?(n.push({value:o}),L<o&&ne++,il(Math.round((L+ne*V)*N)/N,o,_2(o,x,t))&&ne++):L<o&&ne++);ne<q;++ne){const K=Math.round((L+ne*V)*N)/N;if(E&&K>c)break;n.push({value:K})}return E&&g&&F!==c?n.length&&il(n[n.length-1].value,c,_2(c,x,t))?n[n.length-1].value=c:n.push({value:c}):(!E||F===c)&&n.push({value:F}),n}function _2(t,e,{horizontal:n,minRotation:i}){const s=Vi(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class yd extends Nr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Je(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=d=>s=n?s:d,c=d=>r=i?r:d;if(e){const d=Ji(s),h=Ji(r);d<0&&h<0?c(0):d>0&&h>0&&o(0)}if(s===r){let d=r===0?1:Math.abs(r*.05);c(r+d),e||o(s-d)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=Lx(s,r);return e.bounds==="ticks"&&bm(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return al(e,this.chart.options.locale,this.options.ticks.format)}}class fh extends yd{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?e:0,this.max=Ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Vi(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ae(fh,"id","linear"),ae(fh,"defaults",{ticks:{callback:qc.formatters.numeric}});const kl=t=>Math.floor(qs(t)),zr=(t,e)=>Math.pow(10,kl(t)+e);function y2(t){return t/Math.pow(10,kl(t))===1}function v2(t,e,n){const i=Math.pow(10,n),s=Math.floor(t/i);return Math.ceil(e/i)-s}function Fx(t,e){const n=e-t;let i=kl(n);for(;v2(t,e,i)>10;)i++;for(;v2(t,e,i)<10;)i--;return Math.min(i,kl(t))}function Rx(t,{min:e,max:n}){e=Qn(t.min,e);const i=[],s=kl(e);let r=Fx(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const c=Math.pow(10,r),d=s>r?Math.pow(10,s):0,h=Math.round((e-d)*o)/o,f=Math.floor((e-d)/c/10)*c*10;let m=Math.floor((h-f)/Math.pow(10,r)),g=Qn(t.min,Math.round((d+f+m*Math.pow(10,r))*o)/o);for(;g<n;)i.push({value:g,major:y2(g),significand:m}),m>=10?m=m<15?15:20:m++,m>=20&&(r++,m=2,o=r>=0?1:o),g=Math.round((d+f+m*Math.pow(10,r))*o)/o;const y=Qn(t.max,g);return i.push({value:y,major:y2(y),significand:m}),i}class ph extends Nr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const i=yd.prototype.parse.apply(this,[e,n]);if(i===0){this._zero=!0;return}return Ht(i)&&i>0?i:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ht(e)?Math.max(0,e):null,this.max=Ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ht(this._userMin)&&(this.min=e===zr(this.min,0)?zr(this.min,-1):zr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=c=>i=e?i:c,o=c=>s=n?s:c;i===s&&(i<=0?(r(1),o(10)):(r(zr(i,-1)),o(zr(s,1)))),i<=0&&r(zr(s,-1)),s<=0&&o(zr(i,1)),this.min=i,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},i=Rx(n,this);return e.bounds==="ticks"&&bm(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":al(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=qs(e),this._valueRange=qs(this.max)-qs(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(qs(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ae(ph,"id","logarithmic"),ae(ph,"defaults",{ticks:{callback:qc.formatters.logarithmic,major:{enabled:!0}}});function mh(t){const e=t.ticks;if(e.display&&t.display){const n=vn(e.backdropPadding);return $e(e.font&&e.font.size,Wt.font.size)+n.height}return 0}function Hx(t,e,n){return n=Et(n)?n:[n],{w:Xw(t,e.string,n),h:n.length*e.lineHeight}}function b2(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function Wx(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,c=o.centerPointLabels?Bt/r:0;for(let d=0;d<r;d++){const h=o.setContext(t.getPointLabelContext(d));s[d]=h.padding;const f=t.getPointPosition(d,t.drawingArea+s[d],c),m=en(h.font),g=Hx(t.ctx,m,t._pointLabels[d]);i[d]=g;const y=ei(t.getIndexAngle(d)+c),b=Math.round(I1(y)),k=b2(b,f.x,g.w,0,180),C=b2(b,f.y,g.h,90,270);Yx(n,e,y,k,C)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=qx(t,i,s)}function Yx(t,e,n,i,s){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let c=0,d=0;i.start<e.l?(c=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-c)):i.end>e.r&&(c=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+c)),s.start<e.t?(d=(e.t-s.start)/o,t.t=Math.min(t.t,e.t-d)):s.end>e.b&&(d=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+d))}function jx(t,e,n){const i=t.drawingArea,{extra:s,additionalAngle:r,padding:o,size:c}=n,d=t.getPointPosition(e,i+s+o,r),h=Math.round(I1(ei(d.angle+Ut))),f=Zx(d.y,c.h,h),m=Gx(h),g=Kx(d.x,c.w,m);return{visible:!0,x:d.x,y:f,textAlign:m,left:g,top:f,right:g+c.w,bottom:f+c.h}}function Ux(t,e){if(!e)return!0;const{left:n,top:i,right:s,bottom:r}=t;return!(_s({x:n,y:i},e)||_s({x:n,y:r},e)||_s({x:s,y:i},e)||_s({x:s,y:r},e))}function qx(t,e,n){const i=[],s=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:c}=r.pointLabels,d={extra:mh(r)/2,additionalAngle:o?Bt/s:0};let h;for(let f=0;f<s;f++){d.padding=n[f],d.size=e[f];const m=jx(t,f,d);i.push(m),c==="auto"&&(m.visible=Ux(m,h),m.visible&&(h=m))}return i}function Gx(t){return t===0||t===180?"center":t<180?"left":"right"}function Kx(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Zx(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xx(t,e,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:c}=e;if(!Je(c)){const d=Tr(e.borderRadius),h=vn(e.backdropPadding);t.fillStyle=c;const f=i-h.left,m=s-h.top,g=r-i+h.width,y=o-s+h.height;Object.values(d).some(b=>b!==0)?(t.beginPath(),ll(t,{x:f,y:m,w:g,h:y,radius:d}),t.fill()):t.fillRect(f,m,g,y)}}function Jx(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const r=t._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(t.getPointLabelContext(s));Xx(n,o,r);const c=en(o.font),{x:d,y:h,textAlign:f}=r;Br(n,t._pointLabels[s],d,h+c.lineHeight/2,c,{color:o.color,textAlign:f,textBaseline:"middle"})}}function w2(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Tt);else{let r=t.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o<i;o++)r=t.getPointPosition(o,e),s.lineTo(r.x,r.y)}}function Qx(t,e,n,i,s){const r=t.ctx,o=e.circular,{color:c,lineWidth:d}=e;!o&&!i||!c||!d||n<0||(r.save(),r.strokeStyle=c,r.lineWidth=d,r.setLineDash(s.dash),r.lineDashOffset=s.dashOffset,r.beginPath(),w2(t,n,o,i),r.closePath(),r.stroke(),r.restore())}function eS(t,e,n){return Gs(t,{label:n,index:e,type:"pointLabel"})}class Cl extends yd{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=vn(mh(this.options)/2),n=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ht(e)&&!isNaN(e)?e:0,this.max=Ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/mh(this.options))}generateTickLabels(e){yd.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,i)=>{const s=Mt(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const e=this.options;e.display&&e.pointLabels.display?Wx(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,i,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,i,s))}getIndexAngle(e){const n=Tt/(this._pointLabels.length||1),i=this.options.startAngle||0;return ei(e*n+Vi(i))}getDistanceFromCenterForValue(e){if(Je(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Je(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const i=n[e];return eS(this.getContext(),e,i)}}getPointPosition(e,n,i=0){const s=this.getIndexAngle(e)-Ut+i;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:i,right:s,bottom:r}=this._pointLabelItems[e];return{left:n,top:i,right:s,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),w2(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:i,grid:s,border:r}=n,o=this._pointLabels.length;let c,d,h;if(n.pointLabels.display&&Jx(this,o),s.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){d=this.getDistanceFromCenterForValue(f.value);const g=this.getContext(m),y=s.setContext(g),b=r.setContext(g);Qx(this,y,d,o,b)}}),i.display){for(e.save(),c=o-1;c>=0;c--){const f=i.setContext(this.getPointLabelContext(c)),{color:m,lineWidth:g}=f;!g||!m||(e.lineWidth=g,e.strokeStyle=m,e.setLineDash(f.borderDash),e.lineDashOffset=f.borderDashOffset,d=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(c,d),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,d)=>{if(d===0&&this.min>=0&&!n.reverse)return;const h=i.setContext(this.getContext(d)),f=en(h.font);if(r=this.getDistanceFromCenterForValue(this.ticks[d].value),h.showLabelBackdrop){e.font=f.string,o=e.measureText(c.label).width,e.fillStyle=h.backdropColor;const m=vn(h.backdropPadding);e.fillRect(-o/2-m.left,-r-f.size/2-m.top,o+m.width,f.size+m.height)}Br(e,c.label,0,-r,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(Cl,"id","radialLinear"),ae(Cl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:qc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(Cl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(Cl,"descriptors",{angleLines:{_fallback:"grid"}});const vd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Rn=Object.keys(vd);function k2(t,e){return t-e}function C2(t,e){if(Je(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Ht(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Sa(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function x2(t,e,n,i){const s=Rn.length;for(let r=Rn.indexOf(t);r<s-1;++r){const o=vd[Rn[r]],c=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(c*o.size))<=i)return Rn[r]}return Rn[s-1]}function tS(t,e,n,i,s){for(let r=Rn.length-1;r>=Rn.indexOf(n);r--){const o=Rn[r];if(vd[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return Rn[n?Rn.indexOf(n):0]}function nS(t){for(let e=Rn.indexOf(t)+1,n=Rn.length;e<n;++e)if(vd[Rn[e]].common)return Rn[e]}function S2(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:i,hi:s}=$1(n,e),r=n[i]>=e?n[i]:n[s];t[r]=!0}}function iS(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let c,d;for(c=r;c<=o;c=+s.add(c,1,i))d=n[c],d>=0&&(e[d].major=!0);return e}function M2(t,e,n){const i=[],s={},r=e.length;let o,c;for(o=0;o<r;++o)c=e[o],s[c]=o,i.push({value:c,major:!1});return r===0||!n?i:iS(t,i,s,n)}class xl extends Nr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const i=e.time||(e.time={}),s=this._adapter=new mg._date(e.adapters.date);s.init(n),tl(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:C2(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,i=e.time.unit||"day";let{min:s,max:r,minDefined:o,maxDefined:c}=this.getUserBounds();function d(h){!o&&!isNaN(h.min)&&(s=Math.min(s,h.min)),!c&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!o||!c)&&(d(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&d(this.getMinMax(!1))),s=Ht(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=Ht(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],i=e[e.length-1]),{min:n,max:i}}buildTicks(){const e=this.options,n=e.time,i=e.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,c=Pw(s,r,o);return this._unit=n.unit||(i.autoSkip?x2(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):tS(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:nS(this._unit),this.initOffsets(s),e.reverse&&c.reverse(),M2(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=dn(n,0,o),i=dn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||x2(r.minUnit,n,i,this._getLabelCapacity(n)),c=$e(s.ticks.stepSize,1),d=o==="week"?r.isoWeekday:!1,h=Sa(d)||d===!0,f={};let m=n,g,y;if(h&&(m=+e.startOf(m,"isoWeek",d)),m=+e.startOf(m,h?"day":o),e.diff(i,n,o)>1e5*c)throw new Error(n+" and "+i+" are too far apart with stepSize of "+c+" "+o);const b=s.ticks.source==="data"&&this.getDataTimestamps();for(g=m,y=0;g<i;g=+e.add(g,c,o),y++)S2(f,g,b);return(g===i||s.bounds==="ticks"||y===1)&&S2(f,g,b),Object.keys(f).sort(k2).map(k=>+k)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return Mt(o,[e,n,i],this);const c=r.time.displayFormats,d=this._unit,h=this._majorUnit,f=d&&c[d],m=h&&c[h],g=i[n],y=h&&m&&g&&g.major;return this._adapter.format(e,s||(y?m:f))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n<i;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,i=this.ctx.measureText(e).width,s=Vi(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:i*r+c*o,h:i*o+c*r}}_getLabelCapacity(e){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tickFormatFunction(e,0,M2(this,[e],this._majorUnit),s),o=this._getLabelSize(r),c=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,i;if(e.length)return e;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)e.push(C2(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Sm(e.sort(k2))}}ae(xl,"id","time"),ae(xl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function bd(t,e,n){let i=0,s=t.length-1,r,o,c,d;n?(e>=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=gs(t,"pos",e)),{pos:r,time:c}=t[i],{pos:o,time:d}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=gs(t,"time",e)),{time:r,pos:c}=t[i],{time:o,pos:d}=t[s]);const h=o-r;return h?c+(d-c)*(e-r)/h:c}class gh extends xl{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=bd(n,this.min),this._tableRange=bd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,c,d,h,f;for(o=0,c=e.length;o<c;++o)h=e[o],h>=n&&h<=i&&s.push(h);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,c=s.length;o<c;++o)f=s[o+1],d=s[o-1],h=s[o],Math.round((f+d)/2)!==h&&r.push({time:h,pos:o/(c-1)});return r}_generate(){const e=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(e)||!i.length)&&i.splice(0,0,e),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(bd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return bd(this._table,i*this._tableRange+this._minPos,!0)}}ae(gh,"id","timeseries"),ae(gh,"defaults",xl.defaults);var sS=Object.freeze({__proto__:null,CategoryScale:hh,LinearScale:fh,LogarithmicScale:ph,RadialLinearScale:Cl,TimeScale:xl,TimeSeriesScale:gh});const _h=[hk,RC,$x,sS],O2={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},rS={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...O2,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},aS=a.version[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Ta(t){return a.isProxy(t)?a.toRaw(t):t}function oS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return a.isProxy(e)?new Proxy(t,{}):t}function lS(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function D2(t,e){t.labels=e}function E2(t,e,n){const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function cS(t,e){const n={labels:[],datasets:[]};return D2(n,t.labels),E2(n,t.datasets,e),n}const dS=a.defineComponent({props:rS,setup(t,e){let{expose:n,slots:i}=e;const s=a.ref(null),r=a.shallowRef(null);n({chart:r});const o=()=>{if(!s.value)return;const{type:h,data:f,options:m,plugins:g,datasetIdKey:y}=t,b=cS(f,y),k=oS(b,f);r.value=new pi(s.value,{type:h,data:k,options:{...m},plugins:g})},c=()=>{const h=a.toRaw(r.value);h&&(t.destroyDelay>0?setTimeout(()=>{h.destroy(),r.value=null},t.destroyDelay):(h.destroy(),r.value=null))},d=h=>{h.update(t.updateMode)};return a.onMounted(o),a.onUnmounted(c),a.watch([()=>t.options,()=>t.data],(h,f)=>{let[m,g]=h,[y,b]=f;const k=a.toRaw(r.value);if(!k)return;let C=!1;if(m){const S=Ta(m),E=Ta(y);S&&S!==E&&(lS(k,S),C=!0)}if(g){const S=Ta(g.labels),E=Ta(b.labels),A=Ta(g.datasets),x=Ta(b.datasets);S!==E&&(D2(k.config.data,S),C=!0),A&&A!==x&&(E2(k.config.data,A,t.datasetIdKey),C=!0)}C&&a.nextTick(()=>{d(k)})},{deep:!0}),()=>a.h("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[a.h("p",{},[i.default?i.default():""])])}});function Sl(t,e){return pi.register(e),a.defineComponent({props:O2,setup(n,i){let{expose:s}=i;const r=a.shallowRef(null),o=c=>{r.value=c==null?void 0:c.chart};return s({chart:r}),()=>a.h(dS,aS({ref:o},{type:t,...n}))}})}const B2=Sl("bar",ul),T2=Sl("doughnut",Ks),uS=Sl("line",hl),hS=Sl("pie",nd),fS=Sl("polarArea",Ea),Hn={gp50:"#f3fcf8",gp100:"#e2f8ef",gp200:"#abedd3",gp300:"#6ddfb1",gp400:"#2db981",gp500:"#239f6d",gp600:"#1c7d56",gp700:"#136746",ta50:"#eefcfa",ta100:"#dcf9f6",ta200:"#a2f1e5",ta300:"#51e6d0",ta400:"#20c5ad",ta500:"#18aa94",ta600:"#138675",ta700:"#0f6b5d",ts50:"#f5fbff",ts100:"#e6f6fe",ts200:"#C2EDFF",ts300:"#7BD0F4",ts400:"#42AAD7",ts500:"#1F86B2",ts600:"#18698B",ts700:"#155875",bn50:"#f6f9fe",bn100:"#e6effe",bn200:"#b4cdf8",bn300:"#729ee9",bn400:"#467bd8",bn500:"#2f64c1",bn600:"#2051a7",bn700:"#19438a",in50:"#f5f6ff",in100:"#ebefff",in200:"#CED6FD",in300:"#9bacf8",in400:"#6a7cd7",in500:"#4b5caf",in600:"#374486",in700:"#2f396f",vr50:"#faf5ff",vr100:"#f7f0ff",vr200:"#E6D2F9",vr300:"#CEABED",vr400:"#a772d5",vr500:"#8955B9",vr600:"#6B3A98",vr700:"#5c3082",pp50:"#fff5fb",pp100:"#ffebf7",pp200:"#F9C8E2",pp300:"#EF8FC0",pp400:"#DA629F",pp500:"#BE377C",pp600:"#A12663",pp700:"#88255a",rc50:"#fef6f7",rc100:"#ffebed",rc200:"#FABDC5",rc300:"#F98B98",rc400:"#F3596C",rc500:"#E03E52",rc600:"#C92C3F",rc700:"#b22435",og50:"#fef7f6",og100:"#ffefeb",og200:"#FFD6CC",og300:"#FDAF9B",og400:"#FF8567",og500:"#F06442",og600:"#D64B29",og700:"#bc4224",al50:"#fefbf6",al100:"#fdf3e2",al200:"#ffe5b8",al300:"#fdd286",al400:"#f6bd5a",al500:"#eda831",al600:"#d89013",al700:"#c08011",n0:"#FFFFFF",n10:"#FAFCFE",n20:"#F4F8FB",n30:"#E7EDF3",n40:"#DFE5EC",n50:"#D6DCE3",n100:"#C3CCD5",n200:"#ACB8C3",n300:"#99A6B2",n400:"#8794A1",n500:"#647382",n600:"#52616F",n700:"#3B4754",n800:"#28333E",n900:"#1D262F",palete:'["Light Neutrals", "Light", #FFFFFF, #FAFCFE, #F4F8FB, #E7EDF3, #DFE5EC, "$n-0", "$n-10", "$n-20", "$n-30", "$n-40"], ["Mid Neutrals", "Gray", #D6DCE3, #C3CCD5, #ACB8C3, #99A6B2, #8794A1, "$n-50", "$n-100", "$n-200", "$n-300", "$n-400"], ["Dark Neutrals", "Dark", #647382, #52616F, #3B4754, #28333E, #1D262F, "$n-500", "$n-600", "$n-700", "$n-800", "$n-900"], ["Piccolo Green", "Green", #f3fcf8, #e2f8ef, #abedd3, #6ddfb1, #2db981, #239f6d, #1c7d56, #136746, "$gp-50", "$gp-100", "$gp-200", "$gp-300", "$gp-400", "$gp-500", "$gp-600", "$gp-700"], ["Aquaman Teal", "Teal", #eefcfa, #dcf9f6, #a2f1e5, #51e6d0, #20c5ad, #18aa94, #138675, #0f6b5d, "$ta-50", "$ta-100", "$ta-200", "$ta-300", "$ta-400", "$ta-500", "$ta-600", "$ta-700"], ["Sulivan Turquoise", "Turquoise", #f5fbff, #e6f6fe, #C2EDFF, #7BD0F4, #42AAD7, #1F86B2, #18698B, #155875, "$ts-50", "$ts-100", "$ts-200", "$ts-300", "$ts-400", "$ts-500", "$ts-600", "$ts-700"], ["Nocturne Blue", "Blue", #f6f9fe, #e6effe, #b4cdf8, #729ee9, #467bd8, #2f64c1, #2051a7, #19438a, "$bn-50", "$bn-100", "$bn-200", "$bn-300", "$bn-400", "$bn-500", "$bn-600", "$bn-700"], ["Nightwing Indigo", "Indigo", #f5f6ff, #ebefff, #CED6FD, #9bacf8, #6a7cd7, #4b5caf, #374486, #2f396f, "$in-50", "$in-100", "$in-200", "$in-300", "$in-400", "$in-500", "$in-600", "$in-700"], ["Raven Violet", "Violet", #faf5ff, #f7f0ff, #E6D2F9, #CEABED, #a772d5, #8955B9, #6B3A98, #5c3082, "$vr-50", "$vr-100", "$vr-200", "$vr-300", "$vr-400", "$vr-500", "$vr-600", "$vr-700"], ["Peppa Pink", "Pink", #fff5fb, #ffebf7, #F9C8E2, #EF8FC0, #DA629F, #BE377C, #A12663, #88255a, "$pp-50", "$pp-100", "$pp-200", "$pp-300", "$pp-400", "$pp-500", "$pp-600", "$pp-700"], ["Carmen Red", "Red", #fef6f7, #ffebed, #FABDC5, #F98B98, #F3596C, #E03E52, #C92C3F, #b22435, "$rc-50", "$rc-100", "$rc-200", "$rc-300", "$rc-400", "$rc-500", "$rc-600", "$rc-700"], ["Goku Orange", "Orange", #fef7f6, #ffefeb, #FFD6CC, #FDAF9B, #FF8567, #F06442, #D64B29, #bc4224, "$og-50", "$og-100", "$og-200", "$og-300", "$og-400", "$og-500", "$og-600", "$og-700"], ["Lisa Amber", "Amber", #fefbf6, #fdf3e2, #ffe5b8, #fdd286, #f6bd5a, #eda831, #d89013, #c08011, "$al-50", "$al-100", "$al-200", "$al-300", "$al-400", "$al-500", "$al-600", "$al-700"]',chartThemes:'["Blue Theme", "Blue", #467bd8, #42AAD7, #20c5ad, #19438a, #4b5caf, #6ddfb1, #FFD6CC, #ffefeb, #ffe5b8, #fdd286, "$bn-400", "$ts-400", "$ta-400", "$bn-700", "$in-500", "$gp-300", "$og-200", "$og-100", "$al-200", "$al-300"], ["Indigo Theme", "Indigo", #4b5caf, #CEABED, #FDAF9B, #ffebf7, #FFD6CC, #6a7cd7, #E7EDF3, #EF8FC0, #a772d5, #3B4754, "$in-500", "$pp-100", "$og-200", "$vr-300", "$in-400", "$og-300", "$n-30", "$n-700", "$vr-400", "$pp-300"]'},ts=t=>{let e=[],n={};const i=/(\[[^[\]]*\])/g,s=t.match(i);for(let r=0;r<s.length;r++){s[r]=s[r].replace("[",""),s[r]=s[r].replace("]","");let o=s[r].split(",");n.colorName=o[0].trim().replace(/"/g,""),n.variantName=o[1].trim().replace(/"/g,""),n.color400=o[6],n.colorShades=[],n.colorTokens=[],n.colorData=[];let c=!1;for(let d=2,h=2;d<o.length;d++,h++)o[d].includes("#")?(n.colorShades.push(o[d].trim()),n.colorData[h-2]={},n.colorData[h-2].shade=o[d].trim()):o[d].includes("$")&&(n.colorTokens.push(o[d].trim().replace(/"/g,"")),n.colorData[h-2].token=o[d].trim().replace(/"/g,"")),!c&&o[d+1].includes("$")&&(h=1,c=!0);e.push(n),n={}}return e},Bde="";pi.register(..._h);const pS={components:{Bar:B2},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},barWidth:{type:Number,default:1}},data(){return{sassColorVariables:Hn,localChartData:{},localLabels:[],palletColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,categoryPercentage:null,plugins:{tooltip:{callbacks:{beforeTitle:function(t){return`${t[0].dataset.name}`}}},legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0},barWidth:{handler(t){t>=.1&&t<=1?this.chartOptions.categoryPercentage=t:this.chartOptions.categoryPercentage=1},immediate:!0}},methods:{paleteBuilder: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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},mS={class:"responsive-container"};function gS(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",mS,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const _S=re(pS,[["render",gS],["__scopeId","data-v-1e55dea1"]]);class Pr extends Error{}class yS extends Pr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class vS extends Pr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class bS extends Pr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Va extends Pr{}class V2 extends Pr{constructor(e){super(`Invalid unit ${e}`)}}class Wn extends Pr{}class Js extends Pr{constructor(){super("Zone is an abstract class")}}const ce="numeric",$i="short",ti="long",wd={year:ce,month:ce,day:ce},I2={year:ce,month:$i,day:ce},wS={year:ce,month:$i,day:ce,weekday:$i},A2={year:ce,month:ti,day:ce},$2={year:ce,month:ti,day:ce,weekday:ti},N2={hour:ce,minute:ce},z2={hour:ce,minute:ce,second:ce},P2={hour:ce,minute:ce,second:ce,timeZoneName:$i},L2={hour:ce,minute:ce,second:ce,timeZoneName:ti},F2={hour:ce,minute:ce,hourCycle:"h23"},R2={hour:ce,minute:ce,second:ce,hourCycle:"h23"},H2={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:$i},W2={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:ti},Y2={year:ce,month:ce,day:ce,hour:ce,minute:ce},j2={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},U2={year:ce,month:$i,day:ce,hour:ce,minute:ce},q2={year:ce,month:$i,day:ce,hour:ce,minute:ce,second:ce},kS={year:ce,month:$i,day:ce,weekday:$i,hour:ce,minute:ce},G2={year:ce,month:ti,day:ce,hour:ce,minute:ce,timeZoneName:$i},K2={year:ce,month:ti,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:$i},Z2={year:ce,month:ti,day:ce,weekday:ti,hour:ce,minute:ce,timeZoneName:ti},X2={year:ce,month:ti,day:ce,weekday:ti,hour:ce,minute:ce,second:ce,timeZoneName:ti};class Ml{get type(){throw new Js}get name(){throw new Js}get ianaName(){return this.name}get isUniversal(){throw new Js}offsetName(e,n){throw new Js}formatOffset(e,n){throw new Js}offset(e){throw new Js}equals(e){throw new Js}get isValid(){throw new Js}}let yh=null;class kd extends Ml{static get instance(){return yh===null&&(yh=new kd),yh}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return w3(e,n,i)}formatOffset(e,n){return Bl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Cd={};function CS(t){return Cd[t]||(Cd[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Cd[t]}const xS={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function SS(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,r,o,c,d,h,f]=i;return[o,s,r,c,d,h,f]}function MS(t,e){const n=t.formatToParts(e),i=[];for(let s=0;s<n.length;s++){const{type:r,value:o}=n[s],c=xS[r];r==="era"?i[c]=o:Te(c)||(i[c]=parseInt(o,10))}return i}let xd={};class bs extends Ml{static create(e){return xd[e]||(xd[e]=new bs(e)),xd[e]}static resetCache(){xd={},Cd={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=bs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return w3(e,n,i,this.name)}formatOffset(e,n){return Bl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const i=CS(this.name);let[s,r,o,c,d,h,f]=i.formatToParts?MS(i,n):SS(i,n);c==="BC"&&(s=-Math.abs(s)+1);const g=Ed({year:s,month:r,day:o,hour:d===24?0:d,minute:h,second:f,millisecond:0});let y=+n;const b=y%1e3;return y-=b>=0?b:1e3+b,(g-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let J2={};function OS(t,e={}){const n=JSON.stringify([t,e]);let i=J2[n];return i||(i=new Intl.ListFormat(t,e),J2[n]=i),i}let vh={};function bh(t,e={}){const n=JSON.stringify([t,e]);let i=vh[n];return i||(i=new Intl.DateTimeFormat(t,e),vh[n]=i),i}let wh={};function DS(t,e={}){const n=JSON.stringify([t,e]);let i=wh[n];return i||(i=new Intl.NumberFormat(t,e),wh[n]=i),i}let kh={};function ES(t,e={}){const{base:n,...i}=e,s=JSON.stringify([t,i]);let r=kh[s];return r||(r=new Intl.RelativeTimeFormat(t,e),kh[s]=r),r}let Ol=null;function BS(){return Ol||(Ol=new Intl.DateTimeFormat().resolvedOptions().locale,Ol)}let Q2={};function TS(t){let e=Q2[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Q2[t]=e}return e}function VS(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,s;try{i=bh(t).resolvedOptions(),s=t}catch{const d=t.substring(0,n);i=bh(d).resolvedOptions(),s=d}const{numberingSystem:r,calendar:o}=i;return[s,r,o]}}function IS(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function AS(t){const e=[];for(let n=1;n<=12;n++){const i=ue.utc(2009,n,1);e.push(t(i))}return e}function $S(t){const e=[];for(let n=1;n<=7;n++){const i=ue.utc(2016,11,13+n);e.push(t(i))}return e}function Sd(t,e,n,i){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):i(e)}function NS(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class zS{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:r,...o}=i;if(!n||Object.keys(o).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=DS(e,c)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Eh(e,3);return Xt(n,this.padTo)}}}class PS{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),c=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&bs.create(c).valid?(s=c,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=bh(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class LS{constructor(e,n,i){this.opts={style:"long",...i},!n&&_3()&&(this.rtf=ES(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):rM(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const FS={firstDay:1,minimalDays:4,weekend:[6,7]};class yt{static fromOpts(e){return yt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,s,r=!1){const o=e||qt.defaultLocale,c=o||(r?"en-US":BS()),d=n||qt.defaultNumberingSystem,h=i||qt.defaultOutputCalendar,f=Oh(s)||qt.defaultWeekSettings;return new yt(c,d,h,f,o)}static resetCache(){Ol=null,vh={},wh={},kh={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return yt.create(e,n,i,s)}constructor(e,n,i,s,r){const[o,c,d]=VS(e);this.locale=o,this.numberingSystem=n||c||null,this.outputCalendar=i||d||null,this.weekSettings=s,this.intl=IS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=NS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:yt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Oh(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Sd(this,e,x3,()=>{const i=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=AS(r=>this.extract(r,i,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return Sd(this,e,O3,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=$S(r=>this.extract(r,i,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Sd(this,void 0,()=>D3,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ue.utc(2016,11,13,9),ue.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Sd(this,e,E3,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[ue.utc(-40,1,1),ue.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const s=this.dtFormatter(e,n),r=s.formatToParts(),o=r.find(c=>c.type.toLowerCase()===i);return o?o.value:null}numberFormatter(e={}){return new zS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new PS(e,this.intl,n)}relFormatter(e={}){return new LS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return OS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:y3()?TS(this.locale):FS}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Ch=null;class En extends Ml{static get utcInstance(){return Ch===null&&(Ch=new En(0)),Ch}static instance(e){return e===0?En.utcInstance:new En(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new En(Bd(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Bl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class RS extends Ml{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qs(t,e){if(Te(t)||t===null)return e;if(t instanceof Ml)return t;if(YS(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?kd.instance:n==="utc"||n==="gmt"?En.utcInstance:En.parseSpecifier(n)||bs.create(t)}else return Lr(t)?En.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new RS(t)}let e3=()=>Date.now(),t3="system",n3=null,i3=null,s3=null,r3=60,a3,o3=null;class qt{static get now(){return e3}static set now(e){e3=e}static set defaultZone(e){t3=e}static get defaultZone(){return Qs(t3,kd.instance)}static get defaultLocale(){return n3}static set defaultLocale(e){n3=e}static get defaultNumberingSystem(){return i3}static set defaultNumberingSystem(e){i3=e}static get defaultOutputCalendar(){return s3}static set defaultOutputCalendar(e){s3=e}static get defaultWeekSettings(){return o3}static set defaultWeekSettings(e){o3=Oh(e)}static get twoDigitCutoffYear(){return r3}static set twoDigitCutoffYear(e){r3=e%100}static get throwOnInvalid(){return a3}static set throwOnInvalid(e){a3=e}static resetCaches(){yt.resetCache(),bs.resetCache()}}class Ni{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const l3=[0,31,59,90,120,151,181,212,243,273,304,334],c3=[0,31,60,91,121,152,182,213,244,274,305,335];function mi(t,e){return new Ni("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function xh(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function d3(t,e,n){return n+(Dl(t)?c3:l3)[e-1]}function u3(t,e){const n=Dl(t)?c3:l3,i=n.findIndex(r=>r<e),s=e-n[i];return{month:i+1,day:s}}function Sh(t,e){return(t-e+7)%7+1}function Md(t,e=4,n=1){const{year:i,month:s,day:r}=t,o=d3(i,s,r),c=Sh(xh(i,s,r),n);let d=Math.floor((o-c+14-e)/7),h;return d<1?(h=i-1,d=El(h,e,n)):d>El(i,e,n)?(h=i+1,d=1):h=i,{weekYear:h,weekNumber:d,weekday:c,...Vd(t)}}function h3(t,e=4,n=1){const{weekYear:i,weekNumber:s,weekday:r}=t,o=Sh(xh(i,1,e),n),c=Aa(i);let d=s*7+r-o-7+e,h;d<1?(h=i-1,d+=Aa(h)):d>c?(h=i+1,d-=Aa(i)):h=i;const{month:f,day:m}=u3(h,d);return{year:h,month:f,day:m,...Vd(t)}}function Mh(t){const{year:e,month:n,day:i}=t,s=d3(e,n,i);return{year:e,ordinal:s,...Vd(t)}}function f3(t){const{year:e,ordinal:n}=t,{month:i,day:s}=u3(e,n);return{year:e,month:i,day:s,...Vd(t)}}function p3(t,e){if(!Te(t.localWeekday)||!Te(t.localWeekNumber)||!Te(t.localWeekYear)){if(!Te(t.weekday)||!Te(t.weekNumber)||!Te(t.weekYear))throw new Va("Cannot mix locale-based week fields with ISO-based week fields");return Te(t.localWeekday)||(t.weekday=t.localWeekday),Te(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Te(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function HS(t,e=4,n=1){const i=Od(t.weekYear),s=gi(t.weekNumber,1,El(t.weekYear,e,n)),r=gi(t.weekday,1,7);return i?s?r?!1:mi("weekday",t.weekday):mi("week",t.weekNumber):mi("weekYear",t.weekYear)}function WS(t){const e=Od(t.year),n=gi(t.ordinal,1,Aa(t.year));return e?n?!1:mi("ordinal",t.ordinal):mi("year",t.year)}function m3(t){const e=Od(t.year),n=gi(t.month,1,12),i=gi(t.day,1,Dd(t.year,t.month));return e?n?i?!1:mi("day",t.day):mi("month",t.month):mi("year",t.year)}function g3(t){const{hour:e,minute:n,second:i,millisecond:s}=t,r=gi(e,0,23)||e===24&&n===0&&i===0&&s===0,o=gi(n,0,59),c=gi(i,0,59),d=gi(s,0,999);return r?o?c?d?!1:mi("millisecond",s):mi("second",i):mi("minute",n):mi("hour",e)}function Te(t){return typeof t>"u"}function Lr(t){return typeof t=="number"}function Od(t){return typeof t=="number"&&t%1===0}function YS(t){return typeof t=="string"}function jS(t){return Object.prototype.toString.call(t)==="[object Date]"}function _3(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y3(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function US(t){return Array.isArray(t)?t:[t]}function v3(t,e,n){if(t.length!==0)return t.reduce((i,s)=>{const r=[e(s),s];return i&&n(i[0],r[0])===i[0]?i:r},null)[1]}function qS(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function Ia(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Oh(t){if(t==null)return null;if(typeof t!="object")throw new Wn("Week settings must be an object");if(!gi(t.firstDay,1,7)||!gi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!gi(e,1,7)))throw new Wn("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function gi(t,e,n){return Od(t)&&t>=e&&t<=n}function GS(t,e){return t-e*Math.floor(t/e)}function Xt(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function er(t){if(!(Te(t)||t===null||t===""))return parseInt(t,10)}function Fr(t){if(!(Te(t)||t===null||t===""))return parseFloat(t)}function Dh(t){if(!(Te(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Eh(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function Dl(t){return t%4===0&&(t%100!==0||t%400===0)}function Aa(t){return Dl(t)?366:365}function Dd(t,e){const n=GS(e-1,12)+1,i=t+(e-n)/12;return n===2?Dl(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ed(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function b3(t,e,n){return-Sh(xh(t,1,e),n)+e-1}function El(t,e=4,n=1){const i=b3(t,e,n),s=b3(t+1,e,n);return(Aa(t)-i+s)/7}function Bh(t){return t>99?t:t>qt.twoDigitCutoffYear?1900+t:2e3+t}function w3(t,e,n,i=null){const s=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(r.timeZone=i);const o={timeZoneName:e,...r},c=new Intl.DateTimeFormat(n,o).formatToParts(s).find(d=>d.type.toLowerCase()==="timezonename");return c?c.value:null}function Bd(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function k3(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Wn(`Invalid unit value ${t}`);return e}function Td(t,e){const n={};for(const i in t)if(Ia(t,i)){const s=t[i];if(s==null)continue;n[e(i)]=k3(s)}return n}function Bl(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Xt(n,2)}:${Xt(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Xt(n,2)}${Xt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vd(t){return qS(t,["hour","minute","second","millisecond"])}const KS=["January","February","March","April","May","June","July","August","September","October","November","December"],C3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ZS=["J","F","M","A","M","J","J","A","S","O","N","D"];function x3(t){switch(t){case"narrow":return[...ZS];case"short":return[...C3];case"long":return[...KS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const S3=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],M3=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],XS=["M","T","W","T","F","S","S"];function O3(t){switch(t){case"narrow":return[...XS];case"short":return[...M3];case"long":return[...S3];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const D3=["AM","PM"],JS=["Before Christ","Anno Domini"],QS=["BC","AD"],eM=["B","A"];function E3(t){switch(t){case"narrow":return[...eM];case"short":return[...QS];case"long":return[...JS];default:return null}}function tM(t){return D3[t.hour<12?0:1]}function nM(t,e){return O3(e)[t.weekday-1]}function iM(t,e){return x3(e)[t.month-1]}function sM(t,e){return E3(e)[t.year<0?0:1]}function rM(t,e,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&r){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const o=Object.is(e,-0)||e<0,c=Math.abs(e),d=c===1,h=s[t],f=i?d?h[1]:h[2]||h[1]:d?s[t][0]:t;return o?`${c} ${f} ago`:`in ${c} ${f}`}function B3(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const aM={D:wd,DD:I2,DDD:A2,DDDD:$2,t:N2,tt:z2,ttt:P2,tttt:L2,T:F2,TT:R2,TTT:H2,TTTT:W2,f:Y2,ff:U2,fff:G2,ffff:Z2,F:j2,FF:q2,FFF:K2,FFFF:X2};class wn{static create(e,n={}){return new wn(e,n)}static parseFormat(e){let n=null,i="",s=!1;const r=[];for(let o=0;o<e.length;o++){const c=e.charAt(o);c==="'"?(i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&r.push({literal:s||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(e){return aM[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Xt(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(y,b)=>this.loc.extract(e,y,b),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",c=()=>i?tM(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),d=(y,b)=>i?iM(e,y):r(b?{month:y}:{month:y,day:"numeric"},"month"),h=(y,b)=>i?nM(e,y):r(b?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),f=y=>{const b=wn.macroTokenToFormatOpts(y);return b?this.formatWithSystemDefault(e,b):y},m=y=>i?sM(e,y):r({era:y},"era"),g=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return s?r({day:"numeric"},"day"):this.num(e.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(e.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(e.year);case"yy":return s?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(y)}};return B3(wn.parseFormat(n),g)}formatDurationFromString(e,n){const i=d=>{switch(d[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=d=>h=>{const f=i(h);return f?this.num(d.get(f),h.length):h},r=wn.parseFormat(n),o=r.reduce((d,{literal:h,val:f})=>h?d:d.concat(f),[]),c=e.shiftTo(...o.map(i).filter(d=>d));return B3(r,s(c))}}const T3=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $a(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function Na(...t){return e=>t.reduce(([n,i,s],r)=>{const[o,c,d]=r(e,s);return[{...n,...o},c||i,d]},[{},null,1]).slice(0,2)}function za(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const s=n.exec(t);if(s)return i(s)}return[null,null]}function V3(...t){return(e,n)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=er(e[n+s]);return[i,null,n+s]}}const I3=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,oM=`(?:${I3.source}?(?:\\[(${T3.source})\\])?)?`,Th=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,A3=RegExp(`${Th.source}${oM}`),Vh=RegExp(`(?:T${A3.source})?`),lM=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,cM=/(\d{4})-?W(\d\d)(?:-?(\d))?/,dM=/(\d{4})-?(\d{3})/,uM=V3("weekYear","weekNumber","weekDay"),hM=V3("year","ordinal"),fM=/(\d{4})-(\d\d)-(\d\d)/,$3=RegExp(`${Th.source} ?(?:${I3.source}|(${T3.source}))?`),pM=RegExp(`(?: ${$3.source})?`);function Pa(t,e,n){const i=t[e];return Te(i)?n:er(i)}function mM(t,e){return[{year:Pa(t,e),month:Pa(t,e+1,1),day:Pa(t,e+2,1)},null,e+3]}function La(t,e){return[{hours:Pa(t,e,0),minutes:Pa(t,e+1,0),seconds:Pa(t,e+2,0),milliseconds:Dh(t[e+3])},null,e+4]}function Tl(t,e){const n=!t[e]&&!t[e+1],i=Bd(t[e+1],t[e+2]),s=n?null:En.instance(i);return[{},s,e+3]}function Vl(t,e){const n=t[e]?bs.create(t[e]):null;return[{},n,e+1]}const gM=RegExp(`^T?${Th.source}$`),_M=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function yM(t){const[e,n,i,s,r,o,c,d,h]=t,f=e[0]==="-",m=d&&d[0]==="-",g=(y,b=!1)=>y!==void 0&&(b||y&&f)?-y:y;return[{years:g(Fr(n)),months:g(Fr(i)),weeks:g(Fr(s)),days:g(Fr(r)),hours:g(Fr(o)),minutes:g(Fr(c)),seconds:g(Fr(d),d==="-0"),milliseconds:g(Dh(h),m)}]}const vM={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ih(t,e,n,i,s,r,o){const c={year:e.length===2?Bh(er(e)):er(e),month:C3.indexOf(n)+1,day:er(i),hour:er(s),minute:er(r)};return o&&(c.second=er(o)),t&&(c.weekday=t.length>3?S3.indexOf(t)+1:M3.indexOf(t)+1),c}const bM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function wM(t){const[,e,n,i,s,r,o,c,d,h,f,m]=t,g=Ih(e,s,i,n,r,o,c);let y;return d?y=vM[d]:h?y=0:y=Bd(f,m),[g,new En(y)]}function kM(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const CM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,xM=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,SM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function N3(t){const[,e,n,i,s,r,o,c]=t;return[Ih(e,s,i,n,r,o,c),En.utcInstance]}function MM(t){const[,e,n,i,s,r,o,c]=t;return[Ih(e,c,n,i,s,r,o),En.utcInstance]}const OM=$a(lM,Vh),DM=$a(cM,Vh),EM=$a(dM,Vh),BM=$a(A3),z3=Na(mM,La,Tl,Vl),TM=Na(uM,La,Tl,Vl),VM=Na(hM,La,Tl,Vl),IM=Na(La,Tl,Vl);function AM(t){return za(t,[OM,z3],[DM,TM],[EM,VM],[BM,IM])}function $M(t){return za(kM(t),[bM,wM])}function NM(t){return za(t,[CM,N3],[xM,N3],[SM,MM])}function zM(t){return za(t,[_M,yM])}const PM=Na(La);function LM(t){return za(t,[gM,PM])}const FM=$a(fM,pM),RM=$a($3),HM=Na(La,Tl,Vl);function WM(t){return za(t,[FM,z3],[RM,HM])}const P3="Invalid Duration",L3={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},YM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...L3},_i=146097/400,Fa=146097/4800,jM={years:{quarters:4,months:12,weeks:_i/7,days:_i,hours:_i*24,minutes:_i*24*60,seconds:_i*24*60*60,milliseconds:_i*24*60*60*1e3},quarters:{months:3,weeks:_i/28,days:_i/4,hours:_i*24/4,minutes:_i*24*60/4,seconds:_i*24*60*60/4,milliseconds:_i*24*60*60*1e3/4},months:{weeks:Fa/7,days:Fa,hours:Fa*24,minutes:Fa*24*60,seconds:Fa*24*60*60,milliseconds:Fa*24*60*60*1e3},...L3},Rr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],UM=Rr.slice(0).reverse();function tr(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Qe(i)}function F3(t,e){let n=e.milliseconds??0;for(const i of UM.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function R3(t,e){const n=F3(t,e)<0?-1:1;Rr.reduceRight((i,s)=>{if(Te(e[s]))return i;if(i){const r=e[i]*n,o=t[s][i],c=Math.floor(r/o);e[s]+=c*n,e[i]-=c*o*n}return s},null),Rr.reduce((i,s)=>{if(Te(e[s]))return i;if(i){const r=e[i]%1;e[i]-=r,e[s]+=r*t[i][s]}return s},null)}function qM(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Qe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?jM:YM;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||yt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Qe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Wn(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Qe({values:Td(e,Qe.normalizeUnit),loc:yt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Lr(e))return Qe.fromMillis(e);if(Qe.isDuration(e))return e;if(typeof e=="object")return Qe.fromObject(e);throw new Wn(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=zM(e);return i?Qe.fromObject(i,n):Qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=LM(e);return i?Qe.fromObject(i,n):Qe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the Duration is invalid");const i=e instanceof Ni?e:new Ni(e,n);if(qt.throwOnInvalid)throw new bS(i);return new Qe({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new V2(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?wn.create(this.loc,i).formatDurationFromString(this,e):P3}toHuman(e={}){if(!this.isValid)return P3;const n=Rr.map(i=>{const s=this.values[i];return Te(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Eh(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ue.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?F3(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e),i={};for(const s of Rr)(Ia(n.values,s)||Ia(this.values,s))&&(i[s]=n.get(s)+this.get(s));return tr(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=k3(e(this.values[i],i));return tr(this,{values:n},!0)}get(e){return this[Qe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Td(e,Qe.normalizeUnit)};return tr(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:i};return tr(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return R3(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=qM(this.normalize().shiftToAll().toObject());return tr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Qe.normalizeUnit(o));const n={},i={},s=this.toObject();let r;for(const o of Rr)if(e.indexOf(o)>=0){r=o;let c=0;for(const h in i)c+=this.matrix[h][o]*i[h],i[h]=0;Lr(s[o])&&(c+=s[o]);const d=Math.trunc(c);n[o]=d,i[o]=(c*1e3-d*1e3)/1e3}else Lr(s[o])&&(i[o]=s[o]);for(const o in i)i[o]!==0&&(n[r]+=o===r?i[o]:i[o]/this.matrix[r][o]);return R3(this.matrix,n),tr(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return tr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of Rr)if(!n(this.values[i],e.values[i]))return!1;return!0}}const Ra="Invalid Interval";function GM(t,e){return!t||!t.isValid?Lt.invalid("missing or invalid start"):!e||!e.isValid?Lt.invalid("missing or invalid end"):e<t?Lt.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Lt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the Interval is invalid");const i=e instanceof Ni?e:new Ni(e,n);if(qt.throwOnInvalid)throw new vS(i);return new Lt({invalid:i})}static fromDateTimes(e,n){const i=Al(e),s=Al(n),r=GM(i,s);return r??new Lt({start:i,end:s})}static after(e,n){const i=Qe.fromDurationLike(n),s=Al(e);return Lt.fromDateTimes(s,s.plus(i))}static before(e,n){const i=Qe.fromDurationLike(n),s=Al(e);return Lt.fromDateTimes(s.minus(i),s)}static fromISO(e,n){const[i,s]=(e||"").split("/",2);if(i&&s){let r,o;try{r=ue.fromISO(i,n),o=r.isValid}catch{o=!1}let c,d;try{c=ue.fromISO(s,n),d=c.isValid}catch{d=!1}if(o&&d)return Lt.fromDateTimes(r,c);if(o){const h=Qe.fromISO(s,n);if(h.isValid)return Lt.after(r,h)}else if(d){const h=Qe.fromISO(i,n);if(h.isValid)return Lt.before(c,h)}}return Lt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(i,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Lt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Al).filter(o=>this.contains(o)).sort((o,c)=>o.toMillis()-c.toMillis()),i=[];let{s}=this,r=0;for(;s<this.e;){const o=n[r]||this.e,c=+o>+this.e?this.e:o;i.push(Lt.fromDateTimes(s,c)),s=c,r+=1}return i}splitBy(e){const n=Qe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,r;const o=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(d=>d*s));r=+c>+this.e?this.e:c,o.push(Lt.fromDateTimes(i,r)),i=r,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:Lt.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Lt.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((s,r)=>s.s-r.s).reduce(([s,r],o)=>r?r.overlaps(o)||r.abutsStart(o)?[s,r.union(o)]:[s.concat([r]),o]:[s,o],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const s=[],r=e.map(d=>[{time:d.s,type:"s"},{time:d.e,type:"e"}]),o=Array.prototype.concat(...r),c=o.sort((d,h)=>d.time-h.time);for(const d of c)i+=d.type==="s"?1:-1,i===1?n=d.time:(n&&+n!=+d.time&&s.push(Lt.fromDateTimes(n,d.time)),n=null);return Lt.merge(s)}difference(...e){return Lt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ra}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=wd,n={}){return this.isValid?wn.create(this.s.loc.clone(n),e).formatInterval(this):Ra}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ra}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ra}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ra}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Ra}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Qe.invalid(this.invalidReason)}mapEndpoints(e){return Lt.fromDateTimes(e(this.s),e(this.e))}}class Id{static hasDST(e=qt.defaultZone){const n=ue.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return bs.isValidZone(e)}static normalizeZone(e){return Qs(e,qt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||yt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||yt.create(n,i,r)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||yt.create(n,i,r)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||yt.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||yt.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return yt.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return yt.create(n,null,"gregory").eras(e)}static features(){return{relative:_3(),localeWeek:y3()}}}function H3(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Qe.fromMillis(i).as("days"))}function KM(t,e,n){const i=[["years",(d,h)=>h.year-d.year],["quarters",(d,h)=>h.quarter-d.quarter+(h.year-d.year)*4],["months",(d,h)=>h.month-d.month+(h.year-d.year)*12],["weeks",(d,h)=>{const f=H3(d,h);return(f-f%7)/7}],["days",H3]],s={},r=t;let o,c;for(const[d,h]of i)n.indexOf(d)>=0&&(o=d,s[d]=h(t,e),c=r.plus(s),c>e?(s[d]--,t=r.plus(s),t>e&&(c=t,s[d]--,t=r.plus(s))):t=c);return[t,s,c,o]}function ZM(t,e,n,i){let[s,r,o,c]=KM(t,e,n);const d=e-s,h=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);h.length===0&&(o<e&&(o=s.plus({[c]:1})),o!==s&&(r[c]=(r[c]||0)+d/(o-s)));const f=Qe.fromObject(r,i);return h.length>0?Qe.fromMillis(d,i).shiftTo(...h).plus(f):f}const Ah={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},W3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},XM=Ah.hanidec.replace(/[\[|\]]/g,"").split("");function JM(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(t[n].search(Ah.hanidec)!==-1)e+=XM.indexOf(t[n]);else for(const s in W3){const[r,o]=W3[s];i>=r&&i<=o&&(e+=i-r)}}return parseInt(e,10)}else return e}function zi({numberingSystem:t},e=""){return new RegExp(`${Ah[t||"latn"]}${e}`)}const QM="missing Intl.DateTimeFormat.formatToParts support";function it(t,e=n=>n){return{regex:t,deser:([n])=>e(JM(n))}}const Y3=`[ ${String.fromCharCode(160)}]`,j3=new RegExp(Y3,"g");function eO(t){return t.replace(/\./g,"\\.?").replace(j3,Y3)}function U3(t){return t.replace(/\./g,"").replace(j3," ").toLowerCase()}function Pi(t,e){return t===null?null:{regex:RegExp(t.map(eO).join("|")),deser:([n])=>t.findIndex(i=>U3(n)===U3(i))+e}}function q3(t,e){return{regex:t,deser:([,n,i])=>Bd(n,i),groups:e}}function Ad(t){return{regex:t,deser:([e])=>e}}function tO(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nO(t,e){const n=zi(e),i=zi(e,"{2}"),s=zi(e,"{3}"),r=zi(e,"{4}"),o=zi(e,"{6}"),c=zi(e,"{1,2}"),d=zi(e,"{1,3}"),h=zi(e,"{1,6}"),f=zi(e,"{1,9}"),m=zi(e,"{2,4}"),g=zi(e,"{4,6}"),y=C=>({regex:RegExp(tO(C.val)),deser:([S])=>S,literal:!0}),k=(C=>{if(t.literal)return y(C);switch(C.val){case"G":return Pi(e.eras("short"),0);case"GG":return Pi(e.eras("long"),0);case"y":return it(h);case"yy":return it(m,Bh);case"yyyy":return it(r);case"yyyyy":return it(g);case"yyyyyy":return it(o);case"M":return it(c);case"MM":return it(i);case"MMM":return Pi(e.months("short",!0),1);case"MMMM":return Pi(e.months("long",!0),1);case"L":return it(c);case"LL":return it(i);case"LLL":return Pi(e.months("short",!1),1);case"LLLL":return Pi(e.months("long",!1),1);case"d":return it(c);case"dd":return it(i);case"o":return it(d);case"ooo":return it(s);case"HH":return it(i);case"H":return it(c);case"hh":return it(i);case"h":return it(c);case"mm":return it(i);case"m":return it(c);case"q":return it(c);case"qq":return it(i);case"s":return it(c);case"ss":return it(i);case"S":return it(d);case"SSS":return it(s);case"u":return Ad(f);case"uu":return Ad(c);case"uuu":return it(n);case"a":return Pi(e.meridiems(),0);case"kkkk":return it(r);case"kk":return it(m,Bh);case"W":return it(c);case"WW":return it(i);case"E":case"c":return it(n);case"EEE":return Pi(e.weekdays("short",!1),1);case"EEEE":return Pi(e.weekdays("long",!1),1);case"ccc":return Pi(e.weekdays("short",!0),1);case"cccc":return Pi(e.weekdays("long",!0),1);case"Z":case"ZZ":return q3(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return q3(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Ad(/[a-z_+-/]{1,256}?/i);case" ":return Ad(/[^\S\n\r]/);default:return y(C)}})(t)||{invalidReason:QM};return k.token=t,k}const iO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function sO(t,e,n){const{type:i,value:s}=t;if(i==="literal"){const d=/^\s+$/.test(s);return{literal:!d,val:d?" ":s}}const r=e[i];let o=i;i==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let c=iO[o];if(typeof c=="object"&&(c=c[r]),c)return{literal:!1,val:c}}function rO(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function aO(t,e,n){const i=t.match(e);if(i){const s={};let r=1;for(const o in n)if(Ia(n,o)){const c=n[o],d=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(r,r+d))),r+=d}return[i,s]}else return[i,{}]}function oO(t){const e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Te(t.z)||(n=bs.create(t.z)),Te(t.Z)||(n||(n=new En(t.Z)),i=t.Z),Te(t.q)||(t.M=(t.q-1)*3+1),Te(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Te(t.u)||(t.S=Dh(t.u)),[Object.keys(t).reduce((r,o)=>{const c=e(o);return c&&(r[c]=t[o]),r},{}),n,i]}let $h=null;function lO(){return $h||($h=ue.fromMillis(1555555555555)),$h}function cO(t,e){if(t.literal)return t;const n=wn.macroTokenToFormatOpts(t.val),i=Z3(n,e);return i==null||i.includes(void 0)?t:i}function G3(t,e){return Array.prototype.concat(...t.map(n=>cO(n,e)))}function K3(t,e,n){const i=G3(wn.parseFormat(n),t),s=i.map(o=>nO(o,t)),r=s.find(o=>o.invalidReason);if(r)return{input:e,tokens:i,invalidReason:r.invalidReason};{const[o,c]=rO(s),d=RegExp(o,"i"),[h,f]=aO(e,d,c),[m,g,y]=f?oO(f):[null,null,void 0];if(Ia(f,"a")&&Ia(f,"H"))throw new Va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:d,rawMatches:h,matches:f,result:m,zone:g,specificOffset:y}}}function dO(t,e,n){const{result:i,zone:s,specificOffset:r,invalidReason:o}=K3(t,e,n);return[i,s,r,o]}function Z3(t,e){if(!t)return null;const i=wn.create(e,t).dtFormatter(lO()),s=i.formatToParts(),r=i.resolvedOptions();return s.map(o=>sO(o,t,r))}const Nh="Invalid DateTime",X3=864e13;function $d(t){return new Ni("unsupported zone",`the zone "${t.name}" is not supported`)}function zh(t){return t.weekData===null&&(t.weekData=Md(t.c)),t.weekData}function Ph(t){return t.localWeekData===null&&(t.localWeekData=Md(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Hr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ue({...n,...e,old:n})}function J3(t,e,n){let i=t-e*60*1e3;const s=n.offset(i);if(e===s)return[i,e];i-=(s-e)*60*1e3;const r=n.offset(i);return s===r?[i,s]:[t-Math.min(s,r)*60*1e3,Math.max(s,r)]}function Nd(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function zd(t,e,n){return J3(Ed(t),e,n)}function Q3(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,r={...t.c,year:i,month:s,day:Math.min(t.c.day,Dd(i,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Qe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=Ed(r);let[d,h]=J3(c,n,t.zone);return o!==0&&(d+=o,h=t.zone.offset(d)),{ts:d,o:h}}function Il(t,e,n,i,s,r){const{setZone:o,zone:c}=n;if(t&&Object.keys(t).length!==0||e){const d=e||c,h=ue.fromObject(t,{...n,zone:d,specificOffset:r});return o?h:h.setZone(c)}else return ue.invalid(new Ni("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Pd(t,e,n=!0){return t.isValid?wn.create(yt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Lh(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=Xt(t.c.year,n?6:4),e?(i+="-",i+=Xt(t.c.month),i+="-",i+=Xt(t.c.day)):(i+=Xt(t.c.month),i+=Xt(t.c.day)),i}function e4(t,e,n,i,s,r){let o=Xt(t.c.hour);return e?(o+=":",o+=Xt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=Xt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=Xt(t.c.second),(t.c.millisecond!==0||!i)&&(o+=".",o+=Xt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!r?o+="Z":t.o<0?(o+="-",o+=Xt(Math.trunc(-t.o/60)),o+=":",o+=Xt(Math.trunc(-t.o%60))):(o+="+",o+=Xt(Math.trunc(t.o/60)),o+=":",o+=Xt(Math.trunc(t.o%60)))),r&&(o+="["+t.zone.ianaName+"]"),o}const t4={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},n4=["year","month","day","hour","minute","second","millisecond"],fO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pO=["year","ordinal","hour","minute","second","millisecond"];function mO(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new V2(t);return e}function i4(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return mO(t)}}function s4(t,e){const n=Qs(e.zone,qt.defaultZone),i=yt.fromObject(e),s=qt.now();let r,o;if(Te(t.year))r=s;else{for(const h of n4)Te(t[h])&&(t[h]=t4[h]);const c=m3(t)||g3(t);if(c)return ue.invalid(c);const d=n.offset(s);[r,o]=zd(t,d,n)}return new ue({ts:r,zone:n,loc:i,o})}function r4(t,e,n){const i=Te(n.round)?!0:n.round,s=(o,c)=>(o=Eh(o,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,c)),r=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return s(r(n.unit),n.unit);for(const o of n.units){const c=r(o);if(Math.abs(c)>=1)return s(c,o)}return s(t>e?-0:0,n.units[n.units.length-1])}function a4(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class ue{constructor(e){const n=e.zone||qt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Ni("invalid input"):null)||(n.isValid?null:$d(n));this.ts=Te(e.ts)?qt.now():e.ts;let s=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,r]=[e.old.c,e.old.o];else{const c=n.offset(this.ts);s=Nd(this.ts,c),i=Number.isNaN(s.year)?new Ni("invalid input"):null,s=i?null:s,r=i?null:c}this._zone=n,this.loc=e.loc||yt.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new ue({})}static local(){const[e,n]=a4(arguments),[i,s,r,o,c,d,h]=n;return s4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static utc(){const[e,n]=a4(arguments),[i,s,r,o,c,d,h]=n;return e.zone=En.utcInstance,s4({year:i,month:s,day:r,hour:o,minute:c,second:d,millisecond:h},e)}static fromJSDate(e,n={}){const i=jS(e)?e.valueOf():NaN;if(Number.isNaN(i))return ue.invalid("invalid input");const s=Qs(n.zone,qt.defaultZone);return s.isValid?new ue({ts:i,zone:s,loc:yt.fromObject(n)}):ue.invalid($d(s))}static fromMillis(e,n={}){if(Lr(e))return e<-X3||e>X3?ue.invalid("Timestamp out of range"):new ue({ts:e,zone:Qs(n.zone,qt.defaultZone),loc:yt.fromObject(n)});throw new Wn(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Lr(e))return new ue({ts:e*1e3,zone:Qs(n.zone,qt.defaultZone),loc:yt.fromObject(n)});throw new Wn("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=Qs(n.zone,qt.defaultZone);if(!i.isValid)return ue.invalid($d(i));const s=yt.fromObject(n),r=Td(e,i4),{minDaysInFirstWeek:o,startOfWeek:c}=p3(r,s),d=qt.now(),h=Te(n.specificOffset)?i.offset(d):n.specificOffset,f=!Te(r.ordinal),m=!Te(r.year),g=!Te(r.month)||!Te(r.day),y=m||g,b=r.weekYear||r.weekNumber;if((y||f)&&b)throw new Va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&f)throw new Va("Can't mix ordinal dates with month/day");const k=b||r.weekday&&!y;let C,S,E=Nd(d,h);k?(C=fO,S=uO,E=Md(E,o,c)):f?(C=pO,S=hO,E=Mh(E)):(C=n4,S=t4);let A=!1;for(const ee of C){const ne=r[ee];Te(ne)?A?r[ee]=S[ee]:r[ee]=E[ee]:A=!0}const x=k?HS(r,o,c):f?WS(r):m3(r),V=x||g3(r);if(V)return ue.invalid(V);const N=k?h3(r,o,c):f?f3(r):r,[L,F]=zd(N,h,i),q=new ue({ts:L,zone:i,o:F,loc:s});return r.weekday&&y&&e.weekday!==q.weekday?ue.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[i,s]=AM(e);return Il(i,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,s]=$M(e);return Il(i,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,s]=NM(e);return Il(i,s,n,"HTTP",n)}static fromFormat(e,n,i={}){if(Te(e)||Te(n))throw new Wn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=i,o=yt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[c,d,h,f]=dO(o,e,n);return f?ue.invalid(f):Il(c,d,i,`format ${n}`,e,h)}static fromString(e,n,i={}){return ue.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,s]=WM(e);return Il(i,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Wn("need to specify a reason the DateTime is invalid");const i=e instanceof Ni?e:new Ni(e,n);if(qt.throwOnInvalid)throw new yS(i);return new ue({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=Z3(e,yt.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return G3(wn.parseFormat(e),yt.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?zh(this).weekYear:NaN}get weekNumber(){return this.isValid?zh(this).weekNumber:NaN}get weekday(){return this.isValid?zh(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ph(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ph(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ph(this).weekYear:NaN}get ordinal(){return this.isValid?Mh(this.c).ordinal:NaN}get monthShort(){return this.isValid?Id.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Id.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Id.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Id.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=Ed(this.c),s=this.zone.offset(i-e),r=this.zone.offset(i+e),o=this.zone.offset(i-s*n),c=this.zone.offset(i-r*n);if(o===c)return[this];const d=i-o*n,h=i-c*n,f=Nd(d,o),m=Nd(h,c);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[Hr(this,{ts:d}),Hr(this,{ts:h})]:[this]}get isInLeapYear(){return Dl(this.year)}get daysInMonth(){return Dd(this.year,this.month)}get daysInYear(){return this.isValid?Aa(this.year):NaN}get weeksInWeekYear(){return this.isValid?El(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?El(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:s}=wn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(En.instance(e),n)}toLocal(){return this.setZone(qt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=Qs(e,qt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||i){const r=e.offset(this.ts),o=this.toObject();[s]=zd(o,r,e)}return Hr(this,{ts:s,zone:e})}else return ue.invalid($d(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Hr(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Td(e,i4),{minDaysInFirstWeek:i,startOfWeek:s}=p3(n,this.loc),r=!Te(n.weekYear)||!Te(n.weekNumber)||!Te(n.weekday),o=!Te(n.ordinal),c=!Te(n.year),d=!Te(n.month)||!Te(n.day),h=c||d,f=n.weekYear||n.weekNumber;if((h||o)&&f)throw new Va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new Va("Can't mix ordinal dates with month/day");let m;r?m=h3({...Md(this.c,i,s),...n},i,s):Te(n.ordinal)?(m={...this.toObject(),...n},Te(n.day)&&(m.day=Math.min(Dd(m.year,m.month),m.day))):m=f3({...Mh(this.c),...n});const[g,y]=zd(m,this.o,this.zone);return Hr(this,{ts:g,o:y})}plus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e);return Hr(this,Q3(this,n))}minus(e){if(!this.isValid)return this;const n=Qe.fromDurationLike(e).negate();return Hr(this,Q3(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Qe.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const r=this.loc.getStartOfWeek(),{weekday:o}=this;o<r&&(i.weekNumber=this.weekNumber-1),i.weekday=r}else i.weekday=1;if(s==="quarters"){const r=Math.ceil(this.month/3);i.month=(r-1)*3+1}return this.set(i)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?wn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Nh}toLocaleString(e=wd,n={}){return this.isValid?wn.create(this.loc.clone(n),e).formatDateTime(this):Nh}toLocaleParts(e={}){return this.isValid?wn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o=e==="extended";let c=Lh(this,o);return c+="T",c+=e4(this,o,n,i,s,r),c}toISODate({format:e="extended"}={}){return this.isValid?Lh(this,e==="extended"):null}toISOWeekDate(){return Pd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:r=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+e4(this,o==="extended",n,e,i,r):null}toRFC2822(){return Pd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Lh(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(i&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Pd(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Nh}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",i={}){if(!this.isValid||!e.isValid)return Qe.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=US(n).map(Qe.normalizeUnit),o=e.valueOf()>this.valueOf(),c=o?this:e,d=o?e:this,h=ZM(c,d,r,s);return o?h.negate():h}diffNow(e="milliseconds",n={}){return this.diff(ue.now(),e,n)}until(e){return this.isValid?Lt.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(n,i)<=s&&s<=r.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||ue.fromObject({},{zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(s=e.unit,r=void 0),r4(n,this.plus(i),{...e,numeric:"always",units:s,unit:r})}toRelativeCalendar(e={}){return this.isValid?r4(e.base||ue.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ue.isDateTime))throw new Wn("min requires all arguments be DateTimes");return v3(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(ue.isDateTime))throw new Wn("max requires all arguments be DateTimes");return v3(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:s=null,numberingSystem:r=null}=i,o=yt.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return K3(o,e,n)}static fromStringExplain(e,n,i={}){return ue.fromFormatExplain(e,n,i)}static get DATE_SHORT(){return wd}static get DATE_MED(){return I2}static get DATE_MED_WITH_WEEKDAY(){return wS}static get DATE_FULL(){return A2}static get DATE_HUGE(){return $2}static get TIME_SIMPLE(){return N2}static get TIME_WITH_SECONDS(){return z2}static get TIME_WITH_SHORT_OFFSET(){return P2}static get TIME_WITH_LONG_OFFSET(){return L2}static get TIME_24_SIMPLE(){return F2}static get TIME_24_WITH_SECONDS(){return R2}static get TIME_24_WITH_SHORT_OFFSET(){return H2}static get TIME_24_WITH_LONG_OFFSET(){return W2}static get DATETIME_SHORT(){return Y2}static get DATETIME_SHORT_WITH_SECONDS(){return j2}static get DATETIME_MED(){return U2}static get DATETIME_MED_WITH_SECONDS(){return q2}static get DATETIME_MED_WITH_WEEKDAY(){return kS}static get DATETIME_FULL(){return G2}static get DATETIME_FULL_WITH_SECONDS(){return K2}static get DATETIME_HUGE(){return Z2}static get DATETIME_HUGE_WITH_SECONDS(){return X2}}function Al(t){if(ue.isDateTime(t))return t;if(t&&t.valueOf&&Lr(t.valueOf()))return ue.fromJSDate(t);if(t&&typeof t=="object")return ue.fromObject(t);throw new Wn(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/*!
39
39
  * chartjs-adapter-luxon v1.3.1
40
40
  * https://www.chartjs.org
41
41
  * (c) 2023 chartjs-adapter-luxon Contributors
42
42
  * Released under the MIT license
43
- */const gO={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"}};mg._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 gO},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 Vde="";pi.register(..._h);const _O={components:{Line:uS},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:Hn,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 r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){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 r=i.name;n[r]||(n[r]=e.slice()),i.data.length>0&&(i.backgroundColor=n[r][s%n[r].length],i.borderColor=n[r][s%n[r].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},yO={class:"responsive-container"};function vO(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",yO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const bO=re(_O,[["render",vO],["__scopeId","data-v-88deb5d1"]]),Ide="",wO={components:{Pie:hS},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:Hn,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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},kO={class:"responsive-container"};function CO(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",kO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const xO=re(wO,[["render",CO],["__scopeId","data-v-df415374"]]),Ade="",SO={components:{PolarArea:fS},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:Hn,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 r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},MO={class:"responsive-container"};function OO(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",MO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const DO=re(SO,[["render",OO],["__scopeId","data-v-386a0dc0"]]),$de="";pi.register(..._h);const EO={components:{Bar:B2},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:Hn,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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},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 r=i.name;let o=1;s%5===0&&(n=0),o+=n,n++,e[r]=this.getPalete(i.variant)[o],i.backgroundColor=e[r],i.borderRadius=6})},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},BO={class:"responsive-container"};function TO(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",BO,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions,plugins:s.plugins},null,8,["data","options","plugins"])])])}const VO=re(EO,[["render",TO],["__scopeId","data-v-a0e865bb"]]),Nde="",Fh={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}}},o4=()=>{a.useCssVars(t=>({"6d4c0f4d":t.marginBottomResolver,d6616fae:t.marginLeftResolver,"0baf3274":t.marginRightResolver,"7c666dff":t.marginTopResolver,"561264d4":t.paddingBottomResolver,17295920:t.paddingLeftResolver,e3e47742:t.paddingRightResolver,"9def4450":t.paddingTopResolver}))},l4=Fh.setup;Fh.setup=l4?(t,e)=>(o4(),l4(t,e)):o4;const IO=Fh,AO={class:"spacer"};function $O(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",AO,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ld=re(IO,[["render",$O],["__scopeId","data-v-5aebf225"]]);function Rh(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const zde="",Hh={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:Rh,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},c4=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},d4=Hh.setup;Hh.setup=d4?(t,e)=>(c4(),d4(t,e)):c4;const NO=Hh;function zO(t,e,n,i,s,r){const o=a.resolveComponent("cds-spacer"),c=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{ref:"cds-box",class:a.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[a.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:r.handleClick},{default:a.withCtx(()=>[a.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const $l=re(NO,[["render",zO],["__scopeId","data-v-34f9c778"]]),Pde="",PO={directives:{"on-click-outside":Mr.directive},components:{"cds-icon":Ze},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Onde encontrar o meu CNS"}},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"}}},LO=t=>(a.pushScopeId("data-v-2058822e"),t=t(),a.popScopeId(),t),FO={key:0},RO=LO(()=>a.createElementVNode("div",{class:"bottom-sheet__header-border"},[a.createElementVNode("div",{class:"bottom-sheet__header-border-line"})],-1)),HO={class:"bottom-sheet__header"},WO={class:"bottom-sheet__title"},YO={class:"bottom-sheet__content"};function jO(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("on-click-outside");return s.internalModelValue?(a.openBlock(),a.createElementBlock("div",FO,[a.createElementVNode("div",{class:a.normalizeClass(s.toggleAnimationClass?"backdrop__show":"backdrop__hide")},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(s.toggleAnimationClass?"bottom-sheet__show":"bottom-sheet__hide")},[RO,a.createElementVNode("div",HO,[a.createElementVNode("div",WO,a.toDisplayString(n.title),1),a.createElementVNode("div",{class:"bottom-sheet__close-icon",onClick:e[0]||(e[0]=(...d)=>r.closeHandle&&r.closeHandle(...d))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})])]),a.createElementVNode("div",YO,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],2)),[[c,r.closeHandle]])],2)])):a.createCommentVNode("",!0)}const UO=re(PO,[["render",jO],["__scopeId","data-v-2058822e"]]);var Wh={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,y=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,k=typeof self=="object"&&self&&self.Object===Object&&self,C=b||k||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 V(te){var Ie=!1;if(te!=null&&typeof te.toString!="function")try{Ie=!!(te+"")}catch{}return Ie}function N(te,Ie){return function(We){return te(Ie(We))}}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:""}(),ne=L.toString,K=F.hasOwnProperty,ie=F.toString,me=RegExp("^"+ne.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 ie.call(te)}function kt(te){if(!Dt(te)||rt(te))return!1;var Ie=Ot(te)||V(te)?me:y;return Ie.test(ft(te))}function tt(te,Ie){var We=x(te,Ie);return kt(We)?We: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=ie.call(te),We=Ie==c?te.constructor:void 0,pn=We?ft(We):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,We=typeof Ie=="function"&&Ie.prototype||F;return te===We}function ft(te){if(te!=null){try{return ne.call(te)}catch{}try{return te+""}catch{}}return""}function Ct(te){return bt(te)&&K.call(te,"callee")&&(!he.call(te,"callee")||ie.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 We in te)if(K.call(te,We))return!1;return!0}function Ot(te){var Ie=Dt(te)?ie.call(te):"";return Ie==s||Ie==r}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})(Wh,Wh.exports);const Jt=Wh.exports,Lde="",qO={components:{CdsIcon:Ze,CdsSpacer:Ld,CdsClickable:hs},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},GO={class:"breadcrumb"};function KO(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("router-link"),h=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("nav",null,[a.createElementVNode("ul",GO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(f,m)=>(a.openBlock(),a.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(a.openBlock(),a.createBlock(h,{key:0,clickable:""},{default:a.withCtx(()=>[a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[n.items.length<=2?(a.openBlock(),a.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(a.openBlock(),a.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:a.withCtx(()=>[a.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[a.createVNode(h,{clickable:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const ZO=re(qO,[["render",KO],["__scopeId","data-v-c2046c1c"]]),Fde="",Yh={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},alt:{type:String,default:"Imagem"},opacity:{type:[Number,String],default:1},dimmed:{type:Boolean,default:!1},blackAndWhite:{type:Boolean,default:!1},roundedCorners:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.height?`${this.height}px`:"auto"},widthResolver(){return this.width?`${this.width}px`:"auto"},opacityResolver(){return this.width?`${this.width}px`:"auto"},radiusResolver(){return this.roundedCorners?Rh(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:Rh,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},u4=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},h4=Yh.setup;Yh.setup=h4?(t,e)=>(u4(),h4(t,e)):u4;const XO=Yh,JO=["src","alt"];function QO(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("img",a.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>r.imageSrcResolver&&r.imageSrcResolver(...o))}),null,16,JO)}const f4=re(XO,[["render",QO],["__scopeId","data-v-79754f28"]]),jh=(t,e)=>Object.keys(t).some(n=>n===e),Rde="",Uh={components:{CdsBox:$l,CdsImage:f4},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:jh,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},p4=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},m4=Uh.setup;Uh.setup=m4?(t,e)=>(p4(),m4(t,e)):p4;const eD=Uh,tD={class:"card__extra-container"},nD={class:"card__extra"},iD={key:0},sD={key:1,class:"card__image"},rD={key:2,class:"card__icon"},aD={class:"card__spacer"},oD={key:0,class:"card__header"},lD={key:1},cD={class:"card__header"},dD={key:2,class:"card__body"},uD={key:3},hD={class:"card__body"},fD={key:4,class:"card__footer"};function pD(t,e,n,i,s,r){const o=a.resolveComponent("cds-image"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:r.handleClick},{default:a.withCtx(()=>[a.createElementVNode("div",tD,[a.createElementVNode("div",nD,[a.renderSlot(t.$slots,"extra",{},void 0,!0)])]),a.createElementVNode("div",{class:a.normalizeClass({"card--horizontal":this.horizontal})},[r.hasSlot(t.$slots,"image")?(a.openBlock(),a.createElementBlock("div",iD,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",sD,[a.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):r.hasSlot(t.$slots,"icon")?(a.openBlock(),a.createElementBlock("div",rD,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",aD,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",oD,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",lD,[a.createElementVNode("p",cD,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",dD,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",uD,[a.createElementVNode("p",hD,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",fD,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const mD=re(eD,[["render",pD],["__scopeId","data-v-ef799654"]]),Hde="",gD={components:{CdsButton:Sr},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}}},_D={id:"callout-card"},yD={class:"image__container"},vD=["src","alt"],bD={class:"content__title"},wD={class:"content__text"};function kD(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",_D,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",yD,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,vD)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",bD,a.toDisplayString(n.title),1),a.createElementVNode("span",wD,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])],2),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"action",{},()=>[a.createVNode(o,{id:"content-button",variant:n.actionButtonVariant,text:n.actionButtonText,secondary:n.actionButtonSecondary,disabled:n.actionButtonDisabled,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["variant","text","secondary","disabled"])])])],2)],2)])}const CD=re(gD,[["render",kD]]),Wde="",xD={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}))}}}},SD={key:0,class:"carousel-controller__text"},MD={key:1,class:"carousel-controller__text"},OD={class:"carousel-controller__property"};function DD(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__previous-button--disabled":r.disabledBack,"carousel-controller__previous-button":!r.disabledBack}),onClick:e[0]||(e[0]=(...o)=>r.handleClickBack&&r.handleClickBack(...o))},null,2),a.createElementVNode("div",null,[n.simple?(a.openBlock(),a.createElementBlock("span",MD,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",SD,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",OD,a.toDisplayString(n.propertyName),1)]),a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__next-button--disabled":r.disabledForward,"carousel-controller__next-button":!r.disabledForward}),onClick:e[1]||(e[1]=(...o)=>r.handleClickForward&&r.handleClickForward(...o))},null,2)],2)])}const ED=re(xD,[["render",DD],["__scopeId","data-v-fcb19a0a"]]);function g4(t,e){return`${t}--${e}`}const Yde="",BD={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=g4("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))}}},TD={class:"cds-checkbox__container"},VD={class:"cds-checkbox__input"},ID=["id","value","name","disabled"],AD=["for"],$D=["for"];function ND(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",TD,[a.createElementVNode("div",VD,[a.createElementVNode("input",{id:t.$attrs.id||"cds-checkbox-option-input",value:n.modelValue,type:"checkbox",name:t.$attrs.name||"cds-checkbox-option",disabled:n.disabled},null,8,ID),a.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:a.normalizeClass(r.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>r.toggleValue&&r.toggleValue(...o))},null,10,AD)]),a.createElementVNode("label",{class:a.normalizeClass(["cds-checkbox__label",{"cds-checkbox__label--disabled":n.disabled,"cds-checkbox__label--prominent":n.prominent&&n.modelValue}]),for:t.$attrs.id||"cds-checkbox-option-input",onClick:e[1]||(e[1]=(...o)=>r.toggleValue&&r.toggleValue(...o))},a.toDisplayString(n.label),11,$D)])}const qh=re(BD,[["render",ND],["__scopeId","data-v-0758b096"]]),jde="",zD={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}}},PD={id:"collapsible-container"},LD={class:"collapsible-container__title"},FD={key:0,class:"collapsible-container__content"};function RD(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",PD,[a.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>r.triggerExpanded&&r.triggerExpanded(...o))},[a.createElementVNode("span",{class:a.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),a.renderSlot(t.$slots,"title",{},()=>[a.createElementVNode("span",LD,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",FD,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const HD=re(zD,[["render",RD]]),Gh=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},WD=.2126,YD=.7152,jD=.0722,UD=2.4,qD={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},GD=(t,e,n="GOOD")=>{let i=Gh(t),s=Gh(e);var r=_4(...i),o=_4(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=qD[n]};function _4(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,UD)));return i[0]*WD+i[1]*YD+i[2]*jD}const Ude="",Kh={components:{CdsPopover:Pc,CdsIcon:Ze},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:Hn,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:GD,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,"")]}}},y4=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},v4=Kh.setup;Kh.setup=v4?(t,e)=>(y4(),v4(t,e)):y4;const KD=Kh,ZD=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),XD={key:0},JD={class:"color-picker__label"},QD=["onClick"],eE={key:1},tE=[ZD(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],nE=["onClick"];function iE(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-popover");return n.inline?(a.openBlock(),a.createElementBlock("div",XD,[a.createElementVNode("div",JD,a.toDisplayString(n.label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"color-picker__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,QD)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",eE,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},tE),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=d=>s.showPopover=d),"right-aligned":!1,"target-id":"color-picker",height:n.popoverHeight,"fit-content-width":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"popover__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,nE)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const sE=re(KD,[["render",iE],["__scopeId","data-v-a4ff5e3b"]]),Gde="",rE={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}}},aE={class:"dashboard-card"},oE={class:"dashboard-card__header"},lE={key:0,class:"dashboard-card__title"},cE={key:1,class:"dashboard-card__title"},dE={key:0,class:"dashboard-card__description"},uE={key:1,class:"dashboard-card__description"},hE={key:0};function fE(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",aE,[a.createElementVNode("div",null,[a.createElementVNode("div",oE,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",lE,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",cE,[a.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(a.openBlock(),a.createElementBlock("p",dE,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",uE,[a.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),a.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[a.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(a.openBlock(),a.createElementBlock("div",hE,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const pE=re(rE,[["render",fE],["__scopeId","data-v-cd0db219"]]);var mE=Object.defineProperty,gE=(t,e,n)=>e in t?mE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(gE(t,typeof e!="symbol"?e+"":e,n),n),Fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _E=Object.prototype,yE=_E.hasOwnProperty;function vE(t,e){return t!=null&&yE.call(t,e)}var bE=vE,wE=Array.isArray,Pi=wE,kE=typeof Fd=="object"&&Fd&&Fd.Object===Object&&Fd,w4=kE,CE=w4,xE=typeof self=="object"&&self&&self.Object===Object&&self,SE=CE||xE||Function("return this")(),ns=SE,ME=ns,OE=ME.Symbol,Rd=OE,k4=Rd,C4=Object.prototype,DE=C4.hasOwnProperty,EE=C4.toString,Nl=k4?k4.toStringTag:void 0;function BE(t){var e=DE.call(t,Nl),n=t[Nl];try{t[Nl]=void 0;var i=!0}catch{}var s=EE.call(t);return i&&(e?t[Nl]=n:delete t[Nl]),s}var TE=BE,VE=Object.prototype,IE=VE.toString;function AE(t){return IE.call(t)}var $E=AE,x4=Rd,NE=TE,zE=$E,PE="[object Null]",LE="[object Undefined]",S4=x4?x4.toStringTag:void 0;function FE(t){return t==null?t===void 0?LE:PE:S4&&S4 in Object(t)?NE(t):zE(t)}var is=FE;function RE(t){return t!=null&&typeof t=="object"}var Li=RE,HE=is,WE=Li,YE="[object Symbol]";function jE(t){return typeof t=="symbol"||WE(t)&&HE(t)==YE}var Zh=jE,UE=Pi,qE=Zh,GE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KE=/^\w*$/;function ZE(t,e){if(UE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||qE(t)?!0:KE.test(t)||!GE.test(t)||e!=null&&t in Object(e)}var Xh=ZE;function XE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ws=XE,JE=is,QE=ws,eB="[object AsyncFunction]",tB="[object Function]",nB="[object GeneratorFunction]",iB="[object Proxy]";function sB(t){if(!QE(t))return!1;var e=JE(t);return e==tB||e==nB||e==eB||e==iB}var Wr=sB,rB=ns,aB=rB["__core-js_shared__"],oB=aB,Jh=oB,M4=function(){var t=/[^.]+$/.exec(Jh&&Jh.keys&&Jh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function lB(t){return!!M4&&M4 in t}var cB=lB,dB=Function.prototype,uB=dB.toString;function hB(t){if(t!=null){try{return uB.call(t)}catch{}try{return t+""}catch{}}return""}var O4=hB,fB=Wr,pB=cB,mB=ws,gB=O4,_B=/[\\^$.*+?()[\]{}|]/g,yB=/^\[object .+?Constructor\]$/,vB=Function.prototype,bB=Object.prototype,wB=vB.toString,kB=bB.hasOwnProperty,CB=RegExp("^"+wB.call(kB).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xB(t){if(!mB(t)||pB(t))return!1;var e=fB(t)?CB:yB;return e.test(gB(t))}var SB=xB;function MB(t,e){return t==null?void 0:t[e]}var OB=MB,DB=SB,EB=OB;function BB(t,e){var n=EB(t,e);return DB(n)?n:void 0}var Yr=BB,TB=Yr,VB=TB(Object,"create"),Hd=VB,D4=Hd;function IB(){this.__data__=D4?D4(null):{},this.size=0}var AB=IB;function $B(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var NB=$B,zB=Hd,PB="__lodash_hash_undefined__",LB=Object.prototype,FB=LB.hasOwnProperty;function RB(t){var e=this.__data__;if(zB){var n=e[t];return n===PB?void 0:n}return FB.call(e,t)?e[t]:void 0}var HB=RB,WB=Hd,YB=Object.prototype,jB=YB.hasOwnProperty;function UB(t){var e=this.__data__;return WB?e[t]!==void 0:jB.call(e,t)}var qB=UB,GB=Hd,KB="__lodash_hash_undefined__";function ZB(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=GB&&e===void 0?KB:e,this}var XB=ZB,JB=AB,QB=NB,eT=HB,tT=qB,nT=XB;function Ha(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ha.prototype.clear=JB,Ha.prototype.delete=QB,Ha.prototype.get=eT,Ha.prototype.has=tT,Ha.prototype.set=nT;var iT=Ha;function sT(){this.__data__=[],this.size=0}var rT=sT;function aT(t,e){return t===e||t!==t&&e!==e}var Wa=aT,oT=Wa;function lT(t,e){for(var n=t.length;n--;)if(oT(t[n][0],e))return n;return-1}var Wd=lT,cT=Wd,dT=Array.prototype,uT=dT.splice;function hT(t){var e=this.__data__,n=cT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():uT.call(e,n,1),--this.size,!0}var fT=hT,pT=Wd;function mT(t){var e=this.__data__,n=pT(e,t);return n<0?void 0:e[n][1]}var gT=mT,_T=Wd;function yT(t){return _T(this.__data__,t)>-1}var vT=yT,bT=Wd;function wT(t,e){var n=this.__data__,i=bT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var kT=wT,CT=rT,xT=fT,ST=gT,MT=vT,OT=kT;function Ya(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])}}Ya.prototype.clear=CT,Ya.prototype.delete=xT,Ya.prototype.get=ST,Ya.prototype.has=MT,Ya.prototype.set=OT;var Yd=Ya,DT=Yr,ET=ns,BT=DT(ET,"Map"),Qh=BT,E4=iT,TT=Yd,VT=Qh;function IT(){this.size=0,this.__data__={hash:new E4,map:new(VT||TT),string:new E4}}var AT=IT;function $T(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var NT=$T,zT=NT;function PT(t,e){var n=t.__data__;return zT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var jd=PT,LT=jd;function FT(t){var e=LT(this,t).delete(t);return this.size-=e?1:0,e}var RT=FT,HT=jd;function WT(t){return HT(this,t).get(t)}var YT=WT,jT=jd;function UT(t){return jT(this,t).has(t)}var qT=UT,GT=jd;function KT(t,e){var n=GT(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var ZT=KT,XT=AT,JT=RT,QT=YT,eV=qT,tV=ZT;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=XT,ja.prototype.delete=JT,ja.prototype.get=QT,ja.prototype.has=eV,ja.prototype.set=tV;var e0=ja,B4=e0,nV="Expected a function";function t0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(nV);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],r=n.cache;if(r.has(s))return r.get(s);var o=t.apply(this,i);return n.cache=r.set(s,o)||r,o};return n.cache=new(t0.Cache||B4),n}t0.Cache=B4;var iV=t0,sV=iV,rV=500;function aV(t){var e=sV(t,function(i){return n.size===rV&&n.clear(),i}),n=e.cache;return e}var oV=aV,lV=oV,cV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dV=/\\(\\)?/g,uV=lV(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(cV,function(n,i,s,r){e.push(s?r.replace(dV,"$1"):i||n)}),e}),hV=uV;function fV(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 pV=fV,T4=Rd,mV=pV,gV=Pi,_V=Zh,yV=1/0,V4=T4?T4.prototype:void 0,I4=V4?V4.toString:void 0;function A4(t){if(typeof t=="string")return t;if(gV(t))return mV(t,A4)+"";if(_V(t))return I4?I4.call(t):"";var e=t+"";return e=="0"&&1/t==-yV?"-0":e}var vV=A4,bV=vV;function wV(t){return t==null?"":bV(t)}var kV=wV,CV=Pi,xV=Xh,SV=hV,MV=kV;function OV(t,e){return CV(t)?t:xV(t,e)?[t]:SV(MV(t))}var $4=OV,DV=is,EV=Li,BV="[object Arguments]";function TV(t){return EV(t)&&DV(t)==BV}var VV=TV,N4=VV,IV=Li,z4=Object.prototype,AV=z4.hasOwnProperty,$V=z4.propertyIsEnumerable,NV=N4(function(){return arguments}())?N4:function(t){return IV(t)&&AV.call(t,"callee")&&!$V.call(t,"callee")},n0=NV,zV=9007199254740991,PV=/^(?:0|[1-9]\d*)$/;function LV(t,e){var n=typeof t;return e=e??zV,!!e&&(n=="number"||n!="symbol"&&PV.test(t))&&t>-1&&t%1==0&&t<e}var i0=LV,FV=9007199254740991;function RV(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=FV}var s0=RV,HV=Zh,WV=1/0;function YV(t){if(typeof t=="string"||HV(t))return t;var e=t+"";return e=="0"&&1/t==-WV?"-0":e}var Ud=YV,jV=$4,UV=n0,qV=Pi,GV=i0,KV=s0,ZV=Ud;function XV(t,e,n){e=jV(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=ZV(e[i]);if(!(r=t!=null&&n(t,o)))break;t=t[o]}return r||++i!=s?r:(s=t==null?0:t.length,!!s&&KV(s)&&GV(o,s)&&(qV(t)||UV(t)))}var P4=XV,JV=bE,QV=P4;function eI(t,e){return t!=null&&QV(t,e,JV)}var L4=eI,tI=is,nI=Li,iI="[object Date]";function sI(t){return nI(t)&&tI(t)==iI}var rI=sI;function aI(t){return function(e){return t(e)}}var F4=aI,zl={},oI={get exports(){return zl},set exports(t){zl=t}};(function(t,e){var n=w4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r&&n.process,c=function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=c})(oI,zl);var lI=rI,cI=F4,R4=zl,H4=R4&&R4.isDate,dI=H4?cI(H4):lI,uI=dI,hI=is,fI=Pi,pI=Li,mI="[object String]";function gI(t){return typeof t=="string"||!fI(t)&&pI(t)&&hI(t)==mI}var ss=gI;function _I(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 W4=_I,yI=Yd;function vI(){this.__data__=new yI,this.size=0}var bI=vI;function wI(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var kI=wI;function CI(t){return this.__data__.get(t)}var xI=CI;function SI(t){return this.__data__.has(t)}var MI=SI,OI=Yd,DI=Qh,EI=e0,BI=200;function TI(t,e){var n=this.__data__;if(n instanceof OI){var i=n.__data__;if(!DI||i.length<BI-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new EI(i)}return n.set(t,e),this.size=n.size,this}var VI=TI,II=Yd,AI=bI,$I=kI,NI=xI,zI=MI,PI=VI;function Ua(t){var e=this.__data__=new II(t);this.size=e.size}Ua.prototype.clear=AI,Ua.prototype.delete=$I,Ua.prototype.get=NI,Ua.prototype.has=zI,Ua.prototype.set=PI;var r0=Ua,LI="__lodash_hash_undefined__";function FI(t){return this.__data__.set(t,LI),this}var RI=FI;function HI(t){return this.__data__.has(t)}var WI=HI,YI=e0,jI=RI,UI=WI;function qd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new YI;++e<n;)this.add(t[e])}qd.prototype.add=qd.prototype.push=jI,qd.prototype.has=UI;var qI=qd;function GI(t,e){return t.has(e)}var KI=GI,ZI=qI,XI=W4,JI=KI,QI=1,eA=2;function tA(t,e,n,i,s,r){var o=n&QI,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=r.get(t),f=r.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,y=n&eA?new ZI:void 0;for(r.set(t,e),r.set(e,t);++m<c;){var b=t[m],k=e[m];if(i)var C=o?i(k,b,m,e,t,r):i(b,k,m,t,e,r);if(C!==void 0){if(C)continue;g=!1;break}if(y){if(!XI(e,function(S,E){if(!JI(y,E)&&(b===S||s(b,S,n,i,r)))return y.push(E)})){g=!1;break}}else if(!(b===k||s(b,k,n,i,r))){g=!1;break}}return r.delete(t),r.delete(e),g}var Y4=tA,nA=ns,iA=nA.Uint8Array,j4=iA;function sA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var rA=sA;function aA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var oA=aA,U4=Rd,q4=j4,lA=Wa,cA=Y4,dA=rA,uA=oA,hA=1,fA=2,pA="[object Boolean]",mA="[object Date]",gA="[object Error]",_A="[object Map]",yA="[object Number]",vA="[object RegExp]",bA="[object Set]",wA="[object String]",kA="[object Symbol]",CA="[object ArrayBuffer]",xA="[object DataView]",G4=U4?U4.prototype:void 0,a0=G4?G4.valueOf:void 0;function SA(t,e,n,i,s,r,o){switch(n){case xA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CA:return!(t.byteLength!=e.byteLength||!r(new q4(t),new q4(e)));case pA:case mA:case yA:return lA(+t,+e);case gA:return t.name==e.name&&t.message==e.message;case vA:case wA:return t==e+"";case _A:var c=dA;case bA:var d=i&hA;if(c||(c=uA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=fA,o.set(t,e);var f=cA(c(t),c(e),i,s,r,o);return o.delete(t),f;case kA:if(a0)return a0.call(t)==a0.call(e)}return!1}var MA=SA;function OA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var DA=OA,EA=DA,BA=Pi;function TA(t,e,n){var i=e(t);return BA(t)?i:EA(i,n(t))}var VA=TA;function IA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,r=[];++n<i;){var o=t[n];e(o,n,t)&&(r[s++]=o)}return r}var AA=IA;function $A(){return[]}var NA=$A,zA=AA,PA=NA,LA=Object.prototype,FA=LA.propertyIsEnumerable,K4=Object.getOwnPropertySymbols,RA=K4?function(t){return t==null?[]:(t=Object(t),zA(K4(t),function(e){return FA.call(t,e)}))}:PA,HA=RA;function WA(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var YA=WA,qa={},jA={get exports(){return qa},set exports(t){qa=t}};function UA(){return!1}var qA=UA;(function(t,e){var n=ns,i=qA,s=e&&!e.nodeType&&e,r=s&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(jA,qa);var GA=is,KA=s0,ZA=Li,XA="[object Arguments]",JA="[object Array]",QA="[object Boolean]",e$="[object Date]",t$="[object Error]",n$="[object Function]",i$="[object Map]",s$="[object Number]",r$="[object Object]",a$="[object RegExp]",o$="[object Set]",l$="[object String]",c$="[object WeakMap]",d$="[object ArrayBuffer]",u$="[object DataView]",h$="[object Float32Array]",f$="[object Float64Array]",p$="[object Int8Array]",m$="[object Int16Array]",g$="[object Int32Array]",_$="[object Uint8Array]",y$="[object Uint8ClampedArray]",v$="[object Uint16Array]",b$="[object Uint32Array]",Vt={};Vt[h$]=Vt[f$]=Vt[p$]=Vt[m$]=Vt[g$]=Vt[_$]=Vt[y$]=Vt[v$]=Vt[b$]=!0,Vt[XA]=Vt[JA]=Vt[d$]=Vt[QA]=Vt[u$]=Vt[e$]=Vt[t$]=Vt[n$]=Vt[i$]=Vt[s$]=Vt[r$]=Vt[a$]=Vt[o$]=Vt[l$]=Vt[c$]=!1;function w$(t){return ZA(t)&&KA(t.length)&&!!Vt[GA(t)]}var k$=w$,C$=k$,x$=F4,Z4=zl,X4=Z4&&Z4.isTypedArray,S$=X4?x$(X4):C$,o0=S$,M$=YA,O$=n0,D$=Pi,E$=qa,B$=i0,T$=o0,V$=Object.prototype,I$=V$.hasOwnProperty;function A$(t,e){var n=D$(t),i=!n&&O$(t),s=!n&&!i&&E$(t),r=!n&&!i&&!s&&T$(t),o=n||i||s||r,c=o?M$(t.length,String):[],d=c.length;for(var h in t)(e||I$.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||B$(h,d)))&&c.push(h);return c}var J4=A$,$$=Object.prototype;function N$(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||$$;return t===n}var l0=N$;function z$(t,e){return function(n){return t(e(n))}}var Q4=z$,P$=Q4,L$=P$(Object.keys,Object),F$=L$,R$=l0,H$=F$,W$=Object.prototype,Y$=W$.hasOwnProperty;function j$(t){if(!R$(t))return H$(t);var e=[];for(var n in Object(t))Y$.call(t,n)&&n!="constructor"&&e.push(n);return e}var U$=j$,q$=Wr,G$=s0;function K$(t){return t!=null&&G$(t.length)&&!q$(t)}var Pl=K$,Z$=J4,X$=U$,J$=Pl;function Q$(t){return J$(t)?Z$(t):X$(t)}var c0=Q$,eN=VA,tN=HA,nN=c0;function iN(t){return eN(t,nN,tN)}var sN=iN,e_=sN,rN=1,aN=Object.prototype,oN=aN.hasOwnProperty;function lN(t,e,n,i,s,r){var o=n&rN,c=e_(t),d=c.length,h=e_(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:oN.call(e,g)))return!1}var y=r.get(t),b=r.get(e);if(y&&b)return y==e&&b==t;var k=!0;r.set(t,e),r.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,r):i(S,E,g,t,e,r);if(!(A===void 0?S===E||s(S,E,n,i,r):A)){k=!1;break}C||(C=g=="constructor")}if(k&&!C){var x=t.constructor,V=e.constructor;x!=V&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof V=="function"&&V instanceof V)&&(k=!1)}return r.delete(t),r.delete(e),k}var cN=lN,dN=Yr,uN=ns,hN=dN(uN,"DataView"),fN=hN,pN=Yr,mN=ns,gN=pN(mN,"Promise"),_N=gN,yN=Yr,vN=ns,bN=yN(vN,"Set"),wN=bN,kN=Yr,CN=ns,xN=kN(CN,"WeakMap"),SN=xN,d0=fN,u0=Qh,h0=_N,f0=wN,p0=SN,t_=is,Ga=O4,n_="[object Map]",MN="[object Object]",i_="[object Promise]",s_="[object Set]",r_="[object WeakMap]",a_="[object DataView]",ON=Ga(d0),DN=Ga(u0),EN=Ga(h0),BN=Ga(f0),TN=Ga(p0),jr=t_;(d0&&jr(new d0(new ArrayBuffer(1)))!=a_||u0&&jr(new u0)!=n_||h0&&jr(h0.resolve())!=i_||f0&&jr(new f0)!=s_||p0&&jr(new p0)!=r_)&&(jr=function(t){var e=t_(t),n=e==MN?t.constructor:void 0,i=n?Ga(n):"";if(i)switch(i){case ON:return a_;case DN:return n_;case EN:return i_;case BN:return s_;case TN:return r_}return e});var VN=jr,m0=r0,IN=Y4,AN=MA,$N=cN,o_=VN,l_=Pi,c_=qa,NN=o0,zN=1,d_="[object Arguments]",u_="[object Array]",Gd="[object Object]",PN=Object.prototype,h_=PN.hasOwnProperty;function LN(t,e,n,i,s,r){var o=l_(t),c=l_(e),d=o?u_:o_(t),h=c?u_:o_(e);d=d==d_?Gd:d,h=h==d_?Gd:h;var f=d==Gd,m=h==Gd,g=d==h;if(g&&c_(t)){if(!c_(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new m0),o||NN(t)?IN(t,e,n,i,s,r):AN(t,e,d,n,i,s,r);if(!(n&zN)){var y=f&&h_.call(t,"__wrapped__"),b=m&&h_.call(e,"__wrapped__");if(y||b){var k=y?t.value():t,C=b?e.value():e;return r||(r=new m0),s(k,C,n,i,r)}}return g?(r||(r=new m0),$N(t,e,n,i,s,r)):!1}var FN=LN,RN=FN,f_=Li;function p_(t,e,n,i,s){return t===e?!0:t==null||e==null||!f_(t)&&!f_(e)?t!==t&&e!==e:RN(t,e,n,i,p_,s)}var m_=p_,HN=r0,WN=m_,YN=1,jN=2;function UN(t,e,n,i){var s=n.length,r=s,o=!i;if(t==null)return!r;for(t=Object(t);s--;){var c=n[s];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<r;){c=n[s];var d=c[0],h=t[d],f=c[1];if(o&&c[2]){if(h===void 0&&!(d in t))return!1}else{var m=new HN;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?WN(f,h,YN|jN,i,m):g))return!1}}return!0}var qN=UN,GN=ws;function KN(t){return t===t&&!GN(t)}var g_=KN,ZN=g_,XN=c0;function JN(t){for(var e=XN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,ZN(s)]}return e}var QN=JN;function ez(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var __=ez,tz=qN,nz=QN,iz=__;function sz(t){var e=nz(t);return e.length==1&&e[0][2]?iz(e[0][0],e[0][1]):function(n){return n===t||tz(n,t,e)}}var rz=sz,az=$4,oz=Ud;function lz(t,e){e=az(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[oz(e[n++])];return n&&n==i?t:void 0}var y_=lz,cz=y_;function dz(t,e,n){var i=t==null?void 0:cz(t,e);return i===void 0?n:i}var Ur=dz;function uz(t,e){return t!=null&&e in Object(t)}var hz=uz,fz=hz,pz=P4;function mz(t,e){return t!=null&&pz(t,e,fz)}var gz=mz,_z=m_,yz=Ur,vz=gz,bz=Xh,wz=g_,kz=__,Cz=Ud,xz=1,Sz=2;function Mz(t,e){return bz(t)&&wz(e)?kz(Cz(t),e):function(n){var i=yz(n,t);return i===void 0&&i===e?vz(n,t):_z(e,i,xz|Sz)}}var Oz=Mz;function Dz(t){return t}var g0=Dz;function Ez(t){return function(e){return e==null?void 0:e[t]}}var Bz=Ez,Tz=y_;function Vz(t){return function(e){return Tz(e,t)}}var Iz=Vz,Az=Bz,$z=Iz,Nz=Xh,zz=Ud;function Pz(t){return Nz(t)?Az(zz(t)):$z(t)}var Lz=Pz,Fz=rz,Rz=Oz,Hz=g0,Wz=Pi,Yz=Lz;function jz(t){return typeof t=="function"?t:t==null?Hz:typeof t=="object"?Wz(t)?Rz(t[0],t[1]):Fz(t):Yz(t)}var v_=jz;function Uz(t){return function(e,n,i){for(var s=-1,r=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(r[d],d,r)===!1)break}return e}}var qz=Uz,Gz=qz,Kz=Gz(),b_=Kz,Zz=b_,Xz=c0;function Jz(t,e){return t&&Zz(t,e,Xz)}var w_=Jz,Qz=Pl;function eP(t,e){return function(n,i){if(n==null)return n;if(!Qz(n))return t(n,i);for(var s=n.length,r=e?s:-1,o=Object(n);(e?r--:++r<s)&&i(o[r],r,o)!==!1;);return n}}var tP=eP,nP=w_,iP=tP,sP=iP(nP),rP=sP,aP=rP;function oP(t,e){var n;return aP(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var lP=oP,cP=Wa,dP=Pl,uP=i0,hP=ws;function fP(t,e,n){if(!hP(n))return!1;var i=typeof e;return(i=="number"?dP(n)&&uP(e,n.length):i=="string"&&e in n)?cP(n[e],t):!1}var _0=fP,pP=W4,mP=v_,gP=lP,_P=Pi,yP=_0;function vP(t,e,n){var i=_P(t)?pP:gP;return n&&yP(t,e,n)&&(e=void 0),i(t,mP(e))}var bP=vP,wP=is,kP=Li,CP="[object Boolean]";function xP(t){return t===!0||t===!1||kP(t)&&wP(t)==CP}var SP=xP,MP=is,OP=Li,DP="[object Number]";function EP(t){return typeof t=="number"||OP(t)&&MP(t)==DP}var Fi=EP,BP=Yr,TP=function(){try{var t=BP(Object,"defineProperty");return t({},"",{}),t}catch{}}(),k_=TP,C_=k_;function VP(t,e,n){e=="__proto__"&&C_?C_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Kd=VP,IP=Kd,AP=Wa,$P=Object.prototype,NP=$P.hasOwnProperty;function zP(t,e,n){var i=t[e];(!(NP.call(t,e)&&AP(i,n))||n===void 0&&!(e in t))&&IP(t,e,n)}var PP=zP,LP=Kd,FP=w_,RP=v_;function HP(t,e){var n={};return e=RP(e),FP(t,function(i,s,r){LP(n,s,e(i,s,r))}),n}var WP=HP;function YP(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 x_=YP,jP=x_,S_=Math.max;function UP(t,e,n){return e=S_(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=S_(i.length-e,0),o=Array(r);++s<r;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),jP(t,this,c)}}var qP=UP;function GP(t){return function(){return t}}var KP=GP,ZP=KP,M_=k_,XP=g0,JP=M_?function(t,e){return M_(t,"toString",{configurable:!0,enumerable:!1,value:ZP(e),writable:!0})}:XP,QP=JP,eL=800,tL=16,nL=Date.now;function iL(t){var e=0,n=0;return function(){var i=nL(),s=tL-(i-n);if(n=i,s>0){if(++e>=eL)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var sL=iL,rL=QP,aL=sL,oL=aL(rL),lL=oL,cL=g0,dL=qP,uL=lL;function hL(t,e){return uL(dL(t,e,cL),t+"")}var y0=hL;function fL(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var pL=fL,mL=ws,gL=l0,_L=pL,yL=Object.prototype,vL=yL.hasOwnProperty;function bL(t){if(!mL(t))return _L(t);var e=gL(t),n=[];for(var i in t)i=="constructor"&&(e||!vL.call(t,i))||n.push(i);return n}var wL=bL,kL=J4,CL=wL,xL=Pl;function SL(t){return xL(t)?kL(t,!0):CL(t)}var v0=SL,ML=y0,OL=Wa,DL=_0,EL=v0,O_=Object.prototype,BL=O_.hasOwnProperty,TL=ML(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&DL(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=EL(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||OL(f,O_[h])&&!BL.call(t,h))&&(t[h]=r[h])}return t}),D_=TL,VL=Kd,IL=Wa;function AL(t,e,n){(n!==void 0&&!IL(t[e],n)||n===void 0&&!(e in t))&&VL(t,e,n)}var E_=AL,Zd={},$L={get exports(){return Zd},set exports(t){Zd=t}};(function(t,e){var n=ns,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r?n.Buffer:void 0,c=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=c?c(m):new h.constructor(m);return h.copy(g),g}t.exports=d})($L,Zd);var B_=j4;function NL(t){var e=new t.constructor(t.byteLength);return new B_(e).set(new B_(t)),e}var zL=NL,PL=zL;function LL(t,e){var n=e?PL(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var FL=LL;function RL(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var HL=RL,WL=ws,T_=Object.create,YL=function(){function t(){}return function(e){if(!WL(e))return{};if(T_)return T_(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),jL=YL,UL=Q4,qL=UL(Object.getPrototypeOf,Object),V_=qL,GL=jL,KL=V_,ZL=l0;function XL(t){return typeof t.constructor=="function"&&!ZL(t)?GL(KL(t)):{}}var JL=XL,QL=Pl,eF=Li;function tF(t){return eF(t)&&QL(t)}var nF=tF,iF=is,sF=V_,rF=Li,aF="[object Object]",oF=Function.prototype,lF=Object.prototype,I_=oF.toString,cF=lF.hasOwnProperty,dF=I_.call(Object);function uF(t){if(!rF(t)||iF(t)!=aF)return!1;var e=sF(t);if(e===null)return!0;var n=cF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&I_.call(n)==dF}var hF=uF;function fF(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var A_=fF,pF=PP,mF=Kd;function gF(t,e,n,i){var s=!n;n||(n={});for(var r=-1,o=e.length;++r<o;){var c=e[r],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?mF(n,c,d):pF(n,c,d)}return n}var _F=gF,yF=_F,vF=v0;function bF(t){return yF(t,vF(t))}var wF=bF,$_=E_,kF=Zd,CF=FL,xF=HL,SF=JL,N_=n0,z_=Pi,MF=nF,OF=qa,DF=Wr,EF=ws,BF=hF,TF=o0,P_=A_,VF=wF;function IF(t,e,n,i,s,r,o){var c=P_(t,n),d=P_(e,n),h=o.get(d);if(h){$_(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=z_(d),y=!g&&OF(d),b=!g&&!y&&TF(d);f=d,g||y||b?z_(c)?f=c:MF(c)?f=xF(c):y?(m=!1,f=kF(d,!0)):b?(m=!1,f=CF(d,!0)):f=[]:BF(d)||N_(d)?(f=c,N_(c)?f=VF(c):(!EF(c)||DF(c))&&(f=SF(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),$_(t,n,f)}var AF=IF,$F=r0,NF=E_,zF=b_,PF=AF,LF=ws,FF=v0,RF=A_;function L_(t,e,n,i,s){t!==e&&zF(e,function(r,o){if(s||(s=new $F),LF(r))PF(t,e,o,n,L_,i,s);else{var c=i?i(RF(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),NF(t,o,c)}},FF)}var F_=L_,HF=F_,R_=ws;function H_(t,e,n,i,s,r){return R_(t)&&R_(e)&&(r.set(e,t),HF(t,e,void 0,H_,r),r.delete(e)),t}var WF=H_,YF=y0,jF=_0;function UF(t){return YF(function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(r=t.length>3&&typeof r=="function"?(s--,r):void 0,o&&jF(n[0],n[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,r)}return e})}var qF=UF,GF=F_,KF=qF,ZF=KF(function(t,e,n,i){GF(t,e,n,i)}),XF=ZF,JF=x_,QF=y0,eR=WF,tR=XF,nR=QF(function(t){return t.push(void 0,eR),JF(tR,void 0,t)}),Ll=nR;function iR(t){return t&&t.length?t[0]:void 0}var W_=iR;function sR(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Ka=sR;const rR=t=>Object.prototype.toString.call(t).slice(8,-1),Za=t=>uI(t)&&!isNaN(t.getTime()),ks=t=>rR(t)==="Object",Y_=L4,j_=(t,e)=>bP(e,n=>L4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},yi=t=>Array.isArray(t),Cs=t=>yi(t)&&t.length>0,Xd=t=>t==null?null:document&&ss(t)?document.querySelector(t):t.$el??t,nr=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},ir=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>nr(t,e,n,i)),Jd=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Qd=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},U_=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},q_=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function aR(t,e,n){return Math.min(Math.max(t,e),n)}var eu={},oR={get exports(){return eu},set exports(t){eu=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})(oR,eu);const lR=b4(eu);var tu={},cR={get exports(){return tu},set exports(t){tu=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})(cR,tu);const G_=b4(tu);function dR(t,e){var n=pR(e);return n.formatToParts?hR(n,t):fR(n,t)}var uR={year:0,month:1,day:2,hour:3,minute:4,second:5};function hR(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=uR[n[s].type];r>=0&&(i[r]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function fR(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 b0={};function pR(t){if(!b0[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";b0[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 b0[t]}function K_(t,e,n,i,s,r,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,r,o),c}var Z_=36e5,mR=6e4,w0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function gR(t,e,n){var i,s;if(!t||(i=w0.timezoneZ.exec(t),i))return 0;var r;if(i=w0.timezoneHH.exec(t),i)return r=parseInt(i[1],10),X_(r)?-(r*Z_):NaN;if(i=w0.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return X_(r,o)?(s=Math.abs(r)*Z_+o*mR,r>0?-s:s):NaN}if(vR(t)){e=new Date(e||Date.now());var c=n?e:_R(e),d=k0(c,t),h=n?d:yR(e,d,t);return-h}return NaN}function _R(t){return K_(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function k0(t,e){var n=dR(t,e),i=K_(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),r=s%1e3;return s-=r>=0?r:1e3+r,i-s}function yR(t,e,n){var i=t.getTime(),s=i-e,r=k0(new Date(s),n);if(e===r)return e;s-=r-e;var o=k0(new Date(s),n);return r===o?r:Math.max(r,o)}function X_(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var J_={};function vR(t){if(J_[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),J_[t]=!0,!0}catch{return!1}}var bR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const wR=bR;var C0=36e5,Q_=6e4,kR=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:wR};function CR(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?kR:lR(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=xR(t),r=SR(s.date,i),o=r.year,c=r.restDateString,d=MR(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=OR(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=gR(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=G_(new Date(h+f)),m=G_(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function xR(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 SR(t,e){var n=Bn.YYY[e],i=Bn.YYYYY[e],s;if(s=Bn.YYYY.exec(t)||i.exec(t),s){var r=s[1];return{year:parseInt(r,10),restDateString:t.slice(r.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 MR(t,e){if(e===null)return null;var n,i,s,r;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Bn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,n5(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 BR(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 n5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Bn.Www.exec(t),n)return r=parseInt(n[1],10)-1,i5(e,r)?e5(e,r):new Date(NaN);if(n=Bn.WwwD.exec(t),n){r=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return i5(e,r,d)?e5(e,r,d):new Date(NaN)}return null}function OR(t){var e,n,i;if(e=Bn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),x0(n)?n%24*C0:NaN;if(e=Bn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),x0(n,i)?n%24*C0+i*Q_: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 x0(n,i,s)?n%24*C0+i*Q_+s*1e3:NaN}return null}function e5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,r=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+r),i}var DR=[31,28,31,30,31,30,31,31,30,31,30,31],ER=[31,29,31,30,31,30,31,31,30,31,30,31];function t5(t){return t%400===0||t%4===0&&t%100!==0}function n5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=t5(t);if(i&&n>ER[e]||!i&&n>DR[e])return!1}return!0}function BR(t,e){if(e<1)return!1;var n=t5(t);return!(n&&e>366||!n&&e>365)}function i5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function x0(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 nu(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(t)}function xs(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||nu(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 Xa(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 TR={};function S0(){return TR}function qr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=S0(),m=Xa((n=(i=(s=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:f.weekStartsOn)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=xs(t),y=g.getDay(),b=(y<m?7:0)+y-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function s5(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 VR=6048e5;function IR(t,e,n){kn(2,arguments);var i=qr(t,n),s=qr(e,n),r=i.getTime()-s5(i),o=s.getTime()-s5(s);return Math.round((r-o)/VR)}function AR(t){kn(1,arguments);var e=xs(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function $R(t){kn(1,arguments);var e=xs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function NR(t,e){return kn(1,arguments),IR(AR(t),$R(t),e)+1}function zR(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=xs(t),m=f.getFullYear(),g=S0(),y=Xa((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:g.firstWeekContainsDate)!==null&&i!==void 0?i:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,y),b.setHours(0,0,0,0);var k=qr(b,e),C=new Date(0);C.setFullYear(m,0,y),C.setHours(0,0,0,0);var S=qr(C,e);return f.getTime()>=k.getTime()?m+1:f.getTime()>=S.getTime()?m:m-1}function PR(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=S0(),m=Xa((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:f.firstWeekContainsDate)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=zR(t,e),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var b=qr(y,e);return b}var LR=6048e5;function FR(t,e){kn(1,arguments);var n=xs(t),i=qr(n,e).getTime()-PR(n,e).getTime();return Math.round(i/LR)+1}function iu(t){return kn(1,arguments),qr(t,{weekStartsOn:1})}function RR(t){kn(1,arguments);var e=xs(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=iu(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=iu(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function HR(t){kn(1,arguments);var e=RR(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=iu(n);return i}var WR=6048e5;function YR(t){kn(1,arguments);var e=xs(t),n=iu(e).getTime()-HR(e).getTime();return Math.round(n/WR)+1}function Tn(t,e){kn(2,arguments);var n=xs(t),i=Xa(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function su(t,e){kn(2,arguments);var n=xs(t),i=Xa(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function r5(t,e){kn(2,arguments);var n=Xa(e);return su(t,n*12)}const jR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function UR({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:r,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<r?Cn:0)-r;let g=!0,y=!1,b=!1,k=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,V=e.numWeeks,N=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ne=q.getMonth()+1,K=q.getFullYear();for(let ie=1;ie<=bH;ie++){for(let me=1,J=r;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),V=1,N=f,L=t.month,F=t.year,g=!1,y=!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[ie-1],Me=c[ie-1],ge=S===ee&&L===ne&&F===K,Ne=y&&S===1,lt=y&&S===h,Le=ie===1,ht=ie===f,It=me===1,kt=me===Cn,tt=C5(F,L,S);s.push({locale:i,id:R,position:++k,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:V,weekFromEnd:N,weekPosition:ie,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:!y,isFocusable:!y,isFocused:!1,inMonth:y,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-${V}`,`week-from-end-${N}`,{"is-today":ge,"is-first-day":Ne,"is-last-day":lt,"in-month":y,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ht,"on-left":It,"on-right":kt}]}),y&&lt?(y=!1,b=!0,S=1,E=h,A=1,x=Math.floor((h-S)/Cn+1),V=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))}V++,N--}return s}function qR(t,e,n,i){const s=t.reduce((r,o,c)=>{const d=Math.floor(c/7);let h=r[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},r[d]=h),h.days.push(o),r},Array(t.length/Cn));return s.forEach(r=>{const o=r.days[0],c=r.days[r.days.length-1];o.month===c.month?r.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?r.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:r.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function GR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function KR(t,e){return`${e}.${vt(t,2)}`}function a5(t,e,n){return q_(n.getDateParts(n.toDate(t)),jR[e])}function o5({day:t,week:e,month:n,year:i},s,r,o){if(r==="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(r==="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=su(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function rs(t){return t!=null&&t.month!=null&&t.year!=null}function M0(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 ru(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 ZR(t,e,n){return(t||!1)&&!M0(t,e)&&!ru(t,n)}function XR(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 JR(t,e,n,i){if(!rs(t)||!rs(e))return[];const s=[];for(;!ru(t,e);)s.push(t),t=o5(t,1,n,i);return s}function l5(t){const{day:e,week:n,month:i,year:s}=t;let r=`${s}-${vt(i,2)}`;return n&&(r=`${r}-w${n}`),e&&(r=`${r}-${vt(e,2)}`),r}function QR(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:r}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=UR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=qR(f,s,r,e),g=GR(m[0],e);return{id:l5(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 eH(t,e){const{day:n,week:i,view:s,trimWeeks:r}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let c=o.days.find(h=>h.inMonth);n?c=o.days.find(h=>h.day===n&&h.inMonth)||c:i&&(c=o.days.find(h=>h.week===i&&h.inMonth));const d=o.weeks[c.week-1];o.viewWeeks=[d],o.viewDays=[c],o.week=c.week,o.weekTitle=d.title,o.day=c.day,o.dayTitle=c.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=i||1;const c=o.weeks[o.week-1];o.viewWeeks=[c],o.viewDays=c.days,o.weekTitle=c.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,r?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class c5{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 Ja{constructor(e,n=new au){xe(this,"order"),xe(this,"locale"),xe(this,"start",null),xe(this,"end",null),xe(this,"repeat",null);var i;this.locale=n;const{start:s,end:r,span:o,order:c,repeat:d}=e;Za(s)&&(this.start=n.getDateParts(s)),Za(r)?this.end=n.getDateParts(r):this.start!=null&&o&&(this.end=n.getDateParts(Tn(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new ou({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(yi(e)?e:[e]).filter(i=>i).map(i=>Ja.from(i,n))}static from(e,n){if(e instanceof Ja)return e;const i={start:null,end:null};return e!=null&&(yi(e)?(i.start=e[0]??null,i.end=e[1]??null):ks(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 Ja(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 tH{constructor(){xe(this,"records",{})}render(e,n,i){var s,r,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,y;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:((y=n.end)==null?void 0:y.time)??lu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((r=n.start)==null?void 0:r.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((c=n.end)==null?void 0:c.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(r=>r.data.key===e)}cellExists(e,n){const i=this.records[e];return i==null?!1:i.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(e){const n=Object.values(this.records),i=[],{dayIndex:s}=e;return n.forEach(({data:r,ranges:o})=>{o.filter(c=>c.startDay<=s&&c.endDay>=s).forEach(c=>{const d=s===c.startDay,h=s===c.endDay,f=d?c.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?c.endTime:lu,y=new Date(e.endDate.getTime()+g),b=f===0&&g===lu,k=r.order||0;i.push({...c,data:r,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:b,order:k})})}),i.sort((r,o)=>r.order-o.order),i}}const Ss={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"}};Ss.en=Ss["en-US"],Ss.es=Ss["es-ES"],Ss.no=Ss.nb,Ss.zh=Ss["zh-CN"];const nH=Object.entries(Ss).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),iH={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:nH,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},O0=a.reactive(iH),sH=a.computed(()=>WP(O0.locales,t=>(t.masks=Ll(t.masks,O0.masks),t))),sr=t=>typeof window<"u"&&Y_(window.__vcalendar__,t)?Ur(window.__vcalendar__,t):Ur(O0,t),rH=12,aH=5;function oH(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ss(t)?i=t:Y_(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),r=d=>s.find(h=>h.toLowerCase()===d);i=r(i)||r(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:rH,pageCacheSize:aH};return ks(t)?Ll(t,o):o}class au{constructor(e=void 0,n){xe(this,"id"),xe(this,"daysInWeek"),xe(this,"firstDayOfWeek"),xe(this,"masks"),xe(this,"timezone"),xe(this,"hourLabels"),xe(this,"dayNames"),xe(this,"dayNamesShort"),xe(this,"dayNamesShorter"),xe(this,"dayNamesNarrow"),xe(this,"monthNames"),xe(this,"monthNamesShort"),xe(this,"relativeTimeNames"),xe(this,"amPm",["am","pm"]),xe(this,"monthCache"),xe(this,"pageCache");const{id:i,firstDayOfWeek:s,masks:r,monthCacheSize:o,pageCacheSize:c}=oH(e,sH.value);this.monthCache=new c5(o,EH,BH),this.pageCache=new c5(c,l5,QR),this.id=i,this.daysInWeek=Cn,this.firstDayOfWeek=aR(s,1,Cn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=T0("long",this.id),this.dayNamesShort=T0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=T0("narrow",this.id),this.monthNames=O5("long",this.id),this.monthNamesShort=O5("short",this.id),this.relativeTimeNames=IH(this.id)}formatDate(e,n){return PH(e,n,this)}parseDate(e,n){return D5(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:r,mask:o,patch:c,rules:d}=n;if(Fi(e)?(n.type="number",s=new Date(+e)):ss(e)?(n.type="string",s=e?D5(e,o||"iso",this):i):Za(e)?(n.type="date",s=new Date(e.getTime())):E0(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&r!=null){const f=this.getDateParts(this.toDate(r));h=this.getDateParts(this.toDate({...f,...q_(h,vH[c])}))}d&&(h=zH(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 Ja.from(e,this)}ranges(e){return Ja.fromMany(e,this)}getDateParts(e){return DH(e,this)}getDateFromParts(e){return S5(e,this.timezone)}getDateFromParams(e,n,i,s,r,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:r,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return eH(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 VH().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var Qa=(t=>(t.Any="any",t.All="all",t))(Qa||{}),d5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(d5||{}),u5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(u5||{}),h5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(h5||{});class lH{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 B0(this.from.date,n)%this.interval===0;case"weeks":return MH(this.from.date,n)%this.interval===0;case"months":return OH(this.from.date,n)%this.interval===0;case"years":return x5(this.from.date,n)%this.interval===0;default:return!1}}}class eo{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 cH(n);case"weekdays":return new dH(n);case"weeks":return new uH(n);case"months":return new hH(n);case"years":return new fH(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!yi(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 cH extends eo{constructor(e){super("days",e,gH,({day:n,dayFromEnd:i})=>[n,-i])}}class dH extends eo{constructor(e){super("weekdays",e,D0,({weekday:n})=>[n])}}class uH extends eo{constructor(e){super("weeks",e,_H,({week:n,weekFromEnd:i})=>[n,-i])}}class hH extends eo{constructor(e){super("months",e,yH,({month:n})=>[n])}}class fH extends eo{constructor(e){super("years",e,Fi,({year:n})=>[n])}}class pH{constructor(e,n){xe(this,"components"),this.type=e,this.components=this.normalizeComponents(n)}normalizeArrayConfig(e){const n=[];return e.forEach((i,s)=>{if(Fi(i)){if(s===0)return;if(!f5(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(!D0(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 yi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Fi(i)){if(s===0)return;if(!f5(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(!D0(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 yi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([r,o])=>(r===i||r===-s)&&n===o)}}class mH{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Wr(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 ou{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",Qa.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new au),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Wr(e)?(this.type=Qa.All,this.rules=[new mH(e)]):yi(e)?(this.type=Qa.Any,this.rules=e.map(s=>new ou(s,n,this))):ks(e)?(this.type=Qa.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`]),yi(e.every))){const[i=1,s=d5.Days]=e.every;n.push(new lH(s,i,this.from))}return Object.values(u5).forEach(i=>{i in e&&n.push(eo.create(i,e[i]))}),Object.values(h5).forEach(i=>{i in e&&n.push(new pH(i,e[i]))}),e.on!=null&&(yi(e.on)||(e.on=[e.on]),n.push(new ou(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===Qa.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function gH(t){return Fi(t)?t>=1&&t<=31:!1}function D0(t){return Fi(t)?t>=1&&t<=7:!1}function _H(t){return Fi(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function yH(t){return Fi(t)?t>=1&&t<=12:!1}function f5(t){return!(!Fi(t)||t<-5||t>5||t===0)}const vH={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Cn=7,bH=6,p5=1e3,m5=p5*60,g5=m5*60,lu=g5*24,wH=[31,28,31,30,31,30,31,31,30,31,30,31],kH=["L","iso"],Fl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},_5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,CH=/\[([^]*?)\]/gm,y5={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)}`}},rr=/\d\d?/,xH=/\d{3}/,SH=/\d{4}/,Rl=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,v5=()=>{},b5=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},wt={D:[rr,(t,e)=>{t.day=e}],Do:[new RegExp(rr.source+Rl.source),(t,e)=>{t.day=parseInt(e,10)}],d:[rr,v5],W:[Rl,v5],M:[rr,(t,e)=>{t.month=e-1}],MMM:[Rl,b5("monthNamesShort")],MMMM:[Rl,b5("monthNames")],YY:[rr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[SH,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[xH,(t,e)=>{t.milliseconds=e}],h:[rr,(t,e)=>{t.hours=e}],m:[rr,(t,e)=>{t.minutes=e}],s:[rr,(t,e)=>{t.seconds=e}],a:[Rl,(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 w5(t,e){return(Cs(t)&&t||[ss(t)&&t||"YYYY-MM-DD"]).map(n=>kH.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function E0(t){return ks(t)&&"year"in t&&"month"in t&&"day"in t}function k5(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return Tn(t,i)}function C5(t,e,n){const i=Date.UTC(t,e-1,n);return B0(new Date(0),new Date(i))}function B0(t,e){return Math.round((e.getTime()-t.getTime())/lu)}function MH(t,e){return Math.ceil(B0(k5(t),k5(e))/7)}function x5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function OH(t,e){return x5(t,e)*12+(e.getMonth()-t.getMonth())}function S5(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:r=n.getDate(),hours:o=0,minutes:c=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${vt(i,4)}-${vt(s,2)}-${vt(r,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return CR(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function DH(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const i=n.getMilliseconds(),s=n.getSeconds(),r=n.getMinutes(),o=n.getHours(),c=i+s*p5+r*m5+o*g5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,b=Math.floor((m-1)/7+1),k=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=C5(h,d,m);return{milliseconds:i,seconds:s,minutes:r,hours:o,time:c,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:b,weekdayOrdinalFromEnd:k,week:C,weekFromEnd:S,weeknumber:E,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:A,timezoneOffset:0,isValid:!0}}function EH(t,e,n){return`${e}-${t}-${n}`}function BH(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),r=s.getDay()+1,o=t===2&&i?29:wH[t-1],c=n-1,d=NR(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=Tn(s,m*7);h.push(FR(g,{weekStartsOn:c})),f.push(YR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function TH(){const t=[];for(let s=0;s<Cn;s++)t.push(S5({year:2020,month:1,day:5+s,hours:12}));return t}function T0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return TH().map(i=>n.format(i))}function VH(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function IH(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const r=n.formatToParts(100,s);return i[s]=r[1].unit,i},{})}function M5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function O5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return M5().map(i=>n.format(i))}function AH(t,e,n){return Fi(e)?e===t:yi(e)?e.includes(t):Wr(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Hl(t,e,n){const i=[],[s,r,o]=e;for(let c=s;c<=r;c++)(n==null||AH(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function $H(t,e){return{milliseconds:Hl(t,Fl.milliseconds,e.milliseconds),seconds:Hl(t,Fl.seconds,e.seconds),minutes:Hl(t,Fl.minutes,e.minutes),hours:Hl(t,Fl.hours,e.hours)}}function NH(t,e,n,i){const r=Hl(t,e,i).reduce((o,c)=>{if(c.disabled)return o;if(isNaN(o))return c.value;const d=Math.abs(o-n);return Math.abs(c.value-n)<d?c.value:o},NaN);return isNaN(r)?n:r}function zH(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Fl[i],o=t[i];n[i]=NH(t,r,o,s)}),n}function D5(t,e,n){return w5(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let r=t;if(r.length>1e3)return!1;let o=!0;const c={};if(s.replace(_5,f=>{if(wt[f]){const m=wt[f],g=r.search(m[0]);~g?r.replace(m[0],y=>(m[1](c,y,n),r=r.substr(g+y.length),y)):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 PH(t,e,n){if(t==null)return"";let i=w5(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(CH,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(_5,o=>o in y5?y5[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let LH=0;class E5{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=++LH),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!Cs(this.ranges),this.maxRepeatSpan=this.ranges.filter(r=>r.hasRepeat).map(r=>r.daySpan).reduce((r,o)=>Math.max(r,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const i=this.ranges.filter(o=>!o.hasRepeat);for(const o of i)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(o=>o.hasRepeat);if(!s.length)return!1;let r=e;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(Tn(r.date,-this.maxRepeatSpan)));r.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(r))return!0;r=this.locale.getDateParts(Tn(r.date,1))}return!1}}function V0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function Wl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function B5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function T5(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",r=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(B5({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&V0({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&Wl(t))},m=b=>{c||(c=!0,(r||s)&&V0({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!Jd(b.currentTarget,b.relatedTarget)&&(c=!1,(r||s&&!o)&&Wl(t))},y={};switch(t.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const V5=t=>{const e=Xd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},I5=(t,e)=>{const n=Xd(t);if(n==null)return;const i=[],s=T5(e);Object.entries(s).forEach(([r,o])=>{i.push(ir(n,r,o))}),n.popoverHandlers=i},A5={mounted(t,e){const{value:n}=e;!n||I5(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,r=i==null?void 0:i.visibility;s!==r&&(s&&(V5(t),r||Wl(n)),r&&I5(t,i))},unmounted(t){V5(t)}},FH=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Wr(e))return null;let r=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];r=g.screenX,o=g.screenY,c=new Date().getTime(),d=!0}function f(m){if(!d||!c)return;d=!1;const g=m.changedTouches[0],y=g.screenX-r,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(y)>=i&&Math.abs(b)<=s){const C={toLeft:!1,toRight:!1};y<0?C.toLeft=!0:C.toRight=!0,e(C)}}return ir(t,"touchstart",h,{passive:!0}),ir(t,"touchend",f,{passive:!0}),()=>{nr(t,"touchstart",h),nr(t,"touchend",f)}},cu={},RH=(t,e=10)=>{cu[t]=Date.now()+e},HH=(t,e)=>{if(t in cu){const n=cu[t];if(Date.now()<n)return;delete cu[t]}e()};function $5(){return typeof window<"u"}function WH(t){return $5()&&t in window}function YH(t){const e=a.ref(!1),n=a.computed(()=>e.value?"dark":"light");let i,s;function r(y){e.value=y.matches}function o(){WH("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",r),e.value=i.matches)}function c(){const{selector:y=":root",darkClass:b="dark"}=t.value,k=document.querySelector(y);e.value=k.classList.contains(b)}function d(y){const{selector:b=":root",darkClass:k="dark"}=y;if($5()&&b&&k){const C=document.querySelector(b);C&&(s=new MutationObserver(c),s.observe(C,{attributes:!0,attributeFilter:["class"]}),e.value=C.classList.contains(k))}}function h(){m();const y=typeof t.value;y==="string"&&t.value.toLowerCase()==="system"?o():y==="object"?d(t.value):e.value=!!t.value}const f=a.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",r),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return a.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const jH=["base","start","end","startEnd"],UH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],qH={base:{},start:{},end:{}};function I0(t,e,n=qH){let i=t,s={};e===!0||ss(e)?(i=ss(e)?e:i,s={...n}):ks(e)&&(j_(e,jH)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const r=Ll(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(r).forEach(([o,c])=>{let d=i;c===!0||ss(c)?(d=ss(c)?c:d,r[o]={color:d}):ks(c)&&(j_(c,UH)?r[o]={...c}:r[o]={}),Ll(r[o],{color:d})}),r}class GH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return I0(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:i},s){const{key:r,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):i?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...f,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):c.push({...d,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class A0{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return I0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:r}=e,o=e[this.type];if(!r||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class KH extends A0{constructor(){super("content","content")}normalizeConfig(e,n){return I0("base",n)}}class ZH extends A0{constructor(){super("dot","dots")}}class XH extends A0{constructor(){super("bar","bars")}}class JH{constructor(e){xe(this,"color"),xe(this,"renderers",[new KH,new GH,new ZH,new XH]),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 N5=Symbol("__vc_base_context__"),z5={color:{type:String,default:()=>sr("color")},isDark:{type:[Boolean,String,Object],default:()=>sr("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function P5(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=YH(n),s=a.computed(()=>new JH(e.value)),r=a.computed(()=>{if(t.locale instanceof au)return t.locale;const g=ks(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new au(g,t.timezone)}),o=a.computed(()=>r.value.masks),c=a.computed(()=>t.minDate),d=a.computed(()=>t.maxDate),h=a.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:Tn(r.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:Tn(r.value.toDate(d.value),1),end:null}),r.value.ranges(g)}),f=a.computed(()=>new E5({key:"disabled",dates:h.value,order:100},s.value,r.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:r,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return a.provide(N5,m),m}function QH(t){return a.inject(N5,()=>P5(t),!0)}function L5(t){return`__vc_slot_${t}__`}function F5(t,e={}){Object.keys(t).forEach(n=>{a.provide(L5(e[n]??n),t[n])})}function R5(t){return a.inject(L5(t),null)}const eW={...z5,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:()=>sr("titlePosition")},navVisibility:{type:String,default:()=>sr("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},tW=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],H5=Symbol("__vc_calendar_context__");function nW(t,{slots:e,emit:n}){const i=a.ref(null),s=a.ref(null),r=a.ref(new Date().getDate()),o=a.ref(!1),c=a.ref(Symbol()),d=a.ref(Symbol()),h=a.ref(t.view),f=a.ref([]),m=a.ref("");let g=null,y=null;F5(e);const{theme:b,color:k,displayMode:C,locale:S,masks:E,minDate:A,maxDate:x,disabledAttribute:V,disabledDates:N}=QH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>W_(f.value)??null),ee=a.computed(()=>Ka(f.value)??null),ne=a.computed(()=>t.minPage||(A.value?oe(A.value):null)),K=a.computed(()=>t.maxPage||(x.value?oe(x.value):null)),ie=a.computed(()=>t.navVisibility),me=a.computed(()=>!!t.showWeeknumbers),J=a.computed(()=>!!t.showIsoWeeknumbers),he=a.computed(()=>h.value==="monthly"),fe=a.computed(()=>h.value==="weekly"),ye=a.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,B,Y=h.value)=>o5(W,B,Y,S.value),oe=W=>a5(W,h.value,S.value),Ee=W=>{!V.value||!ht.value||(W.isDisabled=ht.value.cellExists(V.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===r.value},ge=(W,B)=>{for(const Y of W)for(const se of Y.days)if(B(se)===!1)return},Ne=a.computed(()=>f.value.reduce((W,B)=>(W.push(...B.viewDays),W),[])),lt=a.computed(()=>{const W=[];return(t.attributes||[]).forEach((B,Y)=>{!B||!B.dates||W.push(new E5({...B,order:B.order||0},b.value,S.value))}),V.value&&W.push(V.value),W}),Le=a.computed(()=>Cs(lt.value)),ht=a.computed(()=>{const W=new tH;return lt.value.forEach(B=>{B.ranges.forEach(Y=>{W.render(B,Y,Ne.value)})}),W}),It=a.computed(()=>Ne.value.reduce((W,B)=>(W[B.dayIndex]={day:B,cells:[]},W[B.dayIndex].cells.push(...ht.value.getCells(B)),W),{})),kt=(W,B)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":SP(Y)?Y?"left":"":Y.startsWith("right")?B>1?"right":Y:W>1?"left":Y},tt=()=>{var W,B;if(!Le.value)return null;const Y=lt.value.find(Ye=>Ye.pinPage)||lt.value[0];if(!Y||!Y.hasRanges)return null;const[se]=Y.ranges,Ce=((W=se.start)==null?void 0:W.date)||((B=se.end)==null?void 0:B.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,B={})=>{const{view:Y=h.value,position:se=1,force:Ce}=B,Ye=se>0?1-se:-(L.value+se);let at=pe(W,Ye,Y),xt=pe(at,L.value-1,Y);return Ce||(M0(at,ne.value)?at=ne.value:ru(xt,K.value)&&(at=pe(K.value,1-L.value)),xt=pe(at,L.value-1)),{fromPage:at,toPage:xt}},Yt=(W,B,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(B==null?void 0:B.view))return"fade";const se=ru(B,W),Ce=M0(B,W);return!se&&!Ce?"fade":Y==="slide-v"?Ce?"slide-down":"slide-up":Ce?"slide-right":"slide-left"},ft=(W={})=>new Promise((B,Y)=>{const{position:se=1,force:Ce=!1,transition:Ye}=W,at=rs(W.page)?W.page:st(),{fromPage:xt}=rt(at,{position:se,force:Ce}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const Un=pe(xt,Gt),pt=Gt+1,In=Math.ceil(pt/t.columns),xn=t.rows-In+1,ni=pt%t.columns||t.columns,Hi=t.columns-ni+1,Ms=kt(ni,Hi);sn.push(S.value.getPage({...Un,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:pt,row:In,rowFromEnd:xn,column:ni,columnFromEnd:Hi,showWeeknumbers:me.value,showIsoWeeknumbers:J.value,weeknumberPosition:Ms}))}m.value=Yt(f.value[0],sn[0],Ye),f.value=sn,m.value&&m.value!=="none"?g={resolve:B,reject:Y}:B(!0)}),Ct=W=>{const B=q.value??oe(new Date);return pe(B,W)},tn=(W,B={})=>{const Y=rs(W)?W:oe(W);return Object.assign(B,rt(Y,{...B,force:!0})),JR(B.fromPage,B.toPage,h.value,S.value).map(Ce=>ZR(Ce,ne.value,K.value)).some(Ce=>Ce)},nn=(W,B={})=>tn(Ct(W),B),bt=a.computed(()=>nn(-F.value)),nt=a.computed(()=>nn(F.value)),Nt=async(W,B={})=>!B.force&&!tn(W,B)?!1:(B.fromPage&&!XR(B.fromPage,q.value)&&(Wl({id:c.value,hideDelay:0}),B.view&&(RH("view",10),h.value=B.view),await ft({...B,page:B.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ot=(W,B={})=>Nt(Ct(W),B),At=()=>Ot(-F.value),Dt=()=>Ot(F.value),un=W=>{const B=he.value?".in-month":"",Y=`.id-${S.value.getDayId(W)}${B}`,se=`${Y}.vc-focusable, ${Y} .vc-focusable`,Ce=i.value;if(Ce){const Ye=Ce.querySelector(se);if(Ye)return Ye.focus(),!0}return!1},$t=async(W,B={})=>un(W)?!0:(await Nt(W,B),un(W)),te=(W,B)=>{r.value=W.day,n("dayclick",W,B)},Ie=(W,B)=>{n("daymouseenter",W,B)},We=(W,B)=>{n("daymouseleave",W,B)},pn=(W,B)=>{r.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,B)},Vn=(W,B)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,B)},jn=(W,B)=>{n("daykeydown",W,B);const Y=W.noonDate;let se=null;switch(B.key){case"ArrowLeft":{se=Tn(Y,-1);break}case"ArrowRight":{se=Tn(Y,1);break}case"ArrowUp":{se=Tn(Y,-7);break}case"ArrowDown":{se=Tn(Y,7);break}case"Home":{se=Tn(Y,-W.weekdayPosition+1);break}case"End":{se=Tn(Y,W.weekdayPositionFromEnd);break}case"PageUp":{B.altKey?se=r5(Y,-1):se=su(Y,-1);break}case"PageDown":{B.altKey?se=r5(Y,1):se=su(Y,1);break}}se&&(B.preventDefault(),$t(se).catch())},j=W=>{const B=s.value;B!=null&&jn(B,W)},le=(W,B)=>{n("weeknumberclick",W,B)};ft({page:t.initialPage,position:t.initialPagePosition}),a.onMounted(()=>{!t.disablePageSwipe&&i.value&&(y=FH(i.value,({toLeft:W=!1,toRight:B=!1})=>{W?Dt():B&&At()},sr("touch")))}),a.onUnmounted(()=>{f.value=[],y&&y()}),a.watch(()=>S.value,()=>{ft()}),a.watch(()=>L.value,()=>ft()),a.watch(()=>t.view,()=>h.value=t.view),a.watch(()=>h.value,()=>{HH("view",()=>{ft()}),n("update:view",h.value)}),a.watch(()=>r.value,()=>{ge(f.value,W=>Me(W))}),a.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:k,displayMode:C,locale:S,masks:E,attributes:lt,disabledAttribute:V,disabledDates:N,attributeContext:ht,days:Ne,dayCells:It,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:bt,canMoveNext:nt,minPage:ne,maxPage:K,isMonthly:he,isWeekly:fe,isDaily:ye,navVisibility:ie,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:jn,onDayClick:te,onDayMouseenter:Ie,onDayMouseleave:We,onDayFocusin:pn,onDayFocusout:Vn,onWeeknumberClick:le};return a.provide(H5,ve),ve}function Gr(){const t=a.inject(H5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const iW=a.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const i=a.ref();let s=null,r=null;const o=a.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(R){R&&(o.direction=R.split("-")[0])}function d({placement:R,options:pe}){c(R||(pe==null?void 0:pe.placement))}const h=a.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=a.computed(()=>{const R=o.direction==="left"||o.direction==="right";let 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(){r&&(r.destroy(),r=null)}function g(){a.nextTick(()=>{const R=Xd(o.target);!R||!i.value||(r&&r.state.elements.reference!==R&&m(),r?r.update():r=Ic(R,i.value,h.value))})}function y(R){Object.assign(o,U_(R,"force"))}function b(R,pe){clearTimeout(n),R>0?n=setTimeout(pe,R):pe()}function k(R){return!R||!r?!1:Xd(R)===r.state.elements.reference}async function C(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),y({...R,isVisible:!0}),g()}))}function S(R={}){!r||R.target&&!k(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&&k(R.target)?S(R):C(R))}function A(R){if(!r)return;const pe=r.state.elements.reference;if(!i.value||!pe)return;const oe=R.target;Jd(i.value,oe)||Jd(pe,oe)||S({force:!0})}function x(R){(R.key==="Esc"||R.key==="Escape")&&S()}function V({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(){ir(document,"keydown",x),ir(document,"click",A),ir(document,"show-popover",V),ir(document,"hide-popover",N),ir(document,"toggle-popover",L)}function q(){nr(document,"keydown",x),nr(document,"click",A),nr(document,"show-popover",V),nr(document,"hide-popover",N),nr(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ne(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function ie(R){o.force=!1,m(),e("after-hide",R)}function me(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&C()}function he(){if(o.isHovered=!1,!r)return;const R=r.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&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||!Jd(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&S())}function we(){s!=null&&(s.disconnect(),s=null)}return a.watch(()=>i.value,R=>{we(),R&&(s=new ResizeObserver(()=>{r&&r.update()}),s.observe(R))}),a.watch(()=>o.placement,c,{immediate:!0}),a.onMounted(()=>{F()}),a.onUnmounted(()=>{m(),we(),q()}),{...a.toRefs(o),popoverRef:i,alignment:f,hide:S,setupPopper:g,beforeEnter:ee,afterEnter:ne,beforeLeave:K,afterLeave:ie,onClick:me,onMouseOver:J,onMouseLeave:he,onFocusIn:fe,onFocusOut:ye}}}),ar=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function sW(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[a.createVNode(a.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:a.withCtx(()=>[t.isVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[a.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[a.createTextVNode(a.toDisplayString(t.data),1)]),a.createElementVNode("span",{class:a.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):a.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const $0=ar(iW,[["render",sW]]),rW={class:"vc-day-popover-row"},aW={key:0,class:"vc-day-popover-row-indicator"},oW={class:"vc-day-popover-row-label"},lW=a.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=a.computed(()=>{const{content:i,highlight:s,dot:r,bar:o,popover:c}=e.attribute;return c&&c.hideIndicator?null:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(a.openBlock(),a.createElementBlock("div",rW,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",aW,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",oW,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),cW={inheritAttrs:!1},vi=a.defineComponent({...cW,__name:"CalendarSlot",props:{name:null},setup(t){const n=R5(t.name);return(i,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),a.normalizeProps(a.mergeProps({key:0},i.$attrs)),null,16)):a.renderSlot(i.$slots,"default",{key:1})}}),dW={class:"vc-day-popover-container"},uW={key:0,class:"vc-day-popover-header"},hW=a.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:r}=Gr();function o(d,h){return r.value.formatDate(d,h)}function c(d){return r.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),class:a.normalizeClass([`vc-${a.unref(i)}`,`vc-${a.unref(n)}`])},{default:a.withCtx(({data:{day:f,attributes:m},hide:g})=>[a.createVNode(vi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:a.unref(s),hide:g},{default:a.withCtx(()=>[a.createElementVNode("div",dW,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",uW,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,y=>(a.openBlock(),a.createBlock(lW,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),fW={},pW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},mW=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function gW(t,e){return a.openBlock(),a.createElementBlock("svg",pW,mW)}const _W=ar(fW,[["render",gW]]),yW={},vW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},bW=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function wW(t,e){return a.openBlock(),a.createElementBlock("svg",vW,bW)}const kW=ar(yW,[["render",wW]]),CW={},xW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},SW=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function MW(t,e){return a.openBlock(),a.createElementBlock("svg",xW,SW)}const OW=ar(CW,[["render",MW]]),DW={},EW={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},BW=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function TW(t,e){return a.openBlock(),a.createElementBlock("svg",EW,BW)}const VW=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:OW,IconChevronLeft:kW,IconChevronRight:_W,IconClock:ar(DW,[["render",TW]])},Symbol.toStringTag,{value:"Module"})),to=a.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=a.computed(()=>e.width||e.size),i=a.computed(()=>e.height||e.size),s=a.computed(()=>VW[`Icon${e.name}`]);return(r,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s)),{width:a.unref(n),height:a.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),IW=["disabled"],AW={key:1,class:"vc-title-wrapper"},$W={type:"button",class:"vc-title"},NW=["disabled"],W5=a.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:i,canMovePrev:s,movePrev:r,canMoveNext:o,moveNext:c}=Gr(),d=a.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=a.computed(()=>{const{page:k}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:k},isInteractive:!0}}),f=a.computed(()=>e.page.titlePosition.includes("left")),m=a.computed(()=>e.page.titlePosition.includes("right")),g=a.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=a.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=a.computed(()=>({gridTemplateColumns:g.value.split("").map(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(k,C)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:a.normalizeStyle(a.unref(b))},[a.unref(y).prev?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!a.unref(s),onClick:C[0]||(C[0]=(...S)=>a.unref(r)&&a.unref(r)(...S)),onKeydown:C[1]||(C[1]=a.withKeys((...S)=>a.unref(r)&&a.unref(r)(...S),["space","enter"]))},[a.createVNode(vi,{name:"header-prev-button",disabled:!a.unref(s)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,IW)):a.createCommentVNode("",!0),a.unref(y).title?(a.openBlock(),a.createElementBlock("div",AW,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",$W,[a.createVNode(vi,{name:"header-title",title:t.page.title},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[a.unref(A5),a.unref(h)]])]),_:1})])):a.createCommentVNode("",!0),a.unref(y).next?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!a.unref(o),onClick:C[2]||(C[2]=(...S)=>a.unref(c)&&a.unref(c)(...S)),onKeydown:C[3]||(C[3]=a.withKeys((...S)=>a.unref(c)&&a.unref(c)(...S),["space","enter"]))},[a.createVNode(vi,{name:"header-next-button",disabled:!a.unref(o)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,NW)):a.createCommentVNode("",!0)],6))}}),Y5=Symbol("__vc_page_context__");function zW(t){const{locale:e,getDateAddress:n,canMove:i}=Gr();function s(c,d){const{month:h,year:f}=n(new Date);return M5().map((m,g)=>{const y=g+1;return{month:y,year:c,id:KR(y,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:y===t.value.month&&c===t.value.year,isCurrent:y===h&&c===f,isDisabled:!i({month:y,year:c},{position:t.value.position})}})}function r(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const y=[...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:!y})}return m}const o={page:t,getMonthItems:s,getYearItems:r};return a.provide(Y5,o),o}function j5(){const t=a.inject(Y5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const PW={class:"vc-nav-header"},LW=["disabled"],FW=["disabled"],RW={class:"vc-nav-items"},HW=["data-id","aria-label","disabled","onClick","onKeydown"],WW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Gr(),{page:i,getMonthItems:s,getYearItems:r}=j5(),o=a.ref(!0),c=12,d=a.ref(i.value.year),h=a.ref(g(i.value.year)),f=a.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const oe=f.value.querySelector(".vc-nav-item:not(:disabled)");oe&&oe.focus()},10)}function g(oe){return Math.floor(oe/c)}function y(){o.value=!o.value}function b(oe){return oe*c}function k(oe){return c*(oe+1)-1}function C(){!fe.value||(o.value&&E(),x())}function S(){!ye.value||(o.value&&A(),V())}function E(){d.value--}function A(){d.value++}function x(){h.value--}function V(){h.value++}const N=a.computed(()=>s(d.value,e.value.navMonths).map(oe=>({...oe,click:()=>n({month:oe.month,year:oe.year},{position:i.value.position})}))),L=a.computed(()=>s(d.value-1,e.value.navMonths)),F=a.computed(()=>L.value.some(oe=>!oe.isDisabled)),q=a.computed(()=>s(d.value+1,e.value.navMonths)),ee=a.computed(()=>q.value.some(oe=>!oe.isDisabled)),ne=a.computed(()=>r(b(h.value),k(h.value)).map(oe=>({...oe,click:()=>{d.value=oe.year,o.value=!0,m()}}))),K=a.computed(()=>r(b(h.value-1),k(h.value-1))),ie=a.computed(()=>K.value.some(oe=>!oe.isDisabled)),me=a.computed(()=>r(b(h.value+1),k(h.value+1))),J=a.computed(()=>me.value.some(oe=>!oe.isDisabled)),he=a.computed(()=>o.value?N.value:ne.value),fe=a.computed(()=>o.value?F.value:ie.value),ye=a.computed(()=>o.value?ee.value:J.value),we=a.computed(()=>W_(ne.value.map(oe=>oe.year))),R=a.computed(()=>Ka(ne.value.map(oe=>oe.year))),pe=a.computed(()=>o.value?d.value:`${we.value} - ${R.value}`);return a.watchEffect(()=>{d.value=i.value.year,m()}),a.watch(()=>d.value,oe=>h.value=g(oe)),a.onMounted(()=>m()),(oe,Ee)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[a.createElementVNode("div",PW,[a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!a.unref(fe),onClick:C,onKeydown:Ee[0]||(Ee[0]=Me=>a.unref(Qd)(Me,C))},[a.createVNode(vi,{name:"nav-prev-button",move:C,disabled:!a.unref(fe)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,LW),a.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:Ee[1]||(Ee[1]=Me=>a.unref(Qd)(Me,y))},a.toDisplayString(a.unref(pe)),33),a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!a.unref(ye),onClick:S,onKeydown:Ee[2]||(Ee[2]=Me=>a.unref(Qd)(Me,S))},[a.createVNode(vi,{name:"nav-next-button",move:S,disabled:!a.unref(ye)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,FW)]),a.createElementVNode("div",RW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(he),Me=>(a.openBlock(),a.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:a.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:ge=>a.unref(Qd)(ge,Me.click)},a.toDisplayString(Me.label),43,HW))),128))])],512))}}),U5=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return zW(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),YW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Gr();return(s,r)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),class:a.normalizeClass(["vc-nav-popover-container",`vc-${a.unref(n)}`,`vc-${a.unref(i)}`])},{default:a.withCtx(({data:o})=>[a.createVNode(U5,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(WW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),jW=a.defineComponent({directives:{popover:A5},components:{CalendarSlot:vi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:r,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Gr(),m=a.computed(()=>t.day),g=a.computed(()=>i.value.getCells(m.value)),y=a.computed(()=>g.value.map(J=>J.data)),b=a.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function k({data:J},{popovers:he}){const{key:fe,customData:ye,popover:we}=J;if(!we)return;const R=D_({key:fe,customData:ye,attribute:J},{...we},{visibility:we.label?"hover":"click",placement:"bottom",isInteractive:!we.label});he.splice(0,0,R)}const C=a.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(he=>{n.value.render(he,J),k(he,J)}),J}),S=a.computed(()=>C.value.highlights),E=a.computed(()=>!!Cs(S.value)),A=a.computed(()=>C.value.content),x=a.computed(()=>C.value.dots),V=a.computed(()=>!!Cs(x.value)),N=a.computed(()=>C.value.bars),L=a.computed(()=>!!Cs(N.value)),F=a.computed(()=>C.value.popovers),q=a.computed(()=>F.value.map(J=>J.attribute)),ee=R5("day-content"),ne=a.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=a.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const he=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Ur(Ka(S.value),"contentClass"),Ur(Ka(A.value),"class")||""],fe={...Ur(Ka(S.value),"contentStyle"),...Ur(Ka(A.value),"style")};return{class:he,style:fe,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ie=a.computed(()=>({click(J){r(b.value,J)},mouseenter(J){o(b.value,J)},mouseleave(J){c(b.value,J)},focusin(J){d(b.value,J)},focusout(J){h(b.value,J)},keydown(J){f(b.value,J)}})),me=a.computed(()=>Cs(F.value)?D_({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:y,attributeCells:g,bars:N,dayClasses:ne,dayContentProps:K,dayContentEvents:ie,dayPopover:me,glyphs:C,dots:x,hasDots:V,hasBars:L,highlights:S,hasHighlights:E,locale:e,popovers:F}}}),UW={key:0,class:"vc-highlights vc-day-layer"},qW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},GW={class:"vc-dots"},KW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},ZW={class:"vc-bars"};function XW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarSlot"),c=a.resolveDirective("popover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.dayClasses)},[t.hasHighlights?(a.openBlock(),a.createElementBlock("div",UW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(h)},[a.createElementVNode("div",{class:a.normalizeClass(f),style:a.normalizeStyle(m)},null,6)],2))),128))])):a.createCommentVNode("",!0),a.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps(t.dayContentProps,a.toHandlers(t.dayContentEvents,!0)),[a.createTextVNode(a.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(a.openBlock(),a.createElementBlock("div",qW,[a.createElementVNode("div",GW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dots,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0),t.hasBars?(a.openBlock(),a.createElementBlock("div",KW,[a.createElementVNode("div",ZW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.bars,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0)],2)}const JW=ar(jW,[["render",XW]]),QW={class:"vc-weekdays"},eY=["onClick"],tY={inheritAttrs:!1},nY=a.defineComponent({...tY,__name:"CalendarPage",setup(t){const{page:e}=j5(),{onWeeknumberClick:n}=Gr();return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-pane",`row-${a.unref(e).row}`,`row-from-end-${a.unref(e).rowFromEnd}`,`column-${a.unref(e).column}`,`column-from-end-${a.unref(e).columnFromEnd}`]),ref:"pane"},[a.createVNode(W5,{page:a.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),a.createElementVNode("div",{class:a.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${a.unref(e).weeknumberPosition}`]:a.unref(e).weeknumberPosition}])},[a.createElementVNode("div",QW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).weekdays,({weekday:r,label:o},c)=>(a.openBlock(),a.createElementBlock("div",{key:c,class:a.normalizeClass(`vc-weekday vc-weekday-${r}`)},a.toDisplayString(o),3))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).viewWeeks,r=>(a.openBlock(),a.createElementBlock("div",{key:`weeknumber-${r.weeknumber}`,class:"vc-week"},[a.unref(e).weeknumberPosition?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["vc-weeknumber",`is-${a.unref(e).weeknumberPosition}`])},[a.createElementVNode("span",{class:a.normalizeClass(["vc-weeknumber-content"]),onClick:o=>a.unref(n)(r,o)},a.toDisplayString(r.weeknumberDisplay),9,eY)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(JW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),iY=a.defineComponent({components:{CalendarHeader:W5,CalendarPage:nY,CalendarNavPopover:YW,CalendarDayPopover:hW,CalendarPageProvider:U5,CalendarSlot:vi},props:eW,emit:tW,setup(t,{emit:e,slots:n}){return nW(t,{emit:e,slots:n})}}),sY={class:"vc-pane-header-wrapper"};function rY(t,e,n,i,s,r){const o=a.resolveComponent("CalendarHeader"),c=a.resolveComponent("CalendarPage"),d=a.resolveComponent("CalendarSlot"),h=a.resolveComponent("CalendarPageProvider"),f=a.resolveComponent("CalendarDayPopover"),m=a.resolveComponent("CalendarNavPopover");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[a.createElementVNode("div",{class:a.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[a.createElementVNode("div",sY,[t.firstPage?(a.openBlock(),a.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):a.createCommentVNode("",!0)]),a.createVNode(a.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:a.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.pages,g=>(a.openBlock(),a.createBlock(h,{key:g.id,page:g},{default:a.withCtx(()=>[a.createVNode(d,{name:"page",page:g},{default:a.withCtx(()=>[a.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),a.createVNode(d,{name:"footer"})],2)],16),a.createVNode(f),a.createVNode(m)],64)}const aY=ar(iY,[["render",rY]]),q5=Symbol("__vc_date_picker_context__"),oY={...z5,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:()=>sr("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>sr("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},lY=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function cY(t,{emit:e,slots:n}){F5(n,{footer:"dp-footer"});const i=P5(t),{locale:s,masks:r,disabledAttribute:o}=i,c=a.ref(!1),d=a.ref(Symbol()),h=a.ref(null),f=a.ref(null),m=a.ref(["",""]),g=a.ref(null),y=a.ref(null);let b,k,C=!0;const S=a.computed(()=>t.isRange||t.modelModifiers.range===!0),E=a.computed(()=>S.value&&h.value!=null?h.value.start:null),A=a.computed(()=>S.value&&h.value!=null?h.value.end:null),x=a.computed(()=>t.mode.toLowerCase()==="date"),V=a.computed(()=>t.mode.toLowerCase()==="datetime"),N=a.computed(()=>t.mode.toLowerCase()==="time"),L=a.computed(()=>!!f.value),F=a.computed(()=>{let B="date";t.modelModifiers.number&&(B="number"),t.modelModifiers.string&&(B="string");const Y=r.value.modelValue||"iso";return Ee({type:B,mask:Y})}),q=a.computed(()=>nn(f.value??h.value)),ee=a.computed(()=>N.value?t.is24hr?r.value.inputTime24hr:r.value.inputTime:V.value?t.is24hr?r.value.inputDateTime24hr:r.value.inputDateTime:r.value.input),ne=a.computed(()=>/[Hh]/g.test(ee.value)),K=a.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),ie=a.computed(()=>{if(ne.value&&K.value)return"dateTime";if(K.value)return"date";if(ne.value)return"time"}),me=a.computed(()=>{var B;const Y=((B=g.value)==null?void 0:B.$el.previousElementSibling)??void 0;return Ll({},t.popover,sr("datePicker.popover"),{target:Y})}),J=a.computed(()=>T5({...me.value,id:d.value})),he=a.computed(()=>S.value?{start:m.value[0],end:m.value[1]}:m.value[0]),fe=a.computed(()=>{const B=["start","end"].map(Y=>({input:ft(Y),change:Ct(Y),keyup:tn,...t.popover&&J.value}));return S.value?{start:B[0],end:B[1]}:B[0]}),ye=a.computed(()=>{if(!lt(h.value))return null;const B={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:se,highlight:Ce,content:Ye}=B;return!Y&&!se&&!Ce&&!Ye&&(B.highlight=!0),B}),we=a.computed(()=>{if(!S.value||!lt(f.value))return null;const B={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:se,highlight:Ce,content:Ye}=B;return!Y&&!se&&!Ce&&!Ye&&(B.highlight={startEnd:{fillMode:"outline"}}),B}),R=a.computed(()=>{const B=yi(t.attributes)?[...t.attributes]:[];return we.value?B.unshift(we.value):ye.value&&B.unshift(ye.value),B}),pe=a.computed(()=>Ee(t.rules==="auto"?oe():t.rules??{}));function oe(){const B={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=x.value?0:t.timeAccuracy;return[0,1].map(se=>{switch(Y){case 0:return{hours:B.hr[se],minutes:B.min[se],seconds:B.sec[se],milliseconds:B.ms[se]};case 1:return{minutes:B.min[se],seconds:B.sec[se],milliseconds:B.ms[se]};case 3:return{milliseconds:B.ms[se]};case 4:return{};default:return{seconds:B.sec[se],milliseconds:B.ms[se]}}})}function Ee(B){return yi(B)?B.length===1?[B[0],B[0]]:B:[B,B]}function Me(B){return Ee(B).map((Y,se)=>({...Y,rules:pe.value[se]}))}function ge(B){return B==null?!1:Fi(B)?!isNaN(B):Za(B)?!isNaN(B.getTime()):ss(B)?B!=="":E0(B)}function Ne(B){return ks(B)&&"start"in B&&"end"in B&&ge(B.start??null)&&ge(B.end??null)}function lt(B){return Ne(B)||ge(B)}function Le(B,Y){if(B==null&&Y==null)return!0;if(B==null||Y==null)return!1;const se=Za(B),Ce=Za(Y);return se&&Ce?B.getTime()===Y.getTime():se||Ce?!1:Le(B.start,Y.start)&&Le(B.end,Y.end)}function ht(B){return!lt(B)||!o.value?!1:o.value.intersectsRange(s.value.range(B))}function It(B,Y,se,Ce){if(!lt(B))return null;if(Ne(B)){const Ye=s.value.toDate(B.start,{...Y[0],fillDate:E.value??void 0,patch:se}),at=s.value.toDate(B.end,{...Y[1],fillDate:A.value??void 0,patch:se});return Vn({start:Ye,end:at},Ce)}return s.value.toDateOrNull(B,{...Y[0],fillDate:h.value,patch:se})}function kt(B,Y){return Ne(B)?{start:s.value.fromDate(B.start,Y[0]),end:s.value.fromDate(B.end,Y[1])}:S.value?null:s.value.fromDate(B,Y[0])}function tt(B,Y={}){return clearTimeout(b),new Promise(se=>{const{debounce:Ce=0,...Ye}=Y;Ce>0?b=window.setTimeout(()=>{se(st(B,Ye))},Ce):se(st(B,Ye))})}function st(B,{config:Y=F.value,patch:se="dateTime",clearIfEqual:Ce=!1,formatInput:Ye=!0,hidePopover:at=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const Un=Me(Y);let pt=It(B,Un,se,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 xn=xt?f:h,ni=!Le(xn.value,pt);xn.value=pt,xt||(f.value=null);const Hi=kt(pt,F.value);return ni&&(C=!1,e(xt?"drag":"update:modelValue",Hi),a.nextTick(()=>C=!0)),at&&!xt&&We(),Ye&&rt(),Gt&&a.nextTick(()=>le(sn??"start")),Hi}function rt(){a.nextTick(()=>{const B=Me({type:"string",mask:ee.value}),Y=kt(f.value??h.value,B);S.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(B,Y,se){m.value.splice(Y==="start"?0:1,1,B);const Ce=S.value?{start:m.value[0],end:m.value[1]||m.value[0]}:B,Ye={type:"string",mask:ee.value};tt(Ce,{...se,config:Ye,patch:ie.value,targetPriority:Y,moveToValue:!0})}function ft(B){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,B,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function Ct(B){return Y=>{Yt(Y.currentTarget.value,B,{formatInput:!0,hidePopover:!1})}}function tn(B){B.key==="Escape"&&tt(h.value,{formatInput:!0,hidePopover:!0})}function nn(B){return S.value?[B&&B.start?s.value.getDateParts(B.start):null,B&&B.end?s.value.getDateParts(B.end):null]:[B?s.value.getDateParts(B):null]}function bt(){f.value=null,rt()}function nt(B){e("popover-will-show",B)}function Nt(B){e("popover-did-show",B)}function Ot(B){bt(),e("popover-will-hide",B)}function At(B){e("popover-did-hide",B)}function Dt(B){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(S.value){const se=!L.value;se?k={start:B.startDate,end:B.endDate}:k!=null&&(k.end=B.date),tt(k,{...Y,dragging:se})}else tt(B.date,{...Y,clearIfEqual:!t.isRequired})}function un(B,Y){Dt(B),e("dayclick",B,Y)}function $t(B,Y){switch(Y.key){case" ":case"Enter":{Dt(B),Y.preventDefault();break}case"Escape":We()}e("daykeydown",B,Y)}function te(B,Y){!L.value||k==null||(k.end=B.date,tt(Vn(k),{patch:"date",formatInput:!0}))}function Ie(B={}){V0({...me.value,...B,isInteractive:!0,id:d.value})}function We(B={}){Wl({hideDelay:10,force:!0,...me.value,...B,id:d.value})}function pn(B){B5({...me.value,...B,isInteractive:!0,id:d.value})}function Vn(B,Y){const{start:se,end:Ce}=B;if(se>Ce)switch(Y){case"start":return{start:se,end:se};case"end":return{start:Ce,end:Ce};default:return{start:Ce,end:se}}return{start:se,end:Ce}}async function jn(B,Y={}){return y.value==null?!1:y.value.move(B,Y)}async function j(B,Y={}){return y.value==null?!1:y.value.moveBy(B,Y)}async function le(B,Y={}){const se=h.value;if(y.value==null||!lt(se))return!1;const Ce=B!=="end",Ye=Ce?1:-1,at=Ne(se)?Ce?se.start:se.end:se,xt=a5(at,"monthly",s.value);return y.value.move(xt,{position:Ye,...Y})}a.watch(()=>t.isRange,B=>{B&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),a.watch(()=>S.value,()=>{st(null,{formatInput:!0})}),a.watch(()=>ee.value,()=>rt()),a.watch(()=>t.modelValue,B=>{!C||st(B,{formatInput:!0,hidePopover:!1})}),a.watch(()=>pe.value,()=>{ks(t.rules)&&st(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.watch(()=>t.timezone,()=>{st(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=It(t.modelValue??null,ve,"dateTime"),a.onMounted(()=>{st(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:y,isRange:S,isTimeMode:N,isDateTimeMode:V,is24hr:a.toRef(t,"is24hr"),hideTimeHeader:a.toRef(t,"hideTimeHeader"),timeAccuracy:a.toRef(t,"timeAccuracy"),isDragging:L,inputValue:he,inputEvents:fe,dateParts:q,attributes:R,rules:pe,move:jn,moveBy:j,moveToValue:le,updateValue:tt,showPopover:Ie,hidePopover:We,togglePopover:pn,onDayClick:un,onDayKeydown:$t,onDayMouseEnter:te,onPopoverBeforeShow:nt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Ot,onPopoverAfterHide:At};return a.provide(q5,W),W}function N0(){const t=a.inject(q5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const dY=[{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"}],uY=[{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 hY(t){const e=N0(),{locale:n,isRange:i,isTimeMode:s,dateParts:r,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(y.value,K);let ie=null;if(i.value){const me=g.value?K:r.value[0],J=g.value?r.value[1]:K;ie={start:me,end:J}}else ie=K;f(ie,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=a.computed(()=>t.position===0),y=a.computed(()=>r.value[t.position]||{isValid:!1}),b=a.computed(()=>E0(y.value)),k=a.computed(()=>!!y.value.isValid),C=a.computed(()=>!d.value&&k.value),S=a.computed(()=>{if(!b.value)return null;let K=n.value.toDate(y.value);return y.value.hours===24&&(K=new Date(K.getTime()-1)),K}),E=a.computed({get(){return y.value.hours},set(K){m({hours:K})}}),A=a.computed({get(){return y.value.minutes},set(K){m({minutes:K})}}),x=a.computed({get(){return y.value.seconds},set(K){m({seconds:K})}}),V=a.computed({get(){return y.value.milliseconds},set(K){m({milliseconds:K})}}),N=a.computed({get(){return y.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let ie=E.value;K&&ie>=12?ie-=12:!K&&ie<12&&(ie+=12),m({hours:ie})}}),L=a.computed(()=>$H(y.value,o.value[t.position])),F=a.computed(()=>dY.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>uY.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),ee=a.computed(()=>c.value?L.value.hours:N.value?F.value:q.value),ne=a.computed(()=>{const K=[];return Cs(F.value)&&K.push({value:!0,label:"AM"}),Cs(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:C,timeAccuracy:h,parts:y,isValid:k,date:S,hours:E,minutes:A,seconds:x,milliseconds:V,options:L,hourOptions:ee,isAM:N,isAMOptions:ne,is24hr:c}}const fY=["value"],pY=["value","disabled"],mY={key:1,class:"vc-base-sizer","aria-hidden":"true"},gY={inheritAttrs:!1},Yl=a.defineComponent({...gY,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=a.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[a.createElementVNode("select",a.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=r=>i.$emit("update:modelValue",r.target.value))}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.options,r=>(a.openBlock(),a.createElementBlock("option",{key:r.value,value:r.value,disabled:r.disabled},a.toDisplayString(r.label),9,pY))),128))],16,fY),t.showIcon?(a.openBlock(),a.createBlock(to,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",mY,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),_Y={key:0,class:"vc-time-header"},yY={class:"vc-time-weekday"},vY={class:"vc-time-month"},bY={class:"vc-time-day"},wY={class:"vc-time-year"},kY={class:"vc-time-select-group"},CY=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),xY=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),SY=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),G5=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=hY(t);e(i);const{locale:s,isValid:r,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:b,isAMOptions:k,is24hr:C,showHeader:S,timeAccuracy:E}=i;return(A,x)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-time-picker",[{"vc-invalid":!a.unref(r),"vc-attached":!a.unref(y)}]])},[a.createVNode(vi,{name:"time-header"},{default:a.withCtx(()=>[a.unref(S)&&a.unref(o)?(a.openBlock(),a.createElementBlock("div",_Y,[a.createElementVNode("span",yY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",vY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",bY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",wY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",kY,[a.createVNode(to,{name:"Clock",size:"17"}),a.createVNode(Yl,{modelValue:a.unref(c),"onUpdate:modelValue":x[0]||(x[0]=V=>a.isRef(c)?c.value=V:null),modelModifiers:{number:!0},options:a.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),a.unref(E)>1?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[CY,a.createVNode(Yl,{modelValue:a.unref(d),"onUpdate:modelValue":x[1]||(x[1]=V=>a.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:a.unref(m).minutes,class:"vc-time-select-minutes","align-left":a.unref(E)===2},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(E)>2?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[xY,a.createVNode(Yl,{modelValue:a.unref(h),"onUpdate:modelValue":x[2]||(x[2]=V=>a.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:a.unref(m).seconds,class:"vc-time-select-seconds","align-left":a.unref(E)===3},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(E)>3?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[SY,a.createVNode(Yl,{modelValue:a.unref(f),"onUpdate:modelValue":x[3]||(x[3]=V=>a.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:a.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):a.createCommentVNode("",!0),a.unref(C)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Yl,{key:3,modelValue:a.unref(b),"onUpdate:modelValue":x[4]||(x[4]=V=>a.isRef(b)?b.value=V:null),options:a.unref(k)},null,8,["modelValue","options"]))])],2))}}),K5=a.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:r,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=N0(),m=c.value?[0,1]:[0];return(g,y)=>a.unref(o)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`vc-container vc-bordered vc-${a.unref(i)} vc-${a.unref(s)}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(G5,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(aY,{key:1,attributes:a.unref(e),ref_key:"calendarRef",ref:n,onDayclick:a.unref(d),onDaymouseenter:a.unref(h),onDaykeydown:a.unref(f)},{footer:a.withCtx(()=>[a.unref(r)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(G5,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),MY={inheritAttrs:!1},OY=a.defineComponent({...MY,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=N0();return(h,f)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),placement:"bottom-start",class:a.normalizeClass(`vc-date-picker-content vc-${a.unref(n)} vc-${a.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:a.unref(r),onAfterShow:a.unref(o),onBeforeHide:a.unref(c),onAfterHide:a.unref(d)},{default:a.withCtx(()=>[a.createVNode(K5,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),DY=a.defineComponent({inheritAttrs:!1,emits:lY,props:oY,components:{DatePickerBase:K5,DatePickerPopover:OY},setup(t,e){const n=cY(t,e),i=a.reactive(U_(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function EY(t,e,n,i,s,r){const o=a.resolveComponent("DatePickerPopover"),c=a.resolveComponent("DatePickerBase");return t.$slots.default?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps(t.slotCtx))),a.createVNode(o,a.normalizeProps(a.guardReactiveProps(t.$attrs)),null,16)],64)):(a.openBlock(),a.createBlock(c,a.normalizeProps(a.mergeProps({key:1},t.$attrs)),null,16))}const Z5=ar(DY,[["render",EY]]),yue="";var Ri={exports:{}};/**
43
+ */const gO={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"}};mg._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 gO},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 Vde="";pi.register(..._h);const _O={components:{Line:uS},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:Hn,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 r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){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 r=i.name;n[r]||(n[r]=e.slice()),i.data.length>0&&(i.backgroundColor=n[r][s%n[r].length],i.borderColor=n[r][s%n[r].length]),i.borderRadius=6})},checkDashed(){this.chartOptions.borderDash=[this.borderDash[0],this.borderDash[1]]}}},yO={class:"responsive-container"};function vO(t,e,n,i,s,r){const o=a.resolveComponent("Line");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",yO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const bO=re(_O,[["render",vO],["__scopeId","data-v-88deb5d1"]]),Ide="",wO={components:{Pie:hS},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:Hn,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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},kO={class:"responsive-container"};function CO(t,e,n,i,s,r){const o=a.resolveComponent("Pie");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",kO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const xO=re(wO,[["render",CO],["__scopeId","data-v-df415374"]]),Ade="",SO={components:{PolarArea:fS},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:Hn,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 r={label:this.showLabelName?s.name:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=6})}}},MO={class:"responsive-container"};function OO(t,e,n,i,s,r){const o=a.resolveComponent("PolarArea");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",MO,[a.createVNode(o,{data:s.localChartData,options:s.chartOptions},null,8,["data","options"])])])}const DO=re(SO,[["render",OO],["__scopeId","data-v-386a0dc0"]]),$de="";pi.register(..._h);const EO={components:{Bar:B2},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:Hn,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 r={label:s.label,data:s.data,name:s.name,borderRadius:6};e.datasets.push(r)})}),this.palete();const n=this.generateBackgroundColor();this.setColors(e.datasets,n),this.localChartData=e},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 r=i.name;let o=1;s%5===0&&(n=0),o+=n,n++,e[r]=this.getPalete(i.variant)[o],i.backgroundColor=e[r],i.borderRadius=6})},setColors(t,e){const n={};this.chartOptions.plugins.legend.display=!0,t.forEach(i=>{const s=i.name;let r;t.length===1&&(r=2,n[s]=e[r],this.chartOptions.plugins.legend.display=!1),n[s]||(r=Object.keys(n).length%e.length,n[s]=e[r]),i.backgroundColor=n[s],i.borderRadius=6})}}},BO={class:"responsive-container"};function TO(t,e,n,i,s,r){const o=a.resolveComponent("Bar");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",BO,[a.createVNode(o,{is:"bar",data:s.localChartData,options:s.chartOptions,plugins:s.plugins},null,8,["data","options","plugins"])])])}const VO=re(EO,[["render",TO],["__scopeId","data-v-a0e865bb"]]),Nde="",Fh={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}}},o4=()=>{a.useCssVars(t=>({"6d4c0f4d":t.marginBottomResolver,d6616fae:t.marginLeftResolver,"0baf3274":t.marginRightResolver,"7c666dff":t.marginTopResolver,"561264d4":t.paddingBottomResolver,17295920:t.paddingLeftResolver,e3e47742:t.paddingRightResolver,"9def4450":t.paddingTopResolver}))},l4=Fh.setup;Fh.setup=l4?(t,e)=>(o4(),l4(t,e)):o4;const IO=Fh,AO={class:"spacer"};function $O(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",AO,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ld=re(IO,[["render",$O],["__scopeId","data-v-5aebf225"]]);function Rh(t,e=24){let n=t/8,i=n%4;return`${n>e?e:n-i+4}px`}const zde="",Hh={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:Rh,handleClick(){this.clickable&&this.$emit("boxClick",!0)}}},c4=()=>{a.useCssVars(t=>({"8bf1f4e6":t.widthResolver,"337f1943":t.borderRadiusResolver}))},d4=Hh.setup;Hh.setup=d4?(t,e)=>(c4(),d4(t,e)):c4;const NO=Hh;function zO(t,e,n,i,s,r){const o=a.resolveComponent("cds-spacer"),c=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("div",{ref:"cds-box",class:a.normalizeClass(n.elevated?"box--elevated":`box--${n.variant}`)},[a.createVNode(c,{class:"box__container",clickable:n.clickable,onClick:r.handleClick},{default:a.withCtx(()=>[a.createVNode(o,{"padding-top":n.padding,"padding-right":n.padding,"padding-bottom":n.padding,"padding-left":n.padding},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["padding-top","padding-right","padding-bottom","padding-left"])]),_:3},8,["clickable","onClick"])],2)}const $l=re(NO,[["render",zO],["__scopeId","data-v-34f9c778"]]),Pde="",PO={directives:{"on-click-outside":Mr.directive},components:{"cds-icon":Ze},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Onde encontrar o meu CNS"}},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"}}},LO=t=>(a.pushScopeId("data-v-2058822e"),t=t(),a.popScopeId(),t),FO={key:0},RO=LO(()=>a.createElementVNode("div",{class:"bottom-sheet__header-border"},[a.createElementVNode("div",{class:"bottom-sheet__header-border-line"})],-1)),HO={class:"bottom-sheet__header"},WO={class:"bottom-sheet__title"},YO={class:"bottom-sheet__content"};function jO(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("on-click-outside");return s.internalModelValue?(a.openBlock(),a.createElementBlock("div",FO,[a.createElementVNode("div",{class:a.normalizeClass(s.toggleAnimationClass?"backdrop__show":"backdrop__hide")},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(s.toggleAnimationClass?"bottom-sheet__show":"bottom-sheet__hide")},[RO,a.createElementVNode("div",HO,[a.createElementVNode("div",WO,a.toDisplayString(n.title),1),a.createElementVNode("div",{class:"bottom-sheet__close-icon",onClick:e[0]||(e[0]=(...d)=>r.closeHandle&&r.closeHandle(...d))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})])]),a.createElementVNode("div",YO,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],2)),[[c,r.closeHandle]])],2)])):a.createCommentVNode("",!0)}const UO=re(PO,[["render",jO],["__scopeId","data-v-2058822e"]]);var Wh={exports:{}};(function(t,e){var n=9007199254740991,i="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",g=/[\\^$.*+?()[\]{}|]/g,y=/^\[object .+?Constructor\]$/,b=typeof cn=="object"&&cn&&cn.Object===Object&&cn,k=typeof self=="object"&&self&&self.Object===Object&&self,C=b||k||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 V(te){var Ie=!1;if(te!=null&&typeof te.toString!="function")try{Ie=!!(te+"")}catch{}return Ie}function N(te,Ie){return function(We){return te(Ie(We))}}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:""}(),ne=L.toString,K=F.hasOwnProperty,ie=F.toString,me=RegExp("^"+ne.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 ie.call(te)}function kt(te){if(!Dt(te)||rt(te))return!1;var Ie=Ot(te)||V(te)?me:y;return Ie.test(ft(te))}function tt(te,Ie){var We=x(te,Ie);return kt(We)?We: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=ie.call(te),We=Ie==c?te.constructor:void 0,pn=We?ft(We):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,We=typeof Ie=="function"&&Ie.prototype||F;return te===We}function ft(te){if(te!=null){try{return ne.call(te)}catch{}try{return te+""}catch{}}return""}function Ct(te){return bt(te)&&K.call(te,"callee")&&(!he.call(te,"callee")||ie.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 We in te)if(K.call(te,We))return!1;return!0}function Ot(te){var Ie=Dt(te)?ie.call(te):"";return Ie==s||Ie==r}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})(Wh,Wh.exports);const Jt=Wh.exports,Lde="",qO={components:{CdsIcon:Ze,CdsSpacer:Ld,CdsClickable:hs},props:{items:{type:Array,default:()=>[],required:!0}},methods:{resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null}}},GO={class:"breadcrumb"};function KO(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("router-link"),h=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("nav",null,[a.createElementVNode("ul",GO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(f,m)=>(a.openBlock(),a.createElementBlock("li",{key:`${m}-${f.name}-item`,role:"presentation"},[m===0?(a.openBlock(),a.createBlock(h,{key:0,clickable:""},{default:a.withCtx(()=>[a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[n.items.length<=2?(a.openBlock(),a.createBlock(o,{key:0,height:"16",width:"16",name:"arrow-left-outline"})):(a.openBlock(),a.createBlock(o,{key:1,height:"15",width:"15",name:"home-outline"})),a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:1,class:"breadcrumb__item","margin-right":"1","margin-left":"1"},{default:a.withCtx(()=>[a.createVNode(o,{height:"16",width:"16",name:"caret-right-outline",class:"breadcrumb__separator"}),a.createVNode(d,{to:r.routerPushTo(f),class:"breadcrumb__link"},{default:a.withCtx(()=>[a.createVNode(h,{clickable:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.label),1)]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024))]))),128))])])}const ZO=re(qO,[["render",KO],["__scopeId","data-v-c2046c1c"]]),Fde="",Yh={props:{src:{type:String,required:!0},fallbackSrc:{type:String,required:!1},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},alt:{type:String,default:"Imagem"},opacity:{type:[Number,String],default:1},dimmed:{type:Boolean,default:!1},blackAndWhite:{type:Boolean,default:!1},roundedCorners:{type:Boolean,default:!1}},data(){return{innerSrc:this.src}},computed:{heightResolver(){return this.height?`${this.height}px`:"auto"},widthResolver(){return this.width?`${this.width}px`:"auto"},opacityResolver(){return this.width?`${this.width}px`:"auto"},radiusResolver(){return this.roundedCorners?Rh(this.width):"0px"},grayScaleResolver(){return this.blackAndWhite?"grayscale(100%)":this.dimmed?"grayscale(35%)":"grayscale(0%)"}},methods:{rounder:Rh,imageSrcResolver(){this.innerSrc=this.fallbackSrc}}},u4=()=>{a.useCssVars(t=>({"21136de6":t.radiusResolver,e10ed842:t.grayScaleResolver,"31ae2d7b":t.heightResolver,"1e7f7c9d":t.opacity,"775376fe":t.widthResolver}))},h4=Yh.setup;Yh.setup=h4?(t,e)=>(u4(),h4(t,e)):u4;const XO=Yh,JO=["src","alt"];function QO(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("img",a.mergeProps(t.$attrs,{src:s.innerSrc,alt:n.alt,class:"cds__image",onError:e[0]||(e[0]=(...o)=>r.imageSrcResolver&&r.imageSrcResolver(...o))}),null,16,JO)}const f4=re(XO,[["render",QO],["__scopeId","data-v-79754f28"]]),jh=(t,e)=>Object.keys(t).some(n=>n===e),Rde="",Uh={components:{CdsBox:$l,CdsImage:f4},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:jh,handleClick(){this.clickable&&this.$emit("cardClick",!0)}}},p4=()=>{a.useCssVars(t=>({"8d304056":t.bodyWidthResolver,"4730bd46":t.imageWidthResolver}))},m4=Uh.setup;Uh.setup=m4?(t,e)=>(p4(),m4(t,e)):p4;const eD=Uh,tD={class:"card__extra-container"},nD={class:"card__extra"},iD={key:0},sD={key:1,class:"card__image"},rD={key:2,class:"card__icon"},aD={class:"card__spacer"},oD={key:0,class:"card__header"},lD={key:1},cD={class:"card__header"},dD={key:2,class:"card__body"},uD={key:3},hD={class:"card__body"},fD={key:4,class:"card__footer"};function pD(t,e,n,i,s,r){const o=a.resolveComponent("cds-image"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{padding:"0",clickable:n.clickable,onBoxClick:r.handleClick},{default:a.withCtx(()=>[a.createElementVNode("div",tD,[a.createElementVNode("div",nD,[a.renderSlot(t.$slots,"extra",{},void 0,!0)])]),a.createElementVNode("div",{class:a.normalizeClass({"card--horizontal":this.horizontal})},[r.hasSlot(t.$slots,"image")?(a.openBlock(),a.createElementBlock("div",iD,[a.renderSlot(t.$slots,"image",{},void 0,!0)])):n.imageSrc?(a.openBlock(),a.createElementBlock("div",sD,[a.createVNode(o,{src:n.imageSrc,width:n.imageWidth,height:n.imageHeight,alt:n.imageAlt},null,8,["src","width","height","alt"])])):r.hasSlot(t.$slots,"icon")?(a.openBlock(),a.createElementBlock("div",rD,[a.renderSlot(t.$slots,"icon",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",aD,[r.hasSlot(t.$slots,"header")?(a.openBlock(),a.createElementBlock("div",oD,[a.renderSlot(t.$slots,"header",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",lD,[a.createElementVNode("p",cD,a.toDisplayString(n.title),1)])),r.hasSlot(t.$slots,"body")?(a.openBlock(),a.createElementBlock("div",dD,[a.renderSlot(t.$slots,"body",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("div",uD,[a.createElementVNode("p",hD,a.toDisplayString(n.content),1)])),r.hasSlot(t.$slots,"footer")?(a.openBlock(),a.createElementBlock("div",fD,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)])],2)]),_:3},8,["clickable","onBoxClick"])}const mD=re(eD,[["render",pD],["__scopeId","data-v-ef799654"]]),Hde="",gD={components:{CdsButton:Sr},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}}},_D={id:"callout-card"},yD={class:"image__container"},vD=["src","alt"],bD={class:"content__title"},wD={class:"content__text"};function kD(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("span",_D,[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("callout-card__container"))},[a.createElementVNode("div",yD,[a.createElementVNode("img",{class:a.normalizeClass(r.resolveClass("image__content")),src:n.image,alt:n.imageDescription},null,10,vD)]),a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content__container"))},[a.createElementVNode("div",{class:a.normalizeClass(r.resolveClass("content"))},[a.createElementVNode("p",bD,a.toDisplayString(n.title),1),a.createElementVNode("span",wD,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])],2),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"action",{},()=>[a.createVNode(o,{id:"content-button",variant:n.actionButtonVariant,text:n.actionButtonText,secondary:n.actionButtonSecondary,disabled:n.actionButtonDisabled,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["variant","text","secondary","disabled"])])])],2)],2)])}const CD=re(gD,[["render",kD]]),Wde="",xD={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}))}}}},SD={key:0,class:"carousel-controller__text"},MD={key:1,class:"carousel-controller__text"},OD={class:"carousel-controller__property"};function DD(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["carousel-controller",{"carousel-controller--fluid":n.fluid}])},[a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__previous-button--disabled":r.disabledBack,"carousel-controller__previous-button":!r.disabledBack}),onClick:e[0]||(e[0]=(...o)=>r.handleClickBack&&r.handleClickBack(...o))},null,2),a.createElementVNode("div",null,[n.simple?(a.openBlock(),a.createElementBlock("span",MD,a.toDisplayString(s.currentNumberOfItemsMin)+" de "+a.toDisplayString(r.numberOfPages),1)):(a.openBlock(),a.createElementBlock("span",SD,a.toDisplayString(s.currentNumberOfItemsMin)+"-"+a.toDisplayString(s.currentNumberOfItemsMax)+" de "+a.toDisplayString(n.total),1)),a.createElementVNode("span",OD,a.toDisplayString(n.propertyName),1)]),a.createElementVNode("span",{class:a.normalizeClass({"carousel-controller__next-button--disabled":r.disabledForward,"carousel-controller__next-button":!r.disabledForward}),onClick:e[1]||(e[1]=(...o)=>r.handleClickForward&&r.handleClickForward(...o))},null,2)],2)])}const ED=re(xD,[["render",DD],["__scopeId","data-v-fcb19a0a"]]);function g4(t,e){return`${t}--${e}`}const Yde="",BD={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=g4("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))}}},TD={class:"cds-checkbox__container"},VD={class:"cds-checkbox__input"},ID=["id","value","name","disabled"],AD=["for"],$D=["for"];function ND(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",TD,[a.createElementVNode("div",VD,[a.createElementVNode("input",{id:t.$attrs.id||"cds-checkbox-option-input",value:n.modelValue,type:"checkbox",name:t.$attrs.name||"cds-checkbox-option",disabled:n.disabled},null,8,ID),a.createElementVNode("label",{for:t.$attrs.id||"cds-checkbox-option-input",class:a.normalizeClass(r.resolveCheckboxClass),onClick:e[0]||(e[0]=(...o)=>r.toggleValue&&r.toggleValue(...o))},null,10,AD)]),a.createElementVNode("label",{class:a.normalizeClass(["cds-checkbox__label",{"cds-checkbox__label--disabled":n.disabled,"cds-checkbox__label--prominent":n.prominent&&n.modelValue}]),for:t.$attrs.id||"cds-checkbox-option-input",onClick:e[1]||(e[1]=(...o)=>r.toggleValue&&r.toggleValue(...o))},a.toDisplayString(n.label),11,$D)])}const qh=re(BD,[["render",ND],["__scopeId","data-v-0758b096"]]),jde="",zD={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}}},PD={id:"collapsible-container"},LD={class:"collapsible-container__title"},FD={key:0,class:"collapsible-container__content"};function RD(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",PD,[a.createElementVNode("div",{class:"collapsible-container__item",onClick:e[0]||(e[0]=(...o)=>r.triggerExpanded&&r.triggerExpanded(...o))},[a.createElementVNode("span",{class:a.normalizeClass(s.internalValue?"collapsible-container__chevron--opened":"collapsible-container__chevron--closed")},null,2),a.renderSlot(t.$slots,"title",{},()=>[a.createElementVNode("span",LD,a.toDisplayString(n.title),1)])]),s.internalValue?(a.openBlock(),a.createElementBlock("div",FD,[a.renderSlot(t.$slots,"default")])):a.createCommentVNode("",!0)])}const HD=re(zD,[["render",RD]]),Gh=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},WD=.2126,YD=.7152,jD=.0722,UD=2.4,qD={POOR:3,GOOD:4.5,VERYGOOD:7,SUPER:12},GD=(t,e,n="GOOD")=>{let i=Gh(t),s=Gh(e);var r=_4(...i),o=_4(...s),c=Math.max(r,o),d=Math.min(r,o);return(c+.05)/(d+.05)>=qD[n]};function _4(t,e,n){var i=[t,e,n].map(s=>(s/=255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,UD)));return i[0]*WD+i[1]*YD+i[2]*jD}const Ude="",Kh={components:{CdsPopover:Pc,CdsIcon:Ze},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:Hn,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:GD,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,"")]}}},y4=()=>{a.useCssVars(t=>({f73e5680:t.selectedColor}))},v4=Kh.setup;Kh.setup=v4?(t,e)=>(y4(),v4(t,e)):y4;const KD=Kh,ZD=t=>(a.pushScopeId("data-v-a4ff5e3b"),t=t(),a.popScopeId(),t),XD={key:0},JD={class:"color-picker__label"},QD=["onClick"],eE={key:1},tE=[ZD(()=>a.createElementVNode("div",{class:"color-picker__preview"},null,-1))],nE=["onClick"];function iE(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-popover");return n.inline?(a.openBlock(),a.createElementBlock("div",XD,[a.createElementVNode("div",JD,a.toDisplayString(n.label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"color-picker__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,QD)]))),128))]))),128))])):(a.openBlock(),a.createElementBlock("div",eE,[a.createElementVNode("div",{id:"color-picker",class:"color-picker__trigger",onClick:e[0]||(e[0]=a.withModifiers(d=>s.showPopover=!s.showPopover,["stop"]))},tE),a.createVNode(c,{modelValue:s.showPopover,"onUpdate:modelValue":e[1]||(e[1]=d=>s.showPopover=d),"right-aligned":!1,"target-id":"color-picker",height:n.popoverHeight,"fit-content-width":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.swatch,(d,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:"popover__container"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d,(f,m)=>(a.openBlock(),a.createElementBlock("div",{key:m},[a.createElementVNode("div",{class:a.normalizeClass(`color-picker__swatch--${f.replace("$","")}`),onClick:g=>r.SwatchSelection(f)},[r.isCurrentColorSelected(f)?(a.openBlock(),a.createBlock(o,{key:0,height:"22",width:"22",name:"check-outline",class:a.normalizeClass(["swatch__icon",r.iconColorResolver])},null,8,["class"])):a.createCommentVNode("",!0)],10,nE)]))),128))]))),128))]),_:1},8,["modelValue","height"])]))}const sE=re(KD,[["render",iE],["__scopeId","data-v-a4ff5e3b"]]),Gde="",rE={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}}},aE={class:"dashboard-card"},oE={class:"dashboard-card__header"},lE={key:0,class:"dashboard-card__title"},cE={key:1,class:"dashboard-card__title"},dE={key:0,class:"dashboard-card__description"},uE={key:1,class:"dashboard-card__description"},hE={key:0};function fE(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",aE,[a.createElementVNode("div",null,[a.createElementVNode("div",oE,[n.title.length>0?(a.openBlock(),a.createElementBlock("p",lE,a.toDisplayString(n.title),1)):(a.openBlock(),a.createElementBlock("p",cE,[a.renderSlot(t.$slots,"title-slot",{},void 0,!0)])),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"status-slot",{},void 0,!0)])]),n.description.length>0?(a.openBlock(),a.createElementBlock("p",dE,a.toDisplayString(n.description),1)):(a.openBlock(),a.createElementBlock("p",uE,[a.renderSlot(t.$slots,"description-slot",{},void 0,!0)]))]),a.createElementVNode("div",{class:"dashboard-card__action",onClick:e[0]||(e[0]=o=>t.$emit("action-button-click"))},[a.renderSlot(t.$slots,"action-slot",{},()=>[n.showAction?(a.openBlock(),a.createElementBlock("div",hE,a.toDisplayString(n.action),1)):a.createCommentVNode("",!0)],!0)])])}const pE=re(rE,[["render",fE],["__scopeId","data-v-cd0db219"]]);var mE=Object.defineProperty,gE=(t,e,n)=>e in t?mE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xe=(t,e,n)=>(gE(t,typeof e!="symbol"?e+"":e,n),n),Fd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _E=Object.prototype,yE=_E.hasOwnProperty;function vE(t,e){return t!=null&&yE.call(t,e)}var bE=vE,wE=Array.isArray,Li=wE,kE=typeof Fd=="object"&&Fd&&Fd.Object===Object&&Fd,w4=kE,CE=w4,xE=typeof self=="object"&&self&&self.Object===Object&&self,SE=CE||xE||Function("return this")(),ns=SE,ME=ns,OE=ME.Symbol,Rd=OE,k4=Rd,C4=Object.prototype,DE=C4.hasOwnProperty,EE=C4.toString,Nl=k4?k4.toStringTag:void 0;function BE(t){var e=DE.call(t,Nl),n=t[Nl];try{t[Nl]=void 0;var i=!0}catch{}var s=EE.call(t);return i&&(e?t[Nl]=n:delete t[Nl]),s}var TE=BE,VE=Object.prototype,IE=VE.toString;function AE(t){return IE.call(t)}var $E=AE,x4=Rd,NE=TE,zE=$E,PE="[object Null]",LE="[object Undefined]",S4=x4?x4.toStringTag:void 0;function FE(t){return t==null?t===void 0?LE:PE:S4&&S4 in Object(t)?NE(t):zE(t)}var is=FE;function RE(t){return t!=null&&typeof t=="object"}var Fi=RE,HE=is,WE=Fi,YE="[object Symbol]";function jE(t){return typeof t=="symbol"||WE(t)&&HE(t)==YE}var Zh=jE,UE=Li,qE=Zh,GE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KE=/^\w*$/;function ZE(t,e){if(UE(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||qE(t)?!0:KE.test(t)||!GE.test(t)||e!=null&&t in Object(e)}var Xh=ZE;function XE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ws=XE,JE=is,QE=ws,eB="[object AsyncFunction]",tB="[object Function]",nB="[object GeneratorFunction]",iB="[object Proxy]";function sB(t){if(!QE(t))return!1;var e=JE(t);return e==tB||e==nB||e==eB||e==iB}var Wr=sB,rB=ns,aB=rB["__core-js_shared__"],oB=aB,Jh=oB,M4=function(){var t=/[^.]+$/.exec(Jh&&Jh.keys&&Jh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function lB(t){return!!M4&&M4 in t}var cB=lB,dB=Function.prototype,uB=dB.toString;function hB(t){if(t!=null){try{return uB.call(t)}catch{}try{return t+""}catch{}}return""}var O4=hB,fB=Wr,pB=cB,mB=ws,gB=O4,_B=/[\\^$.*+?()[\]{}|]/g,yB=/^\[object .+?Constructor\]$/,vB=Function.prototype,bB=Object.prototype,wB=vB.toString,kB=bB.hasOwnProperty,CB=RegExp("^"+wB.call(kB).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xB(t){if(!mB(t)||pB(t))return!1;var e=fB(t)?CB:yB;return e.test(gB(t))}var SB=xB;function MB(t,e){return t==null?void 0:t[e]}var OB=MB,DB=SB,EB=OB;function BB(t,e){var n=EB(t,e);return DB(n)?n:void 0}var Yr=BB,TB=Yr,VB=TB(Object,"create"),Hd=VB,D4=Hd;function IB(){this.__data__=D4?D4(null):{},this.size=0}var AB=IB;function $B(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var NB=$B,zB=Hd,PB="__lodash_hash_undefined__",LB=Object.prototype,FB=LB.hasOwnProperty;function RB(t){var e=this.__data__;if(zB){var n=e[t];return n===PB?void 0:n}return FB.call(e,t)?e[t]:void 0}var HB=RB,WB=Hd,YB=Object.prototype,jB=YB.hasOwnProperty;function UB(t){var e=this.__data__;return WB?e[t]!==void 0:jB.call(e,t)}var qB=UB,GB=Hd,KB="__lodash_hash_undefined__";function ZB(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=GB&&e===void 0?KB:e,this}var XB=ZB,JB=AB,QB=NB,eT=HB,tT=qB,nT=XB;function Ha(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ha.prototype.clear=JB,Ha.prototype.delete=QB,Ha.prototype.get=eT,Ha.prototype.has=tT,Ha.prototype.set=nT;var iT=Ha;function sT(){this.__data__=[],this.size=0}var rT=sT;function aT(t,e){return t===e||t!==t&&e!==e}var Wa=aT,oT=Wa;function lT(t,e){for(var n=t.length;n--;)if(oT(t[n][0],e))return n;return-1}var Wd=lT,cT=Wd,dT=Array.prototype,uT=dT.splice;function hT(t){var e=this.__data__,n=cT(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():uT.call(e,n,1),--this.size,!0}var fT=hT,pT=Wd;function mT(t){var e=this.__data__,n=pT(e,t);return n<0?void 0:e[n][1]}var gT=mT,_T=Wd;function yT(t){return _T(this.__data__,t)>-1}var vT=yT,bT=Wd;function wT(t,e){var n=this.__data__,i=bT(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var kT=wT,CT=rT,xT=fT,ST=gT,MT=vT,OT=kT;function Ya(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])}}Ya.prototype.clear=CT,Ya.prototype.delete=xT,Ya.prototype.get=ST,Ya.prototype.has=MT,Ya.prototype.set=OT;var Yd=Ya,DT=Yr,ET=ns,BT=DT(ET,"Map"),Qh=BT,E4=iT,TT=Yd,VT=Qh;function IT(){this.size=0,this.__data__={hash:new E4,map:new(VT||TT),string:new E4}}var AT=IT;function $T(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var NT=$T,zT=NT;function PT(t,e){var n=t.__data__;return zT(e)?n[typeof e=="string"?"string":"hash"]:n.map}var jd=PT,LT=jd;function FT(t){var e=LT(this,t).delete(t);return this.size-=e?1:0,e}var RT=FT,HT=jd;function WT(t){return HT(this,t).get(t)}var YT=WT,jT=jd;function UT(t){return jT(this,t).has(t)}var qT=UT,GT=jd;function KT(t,e){var n=GT(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var ZT=KT,XT=AT,JT=RT,QT=YT,eV=qT,tV=ZT;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=XT,ja.prototype.delete=JT,ja.prototype.get=QT,ja.prototype.has=eV,ja.prototype.set=tV;var e0=ja,B4=e0,nV="Expected a function";function t0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(nV);var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],r=n.cache;if(r.has(s))return r.get(s);var o=t.apply(this,i);return n.cache=r.set(s,o)||r,o};return n.cache=new(t0.Cache||B4),n}t0.Cache=B4;var iV=t0,sV=iV,rV=500;function aV(t){var e=sV(t,function(i){return n.size===rV&&n.clear(),i}),n=e.cache;return e}var oV=aV,lV=oV,cV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dV=/\\(\\)?/g,uV=lV(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(cV,function(n,i,s,r){e.push(s?r.replace(dV,"$1"):i||n)}),e}),hV=uV;function fV(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 pV=fV,T4=Rd,mV=pV,gV=Li,_V=Zh,yV=1/0,V4=T4?T4.prototype:void 0,I4=V4?V4.toString:void 0;function A4(t){if(typeof t=="string")return t;if(gV(t))return mV(t,A4)+"";if(_V(t))return I4?I4.call(t):"";var e=t+"";return e=="0"&&1/t==-yV?"-0":e}var vV=A4,bV=vV;function wV(t){return t==null?"":bV(t)}var kV=wV,CV=Li,xV=Xh,SV=hV,MV=kV;function OV(t,e){return CV(t)?t:xV(t,e)?[t]:SV(MV(t))}var $4=OV,DV=is,EV=Fi,BV="[object Arguments]";function TV(t){return EV(t)&&DV(t)==BV}var VV=TV,N4=VV,IV=Fi,z4=Object.prototype,AV=z4.hasOwnProperty,$V=z4.propertyIsEnumerable,NV=N4(function(){return arguments}())?N4:function(t){return IV(t)&&AV.call(t,"callee")&&!$V.call(t,"callee")},n0=NV,zV=9007199254740991,PV=/^(?:0|[1-9]\d*)$/;function LV(t,e){var n=typeof t;return e=e??zV,!!e&&(n=="number"||n!="symbol"&&PV.test(t))&&t>-1&&t%1==0&&t<e}var i0=LV,FV=9007199254740991;function RV(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=FV}var s0=RV,HV=Zh,WV=1/0;function YV(t){if(typeof t=="string"||HV(t))return t;var e=t+"";return e=="0"&&1/t==-WV?"-0":e}var Ud=YV,jV=$4,UV=n0,qV=Li,GV=i0,KV=s0,ZV=Ud;function XV(t,e,n){e=jV(e,t);for(var i=-1,s=e.length,r=!1;++i<s;){var o=ZV(e[i]);if(!(r=t!=null&&n(t,o)))break;t=t[o]}return r||++i!=s?r:(s=t==null?0:t.length,!!s&&KV(s)&&GV(o,s)&&(qV(t)||UV(t)))}var P4=XV,JV=bE,QV=P4;function eI(t,e){return t!=null&&QV(t,e,JV)}var L4=eI,tI=is,nI=Fi,iI="[object Date]";function sI(t){return nI(t)&&tI(t)==iI}var rI=sI;function aI(t){return function(e){return t(e)}}var F4=aI,zl={},oI={get exports(){return zl},set exports(t){zl=t}};(function(t,e){var n=w4,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r&&n.process,c=function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();t.exports=c})(oI,zl);var lI=rI,cI=F4,R4=zl,H4=R4&&R4.isDate,dI=H4?cI(H4):lI,uI=dI,hI=is,fI=Li,pI=Fi,mI="[object String]";function gI(t){return typeof t=="string"||!fI(t)&&pI(t)&&hI(t)==mI}var ss=gI;function _I(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 W4=_I,yI=Yd;function vI(){this.__data__=new yI,this.size=0}var bI=vI;function wI(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var kI=wI;function CI(t){return this.__data__.get(t)}var xI=CI;function SI(t){return this.__data__.has(t)}var MI=SI,OI=Yd,DI=Qh,EI=e0,BI=200;function TI(t,e){var n=this.__data__;if(n instanceof OI){var i=n.__data__;if(!DI||i.length<BI-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new EI(i)}return n.set(t,e),this.size=n.size,this}var VI=TI,II=Yd,AI=bI,$I=kI,NI=xI,zI=MI,PI=VI;function Ua(t){var e=this.__data__=new II(t);this.size=e.size}Ua.prototype.clear=AI,Ua.prototype.delete=$I,Ua.prototype.get=NI,Ua.prototype.has=zI,Ua.prototype.set=PI;var r0=Ua,LI="__lodash_hash_undefined__";function FI(t){return this.__data__.set(t,LI),this}var RI=FI;function HI(t){return this.__data__.has(t)}var WI=HI,YI=e0,jI=RI,UI=WI;function qd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new YI;++e<n;)this.add(t[e])}qd.prototype.add=qd.prototype.push=jI,qd.prototype.has=UI;var qI=qd;function GI(t,e){return t.has(e)}var KI=GI,ZI=qI,XI=W4,JI=KI,QI=1,eA=2;function tA(t,e,n,i,s,r){var o=n&QI,c=t.length,d=e.length;if(c!=d&&!(o&&d>c))return!1;var h=r.get(t),f=r.get(e);if(h&&f)return h==e&&f==t;var m=-1,g=!0,y=n&eA?new ZI:void 0;for(r.set(t,e),r.set(e,t);++m<c;){var b=t[m],k=e[m];if(i)var C=o?i(k,b,m,e,t,r):i(b,k,m,t,e,r);if(C!==void 0){if(C)continue;g=!1;break}if(y){if(!XI(e,function(S,E){if(!JI(y,E)&&(b===S||s(b,S,n,i,r)))return y.push(E)})){g=!1;break}}else if(!(b===k||s(b,k,n,i,r))){g=!1;break}}return r.delete(t),r.delete(e),g}var Y4=tA,nA=ns,iA=nA.Uint8Array,j4=iA;function sA(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n}var rA=sA;function aA(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var oA=aA,U4=Rd,q4=j4,lA=Wa,cA=Y4,dA=rA,uA=oA,hA=1,fA=2,pA="[object Boolean]",mA="[object Date]",gA="[object Error]",_A="[object Map]",yA="[object Number]",vA="[object RegExp]",bA="[object Set]",wA="[object String]",kA="[object Symbol]",CA="[object ArrayBuffer]",xA="[object DataView]",G4=U4?U4.prototype:void 0,a0=G4?G4.valueOf:void 0;function SA(t,e,n,i,s,r,o){switch(n){case xA:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CA:return!(t.byteLength!=e.byteLength||!r(new q4(t),new q4(e)));case pA:case mA:case yA:return lA(+t,+e);case gA:return t.name==e.name&&t.message==e.message;case vA:case wA:return t==e+"";case _A:var c=dA;case bA:var d=i&hA;if(c||(c=uA),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;i|=fA,o.set(t,e);var f=cA(c(t),c(e),i,s,r,o);return o.delete(t),f;case kA:if(a0)return a0.call(t)==a0.call(e)}return!1}var MA=SA;function OA(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var DA=OA,EA=DA,BA=Li;function TA(t,e,n){var i=e(t);return BA(t)?i:EA(i,n(t))}var VA=TA;function IA(t,e){for(var n=-1,i=t==null?0:t.length,s=0,r=[];++n<i;){var o=t[n];e(o,n,t)&&(r[s++]=o)}return r}var AA=IA;function $A(){return[]}var NA=$A,zA=AA,PA=NA,LA=Object.prototype,FA=LA.propertyIsEnumerable,K4=Object.getOwnPropertySymbols,RA=K4?function(t){return t==null?[]:(t=Object(t),zA(K4(t),function(e){return FA.call(t,e)}))}:PA,HA=RA;function WA(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var YA=WA,qa={},jA={get exports(){return qa},set exports(t){qa=t}};function UA(){return!1}var qA=UA;(function(t,e){var n=ns,i=qA,s=e&&!e.nodeType&&e,r=s&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===s,c=o?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(jA,qa);var GA=is,KA=s0,ZA=Fi,XA="[object Arguments]",JA="[object Array]",QA="[object Boolean]",e$="[object Date]",t$="[object Error]",n$="[object Function]",i$="[object Map]",s$="[object Number]",r$="[object Object]",a$="[object RegExp]",o$="[object Set]",l$="[object String]",c$="[object WeakMap]",d$="[object ArrayBuffer]",u$="[object DataView]",h$="[object Float32Array]",f$="[object Float64Array]",p$="[object Int8Array]",m$="[object Int16Array]",g$="[object Int32Array]",_$="[object Uint8Array]",y$="[object Uint8ClampedArray]",v$="[object Uint16Array]",b$="[object Uint32Array]",Vt={};Vt[h$]=Vt[f$]=Vt[p$]=Vt[m$]=Vt[g$]=Vt[_$]=Vt[y$]=Vt[v$]=Vt[b$]=!0,Vt[XA]=Vt[JA]=Vt[d$]=Vt[QA]=Vt[u$]=Vt[e$]=Vt[t$]=Vt[n$]=Vt[i$]=Vt[s$]=Vt[r$]=Vt[a$]=Vt[o$]=Vt[l$]=Vt[c$]=!1;function w$(t){return ZA(t)&&KA(t.length)&&!!Vt[GA(t)]}var k$=w$,C$=k$,x$=F4,Z4=zl,X4=Z4&&Z4.isTypedArray,S$=X4?x$(X4):C$,o0=S$,M$=YA,O$=n0,D$=Li,E$=qa,B$=i0,T$=o0,V$=Object.prototype,I$=V$.hasOwnProperty;function A$(t,e){var n=D$(t),i=!n&&O$(t),s=!n&&!i&&E$(t),r=!n&&!i&&!s&&T$(t),o=n||i||s||r,c=o?M$(t.length,String):[],d=c.length;for(var h in t)(e||I$.call(t,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||B$(h,d)))&&c.push(h);return c}var J4=A$,$$=Object.prototype;function N$(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||$$;return t===n}var l0=N$;function z$(t,e){return function(n){return t(e(n))}}var Q4=z$,P$=Q4,L$=P$(Object.keys,Object),F$=L$,R$=l0,H$=F$,W$=Object.prototype,Y$=W$.hasOwnProperty;function j$(t){if(!R$(t))return H$(t);var e=[];for(var n in Object(t))Y$.call(t,n)&&n!="constructor"&&e.push(n);return e}var U$=j$,q$=Wr,G$=s0;function K$(t){return t!=null&&G$(t.length)&&!q$(t)}var Pl=K$,Z$=J4,X$=U$,J$=Pl;function Q$(t){return J$(t)?Z$(t):X$(t)}var c0=Q$,eN=VA,tN=HA,nN=c0;function iN(t){return eN(t,nN,tN)}var sN=iN,e_=sN,rN=1,aN=Object.prototype,oN=aN.hasOwnProperty;function lN(t,e,n,i,s,r){var o=n&rN,c=e_(t),d=c.length,h=e_(e),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=c[m];if(!(o?g in e:oN.call(e,g)))return!1}var y=r.get(t),b=r.get(e);if(y&&b)return y==e&&b==t;var k=!0;r.set(t,e),r.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,r):i(S,E,g,t,e,r);if(!(A===void 0?S===E||s(S,E,n,i,r):A)){k=!1;break}C||(C=g=="constructor")}if(k&&!C){var x=t.constructor,V=e.constructor;x!=V&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof V=="function"&&V instanceof V)&&(k=!1)}return r.delete(t),r.delete(e),k}var cN=lN,dN=Yr,uN=ns,hN=dN(uN,"DataView"),fN=hN,pN=Yr,mN=ns,gN=pN(mN,"Promise"),_N=gN,yN=Yr,vN=ns,bN=yN(vN,"Set"),wN=bN,kN=Yr,CN=ns,xN=kN(CN,"WeakMap"),SN=xN,d0=fN,u0=Qh,h0=_N,f0=wN,p0=SN,t_=is,Ga=O4,n_="[object Map]",MN="[object Object]",i_="[object Promise]",s_="[object Set]",r_="[object WeakMap]",a_="[object DataView]",ON=Ga(d0),DN=Ga(u0),EN=Ga(h0),BN=Ga(f0),TN=Ga(p0),jr=t_;(d0&&jr(new d0(new ArrayBuffer(1)))!=a_||u0&&jr(new u0)!=n_||h0&&jr(h0.resolve())!=i_||f0&&jr(new f0)!=s_||p0&&jr(new p0)!=r_)&&(jr=function(t){var e=t_(t),n=e==MN?t.constructor:void 0,i=n?Ga(n):"";if(i)switch(i){case ON:return a_;case DN:return n_;case EN:return i_;case BN:return s_;case TN:return r_}return e});var VN=jr,m0=r0,IN=Y4,AN=MA,$N=cN,o_=VN,l_=Li,c_=qa,NN=o0,zN=1,d_="[object Arguments]",u_="[object Array]",Gd="[object Object]",PN=Object.prototype,h_=PN.hasOwnProperty;function LN(t,e,n,i,s,r){var o=l_(t),c=l_(e),d=o?u_:o_(t),h=c?u_:o_(e);d=d==d_?Gd:d,h=h==d_?Gd:h;var f=d==Gd,m=h==Gd,g=d==h;if(g&&c_(t)){if(!c_(e))return!1;o=!0,f=!1}if(g&&!f)return r||(r=new m0),o||NN(t)?IN(t,e,n,i,s,r):AN(t,e,d,n,i,s,r);if(!(n&zN)){var y=f&&h_.call(t,"__wrapped__"),b=m&&h_.call(e,"__wrapped__");if(y||b){var k=y?t.value():t,C=b?e.value():e;return r||(r=new m0),s(k,C,n,i,r)}}return g?(r||(r=new m0),$N(t,e,n,i,s,r)):!1}var FN=LN,RN=FN,f_=Fi;function p_(t,e,n,i,s){return t===e?!0:t==null||e==null||!f_(t)&&!f_(e)?t!==t&&e!==e:RN(t,e,n,i,p_,s)}var m_=p_,HN=r0,WN=m_,YN=1,jN=2;function UN(t,e,n,i){var s=n.length,r=s,o=!i;if(t==null)return!r;for(t=Object(t);s--;){var c=n[s];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<r;){c=n[s];var d=c[0],h=t[d],f=c[1];if(o&&c[2]){if(h===void 0&&!(d in t))return!1}else{var m=new HN;if(i)var g=i(h,f,d,t,e,m);if(!(g===void 0?WN(f,h,YN|jN,i,m):g))return!1}}return!0}var qN=UN,GN=ws;function KN(t){return t===t&&!GN(t)}var g_=KN,ZN=g_,XN=c0;function JN(t){for(var e=XN(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,ZN(s)]}return e}var QN=JN;function ez(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var __=ez,tz=qN,nz=QN,iz=__;function sz(t){var e=nz(t);return e.length==1&&e[0][2]?iz(e[0][0],e[0][1]):function(n){return n===t||tz(n,t,e)}}var rz=sz,az=$4,oz=Ud;function lz(t,e){e=az(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[oz(e[n++])];return n&&n==i?t:void 0}var y_=lz,cz=y_;function dz(t,e,n){var i=t==null?void 0:cz(t,e);return i===void 0?n:i}var Ur=dz;function uz(t,e){return t!=null&&e in Object(t)}var hz=uz,fz=hz,pz=P4;function mz(t,e){return t!=null&&pz(t,e,fz)}var gz=mz,_z=m_,yz=Ur,vz=gz,bz=Xh,wz=g_,kz=__,Cz=Ud,xz=1,Sz=2;function Mz(t,e){return bz(t)&&wz(e)?kz(Cz(t),e):function(n){var i=yz(n,t);return i===void 0&&i===e?vz(n,t):_z(e,i,xz|Sz)}}var Oz=Mz;function Dz(t){return t}var g0=Dz;function Ez(t){return function(e){return e==null?void 0:e[t]}}var Bz=Ez,Tz=y_;function Vz(t){return function(e){return Tz(e,t)}}var Iz=Vz,Az=Bz,$z=Iz,Nz=Xh,zz=Ud;function Pz(t){return Nz(t)?Az(zz(t)):$z(t)}var Lz=Pz,Fz=rz,Rz=Oz,Hz=g0,Wz=Li,Yz=Lz;function jz(t){return typeof t=="function"?t:t==null?Hz:typeof t=="object"?Wz(t)?Rz(t[0],t[1]):Fz(t):Yz(t)}var v_=jz;function Uz(t){return function(e,n,i){for(var s=-1,r=Object(e),o=i(e),c=o.length;c--;){var d=o[t?c:++s];if(n(r[d],d,r)===!1)break}return e}}var qz=Uz,Gz=qz,Kz=Gz(),b_=Kz,Zz=b_,Xz=c0;function Jz(t,e){return t&&Zz(t,e,Xz)}var w_=Jz,Qz=Pl;function eP(t,e){return function(n,i){if(n==null)return n;if(!Qz(n))return t(n,i);for(var s=n.length,r=e?s:-1,o=Object(n);(e?r--:++r<s)&&i(o[r],r,o)!==!1;);return n}}var tP=eP,nP=w_,iP=tP,sP=iP(nP),rP=sP,aP=rP;function oP(t,e){var n;return aP(t,function(i,s,r){return n=e(i,s,r),!n}),!!n}var lP=oP,cP=Wa,dP=Pl,uP=i0,hP=ws;function fP(t,e,n){if(!hP(n))return!1;var i=typeof e;return(i=="number"?dP(n)&&uP(e,n.length):i=="string"&&e in n)?cP(n[e],t):!1}var _0=fP,pP=W4,mP=v_,gP=lP,_P=Li,yP=_0;function vP(t,e,n){var i=_P(t)?pP:gP;return n&&yP(t,e,n)&&(e=void 0),i(t,mP(e))}var bP=vP,wP=is,kP=Fi,CP="[object Boolean]";function xP(t){return t===!0||t===!1||kP(t)&&wP(t)==CP}var SP=xP,MP=is,OP=Fi,DP="[object Number]";function EP(t){return typeof t=="number"||OP(t)&&MP(t)==DP}var Ri=EP,BP=Yr,TP=function(){try{var t=BP(Object,"defineProperty");return t({},"",{}),t}catch{}}(),k_=TP,C_=k_;function VP(t,e,n){e=="__proto__"&&C_?C_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Kd=VP,IP=Kd,AP=Wa,$P=Object.prototype,NP=$P.hasOwnProperty;function zP(t,e,n){var i=t[e];(!(NP.call(t,e)&&AP(i,n))||n===void 0&&!(e in t))&&IP(t,e,n)}var PP=zP,LP=Kd,FP=w_,RP=v_;function HP(t,e){var n={};return e=RP(e),FP(t,function(i,s,r){LP(n,s,e(i,s,r))}),n}var WP=HP;function YP(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 x_=YP,jP=x_,S_=Math.max;function UP(t,e,n){return e=S_(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,r=S_(i.length-e,0),o=Array(r);++s<r;)o[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(o),jP(t,this,c)}}var qP=UP;function GP(t){return function(){return t}}var KP=GP,ZP=KP,M_=k_,XP=g0,JP=M_?function(t,e){return M_(t,"toString",{configurable:!0,enumerable:!1,value:ZP(e),writable:!0})}:XP,QP=JP,eL=800,tL=16,nL=Date.now;function iL(t){var e=0,n=0;return function(){var i=nL(),s=tL-(i-n);if(n=i,s>0){if(++e>=eL)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var sL=iL,rL=QP,aL=sL,oL=aL(rL),lL=oL,cL=g0,dL=qP,uL=lL;function hL(t,e){return uL(dL(t,e,cL),t+"")}var y0=hL;function fL(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var pL=fL,mL=ws,gL=l0,_L=pL,yL=Object.prototype,vL=yL.hasOwnProperty;function bL(t){if(!mL(t))return _L(t);var e=gL(t),n=[];for(var i in t)i=="constructor"&&(e||!vL.call(t,i))||n.push(i);return n}var wL=bL,kL=J4,CL=wL,xL=Pl;function SL(t){return xL(t)?kL(t,!0):CL(t)}var v0=SL,ML=y0,OL=Wa,DL=_0,EL=v0,O_=Object.prototype,BL=O_.hasOwnProperty,TL=ML(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&DL(e[0],e[1],s)&&(i=1);++n<i;)for(var r=e[n],o=EL(r),c=-1,d=o.length;++c<d;){var h=o[c],f=t[h];(f===void 0||OL(f,O_[h])&&!BL.call(t,h))&&(t[h]=r[h])}return t}),D_=TL,VL=Kd,IL=Wa;function AL(t,e,n){(n!==void 0&&!IL(t[e],n)||n===void 0&&!(e in t))&&VL(t,e,n)}var E_=AL,Zd={},$L={get exports(){return Zd},set exports(t){Zd=t}};(function(t,e){var n=ns,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,r=s&&s.exports===i,o=r?n.Buffer:void 0,c=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=c?c(m):new h.constructor(m);return h.copy(g),g}t.exports=d})($L,Zd);var B_=j4;function NL(t){var e=new t.constructor(t.byteLength);return new B_(e).set(new B_(t)),e}var zL=NL,PL=zL;function LL(t,e){var n=e?PL(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var FL=LL;function RL(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var HL=RL,WL=ws,T_=Object.create,YL=function(){function t(){}return function(e){if(!WL(e))return{};if(T_)return T_(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),jL=YL,UL=Q4,qL=UL(Object.getPrototypeOf,Object),V_=qL,GL=jL,KL=V_,ZL=l0;function XL(t){return typeof t.constructor=="function"&&!ZL(t)?GL(KL(t)):{}}var JL=XL,QL=Pl,eF=Fi;function tF(t){return eF(t)&&QL(t)}var nF=tF,iF=is,sF=V_,rF=Fi,aF="[object Object]",oF=Function.prototype,lF=Object.prototype,I_=oF.toString,cF=lF.hasOwnProperty,dF=I_.call(Object);function uF(t){if(!rF(t)||iF(t)!=aF)return!1;var e=sF(t);if(e===null)return!0;var n=cF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&I_.call(n)==dF}var hF=uF;function fF(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var A_=fF,pF=PP,mF=Kd;function gF(t,e,n,i){var s=!n;n||(n={});for(var r=-1,o=e.length;++r<o;){var c=e[r],d=i?i(n[c],t[c],c,n,t):void 0;d===void 0&&(d=t[c]),s?mF(n,c,d):pF(n,c,d)}return n}var _F=gF,yF=_F,vF=v0;function bF(t){return yF(t,vF(t))}var wF=bF,$_=E_,kF=Zd,CF=FL,xF=HL,SF=JL,N_=n0,z_=Li,MF=nF,OF=qa,DF=Wr,EF=ws,BF=hF,TF=o0,P_=A_,VF=wF;function IF(t,e,n,i,s,r,o){var c=P_(t,n),d=P_(e,n),h=o.get(d);if(h){$_(t,n,h);return}var f=r?r(c,d,n+"",t,e,o):void 0,m=f===void 0;if(m){var g=z_(d),y=!g&&OF(d),b=!g&&!y&&TF(d);f=d,g||y||b?z_(c)?f=c:MF(c)?f=xF(c):y?(m=!1,f=kF(d,!0)):b?(m=!1,f=CF(d,!0)):f=[]:BF(d)||N_(d)?(f=c,N_(c)?f=VF(c):(!EF(c)||DF(c))&&(f=SF(d))):m=!1}m&&(o.set(d,f),s(f,d,i,r,o),o.delete(d)),$_(t,n,f)}var AF=IF,$F=r0,NF=E_,zF=b_,PF=AF,LF=ws,FF=v0,RF=A_;function L_(t,e,n,i,s){t!==e&&zF(e,function(r,o){if(s||(s=new $F),LF(r))PF(t,e,o,n,L_,i,s);else{var c=i?i(RF(t,o),r,o+"",t,e,s):void 0;c===void 0&&(c=r),NF(t,o,c)}},FF)}var F_=L_,HF=F_,R_=ws;function H_(t,e,n,i,s,r){return R_(t)&&R_(e)&&(r.set(e,t),HF(t,e,void 0,H_,r),r.delete(e)),t}var WF=H_,YF=y0,jF=_0;function UF(t){return YF(function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(r=t.length>3&&typeof r=="function"?(s--,r):void 0,o&&jF(n[0],n[1],o)&&(r=s<3?void 0:r,s=1),e=Object(e);++i<s;){var c=n[i];c&&t(e,c,i,r)}return e})}var qF=UF,GF=F_,KF=qF,ZF=KF(function(t,e,n,i){GF(t,e,n,i)}),XF=ZF,JF=x_,QF=y0,eR=WF,tR=XF,nR=QF(function(t){return t.push(void 0,eR),JF(tR,void 0,t)}),Ll=nR;function iR(t){return t&&t.length?t[0]:void 0}var W_=iR;function sR(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var Ka=sR;const rR=t=>Object.prototype.toString.call(t).slice(8,-1),Za=t=>uI(t)&&!isNaN(t.getTime()),ks=t=>rR(t)==="Object",Y_=L4,j_=(t,e)=>bP(e,n=>L4(t,n)),vt=(t,e,n="0")=>{for(t=t!=null?String(t):"",e=e||2;t.length<e;)t=`${n}${t}`;return t},yi=t=>Array.isArray(t),Cs=t=>yi(t)&&t.length>0,Xd=t=>t==null?null:document&&ss(t)?document.querySelector(t):t.$el??t,nr=(t,e,n,i=void 0)=>{t.removeEventListener(e,n,i)},ir=(t,e,n,i=void 0)=>(t.addEventListener(e,n,i),()=>nr(t,e,n,i)),Jd=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Qd=(t,e)=>{(t.key===" "||t.key==="Enter")&&(e(t),t.preventDefault())},U_=(t,...e)=>{const n={};let i;for(i in t)e.includes(i)||(n[i]=t[i]);return n},q_=(t,e)=>{const n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n};function aR(t,e,n){return Math.min(Math.max(t,e),n)}var eu={},oR={get exports(){return eu},set exports(t){eu=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})(oR,eu);const lR=b4(eu);var tu={},cR={get exports(){return tu},set exports(t){tu=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})(cR,tu);const G_=b4(tu);function dR(t,e){var n=pR(e);return n.formatToParts?hR(n,t):fR(n,t)}var uR={year:0,month:1,day:2,hour:3,minute:4,second:5};function hR(t,e){try{for(var n=t.formatToParts(e),i=[],s=0;s<n.length;s++){var r=uR[n[s].type];r>=0&&(i[r]=parseInt(n[s].value,10))}return i}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function fR(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 b0={};function pR(t){if(!b0[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";b0[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 b0[t]}function K_(t,e,n,i,s,r,o){var c=new Date(0);return c.setUTCFullYear(t,e,n),c.setUTCHours(i,s,r,o),c}var Z_=36e5,mR=6e4,w0={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function gR(t,e,n){var i,s;if(!t||(i=w0.timezoneZ.exec(t),i))return 0;var r;if(i=w0.timezoneHH.exec(t),i)return r=parseInt(i[1],10),X_(r)?-(r*Z_):NaN;if(i=w0.timezoneHHMM.exec(t),i){r=parseInt(i[1],10);var o=parseInt(i[2],10);return X_(r,o)?(s=Math.abs(r)*Z_+o*mR,r>0?-s:s):NaN}if(vR(t)){e=new Date(e||Date.now());var c=n?e:_R(e),d=k0(c,t),h=n?d:yR(e,d,t);return-h}return NaN}function _R(t){return K_(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function k0(t,e){var n=dR(t,e),i=K_(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),r=s%1e3;return s-=r>=0?r:1e3+r,i-s}function yR(t,e,n){var i=t.getTime(),s=i-e,r=k0(new Date(s),n);if(e===r)return e;s-=r-e;var o=k0(new Date(s),n);return r===o?r:Math.max(r,o)}function X_(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}var J_={};function vR(t){if(J_[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),J_[t]=!0,!0}catch{return!1}}var bR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const wR=bR;var C0=36e5,Q_=6e4,kR=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:wR};function CR(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?kR:lR(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=xR(t),r=SR(s.date,i),o=r.year,c=r.restDateString,d=MR(c,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(s.time&&(f=OR(s.time),isNaN(f)))return new Date(NaN);if(s.timeZone||n.timeZone){if(m=gR(s.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=G_(new Date(h+f)),m=G_(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function xR(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 SR(t,e){var n=Bn.YYY[e],i=Bn.YYYYY[e],s;if(s=Bn.YYYY.exec(t)||i.exec(t),s){var r=s[1];return{year:parseInt(r,10),restDateString:t.slice(r.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 MR(t,e){if(e===null)return null;var n,i,s,r;if(t.length===0)return i=new Date(0),i.setUTCFullYear(e),i;if(n=Bn.MM.exec(t),n)return i=new Date(0),s=parseInt(n[1],10)-1,n5(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 BR(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 n5(e,s,c)?(i.setUTCFullYear(e,s,c),i):new Date(NaN)}if(n=Bn.Www.exec(t),n)return r=parseInt(n[1],10)-1,i5(e,r)?e5(e,r):new Date(NaN);if(n=Bn.WwwD.exec(t),n){r=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return i5(e,r,d)?e5(e,r,d):new Date(NaN)}return null}function OR(t){var e,n,i;if(e=Bn.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),x0(n)?n%24*C0:NaN;if(e=Bn.HHMM.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),x0(n,i)?n%24*C0+i*Q_: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 x0(n,i,s)?n%24*C0+i*Q_+s*1e3:NaN}return null}function e5(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var s=i.getUTCDay()||7,r=e*7+n+1-s;return i.setUTCDate(i.getUTCDate()+r),i}var DR=[31,28,31,30,31,30,31,31,30,31,30,31],ER=[31,29,31,30,31,30,31,31,30,31,30,31];function t5(t){return t%400===0||t%4===0&&t%100!==0}function n5(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;var i=t5(t);if(i&&n>ER[e]||!i&&n>DR[e])return!1}return!0}function BR(t,e){if(e<1)return!1;var n=t5(t);return!(n&&e>366||!n&&e>365)}function i5(t,e,n){return!(e<0||e>52||n!=null&&(n<0||n>6))}function x0(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 nu(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(t)}function xs(t){kn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||nu(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 Xa(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 TR={};function S0(){return TR}function qr(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=S0(),m=Xa((n=(i=(s=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:f.weekStartsOn)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=xs(t),y=g.getDay(),b=(y<m?7:0)+y-m;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function s5(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 VR=6048e5;function IR(t,e,n){kn(2,arguments);var i=qr(t,n),s=qr(e,n),r=i.getTime()-s5(i),o=s.getTime()-s5(s);return Math.round((r-o)/VR)}function AR(t){kn(1,arguments);var e=xs(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function $R(t){kn(1,arguments);var e=xs(t);return e.setDate(1),e.setHours(0,0,0,0),e}function NR(t,e){return kn(1,arguments),IR(AR(t),$R(t),e)+1}function zR(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=xs(t),m=f.getFullYear(),g=S0(),y=Xa((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:g.firstWeekContainsDate)!==null&&i!==void 0?i:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(m+1,0,y),b.setHours(0,0,0,0);var k=qr(b,e),C=new Date(0);C.setFullYear(m,0,y),C.setHours(0,0,0,0);var S=qr(C,e);return f.getTime()>=k.getTime()?m+1:f.getTime()>=S.getTime()?m:m-1}function PR(t,e){var n,i,s,r,o,c,d,h;kn(1,arguments);var f=S0(),m=Xa((n=(i=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:f.firstWeekContainsDate)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=zR(t,e),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var b=qr(y,e);return b}var LR=6048e5;function FR(t,e){kn(1,arguments);var n=xs(t),i=qr(n,e).getTime()-PR(n,e).getTime();return Math.round(i/LR)+1}function iu(t){return kn(1,arguments),qr(t,{weekStartsOn:1})}function RR(t){kn(1,arguments);var e=xs(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=iu(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=iu(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function HR(t){kn(1,arguments);var e=RR(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=iu(n);return i}var WR=6048e5;function YR(t){kn(1,arguments);var e=xs(t),n=iu(e).getTime()-HR(e).getTime();return Math.round(n/WR)+1}function Tn(t,e){kn(2,arguments);var n=xs(t),i=Xa(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function su(t,e){kn(2,arguments);var n=xs(t),i=Xa(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function r5(t,e){kn(2,arguments);var n=Xa(e);return su(t,n*12)}const jR={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function UR({monthComps:t,prevMonthComps:e,nextMonthComps:n},i){const s=[],{firstDayOfWeek:r,firstWeekday:o,isoWeeknumbers:c,weeknumbers:d,numDays:h,numWeeks:f}=t,m=o+(o<r?Cn:0)-r;let g=!0,y=!1,b=!1,k=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,V=e.numWeeks,N=1,L=e.month,F=e.year;const q=new Date,ee=q.getDate(),ne=q.getMonth()+1,K=q.getFullYear();for(let ie=1;ie<=bH;ie++){for(let me=1,J=r;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),V=1,N=f,L=t.month,F=t.year,g=!1,y=!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[ie-1],Me=c[ie-1],ge=S===ee&&L===ne&&F===K,Ne=y&&S===1,lt=y&&S===h,Le=ie===1,ht=ie===f,It=me===1,kt=me===Cn,tt=C5(F,L,S);s.push({locale:i,id:R,position:++k,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:V,weekFromEnd:N,weekPosition:ie,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:!y,isFocusable:!y,isFocused:!1,inMonth:y,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-${V}`,`week-from-end-${N}`,{"is-today":ge,"is-first-day":Ne,"is-last-day":lt,"in-month":y,"in-prev-month":g,"in-next-month":b,"on-top":Le,"on-bottom":ht,"on-left":It,"on-right":kt}]}),y&&lt?(y=!1,b=!0,S=1,E=h,A=1,x=Math.floor((h-S)/Cn+1),V=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))}V++,N--}return s}function qR(t,e,n,i){const s=t.reduce((r,o,c)=>{const d=Math.floor(c/7);let h=r[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:e?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},r[d]=h),h.days.push(o),r},Array(t.length/Cn));return s.forEach(r=>{const o=r.days[0],c=r.days[r.days.length-1];o.month===c.month?r.title=`${i.formatDate(o.date,"MMMM YYYY")}`:o.year===c.year?r.title=`${i.formatDate(o.date,"MMM")} - ${i.formatDate(c.date,"MMM YYYY")}`:r.title=`${i.formatDate(o.date,"MMM YYYY")} - ${i.formatDate(c.date,"MMM YYYY")}`}),s}function GR(t,e){return t.days.map(n=>({label:e.formatDate(n.date,e.masks.weekdays),weekday:n.weekday}))}function KR(t,e){return`${e}.${vt(t,2)}`}function a5(t,e,n){return q_(n.getDateParts(n.toDate(t)),jR[e])}function o5({day:t,week:e,month:n,year:i},s,r,o){if(r==="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(r==="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=su(c,s);return{month:d.getMonth()+1,year:d.getFullYear()}}}function rs(t){return t!=null&&t.month!=null&&t.year!=null}function M0(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 ru(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 ZR(t,e,n){return(t||!1)&&!M0(t,e)&&!ru(t,n)}function XR(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 JR(t,e,n,i){if(!rs(t)||!rs(e))return[];const s=[];for(;!ru(t,e);)s.push(t),t=o5(t,1,n,i);return s}function l5(t){const{day:e,week:n,month:i,year:s}=t;let r=`${s}-${vt(i,2)}`;return n&&(r=`${r}-w${n}`),e&&(r=`${r}-${vt(e,2)}`),r}function QR(t,e){const{month:n,year:i,showWeeknumbers:s,showIsoWeeknumbers:r}=t,o=new Date(i,n-1,15),c=e.getMonthParts(n,i),d=e.getPrevMonthParts(n,i),h=e.getNextMonthParts(n,i),f=UR({monthComps:c,prevMonthComps:d,nextMonthComps:h},e),m=qR(f,s,r,e),g=GR(m[0],e);return{id:l5(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 eH(t,e){const{day:n,week:i,view:s,trimWeeks:r}=t,o={...e,...t,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let c=o.days.find(h=>h.inMonth);n?c=o.days.find(h=>h.day===n&&h.inMonth)||c:i&&(c=o.days.find(h=>h.week===i&&h.inMonth));const d=o.weeks[c.week-1];o.viewWeeks=[d],o.viewDays=[c],o.week=c.week,o.weekTitle=d.title,o.day=c.day,o.dayTitle=c.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=i||1;const c=o.weeks[o.week-1];o.viewWeeks=[c],o.viewDays=c.days,o.weekTitle=c.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,r?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class c5{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 Ja{constructor(e,n=new au){xe(this,"order"),xe(this,"locale"),xe(this,"start",null),xe(this,"end",null),xe(this,"repeat",null);var i;this.locale=n;const{start:s,end:r,span:o,order:c,repeat:d}=e;Za(s)&&(this.start=n.getDateParts(s)),Za(r)?this.end=n.getDateParts(r):this.start!=null&&o&&(this.end=n.getDateParts(Tn(this.start.date,o-1))),this.order=c??0,d&&(this.repeat=new ou({from:(i=this.start)==null?void 0:i.date,...d},{locale:this.locale}))}static fromMany(e,n){return(yi(e)?e:[e]).filter(i=>i).map(i=>Ja.from(i,n))}static from(e,n){if(e instanceof Ja)return e;const i={start:null,end:null};return e!=null&&(yi(e)?(i.start=e[0]??null,i.end=e[1]??null):ks(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 Ja(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 tH{constructor(){xe(this,"records",{})}render(e,n,i){var s,r,o,c;let d=null;const h=i[0].dayIndex,f=i[i.length-1].dayIndex;return n.hasRepeat?i.forEach(m=>{var g,y;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:((y=n.end)==null?void 0:y.time)??lu},this.getRangeRecords(e).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((r=n.start)==null?void 0:r.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((c=n.end)==null?void 0:c.time)??1/0},this.getRangeRecords(e).push(d)),d}getRangeRecords(e){let n=this.records[e.key];return n||(n={ranges:[],data:e},this.records[e.key]=n),n.ranges}getCell(e,n){return this.getCells(n).find(r=>r.data.key===e)}cellExists(e,n){const i=this.records[e];return i==null?!1:i.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(e){const n=Object.values(this.records),i=[],{dayIndex:s}=e;return n.forEach(({data:r,ranges:o})=>{o.filter(c=>c.startDay<=s&&c.endDay>=s).forEach(c=>{const d=s===c.startDay,h=s===c.endDay,f=d?c.startTime:0,m=new Date(e.startDate.getTime()+f),g=h?c.endTime:lu,y=new Date(e.endDate.getTime()+g),b=f===0&&g===lu,k=r.order||0;i.push({...c,data:r,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:b,order:k})})}),i.sort((r,o)=>r.order-o.order),i}}const Ss={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"}};Ss.en=Ss["en-US"],Ss.es=Ss["es-ES"],Ss.no=Ss.nb,Ss.zh=Ss["zh-CN"];const nH=Object.entries(Ss).reduce((t,[e,{dow:n,L:i}])=>(t[e]={id:e,firstDayOfWeek:n,masks:{L:i}},t),{}),iH={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:nH,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},O0=a.reactive(iH),sH=a.computed(()=>WP(O0.locales,t=>(t.masks=Ll(t.masks,O0.masks),t))),sr=t=>typeof window<"u"&&Y_(window.__vcalendar__,t)?Ur(window.__vcalendar__,t):Ur(O0,t),rH=12,aH=5;function oH(t,e){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let i;ss(t)?i=t:Y_(t,"id")&&(i=t.id),i=(i||n).toLowerCase();const s=Object.keys(e),r=d=>s.find(h=>h.toLowerCase()===d);i=r(i)||r(i.substring(0,2))||n;const o={...e["en-IE"],...e[i],id:i,monthCacheSize:rH,pageCacheSize:aH};return ks(t)?Ll(t,o):o}class au{constructor(e=void 0,n){xe(this,"id"),xe(this,"daysInWeek"),xe(this,"firstDayOfWeek"),xe(this,"masks"),xe(this,"timezone"),xe(this,"hourLabels"),xe(this,"dayNames"),xe(this,"dayNamesShort"),xe(this,"dayNamesShorter"),xe(this,"dayNamesNarrow"),xe(this,"monthNames"),xe(this,"monthNamesShort"),xe(this,"relativeTimeNames"),xe(this,"amPm",["am","pm"]),xe(this,"monthCache"),xe(this,"pageCache");const{id:i,firstDayOfWeek:s,masks:r,monthCacheSize:o,pageCacheSize:c}=oH(e,sH.value);this.monthCache=new c5(o,EH,BH),this.pageCache=new c5(c,l5,QR),this.id=i,this.daysInWeek=Cn,this.firstDayOfWeek=aR(s,1,Cn),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=T0("long",this.id),this.dayNamesShort=T0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=T0("narrow",this.id),this.monthNames=O5("long",this.id),this.monthNamesShort=O5("short",this.id),this.relativeTimeNames=IH(this.id)}formatDate(e,n){return PH(e,n,this)}parseDate(e,n){return D5(e,n,this)}toDate(e,n={}){const i=new Date(NaN);let s=i;const{fillDate:r,mask:o,patch:c,rules:d}=n;if(Ri(e)?(n.type="number",s=new Date(+e)):ss(e)?(n.type="string",s=e?D5(e,o||"iso",this):i):Za(e)?(n.type="date",s=new Date(e.getTime())):E0(e)&&(n.type="object",s=this.getDateFromParts(e)),s&&(c||d)){let h=this.getDateParts(s);if(c&&r!=null){const f=this.getDateParts(this.toDate(r));h=this.getDateParts(this.toDate({...f,...q_(h,vH[c])}))}d&&(h=zH(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 Ja.from(e,this)}ranges(e){return Ja.fromMany(e,this)}getDateParts(e){return DH(e,this)}getDateFromParts(e){return S5(e,this.timezone)}getDateFromParams(e,n,i,s,r,o,c){return this.getDateFromParts({year:e,month:n,day:i,hours:s,minutes:r,seconds:o,milliseconds:c})}getPage(e){const n=this.pageCache.getOrSet(e,this);return eH(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 VH().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var Qa=(t=>(t.Any="any",t.All="all",t))(Qa||{}),d5=(t=>(t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t))(d5||{}),u5=(t=>(t.Days="days",t.Weekdays="weekdays",t.Weeks="weeks",t.Months="months",t.Years="years",t))(u5||{}),h5=(t=>(t.OrdinalWeekdays="ordinalWeekdays",t))(h5||{});class lH{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 B0(this.from.date,n)%this.interval===0;case"weeks":return MH(this.from.date,n)%this.interval===0;case"months":return OH(this.from.date,n)%this.interval===0;case"years":return x5(this.from.date,n)%this.interval===0;default:return!1}}}class eo{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 cH(n);case"weekdays":return new dH(n);case"weeks":return new uH(n);case"months":return new hH(n);case"years":return new fH(n)}}normalizeComponents(e){if(this.validator(e))return[e];if(!yi(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 cH extends eo{constructor(e){super("days",e,gH,({day:n,dayFromEnd:i})=>[n,-i])}}class dH extends eo{constructor(e){super("weekdays",e,D0,({weekday:n})=>[n])}}class uH extends eo{constructor(e){super("weeks",e,_H,({week:n,weekFromEnd:i})=>[n,-i])}}class hH extends eo{constructor(e){super("months",e,yH,({month:n})=>[n])}}class fH extends eo{constructor(e){super("years",e,Ri,({year:n})=>[n])}}class pH{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(!f5(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(!D0(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 yi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}normalizeComponents(e){const n=[];return e.forEach((i,s)=>{if(Ri(i)){if(s===0)return;if(!f5(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(!D0(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 yi(i)&&n.push(...this.normalizeArrayConfig(i))}),n}passes(e){const{weekday:n,weekdayOrdinal:i,weekdayOrdinalFromEnd:s}=e;return this.components.some(([r,o])=>(r===i||r===-s)&&n===o)}}class mH{constructor(e){xe(this,"type","function"),xe(this,"validated",!0),this.fn=e,Wr(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 ou{constructor(e,n={},i){xe(this,"validated",!0),xe(this,"config"),xe(this,"type",Qa.Any),xe(this,"from"),xe(this,"until"),xe(this,"rules",[]),xe(this,"locale",new au),this.parent=i,n.locale&&(this.locale=n.locale),this.config=e,Wr(e)?(this.type=Qa.All,this.rules=[new mH(e)]):yi(e)?(this.type=Qa.Any,this.rules=e.map(s=>new ou(s,n,this))):ks(e)?(this.type=Qa.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`]),yi(e.every))){const[i=1,s=d5.Days]=e.every;n.push(new lH(s,i,this.from))}return Object.values(u5).forEach(i=>{i in e&&n.push(eo.create(i,e[i]))}),Object.values(h5).forEach(i=>{i in e&&n.push(new pH(i,e[i]))}),e.on!=null&&(yi(e.on)||(e.on=[e.on]),n.push(new ou(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===Qa.Any?this.rules.some(n=>n.passes(e)):this.rules.every(n=>n.passes(e)):!0}}function gH(t){return Ri(t)?t>=1&&t<=31:!1}function D0(t){return Ri(t)?t>=1&&t<=7:!1}function _H(t){return Ri(t)?t>=-6&&t<=-1||t>=1&&t<=6:!1}function yH(t){return Ri(t)?t>=1&&t<=12:!1}function f5(t){return!(!Ri(t)||t<-5||t>5||t===0)}const vH={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Cn=7,bH=6,p5=1e3,m5=p5*60,g5=m5*60,lu=g5*24,wH=[31,28,31,30,31,30,31,31,30,31,30,31],kH=["L","iso"],Fl={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},_5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,CH=/\[([^]*?)\]/gm,y5={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)}`}},rr=/\d\d?/,xH=/\d{3}/,SH=/\d{4}/,Rl=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,v5=()=>{},b5=t=>(e,n,i)=>{const s=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(e.month=s)},wt={D:[rr,(t,e)=>{t.day=e}],Do:[new RegExp(rr.source+Rl.source),(t,e)=>{t.day=parseInt(e,10)}],d:[rr,v5],W:[Rl,v5],M:[rr,(t,e)=>{t.month=e-1}],MMM:[Rl,b5("monthNamesShort")],MMMM:[Rl,b5("monthNames")],YY:[rr,(t,e)=>{const i=+new Date().getFullYear().toString().substr(0,2);t.year=+`${e>68?i-1:i}${e}`}],YYYY:[SH,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.milliseconds=e*100}],SS:[/\d{2}/,(t,e)=>{t.milliseconds=e*10}],SSS:[xH,(t,e)=>{t.milliseconds=e}],h:[rr,(t,e)=>{t.hours=e}],m:[rr,(t,e)=>{t.minutes=e}],s:[rr,(t,e)=>{t.seconds=e}],a:[Rl,(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 w5(t,e){return(Cs(t)&&t||[ss(t)&&t||"YYYY-MM-DD"]).map(n=>kH.reduce((i,s)=>i.replace(s,e.masks[s]||""),n))}function E0(t){return ks(t)&&"year"in t&&"month"in t&&"day"in t}function k5(t,e=1){const n=t.getDay()+1,i=n>=e?e-n:-(7-(e-n));return Tn(t,i)}function C5(t,e,n){const i=Date.UTC(t,e-1,n);return B0(new Date(0),new Date(i))}function B0(t,e){return Math.round((e.getTime()-t.getTime())/lu)}function MH(t,e){return Math.ceil(B0(k5(t),k5(e))/7)}function x5(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}function OH(t,e){return x5(t,e)*12+(e.getMonth()-t.getMonth())}function S5(t,e=""){const n=new Date,{year:i=n.getFullYear(),month:s=n.getMonth()+1,day:r=n.getDate(),hours:o=0,minutes:c=0,seconds:d=0,milliseconds:h=0}=t;if(e){const f=`${vt(i,4)}-${vt(s,2)}-${vt(r,2)}T${vt(o,2)}:${vt(c,2)}:${vt(d,2)}.${vt(h,3)}`;return CR(f,{timeZone:e})}return new Date(i,s-1,r,o,c,d,h)}function DH(t,e){let n=new Date(t.getTime());e.timezone&&(n=new Date(t.toLocaleString("en-US",{timeZone:e.timezone})),n.setMilliseconds(t.getMilliseconds()));const i=n.getMilliseconds(),s=n.getSeconds(),r=n.getMinutes(),o=n.getHours(),c=i+s*p5+r*m5+o*g5,d=n.getMonth()+1,h=n.getFullYear(),f=e.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,b=Math.floor((m-1)/7+1),k=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=C5(h,d,m);return{milliseconds:i,seconds:s,minutes:r,hours:o,time:c,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:b,weekdayOrdinalFromEnd:k,week:C,weekFromEnd:S,weeknumber:E,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:A,timezoneOffset:0,isValid:!0}}function EH(t,e,n){return`${e}-${t}-${n}`}function BH(t,e,n){const i=e%4===0&&e%100!==0||e%400===0,s=new Date(e,t-1,1),r=s.getDay()+1,o=t===2&&i?29:wH[t-1],c=n-1,d=NR(s,{weekStartsOn:c}),h=[],f=[];for(let m=0;m<d;m++){const g=Tn(s,m*7);h.push(FR(g,{weekStartsOn:c})),f.push(YR(g))}return{firstDayOfWeek:n,firstDayOfMonth:s,inLeapYear:i,firstWeekday:r,numDays:o,numWeeks:d,month:t,year:e,weeknumbers:h,isoWeeknumbers:f}}function TH(){const t=[];for(let s=0;s<Cn;s++)t.push(S5({year:2020,month:1,day:5+s,hours:12}));return t}function T0(t,e=void 0){const n=new Intl.DateTimeFormat(e,{weekday:t});return TH().map(i=>n.format(i))}function VH(){const t=[];for(let e=0;e<=24;e++)t.push(new Date(2e3,0,1,e));return t}function IH(t=void 0){const e=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(t);return e.reduce((i,s)=>{const r=n.formatToParts(100,s);return i[s]=r[1].unit,i},{})}function M5(){const t=[];for(let e=0;e<12;e++)t.push(new Date(2e3,e,15));return t}function O5(t,e=void 0){const n=new Intl.DateTimeFormat(e,{month:t,timeZone:"UTC"});return M5().map(i=>n.format(i))}function AH(t,e,n){return Ri(e)?e===t:yi(e)?e.includes(t):Wr(e)?e(t,n):!(e.min!=null&&e.min>t||e.max!=null&&e.max<t||e.interval!=null&&t%e.interval!==0)}function Hl(t,e,n){const i=[],[s,r,o]=e;for(let c=s;c<=r;c++)(n==null||AH(c,n,t))&&i.push({value:c,label:vt(c,o)});return i}function $H(t,e){return{milliseconds:Hl(t,Fl.milliseconds,e.milliseconds),seconds:Hl(t,Fl.seconds,e.seconds),minutes:Hl(t,Fl.minutes,e.minutes),hours:Hl(t,Fl.hours,e.hours)}}function NH(t,e,n,i){const r=Hl(t,e,i).reduce((o,c)=>{if(c.disabled)return o;if(isNaN(o))return c.value;const d=Math.abs(o-n);return Math.abs(c.value-n)<d?c.value:o},NaN);return isNaN(r)?n:r}function zH(t,e){const n={...t};return Object.entries(e).forEach(([i,s])=>{const r=Fl[i],o=t[i];n[i]=NH(t,r,o,s)}),n}function D5(t,e,n){return w5(e,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let r=t;if(r.length>1e3)return!1;let o=!0;const c={};if(s.replace(_5,f=>{if(wt[f]){const m=wt[f],g=r.search(m[0]);~g?r.replace(m[0],y=>(m[1](c,y,n),r=r.substr(g+y.length),y)):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 PH(t,e,n){if(t==null)return"";let i=w5(e,n)[0];/Z$/.test(i)&&(n.timezone="utc");const s=[];i=i.replace(CH,(o,c)=>(s.push(c),"??"));const r=n.getDateParts(t);return i=i.replace(_5,o=>o in y5?y5[o](r,n):o.slice(1,o.length-1)),i.replace(/\?\?/g,()=>s.shift())}let LH=0;class E5{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=++LH),this.locale=i,n.normalizeGlyphs(this),this.ranges=i.ranges(s??[]),this.hasRanges=!!Cs(this.ranges),this.maxRepeatSpan=this.ranges.filter(r=>r.hasRepeat).map(r=>r.daySpan).reduce((r,o)=>Math.max(r,o),0)}intersectsRange({start:e,end:n}){if(e==null||n==null)return!1;const i=this.ranges.filter(o=>!o.hasRepeat);for(const o of i)if(o.intersectsDayRange(e.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(o=>o.hasRepeat);if(!s.length)return!1;let r=e;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(Tn(r.date,-this.maxRepeatSpan)));r.dayIndex<=n.dayIndex;){for(const o of s)if(o.startsOnDay(r))return!0;r=this.locale.getDateParts(Tn(r.date,1))}return!1}}function V0(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function Wl(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function B5(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function T5(t){const{visibility:e}=t,n=e==="click",i=e==="hover",s=e==="hover-focus",r=e==="focus";t.autoHide=!n;let o=!1,c=!1;const d=b=>{n&&(B5({...t,target:t.target||b.currentTarget}),b.stopPropagation())},h=b=>{o||(o=!0,(i||s)&&V0({...t,target:t.target||b.currentTarget}))},f=()=>{o&&(o=!1,(i||s&&!c)&&Wl(t))},m=b=>{c||(c=!0,(r||s)&&V0({...t,target:t.target||b.currentTarget}))},g=b=>{c&&!Jd(b.currentTarget,b.relatedTarget)&&(c=!1,(r||s&&!o)&&Wl(t))},y={};switch(t.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const V5=t=>{const e=Xd(t);if(e==null)return;const n=e.popoverHandlers;!n||!n.length||(n.forEach(i=>i()),delete e.popoverHandlers)},I5=(t,e)=>{const n=Xd(t);if(n==null)return;const i=[],s=T5(e);Object.entries(s).forEach(([r,o])=>{i.push(ir(n,r,o))}),n.popoverHandlers=i},A5={mounted(t,e){const{value:n}=e;!n||I5(t,n)},updated(t,e){const{oldValue:n,value:i}=e,s=n==null?void 0:n.visibility,r=i==null?void 0:i.visibility;s!==r&&(s&&(V5(t),r||Wl(n)),r&&I5(t,i))},unmounted(t){V5(t)}},FH=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:i,maxVerticalSwipeDistance:s})=>{if(!t||!t.addEventListener||!Wr(e))return null;let r=0,o=0,c=null,d=!1;function h(m){const g=m.changedTouches[0];r=g.screenX,o=g.screenY,c=new Date().getTime(),d=!0}function f(m){if(!d||!c)return;d=!1;const g=m.changedTouches[0],y=g.screenX-r,b=g.screenY-o;if(new Date().getTime()-c<n&&Math.abs(y)>=i&&Math.abs(b)<=s){const C={toLeft:!1,toRight:!1};y<0?C.toLeft=!0:C.toRight=!0,e(C)}}return ir(t,"touchstart",h,{passive:!0}),ir(t,"touchend",f,{passive:!0}),()=>{nr(t,"touchstart",h),nr(t,"touchend",f)}},cu={},RH=(t,e=10)=>{cu[t]=Date.now()+e},HH=(t,e)=>{if(t in cu){const n=cu[t];if(Date.now()<n)return;delete cu[t]}e()};function $5(){return typeof window<"u"}function WH(t){return $5()&&t in window}function YH(t){const e=a.ref(!1),n=a.computed(()=>e.value?"dark":"light");let i,s;function r(y){e.value=y.matches}function o(){WH("matchMedia")&&(i=window.matchMedia("(prefers-color-scheme: dark)"),i.addEventListener("change",r),e.value=i.matches)}function c(){const{selector:y=":root",darkClass:b="dark"}=t.value,k=document.querySelector(y);e.value=k.classList.contains(b)}function d(y){const{selector:b=":root",darkClass:k="dark"}=y;if($5()&&b&&k){const C=document.querySelector(b);C&&(s=new MutationObserver(c),s.observe(C,{attributes:!0,attributeFilter:["class"]}),e.value=C.classList.contains(k))}}function h(){m();const y=typeof t.value;y==="string"&&t.value.toLowerCase()==="system"?o():y==="object"?d(t.value):e.value=!!t.value}const f=a.watch(()=>t.value,()=>h(),{immediate:!0});function m(){i&&(i.removeEventListener("change",r),i=void 0),s&&(s.disconnect(),s=void 0)}function g(){m(),f()}return a.onUnmounted(()=>g()),{isDark:e,displayMode:n,cleanup:g}}const jH=["base","start","end","startEnd"],UH=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],qH={base:{},start:{},end:{}};function I0(t,e,n=qH){let i=t,s={};e===!0||ss(e)?(i=ss(e)?e:i,s={...n}):ks(e)&&(j_(e,jH)?s={...e}:s={base:{...e},start:{...e},end:{...e}});const r=Ll(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(r).forEach(([o,c])=>{let d=i;c===!0||ss(c)?(d=ss(c)?c:d,r[o]={color:d}):ks(c)&&(j_(c,UH)?r[o]={...c}:r[o]={}),Ll(r[o],{color:d})}),r}class GH{constructor(){xe(this,"type","highlight")}normalizeConfig(e,n){return I0(e,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:n,onEnd:i},s){const{key:r,highlight:o}=e;if(!o)return;const{highlights:c}=s,{base:d,start:h,end:f}=o;n&&i?c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...h,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):i?(c.push({...d,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),c.push({...f,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):c.push({...d,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class A0{constructor(e,n){xe(this,"type",""),xe(this,"collectionType",""),this.type=e,this.collectionType=n}normalizeConfig(e,n){return I0(e,n)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:n,onEnd:i},s){const{key:r}=e,o=e[this.type];if(!r||!o)return;const c=s[this.collectionType],{base:d,start:h,end:f}=o;n?c.push({...h,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):i?c.push({...f,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):c.push({...d,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class KH extends A0{constructor(){super("content","content")}normalizeConfig(e,n){return I0("base",n)}}class ZH extends A0{constructor(){super("dot","dots")}}class XH extends A0{constructor(){super("bar","bars")}}class JH{constructor(e){xe(this,"color"),xe(this,"renderers",[new KH,new GH,new ZH,new XH]),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 N5=Symbol("__vc_base_context__"),z5={color:{type:String,default:()=>sr("color")},isDark:{type:[Boolean,String,Object],default:()=>sr("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function P5(t){const e=a.computed(()=>t.color??""),n=a.computed(()=>t.isDark??!1),{displayMode:i}=YH(n),s=a.computed(()=>new JH(e.value)),r=a.computed(()=>{if(t.locale instanceof au)return t.locale;const g=ks(t.locale)?t.locale:{id:t.locale,firstDayOfWeek:t.firstDayOfWeek,masks:t.masks};return new au(g,t.timezone)}),o=a.computed(()=>r.value.masks),c=a.computed(()=>t.minDate),d=a.computed(()=>t.maxDate),h=a.computed(()=>{const g=t.disabledDates?[...t.disabledDates]:[];return c.value!=null&&g.push({start:null,end:Tn(r.value.toDate(c.value),-1)}),d.value!=null&&g.push({start:Tn(r.value.toDate(d.value),1),end:null}),r.value.ranges(g)}),f=a.computed(()=>new E5({key:"disabled",dates:h.value,order:100},s.value,r.value)),m={color:e,isDark:n,displayMode:i,theme:s,locale:r,masks:o,minDate:c,maxDate:d,disabledDates:h,disabledAttribute:f};return a.provide(N5,m),m}function QH(t){return a.inject(N5,()=>P5(t),!0)}function L5(t){return`__vc_slot_${t}__`}function F5(t,e={}){Object.keys(t).forEach(n=>{a.provide(L5(e[n]??n),t[n])})}function R5(t){return a.inject(L5(t),null)}const eW={...z5,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:()=>sr("titlePosition")},navVisibility:{type:String,default:()=>sr("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},tW=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],H5=Symbol("__vc_calendar_context__");function nW(t,{slots:e,emit:n}){const i=a.ref(null),s=a.ref(null),r=a.ref(new Date().getDate()),o=a.ref(!1),c=a.ref(Symbol()),d=a.ref(Symbol()),h=a.ref(t.view),f=a.ref([]),m=a.ref("");let g=null,y=null;F5(e);const{theme:b,color:k,displayMode:C,locale:S,masks:E,minDate:A,maxDate:x,disabledAttribute:V,disabledDates:N}=QH(t),L=a.computed(()=>t.rows*t.columns),F=a.computed(()=>t.step||L.value),q=a.computed(()=>W_(f.value)??null),ee=a.computed(()=>Ka(f.value)??null),ne=a.computed(()=>t.minPage||(A.value?oe(A.value):null)),K=a.computed(()=>t.maxPage||(x.value?oe(x.value):null)),ie=a.computed(()=>t.navVisibility),me=a.computed(()=>!!t.showWeeknumbers),J=a.computed(()=>!!t.showIsoWeeknumbers),he=a.computed(()=>h.value==="monthly"),fe=a.computed(()=>h.value==="weekly"),ye=a.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,B,Y=h.value)=>o5(W,B,Y,S.value),oe=W=>a5(W,h.value,S.value),Ee=W=>{!V.value||!ht.value||(W.isDisabled=ht.value.cellExists(V.value.key,W.dayIndex))},Me=W=>{W.isFocusable=W.inMonth&&W.day===r.value},ge=(W,B)=>{for(const Y of W)for(const se of Y.days)if(B(se)===!1)return},Ne=a.computed(()=>f.value.reduce((W,B)=>(W.push(...B.viewDays),W),[])),lt=a.computed(()=>{const W=[];return(t.attributes||[]).forEach((B,Y)=>{!B||!B.dates||W.push(new E5({...B,order:B.order||0},b.value,S.value))}),V.value&&W.push(V.value),W}),Le=a.computed(()=>Cs(lt.value)),ht=a.computed(()=>{const W=new tH;return lt.value.forEach(B=>{B.ranges.forEach(Y=>{W.render(B,Y,Ne.value)})}),W}),It=a.computed(()=>Ne.value.reduce((W,B)=>(W[B.dayIndex]={day:B,cells:[]},W[B.dayIndex].cells.push(...ht.value.getCells(B)),W),{})),kt=(W,B)=>{const Y=t.showWeeknumbers||t.showIsoWeeknumbers;return Y==null?"":SP(Y)?Y?"left":"":Y.startsWith("right")?B>1?"right":Y:W>1?"left":Y},tt=()=>{var W,B;if(!Le.value)return null;const Y=lt.value.find(Ye=>Ye.pinPage)||lt.value[0];if(!Y||!Y.hasRanges)return null;const[se]=Y.ranges,Ce=((W=se.start)==null?void 0:W.date)||((B=se.end)==null?void 0:B.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,B={})=>{const{view:Y=h.value,position:se=1,force:Ce}=B,Ye=se>0?1-se:-(L.value+se);let at=pe(W,Ye,Y),xt=pe(at,L.value-1,Y);return Ce||(M0(at,ne.value)?at=ne.value:ru(xt,K.value)&&(at=pe(K.value,1-L.value)),xt=pe(at,L.value-1)),{fromPage:at,toPage:xt}},Yt=(W,B,Y="")=>{if(Y==="none"||Y==="fade")return Y;if((W==null?void 0:W.view)!==(B==null?void 0:B.view))return"fade";const se=ru(B,W),Ce=M0(B,W);return!se&&!Ce?"fade":Y==="slide-v"?Ce?"slide-down":"slide-up":Ce?"slide-right":"slide-left"},ft=(W={})=>new Promise((B,Y)=>{const{position:se=1,force:Ce=!1,transition:Ye}=W,at=rs(W.page)?W.page:st(),{fromPage:xt}=rt(at,{position:se,force:Ce}),sn=[];for(let Gt=0;Gt<L.value;Gt++){const Un=pe(xt,Gt),pt=Gt+1,In=Math.ceil(pt/t.columns),xn=t.rows-In+1,ni=pt%t.columns||t.columns,Hi=t.columns-ni+1,Ms=kt(ni,Hi);sn.push(S.value.getPage({...Un,view:h.value,titlePosition:t.titlePosition,trimWeeks:t.trimWeeks,position:pt,row:In,rowFromEnd:xn,column:ni,columnFromEnd:Hi,showWeeknumbers:me.value,showIsoWeeknumbers:J.value,weeknumberPosition:Ms}))}m.value=Yt(f.value[0],sn[0],Ye),f.value=sn,m.value&&m.value!=="none"?g={resolve:B,reject:Y}:B(!0)}),Ct=W=>{const B=q.value??oe(new Date);return pe(B,W)},tn=(W,B={})=>{const Y=rs(W)?W:oe(W);return Object.assign(B,rt(Y,{...B,force:!0})),JR(B.fromPage,B.toPage,h.value,S.value).map(Ce=>ZR(Ce,ne.value,K.value)).some(Ce=>Ce)},nn=(W,B={})=>tn(Ct(W),B),bt=a.computed(()=>nn(-F.value)),nt=a.computed(()=>nn(F.value)),Nt=async(W,B={})=>!B.force&&!tn(W,B)?!1:(B.fromPage&&!XR(B.fromPage,q.value)&&(Wl({id:c.value,hideDelay:0}),B.view&&(RH("view",10),h.value=B.view),await ft({...B,page:B.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ot=(W,B={})=>Nt(Ct(W),B),At=()=>Ot(-F.value),Dt=()=>Ot(F.value),un=W=>{const B=he.value?".in-month":"",Y=`.id-${S.value.getDayId(W)}${B}`,se=`${Y}.vc-focusable, ${Y} .vc-focusable`,Ce=i.value;if(Ce){const Ye=Ce.querySelector(se);if(Ye)return Ye.focus(),!0}return!1},$t=async(W,B={})=>un(W)?!0:(await Nt(W,B),un(W)),te=(W,B)=>{r.value=W.day,n("dayclick",W,B)},Ie=(W,B)=>{n("daymouseenter",W,B)},We=(W,B)=>{n("daymouseleave",W,B)},pn=(W,B)=>{r.value=W.day,s.value=W,W.isFocused=!0,n("dayfocusin",W,B)},Vn=(W,B)=>{s.value=null,W.isFocused=!1,n("dayfocusout",W,B)},jn=(W,B)=>{n("daykeydown",W,B);const Y=W.noonDate;let se=null;switch(B.key){case"ArrowLeft":{se=Tn(Y,-1);break}case"ArrowRight":{se=Tn(Y,1);break}case"ArrowUp":{se=Tn(Y,-7);break}case"ArrowDown":{se=Tn(Y,7);break}case"Home":{se=Tn(Y,-W.weekdayPosition+1);break}case"End":{se=Tn(Y,W.weekdayPositionFromEnd);break}case"PageUp":{B.altKey?se=r5(Y,-1):se=su(Y,-1);break}case"PageDown":{B.altKey?se=r5(Y,1):se=su(Y,1);break}}se&&(B.preventDefault(),$t(se).catch())},j=W=>{const B=s.value;B!=null&&jn(B,W)},le=(W,B)=>{n("weeknumberclick",W,B)};ft({page:t.initialPage,position:t.initialPagePosition}),a.onMounted(()=>{!t.disablePageSwipe&&i.value&&(y=FH(i.value,({toLeft:W=!1,toRight:B=!1})=>{W?Dt():B&&At()},sr("touch")))}),a.onUnmounted(()=>{f.value=[],y&&y()}),a.watch(()=>S.value,()=>{ft()}),a.watch(()=>L.value,()=>ft()),a.watch(()=>t.view,()=>h.value=t.view),a.watch(()=>h.value,()=>{HH("view",()=>{ft()}),n("update:view",h.value)}),a.watch(()=>r.value,()=>{ge(f.value,W=>Me(W))}),a.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:k,displayMode:C,locale:S,masks:E,attributes:lt,disabledAttribute:V,disabledDates:N,attributeContext:ht,days:Ne,dayCells:It,count:L,step:F,firstPage:q,lastPage:ee,canMovePrev:bt,canMoveNext:nt,minPage:ne,maxPage:K,isMonthly:he,isWeekly:fe,isDaily:ye,navVisibility:ie,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:jn,onDayClick:te,onDayMouseenter:Ie,onDayMouseleave:We,onDayFocusin:pn,onDayFocusout:Vn,onWeeknumberClick:le};return a.provide(H5,ve),ve}function Gr(){const t=a.inject(H5);if(t)return t;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const iW=a.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(t,{emit:e}){let n;const i=a.ref();let s=null,r=null;const o=a.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(R){R&&(o.direction=R.split("-")[0])}function d({placement:R,options:pe}){c(R||(pe==null?void 0:pe.placement))}const h=a.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=a.computed(()=>{const R=o.direction==="left"||o.direction==="right";let 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(){r&&(r.destroy(),r=null)}function g(){a.nextTick(()=>{const R=Xd(o.target);!R||!i.value||(r&&r.state.elements.reference!==R&&m(),r?r.update():r=Ic(R,i.value,h.value))})}function y(R){Object.assign(o,U_(R,"force"))}function b(R,pe){clearTimeout(n),R>0?n=setTimeout(pe,R):pe()}function k(R){return!R||!r?!1:Xd(R)===r.state.elements.reference}async function C(R={}){o.force||(R.force&&(o.force=!0),b(R.showDelay??t.showDelay,()=>{o.isVisible&&(o.force=!1),y({...R,isVisible:!0}),g()}))}function S(R={}){!r||R.target&&!k(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&&k(R.target)?S(R):C(R))}function A(R){if(!r)return;const pe=r.state.elements.reference;if(!i.value||!pe)return;const oe=R.target;Jd(i.value,oe)||Jd(pe,oe)||S({force:!0})}function x(R){(R.key==="Esc"||R.key==="Escape")&&S()}function V({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(){ir(document,"keydown",x),ir(document,"click",A),ir(document,"show-popover",V),ir(document,"hide-popover",N),ir(document,"toggle-popover",L)}function q(){nr(document,"keydown",x),nr(document,"click",A),nr(document,"show-popover",V),nr(document,"hide-popover",N),nr(document,"toggle-popover",L)}function ee(R){e("before-show",R)}function ne(R){o.force=!1,e("after-show",R)}function K(R){e("before-hide",R)}function ie(R){o.force=!1,m(),e("after-hide",R)}function me(R){R.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&C()}function he(){if(o.isHovered=!1,!r)return;const R=r.state.elements.reference;o.autoHide&&!o.isFocused&&(!R||R!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&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||!Jd(i.value,R.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&S())}function we(){s!=null&&(s.disconnect(),s=null)}return a.watch(()=>i.value,R=>{we(),R&&(s=new ResizeObserver(()=>{r&&r.update()}),s.observe(R))}),a.watch(()=>o.placement,c,{immediate:!0}),a.onMounted(()=>{F()}),a.onUnmounted(()=>{m(),we(),q()}),{...a.toRefs(o),popoverRef:i,alignment:f,hide:S,setupPopper:g,beforeEnter:ee,afterEnter:ne,beforeLeave:K,afterLeave:ie,onClick:me,onMouseOver:J,onMouseLeave:he,onFocusIn:fe,onFocusOut:ye}}}),ar=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function sW(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":t.isInteractive}]),ref:"popoverRef",onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o)),onMouseover:e[1]||(e[1]=(...o)=>t.onMouseOver&&t.onMouseOver(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.onMouseLeave&&t.onMouseLeave(...o)),onFocusin:e[3]||(e[3]=(...o)=>t.onFocusIn&&t.onFocusIn(...o)),onFocusout:e[4]||(e[4]=(...o)=>t.onFocusOut&&t.onFocusOut(...o))},[a.createVNode(a.Transition,{name:`vc-${t.transition}`,appear:"",onBeforeEnter:t.beforeEnter,onAfterEnter:t.afterEnter,onBeforeLeave:t.beforeLeave,onAfterLeave:t.afterLeave},{default:a.withCtx(()=>[t.isVisible?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${t.direction}`},t.$attrs),[a.renderSlot(t.$slots,"default",{direction:t.direction,alignment:t.alignment,data:t.data,hide:t.hide},()=>[a.createTextVNode(a.toDisplayString(t.data),1)]),a.createElementVNode("span",{class:a.normalizeClass(["vc-popover-caret",`direction-${t.direction}`,`align-${t.alignment}`])},null,2)],16)):a.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const $0=ar(iW,[["render",sW]]),rW={class:"vc-day-popover-row"},aW={key:0,class:"vc-day-popover-row-indicator"},oW={class:"vc-day-popover-row-label"},lW=a.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(t){const e=t,n=a.computed(()=>{const{content:i,highlight:s,dot:r,bar:o,popover:c}=e.attribute;return c&&c.hideIndicator?null:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(i,s)=>(a.openBlock(),a.createElementBlock("div",rW,[a.unref(n)?(a.openBlock(),a.createElementBlock("div",aW,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(n).class)},null,2)])):a.createCommentVNode("",!0),a.createElementVNode("div",oW,[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.attribute.popover?t.attribute.popover.label:"No content provided"),1)])])]))}}),cW={inheritAttrs:!1},vi=a.defineComponent({...cW,__name:"CalendarSlot",props:{name:null},setup(t){const n=R5(t.name);return(i,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),a.normalizeProps(a.mergeProps({key:0},i.$attrs)),null,16)):a.renderSlot(i.$slots,"default",{key:1})}}),dW={class:"vc-day-popover-container"},uW={key:0,class:"vc-day-popover-header"},hW=a.defineComponent({__name:"CalendarDayPopover",setup(t){const{dayPopoverId:e,displayMode:n,color:i,masks:s,locale:r}=Gr();function o(d,h){return r.value.formatDate(d,h)}function c(d){return r.value.formatDate(d.date,s.value.dayPopover)}return(d,h)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),class:a.normalizeClass([`vc-${a.unref(i)}`,`vc-${a.unref(n)}`])},{default:a.withCtx(({data:{day:f,attributes:m},hide:g})=>[a.createVNode(vi,{name:"day-popover",day:f,"day-title":c(f),attributes:m,format:o,masks:a.unref(s),hide:g},{default:a.withCtx(()=>[a.createElementVNode("div",dW,[a.unref(s).dayPopover?(a.openBlock(),a.createElementBlock("div",uW,a.toDisplayString(c(f)),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,y=>(a.openBlock(),a.createBlock(lW,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),fW={},pW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},mW=[a.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function gW(t,e){return a.openBlock(),a.createElementBlock("svg",pW,mW)}const _W=ar(fW,[["render",gW]]),yW={},vW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},bW=[a.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function wW(t,e){return a.openBlock(),a.createElementBlock("svg",vW,bW)}const kW=ar(yW,[["render",wW]]),CW={},xW={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},SW=[a.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function MW(t,e){return a.openBlock(),a.createElementBlock("svg",xW,SW)}const OW=ar(CW,[["render",MW]]),DW={},EW={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},BW=[a.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function TW(t,e){return a.openBlock(),a.createElementBlock("svg",EW,BW)}const VW=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:OW,IconChevronLeft:kW,IconChevronRight:_W,IconClock:ar(DW,[["render",TW]])},Symbol.toStringTag,{value:"Module"})),to=a.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(t){const e=t,n=a.computed(()=>e.width||e.size),i=a.computed(()=>e.height||e.size),s=a.computed(()=>VW[`Icon${e.name}`]);return(r,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s)),{width:a.unref(n),height:a.unref(i),class:"vc-base-icon"},null,8,["width","height"]))}}),IW=["disabled"],AW={key:1,class:"vc-title-wrapper"},$W={type:"button",class:"vc-title"},NW=["disabled"],W5=a.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(t){const e=t,{navPopoverId:n,navVisibility:i,canMovePrev:s,movePrev:r,canMoveNext:o,moveNext:c}=Gr(),d=a.computed(()=>{switch(e.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=a.computed(()=>{const{page:k}=e;return{id:n.value,visibility:i.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:k},isInteractive:!0}}),f=a.computed(()=>e.page.titlePosition.includes("left")),m=a.computed(()=>e.page.titlePosition.includes("right")),g=a.computed(()=>e.layout?e.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=a.computed(()=>({prev:g.value.includes("p")&&!e.hideArrows,title:g.value.includes("t")&&!e.hideTitle,next:g.value.includes("n")&&!e.hideArrows})),b=a.computed(()=>({gridTemplateColumns:g.value.split("").map(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(k,C)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-header",{"is-lg":t.isLg,"is-xl":t.isXl,"is-2xl":t.is2xl}]),style:a.normalizeStyle(a.unref(b))},[a.unref(y).prev?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!a.unref(s),onClick:C[0]||(C[0]=(...S)=>a.unref(r)&&a.unref(r)(...S)),onKeydown:C[1]||(C[1]=a.withKeys((...S)=>a.unref(r)&&a.unref(r)(...S),["space","enter"]))},[a.createVNode(vi,{name:"header-prev-button",disabled:!a.unref(s)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,IW)):a.createCommentVNode("",!0),a.unref(y).title?(a.openBlock(),a.createElementBlock("div",AW,[a.createVNode(vi,{name:"header-title-wrapper"},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("button",$W,[a.createVNode(vi,{name:"header-title",title:t.page.title},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(t.page.title),1)]),_:1},8,["title"])])),[[a.unref(A5),a.unref(h)]])]),_:1})])):a.createCommentVNode("",!0),a.unref(y).next?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!a.unref(o),onClick:C[2]||(C[2]=(...S)=>a.unref(c)&&a.unref(c)(...S)),onKeydown:C[3]||(C[3]=a.withKeys((...S)=>a.unref(c)&&a.unref(c)(...S),["space","enter"]))},[a.createVNode(vi,{name:"header-next-button",disabled:!a.unref(o)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,NW)):a.createCommentVNode("",!0)],6))}}),Y5=Symbol("__vc_page_context__");function zW(t){const{locale:e,getDateAddress:n,canMove:i}=Gr();function s(c,d){const{month:h,year:f}=n(new Date);return M5().map((m,g)=>{const y=g+1;return{month:y,year:c,id:KR(y,c),label:e.value.formatDate(m,d),ariaLabel:e.value.formatDate(m,"MMMM"),isActive:y===t.value.month&&c===t.value.year,isCurrent:y===h&&c===f,isDisabled:!i({month:y,year:c},{position:t.value.position})}})}function r(c,d){const{year:h}=n(new Date),{position:f}=t.value,m=[];for(let g=c;g<=d;g+=1){const y=[...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:!y})}return m}const o={page:t,getMonthItems:s,getYearItems:r};return a.provide(Y5,o),o}function j5(){const t=a.inject(Y5);if(t)return t;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const PW={class:"vc-nav-header"},LW=["disabled"],FW=["disabled"],RW={class:"vc-nav-items"},HW=["data-id","aria-label","disabled","onClick","onKeydown"],WW=a.defineComponent({__name:"CalendarNav",setup(t){const{masks:e,move:n}=Gr(),{page:i,getMonthItems:s,getYearItems:r}=j5(),o=a.ref(!0),c=12,d=a.ref(i.value.year),h=a.ref(g(i.value.year)),f=a.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const oe=f.value.querySelector(".vc-nav-item:not(:disabled)");oe&&oe.focus()},10)}function g(oe){return Math.floor(oe/c)}function y(){o.value=!o.value}function b(oe){return oe*c}function k(oe){return c*(oe+1)-1}function C(){!fe.value||(o.value&&E(),x())}function S(){!ye.value||(o.value&&A(),V())}function E(){d.value--}function A(){d.value++}function x(){h.value--}function V(){h.value++}const N=a.computed(()=>s(d.value,e.value.navMonths).map(oe=>({...oe,click:()=>n({month:oe.month,year:oe.year},{position:i.value.position})}))),L=a.computed(()=>s(d.value-1,e.value.navMonths)),F=a.computed(()=>L.value.some(oe=>!oe.isDisabled)),q=a.computed(()=>s(d.value+1,e.value.navMonths)),ee=a.computed(()=>q.value.some(oe=>!oe.isDisabled)),ne=a.computed(()=>r(b(h.value),k(h.value)).map(oe=>({...oe,click:()=>{d.value=oe.year,o.value=!0,m()}}))),K=a.computed(()=>r(b(h.value-1),k(h.value-1))),ie=a.computed(()=>K.value.some(oe=>!oe.isDisabled)),me=a.computed(()=>r(b(h.value+1),k(h.value+1))),J=a.computed(()=>me.value.some(oe=>!oe.isDisabled)),he=a.computed(()=>o.value?N.value:ne.value),fe=a.computed(()=>o.value?F.value:ie.value),ye=a.computed(()=>o.value?ee.value:J.value),we=a.computed(()=>W_(ne.value.map(oe=>oe.year))),R=a.computed(()=>Ka(ne.value.map(oe=>oe.year))),pe=a.computed(()=>o.value?d.value:`${we.value} - ${R.value}`);return a.watchEffect(()=>{d.value=i.value.year,m()}),a.watch(()=>d.value,oe=>h.value=g(oe)),a.onMounted(()=>m()),(oe,Ee)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[a.createElementVNode("div",PW,[a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!a.unref(fe),onClick:C,onKeydown:Ee[0]||(Ee[0]=Me=>a.unref(Qd)(Me,C))},[a.createVNode(vi,{name:"nav-prev-button",move:C,disabled:!a.unref(fe)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,LW),a.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:Ee[1]||(Ee[1]=Me=>a.unref(Qd)(Me,y))},a.toDisplayString(a.unref(pe)),33),a.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!a.unref(ye),onClick:S,onKeydown:Ee[2]||(Ee[2]=Me=>a.unref(Qd)(Me,S))},[a.createVNode(vi,{name:"nav-next-button",move:S,disabled:!a.unref(ye)},{default:a.withCtx(()=>[a.createVNode(to,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,FW)]),a.createElementVNode("div",RW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(he),Me=>(a.openBlock(),a.createElementBlock("button",{key:Me.label,type:"button","data-id":Me.id,"aria-label":Me.ariaLabel,class:a.normalizeClass(["vc-nav-item vc-focus",[Me.isActive?"is-active":Me.isCurrent?"is-current":""]]),disabled:Me.isDisabled,onClick:Me.click,onKeydown:ge=>a.unref(Qd)(ge,Me.click)},a.toDisplayString(Me.label),43,HW))),128))])],512))}}),U5=a.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(t){const e=t;return zW(a.toRef(e,"page")),(n,i)=>a.renderSlot(n.$slots,"default")}}),YW=a.defineComponent({__name:"CalendarNavPopover",setup(t){const{navPopoverId:e,color:n,displayMode:i}=Gr();return(s,r)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),class:a.normalizeClass(["vc-nav-popover-container",`vc-${a.unref(n)}`,`vc-${a.unref(i)}`])},{default:a.withCtx(({data:o})=>[a.createVNode(U5,{page:o.page},{default:a.withCtx(()=>[a.createVNode(vi,{name:"nav"},{default:a.withCtx(()=>[a.createVNode(WW)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),jW=a.defineComponent({directives:{popover:A5},components:{CalendarSlot:vi},props:{day:{type:Object,required:!0}},setup(t){const{locale:e,theme:n,attributeContext:i,dayPopoverId:s,onDayClick:r,onDayMouseenter:o,onDayMouseleave:c,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=Gr(),m=a.computed(()=>t.day),g=a.computed(()=>i.value.getCells(m.value)),y=a.computed(()=>g.value.map(J=>J.data)),b=a.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function k({data:J},{popovers:he}){const{key:fe,customData:ye,popover:we}=J;if(!we)return;const R=D_({key:fe,customData:ye,attribute:J},{...we},{visibility:we.label?"hover":"click",placement:"bottom",isInteractive:!we.label});he.splice(0,0,R)}const C=a.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(he=>{n.value.render(he,J),k(he,J)}),J}),S=a.computed(()=>C.value.highlights),E=a.computed(()=>!!Cs(S.value)),A=a.computed(()=>C.value.content),x=a.computed(()=>C.value.dots),V=a.computed(()=>!!Cs(x.value)),N=a.computed(()=>C.value.bars),L=a.computed(()=>!!Cs(N.value)),F=a.computed(()=>C.value.popovers),q=a.computed(()=>F.value.map(J=>J.attribute)),ee=R5("day-content"),ne=a.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!ee},{"is-not-in-month":!t.day.inMonth}]),K=a.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const he=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},Ur(Ka(S.value),"contentClass"),Ur(Ka(A.value),"class")||""],fe={...Ur(Ka(S.value),"contentStyle"),...Ur(Ka(A.value),"style")};return{class:he,style:fe,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ie=a.computed(()=>({click(J){r(b.value,J)},mouseenter(J){o(b.value,J)},mouseleave(J){c(b.value,J)},focusin(J){d(b.value,J)},focusout(J){h(b.value,J)},keydown(J){f(b.value,J)}})),me=a.computed(()=>Cs(F.value)?D_({id:s.value,data:{day:m,attributes:q.value}},...F.value):null);return{attributes:y,attributeCells:g,bars:N,dayClasses:ne,dayContentProps:K,dayContentEvents:ie,dayPopover:me,glyphs:C,dots:x,hasDots:V,hasBars:L,highlights:S,hasHighlights:E,locale:e,popovers:F}}}),UW={key:0,class:"vc-highlights vc-day-layer"},qW={key:1,class:"vc-day-layer vc-day-box-center-bottom"},GW={class:"vc-dots"},KW={key:2,class:"vc-day-layer vc-day-box-center-bottom"},ZW={class:"vc-bars"};function XW(t,e,n,i,s,r){const o=a.resolveComponent("CalendarSlot"),c=a.resolveDirective("popover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.dayClasses)},[t.hasHighlights?(a.openBlock(),a.createElementBlock("div",UW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(h)},[a.createElementVNode("div",{class:a.normalizeClass(f),style:a.normalizeStyle(m)},null,6)],2))),128))])):a.createCommentVNode("",!0),a.createVNode(o,{name:"day-content",day:t.day,attributes:t.attributes,"attribute-cells":t.attributeCells,dayProps:t.dayContentProps,dayEvents:t.dayContentEvents,locale:t.locale},{default:a.withCtx(()=>[a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps(t.dayContentProps,a.toHandlers(t.dayContentEvents,!0)),[a.createTextVNode(a.toDisplayString(t.day.label),1)],16)),[[c,t.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),t.hasDots?(a.openBlock(),a.createElementBlock("div",qW,[a.createElementVNode("div",GW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dots,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0),t.hasBars?(a.openBlock(),a.createElementBlock("div",KW,[a.createElementVNode("div",ZW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.bars,({key:d,class:h,style:f})=>(a.openBlock(),a.createElementBlock("span",{key:d,class:a.normalizeClass(h),style:a.normalizeStyle(f)},null,6))),128))])])):a.createCommentVNode("",!0)],2)}const JW=ar(jW,[["render",XW]]),QW={class:"vc-weekdays"},eY=["onClick"],tY={inheritAttrs:!1},nY=a.defineComponent({...tY,__name:"CalendarPage",setup(t){const{page:e}=j5(),{onWeeknumberClick:n}=Gr();return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-pane",`row-${a.unref(e).row}`,`row-from-end-${a.unref(e).rowFromEnd}`,`column-${a.unref(e).column}`,`column-from-end-${a.unref(e).columnFromEnd}`]),ref:"pane"},[a.createVNode(W5,{page:a.unref(e),"is-lg":"","hide-arrows":""},null,8,["page"]),a.createElementVNode("div",{class:a.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${a.unref(e).weeknumberPosition}`]:a.unref(e).weeknumberPosition}])},[a.createElementVNode("div",QW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).weekdays,({weekday:r,label:o},c)=>(a.openBlock(),a.createElementBlock("div",{key:c,class:a.normalizeClass(`vc-weekday vc-weekday-${r}`)},a.toDisplayString(o),3))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).viewWeeks,r=>(a.openBlock(),a.createElementBlock("div",{key:`weeknumber-${r.weeknumber}`,class:"vc-week"},[a.unref(e).weeknumberPosition?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["vc-weeknumber",`is-${a.unref(e).weeknumberPosition}`])},[a.createElementVNode("span",{class:a.normalizeClass(["vc-weeknumber-content"]),onClick:o=>a.unref(n)(r,o)},a.toDisplayString(r.weeknumberDisplay),9,eY)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.days,o=>(a.openBlock(),a.createBlock(JW,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),iY=a.defineComponent({components:{CalendarHeader:W5,CalendarPage:nY,CalendarNavPopover:YW,CalendarDayPopover:hW,CalendarPageProvider:U5,CalendarSlot:vi},props:eW,emit:tW,setup(t,{emit:e,slots:n}){return nW(t,{emit:e,slots:n})}}),sY={class:"vc-pane-header-wrapper"};function rY(t,e,n,i,s,r){const o=a.resolveComponent("CalendarHeader"),c=a.resolveComponent("CalendarPage"),d=a.resolveComponent("CalendarSlot"),h=a.resolveComponent("CalendarPageProvider"),f=a.resolveComponent("CalendarDayPopover"),m=a.resolveComponent("CalendarNavPopover");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},t.$attrs,{class:["vc-container",`vc-${t.view}`,`vc-${t.color}`,`vc-${t.displayMode}`,{"vc-expanded":t.expanded,"vc-bordered":!t.borderless,"vc-transparent":t.transparent}],onMouseup:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[a.createElementVNode("div",{class:a.normalizeClass(["vc-pane-container",{"in-transition":t.inTransition}])},[a.createElementVNode("div",sY,[t.firstPage?(a.openBlock(),a.createBlock(o,{key:0,page:t.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):a.createCommentVNode("",!0)]),a.createVNode(a.Transition,{name:`vc-${t.transitionName}`,onBeforeEnter:t.onTransitionBeforeEnter,onAfterEnter:t.onTransitionAfterEnter},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{key:t.pages[0].id,class:"vc-pane-layout",style:a.normalizeStyle({gridTemplateColumns:`repeat(${t.columns}, 1fr)`})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.pages,g=>(a.openBlock(),a.createBlock(h,{key:g.id,page:g},{default:a.withCtx(()=>[a.createVNode(d,{name:"page",page:g},{default:a.withCtx(()=>[a.createVNode(c)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),a.createVNode(d,{name:"footer"})],2)],16),a.createVNode(f),a.createVNode(m)],64)}const aY=ar(iY,[["render",rY]]),q5=Symbol("__vc_date_picker_context__"),oY={...z5,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:()=>sr("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>sr("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},lY=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function cY(t,{emit:e,slots:n}){F5(n,{footer:"dp-footer"});const i=P5(t),{locale:s,masks:r,disabledAttribute:o}=i,c=a.ref(!1),d=a.ref(Symbol()),h=a.ref(null),f=a.ref(null),m=a.ref(["",""]),g=a.ref(null),y=a.ref(null);let b,k,C=!0;const S=a.computed(()=>t.isRange||t.modelModifiers.range===!0),E=a.computed(()=>S.value&&h.value!=null?h.value.start:null),A=a.computed(()=>S.value&&h.value!=null?h.value.end:null),x=a.computed(()=>t.mode.toLowerCase()==="date"),V=a.computed(()=>t.mode.toLowerCase()==="datetime"),N=a.computed(()=>t.mode.toLowerCase()==="time"),L=a.computed(()=>!!f.value),F=a.computed(()=>{let B="date";t.modelModifiers.number&&(B="number"),t.modelModifiers.string&&(B="string");const Y=r.value.modelValue||"iso";return Ee({type:B,mask:Y})}),q=a.computed(()=>nn(f.value??h.value)),ee=a.computed(()=>N.value?t.is24hr?r.value.inputTime24hr:r.value.inputTime:V.value?t.is24hr?r.value.inputDateTime24hr:r.value.inputDateTime:r.value.input),ne=a.computed(()=>/[Hh]/g.test(ee.value)),K=a.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ee.value)),ie=a.computed(()=>{if(ne.value&&K.value)return"dateTime";if(K.value)return"date";if(ne.value)return"time"}),me=a.computed(()=>{var B;const Y=((B=g.value)==null?void 0:B.$el.previousElementSibling)??void 0;return Ll({},t.popover,sr("datePicker.popover"),{target:Y})}),J=a.computed(()=>T5({...me.value,id:d.value})),he=a.computed(()=>S.value?{start:m.value[0],end:m.value[1]}:m.value[0]),fe=a.computed(()=>{const B=["start","end"].map(Y=>({input:ft(Y),change:Ct(Y),keyup:tn,...t.popover&&J.value}));return S.value?{start:B[0],end:B[1]}:B[0]}),ye=a.computed(()=>{if(!lt(h.value))return null;const B={key:"select-drag",...t.selectAttribute,dates:h.value,pinPage:!0},{dot:Y,bar:se,highlight:Ce,content:Ye}=B;return!Y&&!se&&!Ce&&!Ye&&(B.highlight=!0),B}),we=a.computed(()=>{if(!S.value||!lt(f.value))return null;const B={key:"select-drag",...t.dragAttribute,dates:f.value},{dot:Y,bar:se,highlight:Ce,content:Ye}=B;return!Y&&!se&&!Ce&&!Ye&&(B.highlight={startEnd:{fillMode:"outline"}}),B}),R=a.computed(()=>{const B=yi(t.attributes)?[...t.attributes]:[];return we.value?B.unshift(we.value):ye.value&&B.unshift(ye.value),B}),pe=a.computed(()=>Ee(t.rules==="auto"?oe():t.rules??{}));function oe(){const B={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Y=x.value?0:t.timeAccuracy;return[0,1].map(se=>{switch(Y){case 0:return{hours:B.hr[se],minutes:B.min[se],seconds:B.sec[se],milliseconds:B.ms[se]};case 1:return{minutes:B.min[se],seconds:B.sec[se],milliseconds:B.ms[se]};case 3:return{milliseconds:B.ms[se]};case 4:return{};default:return{seconds:B.sec[se],milliseconds:B.ms[se]}}})}function Ee(B){return yi(B)?B.length===1?[B[0],B[0]]:B:[B,B]}function Me(B){return Ee(B).map((Y,se)=>({...Y,rules:pe.value[se]}))}function ge(B){return B==null?!1:Ri(B)?!isNaN(B):Za(B)?!isNaN(B.getTime()):ss(B)?B!=="":E0(B)}function Ne(B){return ks(B)&&"start"in B&&"end"in B&&ge(B.start??null)&&ge(B.end??null)}function lt(B){return Ne(B)||ge(B)}function Le(B,Y){if(B==null&&Y==null)return!0;if(B==null||Y==null)return!1;const se=Za(B),Ce=Za(Y);return se&&Ce?B.getTime()===Y.getTime():se||Ce?!1:Le(B.start,Y.start)&&Le(B.end,Y.end)}function ht(B){return!lt(B)||!o.value?!1:o.value.intersectsRange(s.value.range(B))}function It(B,Y,se,Ce){if(!lt(B))return null;if(Ne(B)){const Ye=s.value.toDate(B.start,{...Y[0],fillDate:E.value??void 0,patch:se}),at=s.value.toDate(B.end,{...Y[1],fillDate:A.value??void 0,patch:se});return Vn({start:Ye,end:at},Ce)}return s.value.toDateOrNull(B,{...Y[0],fillDate:h.value,patch:se})}function kt(B,Y){return Ne(B)?{start:s.value.fromDate(B.start,Y[0]),end:s.value.fromDate(B.end,Y[1])}:S.value?null:s.value.fromDate(B,Y[0])}function tt(B,Y={}){return clearTimeout(b),new Promise(se=>{const{debounce:Ce=0,...Ye}=Y;Ce>0?b=window.setTimeout(()=>{se(st(B,Ye))},Ce):se(st(B,Ye))})}function st(B,{config:Y=F.value,patch:se="dateTime",clearIfEqual:Ce=!1,formatInput:Ye=!0,hidePopover:at=!1,dragging:xt=L.value,targetPriority:sn,moveToValue:Gt=!1}={}){const Un=Me(Y);let pt=It(B,Un,se,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 xn=xt?f:h,ni=!Le(xn.value,pt);xn.value=pt,xt||(f.value=null);const Hi=kt(pt,F.value);return ni&&(C=!1,e(xt?"drag":"update:modelValue",Hi),a.nextTick(()=>C=!0)),at&&!xt&&We(),Ye&&rt(),Gt&&a.nextTick(()=>le(sn??"start")),Hi}function rt(){a.nextTick(()=>{const B=Me({type:"string",mask:ee.value}),Y=kt(f.value??h.value,B);S.value?m.value=[Y&&Y.start,Y&&Y.end]:m.value=[Y,""]})}function Yt(B,Y,se){m.value.splice(Y==="start"?0:1,1,B);const Ce=S.value?{start:m.value[0],end:m.value[1]||m.value[0]}:B,Ye={type:"string",mask:ee.value};tt(Ce,{...se,config:Ye,patch:ie.value,targetPriority:Y,moveToValue:!0})}function ft(B){return Y=>{!t.updateOnInput||Yt(Y.currentTarget.value,B,{formatInput:!1,hidePopover:!1,debounce:t.inputDebounce})}}function Ct(B){return Y=>{Yt(Y.currentTarget.value,B,{formatInput:!0,hidePopover:!1})}}function tn(B){B.key==="Escape"&&tt(h.value,{formatInput:!0,hidePopover:!0})}function nn(B){return S.value?[B&&B.start?s.value.getDateParts(B.start):null,B&&B.end?s.value.getDateParts(B.end):null]:[B?s.value.getDateParts(B):null]}function bt(){f.value=null,rt()}function nt(B){e("popover-will-show",B)}function Nt(B){e("popover-did-show",B)}function Ot(B){bt(),e("popover-will-hide",B)}function At(B){e("popover-did-hide",B)}function Dt(B){const Y={patch:"date",formatInput:!0,hidePopover:!0};if(S.value){const se=!L.value;se?k={start:B.startDate,end:B.endDate}:k!=null&&(k.end=B.date),tt(k,{...Y,dragging:se})}else tt(B.date,{...Y,clearIfEqual:!t.isRequired})}function un(B,Y){Dt(B),e("dayclick",B,Y)}function $t(B,Y){switch(Y.key){case" ":case"Enter":{Dt(B),Y.preventDefault();break}case"Escape":We()}e("daykeydown",B,Y)}function te(B,Y){!L.value||k==null||(k.end=B.date,tt(Vn(k),{patch:"date",formatInput:!0}))}function Ie(B={}){V0({...me.value,...B,isInteractive:!0,id:d.value})}function We(B={}){Wl({hideDelay:10,force:!0,...me.value,...B,id:d.value})}function pn(B){B5({...me.value,...B,isInteractive:!0,id:d.value})}function Vn(B,Y){const{start:se,end:Ce}=B;if(se>Ce)switch(Y){case"start":return{start:se,end:se};case"end":return{start:Ce,end:Ce};default:return{start:Ce,end:se}}return{start:se,end:Ce}}async function jn(B,Y={}){return y.value==null?!1:y.value.move(B,Y)}async function j(B,Y={}){return y.value==null?!1:y.value.moveBy(B,Y)}async function le(B,Y={}){const se=h.value;if(y.value==null||!lt(se))return!1;const Ce=B!=="end",Ye=Ce?1:-1,at=Ne(se)?Ce?se.start:se.end:se,xt=a5(at,"monthly",s.value);return y.value.move(xt,{position:Ye,...Y})}a.watch(()=>t.isRange,B=>{B&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),a.watch(()=>S.value,()=>{st(null,{formatInput:!0})}),a.watch(()=>ee.value,()=>rt()),a.watch(()=>t.modelValue,B=>{!C||st(B,{formatInput:!0,hidePopover:!1})}),a.watch(()=>pe.value,()=>{ks(t.rules)&&st(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.watch(()=>t.timezone,()=>{st(h.value,{formatInput:!0})});const ve=Ee(F.value);h.value=It(t.modelValue??null,ve,"dateTime"),a.onMounted(()=>{st(t.modelValue,{formatInput:!0,hidePopover:!1})}),a.nextTick(()=>c.value=!0);const W={...i,showCalendar:c,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:y,isRange:S,isTimeMode:N,isDateTimeMode:V,is24hr:a.toRef(t,"is24hr"),hideTimeHeader:a.toRef(t,"hideTimeHeader"),timeAccuracy:a.toRef(t,"timeAccuracy"),isDragging:L,inputValue:he,inputEvents:fe,dateParts:q,attributes:R,rules:pe,move:jn,moveBy:j,moveToValue:le,updateValue:tt,showPopover:Ie,hidePopover:We,togglePopover:pn,onDayClick:un,onDayKeydown:$t,onDayMouseEnter:te,onPopoverBeforeShow:nt,onPopoverAfterShow:Nt,onPopoverBeforeHide:Ot,onPopoverAfterHide:At};return a.provide(q5,W),W}function N0(){const t=a.inject(q5);if(t)return t;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const dY=[{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"}],uY=[{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 hY(t){const e=N0(),{locale:n,isRange:i,isTimeMode:s,dateParts:r,rules:o,is24hr:c,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=e;function m(K){K=Object.assign(y.value,K);let ie=null;if(i.value){const me=g.value?K:r.value[0],J=g.value?r.value[1]:K;ie={start:me,end:J}}else ie=K;f(ie,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=a.computed(()=>t.position===0),y=a.computed(()=>r.value[t.position]||{isValid:!1}),b=a.computed(()=>E0(y.value)),k=a.computed(()=>!!y.value.isValid),C=a.computed(()=>!d.value&&k.value),S=a.computed(()=>{if(!b.value)return null;let K=n.value.toDate(y.value);return y.value.hours===24&&(K=new Date(K.getTime()-1)),K}),E=a.computed({get(){return y.value.hours},set(K){m({hours:K})}}),A=a.computed({get(){return y.value.minutes},set(K){m({minutes:K})}}),x=a.computed({get(){return y.value.seconds},set(K){m({seconds:K})}}),V=a.computed({get(){return y.value.milliseconds},set(K){m({milliseconds:K})}}),N=a.computed({get(){return y.value.hours<12},set(K){K=String(K).toLowerCase()=="true";let ie=E.value;K&&ie>=12?ie-=12:!K&&ie<12&&(ie+=12),m({hours:ie})}}),L=a.computed(()=>$H(y.value,o.value[t.position])),F=a.computed(()=>dY.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),q=a.computed(()=>uY.filter(K=>L.value.hours.some(ie=>ie.value===K.value))),ee=a.computed(()=>c.value?L.value.hours:N.value?F.value:q.value),ne=a.computed(()=>{const K=[];return Cs(F.value)&&K.push({value:!0,label:"AM"}),Cs(q.value)&&K.push({value:!1,label:"PM"}),K});return{...e,showHeader:C,timeAccuracy:h,parts:y,isValid:k,date:S,hours:E,minutes:A,seconds:x,milliseconds:V,options:L,hourOptions:ee,isAM:N,isAMOptions:ne,is24hr:c}}const fY=["value"],pY=["value","disabled"],mY={key:1,class:"vc-base-sizer","aria-hidden":"true"},gY={inheritAttrs:!1},Yl=a.defineComponent({...gY,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(t){const e=t,n=a.computed(()=>{const i=e.options.find(s=>s.value===e.modelValue);return i==null?void 0:i.label});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-base-select",{"vc-fit-content":t.fitContent,"vc-has-icon":t.showIcon}])},[a.createElementVNode("select",a.mergeProps(i.$attrs,{value:t.modelValue,class:["vc-focus",{"vc-align-right":t.alignRight,"vc-align-left":t.alignLeft}],onChange:s[0]||(s[0]=r=>i.$emit("update:modelValue",r.target.value))}),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.options,r=>(a.openBlock(),a.createElementBlock("option",{key:r.value,value:r.value,disabled:r.disabled},a.toDisplayString(r.label),9,pY))),128))],16,fY),t.showIcon?(a.openBlock(),a.createBlock(to,{key:0,name:"ChevronDown",size:"18"})):a.createCommentVNode("",!0),t.fitContent?(a.openBlock(),a.createElementBlock("div",mY,a.toDisplayString(a.unref(n)),1)):a.createCommentVNode("",!0)],2))}}),_Y={key:0,class:"vc-time-header"},yY={class:"vc-time-weekday"},vY={class:"vc-time-month"},bY={class:"vc-time-day"},wY={class:"vc-time-year"},kY={class:"vc-time-select-group"},CY=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),xY=a.createElementVNode("span",{class:"vc-time-colon"},":",-1),SY=a.createElementVNode("span",{class:"vc-time-decimal"},".",-1),G5=a.defineComponent({__name:"TimePicker",props:{position:null},setup(t,{expose:e}){const i=hY(t);e(i);const{locale:s,isValid:r,date:o,hours:c,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:b,isAMOptions:k,is24hr:C,showHeader:S,timeAccuracy:E}=i;return(A,x)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-time-picker",[{"vc-invalid":!a.unref(r),"vc-attached":!a.unref(y)}]])},[a.createVNode(vi,{name:"time-header"},{default:a.withCtx(()=>[a.unref(S)&&a.unref(o)?(a.openBlock(),a.createElementBlock("div",_Y,[a.createElementVNode("span",yY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"WWW")),1),a.createElementVNode("span",vY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"MMM")),1),a.createElementVNode("span",bY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"D")),1),a.createElementVNode("span",wY,a.toDisplayString(a.unref(s).formatDate(a.unref(o),"YYYY")),1)])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",kY,[a.createVNode(to,{name:"Clock",size:"17"}),a.createVNode(Yl,{modelValue:a.unref(c),"onUpdate:modelValue":x[0]||(x[0]=V=>a.isRef(c)?c.value=V:null),modelModifiers:{number:!0},options:a.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),a.unref(E)>1?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[CY,a.createVNode(Yl,{modelValue:a.unref(d),"onUpdate:modelValue":x[1]||(x[1]=V=>a.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:a.unref(m).minutes,class:"vc-time-select-minutes","align-left":a.unref(E)===2},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(E)>2?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[xY,a.createVNode(Yl,{modelValue:a.unref(h),"onUpdate:modelValue":x[2]||(x[2]=V=>a.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:a.unref(m).seconds,class:"vc-time-select-seconds","align-left":a.unref(E)===3},null,8,["modelValue","options","align-left"])],64)):a.createCommentVNode("",!0),a.unref(E)>3?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[SY,a.createVNode(Yl,{modelValue:a.unref(f),"onUpdate:modelValue":x[3]||(x[3]=V=>a.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:a.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):a.createCommentVNode("",!0),a.unref(C)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Yl,{key:3,modelValue:a.unref(b),"onUpdate:modelValue":x[4]||(x[4]=V=>a.isRef(b)?b.value=V:null),options:a.unref(k)},null,8,["modelValue","options"]))])],2))}}),K5=a.defineComponent({__name:"DatePickerBase",setup(t){const{attributes:e,calendarRef:n,color:i,displayMode:s,isDateTimeMode:r,isTimeMode:o,isRange:c,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=N0(),m=c.value?[0,1]:[0];return(g,y)=>a.unref(o)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`vc-container vc-bordered vc-${a.unref(i)} vc-${a.unref(s)}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(G5,{key:b,position:b},null,8,["position"]))),128))],2)):(a.openBlock(),a.createBlock(aY,{key:1,attributes:a.unref(e),ref_key:"calendarRef",ref:n,onDayclick:a.unref(d),onDaymouseenter:a.unref(h),onDaykeydown:a.unref(f)},{footer:a.withCtx(()=>[a.unref(r)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(m),b=>(a.openBlock(),a.createBlock(G5,{key:b,position:b},null,8,["position"]))),128)):a.createCommentVNode("",!0),a.createVNode(vi,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),MY={inheritAttrs:!1},OY=a.defineComponent({...MY,__name:"DatePickerPopover",setup(t){const{datePickerPopoverId:e,color:n,displayMode:i,popoverRef:s,onPopoverBeforeShow:r,onPopoverAfterShow:o,onPopoverBeforeHide:c,onPopoverAfterHide:d}=N0();return(h,f)=>(a.openBlock(),a.createBlock($0,{id:a.unref(e),placement:"bottom-start",class:a.normalizeClass(`vc-date-picker-content vc-${a.unref(n)} vc-${a.unref(i)}`),ref_key:"popoverRef",ref:s,onBeforeShow:a.unref(r),onAfterShow:a.unref(o),onBeforeHide:a.unref(c),onAfterHide:a.unref(d)},{default:a.withCtx(()=>[a.createVNode(K5,a.normalizeProps(a.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),DY=a.defineComponent({inheritAttrs:!1,emits:lY,props:oY,components:{DatePickerBase:K5,DatePickerPopover:OY},setup(t,e){const n=cY(t,e),i=a.reactive(U_(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function EY(t,e,n,i,s,r){const o=a.resolveComponent("DatePickerPopover"),c=a.resolveComponent("DatePickerBase");return t.$slots.default?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.renderSlot(t.$slots,"default",a.normalizeProps(a.guardReactiveProps(t.slotCtx))),a.createVNode(o,a.normalizeProps(a.guardReactiveProps(t.$attrs)),null,16)],64)):(a.openBlock(),a.createBlock(c,a.normalizeProps(a.mergeProps({key:1},t.$attrs)),null,16))}const Z5=ar(DY,[["render",EY]]),yue="";var bi={exports:{}};/**
44
44
  * @license
45
45
  * Lodash <https://lodash.com/>
46
46
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
47
47
  * Released under MIT license <https://lodash.com/license>
48
48
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
49
49
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
50
- */(function(t,e){(function(){var n,i="4.17.21",s=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",m=1,g=2,y=4,b=1,k=2,C=1,S=2,E=4,A=8,x=16,V=32,N=64,L=128,F=256,q=512,ee=30,ne="...",K=800,ie=16,me=1,J=2,he=3,fe=1/0,ye=9007199254740991,we=17976931348623157e292,R=0/0,pe=4294967295,oe=pe-1,Ee=pe>>>1,Me=[["ary",L],["bind",C],["bindKey",S],["curry",A],["curryRight",x],["flip",q],["partial",V],["partialRight",N],["rearg",F]],ge="[object Arguments]",Ne="[object Array]",lt="[object AsyncFunction]",Le="[object Boolean]",ht="[object Date]",It="[object DOMException]",kt="[object Error]",tt="[object Function]",st="[object GeneratorFunction]",rt="[object Map]",Yt="[object Number]",ft="[object Null]",Ct="[object Object]",tn="[object Promise]",nn="[object Proxy]",bt="[object RegExp]",nt="[object Set]",Nt="[object String]",Ot="[object Symbol]",At="[object Undefined]",Dt="[object WeakMap]",un="[object WeakSet]",$t="[object ArrayBuffer]",te="[object DataView]",Ie="[object Float32Array]",We="[object Float64Array]",pn="[object Int8Array]",Vn="[object Int16Array]",jn="[object Int32Array]",j="[object Uint8Array]",le="[object Uint8ClampedArray]",ve="[object Uint16Array]",W="[object Uint32Array]",B=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,at=RegExp(Ce.source),xt=RegExp(Ye.source),sn=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,In=/^\w*$/,xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/[\\^$.*+?()[\]{}|]/g,Hi=RegExp(ni.source),Ms=/^\s+/,oo=/\s/,Jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rn=/\{\n\/\* \[wrapped with (.+)\] \*/,Gl=/,? & /,Kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zl=/[()=,{}\[\]\/\s]/,Xl=/\\(\\)?/g,Jl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,an=/\w*$/,Ql=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,tc=/^\[object .+?Constructor\]$/,nc=/^0o[0-7]+$/i,ic=/^(?:0|[1-9]\d*)$/,Sn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,sc=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",rc="\\u0300-\\u036f",ac="\\ufe20-\\ufe2f",cr="\\u20d0-\\u20ff",Qr=rc+ac+cr,Os="\\u2700-\\u27bf",ii="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",oc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lc="\\u2000-\\u206f",cc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",co="\\ufe0e\\ufe0f",Ds=ea+oc+lc+cc,Es="['\u2019]",Bs="["+lr+"]",ta="["+Ds+"]",Ts="["+Qr+"]",uo="\\d+",dc="["+Os+"]",ho="["+ii+"]",fo="[^"+lr+Ds+uo+Os+ii+lo+"]",Vs="\\ud83c[\\udffb-\\udfff]",uc="(?:"+Ts+"|"+Vs+")",po="[^"+lr+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+lo+"]",bi="\\u200d",mo="(?:"+ho+"|"+fo+")",wi="(?:"+Mn+"|"+fo+")",go="(?:"+Es+"(?:d|ll|m|re|s|t|ve))?",_o="(?:"+Es+"(?:D|LL|M|RE|S|T|VE))?",yo=uc+"?",vo="["+co+"]?",bo="(?:"+bi+"(?:"+[po,Wi,An].join("|")+")"+vo+yo+")*",mn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",na=vo+yo+bo,dr="(?:"+[dc,Wi,An].join("|")+")"+na,ia="(?:"+[po+Ts+"?",Ts,Wi,An,Bs].join("|")+")",ur=RegExp(Es,"g"),hc=RegExp(Ts,"g"),hr=RegExp(Vs+"(?="+Vs+")|"+ia+na,"g"),sa=RegExp([Mn+"?"+ho+"+"+go+"(?="+[ta,Mn,"$"].join("|")+")",wi+"+"+_o+"(?="+[ta,Mn+mo,"$"].join("|")+")",Mn+"?"+mo+"+"+go,Mn+"+"+_o,wo,mn,uo,dr].join("|"),"g"),ko=RegExp("["+bi+lr+Qr+co+"]"),ki=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Co=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ra=-1,mt={};mt[Ie]=mt[We]=mt[pn]=mt[Vn]=mt[jn]=mt[j]=mt[le]=mt[ve]=mt[W]=!0,mt[ge]=mt[Ne]=mt[$t]=mt[Le]=mt[te]=mt[ht]=mt[kt]=mt[tt]=mt[rt]=mt[Yt]=mt[Ct]=mt[bt]=mt[nt]=mt[Nt]=mt[Dt]=!1;var ct={};ct[ge]=ct[Ne]=ct[$t]=ct[te]=ct[Le]=ct[ht]=ct[Ie]=ct[We]=ct[pn]=ct[Vn]=ct[jn]=ct[rt]=ct[Yt]=ct[Ct]=ct[bt]=ct[nt]=ct[Nt]=ct[Ot]=ct[j]=ct[le]=ct[ve]=ct[W]=!0,ct[kt]=ct[tt]=ct[Dt]=!1;var v={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},U={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,ke=parseInt,Re=typeof cn=="object"&&cn&&cn.Object===Object&&cn,Ge=typeof self=="object"&&self&&self.Object===Object&&self,He=Re||Ge||Function("return this")(),Xe=e&&!e.nodeType&&e,zt=Xe&&!0&&t&&!t.nodeType&&t,gn=zt&&zt.exports===Xe,Ft=gn&&Re.process,gt=function(){try{var z=zt&&zt.require&&zt.require("util").types;return z||Ft&&Ft.binding&&Ft.binding("util")}catch{}}(),Qt=gt&&gt.isArrayBuffer,Yi=gt&&gt.isDate,Ci=gt&&gt.isMap,as=gt&&gt.isRegExp,fc=gt&&gt.isSet,aa=gt&&gt.isTypedArray;function hn(z,G,H){switch(H.length){case 0:return z.call(G);case 1:return z.call(G,H[0]);case 2:return z.call(G,H[0],H[1]);case 3:return z.call(G,H[0],H[1],H[2])}return z.apply(G,H)}function HJ(z,G,H,_e){for(var Ve=-1,ot=z==null?0:z.length;++Ve<ot;){var on=z[Ve];G(_e,on,H(on),z)}return _e}function xi(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e&&G(z[H],H,z)!==!1;);return z}function WJ(z,G){for(var H=z==null?0:z.length;H--&&G(z[H],H,z)!==!1;);return z}function tv(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e;)if(!G(z[H],H,z))return!1;return!0}function fr(z,G){for(var H=-1,_e=z==null?0:z.length,Ve=0,ot=[];++H<_e;){var on=z[H];G(on,H,z)&&(ot[Ve++]=on)}return ot}function yu(z,G){var H=z==null?0:z.length;return!!H&&xo(z,G,0)>-1}function rf(z,G,H){for(var _e=-1,Ve=z==null?0:z.length;++_e<Ve;)if(H(G,z[_e]))return!0;return!1}function Pt(z,G){for(var H=-1,_e=z==null?0:z.length,Ve=Array(_e);++H<_e;)Ve[H]=G(z[H],H,z);return Ve}function pr(z,G){for(var H=-1,_e=G.length,Ve=z.length;++H<_e;)z[Ve+H]=G[H];return z}function af(z,G,H,_e){var Ve=-1,ot=z==null?0:z.length;for(_e&&ot&&(H=z[++Ve]);++Ve<ot;)H=G(H,z[Ve],Ve,z);return H}function YJ(z,G,H,_e){var Ve=z==null?0:z.length;for(_e&&Ve&&(H=z[--Ve]);Ve--;)H=G(H,z[Ve],Ve,z);return H}function of(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e;)if(G(z[H],H,z))return!0;return!1}var jJ=lf("length");function UJ(z){return z.split("")}function qJ(z){return z.match(Kl)||[]}function nv(z,G,H){var _e;return H(z,function(Ve,ot,on){if(G(Ve,ot,on))return _e=ot,!1}),_e}function vu(z,G,H,_e){for(var Ve=z.length,ot=H+(_e?1:-1);_e?ot--:++ot<Ve;)if(G(z[ot],ot,z))return ot;return-1}function xo(z,G,H){return G===G?rQ(z,G,H):vu(z,iv,H)}function GJ(z,G,H,_e){for(var Ve=H-1,ot=z.length;++Ve<ot;)if(_e(z[Ve],G))return Ve;return-1}function iv(z){return z!==z}function sv(z,G){var H=z==null?0:z.length;return H?df(z,G)/H:R}function lf(z){return function(G){return G==null?n:G[z]}}function cf(z){return function(G){return z==null?n:z[G]}}function rv(z,G,H,_e,Ve){return Ve(z,function(ot,on,St){H=_e?(_e=!1,ot):G(H,ot,on,St)}),H}function KJ(z,G){var H=z.length;for(z.sort(G);H--;)z[H]=z[H].value;return z}function df(z,G){for(var H,_e=-1,Ve=z.length;++_e<Ve;){var ot=G(z[_e]);ot!==n&&(H=H===n?ot:H+ot)}return H}function uf(z,G){for(var H=-1,_e=Array(z);++H<z;)_e[H]=G(H);return _e}function ZJ(z,G){return Pt(G,function(H){return[H,z[H]]})}function av(z){return z&&z.slice(0,dv(z)+1).replace(Ms,"")}function si(z){return function(G){return z(G)}}function hf(z,G){return Pt(G,function(H){return z[H]})}function pc(z,G){return z.has(G)}function ov(z,G){for(var H=-1,_e=z.length;++H<_e&&xo(G,z[H],0)>-1;);return H}function lv(z,G){for(var H=z.length;H--&&xo(G,z[H],0)>-1;);return H}function XJ(z,G){for(var H=z.length,_e=0;H--;)z[H]===G&&++_e;return _e}var JJ=cf(v),QJ=cf(O);function eQ(z){return"\\"+U[z]}function tQ(z,G){return z==null?n:z[G]}function So(z){return ko.test(z)}function nQ(z){return ki.test(z)}function iQ(z){for(var G,H=[];!(G=z.next()).done;)H.push(G.value);return H}function ff(z){var G=-1,H=Array(z.size);return z.forEach(function(_e,Ve){H[++G]=[Ve,_e]}),H}function cv(z,G){return function(H){return z(G(H))}}function mr(z,G){for(var H=-1,_e=z.length,Ve=0,ot=[];++H<_e;){var on=z[H];(on===G||on===f)&&(z[H]=f,ot[Ve++]=H)}return ot}function bu(z){var G=-1,H=Array(z.size);return z.forEach(function(_e){H[++G]=_e}),H}function sQ(z){var G=-1,H=Array(z.size);return z.forEach(function(_e){H[++G]=[_e,_e]}),H}function rQ(z,G,H){for(var _e=H-1,Ve=z.length;++_e<Ve;)if(z[_e]===G)return _e;return-1}function aQ(z,G,H){for(var _e=H+1;_e--;)if(z[_e]===G)return _e;return _e}function Mo(z){return So(z)?lQ(z):jJ(z)}function ji(z){return So(z)?cQ(z):UJ(z)}function dv(z){for(var G=z.length;G--&&oo.test(z.charAt(G)););return G}var oQ=cf(I);function lQ(z){for(var G=hr.lastIndex=0;hr.test(z);)++G;return G}function cQ(z){return z.match(hr)||[]}function dQ(z){return z.match(sa)||[]}var uQ=function z(G){G=G==null?He:Oo.defaults(He.Object(),G,Oo.pick(He,Co));var H=G.Array,_e=G.Date,Ve=G.Error,ot=G.Function,on=G.Math,St=G.Object,pf=G.RegExp,hQ=G.String,Si=G.TypeError,wu=H.prototype,fQ=ot.prototype,Do=St.prototype,ku=G["__core-js_shared__"],Cu=fQ.toString,_t=Do.hasOwnProperty,pQ=0,uv=function(){var l=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),xu=Do.toString,mQ=Cu.call(St),gQ=He._,_Q=pf("^"+Cu.call(_t).replace(ni,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Su=gn?G.Buffer:n,gr=G.Symbol,Mu=G.Uint8Array,hv=Su?Su.allocUnsafe:n,Ou=cv(St.getPrototypeOf,St),fv=St.create,pv=Do.propertyIsEnumerable,Du=wu.splice,mv=gr?gr.isConcatSpreadable:n,mc=gr?gr.iterator:n,oa=gr?gr.toStringTag:n,Eu=function(){try{var l=ha(St,"defineProperty");return l({},"",{}),l}catch{}}(),yQ=G.clearTimeout!==He.clearTimeout&&G.clearTimeout,vQ=_e&&_e.now!==He.Date.now&&_e.now,bQ=G.setTimeout!==He.setTimeout&&G.setTimeout,Bu=on.ceil,Tu=on.floor,mf=St.getOwnPropertySymbols,wQ=Su?Su.isBuffer:n,gv=G.isFinite,kQ=wu.join,CQ=cv(St.keys,St),ln=on.max,On=on.min,xQ=_e.now,SQ=G.parseInt,_v=on.random,MQ=wu.reverse,gf=ha(G,"DataView"),gc=ha(G,"Map"),_f=ha(G,"Promise"),Eo=ha(G,"Set"),_c=ha(G,"WeakMap"),yc=ha(St,"create"),Vu=_c&&new _c,Bo={},OQ=fa(gf),DQ=fa(gc),EQ=fa(_f),BQ=fa(Eo),TQ=fa(_c),Iu=gr?gr.prototype:n,vc=Iu?Iu.valueOf:n,yv=Iu?Iu.toString:n;function M(l){if(jt(l)&&!Ae(l)&&!(l instanceof qe)){if(l instanceof Mi)return l;if(_t.call(l,"__wrapped__"))return vb(l)}return new Mi(l)}var To=function(){function l(){}return function(u){if(!Rt(u))return{};if(fv)return fv(u);l.prototype=u;var p=new l;return l.prototype=n,p}}();function Au(){}function Mi(l,u){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:sn,evaluate:Gt,interpolate:Un,variable:"",imports:{_:M}},M.prototype=Au.prototype,M.prototype.constructor=M,Mi.prototype=To(Au.prototype),Mi.prototype.constructor=Mi;function qe(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function VQ(){var l=new qe(this.__wrapped__);return l.__actions__=qn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=qn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=qn(this.__views__),l}function IQ(){if(this.__filtered__){var l=new qe(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function AQ(){var l=this.__wrapped__.value(),u=this.__dir__,p=Ae(l),_=u<0,w=p?l.length:0,D=Uee(0,w,this.__views__),T=D.start,$=D.end,P=$-T,Z=_?$:T-1,X=this.__iteratees__,Q=X.length,de=0,be=On(P,this.__takeCount__);if(!p||!_&&w==P&&be==P)return Hv(l,this.__actions__);var Oe=[];e:for(;P--&&de<be;){Z+=u;for(var Pe=-1,De=l[Z];++Pe<Q;){var je=X[Pe],Ke=je.iteratee,oi=je.type,zn=Ke(De);if(oi==J)De=zn;else if(!zn){if(oi==me)continue e;break e}}Oe[de++]=De}return Oe}qe.prototype=To(Au.prototype),qe.prototype.constructor=qe;function la(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function $Q(){this.__data__=yc?yc(null):{},this.size=0}function NQ(l){var u=this.has(l)&&delete this.__data__[l];return this.size-=u?1:0,u}function zQ(l){var u=this.__data__;if(yc){var p=u[l];return p===d?n:p}return _t.call(u,l)?u[l]:n}function PQ(l){var u=this.__data__;return yc?u[l]!==n:_t.call(u,l)}function LQ(l,u){var p=this.__data__;return this.size+=this.has(l)?0:1,p[l]=yc&&u===n?d:u,this}la.prototype.clear=$Q,la.prototype.delete=NQ,la.prototype.get=zQ,la.prototype.has=PQ,la.prototype.set=LQ;function Is(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function FQ(){this.__data__=[],this.size=0}function RQ(l){var u=this.__data__,p=$u(u,l);if(p<0)return!1;var _=u.length-1;return p==_?u.pop():Du.call(u,p,1),--this.size,!0}function HQ(l){var u=this.__data__,p=$u(u,l);return p<0?n:u[p][1]}function WQ(l){return $u(this.__data__,l)>-1}function YQ(l,u){var p=this.__data__,_=$u(p,l);return _<0?(++this.size,p.push([l,u])):p[_][1]=u,this}Is.prototype.clear=FQ,Is.prototype.delete=RQ,Is.prototype.get=HQ,Is.prototype.has=WQ,Is.prototype.set=YQ;function As(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function jQ(){this.size=0,this.__data__={hash:new la,map:new(gc||Is),string:new la}}function UQ(l){var u=qu(this,l).delete(l);return this.size-=u?1:0,u}function qQ(l){return qu(this,l).get(l)}function GQ(l){return qu(this,l).has(l)}function KQ(l,u){var p=qu(this,l),_=p.size;return p.set(l,u),this.size+=p.size==_?0:1,this}As.prototype.clear=jQ,As.prototype.delete=UQ,As.prototype.get=qQ,As.prototype.has=GQ,As.prototype.set=KQ;function ca(l){var u=-1,p=l==null?0:l.length;for(this.__data__=new As;++u<p;)this.add(l[u])}function ZQ(l){return this.__data__.set(l,d),this}function XQ(l){return this.__data__.has(l)}ca.prototype.add=ca.prototype.push=ZQ,ca.prototype.has=XQ;function Ui(l){var u=this.__data__=new Is(l);this.size=u.size}function JQ(){this.__data__=new Is,this.size=0}function QQ(l){var u=this.__data__,p=u.delete(l);return this.size=u.size,p}function eee(l){return this.__data__.get(l)}function tee(l){return this.__data__.has(l)}function nee(l,u){var p=this.__data__;if(p instanceof Is){var _=p.__data__;if(!gc||_.length<s-1)return _.push([l,u]),this.size=++p.size,this;p=this.__data__=new As(_)}return p.set(l,u),this.size=p.size,this}Ui.prototype.clear=JQ,Ui.prototype.delete=QQ,Ui.prototype.get=eee,Ui.prototype.has=tee,Ui.prototype.set=nee;function vv(l,u){var p=Ae(l),_=!p&&pa(l),w=!p&&!_&&wr(l),D=!p&&!_&&!w&&$o(l),T=p||_||w||D,$=T?uf(l.length,hQ):[],P=$.length;for(var Z in l)(u||_t.call(l,Z))&&!(T&&(Z=="length"||w&&(Z=="offset"||Z=="parent")||D&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||Ps(Z,P)))&&$.push(Z);return $}function bv(l){var u=l.length;return u?l[Df(0,u-1)]:n}function iee(l,u){return Gu(qn(l),da(u,0,l.length))}function see(l){return Gu(qn(l))}function yf(l,u,p){(p!==n&&!qi(l[u],p)||p===n&&!(u in l))&&$s(l,u,p)}function bc(l,u,p){var _=l[u];(!(_t.call(l,u)&&qi(_,p))||p===n&&!(u in l))&&$s(l,u,p)}function $u(l,u){for(var p=l.length;p--;)if(qi(l[p][0],u))return p;return-1}function ree(l,u,p,_){return _r(l,function(w,D,T){u(_,w,p(w),T)}),_}function wv(l,u){return l&&ls(u,fn(u),l)}function aee(l,u){return l&&ls(u,Kn(u),l)}function $s(l,u,p){u=="__proto__"&&Eu?Eu(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}function vf(l,u){for(var p=-1,_=u.length,w=H(_),D=l==null;++p<_;)w[p]=D?n:Qf(l,u[p]);return w}function da(l,u,p){return l===l&&(p!==n&&(l=l<=p?l:p),u!==n&&(l=l>=u?l:u)),l}function Oi(l,u,p,_,w,D){var T,$=u&m,P=u&g,Z=u&y;if(p&&(T=w?p(l,_,w,D):p(l)),T!==n)return T;if(!Rt(l))return l;var X=Ae(l);if(X){if(T=Gee(l),!$)return qn(l,T)}else{var Q=Dn(l),de=Q==tt||Q==st;if(wr(l))return jv(l,$);if(Q==Ct||Q==ge||de&&!w){if(T=P||de?{}:db(l),!$)return P?zee(l,aee(T,l)):Nee(l,wv(T,l))}else{if(!ct[Q])return w?l:{};T=Kee(l,Q,$)}}D||(D=new Ui);var be=D.get(l);if(be)return be;D.set(l,T),Lb(l)?l.forEach(function(De){T.add(Oi(De,u,p,De,l,D))}):zb(l)&&l.forEach(function(De,je){T.set(je,Oi(De,u,p,je,l,D))});var Oe=Z?P?Lf:Pf:P?Kn:fn,Pe=X?n:Oe(l);return xi(Pe||l,function(De,je){Pe&&(je=De,De=l[je]),bc(T,je,Oi(De,u,p,je,l,D))}),T}function oee(l){var u=fn(l);return function(p){return kv(p,l,u)}}function kv(l,u,p){var _=p.length;if(l==null)return!_;for(l=St(l);_--;){var w=p[_],D=u[w],T=l[w];if(T===n&&!(w in l)||!D(T))return!1}return!0}function Cv(l,u,p){if(typeof l!="function")throw new Si(o);return Oc(function(){l.apply(n,p)},u)}function wc(l,u,p,_){var w=-1,D=yu,T=!0,$=l.length,P=[],Z=u.length;if(!$)return P;p&&(u=Pt(u,si(p))),_?(D=rf,T=!1):u.length>=s&&(D=pc,T=!1,u=new ca(u));e:for(;++w<$;){var X=l[w],Q=p==null?X:p(X);if(X=_||X!==0?X:0,T&&Q===Q){for(var de=Z;de--;)if(u[de]===Q)continue e;P.push(X)}else D(u,Q,_)||P.push(X)}return P}var _r=Zv(os),xv=Zv(wf,!0);function lee(l,u){var p=!0;return _r(l,function(_,w,D){return p=!!u(_,w,D),p}),p}function Nu(l,u,p){for(var _=-1,w=l.length;++_<w;){var D=l[_],T=u(D);if(T!=null&&($===n?T===T&&!ai(T):p(T,$)))var $=T,P=D}return P}function cee(l,u,p,_){var w=l.length;for(p=ze(p),p<0&&(p=-p>w?0:w+p),_=_===n||_>w?w:ze(_),_<0&&(_+=w),_=p>_?0:Rb(_);p<_;)l[p++]=u;return l}function Sv(l,u){var p=[];return _r(l,function(_,w,D){u(_,w,D)&&p.push(_)}),p}function _n(l,u,p,_,w){var D=-1,T=l.length;for(p||(p=Xee),w||(w=[]);++D<T;){var $=l[D];u>0&&p($)?u>1?_n($,u-1,p,_,w):pr(w,$):_||(w[w.length]=$)}return w}var bf=Xv(),Mv=Xv(!0);function os(l,u){return l&&bf(l,u,fn)}function wf(l,u){return l&&Mv(l,u,fn)}function zu(l,u){return fr(u,function(p){return Ls(l[p])})}function ua(l,u){u=vr(u,l);for(var p=0,_=u.length;l!=null&&p<_;)l=l[cs(u[p++])];return p&&p==_?l:n}function Ov(l,u,p){var _=u(l);return Ae(l)?_:pr(_,p(l))}function $n(l){return l==null?l===n?At:ft:oa&&oa in St(l)?jee(l):ste(l)}function kf(l,u){return l>u}function dee(l,u){return l!=null&&_t.call(l,u)}function uee(l,u){return l!=null&&u in St(l)}function hee(l,u,p){return l>=On(u,p)&&l<ln(u,p)}function Cf(l,u,p){for(var _=p?rf:yu,w=l[0].length,D=l.length,T=D,$=H(D),P=1/0,Z=[];T--;){var X=l[T];T&&u&&(X=Pt(X,si(u))),P=On(X.length,P),$[T]=!p&&(u||w>=120&&X.length>=120)?new ca(T&&X):n}X=l[0];var Q=-1,de=$[0];e:for(;++Q<w&&Z.length<P;){var be=X[Q],Oe=u?u(be):be;if(be=p||be!==0?be:0,!(de?pc(de,Oe):_(Z,Oe,p))){for(T=D;--T;){var Pe=$[T];if(!(Pe?pc(Pe,Oe):_(l[T],Oe,p)))continue e}de&&de.push(Oe),Z.push(be)}}return Z}function fee(l,u,p,_){return os(l,function(w,D,T){u(_,p(w),D,T)}),_}function kc(l,u,p){u=vr(u,l),l=pb(l,u);var _=l==null?l:l[cs(Ei(u))];return _==null?n:hn(_,l,p)}function Dv(l){return jt(l)&&$n(l)==ge}function pee(l){return jt(l)&&$n(l)==$t}function mee(l){return jt(l)&&$n(l)==ht}function Cc(l,u,p,_,w){return l===u?!0:l==null||u==null||!jt(l)&&!jt(u)?l!==l&&u!==u:gee(l,u,p,_,Cc,w)}function gee(l,u,p,_,w,D){var T=Ae(l),$=Ae(u),P=T?Ne:Dn(l),Z=$?Ne:Dn(u);P=P==ge?Ct:P,Z=Z==ge?Ct:Z;var X=P==Ct,Q=Z==Ct,de=P==Z;if(de&&wr(l)){if(!wr(u))return!1;T=!0,X=!1}if(de&&!X)return D||(D=new Ui),T||$o(l)?ob(l,u,p,_,w,D):Wee(l,u,P,p,_,w,D);if(!(p&b)){var be=X&&_t.call(l,"__wrapped__"),Oe=Q&&_t.call(u,"__wrapped__");if(be||Oe){var Pe=be?l.value():l,De=Oe?u.value():u;return D||(D=new Ui),w(Pe,De,p,_,D)}}return de?(D||(D=new Ui),Yee(l,u,p,_,w,D)):!1}function _ee(l){return jt(l)&&Dn(l)==rt}function xf(l,u,p,_){var w=p.length,D=w,T=!_;if(l==null)return!D;for(l=St(l);w--;){var $=p[w];if(T&&$[2]?$[1]!==l[$[0]]:!($[0]in l))return!1}for(;++w<D;){$=p[w];var P=$[0],Z=l[P],X=$[1];if(T&&$[2]){if(Z===n&&!(P in l))return!1}else{var Q=new Ui;if(_)var de=_(Z,X,P,l,u,Q);if(!(de===n?Cc(X,Z,b|k,_,Q):de))return!1}}return!0}function Ev(l){if(!Rt(l)||Qee(l))return!1;var u=Ls(l)?_Q:tc;return u.test(fa(l))}function yee(l){return jt(l)&&$n(l)==bt}function vee(l){return jt(l)&&Dn(l)==nt}function bee(l){return jt(l)&&e1(l.length)&&!!mt[$n(l)]}function Bv(l){return typeof l=="function"?l:l==null?Zn:typeof l=="object"?Ae(l)?Iv(l[0],l[1]):Vv(l):Jb(l)}function Sf(l){if(!Mc(l))return CQ(l);var u=[];for(var p in St(l))_t.call(l,p)&&p!="constructor"&&u.push(p);return u}function wee(l){if(!Rt(l))return ite(l);var u=Mc(l),p=[];for(var _ in l)_=="constructor"&&(u||!_t.call(l,_))||p.push(_);return p}function Mf(l,u){return l<u}function Tv(l,u){var p=-1,_=Gn(l)?H(l.length):[];return _r(l,function(w,D,T){_[++p]=u(w,D,T)}),_}function Vv(l){var u=Rf(l);return u.length==1&&u[0][2]?hb(u[0][0],u[0][1]):function(p){return p===l||xf(p,l,u)}}function Iv(l,u){return Wf(l)&&ub(u)?hb(cs(l),u):function(p){var _=Qf(p,l);return _===n&&_===u?ep(p,l):Cc(u,_,b|k)}}function Pu(l,u,p,_,w){l!==u&&bf(u,function(D,T){if(w||(w=new Ui),Rt(D))kee(l,u,T,p,Pu,_,w);else{var $=_?_(jf(l,T),D,T+"",l,u,w):n;$===n&&($=D),yf(l,T,$)}},Kn)}function kee(l,u,p,_,w,D,T){var $=jf(l,p),P=jf(u,p),Z=T.get(P);if(Z){yf(l,p,Z);return}var X=D?D($,P,p+"",l,u,T):n,Q=X===n;if(Q){var de=Ae(P),be=!de&&wr(P),Oe=!de&&!be&&$o(P);X=P,de||be||Oe?Ae($)?X=$:Kt($)?X=qn($):be?(Q=!1,X=jv(P,!0)):Oe?(Q=!1,X=Uv(P,!0)):X=[]:Dc(P)||pa(P)?(X=$,pa($)?X=Hb($):(!Rt($)||Ls($))&&(X=db(P))):Q=!1}Q&&(T.set(P,X),w(X,P,_,D,T),T.delete(P)),yf(l,p,X)}function Av(l,u){var p=l.length;if(!!p)return u+=u<0?p:0,Ps(u,p)?l[u]:n}function $v(l,u,p){u.length?u=Pt(u,function(D){return Ae(D)?function(T){return ua(T,D.length===1?D[0]:D)}:D}):u=[Zn];var _=-1;u=Pt(u,si(Se()));var w=Tv(l,function(D,T,$){var P=Pt(u,function(Z){return Z(D)});return{criteria:P,index:++_,value:D}});return KJ(w,function(D,T){return $ee(D,T,p)})}function Cee(l,u){return Nv(l,u,function(p,_){return ep(l,_)})}function Nv(l,u,p){for(var _=-1,w=u.length,D={};++_<w;){var T=u[_],$=ua(l,T);p($,T)&&xc(D,vr(T,l),$)}return D}function xee(l){return function(u){return ua(u,l)}}function Of(l,u,p,_){var w=_?GJ:xo,D=-1,T=u.length,$=l;for(l===u&&(u=qn(u)),p&&($=Pt(l,si(p)));++D<T;)for(var P=0,Z=u[D],X=p?p(Z):Z;(P=w($,X,P,_))>-1;)$!==l&&Du.call($,P,1),Du.call(l,P,1);return l}function zv(l,u){for(var p=l?u.length:0,_=p-1;p--;){var w=u[p];if(p==_||w!==D){var D=w;Ps(w)?Du.call(l,w,1):Tf(l,w)}}return l}function Df(l,u){return l+Tu(_v()*(u-l+1))}function See(l,u,p,_){for(var w=-1,D=ln(Bu((u-l)/(p||1)),0),T=H(D);D--;)T[_?D:++w]=l,l+=p;return T}function Ef(l,u){var p="";if(!l||u<1||u>ye)return p;do u%2&&(p+=l),u=Tu(u/2),u&&(l+=l);while(u);return p}function Fe(l,u){return Uf(fb(l,u,Zn),l+"")}function Mee(l){return bv(No(l))}function Oee(l,u){var p=No(l);return Gu(p,da(u,0,p.length))}function xc(l,u,p,_){if(!Rt(l))return l;u=vr(u,l);for(var w=-1,D=u.length,T=D-1,$=l;$!=null&&++w<D;){var P=cs(u[w]),Z=p;if(P==="__proto__"||P==="constructor"||P==="prototype")return l;if(w!=T){var X=$[P];Z=_?_(X,P,$):n,Z===n&&(Z=Rt(X)?X:Ps(u[w+1])?[]:{})}bc($,P,Z),$=$[P]}return l}var Pv=Vu?function(l,u){return Vu.set(l,u),l}:Zn,Dee=Eu?function(l,u){return Eu(l,"toString",{configurable:!0,enumerable:!1,value:np(u),writable:!0})}:Zn;function Eee(l){return Gu(No(l))}function Di(l,u,p){var _=-1,w=l.length;u<0&&(u=-u>w?0:w+u),p=p>w?w:p,p<0&&(p+=w),w=u>p?0:p-u>>>0,u>>>=0;for(var D=H(w);++_<w;)D[_]=l[_+u];return D}function Bee(l,u){var p;return _r(l,function(_,w,D){return p=u(_,w,D),!p}),!!p}function Lu(l,u,p){var _=0,w=l==null?_:l.length;if(typeof u=="number"&&u===u&&w<=Ee){for(;_<w;){var D=_+w>>>1,T=l[D];T!==null&&!ai(T)&&(p?T<=u:T<u)?_=D+1:w=D}return w}return Bf(l,u,Zn,p)}function Bf(l,u,p,_){var w=0,D=l==null?0:l.length;if(D===0)return 0;u=p(u);for(var T=u!==u,$=u===null,P=ai(u),Z=u===n;w<D;){var X=Tu((w+D)/2),Q=p(l[X]),de=Q!==n,be=Q===null,Oe=Q===Q,Pe=ai(Q);if(T)var De=_||Oe;else Z?De=Oe&&(_||de):$?De=Oe&&de&&(_||!be):P?De=Oe&&de&&!be&&(_||!Pe):be||Pe?De=!1:De=_?Q<=u:Q<u;De?w=X+1:D=X}return On(D,oe)}function Lv(l,u){for(var p=-1,_=l.length,w=0,D=[];++p<_;){var T=l[p],$=u?u(T):T;if(!p||!qi($,P)){var P=$;D[w++]=T===0?0:T}}return D}function Fv(l){return typeof l=="number"?l:ai(l)?R:+l}function ri(l){if(typeof l=="string")return l;if(Ae(l))return Pt(l,ri)+"";if(ai(l))return yv?yv.call(l):"";var u=l+"";return u=="0"&&1/l==-fe?"-0":u}function yr(l,u,p){var _=-1,w=yu,D=l.length,T=!0,$=[],P=$;if(p)T=!1,w=rf;else if(D>=s){var Z=u?null:Ree(l);if(Z)return bu(Z);T=!1,w=pc,P=new ca}else P=u?[]:$;e:for(;++_<D;){var X=l[_],Q=u?u(X):X;if(X=p||X!==0?X:0,T&&Q===Q){for(var de=P.length;de--;)if(P[de]===Q)continue e;u&&P.push(Q),$.push(X)}else w(P,Q,p)||(P!==$&&P.push(Q),$.push(X))}return $}function Tf(l,u){return u=vr(u,l),l=pb(l,u),l==null||delete l[cs(Ei(u))]}function Rv(l,u,p,_){return xc(l,u,p(ua(l,u)),_)}function Fu(l,u,p,_){for(var w=l.length,D=_?w:-1;(_?D--:++D<w)&&u(l[D],D,l););return p?Di(l,_?0:D,_?D+1:w):Di(l,_?D+1:0,_?w:D)}function Hv(l,u){var p=l;return p instanceof qe&&(p=p.value()),af(u,function(_,w){return w.func.apply(w.thisArg,pr([_],w.args))},p)}function Vf(l,u,p){var _=l.length;if(_<2)return _?yr(l[0]):[];for(var w=-1,D=H(_);++w<_;)for(var T=l[w],$=-1;++$<_;)$!=w&&(D[w]=wc(D[w]||T,l[$],u,p));return yr(_n(D,1),u,p)}function Wv(l,u,p){for(var _=-1,w=l.length,D=u.length,T={};++_<w;){var $=_<D?u[_]:n;p(T,l[_],$)}return T}function If(l){return Kt(l)?l:[]}function Af(l){return typeof l=="function"?l:Zn}function vr(l,u){return Ae(l)?l:Wf(l,u)?[l]:yb(dt(l))}var Tee=Fe;function br(l,u,p){var _=l.length;return p=p===n?_:p,!u&&p>=_?l:Di(l,u,p)}var Yv=yQ||function(l){return He.clearTimeout(l)};function jv(l,u){if(u)return l.slice();var p=l.length,_=hv?hv(p):new l.constructor(p);return l.copy(_),_}function $f(l){var u=new l.constructor(l.byteLength);return new Mu(u).set(new Mu(l)),u}function Vee(l,u){var p=u?$f(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function Iee(l){var u=new l.constructor(l.source,an.exec(l));return u.lastIndex=l.lastIndex,u}function Aee(l){return vc?St(vc.call(l)):{}}function Uv(l,u){var p=u?$f(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function qv(l,u){if(l!==u){var p=l!==n,_=l===null,w=l===l,D=ai(l),T=u!==n,$=u===null,P=u===u,Z=ai(u);if(!$&&!Z&&!D&&l>u||D&&T&&P&&!$&&!Z||_&&T&&P||!p&&P||!w)return 1;if(!_&&!D&&!Z&&l<u||Z&&p&&w&&!_&&!D||$&&p&&w||!T&&w||!P)return-1}return 0}function $ee(l,u,p){for(var _=-1,w=l.criteria,D=u.criteria,T=w.length,$=p.length;++_<T;){var P=qv(w[_],D[_]);if(P){if(_>=$)return P;var Z=p[_];return P*(Z=="desc"?-1:1)}}return l.index-u.index}function Gv(l,u,p,_){for(var w=-1,D=l.length,T=p.length,$=-1,P=u.length,Z=ln(D-T,0),X=H(P+Z),Q=!_;++$<P;)X[$]=u[$];for(;++w<T;)(Q||w<D)&&(X[p[w]]=l[w]);for(;Z--;)X[$++]=l[w++];return X}function Kv(l,u,p,_){for(var w=-1,D=l.length,T=-1,$=p.length,P=-1,Z=u.length,X=ln(D-$,0),Q=H(X+Z),de=!_;++w<X;)Q[w]=l[w];for(var be=w;++P<Z;)Q[be+P]=u[P];for(;++T<$;)(de||w<D)&&(Q[be+p[T]]=l[w++]);return Q}function qn(l,u){var p=-1,_=l.length;for(u||(u=H(_));++p<_;)u[p]=l[p];return u}function ls(l,u,p,_){var w=!p;p||(p={});for(var D=-1,T=u.length;++D<T;){var $=u[D],P=_?_(p[$],l[$],$,p,l):n;P===n&&(P=l[$]),w?$s(p,$,P):bc(p,$,P)}return p}function Nee(l,u){return ls(l,Hf(l),u)}function zee(l,u){return ls(l,lb(l),u)}function Ru(l,u){return function(p,_){var w=Ae(p)?HJ:ree,D=u?u():{};return w(p,l,Se(_,2),D)}}function Vo(l){return Fe(function(u,p){var _=-1,w=p.length,D=w>1?p[w-1]:n,T=w>2?p[2]:n;for(D=l.length>3&&typeof D=="function"?(w--,D):n,T&&Nn(p[0],p[1],T)&&(D=w<3?n:D,w=1),u=St(u);++_<w;){var $=p[_];$&&l(u,$,_,D)}return u})}function Zv(l,u){return function(p,_){if(p==null)return p;if(!Gn(p))return l(p,_);for(var w=p.length,D=u?w:-1,T=St(p);(u?D--:++D<w)&&_(T[D],D,T)!==!1;);return p}}function Xv(l){return function(u,p,_){for(var w=-1,D=St(u),T=_(u),$=T.length;$--;){var P=T[l?$:++w];if(p(D[P],P,D)===!1)break}return u}}function Pee(l,u,p){var _=u&C,w=Sc(l);function D(){var T=this&&this!==He&&this instanceof D?w:l;return T.apply(_?p:this,arguments)}return D}function Jv(l){return function(u){u=dt(u);var p=So(u)?ji(u):n,_=p?p[0]:u.charAt(0),w=p?br(p,1).join(""):u.slice(1);return _[l]()+w}}function Io(l){return function(u){return af(Zb(Kb(u).replace(ur,"")),l,"")}}function Sc(l){return function(){var u=arguments;switch(u.length){case 0:return new l;case 1:return new l(u[0]);case 2:return new l(u[0],u[1]);case 3:return new l(u[0],u[1],u[2]);case 4:return new l(u[0],u[1],u[2],u[3]);case 5:return new l(u[0],u[1],u[2],u[3],u[4]);case 6:return new l(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new l(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var p=To(l.prototype),_=l.apply(p,u);return Rt(_)?_:p}}function Lee(l,u,p){var _=Sc(l);function w(){for(var D=arguments.length,T=H(D),$=D,P=Ao(w);$--;)T[$]=arguments[$];var Z=D<3&&T[0]!==P&&T[D-1]!==P?[]:mr(T,P);if(D-=Z.length,D<p)return ib(l,u,Hu,w.placeholder,n,T,Z,n,n,p-D);var X=this&&this!==He&&this instanceof w?_:l;return hn(X,this,T)}return w}function Qv(l){return function(u,p,_){var w=St(u);if(!Gn(u)){var D=Se(p,3);u=fn(u),p=function($){return D(w[$],$,w)}}var T=l(u,p,_);return T>-1?w[D?u[T]:T]:n}}function eb(l){return zs(function(u){var p=u.length,_=p,w=Mi.prototype.thru;for(l&&u.reverse();_--;){var D=u[_];if(typeof D!="function")throw new Si(o);if(w&&!T&&Uu(D)=="wrapper")var T=new Mi([],!0)}for(_=T?_:p;++_<p;){D=u[_];var $=Uu(D),P=$=="wrapper"?Ff(D):n;P&&Yf(P[0])&&P[1]==(L|A|V|F)&&!P[4].length&&P[9]==1?T=T[Uu(P[0])].apply(T,P[3]):T=D.length==1&&Yf(D)?T[$]():T.thru(D)}return function(){var Z=arguments,X=Z[0];if(T&&Z.length==1&&Ae(X))return T.plant(X).value();for(var Q=0,de=p?u[Q].apply(this,Z):X;++Q<p;)de=u[Q].call(this,de);return de}})}function Hu(l,u,p,_,w,D,T,$,P,Z){var X=u&L,Q=u&C,de=u&S,be=u&(A|x),Oe=u&q,Pe=de?n:Sc(l);function De(){for(var je=arguments.length,Ke=H(je),oi=je;oi--;)Ke[oi]=arguments[oi];if(be)var zn=Ao(De),li=XJ(Ke,zn);if(_&&(Ke=Gv(Ke,_,w,be)),D&&(Ke=Kv(Ke,D,T,be)),je-=li,be&&je<Z){var Zt=mr(Ke,zn);return ib(l,u,Hu,De.placeholder,p,Ke,Zt,$,P,Z-je)}var Gi=Q?p:this,Rs=de?Gi[l]:l;return je=Ke.length,$?Ke=rte(Ke,$):Oe&&je>1&&Ke.reverse(),X&&P<je&&(Ke.length=P),this&&this!==He&&this instanceof De&&(Rs=Pe||Sc(Rs)),Rs.apply(Gi,Ke)}return De}function tb(l,u){return function(p,_){return fee(p,l,u(_),{})}}function Wu(l,u){return function(p,_){var w;if(p===n&&_===n)return u;if(p!==n&&(w=p),_!==n){if(w===n)return _;typeof p=="string"||typeof _=="string"?(p=ri(p),_=ri(_)):(p=Fv(p),_=Fv(_)),w=l(p,_)}return w}}function Nf(l){return zs(function(u){return u=Pt(u,si(Se())),Fe(function(p){var _=this;return l(u,function(w){return hn(w,_,p)})})})}function Yu(l,u){u=u===n?" ":ri(u);var p=u.length;if(p<2)return p?Ef(u,l):u;var _=Ef(u,Bu(l/Mo(u)));return So(u)?br(ji(_),0,l).join(""):_.slice(0,l)}function Fee(l,u,p,_){var w=u&C,D=Sc(l);function T(){for(var $=-1,P=arguments.length,Z=-1,X=_.length,Q=H(X+P),de=this&&this!==He&&this instanceof T?D:l;++Z<X;)Q[Z]=_[Z];for(;P--;)Q[Z++]=arguments[++$];return hn(de,w?p:this,Q)}return T}function nb(l){return function(u,p,_){return _&&typeof _!="number"&&Nn(u,p,_)&&(p=_=n),u=Fs(u),p===n?(p=u,u=0):p=Fs(p),_=_===n?u<p?1:-1:Fs(_),See(u,p,_,l)}}function ju(l){return function(u,p){return typeof u=="string"&&typeof p=="string"||(u=Bi(u),p=Bi(p)),l(u,p)}}function ib(l,u,p,_,w,D,T,$,P,Z){var X=u&A,Q=X?T:n,de=X?n:T,be=X?D:n,Oe=X?n:D;u|=X?V:N,u&=~(X?N:V),u&E||(u&=~(C|S));var Pe=[l,u,w,be,Q,Oe,de,$,P,Z],De=p.apply(n,Pe);return Yf(l)&&mb(De,Pe),De.placeholder=_,gb(De,l,u)}function zf(l){var u=on[l];return function(p,_){if(p=Bi(p),_=_==null?0:On(ze(_),292),_&&gv(p)){var w=(dt(p)+"e").split("e"),D=u(w[0]+"e"+(+w[1]+_));return w=(dt(D)+"e").split("e"),+(w[0]+"e"+(+w[1]-_))}return u(p)}}var Ree=Eo&&1/bu(new Eo([,-0]))[1]==fe?function(l){return new Eo(l)}:rp;function sb(l){return function(u){var p=Dn(u);return p==rt?ff(u):p==nt?sQ(u):ZJ(u,l(u))}}function Ns(l,u,p,_,w,D,T,$){var P=u&S;if(!P&&typeof l!="function")throw new Si(o);var Z=_?_.length:0;if(Z||(u&=~(V|N),_=w=n),T=T===n?T:ln(ze(T),0),$=$===n?$:ze($),Z-=w?w.length:0,u&N){var X=_,Q=w;_=w=n}var de=P?n:Ff(l),be=[l,u,p,_,w,X,Q,D,T,$];if(de&&nte(be,de),l=be[0],u=be[1],p=be[2],_=be[3],w=be[4],$=be[9]=be[9]===n?P?0:l.length:ln(be[9]-Z,0),!$&&u&(A|x)&&(u&=~(A|x)),!u||u==C)var Oe=Pee(l,u,p);else u==A||u==x?Oe=Lee(l,u,$):(u==V||u==(C|V))&&!w.length?Oe=Fee(l,u,p,_):Oe=Hu.apply(n,be);var Pe=de?Pv:mb;return gb(Pe(Oe,be),l,u)}function rb(l,u,p,_){return l===n||qi(l,Do[p])&&!_t.call(_,p)?u:l}function ab(l,u,p,_,w,D){return Rt(l)&&Rt(u)&&(D.set(u,l),Pu(l,u,n,ab,D),D.delete(u)),l}function Hee(l){return Dc(l)?n:l}function ob(l,u,p,_,w,D){var T=p&b,$=l.length,P=u.length;if($!=P&&!(T&&P>$))return!1;var Z=D.get(l),X=D.get(u);if(Z&&X)return Z==u&&X==l;var Q=-1,de=!0,be=p&k?new ca:n;for(D.set(l,u),D.set(u,l);++Q<$;){var Oe=l[Q],Pe=u[Q];if(_)var De=T?_(Pe,Oe,Q,u,l,D):_(Oe,Pe,Q,l,u,D);if(De!==n){if(De)continue;de=!1;break}if(be){if(!of(u,function(je,Ke){if(!pc(be,Ke)&&(Oe===je||w(Oe,je,p,_,D)))return be.push(Ke)})){de=!1;break}}else if(!(Oe===Pe||w(Oe,Pe,p,_,D))){de=!1;break}}return D.delete(l),D.delete(u),de}function Wee(l,u,p,_,w,D,T){switch(p){case te:if(l.byteLength!=u.byteLength||l.byteOffset!=u.byteOffset)return!1;l=l.buffer,u=u.buffer;case $t:return!(l.byteLength!=u.byteLength||!D(new Mu(l),new Mu(u)));case Le:case ht:case Yt:return qi(+l,+u);case kt:return l.name==u.name&&l.message==u.message;case bt:case Nt:return l==u+"";case rt:var $=ff;case nt:var P=_&b;if($||($=bu),l.size!=u.size&&!P)return!1;var Z=T.get(l);if(Z)return Z==u;_|=k,T.set(l,u);var X=ob($(l),$(u),_,w,D,T);return T.delete(l),X;case Ot:if(vc)return vc.call(l)==vc.call(u)}return!1}function Yee(l,u,p,_,w,D){var T=p&b,$=Pf(l),P=$.length,Z=Pf(u),X=Z.length;if(P!=X&&!T)return!1;for(var Q=P;Q--;){var de=$[Q];if(!(T?de in u:_t.call(u,de)))return!1}var be=D.get(l),Oe=D.get(u);if(be&&Oe)return be==u&&Oe==l;var Pe=!0;D.set(l,u),D.set(u,l);for(var De=T;++Q<P;){de=$[Q];var je=l[de],Ke=u[de];if(_)var oi=T?_(Ke,je,de,u,l,D):_(je,Ke,de,l,u,D);if(!(oi===n?je===Ke||w(je,Ke,p,_,D):oi)){Pe=!1;break}De||(De=de=="constructor")}if(Pe&&!De){var zn=l.constructor,li=u.constructor;zn!=li&&"constructor"in l&&"constructor"in u&&!(typeof zn=="function"&&zn instanceof zn&&typeof li=="function"&&li instanceof li)&&(Pe=!1)}return D.delete(l),D.delete(u),Pe}function zs(l){return Uf(fb(l,n,kb),l+"")}function Pf(l){return Ov(l,fn,Hf)}function Lf(l){return Ov(l,Kn,lb)}var Ff=Vu?function(l){return Vu.get(l)}:rp;function Uu(l){for(var u=l.name+"",p=Bo[u],_=_t.call(Bo,u)?p.length:0;_--;){var w=p[_],D=w.func;if(D==null||D==l)return w.name}return u}function Ao(l){var u=_t.call(M,"placeholder")?M:l;return u.placeholder}function Se(){var l=M.iteratee||ip;return l=l===ip?Bv:l,arguments.length?l(arguments[0],arguments[1]):l}function qu(l,u){var p=l.__data__;return Jee(u)?p[typeof u=="string"?"string":"hash"]:p.map}function Rf(l){for(var u=fn(l),p=u.length;p--;){var _=u[p],w=l[_];u[p]=[_,w,ub(w)]}return u}function ha(l,u){var p=tQ(l,u);return Ev(p)?p:n}function jee(l){var u=_t.call(l,oa),p=l[oa];try{l[oa]=n;var _=!0}catch{}var w=xu.call(l);return _&&(u?l[oa]=p:delete l[oa]),w}var Hf=mf?function(l){return l==null?[]:(l=St(l),fr(mf(l),function(u){return pv.call(l,u)}))}:ap,lb=mf?function(l){for(var u=[];l;)pr(u,Hf(l)),l=Ou(l);return u}:ap,Dn=$n;(gf&&Dn(new gf(new ArrayBuffer(1)))!=te||gc&&Dn(new gc)!=rt||_f&&Dn(_f.resolve())!=tn||Eo&&Dn(new Eo)!=nt||_c&&Dn(new _c)!=Dt)&&(Dn=function(l){var u=$n(l),p=u==Ct?l.constructor:n,_=p?fa(p):"";if(_)switch(_){case OQ:return te;case DQ:return rt;case EQ:return tn;case BQ:return nt;case TQ:return Dt}return u});function Uee(l,u,p){for(var _=-1,w=p.length;++_<w;){var D=p[_],T=D.size;switch(D.type){case"drop":l+=T;break;case"dropRight":u-=T;break;case"take":u=On(u,l+T);break;case"takeRight":l=ln(l,u-T);break}}return{start:l,end:u}}function qee(l){var u=l.match(rn);return u?u[1].split(Gl):[]}function cb(l,u,p){u=vr(u,l);for(var _=-1,w=u.length,D=!1;++_<w;){var T=cs(u[_]);if(!(D=l!=null&&p(l,T)))break;l=l[T]}return D||++_!=w?D:(w=l==null?0:l.length,!!w&&e1(w)&&Ps(T,w)&&(Ae(l)||pa(l)))}function Gee(l){var u=l.length,p=new l.constructor(u);return u&&typeof l[0]=="string"&&_t.call(l,"index")&&(p.index=l.index,p.input=l.input),p}function db(l){return typeof l.constructor=="function"&&!Mc(l)?To(Ou(l)):{}}function Kee(l,u,p){var _=l.constructor;switch(u){case $t:return $f(l);case Le:case ht:return new _(+l);case te:return Vee(l,p);case Ie:case We:case pn:case Vn:case jn:case j:case le:case ve:case W:return Uv(l,p);case rt:return new _;case Yt:case Nt:return new _(l);case bt:return Iee(l);case nt:return new _;case Ot:return Aee(l)}}function Zee(l,u){var p=u.length;if(!p)return l;var _=p-1;return u[_]=(p>1?"& ":"")+u[_],u=u.join(p>2?", ":" "),l.replace(Jr,`{
50
+ */(function(t,e){(function(){var n,i="4.17.21",s=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",m=1,g=2,y=4,b=1,k=2,C=1,S=2,E=4,A=8,x=16,V=32,N=64,L=128,F=256,q=512,ee=30,ne="...",K=800,ie=16,me=1,J=2,he=3,fe=1/0,ye=9007199254740991,we=17976931348623157e292,R=0/0,pe=4294967295,oe=pe-1,Ee=pe>>>1,Me=[["ary",L],["bind",C],["bindKey",S],["curry",A],["curryRight",x],["flip",q],["partial",V],["partialRight",N],["rearg",F]],ge="[object Arguments]",Ne="[object Array]",lt="[object AsyncFunction]",Le="[object Boolean]",ht="[object Date]",It="[object DOMException]",kt="[object Error]",tt="[object Function]",st="[object GeneratorFunction]",rt="[object Map]",Yt="[object Number]",ft="[object Null]",Ct="[object Object]",tn="[object Promise]",nn="[object Proxy]",bt="[object RegExp]",nt="[object Set]",Nt="[object String]",Ot="[object Symbol]",At="[object Undefined]",Dt="[object WeakMap]",un="[object WeakSet]",$t="[object ArrayBuffer]",te="[object DataView]",Ie="[object Float32Array]",We="[object Float64Array]",pn="[object Int8Array]",Vn="[object Int16Array]",jn="[object Int32Array]",j="[object Uint8Array]",le="[object Uint8ClampedArray]",ve="[object Uint16Array]",W="[object Uint32Array]",B=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,at=RegExp(Ce.source),xt=RegExp(Ye.source),sn=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,In=/^\w*$/,xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/[\\^$.*+?()[\]{}|]/g,Hi=RegExp(ni.source),Ms=/^\s+/,oo=/\s/,Jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rn=/\{\n\/\* \[wrapped with (.+)\] \*/,Gl=/,? & /,Kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zl=/[()=,{}\[\]\/\s]/,Xl=/\\(\\)?/g,Jl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,an=/\w*$/,Ql=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,tc=/^\[object .+?Constructor\]$/,nc=/^0o[0-7]+$/i,ic=/^(?:0|[1-9]\d*)$/,Sn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,sc=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",rc="\\u0300-\\u036f",ac="\\ufe20-\\ufe2f",cr="\\u20d0-\\u20ff",Qr=rc+ac+cr,Os="\\u2700-\\u27bf",ii="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",oc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lc="\\u2000-\\u206f",cc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",co="\\ufe0e\\ufe0f",Ds=ea+oc+lc+cc,Es="['\u2019]",Bs="["+lr+"]",ta="["+Ds+"]",Ts="["+Qr+"]",uo="\\d+",dc="["+Os+"]",ho="["+ii+"]",fo="[^"+lr+Ds+uo+Os+ii+lo+"]",Vs="\\ud83c[\\udffb-\\udfff]",uc="(?:"+Ts+"|"+Vs+")",po="[^"+lr+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+lo+"]",wi="\\u200d",mo="(?:"+ho+"|"+fo+")",ki="(?:"+Mn+"|"+fo+")",go="(?:"+Es+"(?:d|ll|m|re|s|t|ve))?",_o="(?:"+Es+"(?:D|LL|M|RE|S|T|VE))?",yo=uc+"?",vo="["+co+"]?",bo="(?:"+wi+"(?:"+[po,Wi,An].join("|")+")"+vo+yo+")*",mn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",na=vo+yo+bo,dr="(?:"+[dc,Wi,An].join("|")+")"+na,ia="(?:"+[po+Ts+"?",Ts,Wi,An,Bs].join("|")+")",ur=RegExp(Es,"g"),hc=RegExp(Ts,"g"),hr=RegExp(Vs+"(?="+Vs+")|"+ia+na,"g"),sa=RegExp([Mn+"?"+ho+"+"+go+"(?="+[ta,Mn,"$"].join("|")+")",ki+"+"+_o+"(?="+[ta,Mn+mo,"$"].join("|")+")",Mn+"?"+mo+"+"+go,Mn+"+"+_o,wo,mn,uo,dr].join("|"),"g"),ko=RegExp("["+wi+lr+Qr+co+"]"),Ci=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Co=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ra=-1,mt={};mt[Ie]=mt[We]=mt[pn]=mt[Vn]=mt[jn]=mt[j]=mt[le]=mt[ve]=mt[W]=!0,mt[ge]=mt[Ne]=mt[$t]=mt[Le]=mt[te]=mt[ht]=mt[kt]=mt[tt]=mt[rt]=mt[Yt]=mt[Ct]=mt[bt]=mt[nt]=mt[Nt]=mt[Dt]=!1;var ct={};ct[ge]=ct[Ne]=ct[$t]=ct[te]=ct[Le]=ct[ht]=ct[Ie]=ct[We]=ct[pn]=ct[Vn]=ct[jn]=ct[rt]=ct[Yt]=ct[Ct]=ct[bt]=ct[nt]=ct[Nt]=ct[Ot]=ct[j]=ct[le]=ct[ve]=ct[W]=!0,ct[kt]=ct[tt]=ct[Dt]=!1;var v={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},U={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,ke=parseInt,Re=typeof cn=="object"&&cn&&cn.Object===Object&&cn,Ge=typeof self=="object"&&self&&self.Object===Object&&self,He=Re||Ge||Function("return this")(),Xe=e&&!e.nodeType&&e,zt=Xe&&!0&&t&&!t.nodeType&&t,gn=zt&&zt.exports===Xe,Ft=gn&&Re.process,gt=function(){try{var z=zt&&zt.require&&zt.require("util").types;return z||Ft&&Ft.binding&&Ft.binding("util")}catch{}}(),Qt=gt&&gt.isArrayBuffer,Yi=gt&&gt.isDate,xi=gt&&gt.isMap,as=gt&&gt.isRegExp,fc=gt&&gt.isSet,aa=gt&&gt.isTypedArray;function hn(z,G,H){switch(H.length){case 0:return z.call(G);case 1:return z.call(G,H[0]);case 2:return z.call(G,H[0],H[1]);case 3:return z.call(G,H[0],H[1],H[2])}return z.apply(G,H)}function HJ(z,G,H,_e){for(var Ve=-1,ot=z==null?0:z.length;++Ve<ot;){var on=z[Ve];G(_e,on,H(on),z)}return _e}function Si(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e&&G(z[H],H,z)!==!1;);return z}function WJ(z,G){for(var H=z==null?0:z.length;H--&&G(z[H],H,z)!==!1;);return z}function tv(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e;)if(!G(z[H],H,z))return!1;return!0}function fr(z,G){for(var H=-1,_e=z==null?0:z.length,Ve=0,ot=[];++H<_e;){var on=z[H];G(on,H,z)&&(ot[Ve++]=on)}return ot}function yu(z,G){var H=z==null?0:z.length;return!!H&&xo(z,G,0)>-1}function rf(z,G,H){for(var _e=-1,Ve=z==null?0:z.length;++_e<Ve;)if(H(G,z[_e]))return!0;return!1}function Pt(z,G){for(var H=-1,_e=z==null?0:z.length,Ve=Array(_e);++H<_e;)Ve[H]=G(z[H],H,z);return Ve}function pr(z,G){for(var H=-1,_e=G.length,Ve=z.length;++H<_e;)z[Ve+H]=G[H];return z}function af(z,G,H,_e){var Ve=-1,ot=z==null?0:z.length;for(_e&&ot&&(H=z[++Ve]);++Ve<ot;)H=G(H,z[Ve],Ve,z);return H}function YJ(z,G,H,_e){var Ve=z==null?0:z.length;for(_e&&Ve&&(H=z[--Ve]);Ve--;)H=G(H,z[Ve],Ve,z);return H}function of(z,G){for(var H=-1,_e=z==null?0:z.length;++H<_e;)if(G(z[H],H,z))return!0;return!1}var jJ=lf("length");function UJ(z){return z.split("")}function qJ(z){return z.match(Kl)||[]}function nv(z,G,H){var _e;return H(z,function(Ve,ot,on){if(G(Ve,ot,on))return _e=ot,!1}),_e}function vu(z,G,H,_e){for(var Ve=z.length,ot=H+(_e?1:-1);_e?ot--:++ot<Ve;)if(G(z[ot],ot,z))return ot;return-1}function xo(z,G,H){return G===G?rQ(z,G,H):vu(z,iv,H)}function GJ(z,G,H,_e){for(var Ve=H-1,ot=z.length;++Ve<ot;)if(_e(z[Ve],G))return Ve;return-1}function iv(z){return z!==z}function sv(z,G){var H=z==null?0:z.length;return H?df(z,G)/H:R}function lf(z){return function(G){return G==null?n:G[z]}}function cf(z){return function(G){return z==null?n:z[G]}}function rv(z,G,H,_e,Ve){return Ve(z,function(ot,on,St){H=_e?(_e=!1,ot):G(H,ot,on,St)}),H}function KJ(z,G){var H=z.length;for(z.sort(G);H--;)z[H]=z[H].value;return z}function df(z,G){for(var H,_e=-1,Ve=z.length;++_e<Ve;){var ot=G(z[_e]);ot!==n&&(H=H===n?ot:H+ot)}return H}function uf(z,G){for(var H=-1,_e=Array(z);++H<z;)_e[H]=G(H);return _e}function ZJ(z,G){return Pt(G,function(H){return[H,z[H]]})}function av(z){return z&&z.slice(0,dv(z)+1).replace(Ms,"")}function si(z){return function(G){return z(G)}}function hf(z,G){return Pt(G,function(H){return z[H]})}function pc(z,G){return z.has(G)}function ov(z,G){for(var H=-1,_e=z.length;++H<_e&&xo(G,z[H],0)>-1;);return H}function lv(z,G){for(var H=z.length;H--&&xo(G,z[H],0)>-1;);return H}function XJ(z,G){for(var H=z.length,_e=0;H--;)z[H]===G&&++_e;return _e}var JJ=cf(v),QJ=cf(O);function eQ(z){return"\\"+U[z]}function tQ(z,G){return z==null?n:z[G]}function So(z){return ko.test(z)}function nQ(z){return Ci.test(z)}function iQ(z){for(var G,H=[];!(G=z.next()).done;)H.push(G.value);return H}function ff(z){var G=-1,H=Array(z.size);return z.forEach(function(_e,Ve){H[++G]=[Ve,_e]}),H}function cv(z,G){return function(H){return z(G(H))}}function mr(z,G){for(var H=-1,_e=z.length,Ve=0,ot=[];++H<_e;){var on=z[H];(on===G||on===f)&&(z[H]=f,ot[Ve++]=H)}return ot}function bu(z){var G=-1,H=Array(z.size);return z.forEach(function(_e){H[++G]=_e}),H}function sQ(z){var G=-1,H=Array(z.size);return z.forEach(function(_e){H[++G]=[_e,_e]}),H}function rQ(z,G,H){for(var _e=H-1,Ve=z.length;++_e<Ve;)if(z[_e]===G)return _e;return-1}function aQ(z,G,H){for(var _e=H+1;_e--;)if(z[_e]===G)return _e;return _e}function Mo(z){return So(z)?lQ(z):jJ(z)}function ji(z){return So(z)?cQ(z):UJ(z)}function dv(z){for(var G=z.length;G--&&oo.test(z.charAt(G)););return G}var oQ=cf(I);function lQ(z){for(var G=hr.lastIndex=0;hr.test(z);)++G;return G}function cQ(z){return z.match(hr)||[]}function dQ(z){return z.match(sa)||[]}var uQ=function z(G){G=G==null?He:Oo.defaults(He.Object(),G,Oo.pick(He,Co));var H=G.Array,_e=G.Date,Ve=G.Error,ot=G.Function,on=G.Math,St=G.Object,pf=G.RegExp,hQ=G.String,Mi=G.TypeError,wu=H.prototype,fQ=ot.prototype,Do=St.prototype,ku=G["__core-js_shared__"],Cu=fQ.toString,_t=Do.hasOwnProperty,pQ=0,uv=function(){var l=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),xu=Do.toString,mQ=Cu.call(St),gQ=He._,_Q=pf("^"+Cu.call(_t).replace(ni,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Su=gn?G.Buffer:n,gr=G.Symbol,Mu=G.Uint8Array,hv=Su?Su.allocUnsafe:n,Ou=cv(St.getPrototypeOf,St),fv=St.create,pv=Do.propertyIsEnumerable,Du=wu.splice,mv=gr?gr.isConcatSpreadable:n,mc=gr?gr.iterator:n,oa=gr?gr.toStringTag:n,Eu=function(){try{var l=ha(St,"defineProperty");return l({},"",{}),l}catch{}}(),yQ=G.clearTimeout!==He.clearTimeout&&G.clearTimeout,vQ=_e&&_e.now!==He.Date.now&&_e.now,bQ=G.setTimeout!==He.setTimeout&&G.setTimeout,Bu=on.ceil,Tu=on.floor,mf=St.getOwnPropertySymbols,wQ=Su?Su.isBuffer:n,gv=G.isFinite,kQ=wu.join,CQ=cv(St.keys,St),ln=on.max,On=on.min,xQ=_e.now,SQ=G.parseInt,_v=on.random,MQ=wu.reverse,gf=ha(G,"DataView"),gc=ha(G,"Map"),_f=ha(G,"Promise"),Eo=ha(G,"Set"),_c=ha(G,"WeakMap"),yc=ha(St,"create"),Vu=_c&&new _c,Bo={},OQ=fa(gf),DQ=fa(gc),EQ=fa(_f),BQ=fa(Eo),TQ=fa(_c),Iu=gr?gr.prototype:n,vc=Iu?Iu.valueOf:n,yv=Iu?Iu.toString:n;function M(l){if(jt(l)&&!Ae(l)&&!(l instanceof qe)){if(l instanceof Oi)return l;if(_t.call(l,"__wrapped__"))return vb(l)}return new Oi(l)}var To=function(){function l(){}return function(u){if(!Rt(u))return{};if(fv)return fv(u);l.prototype=u;var p=new l;return l.prototype=n,p}}();function Au(){}function Oi(l,u){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:sn,evaluate:Gt,interpolate:Un,variable:"",imports:{_:M}},M.prototype=Au.prototype,M.prototype.constructor=M,Oi.prototype=To(Au.prototype),Oi.prototype.constructor=Oi;function qe(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function VQ(){var l=new qe(this.__wrapped__);return l.__actions__=qn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=qn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=qn(this.__views__),l}function IQ(){if(this.__filtered__){var l=new qe(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function AQ(){var l=this.__wrapped__.value(),u=this.__dir__,p=Ae(l),_=u<0,w=p?l.length:0,D=Uee(0,w,this.__views__),T=D.start,$=D.end,P=$-T,Z=_?$:T-1,X=this.__iteratees__,Q=X.length,de=0,be=On(P,this.__takeCount__);if(!p||!_&&w==P&&be==P)return Hv(l,this.__actions__);var Oe=[];e:for(;P--&&de<be;){Z+=u;for(var Pe=-1,De=l[Z];++Pe<Q;){var je=X[Pe],Ke=je.iteratee,oi=je.type,zn=Ke(De);if(oi==J)De=zn;else if(!zn){if(oi==me)continue e;break e}}Oe[de++]=De}return Oe}qe.prototype=To(Au.prototype),qe.prototype.constructor=qe;function la(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function $Q(){this.__data__=yc?yc(null):{},this.size=0}function NQ(l){var u=this.has(l)&&delete this.__data__[l];return this.size-=u?1:0,u}function zQ(l){var u=this.__data__;if(yc){var p=u[l];return p===d?n:p}return _t.call(u,l)?u[l]:n}function PQ(l){var u=this.__data__;return yc?u[l]!==n:_t.call(u,l)}function LQ(l,u){var p=this.__data__;return this.size+=this.has(l)?0:1,p[l]=yc&&u===n?d:u,this}la.prototype.clear=$Q,la.prototype.delete=NQ,la.prototype.get=zQ,la.prototype.has=PQ,la.prototype.set=LQ;function Is(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function FQ(){this.__data__=[],this.size=0}function RQ(l){var u=this.__data__,p=$u(u,l);if(p<0)return!1;var _=u.length-1;return p==_?u.pop():Du.call(u,p,1),--this.size,!0}function HQ(l){var u=this.__data__,p=$u(u,l);return p<0?n:u[p][1]}function WQ(l){return $u(this.__data__,l)>-1}function YQ(l,u){var p=this.__data__,_=$u(p,l);return _<0?(++this.size,p.push([l,u])):p[_][1]=u,this}Is.prototype.clear=FQ,Is.prototype.delete=RQ,Is.prototype.get=HQ,Is.prototype.has=WQ,Is.prototype.set=YQ;function As(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var _=l[u];this.set(_[0],_[1])}}function jQ(){this.size=0,this.__data__={hash:new la,map:new(gc||Is),string:new la}}function UQ(l){var u=qu(this,l).delete(l);return this.size-=u?1:0,u}function qQ(l){return qu(this,l).get(l)}function GQ(l){return qu(this,l).has(l)}function KQ(l,u){var p=qu(this,l),_=p.size;return p.set(l,u),this.size+=p.size==_?0:1,this}As.prototype.clear=jQ,As.prototype.delete=UQ,As.prototype.get=qQ,As.prototype.has=GQ,As.prototype.set=KQ;function ca(l){var u=-1,p=l==null?0:l.length;for(this.__data__=new As;++u<p;)this.add(l[u])}function ZQ(l){return this.__data__.set(l,d),this}function XQ(l){return this.__data__.has(l)}ca.prototype.add=ca.prototype.push=ZQ,ca.prototype.has=XQ;function Ui(l){var u=this.__data__=new Is(l);this.size=u.size}function JQ(){this.__data__=new Is,this.size=0}function QQ(l){var u=this.__data__,p=u.delete(l);return this.size=u.size,p}function eee(l){return this.__data__.get(l)}function tee(l){return this.__data__.has(l)}function nee(l,u){var p=this.__data__;if(p instanceof Is){var _=p.__data__;if(!gc||_.length<s-1)return _.push([l,u]),this.size=++p.size,this;p=this.__data__=new As(_)}return p.set(l,u),this.size=p.size,this}Ui.prototype.clear=JQ,Ui.prototype.delete=QQ,Ui.prototype.get=eee,Ui.prototype.has=tee,Ui.prototype.set=nee;function vv(l,u){var p=Ae(l),_=!p&&pa(l),w=!p&&!_&&wr(l),D=!p&&!_&&!w&&$o(l),T=p||_||w||D,$=T?uf(l.length,hQ):[],P=$.length;for(var Z in l)(u||_t.call(l,Z))&&!(T&&(Z=="length"||w&&(Z=="offset"||Z=="parent")||D&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||Ps(Z,P)))&&$.push(Z);return $}function bv(l){var u=l.length;return u?l[Df(0,u-1)]:n}function iee(l,u){return Gu(qn(l),da(u,0,l.length))}function see(l){return Gu(qn(l))}function yf(l,u,p){(p!==n&&!qi(l[u],p)||p===n&&!(u in l))&&$s(l,u,p)}function bc(l,u,p){var _=l[u];(!(_t.call(l,u)&&qi(_,p))||p===n&&!(u in l))&&$s(l,u,p)}function $u(l,u){for(var p=l.length;p--;)if(qi(l[p][0],u))return p;return-1}function ree(l,u,p,_){return _r(l,function(w,D,T){u(_,w,p(w),T)}),_}function wv(l,u){return l&&ls(u,fn(u),l)}function aee(l,u){return l&&ls(u,Kn(u),l)}function $s(l,u,p){u=="__proto__"&&Eu?Eu(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}function vf(l,u){for(var p=-1,_=u.length,w=H(_),D=l==null;++p<_;)w[p]=D?n:Qf(l,u[p]);return w}function da(l,u,p){return l===l&&(p!==n&&(l=l<=p?l:p),u!==n&&(l=l>=u?l:u)),l}function Di(l,u,p,_,w,D){var T,$=u&m,P=u&g,Z=u&y;if(p&&(T=w?p(l,_,w,D):p(l)),T!==n)return T;if(!Rt(l))return l;var X=Ae(l);if(X){if(T=Gee(l),!$)return qn(l,T)}else{var Q=Dn(l),de=Q==tt||Q==st;if(wr(l))return jv(l,$);if(Q==Ct||Q==ge||de&&!w){if(T=P||de?{}:db(l),!$)return P?zee(l,aee(T,l)):Nee(l,wv(T,l))}else{if(!ct[Q])return w?l:{};T=Kee(l,Q,$)}}D||(D=new Ui);var be=D.get(l);if(be)return be;D.set(l,T),Lb(l)?l.forEach(function(De){T.add(Di(De,u,p,De,l,D))}):zb(l)&&l.forEach(function(De,je){T.set(je,Di(De,u,p,je,l,D))});var Oe=Z?P?Lf:Pf:P?Kn:fn,Pe=X?n:Oe(l);return Si(Pe||l,function(De,je){Pe&&(je=De,De=l[je]),bc(T,je,Di(De,u,p,je,l,D))}),T}function oee(l){var u=fn(l);return function(p){return kv(p,l,u)}}function kv(l,u,p){var _=p.length;if(l==null)return!_;for(l=St(l);_--;){var w=p[_],D=u[w],T=l[w];if(T===n&&!(w in l)||!D(T))return!1}return!0}function Cv(l,u,p){if(typeof l!="function")throw new Mi(o);return Oc(function(){l.apply(n,p)},u)}function wc(l,u,p,_){var w=-1,D=yu,T=!0,$=l.length,P=[],Z=u.length;if(!$)return P;p&&(u=Pt(u,si(p))),_?(D=rf,T=!1):u.length>=s&&(D=pc,T=!1,u=new ca(u));e:for(;++w<$;){var X=l[w],Q=p==null?X:p(X);if(X=_||X!==0?X:0,T&&Q===Q){for(var de=Z;de--;)if(u[de]===Q)continue e;P.push(X)}else D(u,Q,_)||P.push(X)}return P}var _r=Zv(os),xv=Zv(wf,!0);function lee(l,u){var p=!0;return _r(l,function(_,w,D){return p=!!u(_,w,D),p}),p}function Nu(l,u,p){for(var _=-1,w=l.length;++_<w;){var D=l[_],T=u(D);if(T!=null&&($===n?T===T&&!ai(T):p(T,$)))var $=T,P=D}return P}function cee(l,u,p,_){var w=l.length;for(p=ze(p),p<0&&(p=-p>w?0:w+p),_=_===n||_>w?w:ze(_),_<0&&(_+=w),_=p>_?0:Rb(_);p<_;)l[p++]=u;return l}function Sv(l,u){var p=[];return _r(l,function(_,w,D){u(_,w,D)&&p.push(_)}),p}function _n(l,u,p,_,w){var D=-1,T=l.length;for(p||(p=Xee),w||(w=[]);++D<T;){var $=l[D];u>0&&p($)?u>1?_n($,u-1,p,_,w):pr(w,$):_||(w[w.length]=$)}return w}var bf=Xv(),Mv=Xv(!0);function os(l,u){return l&&bf(l,u,fn)}function wf(l,u){return l&&Mv(l,u,fn)}function zu(l,u){return fr(u,function(p){return Ls(l[p])})}function ua(l,u){u=vr(u,l);for(var p=0,_=u.length;l!=null&&p<_;)l=l[cs(u[p++])];return p&&p==_?l:n}function Ov(l,u,p){var _=u(l);return Ae(l)?_:pr(_,p(l))}function $n(l){return l==null?l===n?At:ft:oa&&oa in St(l)?jee(l):ste(l)}function kf(l,u){return l>u}function dee(l,u){return l!=null&&_t.call(l,u)}function uee(l,u){return l!=null&&u in St(l)}function hee(l,u,p){return l>=On(u,p)&&l<ln(u,p)}function Cf(l,u,p){for(var _=p?rf:yu,w=l[0].length,D=l.length,T=D,$=H(D),P=1/0,Z=[];T--;){var X=l[T];T&&u&&(X=Pt(X,si(u))),P=On(X.length,P),$[T]=!p&&(u||w>=120&&X.length>=120)?new ca(T&&X):n}X=l[0];var Q=-1,de=$[0];e:for(;++Q<w&&Z.length<P;){var be=X[Q],Oe=u?u(be):be;if(be=p||be!==0?be:0,!(de?pc(de,Oe):_(Z,Oe,p))){for(T=D;--T;){var Pe=$[T];if(!(Pe?pc(Pe,Oe):_(l[T],Oe,p)))continue e}de&&de.push(Oe),Z.push(be)}}return Z}function fee(l,u,p,_){return os(l,function(w,D,T){u(_,p(w),D,T)}),_}function kc(l,u,p){u=vr(u,l),l=pb(l,u);var _=l==null?l:l[cs(Bi(u))];return _==null?n:hn(_,l,p)}function Dv(l){return jt(l)&&$n(l)==ge}function pee(l){return jt(l)&&$n(l)==$t}function mee(l){return jt(l)&&$n(l)==ht}function Cc(l,u,p,_,w){return l===u?!0:l==null||u==null||!jt(l)&&!jt(u)?l!==l&&u!==u:gee(l,u,p,_,Cc,w)}function gee(l,u,p,_,w,D){var T=Ae(l),$=Ae(u),P=T?Ne:Dn(l),Z=$?Ne:Dn(u);P=P==ge?Ct:P,Z=Z==ge?Ct:Z;var X=P==Ct,Q=Z==Ct,de=P==Z;if(de&&wr(l)){if(!wr(u))return!1;T=!0,X=!1}if(de&&!X)return D||(D=new Ui),T||$o(l)?ob(l,u,p,_,w,D):Wee(l,u,P,p,_,w,D);if(!(p&b)){var be=X&&_t.call(l,"__wrapped__"),Oe=Q&&_t.call(u,"__wrapped__");if(be||Oe){var Pe=be?l.value():l,De=Oe?u.value():u;return D||(D=new Ui),w(Pe,De,p,_,D)}}return de?(D||(D=new Ui),Yee(l,u,p,_,w,D)):!1}function _ee(l){return jt(l)&&Dn(l)==rt}function xf(l,u,p,_){var w=p.length,D=w,T=!_;if(l==null)return!D;for(l=St(l);w--;){var $=p[w];if(T&&$[2]?$[1]!==l[$[0]]:!($[0]in l))return!1}for(;++w<D;){$=p[w];var P=$[0],Z=l[P],X=$[1];if(T&&$[2]){if(Z===n&&!(P in l))return!1}else{var Q=new Ui;if(_)var de=_(Z,X,P,l,u,Q);if(!(de===n?Cc(X,Z,b|k,_,Q):de))return!1}}return!0}function Ev(l){if(!Rt(l)||Qee(l))return!1;var u=Ls(l)?_Q:tc;return u.test(fa(l))}function yee(l){return jt(l)&&$n(l)==bt}function vee(l){return jt(l)&&Dn(l)==nt}function bee(l){return jt(l)&&e1(l.length)&&!!mt[$n(l)]}function Bv(l){return typeof l=="function"?l:l==null?Zn:typeof l=="object"?Ae(l)?Iv(l[0],l[1]):Vv(l):Jb(l)}function Sf(l){if(!Mc(l))return CQ(l);var u=[];for(var p in St(l))_t.call(l,p)&&p!="constructor"&&u.push(p);return u}function wee(l){if(!Rt(l))return ite(l);var u=Mc(l),p=[];for(var _ in l)_=="constructor"&&(u||!_t.call(l,_))||p.push(_);return p}function Mf(l,u){return l<u}function Tv(l,u){var p=-1,_=Gn(l)?H(l.length):[];return _r(l,function(w,D,T){_[++p]=u(w,D,T)}),_}function Vv(l){var u=Rf(l);return u.length==1&&u[0][2]?hb(u[0][0],u[0][1]):function(p){return p===l||xf(p,l,u)}}function Iv(l,u){return Wf(l)&&ub(u)?hb(cs(l),u):function(p){var _=Qf(p,l);return _===n&&_===u?ep(p,l):Cc(u,_,b|k)}}function Pu(l,u,p,_,w){l!==u&&bf(u,function(D,T){if(w||(w=new Ui),Rt(D))kee(l,u,T,p,Pu,_,w);else{var $=_?_(jf(l,T),D,T+"",l,u,w):n;$===n&&($=D),yf(l,T,$)}},Kn)}function kee(l,u,p,_,w,D,T){var $=jf(l,p),P=jf(u,p),Z=T.get(P);if(Z){yf(l,p,Z);return}var X=D?D($,P,p+"",l,u,T):n,Q=X===n;if(Q){var de=Ae(P),be=!de&&wr(P),Oe=!de&&!be&&$o(P);X=P,de||be||Oe?Ae($)?X=$:Kt($)?X=qn($):be?(Q=!1,X=jv(P,!0)):Oe?(Q=!1,X=Uv(P,!0)):X=[]:Dc(P)||pa(P)?(X=$,pa($)?X=Hb($):(!Rt($)||Ls($))&&(X=db(P))):Q=!1}Q&&(T.set(P,X),w(X,P,_,D,T),T.delete(P)),yf(l,p,X)}function Av(l,u){var p=l.length;if(!!p)return u+=u<0?p:0,Ps(u,p)?l[u]:n}function $v(l,u,p){u.length?u=Pt(u,function(D){return Ae(D)?function(T){return ua(T,D.length===1?D[0]:D)}:D}):u=[Zn];var _=-1;u=Pt(u,si(Se()));var w=Tv(l,function(D,T,$){var P=Pt(u,function(Z){return Z(D)});return{criteria:P,index:++_,value:D}});return KJ(w,function(D,T){return $ee(D,T,p)})}function Cee(l,u){return Nv(l,u,function(p,_){return ep(l,_)})}function Nv(l,u,p){for(var _=-1,w=u.length,D={};++_<w;){var T=u[_],$=ua(l,T);p($,T)&&xc(D,vr(T,l),$)}return D}function xee(l){return function(u){return ua(u,l)}}function Of(l,u,p,_){var w=_?GJ:xo,D=-1,T=u.length,$=l;for(l===u&&(u=qn(u)),p&&($=Pt(l,si(p)));++D<T;)for(var P=0,Z=u[D],X=p?p(Z):Z;(P=w($,X,P,_))>-1;)$!==l&&Du.call($,P,1),Du.call(l,P,1);return l}function zv(l,u){for(var p=l?u.length:0,_=p-1;p--;){var w=u[p];if(p==_||w!==D){var D=w;Ps(w)?Du.call(l,w,1):Tf(l,w)}}return l}function Df(l,u){return l+Tu(_v()*(u-l+1))}function See(l,u,p,_){for(var w=-1,D=ln(Bu((u-l)/(p||1)),0),T=H(D);D--;)T[_?D:++w]=l,l+=p;return T}function Ef(l,u){var p="";if(!l||u<1||u>ye)return p;do u%2&&(p+=l),u=Tu(u/2),u&&(l+=l);while(u);return p}function Fe(l,u){return Uf(fb(l,u,Zn),l+"")}function Mee(l){return bv(No(l))}function Oee(l,u){var p=No(l);return Gu(p,da(u,0,p.length))}function xc(l,u,p,_){if(!Rt(l))return l;u=vr(u,l);for(var w=-1,D=u.length,T=D-1,$=l;$!=null&&++w<D;){var P=cs(u[w]),Z=p;if(P==="__proto__"||P==="constructor"||P==="prototype")return l;if(w!=T){var X=$[P];Z=_?_(X,P,$):n,Z===n&&(Z=Rt(X)?X:Ps(u[w+1])?[]:{})}bc($,P,Z),$=$[P]}return l}var Pv=Vu?function(l,u){return Vu.set(l,u),l}:Zn,Dee=Eu?function(l,u){return Eu(l,"toString",{configurable:!0,enumerable:!1,value:np(u),writable:!0})}:Zn;function Eee(l){return Gu(No(l))}function Ei(l,u,p){var _=-1,w=l.length;u<0&&(u=-u>w?0:w+u),p=p>w?w:p,p<0&&(p+=w),w=u>p?0:p-u>>>0,u>>>=0;for(var D=H(w);++_<w;)D[_]=l[_+u];return D}function Bee(l,u){var p;return _r(l,function(_,w,D){return p=u(_,w,D),!p}),!!p}function Lu(l,u,p){var _=0,w=l==null?_:l.length;if(typeof u=="number"&&u===u&&w<=Ee){for(;_<w;){var D=_+w>>>1,T=l[D];T!==null&&!ai(T)&&(p?T<=u:T<u)?_=D+1:w=D}return w}return Bf(l,u,Zn,p)}function Bf(l,u,p,_){var w=0,D=l==null?0:l.length;if(D===0)return 0;u=p(u);for(var T=u!==u,$=u===null,P=ai(u),Z=u===n;w<D;){var X=Tu((w+D)/2),Q=p(l[X]),de=Q!==n,be=Q===null,Oe=Q===Q,Pe=ai(Q);if(T)var De=_||Oe;else Z?De=Oe&&(_||de):$?De=Oe&&de&&(_||!be):P?De=Oe&&de&&!be&&(_||!Pe):be||Pe?De=!1:De=_?Q<=u:Q<u;De?w=X+1:D=X}return On(D,oe)}function Lv(l,u){for(var p=-1,_=l.length,w=0,D=[];++p<_;){var T=l[p],$=u?u(T):T;if(!p||!qi($,P)){var P=$;D[w++]=T===0?0:T}}return D}function Fv(l){return typeof l=="number"?l:ai(l)?R:+l}function ri(l){if(typeof l=="string")return l;if(Ae(l))return Pt(l,ri)+"";if(ai(l))return yv?yv.call(l):"";var u=l+"";return u=="0"&&1/l==-fe?"-0":u}function yr(l,u,p){var _=-1,w=yu,D=l.length,T=!0,$=[],P=$;if(p)T=!1,w=rf;else if(D>=s){var Z=u?null:Ree(l);if(Z)return bu(Z);T=!1,w=pc,P=new ca}else P=u?[]:$;e:for(;++_<D;){var X=l[_],Q=u?u(X):X;if(X=p||X!==0?X:0,T&&Q===Q){for(var de=P.length;de--;)if(P[de]===Q)continue e;u&&P.push(Q),$.push(X)}else w(P,Q,p)||(P!==$&&P.push(Q),$.push(X))}return $}function Tf(l,u){return u=vr(u,l),l=pb(l,u),l==null||delete l[cs(Bi(u))]}function Rv(l,u,p,_){return xc(l,u,p(ua(l,u)),_)}function Fu(l,u,p,_){for(var w=l.length,D=_?w:-1;(_?D--:++D<w)&&u(l[D],D,l););return p?Ei(l,_?0:D,_?D+1:w):Ei(l,_?D+1:0,_?w:D)}function Hv(l,u){var p=l;return p instanceof qe&&(p=p.value()),af(u,function(_,w){return w.func.apply(w.thisArg,pr([_],w.args))},p)}function Vf(l,u,p){var _=l.length;if(_<2)return _?yr(l[0]):[];for(var w=-1,D=H(_);++w<_;)for(var T=l[w],$=-1;++$<_;)$!=w&&(D[w]=wc(D[w]||T,l[$],u,p));return yr(_n(D,1),u,p)}function Wv(l,u,p){for(var _=-1,w=l.length,D=u.length,T={};++_<w;){var $=_<D?u[_]:n;p(T,l[_],$)}return T}function If(l){return Kt(l)?l:[]}function Af(l){return typeof l=="function"?l:Zn}function vr(l,u){return Ae(l)?l:Wf(l,u)?[l]:yb(dt(l))}var Tee=Fe;function br(l,u,p){var _=l.length;return p=p===n?_:p,!u&&p>=_?l:Ei(l,u,p)}var Yv=yQ||function(l){return He.clearTimeout(l)};function jv(l,u){if(u)return l.slice();var p=l.length,_=hv?hv(p):new l.constructor(p);return l.copy(_),_}function $f(l){var u=new l.constructor(l.byteLength);return new Mu(u).set(new Mu(l)),u}function Vee(l,u){var p=u?$f(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function Iee(l){var u=new l.constructor(l.source,an.exec(l));return u.lastIndex=l.lastIndex,u}function Aee(l){return vc?St(vc.call(l)):{}}function Uv(l,u){var p=u?$f(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function qv(l,u){if(l!==u){var p=l!==n,_=l===null,w=l===l,D=ai(l),T=u!==n,$=u===null,P=u===u,Z=ai(u);if(!$&&!Z&&!D&&l>u||D&&T&&P&&!$&&!Z||_&&T&&P||!p&&P||!w)return 1;if(!_&&!D&&!Z&&l<u||Z&&p&&w&&!_&&!D||$&&p&&w||!T&&w||!P)return-1}return 0}function $ee(l,u,p){for(var _=-1,w=l.criteria,D=u.criteria,T=w.length,$=p.length;++_<T;){var P=qv(w[_],D[_]);if(P){if(_>=$)return P;var Z=p[_];return P*(Z=="desc"?-1:1)}}return l.index-u.index}function Gv(l,u,p,_){for(var w=-1,D=l.length,T=p.length,$=-1,P=u.length,Z=ln(D-T,0),X=H(P+Z),Q=!_;++$<P;)X[$]=u[$];for(;++w<T;)(Q||w<D)&&(X[p[w]]=l[w]);for(;Z--;)X[$++]=l[w++];return X}function Kv(l,u,p,_){for(var w=-1,D=l.length,T=-1,$=p.length,P=-1,Z=u.length,X=ln(D-$,0),Q=H(X+Z),de=!_;++w<X;)Q[w]=l[w];for(var be=w;++P<Z;)Q[be+P]=u[P];for(;++T<$;)(de||w<D)&&(Q[be+p[T]]=l[w++]);return Q}function qn(l,u){var p=-1,_=l.length;for(u||(u=H(_));++p<_;)u[p]=l[p];return u}function ls(l,u,p,_){var w=!p;p||(p={});for(var D=-1,T=u.length;++D<T;){var $=u[D],P=_?_(p[$],l[$],$,p,l):n;P===n&&(P=l[$]),w?$s(p,$,P):bc(p,$,P)}return p}function Nee(l,u){return ls(l,Hf(l),u)}function zee(l,u){return ls(l,lb(l),u)}function Ru(l,u){return function(p,_){var w=Ae(p)?HJ:ree,D=u?u():{};return w(p,l,Se(_,2),D)}}function Vo(l){return Fe(function(u,p){var _=-1,w=p.length,D=w>1?p[w-1]:n,T=w>2?p[2]:n;for(D=l.length>3&&typeof D=="function"?(w--,D):n,T&&Nn(p[0],p[1],T)&&(D=w<3?n:D,w=1),u=St(u);++_<w;){var $=p[_];$&&l(u,$,_,D)}return u})}function Zv(l,u){return function(p,_){if(p==null)return p;if(!Gn(p))return l(p,_);for(var w=p.length,D=u?w:-1,T=St(p);(u?D--:++D<w)&&_(T[D],D,T)!==!1;);return p}}function Xv(l){return function(u,p,_){for(var w=-1,D=St(u),T=_(u),$=T.length;$--;){var P=T[l?$:++w];if(p(D[P],P,D)===!1)break}return u}}function Pee(l,u,p){var _=u&C,w=Sc(l);function D(){var T=this&&this!==He&&this instanceof D?w:l;return T.apply(_?p:this,arguments)}return D}function Jv(l){return function(u){u=dt(u);var p=So(u)?ji(u):n,_=p?p[0]:u.charAt(0),w=p?br(p,1).join(""):u.slice(1);return _[l]()+w}}function Io(l){return function(u){return af(Zb(Kb(u).replace(ur,"")),l,"")}}function Sc(l){return function(){var u=arguments;switch(u.length){case 0:return new l;case 1:return new l(u[0]);case 2:return new l(u[0],u[1]);case 3:return new l(u[0],u[1],u[2]);case 4:return new l(u[0],u[1],u[2],u[3]);case 5:return new l(u[0],u[1],u[2],u[3],u[4]);case 6:return new l(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new l(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var p=To(l.prototype),_=l.apply(p,u);return Rt(_)?_:p}}function Lee(l,u,p){var _=Sc(l);function w(){for(var D=arguments.length,T=H(D),$=D,P=Ao(w);$--;)T[$]=arguments[$];var Z=D<3&&T[0]!==P&&T[D-1]!==P?[]:mr(T,P);if(D-=Z.length,D<p)return ib(l,u,Hu,w.placeholder,n,T,Z,n,n,p-D);var X=this&&this!==He&&this instanceof w?_:l;return hn(X,this,T)}return w}function Qv(l){return function(u,p,_){var w=St(u);if(!Gn(u)){var D=Se(p,3);u=fn(u),p=function($){return D(w[$],$,w)}}var T=l(u,p,_);return T>-1?w[D?u[T]:T]:n}}function eb(l){return zs(function(u){var p=u.length,_=p,w=Oi.prototype.thru;for(l&&u.reverse();_--;){var D=u[_];if(typeof D!="function")throw new Mi(o);if(w&&!T&&Uu(D)=="wrapper")var T=new Oi([],!0)}for(_=T?_:p;++_<p;){D=u[_];var $=Uu(D),P=$=="wrapper"?Ff(D):n;P&&Yf(P[0])&&P[1]==(L|A|V|F)&&!P[4].length&&P[9]==1?T=T[Uu(P[0])].apply(T,P[3]):T=D.length==1&&Yf(D)?T[$]():T.thru(D)}return function(){var Z=arguments,X=Z[0];if(T&&Z.length==1&&Ae(X))return T.plant(X).value();for(var Q=0,de=p?u[Q].apply(this,Z):X;++Q<p;)de=u[Q].call(this,de);return de}})}function Hu(l,u,p,_,w,D,T,$,P,Z){var X=u&L,Q=u&C,de=u&S,be=u&(A|x),Oe=u&q,Pe=de?n:Sc(l);function De(){for(var je=arguments.length,Ke=H(je),oi=je;oi--;)Ke[oi]=arguments[oi];if(be)var zn=Ao(De),li=XJ(Ke,zn);if(_&&(Ke=Gv(Ke,_,w,be)),D&&(Ke=Kv(Ke,D,T,be)),je-=li,be&&je<Z){var Zt=mr(Ke,zn);return ib(l,u,Hu,De.placeholder,p,Ke,Zt,$,P,Z-je)}var Gi=Q?p:this,Rs=de?Gi[l]:l;return je=Ke.length,$?Ke=rte(Ke,$):Oe&&je>1&&Ke.reverse(),X&&P<je&&(Ke.length=P),this&&this!==He&&this instanceof De&&(Rs=Pe||Sc(Rs)),Rs.apply(Gi,Ke)}return De}function tb(l,u){return function(p,_){return fee(p,l,u(_),{})}}function Wu(l,u){return function(p,_){var w;if(p===n&&_===n)return u;if(p!==n&&(w=p),_!==n){if(w===n)return _;typeof p=="string"||typeof _=="string"?(p=ri(p),_=ri(_)):(p=Fv(p),_=Fv(_)),w=l(p,_)}return w}}function Nf(l){return zs(function(u){return u=Pt(u,si(Se())),Fe(function(p){var _=this;return l(u,function(w){return hn(w,_,p)})})})}function Yu(l,u){u=u===n?" ":ri(u);var p=u.length;if(p<2)return p?Ef(u,l):u;var _=Ef(u,Bu(l/Mo(u)));return So(u)?br(ji(_),0,l).join(""):_.slice(0,l)}function Fee(l,u,p,_){var w=u&C,D=Sc(l);function T(){for(var $=-1,P=arguments.length,Z=-1,X=_.length,Q=H(X+P),de=this&&this!==He&&this instanceof T?D:l;++Z<X;)Q[Z]=_[Z];for(;P--;)Q[Z++]=arguments[++$];return hn(de,w?p:this,Q)}return T}function nb(l){return function(u,p,_){return _&&typeof _!="number"&&Nn(u,p,_)&&(p=_=n),u=Fs(u),p===n?(p=u,u=0):p=Fs(p),_=_===n?u<p?1:-1:Fs(_),See(u,p,_,l)}}function ju(l){return function(u,p){return typeof u=="string"&&typeof p=="string"||(u=Ti(u),p=Ti(p)),l(u,p)}}function ib(l,u,p,_,w,D,T,$,P,Z){var X=u&A,Q=X?T:n,de=X?n:T,be=X?D:n,Oe=X?n:D;u|=X?V:N,u&=~(X?N:V),u&E||(u&=~(C|S));var Pe=[l,u,w,be,Q,Oe,de,$,P,Z],De=p.apply(n,Pe);return Yf(l)&&mb(De,Pe),De.placeholder=_,gb(De,l,u)}function zf(l){var u=on[l];return function(p,_){if(p=Ti(p),_=_==null?0:On(ze(_),292),_&&gv(p)){var w=(dt(p)+"e").split("e"),D=u(w[0]+"e"+(+w[1]+_));return w=(dt(D)+"e").split("e"),+(w[0]+"e"+(+w[1]-_))}return u(p)}}var Ree=Eo&&1/bu(new Eo([,-0]))[1]==fe?function(l){return new Eo(l)}:rp;function sb(l){return function(u){var p=Dn(u);return p==rt?ff(u):p==nt?sQ(u):ZJ(u,l(u))}}function Ns(l,u,p,_,w,D,T,$){var P=u&S;if(!P&&typeof l!="function")throw new Mi(o);var Z=_?_.length:0;if(Z||(u&=~(V|N),_=w=n),T=T===n?T:ln(ze(T),0),$=$===n?$:ze($),Z-=w?w.length:0,u&N){var X=_,Q=w;_=w=n}var de=P?n:Ff(l),be=[l,u,p,_,w,X,Q,D,T,$];if(de&&nte(be,de),l=be[0],u=be[1],p=be[2],_=be[3],w=be[4],$=be[9]=be[9]===n?P?0:l.length:ln(be[9]-Z,0),!$&&u&(A|x)&&(u&=~(A|x)),!u||u==C)var Oe=Pee(l,u,p);else u==A||u==x?Oe=Lee(l,u,$):(u==V||u==(C|V))&&!w.length?Oe=Fee(l,u,p,_):Oe=Hu.apply(n,be);var Pe=de?Pv:mb;return gb(Pe(Oe,be),l,u)}function rb(l,u,p,_){return l===n||qi(l,Do[p])&&!_t.call(_,p)?u:l}function ab(l,u,p,_,w,D){return Rt(l)&&Rt(u)&&(D.set(u,l),Pu(l,u,n,ab,D),D.delete(u)),l}function Hee(l){return Dc(l)?n:l}function ob(l,u,p,_,w,D){var T=p&b,$=l.length,P=u.length;if($!=P&&!(T&&P>$))return!1;var Z=D.get(l),X=D.get(u);if(Z&&X)return Z==u&&X==l;var Q=-1,de=!0,be=p&k?new ca:n;for(D.set(l,u),D.set(u,l);++Q<$;){var Oe=l[Q],Pe=u[Q];if(_)var De=T?_(Pe,Oe,Q,u,l,D):_(Oe,Pe,Q,l,u,D);if(De!==n){if(De)continue;de=!1;break}if(be){if(!of(u,function(je,Ke){if(!pc(be,Ke)&&(Oe===je||w(Oe,je,p,_,D)))return be.push(Ke)})){de=!1;break}}else if(!(Oe===Pe||w(Oe,Pe,p,_,D))){de=!1;break}}return D.delete(l),D.delete(u),de}function Wee(l,u,p,_,w,D,T){switch(p){case te:if(l.byteLength!=u.byteLength||l.byteOffset!=u.byteOffset)return!1;l=l.buffer,u=u.buffer;case $t:return!(l.byteLength!=u.byteLength||!D(new Mu(l),new Mu(u)));case Le:case ht:case Yt:return qi(+l,+u);case kt:return l.name==u.name&&l.message==u.message;case bt:case Nt:return l==u+"";case rt:var $=ff;case nt:var P=_&b;if($||($=bu),l.size!=u.size&&!P)return!1;var Z=T.get(l);if(Z)return Z==u;_|=k,T.set(l,u);var X=ob($(l),$(u),_,w,D,T);return T.delete(l),X;case Ot:if(vc)return vc.call(l)==vc.call(u)}return!1}function Yee(l,u,p,_,w,D){var T=p&b,$=Pf(l),P=$.length,Z=Pf(u),X=Z.length;if(P!=X&&!T)return!1;for(var Q=P;Q--;){var de=$[Q];if(!(T?de in u:_t.call(u,de)))return!1}var be=D.get(l),Oe=D.get(u);if(be&&Oe)return be==u&&Oe==l;var Pe=!0;D.set(l,u),D.set(u,l);for(var De=T;++Q<P;){de=$[Q];var je=l[de],Ke=u[de];if(_)var oi=T?_(Ke,je,de,u,l,D):_(je,Ke,de,l,u,D);if(!(oi===n?je===Ke||w(je,Ke,p,_,D):oi)){Pe=!1;break}De||(De=de=="constructor")}if(Pe&&!De){var zn=l.constructor,li=u.constructor;zn!=li&&"constructor"in l&&"constructor"in u&&!(typeof zn=="function"&&zn instanceof zn&&typeof li=="function"&&li instanceof li)&&(Pe=!1)}return D.delete(l),D.delete(u),Pe}function zs(l){return Uf(fb(l,n,kb),l+"")}function Pf(l){return Ov(l,fn,Hf)}function Lf(l){return Ov(l,Kn,lb)}var Ff=Vu?function(l){return Vu.get(l)}:rp;function Uu(l){for(var u=l.name+"",p=Bo[u],_=_t.call(Bo,u)?p.length:0;_--;){var w=p[_],D=w.func;if(D==null||D==l)return w.name}return u}function Ao(l){var u=_t.call(M,"placeholder")?M:l;return u.placeholder}function Se(){var l=M.iteratee||ip;return l=l===ip?Bv:l,arguments.length?l(arguments[0],arguments[1]):l}function qu(l,u){var p=l.__data__;return Jee(u)?p[typeof u=="string"?"string":"hash"]:p.map}function Rf(l){for(var u=fn(l),p=u.length;p--;){var _=u[p],w=l[_];u[p]=[_,w,ub(w)]}return u}function ha(l,u){var p=tQ(l,u);return Ev(p)?p:n}function jee(l){var u=_t.call(l,oa),p=l[oa];try{l[oa]=n;var _=!0}catch{}var w=xu.call(l);return _&&(u?l[oa]=p:delete l[oa]),w}var Hf=mf?function(l){return l==null?[]:(l=St(l),fr(mf(l),function(u){return pv.call(l,u)}))}:ap,lb=mf?function(l){for(var u=[];l;)pr(u,Hf(l)),l=Ou(l);return u}:ap,Dn=$n;(gf&&Dn(new gf(new ArrayBuffer(1)))!=te||gc&&Dn(new gc)!=rt||_f&&Dn(_f.resolve())!=tn||Eo&&Dn(new Eo)!=nt||_c&&Dn(new _c)!=Dt)&&(Dn=function(l){var u=$n(l),p=u==Ct?l.constructor:n,_=p?fa(p):"";if(_)switch(_){case OQ:return te;case DQ:return rt;case EQ:return tn;case BQ:return nt;case TQ:return Dt}return u});function Uee(l,u,p){for(var _=-1,w=p.length;++_<w;){var D=p[_],T=D.size;switch(D.type){case"drop":l+=T;break;case"dropRight":u-=T;break;case"take":u=On(u,l+T);break;case"takeRight":l=ln(l,u-T);break}}return{start:l,end:u}}function qee(l){var u=l.match(rn);return u?u[1].split(Gl):[]}function cb(l,u,p){u=vr(u,l);for(var _=-1,w=u.length,D=!1;++_<w;){var T=cs(u[_]);if(!(D=l!=null&&p(l,T)))break;l=l[T]}return D||++_!=w?D:(w=l==null?0:l.length,!!w&&e1(w)&&Ps(T,w)&&(Ae(l)||pa(l)))}function Gee(l){var u=l.length,p=new l.constructor(u);return u&&typeof l[0]=="string"&&_t.call(l,"index")&&(p.index=l.index,p.input=l.input),p}function db(l){return typeof l.constructor=="function"&&!Mc(l)?To(Ou(l)):{}}function Kee(l,u,p){var _=l.constructor;switch(u){case $t:return $f(l);case Le:case ht:return new _(+l);case te:return Vee(l,p);case Ie:case We:case pn:case Vn:case jn:case j:case le:case ve:case W:return Uv(l,p);case rt:return new _;case Yt:case Nt:return new _(l);case bt:return Iee(l);case nt:return new _;case Ot:return Aee(l)}}function Zee(l,u){var p=u.length;if(!p)return l;var _=p-1;return u[_]=(p>1?"& ":"")+u[_],u=u.join(p>2?", ":" "),l.replace(Jr,`{
51
51
  /* [wrapped with `+u+`] */
52
- `)}function Xee(l){return Ae(l)||pa(l)||!!(mv&&l&&l[mv])}function Ps(l,u){var p=typeof l;return u=u??ye,!!u&&(p=="number"||p!="symbol"&&ic.test(l))&&l>-1&&l%1==0&&l<u}function Nn(l,u,p){if(!Rt(p))return!1;var _=typeof u;return(_=="number"?Gn(p)&&Ps(u,p.length):_=="string"&&u in p)?qi(p[u],l):!1}function Wf(l,u){if(Ae(l))return!1;var p=typeof l;return p=="number"||p=="symbol"||p=="boolean"||l==null||ai(l)?!0:In.test(l)||!pt.test(l)||u!=null&&l in St(u)}function Jee(l){var u=typeof l;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?l!=="__proto__":l===null}function Yf(l){var u=Uu(l),p=M[u];if(typeof p!="function"||!(u in qe.prototype))return!1;if(l===p)return!0;var _=Ff(p);return!!_&&l===_[0]}function Qee(l){return!!uv&&uv in l}var ete=ku?Ls:op;function Mc(l){var u=l&&l.constructor,p=typeof u=="function"&&u.prototype||Do;return l===p}function ub(l){return l===l&&!Rt(l)}function hb(l,u){return function(p){return p==null?!1:p[l]===u&&(u!==n||l in St(p))}}function tte(l){var u=Ju(l,function(_){return p.size===h&&p.clear(),_}),p=u.cache;return u}function nte(l,u){var p=l[1],_=u[1],w=p|_,D=w<(C|S|L),T=_==L&&p==A||_==L&&p==F&&l[7].length<=u[8]||_==(L|F)&&u[7].length<=u[8]&&p==A;if(!(D||T))return l;_&C&&(l[2]=u[2],w|=p&C?0:E);var $=u[3];if($){var P=l[3];l[3]=P?Gv(P,$,u[4]):$,l[4]=P?mr(l[3],f):u[4]}return $=u[5],$&&(P=l[5],l[5]=P?Kv(P,$,u[6]):$,l[6]=P?mr(l[5],f):u[6]),$=u[7],$&&(l[7]=$),_&L&&(l[8]=l[8]==null?u[8]:On(l[8],u[8])),l[9]==null&&(l[9]=u[9]),l[0]=u[0],l[1]=w,l}function ite(l){var u=[];if(l!=null)for(var p in St(l))u.push(p);return u}function ste(l){return xu.call(l)}function fb(l,u,p){return u=ln(u===n?l.length-1:u,0),function(){for(var _=arguments,w=-1,D=ln(_.length-u,0),T=H(D);++w<D;)T[w]=_[u+w];w=-1;for(var $=H(u+1);++w<u;)$[w]=_[w];return $[u]=p(T),hn(l,this,$)}}function pb(l,u){return u.length<2?l:ua(l,Di(u,0,-1))}function rte(l,u){for(var p=l.length,_=On(u.length,p),w=qn(l);_--;){var D=u[_];l[_]=Ps(D,p)?w[D]:n}return l}function jf(l,u){if(!(u==="constructor"&&typeof l[u]=="function")&&u!="__proto__")return l[u]}var mb=_b(Pv),Oc=bQ||function(l,u){return He.setTimeout(l,u)},Uf=_b(Dee);function gb(l,u,p){var _=u+"";return Uf(l,Zee(_,ate(qee(_),p)))}function _b(l){var u=0,p=0;return function(){var _=xQ(),w=ie-(_-p);if(p=_,w>0){if(++u>=K)return arguments[0]}else u=0;return l.apply(n,arguments)}}function Gu(l,u){var p=-1,_=l.length,w=_-1;for(u=u===n?_:u;++p<u;){var D=Df(p,w),T=l[D];l[D]=l[p],l[p]=T}return l.length=u,l}var yb=tte(function(l){var u=[];return l.charCodeAt(0)===46&&u.push(""),l.replace(xn,function(p,_,w,D){u.push(w?D.replace(Xl,"$1"):_||p)}),u});function cs(l){if(typeof l=="string"||ai(l))return l;var u=l+"";return u=="0"&&1/l==-fe?"-0":u}function fa(l){if(l!=null){try{return Cu.call(l)}catch{}try{return l+""}catch{}}return""}function ate(l,u){return xi(Me,function(p){var _="_."+p[0];u&p[1]&&!yu(l,_)&&l.push(_)}),l.sort()}function vb(l){if(l instanceof qe)return l.clone();var u=new Mi(l.__wrapped__,l.__chain__);return u.__actions__=qn(l.__actions__),u.__index__=l.__index__,u.__values__=l.__values__,u}function ote(l,u,p){(p?Nn(l,u,p):u===n)?u=1:u=ln(ze(u),0);var _=l==null?0:l.length;if(!_||u<1)return[];for(var w=0,D=0,T=H(Bu(_/u));w<_;)T[D++]=Di(l,w,w+=u);return T}function lte(l){for(var u=-1,p=l==null?0:l.length,_=0,w=[];++u<p;){var D=l[u];D&&(w[_++]=D)}return w}function cte(){var l=arguments.length;if(!l)return[];for(var u=H(l-1),p=arguments[0],_=l;_--;)u[_-1]=arguments[_];return pr(Ae(p)?qn(p):[p],_n(u,1))}var dte=Fe(function(l,u){return Kt(l)?wc(l,_n(u,1,Kt,!0)):[]}),ute=Fe(function(l,u){var p=Ei(u);return Kt(p)&&(p=n),Kt(l)?wc(l,_n(u,1,Kt,!0),Se(p,2)):[]}),hte=Fe(function(l,u){var p=Ei(u);return Kt(p)&&(p=n),Kt(l)?wc(l,_n(u,1,Kt,!0),n,p):[]});function fte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),Di(l,u<0?0:u,_)):[]}function pte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),u=_-u,Di(l,0,u<0?0:u)):[]}function mte(l,u){return l&&l.length?Fu(l,Se(u,3),!0,!0):[]}function gte(l,u){return l&&l.length?Fu(l,Se(u,3),!0):[]}function _te(l,u,p,_){var w=l==null?0:l.length;return w?(p&&typeof p!="number"&&Nn(l,u,p)&&(p=0,_=w),cee(l,u,p,_)):[]}function bb(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=p==null?0:ze(p);return w<0&&(w=ln(_+w,0)),vu(l,Se(u,3),w)}function wb(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=_-1;return p!==n&&(w=ze(p),w=p<0?ln(_+w,0):On(w,_-1)),vu(l,Se(u,3),w,!0)}function kb(l){var u=l==null?0:l.length;return u?_n(l,1):[]}function yte(l){var u=l==null?0:l.length;return u?_n(l,fe):[]}function vte(l,u){var p=l==null?0:l.length;return p?(u=u===n?1:ze(u),_n(l,u)):[]}function bte(l){for(var u=-1,p=l==null?0:l.length,_={};++u<p;){var w=l[u];_[w[0]]=w[1]}return _}function Cb(l){return l&&l.length?l[0]:n}function wte(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=p==null?0:ze(p);return w<0&&(w=ln(_+w,0)),xo(l,u,w)}function kte(l){var u=l==null?0:l.length;return u?Di(l,0,-1):[]}var Cte=Fe(function(l){var u=Pt(l,If);return u.length&&u[0]===l[0]?Cf(u):[]}),xte=Fe(function(l){var u=Ei(l),p=Pt(l,If);return u===Ei(p)?u=n:p.pop(),p.length&&p[0]===l[0]?Cf(p,Se(u,2)):[]}),Ste=Fe(function(l){var u=Ei(l),p=Pt(l,If);return u=typeof u=="function"?u:n,u&&p.pop(),p.length&&p[0]===l[0]?Cf(p,n,u):[]});function Mte(l,u){return l==null?"":kQ.call(l,u)}function Ei(l){var u=l==null?0:l.length;return u?l[u-1]:n}function Ote(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=_;return p!==n&&(w=ze(p),w=w<0?ln(_+w,0):On(w,_-1)),u===u?aQ(l,u,w):vu(l,iv,w,!0)}function Dte(l,u){return l&&l.length?Av(l,ze(u)):n}var Ete=Fe(xb);function xb(l,u){return l&&l.length&&u&&u.length?Of(l,u):l}function Bte(l,u,p){return l&&l.length&&u&&u.length?Of(l,u,Se(p,2)):l}function Tte(l,u,p){return l&&l.length&&u&&u.length?Of(l,u,n,p):l}var Vte=zs(function(l,u){var p=l==null?0:l.length,_=vf(l,u);return zv(l,Pt(u,function(w){return Ps(w,p)?+w:w}).sort(qv)),_});function Ite(l,u){var p=[];if(!(l&&l.length))return p;var _=-1,w=[],D=l.length;for(u=Se(u,3);++_<D;){var T=l[_];u(T,_,l)&&(p.push(T),w.push(_))}return zv(l,w),p}function qf(l){return l==null?l:MQ.call(l)}function Ate(l,u,p){var _=l==null?0:l.length;return _?(p&&typeof p!="number"&&Nn(l,u,p)?(u=0,p=_):(u=u==null?0:ze(u),p=p===n?_:ze(p)),Di(l,u,p)):[]}function $te(l,u){return Lu(l,u)}function Nte(l,u,p){return Bf(l,u,Se(p,2))}function zte(l,u){var p=l==null?0:l.length;if(p){var _=Lu(l,u);if(_<p&&qi(l[_],u))return _}return-1}function Pte(l,u){return Lu(l,u,!0)}function Lte(l,u,p){return Bf(l,u,Se(p,2),!0)}function Fte(l,u){var p=l==null?0:l.length;if(p){var _=Lu(l,u,!0)-1;if(qi(l[_],u))return _}return-1}function Rte(l){return l&&l.length?Lv(l):[]}function Hte(l,u){return l&&l.length?Lv(l,Se(u,2)):[]}function Wte(l){var u=l==null?0:l.length;return u?Di(l,1,u):[]}function Yte(l,u,p){return l&&l.length?(u=p||u===n?1:ze(u),Di(l,0,u<0?0:u)):[]}function jte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),u=_-u,Di(l,u<0?0:u,_)):[]}function Ute(l,u){return l&&l.length?Fu(l,Se(u,3),!1,!0):[]}function qte(l,u){return l&&l.length?Fu(l,Se(u,3)):[]}var Gte=Fe(function(l){return yr(_n(l,1,Kt,!0))}),Kte=Fe(function(l){var u=Ei(l);return Kt(u)&&(u=n),yr(_n(l,1,Kt,!0),Se(u,2))}),Zte=Fe(function(l){var u=Ei(l);return u=typeof u=="function"?u:n,yr(_n(l,1,Kt,!0),n,u)});function Xte(l){return l&&l.length?yr(l):[]}function Jte(l,u){return l&&l.length?yr(l,Se(u,2)):[]}function Qte(l,u){return u=typeof u=="function"?u:n,l&&l.length?yr(l,n,u):[]}function Gf(l){if(!(l&&l.length))return[];var u=0;return l=fr(l,function(p){if(Kt(p))return u=ln(p.length,u),!0}),uf(u,function(p){return Pt(l,lf(p))})}function Sb(l,u){if(!(l&&l.length))return[];var p=Gf(l);return u==null?p:Pt(p,function(_){return hn(u,n,_)})}var ene=Fe(function(l,u){return Kt(l)?wc(l,u):[]}),tne=Fe(function(l){return Vf(fr(l,Kt))}),nne=Fe(function(l){var u=Ei(l);return Kt(u)&&(u=n),Vf(fr(l,Kt),Se(u,2))}),ine=Fe(function(l){var u=Ei(l);return u=typeof u=="function"?u:n,Vf(fr(l,Kt),n,u)}),sne=Fe(Gf);function rne(l,u){return Wv(l||[],u||[],bc)}function ane(l,u){return Wv(l||[],u||[],xc)}var one=Fe(function(l){var u=l.length,p=u>1?l[u-1]:n;return p=typeof p=="function"?(l.pop(),p):n,Sb(l,p)});function Mb(l){var u=M(l);return u.__chain__=!0,u}function lne(l,u){return u(l),l}function Ku(l,u){return u(l)}var cne=zs(function(l){var u=l.length,p=u?l[0]:0,_=this.__wrapped__,w=function(D){return vf(D,l)};return u>1||this.__actions__.length||!(_ instanceof qe)||!Ps(p)?this.thru(w):(_=_.slice(p,+p+(u?1:0)),_.__actions__.push({func:Ku,args:[w],thisArg:n}),new Mi(_,this.__chain__).thru(function(D){return u&&!D.length&&D.push(n),D}))});function dne(){return Mb(this)}function une(){return new Mi(this.value(),this.__chain__)}function hne(){this.__values__===n&&(this.__values__=Fb(this.value()));var l=this.__index__>=this.__values__.length,u=l?n:this.__values__[this.__index__++];return{done:l,value:u}}function fne(){return this}function pne(l){for(var u,p=this;p instanceof Au;){var _=vb(p);_.__index__=0,_.__values__=n,u?w.__wrapped__=_:u=_;var w=_;p=p.__wrapped__}return w.__wrapped__=l,u}function mne(){var l=this.__wrapped__;if(l instanceof qe){var u=l;return this.__actions__.length&&(u=new qe(this)),u=u.reverse(),u.__actions__.push({func:Ku,args:[qf],thisArg:n}),new Mi(u,this.__chain__)}return this.thru(qf)}function gne(){return Hv(this.__wrapped__,this.__actions__)}var _ne=Ru(function(l,u,p){_t.call(l,p)?++l[p]:$s(l,p,1)});function yne(l,u,p){var _=Ae(l)?tv:lee;return p&&Nn(l,u,p)&&(u=n),_(l,Se(u,3))}function vne(l,u){var p=Ae(l)?fr:Sv;return p(l,Se(u,3))}var bne=Qv(bb),wne=Qv(wb);function kne(l,u){return _n(Zu(l,u),1)}function Cne(l,u){return _n(Zu(l,u),fe)}function xne(l,u,p){return p=p===n?1:ze(p),_n(Zu(l,u),p)}function Ob(l,u){var p=Ae(l)?xi:_r;return p(l,Se(u,3))}function Db(l,u){var p=Ae(l)?WJ:xv;return p(l,Se(u,3))}var Sne=Ru(function(l,u,p){_t.call(l,p)?l[p].push(u):$s(l,p,[u])});function Mne(l,u,p,_){l=Gn(l)?l:No(l),p=p&&!_?ze(p):0;var w=l.length;return p<0&&(p=ln(w+p,0)),t1(l)?p<=w&&l.indexOf(u,p)>-1:!!w&&xo(l,u,p)>-1}var One=Fe(function(l,u,p){var _=-1,w=typeof u=="function",D=Gn(l)?H(l.length):[];return _r(l,function(T){D[++_]=w?hn(u,T,p):kc(T,u,p)}),D}),Dne=Ru(function(l,u,p){$s(l,p,u)});function Zu(l,u){var p=Ae(l)?Pt:Tv;return p(l,Se(u,3))}function Ene(l,u,p,_){return l==null?[]:(Ae(u)||(u=u==null?[]:[u]),p=_?n:p,Ae(p)||(p=p==null?[]:[p]),$v(l,u,p))}var Bne=Ru(function(l,u,p){l[p?0:1].push(u)},function(){return[[],[]]});function Tne(l,u,p){var _=Ae(l)?af:rv,w=arguments.length<3;return _(l,Se(u,4),p,w,_r)}function Vne(l,u,p){var _=Ae(l)?YJ:rv,w=arguments.length<3;return _(l,Se(u,4),p,w,xv)}function Ine(l,u){var p=Ae(l)?fr:Sv;return p(l,Qu(Se(u,3)))}function Ane(l){var u=Ae(l)?bv:Mee;return u(l)}function $ne(l,u,p){(p?Nn(l,u,p):u===n)?u=1:u=ze(u);var _=Ae(l)?iee:Oee;return _(l,u)}function Nne(l){var u=Ae(l)?see:Eee;return u(l)}function zne(l){if(l==null)return 0;if(Gn(l))return t1(l)?Mo(l):l.length;var u=Dn(l);return u==rt||u==nt?l.size:Sf(l).length}function Pne(l,u,p){var _=Ae(l)?of:Bee;return p&&Nn(l,u,p)&&(u=n),_(l,Se(u,3))}var Lne=Fe(function(l,u){if(l==null)return[];var p=u.length;return p>1&&Nn(l,u[0],u[1])?u=[]:p>2&&Nn(u[0],u[1],u[2])&&(u=[u[0]]),$v(l,_n(u,1),[])}),Xu=vQ||function(){return He.Date.now()};function Fne(l,u){if(typeof u!="function")throw new Si(o);return l=ze(l),function(){if(--l<1)return u.apply(this,arguments)}}function Eb(l,u,p){return u=p?n:u,u=l&&u==null?l.length:u,Ns(l,L,n,n,n,n,u)}function Bb(l,u){var p;if(typeof u!="function")throw new Si(o);return l=ze(l),function(){return--l>0&&(p=u.apply(this,arguments)),l<=1&&(u=n),p}}var Kf=Fe(function(l,u,p){var _=C;if(p.length){var w=mr(p,Ao(Kf));_|=V}return Ns(l,_,u,p,w)}),Tb=Fe(function(l,u,p){var _=C|S;if(p.length){var w=mr(p,Ao(Tb));_|=V}return Ns(u,_,l,p,w)});function Vb(l,u,p){u=p?n:u;var _=Ns(l,A,n,n,n,n,n,u);return _.placeholder=Vb.placeholder,_}function Ib(l,u,p){u=p?n:u;var _=Ns(l,x,n,n,n,n,n,u);return _.placeholder=Ib.placeholder,_}function Ab(l,u,p){var _,w,D,T,$,P,Z=0,X=!1,Q=!1,de=!0;if(typeof l!="function")throw new Si(o);u=Bi(u)||0,Rt(p)&&(X=!!p.leading,Q="maxWait"in p,D=Q?ln(Bi(p.maxWait)||0,u):D,de="trailing"in p?!!p.trailing:de);function be(Zt){var Gi=_,Rs=w;return _=w=n,Z=Zt,T=l.apply(Rs,Gi),T}function Oe(Zt){return Z=Zt,$=Oc(je,u),X?be(Zt):T}function Pe(Zt){var Gi=Zt-P,Rs=Zt-Z,Qb=u-Gi;return Q?On(Qb,D-Rs):Qb}function De(Zt){var Gi=Zt-P,Rs=Zt-Z;return P===n||Gi>=u||Gi<0||Q&&Rs>=D}function je(){var Zt=Xu();if(De(Zt))return Ke(Zt);$=Oc(je,Pe(Zt))}function Ke(Zt){return $=n,de&&_?be(Zt):(_=w=n,T)}function oi(){$!==n&&Yv($),Z=0,_=P=w=$=n}function zn(){return $===n?T:Ke(Xu())}function li(){var Zt=Xu(),Gi=De(Zt);if(_=arguments,w=this,P=Zt,Gi){if($===n)return Oe(P);if(Q)return Yv($),$=Oc(je,u),be(P)}return $===n&&($=Oc(je,u)),T}return li.cancel=oi,li.flush=zn,li}var Rne=Fe(function(l,u){return Cv(l,1,u)}),Hne=Fe(function(l,u,p){return Cv(l,Bi(u)||0,p)});function Wne(l){return Ns(l,q)}function Ju(l,u){if(typeof l!="function"||u!=null&&typeof u!="function")throw new Si(o);var p=function(){var _=arguments,w=u?u.apply(this,_):_[0],D=p.cache;if(D.has(w))return D.get(w);var T=l.apply(this,_);return p.cache=D.set(w,T)||D,T};return p.cache=new(Ju.Cache||As),p}Ju.Cache=As;function Qu(l){if(typeof l!="function")throw new Si(o);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}function Yne(l){return Bb(2,l)}var jne=Tee(function(l,u){u=u.length==1&&Ae(u[0])?Pt(u[0],si(Se())):Pt(_n(u,1),si(Se()));var p=u.length;return Fe(function(_){for(var w=-1,D=On(_.length,p);++w<D;)_[w]=u[w].call(this,_[w]);return hn(l,this,_)})}),Zf=Fe(function(l,u){var p=mr(u,Ao(Zf));return Ns(l,V,n,u,p)}),$b=Fe(function(l,u){var p=mr(u,Ao($b));return Ns(l,N,n,u,p)}),Une=zs(function(l,u){return Ns(l,F,n,n,n,u)});function qne(l,u){if(typeof l!="function")throw new Si(o);return u=u===n?u:ze(u),Fe(l,u)}function Gne(l,u){if(typeof l!="function")throw new Si(o);return u=u==null?0:ln(ze(u),0),Fe(function(p){var _=p[u],w=br(p,0,u);return _&&pr(w,_),hn(l,this,w)})}function Kne(l,u,p){var _=!0,w=!0;if(typeof l!="function")throw new Si(o);return Rt(p)&&(_="leading"in p?!!p.leading:_,w="trailing"in p?!!p.trailing:w),Ab(l,u,{leading:_,maxWait:u,trailing:w})}function Zne(l){return Eb(l,1)}function Xne(l,u){return Zf(Af(u),l)}function Jne(){if(!arguments.length)return[];var l=arguments[0];return Ae(l)?l:[l]}function Qne(l){return Oi(l,y)}function eie(l,u){return u=typeof u=="function"?u:n,Oi(l,y,u)}function tie(l){return Oi(l,m|y)}function nie(l,u){return u=typeof u=="function"?u:n,Oi(l,m|y,u)}function iie(l,u){return u==null||kv(l,u,fn(u))}function qi(l,u){return l===u||l!==l&&u!==u}var sie=ju(kf),rie=ju(function(l,u){return l>=u}),pa=Dv(function(){return arguments}())?Dv:function(l){return jt(l)&&_t.call(l,"callee")&&!pv.call(l,"callee")},Ae=H.isArray,aie=Qt?si(Qt):pee;function Gn(l){return l!=null&&e1(l.length)&&!Ls(l)}function Kt(l){return jt(l)&&Gn(l)}function oie(l){return l===!0||l===!1||jt(l)&&$n(l)==Le}var wr=wQ||op,lie=Yi?si(Yi):mee;function cie(l){return jt(l)&&l.nodeType===1&&!Dc(l)}function die(l){if(l==null)return!0;if(Gn(l)&&(Ae(l)||typeof l=="string"||typeof l.splice=="function"||wr(l)||$o(l)||pa(l)))return!l.length;var u=Dn(l);if(u==rt||u==nt)return!l.size;if(Mc(l))return!Sf(l).length;for(var p in l)if(_t.call(l,p))return!1;return!0}function uie(l,u){return Cc(l,u)}function hie(l,u,p){p=typeof p=="function"?p:n;var _=p?p(l,u):n;return _===n?Cc(l,u,n,p):!!_}function Xf(l){if(!jt(l))return!1;var u=$n(l);return u==kt||u==It||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function fie(l){return typeof l=="number"&&gv(l)}function Ls(l){if(!Rt(l))return!1;var u=$n(l);return u==tt||u==st||u==lt||u==nn}function Nb(l){return typeof l=="number"&&l==ze(l)}function e1(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ye}function Rt(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}function jt(l){return l!=null&&typeof l=="object"}var zb=Ci?si(Ci):_ee;function pie(l,u){return l===u||xf(l,u,Rf(u))}function mie(l,u,p){return p=typeof p=="function"?p:n,xf(l,u,Rf(u),p)}function gie(l){return Pb(l)&&l!=+l}function _ie(l){if(ete(l))throw new Ve(r);return Ev(l)}function yie(l){return l===null}function vie(l){return l==null}function Pb(l){return typeof l=="number"||jt(l)&&$n(l)==Yt}function Dc(l){if(!jt(l)||$n(l)!=Ct)return!1;var u=Ou(l);if(u===null)return!0;var p=_t.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&Cu.call(p)==mQ}var Jf=as?si(as):yee;function bie(l){return Nb(l)&&l>=-ye&&l<=ye}var Lb=fc?si(fc):vee;function t1(l){return typeof l=="string"||!Ae(l)&&jt(l)&&$n(l)==Nt}function ai(l){return typeof l=="symbol"||jt(l)&&$n(l)==Ot}var $o=aa?si(aa):bee;function wie(l){return l===n}function kie(l){return jt(l)&&Dn(l)==Dt}function Cie(l){return jt(l)&&$n(l)==un}var xie=ju(Mf),Sie=ju(function(l,u){return l<=u});function Fb(l){if(!l)return[];if(Gn(l))return t1(l)?ji(l):qn(l);if(mc&&l[mc])return iQ(l[mc]());var u=Dn(l),p=u==rt?ff:u==nt?bu:No;return p(l)}function Fs(l){if(!l)return l===0?l:0;if(l=Bi(l),l===fe||l===-fe){var u=l<0?-1:1;return u*we}return l===l?l:0}function ze(l){var u=Fs(l),p=u%1;return u===u?p?u-p:u:0}function Rb(l){return l?da(ze(l),0,pe):0}function Bi(l){if(typeof l=="number")return l;if(ai(l))return R;if(Rt(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=Rt(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=av(l);var p=ec.test(l);return p||nc.test(l)?ke(l.slice(2),p?2:8):Ql.test(l)?R:+l}function Hb(l){return ls(l,Kn(l))}function Mie(l){return l?da(ze(l),-ye,ye):l===0?l:0}function dt(l){return l==null?"":ri(l)}var Oie=Vo(function(l,u){if(Mc(u)||Gn(u)){ls(u,fn(u),l);return}for(var p in u)_t.call(u,p)&&bc(l,p,u[p])}),Wb=Vo(function(l,u){ls(u,Kn(u),l)}),n1=Vo(function(l,u,p,_){ls(u,Kn(u),l,_)}),Die=Vo(function(l,u,p,_){ls(u,fn(u),l,_)}),Eie=zs(vf);function Bie(l,u){var p=To(l);return u==null?p:wv(p,u)}var Tie=Fe(function(l,u){l=St(l);var p=-1,_=u.length,w=_>2?u[2]:n;for(w&&Nn(u[0],u[1],w)&&(_=1);++p<_;)for(var D=u[p],T=Kn(D),$=-1,P=T.length;++$<P;){var Z=T[$],X=l[Z];(X===n||qi(X,Do[Z])&&!_t.call(l,Z))&&(l[Z]=D[Z])}return l}),Vie=Fe(function(l){return l.push(n,ab),hn(Yb,n,l)});function Iie(l,u){return nv(l,Se(u,3),os)}function Aie(l,u){return nv(l,Se(u,3),wf)}function $ie(l,u){return l==null?l:bf(l,Se(u,3),Kn)}function Nie(l,u){return l==null?l:Mv(l,Se(u,3),Kn)}function zie(l,u){return l&&os(l,Se(u,3))}function Pie(l,u){return l&&wf(l,Se(u,3))}function Lie(l){return l==null?[]:zu(l,fn(l))}function Fie(l){return l==null?[]:zu(l,Kn(l))}function Qf(l,u,p){var _=l==null?n:ua(l,u);return _===n?p:_}function Rie(l,u){return l!=null&&cb(l,u,dee)}function ep(l,u){return l!=null&&cb(l,u,uee)}var Hie=tb(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=xu.call(u)),l[u]=p},np(Zn)),Wie=tb(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=xu.call(u)),_t.call(l,u)?l[u].push(p):l[u]=[p]},Se),Yie=Fe(kc);function fn(l){return Gn(l)?vv(l):Sf(l)}function Kn(l){return Gn(l)?vv(l,!0):wee(l)}function jie(l,u){var p={};return u=Se(u,3),os(l,function(_,w,D){$s(p,u(_,w,D),_)}),p}function Uie(l,u){var p={};return u=Se(u,3),os(l,function(_,w,D){$s(p,w,u(_,w,D))}),p}var qie=Vo(function(l,u,p){Pu(l,u,p)}),Yb=Vo(function(l,u,p,_){Pu(l,u,p,_)}),Gie=zs(function(l,u){var p={};if(l==null)return p;var _=!1;u=Pt(u,function(D){return D=vr(D,l),_||(_=D.length>1),D}),ls(l,Lf(l),p),_&&(p=Oi(p,m|g|y,Hee));for(var w=u.length;w--;)Tf(p,u[w]);return p});function Kie(l,u){return jb(l,Qu(Se(u)))}var Zie=zs(function(l,u){return l==null?{}:Cee(l,u)});function jb(l,u){if(l==null)return{};var p=Pt(Lf(l),function(_){return[_]});return u=Se(u),Nv(l,p,function(_,w){return u(_,w[0])})}function Xie(l,u,p){u=vr(u,l);var _=-1,w=u.length;for(w||(w=1,l=n);++_<w;){var D=l==null?n:l[cs(u[_])];D===n&&(_=w,D=p),l=Ls(D)?D.call(l):D}return l}function Jie(l,u,p){return l==null?l:xc(l,u,p)}function Qie(l,u,p,_){return _=typeof _=="function"?_:n,l==null?l:xc(l,u,p,_)}var Ub=sb(fn),qb=sb(Kn);function ese(l,u,p){var _=Ae(l),w=_||wr(l)||$o(l);if(u=Se(u,4),p==null){var D=l&&l.constructor;w?p=_?new D:[]:Rt(l)?p=Ls(D)?To(Ou(l)):{}:p={}}return(w?xi:os)(l,function(T,$,P){return u(p,T,$,P)}),p}function tse(l,u){return l==null?!0:Tf(l,u)}function nse(l,u,p){return l==null?l:Rv(l,u,Af(p))}function ise(l,u,p,_){return _=typeof _=="function"?_:n,l==null?l:Rv(l,u,Af(p),_)}function No(l){return l==null?[]:hf(l,fn(l))}function sse(l){return l==null?[]:hf(l,Kn(l))}function rse(l,u,p){return p===n&&(p=u,u=n),p!==n&&(p=Bi(p),p=p===p?p:0),u!==n&&(u=Bi(u),u=u===u?u:0),da(Bi(l),u,p)}function ase(l,u,p){return u=Fs(u),p===n?(p=u,u=0):p=Fs(p),l=Bi(l),hee(l,u,p)}function ose(l,u,p){if(p&&typeof p!="boolean"&&Nn(l,u,p)&&(u=p=n),p===n&&(typeof u=="boolean"?(p=u,u=n):typeof l=="boolean"&&(p=l,l=n)),l===n&&u===n?(l=0,u=1):(l=Fs(l),u===n?(u=l,l=0):u=Fs(u)),l>u){var _=l;l=u,u=_}if(p||l%1||u%1){var w=_v();return On(l+w*(u-l+Be("1e-"+((w+"").length-1))),u)}return Df(l,u)}var lse=Io(function(l,u,p){return u=u.toLowerCase(),l+(p?Gb(u):u)});function Gb(l){return tp(dt(l).toLowerCase())}function Kb(l){return l=dt(l),l&&l.replace(Sn,JJ).replace(hc,"")}function cse(l,u,p){l=dt(l),u=ri(u);var _=l.length;p=p===n?_:da(ze(p),0,_);var w=p;return p-=u.length,p>=0&&l.slice(p,w)==u}function dse(l){return l=dt(l),l&&xt.test(l)?l.replace(Ye,QJ):l}function use(l){return l=dt(l),l&&Hi.test(l)?l.replace(ni,"\\$&"):l}var hse=Io(function(l,u,p){return l+(p?"-":"")+u.toLowerCase()}),fse=Io(function(l,u,p){return l+(p?" ":"")+u.toLowerCase()}),pse=Jv("toLowerCase");function mse(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;if(!u||_>=u)return l;var w=(u-_)/2;return Yu(Tu(w),p)+l+Yu(Bu(w),p)}function gse(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;return u&&_<u?l+Yu(u-_,p):l}function _se(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;return u&&_<u?Yu(u-_,p)+l:l}function yse(l,u,p){return p||u==null?u=0:u&&(u=+u),SQ(dt(l).replace(Ms,""),u||0)}function vse(l,u,p){return(p?Nn(l,u,p):u===n)?u=1:u=ze(u),Ef(dt(l),u)}function bse(){var l=arguments,u=dt(l[0]);return l.length<3?u:u.replace(l[1],l[2])}var wse=Io(function(l,u,p){return l+(p?"_":"")+u.toLowerCase()});function kse(l,u,p){return p&&typeof p!="number"&&Nn(l,u,p)&&(u=p=n),p=p===n?pe:p>>>0,p?(l=dt(l),l&&(typeof u=="string"||u!=null&&!Jf(u))&&(u=ri(u),!u&&So(l))?br(ji(l),0,p):l.split(u,p)):[]}var Cse=Io(function(l,u,p){return l+(p?" ":"")+tp(u)});function xse(l,u,p){return l=dt(l),p=p==null?0:da(ze(p),0,l.length),u=ri(u),l.slice(p,p+u.length)==u}function Sse(l,u,p){var _=M.templateSettings;p&&Nn(l,u,p)&&(u=n),l=dt(l),u=n1({},u,_,rb);var w=n1({},u.imports,_.imports,rb),D=fn(w),T=hf(w,D),$,P,Z=0,X=u.interpolate||or,Q="__p += '",de=pf((u.escape||or).source+"|"+X.source+"|"+(X===Un?Jl:or).source+"|"+(u.evaluate||or).source+"|$","g"),be="//# sourceURL="+(_t.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ra+"]")+`
52
+ `)}function Xee(l){return Ae(l)||pa(l)||!!(mv&&l&&l[mv])}function Ps(l,u){var p=typeof l;return u=u??ye,!!u&&(p=="number"||p!="symbol"&&ic.test(l))&&l>-1&&l%1==0&&l<u}function Nn(l,u,p){if(!Rt(p))return!1;var _=typeof u;return(_=="number"?Gn(p)&&Ps(u,p.length):_=="string"&&u in p)?qi(p[u],l):!1}function Wf(l,u){if(Ae(l))return!1;var p=typeof l;return p=="number"||p=="symbol"||p=="boolean"||l==null||ai(l)?!0:In.test(l)||!pt.test(l)||u!=null&&l in St(u)}function Jee(l){var u=typeof l;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?l!=="__proto__":l===null}function Yf(l){var u=Uu(l),p=M[u];if(typeof p!="function"||!(u in qe.prototype))return!1;if(l===p)return!0;var _=Ff(p);return!!_&&l===_[0]}function Qee(l){return!!uv&&uv in l}var ete=ku?Ls:op;function Mc(l){var u=l&&l.constructor,p=typeof u=="function"&&u.prototype||Do;return l===p}function ub(l){return l===l&&!Rt(l)}function hb(l,u){return function(p){return p==null?!1:p[l]===u&&(u!==n||l in St(p))}}function tte(l){var u=Ju(l,function(_){return p.size===h&&p.clear(),_}),p=u.cache;return u}function nte(l,u){var p=l[1],_=u[1],w=p|_,D=w<(C|S|L),T=_==L&&p==A||_==L&&p==F&&l[7].length<=u[8]||_==(L|F)&&u[7].length<=u[8]&&p==A;if(!(D||T))return l;_&C&&(l[2]=u[2],w|=p&C?0:E);var $=u[3];if($){var P=l[3];l[3]=P?Gv(P,$,u[4]):$,l[4]=P?mr(l[3],f):u[4]}return $=u[5],$&&(P=l[5],l[5]=P?Kv(P,$,u[6]):$,l[6]=P?mr(l[5],f):u[6]),$=u[7],$&&(l[7]=$),_&L&&(l[8]=l[8]==null?u[8]:On(l[8],u[8])),l[9]==null&&(l[9]=u[9]),l[0]=u[0],l[1]=w,l}function ite(l){var u=[];if(l!=null)for(var p in St(l))u.push(p);return u}function ste(l){return xu.call(l)}function fb(l,u,p){return u=ln(u===n?l.length-1:u,0),function(){for(var _=arguments,w=-1,D=ln(_.length-u,0),T=H(D);++w<D;)T[w]=_[u+w];w=-1;for(var $=H(u+1);++w<u;)$[w]=_[w];return $[u]=p(T),hn(l,this,$)}}function pb(l,u){return u.length<2?l:ua(l,Ei(u,0,-1))}function rte(l,u){for(var p=l.length,_=On(u.length,p),w=qn(l);_--;){var D=u[_];l[_]=Ps(D,p)?w[D]:n}return l}function jf(l,u){if(!(u==="constructor"&&typeof l[u]=="function")&&u!="__proto__")return l[u]}var mb=_b(Pv),Oc=bQ||function(l,u){return He.setTimeout(l,u)},Uf=_b(Dee);function gb(l,u,p){var _=u+"";return Uf(l,Zee(_,ate(qee(_),p)))}function _b(l){var u=0,p=0;return function(){var _=xQ(),w=ie-(_-p);if(p=_,w>0){if(++u>=K)return arguments[0]}else u=0;return l.apply(n,arguments)}}function Gu(l,u){var p=-1,_=l.length,w=_-1;for(u=u===n?_:u;++p<u;){var D=Df(p,w),T=l[D];l[D]=l[p],l[p]=T}return l.length=u,l}var yb=tte(function(l){var u=[];return l.charCodeAt(0)===46&&u.push(""),l.replace(xn,function(p,_,w,D){u.push(w?D.replace(Xl,"$1"):_||p)}),u});function cs(l){if(typeof l=="string"||ai(l))return l;var u=l+"";return u=="0"&&1/l==-fe?"-0":u}function fa(l){if(l!=null){try{return Cu.call(l)}catch{}try{return l+""}catch{}}return""}function ate(l,u){return Si(Me,function(p){var _="_."+p[0];u&p[1]&&!yu(l,_)&&l.push(_)}),l.sort()}function vb(l){if(l instanceof qe)return l.clone();var u=new Oi(l.__wrapped__,l.__chain__);return u.__actions__=qn(l.__actions__),u.__index__=l.__index__,u.__values__=l.__values__,u}function ote(l,u,p){(p?Nn(l,u,p):u===n)?u=1:u=ln(ze(u),0);var _=l==null?0:l.length;if(!_||u<1)return[];for(var w=0,D=0,T=H(Bu(_/u));w<_;)T[D++]=Ei(l,w,w+=u);return T}function lte(l){for(var u=-1,p=l==null?0:l.length,_=0,w=[];++u<p;){var D=l[u];D&&(w[_++]=D)}return w}function cte(){var l=arguments.length;if(!l)return[];for(var u=H(l-1),p=arguments[0],_=l;_--;)u[_-1]=arguments[_];return pr(Ae(p)?qn(p):[p],_n(u,1))}var dte=Fe(function(l,u){return Kt(l)?wc(l,_n(u,1,Kt,!0)):[]}),ute=Fe(function(l,u){var p=Bi(u);return Kt(p)&&(p=n),Kt(l)?wc(l,_n(u,1,Kt,!0),Se(p,2)):[]}),hte=Fe(function(l,u){var p=Bi(u);return Kt(p)&&(p=n),Kt(l)?wc(l,_n(u,1,Kt,!0),n,p):[]});function fte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),Ei(l,u<0?0:u,_)):[]}function pte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),u=_-u,Ei(l,0,u<0?0:u)):[]}function mte(l,u){return l&&l.length?Fu(l,Se(u,3),!0,!0):[]}function gte(l,u){return l&&l.length?Fu(l,Se(u,3),!0):[]}function _te(l,u,p,_){var w=l==null?0:l.length;return w?(p&&typeof p!="number"&&Nn(l,u,p)&&(p=0,_=w),cee(l,u,p,_)):[]}function bb(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=p==null?0:ze(p);return w<0&&(w=ln(_+w,0)),vu(l,Se(u,3),w)}function wb(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=_-1;return p!==n&&(w=ze(p),w=p<0?ln(_+w,0):On(w,_-1)),vu(l,Se(u,3),w,!0)}function kb(l){var u=l==null?0:l.length;return u?_n(l,1):[]}function yte(l){var u=l==null?0:l.length;return u?_n(l,fe):[]}function vte(l,u){var p=l==null?0:l.length;return p?(u=u===n?1:ze(u),_n(l,u)):[]}function bte(l){for(var u=-1,p=l==null?0:l.length,_={};++u<p;){var w=l[u];_[w[0]]=w[1]}return _}function Cb(l){return l&&l.length?l[0]:n}function wte(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=p==null?0:ze(p);return w<0&&(w=ln(_+w,0)),xo(l,u,w)}function kte(l){var u=l==null?0:l.length;return u?Ei(l,0,-1):[]}var Cte=Fe(function(l){var u=Pt(l,If);return u.length&&u[0]===l[0]?Cf(u):[]}),xte=Fe(function(l){var u=Bi(l),p=Pt(l,If);return u===Bi(p)?u=n:p.pop(),p.length&&p[0]===l[0]?Cf(p,Se(u,2)):[]}),Ste=Fe(function(l){var u=Bi(l),p=Pt(l,If);return u=typeof u=="function"?u:n,u&&p.pop(),p.length&&p[0]===l[0]?Cf(p,n,u):[]});function Mte(l,u){return l==null?"":kQ.call(l,u)}function Bi(l){var u=l==null?0:l.length;return u?l[u-1]:n}function Ote(l,u,p){var _=l==null?0:l.length;if(!_)return-1;var w=_;return p!==n&&(w=ze(p),w=w<0?ln(_+w,0):On(w,_-1)),u===u?aQ(l,u,w):vu(l,iv,w,!0)}function Dte(l,u){return l&&l.length?Av(l,ze(u)):n}var Ete=Fe(xb);function xb(l,u){return l&&l.length&&u&&u.length?Of(l,u):l}function Bte(l,u,p){return l&&l.length&&u&&u.length?Of(l,u,Se(p,2)):l}function Tte(l,u,p){return l&&l.length&&u&&u.length?Of(l,u,n,p):l}var Vte=zs(function(l,u){var p=l==null?0:l.length,_=vf(l,u);return zv(l,Pt(u,function(w){return Ps(w,p)?+w:w}).sort(qv)),_});function Ite(l,u){var p=[];if(!(l&&l.length))return p;var _=-1,w=[],D=l.length;for(u=Se(u,3);++_<D;){var T=l[_];u(T,_,l)&&(p.push(T),w.push(_))}return zv(l,w),p}function qf(l){return l==null?l:MQ.call(l)}function Ate(l,u,p){var _=l==null?0:l.length;return _?(p&&typeof p!="number"&&Nn(l,u,p)?(u=0,p=_):(u=u==null?0:ze(u),p=p===n?_:ze(p)),Ei(l,u,p)):[]}function $te(l,u){return Lu(l,u)}function Nte(l,u,p){return Bf(l,u,Se(p,2))}function zte(l,u){var p=l==null?0:l.length;if(p){var _=Lu(l,u);if(_<p&&qi(l[_],u))return _}return-1}function Pte(l,u){return Lu(l,u,!0)}function Lte(l,u,p){return Bf(l,u,Se(p,2),!0)}function Fte(l,u){var p=l==null?0:l.length;if(p){var _=Lu(l,u,!0)-1;if(qi(l[_],u))return _}return-1}function Rte(l){return l&&l.length?Lv(l):[]}function Hte(l,u){return l&&l.length?Lv(l,Se(u,2)):[]}function Wte(l){var u=l==null?0:l.length;return u?Ei(l,1,u):[]}function Yte(l,u,p){return l&&l.length?(u=p||u===n?1:ze(u),Ei(l,0,u<0?0:u)):[]}function jte(l,u,p){var _=l==null?0:l.length;return _?(u=p||u===n?1:ze(u),u=_-u,Ei(l,u<0?0:u,_)):[]}function Ute(l,u){return l&&l.length?Fu(l,Se(u,3),!1,!0):[]}function qte(l,u){return l&&l.length?Fu(l,Se(u,3)):[]}var Gte=Fe(function(l){return yr(_n(l,1,Kt,!0))}),Kte=Fe(function(l){var u=Bi(l);return Kt(u)&&(u=n),yr(_n(l,1,Kt,!0),Se(u,2))}),Zte=Fe(function(l){var u=Bi(l);return u=typeof u=="function"?u:n,yr(_n(l,1,Kt,!0),n,u)});function Xte(l){return l&&l.length?yr(l):[]}function Jte(l,u){return l&&l.length?yr(l,Se(u,2)):[]}function Qte(l,u){return u=typeof u=="function"?u:n,l&&l.length?yr(l,n,u):[]}function Gf(l){if(!(l&&l.length))return[];var u=0;return l=fr(l,function(p){if(Kt(p))return u=ln(p.length,u),!0}),uf(u,function(p){return Pt(l,lf(p))})}function Sb(l,u){if(!(l&&l.length))return[];var p=Gf(l);return u==null?p:Pt(p,function(_){return hn(u,n,_)})}var ene=Fe(function(l,u){return Kt(l)?wc(l,u):[]}),tne=Fe(function(l){return Vf(fr(l,Kt))}),nne=Fe(function(l){var u=Bi(l);return Kt(u)&&(u=n),Vf(fr(l,Kt),Se(u,2))}),ine=Fe(function(l){var u=Bi(l);return u=typeof u=="function"?u:n,Vf(fr(l,Kt),n,u)}),sne=Fe(Gf);function rne(l,u){return Wv(l||[],u||[],bc)}function ane(l,u){return Wv(l||[],u||[],xc)}var one=Fe(function(l){var u=l.length,p=u>1?l[u-1]:n;return p=typeof p=="function"?(l.pop(),p):n,Sb(l,p)});function Mb(l){var u=M(l);return u.__chain__=!0,u}function lne(l,u){return u(l),l}function Ku(l,u){return u(l)}var cne=zs(function(l){var u=l.length,p=u?l[0]:0,_=this.__wrapped__,w=function(D){return vf(D,l)};return u>1||this.__actions__.length||!(_ instanceof qe)||!Ps(p)?this.thru(w):(_=_.slice(p,+p+(u?1:0)),_.__actions__.push({func:Ku,args:[w],thisArg:n}),new Oi(_,this.__chain__).thru(function(D){return u&&!D.length&&D.push(n),D}))});function dne(){return Mb(this)}function une(){return new Oi(this.value(),this.__chain__)}function hne(){this.__values__===n&&(this.__values__=Fb(this.value()));var l=this.__index__>=this.__values__.length,u=l?n:this.__values__[this.__index__++];return{done:l,value:u}}function fne(){return this}function pne(l){for(var u,p=this;p instanceof Au;){var _=vb(p);_.__index__=0,_.__values__=n,u?w.__wrapped__=_:u=_;var w=_;p=p.__wrapped__}return w.__wrapped__=l,u}function mne(){var l=this.__wrapped__;if(l instanceof qe){var u=l;return this.__actions__.length&&(u=new qe(this)),u=u.reverse(),u.__actions__.push({func:Ku,args:[qf],thisArg:n}),new Oi(u,this.__chain__)}return this.thru(qf)}function gne(){return Hv(this.__wrapped__,this.__actions__)}var _ne=Ru(function(l,u,p){_t.call(l,p)?++l[p]:$s(l,p,1)});function yne(l,u,p){var _=Ae(l)?tv:lee;return p&&Nn(l,u,p)&&(u=n),_(l,Se(u,3))}function vne(l,u){var p=Ae(l)?fr:Sv;return p(l,Se(u,3))}var bne=Qv(bb),wne=Qv(wb);function kne(l,u){return _n(Zu(l,u),1)}function Cne(l,u){return _n(Zu(l,u),fe)}function xne(l,u,p){return p=p===n?1:ze(p),_n(Zu(l,u),p)}function Ob(l,u){var p=Ae(l)?Si:_r;return p(l,Se(u,3))}function Db(l,u){var p=Ae(l)?WJ:xv;return p(l,Se(u,3))}var Sne=Ru(function(l,u,p){_t.call(l,p)?l[p].push(u):$s(l,p,[u])});function Mne(l,u,p,_){l=Gn(l)?l:No(l),p=p&&!_?ze(p):0;var w=l.length;return p<0&&(p=ln(w+p,0)),t1(l)?p<=w&&l.indexOf(u,p)>-1:!!w&&xo(l,u,p)>-1}var One=Fe(function(l,u,p){var _=-1,w=typeof u=="function",D=Gn(l)?H(l.length):[];return _r(l,function(T){D[++_]=w?hn(u,T,p):kc(T,u,p)}),D}),Dne=Ru(function(l,u,p){$s(l,p,u)});function Zu(l,u){var p=Ae(l)?Pt:Tv;return p(l,Se(u,3))}function Ene(l,u,p,_){return l==null?[]:(Ae(u)||(u=u==null?[]:[u]),p=_?n:p,Ae(p)||(p=p==null?[]:[p]),$v(l,u,p))}var Bne=Ru(function(l,u,p){l[p?0:1].push(u)},function(){return[[],[]]});function Tne(l,u,p){var _=Ae(l)?af:rv,w=arguments.length<3;return _(l,Se(u,4),p,w,_r)}function Vne(l,u,p){var _=Ae(l)?YJ:rv,w=arguments.length<3;return _(l,Se(u,4),p,w,xv)}function Ine(l,u){var p=Ae(l)?fr:Sv;return p(l,Qu(Se(u,3)))}function Ane(l){var u=Ae(l)?bv:Mee;return u(l)}function $ne(l,u,p){(p?Nn(l,u,p):u===n)?u=1:u=ze(u);var _=Ae(l)?iee:Oee;return _(l,u)}function Nne(l){var u=Ae(l)?see:Eee;return u(l)}function zne(l){if(l==null)return 0;if(Gn(l))return t1(l)?Mo(l):l.length;var u=Dn(l);return u==rt||u==nt?l.size:Sf(l).length}function Pne(l,u,p){var _=Ae(l)?of:Bee;return p&&Nn(l,u,p)&&(u=n),_(l,Se(u,3))}var Lne=Fe(function(l,u){if(l==null)return[];var p=u.length;return p>1&&Nn(l,u[0],u[1])?u=[]:p>2&&Nn(u[0],u[1],u[2])&&(u=[u[0]]),$v(l,_n(u,1),[])}),Xu=vQ||function(){return He.Date.now()};function Fne(l,u){if(typeof u!="function")throw new Mi(o);return l=ze(l),function(){if(--l<1)return u.apply(this,arguments)}}function Eb(l,u,p){return u=p?n:u,u=l&&u==null?l.length:u,Ns(l,L,n,n,n,n,u)}function Bb(l,u){var p;if(typeof u!="function")throw new Mi(o);return l=ze(l),function(){return--l>0&&(p=u.apply(this,arguments)),l<=1&&(u=n),p}}var Kf=Fe(function(l,u,p){var _=C;if(p.length){var w=mr(p,Ao(Kf));_|=V}return Ns(l,_,u,p,w)}),Tb=Fe(function(l,u,p){var _=C|S;if(p.length){var w=mr(p,Ao(Tb));_|=V}return Ns(u,_,l,p,w)});function Vb(l,u,p){u=p?n:u;var _=Ns(l,A,n,n,n,n,n,u);return _.placeholder=Vb.placeholder,_}function Ib(l,u,p){u=p?n:u;var _=Ns(l,x,n,n,n,n,n,u);return _.placeholder=Ib.placeholder,_}function Ab(l,u,p){var _,w,D,T,$,P,Z=0,X=!1,Q=!1,de=!0;if(typeof l!="function")throw new Mi(o);u=Ti(u)||0,Rt(p)&&(X=!!p.leading,Q="maxWait"in p,D=Q?ln(Ti(p.maxWait)||0,u):D,de="trailing"in p?!!p.trailing:de);function be(Zt){var Gi=_,Rs=w;return _=w=n,Z=Zt,T=l.apply(Rs,Gi),T}function Oe(Zt){return Z=Zt,$=Oc(je,u),X?be(Zt):T}function Pe(Zt){var Gi=Zt-P,Rs=Zt-Z,Qb=u-Gi;return Q?On(Qb,D-Rs):Qb}function De(Zt){var Gi=Zt-P,Rs=Zt-Z;return P===n||Gi>=u||Gi<0||Q&&Rs>=D}function je(){var Zt=Xu();if(De(Zt))return Ke(Zt);$=Oc(je,Pe(Zt))}function Ke(Zt){return $=n,de&&_?be(Zt):(_=w=n,T)}function oi(){$!==n&&Yv($),Z=0,_=P=w=$=n}function zn(){return $===n?T:Ke(Xu())}function li(){var Zt=Xu(),Gi=De(Zt);if(_=arguments,w=this,P=Zt,Gi){if($===n)return Oe(P);if(Q)return Yv($),$=Oc(je,u),be(P)}return $===n&&($=Oc(je,u)),T}return li.cancel=oi,li.flush=zn,li}var Rne=Fe(function(l,u){return Cv(l,1,u)}),Hne=Fe(function(l,u,p){return Cv(l,Ti(u)||0,p)});function Wne(l){return Ns(l,q)}function Ju(l,u){if(typeof l!="function"||u!=null&&typeof u!="function")throw new Mi(o);var p=function(){var _=arguments,w=u?u.apply(this,_):_[0],D=p.cache;if(D.has(w))return D.get(w);var T=l.apply(this,_);return p.cache=D.set(w,T)||D,T};return p.cache=new(Ju.Cache||As),p}Ju.Cache=As;function Qu(l){if(typeof l!="function")throw new Mi(o);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}function Yne(l){return Bb(2,l)}var jne=Tee(function(l,u){u=u.length==1&&Ae(u[0])?Pt(u[0],si(Se())):Pt(_n(u,1),si(Se()));var p=u.length;return Fe(function(_){for(var w=-1,D=On(_.length,p);++w<D;)_[w]=u[w].call(this,_[w]);return hn(l,this,_)})}),Zf=Fe(function(l,u){var p=mr(u,Ao(Zf));return Ns(l,V,n,u,p)}),$b=Fe(function(l,u){var p=mr(u,Ao($b));return Ns(l,N,n,u,p)}),Une=zs(function(l,u){return Ns(l,F,n,n,n,u)});function qne(l,u){if(typeof l!="function")throw new Mi(o);return u=u===n?u:ze(u),Fe(l,u)}function Gne(l,u){if(typeof l!="function")throw new Mi(o);return u=u==null?0:ln(ze(u),0),Fe(function(p){var _=p[u],w=br(p,0,u);return _&&pr(w,_),hn(l,this,w)})}function Kne(l,u,p){var _=!0,w=!0;if(typeof l!="function")throw new Mi(o);return Rt(p)&&(_="leading"in p?!!p.leading:_,w="trailing"in p?!!p.trailing:w),Ab(l,u,{leading:_,maxWait:u,trailing:w})}function Zne(l){return Eb(l,1)}function Xne(l,u){return Zf(Af(u),l)}function Jne(){if(!arguments.length)return[];var l=arguments[0];return Ae(l)?l:[l]}function Qne(l){return Di(l,y)}function eie(l,u){return u=typeof u=="function"?u:n,Di(l,y,u)}function tie(l){return Di(l,m|y)}function nie(l,u){return u=typeof u=="function"?u:n,Di(l,m|y,u)}function iie(l,u){return u==null||kv(l,u,fn(u))}function qi(l,u){return l===u||l!==l&&u!==u}var sie=ju(kf),rie=ju(function(l,u){return l>=u}),pa=Dv(function(){return arguments}())?Dv:function(l){return jt(l)&&_t.call(l,"callee")&&!pv.call(l,"callee")},Ae=H.isArray,aie=Qt?si(Qt):pee;function Gn(l){return l!=null&&e1(l.length)&&!Ls(l)}function Kt(l){return jt(l)&&Gn(l)}function oie(l){return l===!0||l===!1||jt(l)&&$n(l)==Le}var wr=wQ||op,lie=Yi?si(Yi):mee;function cie(l){return jt(l)&&l.nodeType===1&&!Dc(l)}function die(l){if(l==null)return!0;if(Gn(l)&&(Ae(l)||typeof l=="string"||typeof l.splice=="function"||wr(l)||$o(l)||pa(l)))return!l.length;var u=Dn(l);if(u==rt||u==nt)return!l.size;if(Mc(l))return!Sf(l).length;for(var p in l)if(_t.call(l,p))return!1;return!0}function uie(l,u){return Cc(l,u)}function hie(l,u,p){p=typeof p=="function"?p:n;var _=p?p(l,u):n;return _===n?Cc(l,u,n,p):!!_}function Xf(l){if(!jt(l))return!1;var u=$n(l);return u==kt||u==It||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function fie(l){return typeof l=="number"&&gv(l)}function Ls(l){if(!Rt(l))return!1;var u=$n(l);return u==tt||u==st||u==lt||u==nn}function Nb(l){return typeof l=="number"&&l==ze(l)}function e1(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ye}function Rt(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}function jt(l){return l!=null&&typeof l=="object"}var zb=xi?si(xi):_ee;function pie(l,u){return l===u||xf(l,u,Rf(u))}function mie(l,u,p){return p=typeof p=="function"?p:n,xf(l,u,Rf(u),p)}function gie(l){return Pb(l)&&l!=+l}function _ie(l){if(ete(l))throw new Ve(r);return Ev(l)}function yie(l){return l===null}function vie(l){return l==null}function Pb(l){return typeof l=="number"||jt(l)&&$n(l)==Yt}function Dc(l){if(!jt(l)||$n(l)!=Ct)return!1;var u=Ou(l);if(u===null)return!0;var p=_t.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&Cu.call(p)==mQ}var Jf=as?si(as):yee;function bie(l){return Nb(l)&&l>=-ye&&l<=ye}var Lb=fc?si(fc):vee;function t1(l){return typeof l=="string"||!Ae(l)&&jt(l)&&$n(l)==Nt}function ai(l){return typeof l=="symbol"||jt(l)&&$n(l)==Ot}var $o=aa?si(aa):bee;function wie(l){return l===n}function kie(l){return jt(l)&&Dn(l)==Dt}function Cie(l){return jt(l)&&$n(l)==un}var xie=ju(Mf),Sie=ju(function(l,u){return l<=u});function Fb(l){if(!l)return[];if(Gn(l))return t1(l)?ji(l):qn(l);if(mc&&l[mc])return iQ(l[mc]());var u=Dn(l),p=u==rt?ff:u==nt?bu:No;return p(l)}function Fs(l){if(!l)return l===0?l:0;if(l=Ti(l),l===fe||l===-fe){var u=l<0?-1:1;return u*we}return l===l?l:0}function ze(l){var u=Fs(l),p=u%1;return u===u?p?u-p:u:0}function Rb(l){return l?da(ze(l),0,pe):0}function Ti(l){if(typeof l=="number")return l;if(ai(l))return R;if(Rt(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=Rt(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=av(l);var p=ec.test(l);return p||nc.test(l)?ke(l.slice(2),p?2:8):Ql.test(l)?R:+l}function Hb(l){return ls(l,Kn(l))}function Mie(l){return l?da(ze(l),-ye,ye):l===0?l:0}function dt(l){return l==null?"":ri(l)}var Oie=Vo(function(l,u){if(Mc(u)||Gn(u)){ls(u,fn(u),l);return}for(var p in u)_t.call(u,p)&&bc(l,p,u[p])}),Wb=Vo(function(l,u){ls(u,Kn(u),l)}),n1=Vo(function(l,u,p,_){ls(u,Kn(u),l,_)}),Die=Vo(function(l,u,p,_){ls(u,fn(u),l,_)}),Eie=zs(vf);function Bie(l,u){var p=To(l);return u==null?p:wv(p,u)}var Tie=Fe(function(l,u){l=St(l);var p=-1,_=u.length,w=_>2?u[2]:n;for(w&&Nn(u[0],u[1],w)&&(_=1);++p<_;)for(var D=u[p],T=Kn(D),$=-1,P=T.length;++$<P;){var Z=T[$],X=l[Z];(X===n||qi(X,Do[Z])&&!_t.call(l,Z))&&(l[Z]=D[Z])}return l}),Vie=Fe(function(l){return l.push(n,ab),hn(Yb,n,l)});function Iie(l,u){return nv(l,Se(u,3),os)}function Aie(l,u){return nv(l,Se(u,3),wf)}function $ie(l,u){return l==null?l:bf(l,Se(u,3),Kn)}function Nie(l,u){return l==null?l:Mv(l,Se(u,3),Kn)}function zie(l,u){return l&&os(l,Se(u,3))}function Pie(l,u){return l&&wf(l,Se(u,3))}function Lie(l){return l==null?[]:zu(l,fn(l))}function Fie(l){return l==null?[]:zu(l,Kn(l))}function Qf(l,u,p){var _=l==null?n:ua(l,u);return _===n?p:_}function Rie(l,u){return l!=null&&cb(l,u,dee)}function ep(l,u){return l!=null&&cb(l,u,uee)}var Hie=tb(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=xu.call(u)),l[u]=p},np(Zn)),Wie=tb(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=xu.call(u)),_t.call(l,u)?l[u].push(p):l[u]=[p]},Se),Yie=Fe(kc);function fn(l){return Gn(l)?vv(l):Sf(l)}function Kn(l){return Gn(l)?vv(l,!0):wee(l)}function jie(l,u){var p={};return u=Se(u,3),os(l,function(_,w,D){$s(p,u(_,w,D),_)}),p}function Uie(l,u){var p={};return u=Se(u,3),os(l,function(_,w,D){$s(p,w,u(_,w,D))}),p}var qie=Vo(function(l,u,p){Pu(l,u,p)}),Yb=Vo(function(l,u,p,_){Pu(l,u,p,_)}),Gie=zs(function(l,u){var p={};if(l==null)return p;var _=!1;u=Pt(u,function(D){return D=vr(D,l),_||(_=D.length>1),D}),ls(l,Lf(l),p),_&&(p=Di(p,m|g|y,Hee));for(var w=u.length;w--;)Tf(p,u[w]);return p});function Kie(l,u){return jb(l,Qu(Se(u)))}var Zie=zs(function(l,u){return l==null?{}:Cee(l,u)});function jb(l,u){if(l==null)return{};var p=Pt(Lf(l),function(_){return[_]});return u=Se(u),Nv(l,p,function(_,w){return u(_,w[0])})}function Xie(l,u,p){u=vr(u,l);var _=-1,w=u.length;for(w||(w=1,l=n);++_<w;){var D=l==null?n:l[cs(u[_])];D===n&&(_=w,D=p),l=Ls(D)?D.call(l):D}return l}function Jie(l,u,p){return l==null?l:xc(l,u,p)}function Qie(l,u,p,_){return _=typeof _=="function"?_:n,l==null?l:xc(l,u,p,_)}var Ub=sb(fn),qb=sb(Kn);function ese(l,u,p){var _=Ae(l),w=_||wr(l)||$o(l);if(u=Se(u,4),p==null){var D=l&&l.constructor;w?p=_?new D:[]:Rt(l)?p=Ls(D)?To(Ou(l)):{}:p={}}return(w?Si:os)(l,function(T,$,P){return u(p,T,$,P)}),p}function tse(l,u){return l==null?!0:Tf(l,u)}function nse(l,u,p){return l==null?l:Rv(l,u,Af(p))}function ise(l,u,p,_){return _=typeof _=="function"?_:n,l==null?l:Rv(l,u,Af(p),_)}function No(l){return l==null?[]:hf(l,fn(l))}function sse(l){return l==null?[]:hf(l,Kn(l))}function rse(l,u,p){return p===n&&(p=u,u=n),p!==n&&(p=Ti(p),p=p===p?p:0),u!==n&&(u=Ti(u),u=u===u?u:0),da(Ti(l),u,p)}function ase(l,u,p){return u=Fs(u),p===n?(p=u,u=0):p=Fs(p),l=Ti(l),hee(l,u,p)}function ose(l,u,p){if(p&&typeof p!="boolean"&&Nn(l,u,p)&&(u=p=n),p===n&&(typeof u=="boolean"?(p=u,u=n):typeof l=="boolean"&&(p=l,l=n)),l===n&&u===n?(l=0,u=1):(l=Fs(l),u===n?(u=l,l=0):u=Fs(u)),l>u){var _=l;l=u,u=_}if(p||l%1||u%1){var w=_v();return On(l+w*(u-l+Be("1e-"+((w+"").length-1))),u)}return Df(l,u)}var lse=Io(function(l,u,p){return u=u.toLowerCase(),l+(p?Gb(u):u)});function Gb(l){return tp(dt(l).toLowerCase())}function Kb(l){return l=dt(l),l&&l.replace(Sn,JJ).replace(hc,"")}function cse(l,u,p){l=dt(l),u=ri(u);var _=l.length;p=p===n?_:da(ze(p),0,_);var w=p;return p-=u.length,p>=0&&l.slice(p,w)==u}function dse(l){return l=dt(l),l&&xt.test(l)?l.replace(Ye,QJ):l}function use(l){return l=dt(l),l&&Hi.test(l)?l.replace(ni,"\\$&"):l}var hse=Io(function(l,u,p){return l+(p?"-":"")+u.toLowerCase()}),fse=Io(function(l,u,p){return l+(p?" ":"")+u.toLowerCase()}),pse=Jv("toLowerCase");function mse(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;if(!u||_>=u)return l;var w=(u-_)/2;return Yu(Tu(w),p)+l+Yu(Bu(w),p)}function gse(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;return u&&_<u?l+Yu(u-_,p):l}function _se(l,u,p){l=dt(l),u=ze(u);var _=u?Mo(l):0;return u&&_<u?Yu(u-_,p)+l:l}function yse(l,u,p){return p||u==null?u=0:u&&(u=+u),SQ(dt(l).replace(Ms,""),u||0)}function vse(l,u,p){return(p?Nn(l,u,p):u===n)?u=1:u=ze(u),Ef(dt(l),u)}function bse(){var l=arguments,u=dt(l[0]);return l.length<3?u:u.replace(l[1],l[2])}var wse=Io(function(l,u,p){return l+(p?"_":"")+u.toLowerCase()});function kse(l,u,p){return p&&typeof p!="number"&&Nn(l,u,p)&&(u=p=n),p=p===n?pe:p>>>0,p?(l=dt(l),l&&(typeof u=="string"||u!=null&&!Jf(u))&&(u=ri(u),!u&&So(l))?br(ji(l),0,p):l.split(u,p)):[]}var Cse=Io(function(l,u,p){return l+(p?" ":"")+tp(u)});function xse(l,u,p){return l=dt(l),p=p==null?0:da(ze(p),0,l.length),u=ri(u),l.slice(p,p+u.length)==u}function Sse(l,u,p){var _=M.templateSettings;p&&Nn(l,u,p)&&(u=n),l=dt(l),u=n1({},u,_,rb);var w=n1({},u.imports,_.imports,rb),D=fn(w),T=hf(w,D),$,P,Z=0,X=u.interpolate||or,Q="__p += '",de=pf((u.escape||or).source+"|"+X.source+"|"+(X===Un?Jl:or).source+"|"+(u.evaluate||or).source+"|$","g"),be="//# sourceURL="+(_t.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ra+"]")+`
53
53
  `;l.replace(de,function(De,je,Ke,oi,zn,li){return Ke||(Ke=oi),Q+=l.slice(Z,li).replace(sc,eQ),je&&($=!0,Q+=`' +
54
54
  __e(`+je+`) +
55
55
  '`),zn&&(P=!0,Q+=`';
@@ -66,11 +66,11 @@ __p += '`),Ke&&(Q+=`' +
66
66
  function print() { __p += __j.call(arguments, '') }
67
67
  `:`;
68
68
  `)+Q+`return __p
69
- }`;var Pe=Xb(function(){return ot(D,be+"return "+Q).apply(n,T)});if(Pe.source=Q,Xf(Pe))throw Pe;return Pe}function Mse(l){return dt(l).toLowerCase()}function Ose(l){return dt(l).toUpperCase()}function Dse(l,u,p){if(l=dt(l),l&&(p||u===n))return av(l);if(!l||!(u=ri(u)))return l;var _=ji(l),w=ji(u),D=ov(_,w),T=lv(_,w)+1;return br(_,D,T).join("")}function Ese(l,u,p){if(l=dt(l),l&&(p||u===n))return l.slice(0,dv(l)+1);if(!l||!(u=ri(u)))return l;var _=ji(l),w=lv(_,ji(u))+1;return br(_,0,w).join("")}function Bse(l,u,p){if(l=dt(l),l&&(p||u===n))return l.replace(Ms,"");if(!l||!(u=ri(u)))return l;var _=ji(l),w=ov(_,ji(u));return br(_,w).join("")}function Tse(l,u){var p=ee,_=ne;if(Rt(u)){var w="separator"in u?u.separator:w;p="length"in u?ze(u.length):p,_="omission"in u?ri(u.omission):_}l=dt(l);var D=l.length;if(So(l)){var T=ji(l);D=T.length}if(p>=D)return l;var $=p-Mo(_);if($<1)return _;var P=T?br(T,0,$).join(""):l.slice(0,$);if(w===n)return P+_;if(T&&($+=P.length-$),Jf(w)){if(l.slice($).search(w)){var Z,X=P;for(w.global||(w=pf(w.source,dt(an.exec(w))+"g")),w.lastIndex=0;Z=w.exec(X);)var Q=Z.index;P=P.slice(0,Q===n?$:Q)}}else if(l.indexOf(ri(w),$)!=$){var de=P.lastIndexOf(w);de>-1&&(P=P.slice(0,de))}return P+_}function Vse(l){return l=dt(l),l&&at.test(l)?l.replace(Ce,oQ):l}var Ise=Io(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),tp=Jv("toUpperCase");function Zb(l,u,p){return l=dt(l),u=p?n:u,u===n?nQ(l)?dQ(l):qJ(l):l.match(u)||[]}var Xb=Fe(function(l,u){try{return hn(l,n,u)}catch(p){return Xf(p)?p:new Ve(p)}}),Ase=zs(function(l,u){return xi(u,function(p){p=cs(p),$s(l,p,Kf(l[p],l))}),l});function $se(l){var u=l==null?0:l.length,p=Se();return l=u?Pt(l,function(_){if(typeof _[1]!="function")throw new Si(o);return[p(_[0]),_[1]]}):[],Fe(function(_){for(var w=-1;++w<u;){var D=l[w];if(hn(D[0],this,_))return hn(D[1],this,_)}})}function Nse(l){return oee(Oi(l,m))}function np(l){return function(){return l}}function zse(l,u){return l==null||l!==l?u:l}var Pse=eb(),Lse=eb(!0);function Zn(l){return l}function ip(l){return Bv(typeof l=="function"?l:Oi(l,m))}function Fse(l){return Vv(Oi(l,m))}function Rse(l,u){return Iv(l,Oi(u,m))}var Hse=Fe(function(l,u){return function(p){return kc(p,l,u)}}),Wse=Fe(function(l,u){return function(p){return kc(l,p,u)}});function sp(l,u,p){var _=fn(u),w=zu(u,_);p==null&&!(Rt(u)&&(w.length||!_.length))&&(p=u,u=l,l=this,w=zu(u,fn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,T=Ls(l);return xi(w,function($){var P=u[$];l[$]=P,T&&(l.prototype[$]=function(){var Z=this.__chain__;if(D||Z){var X=l(this.__wrapped__),Q=X.__actions__=qn(this.__actions__);return Q.push({func:P,args:arguments,thisArg:l}),X.__chain__=Z,X}return P.apply(l,pr([this.value()],arguments))})}),l}function Yse(){return He._===this&&(He._=gQ),this}function rp(){}function jse(l){return l=ze(l),Fe(function(u){return Av(u,l)})}var Use=Nf(Pt),qse=Nf(tv),Gse=Nf(of);function Jb(l){return Wf(l)?lf(cs(l)):xee(l)}function Kse(l){return function(u){return l==null?n:ua(l,u)}}var Zse=nb(),Xse=nb(!0);function ap(){return[]}function op(){return!1}function Jse(){return{}}function Qse(){return""}function ere(){return!0}function tre(l,u){if(l=ze(l),l<1||l>ye)return[];var p=pe,_=On(l,pe);u=Se(u),l-=pe;for(var w=uf(_,u);++p<l;)u(p);return w}function nre(l){return Ae(l)?Pt(l,cs):ai(l)?[l]:qn(yb(dt(l)))}function ire(l){var u=++pQ;return dt(l)+u}var sre=Wu(function(l,u){return l+u},0),rre=zf("ceil"),are=Wu(function(l,u){return l/u},1),ore=zf("floor");function lre(l){return l&&l.length?Nu(l,Zn,kf):n}function cre(l,u){return l&&l.length?Nu(l,Se(u,2),kf):n}function dre(l){return sv(l,Zn)}function ure(l,u){return sv(l,Se(u,2))}function hre(l){return l&&l.length?Nu(l,Zn,Mf):n}function fre(l,u){return l&&l.length?Nu(l,Se(u,2),Mf):n}var pre=Wu(function(l,u){return l*u},1),mre=zf("round"),gre=Wu(function(l,u){return l-u},0);function _re(l){return l&&l.length?df(l,Zn):0}function yre(l,u){return l&&l.length?df(l,Se(u,2)):0}return M.after=Fne,M.ary=Eb,M.assign=Oie,M.assignIn=Wb,M.assignInWith=n1,M.assignWith=Die,M.at=Eie,M.before=Bb,M.bind=Kf,M.bindAll=Ase,M.bindKey=Tb,M.castArray=Jne,M.chain=Mb,M.chunk=ote,M.compact=lte,M.concat=cte,M.cond=$se,M.conforms=Nse,M.constant=np,M.countBy=_ne,M.create=Bie,M.curry=Vb,M.curryRight=Ib,M.debounce=Ab,M.defaults=Tie,M.defaultsDeep=Vie,M.defer=Rne,M.delay=Hne,M.difference=dte,M.differenceBy=ute,M.differenceWith=hte,M.drop=fte,M.dropRight=pte,M.dropRightWhile=mte,M.dropWhile=gte,M.fill=_te,M.filter=vne,M.flatMap=kne,M.flatMapDeep=Cne,M.flatMapDepth=xne,M.flatten=kb,M.flattenDeep=yte,M.flattenDepth=vte,M.flip=Wne,M.flow=Pse,M.flowRight=Lse,M.fromPairs=bte,M.functions=Lie,M.functionsIn=Fie,M.groupBy=Sne,M.initial=kte,M.intersection=Cte,M.intersectionBy=xte,M.intersectionWith=Ste,M.invert=Hie,M.invertBy=Wie,M.invokeMap=One,M.iteratee=ip,M.keyBy=Dne,M.keys=fn,M.keysIn=Kn,M.map=Zu,M.mapKeys=jie,M.mapValues=Uie,M.matches=Fse,M.matchesProperty=Rse,M.memoize=Ju,M.merge=qie,M.mergeWith=Yb,M.method=Hse,M.methodOf=Wse,M.mixin=sp,M.negate=Qu,M.nthArg=jse,M.omit=Gie,M.omitBy=Kie,M.once=Yne,M.orderBy=Ene,M.over=Use,M.overArgs=jne,M.overEvery=qse,M.overSome=Gse,M.partial=Zf,M.partialRight=$b,M.partition=Bne,M.pick=Zie,M.pickBy=jb,M.property=Jb,M.propertyOf=Kse,M.pull=Ete,M.pullAll=xb,M.pullAllBy=Bte,M.pullAllWith=Tte,M.pullAt=Vte,M.range=Zse,M.rangeRight=Xse,M.rearg=Une,M.reject=Ine,M.remove=Ite,M.rest=qne,M.reverse=qf,M.sampleSize=$ne,M.set=Jie,M.setWith=Qie,M.shuffle=Nne,M.slice=Ate,M.sortBy=Lne,M.sortedUniq=Rte,M.sortedUniqBy=Hte,M.split=kse,M.spread=Gne,M.tail=Wte,M.take=Yte,M.takeRight=jte,M.takeRightWhile=Ute,M.takeWhile=qte,M.tap=lne,M.throttle=Kne,M.thru=Ku,M.toArray=Fb,M.toPairs=Ub,M.toPairsIn=qb,M.toPath=nre,M.toPlainObject=Hb,M.transform=ese,M.unary=Zne,M.union=Gte,M.unionBy=Kte,M.unionWith=Zte,M.uniq=Xte,M.uniqBy=Jte,M.uniqWith=Qte,M.unset=tse,M.unzip=Gf,M.unzipWith=Sb,M.update=nse,M.updateWith=ise,M.values=No,M.valuesIn=sse,M.without=ene,M.words=Zb,M.wrap=Xne,M.xor=tne,M.xorBy=nne,M.xorWith=ine,M.zip=sne,M.zipObject=rne,M.zipObjectDeep=ane,M.zipWith=one,M.entries=Ub,M.entriesIn=qb,M.extend=Wb,M.extendWith=n1,sp(M,M),M.add=sre,M.attempt=Xb,M.camelCase=lse,M.capitalize=Gb,M.ceil=rre,M.clamp=rse,M.clone=Qne,M.cloneDeep=tie,M.cloneDeepWith=nie,M.cloneWith=eie,M.conformsTo=iie,M.deburr=Kb,M.defaultTo=zse,M.divide=are,M.endsWith=cse,M.eq=qi,M.escape=dse,M.escapeRegExp=use,M.every=yne,M.find=bne,M.findIndex=bb,M.findKey=Iie,M.findLast=wne,M.findLastIndex=wb,M.findLastKey=Aie,M.floor=ore,M.forEach=Ob,M.forEachRight=Db,M.forIn=$ie,M.forInRight=Nie,M.forOwn=zie,M.forOwnRight=Pie,M.get=Qf,M.gt=sie,M.gte=rie,M.has=Rie,M.hasIn=ep,M.head=Cb,M.identity=Zn,M.includes=Mne,M.indexOf=wte,M.inRange=ase,M.invoke=Yie,M.isArguments=pa,M.isArray=Ae,M.isArrayBuffer=aie,M.isArrayLike=Gn,M.isArrayLikeObject=Kt,M.isBoolean=oie,M.isBuffer=wr,M.isDate=lie,M.isElement=cie,M.isEmpty=die,M.isEqual=uie,M.isEqualWith=hie,M.isError=Xf,M.isFinite=fie,M.isFunction=Ls,M.isInteger=Nb,M.isLength=e1,M.isMap=zb,M.isMatch=pie,M.isMatchWith=mie,M.isNaN=gie,M.isNative=_ie,M.isNil=vie,M.isNull=yie,M.isNumber=Pb,M.isObject=Rt,M.isObjectLike=jt,M.isPlainObject=Dc,M.isRegExp=Jf,M.isSafeInteger=bie,M.isSet=Lb,M.isString=t1,M.isSymbol=ai,M.isTypedArray=$o,M.isUndefined=wie,M.isWeakMap=kie,M.isWeakSet=Cie,M.join=Mte,M.kebabCase=hse,M.last=Ei,M.lastIndexOf=Ote,M.lowerCase=fse,M.lowerFirst=pse,M.lt=xie,M.lte=Sie,M.max=lre,M.maxBy=cre,M.mean=dre,M.meanBy=ure,M.min=hre,M.minBy=fre,M.stubArray=ap,M.stubFalse=op,M.stubObject=Jse,M.stubString=Qse,M.stubTrue=ere,M.multiply=pre,M.nth=Dte,M.noConflict=Yse,M.noop=rp,M.now=Xu,M.pad=mse,M.padEnd=gse,M.padStart=_se,M.parseInt=yse,M.random=ose,M.reduce=Tne,M.reduceRight=Vne,M.repeat=vse,M.replace=bse,M.result=Xie,M.round=mre,M.runInContext=z,M.sample=Ane,M.size=zne,M.snakeCase=wse,M.some=Pne,M.sortedIndex=$te,M.sortedIndexBy=Nte,M.sortedIndexOf=zte,M.sortedLastIndex=Pte,M.sortedLastIndexBy=Lte,M.sortedLastIndexOf=Fte,M.startCase=Cse,M.startsWith=xse,M.subtract=gre,M.sum=_re,M.sumBy=yre,M.template=Sse,M.times=tre,M.toFinite=Fs,M.toInteger=ze,M.toLength=Rb,M.toLower=Mse,M.toNumber=Bi,M.toSafeInteger=Mie,M.toString=dt,M.toUpper=Ose,M.trim=Dse,M.trimEnd=Ese,M.trimStart=Bse,M.truncate=Tse,M.unescape=Vse,M.uniqueId=ire,M.upperCase=Ise,M.upperFirst=tp,M.each=Ob,M.eachRight=Db,M.first=Cb,sp(M,function(){var l={};return os(M,function(u,p){_t.call(M.prototype,p)||(l[p]=u)}),l}(),{chain:!1}),M.VERSION=i,xi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){M[l].placeholder=M}),xi(["drop","take"],function(l,u){qe.prototype[l]=function(p){p=p===n?1:ln(ze(p),0);var _=this.__filtered__&&!u?new qe(this):this.clone();return _.__filtered__?_.__takeCount__=On(p,_.__takeCount__):_.__views__.push({size:On(p,pe),type:l+(_.__dir__<0?"Right":"")}),_},qe.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),xi(["filter","map","takeWhile"],function(l,u){var p=u+1,_=p==me||p==he;qe.prototype[l]=function(w){var D=this.clone();return D.__iteratees__.push({iteratee:Se(w,3),type:p}),D.__filtered__=D.__filtered__||_,D}}),xi(["head","last"],function(l,u){var p="take"+(u?"Right":"");qe.prototype[l]=function(){return this[p](1).value()[0]}}),xi(["initial","tail"],function(l,u){var p="drop"+(u?"":"Right");qe.prototype[l]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Zn)},qe.prototype.find=function(l){return this.filter(l).head()},qe.prototype.findLast=function(l){return this.reverse().find(l)},qe.prototype.invokeMap=Fe(function(l,u){return typeof l=="function"?new qe(this):this.map(function(p){return kc(p,l,u)})}),qe.prototype.reject=function(l){return this.filter(Qu(Se(l)))},qe.prototype.slice=function(l,u){l=ze(l);var p=this;return p.__filtered__&&(l>0||u<0)?new qe(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==n&&(u=ze(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},qe.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},qe.prototype.toArray=function(){return this.take(pe)},os(qe.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),w=M[_?"take"+(u=="last"?"Right":""):u],D=_||/^find/.test(u);!w||(M.prototype[u]=function(){var T=this.__wrapped__,$=_?[1]:arguments,P=T instanceof qe,Z=$[0],X=P||Ae(T),Q=function(je){var Ke=w.apply(M,pr([je],$));return _&&de?Ke[0]:Ke};X&&p&&typeof Z=="function"&&Z.length!=1&&(P=X=!1);var de=this.__chain__,be=!!this.__actions__.length,Oe=D&&!de,Pe=P&&!be;if(!D&&X){T=Pe?T:new qe(this);var De=l.apply(T,$);return De.__actions__.push({func:Ku,args:[Q],thisArg:n}),new Mi(De,de)}return Oe&&Pe?l.apply(this,$):(De=this.thru(Q),Oe?_?De.value()[0]:De.value():De)})}),xi(["pop","push","shift","sort","splice","unshift"],function(l){var u=wu[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var w=arguments;if(_&&!this.__chain__){var D=this.value();return u.apply(Ae(D)?D:[],w)}return this[p](function(T){return u.apply(Ae(T)?T:[],w)})}}),os(qe.prototype,function(l,u){var p=M[u];if(p){var _=p.name+"";_t.call(Bo,_)||(Bo[_]=[]),Bo[_].push({name:u,func:p})}}),Bo[Hu(n,S).name]=[{name:"wrapper",func:n}],qe.prototype.clone=VQ,qe.prototype.reverse=IQ,qe.prototype.value=AQ,M.prototype.at=cne,M.prototype.chain=dne,M.prototype.commit=une,M.prototype.next=hne,M.prototype.plant=pne,M.prototype.reverse=mne,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=gne,M.prototype.first=M.prototype.head,mc&&(M.prototype[mc]=fne),M},Oo=uQ();zt?((zt.exports=Oo)._=Oo,Xe._=Oo):He._=Oo}).call(cn)})(Ri,Ri.exports);const vue="",no=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),z0={components:{VDatePicker:Z5,CdsChevron:Ca,CdsIcon:Ze},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||no(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||no(t)},maxDate:{type:String,default:"",validator:t=>t===""||no(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Hn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},calendarDotColor(){return this.variantColorData.colorData[4].shade},calendarTextColor(){return this.variantColorData.colorData[7].shade},calendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:ts,updateColorData(){this.variantColorData=this.paleteBuilder(Hn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=no(this.modelValue.start)&&no(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=no(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Ri.exports.isEmpty(t)?null:`${t.start} a ${t.end}`}}},X5=()=>{a.useCssVars(t=>({"2f327d3b":t.calendarTrailColor,"63245b90":t.calendarTextColor,"24c77358":t.calendarDotColor}))},J5=z0.setup;z0.setup=J5?(t,e)=>(X5(),J5(t,e)):X5;const BY=z0,TY={class:"date-input__container"},VY={key:0},IY={key:1,class:"date-input__label"},AY={class:"label__content",for:"cds-text-input"},$Y={key:0,class:"label__required-indicator"},NY=["value","disabled","placeholder","onClick"],zY={class:"date-input__icon"},PY={key:0,class:"date-input__error-message"};function LY(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",TY,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",VY,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",IY,[a.createElementVNode("div",AY,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",$Y," * ")):a.createCommentVNode("",!0)])]))]),a.createVNode(d,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),r.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:"green","is-range":n.range},{"header-left-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[a.createElementVNode("div",{class:a.normalizeClass(r.inputClass)},[a.createElementVNode("input",a.mergeProps({value:r.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,NY),a.createElementVNode("div",zY,[a.createVNode(c,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","is-range","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",PY,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const FY=re(BY,[["render",LY],["__scopeId","data-v-c3eed25a"]]),bue="",RY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],HY=["warning","error","info"],WY={directives:{"on-click-outside":Mr.directive},components:{CdsIcon:Ze,CdsButton:Sr},props:{variant:{type:String,default:"warning",validator:t=>HY.includes(t)},description:{type:String,required:!0},modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,required:!0},okButtonText:{type:String,default:"Continuar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>RY.includes(t)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.innerValue=!this.innerValue,this.$emit("ok",!0),this.$emit("update:modelValue",!1)}}},YY={key:0,class:"cds-modal__backdrop"},jY={key:0,class:"cds-modal"},UY={class:"cds-modal__header-content"},qY={key:0,class:"cds-modal__header-title"},GY={key:1,class:"cds-modal__header-title"},KY={key:2,class:"cds-modal__header-title"},ZY={class:"cds-modal__body"},XY={class:"cds-modal__body-title"},JY={class:"cds-modal__body-description"},QY={class:"cds-modal__footer"};function ej(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-button");return s.innerValue?(a.openBlock(),a.createElementBlock("div",YY,[s.innerValue?(a.openBlock(),a.createElementBlock("div",jY,[a.createElementVNode("header",{class:a.normalizeClass(`cds-modal__header--${n.variant}`)},[a.createElementVNode("div",UY,[n.variant==="warning"?(a.openBlock(),a.createElementBlock("div",qY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),a.createTextVNode(" Aten\xE7\xE3o ")])):n.variant==="error"?(a.openBlock(),a.createElementBlock("div",GY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),a.createTextVNode(" Erro ")])):n.variant==="info"?(a.openBlock(),a.createElementBlock("div",KY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),a.createTextVNode(" Informativo ")])):a.createCommentVNode("",!0)]),n.variant==="warning"?(a.openBlock(),a.createBlock(o,{key:0,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(a.openBlock(),a.createBlock(o,{key:1,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(a.openBlock(),a.createBlock(o,{key:2,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",ZY,[a.createElementVNode("span",XY,a.toDisplayString(n.title),1),a.createElementVNode("span",JY,a.toDisplayString(n.description),1)]),a.createElementVNode("footer",QY,[n.variant==="warning"?(a.openBlock(),a.createBlock(c,{key:0,text:n.cancelButtonText,secondary:"",onClick:e[0]||(e[0]=d=>r.closeHandle())},null,8,["text"])):a.createCommentVNode("",!0),a.createVNode(c,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:e[1]||(e[1]=d=>r.okHandle())},null,8,["text","variant"])])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const tj=re(WY,[["render",ej],["__scopeId","data-v-cb60983c"]]),wue="",nj={components:{CdsChevron:Ca},directives:{"on-click-outside":Mr.directive},props:{content:{type:String,default:"Conte\xFAdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},ij=["id"],sj={class:"filter-pill__label"},rj={class:"filter-pill__content"};function aj(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",{id:s.id,class:a.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>r.activeSelection&&r.activeSelection(...d))},[a.createElementVNode("span",sj,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",rj,a.toDisplayString(n.content),1),(a.openBlock(),a.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,ij),s.isActive?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(r.dynamicStyle),class:"filter-pill__dropdown"},[a.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[c,r.hide]]):a.createCommentVNode("",!0)])}const oj=re(nj,[["render",aj],["__scopeId","data-v-f6d65f66"]]),kue="",lj={components:{Doughnut:T2},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)},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:()=>[]},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:Hn,localChartData:{},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{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}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:ts,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},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))}},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};if(t.forEach(n=>{n.datasets.forEach(i=>{const s={label:i.label,data:i.data,name:i.name,borderRadius:5};e.datasets.push(s)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(e.datasets,n)}else{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:[]},generateBackgroundColorWithTheme(){const t=this.theme.toLowerCase(),e=this.themeColors.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=5})},clickHandler(t){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i={index:n[0].index,data:n[0].element.$context.raw,x:n[0].element.x,y:n[0].element.y,backgroundColor:n[0].element.$context.element.options.backgroundColor.trim()};this.$emit("chart-click",i)}}},cj={class:"responsive-container"};function dj(t,e,n,i,s,r){const o=a.resolveComponent("Doughnut");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",cj,[a.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:r.clickHandler},null,8,["data","options","onClick"])])])}const uj=re(lj,[["render",dj],["__scopeId","data-v-d71f8f8f"]]),Cue="",hj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],fj={components:{CdsButton:Sr},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"T\xEDtulo do empty state",required:!0},text:{type:String,default:"Para sair dessa situa\xE7\xE3o de empty state, realize a a\xE7\xE3o abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>hj.includes(t)}}},pj={class:"empty-state"},mj=["src","alt"],gj={class:"empty-state__title"},_j={class:"empty-state__text"};function yj(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",pj,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,mj)],!0),a.createElementVNode("div",gj,a.toDisplayString(n.title),1),a.createElementVNode("div",_j,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)]),n.hideActionButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const vj=re(fj,[["render",yj],["__scopeId","data-v-2b71d10e"]]),xue="",P0={components:{CdsIcon:Ze},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},disabled:{type:Boolean,default:!1}},data(){return{file:!!this.modelValue&&!Jt(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`S\xE3o aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="invalid":this.internalState="valid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");return n=n[n.length-1].trim(),e.filter(i=>i===n).length>0},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},Q5=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},ey=P0.setup;P0.setup=ey?(t,e)=>(Q5(),ey(t,e)):Q5;const bj=P0,wj=["accept"],kj={key:0,class:"file-input__container"},Cj={key:0},xj={key:1},Sj={key:1,class:"file-input__container"},Mj={key:1},Oj={key:0,class:"file-input__alert-container"};function Dj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...c)=>r.dropHandler&&r.dropHandler(...c)),onClick:e[7]||(e[7]=(...c)=>r.linkClick&&r.linkClick(...c))},[a.withDirectives(a.createElementVNode("input",{ref:"fileInput",type:"file",accept:r.acceptString,onChange:e[0]||(e[0]=(...c)=>r.handleFormFileChange&&r.handleFormFileChange(...c))},null,40,wj),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",Sj,[a.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:a.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",Mj," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[a.createElementVNode("div",null,a.toDisplayString(s.file.name),1),a.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=a.withModifiers((...c)=>r.handleRemove&&r.handleRemove(...c),["stop"]))},[a.createVNode(o,{height:"18",width:"18",name:"x-outline",class:a.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(a.openBlock(),a.createElementBlock("div",kj,[a.createVNode(o,{name:"upload-cloud-outline",class:a.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",xj," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",Cj,[a.createTextVNode(" Arraste o arquivo aqui ou "),a.createElementVNode("a",{href:"javascript:void(0)",class:a.normalizeClass(["file-input__search-link",{"file-input__search-link--disabled":n.disabled===!0}])}," pesquise no seu dispositivo ",2)]))],2)]))],34)]),s.internalState==="invalid"?(a.openBlock(),a.createElementBlock("div",Oj,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const Ej=re(bj,[["render",Dj],["__scopeId","data-v-dee88fdd"]]);function du(t=""){const e="\xC0\xC1\xC2\xC3\xC4\xC5\xE0\xE1\xE2\xE3\xE4\xE5\xD2\xD3\xD4\xD5\xD5\xD6\xD8\xF2\xF3\xF4\xF5\xF6\xF8\xC8\xC9\xCA\xCB\xE8\xE9\xEA\xEB\xF0\xC7\xE7\xD0\xCC\xCD\xCE\xCF\xEC\xED\xEE\xEF\xD9\xDA\xDB\xDC\xF9\xFA\xFB\xFC\xD1\xF1\u0160\u0161\u0178\xFF\xFD\u017D\u017E",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),r;for(let o=0;o<i;o+=1)r=e.indexOf(t[o]),r!==-1&&(s[o]=n[r]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const Sue="",Bj={directives:{"on-click-outside":Mr.directive},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:zc()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${Qp.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"]},methods:{filterOptions(){const t=du(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>du(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=Ko(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=Ko(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["filter-select-options"],r=s.getBoundingClientRect();n==="up"&&i.top<=r.top&&(s.scrollTop+=e),n==="down"&&i.top>=r.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},Tj=t=>(a.pushScopeId("data-v-5004e30a"),t=t(),a.popScopeId(),t),Vj={ref:"cds-filter-select",class:"filter-select"},Ij={class:"filter-select__label"},Aj={for:"cds-filter-select"},$j=["id","onkeypress","placeholder","disabled","readonly"],Nj={key:0,class:"option__container"},zj=["onMouseover"],Pj={key:1,class:"option__container"},Lj=[Tj(()=>a.createElementVNode("li",{class:"option__text--muted"}," Nenhuma op\xE7\xE3o encontrada ",-1))];function Fj(t,e,n,i,s,r){const o=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",Vj,[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["filter-select__container",r.inputClass]),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers((...c)=>r.activateSelectionOnEnter&&r.activateSelectionOnEnter(...c),["prevent"]),["enter"])),e[7]||(e[7]=a.withKeys(a.withModifiers((...c)=>r.highlightOnArrowDown&&r.highlightOnArrowDown(...c),["prevent"]),["arrow-down"])),e[8]||(e[8]=a.withKeys(a.withModifiers((...c)=>r.highlightOnArrowUp&&r.highlightOnArrowUp(...c),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...c)=>r.activateSelectionOnClick&&r.activateSelectionOnClick(...c))},[a.createElementVNode("label",Ij,[a.createElementVNode("div",Aj,[a.createElementVNode("span",null,a.toDisplayString(r.capitalizedLabel),1)])]),a.withDirectives(a.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=c=>s.localValue[n.optionsField]=c),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...c)=>r.filterOptions&&r.filterOptions(...c)),onFocus:e[2]||(e[2]=(...c)=>r.activeSelection&&r.activeSelection(...c)),onBlur:e[3]||(e[3]=(...c)=>r.hide&&r.hide(...c))},null,42,$j),[[a.vModelText,s.localValue[n.optionsField]]]),a.withDirectives(a.createElementVNode("div",{ref:"filter-select-options",class:a.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":s.direction==="down","filter-select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(a.openBlock(),a.createElementBlock("ul",Nj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localOptions,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,ref_for:!0,ref:`${c[n.optionsField]}-${d}`,class:"option__text",onMousedown:e[4]||(e[4]=(...h)=>r.selectItem&&r.selectItem(...h)),onMouseover:h=>r.highlightOnMouseOver(d),onMouseout:e[5]||(e[5]=h=>r.unhighlightOnMouseOut())},a.toDisplayString(c[n.optionsField]),41,zj))),128))])):(a.openBlock(),a.createElementBlock("ul",Pj,Lj))],2),[[a.vShow,s.active]]),a.createElementVNode("span",{class:a.normalizeClass(s.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)),[[o,r.hide]])],512)}const Rj=re(Bj,[["render",Fj],["__scopeId","data-v-5004e30a"]]),Oue="",Hj={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},Wj={id:"cds-link-button"};function Yj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Wj,[a.createElementVNode("button",{class:a.normalizeClass(["link-button__container",r.computedStyle]),onClick:e[0]||(e[0]=o=>r.clickHandler())},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)])}const ty=re(Hj,[["render",Yj],["__scopeId","data-v-17beab84"]]),Due="",jj={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},Uj={id:"cds-pulsar"};function qj(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",Uj,[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const ny=re(jj,[["render",qj],["__scopeId","data-v-6f878a26"]]),Eue="",Gj={components:{CdsPulsar:ny,CdsIcon:Ze},directives:{"on-click-outside":Mr.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},url:{type:String,default:"",required:!0},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t}},mounted(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,window.addEventListener("scroll",this.startAnimation,!1)},methods:{startAnimation(){this.isScrolledIntoView()&&(document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation))},isScrolledIntoView(){const t=window.scrollY,e=t+window.innerHeight,n=document.getElementById(this.id).getBoundingClientRect();this.boxTop||(this.boxTop=n.top);const i=this.boxTop;return i+18<=e&&i>=t},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},Kj=["id"],Zj=["id"],Xj={key:0},Jj={key:1},Qj={key:0,class:"floating-assistant__content"},eU={class:"floating-assistant__footer"},tU=["href"],nU={key:1,class:"floating-assistant__subtitle"},iU={key:2};function sU(t,e,n,i,s,r){const o=a.resolveComponent("cds-pulsar"),c=a.resolveComponent("cds-icon"),d=a.resolveDirective("on-click-outside"),h=a.resolveDirective("cds-floatify");return a.openBlock(),a.createElementBlock("div",{id:s.id,class:a.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[a.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>r.expand&&r.expand(...f))},[s.waitingConfirmation?(a.openBlock(),a.createElementBlock("div",Xj,[a.createTextVNode(" Ocultar dica para sempre? "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>r.confirmationHandle(!0))}," Sim ",2),a.createTextVNode(" / "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>r.confirmationHandle(!1))}," N\xE3o ",2)])):(a.openBlock(),a.createElementBlock("div",Jj,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",Qj,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",eU,[a.createTextVNode(" Voc\xEA pode saber mais "),a.createElementVNode("a",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,tU),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",nU," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",iU,[a.createElementVNode("div",{onClick:e[2]||(e[2]=a.withModifiers((...f)=>r.close&&r.close(...f),["stop"]))},[a.createVNode(c,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):a.createCommentVNode("",!0)],2)),[[d,r.collapse]])],8,Zj)),[[h,s.pulsarId,s.position]])],10,Kj)}const rU=re(Gj,[["render",sU],["__scopeId","data-v-544de446"]]),Bue="",L0={props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}}},iy=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},sy=L0.setup;L0.setup=sy?(t,e)=>(iy(),sy(t,e)):iy;const aU=L0,oU={class:"responsive-container"},lU=a.createStaticVNode('<linearGradient id="gradient" x1="0" y1="0" x2="0" y2="100%" gradientTransform="rotate(-340)" data-v-f4b6afdc><stop class="stop" offset="1%" data-v-f4b6afdc></stop><stop class="stop-2" offset="99%" data-v-f4b6afdc></stop></linearGradient><g transform="scale(1.20) translate(-9.5 -12)" data-v-f4b6afdc><path class="indicator-bar" d="M30,90 A40,40 0 1,1 80,90" fill="none" data-v-f4b6afdc></path><path fill="none" class="indicator-progress" d="M30,90 A40,40 0 1,1 80,90" data-v-f4b6afdc></path></g>',2),cU={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},dU={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function uU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",oU,[a.createElementVNode("div",{class:"gauge-chart",style:a.normalizeStyle(r.progressStyle)},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100"},[lU,a.createElementVNode("text",cU,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",dU,a.toDisplayString(n.subtitle),1)],2))],4)])])}const hU=re(aU,[["render",uU],["__scopeId","data-v-f4b6afdc"]]),Tue="",fU={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0}},computed:{dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}}};function pU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["highlight__container",r.dynamicHighlightClass]),style:a.normalizeStyle(r.dynamicStyle)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)}const mU=re(fU,[["render",pU],["__scopeId","data-v-91b540f7"]]),Vue="",ry=["sm","md","lg"],gU={components:{CdsIcon:Ze,CdsTooltip:Lc},props:{size:{type:String,default:"md",validator:t=>ry.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:ry,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},watch:{disabled:{handler(t,e){t!==e&&(t===!0?this.innerTooltipText=null:this.innerTooltipText=this.tooltipText)},immediate:!0}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},_U={id:"cds-icon-button"};function yU(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",_U,[a.createVNode(c,{text:s.innerTooltipText},{default:a.withCtx(()=>[a.createElementVNode("button",{class:a.normalizeClass(["cds-icon-button__container",r.computedModifiers]),onClick:e[0]||(e[0]=(...d)=>r.clickHandler&&r.clickHandler(...d))},[(a.openBlock(),a.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"])])}const vU=re(gU,[["render",yU],["__scopeId","data-v-1e718423"]]);var F0={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,r=2,o=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",b="[object GeneratorFunction]",k="[object Map]",C="[object Number]",S="[object Null]",E="[object Object]",A="[object Promise]",x="[object Proxy]",V="[object RegExp]",N="[object Set]",L="[object String]",F="[object Symbol]",q="[object Undefined]",ee="[object WeakMap]",ne="[object ArrayBuffer]",K="[object DataView]",ie="[object Float32Array]",me="[object Float64Array]",J="[object Int8Array]",he="[object Int16Array]",fe="[object Int32Array]",ye="[object Uint8Array]",we="[object Uint8ClampedArray]",R="[object Uint16Array]",pe="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,ge={};ge[ie]=ge[me]=ge[J]=ge[he]=ge[fe]=ge[ye]=ge[we]=ge[R]=ge[pe]=!0,ge[c]=ge[d]=ge[ne]=ge[f]=ge[K]=ge[m]=ge[g]=ge[y]=ge[k]=ge[C]=ge[E]=ge[V]=ge[N]=ge[L]=ge[ee]=!1;var Ne=typeof cn=="object"&&cn&&cn.Object===Object&&cn,lt=typeof self=="object"&&self&&self.Object===Object&&self,Le=Ne||lt||Function("return this")(),ht=e&&!e.nodeType&&e,It=ht&&!0&&t&&!t.nodeType&&t,kt=It&&It.exports===ht,tt=kt&&Ne.process,st=function(){try{return tt&&tt.binding&&tt.binding("util")}catch{}}(),rt=st&&st.isTypedArray;function Yt(v,O){for(var I=-1,U=v==null?0:v.length,Be=0,ke=[];++I<U;){var Re=v[I];O(Re,I,v)&&(ke[Be++]=Re)}return ke}function ft(v,O){for(var I=-1,U=O.length,Be=v.length;++I<U;)v[Be+I]=O[I];return v}function Ct(v,O){for(var I=-1,U=v==null?0:v.length;++I<U;)if(O(v[I],I,v))return!0;return!1}function tn(v,O){for(var I=-1,U=Array(v);++I<v;)U[I]=O(I);return U}function nn(v){return function(O){return v(O)}}function bt(v,O){return v.has(O)}function nt(v,O){return v==null?void 0:v[O]}function Nt(v){var O=-1,I=Array(v.size);return v.forEach(function(U,Be){I[++O]=[Be,U]}),I}function Ot(v,O){return function(I){return v(O(I))}}function At(v){var O=-1,I=Array(v.size);return v.forEach(function(U){I[++O]=U}),I}var Dt=Array.prototype,un=Function.prototype,$t=Object.prototype,te=Le["__core-js_shared__"],Ie=un.toString,We=$t.hasOwnProperty,pn=function(){var v=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Vn=$t.toString,jn=RegExp("^"+Ie.call(We).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=kt?Le.Buffer:void 0,le=Le.Symbol,ve=Le.Uint8Array,W=$t.propertyIsEnumerable,B=Dt.splice,Y=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,Ce=j?j.isBuffer:void 0,Ye=Ot(Object.keys,Object),at=Mn(Le,"DataView"),xt=Mn(Le,"Map"),sn=Mn(Le,"Promise"),Gt=Mn(Le,"Set"),Un=Mn(Le,"WeakMap"),pt=Mn(Object,"create"),In=mn(at),xn=mn(xt),ni=mn(sn),Hi=mn(Gt),Ms=mn(Un),oo=le?le.prototype:void 0,Jr=oo?oo.valueOf:void 0;function rn(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Gl(){this.__data__=pt?pt(null):{},this.size=0}function Kl(v){var O=this.has(v)&&delete this.__data__[v];return this.size-=O?1:0,O}function Zl(v){var O=this.__data__;if(pt){var I=O[v];return I===i?void 0:I}return We.call(O,v)?O[v]:void 0}function Xl(v){var O=this.__data__;return pt?O[v]!==void 0:We.call(O,v)}function Jl(v,O){var I=this.__data__;return this.size+=this.has(v)?0:1,I[v]=pt&&O===void 0?i:O,this}rn.prototype.clear=Gl,rn.prototype.delete=Kl,rn.prototype.get=Zl,rn.prototype.has=Xl,rn.prototype.set=Jl;function an(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Ql(){this.__data__=[],this.size=0}function ec(v){var O=this.__data__,I=Ds(O,v);if(I<0)return!1;var U=O.length-1;return I==U?O.pop():B.call(O,I,1),--this.size,!0}function tc(v){var O=this.__data__,I=Ds(O,v);return I<0?void 0:O[I][1]}function nc(v){return Ds(this.__data__,v)>-1}function ic(v,O){var I=this.__data__,U=Ds(I,v);return U<0?(++this.size,I.push([v,O])):I[U][1]=O,this}an.prototype.clear=Ql,an.prototype.delete=ec,an.prototype.get=tc,an.prototype.has=nc,an.prototype.set=ic;function Sn(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function or(){this.size=0,this.__data__={hash:new rn,map:new(xt||an),string:new rn}}function sc(v){var O=An(this,v).delete(v);return this.size-=O?1:0,O}function lr(v){return An(this,v).get(v)}function rc(v){return An(this,v).has(v)}function ac(v,O){var I=An(this,v),U=I.size;return I.set(v,O),this.size+=I.size==U?0:1,this}Sn.prototype.clear=or,Sn.prototype.delete=sc,Sn.prototype.get=lr,Sn.prototype.has=rc,Sn.prototype.set=ac;function cr(v){var O=-1,I=v==null?0:v.length;for(this.__data__=new Sn;++O<I;)this.add(v[O])}function Qr(v){return this.__data__.set(v,i),this}function Os(v){return this.__data__.has(v)}cr.prototype.add=cr.prototype.push=Qr,cr.prototype.has=Os;function ii(v){var O=this.__data__=new an(v);this.size=O.size}function ea(){this.__data__=new an,this.size=0}function oc(v){var O=this.__data__,I=O.delete(v);return this.size=O.size,I}function lc(v){return this.__data__.get(v)}function cc(v){return this.__data__.has(v)}function lo(v,O){var I=this.__data__;if(I instanceof an){var U=I.__data__;if(!xt||U.length<n-1)return U.push([v,O]),this.size=++I.size,this;I=this.__data__=new Sn(U)}return I.set(v,O),this.size=I.size,this}ii.prototype.clear=ea,ii.prototype.delete=oc,ii.prototype.get=lc,ii.prototype.has=cc,ii.prototype.set=lo;function co(v,O){var I=dr(v),U=!I&&na(v),Be=!I&&!U&&ur(v),ke=!I&&!U&&!Be&&Co(v),Re=I||U||Be||ke,Ge=Re?tn(v.length,String):[],He=Ge.length;for(var Xe in v)(O||We.call(v,Xe))&&!(Re&&(Xe=="length"||Be&&(Xe=="offset"||Xe=="parent")||ke&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||go(Xe,He)))&&Ge.push(Xe);return Ge}function Ds(v,O){for(var I=v.length;I--;)if(wo(v[I][0],O))return I;return-1}function Es(v,O,I){var U=O(v);return dr(v)?U:ft(U,I(v))}function Bs(v){return v==null?v===void 0?q:S:Y&&Y in Object(v)?bi(v):bo(v)}function ta(v){return ki(v)&&Bs(v)==c}function Ts(v,O,I,U,Be){return v===O?!0:v==null||O==null||!ki(v)&&!ki(O)?v!==v&&O!==O:uo(v,O,I,U,Ts,Be)}function uo(v,O,I,U,Be,ke){var Re=dr(v),Ge=dr(O),He=Re?d:wi(v),Xe=Ge?d:wi(O);He=He==c?E:He,Xe=Xe==c?E:Xe;var zt=He==E,gn=Xe==E,Ft=He==Xe;if(Ft&&ur(v)){if(!ur(O))return!1;Re=!0,zt=!1}if(Ft&&!zt)return ke||(ke=new ii),Re||Co(v)?Vs(v,O,I,U,Be,ke):uc(v,O,He,I,U,Be,ke);if(!(I&s)){var gt=zt&&We.call(v,"__wrapped__"),Qt=gn&&We.call(O,"__wrapped__");if(gt||Qt){var Yi=gt?v.value():v,Ci=Qt?O.value():O;return ke||(ke=new ii),Be(Yi,Ci,I,U,ke)}}return Ft?(ke||(ke=new ii),po(v,O,I,U,Be,ke)):!1}function dc(v){if(!ko(v)||yo(v))return!1;var O=hr(v)?jn:Ee;return O.test(mn(v))}function ho(v){return ki(v)&&sa(v.length)&&!!ge[Bs(v)]}function fo(v){if(!vo(v))return Ye(v);var O=[];for(var I in Object(v))We.call(v,I)&&I!="constructor"&&O.push(I);return O}function Vs(v,O,I,U,Be,ke){var Re=I&s,Ge=v.length,He=O.length;if(Ge!=He&&!(Re&&He>Ge))return!1;var Xe=ke.get(v);if(Xe&&ke.get(O))return Xe==O;var zt=-1,gn=!0,Ft=I&r?new cr:void 0;for(ke.set(v,O),ke.set(O,v);++zt<Ge;){var gt=v[zt],Qt=O[zt];if(U)var Yi=Re?U(Qt,gt,zt,O,v,ke):U(gt,Qt,zt,v,O,ke);if(Yi!==void 0){if(Yi)continue;gn=!1;break}if(Ft){if(!Ct(O,function(Ci,as){if(!bt(Ft,as)&&(gt===Ci||Be(gt,Ci,I,U,ke)))return Ft.push(as)})){gn=!1;break}}else if(!(gt===Qt||Be(gt,Qt,I,U,ke))){gn=!1;break}}return ke.delete(v),ke.delete(O),gn}function uc(v,O,I,U,Be,ke,Re){switch(I){case K:if(v.byteLength!=O.byteLength||v.byteOffset!=O.byteOffset)return!1;v=v.buffer,O=O.buffer;case ne:return!(v.byteLength!=O.byteLength||!ke(new ve(v),new ve(O)));case f:case m:case C:return wo(+v,+O);case g:return v.name==O.name&&v.message==O.message;case V:case L:return v==O+"";case k:var Ge=Nt;case N:var He=U&s;if(Ge||(Ge=At),v.size!=O.size&&!He)return!1;var Xe=Re.get(v);if(Xe)return Xe==O;U|=r,Re.set(v,O);var zt=Vs(Ge(v),Ge(O),U,Be,ke,Re);return Re.delete(v),zt;case F:if(Jr)return Jr.call(v)==Jr.call(O)}return!1}function po(v,O,I,U,Be,ke){var Re=I&s,Ge=Wi(v),He=Ge.length,Xe=Wi(O),zt=Xe.length;if(He!=zt&&!Re)return!1;for(var gn=He;gn--;){var Ft=Ge[gn];if(!(Re?Ft in O:We.call(O,Ft)))return!1}var gt=ke.get(v);if(gt&&ke.get(O))return gt==O;var Qt=!0;ke.set(v,O),ke.set(O,v);for(var Yi=Re;++gn<He;){Ft=Ge[gn];var Ci=v[Ft],as=O[Ft];if(U)var fc=Re?U(as,Ci,Ft,O,v,ke):U(Ci,as,Ft,v,O,ke);if(!(fc===void 0?Ci===as||Be(Ci,as,I,U,ke):fc)){Qt=!1;break}Yi||(Yi=Ft=="constructor")}if(Qt&&!Yi){var aa=v.constructor,hn=O.constructor;aa!=hn&&"constructor"in v&&"constructor"in O&&!(typeof aa=="function"&&aa instanceof aa&&typeof hn=="function"&&hn instanceof hn)&&(Qt=!1)}return ke.delete(v),ke.delete(O),Qt}function Wi(v){return Es(v,ra,mo)}function An(v,O){var I=v.__data__;return _o(O)?I[typeof O=="string"?"string":"hash"]:I.map}function Mn(v,O){var I=nt(v,O);return dc(I)?I:void 0}function bi(v){var O=We.call(v,Y),I=v[Y];try{v[Y]=void 0;var U=!0}catch{}var Be=Vn.call(v);return U&&(O?v[Y]=I:delete v[Y]),Be}var mo=se?function(v){return v==null?[]:(v=Object(v),Yt(se(v),function(O){return W.call(v,O)}))}:mt,wi=Bs;(at&&wi(new at(new ArrayBuffer(1)))!=K||xt&&wi(new xt)!=k||sn&&wi(sn.resolve())!=A||Gt&&wi(new Gt)!=N||Un&&wi(new Un)!=ee)&&(wi=function(v){var O=Bs(v),I=O==E?v.constructor:void 0,U=I?mn(I):"";if(U)switch(U){case In:return K;case xn:return k;case ni:return A;case Hi:return N;case Ms:return ee}return O});function go(v,O){return O=O??o,!!O&&(typeof v=="number"||Me.test(v))&&v>-1&&v%1==0&&v<O}function _o(v){var O=typeof v;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?v!=="__proto__":v===null}function yo(v){return!!pn&&pn in v}function vo(v){var O=v&&v.constructor,I=typeof O=="function"&&O.prototype||$t;return v===I}function bo(v){return Vn.call(v)}function mn(v){if(v!=null){try{return Ie.call(v)}catch{}try{return v+""}catch{}}return""}function wo(v,O){return v===O||v!==v&&O!==O}var na=ta(function(){return arguments}())?ta:function(v){return ki(v)&&We.call(v,"callee")&&!W.call(v,"callee")},dr=Array.isArray;function ia(v){return v!=null&&sa(v.length)&&!hr(v)}var ur=Ce||ct;function hc(v,O){return Ts(v,O)}function hr(v){if(!ko(v))return!1;var O=Bs(v);return O==y||O==b||O==h||O==x}function sa(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function ko(v){var O=typeof v;return v!=null&&(O=="object"||O=="function")}function ki(v){return v!=null&&typeof v=="object"}var Co=rt?nn(rt):ho;function ra(v){return ia(v)?co(v):fo(v)}function mt(){return[]}function ct(){return!1}t.exports=hc})(F0,F0.exports);const jl=F0.exports,ay=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4"}],Kr=ay.map(t=>t.name),Ul=t=>{const e=ay.filter(n=>n.name===t)[0];return e?e.hex:""},Iue="",bU={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Jt(n.title)||Jt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,getSlotName(t){return t.name},handleClick(t,e){this.$emit("change",{event:t,item:e}),this.internalActiveTab=e},isActive(t){return jl(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},wU={id:"inner-tabs"},kU={class:"inner-tabs__header-container"},CU={class:"inner-tabs__header"},xU=["onClick"],SU={class:"inner-tabs__content"};function MU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",wU,[a.createElementVNode("div",kU,[a.createElementVNode("ul",CU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("li",{key:`${c}-${o.name}-tab`,role:"presentation"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>r.handleClick(d,o)},a.toDisplayString(o.title),11,xU),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",SU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:`${c}-${o.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(o)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(o))],2))),128))])])}const OU=re(bU,[["render",MU]]),Aue="",io=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),R0={components:{VDatePicker:Z5,CdsChevron:Ca,CdsIcon:Ze},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||io(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||io(t)},maxDate:{type:String,default:"",validator:t=>t===""||io(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Hn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:ts,updateColorData(){this.variantColorData=this.paleteBuilder(Hn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=io(this.modelValue.start)&&io(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=io(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Ri.exports.isEmpty(t)?null:`${t.start} a ${t.end}`}}},oy=()=>{a.useCssVars(t=>({"095920b7":t.inlineCalendarTrailColor,d9326188:t.inlineCalendarTextColor,f40e7458:t.inlineCalendarDotColor}))},ly=R0.setup;R0.setup=ly?(t,e)=>(oy(),ly(t,e)):oy;const DU=R0,EU={key:0},BU={key:1,class:"inline-date-input__label"},TU={class:"label__content",for:"cds-text-input"},VU=["value","disabled","placeholder","onClick"],IU={class:"inline-date-input__icon"};function AU(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["inline-date-input__container",r.dateInputClassContainer])},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",EU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",BU,[a.createElementVNode("div",TU,[a.createElementVNode("span",null,a.toDisplayString(r.capitalizedLabel)+": ",1)])]))]),a.createVNode(d,{id:"cds--inline-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),r.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[a.createElementVNode("div",{class:a.normalizeClass(r.inputClass)},[a.createElementVNode("input",a.mergeProps({value:r.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,VU),a.createElementVNode("div",IU,[a.createVNode(c,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const $U=re(DU,[["render",AU],["__scopeId","data-v-87626b06"]]),$ue="",NU={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},zU=["href","target"];function PU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[a.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[a.renderSlot(t.$slots,"default",{class:"link__text"},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])],8,zU)],2)}const uu=re(NU,[["render",PU]]),Nue="",LU={},FU=[(t=>(a.pushScopeId("data-v-59f3ef96"),t=t(),a.popScopeId(),t))(()=>a.createElementVNode("div",{class:"loading-bar__container"},[a.createElementVNode("div",{class:"loading-bar"})],-1))];function RU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,FU)}const HU=re(LU,[["render",RU],["__scopeId","data-v-59f3ef96"]]),Lue="",WU={class:"mobile-navigation__header"},YU={class:"mobile-navigation__title"},jU={class:"mobile-navigation__sidebar-header"},UU={class:"mobile-navigation__sidebar-logo"},qU=["src"],GU={class:"mobile-navigation__sidebar-content"},KU={class:"mobile-navigation__sidebar-items"},ZU={class:"mobile-navigation__sidebar-footer"},XU={class:"mobile-navigation__sidebar-user-text"},JU=re({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,i=e,s=a.ref(n.activeItem),r=a.ref(!1),o=a.computed(()=>n.light?"light":"dark"),c=a.computed(()=>{let k=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(k+=" mobile-navigation--sticky"),k});a.watch(r,async(k,C)=>{k!==C&&b(k)}),a.watch(()=>n.activeItem,k=>{s.value=k});const d=()=>{r.value=!0},h=()=>{r.value=!1},f=k=>Ri.exports.isEqual(k,s.value),m=k=>{s.value=k,r.value=!1,i("item-click",k)},g=({route:k,path:C})=>{const S=Ri.exports.isEmpty(k)?C:k;return S instanceof String?{path:S}:S},y=k=>g(k)?g(k).path:null,b=k=>{document.body.style.overflow=k?"hidden":"auto"};return(k,C)=>{const S=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(c.value)},[a.createElementVNode("div",{class:a.normalizeClass(`variant-resolver--${t.variant}`)},[a.createElementVNode("div",WU,[a.createElementVNode("div",YU,a.toDisplayString(s.value.label??""),1),a.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[a.createVNode(Ze,{name:"menu-outline"})])]),a.createElementVNode("div",{class:a.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":r.value}])},[a.createElementVNode("div",jU,[a.createElementVNode("div",UU,[a.renderSlot(k.$slots,"sidebar-logo",{},()=>[a.createElementVNode("img",{src:t.sidebarLogo},null,8,qU)],!0)]),a.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[a.createVNode(Ze,{name:"x-outline"})])]),a.createElementVNode("div",GU,[a.createElementVNode("div",KU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,E=>(a.openBlock(),a.createBlock(S,{key:E.label,to:y(E),class:a.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(E)}]),onClick:A=>m(E)},{default:a.withCtx(()=>[a.createVNode(Ze,{name:E.icon,width:"24",height:"24"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),a.createElementVNode("div",ZU,[a.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:C[0]||(C[0]=E=>i("profile-click"))},[a.createVNode(Zo,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),a.createElementVNode("div",XU,[a.createElementVNode("p",null,a.toDisplayString(t.user.name??""),1),a.createElementVNode("p",null,a.toDisplayString(t.user.role??""),1)])]),a.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:C[1]||(C[1]=E=>i("logout"))},[a.createVNode(Ze,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-6ad58815"]]),Rue="",QU=["teal","green","blue","indigo","violet","pink","red","orange","amber"],eq={directives:{"on-click-outside":Mr.directive},components:{CdsIcon:Ze,CdsButton:Sr,CdsScrollable:C1},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"T\xEDtulo"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>QU.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)}}},tq={key:0,class:"cds-modal__backdrop"},nq={key:0},iq={class:"cds-modal__header"},sq={key:1,class:"cds-modal__body"},rq={key:1,class:"cds-modal__footer"};function aq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-scrollable"),d=a.resolveComponent("cds-button"),h=a.resolveDirective("on-click-outside");return s.innerValue?(a.openBlock(),a.createElementBlock("div",tq,[s.innerValue?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("header",nq,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",iq,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),n.noCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>r.closeHandle&&r.closeHandle(...f))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),a.createElementVNode("section",null,[n.scrollable?(a.openBlock(),a.createBlock(c,{key:0,class:"cds-modal__body"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(a.openBlock(),a.createElementBlock("div",sq,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",rq,[a.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:r.closeHandle())},null,8,["text","disabled"])),a.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:r.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:r.closeHandle]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const oq=re(eq,[["render",aq],["__scopeId","data-v-a163b3e8"]]);function H0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function lq(t){return(...e)=>!t(...e)}function cq(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function cy(t,e,n,i){return e?t.filter(s=>cq(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function dq(t){return t.filter(e=>!e.$isLabel)}function W0(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function uq(t,e,n,i,s){return r=>r.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const c=cy(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const dy=(...t)=>e=>t.reduce((n,i)=>i(n),e);var hq={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return H0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):cy(n,e,this.label,this.customLabel):n=this.groupValues?W0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(lq(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return dy(uq(e,n,this.groupValues,this.groupLabel,this.customLabel),W0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return dy(W0(this.groupValues,this.groupLabel),dq)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(H0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return H0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(!!e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){!this.isOpen||(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},fq={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){!this.closeOnSelect||(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},uy={name:"vue-multiselect",mixins:[hq,fq],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const pq={ref:"tags",class:"multiselect__tags"},mq={class:"multiselect__tags-wrap"},gq={class:"multiselect__spinner"},_q={key:0},yq={class:"multiselect__option"},vq={class:"multiselect__option"},bq=a.createTextVNode("No elements found. Consider changing the search query."),wq={class:"multiselect__option"},kq=a.createTextVNode("List is empty.");function Cq(t,e,n,i,s,r){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",pq,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",mq,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(r.visibleValues,(o,c)=>a.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:c},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:a.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,r.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",gq,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:r.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),r.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:r.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),r.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:r.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",_q,[a.createVNode("span",yq,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(o,c)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:c,id:t.id+"-"+c,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(c,o),"multiselect__option"],onClick:a.withModifiers(d=>t.select(o),["stop"]),onMouseenter:a.withModifiers(d=>t.pointerSet(c),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&r.selectGroupLabelText,"data-deselect":t.groupSelect&&r.deselectGroupLabelText,class:[t.groupHighlight(c,o),"multiselect__option"],onMouseenter:a.withModifiers(d=>t.groupSelect&&t.pointerSet(c),["self"]),onMousedown:a.withModifiers(d=>t.selectGroup(o),["prevent"])},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",vq,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[bq])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",wq,[a.renderSlot(t.$slots,"noOptions",{},()=>[kq])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||r.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}uy.render=Cq;const Hue="",Wue="",so=0,ro=1,hu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Y0={components:{Multiselect:uy,CdsDivider:Nc,CdsCheckbox:qh,CdsSpacer:Ld},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},state:{type:String,default:"default"},options:{type:Array,required:!0},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:hu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Hn,uniqueKey:zc()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} op\xE7\xF5es selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer sele\xE7\xE3o":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais op\xE7\xF5es"},isGroupMode(){return this.internalOptions[so]&&this.internalOptions[so].$status||this.internalOptions[ro]&&this.internalOptions[ro].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0}},watch:{selectedValue(t){const e=hu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[so].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[ro].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[so].options=this.internalOptions[so].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[ro].options=this.internalOptions[ro].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=hu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=hu(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"N\xE3o selecionados",options:[]}],this.internalOptions[so].options=this.selectedValue,this.internalOptions[ro].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},hy=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},fy=Y0.setup;Y0.setup=fy?(t,e)=>(hy(),fy(t,e)):hy;const xq=Y0,Sq=["data-cds-multiselect-identifier"],Mq={key:0},Oq={key:1,class:"clustered-multiselect__label"},Dq=["for"],Eq={key:0,class:"label__required-indicator"},Bq={key:1,class:"cds-multiselect__grouped-divider"},Tq={key:0,class:"cds-multiselect__group-label"},Vq={key:1,class:"cds-multiselect__option"},Iq={class:"option__checkbox"},Aq=["id","onUpdate:modelValue","name"],$q=["id","for","onClick"],Nq={key:0,class:"multiselect__single"},zq={key:1},Pq={key:0,class:"clustered-multiselect__error-message"};function Lq(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("cds-divider"),h=a.resolveComponent("multiselect",!0);return a.openBlock(),a.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",Mq,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Oq,[a.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",Eq," * ")):a.createCommentVNode("",!0)],8,Dq)]))]),a.createVNode(h,a.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},r.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:r.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:r.handleClose,onSelect:r.selectItem,onRemove:r.unselectItem,onSearchChange:r.handleSearchChange}),{beforeList:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",null,[n.hideSelectAll?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>r.toggleSelectAll&&r.toggleSelectAll(...f))},[a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:r.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),r.isGroupMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Bq,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Tq,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",Vq,[a.createElementVNode("div",Iq,[a.withDirectives(a.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,Aq),[[a.vModelCheckbox,f.isSelected]]),a.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:a.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>r.addItemViaCustomCheckbox(f)},null,10,$q)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",Nq,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",zq))]),noResult:a.withCtx(()=>[a.createTextVNode(' Nenhum resultado encontrado para: "'),a.createElementVNode("strong",null,a.toDisplayString(s.queryString),1),a.createTextVNode('" ')]),noOptions:a.withCtx(()=>[a.createTextVNode(" N\xE3o h\xE1 nenhuma op\xE7\xE3o para ser exibida. ")]),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",Pq,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,Sq)}const Fq=re(xq,[["render",Lq]]),Yue="",Rq={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Jt(n.path)&&Jt(n.route),s=Jt(n.items)||n.items.filter(r=>Jt(r.path)&&Jt(r.route)).length;return Jt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return jl(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},Hq={id:"nav-bar"};function Wq(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Hq,[a.createElementVNode("ul",{class:a.normalizeClass({"nav-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:`${d}-${c.name}-item`,role:"presentation",class:a.normalizeClass(["nav-bar__item-container",r.isActive(c)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[a.createVNode(o,{to:r.routerPushTo(c),class:a.normalizeClass(["nav-bar__item",r.isActive(c)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>r.handleClick(h,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["to","class","onClick"]),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(c)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)],2))),128))],2)])}const Yq=re(Rq,[["render",Wq]]);var jq=Object.defineProperty,Uq=(t,e,n)=>e in t?jq(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,py=(t,e,n)=>(Uq(t,typeof e!="symbol"?e+"":e,n),n);const fu={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},my=["+","-"],gy=["decimal","thousands","prefix","suffix"];function Zr(t){return Math.max(0,Math.min(t,1e3))}function pu(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function _y(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function qq(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function Gq(t,e,n){return e?t+n+e:t}function Kq(t,e){return my.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function Zq(t){for(const e of gy)if(!Kq(t[e],e))return!1;return!0}function yy(t){for(const e of gy){t[e]=t[e].replace(/\d+/g,"");for(const n of my)t[e]=t[e].replaceAll(n,"")}return t}function vy(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function by(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function wy(t){return/^-?[\d]+$/g.test(t)}function ky(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function Cy(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function xy(t,e){const n=e-vy(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let r=i.length-1;r>=0;r-=1){const o=i.charAt(r);if(o!=="."&&o!=="-"){const c=parseInt(o,10)+1;if(c<10)return Cy(i,r,c);i=Cy(i,r,"0")}}return`1${i}`}return i}function Sy(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function My(t){return new Event(t,{bubbles:!0,cancelable:!1})}function et({debug:t=!1},...e){t&&console.log(...e)}class mu{constructor(e){py(this,"number",0n),py(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?xy(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=by(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=by(e),wy(e))this.number=BigInt(e);else if(ky(e))this.decimal=vy(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new mu(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),r=n.getNumber();return i>0?r=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,r]}}function Xq(t,e=fu,n=""){if(et(e,"utils format() - caller",n),et(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(Zr(e.precision)):t=t.toFixed(Zr(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&wy(t))t=Number(t).toFixed(Zr(e.precision));else if(!e.disableNegative&&t==="-")return t;et(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&ky(s)&&(s=xy(s,0),et(e,"utils format() - !opt.precision && isValidFloat()",s));const r=_y(s);et(e,"utils format() - numbers",r),et(e,"utils format() - numbersToCurrency",i+pu(r,e.precision));const o=new mu(i+pu(r,e.precision));et(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const c=o.toFixed(Zr(e.precision),e.shouldRound);if(et(e,"utils format() - bigNumber2",o.toFixed(Zr(e.precision))),/^0(\.0+)?$/g.test(c)&&e.allowBlank)return"";let[d,h]=c.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=qq(d,e.thousands);const m=e.prefix+Gq(d,h,e.decimal)+e.suffix;return et(e,"utils format() - output",m),m}function Oy(t,e=fu,n=""){if(et(e,"utils unformat() - caller",n),et(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return et(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils unformat() - filtered",s);const r=_y(s);et(e,"utils unformat() - numbers",r);const o=new mu(i+pu(r,e.precision));et(e,"utils unformat() - bigNumber1",r.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let c=o.toFixed(Zr(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(c=parseFloat(c)),et(e,"utils unformat() - output",c),c}const j0=(t,e,n)=>{if(et(e,"directive setValue() - caller",n),!Zq(e)){et(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=Xq(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),Sy(t,i),t.dispatchEvent(My("change"))},Dy=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(et(e,"directive onkeydown() - el.value",n.value),et(e,"directive onkeydown() - backspacePressed",i),et(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&Oy(n.value,e,"directive onkeydown allowBlank")===0&&(et(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(My("change"))),et(e,"directive onkeydown() - e.key",t.key),t.key==="+"){et(e,"directive onkeydown() - unformat el.value",n.value);let r=Oy(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},Ey=(t,e)=>{const n=t.currentTarget;et(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=pu(n.value,Zr(e.precision)),et(e,"directive oninput() - is 1-9",n.value)),j0(n,e,"directive oninput")},By=(t,e)=>{const n=t.currentTarget;et(e,"directive onFocus()",n.value),e.focusOnRight&&Sy(n,n.value.length-e.suffix.length)},Jq={mounted(t,e){if(!e.value)return;const n=yy({...fu,...e.value});if(et(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{Dy(i,n)},t.oninput=i=>{Ey(i,n)},t.onfocus=i=>{By(i,n)},et(n,"directive mounted() - el.value",t.value),j0(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=yy({...fu,...e.value});t.onkeydown=i=>{Dy(i,n)},t.oninput=i=>{Ey(i,n)},t.onfocus=i=>{By(i,n)},et(n,"directive updated() - el.value",t.value),et(n,"directive updated() - opt",n),j0(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},Qq={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},Xr="__input-facade__";function U0(t){this.masked=this.unmasked=t||""}function Ty(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function q0(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function gu(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function Vy(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[Xr].config.mask))return!1;const r=n.value,o=n.selectionEnd,{oldValue:c}=n[Xr];_u(n,null,{emit:!1},t),eG(t,r,o),c!==n.value&&n.dispatchEvent(Ty())}function eG(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),r=i[Xr]&&i[Xr].config;if(i!==document.activeElement||!s||!r.mask&&!r.masked)return;const o=t.inputType||"insertText",c=["insertText","insertFromPaste"].includes(o),d=c&&n==e.length;let h=c&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function _u(t,e,{emit:n=!0,force:i=!1}={},s){var r,o;let{config:c,oldValue:d,isComposing:h}=t[Xr],f=((o=(r=e==null?void 0:e.data)==null?void 0:r.model)==null?void 0:o.value)||t.value;if(!(c.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(c={...c,short:!0});let m=$y(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=$y(g,c);else if(g===!1){t.value=d;return}}t[Xr].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(Ty())}}let G0=Qq,Iy=!1;try{"a".localeCompare("b","i")}catch(t){Iy=t.name==="RangeError"}function tG(t){t&&(G0=t)}function nG(t,e){const n=e.masks.slice().sort((c,d)=>c.length-d.length),i=c=>Object.assign({},e,c),s=(c,d)=>{const h=K0(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new U0;const r=n.shift();let o=K0(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function K0(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},G0,r):G0;let d=new U0,h=!1,f=0,m=0,g="";function y(b){const k=s[m+1],C=r[k];return{escape:!!(b!=null&&b.escape),optional:!!(C!=null&&C.optional),repeat:!!(C!=null&&C.repeat),...(C==null?void 0:C.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const b=s[m],k=r[b];let C=t[f];const S=y(k);if(k&&!h&&!S.pipe){if(S.escape){h=!0,m++;continue}if(!C)break;if((n=k.pattern)!=null&&n.test(C))C=((i=k.transform)==null?void 0:i.call(k,C))||C,d.unmasked+=C,d.masked+=g+C,g="",S.repeat||(m+=S.optional?2:1);else if(S.optional||S.repeat){m+=2;continue}f++}else if(S.pipe){if(!C)break;const E=S.pipe.find(Ay.bind(null,C));E&&(d.unmasked+=E,d.masked+=g+E,m+=S.pipe.length*2-1,g=""),f++}else Ay(C,b)?(d.masked+=g+b,f++,g="",S.optional&&(d.unmasked+=b)):S.optional||(g+=b),h=!1,m+=S.optional?2:1}return(o&&!d.unmasked||!c&&d.unmasked)&&(d.masked+=g),d}function Ay(t,e){return Iy?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function $y(t,e){return t=(t||"").toString(),e=q0(e),e.mask?Array.isArray(e.mask)?nG(t,Object.assign({},e,{masks:e.mask})):K0(t,e):new U0(t)}const ao=Xr,ql={beforeMount:(t,{value:e,modifiers:n},i)=>{t=gu(t);const s=q0(e,n);t[ao]={config:s},_u(t,i,{force:s.prefill})},mounted:t=>{t=gu(t);const e=t[ao],n=t.parentElement||t,i=r=>{r.target===t&&Vy(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[ao].isComposing=!1,Vy(r,t)):t[ao].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=gu(t),e!==n?(t[ao].config=q0(e,i),_u(t,s,{force:!0})):_u(t,s)},unmounted:t=>{gu(t)[ao].cleanup()}},iG=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},sG={name:"InputFacade",directives:{facade:ql},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},rG=["value"];function aG(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.withDirectives((a.openBlock(),a.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...c)=>r.onInput&&r.onInput(...c)),onChange:e[1]||(e[1]=(...c)=>r.onChange&&r.onChange(...c)),onKeyup:e[2]||(e[2]=c=>t.$emit("keyup",c)),onKeydown:e[3]||(e[3]=c=>t.$emit("keydown",c)),onPaste:e[4]||(e[4]=c=>t.$emit("paste",c))},null,40,rG)),[[o,r.config]])}const Ny=iG(sG,[["render",aG]]),oG={install(t,e={}){e.tokens&&tG(e.tokens),t.component(Ny.name,Ny),t.directive(e.name||"facade",ql)}};typeof window<"u"&&window.Vue&&window.Vue.use(oG);const jue="",lG={directives:{money:Jq,cdstip:Go,facade:ql},components:{CdsLink:uu,CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else this.mask?this.internalValue=e:e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}},methods:{handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},cG={key:0},dG={class:"label__content",for:"cds-text-input"},uG={key:0,class:"label__required-indicator"},hG=["placeholder","disabled"],fG=["placeholder","disabled"],pG=["placeholder","disabled"],mG={class:"text-input__icon-container"},gG={key:0,class:"text-input__error-message"};function _G(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("money"),m=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",cG,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",dG,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",uG," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),n.linkText?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.money?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,hG)),[[a.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"tel",onFocus:e[4]||(e[4]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[5]||(e[5]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,fG)),[[a.vModelText,s.internalValue],[m,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:2,id:"cds-text-input","onUpdate:modelValue":e[6]||(e[6]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"number",onFocus:e[7]||(e[7]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[8]||(e[8]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,pG)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",mG,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",gG,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const yG=re(lG,[["render",_G],["__scopeId","data-v-a5e0e913"]]),Uue="",vG={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},bG={class:"overlay"};function wG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",bG,[a.createElementVNode("div",{class:a.normalizeClass(r.computedSpinnerClass)},null,2)])}const kG=re(vG,[["render",wG],["__scopeId","data-v-2022bd33"]]),que="",CG={},xG={class:"page-container__container"};function SG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",xG,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const zy=re(CG,[["render",SG],["__scopeId","data-v-2f5908a0"]]),Gue="",MG={components:{CdsIcon:Ze,CdsAvatar:Zo},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Jt(n.path)&&Jt(n.route),s=Jt(n.items)||n.items.filter(r=>Jt(r.path)&&Jt(r.route)).length;return Jt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Kr,expandItemControl:0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500)}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Ul,handleClick(t,e){if(this.internalActiveItem=e,!!e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return!!t.items&&t.items.length>0&&(e=t.items.some(i=>jl(i,this.internalActiveItem))),n=jl(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return console.log(this.resolveItemCollapse(t)),this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"}}},OG={class:"side-bar__header"},DG={class:"side-bar__logo"},EG=["src"],BG=["onClick"],TG={key:0,class:"side-bar__subitem-container"},VG={class:"side-bar__subitems"},IG=["href","onClick"],AG={key:0,class:"side-bar__subitem-link",target:"_blank",rel:"noopener noreferrer"},$G={class:"side-bar__avatar"},NG={key:0};function zG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("router-link"),d=a.resolveComponent("cds-avatar");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.mainClass)},[a.createElementVNode("div",{class:a.normalizeClass(`variant-resolver--${n.variant}`)},[a.createElementVNode("div",OG,[a.createElementVNode("div",DG,[s.collapsed?a.createCommentVNode("",!0):a.renderSlot(t.$slots,"logo",{key:0},()=>[a.createElementVNode("img",{src:n.logoImage},null,8,EG)])]),n.collapsible?(a.openBlock(),a.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[0]||(e[0]=(...h)=>r.handleCollapse&&r.handleCollapse(...h))},[s.collapsed?(a.openBlock(),a.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(a.openBlock(),a.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])):a.createCommentVNode("",!0)]),a.createElementVNode("ul",{class:a.normalizeClass({"side-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(h,f)=>(a.openBlock(),a.createElementBlock("li",{key:`${f}-${h.name}-item`,role:"presentation"},[a.createElementVNode("div",{class:a.normalizeClass(["side-bar__item-container",r.isActive(h)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:m=>r.handleClick(m,h)},[!!h.items||h.type==="link"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"])},[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:s.expandItemControl,name:r.resolveCollapsibleItemIcon(h),class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["name","class"])):a.createCommentVNode("",!0)],2)):(a.openBlock(),a.createBlock(c,{key:1,to:r.routerPushTo(h),class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)])]),_:2},1032,["to","class","onClick"]))],10,BG),s.collapsed?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.Transition,{key:0},{default:a.withCtx(()=>[r.resolveItemCollapse(h)?(a.openBlock(),a.createElementBlock("div",TG,[a.createElementVNode("div",VG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.items,(m,g)=>(a.openBlock(),a.createElementBlock("a",{key:`${g}-${m.name}-item`,class:a.normalizeClass(["side-bar__subitem",r.isActive(m)&&(m==null?void 0:m.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:!!m.type&&m.type==="external"?m.route.path:"javascript:void(0)",onClick:y=>r.handleClick(y,m)},[!!m.type&&m.type==="external"?(a.openBlock(),a.createElementBlock("div",AG,[a.createTextVNode(a.toDisplayString(m.label)+" ",1),a.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(a.openBlock(),a.createBlock(c,{key:1,class:"side-bar__subitem-link",to:r.routerPushTo(m)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.label),1)]),_:2},1032,["to"]))],10,IG))),128))])])):a.createCommentVNode("",!0)]),_:2},1024))]))),128))],2)],2),a.createElementVNode("div",{class:a.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[a.createElementVNode("div",$G,[a.createVNode(d,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[s.collapsed?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",NG,[a.createElementVNode("p",null,a.toDisplayString(n.userName),1),a.createElementVNode("p",null,a.toDisplayString(n.userRole),1)]))]),_:1})]),a.createElementVNode("ul",null,[n.showLogout?(a.openBlock(),a.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[1]||(e[1]=h=>t.$emit("logout",!0))},[a.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])):a.createCommentVNode("",!0)])],2)],2)}const Py=re(MG,[["render",zG]]),Kue="",Ly=t=>(a.pushScopeId("data-v-2c0e5f5c"),t=t(),a.popScopeId(),t),PG={class:"secondary-navigation__container"},LG={class:"secondary-navigation__content"},FG={key:1},RG=["onClick","onMouseover"],HG={class:"secondary-navigation__content"},WG={key:1},YG=Ly(()=>a.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),jG=Ly(()=>a.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1)),UG=re({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=a.ref(n.activeItem.key),r=a.ref(null),o=a.ref(0),c=a.computed(()=>n.light?"light":"dark");a.watch(n.activeItem,k=>{s.value=k.key});const d=k=>{o.value=k},h=k=>{if(!k.route)return null;const{path:C,name:S}=k.route;return C instanceof String?{path:C}:{name:S}},f=k=>{g(k.key)||(r.value=null,s.value=k.key,i("item-click",k.key))},m=k=>s.value===k,g=k=>n.items.find(C=>{var S;return C.key===k&&((S=C==null?void 0:C.subitems)==null?void 0:S.length)>0}),y=(k,C)=>{r.value=k,s.value=C,i("item-click",k)},b=k=>r.value===k;return(k,C)=>{const S=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["secondary-navigation",`secondary-navigation--${c.value}`])},[a.createElementVNode("div",PG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,E=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:E.key},[g(E.key)?(a.openBlock(),a.createElementBlock("div",FG,[a.createElementVNode("div",{class:a.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${c.value}`:""]),onClick:A=>f(E),onMouseover:A=>d(E.key),onMouseleave:C[0]||(C[0]=A=>d(-1))},[a.createElementVNode("div",HG,[a.createTextVNode(a.toDisplayString(E.label)+" ",1),E.key!==o.value?(a.openBlock(),a.createBlock(Ze,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):E.key===o.value?(a.openBlock(),a.createElementBlock("div",WG,[a.createVNode(Ze,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),a.createElementVNode("div",{class:a.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${c.value}`])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.subitems,A=>(a.openBlock(),a.createBlock(S,{key:A.key,to:h(A),class:a.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":b(A.key)}]),onClick:x=>y(A.key,E.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(A.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):a.createCommentVNode("",!0)])],42,RG)])):(a.openBlock(),a.createBlock(S,{key:0,class:a.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${c.value}`:""]),to:h(E),onClick:A=>f(E)},{default:a.withCtx(()=>[a.createElementVNode("div",LG,a.toDisplayString(E.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),YG,jG],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),Xue="",qG={class:"page-layout"},GG={class:"page-layout__content"},KG=re({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","navigation-item-click"],setup(t,{emit:e}){const n=e;return(i,s)=>(a.openBlock(),a.createElementBlock("div",qG,[a.createVNode(Py,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,onSidebarClick:s[0]||(s[0]=r=>n("sidebar-item-click",r)),onLogout:s[1]||(s[1]=r=>n("sidebar-logout",r))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image"]),a.createElementVNode("div",GG,[a.createVNode(UG,{light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:s[2]||(s[2]=r=>n("navigation-item-click",r))},null,8,["light","active-item","items"]),a.createVNode(zy,{class:"page-layout__container"},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3})])]))}},[["__scopeId","data-v-968105b5"]]),Que="",ZG={components:{CdsLink:uu},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=this.subtitle.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},XG={class:"page-header__title"},JG={key:0,class:"d-flex"},QG={class:"page-header__subtitle"},eK={key:1,class:"page-header__subtitle"},tK={class:"page-header__aside-slot"};function nK(t,e,n,i,s,r){const o=a.resolveComponent("cds-link");return a.openBlock(),a.createElementBlock("header",{class:a.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[a.createElementVNode("div",null,[a.createElementVNode("p",XG,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",JG,[a.createElementVNode("span",QG,[a.createTextVNode(a.toDisplayString(s.splitedSubtitle[0])+" ",1),a.createVNode(o,{href:s.url,bold:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.fancyUrl),1)]),_:1},8,["href"]),a.createTextVNode(" "+a.toDisplayString(s.splitedSubtitle[1]),1)])])):(a.openBlock(),a.createElementBlock("div",eK,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",tK,[a.renderSlot(t.$slots,"aside")])],2)}const iK=re(ZG,[["render",nK]]);class Yn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const e1e="",sK={components:{CdsChevron:Ca},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new Yn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new Yn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?g4("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new Yn(0,"first",!1,"<<"),new Yn(1,"back",!1,"<"),...this.mountPagesArray(),new Yn(7,"forward",!1,">"),new Yn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new Yn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new Yn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new Yn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new Yn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new Yn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new Yn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new Yn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new Yn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},rK=["onClick"],aK={key:3};function oK(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.computedContainerClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.pages,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.resolveButtonClass(c)),onClick:h=>r.handlePageClick(c)},[d===0?(a.openBlock(),a.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===0?(a.openBlock(),a.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===1?(a.openBlock(),a.createBlock(o,{key:2,direction:"left"})):a.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(a.openBlock(),a.createElementBlock("span",aK,a.toDisplayString(c.text),1)):a.createCommentVNode("",!0),d===s.pages.length-2?(a.openBlock(),a.createBlock(o,{key:4,direction:"right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0)],10,rK))),128))],2)}const lK=re(sK,[["render",oK],["__scopeId","data-v-69f01ddb"]]),t1e="",cK={components:{CdsBox:$l,CdsDivider:Nc},props:{title:{type:String,default:"T\xEDtulo",required:!0},subtitle:{type:String,default:"Subt\xEDtulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},dK=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),uK={class:"panel-card__header"},hK={class:"panel-card__title"},fK=dK(()=>a.createElementVNode("br",null,null,-1)),pK={class:"panel-card__subtitle"};function mK(t,e,n,i,s,r){const o=a.resolveComponent("cds-divider"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{class:"panel-card",padding:"0",fluid:""},{default:a.withCtx(()=>[a.createElementVNode("div",uK,[a.createElementVNode("div",null,[a.createElementVNode("span",hK,a.toDisplayString(n.title),1),fK,a.createElementVNode("span",pK,a.toDisplayString(n.subtitle),1)]),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),a.createVNode(o,{dimmed:""}),a.createElementVNode("div",{class:a.normalizeClass(r.contentClass)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const gK=re(cK,[["render",mK],["__scopeId","data-v-e1c5a182"]]),n1e="",_K={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){switch(this.state){case"valid":return"pin-input--valid";case"invalid":return"pin-input--invalid";default:return"pin-input"}}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.$refs[`pin-input${e}`][0].value=t.key,e<this.length&&this.$refs[`pin-input${e+1}`][0].focus()}}},yK={class:"pin-input__container"},vK=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function bK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",yK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.length,(o,c)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{id:`pin-input${o}`,key:c,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:a.normalizeClass(["pin-input",r.computedClass]),autocomplete:"off",onKeydown:a.withKeys(a.withModifiers(d=>r.handleBack(o),["stop"]),["delete"]),onKeypress:d=>r.changeInputContent(d,o),onInput:d=>r.handleInput(d,o),onFocus:d=>r.fixCursorPosition(o)},null,42,vK)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const wK=re(_K,[["render",bK],["__scopeId","data-v-d11b9fb6"]]),i1e="",Z0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},Fy=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},Ry=Z0.setup;Z0.setup=Ry?(t,e)=>(Fy(),Ry(t,e)):Fy;const kK=Z0,CK={class:"progress-bar"},xK={class:"progress-bar__content"};function SK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",CK,[n.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},a.toDisplayString(r.formatedvalue),3)):a.createCommentVNode("",!0),a.createElementVNode("div",xK,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const MK=re(kK,[["render",SK],["__scopeId","data-v-d3a3d8d6"]]),s1e="",OK={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Ul}},DK=["stroke","stroke-width"],EK=["stroke-dasharray","stroke-width"];function BK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[a.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":r.stroke,d:`M18 2.0845
69
+ }`;var Pe=Xb(function(){return ot(D,be+"return "+Q).apply(n,T)});if(Pe.source=Q,Xf(Pe))throw Pe;return Pe}function Mse(l){return dt(l).toLowerCase()}function Ose(l){return dt(l).toUpperCase()}function Dse(l,u,p){if(l=dt(l),l&&(p||u===n))return av(l);if(!l||!(u=ri(u)))return l;var _=ji(l),w=ji(u),D=ov(_,w),T=lv(_,w)+1;return br(_,D,T).join("")}function Ese(l,u,p){if(l=dt(l),l&&(p||u===n))return l.slice(0,dv(l)+1);if(!l||!(u=ri(u)))return l;var _=ji(l),w=lv(_,ji(u))+1;return br(_,0,w).join("")}function Bse(l,u,p){if(l=dt(l),l&&(p||u===n))return l.replace(Ms,"");if(!l||!(u=ri(u)))return l;var _=ji(l),w=ov(_,ji(u));return br(_,w).join("")}function Tse(l,u){var p=ee,_=ne;if(Rt(u)){var w="separator"in u?u.separator:w;p="length"in u?ze(u.length):p,_="omission"in u?ri(u.omission):_}l=dt(l);var D=l.length;if(So(l)){var T=ji(l);D=T.length}if(p>=D)return l;var $=p-Mo(_);if($<1)return _;var P=T?br(T,0,$).join(""):l.slice(0,$);if(w===n)return P+_;if(T&&($+=P.length-$),Jf(w)){if(l.slice($).search(w)){var Z,X=P;for(w.global||(w=pf(w.source,dt(an.exec(w))+"g")),w.lastIndex=0;Z=w.exec(X);)var Q=Z.index;P=P.slice(0,Q===n?$:Q)}}else if(l.indexOf(ri(w),$)!=$){var de=P.lastIndexOf(w);de>-1&&(P=P.slice(0,de))}return P+_}function Vse(l){return l=dt(l),l&&at.test(l)?l.replace(Ce,oQ):l}var Ise=Io(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),tp=Jv("toUpperCase");function Zb(l,u,p){return l=dt(l),u=p?n:u,u===n?nQ(l)?dQ(l):qJ(l):l.match(u)||[]}var Xb=Fe(function(l,u){try{return hn(l,n,u)}catch(p){return Xf(p)?p:new Ve(p)}}),Ase=zs(function(l,u){return Si(u,function(p){p=cs(p),$s(l,p,Kf(l[p],l))}),l});function $se(l){var u=l==null?0:l.length,p=Se();return l=u?Pt(l,function(_){if(typeof _[1]!="function")throw new Mi(o);return[p(_[0]),_[1]]}):[],Fe(function(_){for(var w=-1;++w<u;){var D=l[w];if(hn(D[0],this,_))return hn(D[1],this,_)}})}function Nse(l){return oee(Di(l,m))}function np(l){return function(){return l}}function zse(l,u){return l==null||l!==l?u:l}var Pse=eb(),Lse=eb(!0);function Zn(l){return l}function ip(l){return Bv(typeof l=="function"?l:Di(l,m))}function Fse(l){return Vv(Di(l,m))}function Rse(l,u){return Iv(l,Di(u,m))}var Hse=Fe(function(l,u){return function(p){return kc(p,l,u)}}),Wse=Fe(function(l,u){return function(p){return kc(l,p,u)}});function sp(l,u,p){var _=fn(u),w=zu(u,_);p==null&&!(Rt(u)&&(w.length||!_.length))&&(p=u,u=l,l=this,w=zu(u,fn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,T=Ls(l);return Si(w,function($){var P=u[$];l[$]=P,T&&(l.prototype[$]=function(){var Z=this.__chain__;if(D||Z){var X=l(this.__wrapped__),Q=X.__actions__=qn(this.__actions__);return Q.push({func:P,args:arguments,thisArg:l}),X.__chain__=Z,X}return P.apply(l,pr([this.value()],arguments))})}),l}function Yse(){return He._===this&&(He._=gQ),this}function rp(){}function jse(l){return l=ze(l),Fe(function(u){return Av(u,l)})}var Use=Nf(Pt),qse=Nf(tv),Gse=Nf(of);function Jb(l){return Wf(l)?lf(cs(l)):xee(l)}function Kse(l){return function(u){return l==null?n:ua(l,u)}}var Zse=nb(),Xse=nb(!0);function ap(){return[]}function op(){return!1}function Jse(){return{}}function Qse(){return""}function ere(){return!0}function tre(l,u){if(l=ze(l),l<1||l>ye)return[];var p=pe,_=On(l,pe);u=Se(u),l-=pe;for(var w=uf(_,u);++p<l;)u(p);return w}function nre(l){return Ae(l)?Pt(l,cs):ai(l)?[l]:qn(yb(dt(l)))}function ire(l){var u=++pQ;return dt(l)+u}var sre=Wu(function(l,u){return l+u},0),rre=zf("ceil"),are=Wu(function(l,u){return l/u},1),ore=zf("floor");function lre(l){return l&&l.length?Nu(l,Zn,kf):n}function cre(l,u){return l&&l.length?Nu(l,Se(u,2),kf):n}function dre(l){return sv(l,Zn)}function ure(l,u){return sv(l,Se(u,2))}function hre(l){return l&&l.length?Nu(l,Zn,Mf):n}function fre(l,u){return l&&l.length?Nu(l,Se(u,2),Mf):n}var pre=Wu(function(l,u){return l*u},1),mre=zf("round"),gre=Wu(function(l,u){return l-u},0);function _re(l){return l&&l.length?df(l,Zn):0}function yre(l,u){return l&&l.length?df(l,Se(u,2)):0}return M.after=Fne,M.ary=Eb,M.assign=Oie,M.assignIn=Wb,M.assignInWith=n1,M.assignWith=Die,M.at=Eie,M.before=Bb,M.bind=Kf,M.bindAll=Ase,M.bindKey=Tb,M.castArray=Jne,M.chain=Mb,M.chunk=ote,M.compact=lte,M.concat=cte,M.cond=$se,M.conforms=Nse,M.constant=np,M.countBy=_ne,M.create=Bie,M.curry=Vb,M.curryRight=Ib,M.debounce=Ab,M.defaults=Tie,M.defaultsDeep=Vie,M.defer=Rne,M.delay=Hne,M.difference=dte,M.differenceBy=ute,M.differenceWith=hte,M.drop=fte,M.dropRight=pte,M.dropRightWhile=mte,M.dropWhile=gte,M.fill=_te,M.filter=vne,M.flatMap=kne,M.flatMapDeep=Cne,M.flatMapDepth=xne,M.flatten=kb,M.flattenDeep=yte,M.flattenDepth=vte,M.flip=Wne,M.flow=Pse,M.flowRight=Lse,M.fromPairs=bte,M.functions=Lie,M.functionsIn=Fie,M.groupBy=Sne,M.initial=kte,M.intersection=Cte,M.intersectionBy=xte,M.intersectionWith=Ste,M.invert=Hie,M.invertBy=Wie,M.invokeMap=One,M.iteratee=ip,M.keyBy=Dne,M.keys=fn,M.keysIn=Kn,M.map=Zu,M.mapKeys=jie,M.mapValues=Uie,M.matches=Fse,M.matchesProperty=Rse,M.memoize=Ju,M.merge=qie,M.mergeWith=Yb,M.method=Hse,M.methodOf=Wse,M.mixin=sp,M.negate=Qu,M.nthArg=jse,M.omit=Gie,M.omitBy=Kie,M.once=Yne,M.orderBy=Ene,M.over=Use,M.overArgs=jne,M.overEvery=qse,M.overSome=Gse,M.partial=Zf,M.partialRight=$b,M.partition=Bne,M.pick=Zie,M.pickBy=jb,M.property=Jb,M.propertyOf=Kse,M.pull=Ete,M.pullAll=xb,M.pullAllBy=Bte,M.pullAllWith=Tte,M.pullAt=Vte,M.range=Zse,M.rangeRight=Xse,M.rearg=Une,M.reject=Ine,M.remove=Ite,M.rest=qne,M.reverse=qf,M.sampleSize=$ne,M.set=Jie,M.setWith=Qie,M.shuffle=Nne,M.slice=Ate,M.sortBy=Lne,M.sortedUniq=Rte,M.sortedUniqBy=Hte,M.split=kse,M.spread=Gne,M.tail=Wte,M.take=Yte,M.takeRight=jte,M.takeRightWhile=Ute,M.takeWhile=qte,M.tap=lne,M.throttle=Kne,M.thru=Ku,M.toArray=Fb,M.toPairs=Ub,M.toPairsIn=qb,M.toPath=nre,M.toPlainObject=Hb,M.transform=ese,M.unary=Zne,M.union=Gte,M.unionBy=Kte,M.unionWith=Zte,M.uniq=Xte,M.uniqBy=Jte,M.uniqWith=Qte,M.unset=tse,M.unzip=Gf,M.unzipWith=Sb,M.update=nse,M.updateWith=ise,M.values=No,M.valuesIn=sse,M.without=ene,M.words=Zb,M.wrap=Xne,M.xor=tne,M.xorBy=nne,M.xorWith=ine,M.zip=sne,M.zipObject=rne,M.zipObjectDeep=ane,M.zipWith=one,M.entries=Ub,M.entriesIn=qb,M.extend=Wb,M.extendWith=n1,sp(M,M),M.add=sre,M.attempt=Xb,M.camelCase=lse,M.capitalize=Gb,M.ceil=rre,M.clamp=rse,M.clone=Qne,M.cloneDeep=tie,M.cloneDeepWith=nie,M.cloneWith=eie,M.conformsTo=iie,M.deburr=Kb,M.defaultTo=zse,M.divide=are,M.endsWith=cse,M.eq=qi,M.escape=dse,M.escapeRegExp=use,M.every=yne,M.find=bne,M.findIndex=bb,M.findKey=Iie,M.findLast=wne,M.findLastIndex=wb,M.findLastKey=Aie,M.floor=ore,M.forEach=Ob,M.forEachRight=Db,M.forIn=$ie,M.forInRight=Nie,M.forOwn=zie,M.forOwnRight=Pie,M.get=Qf,M.gt=sie,M.gte=rie,M.has=Rie,M.hasIn=ep,M.head=Cb,M.identity=Zn,M.includes=Mne,M.indexOf=wte,M.inRange=ase,M.invoke=Yie,M.isArguments=pa,M.isArray=Ae,M.isArrayBuffer=aie,M.isArrayLike=Gn,M.isArrayLikeObject=Kt,M.isBoolean=oie,M.isBuffer=wr,M.isDate=lie,M.isElement=cie,M.isEmpty=die,M.isEqual=uie,M.isEqualWith=hie,M.isError=Xf,M.isFinite=fie,M.isFunction=Ls,M.isInteger=Nb,M.isLength=e1,M.isMap=zb,M.isMatch=pie,M.isMatchWith=mie,M.isNaN=gie,M.isNative=_ie,M.isNil=vie,M.isNull=yie,M.isNumber=Pb,M.isObject=Rt,M.isObjectLike=jt,M.isPlainObject=Dc,M.isRegExp=Jf,M.isSafeInteger=bie,M.isSet=Lb,M.isString=t1,M.isSymbol=ai,M.isTypedArray=$o,M.isUndefined=wie,M.isWeakMap=kie,M.isWeakSet=Cie,M.join=Mte,M.kebabCase=hse,M.last=Bi,M.lastIndexOf=Ote,M.lowerCase=fse,M.lowerFirst=pse,M.lt=xie,M.lte=Sie,M.max=lre,M.maxBy=cre,M.mean=dre,M.meanBy=ure,M.min=hre,M.minBy=fre,M.stubArray=ap,M.stubFalse=op,M.stubObject=Jse,M.stubString=Qse,M.stubTrue=ere,M.multiply=pre,M.nth=Dte,M.noConflict=Yse,M.noop=rp,M.now=Xu,M.pad=mse,M.padEnd=gse,M.padStart=_se,M.parseInt=yse,M.random=ose,M.reduce=Tne,M.reduceRight=Vne,M.repeat=vse,M.replace=bse,M.result=Xie,M.round=mre,M.runInContext=z,M.sample=Ane,M.size=zne,M.snakeCase=wse,M.some=Pne,M.sortedIndex=$te,M.sortedIndexBy=Nte,M.sortedIndexOf=zte,M.sortedLastIndex=Pte,M.sortedLastIndexBy=Lte,M.sortedLastIndexOf=Fte,M.startCase=Cse,M.startsWith=xse,M.subtract=gre,M.sum=_re,M.sumBy=yre,M.template=Sse,M.times=tre,M.toFinite=Fs,M.toInteger=ze,M.toLength=Rb,M.toLower=Mse,M.toNumber=Ti,M.toSafeInteger=Mie,M.toString=dt,M.toUpper=Ose,M.trim=Dse,M.trimEnd=Ese,M.trimStart=Bse,M.truncate=Tse,M.unescape=Vse,M.uniqueId=ire,M.upperCase=Ise,M.upperFirst=tp,M.each=Ob,M.eachRight=Db,M.first=Cb,sp(M,function(){var l={};return os(M,function(u,p){_t.call(M.prototype,p)||(l[p]=u)}),l}(),{chain:!1}),M.VERSION=i,Si(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){M[l].placeholder=M}),Si(["drop","take"],function(l,u){qe.prototype[l]=function(p){p=p===n?1:ln(ze(p),0);var _=this.__filtered__&&!u?new qe(this):this.clone();return _.__filtered__?_.__takeCount__=On(p,_.__takeCount__):_.__views__.push({size:On(p,pe),type:l+(_.__dir__<0?"Right":"")}),_},qe.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),Si(["filter","map","takeWhile"],function(l,u){var p=u+1,_=p==me||p==he;qe.prototype[l]=function(w){var D=this.clone();return D.__iteratees__.push({iteratee:Se(w,3),type:p}),D.__filtered__=D.__filtered__||_,D}}),Si(["head","last"],function(l,u){var p="take"+(u?"Right":"");qe.prototype[l]=function(){return this[p](1).value()[0]}}),Si(["initial","tail"],function(l,u){var p="drop"+(u?"":"Right");qe.prototype[l]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Zn)},qe.prototype.find=function(l){return this.filter(l).head()},qe.prototype.findLast=function(l){return this.reverse().find(l)},qe.prototype.invokeMap=Fe(function(l,u){return typeof l=="function"?new qe(this):this.map(function(p){return kc(p,l,u)})}),qe.prototype.reject=function(l){return this.filter(Qu(Se(l)))},qe.prototype.slice=function(l,u){l=ze(l);var p=this;return p.__filtered__&&(l>0||u<0)?new qe(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==n&&(u=ze(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},qe.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},qe.prototype.toArray=function(){return this.take(pe)},os(qe.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),w=M[_?"take"+(u=="last"?"Right":""):u],D=_||/^find/.test(u);!w||(M.prototype[u]=function(){var T=this.__wrapped__,$=_?[1]:arguments,P=T instanceof qe,Z=$[0],X=P||Ae(T),Q=function(je){var Ke=w.apply(M,pr([je],$));return _&&de?Ke[0]:Ke};X&&p&&typeof Z=="function"&&Z.length!=1&&(P=X=!1);var de=this.__chain__,be=!!this.__actions__.length,Oe=D&&!de,Pe=P&&!be;if(!D&&X){T=Pe?T:new qe(this);var De=l.apply(T,$);return De.__actions__.push({func:Ku,args:[Q],thisArg:n}),new Oi(De,de)}return Oe&&Pe?l.apply(this,$):(De=this.thru(Q),Oe?_?De.value()[0]:De.value():De)})}),Si(["pop","push","shift","sort","splice","unshift"],function(l){var u=wu[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var w=arguments;if(_&&!this.__chain__){var D=this.value();return u.apply(Ae(D)?D:[],w)}return this[p](function(T){return u.apply(Ae(T)?T:[],w)})}}),os(qe.prototype,function(l,u){var p=M[u];if(p){var _=p.name+"";_t.call(Bo,_)||(Bo[_]=[]),Bo[_].push({name:u,func:p})}}),Bo[Hu(n,S).name]=[{name:"wrapper",func:n}],qe.prototype.clone=VQ,qe.prototype.reverse=IQ,qe.prototype.value=AQ,M.prototype.at=cne,M.prototype.chain=dne,M.prototype.commit=une,M.prototype.next=hne,M.prototype.plant=pne,M.prototype.reverse=mne,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=gne,M.prototype.first=M.prototype.head,mc&&(M.prototype[mc]=fne),M},Oo=uQ();zt?((zt.exports=Oo)._=Oo,Xe._=Oo):He._=Oo}).call(cn)})(bi,bi.exports);const vue="",no=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),z0={components:{VDatePicker:Z5,CdsChevron:Ca,CdsIcon:Ze},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||no(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||no(t)},maxDate:{type:String,default:"",validator:t=>t===""||no(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Hn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},calendarDotColor(){return this.variantColorData.colorData[4].shade},calendarTextColor(){return this.variantColorData.colorData[7].shade},calendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:ts,updateColorData(){this.variantColorData=this.paleteBuilder(Hn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=no(this.modelValue.start)&&no(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=no(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||bi.exports.isEmpty(t)?null:`${t.start} a ${t.end}`}}},X5=()=>{a.useCssVars(t=>({"2f327d3b":t.calendarTrailColor,"63245b90":t.calendarTextColor,"24c77358":t.calendarDotColor}))},J5=z0.setup;z0.setup=J5?(t,e)=>(X5(),J5(t,e)):X5;const BY=z0,TY={class:"date-input__container"},VY={key:0},IY={key:1,class:"date-input__label"},AY={class:"label__content",for:"cds-text-input"},$Y={key:0,class:"label__required-indicator"},NY=["value","disabled","placeholder","onClick"],zY={class:"date-input__icon"},PY={key:0,class:"date-input__error-message"};function LY(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",TY,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",VY,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",IY,[a.createElementVNode("div",AY,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",$Y," * ")):a.createCommentVNode("",!0)])]))]),a.createVNode(d,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),r.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:"green","is-range":n.range},{"header-left-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[a.createElementVNode("div",{class:a.normalizeClass(r.inputClass)},[a.createElementVNode("input",a.mergeProps({value:r.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,NY),a.createElementVNode("div",zY,[a.createVNode(c,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","is-range","onUpdate:modelValue"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",PY,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const FY=re(BY,[["render",LY],["__scopeId","data-v-c3eed25a"]]),bue="",RY=["teal","green","blue","indigo","violet","pink","red","orange","amber"],HY=["warning","error","info"],WY={directives:{"on-click-outside":Mr.directive},components:{CdsIcon:Ze,CdsButton:Sr},props:{variant:{type:String,default:"warning",validator:t=>HY.includes(t)},description:{type:String,required:!0},modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,required:!0},okButtonText:{type:String,default:"Continuar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>RY.includes(t)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.innerValue=!this.innerValue,this.$emit("ok",!0),this.$emit("update:modelValue",!1)}}},YY={key:0,class:"cds-modal__backdrop"},jY={key:0,class:"cds-modal"},UY={class:"cds-modal__header-content"},qY={key:0,class:"cds-modal__header-title"},GY={key:1,class:"cds-modal__header-title"},KY={key:2,class:"cds-modal__header-title"},ZY={class:"cds-modal__body"},XY={class:"cds-modal__body-title"},JY={class:"cds-modal__body-description"},QY={class:"cds-modal__footer"};function ej(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-button");return s.innerValue?(a.openBlock(),a.createElementBlock("div",YY,[s.innerValue?(a.openBlock(),a.createElementBlock("div",jY,[a.createElementVNode("header",{class:a.normalizeClass(`cds-modal__header--${n.variant}`)},[a.createElementVNode("div",UY,[n.variant==="warning"?(a.openBlock(),a.createElementBlock("div",qY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),a.createTextVNode(" Aten\xE7\xE3o ")])):n.variant==="error"?(a.openBlock(),a.createElementBlock("div",GY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),a.createTextVNode(" Erro ")])):n.variant==="info"?(a.openBlock(),a.createElementBlock("div",KY,[a.createVNode(o,{class:a.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),a.createTextVNode(" Informativo ")])):a.createCommentVNode("",!0)]),n.variant==="warning"?(a.openBlock(),a.createBlock(o,{key:0,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(a.openBlock(),a.createBlock(o,{key:1,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(a.openBlock(),a.createBlock(o,{key:2,class:a.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",ZY,[a.createElementVNode("span",XY,a.toDisplayString(n.title),1),a.createElementVNode("span",JY,a.toDisplayString(n.description),1)]),a.createElementVNode("footer",QY,[n.variant==="warning"?(a.openBlock(),a.createBlock(c,{key:0,text:n.cancelButtonText,secondary:"",onClick:e[0]||(e[0]=d=>r.closeHandle())},null,8,["text"])):a.createCommentVNode("",!0),a.createVNode(c,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:e[1]||(e[1]=d=>r.okHandle())},null,8,["text","variant"])])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const tj=re(WY,[["render",ej],["__scopeId","data-v-cb60983c"]]),wue="",nj={components:{CdsChevron:Ca},directives:{"on-click-outside":Mr.directive},props:{content:{type:String,default:"Conte\xFAdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},ij=["id"],sj={class:"filter-pill__label"},rj={class:"filter-pill__content"};function aj(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",{id:s.id,class:a.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>r.activeSelection&&r.activeSelection(...d))},[a.createElementVNode("span",sj,a.toDisplayString(n.label)+": ",1),a.createElementVNode("span",rj,a.toDisplayString(n.content),1),(a.openBlock(),a.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,ij),s.isActive?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(r.dynamicStyle),class:"filter-pill__dropdown"},[a.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[c,r.hide]]):a.createCommentVNode("",!0)])}const oj=re(nj,[["render",aj],["__scopeId","data-v-f6d65f66"]]),kue="",lj={components:{Doughnut:T2},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)},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:()=>[]},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:Hn,localChartData:{},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{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}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:ts,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},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))}},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};if(t.forEach(n=>{n.datasets.forEach(i=>{const s={label:i.label,data:i.data,name:i.name,borderRadius:5};e.datasets.push(s)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(e.datasets,n)}else{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:[]},generateBackgroundColorWithTheme(){const t=this.theme.toLowerCase(),e=this.themeColors.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=5})},clickHandler(t){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i={index:n[0].index,data:n[0].element.$context.raw,x:n[0].element.x,y:n[0].element.y,backgroundColor:n[0].element.$context.element.options.backgroundColor.trim()};this.$emit("chart-click",i)}}},cj={class:"responsive-container"};function dj(t,e,n,i,s,r){const o=a.resolveComponent("Doughnut");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",cj,[a.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:r.clickHandler},null,8,["data","options","onClick"])])])}const uj=re(lj,[["render",dj],["__scopeId","data-v-d71f8f8f"]]),Cue="",hj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],fj={components:{CdsButton:Sr},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"T\xEDtulo do empty state",required:!0},text:{type:String,default:"Para sair dessa situa\xE7\xE3o de empty state, realize a a\xE7\xE3o abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>hj.includes(t)}}},pj={class:"empty-state"},mj=["src","alt"],gj={class:"empty-state__title"},_j={class:"empty-state__text"};function yj(t,e,n,i,s,r){const o=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",pj,[a.renderSlot(t.$slots,"graphic-element",{},()=>[a.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,mj)],!0),a.createElementVNode("div",gj,a.toDisplayString(n.title),1),a.createElementVNode("div",_j,[a.renderSlot(t.$slots,"text",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)]),n.hideActionButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=c=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const vj=re(fj,[["render",yj],["__scopeId","data-v-2b71d10e"]]),xue="",P0={components:{CdsIcon:Ze},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},disabled:{type:Boolean,default:!1}},data(){return{file:!!this.modelValue&&!Jt(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`S\xE3o aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="invalid":this.internalState="valid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");return n=n[n.length-1].trim(),e.filter(i=>i===n).length>0},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},Q5=()=>{a.useCssVars(t=>({"637a4784":t.textAlignmentResolver}))},ey=P0.setup;P0.setup=ey?(t,e)=>(Q5(),ey(t,e)):Q5;const bj=P0,wj=["accept"],kj={key:0,class:"file-input__container"},Cj={key:0},xj={key:1},Sj={key:1,class:"file-input__container"},Mj={key:1},Oj={key:0,class:"file-input__alert-container"};function Dj(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",{class:a.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=a.withModifiers(c=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=a.withModifiers(c=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...c)=>r.dropHandler&&r.dropHandler(...c)),onClick:e[7]||(e[7]=(...c)=>r.linkClick&&r.linkClick(...c))},[a.withDirectives(a.createElementVNode("input",{ref:"fileInput",type:"file",accept:r.acceptString,onChange:e[0]||(e[0]=(...c)=>r.handleFormFileChange&&r.handleFormFileChange(...c))},null,40,wj),[[a.vShow,!1]]),s.file?(a.openBlock(),a.createElementBlock("div",Sj,[a.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:a.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",Mj," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[a.createElementVNode("div",null,a.toDisplayString(s.file.name),1),a.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=a.withModifiers((...c)=>r.handleRemove&&r.handleRemove(...c),["stop"]))},[a.createVNode(o,{height:"18",width:"18",name:"x-outline",class:a.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(a.openBlock(),a.createElementBlock("div",kj,[a.createVNode(o,{name:"upload-cloud-outline",class:a.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[r.sizeClass.holderPadding]:n.size})},null,8,["class"]),a.createElementVNode("div",{class:a.normalizeClass({[r.sizeClass.inputTitle]:n.size,[r.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(a.openBlock(),a.createElementBlock("div",xj," Solte aqui o seu arquivo ")):(a.openBlock(),a.createElementBlock("div",Cj,[a.createTextVNode(" Arraste o arquivo aqui ou "),a.createElementVNode("a",{href:"javascript:void(0)",class:a.normalizeClass(["file-input__search-link",{"file-input__search-link--disabled":n.disabled===!0}])}," pesquise no seu dispositivo ",2)]))],2)]))],34)]),s.internalState==="invalid"?(a.openBlock(),a.createElementBlock("div",Oj,a.toDisplayString(r.computedAllowedMessage),1)):a.createCommentVNode("",!0)],64)}const Ej=re(bj,[["render",Dj],["__scopeId","data-v-dee88fdd"]]);function du(t=""){const e="\xC0\xC1\xC2\xC3\xC4\xC5\xE0\xE1\xE2\xE3\xE4\xE5\xD2\xD3\xD4\xD5\xD5\xD6\xD8\xF2\xF3\xF4\xF5\xF6\xF8\xC8\xC9\xCA\xCB\xE8\xE9\xEA\xEB\xF0\xC7\xE7\xD0\xCC\xCD\xCE\xCF\xEC\xED\xEE\xEF\xD9\xDA\xDB\xDC\xF9\xFA\xFB\xFC\xD1\xF1\u0160\u0161\u0178\xFF\xFD\u017D\u017E",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),r;for(let o=0;o<i;o+=1)r=e.indexOf(t[o]),r!==-1&&(s[o]=n[r]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const Sue="",Bj={directives:{"on-click-outside":Mr.directive},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:zc()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${Qp.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"]},methods:{filterOptions(){const t=du(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>du(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=Ko(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=Ko(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["filter-select-options"],r=s.getBoundingClientRect();n==="up"&&i.top<=r.top&&(s.scrollTop+=e),n==="down"&&i.top>=r.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},Tj=t=>(a.pushScopeId("data-v-5004e30a"),t=t(),a.popScopeId(),t),Vj={ref:"cds-filter-select",class:"filter-select"},Ij={class:"filter-select__label"},Aj={for:"cds-filter-select"},$j=["id","onkeypress","placeholder","disabled","readonly"],Nj={key:0,class:"option__container"},zj=["onMouseover"],Pj={key:1,class:"option__container"},Lj=[Tj(()=>a.createElementVNode("li",{class:"option__text--muted"}," Nenhuma op\xE7\xE3o encontrada ",-1))];function Fj(t,e,n,i,s,r){const o=a.resolveDirective("on-click-outside");return a.openBlock(),a.createElementBlock("div",Vj,[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["filter-select__container",r.inputClass]),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers((...c)=>r.activateSelectionOnEnter&&r.activateSelectionOnEnter(...c),["prevent"]),["enter"])),e[7]||(e[7]=a.withKeys(a.withModifiers((...c)=>r.highlightOnArrowDown&&r.highlightOnArrowDown(...c),["prevent"]),["arrow-down"])),e[8]||(e[8]=a.withKeys(a.withModifiers((...c)=>r.highlightOnArrowUp&&r.highlightOnArrowUp(...c),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...c)=>r.activateSelectionOnClick&&r.activateSelectionOnClick(...c))},[a.createElementVNode("label",Ij,[a.createElementVNode("div",Aj,[a.createElementVNode("span",null,a.toDisplayString(r.capitalizedLabel),1)])]),a.withDirectives(a.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=c=>s.localValue[n.optionsField]=c),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...c)=>r.filterOptions&&r.filterOptions(...c)),onFocus:e[2]||(e[2]=(...c)=>r.activeSelection&&r.activeSelection(...c)),onBlur:e[3]||(e[3]=(...c)=>r.hide&&r.hide(...c))},null,42,$j),[[a.vModelText,s.localValue[n.optionsField]]]),a.withDirectives(a.createElementVNode("div",{ref:"filter-select-options",class:a.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":s.direction==="down","filter-select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(a.openBlock(),a.createElementBlock("ul",Nj,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localOptions,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d,ref_for:!0,ref:`${c[n.optionsField]}-${d}`,class:"option__text",onMousedown:e[4]||(e[4]=(...h)=>r.selectItem&&r.selectItem(...h)),onMouseover:h=>r.highlightOnMouseOver(d),onMouseout:e[5]||(e[5]=h=>r.unhighlightOnMouseOut())},a.toDisplayString(c[n.optionsField]),41,zj))),128))])):(a.openBlock(),a.createElementBlock("ul",Pj,Lj))],2),[[a.vShow,s.active]]),a.createElementVNode("span",{class:a.normalizeClass(s.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)),[[o,r.hide]])],512)}const Rj=re(Bj,[["render",Fj],["__scopeId","data-v-5004e30a"]]),Oue="",Hj={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},Wj={id:"cds-link-button"};function Yj(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",Wj,[a.createElementVNode("button",{class:a.normalizeClass(["link-button__container",r.computedStyle]),onClick:e[0]||(e[0]=o=>r.clickHandler())},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)],!0)],2)])}const ty=re(Hj,[["render",Yj],["__scopeId","data-v-17beab84"]]),Due="",jj={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},Uj={id:"cds-pulsar"};function qj(t,e,n,i,s,r){const o=a.resolveDirective("cds-floatify");return a.withDirectives((a.openBlock(),a.createElementBlock("div",Uj,[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[a.createElementVNode("div",{class:a.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const ny=re(jj,[["render",qj],["__scopeId","data-v-6f878a26"]]),Eue="",Gj={components:{CdsPulsar:ny,CdsIcon:Ze},directives:{"on-click-outside":Mr.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},url:{type:String,default:"",required:!0},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t}},mounted(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,window.addEventListener("scroll",this.startAnimation,!1)},methods:{startAnimation(){this.isScrolledIntoView()&&(document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation))},isScrolledIntoView(){const t=window.scrollY,e=t+window.innerHeight,n=document.getElementById(this.id).getBoundingClientRect();this.boxTop||(this.boxTop=n.top);const i=this.boxTop;return i+18<=e&&i>=t},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},Kj=["id"],Zj=["id"],Xj={key:0},Jj={key:1},Qj={key:0,class:"floating-assistant__content"},eU={class:"floating-assistant__footer"},tU=["href"],nU={key:1,class:"floating-assistant__subtitle"},iU={key:2};function sU(t,e,n,i,s,r){const o=a.resolveComponent("cds-pulsar"),c=a.resolveComponent("cds-icon"),d=a.resolveDirective("on-click-outside"),h=a.resolveDirective("cds-floatify");return a.openBlock(),a.createElementBlock("div",{id:s.id,class:a.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[a.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),a.withDirectives((a.openBlock(),a.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>r.expand&&r.expand(...f))},[s.waitingConfirmation?(a.openBlock(),a.createElementBlock("div",Xj,[a.createTextVNode(" Ocultar dica para sempre? "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>r.confirmationHandle(!0))}," Sim ",2),a.createTextVNode(" / "),a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>r.confirmationHandle(!1))}," N\xE3o ",2)])):(a.openBlock(),a.createElementBlock("div",Jj,[a.createElementVNode("span",{class:a.normalizeClass(`floating-assistant__title--${n.variant}`)},a.toDisplayString(n.title),3),s.isExpanded?(a.openBlock(),a.createElementBlock("div",Qj,[a.renderSlot(t.$slots,"default",{},void 0,!0),a.createElementVNode("span",eU,[a.createTextVNode(" Voc\xEA pode saber mais "),a.createElementVNode("a",{class:a.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,tU),a.createTextVNode(". ")])])):(a.openBlock(),a.createElementBlock("span",nU," Clique para mais informa\xE7\xF5es "))])),s.isExpanded?(a.openBlock(),a.createElementBlock("div",iU,[a.createElementVNode("div",{onClick:e[2]||(e[2]=a.withModifiers((...f)=>r.close&&r.close(...f),["stop"]))},[a.createVNode(c,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):a.createCommentVNode("",!0)],2)),[[d,r.collapse]])],8,Zj)),[[h,s.pulsarId,s.position]])],10,Kj)}const rU=re(Gj,[["render",sU],["__scopeId","data-v-544de446"]]),Bue="",L0={props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}}},iy=()=>{a.useCssVars(t=>({ba3cfafc:t.chartProgressValue}))},sy=L0.setup;L0.setup=sy?(t,e)=>(iy(),sy(t,e)):iy;const aU=L0,oU={class:"responsive-container"},lU=a.createStaticVNode('<linearGradient id="gradient" x1="0" y1="0" x2="0" y2="100%" gradientTransform="rotate(-340)" data-v-f4b6afdc><stop class="stop" offset="1%" data-v-f4b6afdc></stop><stop class="stop-2" offset="99%" data-v-f4b6afdc></stop></linearGradient><g transform="scale(1.20) translate(-9.5 -12)" data-v-f4b6afdc><path class="indicator-bar" d="M30,90 A40,40 0 1,1 80,90" fill="none" data-v-f4b6afdc></path><path fill="none" class="indicator-progress" d="M30,90 A40,40 0 1,1 80,90" data-v-f4b6afdc></path></g>',2),cU={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},dU={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function uU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",oU,[a.createElementVNode("div",{class:"gauge-chart",style:a.normalizeStyle(r.progressStyle)},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100"},[lU,a.createElementVNode("text",cU,a.toDisplayString(r.formatedValue),1),a.createElementVNode("text",dU,a.toDisplayString(n.subtitle),1)],2))],4)])])}const hU=re(aU,[["render",uU],["__scopeId","data-v-f4b6afdc"]]),Tue="",fU={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0}},computed:{dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}}};function pU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["highlight__container",r.dynamicHighlightClass]),style:a.normalizeStyle(r.dynamicStyle)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],6)}const mU=re(fU,[["render",pU],["__scopeId","data-v-91b540f7"]]),Vue="",ry=["sm","md","lg"],gU={components:{CdsIcon:Ze,CdsTooltip:Lc},props:{size:{type:String,default:"md",validator:t=>ry.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:ry,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},watch:{disabled:{handler(t,e){t!==e&&(t===!0?this.innerTooltipText=null:this.innerTooltipText=this.tooltipText)},immediate:!0}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},_U={id:"cds-icon-button"};function yU(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("span",_U,[a.createVNode(c,{text:s.innerTooltipText},{default:a.withCtx(()=>[a.createElementVNode("button",{class:a.normalizeClass(["cds-icon-button__container",r.computedModifiers]),onClick:e[0]||(e[0]=(...d)=>r.clickHandler&&r.clickHandler(...d))},[(a.openBlock(),a.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"])])}const vU=re(gU,[["render",yU],["__scopeId","data-v-1e718423"]]);var F0={exports:{}};(function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,r=2,o=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",b="[object GeneratorFunction]",k="[object Map]",C="[object Number]",S="[object Null]",E="[object Object]",A="[object Promise]",x="[object Proxy]",V="[object RegExp]",N="[object Set]",L="[object String]",F="[object Symbol]",q="[object Undefined]",ee="[object WeakMap]",ne="[object ArrayBuffer]",K="[object DataView]",ie="[object Float32Array]",me="[object Float64Array]",J="[object Int8Array]",he="[object Int16Array]",fe="[object Int32Array]",ye="[object Uint8Array]",we="[object Uint8ClampedArray]",R="[object Uint16Array]",pe="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,ge={};ge[ie]=ge[me]=ge[J]=ge[he]=ge[fe]=ge[ye]=ge[we]=ge[R]=ge[pe]=!0,ge[c]=ge[d]=ge[ne]=ge[f]=ge[K]=ge[m]=ge[g]=ge[y]=ge[k]=ge[C]=ge[E]=ge[V]=ge[N]=ge[L]=ge[ee]=!1;var Ne=typeof cn=="object"&&cn&&cn.Object===Object&&cn,lt=typeof self=="object"&&self&&self.Object===Object&&self,Le=Ne||lt||Function("return this")(),ht=e&&!e.nodeType&&e,It=ht&&!0&&t&&!t.nodeType&&t,kt=It&&It.exports===ht,tt=kt&&Ne.process,st=function(){try{return tt&&tt.binding&&tt.binding("util")}catch{}}(),rt=st&&st.isTypedArray;function Yt(v,O){for(var I=-1,U=v==null?0:v.length,Be=0,ke=[];++I<U;){var Re=v[I];O(Re,I,v)&&(ke[Be++]=Re)}return ke}function ft(v,O){for(var I=-1,U=O.length,Be=v.length;++I<U;)v[Be+I]=O[I];return v}function Ct(v,O){for(var I=-1,U=v==null?0:v.length;++I<U;)if(O(v[I],I,v))return!0;return!1}function tn(v,O){for(var I=-1,U=Array(v);++I<v;)U[I]=O(I);return U}function nn(v){return function(O){return v(O)}}function bt(v,O){return v.has(O)}function nt(v,O){return v==null?void 0:v[O]}function Nt(v){var O=-1,I=Array(v.size);return v.forEach(function(U,Be){I[++O]=[Be,U]}),I}function Ot(v,O){return function(I){return v(O(I))}}function At(v){var O=-1,I=Array(v.size);return v.forEach(function(U){I[++O]=U}),I}var Dt=Array.prototype,un=Function.prototype,$t=Object.prototype,te=Le["__core-js_shared__"],Ie=un.toString,We=$t.hasOwnProperty,pn=function(){var v=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),Vn=$t.toString,jn=RegExp("^"+Ie.call(We).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=kt?Le.Buffer:void 0,le=Le.Symbol,ve=Le.Uint8Array,W=$t.propertyIsEnumerable,B=Dt.splice,Y=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,Ce=j?j.isBuffer:void 0,Ye=Ot(Object.keys,Object),at=Mn(Le,"DataView"),xt=Mn(Le,"Map"),sn=Mn(Le,"Promise"),Gt=Mn(Le,"Set"),Un=Mn(Le,"WeakMap"),pt=Mn(Object,"create"),In=mn(at),xn=mn(xt),ni=mn(sn),Hi=mn(Gt),Ms=mn(Un),oo=le?le.prototype:void 0,Jr=oo?oo.valueOf:void 0;function rn(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Gl(){this.__data__=pt?pt(null):{},this.size=0}function Kl(v){var O=this.has(v)&&delete this.__data__[v];return this.size-=O?1:0,O}function Zl(v){var O=this.__data__;if(pt){var I=O[v];return I===i?void 0:I}return We.call(O,v)?O[v]:void 0}function Xl(v){var O=this.__data__;return pt?O[v]!==void 0:We.call(O,v)}function Jl(v,O){var I=this.__data__;return this.size+=this.has(v)?0:1,I[v]=pt&&O===void 0?i:O,this}rn.prototype.clear=Gl,rn.prototype.delete=Kl,rn.prototype.get=Zl,rn.prototype.has=Xl,rn.prototype.set=Jl;function an(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function Ql(){this.__data__=[],this.size=0}function ec(v){var O=this.__data__,I=Ds(O,v);if(I<0)return!1;var U=O.length-1;return I==U?O.pop():B.call(O,I,1),--this.size,!0}function tc(v){var O=this.__data__,I=Ds(O,v);return I<0?void 0:O[I][1]}function nc(v){return Ds(this.__data__,v)>-1}function ic(v,O){var I=this.__data__,U=Ds(I,v);return U<0?(++this.size,I.push([v,O])):I[U][1]=O,this}an.prototype.clear=Ql,an.prototype.delete=ec,an.prototype.get=tc,an.prototype.has=nc,an.prototype.set=ic;function Sn(v){var O=-1,I=v==null?0:v.length;for(this.clear();++O<I;){var U=v[O];this.set(U[0],U[1])}}function or(){this.size=0,this.__data__={hash:new rn,map:new(xt||an),string:new rn}}function sc(v){var O=An(this,v).delete(v);return this.size-=O?1:0,O}function lr(v){return An(this,v).get(v)}function rc(v){return An(this,v).has(v)}function ac(v,O){var I=An(this,v),U=I.size;return I.set(v,O),this.size+=I.size==U?0:1,this}Sn.prototype.clear=or,Sn.prototype.delete=sc,Sn.prototype.get=lr,Sn.prototype.has=rc,Sn.prototype.set=ac;function cr(v){var O=-1,I=v==null?0:v.length;for(this.__data__=new Sn;++O<I;)this.add(v[O])}function Qr(v){return this.__data__.set(v,i),this}function Os(v){return this.__data__.has(v)}cr.prototype.add=cr.prototype.push=Qr,cr.prototype.has=Os;function ii(v){var O=this.__data__=new an(v);this.size=O.size}function ea(){this.__data__=new an,this.size=0}function oc(v){var O=this.__data__,I=O.delete(v);return this.size=O.size,I}function lc(v){return this.__data__.get(v)}function cc(v){return this.__data__.has(v)}function lo(v,O){var I=this.__data__;if(I instanceof an){var U=I.__data__;if(!xt||U.length<n-1)return U.push([v,O]),this.size=++I.size,this;I=this.__data__=new Sn(U)}return I.set(v,O),this.size=I.size,this}ii.prototype.clear=ea,ii.prototype.delete=oc,ii.prototype.get=lc,ii.prototype.has=cc,ii.prototype.set=lo;function co(v,O){var I=dr(v),U=!I&&na(v),Be=!I&&!U&&ur(v),ke=!I&&!U&&!Be&&Co(v),Re=I||U||Be||ke,Ge=Re?tn(v.length,String):[],He=Ge.length;for(var Xe in v)(O||We.call(v,Xe))&&!(Re&&(Xe=="length"||Be&&(Xe=="offset"||Xe=="parent")||ke&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||go(Xe,He)))&&Ge.push(Xe);return Ge}function Ds(v,O){for(var I=v.length;I--;)if(wo(v[I][0],O))return I;return-1}function Es(v,O,I){var U=O(v);return dr(v)?U:ft(U,I(v))}function Bs(v){return v==null?v===void 0?q:S:Y&&Y in Object(v)?wi(v):bo(v)}function ta(v){return Ci(v)&&Bs(v)==c}function Ts(v,O,I,U,Be){return v===O?!0:v==null||O==null||!Ci(v)&&!Ci(O)?v!==v&&O!==O:uo(v,O,I,U,Ts,Be)}function uo(v,O,I,U,Be,ke){var Re=dr(v),Ge=dr(O),He=Re?d:ki(v),Xe=Ge?d:ki(O);He=He==c?E:He,Xe=Xe==c?E:Xe;var zt=He==E,gn=Xe==E,Ft=He==Xe;if(Ft&&ur(v)){if(!ur(O))return!1;Re=!0,zt=!1}if(Ft&&!zt)return ke||(ke=new ii),Re||Co(v)?Vs(v,O,I,U,Be,ke):uc(v,O,He,I,U,Be,ke);if(!(I&s)){var gt=zt&&We.call(v,"__wrapped__"),Qt=gn&&We.call(O,"__wrapped__");if(gt||Qt){var Yi=gt?v.value():v,xi=Qt?O.value():O;return ke||(ke=new ii),Be(Yi,xi,I,U,ke)}}return Ft?(ke||(ke=new ii),po(v,O,I,U,Be,ke)):!1}function dc(v){if(!ko(v)||yo(v))return!1;var O=hr(v)?jn:Ee;return O.test(mn(v))}function ho(v){return Ci(v)&&sa(v.length)&&!!ge[Bs(v)]}function fo(v){if(!vo(v))return Ye(v);var O=[];for(var I in Object(v))We.call(v,I)&&I!="constructor"&&O.push(I);return O}function Vs(v,O,I,U,Be,ke){var Re=I&s,Ge=v.length,He=O.length;if(Ge!=He&&!(Re&&He>Ge))return!1;var Xe=ke.get(v);if(Xe&&ke.get(O))return Xe==O;var zt=-1,gn=!0,Ft=I&r?new cr:void 0;for(ke.set(v,O),ke.set(O,v);++zt<Ge;){var gt=v[zt],Qt=O[zt];if(U)var Yi=Re?U(Qt,gt,zt,O,v,ke):U(gt,Qt,zt,v,O,ke);if(Yi!==void 0){if(Yi)continue;gn=!1;break}if(Ft){if(!Ct(O,function(xi,as){if(!bt(Ft,as)&&(gt===xi||Be(gt,xi,I,U,ke)))return Ft.push(as)})){gn=!1;break}}else if(!(gt===Qt||Be(gt,Qt,I,U,ke))){gn=!1;break}}return ke.delete(v),ke.delete(O),gn}function uc(v,O,I,U,Be,ke,Re){switch(I){case K:if(v.byteLength!=O.byteLength||v.byteOffset!=O.byteOffset)return!1;v=v.buffer,O=O.buffer;case ne:return!(v.byteLength!=O.byteLength||!ke(new ve(v),new ve(O)));case f:case m:case C:return wo(+v,+O);case g:return v.name==O.name&&v.message==O.message;case V:case L:return v==O+"";case k:var Ge=Nt;case N:var He=U&s;if(Ge||(Ge=At),v.size!=O.size&&!He)return!1;var Xe=Re.get(v);if(Xe)return Xe==O;U|=r,Re.set(v,O);var zt=Vs(Ge(v),Ge(O),U,Be,ke,Re);return Re.delete(v),zt;case F:if(Jr)return Jr.call(v)==Jr.call(O)}return!1}function po(v,O,I,U,Be,ke){var Re=I&s,Ge=Wi(v),He=Ge.length,Xe=Wi(O),zt=Xe.length;if(He!=zt&&!Re)return!1;for(var gn=He;gn--;){var Ft=Ge[gn];if(!(Re?Ft in O:We.call(O,Ft)))return!1}var gt=ke.get(v);if(gt&&ke.get(O))return gt==O;var Qt=!0;ke.set(v,O),ke.set(O,v);for(var Yi=Re;++gn<He;){Ft=Ge[gn];var xi=v[Ft],as=O[Ft];if(U)var fc=Re?U(as,xi,Ft,O,v,ke):U(xi,as,Ft,v,O,ke);if(!(fc===void 0?xi===as||Be(xi,as,I,U,ke):fc)){Qt=!1;break}Yi||(Yi=Ft=="constructor")}if(Qt&&!Yi){var aa=v.constructor,hn=O.constructor;aa!=hn&&"constructor"in v&&"constructor"in O&&!(typeof aa=="function"&&aa instanceof aa&&typeof hn=="function"&&hn instanceof hn)&&(Qt=!1)}return ke.delete(v),ke.delete(O),Qt}function Wi(v){return Es(v,ra,mo)}function An(v,O){var I=v.__data__;return _o(O)?I[typeof O=="string"?"string":"hash"]:I.map}function Mn(v,O){var I=nt(v,O);return dc(I)?I:void 0}function wi(v){var O=We.call(v,Y),I=v[Y];try{v[Y]=void 0;var U=!0}catch{}var Be=Vn.call(v);return U&&(O?v[Y]=I:delete v[Y]),Be}var mo=se?function(v){return v==null?[]:(v=Object(v),Yt(se(v),function(O){return W.call(v,O)}))}:mt,ki=Bs;(at&&ki(new at(new ArrayBuffer(1)))!=K||xt&&ki(new xt)!=k||sn&&ki(sn.resolve())!=A||Gt&&ki(new Gt)!=N||Un&&ki(new Un)!=ee)&&(ki=function(v){var O=Bs(v),I=O==E?v.constructor:void 0,U=I?mn(I):"";if(U)switch(U){case In:return K;case xn:return k;case ni:return A;case Hi:return N;case Ms:return ee}return O});function go(v,O){return O=O??o,!!O&&(typeof v=="number"||Me.test(v))&&v>-1&&v%1==0&&v<O}function _o(v){var O=typeof v;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?v!=="__proto__":v===null}function yo(v){return!!pn&&pn in v}function vo(v){var O=v&&v.constructor,I=typeof O=="function"&&O.prototype||$t;return v===I}function bo(v){return Vn.call(v)}function mn(v){if(v!=null){try{return Ie.call(v)}catch{}try{return v+""}catch{}}return""}function wo(v,O){return v===O||v!==v&&O!==O}var na=ta(function(){return arguments}())?ta:function(v){return Ci(v)&&We.call(v,"callee")&&!W.call(v,"callee")},dr=Array.isArray;function ia(v){return v!=null&&sa(v.length)&&!hr(v)}var ur=Ce||ct;function hc(v,O){return Ts(v,O)}function hr(v){if(!ko(v))return!1;var O=Bs(v);return O==y||O==b||O==h||O==x}function sa(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function ko(v){var O=typeof v;return v!=null&&(O=="object"||O=="function")}function Ci(v){return v!=null&&typeof v=="object"}var Co=rt?nn(rt):ho;function ra(v){return ia(v)?co(v):fo(v)}function mt(){return[]}function ct(){return!1}t.exports=hc})(F0,F0.exports);const jl=F0.exports,ay=[{name:"turquoise",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"teal",hex:"#3CACDD",lighterHex:"#C2EDFF"},{name:"green",hex:"#2AC092",lighterHex:"#ABEDD9"},{name:"blue",hex:"#377EE1",lighterHex:"#B6D1F7"},{name:"indigo",hex:"#6174D1",lighterHex:"#CED6FD"},{name:"violet",hex:"#A169D3",lighterHex:"#E6D2F9"},{name:"pink",hex:"#DD5A9C",lighterHex:"#F9C8E2"},{name:"red",hex:"#F95367",lighterHex:"#FBD0D6"},{name:"orange",hex:"#FF8567",lighterHex:"#FFD6CC"},{name:"amber",hex:"#FFB952",lighterHex:"#FFE2B8"},{name:"gray",hex:"#9AA8B6",lighterHex:"#ABB8C4"}],Kr=ay.map(t=>t.name),Ul=t=>{const e=ay.filter(n=>n.name===t)[0];return e?e.hex:""},Iue="",bU={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Jt(n.title)||Jt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,getSlotName(t){return t.name},handleClick(t,e){this.$emit("change",{event:t,item:e}),this.internalActiveTab=e},isActive(t){return jl(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},wU={id:"inner-tabs"},kU={class:"inner-tabs__header-container"},CU={class:"inner-tabs__header"},xU=["onClick"],SU={class:"inner-tabs__content"};function MU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",wU,[a.createElementVNode("div",kU,[a.createElementVNode("ul",CU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("li",{key:`${c}-${o.name}-tab`,role:"presentation"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>r.handleClick(d,o)},a.toDisplayString(o.title),11,xU),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(o)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)]))),128))])]),a.createElementVNode("div",SU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:`${c}-${o.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(o)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(o))],2))),128))])])}const OU=re(bU,[["render",MU]]),Aue="",io=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),R0={components:{VDatePicker:Z5,CdsChevron:Ca,CdsIcon:Ze},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||io(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||io(t)},maxDate:{type:String,default:"",validator:t=>t===""||io(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Hn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:ts,updateColorData(){this.variantColorData=this.paleteBuilder(Hn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=io(this.modelValue.start)&&io(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=io(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||bi.exports.isEmpty(t)?null:`${t.start} a ${t.end}`}}},oy=()=>{a.useCssVars(t=>({"095920b7":t.inlineCalendarTrailColor,d9326188:t.inlineCalendarTextColor,f40e7458:t.inlineCalendarDotColor}))},ly=R0.setup;R0.setup=ly?(t,e)=>(oy(),ly(t,e)):oy;const DU=R0,EU={key:0},BU={key:1,class:"inline-date-input__label"},TU={class:"label__content",for:"cds-text-input"},VU=["value","disabled","placeholder","onClick"],IU={class:"inline-date-input__icon"};function AU(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("v-date-picker");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["inline-date-input__container",r.dateInputClassContainer])},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",EU,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",BU,[a.createElementVNode("div",TU,[a.createElementVNode("span",null,a.toDisplayString(r.capitalizedLabel)+": ",1)])]))]),a.createVNode(d,{id:"cds--inline-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),r.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":a.withCtx(({page:h})=>[a.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:a.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[a.createElementVNode("div",{class:a.normalizeClass(r.inputClass)},[a.createElementVNode("input",a.mergeProps({value:r.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},a.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,VU),a.createElementVNode("div",IU,[a.createVNode(c,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const $U=re(DU,[["render",AU],["__scopeId","data-v-87626b06"]]),$ue="",NU={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},zU=["href","target"];function PU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[a.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[a.renderSlot(t.$slots,"default",{class:"link__text"},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])],8,zU)],2)}const uu=re(NU,[["render",PU]]),Nue="",LU={},FU=[(t=>(a.pushScopeId("data-v-59f3ef96"),t=t(),a.popScopeId(),t))(()=>a.createElementVNode("div",{class:"loading-bar__container"},[a.createElementVNode("div",{class:"loading-bar"})],-1))];function RU(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,FU)}const HU=re(LU,[["render",RU],["__scopeId","data-v-59f3ef96"]]),Lue="",WU={class:"mobile-navigation__header"},YU={class:"mobile-navigation__title"},jU={class:"mobile-navigation__sidebar-header"},UU={class:"mobile-navigation__sidebar-logo"},qU=["src"],GU={class:"mobile-navigation__sidebar-content"},KU={class:"mobile-navigation__sidebar-items"},ZU={class:"mobile-navigation__sidebar-footer"},XU={class:"mobile-navigation__sidebar-user-text"},JU=re({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,i=e,s=a.ref(n.activeItem),r=a.ref(!1),o=a.computed(()=>n.light?"light":"dark"),c=a.computed(()=>{let k=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(k+=" mobile-navigation--sticky"),k});a.watch(r,async(k,C)=>{k!==C&&b(k)}),a.watch(()=>n.activeItem,k=>{s.value=k});const d=()=>{r.value=!0},h=()=>{r.value=!1},f=k=>bi.exports.isEqual(k,s.value),m=k=>{bi.exports.isEmpty(n.activeItem)&&(s.value=k),r.value=!1,i("item-click",k)},g=({route:k,path:C})=>{const S=bi.exports.isEmpty(k)?C:k;return S instanceof String?{path:S}:S},y=k=>g(k)?g(k).path:null,b=k=>{document.body.style.overflow=k?"hidden":"auto"};return(k,C)=>{const S=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(c.value)},[a.createElementVNode("div",{class:a.normalizeClass(`variant-resolver--${t.variant}`)},[a.createElementVNode("div",WU,[a.createElementVNode("div",YU,a.toDisplayString(s.value.label??""),1),a.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[a.createVNode(Ze,{name:"menu-outline"})])]),a.createElementVNode("div",{class:a.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":r.value}])},[a.createElementVNode("div",jU,[a.createElementVNode("div",UU,[a.renderSlot(k.$slots,"sidebar-logo",{},()=>[a.createElementVNode("img",{src:t.sidebarLogo},null,8,qU)],!0)]),a.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[a.createVNode(Ze,{name:"x-outline"})])]),a.createElementVNode("div",GU,[a.createElementVNode("div",KU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,E=>(a.openBlock(),a.createBlock(S,{key:E.label,to:y(E),class:a.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(E)}]),onClick:A=>m(E)},{default:a.withCtx(()=>[a.createVNode(Ze,{name:E.icon,width:"24",height:"24"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),a.createElementVNode("div",ZU,[a.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:C[0]||(C[0]=E=>i("profile-click"))},[a.createVNode(Zo,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),a.createElementVNode("div",XU,[a.createElementVNode("p",null,a.toDisplayString(t.user.name??""),1),a.createElementVNode("p",null,a.toDisplayString(t.user.role??""),1)])]),a.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:C[1]||(C[1]=E=>i("logout"))},[a.createVNode(Ze,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),Rue="",QU=["teal","green","blue","indigo","violet","pink","red","orange","amber"],eq={directives:{"on-click-outside":Mr.directive},components:{CdsIcon:Ze,CdsButton:Sr,CdsScrollable:C1},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"T\xEDtulo"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>QU.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)}}},tq={key:0,class:"cds-modal__backdrop"},nq={key:0},iq={class:"cds-modal__header"},sq={key:1,class:"cds-modal__body"},rq={key:1,class:"cds-modal__footer"};function aq(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-scrollable"),d=a.resolveComponent("cds-button"),h=a.resolveDirective("on-click-outside");return s.innerValue?(a.openBlock(),a.createElementBlock("div",tq,[s.innerValue?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("header",nq,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",iq,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),n.noCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>r.closeHandle&&r.closeHandle(...f))},[a.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),a.createElementVNode("section",null,[n.scrollable?(a.openBlock(),a.createBlock(c,{key:0,class:"cds-modal__body"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(a.openBlock(),a.createElementBlock("div",sq,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",rq,[a.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:r.closeHandle())},null,8,["text","disabled"])),a.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:r.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:r.closeHandle]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}const oq=re(eq,[["render",aq],["__scopeId","data-v-a163b3e8"]]);function H0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function lq(t){return(...e)=>!t(...e)}function cq(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function cy(t,e,n,i){return e?t.filter(s=>cq(i(s,n),e)).sort((s,r)=>i(s,n).length-i(r,n).length):t}function dq(t){return t.filter(e=>!e.$isLabel)}function W0(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function uq(t,e,n,i,s){return r=>r.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const c=cy(o[n],t,e,s);return c.length?{[i]:o[i],[n]:c}:[]})}const dy=(...t)=>e=>t.reduce((n,i)=>i(n),e);var hq={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return H0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):cy(n,e,this.label,this.customLabel):n=this.groupValues?W0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(lq(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return dy(uq(e,n,this.groupValues,this.groupLabel,this.customLabel),W0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return dy(W0(this.groupValues,this.groupLabel),dq)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(H0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return H0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(!!e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){!this.isOpen||(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},fq={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){!this.closeOnSelect||(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},uy={name:"vue-multiselect",mixins:[hq,fq],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const pq={ref:"tags",class:"multiselect__tags"},mq={class:"multiselect__tags-wrap"},gq={class:"multiselect__spinner"},_q={key:0},yq={class:"multiselect__option"},vq={class:"multiselect__option"},bq=a.createTextVNode("No elements found. Consider changing the search query."),wq={class:"multiselect__option"},kq=a.createTextVNode("List is empty.");function Cq(t,e,n,i,s,r){return a.openBlock(),a.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=a.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[a.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[a.createVNode("div",{onMousedown:e[1]||(e[1]=a.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),a.renderSlot(t.$slots,"clear",{search:t.search}),a.createVNode("div",pq,[a.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[a.withDirectives(a.createVNode("div",mq,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(r.visibleValues,(o,c)=>a.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(a.openBlock(),a.createBlock("span",{class:"multiselect__tag",key:c},[a.createVNode("span",{textContent:a.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),a.createVNode("i",{tabindex:"1",onKeypress:a.withKeys(a.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:a.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[a.vShow,r.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?a.renderSlot(t.$slots,"limit",{key:0},()=>[a.createVNode("strong",{class:"multiselect__strong",textContent:a.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):a.createCommentVNode("v-if",!0)]),a.createVNode(a.Transition,{name:"multiselect__loading"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"loading",{},()=>[a.withDirectives(a.createVNode("div",gq,null,512),[[a.vShow,n.loading]])])]),_:3}),t.searchable?(a.openBlock(),a.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:r.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=a.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=a.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=a.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=a.withKeys(a.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=a.withKeys(a.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=a.withKeys(a.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=a.withKeys(a.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):a.createCommentVNode("v-if",!0),r.isSingleLabelVisible?(a.openBlock(),a.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"singleLabel",{option:r.singleValue},()=>[a.createTextVNode(a.toDisplayString(t.currentOptionLabel),1)])],32)):a.createCommentVNode("v-if",!0),r.isPlaceholderVisible?(a.openBlock(),a.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=a.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[a.renderSlot(t.$slots,"placeholder",{},()=>[a.createTextVNode(a.toDisplayString(t.placeholder),1)])],32)):a.createCommentVNode("v-if",!0)],512),a.createVNode(a.Transition,{name:"multiselect"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=a.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[a.createVNode("ul",{class:"multiselect__content",style:r.contentStyle,role:"listbox",id:"listbox-"+t.id},[a.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(a.openBlock(),a.createBlock("li",_q,[a.createVNode("span",yq,[a.renderSlot(t.$slots,"maxElements",{},()=>[a.createTextVNode("Maximum of "+a.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):a.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(a.openBlock(!0),a.createBlock(a.Fragment,{key:1},a.renderList(t.filteredOptions,(o,c)=>(a.openBlock(),a.createBlock("li",{class:"multiselect__element",key:c,id:t.id+"-"+c,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("span",{key:0,class:[t.optionHighlight(c,o),"multiselect__option"],onClick:a.withModifiers(d=>t.select(o),["stop"]),onMouseenter:a.withModifiers(d=>t.pointerSet(c),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(a.openBlock(),a.createBlock("span",{key:1,"data-select":t.groupSelect&&r.selectGroupLabelText,"data-deselect":t.groupSelect&&r.deselectGroupLabelText,class:[t.groupHighlight(c,o),"multiselect__option"],onMouseenter:a.withModifiers(d=>t.groupSelect&&t.pointerSet(c),["self"]),onMousedown:a.withModifiers(d=>t.selectGroup(o),["prevent"])},[a.renderSlot(t.$slots,"option",{option:o,search:t.search,index:c},()=>[a.createVNode("span",null,a.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):a.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):a.createCommentVNode("v-if",!0),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",vq,[a.renderSlot(t.$slots,"noResult",{search:t.search},()=>[bq])])],512),[[a.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),a.withDirectives(a.createVNode("li",null,[a.createVNode("span",wq,[a.renderSlot(t.$slots,"noOptions",{},()=>[kq])])],512),[[a.vShow,n.showNoOptions&&(t.options.length===0||r.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),a.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[a.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}uy.render=Cq;const Hue="",Wue="",so=0,ro=1,hu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),Y0={components:{Multiselect:uy,CdsDivider:Nc,CdsCheckbox:qh,CdsSpacer:Ld},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},state:{type:String,default:"default"},options:{type:Array,required:!0},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:hu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Hn,uniqueKey:zc()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} op\xE7\xF5es selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer sele\xE7\xE3o":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais op\xE7\xF5es"},isGroupMode(){return this.internalOptions[so]&&this.internalOptions[so].$status||this.internalOptions[ro]&&this.internalOptions[ro].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0}},watch:{selectedValue(t){const e=hu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[so].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[ro].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[so].options=this.internalOptions[so].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[ro].options=this.internalOptions[ro].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=hu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=hu(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"N\xE3o selecionados",options:[]}],this.internalOptions[so].options=this.selectedValue,this.internalOptions[ro].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},hy=()=>{a.useCssVars(t=>({"7b3aebae":t.inputBackgroundColor}))},fy=Y0.setup;Y0.setup=fy?(t,e)=>(hy(),fy(t,e)):hy;const xq=Y0,Sq=["data-cds-multiselect-identifier"],Mq={key:0},Oq={key:1,class:"clustered-multiselect__label"},Dq=["for"],Eq={key:0,class:"label__required-indicator"},Bq={key:1,class:"cds-multiselect__grouped-divider"},Tq={key:0,class:"cds-multiselect__group-label"},Vq={key:1,class:"cds-multiselect__option"},Iq={class:"option__checkbox"},Aq=["id","onUpdate:modelValue","name"],$q=["id","for","onClick"],Nq={key:0,class:"multiselect__single"},zq={key:1},Pq={key:0,class:"clustered-multiselect__error-message"};function Lq(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-spacer"),d=a.resolveComponent("cds-divider"),h=a.resolveComponent("multiselect",!0);return a.openBlock(),a.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",Mq,[a.renderSlot(t.$slots,"label")])):(a.openBlock(),a.createElementBlock("label",Oq,[a.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",Eq," * ")):a.createCommentVNode("",!0)],8,Dq)]))]),a.createVNode(h,a.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},r.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:r.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:r.handleClose,onSelect:r.selectItem,onRemove:r.unselectItem,onSearchChange:r.handleSearchChange}),{beforeList:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",null,[n.hideSelectAll?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>r.toggleSelectAll&&r.toggleSelectAll(...f))},[a.createVNode(c,{"margin-left":"2"},{default:a.withCtx(()=>[a.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:r.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),r.isGroupMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Bq,[a.createVNode(d,{dimmed:""})]))],512),[[a.vShow,!s.queryString&&n.options.length]])]),option:a.withCtx(({option:f})=>[f.$isLabel?(a.openBlock(),a.createElementBlock("div",Tq,[a.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(a.openBlock(),a.createElementBlock("div",Vq,[a.createElementVNode("div",Iq,[a.withDirectives(a.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,Aq),[[a.vModelCheckbox,f.isSelected]]),a.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:a.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>r.addItemViaCustomCheckbox(f)},null,10,$q)]),a.createTextVNode(" "+a.toDisplayString(f[n.optionsField]),1)]))]),selection:a.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(a.openBlock(),a.createElementBlock("span",Nq,a.toDisplayString(r.selectedFancyMessage(f.length)),1)):(a.openBlock(),a.createElementBlock("span",zq))]),noResult:a.withCtx(()=>[a.createTextVNode(' Nenhum resultado encontrado para: "'),a.createElementVNode("strong",null,a.toDisplayString(s.queryString),1),a.createTextVNode('" ')]),noOptions:a.withCtx(()=>[a.createTextVNode(" N\xE3o h\xE1 nenhuma op\xE7\xE3o para ser exibida. ")]),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",Pq,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],8,Sq)}const Fq=re(xq,[["render",Lq]]),Yue="",Rq={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Jt(n.path)&&Jt(n.route),s=Jt(n.items)||n.items.filter(r=>Jt(r.path)&&Jt(r.route)).length;return Jt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return jl(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},Hq={id:"nav-bar"};function Wq(t,e,n,i,s,r){const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",Hq,[a.createElementVNode("ul",{class:a.normalizeClass({"nav-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:`${d}-${c.name}-item`,role:"presentation",class:a.normalizeClass(["nav-bar__item-container",r.isActive(c)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[a.createVNode(o,{to:r.routerPushTo(c),class:a.normalizeClass(["nav-bar__item",r.isActive(c)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>r.handleClick(h,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["to","class","onClick"]),a.createElementVNode("div",{class:a.normalizeClass(r.indicatorClass(c)),style:a.normalizeStyle(r.activeBorderStyle)},null,6)],2))),128))],2)])}const Yq=re(Rq,[["render",Wq]]);var jq=Object.defineProperty,Uq=(t,e,n)=>e in t?jq(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,py=(t,e,n)=>(Uq(t,typeof e!="symbol"?e+"":e,n),n);const fu={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},my=["+","-"],gy=["decimal","thousands","prefix","suffix"];function Zr(t){return Math.max(0,Math.min(t,1e3))}function pu(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function _y(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function qq(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function Gq(t,e,n){return e?t+n+e:t}function Kq(t,e){return my.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function Zq(t){for(const e of gy)if(!Kq(t[e],e))return!1;return!0}function yy(t){for(const e of gy){t[e]=t[e].replace(/\d+/g,"");for(const n of my)t[e]=t[e].replaceAll(n,"")}return t}function vy(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function by(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function wy(t){return/^-?[\d]+$/g.test(t)}function ky(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function Cy(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function xy(t,e){const n=e-vy(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let r=i.length-1;r>=0;r-=1){const o=i.charAt(r);if(o!=="."&&o!=="-"){const c=parseInt(o,10)+1;if(c<10)return Cy(i,r,c);i=Cy(i,r,"0")}}return`1${i}`}return i}function Sy(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function My(t){return new Event(t,{bubbles:!0,cancelable:!1})}function et({debug:t=!1},...e){t&&console.log(...e)}class mu{constructor(e){py(this,"number",0n),py(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?xy(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=by(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=by(e),wy(e))this.number=BigInt(e);else if(ky(e))this.decimal=vy(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new mu(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),r=n.getNumber();return i>0?r=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,r]}}function Xq(t,e=fu,n=""){if(et(e,"utils format() - caller",n),et(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(Zr(e.precision)):t=t.toFixed(Zr(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&wy(t))t=Number(t).toFixed(Zr(e.precision));else if(!e.disableNegative&&t==="-")return t;et(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&ky(s)&&(s=xy(s,0),et(e,"utils format() - !opt.precision && isValidFloat()",s));const r=_y(s);et(e,"utils format() - numbers",r),et(e,"utils format() - numbersToCurrency",i+pu(r,e.precision));const o=new mu(i+pu(r,e.precision));et(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const c=o.toFixed(Zr(e.precision),e.shouldRound);if(et(e,"utils format() - bigNumber2",o.toFixed(Zr(e.precision))),/^0(\.0+)?$/g.test(c)&&e.allowBlank)return"";let[d,h]=c.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=qq(d,e.thousands);const m=e.prefix+Gq(d,h,e.decimal)+e.suffix;return et(e,"utils format() - output",m),m}function Oy(t,e=fu,n=""){if(et(e,"utils unformat() - caller",n),et(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return et(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils unformat() - filtered",s);const r=_y(s);et(e,"utils unformat() - numbers",r);const o=new mu(i+pu(r,e.precision));et(e,"utils unformat() - bigNumber1",r.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let c=o.toFixed(Zr(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(c=parseFloat(c)),et(e,"utils unformat() - output",c),c}const j0=(t,e,n)=>{if(et(e,"directive setValue() - caller",n),!Zq(e)){et(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=Xq(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),Sy(t,i),t.dispatchEvent(My("change"))},Dy=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(et(e,"directive onkeydown() - el.value",n.value),et(e,"directive onkeydown() - backspacePressed",i),et(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&Oy(n.value,e,"directive onkeydown allowBlank")===0&&(et(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(My("change"))),et(e,"directive onkeydown() - e.key",t.key),t.key==="+"){et(e,"directive onkeydown() - unformat el.value",n.value);let r=Oy(n.value,e,"directive onkeydown +");typeof r=="string"&&(r=parseFloat(r)),r<0&&(n.value=String(r*-1))}},Ey=(t,e)=>{const n=t.currentTarget;et(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=pu(n.value,Zr(e.precision)),et(e,"directive oninput() - is 1-9",n.value)),j0(n,e,"directive oninput")},By=(t,e)=>{const n=t.currentTarget;et(e,"directive onFocus()",n.value),e.focusOnRight&&Sy(n,n.value.length-e.suffix.length)},Jq={mounted(t,e){if(!e.value)return;const n=yy({...fu,...e.value});if(et(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{Dy(i,n)},t.oninput=i=>{Ey(i,n)},t.onfocus=i=>{By(i,n)},et(n,"directive mounted() - el.value",t.value),j0(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=yy({...fu,...e.value});t.onkeydown=i=>{Dy(i,n)},t.oninput=i=>{Ey(i,n)},t.onfocus=i=>{By(i,n)},et(n,"directive updated() - el.value",t.value),et(n,"directive updated() - opt",n),j0(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},Qq={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},Xr="__input-facade__";function U0(t){this.masked=this.unmasked=t||""}function Ty(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function q0(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function gu(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function Vy(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[Xr].config.mask))return!1;const r=n.value,o=n.selectionEnd,{oldValue:c}=n[Xr];_u(n,null,{emit:!1},t),eG(t,r,o),c!==n.value&&n.dispatchEvent(Ty())}function eG(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),r=i[Xr]&&i[Xr].config;if(i!==document.activeElement||!s||!r.mask&&!r.masked)return;const o=t.inputType||"insertText",c=["insertText","insertFromPaste"].includes(o),d=c&&n==e.length;let h=c&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function _u(t,e,{emit:n=!0,force:i=!1}={},s){var r,o;let{config:c,oldValue:d,isComposing:h}=t[Xr],f=((o=(r=e==null?void 0:e.data)==null?void 0:r.model)==null?void 0:o.value)||t.value;if(!(c.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(c={...c,short:!0});let m=$y(f,c);if(s&&typeof c.formatter=="function"){const g=c.formatter(m,s);if(typeof g=="string")m=$y(g,c);else if(g===!1){t.value=d;return}}t[Xr].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(Ty())}}let G0=Qq,Iy=!1;try{"a".localeCompare("b","i")}catch(t){Iy=t.name==="RangeError"}function tG(t){t&&(G0=t)}function nG(t,e){const n=e.masks.slice().sort((c,d)=>c.length-d.length),i=c=>Object.assign({},e,c),s=(c,d)=>{const h=K0(t,i({mask:d})),f=c.unmasked.length;return h.unmasked.length>f?h:c};if(!n.length)return new U0;const r=n.shift();let o=K0(t,i({mask:r}));for(;n.length;){const c=n.shift();o=s(o,c)}return o}function K0(t,e){var n,i;let{mask:s="",tokens:r,prefill:o=!1,short:c=!1}=e;r=r?Object.assign({},G0,r):G0;let d=new U0,h=!1,f=0,m=0,g="";function y(b){const k=s[m+1],C=r[k];return{escape:!!(b!=null&&b.escape),optional:!!(C!=null&&C.optional),repeat:!!(C!=null&&C.repeat),...(C==null?void 0:C.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const b=s[m],k=r[b];let C=t[f];const S=y(k);if(k&&!h&&!S.pipe){if(S.escape){h=!0,m++;continue}if(!C)break;if((n=k.pattern)!=null&&n.test(C))C=((i=k.transform)==null?void 0:i.call(k,C))||C,d.unmasked+=C,d.masked+=g+C,g="",S.repeat||(m+=S.optional?2:1);else if(S.optional||S.repeat){m+=2;continue}f++}else if(S.pipe){if(!C)break;const E=S.pipe.find(Ay.bind(null,C));E&&(d.unmasked+=E,d.masked+=g+E,m+=S.pipe.length*2-1,g=""),f++}else Ay(C,b)?(d.masked+=g+b,f++,g="",S.optional&&(d.unmasked+=b)):S.optional||(g+=b),h=!1,m+=S.optional?2:1}return(o&&!d.unmasked||!c&&d.unmasked)&&(d.masked+=g),d}function Ay(t,e){return Iy?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function $y(t,e){return t=(t||"").toString(),e=q0(e),e.mask?Array.isArray(e.mask)?nG(t,Object.assign({},e,{masks:e.mask})):K0(t,e):new U0(t)}const ao=Xr,ql={beforeMount:(t,{value:e,modifiers:n},i)=>{t=gu(t);const s=q0(e,n);t[ao]={config:s},_u(t,i,{force:s.prefill})},mounted:t=>{t=gu(t);const e=t[ao],n=t.parentElement||t,i=r=>{r.target===t&&Vy(r,t)},s=r=>{r.target===t&&(r.type==="compositionend"?(t[ao].isComposing=!1,Vy(r,t)):t[ao].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=gu(t),e!==n?(t[ao].config=q0(e,i),_u(t,s,{force:!0})):_u(t,s)},unmounted:t=>{gu(t)[ao].cleanup()}},iG=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},sG={name:"InputFacade",directives:{facade:ql},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},rG=["value"];function aG(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.withDirectives((a.openBlock(),a.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...c)=>r.onInput&&r.onInput(...c)),onChange:e[1]||(e[1]=(...c)=>r.onChange&&r.onChange(...c)),onKeyup:e[2]||(e[2]=c=>t.$emit("keyup",c)),onKeydown:e[3]||(e[3]=c=>t.$emit("keydown",c)),onPaste:e[4]||(e[4]=c=>t.$emit("paste",c))},null,40,rG)),[[o,r.config]])}const Ny=iG(sG,[["render",aG]]),oG={install(t,e={}){e.tokens&&tG(e.tokens),t.component(Ny.name,Ny),t.directive(e.name||"facade",ql)}};typeof window<"u"&&window.Vue&&window.Vue.use(oG);const jue="",lG={directives:{money:Jq,cdstip:Go,facade:ql},components:{CdsLink:uu,CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else this.mask?this.internalValue=e:e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}},methods:{handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},cG={key:0},dG={class:"label__content",for:"cds-text-input"},uG={key:0,class:"label__required-indicator"},hG=["placeholder","disabled"],fG=["placeholder","disabled"],pG=["placeholder","disabled"],mG={class:"text-input__icon-container"},gG={key:0,class:"text-input__error-message"};function _G(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("money"),m=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",cG,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",dG,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",uG," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),n.linkText?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.money?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,hG)),[[a.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"tel",onFocus:e[4]||(e[4]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[5]||(e[5]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,fG)),[[a.vModelText,s.internalValue],[m,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:2,id:"cds-text-input","onUpdate:modelValue":e[6]||(e[6]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"number",onFocus:e[7]||(e[7]=(...g)=>r.handleFocus&&r.handleFocus(...g)),onBlur:e[8]||(e[8]=(...g)=>r.handleBlur&&r.handleBlur(...g))},null,42,pG)),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",mG,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",gG,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const yG=re(lG,[["render",_G],["__scopeId","data-v-a5e0e913"]]),Uue="",vG={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},bG={class:"overlay"};function wG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",bG,[a.createElementVNode("div",{class:a.normalizeClass(r.computedSpinnerClass)},null,2)])}const kG=re(vG,[["render",wG],["__scopeId","data-v-2022bd33"]]),que="",CG={},xG={class:"page-container__container"};function SG(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",xG,[a.renderSlot(t.$slots,"default",{},void 0,!0)])}const zy=re(CG,[["render",SG],["__scopeId","data-v-2f5908a0"]]),Gue="",MG={components:{CdsIcon:Ze,CdsAvatar:Zo},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=Jt(n.path)&&Jt(n.route),s=Jt(n.items)||n.items.filter(r=>Jt(r.path)&&Jt(r.route)).length;return Jt(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Kr,expandItemControl:0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500)}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Ul,handleClick(t,e){if(this.internalActiveItem=e,!!e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return!!t.items&&t.items.length>0&&(e=t.items.some(i=>jl(i,this.internalActiveItem))),n=jl(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=Jt(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return console.log(this.resolveItemCollapse(t)),this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"}}},OG={class:"side-bar__header"},DG={class:"side-bar__logo"},EG=["src"],BG=["onClick"],TG={key:0,class:"side-bar__subitem-container"},VG={class:"side-bar__subitems"},IG=["href","onClick"],AG={key:0,class:"side-bar__subitem-link",target:"_blank",rel:"noopener noreferrer"},$G={class:"side-bar__avatar"},NG={key:0};function zG(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("router-link"),d=a.resolveComponent("cds-avatar");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.mainClass)},[a.createElementVNode("div",{class:a.normalizeClass(`variant-resolver--${n.variant}`)},[a.createElementVNode("div",OG,[a.createElementVNode("div",DG,[s.collapsed?a.createCommentVNode("",!0):a.renderSlot(t.$slots,"logo",{key:0},()=>[a.createElementVNode("img",{src:n.logoImage},null,8,EG)])]),n.collapsible?(a.openBlock(),a.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[0]||(e[0]=(...h)=>r.handleCollapse&&r.handleCollapse(...h))},[s.collapsed?(a.openBlock(),a.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(a.openBlock(),a.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])):a.createCommentVNode("",!0)]),a.createElementVNode("ul",{class:a.normalizeClass({"side-bar__container":n.items.length>=1})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(h,f)=>(a.openBlock(),a.createElementBlock("li",{key:`${f}-${h.name}-item`,role:"presentation"},[a.createElementVNode("div",{class:a.normalizeClass(["side-bar__item-container",r.isActive(h)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:m=>r.handleClick(m,h)},[!!h.items||h.type==="link"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"])},[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)]),!!h.items&&h.items.length>0?(a.openBlock(),a.createBlock(o,{key:s.expandItemControl,name:r.resolveCollapsibleItemIcon(h),class:a.normalizeClass({item__caret:r.isActive(h)}),width:"16",height:"16"},null,8,["name","class"])):a.createCommentVNode("",!0)],2)):(a.openBlock(),a.createBlock(c,{key:1,to:r.routerPushTo(h),class:a.normalizeClass(["side-bar__item",r.isActive(h)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:m=>r.handleClick(m,h)},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(o,{name:h.icon,width:"20",height:"20"},null,8,["name"]),a.createElementVNode("span",null,a.toDisplayString(h.label),1)])]),_:2},1032,["to","class","onClick"]))],10,BG),s.collapsed?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.Transition,{key:0},{default:a.withCtx(()=>[r.resolveItemCollapse(h)?(a.openBlock(),a.createElementBlock("div",TG,[a.createElementVNode("div",VG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.items,(m,g)=>(a.openBlock(),a.createElementBlock("a",{key:`${g}-${m.name}-item`,class:a.normalizeClass(["side-bar__subitem",r.isActive(m)&&(m==null?void 0:m.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:!!m.type&&m.type==="external"?m.route.path:"javascript:void(0)",onClick:y=>r.handleClick(y,m)},[!!m.type&&m.type==="external"?(a.openBlock(),a.createElementBlock("div",AG,[a.createTextVNode(a.toDisplayString(m.label)+" ",1),a.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(a.openBlock(),a.createBlock(c,{key:1,class:"side-bar__subitem-link",to:r.routerPushTo(m)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.label),1)]),_:2},1032,["to"]))],10,IG))),128))])])):a.createCommentVNode("",!0)]),_:2},1024))]))),128))],2)],2),a.createElementVNode("div",{class:a.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[a.createElementVNode("div",$G,[a.createVNode(d,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[s.collapsed?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",NG,[a.createElementVNode("p",null,a.toDisplayString(n.userName),1),a.createElementVNode("p",null,a.toDisplayString(n.userRole),1)]))]),_:1})]),a.createElementVNode("ul",null,[n.showLogout?(a.openBlock(),a.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[1]||(e[1]=h=>t.$emit("logout",!0))},[a.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])):a.createCommentVNode("",!0)])],2)],2)}const Py=re(MG,[["render",zG]]),Kue="",Ly=t=>(a.pushScopeId("data-v-2c0e5f5c"),t=t(),a.popScopeId(),t),PG={class:"secondary-navigation__container"},LG={class:"secondary-navigation__content"},FG={key:1},RG=["onClick","onMouseover"],HG={class:"secondary-navigation__content"},WG={key:1},YG=Ly(()=>a.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),jG=Ly(()=>a.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1)),UG=re({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=a.ref(n.activeItem.key),r=a.ref(null),o=a.ref(0),c=a.computed(()=>n.light?"light":"dark");a.watch(n.activeItem,k=>{s.value=k.key});const d=k=>{o.value=k},h=k=>{if(!k.route)return null;const{path:C,name:S}=k.route;return C instanceof String?{path:C}:{name:S}},f=k=>{g(k.key)||(r.value=null,s.value=k.key,i("item-click",k.key))},m=k=>s.value===k,g=k=>n.items.find(C=>{var S;return C.key===k&&((S=C==null?void 0:C.subitems)==null?void 0:S.length)>0}),y=(k,C)=>{r.value=k,s.value=C,i("item-click",k)},b=k=>r.value===k;return(k,C)=>{const S=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["secondary-navigation",`secondary-navigation--${c.value}`])},[a.createElementVNode("div",PG,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,E=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:E.key},[g(E.key)?(a.openBlock(),a.createElementBlock("div",FG,[a.createElementVNode("div",{class:a.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${c.value}`:""]),onClick:A=>f(E),onMouseover:A=>d(E.key),onMouseleave:C[0]||(C[0]=A=>d(-1))},[a.createElementVNode("div",HG,[a.createTextVNode(a.toDisplayString(E.label)+" ",1),E.key!==o.value?(a.openBlock(),a.createBlock(Ze,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):E.key===o.value?(a.openBlock(),a.createElementBlock("div",WG,[a.createVNode(Ze,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),a.createElementVNode("div",{class:a.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${c.value}`])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.subitems,A=>(a.openBlock(),a.createBlock(S,{key:A.key,to:h(A),class:a.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":b(A.key)}]),onClick:x=>y(A.key,E.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(A.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):a.createCommentVNode("",!0)])],42,RG)])):(a.openBlock(),a.createBlock(S,{key:0,class:a.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${c.value}`:""]),to:h(E),onClick:A=>f(E)},{default:a.withCtx(()=>[a.createElementVNode("div",LG,a.toDisplayString(E.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),YG,jG],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),Xue="",qG={class:"page-layout"},GG={class:"page-layout__content"},KG=re({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","navigation-item-click"],setup(t,{emit:e}){const n=e;return(i,s)=>(a.openBlock(),a.createElementBlock("div",qG,[a.createVNode(Py,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,onSidebarClick:s[0]||(s[0]=r=>n("sidebar-item-click",r)),onLogout:s[1]||(s[1]=r=>n("sidebar-logout",r))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image"]),a.createElementVNode("div",GG,[a.createVNode(UG,{light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:s[2]||(s[2]=r=>n("navigation-item-click",r))},null,8,["light","active-item","items"]),a.createVNode(zy,{class:"page-layout__container"},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3})])]))}},[["__scopeId","data-v-968105b5"]]),Que="",ZG={components:{CdsLink:uu},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=this.subtitle.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},XG={class:"page-header__title"},JG={key:0,class:"d-flex"},QG={class:"page-header__subtitle"},eK={key:1,class:"page-header__subtitle"},tK={class:"page-header__aside-slot"};function nK(t,e,n,i,s,r){const o=a.resolveComponent("cds-link");return a.openBlock(),a.createElementBlock("header",{class:a.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[a.createElementVNode("div",null,[a.createElementVNode("p",XG,a.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(a.openBlock(),a.createElementBlock("div",JG,[a.createElementVNode("span",QG,[a.createTextVNode(a.toDisplayString(s.splitedSubtitle[0])+" ",1),a.createVNode(o,{href:s.url,bold:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.fancyUrl),1)]),_:1},8,["href"]),a.createTextVNode(" "+a.toDisplayString(s.splitedSubtitle[1]),1)])])):(a.openBlock(),a.createElementBlock("div",eK,a.toDisplayString(n.subtitle),1))]),a.createElementVNode("div",tK,[a.renderSlot(t.$slots,"aside")])],2)}const iK=re(ZG,[["render",nK]]);class Yn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const e1e="",sK={components:{CdsChevron:Ca},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new Yn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new Yn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?g4("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new Yn(0,"first",!1,"<<"),new Yn(1,"back",!1,"<"),...this.mountPagesArray(),new Yn(7,"forward",!1,">"),new Yn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new Yn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new Yn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new Yn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new Yn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new Yn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new Yn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new Yn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new Yn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},rK=["onClick"],aK={key:3};function oK(t,e,n,i,s,r){const o=a.resolveComponent("cds-chevron");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.computedContainerClass)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.pages,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.resolveButtonClass(c)),onClick:h=>r.handlePageClick(c)},[d===0?(a.openBlock(),a.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===0?(a.openBlock(),a.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):a.createCommentVNode("",!0),d===1?(a.openBlock(),a.createBlock(o,{key:2,direction:"left"})):a.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(a.openBlock(),a.createElementBlock("span",aK,a.toDisplayString(c.text),1)):a.createCommentVNode("",!0),d===s.pages.length-2?(a.openBlock(),a.createBlock(o,{key:4,direction:"right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0),d===s.pages.length-1?(a.openBlock(),a.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):a.createCommentVNode("",!0)],10,rK))),128))],2)}const lK=re(sK,[["render",oK],["__scopeId","data-v-69f01ddb"]]),t1e="",cK={components:{CdsBox:$l,CdsDivider:Nc},props:{title:{type:String,default:"T\xEDtulo",required:!0},subtitle:{type:String,default:"Subt\xEDtulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},dK=t=>(a.pushScopeId("data-v-e1c5a182"),t=t(),a.popScopeId(),t),uK={class:"panel-card__header"},hK={class:"panel-card__title"},fK=dK(()=>a.createElementVNode("br",null,null,-1)),pK={class:"panel-card__subtitle"};function mK(t,e,n,i,s,r){const o=a.resolveComponent("cds-divider"),c=a.resolveComponent("cds-box");return a.openBlock(),a.createBlock(c,{class:"panel-card",padding:"0",fluid:""},{default:a.withCtx(()=>[a.createElementVNode("div",uK,[a.createElementVNode("div",null,[a.createElementVNode("span",hK,a.toDisplayString(n.title),1),fK,a.createElementVNode("span",pK,a.toDisplayString(n.subtitle),1)]),a.createElementVNode("div",null,[a.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),a.createVNode(o,{dimmed:""}),a.createElementVNode("div",{class:a.normalizeClass(r.contentClass)},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const gK=re(cK,[["render",mK],["__scopeId","data-v-e1c5a182"]]),n1e="",_K={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){switch(this.state){case"valid":return"pin-input--valid";case"invalid":return"pin-input--invalid";default:return"pin-input"}}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.$refs[`pin-input${e}`][0].value=t.key,e<this.length&&this.$refs[`pin-input${e+1}`][0].focus()}}},yK={class:"pin-input__container"},vK=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function bK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",yK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.length,(o,c)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{id:`pin-input${o}`,key:c,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:a.normalizeClass(["pin-input",r.computedClass]),autocomplete:"off",onKeydown:a.withKeys(a.withModifiers(d=>r.handleBack(o),["stop"]),["delete"]),onKeypress:d=>r.changeInputContent(d,o),onInput:d=>r.handleInput(d,o),onFocus:d=>r.fixCursorPosition(o)},null,42,vK)),[[a.vModelDynamic,s.innerValue[o-1]]])),128))])}const wK=re(_K,[["render",bK],["__scopeId","data-v-d11b9fb6"]]),i1e="",Z0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},Fy=()=>{a.useCssVars(t=>({bf5feb56:t.textDirection}))},Ry=Z0.setup;Z0.setup=Ry?(t,e)=>(Fy(),Ry(t,e)):Fy;const kK=Z0,CK={class:"progress-bar"},xK={class:"progress-bar__content"};function SK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",CK,[n.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},a.toDisplayString(r.formatedvalue),3)):a.createCommentVNode("",!0),a.createElementVNode("div",xK,[a.createElementVNode("div",{class:a.normalizeClass(`progress-bar__indicator--${n.variant}`),style:a.normalizeStyle(r.progressIndicatorStyle)},null,6)])])}const MK=re(kK,[["render",SK],["__scopeId","data-v-d3a3d8d6"]]),s1e="",OK={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Ul}},DK=["stroke","stroke-width"],EK=["stroke-dasharray","stroke-width"];function BK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[a.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":r.stroke,d:`M18 2.0845
70
70
  a 15.9155 15.9155 0 0 1 0 31.831
71
71
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,8,DK),a.createElementVNode("path",{class:a.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":r.normalizedDashArray,"stroke-width":r.stroke-1,style:a.normalizeStyle(r.circleIndicatorStyle),d:`M18 2.0845
72
72
  a 15.9155 15.9155 0 0 1 0 31.831
73
73
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,EK),n.noLabel?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("text",{key:0,x:"18",y:"21.7",class:a.normalizeClass(r.labelClass)},a.toDisplayString(r.label),3))],2)}const TK=re(OK,[["render",BK]]),r1e="",X0={props:{modelValue:{default:null,required:!0},value:{default:null,required:!0},variant:{type:String,default:"green"},label:{type:String,default:"radio content"},disabled:{type:Boolean,default:!1}},data(){return{uniqueId:Math.random()}},computed:{isChecked(){return this.modelValue===this.value},cursorType(){return this.disabled?"default":"pointer"}}},Hy=()=>{a.useCssVars(t=>({"3208a1c7":t.cursorType}))},Wy=X0.setup;X0.setup=Wy?(t,e)=>(Hy(),Wy(t,e)):Hy;const VK=X0,IK={class:"cds-radio__container"},AK=["id","value","disabled","name","checked"],$K=["for"],NK=["disabled"];function zK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",IK,[a.createElementVNode("input",{id:`${s.uniqueId}-${n.value}`,type:"radio",class:a.normalizeClass(["cds-radio",`cds-radio--${n.variant}`]),value:n.value,disabled:n.disabled,name:t.$attrs.name,checked:r.isChecked,onChange:e[0]||(e[0]=o=>t.$emit("update:modelValue",o.target.value))},null,42,AK),a.createElementVNode("label",{class:"cds-radio__label",for:`${s.uniqueId}-${n.value}`},[a.renderSlot(t.$slots,"default",{},()=>[a.createElementVNode("span",{class:"cds-radio__label-text",disabled:n.disabled},a.toDisplayString(n.label),9,NK)])],8,$K)])}const PK=re(VK,[["render",zK]]),a1e="",LK={components:{Doughnut:T2},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)},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:()=>[]},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:Hn,localChartData:{datasets:[{hidden:!1}],labels:[]},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{legend:{display:!1,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}},key:0,largestValue:100,largestValueDegree:360-15/100*360}},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}},mounted(){this.data.forEach(t=>{t.datasets[0].data[0]>this.largestValue&&(this.largestValue=t.datasets[0].data[0])}),this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:ts,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},computedCutout(){let t;switch(this.localChartData.datasets.reduce((n,i)=>n+(i.hidden!==!0?1:0),0)){case 1:t=82;break;case 2:t=55;break;case 3:t=40;break;case 4:t=30;break;default:t=20;break}this.localChartData.datasets.forEach(n=>{n.cutout=`${t}%`})},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},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))}},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};if(t.forEach(n=>{n.datasets.forEach(i=>{const s={label:i.label,data:i.data,circumference:this.largestValueDegree*i.data/this.largestValue,borderRadius:16,hidden:!1};e.datasets.push(s),this.computedCutout(),this.key++})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(e.datasets,n)}else{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:[]},generateBackgroundColorWithTheme(){const t=this.theme.toLowerCase(),e=this.themeColors.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=16})},clickHandler(t){const n=this.$refs["radial-bar-chart"].chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i={index:n[0].index,data:n[0].element.$context.raw,x:n[0].element.x,y:n[0].element.y,backgroundColor:n[0].element.$context.element.options.backgroundColor.trim()};this.$emit("chart-click",i)},handleLegendClick(t){this.localChartData.datasets.forEach(e=>{e.label===t.label&&(e.hidden=!e.hidden)}),this.computedCutout(),this.key++}}},FK={class:"responsive-container"},RK={class:"legend__container"},HK=["onClick"];function WK(t,e,n,i,s,r){const o=a.resolveComponent("Doughnut");return a.openBlock(),a.createElementBlock("span",null,[a.createElementVNode("div",FK,[a.createElementVNode("div",RK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localChartData.datasets,c=>(a.openBlock(),a.createElementBlock("div",{key:c.label,class:"legend__item",onClick:d=>r.handleLegendClick(c)},[a.createElementVNode("div",{class:"legend__square",style:a.normalizeStyle(`background-color: ${c.backgroundColor}`)},null,4),a.createElementVNode("span",{class:a.normalizeClass({"legend__text--strikethrough":c.hidden})},a.toDisplayString(c.label),3)],8,HK))),128))]),(a.openBlock(),a.createBlock(o,{ref:"radial-bar-chart",key:s.key,data:s.localChartData,options:s.chartOptions,onClick:r.clickHandler},null,8,["data","options","onClick"]))])])}const YK=re(LK,[["render",WK],["__scopeId","data-v-71746dc3"]]),o1e="",jK={props:{modelValue:{type:[String,null],default:null,required:!0},options:{type:Array,default:()=>[],required:!0},disabled:{type:Boolean,default:!1,required:!1},inline:{type:Boolean,default:!1,description:"When true, the radio buttons will be displayed in a row.",required:!1},allowsExpand:{type:Boolean,default:!1,required:!1}},data(){return{selected:this.modelValue}},computed:{cssVars(){return{"--border-color-selected":this.allowsExpand?"#2db981":"#2051a7","--background-color":this.allowsExpand?"#FAFCFE":"#FFFFFF","--display-vertical":this.allowsExpand?"flex":"inline-flex","--width-vertical":this.allowsExpand?"100%":null}}},watch:{selected(t){this.$emit("update:modelValue",t)},modelValue:{handler(t){this.selected=t},immediate:!0}}},UK=["disabled","for"],qK=["id","value","disabled"],GK=["for"],KK={class:"content-title"},ZK={key:0,class:"content-body"};function XK(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("span",{id:"radioButton",style:a.normalizeStyle(r.cssVars)},[a.createElementVNode("div",{class:a.normalizeClass({"button-group":n.inline})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,(o,c)=>(a.openBlock(),a.createElementBlock("div",{key:o.value,class:a.normalizeClass({"radio-button__container--vertical":n.inline&&c>=0}),style:a.normalizeStyle(n.allowsExpand?"width: 100%":"")},[a.createElementVNode("label",{class:"radio-button",disabled:o.disabled||n.disabled,for:o.value},[a.withDirectives(a.createElementVNode("input",{id:o.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selected=d),type:"radio",value:o.value,disabled:o.disabled||n.disabled},null,8,qK),[[a.vModelRadio,s.selected]]),a.createElementVNode("label",{class:"radio-button__content",for:o.value},[a.createElementVNode("div",KK,a.toDisplayString(o.text),1),n.allowsExpand?(a.openBlock(),a.createElementBlock("div",ZK,a.toDisplayString(o.body),1)):a.createCommentVNode("",!0)],8,GK)],8,UK)],6))),128))],2)],4)}const JK=re(jK,[["render",XK]]),l1e="",QK={components:{CdsIcon:Ze,CdsLinkButton:ty},props:{modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:"",isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){return(this.fluid?"search-input--fluid":"search-input").concat(" ",this.disabled?"search-input--disabled":"")},inputClass(){return this.fluid?"search-input__field--fluid":"search-input__field"}},mounted(){this.internalValue=this.modelValue},methods:{handleInput(t){this.internalValue=t.target.value,this.$emit("update:modelValue",t.target.value)},handleClearInput(){this.internalValue="",this.$emit("update:modelValue","")}}},eZ=["value","placeholder","disabled"];function tZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.createVNode(o,{name:"search-outline",class:"search-input__search-icon"}),a.createElementVNode("input",{id:"cds-search-input",value:s.internalValue,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[0]||(e[0]=c=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=c=>s.isBeingFocused=!1),onInput:e[2]||(e[2]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,eZ),s.internalValue?(a.openBlock(),a.createBlock(o,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:r.handleClearInput},null,8,["onClick"])):a.createCommentVNode("",!0)],2)])}const nZ=re(QK,[["render",tZ],["__scopeId","data-v-2f855c31"]]),c1e="",iZ={components:{CdsIcon:Ze,CdsTooltip:Lc},props:{segments:{type:Array,default:()=>[]},withIcon:{type:Boolean,default:!1},segmentsTooltipText:{type:Array,default:()=>[]}},data(){return{activeSegment:""}},mounted(){this.activeSegment=this.segments[0]},methods:{handleClick(t,e){this.activeSegment=t,this.$emit("click",this.activeSegment,e)}}},sZ={class:"segment-control"},rZ=["onClick"],aZ={key:1};function oZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-tooltip");return a.openBlock(),a.createElementBlock("div",sZ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.segments,(d,h)=>(a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["segment-control__button",{"segment-control__button--active":d===s.activeSegment,"segment-control__button--inactive":d!==s.activeSegment}]),onClick:f=>r.handleClick(d,h)},[n.withIcon?(a.openBlock(),a.createBlock(c,{key:0,text:n.segmentsTooltipText[h]},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:d},null,8,["name"])]),_:2},1032,["text"])):(a.openBlock(),a.createElementBlock("span",aZ,a.toDisplayString(d),1))],10,rZ))),128))])}const lZ=re(iZ,[["render",oZ]]),d1e="",J0={components:{CdsIcon:Ze},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inv\xE1lido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},mobile:{type:Boolean,default:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:zc()}},computed:{errorState(){return this.state==="invalid"},inputClass(){let t="";const e=this.mobile?"select__mobile-input":"select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled?t+=` ${e}--disabled`:this.state==="valid"?t+=` ${e}--valid`:this.state==="invalid"&&(t+=` ${e}--invalid`),t+=` ${e}--${Qp.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},resolveLabel(){return this.mobile?"mobile-label":"label"},resolveChevronTop(){return this.mobile?"9px":"6px"}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-select"]},methods:{filterOptions(){const t=du(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>du(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=Ko(this.localOptions[this.currentPos]),this.$refs["select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=Ko(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["select-options"],r=s.getBoundingClientRect();n==="up"&&i.top<=r.top&&(s.scrollTop+=e),n==="down"&&i.top>=r.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},Yy=()=>{a.useCssVars(t=>({"6ba3286d":t.resolveChevronTop}))},jy=J0.setup;J0.setup=jy?(t,e)=>(Yy(),jy(t,e)):Yy;const cZ=J0,dZ=t=>(a.pushScopeId("data-v-aef03091"),t=t(),a.popScopeId(),t),uZ={ref:"cds-select",class:"select"},hZ={class:"label__content",for:"cds-select"},fZ={key:0,class:"label__required-indicator"},pZ=["id","onkeypress","placeholder","disabled","readonly"],mZ={key:0,class:"option__container"},gZ=["onMouseover"],_Z={key:1,class:"option__container"},yZ=[dZ(()=>a.createElementVNode("li",{class:"option__text--muted"}," Nenhuma op\xE7\xE3o encontrada ",-1))],vZ={key:0,class:"select__error-message"};function bZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",uZ,[a.createElementVNode("label",{class:a.normalizeClass(`select__${r.resolveLabel}`)},[a.createElementVNode("div",hZ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",fZ," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[c,n.tooltip]]):a.createCommentVNode("",!0)])],2),a.createElementVNode("div",{class:a.normalizeClass(["select__container",n.fluid?"select__container--fluid":"select__container--fit"])},[a.withDirectives(a.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"select-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.localValue[n.optionsField]=d),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onKeydown:[e[1]||(e[1]=a.withKeys(a.withModifiers((...d)=>r.activateSelectionOnEnter&&r.activateSelectionOnEnter(...d),["prevent"]),["enter"])),e[2]||(e[2]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowDown&&r.highlightOnArrowDown(...d),["prevent"]),["arrow-down"])),e[3]||(e[3]=a.withKeys(a.withModifiers((...d)=>r.highlightOnArrowUp&&r.highlightOnArrowUp(...d),["prevent"]),["arrow-up"]))],onClick:e[4]||(e[4]=(...d)=>r.activateSelectionOnClick&&r.activateSelectionOnClick(...d)),onInput:e[5]||(e[5]=(...d)=>r.filterOptions&&r.filterOptions(...d)),onFocus:e[6]||(e[6]=(...d)=>r.activeSelection&&r.activeSelection(...d)),onBlur:e[7]||(e[7]=(...d)=>r.hide&&r.hide(...d))},null,42,pZ),[[a.vModelText,s.localValue[n.optionsField]]]),a.withDirectives(a.createElementVNode("div",{ref:"select-options",class:a.normalizeClass(["select__options",{"select__options--thin":n.width==="thin","select__options--default":n.width==="default","select__options--wide":n.width==="wide","select__options--fluid":n.fluid,"select__options--down":s.direction==="down","select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(a.openBlock(),a.createElementBlock("ul",mZ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localOptions,(d,h)=>(a.openBlock(),a.createElementBlock("li",{key:h,ref_for:!0,ref:`${d[n.optionsField]}-${h}`,class:"option__text",onMousedown:e[8]||(e[8]=(...f)=>r.selectItem&&r.selectItem(...f)),onMouseover:f=>r.highlightOnMouseOver(h),onMouseout:e[9]||(e[9]=f=>r.unhighlightOnMouseOut())},a.toDisplayString(d[n.optionsField]),41,gZ))),128))])):(a.openBlock(),a.createElementBlock("ul",_Z,yZ))],2),[[a.vShow,s.active]]),a.createElementVNode("span",{class:a.normalizeClass(s.active?"select__chevron--opened":"select__chevron--closed")},null,2)],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",vZ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)],512)}const wZ=re(cZ,[["render",bZ],["__scopeId","data-v-aef03091"]]),h1e="",Q0={components:{CdsIcon:Ze,CdsBox:$l,CdsClickable:hs},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1}},data(){return{sassColorVariables:Hn}},computed:{overlayColor(){const t=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(t)}, 0.4)`},sideSheetWidth(){let t="328px";switch(this.size){case"xl":t="840px";break;case"lg":t="700px";break;case"md":t="500px";break;default:t="340px";break}return t}},watch:{modelValue(t){if(!t){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:Gh,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(t){t.keyCode===w8.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)}}},Uy=()=>{a.useCssVars(t=>({11828368:t.overlayColor,"9d05acda":t.sideSheetWidth}))},qy=Q0.setup;Q0.setup=qy?(t,e)=>(Uy(),qy(t,e)):Uy;const kZ=Q0,CZ={class:"side-sheet__header"};function xZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveComponent("cds-box");return n.modelValue?(a.openBlock(),a.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:e[3]||(e[3]=(...h)=>r.shouldCloseOnBackdrop&&r.shouldCloseOnBackdrop(...h))},[a.createVNode(d,{padding:"5",class:"side-sheet__container",elevated:"",fluid:"",onClick:e[2]||(e[2]=a.withModifiers(()=>{},["stop"]))},{default:a.withCtx(()=>[a.createElementVNode("header",null,[a.renderSlot(t.$slots,"header",{},()=>[a.createElementVNode("div",CZ,[a.createElementVNode("h3",null,a.toDisplayString(n.title),1),a.createElementVNode("div",{class:"side-sheet__close-icon",onClick:e[1]||(e[1]=(...h)=>t.closeHandle&&t.closeHandle(...h))},[a.createVNode(c,{clickable:""},{default:a.withCtx(()=>[a.createVNode(o,{height:"20",width:"20",name:"x-outline",onClick:e[0]||(e[0]=a.withModifiers(h=>t.$emit("update:modelValue",!n.modelValue),["stop"]))})]),_:1})])])],!0)]),a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})])):a.createCommentVNode("",!0)}const SZ=re(kZ,[["render",xZ],["__scopeId","data-v-54ccf7a0"]]),f1e="",ef={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:t=>["circle","square"].includes(t)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},Gy=()=>{a.useCssVars(t=>({"02fe74e9":t.resolveShape}))},Ky=ef.setup;ef.setup=Ky?(t,e)=>(Gy(),Ky(t,e)):Gy;const MZ=ef;function OZ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const DZ=re(MZ,[["render",OZ],["__scopeId","data-v-5298dc58"]]),p1e="",EZ={props:{width:{type:String,required:!1},height:{type:String,required:!1,default:"16"}},computed:{computedStyle(){return{"--width":`${this.width}px`,"--height":`${this.height}px`}}}};function BZ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",{class:"skeleton__container",style:a.normalizeStyle(r.computedStyle)},null,4)}const TZ=re(EZ,[["render",BZ],["__scopeId","data-v-d39e7029"]]),m1e="",VZ={components:{CdsIcon:Ze},props:{steps:{type:Array,default:()=>[],required:!0,description:`Um array com objetos com as propriedades 'label', 'inProcessing',
74
74
  'error' e 'completed'. A 'label' \xE9 o texto que descreve o passo,
75
- e as demais props s\xE3o booleanas e representam o status do passo.`},vertical:{type:Boolean,default:!1,required:!1},value:{type:Number,default:1,required:!0},disableOnClick:{type:Boolean,default:!1}},data(){return{internalValue:this.value-1}},watch:{internalValue(t){this.$emit("input",t+1)},value:{handler(t){this.internalValue=t-1},immediate:!0}},methods:{circleStyle(t,e){const n=this.disableOnClick?"":"stepper__step--clickable";return t.inProcessing?`stepper__step--in-processing ${n}`:t.error?`stepper__step--error ${n}`:t.completed?`stepper__step--completed ${n}`:e===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(t){this.disableOnClick||(this.internalValue=t)},dividerStyle(t){const e=this.vertical?"vertical-":"";if(t<0)return`stepper__${e}divider--default`;const n=t===this.steps.length-1,i=t===0,s=t-1,r=t+1;return!n&&this.steps[t].completed&&this.steps[r].completed?`stepper__${e}divider--completed`:!n&&t>0&&this.steps[t].completed&&this.steps[s].completed||!n&&i&&this.steps[t].completed?`stepper__${e}divider--in-progress`:`stepper__${e}divider--default`},stepSectionStyle(t){let e="";return e+=t!==this.steps.length-1?"stepper__step-section ":"",e+=this.vertical?"stepper__step-section--vertical":"",e},labelStyle(t){let e="";return e+=t===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",e+=this.vertical?"":" stepper__step-label--horizontal",e+=this.disableOnClick?"":" stepper__step--clickable",e}}},IZ=t=>(a.pushScopeId("data-v-6046312d"),t=t(),a.popScopeId(),t),AZ={class:"stepper__edge"},$Z=["onClick"],NZ=["id","onClick"],zZ={key:2,class:"stepper__processing-icon"},PZ=[IZ(()=>a.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M18.78 16.6325C17.738 18.0472 16.3457 19.1664 14.7402 19.8799C13.1346 20.5935 11.3709 20.8769 9.62259 20.7023C7.87428 20.5276 6.20151 19.901 4.76877 18.884C3.33604 17.867 2.19266 16.4945 1.45107 14.9017C0.709475 13.3089 0.395207 11.5504 0.539162 9.79934C0.683116 8.04824 1.28034 6.36474 2.2721 4.9144C3.26387 3.46406 4.61603 2.2968 6.19562 1.52741C7.77522 0.758019 9.52787 0.412981 11.2812 0.526225L10.6287 10.6288L18.78 16.6325Z",fill:"#3A7EDF"})],-1))],LZ={key:3,class:"stepper__icon-text"},FZ={key:0,class:"stepper__edge-container"},RZ={class:"stepper__edge"};function HZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[a.createElementVNode("div",{class:a.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[a.createElementVNode("div",AZ,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])],2),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.steps,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.stepSectionStyle(d))},[n.vertical?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["stepper__step-label--vertical",r.labelStyle(d)]),onClick:h=>r.changeStep(d)},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],10,$Z)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:`step-${d+1}`,class:a.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>r.changeStep(d)},[a.createElementVNode("div",{class:a.normalizeClass(["stepper__icon-circle",r.circleStyle(c,d)])},[c.completed?(a.openBlock(),a.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):c.error?(a.openBlock(),a.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):c.inProcessing?(a.openBlock(),a.createElementBlock("div",zZ,PZ)):(a.openBlock(),a.createElementBlock("span",LZ,a.toDisplayString(d+1),1))],2),a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(d))},null,2)],10,NZ),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["stepper__step-label",r.labelStyle(d)])},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],2))],2))),128)),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FZ,[a.createElementVNode("div",RZ,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])]))],2)}const WZ=re(VZ,[["render",HZ],["__scopeId","data-v-6046312d"]]);var Zy={exports:{}};(function(t){t.exports=function(e){var n={};function i(s){if(n[s])return n[s].exports;var r=n[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=n,i.d=function(s,r,o){i.o(s,r)||Object.defineProperty(s,r,{enumerable:!0,get:o})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,r){if(r&1&&(s=i(s)),r&8||r&4&&typeof s=="object"&&s&&s.__esModule)return s;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:s}),r&2&&typeof s!="string")for(var c in s)i.d(o,c,function(d){return s[d]}.bind(null,c));return o},i.n=function(s){var r=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(r,"a",r),r},i.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)},i.p="",i(i.s="fae3")}({"01f9":function(e,n,i){var s=i("2d00"),r=i("5ca1"),o=i("2aba"),c=i("32e9"),d=i("84f2"),h=i("41a0"),f=i("7f20"),m=i("38fd"),g=i("2b4c")("iterator"),y=!([].keys&&"next"in[].keys()),b="@@iterator",k="keys",C="values",S=function(){return this};e.exports=function(E,A,x,V,N,L,F){h(x,A,V);var q=function(pe){if(!y&&pe in ie)return ie[pe];switch(pe){case k:return function(){return new x(this,pe)};case C:return function(){return new x(this,pe)}}return function(){return new x(this,pe)}},ee=A+" Iterator",ne=N==C,K=!1,ie=E.prototype,me=ie[g]||ie[b]||N&&ie[N],J=me||q(N),he=N?ne?q("entries"):J:void 0,fe=A=="Array"&&ie.entries||me,ye,we,R;if(fe&&(R=m(fe.call(new E)),R!==Object.prototype&&R.next&&(f(R,ee,!0),!s&&typeof R[g]!="function"&&c(R,g,S))),ne&&me&&me.name!==C&&(K=!0,J=function(){return me.call(this)}),(!s||F)&&(y||K||!ie[g])&&c(ie,g,J),d[A]=J,d[ee]=S,N)if(ye={values:ne?J:q(C),keys:L?J:q(k),entries:he},F)for(we in ye)we in ie||o(ie,we,ye[we]);else r(r.P+r.F*(y||K),A,ye);return ye}},"0d58":function(e,n,i){var s=i("ce10"),r=i("e11e");e.exports=Object.keys||function(c){return s(c,r)}},1495:function(e,n,i){var s=i("86cc"),r=i("cb7c"),o=i("0d58");e.exports=i("9e1e")?Object.defineProperties:function(d,h){r(d);for(var f=o(h),m=f.length,g=0,y;m>g;)s.f(d,y=f[g++],h[y]);return d}},"230e":function(e,n,i){var s=i("d3f4"),r=i("7726").document,o=s(r)&&s(r.createElement);e.exports=function(c){return o?r.createElement(c):{}}},"2aba":function(e,n,i){var s=i("7726"),r=i("32e9"),o=i("69a8"),c=i("ca5a")("src"),d=i("fa5b"),h="toString",f=(""+d).split(h);i("8378").inspectSource=function(m){return d.call(m)},(e.exports=function(m,g,y,b){var k=typeof y=="function";k&&(o(y,"name")||r(y,"name",g)),m[g]!==y&&(k&&(o(y,c)||r(y,c,m[g]?""+m[g]:f.join(String(g)))),m===s?m[g]=y:b?m[g]?m[g]=y:r(m,g,y):(delete m[g],r(m,g,y)))})(Function.prototype,h,function(){return typeof this=="function"&&this[c]||d.call(this)})},"2aeb":function(e,n,i){var s=i("cb7c"),r=i("1495"),o=i("e11e"),c=i("613b")("IE_PROTO"),d=function(){},h="prototype",f=function(){var m=i("230e")("iframe"),g=o.length,y="<",b=">",k;for(m.style.display="none",i("fab2").appendChild(m),m.src="javascript:",k=m.contentWindow.document,k.open(),k.write(y+"script"+b+"document.F=Object"+y+"/script"+b),k.close(),f=k.F;g--;)delete f[h][o[g]];return f()};e.exports=Object.create||function(g,y){var b;return g!==null?(d[h]=s(g),b=new d,d[h]=null,b[c]=g):b=f(),y===void 0?b:r(b,y)}},"2b4c":function(e,n,i){var s=i("5537")("wks"),r=i("ca5a"),o=i("7726").Symbol,c=typeof o=="function",d=e.exports=function(h){return s[h]||(s[h]=c&&o[h]||(c?o:r)("Symbol."+h))};d.store=s},"2d00":function(e,n){e.exports=!1},"2d95":function(e,n){var i={}.toString;e.exports=function(s){return i.call(s).slice(8,-1)}},"32e9":function(e,n,i){var s=i("86cc"),r=i("4630");e.exports=i("9e1e")?function(o,c,d){return s.f(o,c,r(1,d))}:function(o,c,d){return o[c]=d,o}},"38fd":function(e,n,i){var s=i("69a8"),r=i("4bf8"),o=i("613b")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(d){return d=r(d),s(d,o)?d[o]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?c:null}},"41a0":function(e,n,i){var s=i("2aeb"),r=i("4630"),o=i("7f20"),c={};i("32e9")(c,i("2b4c")("iterator"),function(){return this}),e.exports=function(d,h,f){d.prototype=s(c,{next:r(1,f)}),o(d,h+" Iterator")}},4588:function(e,n){var i=Math.ceil,s=Math.floor;e.exports=function(r){return isNaN(r=+r)?0:(r>0?s:i)(r)}},4630:function(e,n){e.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(e,n,i){var s=i("be13");e.exports=function(r){return Object(s(r))}},5537:function(e,n,i){var s=i("8378"),r=i("7726"),o="__core-js_shared__",c=r[o]||(r[o]={});(e.exports=function(d,h){return c[d]||(c[d]=h!==void 0?h:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,n,i){var s=i("7726"),r=i("8378"),o=i("32e9"),c=i("2aba"),d=i("9b43"),h="prototype",f=function(m,g,y){var b=m&f.F,k=m&f.G,C=m&f.S,S=m&f.P,E=m&f.B,A=k?s:C?s[g]||(s[g]={}):(s[g]||{})[h],x=k?r:r[g]||(r[g]={}),V=x[h]||(x[h]={}),N,L,F,q;k&&(y=g);for(N in y)L=!b&&A&&A[N]!==void 0,F=(L?A:y)[N],q=E&&L?d(F,s):S&&typeof F=="function"?d(Function.call,F):F,A&&c(A,N,F,m&f.U),x[N]!=F&&o(x,N,q),S&&V[N]!=F&&(V[N]=F)};s.core=r,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},"613b":function(e,n,i){var s=i("5537")("keys"),r=i("ca5a");e.exports=function(o){return s[o]||(s[o]=r(o))}},"626a":function(e,n,i){var s=i("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(r){return s(r)=="String"?r.split(""):Object(r)}},6821:function(e,n,i){var s=i("626a"),r=i("be13");e.exports=function(o){return s(r(o))}},"69a8":function(e,n){var i={}.hasOwnProperty;e.exports=function(s,r){return i.call(s,r)}},"6a99":function(e,n,i){var s=i("d3f4");e.exports=function(r,o){if(!s(r))return r;var c,d;if(o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r))||typeof(c=r.valueOf)=="function"&&!s(d=c.call(r))||!o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r)))return d;throw TypeError("Can't convert object to primitive value")}},7726:function(e,n){var i=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(e,n,i){var s=i("4588"),r=Math.max,o=Math.min;e.exports=function(c,d){return c=s(c),c<0?r(c+d,0):o(c,d)}},"79e5":function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(e,n,i){var s=i("86cc").f,r=i("69a8"),o=i("2b4c")("toStringTag");e.exports=function(c,d,h){c&&!r(c=h?c:c.prototype,o)&&s(c,o,{configurable:!0,value:d})}},"7f7f":function(e,n,i){var s=i("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,c="name";c in r||i("9e1e")&&s(r,c,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch{return""}}})},8378:function(e,n){var i=e.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},"84f2":function(e,n){e.exports={}},"86cc":function(e,n,i){var s=i("cb7c"),r=i("c69a"),o=i("6a99"),c=Object.defineProperty;n.f=i("9e1e")?Object.defineProperty:function(h,f,m){if(s(h),f=o(f,!0),s(m),r)try{return c(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(h[f]=m.value),h}},"9b43":function(e,n,i){var s=i("d8e8");e.exports=function(r,o,c){if(s(r),o===void 0)return r;switch(c){case 1:return function(d){return r.call(o,d)};case 2:return function(d,h){return r.call(o,d,h)};case 3:return function(d,h,f){return r.call(o,d,h,f)}}return function(){return r.apply(o,arguments)}}},"9c6c":function(e,n,i){var s=i("2b4c")("unscopables"),r=Array.prototype;r[s]==null&&i("32e9")(r,s,{}),e.exports=function(o){r[s][o]=!0}},"9def":function(e,n,i){var s=i("4588"),r=Math.min;e.exports=function(o){return o>0?r(s(o),9007199254740991):0}},"9e1e":function(e,n,i){e.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},ac6a:function(e,n,i){for(var s=i("cadf"),r=i("0d58"),o=i("2aba"),c=i("7726"),d=i("32e9"),h=i("84f2"),f=i("2b4c"),m=f("iterator"),g=f("toStringTag"),y=h.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},k=r(b),C=0;C<k.length;C++){var S=k[C],E=b[S],A=c[S],x=A&&A.prototype,V;if(x&&(x[m]||d(x,m,y),x[g]||d(x,g,S),h[S]=y,E))for(V in s)x[V]||o(x,V,s[V],!0)}},be13:function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(e,n,i){var s=i("6821"),r=i("9def"),o=i("77f1");e.exports=function(c){return function(d,h,f){var m=s(d),g=r(m.length),y=o(f,g),b;if(c&&h!=h){for(;g>y;)if(b=m[y++],b!=b)return!0}else for(;g>y;y++)if((c||y in m)&&m[y]===h)return c||y||0;return!c&&-1}}},c69a:function(e,n,i){e.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},ca5a:function(e,n){var i=0,s=Math.random();e.exports=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++i+s).toString(36))}},cadf:function(e,n,i){var s=i("9c6c"),r=i("d53b"),o=i("84f2"),c=i("6821");e.exports=i("01f9")(Array,"Array",function(d,h){this._t=c(d),this._i=0,this._k=h},function(){var d=this._t,h=this._k,f=this._i++;return!d||f>=d.length?(this._t=void 0,r(1)):h=="keys"?r(0,f):h=="values"?r(0,d[f]):r(0,[f,d[f]])},"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},cb7c:function(e,n,i){var s=i("d3f4");e.exports=function(r){if(!s(r))throw TypeError(r+" is not an object!");return r}},ce10:function(e,n,i){var s=i("69a8"),r=i("6821"),o=i("c366")(!1),c=i("613b")("IE_PROTO");e.exports=function(d,h){var f=r(d),m=0,g=[],y;for(y in f)y!=c&&s(f,y)&&g.push(y);for(;h.length>m;)s(f,y=h[m++])&&(~o(g,y)||g.push(y));return g}},d3f4:function(e,n){e.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(e,n){e.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(e,n){(function(i){var s="currentScript",r=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(d){var o,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(o in r)if(r[o].src==c||r[o].readyState=="interactive")return r[o];return null}}})})(document)},fa5b:function(e,n,i){e.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(e,n,i){var s=i("7726").document;e.exports=s&&s.documentElement},fae3:function(e,n,i){if(i.r(n),i.d(n,"longClickDirective",function(){return o}),typeof window<"u"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("ac6a"),i("7f7f");var r=function(c){var d=c.delay,h=d===void 0?400:d,f=c.interval,m=f===void 0?50:f;return{beforeMount:function(y,b,k,C){if(typeof b.value!="function"){var S=k.context.name,E="[longclick:] provided expression '".concat(b.expression,"' is not a function, but has to be");S&&(E+="Found in component '".concat(S,"' ")),console.warn(E)}var A=null,x=null,V=function(q){b.value(q)},N=function(q){q.type==="click"&&q.button!==0||A===null&&(A=setTimeout(function(){m&&m>0&&(x=setInterval(function(){V(q)},m)),V(q)},h))},L=function(){A!==null&&(clearTimeout(A),A=null),x&&(clearInterval(x),x=null)};["mousedown","touchstart"].forEach(function(F){y.addEventListener(F,N,{passive:!0})}),["click","mouseout","touchend","touchcancel"].forEach(function(F){y.addEventListener(F,L,{passive:!0})})},created:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeUnmount:function(){},unmounted:function(){}}},o=r}})})(Zy);const _1e="",YZ=Zy.exports.longClickDirective({delay:400,interval:50}),jZ={components:{CdsIcon:Ze},directives:{longclick:YZ},props:{modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},width:{type:String,default:"default",required:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"}},data(){return{internalValue:this.modelValue,isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},stepperInputDynamicClass(){let t="";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" stepper-input--focused":this.state==="valid"?t+=" stepper-input--focused-valid":this.state==="invalid"&&(t+=" stepper-input--focused-invalid")):(t="stepper-input",this.disabled?t+=" stepper-input--disabled":this.state==="valid"?t+=" stepper-input--valid":this.state==="invalid"&&(t+=" stepper-input--invalid")),t}},watch:{modelValue(t){this.internalValue=t},internalValue(t){t||(this.internalValue=0),typeof t=="string"&&(this.internalValue=+this.internalValue),t<this.min?(this.internalValue=this.min,this.$emit("invalid-number",`'O campo n\xE3o pode ser menor que ${parseInt(this.min,10)}.'`)):t>this.max?(this.internalValue=this.max,this.$emit("invalid-number",`'O campo n\xE3o pode ser maior que ${parseInt(this.max,10)}.'`)):this.$emit("update:modelValue",parseInt(t,10))}},methods:{changeValue(t){this.internalValue=parseInt(this.internalValue)+t}}},UZ={key:0},qZ={key:1,class:"stepper-input__label"},GZ={class:"label__content",for:"stepper-input"},KZ={key:0,class:"label__required-indicator"},ZZ=["disabled"],XZ={class:"stepper-input__icon-container"},JZ=["disabled"],QZ=["disabled"],eX={key:0,class:"stepper-input__error-message"};function tX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("longclick");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",UZ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",qZ,[a.createElementVNode("div",GZ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",KZ," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"stepper-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),disabled:n.disabled,class:a.normalizeClass(["stepper-input__field",{"stepper-input__field--thin":n.width==="thin","stepper-input__field--default":n.width==="default","stepper-input__field--wide":n.width=="wide"}]),type:"number",onFocus:e[1]||(e[1]=d=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=d=>s.isBeingFocused=!1)},null,42,ZZ),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",XZ,[a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:e[3]||(e[3]=d=>s.isBeingFocused=!0),onBlur:e[4]||(e[4]=d=>s.isBeingFocused=!1),onClick:e[5]||(e[5]=d=>r.changeValue(1))},[a.createVNode(o,{height:"16",width:"16",name:"plus-outline"})],40,JZ)),[[c,()=>r.changeValue(1)]]),a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:e[6]||(e[6]=d=>s.isBeingFocused=!0),onBlur:e[7]||(e[7]=d=>s.isBeingFocused=!1),onClick:e[8]||(e[8]=d=>r.changeValue(-1))},[a.createVNode(o,{height:"16",width:"16",name:"minus-outline"})],40,QZ)),[[c,()=>r.changeValue(-1)]])])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",eX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const nX=re(jZ,[["render",tX],["__scopeId","data-v-f77e7bd8"]]),y1e="",iX={props:{modelValue:{type:Boolean,default:!1,required:!0},small:{type:Boolean,default:!1},variant:{type:String,default:"green"},large:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},data(){return{isActive:this.modelValue,internalFocus:this.focused}},computed:{toggleSwitchSize(){return this.small===this.large?"switch--medium":this.small?"switch--small":"switch--large"}},watch:{modelValue(t,e){t!==e&&(this.isActive=t)}},methods:{handleClick(){this.$emit("update:modelValue",!this.isActive)}}},sX=["disabled"];function rX(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",{class:a.normalizeClass(["switch",r.toggleSwitchSize])},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.isActive=o),type:"checkbox",disabled:n.disabled,onClick:e[1]||(e[1]=(...o)=>r.handleClick&&r.handleClick(...o))},null,8,sX),[[a.vModelCheckbox,s.isActive]]),a.createElementVNode("span",{tabindex:"0",class:a.normalizeClass(["switch__slider",[`switch__slider--${n.variant}`,{[`switch__slider--active-focused--${n.variant}`]:s.internalFocus&&s.isActive&&!n.disabled,"switch__slider--inactive-focused":s.internalFocus&&!s.isActive&&!n.disabled,"switch__slider--small":n.small&&n.small!==n.large,"switch__slider--large":n.large&&n.small!==n.large,"switch__slider--medium":n.small===n.large}]]),onFocusout:e[2]||(e[2]=o=>s.internalFocus=!1),onFocusin:e[3]||(e[3]=o=>s.internalFocus=!0)},null,34)],2)])}const aX=re(iX,[["render",rX],["__scopeId","data-v-4ec199d7"]]),v1e="",oX={components:{CdsCheckbox:qh,CdsIcon:Ze,CdsClickable:hs},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:Ri.exports.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:Ri.exports.startCase(t)})):[]}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=Ri.exports.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){Ri.exports.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:jh,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=Ri.exports.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""},resolveValue(t,e){return e.formatter&&typeof e.formatter=="function"?e.formatter(t[e.key]):t[e.key]}}},lX={class:"table__container"},cX={class:"table__header"},dX={class:"table__header-item-content"},uX=["width"];function hX(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("table",lX,[a.createElementVNode("tr",cX,[n.allowSelection?(a.openBlock(),a.createElementBlock("th",{key:0,class:a.normalizeClass(["table__select-item",r.resolveHeaderItemClass(0)])},[a.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),r.handleSelectAll],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(h,f)=>(a.openBlock(),a.createElementBlock("th",{key:f,class:a.normalizeClass(r.resolveHeaderItemClass(f))},[a.createElementVNode("div",dX,[r.hasSlot(t.$slots,"header-item")?a.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(a.openBlock(),a.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:a.withModifiers(m=>r.handleSortBy(h.key),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.label)+" ",1),n.sortable&&h.key!==s.localSortBy?(a.openBlock(),a.createBlock(c,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&s.localSortDesc?(a.openBlock(),a.createBlock(c,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable?(a.openBlock(),a.createBlock(c,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):a.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localItems,(h,f)=>(a.openBlock(),a.createElementBlock("tr",{key:f,class:a.normalizeClass(r.resolveItemClass())},[n.allowSelection?(a.openBlock(),a.createElementBlock("td",{key:0,class:a.normalizeClass(["table__select-item",r.resolveContentItemClass(f,0)])},[a.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,r.handleSelectRow],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(m,g)=>(a.openBlock(),a.createElementBlock("td",{key:g,class:a.normalizeClass(r.resolveContentItemClass(f,g)),width:m.width?m.width:"auto"},[a.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[a.createTextVNode(a.toDisplayString(r.resolveValue(h,m)),1)],!0)],10,uX))),128))],2))),128))])}const fX=re(oX,[["render",hX],["__scopeId","data-v-ecfd3338"]]),b1e="",pX={components:{CdsIcon:Ze},props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Jt(n.title)||Jt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,getSlotName(t){return t.name},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return jl(this.internalActiveTab,t)}}},mX={id:"tabs"},gX={class:"inner-tabs__header"},_X=["id"],yX=["onClick","onContextmenu"],vX={class:"inner-tabs__text"},bX={key:0,role:"presentation",class:"nav-item cds-tab__action"},wX={class:"inner-tabs__content"};function kX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",mX,[a.createElementVNode("ul",gX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("li",{id:`${d}-${c.name}-tab`,key:`${d}-${c.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(c)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:a.normalizeStyle(r.activeBorderStyle),onClick:h=>r.handleClick(h,c),onContextmenu:a.withModifiers(h=>r.handleRightClick(h,c),["prevent","stop"])},[a.createElementVNode("span",vX,a.toDisplayString(c.title),1)],46,yX)],8,_X))),128)),n.showAddAction?(a.openBlock(),a.createElementBlock("li",bX,[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=a.withModifiers((...c)=>r.handleAddAction&&r.handleAddAction(...c),["prevent"]))},[a.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",wX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:`${d}-${c.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(c)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(c))],2))),128))])])}const CX=re(pX,[["render",kX]]),w1e="",xX={components:{CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:String,default:"",required:!0},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descri\xE7\xE3o"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:this.modelValue}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.disabled?`textarea__input--disabled ${this.fluid?"textarea__input--fluid":""}`:this.fluid?"textarea__input--fluid":"textarea__input"}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=t}}},SX={key:0},MX={key:1,class:"textarea__label"},OX={class:"label__content",for:"cds-text-area"},DX={key:0,class:"label__required-indicator"},EX=["placeholder","disabled"],BX={class:"textarea__icon-container"},TX={key:0,class:"textarea__error-message"};function VX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",SX,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",MX,[a.createElementVNode("div",OX,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",DX," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("textarea",{id:"textarea","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled},null,10,EX),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",BX,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,name:"check-outline",height:"20",width:"20",color:"#239F78",class:"textarea__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,name:"alert-outline",height:"20",width:"20",color:"#D22D41",class:"textarea__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(c,{key:2,size:"sm",variant:"blue",class:"textarea__icon--spinner-icon"})):a.createCommentVNode("",!0)])]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",TX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const IX=re(xX,[["render",VX],["__scopeId","data-v-2c7ea494"]]),k1e="",AX={directives:{cdstip:Go,facade:ql},components:{CdsLink:uu,CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,timeout:null}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},linkTextState(){return!!this.linkText}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.lazy?this.emitLazy(t):this.$emit("update:modelValue",t)}},methods:{emitLazy(t){clearTimeout(this.timeout);const e=this;this.timeout=setTimeout(function(){e.$emit("update:modelValue",t)},1e3)},handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},$X={key:0},NX={class:"label__content",for:"cds-text-input"},zX={key:0,class:"label__required-indicator"},PX=["placeholder","disabled"],LX=["placeholder","disabled"],FX={key:2,class:"text-input__icon-container"},RX={key:0,class:"text-input__error-message"};function HX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",$X,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",NX,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",zX," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),r.linkTextState?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[1]||(e[1]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[2]||(e[2]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,PX)),[[a.vModelText,s.internalValue],[f,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[4]||(e[4]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[5]||(e[5]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,LX)),[[a.vModelText,s.internalValue]]),n.state!=="default"?(a.openBlock(),a.createElementBlock("div",FX,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",RX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const WX=re(AX,[["render",HX],["__scopeId","data-v-c01a3c14"]]),tf=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),YX=(t,e)=>tf(t)&&tf(e)?ue.fromFormat(t,"HH:mm").diff(ue.fromFormat(e,"HH:mm"))>0:!1,C1e="",jX={directives:{facade:ql},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?tf(t):t.length===2&&YX(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Hor\xE1rio inv\xE1lido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Lt.fromDateTimes(ue.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),ue.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},UX={class:"input__label"},qX=["for"],GX={key:0,class:"label__required-indicator"},KX=["id"],ZX=["id","disabled"],XX=["id","disabled"],JX={key:0,class:"input__separator"},QX={key:1},eJ=["id","disabled"],tJ=["id","disabled"],nJ={key:0,class:"input__message"};function iJ(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",UX,[a.createElementVNode("div",{class:"label__content",for:n.id},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",GX," * ")):a.createCommentVNode("",!0)],8,qX)]),a.createElementVNode("div",{id:n.id,class:"input__container"},[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=c=>s.startHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=a.withKeys(c=>s.startHour++,["up"])),e[2]||(e[2]=a.withKeys(c=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,ZX),[[a.vModelText,s.startHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=c=>s.startMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=a.withKeys(c=>s.startMinute++,["up"])),e[6]||(e[6]=a.withKeys(c=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,XX),[[a.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",JX," At\xE9 ")):a.createCommentVNode("",!0),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",QX,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=c=>s.endHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=a.withKeys(c=>s.endHour++,["up"])),e[10]||(e[10]=a.withKeys(c=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,eJ),[[a.vModelText,s.endHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=c=>s.endMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=a.withKeys(c=>s.endMinute++,["up"])),e[14]||(e[14]=a.withKeys(c=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,tJ),[[a.vModelText,s.endMinute],[o,"##"]])])):a.createCommentVNode("",!0)],8,KX),n.state==="invalid"&&!n.disabled?(a.openBlock(),a.createElementBlock("div",nJ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const sJ=re(jX,[["render",iJ],["__scopeId","data-v-8cf870de"]]),S1e="",nf={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},Xy=()=>{a.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},Jy=nf.setup;nf.setup=Jy?(t,e)=>(Xy(),Jy(t,e)):Xy;const rJ=nf,aJ={class:"cds-timeline"};function oJ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",aJ,[a.renderSlot(t.$slots,"default")])}const lJ=re(rJ,[["render",oJ]]),M1e="",cJ={components:{CdsSpinner:ga},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:jh}},dJ={class:"cds-timeline-item"},uJ={class:"cds-timeline-item__opposite"},hJ={class:"cds-timeline-item__timeline-container"},fJ={class:"cds-timeline-item__content-container"},pJ={key:0,class:"cds-timeline-item__title"},mJ={class:"cds-timeline-item__text"};function gJ(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",dJ,[a.createElementVNode("div",uJ,[a.renderSlot(t.$slots,"opposite",{},void 0,!0)]),a.createElementVNode("div",hJ,[n.loading?(a.openBlock(),a.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),a.createElementVNode("div",{class:a.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),a.createElementVNode("div",fJ,[r.hasSlot(t.$slots,"title")?(a.openBlock(),a.createElementBlock("div",pJ,[a.renderSlot(t.$slots,"title",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("span",mJ,[a.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const _J=re(cJ,[["render",gJ],["__scopeId","data-v-e1fab2ab"]]),O1e="",sf={directives:{cdstip:Go},components:{CdsIcon:Ze},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{handleShowPassword(){this.showPassword=!this.showPassword}}},Qy=()=>{a.useCssVars(t=>({"34ba228e":t.resolveInputWidth}))},ev=sf.setup;sf.setup=ev?(t,e)=>(Qy(),ev(t,e)):Qy;const yJ=sf,vJ={key:0},bJ={class:"password-input__label__content",for:"cds-password-input"},wJ={key:0,class:"password-input__label__required-indicator"},kJ=["type","placeholder","disabled"],CJ={key:0,class:"password-input__password-toogle"},xJ={key:0,class:"password-input__error-message"};function SJ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",vJ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",bJ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",wJ," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):a.createCommentVNode("",!0)])],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"cds-password-input","onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:r.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,kJ),[[a.vModelDynamic,s.internalValue]]),r.disableTextPasswordInput?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CJ,[a.createVNode(c,{id:"cds-clickable",clickable:"",onClick:r.handleShowPassword},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",xJ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const MJ=re(yJ,[["render",SJ],["__scopeId","data-v-1d02d3bb"]]),D1e="",OJ={components:{CdsBox:$l,CdsButton:Sr},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Pr\xF3ximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigat\xF3rios da etapa anterior para
75
+ e as demais props s\xE3o booleanas e representam o status do passo.`},vertical:{type:Boolean,default:!1,required:!1},value:{type:Number,default:1,required:!0},disableOnClick:{type:Boolean,default:!1}},data(){return{internalValue:this.value-1}},watch:{internalValue(t){this.$emit("input",t+1)},value:{handler(t){this.internalValue=t-1},immediate:!0}},methods:{circleStyle(t,e){const n=this.disableOnClick?"":"stepper__step--clickable";return t.inProcessing?`stepper__step--in-processing ${n}`:t.error?`stepper__step--error ${n}`:t.completed?`stepper__step--completed ${n}`:e===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(t){this.disableOnClick||(this.internalValue=t)},dividerStyle(t){const e=this.vertical?"vertical-":"";if(t<0)return`stepper__${e}divider--default`;const n=t===this.steps.length-1,i=t===0,s=t-1,r=t+1;return!n&&this.steps[t].completed&&this.steps[r].completed?`stepper__${e}divider--completed`:!n&&t>0&&this.steps[t].completed&&this.steps[s].completed||!n&&i&&this.steps[t].completed?`stepper__${e}divider--in-progress`:`stepper__${e}divider--default`},stepSectionStyle(t){let e="";return e+=t!==this.steps.length-1?"stepper__step-section ":"",e+=this.vertical?"stepper__step-section--vertical":"",e},labelStyle(t){let e="";return e+=t===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",e+=this.vertical?"":" stepper__step-label--horizontal",e+=this.disableOnClick?"":" stepper__step--clickable",e}}},IZ=t=>(a.pushScopeId("data-v-6046312d"),t=t(),a.popScopeId(),t),AZ={class:"stepper__edge"},$Z=["onClick"],NZ=["id","onClick"],zZ={key:2,class:"stepper__processing-icon"},PZ=[IZ(()=>a.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M18.78 16.6325C17.738 18.0472 16.3457 19.1664 14.7402 19.8799C13.1346 20.5935 11.3709 20.8769 9.62259 20.7023C7.87428 20.5276 6.20151 19.901 4.76877 18.884C3.33604 17.867 2.19266 16.4945 1.45107 14.9017C0.709475 13.3089 0.395207 11.5504 0.539162 9.79934C0.683116 8.04824 1.28034 6.36474 2.2721 4.9144C3.26387 3.46406 4.61603 2.2968 6.19562 1.52741C7.77522 0.758019 9.52787 0.412981 11.2812 0.526225L10.6287 10.6288L18.78 16.6325Z",fill:"#3A7EDF"})],-1))],LZ={key:3,class:"stepper__icon-text"},FZ={key:0,class:"stepper__edge-container"},RZ={class:"stepper__edge"};function HZ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[a.createElementVNode("div",{class:a.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[a.createElementVNode("div",AZ,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])],2),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.steps,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:a.normalizeClass(r.stepSectionStyle(d))},[n.vertical?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["stepper__step-label--vertical",r.labelStyle(d)]),onClick:h=>r.changeStep(d)},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],10,$Z)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:`step-${d+1}`,class:a.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>r.changeStep(d)},[a.createElementVNode("div",{class:a.normalizeClass(["stepper__icon-circle",r.circleStyle(c,d)])},[c.completed?(a.openBlock(),a.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):c.error?(a.openBlock(),a.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):c.inProcessing?(a.openBlock(),a.createElementBlock("div",zZ,PZ)):(a.openBlock(),a.createElementBlock("span",LZ,a.toDisplayString(d+1),1))],2),a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(d))},null,2)],10,NZ),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["stepper__step-label",r.labelStyle(d)])},[a.createElementVNode("small",null,a.toDisplayString(c.label),1)],2))],2))),128)),n.vertical?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FZ,[a.createElementVNode("div",RZ,[a.createElementVNode("div",{class:a.normalizeClass(r.dividerStyle(-1))},null,2)])]))],2)}const WZ=re(VZ,[["render",HZ],["__scopeId","data-v-6046312d"]]);var Zy={exports:{}};(function(t){t.exports=function(e){var n={};function i(s){if(n[s])return n[s].exports;var r=n[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=n,i.d=function(s,r,o){i.o(s,r)||Object.defineProperty(s,r,{enumerable:!0,get:o})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,r){if(r&1&&(s=i(s)),r&8||r&4&&typeof s=="object"&&s&&s.__esModule)return s;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:s}),r&2&&typeof s!="string")for(var c in s)i.d(o,c,function(d){return s[d]}.bind(null,c));return o},i.n=function(s){var r=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(r,"a",r),r},i.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)},i.p="",i(i.s="fae3")}({"01f9":function(e,n,i){var s=i("2d00"),r=i("5ca1"),o=i("2aba"),c=i("32e9"),d=i("84f2"),h=i("41a0"),f=i("7f20"),m=i("38fd"),g=i("2b4c")("iterator"),y=!([].keys&&"next"in[].keys()),b="@@iterator",k="keys",C="values",S=function(){return this};e.exports=function(E,A,x,V,N,L,F){h(x,A,V);var q=function(pe){if(!y&&pe in ie)return ie[pe];switch(pe){case k:return function(){return new x(this,pe)};case C:return function(){return new x(this,pe)}}return function(){return new x(this,pe)}},ee=A+" Iterator",ne=N==C,K=!1,ie=E.prototype,me=ie[g]||ie[b]||N&&ie[N],J=me||q(N),he=N?ne?q("entries"):J:void 0,fe=A=="Array"&&ie.entries||me,ye,we,R;if(fe&&(R=m(fe.call(new E)),R!==Object.prototype&&R.next&&(f(R,ee,!0),!s&&typeof R[g]!="function"&&c(R,g,S))),ne&&me&&me.name!==C&&(K=!0,J=function(){return me.call(this)}),(!s||F)&&(y||K||!ie[g])&&c(ie,g,J),d[A]=J,d[ee]=S,N)if(ye={values:ne?J:q(C),keys:L?J:q(k),entries:he},F)for(we in ye)we in ie||o(ie,we,ye[we]);else r(r.P+r.F*(y||K),A,ye);return ye}},"0d58":function(e,n,i){var s=i("ce10"),r=i("e11e");e.exports=Object.keys||function(c){return s(c,r)}},1495:function(e,n,i){var s=i("86cc"),r=i("cb7c"),o=i("0d58");e.exports=i("9e1e")?Object.defineProperties:function(d,h){r(d);for(var f=o(h),m=f.length,g=0,y;m>g;)s.f(d,y=f[g++],h[y]);return d}},"230e":function(e,n,i){var s=i("d3f4"),r=i("7726").document,o=s(r)&&s(r.createElement);e.exports=function(c){return o?r.createElement(c):{}}},"2aba":function(e,n,i){var s=i("7726"),r=i("32e9"),o=i("69a8"),c=i("ca5a")("src"),d=i("fa5b"),h="toString",f=(""+d).split(h);i("8378").inspectSource=function(m){return d.call(m)},(e.exports=function(m,g,y,b){var k=typeof y=="function";k&&(o(y,"name")||r(y,"name",g)),m[g]!==y&&(k&&(o(y,c)||r(y,c,m[g]?""+m[g]:f.join(String(g)))),m===s?m[g]=y:b?m[g]?m[g]=y:r(m,g,y):(delete m[g],r(m,g,y)))})(Function.prototype,h,function(){return typeof this=="function"&&this[c]||d.call(this)})},"2aeb":function(e,n,i){var s=i("cb7c"),r=i("1495"),o=i("e11e"),c=i("613b")("IE_PROTO"),d=function(){},h="prototype",f=function(){var m=i("230e")("iframe"),g=o.length,y="<",b=">",k;for(m.style.display="none",i("fab2").appendChild(m),m.src="javascript:",k=m.contentWindow.document,k.open(),k.write(y+"script"+b+"document.F=Object"+y+"/script"+b),k.close(),f=k.F;g--;)delete f[h][o[g]];return f()};e.exports=Object.create||function(g,y){var b;return g!==null?(d[h]=s(g),b=new d,d[h]=null,b[c]=g):b=f(),y===void 0?b:r(b,y)}},"2b4c":function(e,n,i){var s=i("5537")("wks"),r=i("ca5a"),o=i("7726").Symbol,c=typeof o=="function",d=e.exports=function(h){return s[h]||(s[h]=c&&o[h]||(c?o:r)("Symbol."+h))};d.store=s},"2d00":function(e,n){e.exports=!1},"2d95":function(e,n){var i={}.toString;e.exports=function(s){return i.call(s).slice(8,-1)}},"32e9":function(e,n,i){var s=i("86cc"),r=i("4630");e.exports=i("9e1e")?function(o,c,d){return s.f(o,c,r(1,d))}:function(o,c,d){return o[c]=d,o}},"38fd":function(e,n,i){var s=i("69a8"),r=i("4bf8"),o=i("613b")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(d){return d=r(d),s(d,o)?d[o]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?c:null}},"41a0":function(e,n,i){var s=i("2aeb"),r=i("4630"),o=i("7f20"),c={};i("32e9")(c,i("2b4c")("iterator"),function(){return this}),e.exports=function(d,h,f){d.prototype=s(c,{next:r(1,f)}),o(d,h+" Iterator")}},4588:function(e,n){var i=Math.ceil,s=Math.floor;e.exports=function(r){return isNaN(r=+r)?0:(r>0?s:i)(r)}},4630:function(e,n){e.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(e,n,i){var s=i("be13");e.exports=function(r){return Object(s(r))}},5537:function(e,n,i){var s=i("8378"),r=i("7726"),o="__core-js_shared__",c=r[o]||(r[o]={});(e.exports=function(d,h){return c[d]||(c[d]=h!==void 0?h:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,n,i){var s=i("7726"),r=i("8378"),o=i("32e9"),c=i("2aba"),d=i("9b43"),h="prototype",f=function(m,g,y){var b=m&f.F,k=m&f.G,C=m&f.S,S=m&f.P,E=m&f.B,A=k?s:C?s[g]||(s[g]={}):(s[g]||{})[h],x=k?r:r[g]||(r[g]={}),V=x[h]||(x[h]={}),N,L,F,q;k&&(y=g);for(N in y)L=!b&&A&&A[N]!==void 0,F=(L?A:y)[N],q=E&&L?d(F,s):S&&typeof F=="function"?d(Function.call,F):F,A&&c(A,N,F,m&f.U),x[N]!=F&&o(x,N,q),S&&V[N]!=F&&(V[N]=F)};s.core=r,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},"613b":function(e,n,i){var s=i("5537")("keys"),r=i("ca5a");e.exports=function(o){return s[o]||(s[o]=r(o))}},"626a":function(e,n,i){var s=i("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(r){return s(r)=="String"?r.split(""):Object(r)}},6821:function(e,n,i){var s=i("626a"),r=i("be13");e.exports=function(o){return s(r(o))}},"69a8":function(e,n){var i={}.hasOwnProperty;e.exports=function(s,r){return i.call(s,r)}},"6a99":function(e,n,i){var s=i("d3f4");e.exports=function(r,o){if(!s(r))return r;var c,d;if(o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r))||typeof(c=r.valueOf)=="function"&&!s(d=c.call(r))||!o&&typeof(c=r.toString)=="function"&&!s(d=c.call(r)))return d;throw TypeError("Can't convert object to primitive value")}},7726:function(e,n){var i=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(e,n,i){var s=i("4588"),r=Math.max,o=Math.min;e.exports=function(c,d){return c=s(c),c<0?r(c+d,0):o(c,d)}},"79e5":function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(e,n,i){var s=i("86cc").f,r=i("69a8"),o=i("2b4c")("toStringTag");e.exports=function(c,d,h){c&&!r(c=h?c:c.prototype,o)&&s(c,o,{configurable:!0,value:d})}},"7f7f":function(e,n,i){var s=i("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,c="name";c in r||i("9e1e")&&s(r,c,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch{return""}}})},8378:function(e,n){var i=e.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},"84f2":function(e,n){e.exports={}},"86cc":function(e,n,i){var s=i("cb7c"),r=i("c69a"),o=i("6a99"),c=Object.defineProperty;n.f=i("9e1e")?Object.defineProperty:function(h,f,m){if(s(h),f=o(f,!0),s(m),r)try{return c(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(h[f]=m.value),h}},"9b43":function(e,n,i){var s=i("d8e8");e.exports=function(r,o,c){if(s(r),o===void 0)return r;switch(c){case 1:return function(d){return r.call(o,d)};case 2:return function(d,h){return r.call(o,d,h)};case 3:return function(d,h,f){return r.call(o,d,h,f)}}return function(){return r.apply(o,arguments)}}},"9c6c":function(e,n,i){var s=i("2b4c")("unscopables"),r=Array.prototype;r[s]==null&&i("32e9")(r,s,{}),e.exports=function(o){r[s][o]=!0}},"9def":function(e,n,i){var s=i("4588"),r=Math.min;e.exports=function(o){return o>0?r(s(o),9007199254740991):0}},"9e1e":function(e,n,i){e.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},ac6a:function(e,n,i){for(var s=i("cadf"),r=i("0d58"),o=i("2aba"),c=i("7726"),d=i("32e9"),h=i("84f2"),f=i("2b4c"),m=f("iterator"),g=f("toStringTag"),y=h.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},k=r(b),C=0;C<k.length;C++){var S=k[C],E=b[S],A=c[S],x=A&&A.prototype,V;if(x&&(x[m]||d(x,m,y),x[g]||d(x,g,S),h[S]=y,E))for(V in s)x[V]||o(x,V,s[V],!0)}},be13:function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(e,n,i){var s=i("6821"),r=i("9def"),o=i("77f1");e.exports=function(c){return function(d,h,f){var m=s(d),g=r(m.length),y=o(f,g),b;if(c&&h!=h){for(;g>y;)if(b=m[y++],b!=b)return!0}else for(;g>y;y++)if((c||y in m)&&m[y]===h)return c||y||0;return!c&&-1}}},c69a:function(e,n,i){e.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},ca5a:function(e,n){var i=0,s=Math.random();e.exports=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++i+s).toString(36))}},cadf:function(e,n,i){var s=i("9c6c"),r=i("d53b"),o=i("84f2"),c=i("6821");e.exports=i("01f9")(Array,"Array",function(d,h){this._t=c(d),this._i=0,this._k=h},function(){var d=this._t,h=this._k,f=this._i++;return!d||f>=d.length?(this._t=void 0,r(1)):h=="keys"?r(0,f):h=="values"?r(0,d[f]):r(0,[f,d[f]])},"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},cb7c:function(e,n,i){var s=i("d3f4");e.exports=function(r){if(!s(r))throw TypeError(r+" is not an object!");return r}},ce10:function(e,n,i){var s=i("69a8"),r=i("6821"),o=i("c366")(!1),c=i("613b")("IE_PROTO");e.exports=function(d,h){var f=r(d),m=0,g=[],y;for(y in f)y!=c&&s(f,y)&&g.push(y);for(;h.length>m;)s(f,y=h[m++])&&(~o(g,y)||g.push(y));return g}},d3f4:function(e,n){e.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(e,n){e.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(e,n){(function(i){var s="currentScript",r=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(d){var o,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(o in r)if(r[o].src==c||r[o].readyState=="interactive")return r[o];return null}}})})(document)},fa5b:function(e,n,i){e.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(e,n,i){var s=i("7726").document;e.exports=s&&s.documentElement},fae3:function(e,n,i){if(i.r(n),i.d(n,"longClickDirective",function(){return o}),typeof window<"u"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("ac6a"),i("7f7f");var r=function(c){var d=c.delay,h=d===void 0?400:d,f=c.interval,m=f===void 0?50:f;return{beforeMount:function(y,b,k,C){if(typeof b.value!="function"){var S=k.context.name,E="[longclick:] provided expression '".concat(b.expression,"' is not a function, but has to be");S&&(E+="Found in component '".concat(S,"' ")),console.warn(E)}var A=null,x=null,V=function(q){b.value(q)},N=function(q){q.type==="click"&&q.button!==0||A===null&&(A=setTimeout(function(){m&&m>0&&(x=setInterval(function(){V(q)},m)),V(q)},h))},L=function(){A!==null&&(clearTimeout(A),A=null),x&&(clearInterval(x),x=null)};["mousedown","touchstart"].forEach(function(F){y.addEventListener(F,N,{passive:!0})}),["click","mouseout","touchend","touchcancel"].forEach(function(F){y.addEventListener(F,L,{passive:!0})})},created:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeUnmount:function(){},unmounted:function(){}}},o=r}})})(Zy);const _1e="",YZ=Zy.exports.longClickDirective({delay:400,interval:50}),jZ={components:{CdsIcon:Ze},directives:{longclick:YZ},props:{modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},width:{type:String,default:"default",required:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"}},data(){return{internalValue:this.modelValue,isBeingFocused:!1}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},stepperInputDynamicClass(){let t="";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" stepper-input--focused":this.state==="valid"?t+=" stepper-input--focused-valid":this.state==="invalid"&&(t+=" stepper-input--focused-invalid")):(t="stepper-input",this.disabled?t+=" stepper-input--disabled":this.state==="valid"?t+=" stepper-input--valid":this.state==="invalid"&&(t+=" stepper-input--invalid")),t}},watch:{modelValue(t){this.internalValue=t},internalValue(t){t||(this.internalValue=0),typeof t=="string"&&(this.internalValue=+this.internalValue),t<this.min?(this.internalValue=this.min,this.$emit("invalid-number",`'O campo n\xE3o pode ser menor que ${parseInt(this.min,10)}.'`)):t>this.max?(this.internalValue=this.max,this.$emit("invalid-number",`'O campo n\xE3o pode ser maior que ${parseInt(this.max,10)}.'`)):this.$emit("update:modelValue",parseInt(t,10))}},methods:{changeValue(t){this.internalValue=parseInt(this.internalValue)+t}}},UZ={key:0},qZ={key:1,class:"stepper-input__label"},GZ={class:"label__content",for:"stepper-input"},KZ={key:0,class:"label__required-indicator"},ZZ=["disabled"],XZ={class:"stepper-input__icon-container"},JZ=["disabled"],QZ=["disabled"],eX={key:0,class:"stepper-input__error-message"};function tX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveDirective("longclick");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",UZ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",qZ,[a.createElementVNode("div",GZ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",KZ," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"stepper-input","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),disabled:n.disabled,class:a.normalizeClass(["stepper-input__field",{"stepper-input__field--thin":n.width==="thin","stepper-input__field--default":n.width==="default","stepper-input__field--wide":n.width=="wide"}]),type:"number",onFocus:e[1]||(e[1]=d=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=d=>s.isBeingFocused=!1)},null,42,ZZ),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",XZ,[a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:e[3]||(e[3]=d=>s.isBeingFocused=!0),onBlur:e[4]||(e[4]=d=>s.isBeingFocused=!1),onClick:e[5]||(e[5]=d=>r.changeValue(1))},[a.createVNode(o,{height:"16",width:"16",name:"plus-outline"})],40,JZ)),[[c,()=>r.changeValue(1)]]),a.withDirectives((a.openBlock(),a.createElementBlock("button",{disabled:n.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:e[6]||(e[6]=d=>s.isBeingFocused=!0),onBlur:e[7]||(e[7]=d=>s.isBeingFocused=!1),onClick:e[8]||(e[8]=d=>r.changeValue(-1))},[a.createVNode(o,{height:"16",width:"16",name:"minus-outline"})],40,QZ)),[[c,()=>r.changeValue(-1)]])])],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",eX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const nX=re(jZ,[["render",tX],["__scopeId","data-v-f77e7bd8"]]),y1e="",iX={props:{modelValue:{type:Boolean,default:!1,required:!0},small:{type:Boolean,default:!1},variant:{type:String,default:"green"},large:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},data(){return{isActive:this.modelValue,internalFocus:this.focused}},computed:{toggleSwitchSize(){return this.small===this.large?"switch--medium":this.small?"switch--small":"switch--large"}},watch:{modelValue(t,e){t!==e&&(this.isActive=t)}},methods:{handleClick(){this.$emit("update:modelValue",!this.isActive)}}},sX=["disabled"];function rX(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",{class:a.normalizeClass(["switch",r.toggleSwitchSize])},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.isActive=o),type:"checkbox",disabled:n.disabled,onClick:e[1]||(e[1]=(...o)=>r.handleClick&&r.handleClick(...o))},null,8,sX),[[a.vModelCheckbox,s.isActive]]),a.createElementVNode("span",{tabindex:"0",class:a.normalizeClass(["switch__slider",[`switch__slider--${n.variant}`,{[`switch__slider--active-focused--${n.variant}`]:s.internalFocus&&s.isActive&&!n.disabled,"switch__slider--inactive-focused":s.internalFocus&&!s.isActive&&!n.disabled,"switch__slider--small":n.small&&n.small!==n.large,"switch__slider--large":n.large&&n.small!==n.large,"switch__slider--medium":n.small===n.large}]]),onFocusout:e[2]||(e[2]=o=>s.internalFocus=!1),onFocusin:e[3]||(e[3]=o=>s.internalFocus=!0)},null,34)],2)])}const aX=re(iX,[["render",rX],["__scopeId","data-v-4ec199d7"]]),v1e="",oX={components:{CdsCheckbox:qh,CdsIcon:Ze,CdsClickable:hs},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:bi.exports.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:bi.exports.startCase(t)})):[]}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=bi.exports.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){bi.exports.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:jh,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=bi.exports.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""},resolveValue(t,e){return e.formatter&&typeof e.formatter=="function"?e.formatter(t[e.key]):t[e.key]}}},lX={class:"table__container"},cX={class:"table__header"},dX={class:"table__header-item-content"},uX=["width"];function hX(t,e,n,i,s,r){const o=a.resolveComponent("cds-checkbox"),c=a.resolveComponent("cds-icon"),d=a.resolveComponent("cds-clickable");return a.openBlock(),a.createElementBlock("table",lX,[a.createElementVNode("tr",cX,[n.allowSelection?(a.openBlock(),a.createElementBlock("th",{key:0,class:a.normalizeClass(["table__select-item",r.resolveHeaderItemClass(0)])},[a.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),r.handleSelectAll],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(h,f)=>(a.openBlock(),a.createElementBlock("th",{key:f,class:a.normalizeClass(r.resolveHeaderItemClass(f))},[a.createElementVNode("div",dX,[r.hasSlot(t.$slots,"header-item")?a.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(a.openBlock(),a.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:a.withModifiers(m=>r.handleSortBy(h.key),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.label)+" ",1),n.sortable&&h.key!==s.localSortBy?(a.openBlock(),a.createBlock(c,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&s.localSortDesc?(a.openBlock(),a.createBlock(c,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable?(a.openBlock(),a.createBlock(c,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):a.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.localItems,(h,f)=>(a.openBlock(),a.createElementBlock("tr",{key:f,class:a.normalizeClass(r.resolveItemClass())},[n.allowSelection?(a.openBlock(),a.createElementBlock("td",{key:0,class:a.normalizeClass(["table__select-item",r.resolveContentItemClass(f,0)])},[a.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,r.handleSelectRow],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.computedFields,(m,g)=>(a.openBlock(),a.createElementBlock("td",{key:g,class:a.normalizeClass(r.resolveContentItemClass(f,g)),width:m.width?m.width:"auto"},[a.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[a.createTextVNode(a.toDisplayString(r.resolveValue(h,m)),1)],!0)],10,uX))),128))],2))),128))])}const fX=re(oX,[["render",hX],["__scopeId","data-v-ecfd3338"]]),b1e="",pX={components:{CdsIcon:Ze},props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>Jt(n.title)||Jt(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>Kr.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Kr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Ul,getSlotName(t){return t.name},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return jl(this.internalActiveTab,t)}}},mX={id:"tabs"},gX={class:"inner-tabs__header"},_X=["id"],yX=["onClick","onContextmenu"],vX={class:"inner-tabs__text"},bX={key:0,role:"presentation",class:"nav-item cds-tab__action"},wX={class:"inner-tabs__content"};function kX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon");return a.openBlock(),a.createElementBlock("div",mX,[a.createElementVNode("ul",gX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("li",{id:`${d}-${c.name}-tab`,key:`${d}-${c.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:a.normalizeClass(["inner-tabs__tab",r.isActive(c)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:a.normalizeStyle(r.activeBorderStyle),onClick:h=>r.handleClick(h,c),onContextmenu:a.withModifiers(h=>r.handleRightClick(h,c),["prevent","stop"])},[a.createElementVNode("span",vX,a.toDisplayString(c.title),1)],46,yX)],8,_X))),128)),n.showAddAction?(a.openBlock(),a.createElementBlock("li",bX,[a.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=a.withModifiers((...c)=>r.handleAddAction&&r.handleAddAction(...c),["prevent"]))},[a.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",wX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.tabs,(c,d)=>(a.openBlock(),a.createElementBlock("div",{key:`${d}-${c.name}-tab`,role:"tabpanel",class:a.normalizeClass(["content__pane",r.isActive(c)?"content__pane--active":"content__pane--inactive"])},[a.renderSlot(t.$slots,r.getSlotName(c))],2))),128))])])}const CX=re(pX,[["render",kX]]),w1e="",xX={components:{CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:String,default:"",required:!0},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descri\xE7\xE3o"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1}},data(){return{internalValue:this.modelValue}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){return this.disabled?`textarea__input--disabled ${this.fluid?"textarea__input--fluid":""}`:this.fluid?"textarea__input--fluid":"textarea__input"}},watch:{internalValue(t){this.$emit("update:modelValue",t)},modelValue(t){this.internalValue=t}}},SX={key:0},MX={key:1,class:"textarea__label"},OX={class:"label__content",for:"cds-text-area"},DX={key:0,class:"label__required-indicator"},EX=["placeholder","disabled"],BX={class:"textarea__icon-container"},TX={key:0,class:"textarea__error-message"};function VX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",SX,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",MX,[a.createElementVNode("div",OX,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",DX," * ")):a.createCommentVNode("",!0)])]))]),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("textarea",{id:"textarea","onUpdate:modelValue":e[0]||(e[0]=d=>s.internalValue=d),class:a.normalizeClass(r.inputClass),placeholder:n.placeholder,disabled:n.disabled},null,10,EX),[[a.vModelText,s.internalValue]]),a.createElementVNode("div",BX,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,name:"check-outline",height:"20",width:"20",color:"#239F78",class:"textarea__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,name:"alert-outline",height:"20",width:"20",color:"#D22D41",class:"textarea__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(c,{key:2,size:"sm",variant:"blue",class:"textarea__icon--spinner-icon"})):a.createCommentVNode("",!0)])]),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",TX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const IX=re(xX,[["render",VX],["__scopeId","data-v-2c7ea494"]]),k1e="",AX={directives:{cdstip:Go,facade:ql},components:{CdsLink:uu,CdsIcon:Ze,CdsSpinner:ga},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,timeout:null}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},linkTextState(){return!!this.linkText}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.lazy?this.emitLazy(t):this.$emit("update:modelValue",t)}},methods:{emitLazy(t){clearTimeout(this.timeout);const e=this;this.timeout=setTimeout(function(){e.$emit("update:modelValue",t)},1e3)},handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},$X={key:0},NX={class:"label__content",for:"cds-text-input"},zX={key:0,class:"label__required-indicator"},PX=["placeholder","disabled"],LX=["placeholder","disabled"],FX={key:2,class:"text-input__icon-container"},RX={key:0,class:"text-input__error-message"};function HX(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-link"),d=a.resolveComponent("cds-spinner"),h=a.resolveDirective("cdstip"),f=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",$X,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",NX,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",zX," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):a.createCommentVNode("",!0)]),r.linkTextState?(a.openBlock(),a.createBlock(c,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):a.createCommentVNode("",!0)],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[n.mask?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,id:"cds-text-input","onUpdate:modelValue":e[0]||(e[0]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[1]||(e[1]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[2]||(e[2]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,PX)),[[a.vModelText,s.internalValue],[f,n.mask]]):a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:1,id:"cds-text-input","onUpdate:modelValue":e[3]||(e[3]=m=>s.internalValue=m),placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),type:"text",onFocus:e[4]||(e[4]=(...m)=>r.handleFocus&&r.handleFocus(...m)),onBlur:e[5]||(e[5]=(...m)=>r.handleBlur&&r.handleBlur(...m))},null,42,LX)),[[a.vModelText,s.internalValue]]),n.state!=="default"?(a.openBlock(),a.createElementBlock("div",FX,[r.validState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):a.createCommentVNode("",!0),r.errorState&&!n.disabled?(a.openBlock(),a.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):a.createCommentVNode("",!0),r.loadingState&&!n.disabled?(a.openBlock(),a.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",RX,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const WX=re(AX,[["render",HX],["__scopeId","data-v-c01a3c14"]]),tf=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),YX=(t,e)=>tf(t)&&tf(e)?ue.fromFormat(t,"HH:mm").diff(ue.fromFormat(e,"HH:mm"))>0:!1,C1e="",jX={directives:{facade:ql},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?tf(t):t.length===2&&YX(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Hor\xE1rio inv\xE1lido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Lt.fromDateTimes(ue.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),ue.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},UX={class:"input__label"},qX=["for"],GX={key:0,class:"label__required-indicator"},KX=["id"],ZX=["id","disabled"],XX=["id","disabled"],JX={key:0,class:"input__separator"},QX={key:1},eJ=["id","disabled"],tJ=["id","disabled"],nJ={key:0,class:"input__message"};function iJ(t,e,n,i,s,r){const o=a.resolveDirective("facade");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",UX,[a.createElementVNode("div",{class:"label__content",for:n.id},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",GX," * ")):a.createCommentVNode("",!0)],8,qX)]),a.createElementVNode("div",{id:n.id,class:"input__container"},[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=c=>s.startHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=a.withKeys(c=>s.startHour++,["up"])),e[2]||(e[2]=a.withKeys(c=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,ZX),[[a.vModelText,s.startHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=c=>s.startMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=a.withKeys(c=>s.startMinute++,["up"])),e[6]||(e[6]=a.withKeys(c=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,XX),[[a.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",JX," At\xE9 ")):a.createCommentVNode("",!0),n.mode==="range"?(a.openBlock(),a.createElementBlock("div",QX,[a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=c=>s.endHour=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=a.withKeys(c=>s.endHour++,["up"])),e[10]||(e[10]=a.withKeys(c=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,eJ),[[a.vModelText,s.endHour],[o,"##"]]),a.createTextVNode(" : "),a.withDirectives(a.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=c=>s.endMinute=c),class:a.normalizeClass(r.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=a.withKeys(c=>s.endMinute++,["up"])),e[14]||(e[14]=a.withKeys(c=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...c)=>r.handleTimeInput&&r.handleTimeInput(...c))},null,42,tJ),[[a.vModelText,s.endMinute],[o,"##"]])])):a.createCommentVNode("",!0)],8,KX),n.state==="invalid"&&!n.disabled?(a.openBlock(),a.createElementBlock("div",nJ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const sJ=re(jX,[["render",iJ],["__scopeId","data-v-8cf870de"]]),S1e="",nf={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},Xy=()=>{a.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},Jy=nf.setup;nf.setup=Jy?(t,e)=>(Xy(),Jy(t,e)):Xy;const rJ=nf,aJ={class:"cds-timeline"};function oJ(t,e,n,i,s,r){return a.openBlock(),a.createElementBlock("div",aJ,[a.renderSlot(t.$slots,"default")])}const lJ=re(rJ,[["render",oJ]]),M1e="",cJ={components:{CdsSpinner:ga},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:jh}},dJ={class:"cds-timeline-item"},uJ={class:"cds-timeline-item__opposite"},hJ={class:"cds-timeline-item__timeline-container"},fJ={class:"cds-timeline-item__content-container"},pJ={key:0,class:"cds-timeline-item__title"},mJ={class:"cds-timeline-item__text"};function gJ(t,e,n,i,s,r){const o=a.resolveComponent("cds-spinner");return a.openBlock(),a.createElementBlock("div",dJ,[a.createElementVNode("div",uJ,[a.renderSlot(t.$slots,"opposite",{},void 0,!0)]),a.createElementVNode("div",hJ,[n.loading?(a.openBlock(),a.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),a.createElementVNode("div",{class:a.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),a.createElementVNode("div",fJ,[r.hasSlot(t.$slots,"title")?(a.openBlock(),a.createElementBlock("div",pJ,[a.renderSlot(t.$slots,"title",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("span",mJ,[a.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const _J=re(cJ,[["render",gJ],["__scopeId","data-v-e1fab2ab"]]),O1e="",sf={directives:{cdstip:Go},components:{CdsIcon:Ze},props:{modelValue:{type:String,default:""},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informa\xE7\xE3o"},errorMessage:{type:String,default:"Valor inv\xE1lido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{handleShowPassword(){this.showPassword=!this.showPassword}}},Qy=()=>{a.useCssVars(t=>({"34ba228e":t.resolveInputWidth}))},ev=sf.setup;sf.setup=ev?(t,e)=>(Qy(),ev(t,e)):Qy;const yJ=sf,vJ={key:0},bJ={class:"password-input__label__content",for:"cds-password-input"},wJ={key:0,class:"password-input__label__required-indicator"},kJ=["type","placeholder","disabled"],CJ={key:0,class:"password-input__password-toogle"},xJ={key:0,class:"password-input__error-message"};function SJ(t,e,n,i,s,r){const o=a.resolveComponent("cds-icon"),c=a.resolveComponent("cds-clickable"),d=a.resolveDirective("cdstip");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("span",null,[r.hasSlots?(a.openBlock(),a.createElementBlock("span",vJ,[a.renderSlot(t.$slots,"label",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("label",{key:1,class:a.normalizeClass(r.labelDynamicClass)},[a.createElementVNode("div",bJ,[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.required?(a.openBlock(),a.createElementBlock("span",wJ," * ")):a.createCommentVNode("",!0),n.tooltip?a.withDirectives((a.openBlock(),a.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):a.createCommentVNode("",!0)])],2))]),a.createElementVNode("div",{class:a.normalizeClass(r.stepperInputDynamicClass)},[a.withDirectives(a.createElementVNode("input",{id:"cds-password-input","onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:r.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:a.normalizeClass(r.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,kJ),[[a.vModelDynamic,s.internalValue]]),r.disableTextPasswordInput?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CJ,[a.createVNode(c,{id:"cds-clickable",clickable:"",onClick:r.handleShowPassword},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),r.errorState&&!n.disabled?(a.openBlock(),a.createElementBlock("div",xJ,a.toDisplayString(n.errorMessage),1)):a.createCommentVNode("",!0)])}const MJ=re(yJ,[["render",SJ],["__scopeId","data-v-1d02d3bb"]]),D1e="",OJ={components:{CdsBox:$l,CdsButton:Sr},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Pr\xF3ximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigat\xF3rios da etapa anterior para
76
76
  liberar a se\xE7\xE3o de ${t.toLowerCase()}`},handleStepBoxClick(t){this.currentStep=t},backActionClick(){this.currentStep>0?this.currentStep--:this.$emit("cancel-action",!0)},nextActionClick(){let t=this.currentStep;this.currentStep<this.steps.length-1&&t++,this.$emit("next-action",{nextStep:t})}}},DJ={class:"cds-wizard"},EJ={class:"cds-wizard__container"},BJ={key:0},TJ={class:"cds-wizard__title"},VJ={class:"cds-wizard__subtitle"},IJ={class:"cds-wizard__content"},AJ={key:1,class:"cds-wizard__empty-state"},$J=["src","alt"],NJ={class:"cds-wizard__empty-state-title"},zJ={class:"cds-wizard__empty-state-subtitle"},PJ={class:"cds-wizard__buttons"};function LJ(t,e,n,i,s,r){const o=a.resolveComponent("cds-box"),c=a.resolveComponent("cds-button");return a.openBlock(),a.createElementBlock("div",DJ,[a.createElementVNode("div",EJ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.steps,(d,h)=>(a.openBlock(),a.createBlock(o,{key:`wizard-step-${h}`,class:a.normalizeClass({"cds-wizard__empty-state-box":s.currentStep<h}),padding:5,elevated:s.currentStep===h,fluid:"",clickable:n.clickable,onBoxClick:f=>r.handleStepBoxClick(h),onClick:e[0]||(e[0]=a.withModifiers(()=>{},["prevent"]))},{default:a.withCtx(()=>[s.currentStep>=h?(a.openBlock(),a.createElementBlock("span",BJ,[a.renderSlot(t.$slots,`step-${h+1}-header`,{},()=>[a.createElementVNode("h3",TJ,a.toDisplayString(d.title),1),a.createElementVNode("h4",VJ,a.toDisplayString(d.subtitle),1)],!0),a.createElementVNode("div",IJ,[a.renderSlot(t.$slots,`step-${h+1}`,{},void 0,!0)])])):(a.openBlock(),a.createElementBlock("div",AJ,[d.image?(a.openBlock(),a.createElementBlock("img",{key:0,class:"cds-wizard__empty-state-image",src:d.image,alt:`Imagem de ${d.title}`},null,8,$J)):a.createCommentVNode("",!0),a.createElementVNode("div",NJ,a.toDisplayString(d.title),1),a.createElementVNode("div",zJ,a.toDisplayString(r.emptyStateText(d.title)),1)]))]),_:2},1032,["class","elevated","clickable","onBoxClick"]))),128))]),a.createElementVNode("div",PJ,[a.createVNode(c,{text:n.cancelButtonText,secondary:"",onButtonClick:r.backActionClick,onClick:e[1]||(e[1]=a.withModifiers(()=>{},["prevent"]))},null,8,["text","onButtonClick"]),a.createVNode(c,{text:n.nextButtonText,variant:n.nextButtonVariant,disabled:n.disableNextButton,onButtonClick:r.nextActionClick,onClick:e[2]||(e[2]=a.withModifiers(()=>{},["prevent"]))},null,8,["text","variant","disabled","onButtonClick"])])])}const FJ=re(OJ,[["render",LJ],["__scopeId","data-v-4436f0de"]]),RJ=(t,e)=>{let n="",i="",s=e.modifiers,r=e.arg;n=document.querySelector(`[id='${e.value}']`),i=document.querySelector(`[id='${t.id}']`),Ic(n,i,{placement:r,modifiers:[{name:"offset",options:{offset:[0,-4]}},{name:"flip",enabled:!!s.flip}]})};return{install:(t,e)=>{t.directive("cdstip",Go),t.directive("cds-floatify",RJ),t.component("CdsActionBar",U7),t.component("CdsActionsList",J7),t.component("CdsAlert",r8),t.component("CdsAlertCard",d8),t.component("CdsAppBar",R8),t.component("CdsAvatar",Zo),t.component("CdsAvatarGroup",J8),t.component("CdsBadge",tw),t.component("CdsBarChart",_S),t.component("CdsBox",$l),t.component("CdsBottomSheet",UO),t.component("CdsBreadcrumb",ZO),t.component("CdsButton",Sr),t.component("CdsCard",mD),t.component("CdsCalloutCard",CD),t.component("CdsCarouselController",ED),t.component("CdsCheckbox",qh),t.component("CdsChevron",Ca),t.component("CdsClickable",hs),t.component("CdsCollapsibleContainer",HD),t.component("CdsColorPicker",sE),t.component("CdsDashboardCard",pE),t.component("CdsDateInput",FY),t.component("CdsDialogModal",tj),t.component("CdsDivider",Nc),t.component("CdsDropdown",oj),t.component("CdsDonutChart",uj),t.component("CdsEmptyState",vj),t.component("CdsFileInput",Ej),t.component("CdsFilterSelect",Rj),t.component("CdsFlatButton",ty),t.component("CdsFloatingAssistant",rU),t.component("CdsGaugeChart",hU),t.component("CdsHighlight",mU),t.component("CdsIcon",Ze),t.component("CdsIconButton",vU),t.component("CdsImage",f4),t.component("CdsInnerTabs",OU),t.component("CdsLineChart",bO),t.component("CdsLink",uu),t.component("CdsInlineDateInput",$U),t.component("CdsLoadingBar",HU),t.component("CdsMobileNavigation",JU),t.component("CdsModal",oq),t.component("CdsMultiselect",Fq),t.component("CdsNavBar",Yq),t.component("CdsNumberInput",yG),t.component("CdsOverlayLoader",kG),t.component("CdsPageContainer",zy),t.component("CdsPageLayout",KG),t.component("CdsPageHeader",iK),t.component("CdsPagination",lK),t.component("CdsPanelCard",gK),t.component("CdsPinInput",wK),t.component("CdsPopover",Pc),t.component("CdsProgressBar",MK),t.component("CdsProgressCircular",TK),t.component("CdsPulsar",ny),t.component("CdsRadio",PK),t.component("CdsRadioButtonGroup",JK),t.component("CdsRadialBarChart",YK),t.component("CdsSpacer",Ld),t.component("CdsScrollable",C1),t.component("CdsSearchInput",nZ),t.component("CdsSegmentedControl",lZ),t.component("CdsSelect",wZ),t.component("CdsSideBar",Py),t.component("CdsSideSheet",SZ),t.component("CdsSkeleton",DZ),t.component("CdsSkeletonText",TZ),t.component("CdsSpinner",ga),t.component("CdsStackedBarChart",VO),t.component("CdsStepper",WZ),t.component("CdsStepperInput",nX),t.component("CdsSwitch",aX),t.component("CdsTable",fX),t.component("CdsTabs",CX),t.component("CdsTextArea",IX),t.component("CdsTextInput",WX),t.component("CdsTimeInput",sJ),t.component("CdsTooltip",Lc),t.component("CdsTimeline",lJ),t.component("CdsTimelineItem",_J),t.component("CdsTruncate",am),t.component("CdsPasswordInput",MJ),t.component("CdsPieChart",xO),t.component("CdsPolarAreaChart",DO),t.component("CdsWizard",FJ)}}});