import{A as la,C as ca,E as bn,G as yn,H as pa,_ as da,k as mn,o as na,p as oa,t as gn}from"./chunk-QB7CAXPK.js";import{c as Ns,o as ia}from"./chunk-3SYB3NMJ.js";import{$ as Ze,A as De,C as Ws,D as Qs,Ea as _e,Fa as Js,Ha as ui,I as Ks,La as ho,Oa as fo,Q as uo,Xa as mo,Y as qs,Z as Gs,Za as fe,_a as hi,aa as Je,b as ln,ba as mt,c as Hs,ea as At,eb as ea,g as Vi,gb as fi,h as pn,ha as Ys,i as js,j as po,ja as Xs,k as dn,kb as gt,lb as ta,ma as et,nb as sa,ob as _t,qb as aa,ra as Zs,s as Us,sb as go,ta as un,ua as hn,ub as _n,va as fn,wa as ze,wb as ra,xa as H,ya as Ue,yb as _o,z as Pt}from"./chunk-DCDHNUXZ.js";import{$b as Oe,Ac as A,Bb as Ie,Bc as Me,Cb as ao,Cc as Gt,Db as ro,Eb as lo,Ec as rn,Fb as C,Gb as T,Hb as R,Ib as Q,Jb as K,Kb as W,Lb as q,Nb as $,Ob as m,Pa as As,Pb as Xe,Qa as It,Qb as He,Rc as Ce,Sc as li,Ta as zs,Tb as P,Tc as Le,Ub as de,V as ai,Va as g,Vb as k,W as he,Wa as pt,Wb as O,Wc as je,X as ce,Xc as Ve,Zb as Ne,_b as ae,a as at,aa as oe,ab as qe,ac as St,ad as re,b as ht,bc as $s,cc as on,cd as Li,dc as sn,ec as an,fc as ge,gb as Z,gc as Ei,ha as Vs,hb as pe,hc as ne,ia as F,ic as Ae,id as cn,ja as E,jc as co,jd as ci,ka as ft,kb as J,lc as Rs,ld as pi,ma as U,mb as Ee,nb as x,nd as di,oc as Bs,ra as N,sa as Dt,ub as S,va as Ds,vb as f,vc as ue,wb as Ge,xb as ri,yb as Be,za as Ps,zb as j}from"./chunk-ACQORLPO.js";var tc=["*"],ic=({dt:t})=>`
.p-divider-horizontal {
    display: flex;
    width: 100%;
    position: relative;
    align-items: center;
    margin: ${t("divider.horizontal.margin")};
    padding: ${t("divider.horizontal.padding")};
}

.p-divider-horizontal:before {
    position: absolute;
    display: block;
    inset-block-start: 50%;
    inset-inline-start: 0;
    width: 100%;
    content: "";
    border-block-start: 1px solid ${t("divider.border.color")};
}

.p-divider-horizontal .p-divider-content {
    padding: ${t("divider.horizontal.content.padding")};
}

.p-divider-vertical {
    min-height: 100%;
    display: flex;
    position: relative;
    justify-content: center;
    margin: ${t("divider.vertical.margin")};
    padding: ${t("divider.vertical.padding")};
}

.p-divider-vertical:before {
    position: absolute;
    display: block;
    inset-block-start: 0;
    inset-inline-start: 50%;
    height: 100%;
    content: "";
    border-inline-start: 1px solid ${t("divider.border.color")};
}

.p-divider.p-divider-vertical .p-divider-content {
    padding: ${t("divider.vertical.content.padding")};
}

.p-divider-content {
    z-index: 1;
    background: ${t("divider.content.background")};
    color: ${t("divider.content.color")};
}

.p-divider-solid.p-divider-horizontal:before {
    border-block-start-style: solid;
}

.p-divider-solid.p-divider-vertical:before {
    border-inline-start-style: solid;
}

.p-divider-dashed.p-divider-horizontal:before {
    border-block-start-style: dashed;
}

.p-divider-dashed.p-divider-vertical:before {
    border-inline-start-style: dashed;
}

.p-divider-dotted.p-divider-horizontal:before {
    border-block-start-style: dotted;
}

.p-divider-dotted.p-divider-vertical:before {
    border-inline-start-style: dotted;
}

.p-divider-left:dir(rtl),
.p-divider-right:dir(rtl) {
    flex-direction: row-reverse;
}
`,nc={root:({props:t})=>({justifyContent:t.layout==="horizontal"?t.align==="center"||t.align===null?"center":t.align==="left"?"flex-start":t.align==="right"?"flex-end":null:null,alignItems:t.layout==="vertical"?t.align==="center"||t.align===null?"center":t.align==="top"?"flex-start":t.align==="bottom"?"flex-end":null:null})},oc={root:({props:t})=>["p-divider p-component","p-divider-"+t.layout,"p-divider-"+t.type,{"p-divider-left":t.layout==="horizontal"&&(!t.align||t.align==="left")},{"p-divider-center":t.layout==="horizontal"&&t.align==="center"},{"p-divider-right":t.layout==="horizontal"&&t.align==="right"},{"p-divider-top":t.layout==="vertical"&&t.align==="top"},{"p-divider-center":t.layout==="vertical"&&(!t.align||t.align==="center")},{"p-divider-bottom":t.layout==="vertical"&&t.align==="bottom"}],content:"p-divider-content"},ua=(()=>{class t extends _e{name="divider";theme=ic;classes=oc;inlineStyles=nc;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var sc=(()=>{class t extends fe{style;styleClass;layout="horizontal";type="solid";align;_componentStyle=oe(ua);get hostClass(){return this.styleClass}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-divider"]],hostVars:33,hostBindings:function(i,o){i&2&&(S("aria-orientation",o.layout)("data-pc-name","divider")("role","separator"),j(o.hostClass),Ge("justify-content",o.layout==="horizontal"?o.align==="center"||o.align===void 0?"center":o.align==="left"?"flex-start":o.align==="right"?"flex-end":null:null)("align-items",o.layout==="vertical"?o.align==="center"||o.align===void 0?"center":o.align==="top"?"flex-start":o.align==="bottom"?"flex-end":null:null),ri("p-divider",!0)("p-component",!0)("p-divider-horizontal",o.layout==="horizontal")("p-divider-vertical",o.layout==="vertical")("p-divider-solid",o.type==="solid")("p-divider-dashed",o.type==="dashed")("p-divider-dotted",o.type==="dotted")("p-divider-left",o.layout==="horizontal"&&(!o.align||o.align==="left"))("p-divider-center",o.layout==="horizontal"&&o.align==="center"||o.layout==="vertical"&&(!o.align||o.align==="center"))("p-divider-right",o.layout==="horizontal"&&o.align==="right")("p-divider-top",o.layout==="vertical"&&o.align==="top")("p-divider-bottom",o.layout==="vertical"&&o.align==="bottom"))},inputs:{style:"style",styleClass:"styleClass",layout:"layout",type:"type",align:"align"},features:[ge([ua]),J],ngContentSelectors:tc,decls:2,vars:0,consts:[[1,"p-divider-content"]],template:function(i,o){i&1&&(Xe(),C(0,"div",0),He(1),T())},dependencies:[re,H],encapsulation:2,changeDetection:0})}return t})(),zy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[sc]})}return t})();var ac=["header"],rc=["title"],lc=["subtitle"],cc=["content"],pc=["footer"],dc=["*",[["p-header"]],[["p-footer"]]],uc=["*","p-header","p-footer"];function hc(t,n){t&1&&W(0)}function fc(t,n){if(t&1&&(C(0,"div",8),He(1,1),x(2,hc,1,0,"ng-container",6),T()),t&2){let e=m();g(2),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function mc(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(2);g(),Oe(e.header)}}function gc(t,n){t&1&&W(0)}function _c(t,n){if(t&1&&(C(0,"div",9),x(1,mc,2,1,"ng-container",10)(2,gc,1,0,"ng-container",6),T()),t&2){let e=m();g(),f("ngIf",e.header&&!e._titleTemplate&&!e.titleTemplate),g(),f("ngTemplateOutlet",e.titleTemplate||e._titleTemplate)}}function bc(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(2);g(),Oe(e.subheader)}}function yc(t,n){t&1&&W(0)}function xc(t,n){if(t&1&&(C(0,"div",11),x(1,bc,2,1,"ng-container",10)(2,yc,1,0,"ng-container",6),T()),t&2){let e=m();g(),f("ngIf",e.subheader&&!e._subtitleTemplate&&!e.subtitleTemplate),g(),f("ngTemplateOutlet",e.subtitleTemplate||e._subtitleTemplate)}}function vc(t,n){t&1&&W(0)}function Cc(t,n){t&1&&W(0)}function wc(t,n){if(t&1&&(C(0,"div",12),He(1,2),x(2,Cc,1,0,"ng-container",6),T()),t&2){let e=m();g(2),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Tc=({dt:t})=>`
.p-card {
    background: ${t("card.background")};
    color: ${t("card.color")};
    box-shadow: ${t("card.shadow")};
    border-radius: ${t("card.border.radius")};
    display: flex;
    flex-direction: column;
}

.p-card-caption {
    display: flex;
    flex-direction: column;
    gap: ${t("card.caption.gap")};
}

.p-card-body {
    padding: ${t("card.body.padding")};
    display: flex;
    flex-direction: column;
    gap: ${t("card.body.gap")};
}

.p-card-title {
    font-size: ${t("card.title.font.size")};
    font-weight: ${t("card.title.font.weight")};
}

.p-card-subtitle {
    color: ${t("card.subtitle.color")};
}
`,Ic={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"},ha=(()=>{class t extends _e{name="card";theme=Tc;classes=Ic;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Sc=(()=>{class t extends fe{header;subheader;set style(e){mt(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=qe(null);_componentStyle=oe(ha);getBlockableElement(){return this.el.nativeElement.children[0]}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"title":this._titleTemplate=e.template;break;case"subtitle":this._subtitleTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-card"]],contentQueries:function(i,o,s){if(i&1&&(P(s,hn,5),P(s,fn,5),P(s,ac,4),P(s,rc,4),P(s,lc,4),P(s,cc,4),P(s,pc,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.headerFacet=a.first),k(a=O())&&(o.footerFacet=a.first),k(a=O())&&(o.headerTemplate=a.first),k(a=O())&&(o.titleTemplate=a.first),k(a=O())&&(o.subtitleTemplate=a.first),k(a=O())&&(o.contentTemplate=a.first),k(a=O())&&(o.footerTemplate=a.first),k(a=O())&&(o.templates=a)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[ge([ha]),J],ngContentSelectors:uc,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[4,"ngIf"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(i,o){i&1&&(Xe(dc),C(0,"div",0),x(1,fc,3,1,"div",1),C(2,"div",2),x(3,_c,3,2,"div",3)(4,xc,3,2,"div",4),C(5,"div",5),He(6),x(7,vc,1,0,"ng-container",6),T(),x(8,wc,3,1,"div",7),T()()),i&2&&(j(o.styleClass),f("ngClass","p-card p-component")("ngStyle",o._style()),S("data-pc-name","card"),g(),f("ngIf",o.headerFacet||o.headerTemplate||o._headerTemplate),g(2),f("ngIf",o.header||o.titleTemplate||o._titleTemplate),g(),f("ngIf",o.subheader||o.subtitleTemplate||o._subtitleTemplate),g(3),f("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),g(),f("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate))},dependencies:[re,Ce,Le,Ve,je,H],encapsulation:2,changeDetection:0})}return t})(),Jy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Sc,H,H]})}return t})();var kc=["*"],Oc=({dt:t})=>`
.p-inputgroup,
.p-inputgroup .p-floatlabel,
.p-inputgroup .p-iftalabel {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.p-inputgroup .p-inputtext,
.p-inputgroup .p-inputwrapper {
    flex: 1 1 auto;
    width: 1%;
}

.p-inputgroupaddon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: ${t("inputgroup.addon.padding")};
    background: ${t("inputgroup.addon.background")};
    color: ${t("inputgroup.addon.color")};
    border-block-start: 1px solid ${t("inputgroup.addon.border.color")};
    border-block-end: 1px solid ${t("inputgroup.addon.border.color")};
    min-width: ${t("inputgroup.addon.min.width")};
}

.p-inputgroupaddon:first-child,
.p-inputgroupaddon + .p-inputgroupaddon {
    border-inline-start: 1px solid ${t("inputgroup.addon.border.color")};
}

.p-inputgroupaddon:last-child {
    border-inline-end: 1px solid ${t("inputgroup.addon.border.color")};
}

.p-inputgroupaddon:has(.p-button) {
    padding: 0;
    overflow: hidden;
}

.p-inputgroupaddon .p-button {
    border-radius: 0;
}

.p-inputgroup > .p-component,
.p-inputgroup > .p-inputwrapper > .p-component,
.p-inputgroup:first-child > p-button > .p-button,
.p-inputgroup > .p-floatlabel > .p-component,
.p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
.p-inputgroup > .p-iftalabel > .p-component,
.p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
    border-radius: 0;
    margin: 0;
}

.p-inputgroupaddon:first-child,
.p-inputgroup > .p-component:first-child,
.p-inputgroup > .p-inputwrapper:first-child > .p-component,
.p-inputgroup > .p-floatlabel:first-child > .p-component,
.p-inputgroup > .p-floatlabel:first-child > .p-inputwrapper > .p-component,
.p-inputgroup > .p-iftalabel:first-child > .p-component,
.p-inputgroup > .p-iftalabel:first-child > .p-inputwrapper > .p-component {
    border-start-start-radius: ${t("inputgroup.addon.border.radius")};
    border-end-start-radius: ${t("inputgroup.addon.border.radius")};
}

.p-inputgroupaddon:last-child,
.p-inputgroup > .p-component:last-child,
.p-inputgroup > .p-inputwrapper:last-child > .p-component,
.p-inputgroup > .p-floatlabel:last-child > .p-component,
.p-inputgroup > .p-floatlabel:last-child > .p-inputwrapper > .p-component,
.p-inputgroup > .p-iftalabel:last-child > .p-component,
.p-inputgroup > .p-iftalabel:last-child > .p-inputwrapper > .p-component {
    border-start-end-radius: ${t("inputgroup.addon.border.radius")};
    border-end-end-radius: ${t("inputgroup.addon.border.radius")};
}

.p-inputgroup .p-component:focus,
.p-inputgroup .p-component.p-focus,
.p-inputgroup .p-inputwrapper-focus,
.p-inputgroup .p-component:focus ~ label,
.p-inputgroup .p-component.p-focus ~ label,
.p-inputgroup .p-inputwrapper-focus ~ label {
    z-index: 1;
}

.p-inputgroup > .p-button:not(.p-button-icon-only) {
    width: auto;
}

/*For PrimeNG*/

.p-inputgroup p-button:first-child, .p-inputgroup p-button:last-child {
    display: inline-flex;
}

.p-inputgroup:has(> p-button:first-child) .p-button{
    border-start-start-radius: ${t("inputgroup.addon.border.radius")};
    border-end-start-radius: ${t("inputgroup.addon.border.radius")};
}

.p-inputgroup:has(> p-button:last-child) .p-button {
    border-start-end-radius: ${t("inputgroup.addon.border.radius")};
    border-end-end-radius: ${t("inputgroup.addon.border.radius")};
}
`,Mc={root:({props:t})=>["p-inputgroup",{"p-inputgroup-fluid":t.fluid}]},fa=(()=>{class t extends _e{name="inputgroup";theme=Oc;classes=Mc;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Fc=(()=>{class t extends fe{style;styleClass;_componentStyle=oe(fa);static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-inputgroup"],["p-inputGroup"],["p-input-group"]],hostAttrs:[1,"p-inputgroup"],hostVars:5,hostBindings:function(i,o){i&2&&(S("data-pc-name","inputgroup"),Be(o.style),j(o.styleClass))},inputs:{style:"style",styleClass:"styleClass"},features:[ge([fa]),J],ngContentSelectors:kc,decls:1,vars:0,template:function(i,o){i&1&&(Xe(),He(0))},dependencies:[re,H],encapsulation:2})}return t})(),px=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Fc,H,H]})}return t})();var Ec=({dt:t})=>`
.p-skeleton {
    overflow: hidden;
    background: ${t("skeleton.background")};
    border-radius: ${t("skeleton.border.radius")};
}

.p-skeleton::after {
    content: "";
    animation: p-skeleton-animation 1.2s infinite;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), ${t("skeleton.animation.background")}, rgba(255, 255, 255, 0));
}

[dir='rtl'] .p-skeleton::after {
    animation-name: p-skeleton-animation-rtl;
}

.p-skeleton-circle {
    border-radius: 50%;
}

.p-skeleton-animation-none::after {
    animation: none;
}

@keyframes p-skeleton-animation {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes p-skeleton-animation-rtl {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
`,Lc={root:{position:"relative"}},Vc={root:({props:t})=>["p-skeleton p-component",{"p-skeleton-circle":t.shape==="circle","p-skeleton-animation-none":t.animation==="none"}]},ma=(()=>{class t extends _e{name="skeleton";theme=Ec;classes=Vc;inlineStyles=Lc;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Dc=(()=>{class t extends fe{styleClass;style;shape="rectangle";animation="wave";borderRadius;size;width="100%";height="1rem";_componentStyle=oe(ma);containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":this.shape==="circle","p-skeleton-animation-none":this.animation==="none"}}get containerStyle(){let e=this._componentStyle?.inlineStyles.root,i;return this.size?i=ht(at(at({},this.style),e),{width:this.size,height:this.size,borderRadius:this.borderRadius}):i=at(ht(at({},e),{width:this.width,height:this.height,borderRadius:this.borderRadius}),this.style),i}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-skeleton"]],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},features:[ge([ma]),J],decls:1,vars:7,consts:[[3,"ngClass","ngStyle"]],template:function(i,o){i&1&&R(0,"div",0),i&2&&(j(o.styleClass),f("ngClass",o.containerClass())("ngStyle",o.containerStyle),S("data-pc-name","skeleton")("aria-hidden",!0)("data-pc-section","root"))},dependencies:[re,Ce,je,H],encapsulation:2,changeDetection:0})}return t})(),wx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Dc,H,H]})}return t})();var ga=(()=>{class t extends gt{pathId;ngOnInit(){this.pathId="url(#"+et()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["RefreshIcon"]],features:[J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.77051 5.96336C6.84324 5.99355 6.92127 6.00891 7.00002 6.00854C7.07877 6.00891 7.1568 5.99355 7.22953 5.96336C7.30226 5.93317 7.36823 5.88876 7.42357 5.83273L9.82101 3.43529C9.93325 3.32291 9.99629 3.17058 9.99629 3.01175C9.99629 2.85292 9.93325 2.70058 9.82101 2.5882L7.42357 0.190763C7.3687 0.131876 7.30253 0.0846451 7.22901 0.0518865C7.15549 0.019128 7.07612 0.00151319 6.99564 9.32772e-05C6.91517 -0.00132663 6.83523 0.0134773 6.7606 0.0436218C6.68597 0.0737664 6.61817 0.118634 6.56126 0.175548C6.50435 0.232462 6.45948 0.300257 6.42933 0.374888C6.39919 0.449519 6.38439 0.529456 6.38581 0.609933C6.38722 0.690409 6.40484 0.769775 6.4376 0.843296C6.47036 0.916817 6.51759 0.982986 6.57647 1.03786L7.95103 2.41241H6.99998C5.46337 2.41241 3.98969 3.02283 2.90314 4.10938C1.81659 5.19593 1.20618 6.66961 1.20618 8.20622C1.20618 9.74283 1.81659 11.2165 2.90314 12.3031C3.98969 13.3896 5.46337 14 6.99998 14C8.53595 13.9979 10.0084 13.3868 11.0945 12.3007C12.1806 11.2146 12.7917 9.74218 12.7938 8.20622C12.7938 8.04726 12.7306 7.89481 12.6182 7.78241C12.5058 7.67001 12.3534 7.60686 12.1944 7.60686C12.0355 7.60686 11.883 7.67001 11.7706 7.78241C11.6582 7.89481 11.5951 8.04726 11.5951 8.20622C11.5951 9.11504 11.3256 10.0035 10.8207 10.7591C10.3157 11.5148 9.59809 12.1037 8.75845 12.4515C7.9188 12.7993 6.99489 12.8903 6.10353 12.713C5.21217 12.5357 4.3934 12.0981 3.75077 11.4554C3.10813 10.8128 2.67049 9.99404 2.49319 9.10268C2.31589 8.21132 2.40688 7.2874 2.75468 6.44776C3.10247 5.60811 3.69143 4.89046 4.44709 4.38554C5.20275 3.88063 6.09116 3.61113 6.99998 3.61113H7.95098L6.57647 4.98564C6.46423 5.09802 6.40119 5.25035 6.40119 5.40918C6.40119 5.56801 6.46423 5.72035 6.57647 5.83273C6.63181 5.88876 6.69778 5.93317 6.77051 5.96336Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ft(),C(0,"svg",0)(1,"g"),R(2,"path",1),T(),C(3,"defs")(4,"clipPath",2),R(5,"rect",3),T()()()),i&2&&(j(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var _a=(()=>{class t extends gt{pathId;ngOnInit(){this.pathId="url(#"+et()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["SearchMinusIcon"]],features:[J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.0208 12.0411C4.83005 12.0411 3.66604 11.688 2.67596 11.0265C1.68589 10.3649 0.914216 9.42464 0.458534 8.32452C0.00285271 7.22441 -0.116374 6.01388 0.11593 4.84601C0.348235 3.67813 0.921637 2.60537 1.76363 1.76338C2.60562 0.921393 3.67838 0.34799 4.84625 0.115686C6.01412 -0.116618 7.22466 0.00260857 8.32477 0.45829C9.42488 0.913972 10.3652 1.68564 11.0267 2.67572C11.6883 3.66579 12.0414 4.8298 12.0414 6.02056C12.0395 7.41563 11.5542 8.76029 10.6783 9.8305L13.8244 12.9765C13.9367 13.089 13.9997 13.2414 13.9997 13.4003C13.9997 13.5592 13.9367 13.7116 13.8244 13.8241C13.769 13.8801 13.703 13.9245 13.6302 13.9548C13.5575 13.985 13.4794 14.0003 13.4006 14C13.3218 14.0003 13.2437 13.985 13.171 13.9548C13.0982 13.9245 13.0322 13.8801 12.9768 13.8241L9.83082 10.678C8.76059 11.5539 7.4159 12.0393 6.0208 12.0411ZM6.0208 1.20731C5.07199 1.20731 4.14449 1.48867 3.35559 2.0158C2.56669 2.54292 1.95181 3.29215 1.58872 4.16874C1.22562 5.04532 1.13062 6.00989 1.31572 6.94046C1.50083 7.87104 1.95772 8.72583 2.62863 9.39674C3.29954 10.0676 4.15433 10.5245 5.0849 10.7096C6.01548 10.8947 6.98005 10.7997 7.85663 10.4367C8.73322 10.0736 9.48244 9.45868 10.0096 8.66978C10.5367 7.88088 10.8181 6.95337 10.8181 6.00457C10.8181 4.73226 10.3126 3.51206 9.41297 2.6124C8.51331 1.71274 7.29311 1.20731 6.0208 1.20731ZM4.00591 6.60422H8.00362C8.16266 6.60422 8.31518 6.54104 8.42764 6.42859C8.5401 6.31613 8.60328 6.1636 8.60328 6.00456C8.60328 5.84553 8.5401 5.693 8.42764 5.58054C8.31518 5.46809 8.16266 5.40491 8.00362 5.40491H4.00591C3.84687 5.40491 3.69434 5.46809 3.58189 5.58054C3.46943 5.693 3.40625 5.84553 3.40625 6.00456C3.40625 6.1636 3.46943 6.31613 3.58189 6.42859C3.69434 6.54104 3.84687 6.60422 4.00591 6.60422Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ft(),C(0,"svg",0)(1,"g"),R(2,"path",1),T(),C(3,"defs")(4,"clipPath",2),R(5,"rect",3),T()()()),i&2&&(j(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var ba=(()=>{class t extends gt{pathId;ngOnInit(){this.pathId="url(#"+et()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["SearchPlusIcon"]],features:[J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67596 11.0265C3.66604 11.688 4.83005 12.0411 6.0208 12.0411C6.81143 12.0411 7.59432 11.8854 8.32477 11.5828C8.86999 11.357 9.37802 11.0526 9.83311 10.6803L12.9768 13.8241C13.0322 13.8801 13.0982 13.9245 13.171 13.9548C13.2437 13.985 13.3218 14.0003 13.4006 14C13.4794 14.0003 13.5575 13.985 13.6302 13.9548C13.703 13.9245 13.769 13.8801 13.8244 13.8241C13.9367 13.7116 13.9997 13.5592 13.9997 13.4003C13.9997 13.2414 13.9367 13.089 13.8244 12.9765L10.6806 9.8328C11.0529 9.37773 11.3572 8.86972 11.5831 8.32452C11.8856 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0267 2.67572C10.3652 1.68564 9.42488 0.913972 8.32477 0.45829C7.22466 0.00260857 6.01412 -0.116618 4.84625 0.115686C3.67838 0.34799 2.60562 0.921393 1.76363 1.76338C0.921637 2.60537 0.348235 3.67813 0.11593 4.84601C-0.116374 6.01388 0.00285271 7.22441 0.458534 8.32452C0.914216 9.42464 1.68589 10.3649 2.67596 11.0265ZM3.35559 2.0158C4.14449 1.48867 5.07199 1.20731 6.0208 1.20731C7.29311 1.20731 8.51331 1.71274 9.41297 2.6124C10.3126 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5367 7.88088 10.0096 8.66978C9.48244 9.45868 8.73322 10.0736 7.85663 10.4367C6.98005 10.7997 6.01548 10.8947 5.0849 10.7096C4.15433 10.5245 3.29954 10.0676 2.62863 9.39674C1.95772 8.72583 1.50083 7.87104 1.31572 6.94046C1.13062 6.00989 1.22562 5.04532 1.58872 4.16874C1.95181 3.29215 2.56669 2.54292 3.35559 2.0158ZM6.00481 8.60309C5.84641 8.60102 5.69509 8.53718 5.58308 8.42517C5.47107 8.31316 5.40722 8.16183 5.40515 8.00344V6.60422H4.00591C3.84687 6.60422 3.69434 6.54104 3.58189 6.42859C3.46943 6.31613 3.40625 6.1636 3.40625 6.00456C3.40625 5.84553 3.46943 5.693 3.58189 5.58054C3.69434 5.46809 3.84687 5.40491 4.00591 5.40491H5.40515V4.00572C5.40515 3.84668 5.46833 3.69416 5.58079 3.5817C5.69324 3.46924 5.84577 3.40607 6.00481 3.40607C6.16385 3.40607 6.31637 3.46924 6.42883 3.5817C6.54129 3.69416 6.60447 3.84668 6.60447 4.00572V5.40491H8.00362C8.16266 5.40491 8.31518 5.46809 8.42764 5.58054C8.5401 5.693 8.60328 5.84553 8.60328 6.00456C8.60328 6.1636 8.5401 6.31613 8.42764 6.42859C8.31518 6.54104 8.16266 6.60422 8.00362 6.60422H6.60447V8.00344C6.60239 8.16183 6.53855 8.31316 6.42654 8.42517C6.31453 8.53718 6.1632 8.60102 6.00481 8.60309Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ft(),C(0,"svg",0)(1,"g"),R(2,"path",1),T(),C(3,"defs")(4,"clipPath",2),R(5,"rect",3),T()()()),i&2&&(j(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var ya=(()=>{class t extends gt{pathId;ngOnInit(){this.pathId="url(#"+et()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["UndoIcon"]],features:[J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.77042 5.96336C6.84315 5.99355 6.92118 6.00891 6.99993 6.00854C7.07868 6.00891 7.15671 5.99355 7.22944 5.96336C7.30217 5.93317 7.36814 5.88876 7.42348 5.83273C7.53572 5.72035 7.59876 5.56801 7.59876 5.40918C7.59876 5.25035 7.53572 5.09802 7.42348 4.98564L6.04897 3.61113H6.99998C7.9088 3.61113 8.79722 3.88063 9.55288 4.38554C10.3085 4.89046 10.8975 5.60811 11.2453 6.44776C11.5931 7.2874 11.6841 8.21132 11.5068 9.10268C11.3295 9.99404 10.8918 10.8128 10.2492 11.4554C9.60657 12.0981 8.7878 12.5357 7.89644 12.713C7.00508 12.8903 6.08116 12.7993 5.24152 12.4515C4.40188 12.1037 3.68422 11.5148 3.17931 10.7591C2.67439 10.0035 2.4049 9.11504 2.4049 8.20622C2.4049 8.04726 2.34175 7.89481 2.22935 7.78241C2.11695 7.67001 1.9645 7.60686 1.80554 7.60686C1.64658 7.60686 1.49413 7.67001 1.38172 7.78241C1.26932 7.89481 1.20618 8.04726 1.20618 8.20622C1.20829 9.74218 1.81939 11.2146 2.90548 12.3007C3.99157 13.3868 5.46402 13.9979 6.99998 14C8.5366 14 10.0103 13.3896 11.0968 12.3031C12.1834 11.2165 12.7938 9.74283 12.7938 8.20622C12.7938 6.66961 12.1834 5.19593 11.0968 4.10938C10.0103 3.02283 8.5366 2.41241 6.99998 2.41241H6.04892L7.42348 1.03786C7.48236 0.982986 7.5296 0.916817 7.56235 0.843296C7.59511 0.769775 7.61273 0.690409 7.61415 0.609933C7.61557 0.529456 7.60076 0.449519 7.57062 0.374888C7.54047 0.300257 7.49561 0.232462 7.43869 0.175548C7.38178 0.118634 7.31398 0.0737664 7.23935 0.0436218C7.16472 0.0134773 7.08478 -0.00132663 7.00431 9.32772e-05C6.92383 0.00151319 6.84447 0.019128 6.77095 0.0518865C6.69742 0.0846451 6.63126 0.131876 6.57638 0.190763L4.17895 2.5882C4.06671 2.70058 4.00366 2.85292 4.00366 3.01175C4.00366 3.17058 4.06671 3.32291 4.17895 3.43529L6.57638 5.83273C6.63172 5.88876 6.69769 5.93317 6.77042 5.96336Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ft(),C(0,"svg",0)(1,"g"),R(2,"path",1),T(),C(3,"defs")(4,"clipPath",2),R(5,"rect",3),T()()()),i&2&&(j(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var xa=(()=>{class t extends gt{pathId;ngOnInit(){this.pathId="url(#"+et()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["UploadIcon"]],features:[J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ft(),C(0,"svg",0)(1,"g"),R(2,"path",1),T(),C(3,"defs")(4,"clipPath",2),R(5,"rect",3),T()()()),i&2&&(j(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var Pc=["removeicon"],Ac=["*"];function zc(t,n){if(t&1){let e=q();C(0,"img",4),$("error",function(o){F(e);let s=m();return E(s.imageError(o))}),T()}if(t&2){let e=m();f("src",e.image,It)("alt",e.alt)}}function $c(t,n){if(t&1&&R(0,"span",6),t&2){let e=m(2);j(e.icon),f("ngClass","p-chip-icon"),S("data-pc-section","icon")}}function Rc(t,n){if(t&1&&x(0,$c,1,4,"span",5),t&2){let e=m();f("ngIf",e.icon)}}function Bc(t,n){if(t&1&&(C(0,"div",7),ae(1),T()),t&2){let e=m();S("data-pc-section","label"),g(),Oe(e.label)}}function Hc(t,n){if(t&1){let e=q();C(0,"span",11),$("click",function(o){F(e);let s=m(3);return E(s.close(o))})("keydown",function(o){F(e);let s=m(3);return E(s.onKeydown(o))}),T()}if(t&2){let e=m(3);j(e.removeIcon),f("ngClass","p-chip-remove-icon"),S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function Nc(t,n){if(t&1){let e=q();C(0,"TimesCircleIcon",12),$("click",function(o){F(e);let s=m(3);return E(s.close(o))})("keydown",function(o){F(e);let s=m(3);return E(s.onKeydown(o))}),T()}if(t&2){let e=m(3);j("p-chip-remove-icon"),S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function jc(t,n){if(t&1&&(Q(0),x(1,Hc,1,5,"span",9)(2,Nc,1,4,"TimesCircleIcon",10),K()),t&2){let e=m(2);g(),f("ngIf",e.removeIcon),g(),f("ngIf",!e.removeIcon)}}function Uc(t,n){}function Wc(t,n){t&1&&x(0,Uc,0,0,"ng-template")}function Qc(t,n){if(t&1){let e=q();C(0,"span",13),$("click",function(o){F(e);let s=m(2);return E(s.close(o))})("keydown",function(o){F(e);let s=m(2);return E(s.onKeydown(o))}),x(1,Wc,1,0,null,14),T()}if(t&2){let e=m(2);S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),g(),f("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function Kc(t,n){if(t&1&&(Q(0),x(1,jc,3,2,"ng-container",3)(2,Qc,2,3,"span",8),K()),t&2){let e=m();g(),f("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),g(),f("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var qc=({dt:t})=>`
.p-chip {
    display: inline-flex;
    align-items: center;
    background: ${t("chip.background")};
    color: ${t("chip.color")};
    border-radius: ${t("chip.border.radius")};
    padding: ${t("chip.padding.y")} ${t("chip.padding.x")};
    gap: ${t("chip.gap")};
}

.p-chip-icon {
    color: ${t("chip.icon.color")};
    font-size: ${t("chip.icon.font.size")};
    width: ${t("chip.icon.size")};
    height: ${t("chip.icon.size")};
}

.p-chip-image {
    border-radius: 50%;
    width: ${t("chip.image.width")};
    height: ${t("chip.image.height")};
    margin-left: calc(-1 * ${t("chip.padding.y")});
}

.p-chip:has(.p-chip-remove-icon) {
    padding-inline-end: ${t("chip.padding.y")};
}

.p-chip:has(.p-chip-image) {
    padding-top: calc(${t("chip.padding.y")} / 2);
    padding-bottom: calc(${t("chip.padding.y")} / 2);
}

.p-chip-remove-icon {
    cursor: pointer;
    font-size: ${t("chip.remove.icon.font.size")};
    width: ${t("chip.remove.icon.size")};
    height: ${t("chip.remove.icon.size")};
    color: ${t("chip.remove.icon.color")};
    border-radius: 50%;
    transition: outline-color ${t("chip.transition.duration")}, box-shadow ${t("chip.transition.duration")};
    outline-color: transparent;
}

.p-chip-remove-icon:focus-visible {
    box-shadow: ${t("chip.remove.icon.focus.ring.shadow")};
    outline: ${t("chip.remove.icon.focus.ring.width")} ${t("chip.remove.icon.focus.ring.style")} ${t("chip.remove.icon.focus.ring.color")};
    outline-offset: ${t("chip.remove.icon.focus.ring.offset")};
}
`,Gc={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},va=(()=>{class t extends _e{name="chip";theme=qc;classes=Gc;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Di=(()=>{class t extends fe{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new N;onImageError=new N;visible=!0;get removeAriaLabel(){return this.config.getTranslation(Ue.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}_chipProps;_componentStyle=oe(va);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"removeicon":this._removeIconTemplate=e.template;break;default:this._removeIconTemplate=e.template;break}})}ngOnChanges(e){if(super.ngOnChanges(e),e.chipProps&&e.chipProps.currentValue){let{currentValue:i}=e.chipProps;i.label!==void 0&&(this.label=i.label),i.icon!==void 0&&(this.icon=i.icon),i.image!==void 0&&(this.image=i.image),i.alt!==void 0&&(this.alt=i.alt),i.style!==void 0&&(this.style=i.style),i.styleClass!==void 0&&(this.styleClass=i.styleClass),i.removable!==void 0&&(this.removable=i.removable),i.removeIcon!==void 0&&(this.removeIcon=i.removeIcon)}}containerClass(){let e="p-chip p-component";return this.styleClass&&(e+=` ${this.styleClass}`),e}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-chip"]],contentQueries:function(i,o,s){if(i&1&&(P(s,Pc,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.removeIconTemplate=a.first),k(a=O())&&(o.templates=a)}},hostVars:9,hostBindings:function(i,o){i&2&&(S("data-pc-name","chip")("aria-label",o.label)("data-pc-section","root"),Be(o.style),j(o.containerClass()),Ge("display",!o.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",A],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[ge([va]),Ee,J,Vs],ngContentSelectors:Ac,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(i,o){if(i&1&&(Xe(),He(0),x(1,zc,1,2,"img",1)(2,Rc,1,1,"ng-template",null,0,ue)(4,Bc,2,2,"div",2)(5,Kc,3,2,"ng-container",3)),i&2){let s=Ne(3);g(),f("ngIf",o.image)("ngIfElse",s),g(3),f("ngIf",o.label),g(),f("ngIf",o.removable)}},dependencies:[re,Ce,Le,Ve,gn,H],encapsulation:2,changeDetection:0})}return t})(),iv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Di,H,H]})}return t})();var Xc=["item"],Zc=["empty"],Jc=["header"],ep=["footer"],tp=["selecteditem"],ip=["group"],np=["loader"],op=["removeicon"],sp=["loadingicon"],ap=["clearicon"],rp=["dropdownicon"],lp=["container"],cp=["focusInput"],pp=["multiIn"],dp=["multiContainer"],up=["ddBtn"],hp=["items"],fp=["scroller"],mp=["overlay"],gp=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),wa=t=>({$implicit:t}),_p=(t,n)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:n}),xn=t=>({height:t}),Ta=(t,n)=>({$implicit:t,options:n}),bp=t=>({options:t}),yp=()=>({}),xp=(t,n)=>({$implicit:t,index:n});function vp(t,n){if(t&1){let e=q();C(0,"input",19,3),$("input",function(o){F(e);let s=m();return E(s.onInput(o))})("keydown",function(o){F(e);let s=m();return E(s.onKeyDown(o))})("change",function(o){F(e);let s=m();return E(s.onInputChange(o))})("focus",function(o){F(e);let s=m();return E(s.onInputFocus(o))})("blur",function(o){F(e);let s=m();return E(s.onInputBlur(o))})("paste",function(o){F(e);let s=m();return E(s.onInputPaste(o))})("keyup",function(o){F(e);let s=m();return E(s.onInputKeyUp(o))}),T()}if(t&2){let e,i=m();j(i.inputStyleClass),f("pAutoFocus",i.autofocus)("ngClass","p-autocomplete-input")("ngStyle",i.inputStyle)("type",i.type)("variant",i.variant)("autocomplete",i.autocomplete)("required",i.required)("name",i.name)("pSize",i.size)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled)("fluid",i.hasFluid),S("value",i.inputValue())("id",i.inputId)("placeholder",i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function Cp(t,n){if(t&1){let e=q();C(0,"TimesIcon",22),$("click",function(){F(e);let o=m(2);return E(o.clear())}),T()}t&2&&(f("styleClass","p-autocomplete-clear-icon"),S("aria-hidden",!0))}function wp(t,n){}function Tp(t,n){t&1&&x(0,wp,0,0,"ng-template")}function Ip(t,n){if(t&1){let e=q();C(0,"span",23),$("click",function(){F(e);let o=m(2);return E(o.clear())}),x(1,Tp,1,0,null,24),T()}if(t&2){let e=m(2);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Sp(t,n){if(t&1&&(Q(0),x(1,Cp,1,2,"TimesIcon",20)(2,Ip,2,2,"span",21),K()),t&2){let e=m();g(),f("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),f("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function kp(t,n){t&1&&W(0)}function Op(t,n){if(t&1){let e=q();C(0,"span",33),$("click",function(o){F(e);let s=m(3).index,a=m(2);return E(a.readonly?"":a.removeOption(o,s))}),R(1,"TimesCircleIcon",34),T()}t&2&&(g(),f("styleClass","p-autocomplete-chip-icon"),S("aria-hidden",!0))}function Mp(t,n){t&1&&(Q(0),x(1,Op,2,2,"ng-template",null,6,ue),K())}function Fp(t,n){if(t&1){let e=q();C(0,"p-chip",32),$("onRemove",function(o){F(e);let s=m().index,a=m(2);return E(a.readonly?"":a.removeOption(o,s))}),x(1,Mp,3,0,"ng-container",15),T()}if(t&2){let e=m().$implicit,i=m(2);f("label",i.getOptionLabel(e))("removable",!0),g(),f("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate)}}function Ep(t,n){}function Lp(t,n){t&1&&x(0,Ep,0,0,"ng-template")}function Vp(t,n){if(t&1&&(C(0,"span"),x(1,Lp,1,0,null,30),T()),t&2){let e=m().index,i=m(2);g(),f("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)("ngTemplateOutletContext",Ae(2,_p,i.removeOption.bind(i),e))}}function Dp(t,n){if(t&1&&(C(0,"li",29,5),x(2,kp,1,0,"ng-container",30)(3,Fp,2,3,"p-chip",31)(4,Vp,2,5,"span",15),T()),t&2){let e=n.$implicit,i=n.index,o=m(2);f("ngClass",ne(10,gp,o.focusedMultipleOptionIndex()===i)),S("id",o.id+"_multiple_option_"+i)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",i+1)("aria-selected",!0),g(2),f("ngTemplateOutlet",o.selectedItemTemplate||o._selectedItemTemplate)("ngTemplateOutletContext",ne(12,wa,e)),g(),f("ngIf",!o.selectedItemTemplate&&!o._selectedItemTemplate),g(),f("ngIf",o.removeIconTemplate||o._removeIconTemplate)}}function Pp(t,n){if(t&1){let e=q();C(0,"ul",25,4),$("focus",function(o){F(e);let s=m();return E(s.onMultipleContainerFocus(o))})("blur",function(o){F(e);let s=m();return E(s.onMultipleContainerBlur(o))})("keydown",function(o){F(e);let s=m();return E(s.onMultipleContainerKeyDown(o))}),x(2,Dp,5,14,"li",26),C(3,"li",27)(4,"input",28,3),$("input",function(o){F(e);let s=m();return E(s.onInput(o))})("keydown",function(o){F(e);let s=m();return E(s.onKeyDown(o))})("change",function(o){F(e);let s=m();return E(s.onInputChange(o))})("focus",function(o){F(e);let s=m();return E(s.onInputFocus(o))})("blur",function(o){F(e);let s=m();return E(s.onInputBlur(o))})("paste",function(o){F(e);let s=m();return E(s.onInputPaste(o))})("keyup",function(o){F(e);let s=m();return E(s.onInputKeyUp(o))}),T()()()}if(t&2){let e,i=m();f("ngClass",i.inputMultipleClass)("tabindex",-1),S("aria-orientation","horizontal")("aria-activedescendant",i.focused?i.focusedMultipleOptionId:void 0),g(2),f("ngForOf",i.modelValue()),g(2),j(i.inputStyleClass),f("pAutoFocus",i.autofocus)("ngClass",i.inputClass)("ngStyle",i.inputStyle)("autocomplete",i.autocomplete)("required",i.required)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled),S("type",i.type)("id",i.inputId)("name",i.name)("placeholder",i.filled?null:i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function Ap(t,n){t&1&&R(0,"SpinnerIcon",37),t&2&&(f("styleClass","p-autocomplete-loader")("spin",!0),S("aria-hidden",!0))}function zp(t,n){}function $p(t,n){t&1&&x(0,zp,0,0,"ng-template")}function Rp(t,n){if(t&1&&(C(0,"span",38),x(1,$p,1,0,null,24),T()),t&2){let e=m(2);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Bp(t,n){if(t&1&&(Q(0),x(1,Ap,1,3,"SpinnerIcon",35)(2,Rp,2,2,"span",36),K()),t&2){let e=m();g(),f("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),f("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Hp(t,n){if(t&1&&R(0,"span",41),t&2){let e=m(2);f("ngClass",e.dropdownIcon),S("aria-hidden",!0)}}function Np(t,n){t&1&&R(0,"ChevronDownIcon")}function jp(t,n){}function Up(t,n){t&1&&x(0,jp,0,0,"ng-template")}function Wp(t,n){if(t&1&&(Q(0),x(1,Np,1,0,"ChevronDownIcon",15)(2,Up,1,0,null,24),K()),t&2){let e=m(2);g(),f("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),f("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Qp(t,n){if(t&1){let e=q();C(0,"button",39,7),$("click",function(o){F(e);let s=m();return E(s.handleDropdownClick(o))}),x(2,Hp,1,2,"span",40)(3,Wp,3,2,"ng-container",15),T()}if(t&2){let e=m();f("disabled",e.disabled),S("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),g(2),f("ngIf",e.dropdownIcon),g(),f("ngIf",!e.dropdownIcon)}}function Kp(t,n){t&1&&W(0)}function qp(t,n){t&1&&W(0)}function Gp(t,n){if(t&1&&x(0,qp,1,0,"ng-container",30),t&2){let e=n.$implicit,i=n.options;m(2);let o=Ne(6);f("ngTemplateOutlet",o)("ngTemplateOutletContext",Ae(2,Ta,e,i))}}function Yp(t,n){t&1&&W(0)}function Xp(t,n){if(t&1&&x(0,Yp,1,0,"ng-container",30),t&2){let e=n.options,i=m(4);f("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",ne(2,bp,e))}}function Zp(t,n){t&1&&(Q(0),x(1,Xp,1,4,"ng-template",null,10,ue),K())}function Jp(t,n){if(t&1){let e=q();C(0,"p-scroller",46,9),$("onLazyLoad",function(o){F(e);let s=m(2);return E(s.onLazyLoad.emit(o))}),x(2,Gp,1,5,"ng-template",null,2,ue)(4,Zp,3,0,"ng-container",15),T()}if(t&2){let e=m(2);Be(ne(8,xn,e.scrollHeight)),f("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),g(4),f("ngIf",e.loaderTemplate||e._loaderTemplate)}}function ed(t,n){t&1&&W(0)}function td(t,n){if(t&1&&(Q(0),x(1,ed,1,0,"ng-container",30),K()),t&2){m();let e=Ne(6),i=m();g(),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Ae(3,Ta,i.visibleOptions(),Ei(2,yp)))}}function id(t,n){if(t&1&&(C(0,"span"),ae(1),T()),t&2){let e=m(2).$implicit,i=m(3);g(),Oe(i.getOptionGroupLabel(e.optionGroup))}}function nd(t,n){t&1&&W(0)}function od(t,n){if(t&1&&(Q(0),C(1,"li",50),x(2,id,2,1,"span",15)(3,nd,1,0,"ng-container",30),T(),K()),t&2){let e=m(),i=e.$implicit,o=e.index,s=m().options,a=m(2);g(),f("ngStyle",ne(5,xn,s.itemSize+"px")),S("id",a.id+"_"+a.getOptionIndex(o,s)),g(),f("ngIf",!a.groupTemplate),g(),f("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",ne(7,wa,i.optionGroup))}}function sd(t,n){if(t&1&&(C(0,"span"),ae(1),T()),t&2){let e=m(2).$implicit,i=m(3);g(),Oe(i.getOptionLabel(e))}}function ad(t,n){t&1&&W(0)}function rd(t,n){if(t&1){let e=q();Q(0),C(1,"li",51),$("click",function(o){F(e);let s=m().$implicit,a=m(3);return E(a.onOptionSelect(o,s))})("mouseenter",function(o){F(e);let s=m().index,a=m().options,r=m(2);return E(r.onOptionMouseEnter(o,r.getOptionIndex(s,a)))}),x(2,sd,2,1,"span",15)(3,ad,1,0,"ng-container",30),T(),K()}if(t&2){let e=m(),i=e.$implicit,o=e.index,s=m().options,a=m(2);g(),f("ngStyle",ne(12,xn,s.itemSize+"px"))("ngClass",a.optionClass(i,o,s)),S("id",a.id+"_"+a.getOptionIndex(o,s))("aria-label",a.getOptionLabel(i))("aria-selected",a.isSelected(i))("aria-disabled",a.isOptionDisabled(i))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(o,s))),g(),f("ngIf",!a.itemTemplate&&!a._itemTemplate),g(),f("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",Ae(14,xp,i,s.getOptions?s.getOptions(o):o))}}function ld(t,n){if(t&1&&x(0,od,4,9,"ng-container",15)(1,rd,4,17,"ng-container",15),t&2){let e=n.$implicit,i=m(3);f("ngIf",i.isOptionGroup(e)),g(),f("ngIf",!i.isOptionGroup(e))}}function cd(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(4);g(),St(" ",e.searchResultMessageText," ")}}function pd(t,n){t&1&&W(0,null,12)}function dd(t,n){if(t&1&&(C(0,"li",52),x(1,cd,2,1,"ng-container",53)(2,pd,2,0,"ng-container",24),T()),t&2){let e=m().options,i=m(2);f("ngStyle",ne(4,xn,e.itemSize+"px")),g(),f("ngIf",!i.emptyTemplate&&!i._emptyTemplate)("ngIfElse",i.empty),g(),f("ngTemplateOutlet",i.emptyTemplate||i._emptyTemplate)}}function ud(t,n){if(t&1&&(C(0,"ul",47,11),x(2,ld,2,2,"ng-template",48)(3,dd,3,6,"li",49),T()),t&2){let e=n.$implicit,i=n.options,o=m(2);Be(i.contentStyle),f("ngClass",i.contentStyleClass),S("id",o.id+"_list")("aria-label",o.listLabel),g(2),f("ngForOf",e),g(),f("ngIf",!e||e&&e.length===0&&o.showEmptyMessage)}}function hd(t,n){t&1&&W(0)}function fd(t,n){if(t&1&&(C(0,"div",42),x(1,Kp,1,0,"ng-container",24),C(2,"div",43),x(3,Jp,5,10,"p-scroller",44)(4,td,2,6,"ng-container",15),T(),x(5,ud,4,7,"ng-template",null,8,ue)(7,hd,1,0,"ng-container",24),T(),C(8,"span",45),ae(9),T()),t&2){let e=m();j(e.panelStyleClass),f("ngClass",e.panelClass)("ngStyle",e.panelStyle),g(),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),Ge("max-height",e.virtualScroll?"auto":e.scrollHeight),g(),f("ngIf",e.virtualScroll),g(),f("ngIf",!e.virtualScroll),g(3),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(2),St(" ",e.selectedMessageText," ")}}var md=({dt:t})=>`
.p-autocomplete {
    display: inline-flex;
}

.p-autocomplete-loader {
    position: absolute;
    top: 50%;
    margin-top: -0.5rem;
    inset-inline-end: ${t("autocomplete.padding.x")};
}

.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {
    inset-inline-end: calc(${t("autocomplete.dropdown.width")} + ${t("autocomplete.padding.x")});
}

.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {
    flex: 1 1 auto;
    width: 1%;
}

.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.p-autocomplete-dropdown {
    cursor: pointer;
    display: inline-flex;
    user-select: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: ${t("autocomplete.dropdown.width")};
    border-start-end-radius: ${t("autocomplete.dropdown.border.radius")};
    border-end-end-radius: ${t("autocomplete.dropdown.border.radius")};
    background: ${t("autocomplete.dropdown.background")};
    border: 1px solid ${t("autocomplete.dropdown.border.color")};
    border-inline-start: 0 none;
    color: ${t("autocomplete.dropdown.color")};
    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};
    outline-color: transparent;
}

.p-autocomplete-dropdown:not(:disabled):hover {
    background: ${t("autocomplete.dropdown.hover.background")};
    border-color: ${t("autocomplete.dropdown.hover.border.color")};
    color: ${t("autocomplete.dropdown.hover.color")};
}

.p-autocomplete-dropdown:not(:disabled):active {
    background: ${t("autocomplete.dropdown.active.background")};
    border-color: ${t("autocomplete.dropdown.active.border.color")};
    color: ${t("autocomplete.dropdown.active.color")};
}

.p-autocomplete-dropdown:focus-visible {
    box-shadow: ${t("autocomplete.dropdown.focus.ring.shadow")};
    outline: ${t("autocomplete.dropdown.focus.ring.width")} ${t("autocomplete.dropdown.focus.ring.style")} ${t("autocomplete.dropdown.focus.ring.color")};
    outline-offset: ${t("autocomplete.dropdown.focus.ring.offset")};
}

.p-autocomplete .p-autocomplete-overlay {
    min-width: 100%;
}

.p-autocomplete-overlay {
    background: ${t("autocomplete.overlay.background")};
    color: ${t("autocomplete.overlay.color")};
    border: 1px solid ${t("autocomplete.overlay.border.color")};
    border-radius: ${t("autocomplete.overlay.border.radius")};
    box-shadow: ${t("autocomplete.overlay.shadow")};
}

.p-autocomplete-list-container {
    overflow: auto;
}

.p-autocomplete-list {
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: ${t("autocomplete.list.gap")};
    padding: ${t("autocomplete.list.padding")};
}

.p-autocomplete-option {
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: ${t("autocomplete.option.padding")};
    border: 0 none;
    color: ${t("autocomplete.option.color")};
    background: transparent;
    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")};
    border-radius: ${t("autocomplete.option.border.radius")};
}

.p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {
    background: ${t("autocomplete.option.focus.background")};
    color: ${t("autocomplete.option.focus.color")};
}

.p-autocomplete-option-selected {
    background: ${t("autocomplete.option.selected.background")};
    color: ${t("autocomplete.option.selected.color")};
}

.p-autocomplete-option-selected.p-focus {
    background: ${t("autocomplete.option.selected.focus.background")};
    color: ${t("autocomplete.option.selected.focus.color")};
}

.p-autocomplete-option-group {
    margin: 0;
    padding: ${t("autocomplete.option.group.padding")};
    color: ${t("autocomplete.option.group.color")};
    background: ${t("autocomplete.option.group.background")};
    font-weight: ${t("autocomplete.option.group.font.weight")};
}

.p-autocomplete-input-multiple {
    margin: 0;
    list-style-type: none;
    cursor: text;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: calc(${t("autocomplete.padding.y")} / 2) ${t("autocomplete.padding.x")};
    gap: calc(${t("autocomplete.padding.y")} / 2);
    color: ${t("autocomplete.color")};
    background: ${t("autocomplete.background")};
    border: 1px solid ${t("autocomplete.border.color")};
    border-radius: ${t("autocomplete.border.radius")};
    width: 100%;
    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};
    outline-color: transparent;
    box-shadow: ${t("autocomplete.shadow")};
}

.p-autocomplete:not(.p-disabled):hover .p-autocomplete-input-multiple {
    border-color: ${t("autocomplete.hover.border.color")};
}

.p-autocomplete:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
    border-color: ${t("autocomplete.focus.border.color")};
    box-shadow: ${t("autocomplete.focus.ring.shadow")};
    outline: ${t("autocomplete.focus.ring.width")} ${t("autocomplete.focus.ring.style")} ${t("autocomplete.focus.ring.color")};
    outline-offset: ${t("autocomplete.focus.ring.offset")};
}

.p-autocomplete.p-invalid .p-autocomplete-input-multiple {
    border-color: ${t("autocomplete.invalid.border.color")};
}

.p-variant-filled.p-autocomplete-input-multiple {
    background: ${t("autocomplete.filled.background")};
}

.p-autocomplete:not(.p-disabled):hover .p-variant-filled.p-autocomplete-input-multiple {
    background: ${t("autocomplete.filled.hover.background")};
}

.p-autocomplete:not(.p-disabled).p-focus .p-variant-filled.p-autocomplete-input-multiple  {
    background: ${t("autocomplete.filled.focus.background")};
}

.p-autocomplete.p-disabled {
    opacity: 1;
}

.p-autocomplete.p-disabled .p-autocomplete-input-multiple {
    opacity: 1;
    background: ${t("autocomplete.disabled.background")};
    color: ${t("autocomplete.disabled.color")};
}

.p-autocomplete-chip.p-chip {
    padding-block-start: calc(${t("autocomplete.padding.y")} / 2);
    padding-block-end: calc(${t("autocomplete.padding.y")} / 2);
    border-radius: ${t("autocomplete.chip.border.radius")};
}

.p-autocomplete-input-multiple:has(.p-autocomplete-chip) {
    padding-inline-start: calc(${t("autocomplete.padding.y")} / 2);
    padding-inline-end: calc(${t("autocomplete.padding.y")} / 2);
}

.p-autocomplete-chip-item.p-focus .p-autocomplete-chip {
    background: ${t("autocomplete.chip.focus.background")};
    color: ${t("autocomplete.chip.focus.color")};
}

.p-autocomplete-input-chip {
    flex: 1 1 auto;
    display: inline-flex;
    padding-block-start: calc(${t("autocomplete.padding.y")} / 2);
    padding-block-end: calc(${t("autocomplete.padding.y")} / 2);
}

.p-autocomplete-input-chip input {
    border: 0 none;
    outline: 0 none;
    background: transparent;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    font-family: inherit;
    font-feature-settings: inherit;
    font-size: 1rem;
    color: inherit;
}

.p-autocomplete-input-chip input::placeholder {
    color: ${t("autocomplete.placeholder.color")};
}

.p-autocomplete-empty-message {
    padding: ${t("autocomplete.empty.message.padding")};
}

.p-autocomplete-fluid {
    display: flex;
}

.p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {
    width: 1%;
}

.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {
    width: ${t("autocomplete.dropdown.sm.width")};
}

.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {
    font-size: ${t("form.field.sm.font.size")};
    width: ${t("form.field.sm.font.size")};
    height: ${t("form.field.sm.font.size")};
}

.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {
    width: ${t("autocomplete.dropdown.lg.width")};
}

.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {
    font-size: ${t("form.field.lg.font.size")};
    width: ${t("form.field.lg.font.size")};
    height: ${t("form.field.lg.font.size")};
}

.p-autocomplete-clear-icon {
    position: absolute;
    top: 50%;
    margin-top: -0.5rem;
    cursor: pointer;
    right: ${t("autocomplete.padding.x")};
    color: ${t("autocomplete.dropdown.color")};
}

.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
    right: calc(${t("autocomplete.padding.x")} + ${t("autocomplete.dropdown.width")});
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-multiple
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
    border-color: ${t("autocomplete.invalid.border.color")};
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autoComplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-auto-complete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autocomplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
    border-color: ${t("autocomplete.focus.border.color")};
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder {
    color: ${t("autocomplete.invalid.placeholder.color")};
}

p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder {
    color: ${t("autocomplete.invalid.placeholder.color")};
}`,gd={root:{position:"relative"}},_d={root:({instance:t})=>({"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":t.disabled,"p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused&&!t.disabled||t.autofocus||t.overlayVisible,"p-autocomplete-open":t.overlayVisible,"p-autocomplete-clearable":t.showClear&&!t.disabled,"p-autocomplete-fluid":t.hasFluid}),pcInput:"p-autocomplete-input",inputMultiple:({instance:t})=>({"p-autocomplete-input-multiple":!0,"p-variant-filled":(t.variant??(t.config.inputStyle()||t.config.inputVariant()))==="filled"}),chipItem:({instance:t,i:n})=>["p-autocomplete-chip-item",{"p-focus":t.focusedMultipleOptionIndex===n}],pcChip:"p-autocomplete-chip",chipIcon:"p-autocomplete-chip-icon",inputChip:"p-autocomplete-input-chip",loader:"p-autocomplete-loader",dropdown:"p-autocomplete-dropdown",overlay:"p-autocomplete-overlay p-component",list:"p-autocomplete-list",optionGroup:"p-autocomplete-option-group",option:({instance:t,option:n,i:e,getItemOptions:i})=>({"p-autocomplete-option":!0,"p-autocomplete-option-selected":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,i),"p-disabled":t.isOptionDisabled(n)}),emptyMessage:"p-autocomplete-empty-message"},Ca=(()=>{class t extends _e{name="autocomplete";theme=md;classes=_d;inlineStyles=gd;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var bd={provide:ui,useExisting:ai(()=>Ia),multi:!0},Ia=(()=>{class t extends fe{overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover=!0;typeahead=!0;variant;fluid=!1;completeMethod=new N;onSelect=new N;onUnselect=new N;onFocus=new N;onBlur=new N;onDropdownClick=new N;onClear=new N;onKeyUp=new N;onShow=new N;onHide=new N;onLazyLoad=new N;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;primeng=oe(Js);value;_suggestions=qe(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;_filled;get filled(){return this._filled}set filled(e){this._filled=e}loading;scrollHandler;listId;searchTimeout;dirty=!1;_itemTemplate;_groupTemplate;_selectedItemTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_loaderTemplate;_removeIconTemplate;_loadingIconTemplate;_clearIconTemplate;_dropdownIconTemplate;modelValue=qe(null);focusedMultipleOptionIndex=qe(-1);focusedOptionIndex=qe(-1);_componentStyle=oe(Ca);visibleOptions=Gt(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Gt(()=>{let e=this.modelValue(),i=this.optionValueSelected?(this.suggestions||[]).find(o=>Je(o,this.optionValue)===e):e;if(Ze(e))if(typeof e=="object"||this.optionValueSelected){let o=this.getOptionLabel(i);return o??e}else return e;else return""});get focusedMultipleOptionId(){return this.focusedMultipleOptionIndex()!==-1?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputMultipleClass(){return this._componentStyle.classes.inputMultiple({instance:this})}get panelClass(){return{"p-autocomplete-overlay p-component":!0,"p-input-filled":this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-ripple-disabled":this.config.ripple()===!1}}get inputClass(){return{"p-autocomplete-input":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return Ze(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(Ue.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return typeof this.modelValue()=="string"&&this.optionValue}chipItemClass(e){return this._componentStyle.classes.chipItem({instance:this,i:e})}optionClass(e,i,o){return{"p-autocomplete-option":!0,"p-autocomplete-option-selected":this.isSelected(e),"p-focus":this.focusedOptionIndex()===this.getOptionIndex(i,o),"p-disabled":this.isOptionDisabled(e)}}constructor(e,i){super(),this.overlayService=e,this.zone=i,rn(()=>{this.filled=Ze(this.modelValue())})}ngOnInit(){super.ngOnInit(),this.id=this.id||et("pn_id_"),this.cd.detectChanges()}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selecteditem":this._selectedItemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"removetokenicon":this._removeIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}handleSuggestionsChange(){if(this.loading){this._suggestions()?.length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();let e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});let a=this.getOptionGroupChildren(o);return a&&a.forEach(r=>i.push(r)),i},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return At(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?At(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.optionDisabled?Je(e,this.optionDisabled):!1}isSelected(e){return this.multiple?this.unique?this.modelValue()?.find(i=>mt(i,this.getOptionValue(e),this.equalityKey())):!1:mt(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,i){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===i.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL.nativeElement}isDropdownClicked(e){return this.dropdownButton?.nativeElement?e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target):!1}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&De(this.inputEL.nativeElement)}handleDropdownClick(e){let i;this.overlayVisible?this.hide(!0):(De(this.inputEL.nativeElement),i=this.inputEL.nativeElement.value,this.dropdownMode==="blank"?this.search(e,"","dropdown"):this.dropdownMode==="current"&&this.search(e,i,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:i})}onInput(e){if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);let i=e.target.value;this.maxlength!==null&&(i=i.split("").slice(0,this.maxlength).join("")),!this.multiple&&!this.forceSelection&&this.updateModel(i),i.length===0&&!this.multiple?(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2)):i.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,i,"input")},this.delay)):this.hide()}}onInputChange(e){if(this.forceSelection){let i=!1;if(this.visibleOptions()){let o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));o!==void 0&&(i=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}i||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e);break;default:break}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e);break;case"ShiftLeft":case"ShiftRight":break;default:break}}onArrowDownKey(e){if(!this.overlayVisible)return;let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}}get hasFluid(){let i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}onArrowLeftKey(e){let i=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(qs(i.value)&&this.hasSelectedOption()?(De(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){let{currentTarget:i}=e,o=i.value.length;i.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){let{currentTarget:i}=e,o=i.value.length;i.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.typeahead||this.multiple&&(this.updateModel([...this.modelValue()||[],e.target.value]),this.inputEL.nativeElement.value=""),this.overlayVisible?(this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(Ze(this.modelValue())&&!this.inputEL.nativeElement.value){let i=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:i})}e.stopPropagation()}!this.multiple&&this.showClear&&this.findSelectedOptionIndex()!=-1&&this.clear()}onArrowLeftKeyOnMultiple(e){let i=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(i)}onArrowRightKeyOnMultiple(e){let i=this.focusedMultipleOptionIndex();i++,this.focusedMultipleOptionIndex.set(i),i>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),De(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){this.focusedMultipleOptionIndex()!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,i,o=!0){let s=this.getOptionValue(i);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(i)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:i}),o&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}search(e,i,o){i!=null&&(o==="input"&&i.trim().length===0||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:i})))}removeOption(e,i){e.stopPropagation();let o=this.modelValue()[i],s=this.modelValue().filter((a,r)=>r!==i);this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),De(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let o=Pt(this.itemsViewChild.nativeElement,`li[id="${i}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[i],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),e&&De(this.inputEL.nativeElement),e&&De(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){let i=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&De(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{i()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.modelValue.set(e),this.updateInputValue(),this.cd.markForCheck()}hasSelectedOption(){return Ze(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?Je(e,this.field||this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Je(e,this.optionValue):e&&e.value!=null?e.value:e}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?Je(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Je(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"&&(this.itemsWrapper=Pt(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=Pt(this.itemsWrapper,".p-autocomplete-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(pt(un),pt(Dt))};static \u0275cmp=Z({type:t,selectors:[["p-autoComplete"],["p-autocomplete"],["p-auto-complete"]],contentQueries:function(i,o,s){if(i&1&&(P(s,Xc,5),P(s,Zc,5),P(s,Jc,5),P(s,ep,5),P(s,tp,5),P(s,ip,5),P(s,np,5),P(s,op,5),P(s,sp,5),P(s,ap,5),P(s,rp,5),P(s,ze,4)),i&2){let a;k(a=O())&&(o.itemTemplate=a.first),k(a=O())&&(o.emptyTemplate=a.first),k(a=O())&&(o.headerTemplate=a.first),k(a=O())&&(o.footerTemplate=a.first),k(a=O())&&(o.selectedItemTemplate=a.first),k(a=O())&&(o.groupTemplate=a.first),k(a=O())&&(o.loaderTemplate=a.first),k(a=O())&&(o.removeIconTemplate=a.first),k(a=O())&&(o.loadingIconTemplate=a.first),k(a=O())&&(o.clearIconTemplate=a.first),k(a=O())&&(o.dropdownIconTemplate=a.first),k(a=O())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(de(lp,5),de(cp,5),de(pp,5),de(dp,5),de(up,5),de(hp,5),de(fp,5),de(mp,5)),i&2){let s;k(s=O())&&(o.containerEL=s.first),k(s=O())&&(o.inputEL=s.first),k(s=O())&&(o.multiInputEl=s.first),k(s=O())&&(o.multiContainerEL=s.first),k(s=O())&&(o.dropdownButton=s.first),k(s=O())&&(o.itemsViewChild=s.first),k(s=O())&&(o.scroller=s.first),k(s=O())&&(o.overlayViewChild=s.first)}},inputs:{minLength:[2,"minLength","minLength",Me],delay:[2,"delay","delay",Me],style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[2,"readonly","readonly",A],disabled:[2,"disabled","disabled",A],scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",A],virtualScroll:[2,"virtualScroll","virtualScroll",A],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",maxlength:[2,"maxlength","maxlength",e=>Me(e,null)],name:"name",required:[2,"required","required",A],size:"size",appendTo:"appendTo",autoHighlight:[2,"autoHighlight","autoHighlight",A],forceSelection:[2,"forceSelection","forceSelection",A],type:"type",autoZIndex:[2,"autoZIndex","autoZIndex",A],baseZIndex:[2,"baseZIndex","baseZIndex",Me],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[2,"unique","unique",A],group:[2,"group","group",A],completeOnFocus:[2,"completeOnFocus","completeOnFocus",A],showClear:[2,"showClear","showClear",A],field:"field",dropdown:[2,"dropdown","dropdown",A],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",A],dropdownMode:"dropdownMode",multiple:[2,"multiple","multiple",A],tabindex:[2,"tabindex","tabindex",Me],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",A],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",A],selectOnFocus:[2,"selectOnFocus","selectOnFocus",A],searchLocale:[2,"searchLocale","searchLocale",A],optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",A],typeahead:[2,"typeahead","typeahead",A],variant:"variant",fluid:[2,"fluid","fluid",A]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[ge([bd,Ca]),Ee,J],decls:11,vars:15,consts:[["container",""],["overlay",""],["content",""],["focusInput",""],["multiContainer",""],["token",""],["removeicon",""],["ddBtn",""],["buildInItems",""],["scroller",""],["loader",""],["items",""],["empty",""],[2,"position","relative",3,"click","ngClass","ngStyle"],["pInputText","","aria-autocomplete","list","role","combobox",3,"pAutoFocus","ngClass","ngStyle","class","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"ngClass","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","class","p-autocomplete-dropdown","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],["pInputText","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid"],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-autocomplete-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["role","listbox",3,"focus","blur","keydown","ngClass","tabindex"],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-chip"],["role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","autocomplete","required","tabindex","readonly","disabled"],["role","option",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-autocomplete-chip",3,"label","removable","onRemove",4,"ngIf"],["styleClass","p-autocomplete-chip",3,"onRemove","label","removable"],[1,"p-autocomplete-chip-icon",3,"click"],[3,"styleClass"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pRipple","",1,"p-autocomplete-dropdown",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","ngStyle"],[1,"p-autocomplete-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-autocomplete-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-autocomplete-option-group",3,"ngStyle"],["pRipple","","role","option",3,"click","mouseenter","ngStyle","ngClass"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"]],template:function(i,o){if(i&1){let s=q();C(0,"div",13,0),$("click",function(r){return F(s),E(o.onContainerClick(r))}),x(2,vp,2,25,"input",14)(3,Sp,3,2,"ng-container",15)(4,Pp,6,26,"ul",16)(5,Bp,3,2,"ng-container",15)(6,Qp,4,5,"button",17),C(7,"p-overlay",18,1),an("visibleChange",function(r){return F(s),sn(o.overlayVisible,r)||(o.overlayVisible=r),E(r)}),$("onAnimationStart",function(r){return F(s),E(o.onOverlayAnimationStart(r))})("onHide",function(){return F(s),E(o.hide())}),x(9,fd,10,11,"ng-template",null,2,ue),T()()}i&2&&(j(o.styleClass),f("ngClass",o.rootClass)("ngStyle",o.style),g(2),f("ngIf",!o.multiple),g(),f("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),g(),f("ngIf",o.multiple),g(),f("ngIf",o.loading),g(),f("ngIf",o.dropdown),g(),on("visible",o.overlayVisible),f("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:[re,Ce,li,Le,Ve,je,bn,_n,hi,yn,fi,gn,sa,_t,mn,Di,H],encapsulation:2,changeDetection:0})}return t})(),Mv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Ia,H]})}return t})();var yd=["indicator"],xd=["rotaterighticon"],vd=["rotatelefticon"],Cd=["zoomouticon"],wd=["zoominicon"],Td=["closeicon"],Id=["preview"],Sd=["image"],kd=["mask"],Od=["previewButton"],Md=["closeButton"],Fd=t=>({errorCallback:t}),Ed=(t,n)=>({height:t,width:n}),Ld=t=>({"p-image-action p-image-zoom-out-button":!0,"p-disabled":t}),Vd=t=>({"p-image-action p-image-zoom-in-button":!0,"p-disabled":t}),Dd=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),Pd=t=>({value:"visible",params:t}),Ad=(t,n)=>({class:"p-image-original",style:t,previewCallback:n});function zd(t,n){if(t&1){let e=q();Q(0),C(1,"img",9),$("error",function(o){F(e);let s=m();return E(s.imageError(o))}),T(),K()}if(t&2){let e=m();g(),j(e.imageClass),f("ngStyle",e.imageStyle),S("src",e.src,It)("srcset",e.srcSet)("sizes",e.sizes)("alt",e.alt)("width",e.width)("height",e.height)("loading",e.loading)}}function $d(t,n){t&1&&W(0)}function Rd(t,n){t&1&&W(0)}function Bd(t,n){if(t&1&&(Q(0),x(1,Rd,1,0,"ng-container",12),K()),t&2){let e=m(2);g(),f("ngTemplateOutlet",e.indicatorTemplate||e._indicatorTemplate)}}function Hd(t,n){t&1&&R(0,"EyeIcon",13),t&2&&f("styleClass","p-image-preview-icon")}function Nd(t,n){if(t&1){let e=q();C(0,"button",10,0),$("click",function(){F(e);let o=m();return E(o.onImageClick())}),x(2,Bd,2,1,"ng-container",11)(3,Hd,1,1,"ng-template",null,1,ue),T()}if(t&2){let e=Ne(4),i=m();f("ngStyle",Ae(4,Ed,i.height+"px",i.width+"px")),S("aria-label",i.zoomImageAriaLabel),g(2),f("ngIf",i.indicatorTemplate||!i._indicatorTemplate)("ngIfElse",e)}}function jd(t,n){t&1&&R(0,"RefreshIcon")}function Ud(t,n){}function Wd(t,n){t&1&&x(0,Ud,0,0,"ng-template")}function Qd(t,n){t&1&&R(0,"UndoIcon")}function Kd(t,n){}function qd(t,n){t&1&&x(0,Kd,0,0,"ng-template")}function Gd(t,n){t&1&&R(0,"SearchMinusIcon")}function Yd(t,n){}function Xd(t,n){t&1&&x(0,Yd,0,0,"ng-template")}function Zd(t,n){t&1&&R(0,"SearchPlusIcon")}function Jd(t,n){}function eu(t,n){t&1&&x(0,Jd,0,0,"ng-template")}function tu(t,n){t&1&&R(0,"TimesIcon")}function iu(t,n){}function nu(t,n){t&1&&x(0,iu,0,0,"ng-template")}function ou(t,n){if(t&1){let e=q();Q(0),C(1,"img",20),$("click",function(){F(e);let o=m(3);return E(o.onPreviewImageClick())}),T(),K()}if(t&2){let e=m(3);g(),f("ngStyle",e.imagePreviewStyle()),S("src",e.previewImageSrc?e.previewImageSrc:e.src,It)("srcset",e.previewImageSrcSet)("sizes",e.previewImageSizes)}}function su(t,n){t&1&&W(0)}function au(t,n){if(t&1){let e=q();C(0,"div"),$("@animation.start",function(o){F(e);let s=m(2);return E(s.onAnimationStart(o))})("@animation.done",function(o){F(e);let s=m(2);return E(s.onAnimationEnd(o))}),x(1,ou,2,4,"ng-container",5)(2,su,1,0,"ng-container",6),T()}if(t&2){let e=m(2);f("@animation",ne(7,Pd,Ae(4,Dd,e.showTransitionOptions,e.hideTransitionOptions))),g(),f("ngIf",!e.previewTemplate&&!e._previewTemplate),g(),f("ngTemplateOutlet",e.previewTemplate||e._previewTemplate)("ngTemplateOutletContext",Ae(9,Ad,e.imagePreviewStyle(),e.onPreviewImageClick.bind(e)))}}function ru(t,n){if(t&1){let e=q();C(0,"div",14,2),$("click",function(){F(e);let o=m();return E(o.onMaskClick())})("keydown",function(o){F(e);let s=m();return E(s.onMaskKeydown(o))}),C(2,"div",15),$("click",function(o){F(e);let s=m();return E(s.handleToolbarClick(o))}),C(3,"button",16),$("click",function(){F(e);let o=m();return E(o.rotateRight())}),x(4,jd,1,0,"RefreshIcon",5)(5,Wd,1,0,null,12),T(),C(6,"button",17),$("click",function(){F(e);let o=m();return E(o.rotateLeft())}),x(7,Qd,1,0,"UndoIcon",5)(8,qd,1,0,null,12),T(),C(9,"button",18),$("click",function(){F(e);let o=m();return E(o.zoomOut())}),x(10,Gd,1,0,"SearchMinusIcon",5)(11,Xd,1,0,null,12),T(),C(12,"button",18),$("click",function(){F(e);let o=m();return E(o.zoomIn())}),x(13,Zd,1,0,"SearchPlusIcon",5)(14,eu,1,0,null,12),T(),C(15,"button",19,3),$("click",function(){F(e);let o=m();return E(o.closePreview())}),x(17,tu,1,0,"TimesIcon",5)(18,nu,1,0,null,12),T()(),x(19,au,3,12,"div",5),T()}if(t&2){let e=m();S("aria-modal",e.maskVisible),g(3),S("aria-label",e.rightAriaLabel()),g(),f("ngIf",!e.rotateRightIconTemplate&&!e._rotateRightIconTemplate),g(),f("ngTemplateOutlet",e.rotateRightIconTemplate||e._rotateRightIconTemplate),g(),S("aria-label",e.leftAriaLabel()),g(),f("ngIf",!e.rotateLeftIconTemplate&&!e._rotateLeftIconTemplate),g(),f("ngTemplateOutlet",e.rotateLeftIconTemplate||e._rotateLeftIconTemplate),g(),f("ngClass",ne(21,Ld,e.isZoomOutDisabled))("disabled",e.isZoomOutDisabled),S("aria-label",e.zoomOutAriaLabel()),g(),f("ngIf",!e.zoomOutIconTemplate&&!e._zoomOutIconTemplate),g(),f("ngTemplateOutlet",e.zoomOutIconTemplate||e._zoomOutIconTemplate),g(),f("ngClass",ne(23,Vd,e.isZoomOutDisabled))("disabled",e.isZoomInDisabled),S("aria-label",e.zoomInAriaLabel()),g(),f("ngIf",!e.zoomInIconTemplate&&!e._zoomInIconTemplate),g(),f("ngTemplateOutlet",e.zoomInIconTemplate||e._zoomInIconTemplate),g(),S("aria-label",e.closeAriaLabel()),g(2),f("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),g(),f("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate),g(),f("ngIf",e.previewVisible)}}var lu=({dt:t})=>`
.p-image-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-image-preview {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.p-image-preview-mask {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border: 0 none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    color: ${t("image.preview.mask.color")};
    transition: background ${t("image.transition.duration")};
}

.p-image-preview:hover > .p-image-preview-mask {
    opacity: 1;
    cursor: pointer;
    background: ${t("image.preview.mask.background")};
}

.p-image-preview-icon {
    font-size: ${t("image.preview.icon.size")};
    width: ${t("image.preview.icon.size")};
    height: ${t("image.preview.icon.size")};
}

.p-image-toolbar {
    position: absolute;
    inset-block-start: ${t("image.toolbar.position.top")};
    inset-inline-end: ${t("image.toolbar.position.right")};
    inset-inline-start: ${t("image.toolbar.position.left")};
    inset-block-end: ${t("image.toolbar.position.bottom")};
    display: flex;
    z-index: 1;
    padding: ${t("image.toolbar.padding")};
    background: ${t("image.toolbar.background")};
    backdrop-filter: blur(${t("image.toolbar.blur")});
    border-color: ${t("image.toolbar.border.color")};
    border-style: solid;
    border-width: ${t("image.toolbar.border.width")};
    border-radius: ${t("image.toolbar.border.radius")};
    gap: ${t("image.toolbar.gap")};
}

.p-image-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: ${t("image.action.color")};
    background: transparent;
    width: ${t("image.action.size")};
    height: ${t("image.action.size")};
    margin: 0;
    padding: 0;
    border: 0 none;
    cursor: pointer;
    user-select: none;
    border-radius: ${t("image.action.border.radius")};
    outline-color: transparent;
    transition: background ${t("image.transition.duration")}, color ${t("image.transition.duration")}, outline-color ${t("image.transition.duration")}, box-shadow ${t("image.transition.duration")};
}

.p-image-action:hover {
    color: ${t("image.action.hover.color")};
    background: ${t("image.action.hover.background")};
}

.p-image-action:focus-visible {
    box-shadow: ${t("toolbar.action.focus.ring.shadow")};
    outline: ${t("toolbar.action.focus.ring.width")} ${t("toolbar.action.focus.ring.style")} ${t("toolbar.action.focus.ring.color")};
    outline-offset: ${t("toolbar.action.focus.ring.offset")};
}

.p-image-action .p-icon {
    font-size: ${t("image.action.icon.size")};
    width: ${t("image.action.icon.size")};
    height: ${t("image.action.icon.size")};
}

.p-image-action.p-disabled {
    pointer-events: auto;
}

.p-image-original {
    transition: transform 0.15s;
    max-width: 100vw;
    max-height: 100vh;
}

.p-image-original-enter-active {
    transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}

.p-image-original-leave-active {
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.p-image-original-enter-from,
.p-image-original-leave-to {
    opacity: 0;
    transform: scale(0.7);
}
`,cu={root:({props:t})=>["p-image p-component",{"p-image-preview":t.preview}],previewMask:"p-image-preview-mask",previewIcon:"p-image-preview-icon",mask:"p-image-mask p-overlay-mask p-overlay-mask-enter",toolbar:"p-image-toolbar",rotateRightButton:"p-image-action p-image-rotate-right-button",rotateLeftButton:"p-image-action p-image-rotate-left-button",zoomOutButton:({instance:t})=>["p-image-action p-image-zoom-out-button",{"p-disabled":t.isZoomOutDisabled}],zoomInButton:({instance:t})=>["p-image-action p-image-zoom-in-button",{"p-disabled":t.isZoomInDisabled}],closeButton:"p-image-action p-image-close-button",original:"p-image-original"},Sa=(()=>{class t extends _e{name="image";theme=lu;classes=cu;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var pu=(()=>{class t extends fe{imageClass;imageStyle;styleClass;style;src;srcSet;sizes;previewImageSrc;previewImageSrcSet;previewImageSizes;alt;width;height;loading;appendTo;preview=!1;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";onShow=new N;onHide=new N;onImageError=new N;mask;previewButton;closeButton;indicatorTemplate;rotateRightIconTemplate;rotateLeftIconTemplate;zoomOutIconTemplate;zoomInIconTemplate;closeIconTemplate;previewTemplate;imageTemplate;maskVisible=!1;previewVisible=!1;rotate=0;scale=1;previewClick=!1;container;wrapper;_componentStyle=oe(Sa);get isZoomOutDisabled(){return this.scale-this.zoomSettings.step<=this.zoomSettings.min}get isZoomInDisabled(){return this.scale+this.zoomSettings.step>=this.zoomSettings.max}zoomSettings={default:1,step:.1,max:1.5,min:.5};constructor(){super()}templates;_indicatorTemplate;_rotateRightIconTemplate;_rotateLeftIconTemplate;_zoomOutIconTemplate;_zoomInIconTemplate;_closeIconTemplate;_imageTemplate;_previewTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"indicator":this._indicatorTemplate=e.template;break;case"rotaterighticon":this._rotateRightIconTemplate=e.template;break;case"rotatelefticon":this._rotateLeftIconTemplate=e.template;break;case"zoomouticon":this._zoomOutIconTemplate=e.template;break;case"zoominicon":this._zoomInIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"image":this._imageTemplate=e.template;break;case"preview":this._previewTemplate=e.template;break;default:this._indicatorTemplate=e.template;break}})}onImageClick(){this.preview&&(this.maskVisible=!0,this.previewVisible=!0,js())}onMaskClick(){this.previewClick||this.closePreview(),this.previewClick=!1}onMaskKeydown(e){switch(e.code){case"Escape":this.onMaskClick(),setTimeout(()=>{De(this.previewButton.nativeElement)},25),e.preventDefault();break;default:break}}onPreviewImageClick(){this.previewClick=!0}rotateRight(){this.rotate+=90,this.previewClick=!0}rotateLeft(){this.rotate-=90,this.previewClick=!0}zoomIn(){this.scale=this.scale+this.zoomSettings.step,this.previewClick=!0}zoomOut(){this.scale=this.scale-this.zoomSettings.step,this.previewClick=!0}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),setTimeout(()=>{De(this.closeButton.nativeElement)},25);break;case"void":pn(this.wrapper,"p-overlay-mask-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":_o.clear(this.wrapper),this.maskVisible=!1,this.container=null,this.wrapper=null,this.cd.markForCheck(),this.onHide.emit({});break;case"visible":this.onShow.emit({});break}}moveOnTop(){_o.set("modal",this.wrapper,this.config.zIndex.modal)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.wrapper):Us(this.appendTo,this.wrapper))}imagePreviewStyle(){return{transform:"rotate("+this.rotate+"deg) scale("+this.scale+")"}}get zoomImageAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomImage:void 0}containerClass(){return{"p-image p-component":!0,"p-image-preview":this.preview}}handleToolbarClick(e){e.stopPropagation()}closePreview(){this.previewVisible=!1,this.rotate=0,this.scale=this.zoomSettings.default,dn()}imageError(e){this.onImageError.emit(e)}rightAriaLabel(){return this.config.translation.aria?this.config.translation.aria.rotateRight:void 0}leftAriaLabel(){return this.config.translation.aria?this.config.translation.aria.rotateLeft:void 0}zoomInAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomIn:void 0}zoomOutAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomOut:void 0}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}onKeydownHandler(e){this.previewVisible&&this.closePreview()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Z({type:t,selectors:[["p-image"]],contentQueries:function(i,o,s){if(i&1&&(P(s,yd,4),P(s,xd,4),P(s,vd,4),P(s,Cd,4),P(s,wd,4),P(s,Td,4),P(s,Id,4),P(s,Sd,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.indicatorTemplate=a.first),k(a=O())&&(o.rotateRightIconTemplate=a.first),k(a=O())&&(o.rotateLeftIconTemplate=a.first),k(a=O())&&(o.zoomOutIconTemplate=a.first),k(a=O())&&(o.zoomInIconTemplate=a.first),k(a=O())&&(o.closeIconTemplate=a.first),k(a=O())&&(o.previewTemplate=a.first),k(a=O())&&(o.imageTemplate=a.first),k(a=O())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(de(kd,5),de(Od,5),de(Md,5)),i&2){let s;k(s=O())&&(o.mask=s.first),k(s=O())&&(o.previewButton=s.first),k(s=O())&&(o.closeButton=s.first)}},hostBindings:function(i,o){i&1&&$("keydown.escape",function(a){return o.onKeydownHandler(a)},!1,zs)},inputs:{imageClass:"imageClass",imageStyle:"imageStyle",styleClass:"styleClass",style:"style",src:"src",srcSet:"srcSet",sizes:"sizes",previewImageSrc:"previewImageSrc",previewImageSrcSet:"previewImageSrcSet",previewImageSizes:"previewImageSizes",alt:"alt",width:"width",height:"height",loading:"loading",appendTo:"appendTo",preview:[2,"preview","preview",A],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide",onImageError:"onImageError"},features:[ge([Sa]),Ee,J],decls:5,vars:11,consts:[["previewButton",""],["defaultTemplate",""],["mask",""],["closeButton",""],[3,"ngClass","ngStyle"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-image-preview-mask",3,"ngStyle","click",4,"ngIf"],["class","p-image-mask p-overlay-mask p-overlay-mask-enter","role","dialog","pFocusTrap","",3,"click","keydown",4,"ngIf"],[3,"error","ngStyle"],["type","button",1,"p-image-preview-mask",3,"click","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"styleClass"],["role","dialog","pFocusTrap","",1,"p-image-mask","p-overlay-mask","p-overlay-mask-enter",3,"click","keydown"],[1,"p-image-toolbar",3,"click"],["type","button",1,"p-image-action","p-image-rotate-right-button",3,"click"],["type","button",1,"p-image-action","p-image-rotate-left-button",3,"click"],["type","button",3,"click","ngClass","disabled"],["type","button",1,"p-image-action","p-image-close-button",3,"click"],[1,"p-image-original",3,"click","ngStyle"]],template:function(i,o){i&1&&(C(0,"span",4),x(1,zd,2,10,"ng-container",5)(2,$d,1,0,"ng-container",6)(3,Nd,5,7,"button",7)(4,ru,20,25,"div",8),T()),i&2&&(j(o.styleClass),f("ngClass",o.containerClass())("ngStyle",o.style),g(),f("ngIf",!o.imageTemplate&&!o._imageTemplate),g(),f("ngTemplateOutlet",o.imageTemplate||o._imageTemplate)("ngTemplateOutletContext",ne(9,Fd,o.imageError.bind(o))),g(),f("ngIf",o.preview),g(),f("ngIf",o.maskVisible))},dependencies:[re,Ce,Le,Ve,je,ga,ia,ya,_a,ba,_t,da,H],encapsulation:2,data:{animation:[cn("animation",[di("void => visible",[pi({transform:"scale(0.7)",opacity:0}),ci("{{showTransitionParams}}")]),di("visible => void",[ci("{{hideTransitionParams}}",pi({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),Zv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[pu,H,H]})}return t})();var du=["container"],uu=["icon"],hu=["closeicon"],fu=["*"],mu=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),gu=t=>({value:"visible()",params:t}),_u=t=>({closeCallback:t});function bu(t,n){t&1&&W(0)}function yu(t,n){if(t&1&&x(0,bu,1,0,"ng-container",7),t&2){let e=m(2);f("ngTemplateOutlet",e.iconTemplate||e.iconTemplate)}}function xu(t,n){if(t&1&&R(0,"i",3),t&2){let e=m(2);f("ngClass",e.icon)}}function vu(t,n){if(t&1&&R(0,"span",9),t&2){let e=m(3);f("ngClass",e.cx("text"))("innerHTML",e.text,As)}}function Cu(t,n){if(t&1&&(C(0,"div"),x(1,vu,1,2,"span",8),T()),t&2){let e=m(2);g(),f("ngIf",!e.escape)}}function wu(t,n){if(t&1&&(C(0,"span",5),ae(1),T()),t&2){let e=m(3);f("ngClass",e.cx("text")),g(),Oe(e.text)}}function Tu(t,n){if(t&1&&x(0,wu,2,2,"span",10),t&2){let e=m(2);f("ngIf",e.escape&&e.text)}}function Iu(t,n){t&1&&W(0)}function Su(t,n){if(t&1&&x(0,Iu,1,0,"ng-container",11),t&2){let e=m(2);f("ngTemplateOutlet",e.containerTemplate||e.containerTemplate)("ngTemplateOutletContext",ne(2,_u,e.close.bind(e)))}}function ku(t,n){if(t&1&&(C(0,"span",5),He(1),T()),t&2){let e=m(2);f("ngClass",e.cx("text"))}}function Ou(t,n){if(t&1&&R(0,"i",13),t&2){let e=m(3);f("ngClass",e.closeIcon)}}function Mu(t,n){t&1&&W(0)}function Fu(t,n){if(t&1&&x(0,Mu,1,0,"ng-container",7),t&2){let e=m(3);f("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Eu(t,n){t&1&&R(0,"TimesIcon",14)}function Lu(t,n){if(t&1){let e=q();C(0,"button",12),$("click",function(o){F(e);let s=m(2);return E(s.close(o))}),x(1,Ou,1,1,"i",13)(2,Fu,1,1,"ng-container")(3,Eu,1,0,"TimesIcon",14),T()}if(t&2){let e=m(2);S("aria-label",e.closeAriaLabel),g(),Ie(e.closeIcon?1:-1),g(),Ie(e.closeIconTemplate||e._closeIconTemplate?2:-1),g(),Ie(!e.closeIconTemplate&&!e._closeIconTemplate&&!e.closeIcon?3:-1)}}function Vu(t,n){if(t&1&&(C(0,"div",1)(1,"div",2),x(2,yu,1,1,"ng-container")(3,xu,1,1,"i",3)(4,Cu,2,1,"div",4)(5,Tu,1,1,"ng-template",null,0,ue)(7,Su,1,4,"ng-container")(8,ku,2,1,"span",5)(9,Lu,4,4,"button",6),T()()),t&2){let e=Ne(6),i=m();f("ngClass",i.containerClass)("@messageAnimation",ne(13,gu,Ae(10,mu,i.showTransitionOptions,i.hideTransitionOptions))),S("aria-live","polite")("role","alert"),g(2),Ie(i.iconTemplate||i._iconTemplate?2:-1),g(),Ie(i.icon?3:-1),g(),f("ngIf",!i.escape)("ngIfElse",e),g(3),Ie(i.containerTemplate||i._containerTemplate?7:8),g(2),Ie(i.closable?9:-1)}}var Du=({dt:t})=>`
.p-message {
    border-radius: ${t("message.border.radius")};
    outline-width: ${t("message.border.width")};
    outline-style: solid;
}

.p-message-content {
    display: flex;
    align-items: center;
    padding: ${t("message.content.padding")};
    gap: ${t("message.content.gap")};
    height: 100%;
}

.p-message-icon {
    flex-shrink: 0;
}

.p-message-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-inline-start: auto;
    overflow: hidden;
    position: relative;
    width: ${t("message.close.button.width")};
    height: ${t("message.close.button.height")};
    border-radius: ${t("message.close.button.border.radius")};
    background: transparent;
    transition: background ${t("message.transition.duration")}, color ${t("message.transition.duration")}, outline-color ${t("message.transition.duration")}, box-shadow ${t("message.transition.duration")}, opacity 0.3s;
    outline-color: transparent;
    color: inherit;
    padding: 0;
    border: none;
    cursor: pointer;
    user-select: none;
}

.p-message-close-icon {
    font-size: ${t("message.close.icon.size")};
    width: ${t("message.close.icon.size")};
    height: ${t("message.close.icon.size")};
}

.p-message-close-button:focus-visible {
    outline-width: ${t("message.close.button.focus.ring.width")};
    outline-style: ${t("message.close.button.focus.ring.style")};
    outline-offset: ${t("message.close.button.focus.ring.offset")};
}

.p-message-info {
    background: ${t("message.info.background")};
    outline-color: ${t("message.info.border.color")};
    color: ${t("message.info.color")};
    box-shadow: ${t("message.info.shadow")};
}

.p-message-info .p-message-close-button:focus-visible {
    outline-color: ${t("message.info.close.button.focus.ring.color")};
    box-shadow: ${t("message.info.close.button.focus.ring.shadow")};
}

.p-message-info .p-message-close-button:hover {
    background: ${t("message.info.close.button.hover.background")};
}

.p-message-info.p-message-outlined {
    color: ${t("message.info.outlined.color")};
    outline-color: ${t("message.info.outlined.border.color")};
}

.p-message-info.p-message-simple {
    color: ${t("message.info.simple.color")};
}

.p-message-success {
    background: ${t("message.success.background")};
    outline-color: ${t("message.success.border.color")};
    color: ${t("message.success.color")};
    box-shadow: ${t("message.success.shadow")};
}

.p-message-success .p-message-close-button:focus-visible {
    outline-color: ${t("message.success.close.button.focus.ring.color")};
    box-shadow: ${t("message.success.close.button.focus.ring.shadow")};
}

.p-message-success .p-message-close-button:hover {
    background: ${t("message.success.close.button.hover.background")};
}

.p-message-success.p-message-outlined {
    color: ${t("message.success.outlined.color")};
    outline-color: ${t("message.success.outlined.border.color")};
}

.p-message-success.p-message-simple {
    color: ${t("message.success.simple.color")};
}

.p-message-warn {
    background: ${t("message.warn.background")};
    outline-color: ${t("message.warn.border.color")};
    color: ${t("message.warn.color")};
    box-shadow: ${t("message.warn.shadow")};
}

.p-message-warn .p-message-close-button:focus-visible {
    outline-color: ${t("message.warn.close.button.focus.ring.color")};
    box-shadow: ${t("message.warn.close.button.focus.ring.shadow")};
}

.p-message-warn .p-message-close-button:hover {
    background: ${t("message.warn.close.button.hover.background")};
}

.p-message-warn.p-message-outlined {
    color: ${t("message.warn.outlined.color")};
    outline-color: ${t("message.warn.outlined.border.color")};
}

.p-message-warn.p-message-simple {
    color: ${t("message.warn.simple.color")};
}

.p-message-error {
    background: ${t("message.error.background")};
    outline-color: ${t("message.error.border.color")};
    color: ${t("message.error.color")};
    box-shadow: ${t("message.error.shadow")};
}

.p-message-error .p-message-close-button:focus-visible {
    outline-color: ${t("message.error.close.button.focus.ring.color")};
    box-shadow: ${t("message.error.close.button.focus.ring.shadow")};
}

.p-message-error .p-message-close-button:hover {
    background: ${t("message.error.close.button.hover.background")};
}

.p-message-error.p-message-outlined {
    color: ${t("message.error.outlined.color")};
    outline-color: ${t("message.error.outlined.border.color")};
}

.p-message-error.p-message-simple {
    color: ${t("message.error.simple.color")};
}

.p-message-secondary {
    background: ${t("message.secondary.background")};
    outline-color: ${t("message.secondary.border.color")};
    color: ${t("message.secondary.color")};
    box-shadow: ${t("message.secondary.shadow")};
}

.p-message-secondary .p-message-close-button:focus-visible {
    outline-color: ${t("message.secondary.close.button.focus.ring.color")};
    box-shadow: ${t("message.secondary.close.button.focus.ring.shadow")};
}

.p-message-secondary .p-message-close-button:hover {
    background: ${t("message.secondary.close.button.hover.background")};
}

.p-message-secondary.p-message-outlined {
    color: ${t("message.secondary.outlined.color")};
    outline-color: ${t("message.secondary.outlined.border.color")};
}

.p-message-secondary.p-message-simple {
    color: ${t("message.secondary.simple.color")};
}

.p-message-contrast {
    background: ${t("message.contrast.background")};
    outline-color: ${t("message.contrast.border.color")};
    color: ${t("message.contrast.color")};
    box-shadow: ${t("message.contrast.shadow")};
}

.p-message-contrast .p-message-close-button:focus-visible {
    outline-color: ${t("message.contrast.close.button.focus.ring.color")};
    box-shadow: ${t("message.contrast.close.button.focus.ring.shadow")};
}

.p-message-contrast .p-message-close-button:hover {
    background: ${t("message.contrast.close.button.hover.background")};
}

.p-message-contrast.p-message-outlined {
    color: ${t("message.contrast.outlined.color")};
    outline-color: ${t("message.contrast.outlined.border.color")};
}

.p-message-contrast.p-message-simple {
    color: ${t("message.contrast.simple.color")};
}

.p-message-text {
    display: inline-flex;
    align-items: center;
    font-size: ${t("message.text.font.size")};
    font-weight: ${t("message.text.font.weight")};
}

.p-message-icon {
    font-size: ${t("message.icon.size")};
    width: ${t("message.icon.size")};
    height: ${t("message.icon.size")};
}

.p-message-enter-from {
    opacity: 0;
}

.p-message-enter-active {
    transition: opacity 0.3s;
}

.p-message.p-message-leave-from {
    max-height: 1000px;
}

.p-message.p-message-leave-to {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.p-message-leave-active {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;
}

.p-message-leave-active .p-message-close-button {
    opacity: 0;
}

.p-message-sm .p-message-content {
    padding: ${t("message.content.sm.padding")};
}

.p-message-sm .p-message-text {
    font-size: ${t("message.text.sm.font.size")};
}

.p-message-sm .p-message-icon {
    font-size: ${t("message.icon.sm.size")};
    width: ${t("message.icon.sm.size")};
    height: ${t("message.icon.sm.size")};
}

.p-message-sm .p-message-close-icon {
    font-size: ${t("message.close.icon.sm.size")};
    width: ${t("message.close.icon.sm.size")};
    height: ${t("message.close.icon.sm.size")};
}

.p-message-lg .p-message-content {
    padding: ${t("message.content.lg.padding")};
}

.p-message-lg .p-message-text {
    font-size: ${t("message.text.lg.font.size")};
}

.p-message-lg .p-message-icon {
    font-size: ${t("message.icon.lg.size")};
    width: ${t("message.icon.lg.size")};
    height: ${t("message.icon.lg.size")};
}

.p-message-lg .p-message-close-icon {
    font-size: ${t("message.close.icon.lg.size")};
    width: ${t("message.close.icon.lg.size")};
    height: ${t("message.close.icon.lg.size")};
}

.p-message-outlined {
    background: transparent;
    outline-width: ${t("message.outlined.border.width")};
}

.p-message-simple {
    background: transparent;
    outline-color: transparent;
    box-shadow: none;
}

.p-message-simple .p-message-content {
    padding: ${t("message.simple.content.padding")};
}

.p-message-outlined .p-message-close-button:hover,
.p-message-simple .p-message-close-button:hover {
    background: transparent;
}`,Pu={root:({props:t})=>["p-message p-component p-message-"+t.severity,{"p-message-simple":t.variant==="simple"}],content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"},ka=(()=>{class t extends _e{name="message";theme=Du;classes=Pu;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var bo=(()=>{class t extends fe{severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;onClose=new N;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get containerClass(){let e=this.variant==="outlined"?"p-message-outlined":this.variant==="simple"?"p-message-simple":"",i=this.size==="small"?"p-message-sm":this.size==="large"?"p-message-lg":"";return`p-message-${this.severity} ${e} ${i}`.trim()+(this.styleClass?" "+this.styleClass:"")}visible=qe(!0);_componentStyle=oe(ka);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;ngOnInit(){super.ngOnInit(),this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"container":this._containerTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break}})}close(e){this.visible.set(!1),this.onClose.emit({originalEvent:e})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-message"]],contentQueries:function(i,o,s){if(i&1&&(P(s,du,4),P(s,uu,4),P(s,hu,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.containerTemplate=a.first),k(a=O())&&(o.iconTemplate=a.first),k(a=O())&&(o.closeIconTemplate=a.first),k(a=O())&&(o.templates=a)}},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",A],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",A],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant"},outputs:{onClose:"onClose"},features:[ge([ka]),Ee,J],ngContentSelectors:fu,decls:1,vars:1,consts:[["escapeOut",""],[1,"p-message","p-component",3,"ngClass"],[1,"p-message-content"],[1,"p-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["pRipple","","type","button",1,"p-message-close-button"],[4,"ngTemplateOutlet"],[3,"ngClass","innerHTML",4,"ngIf"],[3,"ngClass","innerHTML"],[3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","type","button",1,"p-message-close-button",3,"click"],[1,"p-message-close-icon",3,"ngClass"],["styleClass","p-message-close-icon"]],template:function(i,o){i&1&&(Xe(),x(0,Vu,10,15,"div",1)),i&2&&Ie(o.visible()?0:-1)},dependencies:[re,Ce,Le,Ve,_t,hi,H],encapsulation:2,data:{animation:[cn("messageAnimation",[di(":enter",[pi({opacity:0,transform:"translateY(-25%)"}),ci("{{showTransitionParams}}")]),di(":leave",[ci("{{hideTransitionParams}}",pi({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return t})(),_2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[bo,H,H]})}return t})();var Au=["content"],zu=(t,n)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":n}),$u=t=>({$implicit:t});function Ru(t,n){if(t&1&&(C(0,"div"),ae(1),T()),t&2){let e=m(2);Ge("display",e.value!=null&&e.value!==0?"flex":"none"),S("data-pc-section","label"),g(),$s("",e.value,"",e.unit,"")}}function Bu(t,n){t&1&&W(0)}function Hu(t,n){if(t&1&&(C(0,"div",3)(1,"div",4),x(2,Ru,2,5,"div",5)(3,Bu,1,0,"ng-container",6),T()()),t&2){let e=m();j(e.valueStyleClass),Ge("width",e.value+"%")("background",e.color),f("ngClass","p-progressbar-value p-progressbar-value-animate"),S("data-pc-section","value"),g(2),f("ngIf",e.showValue&&!e.contentTemplate&&!e._contentTemplate),g(),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ne(11,$u,e.value))}}function Nu(t,n){if(t&1&&(C(0,"div",7),R(1,"div",8),T()),t&2){let e=m();j(e.valueStyleClass),f("ngClass","p-progressbar-indeterminate-container"),S("data-pc-section","container"),g(),Ge("background",e.color),S("data-pc-section","value")}}var ju=({dt:t})=>`
.p-progressbar {
    position: relative;
    overflow: hidden;
    height: ${t("progressbar.height")};
    background: ${t("progressbar.background")};
    border-radius: ${t("progressbar.border.radius")};
}

.p-progressbar-value {
    margin: 0;
    background: ${t("progressbar.value.background")};
}

.p-progressbar-label {
    color: ${t("progressbar.label.color")};
    font-size: ${t("progressbar.label.font.size")};
    font-weight: ${t("progressbar.label.font.weight")};
}

.p-progressbar-determinate .p-progressbar-value {
    height: 100%;
    width: 0%;
    position: absolute;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 1s ease-in-out;
}

.p-progressbar-determinate .p-progressbar-label {
    display: inline-flex;
}

.p-progressbar-indeterminate .p-progressbar-value::before {
    content: "";
    position: absolute;
    background: inherit;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    will-change: inset-inline-start, inset-inline-end;
    animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.p-progressbar-indeterminate .p-progressbar-value::after {
    content: "";
    position: absolute;
    background: inherit;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    will-change: inset-inline-start, inset-inline-end;
    animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation-delay: 1.15s;
}

@-webkit-keyframes p-progressbar-indeterminate-anim {
    0% {
        inset-inline-start: -35%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
    100% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
}
@keyframes p-progressbar-indeterminate-anim {
    0% {
        inset-inline-start: -35%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
    100% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
}
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
    0% {
        inset-inline-start: -200%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
    100% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
}
@keyframes p-progressbar-indeterminate-anim-short {
    0% {
        inset-inline-start: -200%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
    100% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
}
`,Uu={root:({instance:t})=>["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}],value:"p-progressbar-value",label:"p-progressbar-label"},Oa=(()=>{class t extends _e{name="progressbar";theme=ju;classes=Uu;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var yo=(()=>{class t extends fe{value;showValue=!0;styleClass;valueStyleClass;style;unit="%";mode="determinate";color;contentTemplate;_componentStyle=oe(Oa);templates;_contentTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-progressBar"],["p-progressbar"],["p-progress-bar"]],contentQueries:function(i,o,s){if(i&1&&(P(s,Au,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.contentTemplate=a.first),k(a=O())&&(o.templates=a)}},inputs:{value:[2,"value","value",Me],showValue:[2,"showValue","showValue",A],styleClass:"styleClass",valueStyleClass:"valueStyleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[ge([Oa]),Ee,J],decls:3,vars:15,consts:[["role","progressbar",3,"ngStyle","ngClass"],["style","display:flex",3,"ngClass","class","width","background",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[2,"display","flex",3,"ngClass"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(i,o){i&1&&(C(0,"div",0),x(1,Hu,4,13,"div",1)(2,Nu,2,7,"div",2),T()),i&2&&(j(o.styleClass),f("ngStyle",o.style)("ngClass",Ae(12,zu,o.mode==="determinate",o.mode==="indeterminate")),S("aria-valuemin",0)("aria-valuenow",o.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root")("aria-label",o.value+o.unit),g(),f("ngIf",o.mode==="determinate"),g(),f("ngIf",o.mode==="indeterminate"))},dependencies:[re,Ce,Le,Ve,je,H],encapsulation:2,changeDetection:0})}return t})(),L2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[yo,H,H]})}return t})();var Wu=["file"],Qu=["header"],Ma=["content"],Ku=["toolbar"],qu=["chooseicon"],Gu=["filelabel"],Yu=["uploadicon"],Xu=["cancelicon"],Zu=["empty"],Ju=["advancedfileinput"],eh=["basicfileinput"],th=(t,n,e,i,o)=>({$implicit:t,uploadedFiles:n,chooseCallback:e,clearCallback:i,uploadCallback:o}),ih=(t,n,e,i,o,s,a,r)=>({$implicit:t,uploadedFiles:n,chooseCallback:e,clearCallback:i,removeUploadedFileCallback:o,removeFileCallback:s,progress:a,messages:r}),nh=t=>({$implicit:t});function oh(t,n){if(t&1&&R(0,"span"),t&2){let e=m(3);j(e.chooseIcon),S("aria-label",!0)("data-pc-section","chooseicon")}}function sh(t,n){t&1&&R(0,"PlusIcon"),t&2&&S("aria-label",!0)("data-pc-section","chooseicon")}function ah(t,n){}function rh(t,n){t&1&&x(0,ah,0,0,"ng-template")}function lh(t,n){if(t&1&&(C(0,"span"),x(1,rh,1,0,null,11),T()),t&2){let e=m(4);S("aria-label",!0)("data-pc-section","chooseicon"),g(),f("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function ch(t,n){if(t&1&&(Q(0),x(1,sh,1,2,"PlusIcon",9)(2,lh,2,3,"span",9),K()),t&2){let e=m(3);g(),f("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),g(),f("ngIf",e.chooseIconTemplate||e._chooseIconTemplate)}}function ph(t,n){if(t&1&&R(0,"span",21),t&2){let e=m(4);f("ngClass",e.uploadIcon),S("aria-hidden",!0)}}function dh(t,n){t&1&&R(0,"UploadIcon")}function uh(t,n){}function hh(t,n){t&1&&x(0,uh,0,0,"ng-template")}function fh(t,n){if(t&1&&(C(0,"span"),x(1,hh,1,0,null,11),T()),t&2){let e=m(5);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.uploadIconTemplate||e._uploadIconTemplate)}}function mh(t,n){if(t&1&&(Q(0),x(1,dh,1,0,"UploadIcon",9)(2,fh,2,2,"span",9),K()),t&2){let e=m(4);g(),f("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),g(),f("ngIf",e.uploadIconTemplate||e._uploadIconTemplate)}}function gh(t,n){if(t&1){let e=q();C(0,"p-button",19),$("onClick",function(){F(e);let o=m(3);return E(o.upload())}),x(1,ph,1,2,"span",20)(2,mh,3,2,"ng-container",9),T()}if(t&2){let e=m(3);f("label",e.uploadButtonLabel)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass","p-fileupload-upload-button "+e.uploadStyleClass)("buttonProps",e.uploadButtonProps),g(),f("ngIf",e.uploadIcon),g(),f("ngIf",!e.uploadIcon)}}function _h(t,n){if(t&1&&R(0,"span",21),t&2){let e=m(4);f("ngClass",e.cancelIcon)}}function bh(t,n){t&1&&R(0,"TimesIcon"),t&2&&S("aria-hidden",!0)}function yh(t,n){}function xh(t,n){t&1&&x(0,yh,0,0,"ng-template")}function vh(t,n){if(t&1&&(C(0,"span"),x(1,xh,1,0,null,11),T()),t&2){let e=m(5);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function Ch(t,n){if(t&1&&(Q(0),x(1,bh,1,1,"TimesIcon",9)(2,vh,2,2,"span",9),K()),t&2){let e=m(4);g(),f("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),g(),f("ngIf",e.cancelIconTemplate||e._cancelIconTemplate)}}function wh(t,n){if(t&1){let e=q();C(0,"p-button",19),$("onClick",function(){F(e);let o=m(3);return E(o.clear())}),x(1,_h,1,1,"span",20)(2,Ch,3,2,"ng-container",9),T()}if(t&2){let e=m(3);f("label",e.cancelButtonLabel)("disabled",!e.hasFiles()||e.uploading)("styleClass","p-fileupload-cancel-button "+e.cancelStyleClass)("buttonProps",e.cancelButtonProps),g(),f("ngIf",e.cancelIcon),g(),f("ngIf",!e.cancelIcon)}}function Th(t,n){if(t&1){let e=q();Q(0),C(1,"p-button",16),$("focus",function(){F(e);let o=m(2);return E(o.onFocus())})("blur",function(){F(e);let o=m(2);return E(o.onBlur())})("onClick",function(){F(e);let o=m(2);return E(o.choose())})("keydown.enter",function(){F(e);let o=m(2);return E(o.choose())}),C(2,"input",7,0),$("change",function(o){F(e);let s=m(2);return E(s.onFileSelect(o))}),T(),x(4,oh,1,4,"span",17)(5,ch,3,2,"ng-container",9),T(),x(6,gh,3,6,"p-button",18)(7,wh,3,6,"p-button",18),K()}if(t&2){let e=m(2);g(),f("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled||e.isChooseDisabled())("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),S("data-pc-section","choosebutton"),g(),f("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),S("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),g(2),f("ngIf",e.chooseIcon),g(),f("ngIf",!e.chooseIcon),g(),f("ngIf",!e.auto&&e.showUploadButton),g(),f("ngIf",!e.auto&&e.showCancelButton)}}function Ih(t,n){t&1&&W(0)}function Sh(t,n){t&1&&W(0)}function kh(t,n){if(t&1&&R(0,"p-progressbar",22),t&2){let e=m(2);f("value",e.progress)("showValue",!1)}}function Oh(t,n){if(t&1&&R(0,"p-message",14),t&2){let e=n.$implicit;f("severity",e.severity)("text",e.text)}}function Mh(t,n){if(t&1){let e=q();C(0,"img",33),$("error",function(o){F(e);let s=m(5);return E(s.imageError(o))}),T()}if(t&2){let e=m().$implicit,i=m(4);f("src",e.objectURL,It)("width",i.previewWidth)}}function Fh(t,n){t&1&&R(0,"TimesIcon")}function Eh(t,n){}function Lh(t,n){t&1&&x(0,Eh,0,0,"ng-template")}function Vh(t,n){if(t&1&&x(0,Fh,1,0,"TimesIcon",9)(1,Lh,1,0,null,11),t&2){let e=m(5);f("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),g(),f("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function Dh(t,n){if(t&1){let e=q();C(0,"div",24),x(1,Mh,1,2,"img",27),C(2,"div",28)(3,"div",29),ae(4),T(),C(5,"span",30),ae(6),T()(),C(7,"div",31)(8,"p-button",32),$("onClick",function(o){let s=F(e).index,a=m(4);return E(a.remove(o,s))}),x(9,Vh,2,2,"ng-template",null,2,ue),T()()()}if(t&2){let e=n.$implicit,i=m(4);g(),f("ngIf",i.isImage(e)),g(3),Oe(e.name),g(2),Oe(i.formatSize(e.size)),g(2),f("disabled",i.uploading)("styleClass","p-fileupload-file-remove-button "+i.removeStyleClass)}}function Ph(t,n){if(t&1&&x(0,Dh,11,5,"div",26),t&2){let e=m(3);f("ngForOf",e.files)}}function Ah(t,n){}function zh(t,n){if(t&1&&x(0,Ah,0,0,"ng-template",25),t&2){let e=m(3);f("ngForOf",e.files)("ngForTemplate",e.fileTemplate||e._fileTemplate)}}function $h(t,n){if(t&1&&(C(0,"div",23),x(1,Ph,1,1,"div",24)(2,zh,1,2,null,25),T()),t&2){let e=m(2);g(),Ie(!e.fileTemplate&&!e._fileTemplate?1:-1),g(),Ie(e.fileTemplate||e._fileTemplate?2:-1)}}function Rh(t,n){t&1&&W(0)}function Bh(t,n){t&1&&W(0)}function Hh(t,n){if(t&1&&x(0,Bh,1,0,"ng-container",11),t&2){let e=m(2);f("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Nh(t,n){if(t&1){let e=q();C(0,"div",6)(1,"input",7,0),$("change",function(o){F(e);let s=m();return E(s.onFileSelect(o))}),T(),C(3,"div",8),x(4,Th,8,15,"ng-container",9)(5,Ih,1,0,"ng-container",10)(6,Sh,1,0,"ng-container",11),T(),C(7,"div",12,1),$("dragenter",function(o){F(e);let s=m();return E(s.onDragEnter(o))})("dragleave",function(o){F(e);let s=m();return E(s.onDragLeave(o))})("drop",function(o){F(e);let s=m();return E(s.onDrop(o))}),x(9,kh,1,2,"p-progressbar",13),ro(10,Oh,1,2,"p-message",14,ao),x(12,$h,3,2,"div",15)(13,Rh,1,0,"ng-container",10)(14,Hh,1,1,"ng-container"),T()()}if(t&2){let e=m();j(e.styleClass),f("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),S("data-pc-name","fileupload")("data-pc-section","root"),g(),Ge("display","none"),f("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),S("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),g(3),f("ngIf",!e.headerTemplate&&!e._headerTemplate),g(),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",Rs(24,th,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.upload.bind(e))),g(),f("ngTemplateOutlet",e.toolbarTemplate||e._toolbarTemplate),g(),S("data-pc-section","content"),g(2),f("ngIf",e.hasFiles()),g(),lo(e.msgs),g(2),f("ngIf",e.hasFiles()),g(),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Bs(30,ih,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.removeUploadedFile.bind(e),e.remove.bind(e),e.progress,e.msgs)),g(),Ie((e.emptyTemplate||e._emptyTemplate)&&!e.hasFiles()&&!e.hasUploadedFiles()?14:-1)}}function jh(t,n){if(t&1&&R(0,"p-message",14),t&2){let e=n.$implicit;f("severity",e.severity)("text",e.text)}}function Uh(t,n){if(t&1&&R(0,"span",37),t&2){let e=m(4);f("ngClass",e.uploadIcon)}}function Wh(t,n){t&1&&R(0,"UploadIcon",40),t&2&&f("styleClass","p-button-icon p-button-icon-left")}function Qh(t,n){}function Kh(t,n){t&1&&x(0,Qh,0,0,"ng-template")}function qh(t,n){if(t&1&&(C(0,"span",41),x(1,Kh,1,0,null,11),T()),t&2){let e=m(5);g(),f("ngTemplateOutlet",e._uploadIconTemplate||e.uploadIconTemplate)}}function Gh(t,n){if(t&1&&(Q(0),x(1,Wh,1,1,"UploadIcon",38)(2,qh,2,1,"span",39),K()),t&2){let e=m(4);g(),f("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),g(),f("ngIf",e._uploadIconTemplate||e.uploadIconTemplate)}}function Yh(t,n){if(t&1&&x(0,Uh,1,1,"span",36)(1,Gh,3,2,"ng-container",9),t&2){let e=m(3);f("ngIf",e.uploadIcon),g(),f("ngIf",!e.uploadIcon)}}function Xh(t,n){if(t&1&&R(0,"span",43),t&2){let e=m(4);f("ngClass",e.chooseIcon)}}function Zh(t,n){t&1&&R(0,"PlusIcon"),t&2&&S("data-pc-section","uploadicon")}function Jh(t,n){}function ef(t,n){t&1&&x(0,Jh,0,0,"ng-template")}function tf(t,n){if(t&1&&(Q(0),x(1,Zh,1,1,"PlusIcon",9)(2,ef,1,0,null,11),K()),t&2){let e=m(4);g(),f("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),g(),f("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function nf(t,n){if(t&1&&x(0,Xh,1,1,"span",42)(1,tf,3,2,"ng-container",9),t&2){let e=m(3);f("ngIf",e.chooseIcon),g(),f("ngIf",!e.chooseIcon)}}function of(t,n){if(t&1&&x(0,Yh,2,2)(1,nf,2,2),t&2){let e=m(2);Ie(e.hasFiles()&&!e.auto?0:1)}}function sf(t,n){if(t&1&&(C(0,"span"),ae(1),T()),t&2){let e=m(3);j(e.cx("filelabel")),g(),St(" ",e.basicFileChosenLabel()," ")}}function af(t,n){t&1&&W(0)}function rf(t,n){if(t&1&&x(0,af,1,0,"ng-container",10),t&2){let e=m(3);f("ngTemplateOutlet",e.fileLabelTemplate||e._fileLabelTemplate)("ngTemplateOutletContext",ne(2,nh,e.files))}}function lf(t,n){if(t&1&&x(0,sf,2,3,"span",44)(1,rf,1,4,"ng-container"),t&2){let e=m(2);Ie(!e.fileLabelTemplate&&!e._fileLabelTemplate?0:1)}}function cf(t,n){if(t&1){let e=q();C(0,"div",21),ro(1,jh,1,2,"p-message",14,ao),C(3,"p-button",34),$("onClick",function(){F(e);let o=m();return E(o.onBasicUploaderClick())})("keydown",function(o){F(e);let s=m();return E(s.onBasicKeydown(o))}),x(4,of,2,1,"ng-template",null,2,ue),C(6,"input",35,3),$("change",function(o){F(e);let s=m();return E(s.onFileSelect(o))})("focus",function(){F(e);let o=m();return E(o.onFocus())})("blur",function(){F(e);let o=m();return E(o.onBlur())}),T()(),x(8,lf,2,1),T()}if(t&2){let e=m();j(e.styleClass),f("ngClass","p-fileupload p-fileupload-basic p-component"),S("data-pc-name","fileupload"),g(),lo(e.msgs),g(2),Be(e.style),f("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled)("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),g(3),f("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled),S("aria-label",e.browseFilesLabel)("data-pc-section","input"),g(2),Ie(e.auto?-1:8)}}var pf=({dt:t})=>`
.p-fileupload input[type="file"] {
    display: none;
}

.p-fileupload-advanced {
    border: 1px solid ${t("fileupload.border.color")};
    border-radius: ${t("fileupload.border.radius")};
    background: ${t("fileupload.background")};
    color: ${t("fileupload.color")};
}

.p-fileupload-header {
    display: flex;
    align-items: center;
    padding: ${t("fileupload.header.padding")};
    background: ${t("fileupload.header.background")};
    color: ${t("fileupload.header.color")};
    border-style: solid;
    border-width: ${t("fileupload.header.border.width")};
    border-color: ${t("fileupload.header.border.color")};
    border-radius: ${t("fileupload.header.border.radius")};
    gap: ${t("fileupload.header.gap")};
}

.p-fileupload-content {
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: ${t("fileupload.content.gap")};
    transition: border-color ${t("fileupload.transition.duration")};
    padding: ${t("fileupload.content.padding")};
}

.p-fileupload-content .p-progressbar {
    width: 100%;
    height: ${t("fileupload.progressbar.height")};
}

.p-fileupload-file-list {
    display: flex;
    flex-direction: column;
    gap: ${t("fileupload.filelist.gap")};
}

.p-fileupload-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: ${t("fileupload.file.padding")};
    border-bottom: 1px solid ${t("fileupload.file.border.color")};
    gap: ${t("fileupload.file.gap")};
}

.p-fileupload-file:last-child {
    border-bottom: 0;
}

.p-fileupload-file-info {
    display: flex;
    flex-direction: column;
    gap: ${t("fileupload.file.info.gap")};
}

.p-fileupload-file-thumbnail {
    flex-shrink: 0;
}

.p-fileupload-file-actions {
    margin-left: auto;
}

.p-fileupload-highlight {
    border: 1px dashed ${t("fileupload.content.highlight.border.color")};
}

.p-fileupload-advanced .p-message {
    margin-top: 0;
}

.p-fileupload-basic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: ${t("fileupload.basic.gap")};
}
`,df={root:({instance:t})=>`p-fileupload p-fileupload-${t.mode} p-component`,header:"p-fileupload-header",pcChooseButton:"p-fileupload-choose-button",pcUploadButton:"p-fileupload-upload-button",pcCancelButton:"p-fileupload-cancel-button",content:"p-fileupload-content",fileList:"p-fileupload-file-list",file:"p-fileupload-file",fileThumbnail:"p-fileupload-file-thumbnail",fileInfo:"p-fileupload-file-info",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",pcFileBadge:"p-fileupload-file-badge",fileActions:"p-fileupload-file-actions",pcFileRemoveButton:"p-fileupload-file-remove-button"},Fa=(()=>{class t extends _e{name="fileupload";theme=pf;classes=df;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var uf=(()=>{class t extends fe{name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;chooseButtonProps;uploadButtonProps={severity:"secondary"};cancelButtonProps={severity:"secondary"};onBeforeUpload=new N;onSend=new N;onUpload=new N;onError=new N;onClear=new N;onRemove=new N;onSelect=new N;onProgress=new N;uploadHandler=new N;onImageError=new N;onRemoveUploadedFile=new N;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;fileLabelTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;advancedFileInput;basicFileInput;content;set files(e){this._files=[];for(let i=0;i<e.length;i++){let o=e[i];this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[i]))),this._files.push(e[i]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];sanitizer=oe(Ns);zone=oe(Dt);http=oe(Hs);_componentStyle=oe(Fa);ngOnInit(){super.ngOnInit(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){super.ngAfterViewInit(),Li(this.platformId)&&this.mode==="advanced"&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}_headerTemplate;_contentTemplate;_toolbarTemplate;_chooseIconTemplate;_uploadIconTemplate;_cancelIconTemplate;_emptyTemplate;_fileTemplate;_fileLabelTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"file":this._fileTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"toolbar":this._toolbarTemplate=e.template;break;case"chooseicon":this._chooseIconTemplate=e.template;break;case"uploadicon":this._uploadIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"filelabel":this._fileLabelTemplate=e.template;break;default:this._fileTemplate=e.template;break}})}basicFileChosenLabel(){return this.auto?this.chooseButtonLabel:this.hasFiles()?this.files&&this.files.length===1?this.files[0].name:this.config.getTranslation("fileChosenMessage")?.replace("{0}",this.files.length):this.config.getTranslation("noFileChosenMessage")||""}getTranslation(e){return this.config.getTranslation(e)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(e){if(e.type!=="drop"&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let o=0;o<i.length;o++){let s=i[o];this.isFileSelected(s)||this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(i[o]))),this.files.push(i[o]))}this.onSelect.emit({originalEvent:e,files:i,currentFiles:this.files}),this.checkFileLimit(i),this.hasFiles()&&this.auto&&(this.mode!=="advanced"||!this.isFileLimitExceeded())&&this.upload(),e.type!=="drop"&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let i of this.files)if(i.name+i.type+i.size===e.name+e.type+e.size)return!0;return!1}isIE11(){if(Li(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(e){if(this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(e)){let i=`${this.invalidFileTypeMessageSummary.replace("{0}",e.name)} ${this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}`;return this.msgs.push({severity:"error",text:i}),!1}if(this.maxFileSize&&e.size>this.maxFileSize){let i=`${this.invalidFileSizeMessageSummary.replace("{0}",e.name)} ${this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}`;return this.msgs.push({severity:"error",text:i}),!1}return!0}isFileTypeValid(e){let i=this.accept?.split(",").map(o=>o.trim());for(let o of i)if(this.isWildcard(o)?this.getTypeClass(e.type)===this.getTypeClass(o):e.type==o||this.getFileExtension(e).toLowerCase()===o.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return e.indexOf("*")!==-1}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}uploader(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i<this.files.length;i++)e.append(this.name,this.files[i],this.files[i].name);this.http.request(this.method,this.url,{body:e,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(i=>{switch(i.type){case ln.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case ln.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case ln.UploadProgress:{i.loaded&&(this.progress=Math.round(i.loaded*100/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress});break}}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.msgs=[],this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit(this.files)}removeUploadedFile(e){let i=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:i,files:this.uploadedFiles})}isFileLimitExceeded(){let i=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=i&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<i}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(e){this.msgs??=[];let i=this.msgs.length>0&&this.fileLimit&&this.fileLimit<e.length;if(this.isFileLimitExceeded()||i){let o=`${this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}`;this.msgs.push({severity:"error",text:o})}else this.msgs=this.msgs.filter(o=>!o.text.includes(this.invalidFileLimitMessageSummary))}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(pn(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||po(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){po(this.content?.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&i.length===1)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){let s=this.getTranslation(Ue.FILE_SIZE_TYPES);if(e===0)return`0 ${s[0]}`;let a=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,a)).toFixed(3)} ${s[a]}`}upload(){this.hasFiles()&&this.uploader()}onBasicUploaderClick(){this.basicFileInput?.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault();break}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Ue.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Ue.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Ue.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(Ue.ARIA)[Ue.BROWSE_FILES]}get pendingLabel(){return this.config.getTranslation(Ue.PENDING)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-fileupload"],["p-fileUpload"]],contentQueries:function(i,o,s){if(i&1&&(P(s,Wu,4),P(s,Qu,4),P(s,Ma,4),P(s,Ku,4),P(s,qu,4),P(s,Gu,4),P(s,Yu,4),P(s,Xu,4),P(s,Zu,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.fileTemplate=a.first),k(a=O())&&(o.headerTemplate=a.first),k(a=O())&&(o.contentTemplate=a.first),k(a=O())&&(o.toolbarTemplate=a.first),k(a=O())&&(o.chooseIconTemplate=a.first),k(a=O())&&(o.fileLabelTemplate=a.first),k(a=O())&&(o.uploadIconTemplate=a.first),k(a=O())&&(o.cancelIconTemplate=a.first),k(a=O())&&(o.emptyTemplate=a.first),k(a=O())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(de(Ju,5),de(eh,5),de(Ma,5)),i&2){let s;k(s=O())&&(o.advancedFileInput=s.first),k(s=O())&&(o.basicFileInput=s.first),k(s=O())&&(o.content=s.first)}},inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",A],accept:"accept",disabled:[2,"disabled","disabled",A],auto:[2,"auto","auto",A],withCredentials:[2,"withCredentials","withCredentials",A],maxFileSize:[2,"maxFileSize","maxFileSize",Me],invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:[2,"previewWidth","previewWidth",Me],chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:[2,"showUploadButton","showUploadButton",A],showCancelButton:[2,"showCancelButton","showCancelButton",A],mode:"mode",headers:"headers",customUpload:[2,"customUpload","customUpload",A],fileLimit:[2,"fileLimit","fileLimit",e=>Me(e,null)],uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",chooseButtonProps:"chooseButtonProps",uploadButtonProps:"uploadButtonProps",cancelButtonProps:"cancelButtonProps",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError",onRemoveUploadedFile:"onRemoveUploadedFile"},features:[ge([Fa]),Ee,J],decls:2,vars:2,consts:[["advancedfileinput",""],["content",""],["icon",""],["basicfileinput",""],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[3,"ngClass","ngStyle"],["type","file",3,"change","multiple","accept","disabled"],[1,"p-fileupload-header"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],[3,"value","showValue",4,"ngIf"],[3,"severity","text"],["class","p-fileupload-file-list",4,"ngIf"],[3,"focus","blur","onClick","keydown.enter","styleClass","disabled","label","buttonProps"],[3,"class",4,"ngIf"],[3,"label","disabled","styleClass","buttonProps","onClick",4,"ngIf"],[3,"onClick","label","disabled","styleClass","buttonProps"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-file-list"],[1,"p-fileupload-file"],["ngFor","",3,"ngForOf","ngForTemplate"],["class","p-fileupload-file",4,"ngFor","ngForOf"],["class","p-fileupload-file-thumbnail",3,"src","width","error",4,"ngIf"],[1,"p-fileupload-file-info"],[1,"p-fileupload-file-name"],[1,"p-fileupload-file-size"],[1,"p-fileupload-file-actions"],["text","","rounded","","severity","danger",3,"onClick","disabled","styleClass"],[1,"p-fileupload-file-thumbnail",3,"error","src","width"],[3,"onClick","keydown","styleClass","disabled","label","buttonProps"],["type","file",3,"change","focus","blur","accept","multiple","disabled"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],[3,"class"]],template:function(i,o){i&1&&x(0,Nh,15,39,"div",4)(1,cf,9,16,"div",5),i&2&&(f("ngIf",o.mode==="advanced"),g(),f("ngIf",o.mode==="basic"))},dependencies:[re,Ce,li,Le,Ve,je,aa,yo,bo,na,xa,_t,H],encapsulation:2,changeDetection:0})}return t})(),iC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[uf,H,H]})}return t})();var hf=["handle"],ff=["input"],mf=t=>({checked:t});function gf(t,n){t&1&&W(0)}function _f(t,n){if(t&1&&x(0,gf,1,0,"ng-container",4),t&2){let e=m();f("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",ne(2,mf,e.checked()))}}var bf=({dt:t})=>`
.p-toggleswitch {
    display: inline-block;
    width: ${t("toggleswitch.width")};
    height: ${t("toggleswitch.height")};
}

.p-toggleswitch-input {
    cursor: pointer;
    appearance: none;
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    z-index: 1;
    outline: 0 none;
    border-radius: ${t("toggleswitch.border.radius")};
}

.p-toggleswitch-slider {
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-width: ${t("toggleswitch.border.width")};
    border-style: solid;
    border-color: ${t("toggleswitch.border.color")};
    background: ${t("toggleswitch.background")};
    transition: background ${t("toggleswitch.transition.duration")}, color ${t("toggleswitch.transition.duration")}, border-color ${t("toggleswitch.transition.duration")}, outline-color ${t("toggleswitch.transition.duration")}, box-shadow ${t("toggleswitch.transition.duration")};
    border-radius: ${t("toggleswitch.border.radius")};
    outline-color: transparent;
    box-shadow: ${t("toggleswitch.shadow")};
}

.p-toggleswitch-handle {
    position: absolute;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: ${t("toggleswitch.handle.background")};
    color: ${t("toggleswitch.handle.color")};
    width: ${t("toggleswitch.handle.size")};
    height: ${t("toggleswitch.handle.size")};
    inset-inline-start: ${t("toggleswitch.gap")};
    margin-block-start: calc(-1 * calc(${t("toggleswitch.handle.size")} / 2));
    border-radius: ${t("toggleswitch.handle.border.radius")};
    transition: background ${t("toggleswitch.transition.duration")}, color ${t("toggleswitch.transition.duration")}, inset-inline-start ${t("toggleswitch.slide.duration")}, box-shadow ${t("toggleswitch.slide.duration")};
}

.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
    background: ${t("toggleswitch.checked.background")};
    border-color: ${t("toggleswitch.checked.border.color")};
}

.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
    background: ${t("toggleswitch.handle.checked.background")};
    color: ${t("toggleswitch.handle.checked.color")};
    inset-inline-start: calc(${t("toggleswitch.width")} - calc(${t("toggleswitch.handle.size")} + ${t("toggleswitch.gap")}));
}

.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
    background: ${t("toggleswitch.hover.background")};
    border-color: ${t("toggleswitch.hover.border.color")};
}

.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
    background: ${t("toggleswitch.handle.hover.background")};
    color: ${t("toggleswitch.handle.hover.color")};
}

.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
    background: ${t("toggleswitch.checked.hover.background")};
    border-color: ${t("toggleswitch.checked.hover.border.color")};
}

.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
    background: ${t("toggleswitch.handle.checked.hover.background")};
    color: ${t("toggleswitch.handle.checked.hover.color")};
}

.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
    box-shadow: ${t("toggleswitch.focus.ring.shadow")};
    outline: ${t("toggleswitch.focus.ring.width")} ${t("toggleswitch.focus.ring.style")} ${t("toggleswitch.focus.ring.color")};
    outline-offset: ${t("toggleswitch.focus.ring.offset")};
}

.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
    border-color: ${t("toggleswitch.invalid.border.color")};
}

.p-toggleswitch.p-disabled {
    opacity: 1;
}

.p-toggleswitch.p-disabled .p-toggleswitch-slider {
    background: ${t("toggleswitch.disabled.background")};
}

.p-toggleswitch.p-disabled .p-toggleswitch-handle {
    background: ${t("toggleswitch.handle.disabled.background")};
}

/* For PrimeNG */

p-toggleSwitch.ng-invalid.ng-dirty > .p-toggleswitch > .p-toggleswitch-slider,
p-toggle-switch.ng-invalid.ng-dirty > .p-toggleswitch > .p-toggleswitch-slider,
p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch > .p-toggleswitch-slider {
    border-color: ${t("toggleswitch.invalid.border.color")};
}`,yf={root:{position:"relative"}},xf={root:({instance:t})=>({"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.disabled,"p-invalid":t.invalid}),input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"},Ea=(()=>{class t extends _e{name="toggleswitch";theme=bf;classes=xf;inlineStyles=yf;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var vf={provide:ui,useExisting:ai(()=>La),multi:!0},La=(()=>{class t extends fe{style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;autofocus;onChange=new N;input;handleTemplate;_handleTemplate;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};_componentStyle=oe(Ea);templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"handle":this._handleTemplate=e.template;break;default:this._handleTemplate=e.template;break}})}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,s){if(i&1&&(P(s,hf,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.handleTemplate=a.first),k(a=O())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&de(ff,5),i&2){let s;k(s=O())&&(o.input=s.first)}},inputs:{style:"style",styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",name:"name",disabled:[2,"disabled","disabled",A],readonly:[2,"readonly","readonly",A],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",A]},outputs:{onChange:"onChange"},features:[ge([vf,Ea]),Ee,J],decls:6,vars:23,consts:[["input",""],[3,"click","ngClass","ngStyle"],["type","checkbox","role","switch",3,"focus","blur","ngClass","checked","disabled","pAutoFocus"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){if(i&1){let s=q();C(0,"div",1),$("click",function(r){return F(s),E(o.onClick(r))}),C(1,"input",2,0),$("focus",function(){return F(s),E(o.onFocus())})("blur",function(){return F(s),E(o.onBlur())}),T(),C(3,"span",3)(4,"div",3),x(5,_f,1,4,"ng-container"),T()()()}i&2&&(Be(o.sx("root")),j(o.styleClass),f("ngClass",o.cx("root"))("ngStyle",o.style),S("data-pc-name","toggleswitch")("data-pc-section","root"),g(),f("ngClass",o.cx("input"))("checked",o.checked())("disabled",o.disabled)("pAutoFocus",o.autofocus),S("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),g(2),f("ngClass",o.cx("slider")),S("data-pc-section","slider"),g(),f("ngClass",o.cx("handle")),g(),Ie(o.handleTemplate||o._handleTemplate?5:-1))},dependencies:[re,Ce,Ve,je,fi,H],encapsulation:2,changeDetection:0})}return t})(),vC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[La,H,H]})}return t})();var Cf=["*"];function wf(t,n){if(t&1&&(C(0,"span",3),ae(1),T()),t&2){let e=m();g(),Oe(e.label)}}function Tf(t,n){if(t&1&&R(0,"span",5),t&2){let e=m(2);j(e.icon),f("ngClass","p-avatar-icon")}}function If(t,n){if(t&1&&x(0,Tf,1,3,"span",4),t&2){let e=m(),i=Ne(5);f("ngIf",e.icon)("ngIfElse",i)}}function Sf(t,n){if(t&1){let e=q();C(0,"img",7),$("error",function(o){F(e);let s=m(2);return E(s.imageError(o))}),T()}if(t&2){let e=m(2);f("src",e.image,It),S("aria-label",e.ariaLabel)}}function kf(t,n){if(t&1&&x(0,Sf,1,2,"img",6),t&2){let e=m();f("ngIf",e.image)}}var Of=({dt:t})=>`
.p-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: ${t("avatar.width")};
    height: ${t("avatar.height")};
    font-size: ${t("avatar.font.size")};
    color: ${t("avatar.color")};
    background: ${t("avatar.background")};
    border-radius: ${t("avatar.border.radius")};
}

.p-avatar-image {
    background: transparent;
}

.p-avatar-circle {
    border-radius: 50%;
}

.p-avatar-circle img {
    border-radius: 50%;
}

.p-avatar-icon {
    font-size: ${t("avatar.icon.size")};
    width: ${t("avatar.icon.size")};
    height: ${t("avatar.icon.size")};
}

.p-avatar img {
    width: 100%;
    height: 100%;
}

.p-avatar-lg {
    width: ${t("avatar.lg.width")};
    height: ${t("avatar.lg.width")};
    font-size: ${t("avatar.lg.font.size")};
}

.p-avatar-lg .p-avatar-icon {
    font-size: ${t("avatar.lg.icon.size")};
    width: ${t("avatar.lg.icon.size")};
    height: ${t("avatar.lg.icon.size")};
}

.p-avatar-xl {
    width: ${t("avatar.xl.width")};
    height: ${t("avatar.xl.width")};
    font-size: ${t("avatar.xl.font.size")};
}

.p-avatar-xl .p-avatar-icon {
    font-size: ${t("avatar.xl.font.size")};
    width: ${t("avatar.xl.icon.size")};
    height: ${t("avatar.xl.icon.size")};
}

.p-avatar-group {
    display: flex;
    align-items: center;
}

.p-avatar-group .p-avatar + .p-avatar {
    margin-inline-start: ${t("avatar.group.offset")};
}

.p-avatar-group .p-avatar {
    border: 2px solid ${t("avatar.group.border.color")};
}

.p-avatar-group .p-avatar-lg + .p-avatar-lg {
    margin-inline-start: ${t("avatar.lg.group.offset")};
}

.p-avatar-group .p-avatar-xl + .p-avatar-xl {
    margin-inline-start: ${t("avatar.xl.group.offset")};
}
`,Mf={root:({props:t})=>["p-avatar p-component",{"p-avatar-image":t.image!=null,"p-avatar-circle":t.shape==="circle","p-avatar-lg":t.size==="large","p-avatar-xl":t.size==="xlarge"}],label:"p-avatar-label",icon:"p-avatar-icon"},Va=(()=>{class t extends _e{name="avatar";theme=Of;classes=Mf;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Ff=(()=>{class t extends fe{label;icon;image;size="normal";shape="square";style;styleClass;ariaLabel;ariaLabelledBy;onImageError=new N;_componentStyle=oe(Va);imageError(e){this.onImageError.emit(e)}get hostClass(){return this.styleClass}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-avatar"]],hostVars:19,hostBindings:function(i,o){i&2&&(S("data-pc-name","avatar")("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),Be(o.style),j(o.hostClass),ri("p-avatar",!0)("p-component",!0)("p-avatar-circle",o.shape==="circle")("p-avatar-lg",o.size==="large")("p-avatar-xl",o.size==="xlarge")("p-avatar-image",o.image!=null))},inputs:{label:"label",icon:"icon",image:"image",size:"size",shape:"shape",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onImageError:"onImageError"},features:[ge([Va]),J],ngContentSelectors:Cf,decls:6,vars:2,consts:[["iconTemplate",""],["imageTemplate",""],["class","p-avatar-text",4,"ngIf","ngIfElse"],[1,"p-avatar-text"],[3,"class","ngClass",4,"ngIf","ngIfElse"],[3,"ngClass"],[3,"src","error",4,"ngIf"],[3,"error","src"]],template:function(i,o){if(i&1&&(Xe(),He(0),x(1,wf,2,1,"span",2)(2,If,1,2,"ng-template",null,0,ue)(4,kf,1,1,"ng-template",null,1,ue)),i&2){let s=Ne(3);g(),f("ngIf",o.label)("ngIfElse",s)}},dependencies:[re,Ce,Le,H],encapsulation:2,changeDetection:0})}return t})(),AC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Ff,H,H]})}return t})();var Pi=t=>({height:t}),Ef=(t,n,e)=>({"p-multiselect-option-selected":t,"p-disabled":n,"p-focus":e}),Pa=t=>({$implicit:t}),Lf=(t,n)=>({checked:t,class:n});function Vf(t,n){}function Df(t,n){t&1&&x(0,Vf,0,0,"ng-template")}function Pf(t,n){if(t&1&&x(0,Df,1,0,null,4),t&2){let e=n.class,i=m(2);f("ngTemplateOutlet",i.itemCheckboxIconTemplate)("ngTemplateOutletContext",Ae(2,Lf,i.selected,e))}}function Af(t,n){t&1&&(Q(0),x(1,Pf,1,5,"ng-template",null,0,ue),K())}function zf(t,n){if(t&1&&(C(0,"span"),ae(1),T()),t&2){let e,i=m();g(),Oe((e=i.label)!==null&&e!==void 0?e:"empty")}}function $f(t,n){t&1&&W(0)}var Rf=["item"],Bf=["group"],Hf=["loader"],Nf=["header"],jf=["filter"],Uf=["footer"],Wf=["emptyfilter"],Qf=["empty"],Kf=["selecteditems"],qf=["checkicon"],Gf=["loadingicon"],Yf=["filtericon"],Xf=["removetokenicon"],Zf=["chipicon"],Jf=["clearicon"],em=["dropdownicon"],tm=["itemcheckboxicon"],im=["headercheckboxicon"],nm=["overlay"],om=["filterInput"],sm=["focusInput"],am=["items"],rm=["scroller"],lm=["lastHiddenFocusableEl"],cm=["firstHiddenFocusableEl"],pm=["headerCheckbox"],dm=[[["p-header"]],[["p-footer"]]],um=["p-header","p-footer"],hm=()=>({class:"p-multiselect-chip-icon"}),fm=(t,n)=>({$implicit:t,removeChip:n}),Aa=t=>({options:t}),mm=(t,n,e)=>({checked:t,partialSelected:n,class:e}),za=(t,n)=>({$implicit:t,options:n}),gm=()=>({});function _m(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(2);g(),Oe(e.label()||"empty")}}function bm(t,n){if(t&1&&ae(0),t&2){let e=m(3);St(" ",e.getSelectedItemsLabel()," ")}}function ym(t,n){t&1&&W(0)}function xm(t,n){if(t&1){let e=q();C(0,"span",28),$("click",function(o){F(e);let s=m(4).$implicit,a=m(4);return E(a.removeOption(s,o))}),x(1,ym,1,0,"ng-container",29),T()}if(t&2){let e=m(8);S("data-pc-section","clearicon")("aria-hidden",!0),g(),f("ngTemplateOutlet",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)("ngTemplateOutletContext",Ei(4,hm))}}function vm(t,n){if(t&1&&(Q(0),x(1,xm,2,5,"span",27),K()),t&2){let e=m(7);g(),f("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function Cm(t,n){if(t&1&&x(0,vm,2,1,"ng-container",20),t&2){let e=m(6);f("ngIf",!e.disabled&&!e.readonly)}}function wm(t,n){t&1&&(Q(0),x(1,Cm,1,1,"ng-template",null,5,ue),K())}function Tm(t,n){if(t&1){let e=q();C(0,"div",24,4)(2,"p-chip",26),$("onRemove",function(o){let s=F(e).$implicit,a=m(4);return E(a.removeOption(s,o))}),x(3,wm,3,0,"ng-container",20),T()()}if(t&2){let e=n.$implicit,i=m(4);g(2),f("label",i.getLabelByValue(e))("removable",!i.disabled&&!i.readonly)("removeIcon",i.chipIcon),g(),f("ngIf",i.chipIconTemplate||i._chipIconTemplate||i.removeTokenIconTemplate||i._removeTokenIconTemplate)}}function Im(t,n){if(t&1&&x(0,Tm,4,4,"div",25),t&2){let e=m(3);f("ngForOf",e.chipSelectedItems())}}function Sm(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(3);g(),Oe(e.placeholder()||e.defaultLabel||"empty")}}function km(t,n){if(t&1&&(Q(0),x(1,bm,1,1)(2,Im,1,1,"div",24)(3,Sm,2,1,"ng-container",20),K()),t&2){let e=m(2);g(),Ie(e.chipSelectedItems()&&e.chipSelectedItems().length===e.maxSelectedLabels?1:2),g(2),f("ngIf",!e.modelValue()||e.modelValue().length===0)}}function Om(t,n){if(t&1&&(Q(0),x(1,_m,2,1,"ng-container",20)(2,km,4,2,"ng-container",20),K()),t&2){let e=m();g(),f("ngIf",e.display==="comma"),g(),f("ngIf",e.display==="chip")}}function Mm(t,n){t&1&&W(0)}function Fm(t,n){if(t&1&&(Q(0),ae(1),K()),t&2){let e=m(2);g(),Oe(e.placeholder()||e.defaultLabel||"empty")}}function Em(t,n){if(t&1&&(Q(0),x(1,Mm,1,0,"ng-container",29)(2,Fm,2,1,"ng-container",20),K()),t&2){let e=m();g(),f("ngTemplateOutlet",e.selectedItemsTemplate||e._selectedItemsTemplate)("ngTemplateOutletContext",Ae(3,fm,e.selectedOptions,e.removeOption.bind(e))),g(),f("ngIf",!e.modelValue()||e.modelValue().length===0)}}function Lm(t,n){if(t&1){let e=q();C(0,"TimesIcon",31),$("click",function(o){F(e);let s=m(2);return E(s.clear(o))}),T()}t&2&&S("data-pc-section","clearicon")("aria-hidden",!0)}function Vm(t,n){}function Dm(t,n){t&1&&x(0,Vm,0,0,"ng-template")}function Pm(t,n){if(t&1){let e=q();C(0,"span",31),$("click",function(o){F(e);let s=m(2);return E(s.clear(o))}),x(1,Dm,1,0,null,32),T()}if(t&2){let e=m(2);S("data-pc-section","clearicon")("aria-hidden",!0),g(),f("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Am(t,n){if(t&1&&(Q(0),x(1,Lm,1,2,"TimesIcon",30)(2,Pm,2,3,"span",30),K()),t&2){let e=m();g(),f("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),f("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function zm(t,n){t&1&&W(0)}function $m(t,n){if(t&1&&(Q(0),x(1,zm,1,0,"ng-container",32),K()),t&2){let e=m(2);g(),f("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Rm(t,n){if(t&1&&R(0,"span",35),t&2){let e=m(3);f("ngClass","p-multiselect-loading-icon pi-spin "+e.loadingIcon)}}function Bm(t,n){t&1&&R(0,"span",36),t&2&&j("p-multiselect-loading-icon pi pi-spinner pi-spin")}function Hm(t,n){if(t&1&&(Q(0),x(1,Rm,1,1,"span",33)(2,Bm,1,2,"span",34),K()),t&2){let e=m(2);g(),f("ngIf",e.loadingIcon),g(),f("ngIf",!e.loadingIcon)}}function Nm(t,n){if(t&1&&(Q(0),x(1,$m,2,1,"ng-container",20)(2,Hm,3,2,"ng-container",20),K()),t&2){let e=m();g(),f("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),g(),f("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function jm(t,n){if(t&1&&R(0,"span",40),t&2){let e=m(3);f("ngClass",e.dropdownIcon),S("data-pc-section","triggericon")("aria-hidden",!0)}}function Um(t,n){t&1&&R(0,"ChevronDownIcon",41),t&2&&(f("styleClass","p-multiselect-dropdown-icon"),S("data-pc-section","triggericon")("aria-hidden",!0))}function Wm(t,n){if(t&1&&(Q(0),x(1,jm,1,3,"span",38)(2,Um,1,3,"ChevronDownIcon",39),K()),t&2){let e=m(2);g(),f("ngIf",e.dropdownIcon),g(),f("ngIf",!e.dropdownIcon)}}function Qm(t,n){}function Km(t,n){t&1&&x(0,Qm,0,0,"ng-template")}function qm(t,n){if(t&1&&(C(0,"span",42),x(1,Km,1,0,null,32),T()),t&2){let e=m(2);S("data-pc-section","triggericon")("aria-hidden",!0),g(),f("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Gm(t,n){if(t&1&&x(0,Wm,3,2,"ng-container",20)(1,qm,2,3,"span",37),t&2){let e=m();f("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),f("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Ym(t,n){t&1&&W(0)}function Xm(t,n){t&1&&W(0)}function Zm(t,n){if(t&1&&(Q(0),x(1,Xm,1,0,"ng-container",29),K()),t&2){let e=m(3);g(),f("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",ne(2,Aa,e.filterOptions))}}function Jm(t,n){if(t&1&&R(0,"CheckIcon",41),t&2){let e=m().class;f("styleClass",e),S("data-pc-section","icon")}}function eg(t,n){}function tg(t,n){t&1&&x(0,eg,0,0,"ng-template")}function ig(t,n){if(t&1&&x(0,Jm,1,2,"CheckIcon",39)(1,tg,1,0,null,29),t&2){let e=n.class,i=m(5);f("ngIf",!i.headerCheckboxIconTemplate&&!i._headerCheckboxIconTemplate&&i.allSelected()),g(),f("ngTemplateOutlet",i.headerCheckboxIconTemplate||i._headerCheckboxIconTemplate)("ngTemplateOutletContext",co(3,mm,i.allSelected(),i.partialSelected(),e))}}function ng(t,n){if(t&1){let e=q();C(0,"p-checkbox",51,10),$("onChange",function(o){F(e);let s=m(4);return E(s.onToggleAll(o))}),x(2,ig,2,7,"ng-template",null,11,ue),T()}if(t&2){let e=m(4);f("ngModel",e.allSelected())("ariaLabel",e.toggleAllAriaLabel)("binary",!0)("variant",e.variant)("disabled",e.disabled)}}function og(t,n){t&1&&R(0,"SearchIcon",41),t&2&&f("styleClass","p-multiselect-filter-icon")}function sg(t,n){}function ag(t,n){t&1&&x(0,sg,0,0,"ng-template")}function rg(t,n){if(t&1&&(C(0,"span",55),x(1,ag,1,0,null,32),T()),t&2){let e=m(5);g(),f("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function lg(t,n){if(t&1){let e=q();C(0,"div",52)(1,"p-iconfield")(2,"input",53,12),$("input",function(o){F(e);let s=m(4);return E(s.onFilterInputChange(o))})("keydown",function(o){F(e);let s=m(4);return E(s.onFilterKeyDown(o))})("click",function(o){F(e);let s=m(4);return E(s.onInputClick(o))})("blur",function(o){F(e);let s=m(4);return E(s.onFilterBlur(o))}),T(),C(4,"p-inputicon"),x(5,og,1,1,"SearchIcon",39)(6,rg,2,1,"span",54),T()()()}if(t&2){let e=m(4);g(2),f("variant",e.variant)("value",e._filterValue()||"")("disabled",e.disabled),S("autocomplete",e.autocomplete)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),g(3),f("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),g(),f("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function cg(t,n){if(t&1&&x(0,ng,4,5,"p-checkbox",49)(1,lg,7,10,"div",50),t&2){let e=m(3);f("ngIf",e.showToggleAll&&!e.selectionLimit),g(),f("ngIf",e.filter)}}function pg(t,n){if(t&1&&(C(0,"div",48),He(1),x(2,Zm,2,4,"ng-container",22)(3,cg,2,2,"ng-template",null,9,ue),T()),t&2){let e=Ne(4),i=m(2);g(2),f("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function dg(t,n){t&1&&W(0)}function ug(t,n){if(t&1&&x(0,dg,1,0,"ng-container",29),t&2){let e=n.$implicit,i=n.options;m(2);let o=Ne(9);f("ngTemplateOutlet",o)("ngTemplateOutletContext",Ae(2,za,e,i))}}function hg(t,n){t&1&&W(0)}function fg(t,n){if(t&1&&x(0,hg,1,0,"ng-container",29),t&2){let e=n.options,i=m(4);f("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",ne(2,Aa,e))}}function mg(t,n){t&1&&(Q(0),x(1,fg,1,4,"ng-template",null,14,ue),K())}function gg(t,n){if(t&1){let e=q();C(0,"p-scroller",56,13),$("onLazyLoad",function(o){F(e);let s=m(2);return E(s.onLazyLoad.emit(o))}),x(2,ug,1,5,"ng-template",null,3,ue)(4,mg,3,0,"ng-container",20),T()}if(t&2){let e=m(2);Be(ne(9,Pi,e.scrollHeight)),f("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),g(4),f("ngIf",e.loaderTemplate||e._loaderTemplate)}}function _g(t,n){t&1&&W(0)}function bg(t,n){if(t&1&&(Q(0),x(1,_g,1,0,"ng-container",29),K()),t&2){m();let e=Ne(9),i=m();g(),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Ae(3,za,i.visibleOptions(),Ei(2,gm)))}}function yg(t,n){if(t&1&&(C(0,"span"),ae(1),T()),t&2){let e=m(2).$implicit,i=m(3);g(),Oe(i.getOptionGroupLabel(e.optionGroup))}}function xg(t,n){t&1&&W(0)}function vg(t,n){if(t&1&&(Q(0),C(1,"li",60),x(2,yg,2,1,"span",20)(3,xg,1,0,"ng-container",29),T(),K()),t&2){let e=m(),i=e.$implicit,o=e.index,s=m().options,a=m(2);g(),f("ngStyle",ne(5,Pi,s.itemSize+"px")),S("id",a.id+"_"+a.getOptionIndex(o,s)),g(),f("ngIf",!a.groupTemplate),g(),f("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",ne(7,Pa,i.optionGroup))}}function Cg(t,n){if(t&1){let e=q();Q(0),C(1,"p-multiselect-item",61),$("onClick",function(o){F(e);let s=m().index,a=m().options,r=m(2);return E(r.onOptionSelect(o,!1,r.getOptionIndex(s,a)))})("onMouseEnter",function(o){F(e);let s=m().index,a=m().options,r=m(2);return E(r.onOptionMouseEnter(o,r.getOptionIndex(s,a)))}),T(),K()}if(t&2){let e=m(),i=e.$implicit,o=e.index,s=m().options,a=m(2);g(),f("id",a.id+"_"+a.getOptionIndex(o,s))("option",i)("selected",a.isSelected(i))("label",a.getOptionLabel(i))("disabled",a.isOptionDisabled(i))("template",a.itemTemplate||a._itemTemplate)("checkIconTemplate",a.checkIconTemplate||a._checkIconTemplate)("itemCheckboxIconTemplate",a.itemCheckboxIconTemplate||a._itemCheckboxIconTemplate)("itemSize",s.itemSize)("focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,s)))("ariaSetSize",a.ariaSetSize)("variant",a.variant)("highlightOnSelect",a.highlightOnSelect)}}function wg(t,n){if(t&1&&x(0,vg,4,9,"ng-container",20)(1,Cg,2,14,"ng-container",20),t&2){let e=n.$implicit,i=m(3);f("ngIf",i.isOptionGroup(e)),g(),f("ngIf",!i.isOptionGroup(e))}}function Tg(t,n){if(t&1&&ae(0),t&2){let e=m(4);St(" ",e.emptyFilterMessageLabel," ")}}function Ig(t,n){t&1&&W(0)}function Sg(t,n){if(t&1&&x(0,Ig,1,0,"ng-container",32),t&2){let e=m(4);f("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyFilterTemplate)}}function kg(t,n){if(t&1&&(C(0,"li",62),x(1,Tg,1,1)(2,Sg,1,1,"ng-container"),T()),t&2){let e=m().options,i=m(2);f("ngStyle",ne(2,Pi,e.itemSize+"px")),g(),Ie(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function Og(t,n){if(t&1&&ae(0),t&2){let e=m(4);St(" ",e.emptyMessageLabel," ")}}function Mg(t,n){t&1&&W(0)}function Fg(t,n){if(t&1&&x(0,Mg,1,0,"ng-container",32),t&2){let e=m(4);f("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Eg(t,n){if(t&1&&(C(0,"li",62),x(1,Og,1,1)(2,Fg,1,1,"ng-container"),T()),t&2){let e=m().options,i=m(2);f("ngStyle",ne(2,Pi,e.itemSize+"px")),g(),Ie(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function Lg(t,n){if(t&1&&(C(0,"ul",57,15),x(2,wg,2,2,"ng-template",58)(3,kg,3,4,"li",59)(4,Eg,3,4,"li",59),T()),t&2){let e=n.$implicit,i=n.options,o=m(2);Be(i.contentStyle),f("ngClass",i.contentStyleClass),S("aria-label",o.listLabel),g(2),f("ngForOf",e),g(),f("ngIf",o.hasFilter()&&o.isEmpty()),g(),f("ngIf",!o.hasFilter()&&o.isEmpty())}}function Vg(t,n){t&1&&W(0)}function Dg(t,n){if(t&1&&(C(0,"div"),He(1,1),x(2,Vg,1,0,"ng-container",32),T()),t&2){let e=m(2);g(2),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Pg(t,n){if(t&1){let e=q();C(0,"div",43)(1,"span",44,6),$("focus",function(o){F(e);let s=m();return E(s.onFirstHiddenFocus(o))}),T(),x(3,Ym,1,0,"ng-container",32)(4,pg,5,2,"div",45),C(5,"div",46),x(6,gg,5,11,"p-scroller",47)(7,bg,2,6,"ng-container",20)(8,Lg,5,7,"ng-template",null,7,ue),T(),x(10,Dg,3,1,"div",20),C(11,"span",44,8),$("focus",function(o){F(e);let s=m();return E(s.onLastHiddenFocus(o))}),T()()}if(t&2){let e=m();j(e.panelStyleClass),f("ngClass","p-multiselect-overlay p-component")("ngStyle",e.panelStyle),S("id",e.id+"_list"),g(),S("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),g(2),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),f("ngIf",e.showHeader),g(),Ge("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),g(),f("ngIf",e.virtualScroll),g(),f("ngIf",!e.virtualScroll),g(3),f("ngIf",e.footerFacet||e.footerTemplate||e._footerTemplate),g(),S("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Ag=({dt:t})=>`
.p-multiselect {
    display: inline-flex;
    cursor: pointer;
    position: relative;
    user-select: none;
    background: ${t("multiselect.background")};
    border: 1px solid ${t("multiselect.border.color")};
    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")};
    border-radius: ${t("multiselect.border.radius")};
    outline-color: transparent;
    box-shadow: ${t("multiselect.shadow")};
}

.p-multiselect.ng-invalid.ng-dirty {
    border-color: ${t("multiselect.invalid.border.color")};
}

.p-multiselect:not(.p-disabled):hover {
    border-color: ${t("multiselect.hover.border.color")};
}

.p-multiselect:not(.p-disabled).p-focus {
    border-color: ${t("multiselect.focus.border.color")};
    box-shadow: ${t("multiselect.focus.ring.shadow")};
    outline: ${t("multiselect.focus.ring.width")} ${t("multiselect.focus.ring.style")} ${t("multiselect.focus.ring.color")};
    outline-offset: ${t("multiselect.focus.ring.offset")};
}

.p-multiselect.p-variant-filled {
    background: ${t("multiselect.filled.background")};
}

.p-multiselect.p-variant-filled:not(.p-disabled):hover {
    background: ${t("multiselect.filled.hover.background")};
}

.p-multiselect.p-variant-filled.p-focus {
    background: ${t("multiselect.filled.focus.background")};
}

.p-multiselect.p-disabled {
    opacity: 1;
    background: ${t("multiselect.disabled.background")};
}

.p-multiselect-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: ${t("multiselect.dropdown.color")};
    width: ${t("multiselect.dropdown.width")};
    border-start-end-radius: ${t("multiselect.border.radius")};
    border-end-end-radius: ${t("multiselect.border.radius")};
}

.p-multiselect-label-container {
    overflow: hidden;
    flex: 1 1 auto;
    cursor: pointer;
}

.p-multiselect-label {
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: ${t("multiselect.padding.y")} ${t("multiselect.padding.x")};
    color: ${t("multiselect.color")};
}

.p-multiselect-display-chip .p-multiselect-label {
    display: flex;
    align-items: center;
    gap: calc(dt('multiselect.padding.y') / 2);
}

.p-multiselect-label.p-placeholder {
    color: ${t("multiselect.placeholder.color")};
}

p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
    color: ${t("multiselect.invalid.placeholder.color")};
}

.p-multiselect.p-disabled .p-multiselect-label {
    color: ${t("multiselect.disabled.color")};
}

.p-multiselect-label-empty {
    overflow: hidden;
    visibility: hidden;
}

.p-multiselect .p-multiselect-overlay {
    min-width: 100%;
}

.p-multiselect-overlay {
    background: ${t("multiselect.overlay.background")};
    color: ${t("multiselect.overlay.color")};
    border: 1px solid ${t("multiselect.overlay.border.color")};
    border-radius: ${t("multiselect.overlay.border.radius")};
    box-shadow: ${t("multiselect.overlay.shadow")};
}

.p-multiselect-header {
    display: flex;
    align-items: center;
    padding: ${t("multiselect.list.header.padding")};
}

.p-multiselect-header .p-checkbox {
    margin-inline-end: ${t("multiselect.option.gap")};
}

.p-multiselect-filter-container {
    flex: 1 1 auto;
}

.p-multiselect-filter {
    width: 100%;
}

.p-multiselect-list-container {
    overflow: auto;
}

.p-multiselect-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    padding: ${t("multiselect.list.padding")};
    display: flex;
    flex-direction: column;
    gap: ${t("multiselect.list.gap")}
}

.p-multiselect-option {
    cursor: pointer;
    font-weight: normal;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: ${t("multiselect.option.gap")};
    padding: ${t("multiselect.option.padding")};
    border: 0 none;
    color: ${t("multiselect.option.color")};
    background: transparent;
    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")};
    border-radius: ${t("multiselect.option.border.radius")}
}

.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
    background: ${t("multiselect.option.focus.background")};
    color: ${t("multiselect.option.focus.color")};
}

.p-multiselect-option.p-multiselect-option-selected {
    background: ${t("multiselect.option.selected.background")};
    color: ${t("multiselect.option.selected.color")};
}

.p-multiselect-option.p-multiselect-option-selected.p-focus {
    background: ${t("multiselect.option.selected.focus.background")};
    color: ${t("multiselect.option.selected.focus.color")};
}

.p-multiselect-option-group {
    cursor: auto;
    margin: 0;
    padding: ${t("multiselect.option.group.padding")};
    background: ${t("multiselect.option.group.background")};
    color: ${t("multiselect.option.group.color")};
    font-weight: ${t("multiselect.option.group.font.weight")};
}

.p-multiselect-empty-message {
    padding: ${t("multiselect.empty.message.padding")};
}

.p-multiselect-label .p-chip {
    padding-top: calc(${t("multiselect.padding.y")} / 2);
    padding-bottom: calc(${t("multiselect.padding.y")} / 2);
    border-radius: ${t("multiselect.chip.border.radius")};
}

.p-multiselect-label:has(.p-chip) {
    padding: calc(${t("multiselect.padding.y")} / 2) calc(${t("multiselect.padding.x")} / 2);
}

.p-multiselect-fluid {
    display: flex;
}

.p-multiselect-sm .p-multiselect-label {
    font-size: ${t("multiselect.sm.font.size")};
    padding-block: ${t("multiselect.sm.padding.y")};
    padding-inline: ${t("multiselect.sm.padding.x")};
}

.p-multiselect-sm .p-multiselect-dropdown .p-icon {
    font-size: ${t("multiselect.sm.font.size")};
    width: ${t("multiselect.sm.font.size")};
    height: ${t("multiselect.sm.font.size")};
}

.p-multiselect-lg .p-multiselect-label {
    font-size: ${t("multiselect.lg.font.size")};
    padding-block: ${t("multiselect.lg.padding.y")};
    padding-inline: ${t("multiselect.lg.padding.x")};
}

.p-multiselect-lg .p-multiselect-dropdown .p-icon {
    font-size: ${t("multiselect.lg.font.size")};
    width: ${t("multiselect.lg.font.size")};
    height: ${t("multiselect.lg.font.size")};
}

.p-multiselect-clear-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: ${t("multiselect.clear.icon.color")};
}`,zg={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},$g={root:({instance:t})=>({"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?t.variant==="filled":t.config.inputStyle==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size==="small","p-multiselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t,option:n,index:e,getItemOptions:i})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(n)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,i),"p-disabled":t.isOptionDisabled(n)}),emptyMessage:"p-multiselect-empty-message"},Da=(()=>{class t extends _e{name="multiselect";theme=Ag;classes=$g;inlineStyles=zg;static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})();var Rg={provide:ui,useExisting:ai(()=>$a),multi:!0},Bg=(()=>{class t extends fe{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new N;onMouseEnter=new N;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t)}})();static \u0275cmp=Z({type:t,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",A],label:"label",disabled:[2,"disabled","disabled",A],itemSize:[2,"itemSize","itemSize",Me],focused:[2,"focused","focused",A],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",A]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Ee,J],decls:5,vars:28,consts:[["checkboxicon",""],["pRipple","","role","option",1,"p-multiselect-option",3,"click","mouseenter","ngStyle","ngClass","id"],[3,"ngModel","binary","tabindex","variant","ariaLabel"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(C(0,"li",1),$("click",function(a){return o.onOptionClick(a)})("mouseenter",function(a){return o.onOptionMouseEnter(a)}),C(1,"p-checkbox",2),x(2,Af,3,0,"ng-container",3),T(),x(3,zf,2,1,"span",3)(4,$f,1,0,"ng-container",4),T()),i&2&&(f("ngStyle",ne(20,Pi,o.itemSize+"px"))("ngClass",co(22,Ef,o.selected&&o.highlightOnSelect,o.disabled,o.focused))("id",o.id),S("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled)("aria-checked",o.selected),g(),f("ngModel",o.selected)("binary",!0)("tabindex",-1)("variant",o.variant)("ariaLabel",o.label),g(),f("ngIf",o.itemCheckboxIconTemplate),g(),f("ngIf",!o.template),g(),f("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ne(26,Pa,o.option)))},dependencies:[re,Ce,Le,Ve,je,go,mo,ho,fo,hi,H],encapsulation:2})}return t})(),$a=(()=>{class t extends fe{zone;filterService;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;fluid;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";size;showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.log("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Gs(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;onChange=new N;onFilter=new N;onFocus=new N;onBlur=new N;onClick=new N;onClear=new N;onPanelShow=new N;onPanelHide=new N;onLazyLoad=new N;onRemove=new N;onSelectAllChange=new N;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=oe(Da);searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=qe(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_checkIconTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template,console.warn("checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=qe(null);_filterValue=qe(null);_options=qe(null);startRangeIndex=qe(-1);focusedOptionIndex=qe(-1);selectedOptions;clickInProgress=!1;get hostClasses(){let e=[];return typeof this.rootClass=="string"?e.push(this.rootClass):Array.isArray(this.rootClass)?e.push(...this.rootClass):typeof this.rootClass=="object"&&Object.keys(this.rootClass).filter(i=>this.rootClass[i]).forEach(i=>e.push(i)),this.styleClass&&e.push(this.styleClass),e.join(" ")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ue.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ue.EMPTY_FILTER_MESSAGE)}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():Ze(this.modelValue())}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Ze(this.modelValue())&&this.showClear&&!this.disabled&&!this.readonly&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(Ue.ARIA).listLabel}get hasFluid(){let i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=Gt(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=Ys(e)&&ra.isObject(e[0]);if(this._filterValue()){let o;if(i?o=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):o=e.filter(s=>s.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let s=this.options||[],a=[];return s.forEach(r=>{let c=this.getOptionGroupChildren(r).filter(p=>o.includes(p));c.length>0&&a.push(ht(at({},r),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(a)}return o}return e});label=Gt(()=>{let e,i=this.modelValue();if(i&&i.length&&this.displaySelectedLabel){if(Ze(this.maxSelectedLabels)&&i.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;o<i.length;o++)o!==0&&(e+=", "),e+=this.getLabelByValue(i[o])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=Gt(()=>Ze(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,o){super(),this.zone=e,this.filterService=i,this.overlayService=o,rn(()=>{let s=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&Ze(a)&&(this.optionValue&&this.optionLabel&&s?this.selectedOptions=a.filter(r=>s.includes(r[this.optionLabel])||s.includes(r[this.optionValue])):this.selectedOptions=s,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||et("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterViewInit(){super.ngAfterViewInit(),this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});let a=this.getOptionGroupChildren(o);return a&&a.forEach(r=>i.push(r)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,o=-1){let{originalEvent:s,option:a}=e;if(this.disabled||this.isOptionDisabled(a))return;let r=this.isSelected(a),l=null;r?l=this.modelValue().filter(c=>!mt(c,this.getOptionValue(a),this.equalityKey())):l=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(l,s),o!==-1&&this.focusedOptionIndex.set(o),i&&De(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,o=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(o,!0)),o===-1&&(o=this.findNearestSelectedOptionIndex(i)),i!==-1&&o!==-1){let s=Math.min(i,o),a=Math.max(i,o),r=this.visibleOptions().slice(s,a+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(r,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let o=-1;return this.hasSelectedOption()&&(i?(o=this.findPrevSelectedOptionIndex(e),o=o===-1?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=o===-1?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?At(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidSelectedOption(o)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ze(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?Je(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>mt(o,i,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&mt(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(Ue.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?Je(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Je(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Je(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Je(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!i&&Xs(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let o=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:o}=e;if(i){let s=o.value.length;o.setSelectionRange(0,e.shiftKey?s:0),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:o}=e;if(i){let s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.stopPropagation(),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?(De(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(this.focusedOptionIndex()!==-1&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.loading||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Qs(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;De(i)}onInputFocus(e){this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ks(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;De(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!(this.disabled||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(l=>this.isSelected(l)&&(this.optionDisabled?Je(l,this.optionDisabled):l&&l.disabled!==void 0?l.disabled:!1)),o=this.allSelected()?this.visibleOptions().filter(l=>!this.isValidOption(l)&&this.isSelected(l)):this.visibleOptions().filter(l=>this.isSelected(l)||this.isValidOption(l)),a=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(l=>this.isSelected(l)&&this.isValidOption(l)):[],...i,...o].map(l=>this.getOptionValue(l)),r=[...new Set(a)];this.updateModel(r,e),(!r.length||r.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!r.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),ea.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let o=Pt(this.itemsViewChild.nativeElement,`li[id="${i}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return this.selectAll!==null?this.selectAll:Ze(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&De(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&dn(),e&&De(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=Pt(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=Pt(this.itemsWrapper,'[data-p-highlight="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let o=this.modelValue().filter(s=>!mt(s,e,this.equalityKey()));this.updateModel(o,i),this.onChange.emit({originalEvent:i,value:o,itemValue:e}),this.onRemove.emit({newValue:o,removed:e}),i&&i.stopPropagation()}findNextItem(e){let i=e.nextElementSibling;return i?Vi(i.children[0],"p-disabled")||uo(i.children[0])||Vi(i,"p-multiselect-item-group")?this.findNextItem(i):i.children[0]:null}findPrevItem(e){let i=e.previousElementSibling;return i?Vi(i.children[0],"p-disabled")||uo(i.children[0])||Vi(i,"p-multiselect-item-group")?this.findPrevItem(i):i.children[0]:null}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?At(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?At(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return At(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,s=!1;return this.focusedOptionIndex()!==-1?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),o=o===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),o!==-1&&(s=!0),o===-1&&this.focusedOptionIndex()===-1&&(o=this.findFirstFocusedOptionIndex()),o!==-1&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let i of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(i),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&e.push(ht(at({},i),{[this.optionGroupChildren]:o}))}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return Ws(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(i){return new(i||t)(pt(Dt),pt(Zs),pt(un))};static \u0275cmp=Z({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,o,s){if(i&1&&(P(s,fn,5),P(s,hn,5),P(s,Rf,4),P(s,Bf,4),P(s,Hf,4),P(s,Nf,4),P(s,jf,4),P(s,Uf,4),P(s,Wf,4),P(s,Qf,4),P(s,Kf,4),P(s,qf,4),P(s,Gf,4),P(s,Yf,4),P(s,Xf,4),P(s,Zf,4),P(s,Jf,4),P(s,em,4),P(s,tm,4),P(s,im,4),P(s,ze,4)),i&2){let a;k(a=O())&&(o.footerFacet=a.first),k(a=O())&&(o.headerFacet=a.first),k(a=O())&&(o.itemTemplate=a.first),k(a=O())&&(o.groupTemplate=a.first),k(a=O())&&(o.loaderTemplate=a.first),k(a=O())&&(o.headerTemplate=a.first),k(a=O())&&(o.filterTemplate=a.first),k(a=O())&&(o.footerTemplate=a.first),k(a=O())&&(o.emptyFilterTemplate=a.first),k(a=O())&&(o.emptyTemplate=a.first),k(a=O())&&(o.selectedItemsTemplate=a.first),k(a=O())&&(o.checkIconTemplate=a.first),k(a=O())&&(o.loadingIconTemplate=a.first),k(a=O())&&(o.filterIconTemplate=a.first),k(a=O())&&(o.removeTokenIconTemplate=a.first),k(a=O())&&(o.chipIconTemplate=a.first),k(a=O())&&(o.clearIconTemplate=a.first),k(a=O())&&(o.dropdownIconTemplate=a.first),k(a=O())&&(o.itemCheckboxIconTemplate=a.first),k(a=O())&&(o.headerCheckboxIconTemplate=a.first),k(a=O())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(de(nm,5),de(om,5),de(sm,5),de(am,5),de(rm,5),de(lm,5),de(cm,5),de(pm,5)),i&2){let s;k(s=O())&&(o.overlayViewChild=s.first),k(s=O())&&(o.filterInputChild=s.first),k(s=O())&&(o.focusInputViewChild=s.first),k(s=O())&&(o.itemsViewChild=s.first),k(s=O())&&(o.scroller=s.first),k(s=O())&&(o.lastHiddenFocusableElementOnOverlay=s.first),k(s=O())&&(o.firstHiddenFocusableElementOnOverlay=s.first),k(s=O())&&(o.headerCheckboxViewChild=s.first)}},hostVars:7,hostBindings:function(i,o){i&1&&$("click",function(a){return o.onContainerClick(a)}),i&2&&(S("id",o.id),Be(o.style),j(o.hostClasses),ri("p-variant-filled",o.variant==="filled"||o.config.inputVariant()==="filled"||o.config.inputStyle()==="filled"))},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[2,"disabled","disabled",A],fluid:[2,"fluid","fluid",A],readonly:[2,"readonly","readonly",A],group:[2,"group","group",A],filter:[2,"filter","filter",A],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",A],tabindex:[2,"tabindex","tabindex",Me],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",Me],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",A],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",A],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",A],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",A],virtualScroll:[2,"virtualScroll","virtualScroll",A],loading:[2,"loading","loading",A],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",A],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",A],autofocus:[2,"autofocus","autofocus",A],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",A],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",A],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",A],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",A]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[ge([Rg,Da]),Ee,J],ngContentSelectors:um,decls:16,vars:35,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["checkboxicon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[1,"p-multiselect-label-container",3,"mouseleave","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[1,"p-multiselect-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],[1,"p-multiselect-chip-item"],["class","p-multiselect-chip-item",4,"ngFor","ngForOf"],["styleClass","p-multiselect-chip",3,"onRemove","label","removable","removeIcon"],["class","p-multiselect-chip-icon",3,"click",4,"ngIf"],[1,"p-multiselect-chip-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-dropdown-icon",4,"ngIf"],["class","p-multiselect-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-list-container"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-multiselect-header"],[3,"ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],[3,"onChange","ngModel","ariaLabel","binary","variant","disabled"],[1,"p-multiselect-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-multiselect-filter",3,"input","keydown","click","blur","variant","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"]],template:function(i,o){if(i&1){let s=q();Xe(dm),C(0,"div",16)(1,"input",17,0),$("focus",function(r){return F(s),E(o.onInputFocus(r))})("blur",function(r){return F(s),E(o.onInputBlur(r))})("keydown",function(r){return F(s),E(o.onKeyDown(r))}),T()(),C(3,"div",18),$("mouseleave",function(){return F(s),E(o.labelContainerMouseLeave())}),C(4,"div",19),x(5,Om,3,2,"ng-container",20)(6,Em,3,6,"ng-container",20),T()(),x(7,Am,3,2,"ng-container",20),C(8,"div",21),x(9,Nm,3,2,"ng-container",22)(10,Gm,2,2,"ng-template",null,1,ue),T(),C(12,"p-overlay",23,2),an("visibleChange",function(r){return F(s),sn(o.overlayVisible,r)||(o.overlayVisible=r),E(r)}),$("onAnimationStart",function(r){return F(s),E(o.onOverlayAnimationStart(r))})("onHide",function(){return F(s),E(o.hide())}),x(14,Pg,13,18,"ng-template",null,3,ue),T()}if(i&2){let s,a=Ne(11);S("data-p-hidden-accessible",!0),g(),f("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass)("pAutoFocus",o.autofocus),S("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(s=o.overlayVisible)!==null&&s!==void 0?s:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("value",o.label()||"empty"),g(2),f("pTooltip",o.tooltip)("tooltipDisabled",o._disableTooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),g(),f("ngClass",o.labelClass),g(),f("ngIf",!o.selectedItemsTemplate&&!o._selectedItemsTemplate),g(),f("ngIf",o.selectedItemsTemplate||o._selectedItemsTemplate),g(),f("ngIf",o.isVisibleClearIcon),g(2),f("ngIf",o.loading)("ngIfElse",a),g(3),on("visible",o.overlayVisible),f("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}},dependencies:[re,Ce,li,Le,Ve,je,Bg,bn,H,pa,yn,fi,ta,oa,_t,mn,la,ca,_n,Di,go,mo,ho,fo],encapsulation:2,changeDetection:0})}return t})(),gw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[$a,H,H]})}return t})();function $i(t){return t+.5|0}var zt=(t,n,e)=>Math.max(Math.min(t,e),n);function Ai(t){return zt($i(t*2.55),0,255)}function $t(t){return zt($i(t*255),0,255)}function kt(t){return zt($i(t/2.55)/100,0,1)}function Ra(t){return zt($i(t*100),0,100)}var rt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},vo=[..."0123456789ABCDEF"],Hg=t=>vo[t&15],Ng=t=>vo[(t&240)>>4]+vo[t&15],vn=t=>(t&240)>>4===(t&15),jg=t=>vn(t.r)&&vn(t.g)&&vn(t.b)&&vn(t.a);function Ug(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&rt[t[1]]*17,g:255&rt[t[2]]*17,b:255&rt[t[3]]*17,a:n===5?rt[t[4]]*17:255}:(n===7||n===9)&&(e={r:rt[t[1]]<<4|rt[t[2]],g:rt[t[3]]<<4|rt[t[4]],b:rt[t[5]]<<4|rt[t[6]],a:n===9?rt[t[7]]<<4|rt[t[8]]:255})),e}var Wg=(t,n)=>t<255?n(t):"";function Qg(t){var n=jg(t)?Hg:Ng;return t?"#"+n(t.r)+n(t.g)+n(t.b)+Wg(t.a,n):void 0}var Kg=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ja(t,n,e){let i=n*Math.min(e,1-e),o=(s,a=(s+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function qg(t,n,e){let i=(o,s=(o+t/60)%6)=>e-e*n*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function Gg(t,n,e){let i=ja(t,1,.5),o;for(n+e>1&&(o=1/(n+e),n*=o,e*=o),o=0;o<3;o++)i[o]*=1-n-e,i[o]+=n;return i}function Yg(t,n,e,i,o){return t===o?(n-e)/i+(n<e?6:0):n===o?(e-t)/i+2:(t-n)/i+4}function Co(t){let e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),a=Math.min(e,i,o),r=(s+a)/2,l,c,p;return s!==a&&(p=s-a,c=r>.5?p/(2-s-a):p/(s+a),l=Yg(e,i,o,p,s),l=l*60+.5),[l|0,c||0,r]}function wo(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map($t)}function To(t,n,e){return wo(ja,t,n,e)}function Xg(t,n,e){return wo(Gg,t,n,e)}function Zg(t,n,e){return wo(qg,t,n,e)}function Ua(t){return(t%360+360)%360}function Jg(t){let n=Kg.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Ai(+n[5]):$t(+n[5]));let o=Ua(+n[2]),s=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=Xg(o,s,a):n[1]==="hsv"?i=Zg(o,s,a):i=To(o,s,a),{r:i[0],g:i[1],b:i[2],a:e}}function e0(t,n){var e=Co(t);e[0]=Ua(e[0]+n),e=To(e),t.r=e[0],t.g=e[1],t.b=e[2]}function t0(t){if(!t)return;let n=Co(t),e=n[0],i=Ra(n[1]),o=Ra(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${o}%, ${kt(t.a)})`:`hsl(${e}, ${i}%, ${o}%)`}var Ba={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ha={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function i0(){let t={},n=Object.keys(Ha),e=Object.keys(Ba),i,o,s,a,r;for(i=0;i<n.length;i++){for(a=r=n[i],o=0;o<e.length;o++)s=e[o],r=r.replace(s,Ba[s]);s=parseInt(Ha[a],16),t[r]=[s>>16&255,s>>8&255,s&255]}return t}var Cn;function n0(t){Cn||(Cn=i0(),Cn.transparent=[0,0,0,0]);let n=Cn[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var o0=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function s0(t){let n=o0.exec(t),e=255,i,o,s;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Ai(a):zt(a*255,0,255)}return i=+n[1],o=+n[3],s=+n[5],i=255&(n[2]?Ai(i):zt(i,0,255)),o=255&(n[4]?Ai(o):zt(o,0,255)),s=255&(n[6]?Ai(s):zt(s,0,255)),{r:i,g:o,b:s,a:e}}}function a0(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var xo=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,mi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function r0(t,n,e){let i=mi(kt(t.r)),o=mi(kt(t.g)),s=mi(kt(t.b));return{r:$t(xo(i+e*(mi(kt(n.r))-i))),g:$t(xo(o+e*(mi(kt(n.g))-o))),b:$t(xo(s+e*(mi(kt(n.b))-s))),a:t.a+e*(n.a-t.a)}}function wn(t,n,e){if(t){let i=Co(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=To(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Wa(t,n){return t&&Object.assign(n||{},t)}function Na(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=$t(t[3]))):(n=Wa(t,{r:0,g:0,b:0,a:1}),n.a=$t(n.a)),n}function l0(t){return t.charAt(0)==="r"?s0(t):Jg(t)}var zi=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=Na(n):e==="string"&&(i=Ug(n)||n0(n)||l0(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=Wa(this._rgb);return n&&(n.a=kt(n.a)),n}set rgb(n){this._rgb=Na(n)}rgbString(){return this._valid?a0(this._rgb):void 0}hexString(){return this._valid?Qg(this._rgb):void 0}hslString(){return this._valid?t0(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,o=n.rgb,s,a=e===s?.5:e,r=2*a-1,l=i.a-o.a,c=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;s=1-c,i.r=255&c*i.r+s*o.r+.5,i.g=255&c*i.g+s*o.g+.5,i.b=255&c*i.b+s*o.b+.5,i.a=a*i.a+(1-a)*o.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=r0(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=$t(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=$i(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return wn(this._rgb,2,n),this}darken(n){return wn(this._rgb,2,-n),this}saturate(n){return wn(this._rgb,1,n),this}desaturate(n){return wn(this._rgb,1,-n),this}rotate(n){return e0(this._rgb,n),this}};function vt(){}var ir=(()=>{let t=0;return()=>t++})();function ie(t){return t===null||typeof t>"u"}function be(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function ee(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function we(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function it(t,n){return we(t)?t:n}function G(t,n){return typeof t>"u"?n:t}var nr=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,Oo=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function me(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function se(t,n,e,i){let o,s,a;if(be(t))if(s=t.length,i)for(o=s-1;o>=0;o--)n.call(e,t[o],o);else for(o=0;o<s;o++)n.call(e,t[o],o);else if(ee(t))for(a=Object.keys(t),s=a.length,o=0;o<s;o++)n.call(e,t[a[o]],a[o])}function Hi(t,n){let e,i,o,s;if(!t||!n||t.length!==n.length)return!1;for(e=0,i=t.length;e<i;++e)if(o=t[e],s=n[e],o.datasetIndex!==s.datasetIndex||o.index!==s.index)return!1;return!0}function kn(t){if(be(t))return t.map(kn);if(ee(t)){let n=Object.create(null),e=Object.keys(t),i=e.length,o=0;for(;o<i;++o)n[e[o]]=kn(t[e[o]]);return n}return t}function or(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function c0(t,n,e,i){if(!or(t))return;let o=n[t],s=e[t];ee(o)&&ee(s)?_i(o,s,i):n[t]=kn(s)}function _i(t,n,e){let i=be(n)?n:[n],o=i.length;if(!ee(t))return t;e=e||{};let s=e.merger||c0,a;for(let r=0;r<o;++r){if(a=i[r],!ee(a))continue;let l=Object.keys(a);for(let c=0,p=l.length;c<p;++c)s(l[c],t,a,e)}return t}function yi(t,n){return _i(t,n,{merger:p0})}function p0(t,n,e){if(!or(t))return;let i=n[t],o=e[t];ee(i)&&ee(o)?yi(i,o):Object.prototype.hasOwnProperty.call(n,t)||(n[t]=kn(o))}var Qa={"":t=>t,x:t=>t.x,y:t=>t.y};function d0(t){let n=t.split("."),e=[],i="";for(let o of n)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function u0(t){let n=d0(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function Ft(t,n){return(Qa[n]||(Qa[n]=u0(n)))(t)}function En(t){return t.charAt(0).toUpperCase()+t.slice(1)}var xi=t=>typeof t<"u",Ot=t=>typeof t=="function",Mo=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function sr(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var ye=Math.PI,xe=2*ye,h0=xe+ye,On=Number.POSITIVE_INFINITY,f0=ye/180,Se=ye/2,Yt=ye/4,Ka=ye*2/3,Mt=Math.log10,dt=Math.sign;function vi(t,n,e){return Math.abs(t-n)<e}function Fo(t){let n=Math.round(t);t=vi(t,n,t/1e3)?n:t;let e=Math.pow(10,Math.floor(Mt(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function ar(t){let n=[],e=Math.sqrt(t),i;for(i=1;i<e;i++)t%i===0&&(n.push(i),n.push(t/i));return e===(e|0)&&n.push(e),n.sort((o,s)=>o-s).pop(),n}function Jt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function rr(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function Eo(t,n,e){let i,o,s;for(i=0,o=t.length;i<o;i++)s=t[i][e],isNaN(s)||(n.min=Math.min(n.min,s),n.max=Math.max(n.max,s))}function lt(t){return t*(ye/180)}function Ln(t){return t*(180/ye)}function Lo(t){if(!we(t))return;let n=1,e=0;for(;Math.round(t*n)/n!==t;)n*=10,e++;return e}function Vo(t,n){let e=n.x-t.x,i=n.y-t.y,o=Math.sqrt(e*e+i*i),s=Math.atan2(i,e);return s<-.5*ye&&(s+=xe),{angle:s,distance:o}}function Mn(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function m0(t,n){return(t-n+h0)%xe-ye}function tt(t){return(t%xe+xe)%xe}function Ci(t,n,e,i){let o=tt(t),s=tt(n),a=tt(e),r=tt(s-o),l=tt(a-o),c=tt(o-s),p=tt(o-a);return o===s||o===a||i&&s===a||r>l&&c<p}function Pe(t,n,e){return Math.max(n,Math.min(e,t))}function lr(t){return Pe(t,-32768,32767)}function Ct(t,n,e,i=1e-6){return t>=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function Vn(t,n,e){e=e||(a=>t[a]<n);let i=t.length-1,o=0,s;for(;i-o>1;)s=o+i>>1,e(s)?o=s:i=s;return{lo:o,hi:i}}var yt=(t,n,e,i)=>Vn(t,e,i?o=>{let s=t[o][n];return s<e||s===e&&t[o+1][n]===e}:o=>t[o][n]<e),cr=(t,n,e)=>Vn(t,e,i=>t[i][n]>=e);function pr(t,n,e){let i=0,o=t.length;for(;i<o&&t[i]<n;)i++;for(;o>i&&t[o-1]>e;)o--;return i>0||o<t.length?t.slice(i,o):t}var dr=["push","pop","shift","splice","unshift"];function ur(t,n){if(t._chartjs){t._chartjs.listeners.push(n);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),dr.forEach(e=>{let i="_onData"+En(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){let a=o.apply(this,s);return t._chartjs.listeners.forEach(r=>{typeof r[i]=="function"&&r[i](...s)}),a}})})}function Do(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,o=i.indexOf(n);o!==-1&&i.splice(o,1),!(i.length>0)&&(dr.forEach(s=>{delete t[s]}),delete t._chartjs)}function Po(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var Ao=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function zo(t,n){let e=[],i=!1;return function(...o){e=o,i||(i=!0,Ao.call(window,()=>{i=!1,t.apply(n,e)}))}}function hr(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Dn=t=>t==="start"?"left":t==="end"?"right":"center",We=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,fr=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function $o(t,n,e){let i=n.length,o=0,s=i;if(t._sorted){let{iScale:a,_parsed:r}=t,l=a.axis,{min:c,max:p,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(o=Pe(Math.min(yt(r,l,c).lo,e?i:yt(n,l,a.getPixelForValue(c)).lo),0,i-1)),u?s=Pe(Math.max(yt(r,a.axis,p,!0).hi+1,e?0:yt(n,l,a.getPixelForValue(p),!0).hi+1),o,i)-o:s=i-o}return{start:o,count:s}}function Ro(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,o={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=o,!0;let s=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,o),s}var Tn=t=>t===0||t===1,qa=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*xe/e)),Ga=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*xe/e)+1,gi={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*Se)+1,easeOutSine:t=>Math.sin(t*Se),easeInOutSine:t=>-.5*(Math.cos(ye*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=>Tn(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=>Tn(t)?t:qa(t,.075,.3),easeOutElastic:t=>Tn(t)?t:Ga(t,.075,.3),easeInOutElastic(t){return Tn(t)?t:t<.5?.5*qa(t*2,.1125,.45):.5+.5*Ga(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 n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-gi.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?gi.easeInBounce(t*2)*.5:gi.easeOutBounce(t*2-1)*.5+.5};function Bo(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function Ho(t){return Bo(t)?t:new zi(t)}function Io(t){return Bo(t)?t:new zi(t).saturate(.5).darken(.1).hexString()}var g0=["x","y","borderWidth","radius","tension"],_0=["color","borderColor","backgroundColor"];function b0(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:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:_0},numbers:{type:"number",properties:g0}}),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:n=>n|0}}}})}function y0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ya=new Map;function x0(t,n){n=n||{};let e=t+JSON.stringify(n),i=Ya.get(e);return i||(i=new Intl.NumberFormat(t,n),Ya.set(e,i)),i}function wi(t,n,e){return x0(n,e).format(t)}var mr={values(t){return be(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,o,s=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=v0(t,e)}let a=Mt(Math.abs(s)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),wi(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(Mt(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?mr.numeric.call(this,t,n,e):""}};function v0(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var Ni={formatters:mr};function C0(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:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.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:Ni.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:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Bt=Object.create(null),Pn=Object.create(null);function Ri(t,n){if(!n)return t;let e=n.split(".");for(let i=0,o=e.length;i<o;++i){let s=e[i];t=t[s]||(t[s]=Object.create(null))}return t}function So(t,n,e){return typeof n=="string"?_i(Ri(t,n),e):_i(Ri(t,""),n)}var ko=class{constructor(n,e){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,o)=>Io(o.backgroundColor),this.hoverBorderColor=(i,o)=>Io(o.borderColor),this.hoverColor=(i,o)=>Io(o.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(n),this.apply(e)}set(n,e){return So(this,n,e)}get(n){return Ri(this,n)}describe(n,e){return So(Pn,n,e)}override(n,e){return So(Bt,n,e)}route(n,e,i,o){let s=Ri(this,n),a=Ri(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[r],c=a[o];return ee(l)?Object.assign({},c,l):G(l,c)},set(l){this[r]=l}}})}apply(n){n.forEach(e=>e(this))}},Te=new ko({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[b0,y0,C0]);function w0(t){return!t||ie(t.size)||ie(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Bi(t,n,e,i,o){let s=n[o];return s||(s=n[o]=t.measureText(o).width,e.push(o)),s>i&&(i=s),i}function gr(t,n,e,i){i=i||{};let o=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(o=i.data={},s=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,r=e.length,l,c,p,d,u;for(l=0;l<r;l++)if(d=e[l],d!=null&&!be(d))a=Bi(t,o,s,a,d);else if(be(d))for(c=0,p=d.length;c<p;c++)u=d[c],u!=null&&!be(u)&&(a=Bi(t,o,s,a,u));t.restore();let h=s.length/2;if(h>e.length){for(l=0;l<h;l++)delete o[s[l]];s.splice(0,h)}return a}function Ht(t,n,e){let i=t.currentDevicePixelRatio,o=e!==0?Math.max(e/2,.5):0;return Math.round((n-o)*i)/i+o}function No(t,n){n=n||t.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,t.width,t.height),n.restore()}function An(t,n,e,i){jo(t,n,e,i,null)}function jo(t,n,e,i,o){let s,a,r,l,c,p,d,u,h=n.pointStyle,_=n.rotation,b=n.radius,y=(_||0)*f0;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(e,i),t.rotate(y),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(b)||b<=0)){switch(t.beginPath(),h){default:o?t.ellipse(e,i,o/2,b,0,0,xe):t.arc(e,i,b,0,xe),t.closePath();break;case"triangle":p=o?o/2:b,t.moveTo(e+Math.sin(y)*p,i-Math.cos(y)*b),y+=Ka,t.lineTo(e+Math.sin(y)*p,i-Math.cos(y)*b),y+=Ka,t.lineTo(e+Math.sin(y)*p,i-Math.cos(y)*b),t.closePath();break;case"rectRounded":c=b*.516,l=b-c,a=Math.cos(y+Yt)*l,d=Math.cos(y+Yt)*(o?o/2-c:l),r=Math.sin(y+Yt)*l,u=Math.sin(y+Yt)*(o?o/2-c:l),t.arc(e-d,i-r,c,y-ye,y-Se),t.arc(e+u,i-a,c,y-Se,y),t.arc(e+d,i+r,c,y,y+Se),t.arc(e-u,i+a,c,y+Se,y+ye),t.closePath();break;case"rect":if(!_){l=Math.SQRT1_2*b,p=o?o/2:l,t.rect(e-p,i-l,2*p,2*l);break}y+=Yt;case"rectRot":d=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-d,i-r),t.lineTo(e+u,i-a),t.lineTo(e+d,i+r),t.lineTo(e-u,i+a),t.closePath();break;case"crossRot":y+=Yt;case"cross":d=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-d,i-r),t.lineTo(e+d,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a);break;case"star":d=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-d,i-r),t.lineTo(e+d,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a),y+=Yt,d=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-d,i-r),t.lineTo(e+d,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a);break;case"line":a=o?o/2:Math.cos(y)*b,r=Math.sin(y)*b,t.moveTo(e-a,i-r),t.lineTo(e+a,i+r);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(y)*(o?o/2:b),i+Math.sin(y)*b);break;case!1:t.closePath();break}t.fill(),n.borderWidth>0&&t.stroke()}}function xt(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.x<n.right+e&&t.y>n.top-e&&t.y<n.bottom+e}function ji(t,n){t.save(),t.beginPath(),t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()}function Ui(t){t.restore()}function _r(t,n,e,i,o){if(!n)return t.lineTo(e.x,e.y);if(o==="middle"){let s=(n.x+e.x)/2;t.lineTo(s,n.y),t.lineTo(s,e.y)}else o==="after"!=!!i?t.lineTo(n.x,e.y):t.lineTo(e.x,n.y);t.lineTo(e.x,e.y)}function br(t,n,e,i){if(!n)return t.lineTo(e.x,e.y);t.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function T0(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),ie(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}function I0(t,n,e,i,o){if(o.strikethrough||o.underline){let s=t.measureText(i),a=n-s.actualBoundingBoxLeft,r=n+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,p=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,p),t.lineTo(r,p),t.stroke()}}function S0(t,n){let e=t.fillStyle;t.fillStyle=n.color,t.fillRect(n.left,n.top,n.width,n.height),t.fillStyle=e}function Nt(t,n,e,i,o,s={}){let a=be(n)?n:[n],r=s.strokeWidth>0&&s.strokeColor!=="",l,c;for(t.save(),t.font=o.string,T0(t,s),l=0;l<a.length;++l)c=a[l],s.backdrop&&S0(t,s.backdrop),r&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),ie(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,e,i,s.maxWidth)),t.fillText(c,e,i,s.maxWidth),I0(t,e,i,c,s),i+=Number(o.lineHeight);t.restore()}function Ti(t,n){let{x:e,y:i,w:o,h:s,radius:a}=n;t.arc(e+a.topLeft,i+a.topLeft,a.topLeft,1.5*ye,ye,!0),t.lineTo(e,i+s-a.bottomLeft),t.arc(e+a.bottomLeft,i+s-a.bottomLeft,a.bottomLeft,ye,Se,!0),t.lineTo(e+o-a.bottomRight,i+s),t.arc(e+o-a.bottomRight,i+s-a.bottomRight,a.bottomRight,Se,0,!0),t.lineTo(e+o,i+a.topRight),t.arc(e+o-a.topRight,i+a.topRight,a.topRight,0,-Se,!0),t.lineTo(e+a.topLeft,i)}var k0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,O0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function M0(t,n){let e=(""+t).match(k0);if(!e||e[1]==="normal")return n*1.2;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100;break}return n*t}var F0=t=>+t||0;function zn(t,n){let e={},i=ee(n),o=i?Object.keys(n):n,s=ee(t)?i?a=>G(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of o)e[a]=F0(s(a));return e}function Uo(t){return zn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function jt(t){return zn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Qe(t){let n=Uo(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Fe(t,n){t=t||{},n=n||Te.font;let e=G(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=G(t.style,n.style);i&&!(""+i).match(O0)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let o={family:G(t.family,n.family),lineHeight:M0(G(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:G(t.weight,n.weight),string:""};return o.string=w0(o),o}function Ii(t,n,e,i){let o=!0,s,a,r;for(s=0,a=t.length;s<a;++s)if(r=t[s],r!==void 0&&(n!==void 0&&typeof r=="function"&&(r=r(n),o=!1),e!==void 0&&be(r)&&(r=r[e%r.length],o=!1),r!==void 0))return i&&!o&&(i.cacheable=!1),r}function yr(t,n,e){let{min:i,max:o}=t,s=Oo(n,(o-i)/2),a=(r,l)=>e&&r===0?0:r+l;return{min:a(i,-Math.abs(s)),max:a(o,s)}}function Et(t,n){return Object.assign(Object.create(t),n)}function $n(t,n=[""],e,i,o=()=>t[0]){let s=e||t;typeof i>"u"&&(i=Cr("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:r=>$n([r,...t],n,s,i)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete t[0][l],!0},get(r,l){return xr(r,l,()=>$0(l,n,t,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(r,l){return Za(r).includes(l)},ownKeys(r){return Za(r)},set(r,l,c){let p=r._storage||(r._storage=o());return r[l]=p[l]=c,delete r._keys,!0}})}function Zt(t,n,e,i){let o={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:Wo(t,i),setContext:s=>Zt(t,s,e,i),override:s=>Zt(t.override(s),n,e,i)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,r){return xr(s,a,()=>L0(s,a,r))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,r){return t[a]=r,delete s[a],!0}})}function Wo(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:o=n.allKeys}=t;return{allKeys:o,scriptable:e,indexable:i,isScriptable:Ot(e)?e:()=>e,isIndexable:Ot(i)?i:()=>i}}var E0=(t,n)=>t?t+En(n):n,Qo=(t,n)=>ee(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function xr(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n))return t[n];let i=e();return t[n]=i,i}function L0(t,n,e){let{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=t,r=i[n];return Ot(r)&&a.isScriptable(n)&&(r=V0(n,r,t,e)),be(r)&&r.length&&(r=D0(n,r,t,a.isIndexable)),Qo(n,r)&&(r=Zt(r,o,s&&s[n],a)),r}function V0(t,n,e,i){let{_proxy:o,_context:s,_subProxy:a,_stack:r}=e;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=n(s,a||i);return r.delete(t),Qo(t,l)&&(l=Ko(o._scopes,o,t,l)),l}function D0(t,n,e,i){let{_proxy:o,_context:s,_subProxy:a,_descriptors:r}=e;if(typeof s.index<"u"&&i(t))return n[s.index%n.length];if(ee(n[0])){let l=n,c=o._scopes.filter(p=>p!==l);n=[];for(let p of l){let d=Ko(c,o,t,p);n.push(Zt(d,s,a&&a[t],r))}}return n}function vr(t,n,e){return Ot(t)?t(n,e):t}var P0=(t,n)=>t===!0?n:typeof t=="string"?Ft(n,t):void 0;function A0(t,n,e,i,o){for(let s of n){let a=P0(e,s);if(a){t.add(a);let r=vr(a._fallback,e,o);if(typeof r<"u"&&r!==e&&r!==i)return r}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function Ko(t,n,e,i){let o=n._rootScopes,s=vr(n._fallback,e,i),a=[...t,...o],r=new Set;r.add(i);let l=Xa(r,a,e,s||e,i);return l===null||typeof s<"u"&&s!==e&&(l=Xa(r,a,s,l,i),l===null)?!1:$n(Array.from(r),[""],o,s,()=>z0(n,e,i))}function Xa(t,n,e,i,o){for(;e;)e=A0(t,n,e,i,o);return e}function z0(t,n,e){let i=t._getTarget();n in i||(i[n]={});let o=i[n];return be(o)&&ee(e)?e:o||{}}function $0(t,n,e,i){let o;for(let s of n)if(o=Cr(E0(s,t),e),typeof o<"u")return Qo(t,o)?Ko(e,i,t,o):o}function Cr(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function Za(t){let n=t._keys;return n||(n=t._keys=R0(t._scopes)),n}function R0(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(o=>!o.startsWith("_")))n.add(i);return Array.from(n)}function qo(t,n,e,i){let{iScale:o}=t,{key:s="r"}=this._parsing,a=new Array(i),r,l,c,p;for(r=0,l=i;r<l;++r)c=r+e,p=n[c],a[r]={r:o.parse(Ft(p,s),c)};return a}var B0=Number.EPSILON||1e-14,bi=(t,n)=>n<t.length&&!t[n].skip&&t[n],wr=t=>t==="x"?"y":"x";function H0(t,n,e,i){let o=t.skip?n:t,s=n,a=e.skip?n:e,r=Mn(s,o),l=Mn(a,s),c=r/(r+l),p=l/(r+l);c=isNaN(c)?0:c,p=isNaN(p)?0:p;let d=i*c,u=i*p;return{previous:{x:s.x-d*(a.x-o.x),y:s.y-d*(a.y-o.y)},next:{x:s.x+u*(a.x-o.x),y:s.y+u*(a.y-o.y)}}}function N0(t,n,e){let i=t.length,o,s,a,r,l,c=bi(t,0);for(let p=0;p<i-1;++p)if(l=c,c=bi(t,p+1),!(!l||!c)){if(vi(n[p],0,B0)){e[p]=e[p+1]=0;continue}o=e[p]/n[p],s=e[p+1]/n[p],r=Math.pow(o,2)+Math.pow(s,2),!(r<=9)&&(a=3/Math.sqrt(r),e[p]=o*a*n[p],e[p+1]=s*a*n[p])}}function j0(t,n,e="x"){let i=wr(e),o=t.length,s,a,r,l=bi(t,0);for(let c=0;c<o;++c){if(a=r,r=l,l=bi(t,c+1),!r)continue;let p=r[e],d=r[i];a&&(s=(p-a[e])/3,r[`cp1${e}`]=p-s,r[`cp1${i}`]=d-s*n[c]),l&&(s=(l[e]-p)/3,r[`cp2${e}`]=p+s,r[`cp2${i}`]=d+s*n[c])}}function U0(t,n="x"){let e=wr(n),i=t.length,o=Array(i).fill(0),s=Array(i),a,r,l,c=bi(t,0);for(a=0;a<i;++a)if(r=l,l=c,c=bi(t,a+1),!!l){if(c){let p=c[n]-l[n];o[a]=p!==0?(c[e]-l[e])/p:0}s[a]=r?c?dt(o[a-1])!==dt(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}N0(t,o,s),j0(t,s,n)}function In(t,n,e){return Math.max(Math.min(t,e),n)}function W0(t,n){let e,i,o,s,a,r=xt(t[0],n);for(e=0,i=t.length;e<i;++e)a=s,s=r,r=e<i-1&&xt(t[e+1],n),s&&(o=t[e],a&&(o.cp1x=In(o.cp1x,n.left,n.right),o.cp1y=In(o.cp1y,n.top,n.bottom)),r&&(o.cp2x=In(o.cp2x,n.left,n.right),o.cp2y=In(o.cp2y,n.top,n.bottom)))}function Tr(t,n,e,i,o){let s,a,r,l;if(n.spanGaps&&(t=t.filter(c=>!c.skip)),n.cubicInterpolationMode==="monotone")U0(t,o);else{let c=i?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)r=t[s],l=H0(c,r,t[Math.min(s+1,a-(i?0:1))%a],n.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,c=r}n.capBezierPoints&&W0(t,e)}function Rn(){return typeof window<"u"&&typeof document<"u"}function Bn(t){let n=t.parentNode;return n&&n.toString()==="[object ShadowRoot]"&&(n=n.host),n}function Fn(t,n,e){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*n.parentNode[e])):i=t,i}var Hn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function Q0(t,n){return Hn(t).getPropertyValue(n)}var K0=["top","right","bottom","left"];function Xt(t,n,e){let i={};e=e?"-"+e:"";for(let o=0;o<4;o++){let s=K0[o];i[s]=parseFloat(t[n+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var q0=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function G0(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=i,a=!1,r,l;if(q0(o,s,t.target))r=o,l=s;else{let c=n.getBoundingClientRect();r=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:r,y:l,box:a}}function Ut(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,o=Hn(e),s=o.boxSizing==="border-box",a=Xt(o,"padding"),r=Xt(o,"border","width"),{x:l,y:c,box:p}=G0(t,e),d=a.left+(p&&r.left),u=a.top+(p&&r.top),{width:h,height:_}=n;return s&&(h-=a.width+r.width,_-=a.height+r.height),{x:Math.round((l-d)/h*e.width/i),y:Math.round((c-u)/_*e.height/i)}}function Y0(t,n,e){let i,o;if(n===void 0||e===void 0){let s=Bn(t);if(!s)n=t.clientWidth,e=t.clientHeight;else{let a=s.getBoundingClientRect(),r=Hn(s),l=Xt(r,"border","width"),c=Xt(r,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Fn(r.maxWidth,s,"clientWidth"),o=Fn(r.maxHeight,s,"clientHeight")}}return{width:n,height:e,maxWidth:i||On,maxHeight:o||On}}var Sn=t=>Math.round(t*10)/10;function Ir(t,n,e,i){let o=Hn(t),s=Xt(o,"margin"),a=Fn(o.maxWidth,t,"clientWidth")||On,r=Fn(o.maxHeight,t,"clientHeight")||On,l=Y0(t,n,e),{width:c,height:p}=l;if(o.boxSizing==="content-box"){let u=Xt(o,"border","width"),h=Xt(o,"padding");c-=h.width+u.width,p-=h.height+u.height}return c=Math.max(0,c-s.width),p=Math.max(0,i?c/i:p-s.height),c=Sn(Math.min(c,a,l.maxWidth)),p=Sn(Math.min(p,r,l.maxHeight)),c&&!p&&(p=Sn(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&p>l.height&&(p=l.height,c=Sn(Math.floor(p*i))),{width:c,height:p}}function Go(t,n,e){let i=n||1,o=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==o||a.width!==s?(t.currentDevicePixelRatio=i,a.height=o,a.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Sr=function(){let t=!1;try{let n={get passive(){return t=!0,!1}};Rn()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t}();function Yo(t,n){let e=Q0(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Rt(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function kr(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function Or(t,n,e,i){let o={x:t.cp2x,y:t.cp2y},s={x:n.cp1x,y:n.cp1y},a=Rt(t,o,e),r=Rt(o,s,e),l=Rt(s,n,e),c=Rt(a,r,e),p=Rt(r,l,e);return Rt(c,p,e)}var X0=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},Z0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function ei(t,n,e){return t?X0(n,e):Z0()}function Xo(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function Zo(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Mr(t){return t==="angle"?{between:Ci,compare:m0,normalize:tt}:{between:Ct,compare:(n,e)=>n-e,normalize:n=>n}}function Ja({start:t,end:n,count:e,loop:i,style:o}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:o}}function J0(t,n,e){let{property:i,start:o,end:s}=e,{between:a,normalize:r}=Mr(i),l=n.length,{start:c,end:p,loop:d}=t,u,h;if(d){for(c+=l,p+=l,u=0,h=l;u<h&&a(r(n[c%l][i]),o,s);++u)c--,p--;c%=l,p%=l}return p<c&&(p+=l),{start:c,end:p,loop:d,style:t.style}}function Jo(t,n,e){if(!e)return[t];let{property:i,start:o,end:s}=e,a=n.length,{compare:r,between:l,normalize:c}=Mr(i),{start:p,end:d,loop:u,style:h}=J0(t,n,e),_=[],b=!1,y=null,w,v,M,V=()=>l(o,M,w)&&r(o,M)!==0,I=()=>r(s,w)===0||l(s,M,w),L=()=>b||V(),z=()=>!b||I();for(let D=p,B=p;D<=d;++D)v=n[D%a],!v.skip&&(w=c(v[i]),w!==M&&(b=l(w,o,s),y===null&&L()&&(y=r(w,o)===0?D:B),y!==null&&z()&&(_.push(Ja({start:y,end:D,loop:u,count:a,style:h})),y=null),B=D,M=w));return y!==null&&_.push(Ja({start:y,end:d,loop:u,count:a,style:h})),_}function es(t,n){let e=[],i=t.segments;for(let o=0;o<i.length;o++){let s=Jo(i[o],t.points,n);s.length&&e.push(...s)}return e}function e_(t,n,e,i){let o=0,s=n-1;if(e&&!i)for(;o<n&&!t[o].skip;)o++;for(;o<n&&t[o].skip;)o++;for(o%=n,e&&(s+=o);s>o&&t[s%n].skip;)s--;return s%=n,{start:o,end:s}}function t_(t,n,e,i){let o=t.length,s=[],a=n,r=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%o];c.skip||c.stop?r.skip||(i=!1,s.push({start:n%o,end:(l-1)%o,loop:i}),n=a=c.stop?l:null):(a=l,r.skip&&(n=l)),r=c}return a!==null&&s.push({start:n%o,end:a%o,loop:i}),s}function Fr(t,n){let e=t.points,i=t.options.spanGaps,o=e.length;if(!o)return[];let s=!!t._loop,{start:a,end:r}=e_(e,o,s,i);if(i===!0)return er(t,[{start:a,end:r,loop:s}],e,n);let l=r<a?r+o:r,c=!!t._fullLoop&&a===0&&r===o-1;return er(t,t_(e,a,l,c),e,n)}function er(t,n,e,i){return!i||!i.setContext||!e?n:i_(t,n,e,i)}function i_(t,n,e,i){let o=t._chart.getContext(),s=tr(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=e.length,c=[],p=s,d=n[0].start,u=d;function h(_,b,y,w){let v=r?-1:1;if(_!==b){for(_+=l;e[_%l].skip;)_-=v;for(;e[b%l].skip;)b+=v;_%l!==b%l&&(c.push({start:_%l,end:b%l,loop:y,style:w}),p=w,d=b%l)}}for(let _ of n){d=r?d:_.start;let b=e[d%l],y;for(u=d+1;u<=_.end;u++){let w=e[u%l];y=tr(i.setContext(Et(o,{type:"segment",p0:b,p1:w,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),n_(y,p)&&h(d,u-1,_.loop,p),b=w,p=y}d<u-1&&h(d,u-1,_.loop,p)}return c}function tr(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function n_(t,n){if(!n)return!1;let e=[],i=function(o,s){return Bo(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(t,i)!==JSON.stringify(n,i)}var ps=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,e,i,o){let s=e.listeners[o],a=e.duration;s.forEach(r=>r({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ao.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;let s=i.items,a=s.length-1,r=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),r=!0):(s[a]=s[s.length-1],s.pop());r&&(o.draw(),this._notify(o,i,n,"progress")),s.length||(i.running=!1,this._notify(o,i,n,"complete"),i.initial=!1),e+=s.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,o=i.length-1;for(;o>=0;--o)i[o].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},Lt=new ps,Er="transparent",o_={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=Ho(t||Er),o=i.valid&&Ho(n||Er);return o&&o.valid?o.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},ds=class{constructor(n,e,i,o){let s=e[i];o=Ii([n.to,o,s,n.from]);let a=Ii([n.from,s,o]);this._active=!0,this._fn=n.fn||o_[n.type||typeof a],this._easing=gi[n.easing]||gi.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let o=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=s,this._loop=!!n.loop,this._to=Ii([n.to,e,o,n.from]),this._from=Ii([n.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,o=this._prop,s=this._from,a=this._loop,r=this._to,l;if(this._active=s!==r&&(a||e<i),!this._active){this._target[o]=r,this._notify(!0);return}if(e<0){this._target[o]=s;return}l=e/i%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,r,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let o=0;o<i.length;o++)i[o][e]()}},Xn=class{constructor(n,e){this._chart=n,this._properties=new Map,this.configure(e)}configure(n){if(!ee(n))return;let e=Object.keys(Te.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(o=>{let s=n[o];if(!ee(s))return;let a={};for(let r of e)a[r]=s[r];(be(s.properties)&&s.properties||[o]).forEach(r=>{(r===o||!i.has(r))&&i.set(r,a)})})}_animateOptions(n,e){let i=e.options,o=a_(n,i);if(!o)return[];let s=this._createAnimations(o,i);return i.$shared&&s_(n.options.$animations,i).then(()=>{n.options=i},()=>{}),s}_createAnimations(n,e){let i=this._properties,o=[],s=n.$animations||(n.$animations={}),a=Object.keys(e),r=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(n,e));continue}let p=e[c],d=s[c],u=i.get(c);if(d)if(u&&d.active()){d.update(u,p,r);continue}else d.cancel();if(!u||!u.duration){n[c]=p;continue}s[c]=d=new ds(u,n,c,p),o.push(d)}return o}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return Lt.add(this._chart,i),!0}};function s_(t,n){let e=[],i=Object.keys(n);for(let o=0;o<i.length;o++){let s=t[i[o]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function a_(t,n){if(!n)return;let e=t.options;if(!e){t.options=n;return}return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Lr(t,n){let e=t&&t.options||{},i=e.reverse,o=e.min===void 0?n:0,s=e.max===void 0?n:0;return{start:i?s:o,end:i?o:s}}function r_(t,n,e){if(e===!1)return!1;let i=Lr(t,e),o=Lr(n,e);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function l_(t){let n,e,i,o;return ee(t)?(n=t.top,e=t.right,i=t.bottom,o=t.left):n=e=i=o=t,{top:n,right:e,bottom:i,left:o,disabled:t===!1}}function Ll(t,n){let e=[],i=t._getSortedDatasetMetas(n),o,s;for(o=0,s=i.length;o<s;++o)e.push(i[o].index);return e}function Vr(t,n,e,i={}){let o=t.keys,s=i.mode==="single",a,r,l,c;if(n!==null){for(a=0,r=o.length;a<r;++a){if(l=+o[a],l===e){if(i.all)continue;break}c=t.values[l],we(c)&&(s||n===0||dt(n)===dt(c))&&(n+=c)}return n}}function c_(t){let n=Object.keys(t),e=new Array(n.length),i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i],e[i]={x:s,y:t[s]};return e}function Dr(t,n){let e=t&&t.options.stacked;return e||e===void 0&&n.stack!==void 0}function p_(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}function d_(t){let{min:n,max:e,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}function u_(t,n,e){let i=t[n]||(t[n]={});return i[e]||(i[e]={})}function Pr(t,n,e,i){for(let o of n.getMatchingVisibleMetas(i).reverse()){let s=t[o.index];if(e&&s>0||!e&&s<0)return o.index}return null}function Ar(t,n){let{chart:e,_cachedMeta:i}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:a,index:r}=i,l=s.axis,c=a.axis,p=p_(s,a,i),d=n.length,u;for(let h=0;h<d;++h){let _=n[h],{[l]:b,[c]:y}=_,w=_._stacks||(_._stacks={});u=w[c]=u_(o,p,b),u[r]=y,u._top=Pr(u,a,!0,i.type),u._bottom=Pr(u,a,!1,i.type);let v=u._visualValues||(u._visualValues={});v[r]=y}}function ts(t,n){let e=t.scales;return Object.keys(e).filter(i=>e[i].axis===n).shift()}function h_(t,n){return Et(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function f_(t,n,e){return Et(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Wi(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let o of n){let s=o._stacks;if(!s||s[i]===void 0||s[i][e]===void 0)return;delete s[i][e],s[i]._visualValues!==void 0&&s[i]._visualValues[e]!==void 0&&delete s[i]._visualValues[e]}}}var is=t=>t==="reset"||t==="none",zr=(t,n)=>n?t:Object.assign({},t),m_=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:Ll(e,!0),values:null},Qt=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,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(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Dr(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&&Wi(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,o=this.getDataset(),s=(u,h,_,b)=>u==="x"?h:u==="r"?b:_,a=i.xAxisID=G(o.xAxisID,ts(e,"x")),r=i.yAxisID=G(o.yAxisID,ts(e,"y")),l=i.rAxisID=G(o.rAxisID,ts(e,"r")),c=i.indexAxis,p=i.iAxisID=s(c,a,r,l),d=i.vAxisID=s(c,r,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(r),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(p),i.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&Do(this._data,this),e._stacked&&Wi(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),o=this._data;if(ee(i))this._data=c_(i);else if(o!==i){if(o){Do(o,this);let s=this._cachedMeta;Wi(s),s._parsed=[]}i&&Object.isExtensible(i)&&ur(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,o=this.getDataset(),s=!1;this._dataCheck();let a=i._stacked;i._stacked=Dr(i.vScale,i),i.stack!==o.stack&&(s=!0,Wi(i),i.stack=o.stack),this._resyncElements(e),(s||a!==i._stacked)&&Ar(this,i._parsed)}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:o,_data:s}=this,{iScale:a,_stacked:r}=o,l=a.axis,c=e===0&&i===s.length?!0:o._sorted,p=e>0&&o._parsed[e-1],d,u,h;if(this._parsing===!1)o._parsed=s,o._sorted=!0,h=s;else{be(s[e])?h=this.parseArrayData(o,s,e,i):ee(s[e])?h=this.parseObjectData(o,s,e,i):h=this.parsePrimitiveData(o,s,e,i);let _=()=>u[l]===null||p&&u[l]<p[l];for(d=0;d<i;++d)o._parsed[d+e]=u=h[d],c&&(_()&&(c=!1),p=u);o._sorted=c}r&&Ar(this,h)}parsePrimitiveData(e,i,o,s){let{iScale:a,vScale:r}=e,l=a.axis,c=r.axis,p=a.getLabels(),d=a===r,u=new Array(s),h,_,b;for(h=0,_=s;h<_;++h)b=h+o,u[h]={[l]:d||a.parse(p[b],b),[c]:r.parse(i[b],b)};return u}parseArrayData(e,i,o,s){let{xScale:a,yScale:r}=e,l=new Array(s),c,p,d,u;for(c=0,p=s;c<p;++c)d=c+o,u=i[d],l[c]={x:a.parse(u[0],d),y:r.parse(u[1],d)};return l}parseObjectData(e,i,o,s){let{xScale:a,yScale:r}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,p=new Array(s),d,u,h,_;for(d=0,u=s;d<u;++d)h=d+o,_=i[h],p[d]={x:a.parse(Ft(_,l),h),y:r.parse(Ft(_,c),h)};return p}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,i,o){let s=this.chart,a=this._cachedMeta,r=i[e.axis],l={keys:Ll(s,!0),values:i._stacks[e.axis]._visualValues};return Vr(l,r,a.index,{mode:o})}updateRangeFromParsed(e,i,o,s){let a=o[i.axis],r=a===null?NaN:a,l=s&&o._stacks[i.axis];s&&l&&(s.values=l,r=Vr(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,r),e.max=Math.max(e.max,r)}getMinMax(e,i){let o=this._cachedMeta,s=o._parsed,a=o._sorted&&e===o.iScale,r=s.length,l=this._getOtherScale(e),c=m_(i,o,this.chart),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=d_(l),h,_;function b(){_=s[h];let y=_[l.axis];return!we(_[e.axis])||d>y||u<y}for(h=0;h<r&&!(!b()&&(this.updateRangeFromParsed(p,e,_,c),a));++h);if(a){for(h=r-1;h>=0;--h)if(!b()){this.updateRangeFromParsed(p,e,_,c);break}}return p}getAllParsedValues(e){let i=this._cachedMeta._parsed,o=[],s,a,r;for(s=0,a=i.length;s<a;++s)r=i[s][e.axis],we(r)&&o.push(r);return o}getMaxOverflow(){return!1}getLabelAndValue(e){let i=this._cachedMeta,o=i.iScale,s=i.vScale,a=this.getParsed(e);return{label:o?""+o.getLabelForValue(a[o.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){let i=this._cachedMeta;this.update(e||"default"),i._clip=l_(G(this.options.clip,r_(i.xScale,i.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,i=this.chart,o=this._cachedMeta,s=o.data||[],a=i.chartArea,r=[],l=this._drawStart||0,c=this._drawCount||s.length-l,p=this.options.drawActiveElementsOnTop,d;for(o.dataset&&o.dataset.draw(e,a,l,c),d=l;d<l+c;++d){let u=s[d];u.hidden||(u.active&&p?r.push(u):u.draw(e,a))}for(d=0;d<r.length;++d)r[d].draw(e,a)}getStyle(e,i){let o=i?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,i,o){let s=this.getDataset(),a;if(e>=0&&e<this._cachedMeta.data.length){let r=this._cachedMeta.data[e];a=r.$context||(r.$context=f_(this.getContext(),e,r)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=h_(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=o,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,i){return this._resolveElementOptions(this.dataElementType.id,i,e)}_resolveElementOptions(e,i="default",o){let s=i==="active",a=this._cachedDataOpts,r=e+"-"+i,l=a[r],c=this.enableOptionSharing&&xi(o);if(l)return zr(l,c);let p=this.chart.config,d=p.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],h=p.getOptionScopes(this.getDataset(),d),_=Object.keys(Te.elements[e]),b=()=>this.getContext(o,s,i),y=p.resolveNamedOptions(h,_,b,u);return y.$shared&&(y.$shared=c,a[r]=Object.freeze(zr(y,c))),y}_resolveAnimations(e,i,o){let s=this.chart,a=this._cachedDataOpts,r=`animation-${i}`,l=a[r];if(l)return l;let c;if(s.options.animation!==!1){let d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,i),h=d.getOptionScopes(this.getDataset(),u);c=d.createResolver(h,this.getContext(e,o,i))}let p=new Xn(s,c&&c.animations);return c&&c._cacheable&&(a[r]=Object.freeze(p)),p}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||is(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let o=this.resolveDataElementOptions(e,i),s=this._sharedOptions,a=this.getSharedOptions(o),r=this.includeOptions(i,a)||a!==s;return this.updateSharedOptions(a,i,o),{sharedOptions:a,includeOptions:r}}updateElement(e,i,o,s){is(s)?Object.assign(e,o):this._resolveAnimations(i,s).update(e,o)}updateSharedOptions(e,i,o){e&&!is(i)&&this._resolveAnimations(void 0,i).update(e,o)}_setStyle(e,i,o,s){e.active=s;let a=this.getStyle(i,s);this._resolveAnimations(i,o,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,i,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,o=this._cachedMeta.data;for(let[l,c,p]of this._syncList)this[l](c,p);this._syncList=[];let s=o.length,a=i.length,r=Math.min(a,s);r&&this.parse(0,r),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,i,o=!0){let s=this._cachedMeta,a=s.data,r=e+i,l,c=p=>{for(p.length+=i,l=p.length-1;l>=r;l--)p[l]=p[l-i]};for(c(a),l=e;l<r;++l)a[l]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(e,i),o&&this.updateElements(a,e,i,"reset")}updateElements(e,i,o,s){}_removeElements(e,i){let o=this._cachedMeta;if(this._parsing){let s=o._parsed.splice(e,i);o._stacked&&Wi(o,s)}o.data.splice(e,i)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[i,o,s]=e;this[i](o,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let 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,i){i&&this._sync(["_removeElements",e,i]);let o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return t})();function g_(t,n){if(!t._cache.$bar){let e=t.getMatchingVisibleMetas(n),i=[];for(let o=0,s=e.length;o<s;o++)i=i.concat(e[o].controller.getAllParsedValues(t));t._cache.$bar=Po(i.sort((o,s)=>o-s))}return t._cache.$bar}function __(t){let n=t.iScale,e=g_(n,t.type),i=n._length,o,s,a,r,l=()=>{a===32767||a===-32768||(xi(r)&&(i=Math.min(i,Math.abs(a-r)||i)),r=a)};for(o=0,s=e.length;o<s;++o)a=n.getPixelForValue(e[o]),l();for(r=void 0,o=0,s=n.ticks.length;o<s;++o)a=n.getPixelForTick(o),l();return i}function b_(t,n,e,i){let o=e.barThickness,s,a;return ie(o)?(s=n.min*e.categoryPercentage,a=e.barPercentage):(s=o*i,a=1),{chunk:s/i,ratio:a,start:n.pixels[t]-s/2}}function y_(t,n,e,i){let o=n.pixels,s=o[t],a=t>0?o[t-1]:null,r=t<o.length-1?o[t+1]:null,l=e.categoryPercentage;a===null&&(a=s-(r===null?n.end-n.start:r-s)),r===null&&(r=s+s-a);let c=s-(s-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/i,ratio:e.barPercentage,start:c}}function x_(t,n,e,i){let o=e.parse(t[0],i),s=e.parse(t[1],i),a=Math.min(o,s),r=Math.max(o,s),l=a,c=r;Math.abs(a)>Math.abs(r)&&(l=r,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:o,end:s,min:a,max:r}}function Vl(t,n,e,i){return be(t)?x_(t,n,e,i):n[e.axis]=e.parse(t,i),n}function $r(t,n,e,i){let o=t.iScale,s=t.vScale,a=o.getLabels(),r=o===s,l=[],c,p,d,u;for(c=e,p=e+i;c<p;++c)u=n[c],d={},d[o.axis]=r||o.parse(a[c],c),l.push(Vl(u,d,s,c));return l}function ns(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function v_(t,n,e){return t!==0?dt(t):(n.isHorizontal()?1:-1)*(n.min>=e?1:-1)}function C_(t){let n,e,i,o,s;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base<t.y,e="bottom",i="top"),n?(o="end",s="start"):(o="start",s="end"),{start:e,end:i,reverse:n,top:o,bottom:s}}function w_(t,n,e,i){let o=n.borderSkipped,s={};if(!o){t.borderSkipped=s;return}if(o===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:a,end:r,reverse:l,top:c,bottom:p}=C_(t);o==="middle"&&e&&(t.enableBorderRadius=!0,(e._top||0)===i?o=c:(e._bottom||0)===i?o=p:(s[Rr(p,a,r,l)]=!0,o=c)),s[Rr(o,a,r,l)]=!0,t.borderSkipped=s}function Rr(t,n,e,i){return i?(t=T_(t,n,e),t=Br(t,e,n)):t=Br(t,n,e),t}function T_(t,n,e){return t===n?e:t===e?n:t}function Br(t,n,e){return t==="start"?n:t==="end"?e:t}function I_(t,{inflateAmount:n},e){t.inflateAmount=n==="auto"?e===1?.33:0:n}var S_=(()=>{class t extends Qt{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,o,s){return $r(e,i,o,s)}parseArrayData(e,i,o,s){return $r(e,i,o,s)}parseObjectData(e,i,o,s){let{iScale:a,vScale:r}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,p=a.axis==="x"?l:c,d=r.axis==="x"?l:c,u=[],h,_,b,y;for(h=o,_=o+s;h<_;++h)y=i[h],b={},b[a.axis]=a.parse(Ft(y,p),h),u.push(Vl(Ft(y,d),b,r,h));return u}updateRangeFromParsed(e,i,o,s){super.updateRangeFromParsed(e,i,o,s);let a=o._custom;a&&i===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let i=this._cachedMeta,{iScale:o,vScale:s}=i,a=this.getParsed(e),r=a._custom,l=ns(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(a[s.axis]);return{label:""+o.getLabelForValue(a[o.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,e)}updateElements(e,i,o,s){let a=s==="reset",{index:r,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),p=l.isHorizontal(),d=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(i,s);for(let _=i;_<i+o;_++){let b=this.getParsed(_),y=a||ie(b[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(_),w=this._calculateBarIndexPixels(_,d),v=(b._stacks||{})[l.axis],M={horizontal:p,base:y.base,enableBorderRadius:!v||ns(b._custom)||r===v._top||r===v._bottom,x:p?y.head:w.center,y:p?w.center:y.head,height:p?w.size:Math.abs(y.size),width:p?Math.abs(y.size):w.size};h&&(M.options=u||this.resolveDataElementOptions(_,e[_].active?"active":s));let V=M.options||e[_].options;w_(M,V,v,r),I_(M,V,d.ratio),this.updateElement(e[_],_,M,s)}}_getStacks(e,i){let{iScale:o}=this._cachedMeta,s=o.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),a=o.options.stacked,r=[],l=c=>{let p=c.controller.getParsed(i),d=p&&p[c.vScale.axis];if(ie(d)||isNaN(d))return!0};for(let c of s)if(!(i!==void 0&&l(c))&&((a===!1||r.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&r.push(c.stack),c.index===e))break;return r.length||r.push(void 0),r}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,i,o){let s=this._getStacks(e,o),a=i!==void 0?s.indexOf(i):-1;return a===-1?s.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,o=i.iScale,s=[],a,r;for(a=0,r=i.data.length;a<r;++a)s.push(o.getPixelForValue(this.getParsed(a)[o.axis],a));let l=e.barThickness;return{min:l||__(i),pixels:s,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:i,_stacked:o,index:s},options:{base:a,minBarLength:r}}=this,l=a||0,c=this.getParsed(e),p=c._custom,d=ns(p),u=c[i.axis],h=0,_=o?this.applyStack(i,c,o):u,b,y;_!==u&&(h=_-u,_=u),d&&(u=p.barStart,_=p.barEnd-p.barStart,u!==0&&dt(u)!==dt(p.barEnd)&&(h=0),h+=u);let w=!ie(a)&&!d?a:h,v=i.getPixelForValue(w);if(this.chart.getDataVisibility(e)?b=i.getPixelForValue(h+_):b=v,y=b-v,Math.abs(y)<r){y=v_(y,i,l)*r,u===l&&(v-=y/2);let M=i.getPixelForDecimal(0),V=i.getPixelForDecimal(1),I=Math.min(M,V),L=Math.max(M,V);v=Math.max(Math.min(v,L),I),b=v+y,o&&!d&&(c._stacks[i.axis]._visualValues[s]=i.getValueForPixel(b)-i.getValueForPixel(v))}if(v===i.getPixelForValue(l)){let M=dt(y)*i.getLineWidthForValue(l)/2;v+=M,y-=M}return{size:y,base:v,head:b,center:b+y/2}}_calculateBarIndexPixels(e,i){let o=i.scale,s=this.options,a=s.skipNull,r=G(s.maxBarThickness,1/0),l,c;if(i.grouped){let p=a?this._getStackCount(e):i.stackCount,d=s.barThickness==="flex"?y_(e,i,s,p):b_(e,i,s,p),u=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);l=d.start+d.chunk*u+d.chunk/2,c=Math.min(r,d.chunk*d.ratio)}else l=o.getPixelForValue(this.getParsed(e)[o.axis],e),c=Math.min(r,i.min*i.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let e=this._cachedMeta,i=e.vScale,o=e.data,s=o.length,a=0;for(;a<s;++a)this.getParsed(a)[i.axis]!==null&&o[a].draw(this._ctx)}}return t})(),k_=(()=>{class t extends Qt{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,o,s){let a=super.parsePrimitiveData(e,i,o,s);for(let r=0;r<a.length;r++)a[r]._custom=this.resolveDataElementOptions(r+o).radius;return a}parseArrayData(e,i,o,s){let a=super.parseArrayData(e,i,o,s);for(let r=0;r<a.length;r++){let l=i[o+r];a[r]._custom=G(l[2],this.resolveDataElementOptions(r+o).radius)}return a}parseObjectData(e,i,o,s){let a=super.parseObjectData(e,i,o,s);for(let r=0;r<a.length;r++){let l=i[o+r];a[r]._custom=G(l&&l.r&&+l.r,this.resolveDataElementOptions(r+o).radius)}return a}getMaxOverflow(){let e=this._cachedMeta.data,i=0;for(let o=e.length-1;o>=0;--o)i=Math.max(i,e[o].size(this.resolveDataElementOptions(o))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,r=this.getParsed(e),l=s.getLabelForValue(r.x),c=a.getLabelForValue(r.y),p=r._custom;return{label:o[e]||"",value:"("+l+", "+c+(p?", "+p:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:p}=this._getSharedOptions(i,s),d=r.axis,u=l.axis;for(let h=i;h<i+o;h++){let _=e[h],b=!a&&this.getParsed(h),y={},w=y[d]=a?r.getPixelForDecimal(.5):r.getPixelForValue(b[d]),v=y[u]=a?l.getBasePixel():l.getPixelForValue(b[u]);y.skip=isNaN(w)||isNaN(v),p&&(y.options=c||this.resolveDataElementOptions(h,_.active?"active":s),a&&(y.options.radius=0)),this.updateElement(_,h,y,s)}}resolveDataElementOptions(e,i){let o=this.getParsed(e),s=super.resolveDataElementOptions(e,i);s.$shared&&(s=Object.assign({},s,{$shared:!1}));let a=s.radius;return i!=="active"&&(s.radius=0),s.radius+=G(o&&o._custom,a),s}}return t})();function O_(t,n,e){let i=1,o=1,s=0,a=0;if(n<xe){let r=t,l=r+n,c=Math.cos(r),p=Math.sin(r),d=Math.cos(l),u=Math.sin(l),h=(M,V,I)=>Ci(M,r,l,!0)?1:Math.max(V,V*e,I,I*e),_=(M,V,I)=>Ci(M,r,l,!0)?-1:Math.min(V,V*e,I,I*e),b=h(0,c,d),y=h(Se,p,u),w=_(ye,c,d),v=_(ye+Se,p,u);i=(b-w)/2,o=(y-v)/2,s=-(b+w)/2,a=-(y+v)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:a}}var Es=(()=>{class t extends Qt{static id="doughnut";static 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"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,r)=>{let c=e.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let o=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=o;else{let a=c=>+o[c];if(ee(o[e])){let{key:c="value"}=this._parsing;a=p=>+Ft(o[p],c)}let r,l;for(r=e,l=e+i;r<l;++r)s._parsed[r]=a(r)}}_getRotation(){return lt(this.options.rotation-90)}_getCircumference(){return lt(this.options.circumference)}_getRotationExtents(){let e=xe,i=-xe;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){let s=this.chart.getDatasetMeta(o).controller,a=s._getRotation(),r=s._getCircumference();e=Math.min(e,a),i=Math.max(i,a+r)}return{rotation:e,circumference:i-e}}update(e){let i=this.chart,{chartArea:o}=i,s=this._cachedMeta,a=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(o.width,o.height)-r)/2,0),c=Math.min(nr(this.options.cutout,l),1),p=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:_,offsetX:b,offsetY:y}=O_(u,d,c),w=(o.width-r)/h,v=(o.height-r)/_,M=Math.max(Math.min(w,v)/2,0),V=Oo(this.options.radius,M),I=Math.max(V*c,0),L=(V-I)/this._getVisibleDatasetWeightTotal();this.offsetX=b*V,this.offsetY=y*V,s.total=this.calculateTotal(),this.outerRadius=V-L*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-L*p,0),this.updateElements(a,0,a.length,e)}_circumference(e,i){let o=this.options,s=this._cachedMeta,a=this._getCircumference();return i&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/xe)}updateElements(e,i,o,s){let a=s==="reset",r=this.chart,l=r.chartArea,p=r.options.animation,d=(l.left+l.right)/2,u=(l.top+l.bottom)/2,h=a&&p.animateScale,_=h?0:this.innerRadius,b=h?0:this.outerRadius,{sharedOptions:y,includeOptions:w}=this._getSharedOptions(i,s),v=this._getRotation(),M;for(M=0;M<i;++M)v+=this._circumference(M,a);for(M=i;M<i+o;++M){let V=this._circumference(M,a),I=e[M],L={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+V,circumference:V,outerRadius:b,innerRadius:_};w&&(L.options=y||this.resolveDataElementOptions(M,I.active?"active":s)),v+=V,this.updateElement(I,M,L,s)}}calculateTotal(){let e=this._cachedMeta,i=e.data,o=0,s;for(s=0;s<i.length;s++){let a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(o+=Math.abs(a))}return o}calculateCircumference(e){let i=this._cachedMeta.total;return i>0&&!isNaN(e)?xe*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart,s=o.data.labels||[],a=wi(i._parsed[e],o.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let i=0,o=this.chart,s,a,r,l,c;if(!e){for(s=0,a=o.data.datasets.length;s<a;++s)if(o.isDatasetVisible(s)){r=o.getDatasetMeta(s),e=r.data,l=r.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)c=l.resolveDataElementOptions(s),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(e){let i=0;for(let o=0,s=e.length;o<s;++o){let a=this.resolveDataElementOptions(o);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(e){let i=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(i+=this._getRingWeight(o));return i}_getRingWeight(e){return Math.max(G(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return t})(),M_=(()=>{class t extends Qt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:o,data:s=[],_dataset:a}=i,r=this.chart._animationsDisabled,{start:l,count:c}=$o(i,s,r);this._drawStart=l,this._drawCount=c,Ro(i)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=s;let p=this.resolveDatasetElementOptions(e);this.options.showLine||(p.borderWidth=0),p.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:p},e),this.updateElements(s,l,c,e)}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:p}=this._cachedMeta,{sharedOptions:d,includeOptions:u}=this._getSharedOptions(i,s),h=r.axis,_=l.axis,{spanGaps:b,segment:y}=this.options,w=Jt(b)?b:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||s==="none",M=i+o,V=e.length,I=i>0&&this.getParsed(i-1);for(let L=0;L<V;++L){let z=e[L],D=v?z:{};if(L<i||L>=M){D.skip=!0;continue}let B=this.getParsed(L),X=ie(B[_]),Y=D[h]=r.getPixelForValue(B[h],L),te=D[_]=a||X?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,B,c):B[_],L);D.skip=isNaN(Y)||isNaN(te)||X,D.stop=L>0&&Math.abs(B[h]-I[h])>w,y&&(D.parsed=B,D.raw=p.data[L]),u&&(D.options=d||this.resolveDataElementOptions(L,z.active?"active":s)),v||this.updateElement(z,L,D,s),I=B}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,o=i.options&&i.options.borderWidth||0,s=e.data||[];if(!s.length)return o;let a=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,a,r)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),Dl=(()=>{class t extends Qt{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,r)=>{let c=e.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart,s=o.data.labels||[],a=wi(i._parsed[e].r,o.options.locale);return{label:s[e]||"",value:a}}parseObjectData(e,i,o,s){return qo.bind(this)(e,i,o,s)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((o,s)=>{let a=this.getParsed(s).r;!isNaN(a)&&this.chart.getDataVisibility(s)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,o=e.options,s=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(s/2,0),r=Math.max(o.cutoutPercentage?a/100*o.cutoutPercentage:1,0),l=(a-r)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,o,s){let a=s==="reset",r=this.chart,c=r.options.animation,p=this._cachedMeta.rScale,d=p.xCenter,u=p.yCenter,h=p.getIndexAngle(0)-.5*ye,_=h,b,y=360/this.countVisibleElements();for(b=0;b<i;++b)_+=this._computeAngle(b,s,y);for(b=i;b<i+o;b++){let w=e[b],v=_,M=_+this._computeAngle(b,s,y),V=r.getDataVisibility(b)?p.getDistanceFromCenterForValue(this.getParsed(b).r):0;_=M,a&&(c.animateScale&&(V=0),c.animateRotate&&(v=M=h));let I={x:d,y:u,innerRadius:0,outerRadius:V,startAngle:v,endAngle:M,options:this.resolveDataElementOptions(b,w.active?"active":s)};this.updateElement(w,b,I,s)}}countVisibleElements(){let e=this._cachedMeta,i=0;return e.data.forEach((o,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(e,i,o){return this.chart.getDataVisibility(e)?lt(this.resolveDataElementOptions(e,i).angle||o):0}}return t})(),F_=(()=>{class t extends Es{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),E_=(()=>{class t extends Qt{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,o=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(o[i.axis])}}parseObjectData(e,i,o,s){return qo.bind(this)(e,i,o,s)}update(e){let i=this._cachedMeta,o=i.dataset,s=i.data||[],a=i.iScale.getLabels();if(o.points=s,e!=="resize"){let r=this.resolveDatasetElementOptions(e);this.options.showLine||(r.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===s.length,options:r};this.updateElement(o,void 0,l,e)}this.updateElements(s,0,s.length,e)}updateElements(e,i,o,s){let a=this._cachedMeta.rScale,r=s==="reset";for(let l=i;l<i+o;l++){let c=e[l],p=this.resolveDataElementOptions(l,c.active?"active":s),d=a.getPointPositionForValue(l,this.getParsed(l).r),u=r?a.xCenter:d.x,h=r?a.yCenter:d.y,_={x:u,y:h,angle:d.angle,skip:isNaN(u)||isNaN(h),options:p};this.updateElement(c,l,_,s)}}}return t})(),L_=(()=>{class t extends Qt{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,r=this.getParsed(e),l=s.getLabelForValue(r.x),c=a.getLabelForValue(r.y);return{label:o[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:o=[]}=i,s=this.chart._animationsDisabled,{start:a,count:r}=$o(i,o,s);if(this._drawStart=a,this._drawCount=r,Ro(i)&&(a=0,r=o.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;let p=this.resolveDatasetElementOptions(e);p.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:p},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(o,a,r,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:p}=this._cachedMeta,d=this.resolveDataElementOptions(i,s),u=this.getSharedOptions(d),h=this.includeOptions(s,u),_=r.axis,b=l.axis,{spanGaps:y,segment:w}=this.options,v=Jt(y)?y:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||a||s==="none",V=i>0&&this.getParsed(i-1);for(let I=i;I<i+o;++I){let L=e[I],z=this.getParsed(I),D=M?L:{},B=ie(z[b]),X=D[_]=r.getPixelForValue(z[_],I),Y=D[b]=a||B?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,z,c):z[b],I);D.skip=isNaN(X)||isNaN(Y)||B,D.stop=I>0&&Math.abs(z[_]-V[_])>v,w&&(D.parsed=z,D.raw=p.data[I]),h&&(D.options=u||this.resolveDataElementOptions(I,L.active?"active":s)),M||this.updateElement(L,I,D,s),V=z}this.updateSharedOptions(u,s,d)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!i.length)return s;let a=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,a,r)/2}}return t})(),V_=Object.freeze({__proto__:null,BarController:S_,BubbleController:k_,DoughnutController:Es,LineController:M_,PieController:F_,PolarAreaController:Dl,RadarController:E_,ScatterController:L_});function ti(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var us=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return ti()}parse(){return ti()}format(){return ti()}add(){return ti()}diff(){return ti()}startOf(){return ti()}endOf(){return ti()}},D_={_date:us};function P_(t,n,e,i){let{controller:o,data:s,_sorted:a}=t,r=o._cachedMeta.iScale;if(r&&n===r.axis&&n!=="r"&&a&&s.length){let l=r._reversePixels?cr:yt;if(i){if(o._sharedOptions){let c=s[0],p=typeof c.getRange=="function"&&c.getRange(n);if(p){let d=l(s,n,e-p),u=l(s,n,e+p);return{lo:d.lo,hi:u.hi}}}}else return l(s,n,e)}return{lo:0,hi:s.length-1}}function tn(t,n,e,i,o){let s=t.getSortedVisibleDatasetMetas(),a=e[n];for(let r=0,l=s.length;r<l;++r){let{index:c,data:p}=s[r],{lo:d,hi:u}=P_(s[r],n,a,o);for(let h=d;h<=u;++h){let _=p[h];_.skip||i(_,c,h)}}}function A_(t){let n=t.indexOf("x")!==-1,e=t.indexOf("y")!==-1;return function(i,o){let s=n?Math.abs(i.x-o.x):0,a=e?Math.abs(i.y-o.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function os(t,n,e,i,o){let s=[];return!o&&!t.isPointInArea(n)||tn(t,e,n,function(r,l,c){!o&&!xt(r,t.chartArea,0)||r.inRange(n.x,n.y,i)&&s.push({element:r,datasetIndex:l,index:c})},!0),s}function z_(t,n,e,i){let o=[];function s(a,r,l){let{startAngle:c,endAngle:p}=a.getProps(["startAngle","endAngle"],i),{angle:d}=Vo(a,{x:n.x,y:n.y});Ci(d,c,p)&&o.push({element:a,datasetIndex:r,index:l})}return tn(t,e,n,s),o}function $_(t,n,e,i,o,s){let a=[],r=A_(e),l=Number.POSITIVE_INFINITY;function c(p,d,u){let h=p.inRange(n.x,n.y,o);if(i&&!h)return;let _=p.getCenterPoint(o);if(!(!!s||t.isPointInArea(_))&&!h)return;let y=r(n,_);y<l?(a=[{element:p,datasetIndex:d,index:u}],l=y):y===l&&a.push({element:p,datasetIndex:d,index:u})}return tn(t,e,n,c),a}function ss(t,n,e,i,o,s){return!s&&!t.isPointInArea(n)?[]:e==="r"&&!i?z_(t,n,e,o):$_(t,n,e,i,o,s)}function Hr(t,n,e,i,o){let s=[],a=e==="x"?"inXRange":"inYRange",r=!1;return tn(t,e,n,(l,c,p)=>{l[a](n[e],o)&&(s.push({element:l,datasetIndex:c,index:p}),r=r||l.inRange(n.x,n.y,o))}),i&&!r?[]:s}var R_={evaluateInteractionItems:tn,modes:{index(t,n,e,i){let o=Ut(n,t),s=e.axis||"x",a=e.includeInvisible||!1,r=e.intersect?os(t,o,s,i,a):ss(t,o,s,!1,i,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let p=r[0].index,d=c.data[p];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:p})}),l):[]},dataset(t,n,e,i){let o=Ut(n,t),s=e.axis||"xy",a=e.includeInvisible||!1,r=e.intersect?os(t,o,s,i,a):ss(t,o,s,!1,i,a);if(r.length>0){let l=r[0].datasetIndex,c=t.getDatasetMeta(l).data;r=[];for(let p=0;p<c.length;++p)r.push({element:c[p],datasetIndex:l,index:p})}return r},point(t,n,e,i){let o=Ut(n,t),s=e.axis||"xy",a=e.includeInvisible||!1;return os(t,o,s,i,a)},nearest(t,n,e,i){let o=Ut(n,t),s=e.axis||"xy",a=e.includeInvisible||!1;return ss(t,o,s,e.intersect,i,a)},x(t,n,e,i){let o=Ut(n,t);return Hr(t,o,"x",e.intersect,i)},y(t,n,e,i){let o=Ut(n,t);return Hr(t,o,"y",e.intersect,i)}}},Pl=["left","top","right","bottom"];function Qi(t,n){return t.filter(e=>e.pos===n)}function Nr(t,n){return t.filter(e=>Pl.indexOf(e.pos)===-1&&e.box.axis===n)}function Ki(t,n){return t.sort((e,i)=>{let o=n?i:e,s=n?e:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function B_(t){let n=[],e,i,o,s,a,r;for(e=0,i=(t||[]).length;e<i;++e)o=t[e],{position:s,options:{stack:a,stackWeight:r=1}}=o,n.push({index:e,box:o,pos:s,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&s+a,stackWeight:r});return n}function H_(t){let n={};for(let e of t){let{stack:i,pos:o,stackWeight:s}=e;if(!i||!Pl.includes(o))continue;let a=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return n}function N_(t,n){let e=H_(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=n,s,a,r;for(s=0,a=t.length;s<a;++s){r=t[s];let{fullSize:l}=r.box,c=e[r.stack],p=c&&r.stackWeight/c.weight;r.horizontal?(r.width=p?p*i:l&&n.availableWidth,r.height=o):(r.width=i,r.height=p?p*o:l&&n.availableHeight)}return e}function j_(t){let n=B_(t),e=Ki(n.filter(c=>c.box.fullSize),!0),i=Ki(Qi(n,"left"),!0),o=Ki(Qi(n,"right")),s=Ki(Qi(n,"top"),!0),a=Ki(Qi(n,"bottom")),r=Nr(n,"x"),l=Nr(n,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:o.concat(l).concat(a).concat(r),chartArea:Qi(n,"chartArea"),vertical:i.concat(o).concat(l),horizontal:s.concat(a).concat(r)}}function jr(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function Al(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function U_(t,n,e,i){let{pos:o,box:s}=e,a=t.maxPadding;if(!ee(o)){e.size&&(t[o]-=e.size);let d=i[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?s.height:s.width),e.size=d.size/d.count,t[o]+=e.size}s.getPadding&&Al(a,s.getPadding());let r=Math.max(0,n.outerWidth-jr(a,t,"left","right")),l=Math.max(0,n.outerHeight-jr(a,t,"top","bottom")),c=r!==t.w,p=l!==t.h;return t.w=r,t.h=l,e.horizontal?{same:c,other:p}:{same:p,other:c}}function W_(t){let n=t.maxPadding;function e(i){let o=Math.max(n[i]-t[i],0);return t[i]+=o,o}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function Q_(t,n){let e=n.maxPadding;function i(o){let s={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{s[a]=Math.max(n[a],e[a])}),s}return i(t?["left","right"]:["top","bottom"])}function Yi(t,n,e,i){let o=[],s,a,r,l,c,p;for(s=0,a=t.length,c=0;s<a;++s){r=t[s],l=r.box,l.update(r.width||n.w,r.height||n.h,Q_(r.horizontal,n));let{same:d,other:u}=U_(n,e,r,i);c|=d&&o.length,p=p||u,l.fullSize||o.push(r)}return c&&Yi(o,n,e,i)||p}function Nn(t,n,e,i,o){t.top=e,t.left=n,t.right=n+i,t.bottom=e+o,t.width=i,t.height=o}function Ur(t,n,e,i){let o=e.padding,{x:s,y:a}=n;for(let r of t){let l=r.box,c=i[r.stack]||{count:1,placed:0,weight:1},p=r.stackWeight/c.weight||1;if(r.horizontal){let d=n.w*p,u=c.size||l.height;xi(c.start)&&(a=c.start),l.fullSize?Nn(l,o.left,a,e.outerWidth-o.right-o.left,u):Nn(l,n.left+c.placed,a,d,u),c.start=a,c.placed+=d,a=l.bottom}else{let d=n.h*p,u=c.size||l.width;xi(c.start)&&(s=c.start),l.fullSize?Nn(l,s,o.top,u,e.outerHeight-o.bottom-o.top):Nn(l,s,n.top+c.placed,u,d),c.start=s,c.placed+=d,s=l.right}}n.x=s,n.y=a}var Ye={addBox(t,n){t.boxes||(t.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(e){n.draw(e)}}]},t.boxes.push(n)},removeBox(t,n){let e=t.boxes?t.boxes.indexOf(n):-1;e!==-1&&t.boxes.splice(e,1)},configure(t,n,e){n.fullSize=e.fullSize,n.position=e.position,n.weight=e.weight},update(t,n,e,i){if(!t)return;let o=Qe(t.options.layout.padding),s=Math.max(n-o.width,0),a=Math.max(e-o.height,0),r=j_(t.boxes),l=r.vertical,c=r.horizontal;se(t.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});let p=l.reduce((b,y)=>y.box.options&&y.box.options.display===!1?b:b+1,0)||1,d=Object.freeze({outerWidth:n,outerHeight:e,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/p,hBoxMaxHeight:a/2}),u=Object.assign({},o);Al(u,Qe(i));let h=Object.assign({maxPadding:u,w:s,h:a,x:o.left,y:o.top},o),_=N_(l.concat(c),d);Yi(r.fullSize,h,d,_),Yi(l,h,d,_),Yi(c,h,d,_)&&Yi(l,h,d,_),W_(h),Ur(r.leftAndTop,h,d,_),h.x+=h.w,h.y+=h.h,Ur(r.rightAndBottom,h,d,_),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},se(r.chartArea,b=>{let y=b.box;Object.assign(y,t.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},Zn=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,o){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,o?Math.floor(e/o):i)}}isAttached(n){return!0}updateConfig(n){}},hs=class extends Zn{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},Gn="$chartjs",K_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Wr=t=>t===null||t==="";function q_(t,n){let e=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Gn]={initial:{height:i,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Wr(o)){let s=Yo(t,"width");s!==void 0&&(t.width=s)}if(Wr(i))if(t.style.height==="")t.height=t.width/(n||2);else{let s=Yo(t,"height");s!==void 0&&(t.height=s)}return t}var zl=Sr?{passive:!0}:!1;function G_(t,n,e){t&&t.addEventListener(n,e,zl)}function Y_(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,zl)}function X_(t,n){let e=K_[t.type]||t.type,{x:i,y:o}=Ut(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:o!==void 0?o:null}}function Jn(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function Z_(t,n,e){let i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(let r of s)a=a||Jn(r.addedNodes,i),a=a&&!Jn(r.removedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function J_(t,n,e){let i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(let r of s)a=a||Jn(r.removedNodes,i),a=a&&!Jn(r.addedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}var Zi=new Map,Qr=0;function $l(){let t=window.devicePixelRatio;t!==Qr&&(Qr=t,Zi.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function eb(t,n){Zi.size||window.addEventListener("resize",$l),Zi.set(t,n)}function tb(t){Zi.delete(t),Zi.size||window.removeEventListener("resize",$l)}function ib(t,n,e){let i=t.canvas,o=i&&Bn(i);if(!o)return;let s=zo((r,l)=>{let c=o.clientWidth;e(r,l),c<o.clientWidth&&e()},window),a=new ResizeObserver(r=>{let l=r[0],c=l.contentRect.width,p=l.contentRect.height;c===0&&p===0||s(c,p)});return a.observe(o),eb(t,s),a}function as(t,n,e){e&&e.disconnect(),n==="resize"&&tb(t)}function nb(t,n,e){let i=t.canvas,o=zo(s=>{t.ctx!==null&&e(X_(s,t))},t);return G_(i,n,o),o}var fs=class extends Zn{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(q_(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[Gn])return!1;let i=e[Gn].initial;["height","width"].forEach(s=>{let a=i[s];ie(a)?e.removeAttribute(s):e.setAttribute(s,a)});let o=i.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[Gn],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let o=n.$proxies||(n.$proxies={}),a={attach:Z_,detach:J_,resize:ib}[e]||nb;o[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),o=i[e];if(!o)return;({attach:as,detach:as,resize:as}[e]||Y_)(n,e,o),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,o){return Ir(n,e,i,o)}isAttached(n){let e=Bn(n);return!!(e&&e.isConnected)}};function ob(t){return!Rn()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?hs:fs}var ut=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return Jt(this.x)&&Jt(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let o={};return n.forEach(s=>{o[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),o}};function sb(t,n){let e=t.options.ticks,i=ab(t),o=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?lb(n):[],a=s.length,r=s[0],l=s[a-1],c=[];if(a>o)return cb(n,c,s,a/o),c;let p=rb(s,n,o);if(a>0){let d,u,h=a>1?Math.round((l-r)/(a-1)):null;for(jn(n,c,p,ie(h)?0:r-h,r),d=0,u=a-1;d<u;d++)jn(n,c,p,s[d],s[d+1]);return jn(n,c,p,l,ie(h)?n.length:l+h),c}return jn(n,c,p),c}function ab(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),o=t._maxLength/e;return Math.floor(Math.min(i,o))}function rb(t,n,e){let i=pb(t),o=n.length/e;if(!i)return Math.max(o,1);let s=ar(i);for(let a=0,r=s.length-1;a<r;a++){let l=s[a];if(l>o)return l}return Math.max(o,1)}function lb(t){let n=[],e,i;for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}function cb(t,n,e,i){let o=0,s=e[0],a;for(i=Math.ceil(i),a=0;a<t.length;a++)a===s&&(n.push(t[a]),o++,s=e[o*i])}function jn(t,n,e,i,o){let s=G(i,0),a=Math.min(G(o,t.length),t.length),r=0,l,c,p;for(e=Math.ceil(e),o&&(l=o-i,e=l/Math.floor(l/e)),p=s;p<0;)r++,p=Math.round(s+r*e);for(c=Math.max(s,0);c<a;c++)c===p&&(n.push(t[c]),r++,p=Math.round(s+r*e))}function pb(t){let n=t.length,e,i;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}var db=t=>t==="left"?"right":t==="right"?"left":t,Kr=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,qr=(t,n)=>Math.min(n||t,t);function Gr(t,n){let e=[],i=t.length/n,o=t.length,s=0;for(;s<o;s+=i)e.push(t[Math.floor(s)]);return e}function ub(t,n,e){let i=t.ticks.length,o=Math.min(n,i-1),s=t._startPixel,a=t._endPixel,r=1e-6,l=t.getPixelForTick(o),c;if(!(e&&(i===1?c=Math.max(l-s,a-l):n===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<n?c:-c,l<s-r||l>a+r)))return l}function hb(t,n){se(t,e=>{let i=e.gc,o=i.length/2,s;if(o>n){for(s=0;s<o;++s)delete e.data[i[s]];i.splice(0,o)}})}function qi(t){return t.drawTicks?t.tickLength:0}function Yr(t,n){if(!t.display)return 0;let e=Fe(t.font,n),i=Qe(t.padding);return(be(t.text)?t.text.length:1)*e.lineHeight+i.height}function fb(t,n){return Et(t,{scale:n,type:"scale"})}function mb(t,n,e){return Et(t,{tick:e,index:n,type:"tick"})}function gb(t,n,e){let i=Dn(t);return(e&&n!=="right"||!e&&n==="right")&&(i=db(i)),i}function _b(t,n,e,i){let{top:o,left:s,bottom:a,right:r,chart:l}=t,{chartArea:c,scales:p}=l,d=0,u,h,_,b=a-o,y=r-s;if(t.isHorizontal()){if(h=We(i,s,r),ee(e)){let w=Object.keys(e)[0],v=e[w];_=p[w].getPixelForValue(v)+b-n}else e==="center"?_=(c.bottom+c.top)/2+b-n:_=Kr(t,e,n);u=r-s}else{if(ee(e)){let w=Object.keys(e)[0],v=e[w];h=p[w].getPixelForValue(v)-y+n}else e==="center"?h=(c.left+c.right)/2-y+n:h=Kr(t,e,n);_=We(i,a,o),d=e==="left"?-Se:Se}return{titleX:h,titleY:_,maxWidth:u,rotation:d}}var ni=class t extends ut{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.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(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:i,_suggestedMax:o}=this;return n=it(n,Number.POSITIVE_INFINITY),e=it(e,Number.NEGATIVE_INFINITY),i=it(i,Number.POSITIVE_INFINITY),o=it(o,Number.NEGATIVE_INFINITY),{min:it(n,i),max:it(e,o),minDefined:we(n),maxDefined:we(e)}}getMinMax(n){let{min:e,max:i,minDefined:o,maxDefined:s}=this.getUserBounds(),a;if(o&&s)return{min:e,max:i};let r=this.getMatchingVisibleMetas();for(let l=0,c=r.length;l<c;++l)a=r[l].controller.getMinMax(this,n),o||(e=Math.min(e,a.min)),s||(i=Math.max(i,a.max));return e=s&&e>i?i:e,i=o&&e>i?e:i,{min:it(e,it(i,e)),max:it(i,it(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){me(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:o,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,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=yr(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=r<this.ticks.length;this._convertTicksToLabels(l?Gr(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=sb(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let n=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,n=!n),this._startPixel=e,this._endPixel=i,this._reversePixels=n,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){me(this.options.afterUpdate,[this])}beforeSetDimensions(){me(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(){me(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),me(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){me(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){let e=this.options.ticks,i,o,s;for(i=0,o=n.length;i<o;i++)s=n[i],s.label=me(e.callback,[s.value,i,n],this)}afterTickToLabelConversion(){me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let n=this.options,e=n.ticks,i=qr(this.ticks.length,n.ticks.maxTicksLimit),o=e.minRotation||0,s=e.maxRotation,a=o,r,l,c;if(!this._isVisible()||!e.display||o>=s||i<=1||!this.isHorizontal()){this.labelRotation=o;return}let p=this._getLabelSizes(),d=p.widest.width,u=p.highest.height,h=Pe(this.chart.width-d,0,this.maxWidth);r=n.offset?this.maxWidth/i:h/(i-1),d+6>r&&(r=h/(i-(n.offset?.5:1)),l=this.maxHeight-qi(n.grid)-e.padding-Yr(n.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),a=Ln(Math.min(Math.asin(Pe((p.highest.height+6)/r,-1,1)),Math.asin(Pe(l/c,-1,1))-Math.asin(Pe(u/c,-1,1)))),a=Math.max(o,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){me(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:o,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){let l=Yr(o,e.options.font);if(r?(n.width=this.maxWidth,n.height=qi(s)+l):(n.height=this.maxHeight,n.width=qi(s)+l),i.display&&this.ticks.length){let{first:c,last:p,widest:d,highest:u}=this._getLabelSizes(),h=i.padding*2,_=lt(this.labelRotation),b=Math.cos(_),y=Math.sin(_);if(r){let w=i.mirror?0:y*d.width+b*u.height;n.height=Math.min(this.maxHeight,n.height+w+h)}else{let w=i.mirror?0:b*d.width+y*u.height;n.width=Math.min(this.maxWidth,n.width+w+h)}this._calculatePadding(c,p,y,b)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,o){let{ticks:{align:s,padding:a},position:r}=this.options,l=this.labelRotation!==0,c=r!=="top"&&this.axis==="x";if(this.isHorizontal()){let p=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),u=0,h=0;l?c?(u=o*n.width,h=i*e.height):(u=i*n.height,h=o*e.width):s==="start"?h=e.width:s==="end"?u=n.width:s!=="inner"&&(u=n.width/2,h=e.width/2),this.paddingLeft=Math.max((u-p+a)*this.width/(this.width-p),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let p=e.height/2,d=n.height/2;s==="start"?(p=0,d=n.height):s==="end"&&(p=e.height,d=0),this.paddingTop=p+a,this.paddingBottom=d+a}}_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(){me(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e<i;e++)ie(n[e].label)&&(n.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=Gr(i,e)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,e,i){let{ctx:o,_longestTextCache:s}=this,a=[],r=[],l=Math.floor(e/qr(e,i)),c=0,p=0,d,u,h,_,b,y,w,v,M,V,I;for(d=0;d<e;d+=l){if(_=n[d].label,b=this._resolveTickFontOptions(d),o.font=y=b.string,w=s[y]=s[y]||{data:{},gc:[]},v=b.lineHeight,M=V=0,!ie(_)&&!be(_))M=Bi(o,w.data,w.gc,M,_),V=v;else if(be(_))for(u=0,h=_.length;u<h;++u)I=_[u],!ie(I)&&!be(I)&&(M=Bi(o,w.data,w.gc,M,I),V+=v);a.push(M),r.push(V),c=Math.max(M,c),p=Math.max(V,p)}hb(s,e);let L=a.indexOf(c),z=r.indexOf(p),D=B=>({width:a[B]||0,height:r[B]||0});return{first:D(0),last:D(e-1),widest:D(L),highest:D(z),widths:a,heights:r}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return lr(this._alignToPixels?Ht(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&n<e.length){let i=e[n];return i.$context||(i.$context=mb(this.getContext(),n,i))}return this.$context||(this.$context=fb(this.chart.getContext(),this))}_tickSize(){let n=this.options.ticks,e=lt(this.labelRotation),i=Math.abs(Math.cos(e)),o=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=n.autoSkipPadding||0,r=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*i>r*o?r/i:l/o:l*o<r*i?l/i:r/o}_isVisible(){let n=this.options.display;return n!=="auto"?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){let e=this.axis,i=this.chart,o=this.options,{grid:s,position:a,border:r}=o,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=qi(s),h=[],_=r.setContext(this.getContext()),b=_.display?_.width:0,y=b/2,w=function(ve){return Ht(i,ve,b)},v,M,V,I,L,z,D,B,X,Y,te,Re;if(a==="top")v=w(this.bottom),z=this.bottom-u,B=v-y,Y=w(n.top)+y,Re=n.bottom;else if(a==="bottom")v=w(this.top),Y=n.top,Re=w(n.bottom)-y,z=v+y,B=this.top+u;else if(a==="left")v=w(this.right),L=this.right-u,D=v-y,X=w(n.left)+y,te=n.right;else if(a==="right")v=w(this.left),X=n.left,te=w(n.right)-y,L=v+y,D=this.left+u;else if(e==="x"){if(a==="center")v=w((n.top+n.bottom)/2+.5);else if(ee(a)){let ve=Object.keys(a)[0],ke=a[ve];v=w(this.chart.scales[ve].getPixelForValue(ke))}Y=n.top,Re=n.bottom,z=v+y,B=z+u}else if(e==="y"){if(a==="center")v=w((n.left+n.right)/2);else if(ee(a)){let ve=Object.keys(a)[0],ke=a[ve];v=w(this.chart.scales[ve].getPixelForValue(ke))}L=v-y,D=L-u,X=n.left,te=n.right}let st=G(o.ticks.maxTicksLimit,d),le=Math.max(1,Math.ceil(d/st));for(M=0;M<d;M+=le){let ve=this.getContext(M),ke=s.setContext(ve),ct=r.setContext(ve),Ke=ke.lineWidth,oi=ke.color,nn=ct.dash||[],si=ct.dashOffset,Mi=ke.tickWidth,Kt=ke.tickColor,Fi=ke.tickBorderDash||[],qt=ke.tickBorderDashOffset;V=ub(this,M,l),V!==void 0&&(I=Ht(i,V,Ke),c?L=D=X=te=I:z=B=Y=Re=I,h.push({tx1:L,ty1:z,tx2:D,ty2:B,x1:X,y1:Y,x2:te,y2:Re,width:Ke,color:oi,borderDash:nn,borderDashOffset:si,tickWidth:Mi,tickColor:Kt,tickBorderDash:Fi,tickBorderDashOffset:qt}))}return this._ticksLength=d,this._borderValue=v,h}_computeLabelItems(n){let e=this.axis,i=this.options,{position:o,ticks:s}=i,a=this.isHorizontal(),r=this.ticks,{align:l,crossAlign:c,padding:p,mirror:d}=s,u=qi(i.grid),h=u+p,_=d?-p:h,b=-lt(this.labelRotation),y=[],w,v,M,V,I,L,z,D,B,X,Y,te,Re="middle";if(o==="top")L=this.bottom-_,z=this._getXAxisLabelAlignment();else if(o==="bottom")L=this.top+_,z=this._getXAxisLabelAlignment();else if(o==="left"){let le=this._getYAxisLabelAlignment(u);z=le.textAlign,I=le.x}else if(o==="right"){let le=this._getYAxisLabelAlignment(u);z=le.textAlign,I=le.x}else if(e==="x"){if(o==="center")L=(n.top+n.bottom)/2+h;else if(ee(o)){let le=Object.keys(o)[0],ve=o[le];L=this.chart.scales[le].getPixelForValue(ve)+h}z=this._getXAxisLabelAlignment()}else if(e==="y"){if(o==="center")I=(n.left+n.right)/2-h;else if(ee(o)){let le=Object.keys(o)[0],ve=o[le];I=this.chart.scales[le].getPixelForValue(ve)}z=this._getYAxisLabelAlignment(u).textAlign}e==="y"&&(l==="start"?Re="top":l==="end"&&(Re="bottom"));let st=this._getLabelSizes();for(w=0,v=r.length;w<v;++w){M=r[w],V=M.label;let le=s.setContext(this.getContext(w));D=this.getPixelForTick(w)+s.labelOffset,B=this._resolveTickFontOptions(w),X=B.lineHeight,Y=be(V)?V.length:1;let ve=Y/2,ke=le.color,ct=le.textStrokeColor,Ke=le.textStrokeWidth,oi=z;a?(I=D,z==="inner"&&(w===v-1?oi=this.options.reverse?"left":"right":w===0?oi=this.options.reverse?"right":"left":oi="center"),o==="top"?c==="near"||b!==0?te=-Y*X+X/2:c==="center"?te=-st.highest.height/2-ve*X+X:te=-st.highest.height+X/2:c==="near"||b!==0?te=X/2:c==="center"?te=st.highest.height/2-ve*X:te=st.highest.height-Y*X,d&&(te*=-1),b!==0&&!le.showLabelBackdrop&&(I+=X/2*Math.sin(b))):(L=D,te=(1-Y)*X/2);let nn;if(le.showLabelBackdrop){let si=Qe(le.backdropPadding),Mi=st.heights[w],Kt=st.widths[w],Fi=te-si.top,qt=0-si.left;switch(Re){case"middle":Fi-=Mi/2;break;case"bottom":Fi-=Mi;break}switch(z){case"center":qt-=Kt/2;break;case"right":qt-=Kt;break;case"inner":w===v-1?qt-=Kt:w>0&&(qt-=Kt/2);break}nn={left:qt,top:Fi,width:Kt+si.width,height:Mi+si.height,color:le.backdropColor}}y.push({label:V,font:B,textOffset:te,options:{rotation:b,color:ke,strokeColor:ct,strokeWidth:Ke,textAlign:oi,textBaseline:Re,translation:[I,L],backdrop:nn}})}return y}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-lt(this.labelRotation))return n==="top"?"left":"right";let o="center";return e.align==="start"?o="left":e.align==="end"?o="right":e.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:o,padding:s}}=this.options,a=this._getLabelSizes(),r=n+s,l=a.widest.width,c,p;return e==="left"?o?(p=this.right+s,i==="near"?c="left":i==="center"?(c="center",p+=l/2):(c="right",p+=l)):(p=this.right-r,i==="near"?c="right":i==="center"?(c="center",p-=l/2):(c="left",p=this.left)):e==="right"?o?(p=this.left+s,i==="near"?c="right":i==="center"?(c="center",p-=l/2):(c="left",p-=l)):(p=this.left+r,i==="near"?c="left":i==="center"?(c="center",p+=l/2):(c="right",p=this.right)):c="right",{textAlign:c,x:p}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:o,width:s,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,o,s,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let o=this.ticks.findIndex(s=>s.value===n);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),s,a,r=(l,c,p)=>{!p.width||!p.color||(i.save(),i.lineWidth=p.width,i.strokeStyle=p.color,i.setLineDash(p.borderDash||[]),i.lineDashOffset=p.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,a=o.length;s<a;++s){let l=o[s];e.drawOnChartArea&&r({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&r({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:n,ctx:e,options:{border:i,grid:o}}=this,s=i.setContext(this.getContext()),a=i.display?s.width:0;if(!a)return;let r=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,p,d,u;this.isHorizontal()?(c=Ht(n,this.left,a)-a/2,p=Ht(n,this.right,r)+r/2,d=u=l):(d=Ht(n,this.top,a)-a/2,u=Ht(n,this.bottom,r)+r/2,c=p=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,d),e.lineTo(p,u),e.stroke(),e.restore()}drawLabels(n){if(!this.options.ticks.display)return;let i=this.ctx,o=this._computeLabelArea();o&&ji(i,o);let s=this.getLabelItems(n);for(let a of s){let r=a.options,l=a.font,c=a.label,p=a.textOffset;Nt(i,c,0,p,l,r)}o&&Ui(i)}drawTitle(){let{ctx:n,options:{position:e,title:i,reverse:o}}=this;if(!i.display)return;let s=Fe(i.font),a=Qe(i.padding),r=i.align,l=s.lineHeight/2;e==="bottom"||e==="center"||ee(e)?(l+=a.bottom,be(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=a.top;let{titleX:c,titleY:p,maxWidth:d,rotation:u}=_b(this,l,e,r);Nt(n,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:u,textAlign:gb(r,e,o),textBaseline:"middle",translation:[c,p]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){let n=this.options,e=n.ticks&&n.ticks.z||0,i=G(n.grid&&n.grid.z,-1),o=G(n.border&&n.border.z,0);return!this._isVisible()||this.draw!==t.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[],s,a;for(s=0,a=e.length;s<a;++s){let r=e[s];r[i]===this.id&&(!n||r.type===n)&&o.push(r)}return o}_resolveTickFontOptions(n){let e=this.options.ticks.setContext(this.getContext(n));return Fe(e.font)}_maxDigits(){let n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}},ki=class{constructor(n,e,i){this.type=n,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){let e=Object.getPrototypeOf(n),i;xb(e)&&(i=this.register(e));let o=this.items,s=n.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+n);return s in o||(o[s]=n,bb(n,a,i),this.override&&Te.override(n.id,n.overrides)),a}get(n){return this.items[n]}unregister(n){let e=this.items,i=n.id,o=this.scope;i in e&&delete e[i],o&&i in Te[o]&&(delete Te[o][i],this.override&&delete Bt[i])}};function bb(t,n,e){let i=_i(Object.create(null),[e?Te.get(e):{},Te.get(n),t.defaults]);Te.set(n,i),t.defaultRoutes&&yb(n,t.defaultRoutes),t.descriptors&&Te.describe(n,t.descriptors)}function yb(t,n){Object.keys(n).forEach(e=>{let i=e.split("."),o=i.pop(),s=[t].concat(i).join("."),a=n[e].split("."),r=a.pop(),l=a.join(".");Te.route(s,o,l,r)})}function xb(t){return"id"in t&&"defaults"in t}var ms=class{constructor(){this.controllers=new ki(Qt,"datasets",!0),this.elements=new ki(ut,"elements"),this.plugins=new ki(Object,"plugins"),this.scales=new ki(ni,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(o=>{let s=i||this._getRegistryForType(o);i||s.isForType(o)||s===this.plugins&&o.id?this._exec(n,s,o):se(o,a=>{let r=i||this._getRegistryForType(a);this._exec(n,r,a)})})}_exec(n,e,i){let o=En(n);me(i["before"+o],[],i),e[n](i),me(i["after"+o],[],i)}_getRegistryForType(n){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(n))return i}return this.plugins}_get(n,e,i){let o=e.get(n);if(o===void 0)throw new Error('"'+n+'" is not a registered '+i+".");return o}},Tt=new ms,gs=class{constructor(){this._init=[]}notify(n,e,i,o){e==="beforeInit"&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));let s=o?this._descriptors(n).filter(o):this._descriptors(n),a=this._notify(s,n,e,i);return e==="afterDestroy"&&(this._notify(s,n,"stop"),this._notify(this._init,n,"uninstall")),a}_notify(n,e,i,o){o=o||{};for(let s of n){let a=s.plugin,r=a[i],l=[e,o,s.options];if(me(r,l,a)===!1&&o.cancelable)return!1}return!0}invalidate(){ie(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),e}_createDescriptors(n,e){let i=n&&n.config,o=G(i.options&&i.options.plugins,{}),s=vb(i);return o===!1&&!e?[]:wb(n,s,o,e)}_notifyStateChanges(n){let e=this._oldCache||[],i=this._cache,o=(s,a)=>s.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(o(e,i),n,"stop"),this._notify(o(i,e),n,"start")}};function vb(t){let n={},e=[],i=Object.keys(Tt.plugins.items);for(let s=0;s<i.length;s++)e.push(Tt.getPlugin(i[s]));let o=t.plugins||[];for(let s=0;s<o.length;s++){let a=o[s];e.indexOf(a)===-1&&(e.push(a),n[a.id]=!0)}return{plugins:e,localIds:n}}function Cb(t,n){return!n&&t===!1?null:t===!0?{}:t}function wb(t,{plugins:n,localIds:e},i,o){let s=[],a=t.getContext();for(let r of n){let l=r.id,c=Cb(i[l],o);c!==null&&s.push({plugin:r,options:Tb(t.config,{plugin:r,local:e[l]},c,a)})}return s}function Tb(t,{plugin:n,local:e},i,o){let s=t.pluginScopeKeys(n),a=t.getOptionScopes(i,s);return e&&n.defaults&&a.push(n.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function _s(t,n){let e=Te.datasets[t]||{};return((n.datasets||{})[t]||{}).indexAxis||n.indexAxis||e.indexAxis||"x"}function Ib(t,n){let e=t;return t==="_index_"?e=n:t==="_value_"&&(e=n==="x"?"y":"x"),e}function Sb(t,n){return t===n?"_index_":"_value_"}function Xr(t){if(t==="x"||t==="y"||t==="r")return t}function kb(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function bs(t,...n){if(Xr(t))return t;for(let e of n){let i=e.axis||kb(e.position)||t.length>1&&Xr(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Zr(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function Ob(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return Zr(t,"x",e[0])||Zr(t,"y",e[0])}return{}}function Mb(t,n){let e=Bt[t.type]||{scales:{}},i=n.scales||{},o=_s(t.type,n),s=Object.create(null);return Object.keys(i).forEach(a=>{let r=i[a];if(!ee(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=bs(a,r,Ob(a,t),Te.scales[r.type]),c=Sb(l,o),p=e.scales||{};s[a]=yi(Object.create(null),[{axis:l},r,p[l],p[c]])}),t.data.datasets.forEach(a=>{let r=a.type||t.type,l=a.indexAxis||_s(r,n),p=(Bt[r]||{}).scales||{};Object.keys(p).forEach(d=>{let u=Ib(d,l),h=a[u+"AxisID"]||u;s[h]=s[h]||Object.create(null),yi(s[h],[{axis:u},i[h],p[d]])})}),Object.keys(s).forEach(a=>{let r=s[a];yi(r,[Te.scales[r.type],Te.scale])}),s}function Rl(t){let n=t.options||(t.options={});n.plugins=G(n.plugins,{}),n.scales=Mb(t,n)}function Bl(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Fb(t){return t=t||{},t.data=Bl(t.data),Rl(t),t}var Jr=new Map,Hl=new Set;function Un(t,n){let e=Jr.get(t);return e||(e=n(),Jr.set(t,e),Hl.add(e)),e}var Gi=(t,n,e)=>{let i=Ft(n,e);i!==void 0&&t.add(i)},ys=class{constructor(n){this._config=Fb(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=Bl(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),Rl(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Un(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Un(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Un(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Un(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,o=i.get(n);return(!o||e)&&(o=new Map,i.set(n,o)),o}getOptionScopes(n,e,i){let{options:o,type:s}=this,a=this._cachedScopes(n,i),r=a.get(e);if(r)return r;let l=new Set;e.forEach(p=>{n&&(l.add(n),p.forEach(d=>Gi(l,n,d))),p.forEach(d=>Gi(l,o,d)),p.forEach(d=>Gi(l,Bt[s]||{},d)),p.forEach(d=>Gi(l,Te,d)),p.forEach(d=>Gi(l,Pn,d))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Hl.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Bt[e]||{},Te.datasets[e]||{},{type:e},Te,Pn]}resolveNamedOptions(n,e,i,o=[""]){let s={$shared:!0},{resolver:a,subPrefixes:r}=el(this._resolverCache,n,o),l=a;if(Lb(a,e)){s.$shared=!1,i=Ot(i)?i():i;let c=this.createResolver(n,i,r);l=Zt(a,i,c)}for(let c of e)s[c]=l[c];return s}createResolver(n,e,i=[""],o){let{resolver:s}=el(this._resolverCache,n,i);return ee(e)?Zt(s,e,void 0,o):s}};function el(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let o=e.join(),s=i.get(o);return s||(s={resolver:$n(n,e),subPrefixes:e.filter(r=>!r.toLowerCase().includes("hover"))},i.set(o,s)),s}var Eb=t=>ee(t)&&Object.getOwnPropertyNames(t).some(n=>Ot(t[n]));function Lb(t,n){let{isScriptable:e,isIndexable:i}=Wo(t);for(let o of n){let s=e(o),a=i(o),r=(a||s)&&t[o];if(s&&(Ot(r)||Eb(r))||a&&be(r))return!0}return!1}var Vb="4.4.2",Db=["top","bottom","left","right","chartArea"];function tl(t,n){return t==="top"||t==="bottom"||Db.indexOf(t)===-1&&n==="x"}function il(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function nl(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),me(e&&e.onComplete,[t],n)}function Pb(t){let n=t.chart,e=n.options.animation;me(e&&e.onProgress,[t],n)}function Nl(t){return Rn()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var Yn={},ol=t=>{let n=Nl(t);return Object.values(Yn).filter(e=>e.canvas===n).pop()};function Ab(t,n,e){let i=Object.keys(t);for(let o of i){let s=+o;if(s>=n){let a=t[o];delete t[o],(e>0||s>n)&&(t[s+e]=a)}}}function zb(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}function Wn(t,n,e){return t.options.clip?t[e]:n[e]}function $b(t,n){let{xScale:e,yScale:i}=t;return e&&i?{left:Wn(e,n,"left"),right:Wn(e,n,"right"),top:Wn(i,n,"top"),bottom:Wn(i,n,"bottom")}:n}var no=(()=>{class t{static defaults=Te;static instances=Yn;static overrides=Bt;static registry=Tt;static version=Vb;static getChart=ol;static register(...e){Tt.add(...e),sl()}static unregister(...e){Tt.remove(...e),sl()}constructor(e,i){let o=this.config=new ys(i),s=Nl(e),a=ol(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let r=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||ob(s)),this.platform.updateConfig(o);let l=this.platform.acquireContext(s,r.aspectRatio),c=l&&l.canvas,p=c&&c.height,d=c&&c.width;if(this.id=ir(),this.ctx=l,this.canvas=c,this.width=d,this.height=p,this._options=r,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 gs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hr(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Yn[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Lt.listen(this,"complete",nl),Lt.listen(this,"progress",Pb),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:o,height:s,_aspectRatio:a}=this;return ie(e)?i&&a?a:s?o/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 Tt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Go(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return No(this.canvas,this.ctx),this}stop(){return Lt.stop(this),this}resize(e,i){Lt.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let o=this.options,s=this.canvas,a=o.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,e,i,a),l=o.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Go(this,l,!0)&&(this.notifyPlugins("resize",{size:r}),me(o.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};se(i,(o,s)=>{o.id=s})}buildOrUpdateScales(){let e=this.options,i=e.scales,o=this.scales,s=Object.keys(o).reduce((r,l)=>(r[l]=!1,r),{}),a=[];i&&(a=a.concat(Object.keys(i).map(r=>{let l=i[r],c=bs(r,l),p=c==="r",d=c==="x";return{options:l,dposition:p?"chartArea":d?"bottom":"left",dtype:p?"radialLinear":d?"category":"linear"}}))),se(a,r=>{let l=r.options,c=l.id,p=bs(c,l),d=G(l.type,r.dtype);(l.position===void 0||tl(l.position,p)!==tl(r.dposition))&&(l.position=r.dposition),s[c]=!0;let u=null;if(c in o&&o[c].type===d)u=o[c];else{let h=Tt.getScale(d);u=new h({id:c,type:d,ctx:this.ctx,chart:this}),o[u.id]=u}u.init(l,e)}),se(s,(r,l)=>{r||delete o[l]}),se(o,r=>{Ye.configure(this,r,r.options),Ye.addBox(this,r)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,o=e.length;if(e.sort((s,a)=>s.index-a.index),o>i){for(let s=i;s<o;++s)this._destroyDatasetMeta(s);e.splice(i,o-i)}this._sortedMetasets=e.slice(0).sort(il("order","index"))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:i}}=this;e.length>i.length&&delete this._stacks,e.forEach((o,s)=>{i.filter(a=>a===o._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,o,s;for(this._removeUnreferencedMetasets(),o=0,s=i.length;o<s;o++){let a=i[o],r=this.getDatasetMeta(o),l=a.type||this.config.type;if(r.type&&r.type!==l&&(this._destroyDatasetMeta(o),r=this.getDatasetMeta(o)),r.type=l,r.indexAxis=a.indexAxis||_s(l,this.options),r.order=a.order||0,r.index=o,r.label=""+a.label,r.visible=this.isDatasetVisible(o),r.controller)r.controller.updateIndex(o),r.controller.linkScales();else{let c=Tt.getController(l),{datasetElementType:p,dataElementType:d}=Te.datasets[l];Object.assign(c,{dataElementType:Tt.getElement(d),datasetElementType:p&&Tt.getElement(p)}),r.controller=new c(this,o),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){se(this.data.datasets,(e,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let o=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let p=0,d=this.data.datasets.length;p<d;p++){let{controller:u}=this.getDatasetMeta(p),h=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=o.layout.autoPadding?r:0,this._updateLayout(r),s||se(a,p=>{p.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(il("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){se(this.scales,e=>{Ye.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!Mo(i,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:o,start:s,count:a}of i){let r=o==="_removeElements"?-a:a;Ab(e,s,r)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,o=a=>new Set(e.filter(r=>r[0]===a).map((r,l)=>l+","+r.splice(1).join(","))),s=o(0);for(let a=1;a<i;a++)if(!Mo(s,o(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ye.update(this,this.width,this.height,e);let i=this.chartArea,o=i.width<=0||i.height<=0;this._layers=[],se(this.boxes,s=>{o&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,o=this.data.datasets.length;i<o;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,o=this.data.datasets.length;i<o;++i)this._updateDataset(i,Ot(e)?e({datasetIndex:i}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,i){let o=this.getDatasetMeta(e),s={meta:o,index:e,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(o.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Lt.has(this)?this.attached&&!Lt.running(this)&&Lt.start(this):(this.draw(),nl({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:o,height:s}=this._resizeBeforeDraw;this._resize(o,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){let i=this._sortedMetasets,o=[],s,a;for(s=0,a=i.length;s<a;++s){let r=i[s];(!e||r.visible)&&o.push(r)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,o=e._clip,s=!o.disabled,a=$b(e,this.chartArea),r={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&ji(i,{left:o.left===!1?0:a.left-o.left,right:o.right===!1?this.width:a.right+o.right,top:o.top===!1?0:a.top-o.top,bottom:o.bottom===!1?this.height:a.bottom+o.bottom}),e.controller.draw(),s&&Ui(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return xt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,o,s){let a=R_.modes[i];return typeof a=="function"?a(this,e,o,s):[]}getDatasetMeta(e){let i=this.data.datasets[e],o=this._metasets,s=o.filter(a=>a&&a._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},o.push(s)),s}getContext(){return this.$context||(this.$context=Et(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!i.hidden}setDatasetVisibility(e,i){let o=this.getDatasetMeta(e);o.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,o){let s=o?"show":"hide",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,s);xi(i)?(a.data[i].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),r.update(a,{visible:o}),this.update(l=>l.datasetIndex===e?s:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Lt.remove(this),e=0,i=this.data.datasets.length;e<i;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:e,ctx:i}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),No(e,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Yn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,i=this.platform,o=(a,r)=>{i.addEventListener(this,a,r),e[a]=r},s=(a,r,l)=>{a.offsetX=r,a.offsetY=l,this._eventHandler(a)};se(this.options.events,a=>o(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,o=(c,p)=>{i.addEventListener(this,c,p),e[c]=p},s=(c,p)=>{e[c]&&(i.removeEventListener(this,c,p),delete e[c])},a=(c,p)=>{this.canvas&&this.resize(c,p)},r,l=()=>{s("attach",l),this.attached=!0,this.resize(),o("resize",a),o("detach",r)};r=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),o("attach",l)},i.isAttached(this.canvas)?l():r()}unbindEvents(){se(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},se(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,o){let s=o?"set":"remove",a,r,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){r=e[l];let p=r&&this.getDatasetMeta(r.datasetIndex).controller;p&&p[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let i=this._active||[],o=e.map(({datasetIndex:a,index:r})=>{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[r],index:r}});!Hi(o,i)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,i))}notifyPlugins(e,i,o){return this._plugins.notify(this,e,i,o)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,o){let s=this.options.hover,a=(c,p)=>c.filter(d=>!p.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),r=a(i,e),l=o?e:a(e,i);r.length&&this.updateHoverStyle(r,s.mode,!1),l.length&&s.mode&&this.updateHoverStyle(l,s.mode,!0)}_eventHandler(e,i){let o={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},s=r=>(r.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,s)===!1)return;let a=this._handleEvent(e,i,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,s),(a||o.changed)&&this.render(),this}_handleEvent(e,i,o){let{_active:s=[],options:a}=this,r=i,l=this._getActiveElements(e,s,o,r),c=sr(e),p=zb(e,this._lastEvent,o,c);o&&(this._lastEvent=null,me(a.onHover,[e,l,this],this),c&&me(a.onClick,[e,l,this],this));let d=!Hi(l,s);return(d||i)&&(this._active=l,this._updateHoverStyles(l,s,i)),this._lastEvent=p,d}_getActiveElements(e,i,o,s){if(e.type==="mouseout")return[];if(!o)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}}return t})();function sl(){return se(no.instances,t=>t._plugins.invalidate())}function Rb(t,n,e){let{startAngle:i,pixelMargin:o,x:s,y:a,outerRadius:r,innerRadius:l}=n,c=o/r;t.beginPath(),t.arc(s,a,r,i-c,e+c),l>o?(c=o/l,t.arc(s,a,l,e+c,i-c,!0)):t.arc(s,a,o,e+Se,i-Se),t.closePath(),t.clip()}function Bb(t){return zn(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Hb(t,n,e,i){let o=Bb(t.options.borderRadius),s=(e-n)/2,a=Math.min(s,i*n/2),r=l=>{let c=(e-Math.min(s,l))*i/2;return Pe(l,0,Math.min(s,c))};return{outerStart:r(o.outerStart),outerEnd:r(o.outerEnd),innerStart:Pe(o.innerStart,0,a),innerEnd:Pe(o.innerEnd,0,a)}}function Si(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function eo(t,n,e,i,o,s){let{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:p}=n,d=Math.max(n.outerRadius+i+e-c,0),u=p>0?p+i+e+c:0,h=0,_=o-l;if(i){let le=p>0?p-i:0,ve=d>0?d-i:0,ke=(le+ve)/2,ct=ke!==0?_*ke/(ke+i):_;h=(_-ct)/2}let b=Math.max(.001,_*d-e/ye)/d,y=(_-b)/2,w=l+y+h,v=o-y-h,{outerStart:M,outerEnd:V,innerStart:I,innerEnd:L}=Hb(n,u,d,v-w),z=d-M,D=d-V,B=w+M/z,X=v-V/D,Y=u+I,te=u+L,Re=w+I/Y,st=v-L/te;if(t.beginPath(),s){let le=(B+X)/2;if(t.arc(a,r,d,B,le),t.arc(a,r,d,le,X),V>0){let Ke=Si(D,X,a,r);t.arc(Ke.x,Ke.y,V,X,v+Se)}let ve=Si(te,v,a,r);if(t.lineTo(ve.x,ve.y),L>0){let Ke=Si(te,st,a,r);t.arc(Ke.x,Ke.y,L,v+Se,st+Math.PI)}let ke=(v-L/u+(w+I/u))/2;if(t.arc(a,r,u,v-L/u,ke,!0),t.arc(a,r,u,ke,w+I/u,!0),I>0){let Ke=Si(Y,Re,a,r);t.arc(Ke.x,Ke.y,I,Re+Math.PI,w-Se)}let ct=Si(z,w,a,r);if(t.lineTo(ct.x,ct.y),M>0){let Ke=Si(z,B,a,r);t.arc(Ke.x,Ke.y,M,w-Se,B)}}else{t.moveTo(a,r);let le=Math.cos(B)*d+a,ve=Math.sin(B)*d+r;t.lineTo(le,ve);let ke=Math.cos(X)*d+a,ct=Math.sin(X)*d+r;t.lineTo(ke,ct)}t.closePath()}function Nb(t,n,e,i,o){let{fullCircles:s,startAngle:a,circumference:r}=n,l=n.endAngle;if(s){eo(t,n,e,i,l,o);for(let c=0;c<s;++c)t.fill();isNaN(r)||(l=a+(r%xe||xe))}return eo(t,n,e,i,l,o),t.fill(),l}function jb(t,n,e,i,o){let{fullCircles:s,startAngle:a,circumference:r,options:l}=n,{borderWidth:c,borderJoinStyle:p,borderDash:d,borderDashOffset:u}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=u,h?(t.lineWidth=c*2,t.lineJoin=p||"round"):(t.lineWidth=c,t.lineJoin=p||"bevel");let _=n.endAngle;if(s){eo(t,n,e,i,_,o);for(let b=0;b<s;++b)t.stroke();isNaN(r)||(_=a+(r%xe||xe))}h&&Rb(t,n,_),s||(eo(t,n,e,i,_,o),t.stroke())}var xs=class extends ut{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){let o=this.getProps(["x","y"],i),{angle:s,distance:a}=Vo(o,{x:n,y:e}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:p,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,_=G(d,l-r)>=xe||Ci(s,r,l),b=Ct(a,c+u,p+u);return _&&b}getCenterPoint(n){let{x:e,y:i,startAngle:o,endAngle:s,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,p=(o+s)/2,d=(a+r+c+l)/2;return{x:e+Math.cos(p)*d,y:i+Math.sin(p)*d}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,o=(e.offset||0)/4,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>xe?Math.floor(i/xe):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let r=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(r)*o,Math.sin(r)*o);let l=1-Math.sin(Math.min(ye,i||0)),c=o*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,Nb(n,this,c,s,a),jb(n,this,c,s,a),n.restore()}};function jl(t,n,e=n){t.lineCap=G(e.borderCapStyle,n.borderCapStyle),t.setLineDash(G(e.borderDash,n.borderDash)),t.lineDashOffset=G(e.borderDashOffset,n.borderDashOffset),t.lineJoin=G(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=G(e.borderWidth,n.borderWidth),t.strokeStyle=G(e.borderColor,n.borderColor)}function Ub(t,n,e){t.lineTo(e.x,e.y)}function Wb(t){return t.stepped?_r:t.tension||t.cubicInterpolationMode==="monotone"?br:Ub}function Ul(t,n,e={}){let i=t.length,{start:o=0,end:s=i-1}=e,{start:a,end:r}=n,l=Math.max(o,a),c=Math.min(s,r),p=o<a&&s<a||o>r&&s>r;return{count:i,start:l,loop:n.loop,ilen:c<l&&!p?i+c-l:c-l}}function Qb(t,n,e,i){let{points:o,options:s}=n,{count:a,start:r,loop:l,ilen:c}=Ul(o,e,i),p=Wb(s),{move:d=!0,reverse:u}=i||{},h,_,b;for(h=0;h<=c;++h)_=o[(r+(u?c-h:h))%a],!_.skip&&(d?(t.moveTo(_.x,_.y),d=!1):p(t,b,_,u,s.stepped),b=_);return l&&(_=o[(r+(u?c:0))%a],p(t,b,_,u,s.stepped)),!!l}function Kb(t,n,e,i){let o=n.points,{count:s,start:a,ilen:r}=Ul(o,e,i),{move:l=!0,reverse:c}=i||{},p=0,d=0,u,h,_,b,y,w,v=V=>(a+(c?r-V:V))%s,M=()=>{b!==y&&(t.lineTo(p,y),t.lineTo(p,b),t.lineTo(p,w))};for(l&&(h=o[v(0)],t.moveTo(h.x,h.y)),u=0;u<=r;++u){if(h=o[v(u)],h.skip)continue;let V=h.x,I=h.y,L=V|0;L===_?(I<b?b=I:I>y&&(y=I),p=(d*p+V)/++d):(M(),t.lineTo(V,I),_=L,d=0,b=y=I),w=I}M()}function vs(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?Kb:Qb}function qb(t){return t.stepped?kr:t.tension||t.cubicInterpolationMode==="monotone"?Or:Rt}function Gb(t,n,e,i){let o=n._path;o||(o=n._path=new Path2D,n.path(o,e,i)&&o.closePath()),jl(t,n.options),t.stroke(o)}function Yb(t,n,e,i){let{segments:o,options:s}=n,a=vs(n);for(let r of o)jl(t,s,r.style),t.beginPath(),a(t,n,r,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var Xb=typeof Path2D=="function";function Zb(t,n,e,i){Xb&&!n.options.segment?Gb(t,n,e,i):Yb(t,n,e,i)}var oo=(()=>{class t extends ut{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};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,i){let o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){let s=o.spanGaps?this._loop:this._fullLoop;Tr(this._points,o,e,s,i),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=Fr(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,o=e.length;return o&&i[e[o-1].end]}interpolate(e,i){let o=this.options,s=e[i],a=this.points,r=es(this,{property:i,start:s,end:s});if(!r.length)return;let l=[],c=qb(o),p,d;for(p=0,d=r.length;p<d;++p){let{start:u,end:h}=r[p],_=a[u],b=a[h];if(_===b){l.push(_);continue}let y=Math.abs((s-_[i])/(b[i]-_[i])),w=c(_,b,y,o.stepped);w[i]=e[i],l.push(w)}return l.length===1?l[0]:l}pathSegment(e,i,o){return vs(this)(e,this,i,o)}path(e,i,o){let s=this.segments,a=vs(this),r=this._loop;i=i||0,o=o||this.points.length-i;for(let l of s)r&=a(e,this,l,{start:i,end:i+o-1});return!!r}draw(e,i,o,s){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),Zb(e,this,o,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return t})();function al(t,n,e,i){let o=t.options,{[e]:s}=t.getProps([e],i);return Math.abs(n-s)<o.radius+o.hitRadius}var Jb=(()=>{class t extends ut{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,o){let s=this.options,{x:a,y:r}=this.getProps(["x","y"],o);return Math.pow(e-a,2)+Math.pow(i-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return al(this,e,"x",i)}inYRange(e,i){return al(this,e,"y",i)}getCenterPoint(e){let{x:i,y:o}=this.getProps(["x","y"],e);return{x:i,y:o}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);let o=i&&e.borderWidth||0;return(i+o)*2}draw(e,i){let o=this.options;this.skip||o.radius<.1||!xt(this,i,this.size(o)/2)||(e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.fillStyle=o.backgroundColor,An(e,o,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}}return t})();function Wl(t,n){let{x:e,y:i,base:o,width:s,height:a}=t.getProps(["x","y","base","width","height"],n),r,l,c,p,d;return t.horizontal?(d=a/2,r=Math.min(e,o),l=Math.max(e,o),c=i-d,p=i+d):(d=s/2,r=e-d,l=e+d,c=Math.min(i,o),p=Math.max(i,o)),{left:r,top:c,right:l,bottom:p}}function Wt(t,n,e,i){return t?0:Pe(n,e,i)}function e1(t,n,e){let i=t.options.borderWidth,o=t.borderSkipped,s=Uo(i);return{t:Wt(o.top,s.top,0,e),r:Wt(o.right,s.right,0,n),b:Wt(o.bottom,s.bottom,0,e),l:Wt(o.left,s.left,0,n)}}function t1(t,n,e){let{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,s=jt(o),a=Math.min(n,e),r=t.borderSkipped,l=i||ee(o);return{topLeft:Wt(!l||r.top||r.left,s.topLeft,0,a),topRight:Wt(!l||r.top||r.right,s.topRight,0,a),bottomLeft:Wt(!l||r.bottom||r.left,s.bottomLeft,0,a),bottomRight:Wt(!l||r.bottom||r.right,s.bottomRight,0,a)}}function i1(t){let n=Wl(t),e=n.right-n.left,i=n.bottom-n.top,o=e1(t,e/2,i/2),s=t1(t,e/2,i/2);return{outer:{x:n.left,y:n.top,w:e,h:i,radius:s},inner:{x:n.left+o.l,y:n.top+o.t,w:e-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}function rs(t,n,e,i){let o=n===null,s=e===null,r=t&&!(o&&s)&&Wl(t,i);return r&&(o||Ct(n,r.left,r.right))&&(s||Ct(e,r.top,r.bottom))}function n1(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function o1(t,n){t.rect(n.x,n.y,n.w,n.h)}function ls(t,n,e={}){let i=t.x!==e.x?-n:0,o=t.y!==e.y?-n:0,s=(t.x+t.w!==e.x+e.w?n:0)-i,a=(t.y+t.h!==e.y+e.h?n:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+s,h:t.h+a,radius:t.radius}}var Cs=class extends ut{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(n){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,n&&Object.assign(this,n)}draw(n){let{inflateAmount:e,options:{borderColor:i,backgroundColor:o}}=this,{inner:s,outer:a}=i1(this),r=n1(a.radius)?Ti:o1;n.save(),(a.w!==s.w||a.h!==s.h)&&(n.beginPath(),r(n,ls(a,e,s)),n.clip(),r(n,ls(s,-e,a)),n.fillStyle=i,n.fill("evenodd")),n.beginPath(),r(n,ls(s,e)),n.fillStyle=o,n.fill(),n.restore()}inRange(n,e,i){return rs(this,n,e,i)}inXRange(n,e){return rs(this,n,null,e)}inYRange(n,e){return rs(this,null,n,e)}getCenterPoint(n){let{x:e,y:i,base:o,horizontal:s}=this.getProps(["x","y","base","horizontal"],n);return{x:s?(e+o)/2:e,y:s?i:(i+o)/2}}getRange(n){return n==="x"?this.width/2:this.height/2}},s1=Object.freeze({__proto__:null,ArcElement:xs,BarElement:Cs,LineElement:oo,PointElement:Jb}),ws=["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)"],rl=ws.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Ql(t){return ws[t%ws.length]}function Kl(t){return rl[t%rl.length]}function a1(t,n){return t.borderColor=Ql(n),t.backgroundColor=Kl(n),++n}function r1(t,n){return t.backgroundColor=t.data.map(()=>Ql(n++)),n}function l1(t,n){return t.backgroundColor=t.data.map(()=>Kl(n++)),n}function c1(t){let n=0;return(e,i)=>{let o=t.getDatasetMeta(i).controller;o instanceof Es?n=r1(e,n):o instanceof Dl?n=l1(e,n):o&&(n=a1(e,n))}}function ll(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function p1(t){return t&&(t.borderColor||t.backgroundColor)}var d1={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:o}=t.config,{elements:s}=o;if(!e.forceOverride&&(ll(i)||p1(o)||s&&ll(s)))return;let a=c1(t);i.forEach(a)}};function u1(t,n,e,i,o){let s=o.samples||i;if(s>=e)return t.slice(n,n+e);let a=[],r=(e-2)/(s-2),l=0,c=n+e-1,p=n,d,u,h,_,b;for(a[l++]=t[p],d=0;d<s-2;d++){let y=0,w=0,v,M=Math.floor((d+1)*r)+1+n,V=Math.min(Math.floor((d+2)*r)+1,e)+n,I=V-M;for(v=M;v<V;v++)y+=t[v].x,w+=t[v].y;y/=I,w/=I;let L=Math.floor(d*r)+1+n,z=Math.min(Math.floor((d+1)*r)+1,e)+n,{x:D,y:B}=t[p];for(h=_=-1,v=L;v<z;v++)_=.5*Math.abs((D-y)*(t[v].y-B)-(D-t[v].x)*(w-B)),_>h&&(h=_,u=t[v],b=v);a[l++]=u,p=b}return a[l++]=t[c],a}function h1(t,n,e,i){let o=0,s=0,a,r,l,c,p,d,u,h,_,b,y=[],w=n+e-1,v=t[n].x,V=t[w].x-v;for(a=n;a<n+e;++a){r=t[a],l=(r.x-v)/V*i,c=r.y;let I=l|0;if(I===p)c<_?(_=c,d=a):c>b&&(b=c,u=a),o=(s*o+r.x)/++s;else{let L=a-1;if(!ie(d)&&!ie(u)){let z=Math.min(d,u),D=Math.max(d,u);z!==h&&z!==L&&y.push(ht(at({},t[z]),{x:o})),D!==h&&D!==L&&y.push(ht(at({},t[D]),{x:o}))}a>0&&L!==h&&y.push(t[L]),y.push(r),p=I,s=0,_=b=c,d=u=h=a}}return y}function ql(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function cl(t){t.data.datasets.forEach(n=>{ql(n)})}function f1(t,n){let e=n.length,i=0,o,{iScale:s}=t,{min:a,max:r,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=Pe(yt(n,s.axis,a).lo,0,e-1)),c?o=Pe(yt(n,s.axis,r).hi+1,i,e)-i:o=e-i,{start:i,count:o}}var m1={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){cl(t);return}let i=t.width;t.data.datasets.forEach((o,s)=>{let{_data:a,indexAxis:r}=o,l=t.getDatasetMeta(s),c=a||o.data;if(Ii([r,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let p=t.scales[l.xAxisID];if(p.type!=="linear"&&p.type!=="time"||t.options.parsing)return;let{start:d,count:u}=f1(l,c),h=e.threshold||4*i;if(u<=h){ql(o);return}ie(a)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let _;switch(e.algorithm){case"lttb":_=u1(c,d,u,i,e);break;case"min-max":_=h1(c,d,u,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=_})},destroy(t){cl(t)}};function g1(t,n,e){let i=t.segments,o=t.points,s=n.points,a=[];for(let r of i){let{start:l,end:c}=r;c=Ls(l,c,o);let p=Ts(e,o[l],o[c],r.loop);if(!n.segments){a.push({source:r,target:p,start:o[l],end:o[c]});continue}let d=es(n,p);for(let u of d){let h=Ts(e,s[u.start],s[u.end],u.loop),_=Jo(r,o,h);for(let b of _)a.push({source:b,target:u,start:{[e]:pl(p,h,"start",Math.max)},end:{[e]:pl(p,h,"end",Math.min)}})}}return a}function Ts(t,n,e,i){if(i)return;let o=n[t],s=e[t];return t==="angle"&&(o=tt(o),s=tt(s)),{property:t,start:o,end:s}}function _1(t,n){let{x:e=null,y:i=null}=t||{},o=n.points,s=[];return n.segments.forEach(({start:a,end:r})=>{r=Ls(a,r,o);let l=o[a],c=o[r];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):e!==null&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}function Ls(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function pl(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function Gl(t,n){let e=[],i=!1;return be(t)?(i=!0,e=t):e=_1(t,n),e.length?new oo({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function dl(t){return t&&t.fill!==!1}function b1(t,n,e){let o=t[n].fill,s=[n],a;if(!e)return o;for(;o!==!1&&s.indexOf(o)===-1;){if(!we(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;s.push(o),o=a.fill}return!1}function y1(t,n,e){let i=w1(t);if(ee(i))return isNaN(i.value)?!1:i;let o=parseFloat(i);return we(o)&&Math.floor(o)===o?x1(i[0],n,o,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function x1(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function v1(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:ee(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function C1(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:ee(t)?i=t.value:i=n.getBaseValue(),i}function w1(t){let n=t.options,e=n.fill,i=G(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function T1(t){let{scale:n,index:e,line:i}=t,o=[],s=i.segments,a=i.points,r=I1(n,e);r.push(Gl({x:null,y:n.bottom},i));for(let l=0;l<s.length;l++){let c=s[l];for(let p=c.start;p<=c.end;p++)S1(o,a[p],r)}return new oo({points:o,options:{}})}function I1(t,n){let e=[],i=t.getMatchingVisibleMetas("line");for(let o=0;o<i.length;o++){let s=i[o];if(s.index===n)break;s.hidden||e.unshift(s.dataset)}return e}function S1(t,n,e){let i=[];for(let o=0;o<e.length;o++){let s=e[o],{first:a,last:r,point:l}=k1(s,n,"x");if(!(!l||a&&r)){if(a)i.unshift(l);else if(t.push(l),!r)break}}t.push(...i)}function k1(t,n,e){let i=t.interpolate(n,e);if(!i)return{};let o=i[e],s=t.segments,a=t.points,r=!1,l=!1;for(let c=0;c<s.length;c++){let p=s[c],d=a[p.start][e],u=a[p.end][e];if(Ct(o,d,u)){r=o===d,l=o===u;break}}return{first:r,last:l,point:i}}var to=class{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,e,i){let{x:o,y:s,radius:a}=this;return e=e||{start:0,end:xe},n.arc(o,s,a,e.end,e.start,!0),!i.bounds}interpolate(n){let{x:e,y:i,radius:o}=this,s=n.angle;return{x:e+Math.cos(s)*o,y:i+Math.sin(s)*o,angle:s}}};function O1(t){let{chart:n,fill:e,line:i}=t;if(we(e))return M1(n,e);if(e==="stack")return T1(t);if(e==="shape")return!0;let o=F1(t);return o instanceof to?o:Gl(o,i)}function M1(t,n){let e=t.getDatasetMeta(n);return e&&t.isDatasetVisible(n)?e.dataset:null}function F1(t){return(t.scale||{}).getPointPositionForValue?L1(t):E1(t)}function E1(t){let{scale:n={},fill:e}=t,i=v1(e,n);if(we(i)){let o=n.isHorizontal();return{x:o?i:null,y:o?null:i}}return null}function L1(t){let{scale:n,fill:e}=t,i=n.options,o=n.getLabels().length,s=i.reverse?n.max:n.min,a=C1(e,n,s),r=[];if(i.grid.circular){let l=n.getPointPositionForValue(0,s);return new to({x:l.x,y:l.y,radius:n.getDistanceFromCenterForValue(a)})}for(let l=0;l<o;++l)r.push(n.getPointPositionForValue(l,a));return r}function cs(t,n,e){let i=O1(n),{line:o,scale:s,axis:a}=n,r=o.options,l=r.fill,c=r.backgroundColor,{above:p=c,below:d=c}=l||{};i&&o.points.length&&(ji(t,e),V1(t,{line:o,target:i,above:p,below:d,area:e,scale:s,axis:a}),Ui(t))}function V1(t,n){let{line:e,target:i,above:o,below:s,area:a,scale:r}=n,l=e._loop?"angle":n.axis;t.save(),l==="x"&&s!==o&&(ul(t,i,a.top),hl(t,{line:e,target:i,color:o,scale:r,property:l}),t.restore(),t.save(),ul(t,i,a.bottom)),hl(t,{line:e,target:i,color:s,scale:r,property:l}),t.restore()}function ul(t,n,e){let{segments:i,points:o}=n,s=!0,a=!1;t.beginPath();for(let r of i){let{start:l,end:c}=r,p=o[l],d=o[Ls(l,c,o)];s?(t.moveTo(p.x,p.y),s=!1):(t.lineTo(p.x,e),t.lineTo(p.x,p.y)),a=!!n.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(d.x,e)}t.lineTo(n.first().x,e),t.closePath(),t.clip()}function hl(t,n){let{line:e,target:i,property:o,color:s,scale:a}=n,r=g1(e,i,o);for(let{source:l,target:c,start:p,end:d}of r){let{style:{backgroundColor:u=s}={}}=l,h=i!==!0;t.save(),t.fillStyle=u,D1(t,a,h&&Ts(o,p,d)),t.beginPath();let _=!!e.pathSegment(t,l),b;if(h){_?t.closePath():fl(t,i,d,o);let y=!!i.pathSegment(t,c,{move:_,reverse:!0});b=_&&y,b||fl(t,i,p,o)}t.closePath(),t.fill(b?"evenodd":"nonzero"),t.restore()}}function D1(t,n,e){let{top:i,bottom:o}=n.chart.chartArea,{property:s,start:a,end:r}=e||{};s==="x"&&(t.beginPath(),t.rect(a,i,r-a,o-i),t.clip())}function fl(t,n,e,i){let o=n.interpolate(e,i);o&&t.lineTo(o.x,o.y)}var P1={id:"filler",afterDatasetsUpdate(t,n,e){let i=(t.data.datasets||[]).length,o=[],s,a,r,l;for(a=0;a<i;++a)s=t.getDatasetMeta(a),r=s.dataset,l=null,r&&r.options&&r instanceof oo&&(l={visible:t.isDatasetVisible(a),index:a,fill:y1(r,a,i),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:r}),s.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],!(!l||l.fill===!1)&&(l.fill=b1(o,a,e.propagate))},beforeDraw(t,n,e){let i=e.drawTime==="beforeDraw",o=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=o.length-1;a>=0;--a){let r=o[a].$filler;r&&(r.line.updateControlPoints(s,r.axis),i&&r.fill&&cs(t.ctx,r,s))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){let s=i[o].$filler;dl(s)&&cs(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!dl(i)||e.drawTime!=="beforeDatasetDraw"||cs(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},ml=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},A1=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,io=class extends ut{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.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(n,e,i){this.maxWidth=n,this.maxHeight=e,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(){let n=this.options.labels||{},e=me(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,o)=>n.sort(i,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,o=Fe(i.font),s=o.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=ml(i,s),c,p;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,p=this._fitRows(a,s,r,l)+10):(p=this.maxHeight,c=this._fitCols(a,o,r,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(p,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,o){let{ctx:s,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],p=o+r,d=n;s.textAlign="left",s.textBaseline="middle";let u=-1,h=-p;return this.legendItems.forEach((_,b)=>{let y=i+e/2+s.measureText(_.text).width;(b===0||c[c.length-1]+y+2*r>a)&&(d+=p,c[c.length-(b>0?0:1)]=0,h+=p,u++),l[b]={left:0,top:h,row:u,width:y,height:o},c[c.length-1]+=y+r}),d}_fitCols(n,e,i,o){let{ctx:s,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],p=a-n,d=r,u=0,h=0,_=0,b=0;return this.legendItems.forEach((y,w)=>{let{itemWidth:v,itemHeight:M}=z1(i,e,s,y,o);w>0&&h+M+2*r>p&&(d+=u+r,c.push({width:u,height:h}),_+=u+r,b++,u=h=0),l[w]={left:_,top:h,col:b,width:v,height:M},u=Math.max(u,v),h+=M+r}),d+=u,c.push({width:u,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:o},rtl:s}}=this,a=ei(s,this.left,this.width);if(this.isHorizontal()){let r=0,l=We(i,this.left+o,this.right-this.lineWidths[r]);for(let c of e)r!==c.row&&(r=c.row,l=We(i,this.left+o,this.right-this.lineWidths[r])),c.top+=this.top+n+o,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+o}else{let r=0,l=We(i,this.top+n+o,this.bottom-this.columnSizes[r].height);for(let c of e)c.col!==r&&(r=c.col,l=We(i,this.top+n+o,this.bottom-this.columnSizes[r].height)),c.top=l,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;ji(n,this),this._draw(),Ui(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:o}=this,{align:s,labels:a}=n,r=Te.color,l=ei(n.rtl,this.left,this.width),c=Fe(a.font),{padding:p}=a,d=c.size,u=d/2,h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;let{boxWidth:_,boxHeight:b,itemHeight:y}=ml(a,d),w=function(L,z,D){if(isNaN(_)||_<=0||isNaN(b)||b<0)return;o.save();let B=G(D.lineWidth,1);if(o.fillStyle=G(D.fillStyle,r),o.lineCap=G(D.lineCap,"butt"),o.lineDashOffset=G(D.lineDashOffset,0),o.lineJoin=G(D.lineJoin,"miter"),o.lineWidth=B,o.strokeStyle=G(D.strokeStyle,r),o.setLineDash(G(D.lineDash,[])),a.usePointStyle){let X={radius:b*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:B},Y=l.xPlus(L,_/2),te=z+u;jo(o,X,Y,te,a.pointStyleWidth&&_)}else{let X=z+Math.max((d-b)/2,0),Y=l.leftForLtr(L,_),te=jt(D.borderRadius);o.beginPath(),Object.values(te).some(Re=>Re!==0)?Ti(o,{x:Y,y:X,w:_,h:b,radius:te}):o.rect(Y,X,_,b),o.fill(),B!==0&&o.stroke()}o.restore()},v=function(L,z,D){Nt(o,D.text,L,z+y/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},M=this.isHorizontal(),V=this._computeTitleHeight();M?h={x:We(s,this.left+p,this.right-i[0]),y:this.top+p+V,line:0}:h={x:this.left+p,y:We(s,this.top+V+p,this.bottom-e[0].height),line:0},Xo(this.ctx,n.textDirection);let I=y+p;this.legendItems.forEach((L,z)=>{o.strokeStyle=L.fontColor,o.fillStyle=L.fontColor;let D=o.measureText(L.text).width,B=l.textAlign(L.textAlign||(L.textAlign=a.textAlign)),X=_+u+D,Y=h.x,te=h.y;l.setWidth(this.width),M?z>0&&Y+X+p>this.right&&(te=h.y+=I,h.line++,Y=h.x=We(s,this.left+p,this.right-i[h.line])):z>0&&te+I>this.bottom&&(Y=h.x=Y+e[h.line].width+p,h.line++,te=h.y=We(s,this.top+V+p,this.bottom-e[h.line].height));let Re=l.x(Y);if(w(Re,te,L),Y=fr(B,Y+_+u,M?Y+X:this.right,n.rtl),v(l.x(Y),te,L),M)h.x+=X+p;else if(typeof L.text!="string"){let st=c.lineHeight;h.y+=Yl(L,st)+p}else h.y+=I}),Zo(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=Fe(e.font),o=Qe(e.padding);if(!e.display)return;let s=ei(n.rtl,this.left,this.width),a=this.ctx,r=e.position,l=i.size/2,c=o.top+l,p,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),p=this.top+c,d=We(n.align,d,this.right-u);else{let _=this.columnSizes.reduce((b,y)=>Math.max(b,y.height),0);p=c+We(n.align,this.top,this.bottom-_-n.labels.padding-this._computeTitleHeight())}let h=We(r,d,d+u);a.textAlign=s.textAlign(Dn(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Nt(a,e.text,h,p,i)}_computeTitleHeight(){let n=this.options.title,e=Fe(n.font),i=Qe(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,o,s;if(Ct(n,this.left,this.right)&&Ct(e,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(o=s[i],Ct(n,o.left,o.left+o.width)&&Ct(e,o.top,o.top+o.height))return this.legendItems[i]}return null}handleEvent(n){let e=this.options;if(!B1(n.type,e))return;let i=this._getLegendItemAt(n.x,n.y);if(n.type==="mousemove"||n.type==="mouseout"){let o=this._hoveredItem,s=A1(o,i);o&&!s&&me(e.onLeave,[n,o,this],this),this._hoveredItem=i,i&&!s&&me(e.onHover,[n,i,this],this)}else i&&me(e.onClick,[n,i,this],this)}};function z1(t,n,e,i,o){let s=$1(i,t,n,e),a=R1(o,i,n.lineHeight);return{itemWidth:s,itemHeight:a}}function $1(t,n,e,i){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((s,a)=>s.length>a.length?s:a)),n+e.size/2+i.measureText(o).width}function R1(t,n,e){let i=t;return typeof n.text!="string"&&(i=Yl(n,e)),i}function Yl(t,n){let e=t.text?t.text.length:0;return n*e}function B1(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var H1={id:"legend",_element:io,start(t,n,e){let i=t.legend=new io({ctx:t.ctx,options:e,chart:t});Ye.configure(t,i,e),Ye.addBox(t,i)},stop(t){Ye.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;Ye.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,o=e.chart;o.isDatasetVisible(i)?(o.hide(i),n.hidden=!0):(o.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:o,color:s,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),p=Qe(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(p.width+p.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(r||c.borderRadius),datasetIndex:l.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)}}},Ji=class extends ut{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.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(n,e){let 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=n,this.height=this.bottom=e;let o=be(i.text)?i.text.length:1;this._padding=Qe(i.padding);let s=o*Fe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:o,right:s,options:a}=this,r=a.align,l=0,c,p,d;return this.isHorizontal()?(p=We(r,i,s),d=e+n,c=s-i):(a.position==="left"?(p=i+n,d=We(r,o,e),l=ye*-.5):(p=s-n,d=We(r,e,o),l=ye*.5),c=o-e),{titleX:p,titleY:d,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=Fe(e.font),s=i.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:c}=this._drawArgs(s);Nt(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Dn(e.align),textBaseline:"middle",translation:[a,r]})}};function N1(t,n){let e=new Ji({ctx:t.ctx,options:n,chart:t});Ye.configure(t,e,n),Ye.addBox(t,e),t.titleBlock=e}var j1={id:"title",_element:Ji,start(t,n,e){N1(t,e)},stop(t){let n=t.titleBlock;Ye.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;Ye.configure(t,i,e),i.options=e},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}},Qn=new WeakMap,U1={id:"subtitle",start(t,n,e){let i=new Ji({ctx:t.ctx,options:e,chart:t});Ye.configure(t,i,e),Ye.addBox(t,i),Qn.set(t,i)},stop(t){Ye.removeBox(t,Qn.get(t)),Qn.delete(t)},beforeUpdate(t,n,e){let i=Qn.get(t);Ye.configure(t,i,e),i.options=e},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}},Xi={average(t){if(!t.length)return!1;let n,e,i=new Set,o=0,s=0;for(n=0,e=t.length;n<e;++n){let r=t[n].element;if(r&&r.hasValue()){let l=r.tooltipPosition();i.add(l.x),o+=l.y,++s}}return{x:[...i].reduce((r,l)=>r+l)/i.size,y:o/s}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,o=Number.POSITIVE_INFINITY,s,a,r;for(s=0,a=t.length;s<a;++s){let l=t[s].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),p=Mn(n,c);p<o&&(o=p,r=l)}}if(r){let l=r.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function wt(t,n){return n&&(be(n)?Array.prototype.push.apply(t,n):t.push(n)),t}function Vt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
`)>-1?t.split(`
`):t}function W1(t,n){let{element:e,datasetIndex:i,index:o}=n,s=t.getDatasetMeta(i).controller,{label:a,value:r}=s.getLabelAndValue(o);return{chart:t,label:a,parsed:s.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:r,dataset:s.getDataset(),dataIndex:o,datasetIndex:i,element:e}}function gl(t,n){let e=t.chart.ctx,{body:i,footer:o,title:s}=t,{boxWidth:a,boxHeight:r}=n,l=Fe(n.bodyFont),c=Fe(n.titleFont),p=Fe(n.footerFont),d=s.length,u=o.length,h=i.length,_=Qe(n.padding),b=_.height,y=0,w=i.reduce((V,I)=>V+I.before.length+I.lines.length+I.after.length,0);if(w+=t.beforeBody.length+t.afterBody.length,d&&(b+=d*c.lineHeight+(d-1)*n.titleSpacing+n.titleMarginBottom),w){let V=n.displayColors?Math.max(r,l.lineHeight):l.lineHeight;b+=h*V+(w-h)*l.lineHeight+(w-1)*n.bodySpacing}u&&(b+=n.footerMarginTop+u*p.lineHeight+(u-1)*n.footerSpacing);let v=0,M=function(V){y=Math.max(y,e.measureText(V).width+v)};return e.save(),e.font=c.string,se(t.title,M),e.font=l.string,se(t.beforeBody.concat(t.afterBody),M),v=n.displayColors?a+2+n.boxPadding:0,se(i,V=>{se(V.before,M),se(V.lines,M),se(V.after,M)}),v=0,e.font=p.string,se(t.footer,M),e.restore(),y+=_.width,{width:y,height:b}}function Q1(t,n){let{y:e,height:i}=n;return e<i/2?"top":e>t.height-i/2?"bottom":"center"}function K1(t,n,e,i){let{x:o,width:s}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&o+s+a>n.width||t==="right"&&o-s-a<0)return!0}function q1(t,n,e,i){let{x:o,width:s}=e,{width:a,chartArea:{left:r,right:l}}=t,c="center";return i==="center"?c=o<=(r+l)/2?"left":"right":o<=s/2?c="left":o>=a-s/2&&(c="right"),K1(c,t,n,e)&&(c="center"),c}function _l(t,n,e){let i=e.yAlign||n.yAlign||Q1(t,e);return{xAlign:e.xAlign||n.xAlign||q1(t,n,e,i),yAlign:i}}function G1(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function Y1(t,n,e){let{y:i,height:o}=t;return n==="top"?i+=e:n==="bottom"?i-=o+e:i-=o/2,i}function bl(t,n,e,i){let{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:r,yAlign:l}=e,c=o+s,{topLeft:p,topRight:d,bottomLeft:u,bottomRight:h}=jt(a),_=G1(n,r),b=Y1(n,l,c);return l==="center"?r==="left"?_+=c:r==="right"&&(_-=c):r==="left"?_-=Math.max(p,u)+o:r==="right"&&(_+=Math.max(d,h)+o),{x:Pe(_,0,i.width-n.width),y:Pe(b,0,i.height-n.height)}}function Kn(t,n,e){let i=Qe(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function yl(t){return wt([],Vt(t))}function X1(t,n,e){return Et(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function xl(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var Xl={beforeTitle:vt,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return e[n.dataIndex]}return""},afterTitle:vt,beforeBody:vt,beforeLabel:vt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let n=t.dataset.label||"";n&&(n+=": ");let e=t.formattedValue;return ie(e)||(n+=e),n},labelColor(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:vt,afterBody:vt,beforeFooter:vt,footer:vt,afterFooter:vt};function nt(t,n,e,i){let o=t[n].call(e,i);return typeof o>"u"?Xl[n].call(e,i):o}var vl=(()=>{class t extends ut{static positioners=Xi;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(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&i.options.animation&&o.animations,a=new Xn(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=X1(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:o}=i,s=nt(o,"beforeTitle",this,e),a=nt(o,"title",this,e),r=nt(o,"afterTitle",this,e),l=[];return l=wt(l,Vt(s)),l=wt(l,Vt(a)),l=wt(l,Vt(r)),l}getBeforeBody(e,i){return yl(nt(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:o}=i,s=[];return se(e,a=>{let r={before:[],lines:[],after:[]},l=xl(o,a);wt(r.before,Vt(nt(l,"beforeLabel",this,a))),wt(r.lines,nt(l,"label",this,a)),wt(r.after,Vt(nt(l,"afterLabel",this,a))),s.push(r)}),s}getAfterBody(e,i){return yl(nt(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:o}=i,s=nt(o,"beforeFooter",this,e),a=nt(o,"footer",this,e),r=nt(o,"afterFooter",this,e),l=[];return l=wt(l,Vt(s)),l=wt(l,Vt(a)),l=wt(l,Vt(r)),l}_createItems(e){let i=this._active,o=this.chart.data,s=[],a=[],r=[],l=[],c,p;for(c=0,p=i.length;c<p;++c)l.push(W1(this.chart,i[c]));return e.filter&&(l=l.filter((d,u,h)=>e.filter(d,u,h,o))),e.itemSort&&(l=l.sort((d,u)=>e.itemSort(d,u,o))),se(l,d=>{let u=xl(e.callbacks,d);s.push(nt(u,"labelColor",this,d)),a.push(nt(u,"labelPointStyle",this,d)),r.push(nt(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(e,i){let o=this.options.setContext(this.getContext()),s=this._active,a,r=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{let l=Xi[o.position].call(this,s,this._eventPosition);r=this._createItems(o),this.title=this.getTitle(r,o),this.beforeBody=this.getBeforeBody(r,o),this.body=this.getBody(r,o),this.afterBody=this.getAfterBody(r,o),this.footer=this.getFooter(r,o);let c=this._size=gl(this,o),p=Object.assign({},l,c),d=_l(this.chart,o,p),u=bl(o,p,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,o,s){let a=this.getCaretPosition(e,o,s);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,o){let{xAlign:s,yAlign:a}=this,{caretSize:r,cornerRadius:l}=o,{topLeft:c,topRight:p,bottomLeft:d,bottomRight:u}=jt(l),{x:h,y:_}=e,{width:b,height:y}=i,w,v,M,V,I,L;return a==="center"?(I=_+y/2,s==="left"?(w=h,v=w-r,V=I+r,L=I-r):(w=h+b,v=w+r,V=I-r,L=I+r),M=w):(s==="left"?v=h+Math.max(c,d)+r:s==="right"?v=h+b-Math.max(p,u)-r:v=this.caretX,a==="top"?(V=_,I=V-r,w=v-r,M=v+r):(V=_+y,I=V+r,w=v+r,M=v-r),L=V),{x1:w,x2:v,x3:M,y1:V,y2:I,y3:L}}drawTitle(e,i,o){let s=this.title,a=s.length,r,l,c;if(a){let p=ei(o.rtl,this.x,this.width);for(e.x=Kn(this,o.titleAlign,o),i.textAlign=p.textAlign(o.titleAlign),i.textBaseline="middle",r=Fe(o.titleFont),l=o.titleSpacing,i.fillStyle=o.titleColor,i.font=r.string,c=0;c<a;++c)i.fillText(s[c],p.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+l,c+1===a&&(e.y+=o.titleMarginBottom-l)}}_drawColorBox(e,i,o,s,a){let r=this.labelColors[o],l=this.labelPointStyles[o],{boxHeight:c,boxWidth:p}=a,d=Fe(a.bodyFont),u=Kn(this,"left",a),h=s.x(u),_=c<d.lineHeight?(d.lineHeight-c)/2:0,b=i.y+_;if(a.usePointStyle){let y={radius:Math.min(p,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},w=s.leftForLtr(h,p)+p/2,v=b+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,An(e,y,w,v),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,An(e,y,w,v)}else{e.lineWidth=ee(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;let y=s.leftForLtr(h,p),w=s.leftForLtr(s.xPlus(h,1),p-2),v=jt(r.borderRadius);Object.values(v).some(M=>M!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Ti(e,{x:y,y:b,w:p,h:c,radius:v}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),Ti(e,{x:w,y:b+1,w:p-2,h:c-2,radius:v}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(y,b,p,c),e.strokeRect(y,b,p,c),e.fillStyle=r.backgroundColor,e.fillRect(w,b+1,p-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,i,o){let{body:s}=this,{bodySpacing:a,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:p,boxPadding:d}=o,u=Fe(o.bodyFont),h=u.lineHeight,_=0,b=ei(o.rtl,this.x,this.width),y=function(B){i.fillText(B,b.x(e.x+_),e.y+h/2),e.y+=h+a},w=b.textAlign(r),v,M,V,I,L,z,D;for(i.textAlign=r,i.textBaseline="middle",i.font=u.string,e.x=Kn(this,w,o),i.fillStyle=o.bodyColor,se(this.beforeBody,y),_=l&&w!=="right"?r==="center"?p/2+d:p+2+d:0,I=0,z=s.length;I<z;++I){for(v=s[I],M=this.labelTextColors[I],i.fillStyle=M,se(v.before,y),V=v.lines,l&&V.length&&(this._drawColorBox(i,e,I,b,o),h=Math.max(u.lineHeight,c)),L=0,D=V.length;L<D;++L)y(V[L]),h=u.lineHeight;se(v.after,y)}_=0,h=u.lineHeight,se(this.afterBody,y),e.y-=a}drawFooter(e,i,o){let s=this.footer,a=s.length,r,l;if(a){let c=ei(o.rtl,this.x,this.width);for(e.x=Kn(this,o.footerAlign,o),e.y+=o.footerMarginTop,i.textAlign=c.textAlign(o.footerAlign),i.textBaseline="middle",r=Fe(o.footerFont),i.fillStyle=o.footerColor,i.font=r.string,l=0;l<a;++l)i.fillText(s[l],c.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+o.footerSpacing}}drawBackground(e,i,o,s){let{xAlign:a,yAlign:r}=this,{x:l,y:c}=e,{width:p,height:d}=o,{topLeft:u,topRight:h,bottomLeft:_,bottomRight:b}=jt(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(l+u,c),r==="top"&&this.drawCaret(e,i,o,s),i.lineTo(l+p-h,c),i.quadraticCurveTo(l+p,c,l+p,c+h),r==="center"&&a==="right"&&this.drawCaret(e,i,o,s),i.lineTo(l+p,c+d-b),i.quadraticCurveTo(l+p,c+d,l+p-b,c+d),r==="bottom"&&this.drawCaret(e,i,o,s),i.lineTo(l+_,c+d),i.quadraticCurveTo(l,c+d,l,c+d-_),r==="center"&&a==="left"&&this.drawCaret(e,i,o,s),i.lineTo(l,c+u),i.quadraticCurveTo(l,c,l+u,c),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,o=this.$animations,s=o&&o.x,a=o&&o.y;if(s||a){let r=Xi[e.position].call(this,this._active,this._eventPosition);if(!r)return;let l=this._size=gl(this,e),c=Object.assign({},r,this._size),p=_l(i,e,c),d=bl(e,c,p,i);(s._to!==d.x||a._to!==d.y)&&(this.xAlign=p.xAlign,this.yAlign=p.yAlign,this.width=l.width,this.height=l.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),o=this.opacity;if(!o)return;this._updateAnimationTarget(i);let s={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;let r=Qe(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=o,this.drawBackground(a,e,s,i),Xo(e,i.textDirection),a.y+=r.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),Zo(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let o=this._active,s=e.map(({datasetIndex:l,index:c})=>{let p=this.chart.getDatasetMeta(l);if(!p)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:p.data[c],index:c}}),a=!Hi(o,s),r=this._positionChanged(s,i);(a||r)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,o=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,a=this._active||[],r=this._getActiveElements(e,a,i,o),l=this._positionChanged(r,e),c=i||!Hi(r,a)||l;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,o,s){let a=this.options;if(e.type==="mouseout")return[];if(!s)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let r=this.chart.getElementsAtEventForMode(e,a.mode,a,o);return a.reverse&&r.reverse(),r}_positionChanged(e,i){let{caretX:o,caretY:s,options:a}=this,r=Xi[a.position].call(this,e,i);return r!==!1&&(o!==r.x||s!==r.y)}}return t})(),Z1={id:"tooltip",_element:vl,positioners:Xi,afterInit(t,n,e){e&&(t.tooltip=new vl({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",ht(at({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.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,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.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:Xl},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"]},J1=Object.freeze({__proto__:null,Colors:d1,Decimation:m1,Filler:P1,Legend:H1,SubTitle:U1,Title:j1,Tooltip:Z1}),ey=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function ty(t,n,e,i){let o=t.indexOf(n);if(o===-1)return ey(t,n,e,i);let s=t.lastIndexOf(n);return o!==s?e:o}var iy=(t,n)=>t===null?null:Pe(Math.round(t),0,n);function Cl(t){let n=this.getLabels();return t>=0&&t<n.length?n[t]:t}var ny=(()=>{class t extends ni{static id="category";static defaults={ticks:{callback:Cl}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let o=this.getLabels();for(let{index:s,label:a}of i)o[s]===a&&o.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(ie(e))return null;let o=this.getLabels();return i=isFinite(i)&&o[i]===e?i:ty(o,e,G(i,e),this._addedLabels),iy(i,o.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:o,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),i||(s=this.getLabels().length-1)),this.min=o,this.max=s}buildTicks(){let e=this.min,i=this.max,o=this.options.offset,s=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let r=e;r<=i;r++)s.push({value:r});return s}getLabelForValue(e){return Cl.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){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function oy(t,n){let e=[],{bounds:o,step:s,min:a,max:r,precision:l,count:c,maxTicks:p,maxDigits:d,includeBounds:u}=t,h=s||1,_=p-1,{min:b,max:y}=n,w=!ie(a),v=!ie(r),M=!ie(c),V=(y-b)/(d+1),I=Fo((y-b)/_/h)*h,L,z,D,B;if(I<1e-14&&!w&&!v)return[{value:b},{value:y}];B=Math.ceil(y/I)-Math.floor(b/I),B>_&&(I=Fo(B*I/_/h)*h),ie(l)||(L=Math.pow(10,l),I=Math.ceil(I*L)/L),o==="ticks"?(z=Math.floor(b/I)*I,D=Math.ceil(y/I)*I):(z=b,D=y),w&&v&&s&&rr((r-a)/s,I/1e3)?(B=Math.round(Math.min((r-a)/I,p)),I=(r-a)/B,z=a,D=r):M?(z=w?a:z,D=v?r:D,B=c-1,I=(D-z)/B):(B=(D-z)/I,vi(B,Math.round(B),I/1e3)?B=Math.round(B):B=Math.ceil(B));let X=Math.max(Lo(I),Lo(z));L=Math.pow(10,ie(l)?X:l),z=Math.round(z*L)/L,D=Math.round(D*L)/L;let Y=0;for(w&&(u&&z!==a?(e.push({value:a}),z<a&&Y++,vi(Math.round((z+Y*I)*L)/L,a,wl(a,V,t))&&Y++):z<a&&Y++);Y<B;++Y){let te=Math.round((z+Y*I)*L)/L;if(v&&te>r)break;e.push({value:te})}return v&&u&&D!==r?e.length&&vi(e[e.length-1].value,r,wl(r,V,t))?e[e.length-1].value=r:e.push({value:r}):(!v||D===r)&&e.push({value:D}),e}function wl(t,n,{horizontal:e,minRotation:i}){let o=lt(i),s=(e?Math.sin(o):Math.cos(o))||.001,a=.75*n*(""+t).length;return Math.min(n/s,a)}var Oi=class extends ni{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return ie(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:o,max:s}=this,a=l=>o=e?o:l,r=l=>s=i?s:l;if(n){let l=dt(o),c=dt(s);l<0&&c<0?r(0):l>0&&c>0&&a(0)}if(o===s){let l=s===0?1:Math.abs(s*.05);r(s+l),n||a(o-l)}this.min=o,this.max=s}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,o;return i?(o=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let o={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},s=this._range||this,a=oy(o,s);return n.bounds==="ticks"&&Eo(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let o=(i-e)/Math.max(n.length-1,1)/2;e-=o,i+=o}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return wi(n,this.chart.options.locale,this.options.ticks.format)}},Is=class extends Oi{static id="linear";static defaults={ticks:{callback:Ni.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=we(n)?n:0,this.max=we(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=lt(this.options.ticks.minRotation),o=(n?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/o))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},en=t=>Math.floor(Mt(t)),ii=(t,n)=>Math.pow(10,en(t)+n);function Tl(t){return t/Math.pow(10,en(t))===1}function Il(t,n,e){let i=Math.pow(10,e),o=Math.floor(t/i);return Math.ceil(n/i)-o}function sy(t,n){let e=n-t,i=en(e);for(;Il(t,n,i)>10;)i++;for(;Il(t,n,i)<10;)i--;return Math.min(i,en(t))}function ay(t,{min:n,max:e}){n=it(t.min,n);let i=[],o=en(n),s=sy(n,e),a=s<0?Math.pow(10,Math.abs(s)):1,r=Math.pow(10,s),l=o>s?Math.pow(10,o):0,c=Math.round((n-l)*a)/a,p=Math.floor((n-l)/r/10)*r*10,d=Math.floor((c-p)/Math.pow(10,s)),u=it(t.min,Math.round((l+p+d*Math.pow(10,s))*a)/a);for(;u<e;)i.push({value:u,major:Tl(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,a=s>=0?1:a),u=Math.round((l+p+d*Math.pow(10,s))*a)/a;let h=it(t.max,u);return i.push({value:h,major:Tl(h),significand:d}),i}var Ss=class extends ni{static id="logarithmic";static defaults={ticks:{callback:Ni.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=Oi.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return we(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=we(n)?Math.max(0,n):null,this.max=we(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!we(this._userMin)&&(this.min=n===ii(this.min,0)?ii(this.min,-1):ii(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,o=this.max,s=r=>i=n?i:r,a=r=>o=e?o:r;i===o&&(i<=0?(s(1),a(10)):(s(ii(i,-1)),a(ii(o,1)))),i<=0&&s(ii(o,-1)),o<=0&&a(ii(i,1)),this.min=i,this.max=o}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=ay(e,this);return n.bounds==="ticks"&&Eo(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":wi(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=Mt(n),this._valueRange=Mt(this.max)-Mt(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(Mt(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ks(t){let n=t.ticks;if(n.display&&t.display){let e=Qe(n.backdropPadding);return G(n.font&&n.font.size,Te.font.size)+e.height}return 0}function ry(t,n,e){return e=be(e)?e:[e],{w:gr(t,n.string,e),h:e.length*n.lineHeight}}function Sl(t,n,e,i,o){return t===i||t===o?{start:n-e/2,end:n+e/2}:t<i||t>o?{start:n-e,end:n}:{start:n,end:n+e}}function ly(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?ye/s:0;for(let l=0;l<s;l++){let c=a.setContext(t.getPointLabelContext(l));o[l]=c.padding;let p=t.getPointPosition(l,t.drawingArea+o[l],r),d=Fe(c.font),u=ry(t.ctx,d,t._pointLabels[l]);i[l]=u;let h=tt(t.getIndexAngle(l)+r),_=Math.round(Ln(h)),b=Sl(_,p.x,u.w,0,180),y=Sl(_,p.y,u.h,90,270);cy(e,n,h,b,y)}t.setCenterPoint(n.l-e.l,e.r-n.r,n.t-e.t,e.b-n.b),t._pointLabelItems=uy(t,i,o)}function cy(t,n,e,i,o){let s=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e)),r=0,l=0;i.start<n.l?(r=(n.l-i.start)/s,t.l=Math.min(t.l,n.l-r)):i.end>n.r&&(r=(i.end-n.r)/s,t.r=Math.max(t.r,n.r+r)),o.start<n.t?(l=(n.t-o.start)/a,t.t=Math.min(t.t,n.t-l)):o.end>n.b&&(l=(o.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function py(t,n,e){let i=t.drawingArea,{extra:o,additionalAngle:s,padding:a,size:r}=e,l=t.getPointPosition(n,i+o+a,s),c=Math.round(Ln(tt(l.angle+Se))),p=my(l.y,r.h,c),d=hy(c),u=fy(l.x,r.w,d);return{visible:!0,x:l.x,y:p,textAlign:d,left:u,top:p,right:u+r.w,bottom:p+r.h}}function dy(t,n){if(!n)return!0;let{left:e,top:i,right:o,bottom:s}=t;return!(xt({x:e,y:i},n)||xt({x:e,y:s},n)||xt({x:o,y:i},n)||xt({x:o,y:s},n))}function uy(t,n,e){let i=[],o=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:r}=s.pointLabels,l={extra:ks(s)/2,additionalAngle:a?ye/o:0},c;for(let p=0;p<o;p++){l.padding=e[p],l.size=n[p];let d=py(t,p,l);i.push(d),r==="auto"&&(d.visible=dy(d,c),d.visible&&(c=d))}return i}function hy(t){return t===0||t===180?"center":t<180?"left":"right"}function fy(t,n,e){return e==="right"?t-=n:e==="center"&&(t-=n/2),t}function my(t,n,e){return e===90||e===270?t-=n/2:(e>270||e<90)&&(t-=n),t}function gy(t,n,e){let{left:i,top:o,right:s,bottom:a}=e,{backdropColor:r}=n;if(!ie(r)){let l=jt(n.borderRadius),c=Qe(n.backdropPadding);t.fillStyle=r;let p=i-c.left,d=o-c.top,u=s-i+c.width,h=a-o+c.height;Object.values(l).some(_=>_!==0)?(t.beginPath(),Ti(t,{x:p,y:d,w:u,h,radius:l}),t.fill()):t.fillRect(p,d,u,h)}}function _y(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let o=n-1;o>=0;o--){let s=t._pointLabelItems[o];if(!s.visible)continue;let a=i.setContext(t.getPointLabelContext(o));gy(e,a,s);let r=Fe(a.font),{x:l,y:c,textAlign:p}=s;Nt(e,t._pointLabels[o],l,c+r.lineHeight/2,r,{color:a.color,textAlign:p,textBaseline:"middle"})}}function Zl(t,n,e,i){let{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,n,0,xe);else{let s=t.getPointPosition(0,n);o.moveTo(s.x,s.y);for(let a=1;a<i;a++)s=t.getPointPosition(a,n),o.lineTo(s.x,s.y)}}function by(t,n,e,i,o){let s=t.ctx,a=n.circular,{color:r,lineWidth:l}=n;!a&&!i||!r||!l||e<0||(s.save(),s.strokeStyle=r,s.lineWidth=l,s.setLineDash(o.dash),s.lineDashOffset=o.dashOffset,s.beginPath(),Zl(t,e,a,i),s.closePath(),s.stroke(),s.restore())}function yy(t,n,e){return Et(t,{label:e,index:n,type:"pointLabel"})}var Os=class extends Oi{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ni.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let n=this._padding=Qe(ks(this.options)/2),e=this.width=this.maxWidth-n.width,i=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+e/2+n.left),this.yCenter=Math.floor(this.top+i/2+n.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!1);this.min=we(n)&&!isNaN(n)?n:0,this.max=we(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ks(this.options))}generateTickLabels(n){Oi.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((e,i)=>{let o=me(this.options.pointLabels.callback,[e,i],this);return o||o===0?o:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?ly(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,o){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,o))}getIndexAngle(n){let e=xe/(this._pointLabels.length||1),i=this.options.startAngle||0;return tt(n*e+lt(i))}getDistanceFromCenterForValue(n){if(ie(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(ie(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n<e.length){let i=e[n];return yy(this.getContext(),n,i)}}getPointPosition(n,e,i=0){let o=this.getIndexAngle(n)-Se+i;return{x:Math.cos(o)*e+this.xCenter,y:Math.sin(o)*e+this.yCenter,angle:o}}getPointPositionForValue(n,e){return this.getPointPosition(n,this.getDistanceFromCenterForValue(e))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){let{left:e,top:i,right:o,bottom:s}=this._pointLabelItems[n];return{left:e,top:i,right:o,bottom:s}}drawBackground(){let{backgroundColor:n,grid:{circular:e}}=this.options;if(n){let i=this.ctx;i.save(),i.beginPath(),Zl(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}drawGrid(){let n=this.ctx,e=this.options,{angleLines:i,grid:o,border:s}=e,a=this._pointLabels.length,r,l,c;if(e.pointLabels.display&&_y(this,a),o.display&&this.ticks.forEach((p,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(p.value);let u=this.getContext(d),h=o.setContext(u),_=s.setContext(u);by(this,h,l,a,_)}}),i.display){for(n.save(),r=a-1;r>=0;r--){let p=i.setContext(this.getPointLabelContext(r)),{color:d,lineWidth:u}=p;!u||!d||(n.lineWidth=u,n.strokeStyle=d,n.setLineDash(p.borderDash),n.lineDashOffset=p.borderDashOffset,l=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(r,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let o=this.getIndexAngle(0),s,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(o),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),p=Fe(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=p.string,a=n.measureText(r.label).width,n.fillStyle=c.backdropColor;let d=Qe(c.backdropPadding);n.fillRect(-a/2-d.left,-s-p.size/2-d.top,a+d.width,p.size+d.height)}Nt(n,r.label,0,-s,p,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},so={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}},ot=Object.keys(so);function kl(t,n){return t-n}function Ol(t,n){if(ie(n))return null;let e=t._adapter,{parser:i,round:o,isoWeekday:s}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),we(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(o&&(a=o==="week"&&(Jt(s)||s===!0)?e.startOf(a,"isoWeek",s):e.startOf(a,o)),+a)}function Ml(t,n,e,i){let o=ot.length;for(let s=ot.indexOf(t);s<o-1;++s){let a=so[ot[s]],r=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-n)/(r*a.size))<=i)return ot[s]}return ot[o-1]}function xy(t,n,e,i,o){for(let s=ot.length-1;s>=ot.indexOf(e);s--){let a=ot[s];if(so[a].common&&t._adapter.diff(o,i,a)>=n-1)return a}return ot[e?ot.indexOf(e):0]}function vy(t){for(let n=ot.indexOf(t)+1,e=ot.length;n<e;++n)if(so[ot[n]].common)return ot[n]}function Fl(t,n,e){if(!e)t[n]=!0;else if(e.length){let{lo:i,hi:o}=Vn(e,n),s=e[i]>=n?e[i]:e[o];t[s]=!0}}function Cy(t,n,e,i){let o=t._adapter,s=+o.startOf(n[0].value,i),a=n[n.length-1].value,r,l;for(r=s;r<=a;r=+o.add(r,1,i))l=e[r],l>=0&&(n[l].major=!0);return n}function El(t,n,e){let i=[],o={},s=n.length,a,r;for(a=0;a<s;++a)r=n[a],o[r]=a,i.push({value:r,major:!1});return s===0||!e?i:Cy(t,i,o,e)}var Ms=(()=>{class t extends ni{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};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,i={}){let o=e.time||(e.time={}),s=this._adapter=new D_._date(e.adapters.date);s.init(i),yi(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:Ol(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,o=e.time.unit||"day",{min:s,max:a,minDefined:r,maxDefined:l}=this.getUserBounds();function c(p){!r&&!isNaN(p.min)&&(s=Math.min(s,p.min)),!l&&!isNaN(p.max)&&(a=Math.max(a,p.max))}(!r||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=we(s)&&!isNaN(s)?s:+i.startOf(Date.now(),o),a=we(a)&&!isNaN(a)?a:+i.endOf(Date.now(),o)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],o=e[e.length-1]),{min:i,max:o}}buildTicks(){let e=this.options,i=e.time,o=e.ticks,s=o.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]);let a=this.min,r=this.max,l=pr(s,a,r);return this._unit=i.unit||(o.autoSkip?Ml(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):xy(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:vy(this._unit),this.initOffsets(s),e.reverse&&l.reverse(),El(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,o=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?i=1-s:i=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?o=a:o=(a-this.getDecimalForValue(e[e.length-2]))/2);let r=e.length<3?.5:.25;i=Pe(i,0,r),o=Pe(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){let e=this._adapter,i=this.min,o=this.max,s=this.options,a=s.time,r=a.unit||Ml(a.minUnit,i,o,this._getLabelCapacity(i)),l=G(s.ticks.stepSize,1),c=r==="week"?a.isoWeekday:!1,p=Jt(c)||c===!0,d={},u=i,h,_;if(p&&(u=+e.startOf(u,"isoWeek",c)),u=+e.startOf(u,p?"day":r),e.diff(o,i,r)>1e5*l)throw new Error(i+" and "+o+" are too far apart with stepSize of "+l+" "+r);let b=s.ticks.source==="data"&&this.getDataTimestamps();for(h=u,_=0;h<o;h=+e.add(h,l,r),_++)Fl(d,h,b);return(h===o||s.bounds==="ticks"||_===1)&&Fl(d,h,b),Object.keys(d).sort(kl).map(y=>+y)}getLabelForValue(e){let i=this._adapter,o=this.options.time;return o.tooltipFormat?i.format(e,o.tooltipFormat):i.format(e,o.displayFormats.datetime)}format(e,i){let s=this.options.time.displayFormats,a=this._unit,r=i||s[a];return this._adapter.format(e,r)}_tickFormatFunction(e,i,o,s){let a=this.options,r=a.ticks.callback;if(r)return me(r,[e,i,o],this);let l=a.time.displayFormats,c=this._unit,p=this._majorUnit,d=c&&l[c],u=p&&l[p],h=o[i],_=p&&u&&h&&h.major;return this._adapter.format(e,s||(_?u:d))}generateTickLabels(e){let i,o,s;for(i=0,o=e.length;i<o;++i)s=e[i],s.label=this._tickFormatFunction(s.value,i,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let i=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((i.start+o)*i.factor)}getValueForPixel(e){let i=this._offsets,o=this.getDecimalForPixel(e)/i.factor-i.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){let i=this.options.ticks,o=this.ctx.measureText(e).width,s=lt(this.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(s),r=Math.sin(s),l=this._resolveTickFontOptions(0).size;return{w:o*a+l*r,h:o*r+l*a}}_getLabelCapacity(e){let i=this.options.time,o=i.displayFormats,s=o[i.unit]||o.millisecond,a=this._tickFormatFunction(e,0,El(this,[e],this._majorUnit),s),r=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,o;if(e.length)return e;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,o=s.length;i<o;++i)e=e.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],i,o;if(e.length)return e;let s=this.getLabels();for(i=0,o=s.length;i<o;++i)e.push(Ol(this,s[i]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Po(e.sort(kl))}}return t})();function qn(t,n,e){let i=0,o=t.length-1,s,a,r,l;e?(n>=t[i].pos&&n<=t[o].pos&&({lo:i,hi:o}=yt(t,"pos",n)),{pos:s,time:r}=t[i],{pos:a,time:l}=t[o]):(n>=t[i].time&&n<=t[o].time&&({lo:i,hi:o}=yt(t,"time",n)),{time:s,pos:r}=t[i],{time:a,pos:l}=t[o]);let c=a-s;return c?r+(l-r)*(n-s)/c:r}var Fs=class extends Ms{static id="timeseries";static defaults=Ms.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=qn(e,this.min),this._tableRange=qn(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,o=[],s=[],a,r,l,c,p;for(a=0,r=n.length;a<r;++a)c=n[a],c>=e&&c<=i&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,r=o.length;a<r;++a)p=o[a+1],l=o[a-1],c=o[a],Math.round((p+l)/2)!==c&&s.push({time:c,pos:a/(r-1)});return s}_generate(){let n=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(n)||!i.length)&&i.splice(0,0,n),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((o,s)=>o-s)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(qn(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return qn(this._table,i*this._tableRange+this._minPos,!0)}},wy=Object.freeze({__proto__:null,CategoryScale:ny,LinearScale:Is,LogarithmicScale:Ss,RadialLinearScale:Os,TimeScale:Ms,TimeSeriesScale:Fs}),Jl=[V_,s1,J1,wy];no.register(...Jl);var ec=no;var Ty=(()=>{class t{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}onDataSelect=new N;isBrowser=!1;initialized;_data;_options={};chart;constructor(e,i,o){this.platformId=e,this.el=i,this.zone=o}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){let i=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),o=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);i&&i[0]&&o&&this.onDataSelect.emit({originalEvent:e,element:i[0],dataset:o})}}initChart(){if(Li(this.platformId)){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new ec(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(i){return new(i||t)(pt(Ps),pt(Ds),pt(Dt))};static \u0275cmp=Z({type:t,selectors:[["p-chart"]],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[2,"responsive","responsive",A],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},features:[Ee],decls:2,vars:8,consts:[[2,"position","relative"],["role","img",3,"click"]],template:function(i,o){i&1&&(C(0,"div",0)(1,"canvas",1),$("click",function(a){return o.onCanvasClick(a)}),T()()),i&2&&(Ge("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height),g(),S("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height))},dependencies:[re,H],encapsulation:2,changeDetection:0})}return t})(),Bw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=ce({imports:[Ty,H,H]})}return t})();export{sc as a,zy as b,Sc as c,Jy as d,Fc as e,px as f,Dc as g,wx as h,Di as i,iv as j,Ia as k,Mv as l,pu as m,Zv as n,bo as o,_2 as p,yo as q,L2 as r,uf as s,iC as t,La as u,vC as v,Ff as w,AC as x,$a as y,gw as z,Ty as A,Bw as B};
