PageSourceSearch

https://central.portworx.com/366.d614eb584670a922.js

js portworx.com collected 2026-09-24 08:54:11 UTC 422,377 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpxcentral=self.webpackChunkpxcentral||[]).push([[366],{152:(ud,Ji,B)=>{B.d(Ji,{B:()=>Et});var s=B(3236),k=B(9974),Ze=B(4360);function Et(Vn,tn=s.E){return(0,k.N)((en,yt)=>{let ht=null,Ut=null,Yn=null;const Zi=()=>{if(ht){ht.unsubscribe(),ht=null;const At=Ut;Ut=null,yt.next(At)}};function Xo(){const At=Yn+Vn,nn=tn.now();if(nn<At)return ht=this.schedule(void 0,At-nn),void yt.add(ht);Zi()}en.subscribe((0,Ze._)(yt,At=>{Ut=At,Yn=tn.now(),ht||(ht=tn.schedule(Xo,Vn),yt.add(ht))},()=>{Zi(),yt.complete()},void 0,()=>{Ut=ht=null}))})}},6985:(ud,Ji,B)=>{B.d(Ji,{Un:()=>Ke,_E:()=>od,bI:()=>qi,HQ:()=>Bo,py:()=>Eo,jX:()=>$k,Pl:()=>Ro,IF:()=>sd,B$:()=>ke});var s=B(1360),k=B(2881),Ze=B(5207),Et=B(9361),Vn=B(6048),tn=B(9377);let en;try{en=typeof Intl<"u"&&Intl.v8BreakIterator}catch{en=!1}let yt=(()=>{class e{_platformId=(0,s.WQX)(s.Agw);isBrowser=this._platformId?(0,tn.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!en)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ht(e,n,t,i,o){const r=parseInt(s.xvI.major),a=parseInt(s.xvI.minor);return r>19||19===r&&a>0||0===r&&0===a?e.listen(n,t,i,o):(n.addEventListener(t,i,o),()=>{n.removeEventListener(t,i,o)})}function At(e){return e.composedPath?e.composedPath()[0]:e.target}function nn(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const zn=new WeakMap;let Wo=(()=>{class e{_appRef;_injector=(0,s.WQX)(s.zZn);_environmentInjector=(0,s.WQX)(s.uvJ);load(t){const i=this._appRef=this._appRef||this._injector.get(s.o8S);let o=zn.get(i);o||(o={loaders:new Set,refs:[]},zn.set(i,o),i.onDestroy(()=>{zn.get(i)?.refs.forEach(r=>r.destroy()),zn.delete(i)})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push((0,s.a0P)(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nt=B(1413),St=B(8359),fd=B(7786),Uo=B(5964),md=B(6977);function Z(e){return null==e?"":"string"==typeof e?e:`${e}px`}function qo(e){return Array.isArray(e)?e:[e]}var _d=B(7673),bd=B(1985),Ko=B(6780);const sn={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=sn;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const o=n(r=>{t=void 0,e(r)});return new St.yU(()=>t?.(o))},requestAnimationFrame(...e){const{delegate:n}=sn;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=sn;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Qo=B(3604);new class wd extends Qo.q{flush(n){let t;this._active=!0,n?t=n.id:(t=this._scheduled,this._scheduled=void 0);const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw o}}}(class vd extends Ko.R{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=sn.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:r}=n;null!=t&&t===n._scheduled&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==t&&(sn.cancelAnimationFrame(t),n._scheduled=void 0)}});let ts,Cd=1;const Hn={};
1function Jo(e){return e in Hn&&(delete Hn[e],!0)}const xd={setImmediate(e){const n=Cd++;return Hn[n]=!0,ts||(ts=Promise.resolve()),ts.then(()=>Jo(n)&&e()),n},clearImmediate(e){Jo(e)}},{setImmediate:kd,clearImmediate:Pd}=xd,Xn={setImmediate(...e){const{delegate:n}=Xn;return(n?.setImmediate||kd)(...e)},clearImmediate(e){const{delegate:n}=Xn;return(n?.clearImmediate||Pd)(e)},delegate:void 0};new class Md extends Qo.q{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw o}}}(class Od extends Ko.R{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Xn.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:r}=n;null!=t&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==t&&(Xn.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});var Td=B(3236),Dd=B(9974),Nd=B(8750),Zo=B(4360),Rd=B(1584);function tr(e,n=Td.E){return function Id(e){return(0,Dd.N)((n,t)=>{let i=!1,o=null,r=null,a=!1;const l=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const d=o;o=null,t.next(d)}a&&t.complete()},c=()=>{r=null,a&&t.complete()};n.subscribe((0,Zo._)(t,d=>{i=!0,o=d,r||(0,Nd.Tg)(e(d)).subscribe(r=(0,Zo._)(t,l,c))},()=>{a=!0,(!i||!r||r.closed)&&t.complete()}))})}(()=>(0,Rd.O)(e,n))}let re,es=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=s.$C({type:e});static \u0275inj=s.G2t({})}return e})(),Fd=(()=>{class e{_ngZone=(0,s.WQX)(s.SKi);_platform=(0,s.WQX)(yt);_renderer=(0,s.WQX)(s._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new nt.B;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new bd.c(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const o=t>0?this._scrolled.pipe(tr(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,_d.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe((0,Uo.p)(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,t)&&i.push(r)}),i}_scrollableContainsElement(t,i){let o=function Ad(e){return e instanceof s.aKT?e.nativeElement:e}(i),r=t.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),er=(()=>{class e{_platform=(0,s.WQX)(yt);_listeners;_viewportSize;_change=new nt.B;_document=(0,s.WQX)(Et.q,{optional:!0});constructor(){const t=(0,s.WQX)(s.SKi),i=(0,s.WQX)(s._9s).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){const o=r=>this._change.next(r);this._listeners=[i.listen("window","resize",o),i.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();
1return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(tr(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nr=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=s.$C({type:e});static \u0275inj=s.G2t({})}return e})(),ir=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=s.$C({type:e});static \u0275inj=s.G2t({imports:[es,nr,es,nr]})}return e})();
1function jd(){if(null==re){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return re=!1,re;if("scrollBehavior"in document.documentElement.style)re=!0;else{const e=Element.prototype.scrollTo;re=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return re}class ns{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Gd extends ns{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,t,i,o,r){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.projectableNodes=r}}class sr extends ns{templateRef;viewContainerRef;context;injector;constructor(n,t,i,o){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class $d extends ns{element;constructor(n){super(),this.element=n instanceof s.aKT?n.nativeElement:n}}class Vd{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Gd?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof sr?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof $d?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Yd extends Vd{outletElement;_appRef;_defaultInjector;_document;constructor(n,t,i,o,r){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=o,this._document=r}attachComponentPortal(n){let t;if(n.viewContainerRef){const i=n.injector||n.viewContainerRef.injector,o=i.get(s.Vns,null,{optional:!0})||void 0;t=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:o,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{const i=this._appRef,o=n.injector||this._defaultInjector||s.zZn.NULL,r=o.get(s.uvJ,i.injector);t=(0,s.a0P)(n.component,{elementInjector:o,environmentInjector:r,projectableNodes:n.projectableNodes||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=n,t}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(i);-1!==o&&t.remove(o)}),this._attachedPortal=n,i}attachDomPortal=n=>{const t=n.element,i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let zd=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=s.$C({type:e});static \u0275inj=s.G2t({})}return e})();const Hd=new s.nKC("cdk-dir-doc",{providedIn:"root",factory:function Xd(){return(0,s.WQX)(Et.q)}}),Wd=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qd=(()=>{class e{value="ltr";change=new s.bkB;constructor(){const t=(0,s.WQX)(Hd,{optional:!0});t&&(this.value=function Ud(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?Wd.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const is={};let Kd=(()=>{class e{_appId=(0,s.WQX)(s.sZ2);getId(t){return"ng"!==this._appId&&(t+=this._appId),is.hasOwnProperty(t)||(is[t]=0),`${t}${is[t]++}`}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const or=jd();class Qd{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;
1constructor(n,t){this._viewportRuler=n,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Z(-this._previousScrollPosition.left),n.style.top=Z(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),or&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),or&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class Jd{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,t,i,o){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=o}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe((0,Uo.p)(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class rr{enable(){}disable(){}attach(){}}function ss(e,n){return n.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function ar(e,n){return n.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class Zd{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,t,i,o){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=o}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();ss(t,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let tp=(()=>{class e{_scrollDispatcher=(0,s.WQX)(Fd);_viewportRuler=(0,s.WQX)(er);_ngZone=(0,s.WQX)(s.SKi);_document=(0,s.WQX)(Et.q);constructor(){}noop=()=>new rr;close=t=>new Jd(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new Qd(this._viewportRuler,this._document);reposition=t=>new Zd(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class ep{positionStrategy;scrollStrategy=new rr;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class np{connectionPair;scrollableViewProperties;constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let lr=(()=>{class e{_attachedOverlays=[];_document=(0,s.WQX)(Et.q);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ip=(()=>{class e extends lr{_ngZone=(0,s.WQX)(s.SKi);_renderer=(0,s.WQX)(s._9s).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._key
1downListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{const i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--)if(i[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[o]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=s.xGo(e)))(o||e)}})();static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sp=(()=>{class e extends lr{_platform=(0,s.WQX)(yt);_ngZone=(0,s.WQX)(s.SKi);_renderer=(0,s.WQX)(s._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){const i=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[ht(this._renderer,i,"pointerdown",this._pointerDownListener,o),ht(this._renderer,i,"click",this._clickListener,o),ht(this._renderer,i,"auxclick",this._clickListener,o),ht(this._renderer,i,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=At(t)};_clickListener=t=>{const i=At(t),o="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){const l=r[a];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(cr(l.overlayElement,i)||cr(l.overlayElement,o))break;const c=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t)}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=s.xGo(e)))(o||e)}})();static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cr(e,n){const t=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===e)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let dr=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=s.VBU({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,changeDetection:0})}return e})(),pr=(()=>{class e{_platform=(0,s.WQX)(yt);_containerElement;_document=(0,s.WQX)(Et.q);_styleLoader=(0,s.WQX)(Wo);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||nn()){const o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(t),nn()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(dr)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class op{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(n,t,i,o){this._renderer=t,this._ngZone=i,this.element=n.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{const n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}class rp{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new nt.B;_attachments=new nt.B;_detachments=new nt.B;_positionStrategy;_scrollStrategy;_locationChanges=St.yU.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new nt.B;_outsidePointerEvents=new nt.B;_renders=new nt.B;_afterRenderRef;_afterNextRenderRef;constructor(n,t,i,o,r,a,l,c,d,p=!1,h,g){this._portalOutlet=n,this._host=t,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=p,this._injector=h,this._renderer=g,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=(0,s.O8t)(()=>(0,s.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,s.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
1pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Z(this._config.width),n.height=Z(this._config.height),n.minWidth=Z(this._config.minWidth),n.minHeight=Z(this._config.minHeight),n.maxWidth=Z(this._config.maxWidth),n.maxHeight=Z(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new op(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,t,i){const o=qo(t||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe((0,md.Q)((0,fd.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n?.disable(),n?.detach?.()}}const hr="cdk-overlay-connected-position-bounding-box",ap=/([A-Za-z%]+)$/;class lp{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new nt.B;_resizeSubscription=St.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}
1constructor(n,t,i,o,r){this._viewportRuler=t,this._document=i,this._platform=o,this._overlayContainer=r,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(hr),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let l of this._preferredPositions){let c=this._getOriginPoint(n,o,l),d=this._getOverlayPoint(c,t,l),p=this._getOverlayFit(d,t,i,l);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,c);this._canFitWithFlexibleDimensions(p,d,i)?r.push({position:l,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,l)}):(!a||a.overlayFit.visibleArea<p.visibleArea)&&(a={overlayFit:p,overlayPoint:d,originPoint:c,position:l,overlayRect:t})}if(r.length){let l=null,c=-1;for(const d of r){const p=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);p>c&&(c=p,l=d)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ae(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(hr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,l=this._isRtl()?n.left:n.right;o="start"==i.originX?a:l}return t.left<0&&(o-=t.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(n,t,i){let o,r;return o="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,t,i,o){const r=ur(t);let{x:a,y:l}=n,c=this._getOffset(o,"x"),d=this._getOffset(o,"y");c&&(a+=c),d&&(l+=d);let g=0-l,u=l+r.height-i.height,m=this._subtractOverflows(r.width,0-a,a+r.width-i.width),f=this._subtractOverflows(r.height,g,u),_=m*f;return{visibleArea:_,isCompletelyWithinViewport:r.width*r.height===_,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:m==r.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const o=i.bottom-t.y,r=i.right-t.x,a=gr(this._overlayRef.getConfig().minHeight),l=gr(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=o)&&(n.fitsInViewportHorizontally||null!=l&&l<=r)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=ur(t),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),l=Math.max(n.y+o.height-r.height,0),c=Math.max(r.top-i.top-n.y,0),d=Math.max(r.left-i.left-n.x,0);let p=0,h=0;return p=o.width<=r.width?d||-a:n.x<this._viewportMargin?r.left-i.left-n.x:0,h=o.height<=r.height?c||-l:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:p,y:h},{x:n.x+p,y:n.y+h}}_applyPosition(n,t){if(this._setTransformOrigin(n),this._setOverlayElementStyles(t,n),this._setBoundingBoxStyles(t,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){const i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!function cp(e,n){return e===n||e.isOriginClipped===n.isOriginClipped&&e.isOriginOutsideView===n.isOriginOutsideView&&e.isOverlayClipped===n.isOverlayClipped&&e.isOverlayOutsideView===n.isOverlayOutsideView}(this._lastScrollVisibility,i)){const o=new np(n,i);this._positionChanges.next(o)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(n,t){const i=this._viewportRect,o=this._isRtl();let r,a,l,p,h,g;if("top"===t.overlayY)a=n.y,r=i.height-a+this._viewportMargin;else if("bottom"===t.overlayY)l=i.height-n.y+2*this._viewportMargin,r=i.height-l+this._viewportMargin;else{const u=Math.min(i.bottom-n.y+i.top,n.y),m=this._lastBoundingBoxSize.height;r=2*u,a=n.y-u,r>m&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-m/2)}if("end"===t.overlayX&&!o||"start"===t.overlayX&&o)g=i.width-n.x+2*this._viewportMargin,p=n.x-this._viewportMargin;else if("start"===t.overlayX&&!o||"end"===t.overlayX&&o)h=n.x,p=i.right-n.x;else{const u=Math.min(i.right-n.x+i.left,n.x),m=this._lastBoundingBoxSize.width;p=2*u,h=n.x-u,p>m&&!this._isInitialRender&&!this._growAfterOpen&&(h=n.x-m/2)}return{top:a,left:h,bottom:l,right:g,width:p,height:r}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=Z(i.height),o.top=Z(i.top),o.bottom=Z(i.bottom),o.width=Z(i.width),o.left=Z(i.left),o.right=Z(i.right),o.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",o.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Z(r)),a&&(o.maxWidth=Z(a))}this._lastBoundingBoxSize=i,ae(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ae(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ae(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const p=this._viewportRuler.getViewportScrollPosition();ae(i,this._getExactOverlayY(t,n,p)),ae(i,this._getExactOverlayX(t,n,p))}else i.position="static";let l="",c=this._getOffset(t,"x"),d=this._getOffset(t,"y");c&&(l+=`translateX(${c}px) `),d&&(l+=`translateY(${d}px)`),i.transform=l.trim(),a.maxHeight&&(o?i.maxHeight=Z(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=Z(a.maxWidth):r&&(i.maxWidth="")),ae(this._pane.style,i)}
1_getExactOverlayY(n,t,i){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Z(r.y),o}_getExactOverlayX(n,t,i){let a,o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Z(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ar(n,i),isOriginOutsideView:ss(n,i),isOverlayClipped:ar(t,i),isOverlayOutsideView:ss(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&qo(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof s.aKT)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function ae(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function gr(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(ap);return t&&"px"!==t?null:parseFloat(n)}return e||null}function ur(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const fr="cdk-global-overlay-wrapper";class dp{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(fr),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=i,c=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),d=!("100%"!==r&&"100vh"!==r||l&&"100%"!==l&&"100vh"!==l),p=this._xPosition,h=this._xOffset,g="rtl"===this._overlayRef.getConfig().direction;let u="",m="",f="";c?f="flex-start":"center"===p?(f="center",g?m=h:u=h):g?"left"===p||"end"===p?(f="flex-end",u=h):("right"===p||"start"===p)&&(f="flex-start",m=h):"left"===p||"start"===p?(f="flex-start",u=h):("right"===p||"end"===p)&&(f="flex-end",m=h),n.position=this._cssPosition,n.marginLeft=c?"0":u,n.marginTop=d?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,t.justifyContent=f,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(fr),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let mr=(()=>
1{class e{_viewportRuler=(0,s.WQX)(er);_document=(0,s.WQX)(Et.q);_platform=(0,s.WQX)(yt);_overlayContainer=(0,s.WQX)(pr);constructor(){}global(){return new dp}flexibleConnectedTo(t){return new lp(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Un=(()=>{class e{scrollStrategies=(0,s.WQX)(tp);_overlayContainer=(0,s.WQX)(pr);_positionBuilder=(0,s.WQX)(mr);_keyboardDispatcher=(0,s.WQX)(ip);_injector=(0,s.WQX)(s.zZn);_ngZone=(0,s.WQX)(s.SKi);_document=(0,s.WQX)(Et.q);_directionality=(0,s.WQX)(qd);_location=(0,s.WQX)(Vn.aZ);_outsideClickDispatcher=(0,s.WQX)(sp);_animationsModuleType=(0,s.WQX)(s.bc$,{optional:!0});_idGenerator=(0,s.WQX)(Kd);_renderer=(0,s.WQX)(s._9s).createRenderer(null,null);_appRef;_styleLoader=(0,s.WQX)(Wo);constructor(){}create(t){this._styleLoader.load(dr);const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new ep(t);return a.direction=a.direction||this._directionality.value,new rp(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(s.uvJ),this._renderer)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.o8S)),new Yd(t,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pp=new s.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const e=(0,s.WQX)(Un);return()=>e.scrollStrategies.reposition()}});const up={provide:pp,deps:[Un],useFactory:function gp(e){return()=>e.scrollStrategies.reposition()}};let fp=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=s.$C({type:e});static \u0275inj=s.G2t({providers:[Un,up],imports:[es,zd,ir,ir]})}return e})();var it=B(9417),_r=B(152);B(4412),B(4572),B(3294);const os=Symbol.for("yaml.alias"),rs=Symbol.for("yaml.document"),qt=Symbol.for("yaml.map"),br=Symbol.for("yaml.pair"),Bt=Symbol.for("yaml.scalar"),De=Symbol.for("yaml.seq"),bt=Symbol.for("yaml.node.type"),Ne=e=>!!e&&"object"==typeof e&&e[bt]===os,qn=e=>!!e&&"object"==typeof e&&e[bt]===rs,Ie=e=>!!e&&"object"==typeof e&&e[bt]===qt,W=e=>!!e&&"object"==typeof e&&e[bt]===br,V=e=>!!e&&"object"==typeof e&&e[bt]===Bt,rn=e=>!!e&&"object"==typeof e&&e[bt]===De;function U(e){if(e&&"object"==typeof e)switch(e[bt]){case qt:case De:return!0}return!1}function tt(e){if(e&&"object"==typeof e)switch(e[bt]){case os:case qt:case Bt:case De:return!0}return!1}class as{constructor(n){Object.defineProperty(this,bt,{value:n})}clone(){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(n.range=this.range.slice()),n}}var vr=B(467);const gt=Symbol("break visit"),wr=Symbol("skip children"),Tt=Symbol("remove node");function le(e,n){const t=yr(n);qn(e)?Re(null,e.contents,t,Object.freeze([e]))===Tt&&(e.contents=null):Re(null,e,t,Object.freeze([]))}function Re(e,n,t,i){const o=Cr(e,n,t,i);if(tt(o)||W(o))return xr(e,i,o),Re(e,o,t,i);if("symbol"!=typeof o)if(U(n)){i=Object.freeze(i.concat(n));for(let r=0;r<n.items.length;++r){const a=Re(r,n.items[r],t,i);if("number"==typeof a)r=a-1;else{if(a===gt)return gt;a===Tt&&(n.items.splice(r,1),r-=1)}}}else if(W(n)){i=Object.freeze(i.concat(n));const r=Re("key",n.key,t,i);if(r===gt)return gt;r===Tt&&(n.key=null);const a=Re("value",n.value,t,i);if(a===gt)return gt;a===Tt&&(n.value=null)}return o}function ls(e,n){return cs.apply(this,arguments)}function cs(){return(cs=(0,vr.A)(function*(e,n){const t=yr(n);qn(e)?(yield Ee(null,e.contents,t,Object.freeze([e])))===Tt&&(e.contents=null):yield Ee(null,e,t,Object.freeze([]))})).apply(this,arguments)}function Ee(e,n,t,i){return ds.apply(this,arguments)}function ds(){return(ds=(0,vr.A)(function*(e,n,t,i){const o=yield Cr(e,n,t,i);if(tt(o)||W(o))return xr(e,i,o),Ee(e,o,t,i);if("symbol"!=typeof o)if(U(n)){i=Object.freeze(i.concat(n));for(let r=0;r<n.items.length;++r){const a=yield Ee(r,n.items[r],t,i);if("number"==typeof a)r=a-1;else{if(a===gt)return gt;a===Tt&&(n.items.splice(r,1),r-=1)}}}
1else if(W(n)){i=Object.freeze(i.concat(n));const r=yield Ee("key",n.key,t,i);if(r===gt)return gt;r===Tt&&(n.key=null);const a=yield Ee("value",n.value,t,i);if(a===gt)return gt;a===Tt&&(n.value=null)}return o})).apply(this,arguments)}function yr(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Cr(e,n,t,i){return"function"==typeof t?t(e,n,i):Ie(n)?t.Map?.(e,n,i):rn(n)?t.Seq?.(e,n,i):W(n)?t.Pair?.(e,n,i):V(n)?t.Scalar?.(e,n,i):Ne(n)?t.Alias?.(e,n,i):void 0}function xr(e,n,t){const i=n[n.length-1];if(U(i))i.items[e]=t;else if(W(i))"key"===e?i.key=t:i.value=t;else{if(!qn(i)){const o=Ne(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}i.contents=t}}le.BREAK=gt,le.SKIP=wr,le.REMOVE=Tt,ls.BREAK=gt,ls.SKIP=wr,ls.REMOVE=Tt;function kr(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(t)}return!0}class ps extends as{constructor(n){super(os),this.source=n,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(n){let t;return le(n,{Node:(i,o)=>{if(o===this)return le.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(n,t){if(!t)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:r}=t,a=this.resolve(o);if(!a)throw new ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);const l=i.get(a);if(!l||void 0===l.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(l.count+=1,0===l.aliasCount&&(l.aliasCount=Qn(o,a,i)),l.count*l.aliasCount>r))throw new ReferenceError("Excessive alias count indicates a resource exh
1austion attack");return l.res}toString(n,t,i){const o=`*${this.source}`;if(n){if(kr(this.source),n.options.verifyAliasOrder&&!n.anchors.has(this.source))throw new Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(n.implicitKey)return`${o} `}return o}}function Qn(e,n,t){if(Ne(n)){const i=n.resolve(e),o=t&&i&&t.get(i);return o?o.count*o.aliasCount:0}if(U(n)){let i=0;for(const o of n.items){const r=Qn(e,o,t);r>i&&(i=r)}return i}if(W(n)){const i=Qn(e,n.key,t),o=Qn(e,n.value,t);return Math.max(i,o)}return 1}function Dt(e,n,t){if(Array.isArray(e))return e.map((i,o)=>Dt(i,String(o),t));if(e&&"function"==typeof e.toJSON){if(!t||!(e=>(V(e)||U(e))&&!!e.anchor)(e))return e.toJSON(n,t);const i={aliasCount:0,count:1,res:void 0};t.anchors.set(e,i),t.onCreate=r=>{i.res=r,delete t.onCreate};const o=e.toJSON(n,t);return t.onCreate&&t.onCreate(o),o}return"bigint"!=typeof e||t?.keep?e:Number(e)}const Mr=e=>!e||"function"!=typeof e&&"object"!=typeof e;let R=(()=>{class e extends as{constructor(t){super(Bt),this.value=t}toJSON(t,i){return i?.keep?this.value:Dt(this.value,t,i)}toString(){return String(this.value)}}return e.BLOCK_FOLDED="BLOCK_FOLDED",e.BLOCK_LITERAL="BLOCK_LITERAL",e.PLAIN="PLAIN",e.QUOTE_DOUBLE="QUOTE_DOUBLE",e.QUOTE_SINGLE="QUOTE_SINGLE",e})();function an(e,n,t){if(qn(e)&&(e=e.contents),tt(e))return e;if(W(e)){const h=t.schema[qt].createNode?.(t.schema,null,t);return h.items.push(e),h}(e instanceof String||e instanceof Number||e instanceof Boolean||"function"==typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:r,schema:a,sourceObjects:l}=t;let c;if(i&&e&&"object"==typeof e){if(c=l.get(e),c)return c.anchor||(c.anchor=o(e)),new ps(c.anchor);c={anchor:null,node:null},l.set(e,c)}n?.startsWith("!!")&&(n="tag:yaml.org,2002:"+n.slice(2));let d=function xp(e,n,t){if(n){const i=t.filter(r=>r.tag===n),o=i.find(r=>!r.format)??i[0];if(!o)throw new Error(`Tag ${n} not found`);return o}return t.find(i=>i.identify?.(e)&&!i.format)}(e,n,a.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const h=new R(e);return c&&(c.node=h),h}d=e instanceof Map?a[qt]:Symbol.iterator in Object(e)?a[De]:a[qt]}r&&(r(d),delete t.onTagObj);const p=d?.createNode?d.createNode(t.schema,e,t):new R(e);return n&&(p.tag=n),c&&(c.node=p),p}function Jn(e,n,t){let i=t;for(let o=n.length-1;o>=0;--o){const r=n[o];if("number"==typeof r&&Number.isInteger(r)&&r>=0){const a=[];a[r]=i,i=a}else i=new Map([[r,i]])}return an(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ln=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;let hs=(()=>{class e extends as{constructor(t,i){super(t),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(t){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(i.schema=t),i.items=i.items.map(o=>tt(o)||W(o)?o.clone(t):o),this.range&&(i.range=this.range.slice()),i}addIn(t,i){if(ln(t))this.add(i);else{const[o,...r]=t,a=this.get(o,!0);if(U(a))a.addIn(r,i);else{if(void 0!==a||!this.schema)throw new Error(`Expected YAML collection at ${o}. Remaining path: ${r}`);this.set(o,Jn(this.schema,r,i))}}}deleteIn(t){const[i,...o]=t;if(0===o.length)return this.delete(i);const r=this.get(i,!0);if(U(r))return r.deleteIn(o);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}getIn(t,i){const[o,...r]=t,a=this.get(o,!0);return 0===r.length?!i&&V(a)?a.value:a:U(a)?a.getIn(r,i):void 0}hasAllNullValues(t){return this.items.every(i=>{if(!W(i))return!1;const o=i.value;return null==o||t&&V(o)&&null==o.value&&!o.commentBefore&&!o.comment&&!o.tag})}hasIn(t){const[i,...o]=t;if(0===o.length)return this.has(i);const r=this.get(i,!0);return!!U(r)&&r.hasIn(o)}setIn(t,i){const[o,...r]=t;if(0===r.length)this.set(o,i);else{const a=this.get(o,!0);if(U(a))a.setIn(r,i);else{if(void 0!==a||!this.schema)throw new Error(`Expected YAML collection at ${o}. Remaining path: ${r}`);this.set(o,Jn(this.schema,r,i))}}}}return e.maxFlowStringSingleLineLength=60,e})();const kp=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ft(e,n){return/^\n+$/.test(e)?e.substring(1):n?e.replace(/^(?! *$)/gm,n):e}const Kt=(e,n,t)=>e.endsWith("\n")?Ft(t,n):t.includes("\n")?"\n"+Ft(t,n):(e.endsWith(" ")?""
1:" ")+t,gs="block",Zn="quoted";function ti(e,n,t="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:r=20,onFold:a,onOverflow:l}={}){if(!o||o<0)return e;const c=Math.max(1+r,1+o-n.length);if(e.length<=c)return e;const d=[],p={};let h=o-n.length;"number"==typeof i&&(i>o-Math.max(2,r)?d.push(0):h=o-i);let g,u,m=!1,f=-1,_=-1,b=-1;t===gs&&(f=Tr(e,f),-1!==f&&(h=f+c));for(let C;C=e[f+=1];){if(t===Zn&&"\\"===C){switch(_=f,e[f+1]){case"x":f+=3;break;case"u":f+=5;break;case"U":f+=9;break;default:f+=1}b=f}if("\n"===C)t===gs&&(f=Tr(e,f)),h=f+c,g=void 0;else{if(" "===C&&u&&" "!==u&&"\n"!==u&&"\t"!==u){const w=e[f+1];w&&" "!==w&&"\n"!==w&&"\t"!==w&&(g=f)}if(f>=h)if(g)d.push(g),h=g+c,g=void 0;else if(t===Zn){for(;" "===u||"\t"===u;)u=C,C=e[f+=1],m=!0;const w=f>b+1?f-2:_-1;if(p[w])return e;d.push(w),p[w]=!0,h=w+c,g=void 0}else m=!0}u=C}if(m&&l&&l(),0===d.length)return e;a&&a();let v=e.slice(0,d[0]);for(let C=0;C<d.length;++C){const w=d[C],x=d[C+1]||e.length;0===w?v=`\n${n}${e.slice(0,x)}`:(t===Zn&&p[w]&&(v+=`${e[w]}\\`),v+=`\n${n}${e.slice(w+1,x)}`)}return v}function Tr(e,n){let t=e[n+1];for(;" "===t||"\t"===t;){do{t=e[n+=1]}while(t&&"\n"!==t);t=e[n+1]}return n}const ei=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),ni=e=>/^(%|---|\.\.\.)/m.test(e);function cn(e,n){const t=JSON.stringify(e);if(n.options.doubleQuotedAsJSON)return t;const{implicitKey:i}=n,o=n.options.doubleQuotedMinMultiLineLength,r=n.indent||(ni(e)?"  ":"");let a="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(" "===d&&"\\"===t[c+1]&&"n"===t[c+2]&&(a+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),"\\"===d)switch(t[c+1]){case"u":{a+=t.slice(l,c);const p=t.substr(c+2,4);switch(p){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===p.substr(0,2)?a+="\\x"+p.substr(2):a+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(i||'"'===t[c+2]||t.length<o)c+=1;else{for(a+=t.slice(l,c)+"\n\n";"\\"===t[c+2]&&"n"===t[c+3]&&'"'!==t[c+4];)a+="\n",c+=2;a+=r," "===t[c+2]&&(a+="\\"),c+=1,l=c+1}break;default:c+=1}return a=l?a+t.slice(l):t,i?a:ti(a,r,Zn,ei(n))}function us(e,n){if(!1===n.options.singleQuote||n.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return cn(e,n);const t=n.indent||(ni(e)?"  ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${t}`)+"'";return n.implicitKey?i:ti(i,t,"flow",ei(n))}function dn(e,n){const{singleQuote:t}=n.options;let i;if(!1===t)i=cn;else{const o=e.includes('"'),r=e.includes("'");i=o&&!r?us:r&&!o?cn:t?us:cn}return i(e,n)}function ii({comment:e,type:n,value:t},i,o,r){const{blockQuote:a,commentString:l,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return dn(t,i);const d=i.indent||(i.forceBlockIndent||ni(t)?"  ":""),p="literal"===a||"folded"!==a&&n!==R.BLOCK_FOLDED&&(n===R.BLOCK_LITERAL||!function Pp(e,n,t){if(!n||n<0)return!1;const i=n-t,o=e.length;if(o<=i)return!1;for(let r=0,a=0;r<o;++r)if("\n"===e[r]){if(r-a>i)return!0;if(a=r+1,o-a<=i)return!1}return!0}(t,c,d.length));if(!t)return p?"|\n":">\n";let h,g;for(g=t.length;g>0;--g){const y=t[g-1];if("\n"!==y&&"\t"!==y&&" "!==y)break}let u=t.substring(g);const m=u.indexOf("\n");-1===m?h="-":t===u||m!==u.length-1?(h="+",r&&r()):h="",u&&(t=t.slice(0,-u.length),"\n"===u[u.length-1]&&(u=u.slice(0,-1)),u=u.replace(/\n+(?!\n|$)/g,`$&${d}`));let _,f=!1,b=-1;for(_=0;_<t.length;++_){const y=t[_];if(" "===y)f=!0;else{if("\n"!==y)break;b=_}}let v=t.substring(0,b<_?b+1:_);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${d}`));let w=(p?"|":">")+(f?d?"2":"1":"")+h;return e&&(w+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p?`${w}\n${d}${v}${t=t.replace(/\n+/g,`$&${d}`)}${u}`:`${w}\n${d}${ti(`${v}${t=t.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`)}${u}`,d,gs,ei(i))}`}function fs(e,n,t,i){const{implicitKey:o,inFlow:r}=n,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==R.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(l=R.QUOTE_DOUBLE);const c=p=>{switch(p){case R.BLOCK_FOLDED:case R.BLOCK_LITERAL:return o||r?dn(a.value,n):ii(a,n,t,i);case R.QUOTE_DOUBLE:return cn(a.value,n);
1case R.QUOTE_SINGLE:return us(a.value,n);case R.PLAIN:return function Op(e,n,t,i){const{type:o,value:r}=e,{actualString:a,implicitKey:l,indent:c,inFlow:d}=n;if(l&&/[\n[\]{},]/.test(r)||d&&/[[\]{},]/.test(r))return dn(r,n);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||d||!r.includes("\n")?dn(r,n):ii(e,n,t,i);if(!l&&!d&&o!==R.PLAIN&&r.includes("\n"))return ii(e,n,t,i);if(""===c&&ni(r))return n.forceBlockIndent=!0,ii(e,n,t,i);const p=r.replace(/\n+/g,`$&\n${c}`);if(a){const h=m=>m.default&&"tag:yaml.org,2002:str"!==m.tag&&m.test?.test(p),{compat:g,tags:u}=n.doc.schema;if(u.some(h)||g?.some(h))return dn(r,n)}return l?p:ti(p,c,"flow",ei(n))}(a,n,t,i);default:return null}};let d=c(l);if(null===d){const{defaultKeyType:p,defaultStringType:h}=n.options,g=o&&p||h;if(d=c(g),null===d)throw new Error(`Unsupported default string type ${g}`)}return d}function Dr(e,n){const t=Object.assign({blockQuote:!0,commentString:kp,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,n);let i;switch(t.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,indent:"",indentStep:"number"==typeof t.indent?" ".repeat(t.indent):"  ",inFlow:i,options:t}}function ce(e,n,t,i){if(W(e))return e.toString(n,t,i);if(Ne(e)){if(n.doc.directives)return e.toString(n);if(n.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");n.resolvedAliases?n.resolvedAliases.add(e):n.resolvedAliases=new Set([e]),e=e.resolve(n.doc)}let o;const r=tt(e)?e:n.doc.createNode(e,{onTagObj:c=>o=c});o||(o=function Mp(e,n){if(n.tag){const o=e.filter(r=>r.tag===n.tag);if(o.length>0)return o.find(r=>r.format===n.format)??o[0]}let t,i;if(V(n)){i=n.value;const o=e.filter(r=>r.identify?.(i));t=o.find(r=>r.format===n.format)??o.find(r=>!r.format)}else i=n,t=e.find(o=>o.nodeClass&&i instanceof o.nodeClass);if(!t)throw new Error(`Tag not resolved for ${i?.constructor?.name??typeof i} value`);return t}(n.doc.schema.tags,r));const a=function Sp(e,n,{anchors:t,doc:i}){if(!i.directives)return"";const o=[],r=(V(e)||U(e))&&e.anchor;r&&kr(r)&&(t.add(r),o.push(`&${r}`));const a=e.tag?e.tag:n.default?null:n.tag;return a&&o.push(i.directives.tagString(a)),o.join(" ")}(r,o,n);a.length>0&&(n.indentAtStart=(n.indentAtStart??0)+a.length+1);const l="function"==typeof o.stringify?o.stringify(r,n,t,i):V(r)?fs(r,n,t,i):r.toString(n,t,i);return a?V(r)||"{"===l[0]||"["===l[0]?`${a} ${l}`:`${a}\n${n.indent}${l}
1`:l}function Nr(e,n){("debug"===e||"warn"===e)&&(typeof process<"u"&&process.emitWarning?process.emitWarning(n):console.warn(n))}function Rr(e,n,{key:t,value:i}){if(e?.doc.schema.merge&&Dp(t))if(i=Ne(i)?i.resolve(e.doc):i,rn(i))for(const o of i.items)ms(e,n,o);else if(Array.isArray(i))for(const o of i)ms(e,n,o);else ms(e,n,i);else{const o=Dt(t,"",e);if(n instanceof Map)n.set(o,Dt(i,o,e));else if(n instanceof Set)n.add(o);else{const r=function Np(e,n,t){if(null===n)return"";if("object"!=typeof n)return String(n);if(tt(e)&&t&&t.doc){const i=Dr(t.doc,{});i.anchors=new Set;for(const r of t.anchors.keys())i.anchors.add(r.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!t.mapKeyWarned){let r=JSON.stringify(o);r.length>40&&(r=r.substring(0,36)+'..."'),Nr(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(n)}(t,o,e),a=Dt(i,r,e);r in n?Object.defineProperty(n,r,{value:a,writable:!0,enumerable:!0,configurable:!0}):n[r]=a}}return n}const Dp=e=>"<<"===e||V(e)&&"<<"===e.value&&(!e.type||e.type===R.PLAIN);function ms(e,n,t){const i=e&&Ne(t)?t.resolve(e.doc):t;if(!Ie(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[r,a]of o)n instanceof Map?n.has(r)||n.set(r,a):n instanceof Set?n.add(r):Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{value:a,writable:!0,enumerable:!0,configurable:!0});return n}function _s(e,n,t){const i=an(e,void 0,t),o=an(n,void 0,t);return new pt(i,o)}class pt{constructor(n,t=null){Object.defineProperty(this,bt,{value:br}),this.key=n,this.value=t}clone(n){let{key:t,value:i}=this;return tt(t)&&(t=t.clone(n)),tt(i)&&(i=i.clone(n)),new pt(t,i)}toJSON(n,t){return Rr(t,t?.mapAsMap?new Map:{},this)}toString(n,t,i){return n?.doc?function Tp({key:e,value:n},t,i,o){const{allNullValues:r,doc:a,indent:l,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=t;let g=tt(e)&&e.comment||null;if(h){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(U(e))throw new Error("With simple keys, collection cannot be used as a key value")}let u=!h&&(!e||g&&null==n&&!t.inFlow||U(e)||(V(e)?e.type===R.BLOCK_FOLDED||e.type===R.BLOCK_LITERAL:"object"==typeof e));t=Object.assign({},t,{allNullValues:!1,implicitKey:!u&&(h||!r),indent:l+c});let m=!1,f=!1,_=ce(e,t,()=>m=!0,()=>f=!0);if(!u&&!t.inFlow&&_.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(t.inFlow){if(r||null==n)return m&&i&&i(),""===_?"?":u?`? ${_}`:_}else if(r&&!h||null==n&&u)return _=`? ${_}`,g&&!m?_+=Kt(_,t.indent,d(g)):f&&o&&o(),_;m&&(g=null),u?(g&&(_+=Kt(_,t.indent,d(g))),_=`? ${_}\n${l}:`):(_=`${_}:`,g&&(_+=Kt(_,t.indent,d(g))));let b="",v=null;tt(n)?(n.spaceBefore&&(b="\n"),n.commentBefore&&(b+=`\n${Ft(d(n.commentBefore),t.indent)}`),v=n.comment):n&&"object"==typeof n&&(n=a.createNode(n)),t.implicitKey=!1,!u&&!g&&V(n)&&(t.indentAtStart=_.length+1),f=!1,!p&&c.length>=2&&!t.inFlow&&!u&&rn(n)&&!n.flow&&!n.tag&&!n.anchor&&(t.indent=t.indent.substr(2));let C=!1;const w=ce(n,t,()=>C=!0,()=>f=!0);let x=" ";return b||g?x=""!==w||t.inFlow?`${b}\n${t.indent}`:"\n"===b?"\n\n":b:!u&&U(n)?(!("["===w[0]||"{"===w[0])||w.includes("\n"))&&(x=`\n${t.indent}`):(""===w||"\n"===w[0])&&(x=""),_+=x+w,t.inFlow?C&&i&&i():v&&!C?_+=Kt(_,t.indent,d(v)):f&&o&&o(),_}(this,n,t,i):JSON.stringify(this)}}function Er(e,n,t){return(n.inFlow??e.flow?Rp:Ip)(e,n,t)}function Ip({comment:e,items:n},t,{blockItemPrefix:i,flowChars:o,itemIndent:r,onChompKeep:a,onComment:l}){const{indent:c,options:{commentString:d}}=t,p=Object.assign({},t,{indent:r,type:null});let h=!1;const g=[];for(let m=0;m<n.length;++m){const f=n[m];let _=null;if(tt(f))!h&&f.spaceBefore&&g.push(""),si(t,g,f.commentBefore,h),f.comment&&(_=f.comment);else if(W(f)){const v=tt(f.key)?f.key:null;v&&(!h&&v.spaceBefore&&g.push(""),si(t,g,v.commentBefore,h))}h=!1;let b=ce(f,p,()=>_=null,()=>h=!0);_&&(b+=Kt(b,r,d(_))),h&&_&&(h=!1),g.push(i+b)}let u;if(0===g.length)u=o.start+o.end;else{u=g[0];for(let m=1;m<g.length;++m){const f=g[m];u+=f?`\n${c}${f}`:"\n"}}return e?(u+="\n"+Ft(d(e),c),l&&l()):h&&a&&a(),u}function Rp({comment:e,items:n},t,{flowChars:i,itemIndent:o,onComment:r}){const{indent:a,indentStep:l,options:{commentString:c}}=t;o+=l;const d=Object.assign({},t,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const g=[];for(let _=0;_<n.length;++_){const b=n[_];let v=null;if(tt(b))b.spaceBefore&&g.push(""),si(t,g,b.commentBefore,!1),b.comment&&(v=b.comment);
1else if(W(b)){const w=tt(b.key)?b.key:null;w&&(w.spaceBefore&&g.push(""),si(t,g,w.commentBefore,!1),w.comment&&(p=!0));const x=tt(b.value)?b.value:null;x?(x.comment&&(v=x.comment),x.commentBefore&&(p=!0)):null==b.value&&w&&w.comment&&(v=w.comment)}v&&(p=!0);let C=ce(b,d,()=>v=null);_<n.length-1&&(C+=","),v&&(C+=Kt(C,o,c(v))),!p&&(g.length>h||C.includes("\n"))&&(p=!0),g.push(C),h=g.length}let u;const{start:m,end:f}=i;if(0===g.length)u=m+f;else if(p||(p=g.reduce((b,v)=>b+v.length+2,2)>hs.maxFlowStringSingleLineLength),p){u=m;for(const _ of g)u+=_?`\n${l}${a}${_}`:"\n";u+=`\n${a}${f}`}else u=`${m} ${g.join(" ")} ${f}`;return e&&(u+=Kt(u,c(e),a),r&&r()),u}function si({indent:e,options:{commentString:n}},t,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const r=Ft(n(i),e);t.push(r.trimStart())}}function de(e,n){const t=V(n)?n.value:n;for(const i of e)if(W(i)&&(i.key===n||i.key===t||V(i.key)&&i.key.value===t))return i}class Ct extends hs{constructor(n){super(qt,n),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(n,t){let i;i=W(n)?n:n&&"object"==typeof n&&"key"in n?new pt(n.key,n.value):new pt(n,n?.value);const o=de(this.items,i.key),r=this.schema?.sortMapEntries;if(o){if(!t)throw new Error(`Key ${i.key} already set`);V(o.value)&&Mr(i.value)?o.value.value=i.value:o.value=i.value}else if(r){const a=this.items.findIndex(l=>r(i,l)<0);-1===a?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(n){const t=de(this.items,n);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(n,t){const o=de(this.items,n)?.value;return(!t&&V(o)?o.value:o)??void 0}has(n){return!!de(this.items,n)}set(n,t){this.add(new pt(n,t),!0)}toJSON(n,t,i){const o=i?new i:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(o);for(const r of this.items)Rr(t,o,r);return o}toString(n,t,i){if(!n)return JSON.stringify(this);for(const o of this.items)if(!W(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!n.allNullValues&&this.hasAllNullValues(!1)&&(n=Object.assign({},n,{allNullValues:!0})),Er(this,n,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:n.indent||"",onChompKeep:i,onComment:t})}}const Ae={collection:"map",createNode:function Ep(e,n,t){const{keepUndefined:i,replacer:o}=t,r=new Ct(e),a=(l,c)=>{if("function"==typeof o)c=o.call(n,l,c);else if(Array.isArray(o)&&!o.includes(l))return;(void 0!==c||i)&&r.items.push(_s(l,c,t))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&"object"==typeof n)for(const l of Object.keys(n))a(l,n[l]);return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:Ct,tag:"tag:yaml.org,2002:map",resolve:(e,n)=>(Ie(e)||n("Expected a mapping for this tag"),e)};class Be extends hs{constructor(n){super(De,n),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(n){this.items.push(n)}delete(n){const t=oi(n);return"number"==typeof t&&this.items.splice(t,1).length>0}get(n,t){const i=oi(n);if("number"!=typeof i)return;const o=this.items[i];return!t&&V(o)?o.value:o}has(n){const t=oi(n);return"number"==typeof t&&t<this.items.length}set(n,t){const i=oi(n);if("number"!=typeof i)throw new Error(`Expected a valid index, not ${n}.`);const o=this.items[i];V(o)&&Mr(t)?o.value=t:this.items[i]=t}toJSON(n,t){const i=[];t?.onCreate&&t.onCreate(i);let o=0;for(const r of this.items)i.push(Dt(r,String(o++),t));return i}toString(n,t,i){return n?Er(this,n,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(n.indent||"")+"  ",onChompKeep:i,onComment:t}):JSON.stringify(this)}}function oi(e){let n=V(e)?e.value:e;return n&&"string"==typeof n&&(n=Number(n)),"number"==typeof n&&Number.isInteger(n)&&n>=0?n:null}const Fe={collection:"seq",createNode:function Ap(e,n,t){const{replacer:i}=t,o=new Be(e);if(n&&Symbol.iterator in Object(n)){let r=0;for(let a of n){if("function"==typeof i){const l=n instanceof Set?a:String(r++);a=i.call(n,l,a)}o.items.push(an(a,void 0,t))}}return o},default:!0,nodeClass:Be,tag:"tag:yaml.org,2002:seq",resolve:(e,n)=>(rn(e)||n("Expected a sequence for this tag"),e)};function Vr(e){return"bigint"==typeof e||Number.isInteger(e)}const ci=({value:e})=>JSON.stringify(e);[Ae,Fe].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ci},{identify:e=>null==e,createNode:()=>new R(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ci},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:ci},{identify:Vr,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,n,{intAsBigInt:t})=>t?BigInt(e):parseInt(e,10),stringify:({value:e})=>Vr(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ci}
1],{default:!0,tag:"",test:/^/,resolve:(e,n)=>(n(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});function Ms(e,n){const t=e[0],i="-"===t||"+"===t?e.substring(1):e,o=a=>n?BigInt(a):Number(a),r=i.replace(/_/g,"").split(":").reduce((a,l)=>a*o(60)+o(l),o(0));return"-"===t?o(-1)*r:r}const pi={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const n=e.match(pi.test);if(!n)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,i,o,r,a,l]=n.map(Number),c=n[7]?Number((n[7]+"00").substr(1,3)):0;let d=Date.UTC(t,i-1,o,r||0,a||0,l||0,c);const p=n[8];if(p&&"Z"!==p){let h=Ms(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};Error;const As=Symbol("break visit"),vh=Symbol("skip children"),ca=Symbol("remove item");function Ge(e,n){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),da(Object.freeze([]),e,n)}function da(e,n,t){let i=t(n,e);if("symbol"==typeof i)return i;for(const o of["key","value"]){const r=n[o];if(r&&"items"in r){for(let a=0;a<r.items.length;++a){const l=da(Object.freeze(e.concat([[o,a]])),r.items[a],t);if("number"==typeof l)a=l-1;else{if(l===As)return As;l===ca&&(r.items.splice(a,1),a-=1)}}"function"==typeof i&&"key"===o&&(i=i(n,e))}}return"function"==typeof i?i(n,e):i}Ge.BREAK=As,Ge.SKIP=vh,Ge.REMOVE=ca,Ge.itemAtPath=(e,n)=>{let t=e;for(const[i,o]of n){const r=t?.[i];if(!r||!("items"in r))return;t=r.items[o]}return t},Ge.parentCollection=(e,n)=>{const t=Ge.itemAtPath(e,n.slice(0,-1)),i=n[n.length-1][0],o=t?.[i];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};"0123456789ABCDEFabcdef".split(""),"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),",[]{}".split("")," ,[]{}\n\r\t".split("");B(969);function Ve(e){return e+.5|0}const Lt=(e,n,t)=>Math.max(Math.min(e,t),n);function _n(e){return Lt(Ve(2.55*e),0,255)}function Qt(e){return Lt(Ve(255*e),0,255)}function jt(e){return Lt(Ve(e/2.55)/100,0,1)}function ma(e){return Lt(Ve(100*e),0,100)}const wt={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},$s=[..."0123456789ABCDEF"],Sh=e=>$s[15&e],Th=e=>$s[(240&e)>>4]+$s[15&e],fi=e=>(240&e)>>4==(15&e);const Eh=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _a(e,n,t){const i=n*Math.min(t,1-t),o=(r,a=(r+e/30)%12)=>t-i*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function Ah(e,n,t){const i=(o,r=(o+e/60)%6)=>t-t*n*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Bh(e,n,t){const i=_a(e,1,.5);let o;for(n+t>1&&(o=1/(n+t),n*=o,t*=o),o=0;o<3;o++)i[o]*=1-n-t,i[o]+=n;return i}function Vs(e){const t=e.r/255,i=e.g/255,o=e.b/255,r=Math.max(t,i,o),a=Math.min(t,i,o),l=(r+a)/2;let c,d,p;return r!==a&&(p=r-a,d=l>.5?p/(2-r-a):p/(r+a),c=function Fh(e,n,t,i,o){return e===o?(n-t)/i+(n<t?6:0):n===o?(t-e)/i+2:(e-n)/i+4}(t,i,o,p,r),c=60*c+.5),[0|c,d||0,l]}function Ys(e,n,t,i){return(Array.isArray(n)?e(n[0],n[1],n[2]):e(n,t,i)).map(Qt)}function zs(e,n,t){return Ys(_a,e,n,t)}function ba(e){return(e%360+360)%360}const va={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"},wa={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"};let mi;const Hh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Hs=e=>
1e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Ye=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function _i(e,n,t){if(e){let i=Vs(e);i[n]=Math.max(0,Math.min(i[n]+i[n]*t,0===n?360:1)),i=zs(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function ya(e,n){return e&&Object.assign(n||{},e)}function Ca(e){var n={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(n={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(n.a=Qt(e[3]))):(n=ya(e,{r:0,g:0,b:0,a:1})).a=Qt(n.a),n}function qh(e){return"r"===e.charAt(0)?function Xh(e){const n=Hh.exec(e);let i,o,r,t=255;if(n){if(n[7]!==i){const a=+n[7];t=n[8]?_n(a):Lt(255*a,0,255)}return i=+n[1],o=+n[3],r=+n[5],i=255&(n[2]?_n(i):Lt(i,0,255)),o=255&(n[4]?_n(o):Lt(o,0,255)),r=255&(n[6]?_n(r):Lt(r,0,255)),{r:i,g:o,b:r,a:t}}}(e):function Gh(e){const n=Eh.exec(e);let i,t=255;if(!n)return;n[5]!==i&&(t=n[6]?_n(+n[5]):Qt(+n[5]));const o=ba(+n[2]),r=+n[3]/100,a=+n[4]/100;return i="hwb"===n[1]?function Lh(e,n,t){return Ys(Bh,e,n,t)}(o,r,a):"hsv"===n[1]?function jh(e,n,t){return Ys(Ah,e,n,t)}(o,r,a):zs(o,r,a),{r:i[0],g:i[1],b:i[2],a:t}}(e)}class ze{constructor(n){if(n instanceof ze)return n;const t=typeof n;let i;"object"===t?i=Ca(n):"string"===t&&(i=function Nh(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*wt[e[1]],g:255&17*wt[e[2]],b:255&17*wt[e[3]],a:5===n?17*wt[e[4]]:255}:(7===n||9===n)&&(t={r:wt[e[1]]<<4|wt[e[2]],g:wt[e[3]]<<4|wt[e[4]],b:wt[e[5]]<<4|wt[e[6]],a:9===n?wt[e[7]]<<4|wt[e[8]]:255})),t}(n)||function zh(e){mi||(mi=function Yh(){const e={},n=Object.keys(wa),t=Object.keys(va);let i,o,r,a,l;for(i=0;i<n.length;i++){for(a=l=n[i],o=0;o<t.length;o++)r=t[o],l=l.replace(r,va[r]);r=parseInt(wa[a],16),e[l]=[r>>16&255,r>>8&255,255&r]}return e}(),mi.transparent=[0,0,0,0]);const n=mi[e.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||qh(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=ya(this._rgb);return n&&(n.a=jt(n.a)),n}set rgb(n){this._rgb=Ca(n)}rgbString(){return this._valid?function Wh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${jt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Rh(e){var n=(e=>fi(e.r)&&fi(e.g)&&fi(e.b)&&fi(e.a))(e)?Sh:Th;return e?"#"+n(e.r)+n(e.g)+n(e.b)+((e,n)=>e<255?n(e):"")(e.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function Vh(e){if(!e)return;const n=Vs(e),t=n[0],i=ma(n[1]),o=ma(n[2]);return e.a<255?`hsla(${t}, ${i}%, ${o}%, ${jt(e.a)})`:`hsl(${t}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(n,t){if(n){const i=this.rgb,o=n.rgb;let r;const a=t===r?.5:t,l=2*a-1,c=i.a-o.a,d=((l*c==-1?l:(l+c)/(1+l*c))+1)/2;r=1-d,i.r=255&d*i.r+r*o.r+.5,i.g=255&d*i.g+r*o.g+.5,i.b=255&d*i.b+r*o.b+.5,i.a=a*i.a+(1-a)*o.a,this.rgb=i}return this}interpolate(n,t){return n&&(this._rgb=function Uh(e,n,t){const i=Ye(jt(e.r)),o=Ye(jt(e.g)),r=Ye(jt(e.b));return{r:Qt(Hs(i+t*(Ye(jt(n.r))-i))),g:Qt(Hs(o+t*(Ye(jt(n.g))-o))),b:Qt(Hs(r+t*(Ye(jt(n.b))-r))),a:e.a+t*(n.a-e.a)}}(this._rgb,n._rgb,t)),this}clone(){return new ze(this.rgb)}alpha(n){return this._rgb.a=Qt(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,t=Ve(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=t,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return _i(this._rgb,2,n),this}darken(n){return _i(this._rgb,2,-n),this}saturate(n){return _i(this._rgb,1,n),this}desaturate(n){return _i(this._rgb,1,-n),this}rotate(n){return function $h(e,n){var t=Vs(e);t[0]=ba(t[0]+n),t=zs(t),e.r=t[0],e.g=t[1],e.b=t[2]}(this._rgb,n),this}}function Gt(){}const Kh=(()=>{let e=0;return()=>e++})();function I(e){return null==e}function Y(e){if(Array.isArray&&Array.isArray(e))return!0;const n=Object.prototype.toString.call(e);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function E(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function q(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function mt(e,n){return q(e)?e:n}function T(e,n){return typeof e>"u"?n:e}const xa=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*n:+e;function $(e,n,t){if(e&&"function"==typeof e.call)return e.apply(t,n)}function L(e,n,t,i){let o,r,a;
vendor: 3,046 bytes, line 1
1if(Y(e))if(r=e.length,i)for(o=r-1;o>=0;o--)n.call(t,e[o],o);else for(o=0;o<r;o++)n.call(t,e[o],o);else if(E(e))for(a=Object.keys(e),r=a.length,o=0;o<r;o++)n.call(t,e[a[o]],a[o])}function bi(e,n){let t,i,o,r;if(!e||!n||e.length!==n.length)return!1;for(t=0,i=e.length;t<i;++t)if(o=e[t],r=n[t],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function vi(e){if(Y(e))return e.map(vi);if(E(e)){const n=Object.create(null),t=Object.keys(e),i=t.length;let o=0;for(;o<i;++o)n[t[o]]=vi(e[t[o]]);return n}return e}function ka(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Jh(e,n,t,i){if(!ka(e))return;const o=n[e],r=t[e];E(o)&&E(r)?bn(o,r,i):n[e]=vi(r)}function bn(e,n,t){const i=Y(n)?n:[n],o=i.length;if(!E(e))return e;const r=(t=t||{}).merger||Jh;let a;for(let l=0;l<o;++l){if(a=i[l],!E(a))continue;const c=Object.keys(a);for(let d=0,p=c.length;d<p;++d)r(c[d],e,a,t)}return e}function vn(e,n){return bn(e,n,{merger:Zh})}function Zh(e,n,t){if(!ka(e))return;const i=n[e],o=t[e];E(i)&&E(o)?vn(i,o):Object.prototype.hasOwnProperty.call(n,e)||(n[e]=vi(o))}const Pa={"":e=>e,x:e=>e.x,y:e=>e.y};function Jt(e,n){return(Pa[n]||(Pa[n]=function eg(e){const n=function tg(e){const n=e.split("."),t=[];let i="";for(const o of n)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(t.push(i),i="");return t}(e);return t=>{for(const i of n){if(""===i)break;t=t&&t[i]}return t}}(n)))(e)}function Xs(e){return e.charAt(0).toUpperCase()+e.slice(1)}const wn=e=>typeof e<"u",Zt=e=>"function"==typeof e,Oa=(e,n)=>{if(e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;return!0},F=Math.PI,z=2*F,ig=z+F,wi=Number.POSITIVE_INFINITY,sg=F/180,Q=F/2,pe=F/4,Ma=2*F/3,te=Math.log10,Nt=Math.sign;function yn(e,n,t){return Math.abs(e-n)<t}function Sa(e){const n=Math.round(e);e=yn(e,n,e/1e3)?n:e;const t=Math.pow(10,Math.floor(te(e))),i=e/t;return(i<=1?1:i<=2?2:i<=5?5:10)*t}function He(e){return!function rg(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Ta(e,n,t){let i,o,r;for(i=0,o=e.length;i<o;i++)r=e[i][t],isNaN(r)||(n.min=Math.min(n.min,r),n.max=Math.max(n.max,r))}function Pt(e){return e*(F/180)}function Ws(e){return e*(180/F)}function Da(e){if(!q(e))return;let n=1,t=0;for(;Math.round(e*n)/n!==e;)n*=10,t++;return t}function Na(e,n){const t=n.x-e.x,i=n.y-e.y,o=Math.sqrt(t*t+i*i);let r=Math.atan2(i,t);return r<-.5*F&&(r+=z),{angle:r,distance:o}}function Us(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function lg(e,n){return(e-n+ig)%z-F}function rt(e){return(e%z+z)%z}function Cn(e,n,t,i){const o=rt(e),r=rt(n),a=rt(t),l=rt(r-o),c=rt(a-o),d=rt(o-r),p=rt(o-a);return o===r||o===a||i&&r===a||l>c&&d<p}function st(e,n,t){return Math.max(n,Math.min(t,e))}function $t(e,n,t,i=1e-6){return e>=Math.min(n,t)-i&&e<=Math.max(n,t)+i}function qs(e,n,t){t=t||(a=>e[a]<n);let r,i=e.length-1,o=0;for(;i-o>1;)r=o+i>>1,t(r)?o=r:i=r;return{lo:o,hi:i}}const Vt=(e,n,t,i)=>qs(e,t,i?o=>{const r=e[o][n];
1return r<t||r===t&&e[o+1][n]===t}:o=>e[o][n]<t),dg=(e,n,t)=>qs(e,t,i=>e[i][n]>=t),Ia=["push","pop","shift","splice","unshift"];function Ra(e,n){const t=e._chartjs;if(!t)return;const i=t.listeners,o=i.indexOf(n);-1!==o&&i.splice(o,1),!(i.length>0)&&(Ia.forEach(r=>{delete e[r]}),delete e._chartjs)}function Ea(e){const n=new Set(e);return n.size===e.length?e:Array.from(n)}const Aa=typeof window>"u"?function(e){return e()}:window.requestAnimationFrame;function Ba(e,n){let t=[],i=!1;return function(...o){t=o,i||(i=!0,Aa.call(window,()=>{i=!1,e.apply(n,t)}))}}const Ks=e=>"start"===e?"left":"end"===e?"right":"center",at=(e,n,t)=>"start"===e?n:"end"===e?t:(n+t)/2;function Fa(e,n,t){const i=n.length;let o=0,r=i;if(e._sorted){const{iScale:a,vScale:l,_parsed:c}=e,d=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,p=a.axis,{min:h,max:g,minDefined:u,maxDefined:m}=a.getUserBounds();if(u){if(o=Math.min(Vt(c,p,h).lo,t?i:Vt(n,p,a.getPixelForValue(h)).lo),d){const f=c.slice(0,o+1).reverse().findIndex(_=>!I(_[l.axis]));o-=Math.max(0,f)}o=st(o,0,i-1)}if(m){let f=Math.max(Vt(c,a.axis,g,!0).hi+1,t?0:Vt(n,p,a.getPixelForValue(g),!0).hi+1);if(d){const _=c.slice(f-1).findIndex(b=>!I(b[l.axis]));f+=Math.max(0,_)}r=st(f,o,i)-o}else r=i-o}return{start:o,count:r}}function La(e){const{xScale:n,yScale:t,_scaleRanges:i}=e,o={xmin:n.min,xmax:n.max,ymin:t.min,ymax:t.max};if(!i)return e._scaleRanges=o,!0;const r=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==t.min||i.ymax!==t.max;return Object.assign(i,o),r}const yi=e=>0===e||1===e,ja=(e,n,t)=>-Math.pow(2,10*(e-=1))*Math.sin((e-n)*z/t),Ga=(e,n,t)=>Math.pow(2,-10*e)*Math.sin((e-n)*z/t)+1,xn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*Q),easeOutSine:e=>Math.sin(e*Q),easeInOutSine:e=>-.5*(Math.cos(F*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>yi(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>yi(e)?e:ja(e,.075,.3),easeOutElastic:e=>yi(e)?e:Ga(e,.075,.3),easeInOutElastic:e=>yi(e)?e:e<.5?.5*ja(2*e,.1125,.45):.5+.5*Ga(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let n=1.70158;return(e/=.5)<1?e*e*((1+(n*=1.525))*e-n)*.5:.5*((e-=2)*e*((1+(n*=1.525))*e+n)+2)},easeInBounce:e=>1-xn.easeOutBounce(1-e),easeOutBounce:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,easeInOutBounce:e=>e<.5?.5*xn.easeInBounce(2*e):.5*xn.easeOutBounce(2*e-1)+.5};function Qs(e){if(e&&"object"==typeof e){const n=e.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function $a(e){return Qs(e)?e:new ze(e)}function Js(e){return Qs(e)?e:new ze(e).saturate(.5).darken(.1).hexString()}const fg=["x","y","borderWidth","radius","tension"],mg=["color","borderColor","backgroundColor"],Va=new Map;function kn(e,n,t){return function vg(e,n){n=n||{};const t=e+JSON.stringify(n);let i=Va.get(t);return i||(i=new Intl.NumberFormat(e,n),Va.set(t,i)),i}(n,t).format(e)}const Ya={values:e=>Y(e)?e:""+e,numeric(e,n,t){if(0===e)return"0";const i=this.chart.options.locale;let o,r=e;if(t.length>1){const d=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(d<1e-4||d>1e15)&&(o="scientific"),r=function wg(e,n){let t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}(e,t)}const a=te(Math.abs(r)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),kn(e,i,c)},logarithmic(e,n,t){if(0===e)return"0";const i=t[n].significand||e/Math.pow(10,Math.floor(te(e)));return[1,2,3,5,10,15].includes(i)||n>.8*t.length?Ya.numeric.call(this,e,n,t):""}};var Ci={formatters:Ya};const he=Object.create(null),Zs=Object.create(null);function Pn(e,n){if(!n)return e;const t=n.split(".");for(let i=0,o=t.length;i<o;++i){const r=t[i];e=e[r]||(e[r]=Object.create(null))}return e}
vendor: 9,799 bytes, line 1
1function to(e,n,t){return"string"==typeof n?bn(Pn(e,n),t):bn(Pn(e,""),n)}class Cg{constructor(n,t){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)=>Js(o.backgroundColor),this.hoverBorderColor=(i,o)=>Js(o.borderColor),this.hoverColor=(i,o)=>Js(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(t)}set(n,t){return to(this,n,t)}get(n){return Pn(this,n)}describe(n,t){return to(Zs,n,t)}override(n,t){return to(he,n,t)}route(n,t,i,o){const r=Pn(this,n),a=Pn(this,i),l="_"+t;Object.defineProperties(r,{[l]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const c=this[l],d=a[o];return E(c)?Object.assign({},d,c):T(c,d)},set(c){this[l]=c}}})}apply(n){n.forEach(t=>t(this))}}var H=new Cg({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function _g(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),e.set("animations",{colors:{type:"color",properties:mg},numbers:{type:"number",properties:fg}}),e.describe("animations",{_fallback:"animation"}),e.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=>0|n}}}})},function bg(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function yg(e){e.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,t)=>t.lineWidth,tickColor:(n,t)=>t.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:Ci.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n&&"dash"!==n}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n})}]);function xi(e,n,t,i,o){let r=n[o];return r||(r=n[o]=e.measureText(o).width,t.push(o)),r>i&&(i=r),i}function kg(e,n,t,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(o=i.data={},r=i.garbageCollect=[],i.font=n),e.save(),e.font=n;let a=0;const l=t.length;let c,d,p,h,g;for(c=0;c<l;c++)if(h=t[c],null==h||Y(h)){if(Y(h))for(d=0,p=h.length;d<p;d++)g=h[d],null!=g&&!Y(g)&&(a=xi(e,o,r,a,g))}else a=xi(e,o,r,a,h);e.restore();const u=r.length/2;if(u>t.length){for(c=0;c<u;c++)delete o[r[c]];r.splice(0,u)}return a}function ge(e,n,t){const i=e.currentDevicePixelRatio,o=0!==t?Math.max(t/2,.5):0;return Math.round((n-o)*i)/i+o}function za(e,n){!n&&!e||((n=n||e.getContext("2d")).save(),n.resetTransform(),n.clearRect(0,0,e.width,e.height),n.restore())}function eo(e,n,t,i){Ha(e,n,t,i,null)}function Ha(e,n,t,i,o){let r,a,l,c,d,p,h,g;const u=n.pointStyle,m=n.rotation,f=n.radius;let _=(m||0)*sg;if(u&&"object"==typeof u&&(r=u.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return e.save(),e.translate(t,i),e.rotate(_),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),u){default:o?e.ellipse(t,i,o/2,f,0,0,z):e.arc(t,i,f,0,z),e.closePath();break;case"triangle":p=o?o/2:f,e.moveTo(t+Math.sin(_)*p,i-Math.cos(_)*f),_+=Ma,e.lineTo(t+Math.sin(_)*p,i-Math.cos(_)*f),_+=Ma,e.lineTo(t+Math.sin(_)*p,i-Math.cos(_)*f),e.closePath();break;case"rectRounded":d=.516*f,c=f-d,a=Math.cos(_+pe)*c,h=Math.cos(_+pe)*(o?o/2-d:c),l=Math.sin(_+pe)*c,g=Math.sin(_+pe)*(o?o/2-d:c),e.arc(t-h,i-l,d,_-F,_-Q),e.arc(t+g,i-a,d,_-Q,_),e.arc(t+h,i+l,d,_,_+Q),e.arc(t-g,i+a,d,_+Q,_+F),e.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*f,p=o?o/2:c,e.rect(t-p,i-c,2*p,2*c);break}_+=pe;case"rectRot":h=Math.cos(_)*(o?o/2:f),a=Math.cos(_)*f,l=Math.sin(_)*f,g=Math.sin(_)*(o?o/2:f),e.moveTo(t-h,i-l),e.lineTo(t+g,i-a),e.lineTo(t+h,i+l),e.lineTo(t-g,i+a),e.closePath();break;case"crossRot":_+=pe;case"cross":h=Math.cos(_)*(o?o/2:f),a=Math.cos(_)*f,l=Math.sin(_)*f,g=Math.sin(_)*(o?o/2:f),e.moveTo(t-h,i-l),e.lineTo(t+h,i+l),e.moveTo(t+g,i-a),e.lineTo(t-g,i+a);break;case"star":h=Math.cos(_)*(o?o/2:f),a=Math.cos(_)*f,l=Math.sin(_)*f,g=Math.sin(_)*(o?o/2:f),e.moveTo(t-h,i-l),e.lineTo(t+h,i+l),e.moveTo(t+g,i-a),e.lineTo(t-g,i+a),_+=pe,h=Math.cos(_)*(o?o/2:f),a=Math.cos(_)*f,l=Math.sin(_)*f,g=Math.sin(_)*(o?o/2:f),e.moveTo(t-h,i-l),e.lineTo(t+h,i+l),e.moveTo(t+g,i-a),e.lineTo(t-g,i+a);break;case"line":a=o?o/2:Math.cos(_)*f,l=Math.sin(_)*f,e.moveTo(t-a,i-l),e.lineTo(t+a,i+l);break;case"dash":e.moveTo(t,i),e.lineTo(t+Math.cos(_)*(o?o/2:f),i+Math.sin(_)*f);break;case!1:e.closePath()}e.fill(),n.borderWidth>0&&e.stroke()}}function Yt(e,n,t){return t=t||.5,!n||e&&e.x>n.left-t&&e.x<n.right+t&&e.y>n.top-t&&e.y<n.bottom+t}function ki(e,n){e.save(),e.beginPath(),e.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),e.clip()}function Pi(e){e.restore()}function Pg(e,n,t,i,o){if(!n)return e.lineTo(t.x,t.y);if("middle"===o){const r=(n.x+t.x)/2;e.lineTo(r,n.y),e.lineTo(r,t.y)}else"after"===o!=!!i?e.lineTo(n.x,t.y):e.lineTo(t.x,n.y);e.lineTo(t.x,t.y)}function Og(e,n,t,i){if(!n)return e.lineTo(t.x,t.y);e.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?t.cp2x:t.cp1x,i?t.cp2y:t.cp1y,t.x,t.y)}function Sg(e,n,t,i,o){if(o.strikethrough||o.underline){const r=e.measureText(i),a=n-r.actualBoundingBoxLeft,l=n+r.actualBoundingBoxRight,d=t+r.actualBoundingBoxDescent,p=o.strikethrough?(t-r.actualBoundingBoxAscent+d)/2:d;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(a,p),e.lineTo(l,p),e.stroke()}}function Tg(e,n){const t=e.fillStyle;e.fillStyle=n.color,e.fillRect(n.left,n.top,n.width,n.height),e.fillStyle=t}function ue(e,n,t,i,o,r={}){const a=Y(n)?n:[n],l=r.strokeWidth>0&&""!==r.strokeColor;let c,d;for(e.save(),e.font=o.string,function Mg(e,n){n.translation&&e.translate(n.translation[0],n.translation[1]),I(n.rotation)||e.rotate(n.rotation),n.color&&(e.fillStyle=n.color),n.textAlign&&(e.textAlign=n.textAlign),n.textBaseline&&(e.textBaseline=n.textBaseline)}(e,r),c=0;c<a.length;++c)d=a[c],r.backdrop&&Tg(e,r.backdrop),l&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),I(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(d,t,i,r.maxWidth)),e.fillText(d,t,i,r.maxWidth),Sg(e,t,i,d,r),i+=Number(o.lineHeight);e.restore()}function On(e,n){const{x:t,y:i,w:o,h:r,radius:a}=n;e.arc(t+a.topLeft,i+a.topLeft,a.topLeft,1.5*F,F,!0),e.lineTo(t,i+r-a.bottomLeft),e.arc(t+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,F,Q,!0),e.lineTo(t+o-a.bottomRight,i+r),e.arc(t+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,Q,0,!0),e.lineTo(t+o,i+a.topRight),e.arc(t+o-a.topRight,i+a.topRight,a.topRight,0,-Q,!0),e.lineTo(t+a.topLeft,i)}const Dg=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ng=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ig(e,n){const t=(""+e).match(Dg);if(!t||"normal"===t[1])return 1.2*n;switch(e=+t[2],t[3]){case"px":return e;case"%":e/=100}return n*e}const Rg=e=>+e||0;function no(e,n){const t={},i=E(n),o=i?Object.keys(n):n,r=E(e)?i?a=>T(e[a],e[n[a]]):a=>e[a]:()=>e;for(const a of o)t[a]=Rg(r(a));return t}function Xa(e){return no(e,{top:"y",right:"x",bottom:"y",left:"x"})}function fe(e){return no(e,["topLeft","topRight","bottomLeft","bottomRight"])}function lt(e){const n=Xa(e);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function et(e,n){let t=T((e=e||{}).size,(n=n||H.font).size);"string"==typeof t&&(t=parseInt(t,10));let i=T(e.style,n.style);i&&!(""+i).match(Ng)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:T(e.family,n.family),lineHeight:Ig(T(e.lineHeight,n.lineHeight),t),size:t,style:i,weight:T(e.weight,n.weight),string:""};return o.string=function xg(e){return!e||I(e.size)||I(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function Mn(e,n,t,i){let r,a,l,o=!0;for(r=0,a=e.length;r<a;++r)if(l=e[r],void 0!==l&&(void 0!==n&&"function"==typeof l&&(l=l(n),o=!1),void 0!==t&&Y(l)&&(l=l[t%l.length],o=!1),void 0!==l))return i&&!o&&(i.cacheable=!1),l}function ee(e,n){return Object.assign(Object.create(e),n)}function io(e,n=[""],t,i,o=()=>e[0]){const r=t||e;typeof i>"u"&&(i=Qa("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:i,_getTarget:
1o,override:l=>io([l,...e],n,r,i)};return new Proxy(a,{deleteProperty:(l,c)=>(delete l[c],delete l._keys,delete e[0][c],!0),get:(l,c)=>Ua(l,c,()=>function Vg(e,n,t,i){let o;for(const r of n)if(o=Qa(Ag(r,e),t),typeof o<"u")return so(e,o)?oo(t,i,e,o):o}(c,n,e,l)),getOwnPropertyDescriptor:(l,c)=>Reflect.getOwnPropertyDescriptor(l._scopes[0],c),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(l,c)=>Ja(l).includes(c),ownKeys:l=>Ja(l),set(l,c,d){const p=l._storage||(l._storage=o());return l[c]=p[c]=d,delete l._keys,!0}})}function Xe(e,n,t,i){const o={_cacheable:!1,_proxy:e,_context:n,_subProxy:t,_stack:new Set,_descriptors:Wa(e,i),setContext:r=>Xe(e,r,t,i),override:r=>Xe(e.override(r),n,t,i)};return new Proxy(o,{deleteProperty:(r,a)=>(delete r[a],delete e[a],!0),get:(r,a,l)=>Ua(r,a,()=>function Bg(e,n,t){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=e;let l=i[n];return Zt(l)&&a.isScriptable(n)&&(l=function Fg(e,n,t,i){const{_proxy:o,_context:r,_subProxy:a,_stack:l}=t;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=n(r,a||i);return l.delete(e),so(e,c)&&(c=oo(o._scopes,o,e,c)),c}(n,l,e,t)),Y(l)&&l.length&&(l=function Lg(e,n,t,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:l}=t;if(typeof r.index<"u"&&i(e))return n[r.index%n.length];if(E(n[0])){const c=n,d=o._scopes.filter(p=>p!==c);n=[];for(const p of c){const h=oo(d,o,e,p);n.push(Xe(h,r,a&&a[e],l))}}return n}(n,l,e,a.isIndexable)),so(n,l)&&(l=Xe(l,o,r&&r[n],a)),l}(r,a,l)),getOwnPropertyDescriptor:(r,a)=>r._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(r,a)=>Reflect.has(e,a),ownKeys:()=>Reflect.ownKeys(e),set:(r,a,l)=>(e[a]=l,delete r[a],!0)})}function Wa(e,n={scriptable:!0,indexable:!0}){const{_scriptable:t=n.scriptable,_indexable:i=n.indexable,_allKeys:o=n.allKeys}=e;return{allKeys:o,scriptable:t,indexable:i,isScriptable:Zt(t)?t:()=>t,isIndexable:Zt(i)?i:()=>i}}const Ag=(e,n)=>e?e+Xs(n):n,so=(e,n)=>E(n)&&"adapters"!==e&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function Ua(e,n,t){if(Object.prototype.hasOwnProperty.call(e,n)||"constructor"===n)return e[n];const i=t();return e[n]=i,i}function qa(e,n,t){return Zt(e)?e(n,t):e}const jg=(e,n)=>!0===e?n:"string"==typeof e?Jt(n,e):void 0;function Gg(e,n,t,i,o){for(const r of n){const a=jg(t,r);if(a){e.add(a);const l=qa(a._fallback,t,o);if(typeof l<"u"&&l!==t&&l!==i)return l}else if(!1===a&&typeof i<"u"&&t!==i)return null}return!1}function oo(e,n,t,i){const o=n._rootScopes,r=qa(n._fallback,t,i),a=[...e,...o],l=new Set;l.add(i);let c=Ka(l,a,t,r||t,i);return!(null===c||typeof r<"u"&&r!==t&&(c=Ka(l,a,r,c,i),null===c))&&io(Array.from(l),[""],o,r,()=>function $g(e,n,t){const i=e._getTarget();n in i||(i[n]={});const o=i[n];return Y(o)&&E(t)?t:o||{}}(n,t,i))}function Ka(e,n,t,i,o){for(;t;)t=Gg(e,n,t,i,o);return t}function Qa(e,n){for(const t of n){if(!t)continue;const i=t[e];if(typeof i<"u")return i}}function Ja(e){let n=e._keys;return n||(n=e._keys=function Yg(e){const n=new Set;for(const t of e)for(const i of Object.keys(t).filter(o=>!o.startsWith("_")))n.add(i);return Array.from(n)}(e._scopes)),n}function Za(e,n,t,i){const{iScale:o}=e,{key:r="r"}=this._parsing,a=new Array(i);let l,c,d,p;for(l=0,c=i;l<c;++l)d=l+t,p=n[d],a[l]={r:o.parse(Jt(p,r),d)};return a}const zg=Number.EPSILON||1e-14,We=(e,n)=>n<e.length&&!e[n].skip&&e[n],tl=e=>"x"===e?"y":"x";function Hg(e,n,t,i){const o=e.skip?n:e,r=n,a=t.skip?n:t,l=Us(r,o),c=Us(a,r);let d=l/(l+c),p=c/(l+c);d=isNaN(d)?0:d,p=isNaN(p)?0:p;const h=i*d,g=i*p;return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+g*(a.x-o.x),y:r.y+g*(a.y-o.y)}}}function Oi(e,n,t){return Math.max(Math.min(e,t),n)}function Kg(e,n,t,i,o){let r,a,l,c;if(n.spanGaps&&(e=e.filter(d=>!d.skip)),"monotone"===n.cubicInterpolationMode)!function Ug(e,n="x"){const t=tl(n),i=e.length,o=Array(i).fill(0),r=Array(i);let a,l,c,d=We(e,0);for(a=0;a<i;++a)if(l=c,c=d,d=We(e,a+1),c){if(d){const p=d[n]-c[n];o[a]=0!==p?(d[t]-c[t])/p:0}r[a]=l?d?Nt(o[a-1])!==Nt(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}(function Xg(e,n,t){const i=e.length;let o,r,a,l,c,d=We(e,0);for(let p=0;p<i-1;++p)if(c=d,d=We(e,p+1),c&&d){if(yn(n[p],0,zg)){t[p]=t[p+1]=0;continue}o=t[p]/n[p],r=t[p+1]/n[p],l=Math.pow(o,2)+Math.pow(r,2),!(l<=9)&&(a=3/Math.sqrt(l),t[p]=o*a*n[p],t[p+1]=r*a*n[p])}})(e,o,r),function Wg(e,n,t="x"){const i=tl(t),o=e.length;let r,a,l,c=We(e,0);for(let d=0;d<o;++d){if(a=l,l=c,c=We(e,d+1),!l)continue;
1const p=l[t],h=l[i];a&&(r=(p-a[t])/3,l[`cp1${t}`]=p-r,l[`cp1${i}`]=h-r*n[d]),c&&(r=(c[t]-p)/3,l[`cp2${t}`]=p+r,l[`cp2${i}`]=h+r*n[d])}}(e,r,n)}(e,o);else{let d=i?e[e.length-1]:e[0];for(r=0,a=e.length;r<a;++r)l=e[r],c=Hg(d,l,e[Math.min(r+1,a-(i?0:1))%a],n.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}n.capBezierPoints&&function qg(e,n){let t,i,o,r,a,l=Yt(e[0],n);for(t=0,i=e.length;t<i;++t)a=r,r=l,l=t<i-1&&Yt(e[t+1],n),r&&(o=e[t],a&&(o.cp1x=Oi(o.cp1x,n.left,n.right),o.cp1y=Oi(o.cp1y,n.top,n.bottom)),l&&(o.cp2x=Oi(o.cp2x,n.left,n.right),o.cp2y=Oi(o.cp2y,n.top,n.bottom)))}(e,t)}function ro(){return typeof window<"u"&&typeof document<"u"}function ao(e){let n=e.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n}function Mi(e,n,t){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*n.parentNode[t])):i=e,i}const Si=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),Jg=["top","right","bottom","left"];function me(e,n,t){const i={};t=t?"-"+t:"";for(let o=0;o<4;o++){const r=Jg[o];i[r]=parseFloat(e[n+"-"+r+t])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function _e(e,n){if("native"in e)return e;const{canvas:t,currentDevicePixelRatio:i}=n,o=Si(t),r="border-box"===o.boxSizing,a=me(o,"padding"),l=me(o,"border","width"),{x:c,y:d,box:p}=function tu(e,n){const t=e.touches,i=t&&t.length?t[0]:e,{offsetX:o,offsetY:r}=i;let l,c,a=!1;if(((e,n,t)=>(e>0||n>0)&&(!t||!t.shadowRoot))(o,r,e.target))l=o,c=r;else{const d=n.getBoundingClientRect();l=i.clientX-d.left,c=i.clientY-d.top,a=!0}return{x:l,y:c,box:a}}(e,t),h=a.left+(p&&l.left),g=a.top+(p&&l.top);let{width:u,height:m}=n;return r&&(u-=a.width+l.width,m-=a.height+l.height),{x:Math.round((c-h)/u*t.width/i),y:Math.round((d-g)/m*t.height/i)}}const Ti=e=>Math.round(10*e)/10;function el(e,n,t){const i=n||1,o=Math.floor(e.height*i),r=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(t||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||a.height!==o||a.width!==r)&&(e.currentDevicePixelRatio=i,a.height=o,a.width=r,e.ctx.setTransform(i,0,0,i,0,0),!0)}const iu=function(){let e=!1;try{const n={get passive(){return e=!0,!1}};ro()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return e}();function nl(e,n){const t=function Qg(e,n){return Si(e).getPropertyValue(n)}(e,n),i=t&&t.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function be(e,n,t,i){return{x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)}}function su(e,n,t,i){return{x:e.x+t*(n.x-e.x),y:"middle"===i?t<.5?e.y:n.y:"after"===i?t<1?e.y:n.y:t>0?n.y:e.y}}function ou(e,n,t,i){const o={x:e.cp2x,y:e.cp2y},r={x:n.cp1x,y:n.cp1y},a=be(e,o,t),l=be(o,r,t),c=be(r,n,t),d=be(a,l,t),p=be(l,c,t);return be(d,p,t)}function Ue(e,n,t){return e?function(e,n){return{x:t=>e+e+n-t,setWidth(t){n=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,i)=>t-i,leftForLtr:(t,i)=>t-i}}(n,t):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,n)=>e+n,leftForLtr:(e,n)=>e}}function il(e,n){let t,i;("ltr"===n||"rtl"===n)&&(t=e.canvas.style,i=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",n,"important"),e.prevTextDirection=i)}function sl(e,n){void 0!==n&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",n[0],n[1]))}function ol(e){return"angle"===e?{between:Cn,compare:lg,normalize:rt}:{between:$t,compare:(n,t)=>n-t,normalize:n=>n}}function rl({start:e,end:n,count:t,loop:i,style:o}){return{start:e%t,end:n%t,loop:i&&(n-e+1)%t==0,style:o}}function al(e,n,t){if(!t)return[e];const{property:i,start:o,end:r}=t,a=n.length,{compare:l,between:c,normalize:d}=ol(i),{start:p,end:h,loop:g,style:u}=function lu(e,n,t){const{property:i,start:o,end:r}=t,{between:a,normalize:l}=ol(i),c=n.length;let g,u,{start:d,end:p,loop:h}=e;if(h){for(d+=c,p+=c,g=0,u=c;g<u&&a(l(n[d%c][i]),o,r);++g)d--,p--;d%=c,p%=c}return p<d&&(p+=c),{start:d,end:p,loop:h,style:e.style}}(e,n,t),m=[];let b,v,C,f=!1,_=null;for(let P=p,M=p;P<=h;++P)v=n[P%a],!v.skip&&(b=d(v[i]),b!==C&&(f=c(b,o,r),null===_&&(f||c(o,C,b)&&0!==l(o,C))&&(_=0===l(b,o)?P:M),null!==_&&(!f||0===l(r,b)||c(r,C,b))&&(m.push(rl({start:_,end:P,loop:g,count:a,style:u})),_=null),M=P,C=b));return null!==_&&m.push(rl({start:_,end:h,loop:g,count:a,style:u})),m}function ll(e,n){const t=[],i=e.segments;for(let o=0;o<i.length;o++){const r=al(i[o],e.points,n);r.length&&t.push(...r)}return t}function dl(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function gu(e,n){if(!n)return!1;const t=[],i=function(o,r){return Qs(r)?(t.includes(r)||t.push(r),t.indexOf(r)):r};return JSON.stringify(e,i)!==JSON.stringify(n,i)}function Di(e,n,t){return e.options.clip?e[t]:n[t]}function pl(e,n){const t=n._clip;if(t.disabled)return!1;const i=function uu(e,n){const{xScale:t,yScale:i}=e;
1return t&&i?{left:Di(t,n,"left"),right:Di(t,n,"right"),top:Di(i,n,"top"),bottom:Di(i,n,"bottom")}:n}(n,e.chartArea);return{left:!1===t.left?0:i.left-(!0===t.left?0:t.left),right:!1===t.right?e.width:i.right+(!0===t.right?0:t.right),top:!1===t.top?0:i.top-(!0===t.top?0:t.top),bottom:!1===t.bottom?e.height:i.bottom+(!0===t.bottom?0:t.bottom)}}class fu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,t,i,o){const a=t.duration;t.listeners[o].forEach(l=>l({chart:n,initial:t.initial,numSteps:a,currentStep:Math.min(i-t.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Aa.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let t=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const r=i.items;let c,a=r.length-1,l=!1;for(;a>=0;--a)c=r[a],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(n),l=!0):(r[a]=r[r.length-1],r.pop());l&&(o.draw(),this._notify(o,i,n,"progress")),r.length||(i.running=!1,this._notify(o,i,n,"complete"),i.initial=!1),t+=r.length}),this._lastDate=n,0===t&&(this._running=!1)}_getAnims(n){const t=this._charts;let i=t.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(n,i)),i}listen(n,t,i){this._getAnims(n).listeners[t].push(i)}add(n,t){!t||!t.length||this._getAnims(n).items.push(...t)}has(n){return this._getAnims(n).items.length>0}start(n){const t=this._charts.get(n);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(n){if(!this._running)return!1;const t=this._charts.get(n);return!(!t||!t.running||!t.items.length)}stop(n){const t=this._charts.get(n);if(!t||!t.items.length)return;const i=t.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();t.items=[],this._notify(n,t,Date.now(),"complete")}remove(n){return this._charts.delete(n)}}var zt=new fu;const hl="transparent",mu={boolean:(e,n,t)=>t>.5?n:e,color(e,n,t){const i=$a(e||hl),o=i.valid&&$a(n||hl);return o&&o.valid?o.mix(i,t).hexString():n},number:(e,n,t)=>e+(n-e)*t};class _u{constructor(n,t,i,o){const r=t[i];o=Mn([n.to,o,r,n.from]);const a=Mn([n.from,r,o]);this._active=!0,this._fn=n.fn||mu[n.type||typeof a],this._easing=xn[n.easing]||xn.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=t,this._prop=i,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(n,t,i){if(this._active){this._notify(!1);const o=this._target[this._prop],r=i-this._start,a=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=r,this._loop=!!n.loop,this._to=Mn([n.to,t,o,n.from]),this._from=Mn([n.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const t=n-this._start,i=this._duration,o=this._prop,r=this._from,a=this._loop,l=this._to;let c;if(this._active=r!==l&&(a||t<i),!this._active)return this._target[o]=l,void this._notify(!0);t<0?this._target[o]=r:(c=t/i%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[o]=this._fn(r,l,c))}wait(){const n=this._promises||(this._promises=[]);return new Promise((t,i)=>{n.push({res:t,rej:i})})}_notify(n){const t=n?"res":"rej",i=this._promises||[];for(let o=0;o<i.length;o++)i[o][t]()}}class gl{constructor(n,t){this._chart=n,this._properties=new Map,this.configure(t)}configure(n){if(!E(n))return;const t=Object.keys(H.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(o=>{const r=n[o];if(!E(r))return;const a={};for(const l of t)a[l]=r[l];(Y(r.properties)&&r.properties||[o]).forEach(l=>{(l===o||!i.has(l))&&i.set(l,a)})})}_animateOptions(n,t){const i=t.options,o=function vu(e,n){if(!n)return;let t=e.options;
vendor: 12,312 bytes, line 1
1if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=n}(n,i);if(!o)return[];const r=this._createAnimations(o,i);return i.$shared&&function bu(e,n){const t=[],i=Object.keys(n);for(let o=0;o<i.length;o++){const r=e[i[o]];r&&r.active()&&t.push(r.wait())}return Promise.all(t)}(n.options.$animations,i).then(()=>{n.options=i},()=>{}),r}_createAnimations(n,t){const i=this._properties,o=[],r=n.$animations||(n.$animations={}),a=Object.keys(t),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const d=a[c];if("$"===d.charAt(0))continue;if("options"===d){o.push(...this._animateOptions(n,t));continue}const p=t[d];let h=r[d];const g=i.get(d);if(h){if(g&&h.active()){h.update(g,p,l);continue}h.cancel()}g&&g.duration?(r[d]=h=new _u(g,n,d,p),o.push(h)):n[d]=p}return o}update(n,t){if(0===this._properties.size)return void Object.assign(n,t);const i=this._createAnimations(n,t);return i.length?(zt.add(this._chart,i),!0):void 0}}function ul(e,n){const t=e&&e.options||{},i=t.reverse,o=void 0===t.min?n:0,r=void 0===t.max?n:0;return{start:i?r:o,end:i?o:r}}function fl(e,n){const t=[],i=e._getSortedDatasetMetas(n);let o,r;for(o=0,r=i.length;o<r;++o)t.push(i[o].index);return t}function ml(e,n,t,i={}){const o=e.keys,r="single"===i.mode;let a,l,c,d;if(null===n)return;let p=!1;for(a=0,l=o.length;a<l;++a){if(c=+o[a],c===t){if(p=!0,i.all)continue;break}d=e.values[c],q(d)&&(r||0===n||Nt(n)===Nt(d))&&(n+=d)}return p||i.all?n:0}function lo(e,n){const t=e&&e.options.stacked;return t||void 0===t&&void 0!==n.stack}function Pu(e,n,t){const i=e[n]||(e[n]={});return i[t]||(i[t]={})}function _l(e,n,t,i){for(const o of n.getMatchingVisibleMetas(i).reverse()){const r=e[o.index];if(t&&r>0||!t&&r<0)return o.index}return null}function bl(e,n){const{chart:t,_cachedMeta:i}=e,o=t._stacks||(t._stacks={}),{iScale:r,vScale:a,index:l}=i,c=r.axis,d=a.axis,p=function xu(e,n,t){return`${e.id}.${n.id}.${t.stack||t.type}`}(r,a,i),h=n.length;let g;for(let u=0;u<h;++u){const m=n[u],{[c]:f,[d]:_}=m;g=(m._stacks||(m._stacks={}))[d]=Pu(o,p,f),g[l]=_,g._top=_l(g,a,!0,i.type),g._bottom=_l(g,a,!1,i.type),(g._visualValues||(g._visualValues={}))[l]=_}}function co(e,n){const t=e.scales;return Object.keys(t).filter(i=>t[i].axis===n).shift()}function Sn(e,n){const t=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){n=n||e._parsed;for(const o of n){const r=o._stacks;if(!r||void 0===r[i]||void 0===r[i][t])return;delete r[i][t],void 0!==r[i]._visualValues&&void 0!==r[i]._visualValues[t]&&delete r[i]._visualValues[t]}}}const po=e=>"reset"===e||"none"===e,vl=(e,n)=>n?e:Object.assign({},e);let ne=(()=>class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,i){this.chart=t,this._ctx=t.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(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=lo(t.vScale,t),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(t){this.index!==t&&Sn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,i=this._cachedMeta,o=this.getDataset(),r=(g,u,m,f)=>"x"===g?u:"r"===g?f:m,a=i.xAxisID=T(o.xAxisID,co(t,"x")),l=i.yAxisID=T(o.yAxisID,co(t,"y")),c=i.rAxisID=T(o.rAxisID,co(t,"r")),d=i.indexAxis,p=i.iAxisID=r(d,a,l,c),h=i.vAxisID=r(d,l,a,c);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(l),i.rScale=this.getScaleForId(c),i.iScale=this.getScaleForId(p),i.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ra(this._data,this),t._stacked&&Sn(t)}_dataCheck(){const t=this.getDataset(),i=t.data||(t.data=[]),o=this._data;if(E(i))this._data=function Cu(e,n){const{iScale:t,vScale:i}=n,o="x"===t.axis?"x":"y",r="x"===i.axis?"x":"y",a=Object.keys(e),l=new Array(a.length);let c,d,p;for(c=0,d=a.length;c<d;++c)p=a[c],l[c]={[o]:p,[r]:e[p]};return l}(i,this._cachedMeta);else if(o!==i){if(o){Ra(o,this);const r=this._cachedMeta;Sn(r),r._parsed=[]}i&&Object.isExtensible(i)&&function hg(e,n){e._chartjs?e._chartjs.listeners.push(n):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),Ia.forEach(t=>{const i="_onData"+Xs(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...r){const a=o.apply(this,r);return e._chartjs.listeners.forEach(l=>{"function"==typeof l[i]&&l[i](...r)}),a}})}))}(i,this),this._syncList=[],this._data=i}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const i=this._cachedMeta,o=this.getDataset();let r=!1;this._dataCheck();const a=i._stacked;i._stacked=lo(i.vScale,i),i.stack!==o.stack&&(r=!0,Sn(i),i.stack=o.stack),this._resyncElements(t),(r||a!==i._stacked)&&(bl(this,i._parsed),i._stacked=lo(i.vScale,i))}configure(){const t=this.chart.config,i=t.datasetScopeKeys(this._type),o=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){const{_cachedMeta:o,_data:r}=this,{iScale:a,_stacked:l}=o,c=a.axis;let h,g,u,d=0===t&&i===r.length||o._sorted,p=t>0&&o._parsed[t-1];if(!1===this._parsing)o._parsed=r,o._sorted=!0,u=r;else{u=Y(r[t])?this.parseArrayData(o,r,t,i):E(r[t])?this.parseObjectData(o,r,t,i):this.parsePrimitiveData(o,r,t,i);const m=()=>null===g[c]||p&&g[c]<p[c];for(h=0;h<i;++h)o._parsed[h+t]=g=u[h],d&&(m()&&(d=!1),p=g);o._sorted=d}l&&bl(this,u)}parsePrimitiveData(t,i,o,r){const{iScale:a,vScale:l}=t,c=a.axis,d=l.axis,p=a.getLabels(),h=a===l,g=new Array(r);let u,m,f;for(u=0,m=r;u<m;++u)f=u+o,g[u]={[c]:h||a.parse(p[f],f),[d]:l.parse(i[f],f)};return g}parseArrayData(t,i,o,r){const{xScale:a,yScale:l}=t,c=new Array(r);let d,p,h,g;for(d=0,p=r;d<p;++d)h=d+o,g=i[h],c[d]={x:a.parse(g[0],h),y:l.parse(g[1],h)};return c}parseObjectData(t,i,o,r){const{xScale:a,yScale:l}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,p=new Array(r);let h,g,u,m;for(h=0,g=r;h<g;++h)u=h+o,m=i[u],p[h]={x:a.parse(Jt(m,c),u),y:l.parse(Jt(m,d),u)};return p}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,o){const a=this._cachedMeta,l=i[t.axis];return ml({keys:fl(this.chart,!0),values:i._stacks[t.axis]._visualValues},l,a.index,{mode:o})}updateRangeFromParsed(t,i,o,r){const a=o[i.axis];let l=null===a?NaN:a;const c=r&&o._stacks[i.axis];r&&c&&(r.values=c,l=ml(r,a,this._cachedMeta.index)),t.min=Math.min(t.min,l),t.max=Math.max(t.max,l)}getMinMax(t,i){const o=this._cachedMeta,r=o._parsed,a=o._sorted&&t===o.iScale,l=r.length,c=this._getOtherScale(t),d=((e,n)=>e&&!n.hidden&&n._stacked&&{keys:fl(this.chart,!0),values:null})(i,o),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:g}=function ku(e){const{min:n,max:t,minDefined:i,maxDefined:o}=e.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:o?t:Number.POSITIVE_INFINITY}}(c);let u,m;function f(){m=r[u];const _=m[c.axis];return!q(m[t.axis])||h>_||g<_}for(u=0;u<l&&(f()||(this.updateRangeFromParsed(p,t,m,d),!a));++u);if(a)for(u=l-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(p,t,m,d);break}return p}getAllParsedValues(t){const i=this._cachedMeta._parsed,o=[];let r,a,l;for(r=0,a=i.length;r<a;++r)l=i[r][t.axis],q(l)&&o.push(l);return o}getMaxOverflow(){return!1}getLabelAndValue(t){const i=this._cachedMeta,o=i.iScale,r=i.vScale,a=this.getParsed(t);return{label:o?""+o.getLabelForValue(a[o.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(t){const i=this._cachedMeta;this.update(t||"default"),i._clip=function yu(e){let n,t,i,o;return E(e)?(n=e.top,t=e.right,i=e.bottom,o=e.left):n=t=i=o=e,{top:n,right:t,bottom:i,left:o,disabled:!1===e}}(T(this.options.clip,function wu(e,n,t){if(!1===t)return!1;const i=ul(e,t),o=ul(n,t);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,o=this._cachedMeta,r=o.data||[],a=this.chart.chartArea,l=[],c=this._drawStart||0,d=this._drawCount||r.length-c,p=this.options.drawActiveElementsOnTop;let h;for(o.dataset&&o.dataset.draw(t,a,c,d),h=c;h<c+d;++h){const g=r[h];g.hidden||(g.active&&p?l.push(g):g.draw(t,a))}for(h=0;h<l.length;++h)l[h].draw(t,a)}getStyle(t,i){const o=i?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(t||0,o)}getContext(t,i,o){const r=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const l=this._cachedMeta.data[t];a=l.$context||(l.$context=function Mu(e,n,t){return ee(e,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:t,index:n,mode:"default",type:"data"})}(this.getContext(),t,l)),a.parsed=this.getParsed(t),a.raw=r.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=function Ou(e,n){return ee(e,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=o,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",o){const r="active"===i,a=this._cachedDataOpts,l=t+"-"+i,c=a[l],d=this.enableOptionSharing&&wn(o);if(c)return vl(c,d);const p=this.chart.config,h=p.datasetElementScopeKeys(this._type,t),g=r?[`${t}Hover`,"hover",t,""]:[t,""],u=p.getOptionScopes(this.getDataset(),h),m=Object.keys(H.elements[t]),_=p.resolveNamedOptions(u,m,()=>this.getContext(o,r,i),g);return _.$shared&&(_.$shared=d,a[l]=Object.freeze(vl(_,d))),_}_resolveAnimations(t,i,o){const r=this.chart,a=this._cachedDataOpts,l=`animation-${i}`,c=a[l];if(c)return c;let d;if(!1!==r.options.animation){const h=this.chart.config,g=h.datasetAnimationScopeKeys(this._type,i),u=h.getOptionScopes(this.getDataset(),g);d=h.createResolver(u,this.getContext(t,o,i))}const p=new gl(r,d&&d.animations);return d&&d._cacheable&&(a[l]=Object.freeze(p)),p}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||po(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){const o=this.resolveDataElementOptions(t,i),r=this._sharedOptions,a=this.getSharedOptions(o),l=this.includeOptions(i,a)||a!==r;return this.updateSharedOptions(a,i,o),{sharedOptions:a,includeOptions:l}}updateElement(t,i,o,r){po(r)?Object.assign(t,o):this._resolveAnimations(i,r).update(t,o)}updateSharedOptions(t,i,o){t&&!po(i)&&this._resolveAnimations(void 0,i).update(t,o)}_setStyle(t,i,o,r){t.active=r;const a=this.getStyle(i,r);this._resolveAnimations(i,o,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(t,i,o){this._setStyle(t,o,"active",!1)}setHoverStyle(t,i,o){this._setStyle(t,o,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const i=this._data,o=this._cachedMeta.data;for(const[c,d,p]of this._syncList)this[c](d,p);this._syncList=[];const r=o.length,a=i.length,l=Math.min(a,r);l&&this.parse(0,l),a>r?this._insertElements(r,a-r,t):a<r&&this._removeElements(a,r-a)}_insertElements(t,i,o=!0){const r=this._cachedMeta,a=r.data,l=t+i;let c;const d=p=>{for(p.length+=i,c=p.length-1;c>=l;c--)p[c]=p[c-i]};for(d(a),c=t;c<l;
vendor: 16,579 bytes, line 1
1++c)a[c]=new this.dataElementType;this._parsing&&d(r._parsed),this.parse(t,i),o&&this.updateElements(a,t,i,"reset")}updateElements(t,i,o,r){}_removeElements(t,i){const o=this._cachedMeta;if(this._parsing){const r=o._parsed.splice(t,i);o._stacked&&Sn(o,r)}o.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[i,o,r]=t;this[i](o,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);const o=arguments.length-2;o&&this._sync(["_insertElements",t,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})();function Du(e){const n=e.iScale,t=function Tu(e,n){if(!e._cache.$bar){const t=e.getMatchingVisibleMetas(n);let i=[];for(let o=0,r=t.length;o<r;o++)i=i.concat(t[o].controller.getAllParsedValues(e));e._cache.$bar=Ea(i.sort((o,r)=>o-r))}return e._cache.$bar}(n,e.type);let o,r,a,l,i=n._length;const c=()=>{32767===a||-32768===a||(wn(l)&&(i=Math.min(i,Math.abs(a-l)||i)),l=a)};for(o=0,r=t.length;o<r;++o)a=n.getPixelForValue(t[o]),c();for(l=void 0,o=0,r=n.ticks.length;o<r;++o)a=n.getPixelForTick(o),c();return i}function wl(e,n,t,i){return Y(e)?function Ru(e,n,t,i){const o=t.parse(e[0],i),r=t.parse(e[1],i),a=Math.min(o,r),l=Math.max(o,r);let c=a,d=l;Math.abs(a)>Math.abs(l)&&(c=l,d=a),n[t.axis]=d,n._custom={barStart:c,barEnd:d,start:o,end:r,min:a,max:l}}(e,n,t,i):n[t.axis]=t.parse(e,i),n}function yl(e,n,t,i){const o=e.iScale,r=e.vScale,a=o.getLabels(),l=o===r,c=[];let d,p,h,g;for(d=t,p=t+i;d<p;++d)g=n[d],h={},h[o.axis]=l||o.parse(a[d],d),c.push(wl(g,h,r,d));return c}function ho(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Bu(e,n,t,i){let o=n.borderSkipped;const r={};if(!o)return void(e.borderSkipped=r);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:l,reverse:c,top:d,bottom:p}=function Au(e){let n,t,i,o,r;return e.horizontal?(n=e.base>e.x,t="left",i="right"):(n=e.base<e.y,t="bottom",i="top"),n?(o="end",r="start"):(o="start",r="end"),{start:t,end:i,reverse:n,top:o,bottom:r}}(e);"middle"===o&&t&&(e.enableBorderRadius=!0,(t._top||0)===i?o=d:(t._bottom||0)===i?o=p:(r[Cl(p,a,l,c)]=!0,o=d)),r[Cl(o,a,l,c)]=!0,e.borderSkipped=r}function Cl(e,n,t,i){return i?(e=function Fu(e,n,t){return e===n?t:e===t?n:e}(e,n,t),e=xl(e,t,n)):e=xl(e,n,t),e}function xl(e,n,t){return"start"===e?n:"end"===e?t:e}function Lu(e,{inflateAmount:n},t){e.inflateAmount="auto"===n?1===t?.33:0:n}let ju=(()=>class e extends ne{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(t,i,o,r){return yl(t,i,o,r)}parseArrayData(t,i,o,r){return yl(t,i,o,r)}parseObjectData(t,i,o,r){const{iScale:a,vScale:l}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,p="x"===a.axis?c:d,h="x"===l.axis?c:d,g=[];let u,m,f,_;for(u=o,m=o+r;u<m;++u)_=i[u],f={},f[a.axis]=a.parse(Jt(_,p),u),g.push(wl(Jt(_,h),f,l,u));return g}updateRangeFromParsed(t,i,o,r){super.updateRangeFromParsed(t,i,o,r);const a=o._custom;a&&i===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const i=this._cachedMeta,{iScale:o,vScale:r}=i,a=this.getParsed(t),l=a._custom,c=ho(l)?"["+l.start+", "+l.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+o.getLabelForValue(a[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,t)}updateElements(t,i,o,r){const a="reset"===r,{index:l,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),p=c.isHorizontal(),h=this._getRuler(),{sharedOptions:g,includeOptions:u}=this._getSharedOptions(i,r);for(let m=i;m<i+o;m++){const f=this.getParsed(m),_=a||I(f[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(m),b=this._calculateBarIndexPixels(m,h),v=(f._stacks||{})[c.axis],C={horizontal:p,base:_.base,enableBorderRadius:!v||ho(f._custom)||l===v._top||l===v._bottom,x:p?_.head:b.center,y:p?b.center:_.head,height:p?b.size:Math.abs(_.size),width:p?Math.abs(_.size):b.size};u&&(C.options=g||this.resolveDataElementOptions(m,t[m].active?"active":r));const w=C.options||t[m].options;Bu(C,w,v,l),Lu(C,w,h.ratio),this.updateElement(t[m],m,C,r)}}_getStacks(t,i){const{iScale:o}=this._cachedMeta,r=o.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),a=o.options.stacked,l=[],c=this._cachedMeta.controller.getParsed(i),d=c&&c[o.axis],p=h=>{const g=h._parsed.find(m=>m[o.axis]===d),u=g&&g[h.vScale.axis];if(I(u)||isNaN(u))return!0};for(const h of r)if((void 0===i||!p(h))&&((!1===a||-1===l.indexOf(h.stack)||void 0===a&&void 0===h.stack)&&l.push(h.stack),h.index===t))break;return l.length||l.push(void 0),l}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(t).filter(o=>t[o].axis===i).shift()}_getAxis(){const t={},i=this.getFirstScaleIdForIndexAxis();for(const o of this.chart.data.datasets)t[T("x"===this.chart.options.indexAxis?o.xAxisID:o.yAxisID,i)]=!0;return Object.keys(t)}_getStackIndex(t,i,o){const r=this._getStacks(t,o),a=void 0!==i?r.indexOf(i):-1;return-1===a?r.length-1:a}_getRuler(){const t=this.options,i=this._cachedMeta,o=i.iScale,r=[];let a,l;for(a=0,l=i.data.length;a<l;++a)r.push(o.getPixelForValue(this.getParsed(a)[o.axis],a));const c=t.barThickness;return{min:c||Du(i),pixels:r,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:t.grouped,ratio:c?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:i,_stacked:o,index:r},options:{base:a,minBarLength:l}}=this,c=a||0,d=this.getParsed(t),p=d._custom,h=ho(p);let f,_,g=d[i.axis],u=0,m=o?this.applyStack(i,d,o):g;m!==g&&(u=m-g,m=g),h&&(g=p.barStart,m=p.barEnd-p.barStart,0!==g&&Nt(g)!==Nt(p.barEnd)&&(u=0),u+=g);const b=I(a)||h?u:a;let v=i.getPixelForValue(b);if(f=this.chart.getDataVisibility(t)?i.getPixelForValue(u+m):v,_=f-v,Math.abs(_)<l){_=function Eu(e,n,t){return 0!==e?Nt(e):(n.isHorizontal()?1:-1)*(n.min>=t?1:-1)}(_,i,c)*l,g===c&&(v-=_/2);const C=i.getPixelForDecimal(0),w=i.getPixelForDecimal(1),x=Math.min(C,w),y=Math.max(C,w);v=Math.max(Math.min(v,y),x),f=v+_,o&&!h&&(d._stacks[i.axis]._visualValues[r]=i.getValueForPixel(f)-i.getValueForPixel(v))}if(v===i.getPixelForValue(c)){const C=Nt(_)*i.getLineWidthForValue(c)/2;v+=C,_-=C}return{size:_,base:v,head:f,center:f+_/2}}_calculateBarIndexPixels(t,i){const o=i.scale,r=this.options,a=r.skipNull,l=T(r.maxBarThickness,1/0);let c,d;const p=this._getAxisCount();if(i.grouped){const h=a?this._getStackCount(t):i.stackCount,g="flex"===r.barThickness?function Iu(e,n,t,i){const o=n.pixels,r=o[e];let a=e>0?o[e-1]:null,l=e<o.length-1?o[e+1]:null;const c=t.categoryPercentage;null===a&&(a=r-(null===l?n.end-n.start:l-r)),null===l&&(l=r+r-a);const d=r-(r-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/i,ratio:t.barPercentage,start:d}}(t,i,r,h*p):function Nu(e,n,t,i){const o=t.barThickness;let r,a;return I(o)?(r=n.min*t.categoryPercentage,a=t.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:n.pixels[e]-r/2}}(t,i,r,h*p),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,m=this._getAxis().indexOf(T(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+m;c=g.start+g.chunk*f+g.chunk/2,d=Math.min(l,g.chunk*g.ratio)}else c=o.getPixelForValue(this.getParsed(t)[o.axis],t),d=Math.min(l,i.min*i.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const t=this._cachedMeta,i=t.vScale,o=t.data,r=o.length;let a=0;for(;a<r;++a)null!==this.getParsed(a)[i.axis]&&!o[a].hidden&&o[a].draw(this._ctx)}})(),Gu=(()=>class e extends ne{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(t,i,o,r){const a=super.parsePrimitiveData(t,i,o,r);for(let l=0;l<a.length;l++)a[l]._custom=this.resolveDataElementOptions(l+o).radius;return a}parseArrayData(t,i,o,r){const a=super.parseArrayData(t,i,o,r);for(let l=0;l<a.length;l++)a[l]._custom=T(i[o+l][2],this.resolveDataElementOptions(l+o).radius);return a}parseObjectData(t,i,o,r){const a=super.parseObjectData(t,i,o,r);for(let l=0;l<a.length;l++){const c=i[o+l];a[l]._custom=T(c&&c.r&&+c.r,this.resolveDataElementOptions(l+o).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let i=0;for(let o=t.length-1;o>=0;--o)i=Math.max(i,t[o].size(this.resolveDataElementOptions(o))/2);return i>0&&i}getLabelAndValue(t){const i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:r,yScale:a}=i,l=this.getParsed(t),c=r.getLabelForValue(l.x),d=a.getLabelForValue(l.y),p=l._custom;return{label:o[t]||"",value:"("+c+", "+d+(p?", "+p:"")+")"}}update(t){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,o,r){const a="reset"===r,{iScale:l,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(i,r),h=l.axis,g=c.axis;for(let u=i;u<i+o;u++){const m=t[u],f=!a&&this.getParsed(u),_={},b=_[h]=a?l.getPixelForDecimal(.5):l.getPixelForValue(f[h]),v=_[g]=a?c.getBasePixel():c.getPixelForValue(f[g]);_.skip=isNaN(b)||isNaN(v),p&&(_.options=d||this.resolveDataElementOptions(u,m.active?"active":r),a&&(_.options.radius=0)),this.updateElement(m,u,_,r)}}resolveDataElementOptions(t,i){const o=this.getParsed(t);let r=super.resolveDataElementOptions(t,i);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const a=r.radius;return"active"!==i&&(r.radius=0),r.radius+=T(o&&o._custom,a),r}})(),go=(()=>class e extends ne{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:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:o,color:r}}=t.legend.options;return i.labels.map((a,l)=>{const d=t.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:r,lineWidth:d.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(l),index:l}})}return[]}},onClick(t,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}}};constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){const o=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=o;else{let l,c,a=d=>+o[d];if(E(o[t])){const{key:d="value"}=this._parsing;a=p=>+Jt(o[p],d)}for(l=t,c=t+i;l<c;++l)r._parsed[l]=a(l)}}_getRotation(){return Pt(this.options.rotation-90)}_getCircumference(){return Pt(this.options.circumference)}_getRotationExtents(){let t=z,i=-z;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const r=this.chart.getDatasetMeta(o).controller,a=r._getRotation(),l=r._getCircumference();t=Math.min(t,a),i=Math.max(i,a+l)}return{rotation:t,circumference:i-t}}update(t){const i=this.chart,{chartArea:o}=i,r=this._cachedMeta,a=r.data,l=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-l)/2,0),d=Math.min(((e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/n)(this.options.cutout,c),1),p=this._getRingWeight(this.index),{circumference:h,rotation:g}=this._getRotationExtents(),{ratioX:u,ratioY:m,offsetX:f,offsetY:_}=function $u(e,n,t){let i=1,o=1,r=0,a=0;if(n<z){const l=e,c=l+n,d=Math.cos(l),p=Math.sin(l),h=Math.cos(c),g=Math.sin(c),u=(C,w,x)=>Cn(C,l,c,!0)?1:Math.max(w,w*t,x,x*t),m=(C,w,x)=>Cn(C,l,c,!0)?-1:Math.min(w,w*t,x,x*t),f=u(0,d,h),_=u(Q,p,g),b=m(F,d,h),v=m(F+Q,p,g);i=(f-b)/2,o=(_-v)/2,r=-(f+b)/2,a=-(_+v)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:a}}(g,h,d),C=Math.max(Math.min((o.width-l)/u,(o.height-l)/m)/2,0),w=xa(this.options.radius,C),y=(w-Math.max(w*d,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*w,this.offsetY=_*w,r.total=this.calculateTotal(),this.outerRadius=w-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*p,0),this.updateElements(a,0,a.length,t)}_circumference(t,i){const o=this.options,r=this._cachedMeta,a=this._getCircumference();return i&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/z)}updateElements(t,i,o,r){const a="reset"===r,l=this.chart,c=l.chartArea,h=(c.left+c.right)/2,g=(c.top+c.bottom)/2,u=a&&l.options.animation.animateScale,m=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:_,includeOptions:b}=this._getSharedOptions(i,r);let C,v=this._getRotation();for(C=0;C<i;++C)v+=this._circumference(C,a);for(C=i;C<i+o;++C){const w=this._circumference(C,a),x=t[C],y={x:h+this.offsetX,y:g+this.offsetY,startAngle:v,endAngle:v+w,circumference:w,outerRadius:f,innerRadius:m};b&&(y.options=_||this.resolveDataElementOptions(C,x.active?"active":r)),v+=w,this.updateElement(x,C,y,r)}}calculateTotal(){const t=this._cachedMeta,i=t.data;let r,o=0;for(r=0;r<i.length;r++){const a=t._parsed[r];null!==a&&!isNaN(a)&&this.chart.getDataVisibility(r)&&!i[r].hidden&&(o+=Math.abs(a))}return o}calculateCircumference(t){const i=this._cachedMeta.total;return i>0&&!isNaN(t)?z*(Math.abs(t)/i):0}getLabelAndValue(t){const o=this.chart,r=o.data.labels||[],a=kn(this._cachedMeta._parsed[t],o.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let i=0;const o=this.chart;let r,a,l,c,d;if(!t)for(r=0,a=o.data.datasets.length;r<a;++r)if(o.isDatasetVisible(r)){l=o.getDatasetMeta(r),t=l.data,c=l.controller;break}if(!t)return 0;for(r=0,a=t.length;r<a;++r)d=c.resolveDataElementOptions(r),"inner"!==d.borderAlign&&(i=Math.max(i,d.borderWidth||0,d.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let o=0,r=t.length;o<r;++o){const a=this.resolveDataElementOptions(o);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let o=0;o<t;++o)this.chart.isDatasetVisible(o)&&(i+=this._getRingWeight(o));return i}_getRingWeight(t){return Math.max(T(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})(),Vu=(()=>class e extends ne{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(t){const i=this._cachedMeta,{dataset:o,data:r=[],_dataset:a}=i,l=this.chart._animationsDisabled;let{start:c,count:d}=Fa(i,r,l);this._drawStart=c,this._drawCount=d,La(i)&&(c=0,d=r.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=r;const p=this.resolveDatasetElementOptions(t);this.options.showLine||(p.borderWidth=0),p.segment=this.options.segment,this.updateElement(o,void 0,{animated:!l,options:p},t),this.updateElements(r,c,d,t)}updateElements(t,i,o,r){const a="reset"===r,{iScale:l,vScale:c,_stacked:d,_dataset:p}=this._cachedMeta,{sharedOptions:h,includeOptions:g}=this._getSharedOptions(i,r),u=l.axis,m=c.axis,{spanGaps:f,segment:_}=this.options,b=He(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||"none"===r,C=i+o,w=t.length;let x=i>0&&this.getParsed(i-1);for(let y=0;y<w;++y){const O=t[y],P=v?O:{};if(y<i||y>
1=C){P.skip=!0;continue}const M=this.getParsed(y),S=I(M[m]),N=P[u]=l.getPixelForValue(M[u],y),A=P[m]=a||S?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,M,d):M[m],y);P.skip=isNaN(N)||isNaN(A)||S,P.stop=y>0&&Math.abs(M[u]-x[u])>b,_&&(P.parsed=M,P.raw=p.data[y]),g&&(P.options=h||this.resolveDataElementOptions(y,O.active?"active":r)),v||this.updateElement(O,y,P,r),x=M}}getMaxOverflow(){const t=this._cachedMeta,i=t.dataset,o=i.options&&i.options.borderWidth||0,r=t.data||[];if(!r.length)return o;const a=r[0].size(this.resolveDataElementOptions(0)),l=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,a,l)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}})(),kl=(()=>class e extends ne{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(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:o,color:r}}=t.legend.options;return i.labels.map((a,l)=>{const d=t.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:r,lineWidth:d.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(l),index:l}})}return[]}},onClick(t,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(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const o=this.chart,r=o.data.labels||[],a=kn(this._cachedMeta._parsed[t].r,o.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,i,o,r){return Za.bind(this)(t,i,o,r)}update(t){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){const i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,r)=>{const a=this.getParsed(r).r;!isNaN(a)&&this.chart.getDataVisibility(r)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){const t=this.chart,i=t.chartArea,o=t.options,r=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(r/2,0),c=(a-Math.max(o.cutoutPercentage?a/100*o.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=a-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(t,i,o,r){const a="reset"===r,l=this.chart,d=l.options.animation,p=this._cachedMeta.rScale,h=p.xCenter,g=p.yCenter,u=p.getIndexAngle(0)-.5*F;let f,m=u;const _=360/this.countVisibleElements();for(f=0;f<i;++f)m+=this._computeAngle(f,r,_);for(f=i;f<i+o;f++){const b=t[f];let v=m,C=m+this._computeAngle(f,r,_),w=l.getDataVisibility(f)?p.getDistanceFromCenterForValue(this.getParsed(f).r):0;m=C,a&&(d.animateScale&&(w=0),d.animateRotate&&(v=C=u));const x={x:h,y:g,innerRadius:0,outerRadius:w,startAngle:v,endAngle:C,options:this.resolveDataElementOptions(f,b.active?"active":r)};this.updateElement(b,f,x,r)}}countVisibleElements(){let i=0;return this._cachedMeta.data.forEach((o,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&i++}),i}_computeAngle(t,i,o){return this.chart.getDataVisibility(t)?Pt(this.resolveDataElementOptions(t,i).angle||o):0}})();var Yu=Object.freeze({__proto__:null,BarController:ju,BubbleController:Gu,DoughnutController:go,LineController:Vu,PieController:(()=>class e extends go{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),PolarAreaController:kl,RadarController:(()=>class e extends ne{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(t){const i=this._cachedMeta.vScale,o=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(o[i.axis])}}parseObjectData(t,i,o,r){return Za.bind(this)(t,i,o,r)}update(t){const i=this._cachedMeta,o=i.dataset,r=i.data||[],a=i.iScale.getLabels();if(o.points=r,"resize"!==t){const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:a.length===r.length,options:l},t)}this.updateElements(r,0,r.length,t)}updateElements(t,i,o,r){const a=this._cachedMeta.rScale,l="reset"===r;for(let c=i;c<i+o;c++){const d=t[c],p=this.resolveDataElementOptions(c,d.active?"active":r),h=a.getPointPositionForValue(c,this.getParsed(c).r),g=l?a.xCenter:h.x,u=l?a.yCe
1nter:h.y,m={x:g,y:u,angle:h.angle,skip:isNaN(g)||isNaN(u),options:p};this.updateElement(d,c,m,r)}}})(),ScatterController:(()=>class e extends ne{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(t){const i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:r,yScale:a}=i,l=this.getParsed(t),c=r.getLabelForValue(l.x),d=a.getLabelForValue(l.y);return{label:o[t]||"",value:"("+c+", "+d+")"}}update(t){const i=this._cachedMeta,{data:o=[]}=i,r=this.chart._animationsDisabled;let{start:a,count:l}=Fa(i,o,r);if(this._drawStart=a,this._drawCount=l,La(i)&&(a=0,l=o.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=i;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=o;const p=this.resolveDatasetElementOptions(t);p.segment=this.options.segment,this.updateElement(c,void 0,{animated:!r,options:p},t)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(o,a,l,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,i,o,r){const a="reset"===r,{iScale:l,vScale:c,_stacked:d,_dataset:p}=this._cachedMeta,h=this.resolveDataElementOptions(i,r),g=this.getSharedOptions(h),u=this.includeOptions(r,g),m=l.axis,f=c.axis,{spanGaps:_,segment:b}=this.options,v=He(_)?_:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||a||"none"===r;let w=i>0&&this.getParsed(i-1);for(let x=i;x<i+o;++x){const y=t[x],O=this.getParsed(x),P=C?y:{},M=I(O[f]),S=P[m]=l.getPixelForValue(O[m],x),N=P[f]=a||M?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,O,d):O[f],x);P.skip=isNaN(S)||isNaN(N)||M,P.stop=x>0&&Math.abs(O[m]-w[m])>v,b&&(P.parsed=O,P.raw=p.data[x]),u&&(P.options=g||this.resolveDataElementOptions(x,y.active?"active":r)),C||this.updateElement(y,x,P,r),w=O}this.updateSharedOptions(g,r,h)}getMaxOverflow(){const t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let c=0;for(let d=i.length-1;d>=0;--d)c=Math.max(c,i[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const o=t.dataset,r=o.options&&o.options.borderWidth||0;if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),l=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,l)/2}})()});function ve(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class uo{static override(n){Object.assign(uo.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return ve()}parse(){return ve()}format(){return ve()}add(){return ve()}diff(){return ve()}startOf(){return ve()}endOf(){return ve()}}var zu__date=uo;function Hu(e,n,t,i){const{controller:o,data:r,_sorted:a}=e,l=o._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(l&&n===l.axis&&"r"!==n&&a&&r.length){const d=l._reversePixels?dg:Vt;if(!i){const p=d(r,n,t);if(c){const{vScale:h}=o._cachedMeta,{_parsed:g}=e,u=g.slice(0,p.lo+1).reverse().findIndex(f=>!I(f[h.axis]));p.lo-=Math.max(0,u);const m=g.slice(p.hi).findIndex(f=>!I(f[h.axis]));p.hi+=Math.max(0,m)}return p}if(o._sharedOptions){const p=r[0],h="function"==typeof p.getRange&&p.getRange(n);if(h){const g=d(r,n,t-h),u=d(r,n,t+h);return{lo:g.lo,hi:u.hi}}}}return{lo:0,hi:r.length-1}}function Tn(e,n,t,i,o){const r=e.getSortedVisibleDatasetMetas(),a=t[n];for(let l=0,c=r.length;l<c;++l){const{index:d,data:p}=r[l],{lo:h,hi:g}=Hu(r[l],n,a,o);for(let u=h;u<=g;++u){const m=p[u];m.skip||i(m,d,u)}}}function fo(e,n,t,i,o){const r=[];return!o&&!e.isPointInArea(n)||Tn(e,t,n,function(l,c,d){!o&&!Yt(l,e.chartArea,0)||l.inRange(n.x,n.y,i)&&r.push({element:l,datasetIndex:c,index:d})},!0),r}function mo(e,n,t,i,o,r){return r||e.isPointInArea(n)?"r"!==t||i?function Uu(e,n,t,i,o,r){let a=[];const l=function Xu(e){const n=-1!==e.indexOf("x"),t=-1!==e.indexOf("y");return function(i,o){const r=n?Math.abs(i.x-o.x):0,a=t?Math.abs(i.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}(t);let c=Number.POSITIVE_INFINITY;return Tn(e,t,n,function d(p,h,g){const u=p.inRange(n.x,n.y,o);if(i&&!u)return;const m=p.getCenterPoint(o);if(!r&&!e.isPointInArea(m)&&!u)return;const _=l(n,m);_<c?(a=[{element:p,datasetIndex:h,index:g}],c=_):_===c&&a.push({element:p,datasetIndex:h,index:g})}),a}(e,n,t,i,o,r):function Wu(e,n,t,i){let o=[];return Tn(e,t,n,function r(a,l,c){const{startAngle:d,endAngle:p}=a.getProps(["startAngle","endAngle"],i),{angle:h}=Na(a,{x:n.x,y:n.y});Cn(h,d,p)&&o.push({element:a,datasetIndex:l,index:c})}),o}(e,n,t,o):[]}function Pl(e,n,t,i,o){const r=[],a="x"===t?"inXRange":"inYRange";let l=!1;return Tn(e,t,n,(c,d,p)=>{c[a]&&c[a](n[t],o)&&(r.push({element:c,datasetIndex:d,index:p}),l=l||c.inRange(n.x,n.y,o))}),i&&!l?[]:r}var qu={evaluateInteractionItems:Tn,modes:{index(e,n,t,i){const o=_e(n,e),r=t.axis||"x",a=t.includeInvisible||!1,l=t.intersect?fo(e,o,r,i,a):mo(e,o,r,!1,i,a),c=[];
1return l.length?(e.getSortedVisibleDatasetMetas().forEach(d=>{const p=l[0].index,h=d.data[p];h&&!h.skip&&c.push({element:h,datasetIndex:d.index,index:p})}),c):[]},dataset(e,n,t,i){const o=_e(n,e),r=t.axis||"xy",a=t.includeInvisible||!1;let l=t.intersect?fo(e,o,r,i,a):mo(e,o,r,!1,i,a);if(l.length>0){const c=l[0].datasetIndex,d=e.getDatasetMeta(c).data;l=[];for(let p=0;p<d.length;++p)l.push({element:d[p],datasetIndex:c,index:p})}return l},point:(e,n,t,i)=>fo(e,_e(n,e),t.axis||"xy",i,t.includeInvisible||!1),nearest:(e,n,t,i)=>mo(e,_e(n,e),t.axis||"xy",t.intersect,i,t.includeInvisible||!1),x:(e,n,t,i)=>Pl(e,_e(n,e),"x",t.intersect,i),y:(e,n,t,i)=>Pl(e,_e(n,e),"y",t.intersect,i)}};const Ol=["left","top","right","bottom"];function Dn(e,n){return e.filter(t=>t.pos===n)}function Ml(e,n){return e.filter(t=>-1===Ol.indexOf(t.pos)&&t.box.axis===n)}function Nn(e,n){return e.sort((t,i)=>{const o=n?i:t,r=n?t:i;return o.weight===r.weight?o.index-r.index:o.weight-r.weight})}function Sl(e,n,t,i){return Math.max(e[t],n[t])+Math.max(e[i],n[i])}function Tl(e,n){e.top=Math.max(e.top,n.top),e.left=Math.max(e.left,n.left),e.bottom=Math.max(e.bottom,n.bottom),e.right=Math.max(e.right,n.right)}function tf(e,n,t,i){const{pos:o,box:r}=t,a=e.maxPadding;if(!E(o)){t.size&&(e[o]-=t.size);const h=i[t.stack]||{size:0,count:1};h.size=Math.max(h.size,t.horizontal?r.height:r.width),t.size=h.size/h.count,e[o]+=t.size}r.getPadding&&Tl(a,r.getPadding());const l=Math.max(0,n.outerWidth-Sl(a,e,"left","right")),c=Math.max(0,n.outerHeight-Sl(a,e,"top","bottom")),d=l!==e.w,p=c!==e.h;return e.w=l,e.h=c,t.horizontal?{same:d,other:p}:{same:p,other:d}}function nf(e,n){const t=n.maxPadding;return function i(o){const r={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{r[a]=Math.max(n[a],t[a])}),r}(e?["left","right"]:["top","bottom"])}function In(e,n,t,i){const o=[];let r,a,l,c,d,p;for(r=0,a=e.length,d=0;r<a;++r){l=e[r],c=l.box,c.update(l.width||n.w,l.height||n.h,nf(l.horizontal,n));const{same:h,other:g}=tf(n,t,l,i);d|=h&&o.length,p=p||g,c.fullSize||o.push(l)}return d&&In(o,n,t,i)||p}function Ni(e,n,t,i,o){e.top=t,e.left=n,e.right=n+i,e.bottom=t+o,e.width=i,e.height=o}function Dl(e,n,t,i){const o=t.padding;let{x:r,y:a}=n;for(const l of e){const c=l.box,d=i[l.stack]||{count:1,placed:0,weight:1},p=l.stackWeight/d.weight||1;if(l.horizontal){const h=n.w*p,g=d.size||c.height;wn(d.start)&&(a=d.start),c.fullSize?Ni(c,o.left,a,t.outerWidth-o.right-o.left,g):Ni(c,n.left+d.placed,a,h,g),d.start=a,d.placed+=h,a=c.bottom}else{const h=n.h*p,g=d.size||c.width;wn(d.start)&&(r=d.start),c.fullSize?Ni(c,r,o.top,g,t.outerHeight-o.bottom-o.top):Ni(c,r,n.top+d.placed,g,h),d.start=r,d.placed+=h,r=c.right}}n.x=r,n.y=a}var ct={addBox(e,n){e.boxes||(e.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(t){n.draw(t)}}]},e.boxes.push(n)},removeBox(e,n){const t=e.boxes?e.boxes.indexOf(n):-1;-1!==t&&e.boxes.splice(t,1)},configure(e,n,t){n.fullSize=t.fullSize,n.position=t.position,n.weight=t.weight},update(e,n,t,i){if(!e)return;const o=lt(e.options.layout.padding),r=Math.max(n-o.width,0),a=Math.max(t-o.height,0),l=function Zu(e){const n=function Ku(e){const n=[];let t,i,o,r,a,l;for(t=0,i=(e||[]).length;t<i;++t)o=e[t],({position:r,options:{stack:a,stackWeight:l=1}}=o),n.push({index:t,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&r+a,stackWeight:l});return n}(e),t=Nn(n.filter(d=>d.box.fullSize),!0),i=Nn(Dn(n,"left"),!0),o=Nn(Dn(n,"right")),r=Nn(Dn(n,"top"),!0),a=Nn(Dn(n,"bottom")),l=Ml(n,"x"),c=Ml(n,"y");return{fullSize:t,leftAndTop:i.concat(r),rightAndBottom:o.concat(c).concat(a).concat(l),chartArea:Dn(n,"chartArea"),vertical:i.concat(o).concat(c),horizontal:r.concat(a).concat(l)}}(e.boxes),c=l.vertical,d=l.horizontal;L(e.boxes,f=>{"function"==typeof f.beforeLayout&&f.beforeLayout()});const p=c.reduce((f,_)=>_.box.options&&!1===_.box.options.display?f:f+1,0)||1,h=Object.freeze({outerWidth:n,outerHeight:t,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/p,hBoxMaxHeight:a/2}),g=Object.assign({},o);Tl(g,lt(i));const u=Object.assign({maxPadding:g,w:r,h:a,x:o.left,y:o.top},o),m=function Ju(e,n){const t=function Qu(e){const n={};for(const t of e){const{stack:i,pos:o,stackWeight:r}=t;if(!i||!Ol.includes(o))continue;const a=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=r}return n}(e),{vBoxMaxWidth:i,hBoxMaxHeight:o}=n;let r,a,l;for(r=0,a=e.length;r<a;++r){l=e[r];const{fullSize:c}=l.box,d=t[l.stack],p=d&&l.stackWeight/d.weight;
1l.horizontal?(l.width=p?p*i:c&&n.availableWidth,l.height=o):(l.width=i,l.height=p?p*o:c&&n.availableHeight)}return t}(c.concat(d),h);In(l.fullSize,u,h,m),In(c,u,h,m),In(d,u,h,m)&&In(c,u,h,m),function ef(e){const n=e.maxPadding;function t(i){const o=Math.max(n[i]-e[i],0);return e[i]+=o,o}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}(u),Dl(l.leftAndTop,u,h,m),u.x+=u.w,u.y+=u.h,Dl(l.rightAndBottom,u,h,m),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},L(l.chartArea,f=>{const _=f.box;Object.assign(_,e.chartArea),_.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}};class Nl{acquireContext(n,t){}releaseContext(n){return!1}addEventListener(n,t,i){}removeEventListener(n,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,t,i,o){return t=Math.max(0,t||n.width),i=i||n.height,{width:t,height:Math.max(0,o?Math.floor(t/o):i)}}isAttached(n){return!0}updateConfig(n){}}class sf extends Nl{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const Ii="$chartjs",rf={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Il=e=>null===e||""===e,Rl=!!iu&&{passive:!0};function cf(e,n,t){e&&e.canvas&&e.canvas.removeEventListener(n,t,Rl)}function Ri(e,n){for(const t of e)if(t===n||t.contains(n))return!0}function pf(e,n,t){const i=e.canvas,o=new MutationObserver(r=>{let a=!1;for(const l of r)a=a||Ri(l.addedNodes,i),a=a&&!Ri(l.removedNodes,i);a&&t()});return o.observe(document,{childList:!0,subtree:!0}),o}function hf(e,n,t){const i=e.canvas,o=new MutationObserver(r=>{let a=!1;for(const l of r)a=a||Ri(l.removedNodes,i),a=a&&!Ri(l.addedNodes,i);a&&t()});return o.observe(document,{childList:!0,subtree:!0}),o}const Rn=new Map;let El=0;function Al(){const e=window.devicePixelRatio;e!==El&&(El=e,Rn.forEach((n,t)=>{t.currentDevicePixelRatio!==e&&n()}))}function ff(e,n,t){const i=e.canvas,o=i&&ao(i);if(!o)return;const r=Ba((l,c)=>{const d=o.clientWidth;t(l,c),d<o.clientWidth&&t()},window),a=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,p=c.contentRect.height;0===d&&0===p||r(d,p)});return a.observe(o),function gf(e,n){Rn.size||window.addEventListener("resize",Al),Rn.set(e,n)}(e,r),a}function _o(e,n,t){t&&t.disconnect(),"resize"===n&&function uf(e){Rn.delete(e),Rn.size||window.removeEventListener("resize",Al)}(e)}function mf(e,n,t){const i=e.canvas,o=Ba(r=>{null!==e.ctx&&t(function df(e,n){const t=rf[e.type]||e.type,{x:i,y:o}=_e(e,n);return{type:t,chart:n,native:e,x:void 0!==i?i:null,y:void 0!==o?o:null}}(r,e))},e);return function lf(e,n,t){e&&e.addEventListener(n,t,Rl)}(i,n,o),o}class _f extends Nl{acquireContext(n,t){const i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(function af(e,n){const t=e.style,i=e.getAttribute("height"),o=e.getAttribute("width");if(e[Ii]={initial:{height:i,width:o,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",Il(o)){const r=nl(e,"width");void 0!==r&&(e.width=r)}if(Il(i))if(""===e.style.height)e.height=e.width/(n||2);else{const r=nl(e,"height");void 0!==r&&(e.height=r)}}(n,t),i):null}releaseContext(n){const t=n.canvas;if(!t[Ii])return!1;const i=t[Ii].initial;["height","width"].forEach(r=>{const a=i[r];I(a)?t.removeAttribute(r):t.setAttribute(r,a)});const o=i.style||{};return Object.keys(o).forEach(r=>{t.style[r]=o[r]}),t.width=t.width,delete t[Ii],!0}addEventListener(n,t,i){this.removeEventListener(n,t),(n.$proxies||(n.$proxies={}))[t]=({attach:pf,detach:hf,resize:ff}[t]||mf)(n,t,i)}removeEventListener(n,t){const i=n.$proxies||(n.$proxies={}),o=i[t];o&&(({attach:_o,detach:_o,resize:_o}[t]||cf)(n,t,o),i[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,t,i,o){return function nu(e,n,t,i){const o=Si(e),r=me(o,"margin"),a=Mi(o.maxWidth,e,"clientWidth")||wi,l=Mi(o.maxHeight,e,"clientHeight")||wi,c=function eu(e,n,t){let i,o;if(void 0===n||void 0===t){const r=e&&ao(e);if(r){const a=r.getBoundingClientRect(),l=Si(r),c=me(l,"border","width"),d=me(l,"padding");n=a.width-d.width-c.width,t=a.height-d.height-c.height,i=Mi(l.maxWidth,r,"clientWidth"),o=Mi(l.maxHeight,r,"clientHeight")}else n=e.clientWidth,t=e.clientHeight}return{width:n,height:t,maxWidth:i||wi,maxHeight:o||wi}}(e,n,t);let{width:d,height:p}=c;if("content-box"===o.boxSizing){const g=me(o,"border","width"),u=me(o,"padding");d-=u.width+g.width,p-=u.height+g.height}return d=Math.max(0,d-r.width),p=Math.max(0,i?d/i:p-r.height),d=Ti(Math.min(d,a,c.maxWidth)),p=Ti(Math.min(p,l,c.maxHeight)),d&&!p&&(p=Ti(d/2)),(void 0!==n||void 0!==t)&&i&&c.height&&p>c.height&&(p=c.height,d=Ti(Math.floor(p*i))),{width:d,height:p}}(n,t,i,o)}isAttached(n){const t=n&&ao(n);return!(!t||!t.isConnected)}}class Ht{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){const{x:t,y:i}=this.getProps(["x","y"],n);return{x:t,y:i}}hasValue(){return He(this.x)&&He(this.y)}getProps(n,t){const i=this.$animations;if(!t||!i)return this;const o={};
vendor: 21,108 bytes, line 1
1return n.forEach(r=>{o[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),o}}function Ei(e,n,t,i,o){const r=T(i,0),a=Math.min(T(o,e.length),e.length);let c,d,p,l=0;for(t=Math.ceil(t),o&&(c=o-i,t=c/Math.floor(c/t)),p=r;p<0;)l++,p=Math.round(r+l*t);for(d=Math.max(r,0);d<a;d++)d===p&&(n.push(e[d]),l++,p=Math.round(r+l*t))}const Bl=(e,n,t)=>"top"===n||"left"===n?e[n]+t:e[n]-t,Fl=(e,n)=>Math.min(n||e,e);function Ll(e,n){const t=[],i=e.length/n,o=e.length;let r=0;for(;r<o;r+=i)t.push(e[Math.floor(r)]);return t}function Of(e,n,t){const i=e.ticks.length,o=Math.min(n,i-1),r=e._startPixel,a=e._endPixel,l=1e-6;let d,c=e.getPixelForTick(o);if(!(t&&(d=1===i?Math.max(c-r,a-c):0===n?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(o-1))/2,c+=o<n?d:-d,c<r-l||c>a+l)))return c}function En(e){return e.drawTicks?e.tickLength:0}function jl(e,n){if(!e.display)return 0;const t=et(e.font,n),i=lt(e.padding);return(Y(e.text)?e.text.length:1)*t.lineHeight+i.height}function Df(e,n,t){let i=Ks(e);return(t&&"right"!==n||!t&&"right"===n)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class we extends Ht{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,t){return n}getUserBounds(){let{_userMin:n,_userMax:t,_suggestedMin:i,_suggestedMax:o}=this;return n=mt(n,Number.POSITIVE_INFINITY),t=mt(t,Number.NEGATIVE_INFINITY),i=mt(i,Number.POSITIVE_INFINITY),o=mt(o,Number.NEGATIVE_INFINITY),{min:mt(n,i),max:mt(t,o),minDefined:q(n),maxDefined:q(t)}}getMinMax(n){let a,{min:t,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:t,max:i};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)a=l[c].controller.getMinMax(this,n),o||(t=Math.min(t,a.min)),r||(i=Math.max(i,a.max));return t=r&&t>i?i:t,i=o&&t>i?t:i,{min:mt(t,mt(i,t)),max:mt(i,mt(t,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const 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(){$(this.options.beforeUpdate,[this])}update(n,t,i){const{beginAtZero:o,grace:r,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=t,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=function Eg(e,n,t){const{min:i,max:o}=e,r=xa(n,(o-i)/2),a=(l,c)=>t&&0===l?0:l+c;return{min:a(i,-Math.abs(r)),max:a(o,r)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?Ll(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function vf(e,n){const t=e.options.ticks,i=function wf(e){const n=e.options.offset,t=e._tickSize();return Math.floor(Math.min(e._length/t+(n?0:1),e._maxLength/t))}(e),o=Math.min(t.maxTicksLimit||i,i),r=t.major.enabled?function Cf(e){const n=[];let t,i;for(t=0,i=e.length;t<i;t++)e[t].major&&n.push(t);return n}(n):[],a=r.length,l=r[0],c=r[a-1],d=[];if(a>o)return function xf(e,n,t,i){let a,o=0,r=t[0];for(i=Math.ceil(i),a=0;a<e.length;a++)a===r&&(n.push(e[a]),o++,r=t[o*i])}(n,d,r,a/o),d;const p=function yf(e,n,t){const i=function kf(e){const n=e.length;let t,i;if(n<2)return!1;for(i=e[0],t=1;t<n;++t)if(e[t]-e[t-1]!==i)return!1;return i}(e),o=n.length/t;if(!i)return Math.max(o,1);const r=function og(e){const n=[],t=Math.sqrt(e);let i;for(i=1;i<t;i++)e%i==0&&(n.push(i),n.push(e/i));return t===(0|t)&&n.push(t),n.sort((o,r)=>o-r).pop(),n}(i);for(let a=0,l=r.length-1;a<l;a++){const c=r[a];if(c>o)return c}return Math.max(o,1)}(r,n,o);if(a>0){let h,g;const u=a>1?Math.round((c-l)/(a-1)):null;for(Ei(n,d,p,I(u)?0:l-u,l),h=0,g=a-1;h<g;h++)Ei(n,d,p,r[h],r[h+1]);return Ei(n,d,p,c,I(u)?n.length:c+u),d}return Ei(n,d,p),d}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,i,n=this.options.reverse;this.isHorizontal()?(t=this.left,i=this.right):(t=this.top,i=this.bottom,n=!n),this._startPixel=t,this._endPixel=i,this._reversePixels=n,this._length=i-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){$(this.options.afterUpdate,[this])}beforeSetDimensions(){$(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(){$(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),$(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){const t=this.options.ticks;let i,o,r;for(i=0,o=n.length;i<o;i++)r=n[i],r.label=$(t.callback,[r.value,i,n],this)}afterTickToLabelConversion(){$(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const n=this.options,t=n.ticks,i=Fl(this.ticks.length,n.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let l,c,d,a=o;if(!this._isVisible()||!t.display||o>=r||i<=1||!this.isHorizontal())return void(this.labelRotation=o);const p=this._getLabelSizes(),h=p.widest.width,g=p.highest.height,u=st(this.chart.width-h,0,this.maxWidth);l=n.offset?this.maxWidth/i:u/(i-1),h+6>l&&(l=u/(i-(n.offset?.5:1)),c=this.maxHeight-En(n.grid)-t.padding-jl(n.title,this.chart.options.font),d=Math.sqrt(h*h+g*g),a=Ws(Math.min(Math.asin(st((p.highest.height+6)/l,-1,1)),Math.asin(st(c/d,-1,1))-Math.asin(st(g/d,-1,1)))),a=Math.max(o,Math.min(r,a))),this.labelRotation=a}afterCalculateLabelRotation(){$(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:t,options:{ticks:i,title:o,grid:r}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=jl(o,t.options.font);if(l?(n.width=this.maxWidth,n.height=En(r)+c):(n.height=this.maxHeight,n.width=En(r)+c),i.display&&this.ticks.length){const{first:d,last:p,widest:h,highest:g}=this._getLabelSizes(),u=2*i.padding,m=Pt(this.labelRotation),f=Math.cos(m),_=Math.sin(m);l?n.height=Math.min(this.maxHeight,n.height+(i.mirror?0:_*h.width+f*g.height)+u):n.width=Math.min(this.maxWidth,n.width+(i.mirror?0:f*h.width+_*g.height)+u),this._calculatePadding(d,p,_,f)}}this._handleMargins(),l?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,t,i,o){const{ticks:{align:r,padding:a},position:l}=this.options,c=0!==this.labelRotation,d="top"!==l&&"x"===this.axis;if(this.isHorizontal()){const p=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,u=0;c?d?(g=o*n.width,u=i*t.height):(g=i*n.height,u=o*t.width):"start"===r?u=t.width:"end"===r?g=n.width:"inner"!==r&&(g=n.width/2,u=t.width/2),this.paddingLeft=Math.max((g-p+a)*this.width/(this.width-p),0),this.paddingRight=Math.max((u-h+a)*this.width/(this.width-h),0)}else{let p=t.height/2,h=n.height/2;"start"===r?(p=0,h=n.height):"end"===r&&(p=t.height,h=0),this.paddingTop=p+a,this.paddingBottom=h+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(){$(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:t}=this.options;return"top"===t||"bottom"===t||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),t=0,i=n.length;t<i;t++)I(n[t].label)&&(n.splice(t,1),i--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=Ll(i,t)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,t,i){const{ctx:o,_longestTextCache:r}=this,a=[],l=[],c=Math.floor(t/Fl(t,i));let h,g,u,m,f,_,b,v,C,w,x,d=0,p=0;for(h=0;h<t;h+=c){if(m=n[h].label,f=this._resolveTickFontOptions(h),o.font=_=f.string,b=r[_]=r[_]||{data:{},gc:[]},v=f.lineHeight,C=w=0,I(m)||Y(m)){if(Y(m))for(g=0,u=m.length;g<u;++g)x=m[g],!I(x)&&!Y(x)&&(C=xi(o,b.data,b.gc,C,x),w+=v)}else C=xi(o,b.data,b.gc,C,m),w=v;a.push(C),l.push(w),d=Math.max(C,d),p=Math.max(w,p)}!function Mf(e,n){L(e,t=>{const i=t.gc,o=i.length/2;let r;if(o>n){for(r=0;r<o;++r)delete t.data[i[r]];i.splice(0,o)}})}(r,t);const y=a.indexOf(d),O=l.indexOf(p),P=M=>({width:a[M]||0,height:l[M]||0});return{first:P(0),last:P(t-1),widest:P(y),highest:P(O),widths:a,heights:l}}getLabelForValue(n){return n}getPixelForValue(n,t){return NaN}getValueForPixel(n){}getPixelForTick(n){const t=this.ticks;return n<0||n>t.length-1?null:this.getPixelForValue(t[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const t=this._startPixel+n*this._length;return function cg(e){return st(e,-32768,32767)}(this._alignToPixels?ge(this.chart,t,0):t)}getDecimalForPixel(n){const t=(n-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:t}=this;return n<0&&t<0?t:n>0&&t>0?n:0}getContext(n){const t=this.ticks||[];if(n>=0&&n<t.length){const i=t[n];return i.$context||(i.$context=function Tf(e,n,t){return ee(e,{tick:t,index:n,type:"tick"})}(this.getContext(),n,i))}return this.$context||(this.$context=function Sf(e,n){return ee(e,{scale:n,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const n=this.options.ticks,t=Pt(this.labelRotation),i=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),a=n.autoSkipPadding||0,l=r?r.widest.width+a:0,c=r?r.highest.height+a:0;return this.isHorizontal()?c*i>l*o?l/i:c/o:c*o<l*i?c/i:l/o}_isVisible(){const n=this.options.display;return"auto"!==n?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){const t=this.axis,i=this.chart,o=this.options,{grid:r,position:a,border:l}=o,c=r.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),g=En(r),u=[],m=l.setContext(this.getContext()),f=m.display?m.width:0,_=f/2,b=function(X){return ge(i,X,f)};let v,C,w,x,y,O,P,M,S,N,A,ot;if("top"===a)v=b(this.bottom),O=this.bottom-g,M=v-_,N=b(n.top)+_,ot=n.bottom;else if("bottom"===a)v=b(this.top),N=n.top,ot=b(n.bottom)-_,O=v+_,M=this.top+g;else if("left"===a)v=b(this.right),y=this.right-g,P=v-_,S=b(n.left)+_,A=n.right;else if("right"===a)v=b(this.left),S=n.left,A=b(n.right)-_,y=v+_,P=this.left+g;else if("x"===t){if("center"===a)v=b((n.top+n.bottom)/2+.5);else if(E(a)){const X=Object.keys(a)[0];v=b(this.chart.scales[X].getPixelForValue(a[X]))}N=n.top,ot=n.bottom,O=v+_,M=O+g}else if("y"===t){if("center"===a)v=b((n.left+n.right)/2);else if(E(a)){const X=Object.keys(a)[0];v=b(this.chart.scales[X].getPixelForValue(a[X]))}y=v-_,P=y-g,S=n.left,A=n.right}const _t=T(o.ticks.maxTicksLimit,h),G=Math.max(1,Math.ceil(h/_t));for(C=0;C<h;C+=G){const X=this.getContext(C),J=r.setContext(X),Mt=l.setContext(X),dt=J.lineWidth,Qe=J.color,Qi=Mt.dash||[],Je=Mt.dashOffset,Gn=J.tickWidth,Me=J.tickColor,$n=J.tickBorderDash||[],Se=J.tickBorderDashOffset;w=Of(this,C,c),void 0!==w&&(x=ge(i,w,dt),d?y=P=S=A=x:O=M=N=ot=x,u.push({tx1:y,ty1:O,tx2:P,ty2:M,x1:S,y1:N,x2:A,y2:ot,width:dt,color:Qe,borderDash:Qi,borderDashOffset:Je,tickWidth:Gn,tickColor:Me,tickBorderDash:$n,tickBorderDashOffset:Se}))}return this._ticksLength=h,this._borderValue=v,u}_computeLabelItems(n){const t=this.axis,i=this.options,{position:o,ticks:r}=i,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:p,mirror:h}=r,g=En(i.grid),u=g+p,m=h?-p:u,f=-Pt(this.labelRotation),_=[];let b,v,C,w,x,y,O,P,M,S,N,A,ot="middle";if("top"===o)y=this.bottom-m,O=this._getXAxisLabelAlignment();else if("bottom"===o)y=this.top+m,O=this._getXAxisLabelAlignment();else if("left"===o){const G=this._getYAxisLabelAlignment(g);O=G.textAlign,x=G.x}else if("right"===o){const G=this._getYAxisLabelAlignment(g);O=G.textAlign,x=G.x}else if("x"===t){if("center"===o)y=(n.top+n.bottom)/2+u;else if(E(o)){const G=Object.keys(o)[0];y=this.chart.scales[G].getPixelForValue(o[G])+u}O=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(n.left+n.right)/2-u;else if(E(o)){const G=Object.keys(o)[0];x=this.chart.scales[G].getPixelForValue(o[G])}O=this._getYAxisLabelAlignment(g).textAlign}"y"===t&&("start"===c?ot="top":"end"===c&&(ot="bottom"));const _t=this._getLabelSizes();for(b=0,v=l.length;b<v;++b){C=l[b],w=C.label;const G=r.setContext(this.getContext(b));P=this.getPixelForTick(b)+r.labelOffset,M=this._resolveTickFontOptions(b),S=M.lineHeight,N=Y(w)?w.length:1;const X=N/2,J=G.color,Mt=G.textStrokeColor,dt=G.textStrokeWidth;let Qi,Qe=O;if(a?(x=P,"inner"===O&&(Qe=b===v-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),A="top"===o?"near"===d||0!==f?-N*S+S/2:"center"===d?-_t.highest.height/2-X*S+S:S/2-_t.highest.height:"near"===d||0!==f?S/2:"center"===d?_t.highest.height/2-X*S:_t.highest.height-N*S,h&&(A*=-1),0!==f&&!G.showLabelBackdrop&&(x+=S/2*Math.sin(f))):(y=P,A=(1-N)*S/2),G.showLabelBackdrop){const Je=lt(G.backdropPadding),Gn=_t.heights[b],Me=_t.widths[b];let $n=A-Je.top,Se=0-Je.left;switch(ot){case"middle":$n-=Gn/2;break;case"bottom":$n-=Gn}switch(O){case"center":Se-=Me/2;break;case"right":Se-=Me;break;case"inner":b===v-1?Se-=Me:b>0&&(Se-=Me/2)}Qi={left:Se,top:$n,width:Me+Je.width,height:Gn+Je.height,color:G.backdropColor}}_.push({label:w,font:M,textOffset:A,options:{rotation:f,color:J,strokeColor:Mt,strokeWidth:dt,textAlign:Qe,textBaseline:ot,translation:[x,y],backdrop:Qi}})}return _}_getXAxisLabelAlignment(){const{position:n,ticks:t}=this.options;if(-Pt(this.labelRotation))return"top"===n?"left":"right";let o="center";return"start"===t.align?o="left":"end"===t.align?o="right":"inner"===t.align&&(o="inner"),o}_getYAxisLabelAlignment(n){const{position:t,ticks:{crossAlign:i,mirror:o,padding:r}}=this.options,l=n+r,c=this._getLabelSizes().widest.width;let d,p;return"left"===t?o?(p=this.right+r,"near"===i?d="left":"center"===i?(d="center",p+=c/2):(d="right",p+=c)):(p=this.right-l,"near"===i?d="right":"center"===i?(d="center",p-=c/2):(d="left",p=this.left)):"right"===t?o?(p=this.left+r,"near"===i?d="right":"center"===i?(d="center",p-=c/2):(d="left",p-=c)):(p=this.left+l,"near"===i?d="left":"center"===i?(d="center",p+=c/2):(d="right",p=this.right)):d="right",{textAlign:d,x:p}}_computeLabelArea(){if(this.options.ticks.mirror)return;const n=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:n.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:n.width}:void 0}drawBackground(){const{ctx:n,options:{backgroundColor:t},left:i,top:o,width:r,height:a}=this;t&&(n.save(),n.fillStyle=t,n.fillRect(i,o,r,a),n.restore())}getLineWidthForValue(n){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const o=this.ticks.findIndex(r=>r.value===n);return o>=0?t.setContext(this.getContext(o)).lineWidth:0}drawGrid(n){const t=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n));let r,a;const l=(c,d,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(c.x,c.y),i.lineTo(d.x,d.y),i.stroke(),i.restore())};if(t.display)for(r=0,a=o.length;r<a;++r){const c=o[r];t.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),t.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:n,ctx:t,options:{border:i,grid:o}}=this,r=i.setContext(this.getContext()),a=i.display?r.width:0;if(!a)return;const l=o.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,p,h,g;this.isHorizontal()?(d=ge(n,this.left,a)-a/2,p=ge(n,this.right,l)+l/2,h=g=c):(h=ge(n,this.top,a)-a/2,g=ge(n,this.bottom,l)+l/2,d=p=c),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(d,h),t.lineTo(p,g),t.stroke(),t.restore()}drawLabels(n){if(!this.options.ticks.display)return;const i=this.ctx,o=this._computeLabelArea();o&&ki(i,o);const r=this.getLabelItems(n);for(const a of r)ue(i,a.label,0,a.textOffset,a.font,a.options);o&&Pi(i)}drawTitle(){const{ctx:n,options:{position:t,title:i,reverse:o}}=this;if(!i.display)return;const r=et(i.font),a=lt(i.padding),l=i.align;let c=r.lineHeight/2;"bottom"===t||"center"===t||E(t)?(c+=a.bottom,Y(i.text)&&(c+=r.lineHeight*(i.text.length-1))):c+=a.top;const{titleX:d,titleY:p,maxWidth:h,rotation:g}=function Nf(e,n,t,i){const{top:o,left:r,bottom:a,right:l,chart:c}=e,{chartArea:d,scales:p}=c;let g,u,m,h=0;const f=a-o,_=l-r;if(e.isHorizontal()){if(u=at(i,r,l),E(t)){const b=Object.keys(t)[0];m=p[b].getPixelForValue(t[b])+f-n}else m="center"===t?(d.bottom+d.top)/2+f-n:Bl(e,t,n);g=l-r}else{if(E(t)){const b=Object.keys(t)[0];u=p[b].getPixelForValue(t[b])-_+n}else u="center"===t?(d.left+d.right)/2-_+n:Bl(e,t,n);m=at(i,a,o),h="left"===t?-Q:Q}return{titleX:u,titleY:m,maxWidth:g,rotation:h}}(this,c,t,l);ue(n,i.text,0,0,r,{color:i.color,maxWidth:h,rotation:g,textAlign:Df(l,t,o),textBaseline:"middle",translation:[d,p]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){const n=this.options,t=n.ticks&&n.ticks.z||0,i=T(n.grid&&n.grid.z,-1),o=T(n.border&&n.border.z,0);return this._isVisible()&&this.draw===we.prototype.draw?[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:r=>{this.drawLabels(r)}}]:[{z:t,draw:r=>{this.draw(r)}}]}getMatchingVisibleMetas(n){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let r,a;for(r=0,a=t.length;r<a;++r){const l=t[r];l[i]===this.id&&(!n||l.type===n)&&o.push(l)}return o}_resolveTickFontOptions(n){return et(this.options.ticks.setContext(this.getContext(n)).font)}_maxDigits(){const n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}}class Ai{constructor(n,t,i){this.type=n,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){const t=Object.getPrototypeOf(n);let i;(function Ef(e){return"id"in e&&"defaults"in e})(t)&&(i=this.register(t));const o=this.items,r=n.id,a=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+n);return r in o||(o[r]=n,function If(e,n,t){const i=bn(Object.create(null),[t?H.get(t):{},H.get(n),e.defaults]);H.set(n,i),e.defaultRoutes&&function Rf(e,n){Object.keys(n).forEac
1h(t=>{const i=t.split("."),o=i.pop(),r=[e].concat(i).join("."),a=n[t].split("."),l=a.pop(),c=a.join(".");H.route(r,o,c,l)})}(n,e.defaultRoutes),e.descriptors&&H.describe(n,e.descriptors)}(n,a,i),this.override&&H.override(n.id,n.overrides)),a}get(n){return this.items[n]}unregister(n){const t=this.items,i=n.id,o=this.scope;i in t&&delete t[i],o&&i in H[o]&&(delete H[o][i],this.override&&delete he[i])}}class Af{constructor(){this.controllers=new Ai(ne,"datasets",!0),this.elements=new Ai(Ht,"elements"),this.plugins=new Ai(Object,"plugins"),this.scales=new Ai(we,"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,t,i){[...t].forEach(o=>{const r=i||this._getRegistryForType(o);i||r.isForType(o)||r===this.plugins&&o.id?this._exec(n,r,o):L(o,a=>{const l=i||this._getRegistryForType(a);this._exec(n,l,a)})})}_exec(n,t,i){const o=Xs(n);$(i["before"+o],[],i),t[n](i),$(i["after"+o],[],i)}_getRegistryForType(n){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(n))return i}return this.plugins}_get(n,t,i){const o=t.get(n);if(void 0===o)throw new Error('"'+n+'" is not a registered '+i+".");return o}}var It=new Af;class Bf{constructor(){this._init=[]}notify(n,t,i,o){"beforeInit"===t&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));const r=o?this._descriptors(n).filter(o):this._descriptors(n),a=this._notify(r,n,t,i);return"afterDestroy"===t&&(this._notify(r,n,"stop"),this._notify(this._init,n,"uninstall")),a}_notify(n,t,i,o){o=o||{};for(const r of n){const a=r.plugin;if(!1===$(a[i],[t,o,r.options],a)&&o.cancelable)return!1}return!0}invalidate(){I(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),t}_createDescriptors(n,t){const i=n&&n.config,o=T(i.options&&i.options.plugins,{}),r=function Ff(e){const n={},t=[],i=Object.keys(It.plugins.items);for(let r=0;r<i.length;r++)t.push(It.getPlugin(i[r]));const o=e.plugins||[];for(let r=0;r<o.length;r++){const a=o[r];-1===t.indexOf(a)&&(t.push(a),n[a.id]=!0)}return{plugins:t,localIds:n}}(i);return!1!==o||t?function jf(e,{plugins:n,localIds:t},i,o){const r=[],a=e.getContext();for(const l of n){const c=l.id,d=Lf(i[c],o);null!==d&&r.push({plugin:l,options:Gf(e.config,{plugin:l,local:t[c]},d,a)})}return r}(n,r,o,t):[]}_notifyStateChanges(n){const t=this._oldCache||[],i=this._cache,o=(r,a)=>r.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(o(t,i),n,"stop"),this._notify(o(i,t),n,"start")}}function Lf(e,n){return n||!1!==e?!0===e?{}:e:null}function Gf(e,{plugin:n,local:t},i,o){const r=e.pluginScopeKeys(n),a=e.getOptionScopes(i,r);return t&&n.defaults&&a.push(n.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function bo(e,n){return((n.datasets||{})[e]||{}).indexAxis||n.indexAxis||(H.datasets[e]||{}).indexAxis||"x"}function Gl(e){if("x"===e||"y"===e||"r"===e)return e}
1function Yf(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function vo(e,...n){if(Gl(e))return e;for(const t of n){const i=t.axis||Yf(t.position)||e.length>1&&Gl(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function $l(e,n,t){if(t[n+"AxisID"]===e)return{axis:n}}function Vl(e){const n=e.options||(e.options={});n.plugins=T(n.plugins,{}),n.scales=function Hf(e,n){const t=he[e.type]||{scales:{}},i=n.scales||{},o=bo(e.type,n),r=Object.create(null);return Object.keys(i).forEach(a=>{const l=i[a];if(!E(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=vo(a,l,function zf(e,n){if(n.data&&n.data.datasets){const t=n.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(t.length)return $l(e,"x",t[0])||$l(e,"y",t[0])}return{}}(a,e),H.scales[l.type]),d=function Vf(e,n){return e===n?"_index_":"_value_"}(c,o),p=t.scales||{};r[a]=vn(Object.create(null),[{axis:c},l,p[c],p[d]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,c=a.indexAxis||bo(l,n),p=(he[l]||{}).scales||{};Object.keys(p).forEach(h=>{const g=function $f(e,n){let t=e;return"_index_"===e?t=n:"_value_"===e&&(t="x"===n?"y":"x"),t}(h,c),u=a[g+"AxisID"]||g;r[u]=r[u]||Object.create(null),vn(r[u],[{axis:g},i[u],p[h]])})}),Object.keys(r).forEach(a=>{const l=r[a];vn(l,[H.scales[l.type],H.scale])}),r}(e,n)}function Yl(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const zl=new Map,Hl=new Set;function Bi(e,n){let t=zl.get(e);return t||(t=n(),zl.set(e,t),Hl.add(t)),t}const An=(e,n,t)=>{const i=Jt(n,t);void 0!==i&&e.add(i)};class Wf{constructor(n){this._config=function Xf(e){return(e=e||{}).data=Yl(e.data),Vl(e),e}(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=Yl(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){const n=this._config;this.clearCache(),Vl(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Bi(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,t){return Bi(`${n}.transition.${t}`,()=>[[`datasets.${n}.transitions.${t}`,`transitions.${t}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,t){return Bi(`${n}-${t}`,()=>[[`datasets.${n}.elements.${t}`,`datasets.${n}`,`elements.${t}`,""]])}pluginScopeKeys(n){const t=n.id;return Bi(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,t){const i=this._scopeCache;let o=i.get(n);return(!o||t)&&(o=new Map,i.set(n,o)),o}getOptionScopes(n,t,i){const{options:o,type:r}=this,a=this._cachedScopes(n,i),l=a.get(t);if(l)return l;const c=new Set;t.forEach(p=>{n&&(c.add(n),p.forEach(h=>An(c,n,h))),p.forEach(h=>An(c,o,h)),p.forEach(h=>An(c,he[r]||{},h)),p.forEach(h=>An(c,H,h)),p.forEach(h=>An(c,Zs,h))});const d=Array.from(c);return 0===d.length&&d.push(Object.create(null)),Hl.has(t)&&a.set(t,d),d}chartOptionScopes(){const{options:n,type:t}=this;return[n,he[t]||{},H.datasets[t]||{},{type:t},H,Zs]}resolveNamedOptions(n,t,i,o=[""]){const r={$shared:!0},{resolver:a,subPrefixes:l}=Xl(this._resolverCache,n,o);let c=a;(function qf(e,n){const{isScriptable:t,isIndexable:i}=Wa(e);for(const o of n){const r=t(o),a=i(o),l=(a||r)&&e[o];if(r&&(Zt(l)||Uf(l))||a&&Y(l))return!0}return!1})(a,t)&&(r.$shared=!1,c=Xe(a,i=Zt(i)?i():i,this.createResolver(n,i,l)));for(const d of t)r[d]=c[d];return r}createResolver(n,t,i=[""],o){const{resolver:r}=Xl(this._resolverCache,n,i);return E(t)?Xe(r,t,void 0,o):r}}function Xl(e,n,t){let i=e.get(n);i||(i=new Map,e.set(n,i));const o=t.join();let r=i.get(o);return r||(r={resolver:io(n,t),subPrefixes:t.filter(l=>!l.toLowerCase().includes("hover"))},i.set(o,r)),r}const Uf=e=>E(e)&&Object.getOwnPropertyNames(e).some(n=>Zt(e[n])),Qf=["top","bottom","left","right","chartArea"];function Wl(e,n){return"top"===e||"bottom"===e||-1===Qf.indexOf(e)&&"x"===n}function Ul(e,n){return function(t,i){return t[e]===i[e]?t[n]-i[n]:t[e]-i[e]}}function ql(e){const n=e.chart,t=n.options.animation;n.notifyPlugins("afterRender"),$(t&&t.onComplete,[e],n)}function Jf(e){const n=e.chart,t=n.options.animation;$(t&&t.onProgress,[e],n)}function Kl(e){return ro()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Fi={},Ql=e=>{const n=Kl(e);return Object.values(Fi).filter(t=>t.canvas===n).pop()};function Zf(e,n,t){const i=Object.keys(e);for(const o of i){const r=+o;if(r>=n){const a=e[o];delete e[o],(t>0||r>n)&&(e[r+t]=a)}}}let wo=(()=>class e{static defaults=H;static instances=Fi;static overrides=he;static registry=It;static version="4.5.0";static getChart=Ql;static register(...t){It.add(...t),Jl()}static unregister(...t){It.remove(...t),Jl()}constructor(t,i){const o=this.config=new Wf(i),r=Kl(t),a=Ql(r);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.");const l=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||function bf(e){return!ro()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?sf:_f}(r)),this.platform.updateConfig(o);const c=this.platform.acquireContext(r,l.aspectRatio),d=c&&c.canvas,p=d&&d.height,h=d&&d.width;this.id=Kh(),this.ctx=c,this.canvas=d,this.width=h,this.height=p,this._options=l,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 Bf,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function gg(e,n){let t;return function(...i){return n?(clearTimeout(t),t=setTimeout(e,n,i)
1):e.apply(this,i),n}}(g=>this.update(g),l.resizeDelay||0),this._dataChanges=[],Fi[this.id]=this,c&&d?(zt.listen(this,"complete",ql),zt.listen(this,"progress",Jf),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:i},width:o,height:r,_aspectRatio:a}=this;return I(t)?i&&a?a:r?o/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return It}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():el(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return za(this.canvas,this.ctx),this}stop(){return zt.stop(this),this}resize(t,i){zt.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){const o=this.options,l=this.platform.getMaximumSize(this.canvas,t,i,o.maintainAspectRatio&&this.aspectRatio),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=l.width,this.height=l.height,this._aspectRatio=this.aspectRatio,el(this,c,!0)&&(this.notifyPlugins("resize",{size:l}),$(o.onResize,[this,l],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){L(this.options.scales||{},(o,r)=>{o.id=r})}buildOrUpdateScales(){const t=this.options,i=t.scales,o=this.scales,r=Object.keys(o).reduce((l,c)=>(l[c]=!1,l),{});let a=[];i&&(a=a.concat(Object.keys(i).map(l=>{const c=i[l],d=vo(l,c),p="r"===d,h="x"===d;return{options:c,dposition:p?"chartArea":h?"bottom":"left",dtype:p?"radialLinear":h?"category":"linear"}}))),L(a,l=>{const c=l.options,d=c.id,p=vo(d,c),h=T(c.type,l.dtype);(void 0===c.position||Wl(c.position,p)!==Wl(l.dposition))&&(c.position=l.dposition),r[d]=!0;let g=null;d in o&&o[d].type===h?g=o[d]:(g=new(It.getScale(h))({id:d,type:h,ctx:this.ctx,chart:this}),o[g.id]=g),g.init(c,t)}),L(r,(l,c)=>{l||delete o[c]}),L(o,l=>{ct.configure(this,l,l.options),ct.addBox(this,l)})}_updateMetasets(){const t=this._metasets,i=this.data.datasets.length,o=t.length;if(t.sort((r,a)=>r.index-a.index),o>i){for(let r=i;r<o;++r)this._destroyDatasetMeta(r);t.splice(i,o-i)}this._sortedMetasets=t.slice(0).sort(Ul("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((o,r)=>{0===i.filter(a=>a===o._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let o,r;for(this._removeUnreferencedMetasets(),o=0,r=i.length;o<r;o++){const a=i[o];let l=this.getDatasetMeta(o);const c=a.type||this.config.type;if(l.type&&l.type!==c&&(this._destroyDatasetMeta(o),l=this.getDatasetMeta(o)),l.type=c,l.indexAxis=a.indexAxis||bo(c,this.options),l.order=a.order||0,l.index=o,l.label=""+a.label,l.visible=this.isDatasetVisible(o),l.controller)l.controller.updateIndex(o),l.controller.linkScales();else{const d=It.getController(c),{datasetElementType:p,dataElementType:h}=H.datasets[c];Object.assign(d,{dataElementType:It.getElement(h),datasetElementType:p&&It.getElement(p)}),l.controller=new d(this,o),t.push(l.controller)}}return this._updateMetasets(),t}_resetElements(){L(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const i=this.config;i.update();const o=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let l=0;for(let p=0,h=this.data.datasets.length;p<h;p++){const{controller:g}=this.getDatasetMeta(p),u=!r&&-1===a.indexOf(g);g.buildOrUpdateElements(u),l=Math.max(+g.getMaxOverflow(),l)}l=this._minPadding=o.layout.autoPadding?l:0,this._updateLayout(l),r||L(a,p=>{p.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ul("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){L(this.scales,t=>{ct.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,i=new Set(Object.keys(this._listeners)),o=new Set(t.events);(!Oa(i,o)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(const{method:o,start:r,count:a}of i)Zf(t,r,"_removeElements"===o?-a:a)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const i=this.data.datasets.length,o=a=>new Set(t.filter(l=>l[0]===a).map((l,c)=>c+","+l.splice(1).join(","))),r=o(0);for(let a=1;a<i;a++)if(!Oa(r,o(a)))return;return Array.from(r).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ct.update(this,this.width,this.height,t);const i=this.chartArea,o=i.width<=0||i.height<=0;
vendor: 6,643 bytes, line 1
1this._layers=[],L(this.boxes,r=>{o&&"chartArea"===r.position||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,a)=>{r._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){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,Zt(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){const o=this.getDatasetMeta(t),r={meta:o,index:t,mode:i,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(o.controller._update(i),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(zt.has(this)?this.attached&&!zt.running(this)&&zt.start(this):(this.draw(),ql({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:o,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,r)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const i=this._sortedMetasets,o=[];let r,a;for(r=0,a=i.length;r<a;++r){const l=i[r];(!t||l.visible)&&o.push(l)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const i=this.ctx,o={meta:t,index:t.index,cancelable:!0},r=pl(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&ki(i,r),t.controller.draw(),r&&Pi(i),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Yt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,o,r){const a=qu.modes[i];return"function"==typeof a?a(this,t,o,r):[]}getDatasetMeta(t){const i=this.data.datasets[t],o=this._metasets;let r=o.filter(a=>a&&a._dataset===i).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},o.push(r)),r}getContext(){return this.$context||(this.$context=ee(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const i=this.data.datasets[t];if(!i)return!1;const o=this.getDatasetMeta(t);return"boolean"==typeof o.hidden?!o.hidden:!i.hidden}setDatasetVisibility(t,i){this.getDatasetMeta(t).hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,o){const r=o?"show":"hide",a=this.getDatasetMeta(t),l=a.controller._resolveAnimations(void 0,r);wn(i)?(a.data[i].hidden=!o,this.update()):(this.setDatasetVisibility(t,o),l.update(a,{visible:o}),this.update(c=>c.datasetIndex===t?r:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){const i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),zt.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),za(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Fi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,i=this.platform,o=(a,l)=>{i.addEventListener(this,a,l),t[a]=l},r=(a,l,c)=>{a.offsetX=l,a.offsetY=c,this._eventHandler(a)};L(this.options.events,a=>o(a,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,i=this.platform,o=(d,p)=>{i.addEventListener(this,d,p),t[d]=p},r=(d,p)=>{t[d]&&(i.removeEventListener(this,d,p),delete t[d])},a=(d,p)=>{this.canvas&&this.resize(d,p)};let l;const c=()=>{r("attach",c),this.attached=!0,this.resize(),o("resize",a),o("detach",l)};l=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),o("attach",c)},i.isAttached(this.canvas)?c():l()}unbindEvents(){L(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},L(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,o){const r=o?"set":"remove";let a,l,c,d;for("dataset"===i&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),c=0,d=t.length;c<d;++c){l=t[c];const p=l&&this.getDatasetMeta(l.datasetIndex).controller;p&&p[r+"HoverStyle"](l.element,l.datasetIndex,l.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const i=this._active||[],o=t.map(({datasetIndex:a,index:l})=>{const c=this.getDatasetMeta(a);if(!c)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:c.data[l],index:l}});!bi(o,i)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,i))}notifyPlugins(t,i,o){return this._plugins.notify(this,t,i,o)}isPluginEnabled(t){return 1===this._plugins._cache.filter(i=>i.plugin.id===t).length}_updateHoverStyles(t,i,o){const r=this.options.hover,a=(d,p)=>d.filter(h=>!p.some(g=>h.datasetIndex===g.datasetIndex&&h.index===g.index)),l=a(i,t),c=o?t:a(t,i);l.length&&this.updateHoverStyle(l,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(t,i){const o={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},r=l=>(l.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",o,r))return;const a=this._handleEvent(t,i,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,r),(a||o.changed)&&this.render(),this}_handleEvent(t,i,o){const{_active:r=[],options:a}=this,c=this._getActiveElements(t,r,o,i),d=function ng(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(t),p=function tm(e,n,t,i){return t&&"mouseout"!==e.type?i?n:e:null}(t,this._lastEvent,o,d);o&&(this._lastEvent=null,$(a.onHover,[t,c,this],this),d&&$(a.onClick,[t,c,this],this));const h=!bi(c,r);
1return(h||i)&&(this._active=c,this._updateHoverStyles(c,r,i)),this._lastEvent=p,h}_getActiveElements(t,i,o,r){if("mouseout"===t.type)return[];if(!o)return i;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,r)}})();function Jl(){return L(wo.instances,e=>e._plugins.invalidate())}function qe(e,n,t,i){return{x:t+e*Math.cos(n),y:i+e*Math.sin(n)}}function Li(e,n,t,i,o,r){const{x:a,y:l,startAngle:c,pixelMargin:d,innerRadius:p}=n,h=Math.max(n.outerRadius+i+t-d,0),g=p>0?p+i+t+d:0;let u=0;const m=o-c;if(i){const J=((p>0?p-i:0)+(h>0?h-i:0))/2;u=(m-(0!==J?m*J/(J+i):m))/2}const _=(m-Math.max(.001,m*h-t/F)/h)/2,b=c+_+u,v=o-_-u,{outerStart:C,outerEnd:w,innerStart:x,innerEnd:y}=function sm(e,n,t,i){const o=function im(e){return no(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),r=(t-n)/2,a=Math.min(r,i*n/2),l=c=>{const d=(t-Math.min(r,c))*i/2;return st(c,0,Math.min(r,d))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:st(o.innerStart,0,a),innerEnd:st(o.innerEnd,0,a)}}(n,g,h,v-b),O=h-C,P=h-w,M=b+C/O,S=v-w/P,N=g+x,A=g+y,ot=b+x/N,_t=v-y/A;if(e.beginPath(),r){const G=(M+S)/2;if(e.arc(a,l,h,M,G),e.arc(a,l,h,G,S),w>0){const dt=qe(P,S,a,l);e.arc(dt.x,dt.y,w,S,v+Q)}const X=qe(A,v,a,l);if(e.lineTo(X.x,X.y),y>0){const dt=qe(A,_t,a,l);e.arc(dt.x,dt.y,y,v+Q,_t+Math.PI)}const J=(v-y/g+(b+x/g))/2;if(e.arc(a,l,g,v-y/g,J,!0),e.arc(a,l,g,J,b+x/g,!0),x>0){const dt=qe(N,ot,a,l);e.arc(dt.x,dt.y,x,ot+Math.PI,b-Q)}const Mt=qe(O,b,a,l);if(e.lineTo(Mt.x,Mt.y),C>0){const dt=qe(O,M,a,l);e.arc(dt.x,dt.y,C,b-Q,M)}}else{e.moveTo(a,l);const G=Math.cos(M)*h+a,X=Math.sin(M)*h+l;e.lineTo(G,X);const J=Math.cos(S)*h+a,Mt=Math.sin(S)*h+l;e.lineTo(J,Mt)}e.closePath()}function Zl(e,n,t=n){e.lineCap=T(t.borderCapStyle,n.borderCapStyle),e.setLineDash(T(t.borderDash,n.borderDash)),e.lineDashOffset=T(t.borderDashOffset,n.borderDashOffset),e.lineJoin=T(t.borderJoinStyle,n.borderJoinStyle),e.lineWidth=T(t.borderWidth,n.borderWidth),e.strokeStyle=T(t.borderColor,n.borderColor)}function lm(e,n,t){e.lineTo(t.x,t.y)}function tc(e,n,t={}){const i=e.length,{start:o=0,end:r=i-1}=t,{start:a,end:l}=n,c=Math.max(o,a),d=Math.min(r,l);return{count:i,start:c,loop:n.loop,ilen:d<c&&!(o<a&&r<a||o>l&&r>l)?i+d-c:d-c}}function dm(e,n,t,i){const{points:o,options:r}=n,{count:a,start:l,loop:c,ilen:d}=tc(o,t,i),p=function cm(e){return e.stepped?Pg:e.tension||"monotone"===e.cubicInterpolationMode?Og:lm}(r);let u,m,f,{move:h=!0,reverse:g}=i||{};for(u=0;u<=d;++u)m=o[(l+(g?d-u:u))%a],!m.skip&&(h?(e.moveTo(m.x,m.y),h=!1):p(e,f,m,g,r.stepped),f=m);return c&&(m=o[(l+(g?d:0))%a],p(e,f,m,g,r.stepped)),!!c}function pm(e,n,t,i){const o=n.points,{count:r,start:a,ilen:l}=tc(o,t,i),{move:c=!0,reverse:d}=i||{};let g,u,m,f,_,b,p=0,h=0;const v=w=>(a+(d?l-w:w))%r,C=()=>{f!==_&&(e.lineTo(p,_),e.lineTo(p,f),e.lineTo(p,b))};for(c&&(u=o[v(0)],e.moveTo(u.x,u.y)),g=0;g<=l;++g){if(u=o[v(g)],u.skip)continue;const w=u.x,x=u.y,y=0|w;y===m?(x<f?f=x:x>_&&(_=x),p=(h*p+w)/++h):(C(),e.lineTo(w,x),m=y,h=0,f=_=x),b=x}C()}function yo(e){const n=e.options;return e._decimated||e._loop||n.tension||"monotone"===n.cubicInterpolationMode||n.stepped||n.borderDash&&n.borderDash.length?dm:pm}const fm="function"==typeof Path2D;let ji=(()=>class e extends Ht{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:t=>"borderDash"!==t&&"fill"!==t};constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,i){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(Kg(this._points,o,t,o.spanGaps?this._loop:this._fullLoop,i),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function pu(e,n){const t=e.points,i=e.options.spanGaps,o=t.length;if(!o)return[];const r=!!e._loop,{start:a,end:l}=function cu(e,n,t,i){let o=0,r=n-1;if(t&&!i)for(;o<n&&!e[o].skip;)o++;for(;o<n&&e[o].skip;)o++;for(o%=n,t&&(r+=o);r>o&&e[r%n].skip;)r--;return r%=n,{start:o,end:r}}(t,o,r,i);return function cl(e,n,t,i){return i&&i.setContext&&t?function hu(e,n,t,i){const o=e._chart.getContext(),r=dl(e.options),{_datasetIndex:a,options:{spanGaps:l}}=e,c=t.length,d=[];let p=r,h=n[0].start,g=h;function u(m,f,_,b){const v=l?-1:1;if(m!==f){for(m+=c;t[m%c].skip;)m-=v;for(;t[f%c].skip;)f+=v;m%c!=f%c&&(d.push({start:m%c,end:f%c,loop:_,style:b}),p=b,h=f%c)}}for(const m of n){h=l?h:m.start;let _,f=t[h%c];for(g=h+1;g<=m.end;g++){const b=t[g%c];_=dl(i.setContext(ee(o,{type:"segment",p0:f,p1:b,p0DataIndex:(g-1)%c,p1DataIndex:g%c,datasetIndex:a}))),gu(_,p)&&u(h,g-1,m.loop,p),f=b,p=_}h<g-1&&u(h,g-1,m.loop,p)}return d}(e,n,t,i):n}(e,!0===i?[{start:a,end:l,loop:r}]:function du(e,n,t,i){const o=e.length,r=[];let c,a=n,l=e[n];for(c=n+1;c<=t;++c){const d=e[c%o];d.skip||d.stop?l.skip||(r.push({start:n%o,end:(c-1)%o,loop:i=!1}),n=a=d.stop?c:null):(a=c,l.skip&&(n=c)),l=d}return null!==a&&r.push({start:n%o,end:a%o,loop:i}),r}(t,a,l<a?l+o:l,!!e._fullLoop&&0===a&&l===o-1),t,n)}(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,o=t.length;return o&&this.points[t[o-1].end]}interpolate(t,i){const o=this.options,r=t[i],a=this.points,l=ll(this,{property:i,start:r,end:r});if(!l.length)return;const c=[],d=function hm(e){return e.stepped?su:e.tension||"monotone"===e.cubicInterpolationMode?ou:be}(o);let p,h;for(p=0,h=l.length;p<h;++p){const{start:g,end:u}=l[p],m=a[g],f=a[u];if(m===f){c.push(m);continue}const b=d(m,f,Math.abs((r-m[i])/(f[i]-m[i])),o.stepped);b[i]=t[i],c.push(b)}return 1===c.length?c[0]:c}pathSegment(t,i,o){return yo(this)(t,this,i,o)}path(t,i,o){const r=this.segments,a=yo(this);let l=this._loop;i=i||0,o=o||this.points.length-i;for(const c of r)l&=a(t,this,c,{start:i,end:i+o-1});return!!l}draw(t,i,o,r){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function mm(e,n,t,i){fm&&!n.options.segment?function gm(e,n,t,i){let o=n._path;o||(o=n._path=new Path2D,n.path(o,t,i)&&o.closePath()),Zl(e,n.options),e.stroke(o)}(e,n,t,i):function um(e,n,t,i){const{segments:o,options:r}=n,a=yo(n);for(const l of o)Zl(e,r,l.style),e.beginPath(),a(e,n,l,{start:t,end:t+i-1})&&e.closePath(),e.stroke()}(e,n,t,i)}
vendor: 5,049 bytes, line 1
1(t,this,o,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}})();function ec(e,n,t,i){const o=e.options,{[t]:r}=e.getProps([t],i);return Math.abs(n-r)<o.radius+o.hitRadius}let _m=(()=>class e extends Ht{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(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,i,o){const r=this.options,{x:a,y:l}=this.getProps(["x","y"],o);return Math.pow(t-a,2)+Math.pow(i-l,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,i){return ec(this,t,"x",i)}inYRange(t,i){return ec(this,t,"y",i)}getCenterPoint(t){const{x:i,y:o}=this.getProps(["x","y"],t);return{x:i,y:o}}size(t){let i=(t=t||this.options||{}).radius||0;return i=Math.max(i,i&&t.hoverRadius||0),2*(i+(i&&t.borderWidth||0))}draw(t,i){const o=this.options;this.skip||o.radius<.1||!Yt(this,i,this.size(o)/2)||(t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.fillStyle=o.backgroundColor,eo(t,o,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}})();function nc(e,n){const{x:t,y:i,base:o,width:r,height:a}=e.getProps(["x","y","base","width","height"],n);let l,c,d,p,h;return e.horizontal?(h=a/2,l=Math.min(t,o),c=Math.max(t,o),d=i-h,p=i+h):(h=r/2,l=t-h,c=t+h,d=Math.min(i,o),p=Math.max(i,o)),{left:l,top:d,right:c,bottom:p}}function ie(e,n,t,i){return e?0:st(n,t,i)}function Co(e,n,t,i){const o=null===n,r=null===t,l=e&&!(o&&r)&&nc(e,i);return l&&(o||$t(n,l.left,l.right))&&(r||$t(t,l.top,l.bottom))}function Cm(e,n){e.rect(n.x,n.y,n.w,n.h)}function xo(e,n,t={}){const i=e.x!==t.x?-n:0,o=e.y!==t.y?-n:0;return{x:e.x+i,y:e.y+o,w:e.w+((e.x+e.w!==t.x+t.w?n:0)-i),h:e.h+((e.y+e.h!==t.y+t.h?n:0)-o),radius:e.radius}}var km=Object.freeze({__proto__:null,ArcElement:class am extends Ht{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,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>"borderDash"!==n};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,t,i){const o=this.getProps(["x","y"],i),{angle:r,distance:a}=Na(o,{x:n,y:t}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:p,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),g=(this.options.spacing+this.options.borderWidth)/2,u=T(h,c-l),m=Cn(r,l,c)&&l!==c,f=u>=z||m,_=$t(a,d+g,p+g);return f&&_}getCenterPoint(n){const{x:t,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,p=(o+r)/2,h=(a+l+d+c)/2;return{x:t+Math.cos(p)*h,y:i+Math.sin(p)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:t,circumference:i}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>z?Math.floor(i/z):0,0===i||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const d=o*(1-Math.sin(Math.min(F,i||0)));n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,function om(e,n,t,i,o){const{fullCircles:r,startAngle:a,circumference:l}=n;let c=n.endAngle;if(r){Li(e,n,t,i,c,o);for(let d=0;d<r;++d)e.fill();isNaN(l)||(c=a+(l%z||z))}Li(e,n,t,i,c,o),e.fill()}(n,this,d,r,a),function rm(e,n,t,i,o){const{fullCircles:r,startAngle:a,circumference:l,options:c}=n,{borderWidth:d,borderJoinStyle:p,borderDash:h,borderDashOffset:g,borderRadius:u}=c,m="inner"===c.borderAlign;if(!d)return;e.setLineDash(h||[]),e.lineDashOffset=g,m?(e.lineWidth=2*d,e.lineJoin=p||"round"):(e.lineWidth=d,e.lineJoin=p||"bevel");let f=n.endAngle;if(r){Li(e,n,t,i,f,o);for(let _=0;_<r;++_)e.stroke();isNaN(l)||(f=a+(l%z||z))}m&&function nm(e,n,t){const{startAngle:i,pixelMargin:o,x:r,y:a,outerRadius:l,innerRadius:c}=n;let d=o/l;e.beginPath(),e.arc(r,a,l,i-d,t+d),c>o?(d=o/c,e.arc(r,a,c,t+d,i-d,!0)):e.arc(r,a,o,t+Q,i-Q),e.closePath(),e.clip()}(e,n,f),c.selfJoin&&f-a>=F&&0===u&&"miter"!==p&&function em(e,n,t){const{startAngle:i,x:o,y:r,outerRadius:a,innerRadius:l,options:c}=n,{borderWidth:d,borderJoinStyle:p}=c,h=Math.min(d/a,rt(i-t));if(e.beginPath(),e.arc(o,r,a-d/2,i+h/2,t-h/2),l>0){const g=Math.min(d/l,rt(i-t));e.arc(o,r,l+d/2,t-g/2,i+g/2,!0)}else{const g=Math.min(d/2,a*rt(i-t));if("round"===p)e.arc(o,r,g,t-F/2,i+F/2,!0);else if("bevel"===p){const u=2*g*g,m=-u*Math.cos(t+F/2)+o,f=-u*Math.sin(t
1+F/2)+r,_=u*Math.cos(i+F/2)+o,b=u*Math.sin(i+F/2)+r;e.lineTo(m,f),e.lineTo(_,b)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,n,f),r||(Li(e,n,t,i,f,o),e.stroke())}(n,this,d,r,a),n.restore()}},BarElement:class xm extends Ht{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){const{inflateAmount:t,options:{borderColor:i,backgroundColor:o}}=this,{inner:r,outer:a}=function wm(e){const n=nc(e),t=n.right-n.left,i=n.bottom-n.top,o=function bm(e,n,t){const o=e.borderSkipped,r=Xa(e.options.borderWidth);return{t:ie(o.top,r.top,0,t),r:ie(o.right,r.right,0,n),b:ie(o.bottom,r.bottom,0,t),l:ie(o.left,r.left,0,n)}}(e,t/2,i/2),r=function vm(e,n,t){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,r=fe(o),a=Math.min(n,t),l=e.borderSkipped,c=i||E(o);return{topLeft:ie(!c||l.top||l.left,r.topLeft,0,a),topRight:ie(!c||l.top||l.right,r.topRight,0,a),bottomLeft:ie(!c||l.bottom||l.left,r.bottomLeft,0,a),bottomRight:ie(!c||l.bottom||l.right,r.bottomRight,0,a)}}(e,t/2,i/2);return{outer:{x:n.left,y:n.top,w:t,h:i,radius:r},inner:{x:n.left+o.l,y:n.top+o.t,w:t-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}(this),l=function ym(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(a.radius)?On:Cm;n.save(),(a.w!==r.w||a.h!==r.h)&&(n.beginPath(),l(n,xo(a,t,r)),n.clip(),l(n,xo(r,-t,a)),n.fillStyle=i,n.fill("evenodd")),n.beginPath(),l(n,xo(r,t)),n.fillStyle=o,n.fill(),n.restore()}inRange(n,t,i){return Co(this,n,t,i)}inXRange(n,t){return Co(this,n,null,t)}inYRange(n,t){return Co(this,null,n,t)}getCenterPoint(n){const{x:t,y:i,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],n);return{x:r?(t+o)/2:t,y:r?i:(i+o)/2}}getRange(n){return"x"===n?this.width/2:this.height/2}},LineElement:ji,PointElement:_m});const ko=["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)"],ic=ko.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function sc(e){return ko[e%ko.length]}function oc(e){return ic[e%ic.length]}function rc(e){let n;for(n in e)if(e[n].borderColor||e[n].backgroundColor)return!0;return!1}var Nm={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,n,t){if(!t.enabled)return;const{data:{datasets:i},options:o}=e.config,{elements:r}=o,a=rc(i)||function Tm(e){return e&&(e.borderColor||e.backgroundColor)}(o)||r&&rc(r)||function Dm(){return"rgba(0,0,0,0.1)"!==H.borderColor||"rgba(0,0,0,0.1)"!==H.backgroundColor}();if(!t.forceOverride&&a)return;const l=function Sm(e){let n=0;return(t,i)=>{const o=e.getDatasetMeta(i).controller;o instanceof go?n=function Om(e,n){return e.backgroundColor=e.data.map(()=>sc(n++)),n}(t,n):o instanceof kl?n=function Mm(e,n){return e.backgroundColor=e.data.map(()=>oc(n++)),n}(t,n):o&&(n=function Pm(e,n){return e.borderColor=sc(n),e.backgroundColor=oc(n),++n}(t,n))}}(e);i.forEach(l)}};function ac(e){if(e._decimated){const n=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function lc(e){e.data.datasets.forEach(n=>{ac(n)})}var Am={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,n,t)=>{if(!t.enabled)return void lc(e);const i=e.width;e.data.datasets.forEach((o,r)=>{const{_data:a,indexAxis:l}=o,c=e.getDatasetMeta(r),d=a||o.data;if("y"===Mn([l,e.options.indexAxis])||!c.controller.supportsDecimation)return;const p=e.scales[c.xAxisID];if("linear"!==p.type&&"time"!==p.type||e.options.parsing)return;let m,{start:h,count:g}=function Em(e,n){const t=n.length;let o,i=0;const{iScale:r}=e,{min:a,max:l,minDefined:c,maxDefined:d}=r.getUserBounds();return c&&(i=st(Vt(n,r.axis,a).lo,0,t-1)),o=d?st(Vt(n,r.axis,l).hi+1,i,t)-i:t-i,{start:i,count:o}}(c,d);if(g<=(t.threshold||4*i))ac(o);else{switch(I(a)&&(o._data=d,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(f){this._data=f}})),t.algorithm){case"lttb":m=function Im(e,n,t,i,o){const r=o.samples||i;if(r>=t)return e.slice(n,n+t);const a=[],l=(t-2)/(r-2);let c=0;const d=n+t-1;let h,g,u,m,f,p=n;for(a[c++]=e[p],h=0;h<r-2;h++){let v,_=0,b=0;const C=Math.floor((h+1)*l)+1+n,w=Math.min(Math.floor((h+2)*l)+1,t)+n,x=w-C;for(v=C;v<w;v++)_+=e[v].x,b+=e[v].y;_/=x,b/=x;const y=Math.floor(h*l)+1+n,O=Math.min(Math.floor((h+1)*l)+1,t)+n,{x:P,y:M}=e[p];for(u=m=-1,v=y;v<O;v++)m=.5*Math.abs((P-_)*(e[v].y-M)-(P-e[v].x)*(b-M)),m>u&&(u=m,g=e[v],f=v);a[c++]=g,p=f}return a[c++]=e[d],a}(d,h,g,i,t);break;case"min-max":m=function Rm(e,n,t,i){let a,l,c,d,p,h,g,u,m,f,o=0,r=0;const _=[],v=e[n].x,w=e[n+t-1].x-v;for(a=n;a<n+t;++a){l=e[a],c=(l.x-v)/w*i,d=l.y;const x=0|c;if(x===p)d<m?(m=d,h=a):d>f&&(f=d,g=a),o=(r*o+l.x)/++r;else{const y=a-1;if(!I(h)&&!I(g)){const O=Math.min(h,g),P=Math.max(h,g);O!==u&&O!==y&&_.push({...e[O],x:o}),P!==u&&P!==y&&_.push({...e[P],x:o})}a>0&&y!==u&&_.push(e[y]),_.push(l),p=x,r=0,m=f=d,h=g=u=a}}return _}(d,h,g,i);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}o._decimated=m}})},destroy(e){lc(e)}};function Po(e,n,t,i){if(i)return;let o=n[e],r=t[e];return"angle"===e&&(o=rt(o),r=rt(r)),{property:e,start:o,end:r}}function Gi(e,n,t){for(;n>e;n--){const i=t[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function cc(e,n,t,i){return e&&n?i(e[t],n[t]):e?e[t]:n?n[t]:0}function dc(e,n){let t=[],i=!1;return Y(e)?(i=!0,t=e):t=function Fm(e,n){const{x:t=null,y:i=null}=e||{},o=n.points,r=[];
1return n.segments.forEach(({start:a,end:l})=>{l=Gi(a,l,o);const c=o[a],d=o[l];null!==i?(r.push({x:c.x,y:i}),r.push({x:d.x,y:i})):null!==t&&(r.push({x:t,y:c.y}),r.push({x:t,y:d.y}))}),r}(e,n),t.length?new ji({points:t,options:{tension:0},_loop:i,_fullLoop:i}):null}function pc(e){return e&&!1!==e.fill}function Lm(e,n,t){let o=e[n].fill;const r=[n];let a;if(!t)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!q(o))return o;if(a=e[o],!a)return!1;if(a.visible)return o;r.push(o),o=a.fill}return!1}function jm(e,n,t){const i=function Ym(e){const n=e.options,t=n.fill;let i=T(t&&t.target,t);return void 0===i&&(i=!!n.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(E(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return q(o)&&Math.floor(o)===o?function Gm(e,n,t,i){return("-"===e||"+"===e)&&(t=n+t),!(t===n||t<0||t>=i)&&t}(i[0],n,o,t):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Xm(e,n,t){const i=[];for(let o=0;o<t.length;o++){const r=t[o],{first:a,last:l,point:c}=Wm(r,n,"x");if(!(!c||a&&l))if(a)i.unshift(c);else if(e.push(c),!l)break}e.push(...i)}function Wm(e,n,t){const i=e.interpolate(n,t);if(!i)return{};const o=i[t],r=e.segments,a=e.points;let l=!1,c=!1;for(let d=0;d<r.length;d++){const p=r[d],h=a[p.start][t],g=a[p.end][t];if($t(o,h,g)){l=o===h,c=o===g;break}}return{first:l,last:c,point:i}}class hc{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,t,i){const{x:o,y:r,radius:a}=this;return n.arc(o,r,a,(t=t||{start:0,end:z}).end,t.start,!0),!i.bounds}interpolate(n){const{x:t,y:i,radius:o}=this,r=n.angle;return{x:t+Math.cos(r)*o,y:i+Math.sin(r)*o,angle:r}}}function Oo(e,n,t){const i=function Um(e){const{chart:n,fill:t,line:i}=e;if(q(t))return function qm(e,n){const t=e.getDatasetMeta(n);return t&&e.isDatasetVisible(n)?t.dataset:null}(n,t);if("stack"===t)return function zm(e){const{scale:n,index:t,line:i}=e,o=[],r=i.segments,a=i.points,l=function Hm(e,n){const t=[],i=e.getMatchingVisibleMetas("line");for(let o=0;o<i.length;o++){const r=i[o];if(r.index===n)break;r.hidden||t.unshift(r.dataset)}return t}(n,t);l.push(dc({x:null,y:n.bottom},i));for(let c=0;c<r.length;c++){const d=r[c];for(let p=d.start;p<=d.end;p++)Xm(o,a[p],l)}return new ji({points:o,options:{}})}(e);if("shape"===t)return!0;const o=function Km(e){return(e.scale||{}).getPointPositionForValue?function Jm(e){const{scale:n,fill:t}=e,i=n.options,o=n.getLabels().length,r=i.reverse?n.max:n.min,a=function Vm(e,n,t){let i;return i="start"===e?t:"end"===e?n.options.reverse?n.min:n.max:E(e)?e.value:n.getBaseValue(),i}(t,n,r),l=[];if(i.grid.circular){const c=n.getPointPositionForValue(0,r);return new hc({x:c.x,y:c.y,radius:n.getDistanceFromCenterForValue(a)})}for(let c=0;c<o;++c)l.push(n.getPointPositionForValue(c,a));return l}(e):function Qm(e){const{scale:n={},fill:t}=e,i=function $m(e,n){let t=null;return"start"===e?t=n.bottom:"end"===e?t=n.top:E(e)?t=n.getPixelForValue(e.value):n.getBasePixel&&(t=n.getBasePixel()),t}(t,n);if(q(i)){const o=n.isHorizontal();return{x:o?i:null,y:o?null:i}}return null}(e)}(e);return o instanceof hc?o:dc(o,i)}(n),{chart:o,index:r,line:a,scale:l,axis:c}=n,d=a.options,p=d.fill,h=d.backgroundColor,{above:g=h,below:u=h}=p||{},m=o.getDatasetMeta(r),f=pl(o,m);i&&a.points.length&&(ki(e,t),function Zm(e,n){const{line:t,target:i,above:o,below:r,area:a,scale:l,clip:c}=n,d=t._loop?"angle":n.axis;e.save();let p=r;r!==o&&("x"===d?(gc(e,i,a.top),Mo(e,{line:t,target:i,color:o,scale:l,property:d,clip:c}),e.restore(),e.save(),gc(e,i,a.bottom)):"y"===d&&(uc(e,i,a.left),Mo(e,{line:t,target:i,color:r,scale:l,property:d,clip:c}),e.restore(),e.save(),uc(e,i,a.right),p=o)),Mo(e,{line:t,target:i,color:p,scale:l,property:d,clip:c}),e.restore()}(e,{line:a,target:i,above:g,below:u,area:t,scale:l,axis:c,clip:f}),Pi(e))}function gc(e,n,t){const{segments:i,points:o}=n;let r=!0,a=!1;e.beginPath();for(const l of i){const{start:c,end:d}=l,p=o[c],h=o[Gi(c,d,o)];r?(e.moveTo(p.x,p.y),r=!1):(e.lineTo(p.x,t),e.lineTo(p.x,p.y)),a=!!n.pathSegment(e,l,{move:a}),a?e.closePath():e.lineTo(h.x,t)}e.lineTo(n.first().x,t),e.closePath(),e.clip()}function uc(e,n,t){const{segments:i,points:o}=n;let r=!0,a=!1;e.beginPath();for(const l of i){const{start:c,end:d}=l,p=o[c],h=o[Gi(c,d,o)];r?(e.moveTo(p.x,p.y),r=!1):(e.lineTo(t,p.y),e.lineTo(p.x,p.y)),a=!!n.pathSegment(e,l,{move:a}),a?e.closePath():e.lineTo(t,h.y)}e.lineTo(t,n.first().y),e.closePath(),e.clip()}function Mo(e,n){const{line:t,target:i,property:o,color:r,scale:a,clip:l}=n,c=function Bm(e,n,t){const i=e.segments,o=e.points,r=n.points,a=[];for(const l of i){let{start:c,end:d}=l;d=Gi(c,d,o);const p=Po(t,o[c],o[d],l.loop);if(!n.segments){a.push({source:l,target:p,start:o[c],end:o[d]});continue}const h=ll(n,p);for(const g of h){const u=Po(t,r[g.start],r[g.end],g.loop),m=al(l,o,u);for(const f of m)a.push({source:f,target:g,start:{[t]:cc(p,u,"start",Math.max)},end:{[t]:cc(p,u,"end",Math.min)}})}}return a}(t,i,o);for(const{source:d,target:p,start:h,end:g}of c){const{style:{backgroundColor:u=r}={}}=d,m=!0!==i;
vendor: 4,358 bytes, line 1
1e.save(),e.fillStyle=u,t_(e,a,l,m&&Po(o,h,g)),e.beginPath();const f=!!t.pathSegment(e,d);let _;if(m){f?e.closePath():fc(e,i,g,o);const b=!!i.pathSegment(e,p,{move:f,reverse:!0});_=f&&b,_||fc(e,i,h,o)}e.closePath(),e.fill(_?"evenodd":"nonzero"),e.restore()}}function t_(e,n,t,i){const o=n.chart.chartArea,{property:r,start:a,end:l}=i||{};if("x"===r||"y"===r){let c,d,p,h;"x"===r?(c=a,d=o.top,p=l,h=o.bottom):(c=o.left,d=a,p=o.right,h=l),e.beginPath(),t&&(c=Math.max(c,t.left),p=Math.min(p,t.right),d=Math.max(d,t.top),h=Math.min(h,t.bottom)),e.rect(c,d,p-c,h-d),e.clip()}}function fc(e,n,t,i){const o=n.interpolate(t,i);o&&e.lineTo(o.x,o.y)}var e_={id:"filler",afterDatasetsUpdate(e,n,t){const i=(e.data.datasets||[]).length,o=[];let r,a,l,c;for(a=0;a<i;++a)r=e.getDatasetMeta(a),l=r.dataset,c=null,l&&l.options&&l instanceof ji&&(c={visible:e.isDatasetVisible(a),index:a,fill:jm(l,a,i),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:l}),r.$filler=c,o.push(c);for(a=0;a<i;++a)c=o[a],c&&!1!==c.fill&&(c.fill=Lm(o,a,t.propagate))},beforeDraw(e,n,t){const i="beforeDraw"===t.drawTime,o=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let a=o.length-1;a>=0;--a){const l=o[a].$filler;l&&(l.line.updateControlPoints(r,l.axis),i&&l.fill&&Oo(e.ctx,l,r))}},beforeDatasetsDraw(e,n,t){if("beforeDatasetsDraw"!==t.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){const r=i[o].$filler;pc(r)&&Oo(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,n,t){const i=n.meta.$filler;!pc(i)||"beforeDatasetDraw"!==t.drawTime||Oo(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const mc=(e,n)=>{let{boxHeight:t=n,boxWidth:i=n}=e;return e.usePointStyle&&(t=Math.min(t,n),i=e.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:t,itemHeight:Math.max(n,t)}};class _c extends Ht{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,t,i){this.maxWidth=n,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const n=this.options.labels||{};let t=$(n.generateLabels,[this.chart],this)||[];n.filter&&(t=t.filter(i=>n.filter(i,this.chart.data))),n.sort&&(t=t.sort((i,o)=>n.sort(i,o,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:n,ctx:t}=this;if(!n.display)return void(this.width=this.height=0);const i=n.labels,o=et(i.font),r=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=mc(i,r);let d,p;t.font=o.string,this.isHorizontal()?(d=this.maxWidth,p=this._fitRows(a,r,l,c)+10):(p=this.maxHeight,d=this._fitCols(a,o,l,c)+10),this.width=Math.min(d,n.maxWidth||this.maxWidth),this.height=Math.min(p,n.maxHeight||this.maxHeight)}_fitRows(n,t,i,o){const{ctx:r,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],p=o+l;let h=n;r.textAlign="left",r.textBaseline="middle";let g=-1,u=-p;return this.legendItems.forEach((m,f)=>{const _=i+t/2+r.measureText(m.text).width;(0===f||d[d.length-1]+_+2*l>a)&&(h+=p,d[d.length-(f>0?0:1)]=0,u+=p,g++),c[f]={left:0,top:u,row:g,width:_,height:o},d[d.length-1]+=_+l}),h}_fitCols(n,t,i,o){const{ctx:r,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],p=a-n;let h=l,g=0,u=0,m=0,f=0;return this.legendItems.forEach((_,b)=>{const{itemWidth:v,itemHeight:C}=function i_(e,n,t,i,o){const r=function s_(e,n,t,i){let o=e.text;return o&&"string"!=typeof o&&(o=o.reduce((r,a)=>r.length>a.length?r:a)),n+t.size/2+i.measureText(o).width}(i,e,n,t),a=function o_(e,n,t){let i=e;return"string"!=typeof n.text&&(i=bc(n,t)),i}(o,i,n.lineHeight);return{itemWidth:r,itemHeight:a}}(i,t,r,_,o);b>0&&u+C+2*l>p&&(h+=g+l,d.push({width:g,height:u}),m+=g+l,f++,g=u=0),c[b]={left:m,top:u,col:f,width:v,height:C}
vendor: 4,338 bytes, line 1
1,g=Math.max(g,v),u+=C+l}),h+=g,d.push({width:g,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const n=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:o},rtl:r}}=this,a=Ue(r,this.left,this.width);if(this.isHorizontal()){let l=0,c=at(i,this.left+o,this.right-this.lineWidths[l]);for(const d of t)l!==d.row&&(l=d.row,c=at(i,this.left+o,this.right-this.lineWidths[l])),d.top+=this.top+n+o,d.left=a.leftForLtr(a.x(c),d.width),c+=d.width+o}else{let l=0,c=at(i,this.top+n+o,this.bottom-this.columnSizes[l].height);for(const d of t)d.col!==l&&(l=d.col,c=at(i,this.top+n+o,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+o,d.left=a.leftForLtr(a.x(d.left),d.width),c+=d.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const n=this.ctx;ki(n,this),this._draw(),Pi(n)}}_draw(){const{options:n,columnSizes:t,lineWidths:i,ctx:o}=this,{align:r,labels:a}=n,l=H.color,c=Ue(n.rtl,this.left,this.width),d=et(a.font),{padding:p}=a,h=d.size,g=h/2;let u;this.drawTitle(),o.textAlign=c.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=d.string;const{boxWidth:m,boxHeight:f,itemHeight:_}=mc(a,h),C=this.isHorizontal(),w=this._computeTitleHeight();u=C?{x:at(r,this.left+p,this.right-i[0]),y:this.top+p+w,line:0}:{x:this.left+p,y:at(r,this.top+w+p,this.bottom-t[0].height),line:0},il(this.ctx,n.textDirection);const x=_+p;this.legendItems.forEach((y,O)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const P=o.measureText(y.text).width,M=c.textAlign(y.textAlign||(y.textAlign=a.textAlign)),S=m+g+P;let N=u.x,A=u.y;c.setWidth(this.width),C?O>0&&N+S+p>this.right&&(A=u.y+=x,u.line++,N=u.x=at(r,this.left+p,this.right-i[u.line])):O>0&&A+x>this.bottom&&(N=u.x=N+t[u.line].width+p,u.line++,A=u.y=at(r,this.top+w+p,this.bottom-t[u.line].height)),function(y,O,P){if(isNaN(m)||m<=0||isNaN(f)||f<0)return;o.save();const M=T(P.lineWidth,1);if(o.fillStyle=T(P.fillStyle,l),o.lineCap=T(P.lineCap,"butt"),o.lineDashOffset=T(P.lineDashOffset,0),o.lineJoin=T(P.lineJoin,"miter"),o.lineWidth=M,o.strokeStyle=T(P.strokeStyle,l),o.setLineDash(T(P.lineDash,[])),a.usePointStyle){const S={radius:f*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:M},N=c.xPlus(y,m/2);Ha(o,S,N,O+g,a.pointStyleWidth&&m)}else{const S=O+Math.max((h-f)/2,0),N=c.leftForLtr(y,m),A=fe(P.borderRadius);o.beginPath(),Object.values(A).some(ot=>0!==ot)?On(o,{x:N,y:S,w:m,h:f,radius:A}):o.rect(N,S,m,f),o.fill(),0!==M&&o.stroke()}o.restore()}(c.x(N),A,y),N=((e,n,t,i)=>e===(i?"left":"right")?t:"center"===e?(n+t)/2:n)(M,N+m+g,C?N+S:this.right,n.rtl),function(y,O,P){ue(o,P.text,y,O+_/2,d,{strikethrough:P.hidden,textAlign:c.textAlign(P.textAlign)})}(c.x(N),A,y),C?u.x+=S+p:u.y+="string"!=typeof y.text?bc(y,d.lineHeight)+p:x}),sl(this.ctx,n.textDirection)}drawTitle(){const n=this.options,t=n.title,i=et(t.font),o=lt(t.padding);if(!t.display)return;const r=Ue(n.rtl,this.left,this.width),a=this.ctx,l=t.position,d=o.top+i.size/2;let p,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),p=this.top+d,h=at(n.align,h,this.right-g);else{const m=this.columnSizes.reduce((f,_)=>Math.max(f,_.height),0);p=d+at(n.align,this.top,this.bottom-m-n.labels.padding-this._computeTitleHeight())}const u=at(l,h,h+g);a.textAlign=r.textAlign(Ks(l)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=i.string,ue(a,t.text,u,p,i)}_computeTitleHeight(){const n=this.options.title,t=et(n.font),i=lt(n.padding);return n.display?t.lineHeight+i.height:0}_getLegendItemAt(n,t){let i,o,r;if($t(n,this.left,this.right)&&$t(t,this.top,this.bottom))for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(o=r[i],$t(n,o.left,o.left+o.width)&&$t(t,o.top,o.top+o.height))return this.legendItems[i];return null}handleEvent(n){const t=this.options;if(!function r_(e,n){return!(("mousemove"!==e&&"mouseout"!==e||!n.onHover&&!n.onLeave)&&(!n.onClick||"click"!==e&&"mouseup"!==e))}(n.type,t))return;const i=this._getLegendItemAt(n.x,n.y);if("mousemove"===n.type||"mouseout"===n.type){const o=this._hoveredItem,r=((e,n)=>null!==e&&null!==n&&e.datasetIndex===n.datasetIndex&&e.index===n.index)(o,i);o&&!r&&$(t.onLeave,[n,o,this],this),this._hoveredItem=i,i&&!r&&$(t.onHover,[n,i,this],this)}else i&&$(t.onClick,[n,i,this],this)}}
vendor: 5,581 bytes, line 1
1function bc(e,n){return n*(e.text?e.text.length:0)}var a_={id:"legend",_element:_c,start(e,n,t){const i=e.legend=new _c({ctx:e.ctx,options:t,chart:e});ct.configure(e,i,t),ct.addBox(e,i)},stop(e){ct.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,n,t){const i=e.legend;ct.configure(e,i,t),i.options=t},afterUpdate(e){const n=e.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(e,n){n.replay||e.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,n,t){const i=n.datasetIndex,o=t.chart;o.isDatasetVisible(i)?(o.hide(i),n.hidden=!0):(o.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const n=e.data.datasets,{labels:{usePointStyle:t,pointStyle:i,textAlign:o,color:r,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(t?0:void 0),p=lt(d.borderWidth);return{text:n[c.index].label,fillStyle:d.backgroundColor,fontColor:r,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(p.width+p.height)/4,strokeStyle:d.borderColor,pointStyle:i||d.pointStyle,rotation:d.rotation,textAlign:o||d.textAlign,borderRadius:a&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class So extends Ht{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,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=n,this.height=this.bottom=t;const o=Y(i.text)?i.text.length:1;this._padding=lt(i.padding);const r=o*et(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const n=this.options.position;return"top"===n||"bottom"===n}_drawArgs(n){const{top:t,left:i,bottom:o,right:r,options:a}=this,l=a.align;let d,p,h,c=0;return this.isHorizontal()?(p=at(l,i,r),h=t+n,d=r-i):("left"===a.position?(p=i+n,h=at(l,o,t),c=-.5*F):(p=r-n,h=at(l,t,o),c=.5*F),d=o-t),{titleX:p,titleY:h,maxWidth:d,rotation:c}}draw(){const n=this.ctx,t=this.options;if(!t.display)return;const i=et(t.font),r=i.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(r);ue(n,t.text,0,0,i,{color:t.color,maxWidth:c,rotation:d,textAlign:Ks(t.align),textBaseline:"middle",translation:[a,l]})}}var c_={id:"title",_element:So,start(e,n,t){!function l_(e,n){const t=new So({ctx:e.ctx,options:n,chart:e});ct.configure(e,t,n),ct.addBox(e,t),e.titleBlock=t}(e,t)},stop(e){ct.removeBox(e,e.titleBlock),delete e.titleBlock},beforeUpdate(e,n,t){const i=e.titleBlock;ct.configure(e,i,t),i.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const $i=new WeakMap;var d_={id:"subtitle",start(e,n,t){const i=new So({ctx:e.ctx,options:t,chart:e});ct.configure(e,i,t),ct.addBox(e,i),$i.set(e,i)},stop(e){ct.removeBox(e,$i.get(e)),$i.delete(e)},beforeUpdate(e,n,t){const i=$i.get(e);ct.configure(e,i,t),i.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Bn={average(e){if(!e.length)return!1;let n,t,i=new Set,o=0,r=0;for(n=0,t=e.length;n<t;++n){const l=e[n].element;if(l&&l.hasValue()){const c=l.tooltipPosition();i.add(c.x),o+=c.y,++r}}return 0!==r&&0!==i.size&&{x:[...i].reduce((l,c)=>l+c)/i.size,y:o/r}},nearest(e,n){if(!e.length)return!1;let r,a,l,t=n.x,i=n.y,o=Number.POSITIVE_INFINITY;for(r=0,a=e.length;r<a;++r){const c=e[r].element;if(c&&c.hasValue()){const p=Us(n,c.getCenterPoint());p<o&&(o=p,l=c)}}if(l){const c=l.tooltipPosition();t=c.x,i=c.y}return{x:t,y:i}}};function Rt(e,n){return n&&(Y(n)?Array.prototype.push.apply(e,n):e.push(n)),e}function Xt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function p_(e,n){const{element:t,datasetIndex:i,index:o}=n,r=e.getDatasetMeta(i).controller,{label:a,value:l}=r.getLabelAndValue(o);return{chart:e,label:a,parsed:r.getParsed(o),raw:e.data.datasets[i].data[o],formattedValue:l,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:t}}function vc(e,n){const t=e.chart.ctx,{body:i,footer:o,title:r}=e,{boxWidth:a,boxHeight:l}=n,c=et(n.bodyFont),d=et(n.titleFont),p=et(n.footerFont),h=r.length,g=o.length,u=i.length,m=lt(n.padding);let f=m.height,_=0,b=i.reduce((w,x)=>w+x.before.length+x.lines.length+x.after.length,0);b+=e.beforeBody.length+e.afterBody.length,h&&(f+=h*d.lineHeight+(h-1)*n.titleSpacing+n.titleMarginBottom),b&&(f+=u*(n.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(b-u)*c.lineHeight+(b-1)*n.bodySpacing),g&&(f+=n.footerMarginTop+g*p.lineHeight+(g-1)*n.footerSpacing);let v=0;const C=function(w){_=Math.max(_,t.measureText(w).width+v)};return t.save(),t.font=d.string,L(e.title,C),t.font=c.string,L(e.beforeBody.concat(e.afterBody),C),v=n.displayColors?a+2+n.boxPadding:0,L(i,w=>{L(w.before,C),L(w.lines,C),L(w.after,C)}
1),v=0,t.font=p.string,L(e.footer,C),t.restore(),_+=m.width,{width:_,height:f}}function u_(e,n,t,i){const{x:o,width:r}=t,{width:a,chartArea:{left:l,right:c}}=e;let d="center";return"center"===i?d=o<=(l+c)/2?"left":"right":o<=r/2?d="left":o>=a-r/2&&(d="right"),function g_(e,n,t,i){const{x:o,width:r}=i,a=t.caretSize+t.caretPadding;if("left"===e&&o+r+a>n.width||"right"===e&&o-r-a<0)return!0}(d,e,n,t)&&(d="center"),d}function wc(e,n,t){const i=t.yAlign||n.yAlign||function h_(e,n){const{y:t,height:i}=n;return t<i/2?"top":t>e.height-i/2?"bottom":"center"}(e,t);return{xAlign:t.xAlign||n.xAlign||u_(e,n,t,i),yAlign:i}}function yc(e,n,t,i){const{caretSize:o,caretPadding:r,cornerRadius:a}=e,{xAlign:l,yAlign:c}=t,d=o+r,{topLeft:p,topRight:h,bottomLeft:g,bottomRight:u}=fe(a);let m=function f_(e,n){let{x:t,width:i}=e;return"right"===n?t-=i:"center"===n&&(t-=i/2),t}(n,l);const f=function m_(e,n,t){let{y:i,height:o}=e;return"top"===n?i+=t:i-="bottom"===n?o+t:o/2,i}(n,c,d);return"center"===c?"left"===l?m+=d:"right"===l&&(m-=d):"left"===l?m-=Math.max(p,g)+o:"right"===l&&(m+=Math.max(h,u)+o),{x:st(m,0,i.width-n.width),y:st(f,0,i.height-n.height)}}function Vi(e,n,t){const i=lt(t.padding);return"center"===n?e.x+e.width/2:"right"===n?e.x+e.width-i.right:e.x+i.left}function Cc(e){return Rt([],Xt(e))}function xc(e,n){const t=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return t?e.override(t):e}const kc={beforeTitle:Gt,title(e){if(e.length>0){const n=e[0],t=n.chart.data.labels,i=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return t[n.dataIndex]}return""},afterTitle:Gt,beforeBody:Gt,beforeLabel:Gt,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let n=e.dataset.label||"";n&&(n+=": ");const t=e.formattedValue;return I(t)||(n+=t),n},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Gt,afterBody:Gt,beforeFooter:Gt,footer:Gt,afterFooter:Gt};function ut(e,n,t,i){const o=e[n].call(t,i);return typeof o>"u"?kc[n].call(t,i):o}let Pc=(()=>class e extends Ht{static positioners=Bn;constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const i=this.chart,o=this.options.setContext(this.getContext()),r=o.enabled&&i.options.animation&&o.animations,a=new gl(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=function __(e,n,t){return ee(e,{tooltip:n,tooltipItems:t,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){const{callbacks:o}=i,r=ut(o,"beforeTitle",this,t),a=ut(o,"title",this,t),l=ut(o,"afterTitle",this,t);let c=[];return c=Rt(c,Xt(r)),c=Rt(c,Xt(a)),c=Rt(c,Xt(l)),c}getBeforeBody(t,i){return Cc(ut(i.callbacks,"beforeBody",this,t))}getBody(t,i){const{callbacks:o}=i,r=[];return L(t,a=>{const l={before:[],lines:[],after:[]},c=xc(o,a);Rt(l.before,Xt(ut(c,"beforeLabel",this,a))),Rt(l.lines,ut(c,"label",this,a)),Rt(l.after,Xt(ut(c,"afterLabel",this,a))),r.push(l)}),r}getAfterBody(t,i){return Cc(ut(i.callbacks,"afterBody",this,t))}getFooter(t,i){const{callbacks:o}=i,r=ut(o,"beforeFooter",this,t),a=ut(o,"footer",this,t),l=ut(o,"afterFooter",this,t);let c=[];return c=Rt(c,Xt(r)),c=Rt(c,Xt(a)),c=Rt(c,Xt(l)),c}_createItems(t){const i=this._active,o=this.chart.data,r=[],a=[],l=[];let d,p,c=[];for(d=0,p=i.length;d<p;++d)c.push(p_(this.chart,i[d]));return t.filter&&(c=c.filter((h,g,u)=>t.filter(h,g,u,o))),t.itemSort&&(c=c.sort((h,g)=>t.itemSort(h,g,o))),L(c,h=>{const g=xc(t.callbacks,h);r.push(ut(g,"labelColor",this,h)),a.push(ut(g,"labelPointStyle",this,h)),l.push(ut(g,"labelTextColor",this,h))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=l,this.dataPoints=c,c}update(t,i){const o=this.options.setContext(this.getContext()),r=this._active;let a,l=[];
vendor: 12,061 bytes, line 1
1if(r.length){const c=Bn[o.position].call(this,r,this._eventPosition);l=this._createItems(o),this.title=this.getTitle(l,o),this.beforeBody=this.getBeforeBody(l,o),this.body=this.getBody(l,o),this.afterBody=this.getAfterBody(l,o),this.footer=this.getFooter(l,o);const d=this._size=vc(this,o),p=Object.assign({},c,d),h=wc(this.chart,o,p),g=yc(o,p,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,a={opacity:1,x:g.x,y:g.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=l,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,o,r){const a=this.getCaretPosition(t,o,r);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(t,i,o){const{xAlign:r,yAlign:a}=this,{caretSize:l,cornerRadius:c}=o,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:g}=fe(c),{x:u,y:m}=t,{width:f,height:_}=i;let b,v,C,w,x,y;return"center"===a?(x=m+_/2,"left"===r?(b=u,v=b-l,w=x+l,y=x-l):(b=u+f,v=b+l,w=x-l,y=x+l),C=b):(v="left"===r?u+Math.max(d,h)+l:"right"===r?u+f-Math.max(p,g)-l:this.caretX,"top"===a?(w=m,x=w-l,b=v-l,C=v+l):(w=m+_,x=w+l,b=v+l,C=v-l),y=w),{x1:b,x2:v,x3:C,y1:w,y2:x,y3:y}}drawTitle(t,i,o){const r=this.title,a=r.length;let l,c,d;if(a){const p=Ue(o.rtl,this.x,this.width);for(t.x=Vi(this,o.titleAlign,o),i.textAlign=p.textAlign(o.titleAlign),i.textBaseline="middle",l=et(o.titleFont),c=o.titleSpacing,i.fillStyle=o.titleColor,i.font=l.string,d=0;d<a;++d)i.fillText(r[d],p.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+c,d+1===a&&(t.y+=o.titleMarginBottom-c)}}_drawColorBox(t,i,o,r,a){const l=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:p}=a,h=et(a.bodyFont),g=Vi(this,"left",a),u=r.x(g),f=i.y+(d<h.lineHeight?(h.lineHeight-d)/2:0);if(a.usePointStyle){const _={radius:Math.min(p,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},b=r.leftForLtr(u,p)+p/2,v=f+d/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,eo(t,_,b,v),t.strokeStyle=l.borderColor,t.fillStyle=l.backgroundColor,eo(t,_,b,v)}else{t.lineWidth=E(l.borderWidth)?Math.max(...Object.values(l.borderWidth)):l.borderWidth||1,t.strokeStyle=l.borderColor,t.setLineDash(l.borderDash||[]),t.lineDashOffset=l.borderDashOffset||0;const _=r.leftForLtr(u,p),b=r.leftForLtr(r.xPlus(u,1),p-2),v=fe(l.borderRadius);Object.values(v).some(C=>0!==C)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,On(t,{x:_,y:f,w:p,h:d,radius:v}),t.fill(),t.stroke(),t.fillStyle=l.backgroundColor,t.beginPath(),On(t,{x:b,y:f+1,w:p-2,h:d-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(_,f,p,d),t.strokeRect(_,f,p,d),t.fillStyle=l.backgroundColor,t.fillRect(b,f+1,p-2,d-2))}t.fillStyle=this.labelTextColors[o]}drawBody(t,i,o){const{body:r}=this,{bodySpacing:a,bodyAlign:l,displayColors:c,boxHeight:d,boxWidth:p,boxPadding:h}=o,g=et(o.bodyFont);let u=g.lineHeight,m=0;const f=Ue(o.rtl,this.x,this.width),_=function(M){i.fillText(M,f.x(t.x+m),t.y+u/2),t.y+=u+a},b=f.textAlign(l);let v,C,w,x,y,O,P;for(i.textAlign=l,i.textBaseline="middle",i.font=g.string,t.x=Vi(this,b,o),i.fillStyle=o.bodyColor,L(this.beforeBody,_),m=c&&"right"!==b?"center"===l?p/2+h:p+2+h:0,x=0,O=r.length;x<O;++x){for(v=r[x],C=this.labelTextColors[x],i.fillStyle=C,L(v.before,_),w=v.lines,c&&w.length&&(this._drawColorBox(i,t,x,f,o),u=Math.max(g.lineHeight,d)),y=0,P=w.length;y<P;++y)_(w[y]),u=g.lineHeight;L(v.after,_)}m=0,u=g.lineHeight,L(this.afterBody,_),t.y-=a}drawFooter(t,i,o){const r=this.footer,a=r.length;let l,c;if(a){const d=Ue(o.rtl,this.x,this.width);for(t.x=Vi(this,o.footerAlign,o),t.y+=o.footerMarginTop,i.textAlign=d.textAlign(o.footerAlign),i.textBaseline="middle",l=et(o.footerFont),i.fillStyle=o.footerColor,i.font=l.string,c=0;c<a;++c)i.fillText(r[c],d.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+o.footerSpacing}}drawBackground(t,i,o,r){const{xAlign:a,yAlign:l}=this,{x:c,y:d}=t,{width:p,height:h}=o,{topLeft:g,topRight:u,bottomLeft:m,bottomRight:f}=fe(r.cornerRadius);i.fillStyle=r.backgroundColor,i.strokeStyle=r.borderColor,i.lineWidth=r.borderWidth,i.beginPath(),i.moveTo(c+g,d),"top"===l&&this.drawCaret(t,i,o,r),i.lineTo(c+p-u,d),i.quadraticCurveTo(c+p,d,c+p,d+u),"center"===l&&"right"===a&&this.drawCaret(t,i,o,r),i.lineTo(c+p,d+h-f),i.quadraticCurveTo(c+p,d+h,c+p-f,d+h),"bottom"===l&&this.drawCaret(t,i,o,r),i.lineTo(c+m,d+h),i.quadraticCurveTo(c,d+h,c,d+h-m),"center"===l&&"left"===a&&this.drawCaret(t,i,o,r),i.lineTo(c,d+g),i.quadraticCurveTo(c,d,c+g,d),i.closePath(),i.fill(),r.borderWidth>0&&i.stroke()}_updateAnimationTarget(t){const i=this.chart,o=this.$animations,r=o&&o.x,a=o&&o.y;if(r||a){const l=Bn[t.position].call(this,this._active,this._eventPosition);if(!l)return;const c=this._size=vc(this,t),d=Object.assign({},l,this._size),p=wc(i,t,d),h=yc(t,d,p,i);(r._to!==h.x||a._to!==h.y)&&(this.xAlign=p.xAlign,this.yAlign=p.yAlign,this.width=c.width,this.height=c.height,this.caretX=l.x,this.caretY=l.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const i=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(i);const r={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const l=lt(i.padding);i.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=o,this.drawBackground(a,t,r,i),il(t,i.textDirection),a.y+=l.top,this.drawTitle(a,t,i),this.drawBody(a,t,i),this.drawFooter(a,t,i),sl(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){const o=this._active,r=t.map(({datasetIndex:c,index:d})=>{const p=this.chart.getDatasetMeta(c);if(!p)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:p.data[d],index:d}}),a=!bi(o,r),l=this._positionChanged(r,i);(a||l)&&(this._active=r,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,o=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,a=this._active||[],l=this._getActiveElements(t,a,i,o),c=this._positionChanged(l,t),d=i||!bi(l,a)||c;return d&&(this._active=l,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),d}_getActiveElements(t,i,o,r){const a=this.options;if("mouseout"===t.type)return[];if(!r)return i.filter(c=>this.chart.data.datasets[c.datasetIndex]&&void 0!==this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index));const l=this.chart.getElementsAtEventForMode(t,a.mode,a,o);return a.reverse&&l.reverse(),l}_positionChanged(t,i){const{caretX:o,caretY:r,options:a}=this,l=Bn[a.position].call(this,t,i);return!1!==l&&(o!==l.x||r!==l.y)}})();var v_=Object.freeze({__proto__:null,Colors:Nm,Decimation:Am,Filler:e_,Legend:a_,SubTitle:d_,Title:c_,Tooltip:{id:"tooltip",_element:Pc,positioners:Bn,afterInit(e,n,t){t&&(e.tooltip=new Pc({chart:e,options:t}))},beforeUpdate(e,n,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,n,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){const n=e.tooltip;if(n&&n._willRender()){const t={tooltip:n};if(!1===e.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0}))return;n.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,n){e.tooltip&&e.tooltip.handleEvent(n.event,n.replay,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:(e,n)=>n.bodyFont.size,boxWidth:(e,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:kc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function Oc(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}let x_=(()=>class e extends we{static id="category";static defaults={ticks:{callback:Oc}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const i=this._addedLabels;if(i.length){const o=this.getLabels();for(const{index:r,label:a}of i)o[r]===a&&o.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,i){if(I(t))return null;const o=this.getLabels();return((e,n)=>null===e?null:st(Math.round(e),0,n))(i=isFinite(i)&&o[i]===t?i:function y_(e,n,t,i){const o=e.indexOf(n);return-1===o?((e,n,t,i)=>("string"==typeof n?(t=e.push(n)-1,i.unshift({index:t,label:n})):isNaN(n)&&(t=null),t))(e,n,t,i):o!==e.lastIndexOf(n)?t:o}(o,t,T(i,t),this._addedLabels),o.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:o,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(o=0),i||(r=this.getLabels().length-1)),this.min=o,this.max=r}buildTicks(){const t=this.min,i=this.max,o=this.options.offset,r=[];let a=this.getLabels();a=0===t&&i===a.length-1?a:a.slice(t,i+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let l=t;l<=i;l++)r.push({value:l});return r}getLabelForValue(t){return Oc.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}})();function Mc(e,n,{horizontal:t,minRotation:i}){const o=Pt(i),r=(t?Math.sin(o):Math.cos(o))||.001;return Math.min(n/r,.75*n*(""+e).length)}class Yi extends we{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,t){return I(n)||("number"==typeof n||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){const{beginAtZero:n}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:o,max:r}=this;const a=c=>o=t?o:c,l=c=>r=i?r:c;if(n){const c=Nt(o),d=Nt(r);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(o===r){let c=0===r?1:Math.abs(.05*r);l(r+c),n||a(o-c)}this.min=o,this.max=r}getTickLimit(){const n=this.options.ticks;let o,{maxTicksLimit:t,stepSize:i}=n;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(),t=t||11),t&&(o=Math.min(t,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const n=this.options,t=n.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a=function k_(e,n){const t=[],{bounds:o,step:r,min:a,max:l,precision:c,count:d,maxTicks:p,maxDigits:h,includeBounds:g}=e,u=r||1,m=p-1,{min:f,max:_}=n,b=!I(a),v=!I(l),C=!I(d),w=(_-f)/(h+1);let y,O,P,M,x=Sa((_-f)/m/u)*u;if(x<1e-14&&!b&&!v)return[{value:f},{value:_}];M=Math.ceil(_/x)-Math.floor(f/x),M>m&&(x=Sa(M*x/m/u)*u),I(c)||(y=Math.pow(10,c),x=Math.ceil(x*y)/y),"ticks"===o?(O=Math.floor(f/x)*x,P=Math.ceil(_/x)*x):(O=f,P=_),b&&v&&r&&function ag(e,n){const t=Math.round(e);return t-n<=e&&t+n>=e}((l-a)/r,x/1e3)?(M=Math.round(Math.min((l-a)/x,p)),x=(l-a)/M,O=a,P=l):C?(O=b?a:O,P=v?l:P,M=d-1,x=(P-O)/M):(M=(P-O)/x,M=yn(M,Math.round(M),x/1e3)?Math.round(M):Math.ceil(M));const S=Math.max(Da(x),Da(O));
1y=Math.pow(10,I(c)?S:c),O=Math.round(O*y)/y,P=Math.round(P*y)/y;let N=0;for(b&&(g&&O!==a?(t.push({value:a}),O<a&&N++,yn(Math.round((O+N*x)*y)/y,a,Mc(a,w,e))&&N++):O<a&&N++);N<M;++N){const A=Math.round((O+N*x)*y)/y;if(v&&A>l)break;t.push({value:A})}return v&&g&&P!==l?t.length&&yn(t[t.length-1].value,l,Mc(l,w,e))?t[t.length-1].value=l:t.push({value:l}):(!v||P===l)&&t.push({value:P}),t}({maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===n.bounds&&Ta(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(){const n=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){const o=(i-t)/Math.max(n.length-1,1)/2;t-=o,i+=o}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(n){return kn(n,this.chart.options.locale,this.options.ticks.format)}}const Fn=e=>Math.floor(te(e)),ye=(e,n)=>Math.pow(10,Fn(e)+n);function Sc(e){return e/Math.pow(10,Fn(e))==1}function Tc(e,n,t){const i=Math.pow(10,t),o=Math.floor(e/i);return Math.ceil(n/i)-o}function To(e){const n=e.ticks;if(n.display&&e.display){const t=lt(n.backdropPadding);return T(n.font&&n.font.size,H.font.size)+t.height}return 0}function T_(e,n,t){return t=Y(t)?t:[t],{w:kg(e,n.string,t),h:t.length*n.lineHeight}}function Dc(e,n,t,i,o){return e===i||e===o?{start:n-t/2,end:n+t/2}:e<i||e>o?{start:n-t,end:n}:{start:n,end:n+t}}function N_(e,n,t,i,o){const r=Math.abs(Math.sin(t)),a=Math.abs(Math.cos(t));let l=0,c=0;i.start<n.l?(l=(n.l-i.start)/r,e.l=Math.min(e.l,n.l-l)):i.end>n.r&&(l=(i.end-n.r)/r,e.r=Math.max(e.r,n.r+l)),o.start<n.t?(c=(n.t-o.start)/a,e.t=Math.min(e.t,n.t-c)):o.end>n.b&&(c=(o.end-n.b)/a,e.b=Math.max(e.b,n.b+c))}function I_(e,n,t){const i=e.drawingArea,{extra:o,additionalAngle:r,padding:a,size:l}=t,c=e.getPointPosition(n,i+o+a,r),d=Math.round(Ws(rt(c.angle+Q))),p=function F_(e,n,t){return 90===t||270===t?e-=n/2:(t>270||t<90)&&(e-=n),e}(c.y,l.h,d),h=function A_(e){return 0===e||180===e?"center":e<180?"left":"right"}(d),g=function B_(e,n,t){return"right"===t?e-=n:"center"===t&&(e-=n/2),e}(c.x,l.w,h);return{visible:!0,x:c.x,y:p,textAlign:h,left:g,top:p,right:g+l.w,bottom:p+l.h}}function R_(e,n){if(!n)return!0;const{left:t,top:i,right:o,bottom:r}=e;return!(Yt({x:t,y:i},n)||Yt({x:t,y:r},n)||Yt({x:o,y:i},n)||Yt({x:o,y:r},n))}function L_(e,n,t){const{left:i,top:o,right:r,bottom:a}=t,{backdropColor:l}=n;if(!I(l)){const c=fe(n.borderRadius),d=lt(n.backdropPadding);e.fillStyle=l;const p=i-d.left,h=o-d.top,g=r-i+d.width,u=a-o+d.height;Object.values(c).some(m=>0!==m)?(e.beginPath(),On(e,{x:p,y:h,w:g,h:u,radius:c}),e.fill()):e.fillRect(p,h,g,u)}}function Nc(e,n,t,i){const{ctx:o}=e;if(t)o.arc(e.xCenter,e.yCenter,n,0,z);else{let r=e.getPointPosition(0,n);o.moveTo(r.x,r.y);for(let a=1;a<i;a++)r=e.getPointPosition(a,n),o.lineTo(r.x,r.y)}}const zi={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}},ft=Object.keys(zi);function Ic(e,n){return e-n}function Rc(e,n){if(I(n))return null;const t=e._adapter,{parser:i,round:o,isoWeekday:r}=e._parseOpts;let a=n;return"function"==typeof i&&(a=i(a)),q(a)||(a="string"==typeof i?t.parse(a,i):t.parse(a)),null===a?null:(o&&(a="week"!==o||!He(r)&&!0!==r?t.startOf(a,o):t.startOf(a,"isoWeek",r)),+a)}function Ec(e,n,t,i){const o=ft.length;for(let r=ft.indexOf(e);r<o-1;++r){const a=zi[ft[r]];if(a.common&&Math.ceil((t-n)/((a.steps?a.steps:Number.MAX_SAFE_INTEGER)*a.size))<=i)return ft[r]}return ft[o-1]}function Ac(e,n,t){if(t){if(t.length){const{lo:i,hi:o}=qs(t,n);e[t[i]>=n?t[i]:t[o]]=!0}}else e[n]=!0}function Bc(e,n,t){const i=[],o={},r=n.length;let a,l;for(a=0;a<r;++a)l=n[a],o[l]=a,i.push({value:l,major:!1});return 0!==r&&t?function H_(e,n,t,i){const o=e._adapter,r=+o.startOf(n[0].value,i),a=n[n.length-1].value;let l,c;for(l=r;l<=a;l=+o.add(l,1,i))c=t[l],c>=0&&(n[c].major=!0);return n}(e,i,o,t):i}let Do=(()=>class e extends we{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(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){const o=t.time||(t.time={}),r=this._adapter=new zu__date(t.adapters.date);r.init(i),vn(o.displayFormats,r.formats()),this._parseOpts={parser:o.parser,round:o.roun
1d,isoWeekday:o.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return void 0===t?null:Rc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,i=this._adapter,o=t.time.unit||"day";let{min:r,max:a,minDefined:l,maxDefined:c}=this.getUserBounds();function d(p){!l&&!isNaN(p.min)&&(r=Math.min(r,p.min)),!c&&!isNaN(p.max)&&(a=Math.max(a,p.max))}(!l||!c)&&(d(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&d(this.getMinMax(!1))),r=q(r)&&!isNaN(r)?r:+i.startOf(Date.now(),o),a=q(a)&&!isNaN(a)?a:+i.endOf(Date.now(),o)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],o=t[t.length-1]),{min:i,max:o}}buildTicks(){const t=this.options,i=t.time,o=t.ticks,r="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const a=this.min,c=function pg(e,n,t){let i=0,o=e.length;for(;i<o&&e[i]<n;)i++;for(;o>i&&e[o-1]>t;)o--;return i>0||o<e.length?e.slice(i,o):e}(r,a,this.max);return this._unit=i.unit||(o.autoSkip?Ec(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):function Y_(e,n,t,i,o){for(let r=ft.length-1;r>=ft.indexOf(t);r--){const a=ft[r];if(zi[a].common&&e._adapter.diff(o,i,a)>=n-1)return a}return ft[t?ft.indexOf(t):0]}(this,c.length,i.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function z_(e){for(let n=ft.indexOf(e)+1,t=ft.length;n<t;++n)if(zi[ft[n]].common)return ft[n]}(this._unit):void 0,this.initOffsets(r),t.reverse&&c.reverse(),Bc(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r,a,i=0,o=0;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),i=1===t.length?1-r:(this.getDecimalForValue(t[1])-r)/2,a=this.getDecimalForValue(t[t.length-1]),o=1===t.length?a:(a-this.getDecimalForValue(t[t.length-2]))/2);const l=t.length<3?.5:.25;i=st(i,0,l),o=st(o,0,l),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,i=this.min,o=this.max,r=this.options,a=r.time,l=a.unit||Ec(a.minUnit,i,o,this._getLabelCapacity(i)),c=T(r.ticks.stepSize,1),d="week"===l&&a.isoWeekday,p=He(d)||!0===d,h={};let u,m,g=i;if(p&&(g=+t.startOf(g,"isoWeek",d)),g=+t.startOf(g,p?"day":l),t.diff(o,i,l)>1e5*c)throw new Error(i+" and "+o+" are too far apart with stepSize of "+c+" "+l);const f="data"===r.ticks.source&&this.getDataTimestamps();for(u=g,m=0;u<o;u=+t.add(u,c,l),m++)Ac(h,u,f);return(u===o||"ticks"===r.bounds||1===m)&&Ac(h,u,f),Object.keys(h).sort(Ic).map(_=>+_)}getLabelForValue(t){const o=this.options.time;return this._adapter.format(t,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}format(t,i){return this._adapter.format(t,i||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,i,o,r){const a=this.options,l=a.ticks.callback;if(l)return $(l,[t,i,o],this);
vendor: 9,682 bytes, line 1
1const c=a.time.displayFormats,d=this._unit,p=this._majorUnit,g=p&&c[p],u=o[i];return this._adapter.format(t,r||(p&&g&&u&&u.major?g:d&&c[d]))}generateTickLabels(t){let i,o,r;for(i=0,o=t.length;i<o;++i)r=t[i],r.label=this._tickFormatFunction(r.value,i,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const i=this._offsets,o=this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+o)*i.factor)}getValueForPixel(t){const i=this._offsets,o=this.getDecimalForPixel(t)/i.factor-i.end;return this.min+o*(this.max-this.min)}_getLabelSize(t){const i=this.options.ticks,o=this.ctx.measureText(t).width,r=Pt(this.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(r),l=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:o*a+c*l,h:o*l+c*a}}_getLabelCapacity(t){const i=this.options.time,o=i.displayFormats,r=o[i.unit]||o.millisecond,a=this._tickFormatFunction(t,0,Bc(this,[t],this._majorUnit),r),l=this._getLabelSize(a),c=Math.floor(this.isHorizontal()?this.width/l.w:this.height/l.h)-1;return c>0?c:1}getDataTimestamps(){let i,o,t=this._cache.data||[];if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(i=0,o=r.length;i<o;++i)t=t.concat(r[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let i,o;if(t.length)return t;const r=this.getLabels();for(i=0,o=r.length;i<o;++i)t.push(Rc(this,r[i]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ea(t.sort(Ic))}})();function Hi(e,n,t){let r,a,l,c,i=0,o=e.length-1;t?(n>=e[i].pos&&n<=e[o].pos&&({lo:i,hi:o}=Vt(e,"pos",n)),({pos:r,time:l}=e[i]),({pos:a,time:c}=e[o])):(n>=e[i].time&&n<=e[o].time&&({lo:i,hi:o}=Vt(e,"time",n)),({time:r,pos:l}=e[i]),({time:a,pos:c}=e[o]));const d=a-r;return d?l+(c-l)*(n-r)/d:l}wo.register(Yu,km,v_,Object.freeze({__proto__:null,CategoryScale:x_,LinearScale:class P_ extends Yi{static id="linear";static defaults={ticks:{callback:Ci.formatters.numeric}};determineDataLimits(){const{min:n,max:t}=this.getMinMax(!0);this.min=q(n)?n:0,this.max=q(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const n=this.isHorizontal(),t=n?this.width:this.height,i=Pt(this.options.ticks.minRotation),o=(n?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(n){return null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},LogarithmicScale:class S_ extends we{static id="logarithmic";static defaults={ticks:{callback:Ci.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,t){const i=Yi.prototype.parse.apply(this,[n,t]);if(0!==i)return q(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:n,max:t}=this.getMinMax(!0);this.min=q(n)?Math.max(0,n):null,this.max=q(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!q(this._userMin)&&(this.min=n===ye(this.min,0)?ye(this.min,-1):ye(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:n,maxDefined:t}=this.getUserBounds();let i=this.min,o=this.max;const r=l=>i=n?i:l,a=l=>o=t?o:l;i===o&&(i<=0?(r(1),a(10)):(r(ye(i,-1)),a(ye(o,1)))),i<=0&&r(ye(o,-1)),o<=0&&a(ye(i,1)),this.min=i,this.max=o}buildTicks(){const n=this.options,i=function M_(e,{min:n,max:t}){n=mt(e.min,n);const i=[],o=Fn(n);let r=function O_(e,n){let i=Fn(n-e);for(;Tc(e,n,i)>10;)i++;for(;Tc(e,n,i)<10;)i--;return Math.min(i,Fn(e))}(n,t),a=r<0?Math.pow(10,Math.abs(r)):1;const l=Math.pow(10,r),c=o>r?Math.pow(10,o):0,d=Math.round((n-c)*a)/a,p=Math.floor((n-c)/l/10)*l*10;let h=Math.floor((d-p)/Math.pow(10,r)),g=mt(e.min,Math.round((c+p+h*Math.pow(10,r))*a)/a);for(;g<t;)i.push({value:g,major:Sc(g),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(r++,h=2,a=r>=0?1:a),g=Math.round((c+p+h*Math.pow(10,r))*a)/a;const u=mt(e.max,g);return i.push({value:u,major:Sc(u),significand:h}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===n.bounds&&Ta(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 void 0===n?"0":kn(n,this.chart.options.locale,this.options.ticks.format)}configure(){const n=this.min;super.configure(),this._startValue=te(n),this._valueRange=te(this.max)-te(n)}getPixelForValue(n){return(void 0===n||0===n)&&(n=this.min),null===n||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(te(n)-this._startValue)/this._valueRange)}getValueForPixel(n){const t=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+t*this._valueRange)}},RadialLinearScale:class V_ extends Yi{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:Ci.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:n=>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(){const n=this._padding=lt(To(this.options)/2),t=this.width=this.maxWidth-n.width,i=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+t/2+n.left),this.yCenter=Math.floor(this.top+i/2+n.top),this.drawingArea=Math.floor(Math.min(t,i)/2)}determineDataLimits(){const{min:n,max:t}=this.getMinMax(!1);this.min=q(n)&&!isNaN(n)?n:0,this.max=q(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/To(this.options))}generateTickLabels(n){Yi.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((t,i)=>{const o=$(this.options.pointLabels.callback,[t,i],this);return o||0===o?o:""}).filter((t,i)=>this.chart.getDataVisibility(i))}fit(){const n=this.options;n.display&&n.pointLabels.display?function D_(e){const n={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},n),i=[],o=[],r=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?F/r:0;for(let c=0;c<r;c++){const d=a.setContext(e.getPointLabelContext(c));o[c]=d.padding;const p=e.getPointPosition(c,e.drawingArea+o[c],l),h=et(d.font),g=T_(e.ctx,h,e._pointLabels[c]);i[c]=g;const u=rt(e.getIndexAngle(c)+l),m=Math.round(Ws(u));N_(t,n,u,Dc(m,p.x,g.w,0,180),Dc(m,p.y,g.h,90,270))}e.setCenterPoint(n.l-t.l,t.r-n.r,n.t-t.t,t.b-n.b),e._pointLabelItems=function E_(e,n,t){const i=[],o=e._pointLabels.length,r=e.options,{centerPointLabels:a,display:l}=r.pointLabels,c={extra:To(r)/2,additionalAngle:a?F/o:0};let d;for(let p=0;p<o;p++){c.padding=t[p],c.size=n[p];const h=I_(e,p,c);i.push(h),"auto"===l&&(h.visible=R_(h,d),h.visible&&(d=h))}return i}(e,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,t,i,o){this.xCenter+=Math.floor((n-t)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,t,i,o))}getIndexAngle(n){return rt(n*(z/(this._pointLabels.length||1))+Pt(this.options.startAngle||0))}getDistanceFromCenterForValue(n){if(I(n))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*t:(n-this.min)*t}getValueForDistanceFromCenter(n){if(I(n))return NaN;const t=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(n){const t=this._pointLabels||[];if(n>=0&&n<t.length){const i=t[n];return function $_(e,n,t){return ee(e,{label:t,index:n,type:"pointLabel"})}(this.getContext(),n,i)}}getPointPosition(n,t,i=0){const o=this.getIndexAngle(n)-Q+i;return{x:Math.cos(o)*t+this.xCenter,y:Math.sin(o)*t+this.yCenter,angle:o}}getPointPositionForValue(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){const{left:t,top:i,right:o,bottom:r}=this._pointLabelItems[n];return{left:t,top:i,right:o,bottom:r}}drawBackground(){const{backgroundColor:n,grid:{circular:t}}=this.options;if(n){const i=this.ctx;i.save(),i.beginPath(),Nc(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}drawGrid(){const n=this.ctx,t=this.options,{angleLines:i,grid:o,border:r}=t,a=this._pointLabels.length;let l,c,d;if(t.pointLabels.display&&function j_(e,n){const{ctx:t,options:{pointLabels:i}}=e;for(let o=n-1;o>=0;o--){const r=e._pointLabelItems[o];if(!r.visible)continue;const a=i.setContext(e.getPointLabelContext(o));L_(t,a,r);const l=et(a.font),{x:c,y:d,textAlign:p}=r;ue(t,e._pointLabels[o],c,d+l.lineHeight/2,l,{color:a.color,textAlign:p,textBaseline:"middle"})}}(this,a),o.display&&this.ticks.forEach((p,h)=>{if(0!==h||0===h&&this.min<0){c=this.getDistanceFromCenterForValue(p.value);const g=this.getContext(h),u=o.setContext(g),m=r.setContext(g);!function G_(e,n,t,i,o){const r=e.ctx,a=n.circular,{color:l,lineWidth:c}=n;!a&&!i||!l||!c||t<0||(r.save(),r.strokeStyle=l,r.lineWidth=c,r.setLineDash(o.dash||[]),r.lineDashOffset=o.dashOffset,r.beginPath(),Nc(e,t,a,i),r.closePath(),r.stroke(),r.restore(
1))}(this,u,c,a,m)}}),i.display){for(n.save(),l=a-1;l>=0;l--){const p=i.setContext(this.getPointLabelContext(l)),{color:h,lineWidth:g}=p;!g||!h||(n.lineWidth=g,n.strokeStyle=h,n.setLineDash(p.borderDash),n.lineDashOffset=p.borderDashOffset,c=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),d=this.getPointPosition(l,c),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(d.x,d.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;const o=this.getIndexAngle(0);let r,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(o),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((l,c)=>{if(0===c&&this.min>=0&&!t.reverse)return;const d=i.setContext(this.getContext(c)),p=et(d.font);if(r=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){n.font=p.string,a=n.measureText(l.label).width,n.fillStyle=d.backdropColor;const h=lt(d.backdropPadding);n.fillRect(-a/2-h.left,-r-p.size/2-h.top,a+h.width,p.size+h.height)}ue(n,l.label,0,-r,p,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),n.restore()}drawTitle(){}},TimeScale:Do,TimeSeriesScale:class X_ extends Do{static id="timeseries";static defaults=Do.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const n=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(n);this._minPos=Hi(t,this.min),this._tableRange=Hi(t,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){const{min:t,max:i}=this,o=[],r=[];let a,l,c,d,p;for(a=0,l=n.length;a<l;++a)d=n[a],d>=t&&d<=i&&o.push(d);if(o.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(a=0,l=o.length;a<l;++a)p=o[a+1],c=o[a-1],d=o[a],Math.round((p+c)/2)!==d&&r.push({time:d,pos:a/(l-1)});return r}_generate(){const n=this.min,t=this.max;let i=super.getDataTimestamps();return(!i.includes(n)||!i.length)&&i.splice(0,0,n),(!i.includes(t)||1===i.length)&&i.push(t),i.sort((o,r)=>o-r)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return n=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,n=this._cache.all=n,n}getDecimalForValue(n){return(Hi(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){const t=this._offsets,i=this.getDecimalForPixel(n)/t.factor-t.end;return Hi(this._table,i*this._tableRange+this._minPos,!0)}}}));const Ot=["*"];function K_(e,n){if(1&e&&s.nrm(0,"i",7),2&e){const t=s.XpG(2);s.Y8G("ngClass",t.icon)}}function Q_(e,n){if(1&e&&s.nrm(0,"img",8),2&e){const t=s.XpG(2);s.Y8G("ngClass",t.icon)("src",t.iconSrc,s.B4B)}}function J_(e,n){if(1&e&&s.DNE(0,K_,1,1,"i",5)(1,Q_,1,2,"img",6),2&e){const t=s.XpG();s.Y8G("ngIf",t.icon.length>0),s.R7$(),s.Y8G("ngIf",t.iconSrc.length>0)}}function Z_(e,n){1&e&&s.eu8(0)}function tb(e,n){if(1&e&&(s.qex(0),s.DNE(1,Z_,1,0,"ng-container",9),s.bVm()),2&e){s.XpG();const t=s.sdS(1);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function eb(e,n){1&e&&(s.j41(0,"div",10),s.SdG(1),s.k0s())}function nb(e,n){1&e&&s.eu8(0)}function ib(e,n){if(1&e&&(s.qex(0),s.DNE(1,nb,1,0,"ng-container",9),s.bVm()),2&e){s.XpG();const t=s.sdS(1);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function sb(e,n){if(1&e&&s.nrm(0,"i",7),2&e){const t=s.XpG(2);s.Y8G("ngClass",t.icon)}}function ob(e,n){if(1&e&&s.nrm(0,"img",8),2&e){const t=s.XpG(2);s.Y8G("ngClass",t.icon)("src",t.iconSrc,s.B4B)}}function rb(e,n){if(1&e&&s.DNE(0,sb,1,1,"i",5)(1,ob,1,2,"img",6),2&e){const t=s.XpG();s.Y8G("ngIf",t.icon.length>0),s.R7$(),s.Y8G("ngIf",t.iconSrc.length>0)}}function ab(e,n){1&e&&s.eu8(0)}function lb(e,n){if(1&e&&(s.qex(0),s.DNE(1,ab,1,0,"ng-container",9),s.bVm()),2&e){s.XpG();const t=s.sdS(1);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function cb(e,n){1&e&&(s.j41(0,"div",10),s.SdG(1),s.k0s())}function db(e,n){1&e&&s.eu8(0)}function pb(e,n){if(1&e&&(s.qex(0),s.DNE(1,db,1,0,"ng-container",9),s.bVm()),2&e){s.XpG();const t=s.sdS(1);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}const No=["trigger"],hb=["tooltip"],gb=[[["","pdsNgTooltipTrigger",""]],[["","pdsNgTooltipContent",""]],[["","pdsNgToggletipHeader",""]],[["","pdsNgToggletipContent",""]]],ub=["[pdsNgTooltipTrigger]","[pdsNgTooltipContent]","[pdsNgToggletipHeader]","[pdsNgToggletipContent]"],fb=(e,n)=>({"pds-z-10":e,"pds-z-20":n}),mb=e=>({states:e}),_b=(e,n)=>({"pds-z-0":e,"pds-z-[15]":n});function bb(e,n){if(1&e&&(s.j41(0,"div",14),s.qex(1),s.EFF(2),s.bVm(),s.k0s()),2&e){const t=s.XpG(3);s.R7$(2),s.JRh(t.message)}}function vb(e,n){1&e&&(s.j41(0,"div",15),s.SdG(1,1),s.k0s())}function wb(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-button",22),s.bIt("onClick",function(){s.eBV(t);const o=s.XpG(4);return s.Njj(o.onActionButton1Click())}),s.EFF(1),s.k0s()}if(2&e){const t=s.XpG(4);s.Y8G("variant","primary")("block",!0),s.R7$(),s.JRh(t.actionText1)}}function yb(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-button",22),s.bIt("onClick",function(){s.eBV(t);const o=s.XpG(4);return s.Njj(o.onActionButton2Click())}),s.EFF(1),s.k0s()}if(2&e){const t=s.XpG(4);s.Y8G("variant","ghost")("block",!0),s.R7$(),s.JRh(t.actionText2)}}function Cb(e,n){if(1&e){const t=s.RV6();s.j41(0,"div",16)(1,"div",17),s.SdG(2,2),s.j41(3,"pds-ng-condensed-button",18),s.bIt("onClick",function(){s.eBV(t);const o=s.XpG(3);return s.Njj(o.hide())}),s.k0s()(),s.j41(4,"div",19),s.SdG(5,3),s.k0s(),s.j41(6,"div",20),s.DNE(7,wb,2,3,"pds-ng-button",21)(8,yb,2,3,"pds-ng-button",21),s.k0s()()}if(2&e){const t=s.XpG(3);s.R7$(3),s.Y8G("icon","fa-regular fa-sharp fa-xmark")("iconMode",!0),s.R7$(4),s.Y8G("ngIf",t.actionText1.length),s.R7$(),s.Y8G("ngIf",t.actionText2.length)}}function xb(e,n){if(1&e){const t=s.RV6();s.qex(0),s.j41(1,"div",7),s.bIt("mouseover",function(){s.eBV(t);const o=s.XpG(2);return s.Njj(!o.toggletip&&o.hide())})("click",function(){s.eBV(t);const o=s.XpG(2);return s.Njj(o.toggletip&&o.hide())}),s.k0s(),s.j41(2,"div",8,2),s.nrm(4,"div",9)(5,"div",10),s.DNE(6,bb,3,1,"div",11)(7,vb,2,0,"div",12)(8,Cb,9,4,"div",13),s.nrm(9,"div",10),s.k0s(),s.bVm()}if(2&e){const t=s.XpG(2);s.R7$(),s.Y8G("ngClass",s.l_i(5,_b,!t.toggletip,t.toggletip)),s.R7$(),s.BMQ("tooltip-position",t.currentPosition),s.R7$(4),s.Y8G("ngIf",!t.toggletip&&(null==t.message?null:t.message.length)),s.R7$(),s.Y8G("ngIf",!(t.toggletip||null!=t.message&&t.message.length)),s.R7$(),s.Y8G("ngIf",t.toggletip)}}
1function kb(e,n){1&e&&s.DNE(0,xb,10,8,"ng-container",6),2&e&&s.Y8G("ngIf","show"===n.states)}function Pb(e,n){1&e&&s.eu8(0)}const Io=(e,n)=>({disabled:e,critical:n});function Ob(e,n){if(1&e){const t=s.RV6();s.j41(0,"i",4),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.remove())}),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("ngClass",s.l_i(1,Io,t.disabled,t.critical))}}const Fc=["input"],Mb=(e,n)=>({"fa-sharp fa-regular pds-ng-text-input-icon pds-ng-text-input-tooltip":!0,"fa-circle-question":e,"fa-circle-exclamation --error":n}),Sb=(e,n)=>({"fa-regular pds-ng-text-input-icon":!0,"fa-eye":e,"fa-eye-slash":n});function Tb(e,n){if(1&e){const t=s.RV6();s.j41(0,"input",8,5),s.bIt("keydown",function(o){s.eBV(t);const r=s.XpG();return s.Njj(r.handleDateInputField(o))}),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("name",t.name)("value",t.value)("type",t.inputType)("disabled",t.disabled)("readonly",t.readOnly)("placeholder",t.placeholder)}}function Db(e,n){if(1&e&&(s.j41(0,"pds-ng-tooltip",9),s.nrm(1,"i",10),s.k0s()),2&e){const t=s.XpG();s.Y8G("message",t.tooltipText)("position",t.tooltipPosition),s.R7$(),s.Y8G("ngClass",s.l_i(3,Mb,!t.error,t.error))}}function Nb(e,n){1&e&&s.nrm(0,"i",13)}function Ib(e,n){if(1&e){const t=s.RV6();s.DNE(0,Nb,1,0,"i",11),s.j41(1,"i",12),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.toggleShowPassword())}),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("ngIf",t.isCapsLockOn),s.R7$(),s.Y8G("ngClass",s.l_i(2,Sb,t.showPassword,!t.showPassword))}}function Rb(e,n){if(1&e){const t=s.RV6();s.j41(0,"section",14)(1,"button",15),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.onInlineAccept())}),s.nrm(2,"i",16),s.k0s(),s.j41(3,"button",15),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.onInlineDecline())}),s.nrm(4,"i",17),s.k0s()()}if(2&e){const t=s.XpG();s.R7$(),s.Y8G("disabled",t.disabled),s.R7$(2),s.Y8G("disabled",t.disabled)}}function Eb(e,n){if(1&e){const t=s.RV6();s.j41(0,"section",18)(1,"button",19),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.onCopy(o.value))}),s.j41(2,"div",20)(3,"span",21),s.nrm(4,"i",22),s.j41(5,"span",23),s.EFF(6," Copy "),s.k0s()()()()()}if(2&e){const t=s.XpG();s.R7$(),s.Y8G("disabled",t.disabled)}}function Ab(e,n){1&e&&(s.j41(0,"span"),s.EFF(1,"*"),s.k0s())}function Bb(e,n){if(1&e&&(s.j41(0,"label",29),s.EFF(1),s.DNE(2,Ab,2,0,"span",26),s.k0s()),2&e){const t=s.XpG(2);s.Y8G("for",t.name),s.R7$(),s.SpI("",t.label," "),s.R7$(),s.Y8G("ngIf",t.isRequired)}}function Fb(e,n){if(1&e&&(s.qex(0),s.nrm(1,"i"),s.bVm()),2&e){const t=s.XpG(2);s.R7$(),s.ZvI("",t.prefixIcon," fa pds-ng-text-input-icon --prefix")}}function Lb(e,n){if(1&e){const t=s.RV6();s.qex(0),s.j41(1,"input",30,5),s.bIt("input",function(o){s.eBV(t);const r=s.XpG(2);return s.Njj(r.onInput(o))}),s.k0s(),s.bVm()}if(2&e){const t=s.XpG(2);s.R7$(),s.Y8G("name",t.name)("value",t.value)("type",t.inputType)("disabled",t.disabled)("readonly",t.readOnly)("placeholder",t.placeholder)}}function jb(e,n){1&e&&s.eu8(0)}function Gb(e,n){if(1&e&&(s.qex(0),s.DNE(1,jb,1,0,"ng-container",31),s.bVm()),2&e){s.XpG(2);const t=s.sdS(5);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function $b(e,n){1&e&&s.eu8(0)}function Vb(e,n){if(1&e&&(s.qex(0),s.DNE(1,$b,1,0,"ng-container",31),s.bVm()),2&e){s.XpG(2);const t=s.sdS(3);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function Yb(e,n){if(1&e&&(s.qex(0),s.j41(1,"div",32),s.EFF(2),s.k0s(),s.bVm()),2&e){const t=s.XpG(2);s.R7$(),s.Y8G("title",t.trailingText),s.R7$(),s.SpI(" ",t.trailingText," ")}}function zb(e,n){1&e&&s.eu8(0)}function Hb(e,n){if(1&e&&(s.qex(0),s.DNE(1,zb,1,0,"ng-container",31),s.bVm()),2&e){s.XpG(2);const t=s.sdS(7);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function Xb(e,n){1&e&&s.eu8(0)}function Wb(e,n){if(1&e&&(s.qex(0),s.DNE(1,Xb,1,0,"ng-container",31),s.bVm()),2&e){s.XpG(2);const t=s.sdS(9);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function Ub(e,n){if(1&e&&(s.j41(0,"span"),s.EFF(1),s.k0s()),2&e){const t=s.XpG(2);s.R7$(),s.JRh(t.hint)}}function qb(e,n){if(1&e&&(s.j41(0,"section"),s.DNE(1,Bb,3,3,"label",24),s.j41(2,"section",25),s.DNE(3,Fb,2,3,"ng-container",26),s.j41(4,"section",27),s.DNE(5,Lb,3,6,"ng-container",28)(6,Gb,2,1,"ng-container",26)(7,Vb,2,1,"ng-container",26),s.k0s(),s.DNE(8,Yb,3,2,"ng-container",26)(9,Hb,2,1,"ng-container",26)(10,Wb,2,1,"ng-container",26),s.k0s(),s.DNE(11,Ub,2,1,"span",26),s.k0s()),2&e){const t=s.XpG(),i=s.sdS(1);s.ZvI("",t.rootClass," pds-flex pds-flex-col"),s.R7$(),s.Y8G("ngIf",t.label),s.R7$(2),s.Y8G("ngIf",t.prefixIcon),s.R7$(2),s.Y8G("ngIf","date"!==t.controlType)("ngIfElse",i),s.R7$(),s.Y8G("ngIf","password"===t.controlType),s.R7$(),s.Y8G("ngIf","password"!==t.controlType&&t.tooltipText),s.R7$(),s.Y8G("ngIf","trailing-text"===t.variant),s.R7$(),s.Y8G("ngIf","inline-edit"===t.variant),s.R7$(),s.Y8G("ngIf","copy"===t.variant),s.R7$(),s.Y8G("ngIf",t.hint)}}function Kb(e,n){1&e&&(s.j41(0,"span"),s.EFF(1,"*"),s.k0s())}function Qb(e,n){if(1&e&&(s.j41(0,"label",29),s.EFF(1),s.DNE(2,Kb,2,0,"span",26),s.k0s()),2&e){const t=s.XpG(2);
1s.Y8G("for",t.name),s.R7$(),s.SpI("",t.label," "),s.R7$(),s.Y8G("ngIf",t.isRequired)}}function Jb(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-tags",37),s.bIt("removeTag",function(){const o=s.eBV(t).$implicit,r=s.XpG(2);return s.Njj(r.removeTag(o))})("keydown",function(o){const r=s.eBV(t).index,a=s.XpG(2);return s.Njj(a.handleKeyDown(o,r))})("click",function(o){s.eBV(t);const r=s.XpG(2);return s.Njj(r.focusTag(o))}),s.k0s()}if(2&e){const t=n.$implicit,i=s.XpG(2);s.Y8G("value",t)("critical",i.isCritical(t))}}function Zb(e,n){1&e&&s.eu8(0)}function tv(e,n){if(1&e&&(s.qex(0),s.DNE(1,Zb,1,0,"ng-container",31),s.bVm()),2&e){s.XpG(2);const t=s.sdS(3);s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function ev(e,n){if(1&e&&(s.j41(0,"span"),s.EFF(1),s.k0s()),2&e){const t=s.XpG(2);s.R7$(),s.JRh(t.hint)}}function nv(e,n){if(1&e){const t=s.RV6();s.j41(0,"section"),s.DNE(1,Qb,3,3,"label",24),s.j41(2,"section",33)(3,"section",34),s.DNE(4,Jb,1,2,"pds-ng-tags",35),s.j41(5,"input",36,6),s.mxI("ngModelChange",function(o){s.eBV(t);const r=s.XpG();return s.DH7(r.enteredValue,o)||(r.enteredValue=o),s.Njj(o)}),s.bIt("keydown",function(o){s.eBV(t);const r=s.XpG();return s.Njj(r.onKeyDown(o))})("blur",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.onBlur())})("input",function(o){s.eBV(t);const r=s.XpG();return s.Njj(r.onInput(o))}),s.k0s()(),s.DNE(7,tv,2,1,"ng-container",26),s.k0s(),s.DNE(8,ev,2,1,"span",26),s.k0s()}if(2&e){const t=s.XpG();s.ZvI("",t.rootClass," pds-flex pds-flex-col"),s.R7$(),s.Y8G("ngIf",t.label),s.R7$(3),s.Y8G("ngForOf",t.customEnteredTags),s.R7$(),s.Y8G("name",t.name)("type",t.inputType)("disabled",t.disabled)("readonly",t.readOnly)("placeholder",t.placeholder),s.R50("ngModel",t.enteredValue),s.R7$(2),s.Y8G("ngIf","password"!==t.controlType&&t.tooltipText),s.R7$(),s.Y8G("ngIf",t.hint)}}const Xi=e=>({disabled:e}),Lc=(e,n,t)=>({"toggle-on":e,"toggle-off":n,disabled:t});function Hv(e,n){1&e&&(s.j41(0,"span"),s.EFF(1,"*"),s.k0s())}function Xv(e,n){if(1&e&&(s.j41(0,"span",4),s.EFF(1),s.DNE(2,Hv,2,0,"span",5),s.k0s()),2&e){const t=s.XpG();s.Y8G("ngClass",s.eq3(3,Xi,t.disabled)),s.R7$(),s.SpI("",t.label," "),s.R7$(),s.Y8G("ngIf",t.isRequired)}}function r0(e,n){if(1&e&&(s.qSk(),s.j41(0,"svg",5),s.nrm(1,"path",6),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.Y8G("ngClass",t.disabled?"pds-fill-btn-disabled-icon":"pds-fill-btn-enabled-icon")}}function a0(e,n){if(1&e&&(s.qSk(),s.j41(0,"svg",7),s.nrm(1,"rect",8),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.Y8G("ngClass",t.disabled?"pds-fill-btn-disabled-icon":"pds-fill-btn-enabled-icon")}}function l0(e,n){1&e&&(s.j41(0,"span"),s.EFF(1,"*"),s.k0s())}function c0(e,n){if(1&e&&(s.j41(0,"span",9),s.EFF(1),s.DNE(2,l0,2,0,"span",10),s.k0s()),2&e){const t=s.XpG();s.Y8G("ngClass",s.eq3(3,Xi,t.disabled)),s.R7$(),s.SpI("",t.label," "),s.R7$(),s.Y8G("ngIf",t.isRequired)}}const d0=[[["",8,"callouttitle"]],[["",8,"calloutdescription"]]],p0=[".calloutTitle",".calloutDescription"],h0=(e,n,t,i)=>({"fa-circle-info":e,"fa-triangle-exclamation":n,"fa-circle-check":t,"fa-circle-exclamation":i});function g0(e,n){if(1&e&&(s.j41(0,"span"),s.EFF(1),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.JRh(t.bannerConfig.title)}}function u0(e,n){if(1&e&&(s.j41(0,"span"),s.EFF(1),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.JRh(t.bannerConfig.description)}}function f0(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-condensed-button",8),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.triggerAction("primary"))}),s.EFF(1),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("variant",t.type)("ngClass","pds-mr-4"),s.R7$(),s.SpI(" ",t.bannerConfig.primaryBtn," ")}}function m0(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-condensed-button",9),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.triggerAction("secondary"))}),s.EFF(1),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("variant",t.type),s.R7$(),s.SpI(" ",t.bannerConfig.secondaryBtn," ")}}function _0(e,n){if(1&e){const t=s.RV6();s.j41(0,"div")(1,"pds-ng-condensed-button",10),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.dismiss())}),s.k0s()()}if(2&e){const t=s.XpG();s.R7$(),s.Y8G("variant",t.type)("iconMode",!0)("icon","fa-regular fa-sharp fa-xmark")}}const Wi=e=>({selected:e});const iw=["modal"],sw=["modalBackdrop"],ow=["header"],rw=["modalBody"],aw=["bodyContent"],lw=["*",[["","primaryButton",""]],[["","secondaryButton",""]]],cw=["*","[primaryButton]","[secondaryButton]"];function dw(e,n){1&e&&s.nrm(0,"div",18)}function pw(e,n){1&e&&s.nrm(0,"div",19)}function hw(e,n){1&e&&s.nrm(0,"div",20)}const $c=e=>({hasErrors:e}),Ui=e=>({width:e});function gw(e,n){if(1&e){const t=s.RV6();s.qex(0),s.j41(1,"i",7),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.focusInputField())}),s.k0s(),s.bVm()}if(2&e){const t=s.XpG();s.R7$(),s.ZvI("",t.prefixIcon," pds-font-normal pds-text-lg pds-absolute pds-top-2 pds-left-3 pds-p-0.5 pds-text-content-on-surface-weak")}}function uw(e,n){if(1&e){const t=s.RV6();s.j41(0,"i",8),s.bIt("click",function(){s.eBV(t);const o=s.XpG();return s.Njj(o.handleClearClick())}),s.k0s()}}function fw(e,n){if(1&e&&(s.j41(0,"span",9),s.EFF(1),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.JRh(t.helpText)}}const mw=["dropdownEl"],_w=["dropdownBtn"],bw=["tagsContainer"],vw=["dropdownOptionsContainer"],ww=[[["","helpTextSlot",""]],[["","dropdownTooltip",""]]],yw=["[helpTextSlot]","[dropdownTooltip]"],Cw=e=>({"disabled-dropdown":e}),Vc=(e,n)=>({"fa-chevron-up":e,"fa-chevron-down":n}),xw=e=>({"pds-min-w-1/2 pds-max-w-2/3":e}),Ce=()=>[],kw=(e,n)=>({selected:e,"pds-hidden":n}),Yc=e=>({"pds-items-center":e});function Pw(e,n){if(1&e&&s.nrm(0,"img",21),2&e){const t=s.XpG(2);s.Y8G("src",t.selectedItems[0].optionIconPath,s.B4B)}}function Ow(e,n){if(1&e&&(s.j41(0,"span")(1,"div",18),s.DNE(2,Pw,1,1,"img",19),s.j41(3,"span",20),s.EFF(4),s.k0s()()()),2&e){const t=s.XpG();s.R7$(2),s.Y8G("ngIf",t.selectedItems[0].optionIconPath),s.R7$(2),s.SpI(" ",t.selectedItems[0].optionMetadata?t.selectedItems[0].optionMetadata:t.selectedItems[0].optionText," ")}}function Mw(e,n){1&e&&(s.j41(0,"span",24),s.EFF(1,"*"),s.k0s())}function Sw(e,n){if(1&e&&(s.j41(0,"span",22),s.EFF(1),s.DNE(2,Mw,2,0,"span",23),s.SdG(3,1),s.k0s()),2&e){const t=s.XpG();
1s.R7$(),s.SpI("",t.label," "),s.R7$(),s.Y8G("ngIf",t.isRequired)}}function Tw(e,n){if(1&e&&(s.j41(0,"span",25),s.EFF(1),s.k0s()),2&e){const t=s.XpG();s.R7$(),s.JRh(t.placeholder)}}function Dw(e,n){if(1&e&&s.nrm(0,"img",21),2&e){const t=s.XpG(3);s.Y8G("src",t.selectedItems[0].optionIconPath,s.B4B)}}function Nw(e,n){if(1&e&&(s.j41(0,"span")(1,"div",18),s.DNE(2,Dw,1,1,"img",19),s.j41(3,"span",28),s.EFF(4),s.k0s(),s.j41(5,"span",29),s.EFF(6),s.k0s()()()),2&e){const t=s.XpG(2);s.R7$(2),s.Y8G("ngIf",t.selectedItems[0].optionIconPath),s.R7$(),s.Y8G("ngClass",s.eq3(4,xw,t.selectedItems[0].optionMetadata)),s.R7$(),s.JRh(t.selectedItems[0].optionText),s.R7$(2),s.JRh(t.selectedItems[0].optionMetadata)}}function Iw(e,n){if(1&e&&(s.j41(0,"span",26),s.DNE(1,Nw,7,6,"span",27),s.k0s()),2&e){const t=s.XpG(),i=s.sdS(1);s.R7$(),s.Y8G("ngIf",!t.isOptionMetadataAsDisplayText)("ngIfElse",i)}}function Rw(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-tags",33),s.bIt("removeTag",function(){const o=s.eBV(t).$implicit,r=s.XpG(2);return s.Njj(r.itemClicked(o))}),s.k0s()}if(2&e){const t=n.$implicit;s.Y8G("tag_id",t.optionId)("value",t.optionText)("disabled",!1)}}function Ew(e,n){if(1&e){const t=s.RV6();s.j41(0,"pds-ng-tags",34),s.bIt("click",function(){s.eBV(t);const o=s.XpG(2);return s.Njj(o.toggleDropdown(!0))}),s.k0s()}if(2&e){const t=s.XpG(2);s.Y8G("value",t.getShowMoreText())}}function Aw(e,n){if(1&e&&(s.j41(0,"div",30,3),s.DNE(2,Rw,1,3,"pds-ng-tags",31)(3,Ew,1,1,"pds-ng-tags",32),s.nrm(4,"span"),s.k0s()),2&e){const t=s.XpG();s.R7$(2),s.Y8G("ngForOf",t.tagsToShow),s.R7$(),s.Y8G("ngIf",t.selectedItems.length-t.tagsToShow.length>0&&t.selectedItems.length&&!t.isOpen)}}function Bw(e,n){if(1&e){const t=s.RV6();s.j41(0,"input",35),s.bIt("input",function(o){s.eBV(t);const r=s.XpG();return s.Njj(r.filterOptions(o.target))}),s.k0s()}if(2&e){const t=s.XpG();s.Y8G("placeholder",t.placeholder)("ngClass","Combobox"===t.type?"search-filter":"")("disabled",t.disabled)}}function Fw(e,n){if(1&e){const t=s.RV6();s.qex(0),s.j41(1,"div",38)(2,"pds-ng-search",39),s.bIt("onClear",function(){s.eBV(t);const o=s.XpG(2);return s.Njj(o.emitSearchFilterEvent(""))})("onSearch",function(o){s.eBV(t);const r=s.XpG(2);return s.Njj(r.emitSearchFilterEvent(o))}),s.k0s()(),s.bVm()}if(2&e){const t=s.XpG(2);s.R7$(2),s.Y8G("debounced",!0)("debounceDelay",500)("placeholder",t.searchFilterPlaceholder)}}function Lw(e,n){if(1&e){const t=s.RV6();s.qex(0),s.j41(1,"button",41),s.bIt("click",function(){s.eBV(t);const o=s.XpG(3);return s.Njj(o.toggleSelectAll())}),s.j41(2,"span",42),s.nrm(3,"pds-ng-checkbox",43),s.j41(4,"div",44),s.EFF(5,"Select All"),s.k0s()()(),s.nrm(6,"div",45),s.bVm()}if(2&e){const t=s.XpG(3);s.R7$(),s.Y8G("ngClass",s.eq3(4,Wi,t.allSelected)),s.R7$(2),s.Y8G("disabled",!1)("value",t.allSelected)("indeterminate",!t.allSelected&&0!==t.selectedItems.length)}}function jw(e,n){if(1&e&&(s.j41(0,"div",48),s.EFF(1),s.k0s()),2&e){const t=s.XpG(2).$implicit;s.R7$(),s.JRh(t.groupLabel)}}function Gw(e,n){if(1&e&&s.nrm(0,"pds-ng-checkbox",56),2&e){const t=s.XpG().$implicit,i=s.XpG(5);s.Y8G("disabled",!1)("value",i.amISelected(t))}}function $w(e,n){if(1&e&&s.nrm(0,"img",21),2&e){const t=s.XpG().$implicit;s.Y8G("src",t.optionIconPath,s.B4B)}}function Vw(e,n){if(1&e&&(s.j41(0,"span",57)(1,"span",58),s.EFF(2),s.k0s()()),2&e){const t=s.XpG().$implicit;s.R7$(),s.Y8G("title",t.optionMetadata),s.R7$(),s.JRh(t.optionMetadata)}}function Yw(e,n){1&e&&s.nrm(0,"i",59)}function zw(e,n){if(1&e){const t=s.RV6();s.j41(0,"button",41),s.bIt("click",function(){const o=s.eBV(t).$implicit,r=s.XpG(5);return s.Njj(r.itemClicked(o))}),s.j41(1,"span",49)(2,"span",50),s.DNE(3,Gw,1,2,"pds-ng-checkbox",51),s.j41(4,"div",52),s.DNE(5,$w,1,1,"img",19),s.j41(6,"div",44)(7,"span",53),s.EFF(8),s.k0s(),s.DNE(9,Vw,3,2,"span",54),s.k0s()()(),s.DNE(10,Yw,1,0,"i",55),s.k0s()()}if(2&e){const t=n.$implicit,i=s.XpG(5);s.Y8G("ngClass",s.l_i(8,kw,i.amISelected(t),!!i.selectedOnly&&!i.amISelected(t))),s.R7$(),s.Y8G("ngClass",s.eq3(11,Yc,!(null!=t.optionMetadata&&t.optionMetadata.length))),s.R7$(2),s.Y8G("ngIf",!i.isSingleSelect),s.R7$(2),s.Y8G("ngIf",t.optionIconPath),s.R7$(2),s.Y8G("title",t.optionText),s.R7$(),s.Sp
1I(" ",t.optionText," "),s.R7$(),s.Y8G("ngIf",null==t.optionMetadata?null:t.optionMetadata.length),s.R7$(),s.Y8G("ngIf",i.isSingleSelect&&i.amISelected(t))}}function Hw(e,n){if(1&e&&(s.qex(0),s.DNE(1,jw,2,1,"div",46)(2,zw,11,13,"button",47),s.bVm()),2&e){const t=s.XpG().$implicit;s.R7$(),s.Y8G("ngIf",t.groupLabel.length>0),s.R7$(),s.Y8G("ngForOf",null==t?null:t.items)}}function Xw(e,n){if(1&e&&(s.qex(0),s.DNE(1,Hw,3,2,"ng-container",37),s.bVm()),2&e){const t=s.XpG(3);s.R7$(),s.Y8G("ngIf",(null==t.filteredOptions[0]||null==t.filteredOptions[0].items?null:t.filteredOptions[0].items.length)>0)}}function Ww(e,n){1&e&&(s.qex(0),s.j41(1,"div",60)(2,"div",61),s.nrm(3,"img",62),s.j41(4,"h3",63),s.EFF(5,"No results found"),s.k0s(),s.j41(6,"div",64),s.EFF(7," We couldn't find what you are looking for "),s.k0s()()(),s.bVm())}function Uw(e,n){if(1&e&&(s.qex(0),s.DNE(1,Lw,7,6,"ng-container",37)(2,Xw,2,1,"ng-container",40)(3,Ww,8,0,"ng-container",37),s.bVm()),2&e){const t=s.XpG(2);s.R7$(),s.Y8G("ngIf",!t.isSingleSelect&&(null==t.filteredOptions[0]||null==t.filteredOptions[0].items?null:t.filteredOptions[0].items.length)>0),s.R7$(),s.Y8G("ngForOf",t.filteredOptions),s.R7$(),s.Y8G("ngIf",0===(null==(t.filteredOptions||s.lJ4(3,Ce))[0]||null==(t.filteredOptions||s.lJ4(4,Ce))[0].items?null:(t.filteredOptions||s.lJ4(5,Ce))[0].items.length)||t.showSearchFilter&&0===(null==t.options?null:t.options.length))}}function qw(e,n){1&e&&(s.qex(0),s.j41(1,"div",65),s.nrm(2,"span",66),s.k0s(),s.bVm())}function Kw(e,n){if(1&e&&(s.j41(0,"div",36,4),s.DNE(2,Fw,3,3,"ng-container",37)(3,Uw,4,6,"ng-container",37)(4,qw,3,0,"ng-container",37),s.k0s()),2&e){const t=s.XpG();s.R7$(2),s.Y8G("ngIf",t.showSearchFilter),s.R7$(),s.Y8G("ngIf",!t.isSearchLoader),s.R7$(),s.Y8G("ngIf",t.showSearchFilter&&t.isSearchLoader)}}let Ke=(()=>{class e{constructor(){this.computedClass="pds-ng-button",this.variant="primary",this.type="button",this.destructive=!1,this.iconMode=!1,this.iconPos="right",this.iconSrc="",this.size="sm",this.disabled=!1,this.onClick=new s.bkB,this.icon="",this.block=!1}ngOnInit(){this.updateClasses()}ngOnChanges(){this.updateClasses()}updateClasses(){const t=[`pds-ng-button ${this.size} ${this.variant}`,this.destructive?"destructive":"",this.iconMode?"icon-only":""];"boolean"==typeof this.block?t.push(this.block?"pds-w-full":""):Object.entries(this.block).forEach(([i,o])=>{const r="default"!==i?`${i}:`:"";t.push(o?`${r}pds-w-full`:`${r}pds-w-fit`)}),this.computedClass=t.join(" ")}get showIconOutlet(){return this.icon.length>0||this.iconSrc.length>0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-button"]],inputs:{variant:"variant",type:"type",destructive:"destructive",iconMode:"iconMode",iconPos:"iconPos",iconSrc:"iconSrc",size:"size",disabled:"disabled",icon:"icon",block:"block"},outputs:{onClick:"onClick"},standalone:!1,features:[s.OA$],ngContentSelectors:Ot,decls:7,vars:7,consts:[["iconTemplate",""],[3,"click","type","disabled"],[1,"pds-justify-center"],[4,"ngIf"],["class","content",4,"ngIf"],["class","pds-ng-button-icon fal",3,"ngClass",4,"ngIf"],["class","pds-ng-button-icon fal",3,"ngClass","src",4,"ngIf"],[1,"pds-ng-button-icon","fal",3,"ngClass"],[1,"pds-ng-button-icon","fal",3,"ngClass","src"],[4,"ngTemplateOutlet"],[1,"content"]],template:function(t,i){if(1&t){const o=s.RV6();s.NAR(),s.DNE(0,J_,2,2,"ng-template",null,0,s.C5r),s.j41(2,"button",1),s.bIt("click",function(a){return s.eBV(o),s.Njj(i.onClick.emit(a))}),s.j41(3,"span",2),s.DNE(4,tb,2,1,"ng-container",3)(5,eb,2,0,"div",4)(6,ib,2,1,"ng-container",3),s.k0s()()}2&t&&(s.R7$(2),s.HbH(i.computedClass),s.Y8G("type",i.type)("disabled",i.disabled),s.R7$(2),s.Y8G("ngIf",i.showIconOutlet&&"left"===i.iconPos),s.R7$(),s.Y8G("ngIf",!i.iconMode),s.R7$(),s.Y8G("ngIf",i.showIconOutlet&&"right"===i.iconPos))},dependencies:[k.YU,k.bT,k.T3],styles:[".pds-ng-button[_ngcontent-%COMP%]{transition:all .1s linear;box-sizing:border-box;white-space:nowrap;border-radius:var(--border-radius-default)}.pds-ng-button[_ngcontent-%COMP%]:not(.icon-only)   .pds-ng-button-icon[_ngcontent-%COMP%]:first-child{padding-right:var(--space-250)}.pds-ng-button[_ngcontent-%COMP%]:not(.icon-only)   .pds-ng-button-icon[_ngcontent-%COMP%]:last-child{padding-left:var(--space-250)}.pds-ng-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:16px;height:16px}.pds-ng-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex}.pds-ng-button[_ngcontent-%COMP%]   i.fal[_ngcontent-%COMP%]{align-self:center;font-size:var(--font-size-text-lg)}.pds-ng-button[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-family:var(--utility-small-strong-font-family);font-size:var(--utility-small-strong-font-size);line-height:var(--utility-small-strong-line-height);
1font-weight:var(--utility-small-strong-font-weight)}.pds-ng-button[_ngcontent-%COMP%]:disabled, .pds-ng-button.skeleton[_ngcontent-%COMP%]{pointer-events:none}.pds-ng-button.sm[_ngcontent-%COMP%]{padding-top:var(--space-250);padding-bottom:var(--space-250);padding-left:var(--space-400);padding-right:var(--space-400);height:2.25rem;font-size:var(--utility-small-strong-font-size);line-height:var(--utility-small-strong-line-height);font-weight:var(--utility-small-strong-font-weight)}.pds-ng-button.sm.icon-only[_ngcontent-%COMP%]{padding:var(--space-250);height:2.25rem;width:2.25rem}.pds-ng-button.lg[_ngcontent-%COMP%]{padding-top:var(--space-300);padding-bottom:var(--space-300);padding-left:var(--space-400);padding-right:var(--space-400)}.pds-ng-button.lg[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:18px;height:18px}.pds-ng-button.lg.icon-only[_ngcontent-%COMP%]{padding-top:var(--space-300);padding-bottom:var(--space-300);padding-left:var(--space-300);padding-right:var(--space-300);height:2.75rem;width:2.75rem}.pds-ng-button.lg[_ngcontent-%COMP%]   i.fal[_ngcontent-%COMP%]{align-self:center;font-size:var(--font-size-text-xxl)}.pds-ng-button.lg[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-family:var(--utility-large-strong-font-family);font-size:var(--utility-large-strong-font-size);line-height:var(--utility-large-strong-line-height);font-weight:var(--utility-large-strong-font-weight)}.pds-ng-button.skeleton[_ngcontent-%COMP%]{background-color:var(--content-on-surface-skeleton-loading)}@keyframes _ngcontent-%COMP%_pds-pulse{50%{opacity:.5}}.pds-ng-button.skeleton[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pds-pulse 2s cubic-bezier(.4,0,.6,1) infinite;color:var(--content-on-surface-skeleton-loading)}.pds-ng-button.social[_ngcontent-%COMP%]{background-color:var(--background-surface-weak);border-width:var(--border-width-default);border-color:var(--border-on-surface-medium);color:var(--content-on-surface-strong)}.pds-ng-button.social[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-selected)}.pds-ng-button.social[_ngcontent-%COMP%]:disabled{--tw-ring-color: var(--background-critical-disabled);color:var(--content-on-primary-disabled)}.pds-ng-button.social[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-button.primary[_ngcontent-%COMP%], .pds-ng-button.submit[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-color:var(--border-on-surface-primary);color:var(--content-on-primary-weak);background-color:var(--background-primary-strong)}.pds-ng-button.primary[_ngcontent-%COMP%]:focus, .pds-ng-button.primary[_ngcontent-%COMP%]:focus-visible, .pds-ng-button.submit[_ngcontent-%COMP%]:focus, .pds-ng-button.submit[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-button.primary[_ngcontent-%COMP%]:hover, .pds-ng-button.submit[_ngcontent-%COMP%]:hover{border-width:var(--border-width-default);border-color:var(--background-primary-strong-hover);background-color:var(--background-primary-strong-hover)}.pds-ng-button.primary[_ngcontent-%COMP%]:disabled, .pds-ng-button.submit[_ngcontent-%COMP%]:disabled{background-color:var(--background-critical-disabled);--tw-ring-color: var(--background-critical-disabled);color:var(--content-on-primary-disabled);border-width:var(--border-width-none)}.pds-ng-button.primary.destructive[_ngcontent-%COMP%], .pds-ng-button.submit.destructive[_ngcontent-%COMP%]{background-color:var(--background-critical-moderate);--tw-ring-color: var(--background-critical-moderate)}.pds-ng-button.primary.destructive[_ngcontent-%COMP%]:disabled, .pds-ng-button.submit.destructive[_ngcontent-%COMP%]:disabled{background-color:var(--background-critical-disabled);color:var(--content-on-primary-disabled)}.pds-ng-button.primary.destructive[_ngcontent-%COMP%]:hover, .pds-ng-button.submit.destructive[_ngcontent-%COMP%]:hover{background-color:var(--background-critical-moderate-hover)}.pds-ng-button.primary.destructive[_ngcontent-%COMP%]:active, .pds-ng-button.primary.destructive[_ngcontent-%COMP%]:focus-visible, .pds-ng-button.submit.destructive[_ngcontent-%COMP%]:active, .pds-ng-button.submit.destructive[_ngcontent-%COMP%]:focus-visible{border-width:var(--border-width-default);--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity));--tw-ring-color: var(--focus-danger-color)}.pds-ng-button.ghost[_ngcontent-%COMP%], .pds-ng-button.secondary[_ngcontent-%COMP%]{color:var(--content-on-surface-primary)}.pds-ng-button.ghost[_ngcontent-%COMP%]:hover, .pds-ng-button.secondary[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-weak-hover)}.pds-ng-button.ghost[_ngcontent-%COMP%]:focus, .pds-ng-button.ghost[_ngcontent-%COMP%]:focus-visible, .pds-ng-button.secondary[_ngcontent-%COMP%]:focus, .pds-ng-button.secondary[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-button.ghost[_ngcontent-%COMP%]:disabled, .pds-ng-button.secondary[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-button.ghost.destructive[_ngcontent-%COMP%], .pds-ng-button.secondary.destructive[_ngcontent-%COMP%]{background-color:var(--color-secondary-default);color:var(--background-critical-moderate)}.pds-ng-button.ghost.destructive[_ngcontent-%COMP%]:disabled, .pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-button.ghost.destructive[_ngcontent-%COMP%]:hover, .pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-critical-hover)}.pds-ng-button.ghost.destructive[_ngcontent-%COMP%]:focus-visible, .pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:focus-visible{--tw-ring-color: var(--focus-danger-color)}.pds-ng-button.secondary[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-color:var(--border-on-surface-primary)}.pds-ng-button.secondary[_ngcontent-%COMP%]:focus-visible{border-width:var(--border-width-default);border-color:var(--border-on-surface-primary);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-button.secondary[_ngcontent-%COMP%]:disabled{border-width:var(--border-width-default);border-color:var(--border-on-surface-medium)}.pds-ng-button.secondary.destructive[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-color:var(--background-critical-moderate);background-color:var(--color-secondary-default);color:var(--background-critical-moderate)}.pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-critical-hover)}.pds-ng-button.secondary.destructive[_ngcontent-%COMP%]:focus-visible{border-width:var(--border-width-default);border-color:var(--background-critical-moderate);--tw-ring-color: var(--focus-danger-color)}.pds-ng-table[_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%], .pds-ng-table   [_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]{height:1.5rem;padding:0}.pds-ng-table   td.collapsed[_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%], .pds-ng-table   td.collapsed   [_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%], .pds-ng-table   td.expanded[_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%], .pds-ng-table   td.expanded   [_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]{display:flex;height:1.25rem;align-items:center;justify-content:center;padding:0}.pds-ng-table   td.collapsed[_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]   i.pds-ng-button-icon[_ngcontent-%COMP%], .pds-ng-table   td.collapsed   [_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]   i.pds-ng-button-icon[_ngcontent-%COMP%], .pds-ng-table   td.expanded[_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]   i.pds-ng-button-icon[_ngcontent-%COMP%], .pds-ng-table   td.expanded   [_nghost-%COMP%]   .pds-ng-button.sm.icon-only[_ngcontent-%COMP%]   i.pds-ng-button-icon[_ngcontent-%COMP%]{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;padding-top:.25rem;font-size:20px}"]}),e})();class D{static getMonthName(n,t="titlecase",i="short"){const r=["January","February","March","April","May","June","July","August","September","October","November","December"][n]||"",a=r.slice(0,"short"===i?3:r.length);return"titlecase"===t?a:"lowercase"===t?a.toLowerCase():a.toUpperCase()}static computeYearDiff(n,t){return n.getUTCFullYear()-t.getUTCFullYear()}static computeMonthDiff(n,t){const i=n.getUTCFullYear(),o=n.getUTCMonth(),r=t.getUTCFullYear(),a=t.getUTCMonth();return i===r?o-a:o+12*(i-r)-a}static isLeapYear(n){return n%4==0&&n%100!=0||n%400==0}static computeDaysDiff(n,t){const i=n.getTime(),o=t.getTime();return Math.round(Math.abs(i-o)/864e5)}static computeHoursDiff(n,t){const i=n.getTime(),o=t.getTime();return Math.round(Math.abs(i-o)/36e5)}static computeMinutesDiff(n,t){const i=n.getTime(),o=t.getTime();return Math.round(Math.abs(i-o)/1e3/60)}static computeSecondsDiff(n,t){const i=n.getTime(),o=t.getTime();return Math.floor(Math.abs(i-o)/1e3)}static getDateDiffObject(n,t){return{days:D.computeDaysDiff(n,t),months:D.computeMonthDiff(n,t),years:D.computeYearDiff(n,t),hours:D.computeHoursDiff(n,t),minutes:D.computeMinutesDiff(n,t),seconds:D.computeSecondsDiff(n,t)}}static computeDurationStr(n,t){const i=D.getDateDiffObject(n,t);return i.months<12?i.days<=31?i.hours<24?i.minutes<60?i.seconds<60?`${1===i.seconds?"a":i.seconds} second${i.seconds>1?"s":""} ago`:`${1===i.minutes?"a":i.minutes} minute${i.minutes>1?"s":""} ago`:`${1===i.hours?"an":i.hours} hour${i.hours>1?"s":""} ago`:`${1===i.days?"a":i.days} day${i.days>1?"s":""} ago`:`${1===i.months?"a":i.months} month${i.months>1?"s":""} ago`:`${1===i.years?"a":i.years} year${i.years>1?"s":""} ago`}static getUTCString(n){return`${n.getUTCFullYear()}-${D.getDecimalFormattedDate(n.getUTCMonth()+1)}-${D.getDecimalFormattedDate(n.getUTCDate())}T${D.getDecimalFormattedDate(n.getUTCHours())}:${D.getDecimalFormattedDate(n.getUTCMinutes())}:${D.getDecimalFormattedDate(n.getUTCSeconds())}.${D.getDecimalFormattedDate(n.getUTCMilliseconds())}Z`}static getDecimalFormattedDate(n){return n<10?`0${n}`:n}static getFormattedDateAsString(n,t){const i=n.getUTCFullYear(),o=n.getUTCMonth()+1,r=n.getUTCDate();switch(t){case"MM-DD-YYYY":return`${D.getDecimalFormattedDate(o)}-${D.getDecimalFormattedDate(r)}-${i}`;case"YYYY-MM-DD":return`${i}-${D.getDecimalFormattedDate(o)}-${D.getDecimalFormattedDate(r)}`;case"MM/DD/YYYY":return`${D.getDecimalFormattedDate(o)}/${D.getDecimalFormattedDate(r)}/${i}`;case"YYYY/MM/DD":return`${i}/${D.getDecimalFormattedDate(o)}/${D.getDecimalFormattedDate(r)}`;case"MM DD, YYYY":return`${D.getMonthName(n.getUTCMonth(),"titlecase","short")} ${D.getDecimalFormattedDate(r)}, ${i}`}}transform(n){return null===n&&void 0===n||new Date(n)+"".trim()==="Invalid Date"?n:D.computeDurationStr(new Date,new Date(n))}}let X1=(()=>{class e{constructor(){this._isTooltipOpen$=new nt.B,this._isToggletipOpen$=new nt.B,this._uniqueId=0,this.subscribeTooltip$=this._isTooltipOpen$.asObservable(),this.subscribeToggletip$=this._isToggletipOpen$.asObservable()}sendNotificationToHideOtherTooltip(t){this._isTooltipOpen$.next(t)}sendNotificationToHideOtherToggletip(t){this._isToggletipOpen$.next(t)}getUniqueIdForTooltipAndToggletip(){return++this._uniqueId,this._uniqueId}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),xe=(()=>{class e{constructor(){this.computedClass="pds-ng-condensed-button",this.variant="primary",this.condXL=!1,this.iconWhite=!1,this.iconMode=!1,this.iconPos="right",this.iconSrc="",this.disabled=!1,this.onClick=new s.bkB,this.icon=""}ngOnInit(){this.updateClasses()}ngOnChanges(){this.updateClasses()}updateClasses(){this.computedClass=[`pds-ng-condensed-button ${this.variant}`,this.iconMode?"icon-only":"",this.iconWhite?"icon-white":"",this.condXL?"cond-xl":""].join(" ")}get showIconOutlet(){return this.icon.length>0||this.iconSrc.length>0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-condensed-button"]],inputs:{variant:"variant",condXL:"condXL",iconWhite:"iconWhite",iconMode:"iconMode",iconPos:"iconPos",iconSrc:"iconSrc",disabled:"disabled",icon:"icon"},outputs:{onClick:"onClick"},standalone:!1,features:[s.OA$],ngContentSelectors:Ot,decls:7,vars:6,consts:[["iconTemplate",""],["type","button",3,"click","disabled"],[1,"pds-justify-center"],[4,"ngIf"],["class","content",4,"ngIf"],["class","pds-ng-condensed-button-icon fal",3,"ngClass",4,"ngIf"],["class","pds-ng-condensed-button-icon fal",3,"ngClass","src",4,"ngIf"],[1,"pds-ng-condensed-button-icon","fal",3,"ngClass"],[1,"pds-ng-condensed-button-icon","fal",3,"ngClass","src"],[4,"ngTemplateOutlet"],[1,"content"]],template:function(t,i){if(1&t){const o=s.RV6();s.NAR(),s.DNE(0,rb,2,2,"ng-template",null,0,s.C5r),s.j41(2,"button",1),s.bIt("click",function(a){return s.eBV(o),s.Njj(i.onClick.emit(a))}),s.j41(3,"span",2),s.DNE(4,lb,2,1,"ng-container",3)(5,cb,2,0,"div",4)(6,pb,2,1,"ng-container",3),s.k0s()()}2&t&&(s.R7$(2),s.HbH(i.computedClass),s.Y8G("disabled",i.disabled),s.R7$(2),s.Y8G("ngIf",i.showIconOutlet&&"left"===i.iconPos),s.R7$(),s.Y8G("ngIf",!i.iconMode),s.R7$(),s.Y8G("ngIf",i.showIconOutlet&&"right"===i.iconPos))},dependencies:[k.YU,k.bT,k.T3],styles:[".pds-ng-condensed-button[_ngcontent-%COMP%]{transition:all .1s linear;box-sizing:border-box;white-space:nowrap;padding-top:.125rem;padding-bottom:.125rem;padding-left:0;padding-right:0}.pds-ng-condensed-button[_ngcontent-%COMP%]:not(.icon-only)   .pds-ng-condensed-button-icon[_ngcontent-%COMP%]:first-child{padding-right:.5rem}.pds-ng-condensed-button[_ngcontent-%COMP%]:not(.icon-only)   .pds-ng-condensed-button-icon[_ngcontent-%COMP%]:last-child{padding-left:.5rem}.pds-ng-condensed-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:1rem;width:1rem}.pds-ng-condensed-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex}.pds-ng-condensed-button[_ngcontent-%COMP%]   i.fal[_ngcontent-%COMP%]{align-self:center;font-size:var(--font-size-text-lg)}.pds-ng-condensed-button[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-family:var(--utility-small-strong-font-family);font-size:var(--utility-small-strong-font-size);line-height:var(--utility-small-strong-line-height);
1font-weight:var(--utility-small-strong-font-weight)}.pds-ng-condensed-button[_ngcontent-%COMP%]:disabled{pointer-events:none}.pds-ng-condensed-button.primary[_ngcontent-%COMP%]{background-color:transparent;color:var(--content-link-primary)}.pds-ng-condensed-button.primary[_ngcontent-%COMP%]:hover{color:var(--content-link-hover)}.pds-ng-condensed-button.primary[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.primary[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-condensed-button.critical[_ngcontent-%COMP%]{background-color:transparent;color:var(--content-on-critical-strong)}.pds-ng-condensed-button.critical[_ngcontent-%COMP%]:hover{color:var(--content-on-critical-strong-hover)}.pds-ng-condensed-button.critical[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.critical[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-color: var(--focus-danger-color)}.pds-ng-condensed-button.success[_ngcontent-%COMP%]{background-color:transparent;color:var(--content-on-success-strong)}.pds-ng-condensed-button.success[_ngcontent-%COMP%]:hover{color:var(--content-on-success-strong-hover)}.pds-ng-condensed-button.success[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.success[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-condensed-button.info[_ngcontent-%COMP%]{background-color:transparent;color:var(--content-on-info-strong)}.pds-ng-condensed-button.info[_ngcontent-%COMP%]:hover{color:var(--content-on-info-strong-hover)}.pds-ng-condensed-button.info[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.info[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-condensed-button.warning[_ngcontent-%COMP%]{background-color:transparent;color:var(--content-on-warning-strong)}.pds-ng-condensed-button.warning[_ngcontent-%COMP%]:hover{color:var(--content-on-warning-strong-hover)}.pds-ng-condensed-button.warning[_ngcontent-%COMP%]:disabled{color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.warning[_ngcontent-%COMP%]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--focus-default-color)}.pds-ng-condensed-button.cond-skeleton[_ngcontent-%COMP%]{pointer-events:none;background-color:var(--content-on-surface-skeleton-loading);color:var(--content-on-surface-skeleton-loading)}.pds-ng-condensed-button.icon-only[_ngcontent-%COMP%]{border-radius:var(--border-radius-default);padding:.125rem}.pds-ng-condensed-button.icon-only[_ngcontent-%COMP%]   i.pds-ng-condensed-button-icon[_ngcontent-%COMP%]{display:flex;height:1rem;width:1rem;align-items:center;justify-content:center}.pds-ng-condensed-button.icon-only.primary[_ngcontent-%COMP%]{color:var(--content-on-primary-strong)}.pds-ng-condensed-button.icon-only.primary[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-weak-hover)}.pds-ng-condensed-button.icon-only.cond-xl[_ngcontent-%COMP%]   i.pds-ng-condensed-button-icon[_ngcontent-%COMP%]{display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;font-size:24px}.pds-ng-condensed-button.icon-only.icon-white[_ngcontent-%COMP%]{color:var(--content-on-inverse-surface-strong)}.pds-ng-condensed-button.icon-only.icon-white[_ngcontent-%COMP%]:hover{background-color:var(--color-gray-700)}.pds-ng-condensed-button.icon-only.icon-white[_ngcontent-%COMP%]:disabled{color:var(--content-on-inverse-surface-strong)}.pds-ng-condensed-button.icon-only.icon-white.cond-skeleton[_ngcontent-%COMP%]{background-color:var(--content-on-surface-skeleton-loading);color:var(--content-on-surface-skeleton-loading)}.pds-ng-condensed-button.icon-only[_ngcontent-%COMP%]:disabled{cursor:not-allowed;color:var(--content-on-surface-disabled)}.pds-ng-condensed-button.icon-only.cond-skeleton[_ngcontent-%COMP%]{pointer-events:none;background-color:var(--content-on-surface-skeleton-loading);color:var(--content-on-surface-skeleton-loading)}"]}),e})(),ke=(()=>{class e{constructor(t,i){this.pdsNgTooltipService=t,this.cd=i,this.isToggletipOpen=!1,this.subscriptions$=new St.yU,this.message="",this.position="bottom-center",this.toggletip=!1,this.actionText1="",this.actionText2="",this.actionButton1=new s.bkB,this.actionButton2=new s.bkB}onActionButton1Click(){this.actionButton1.emit()}onActionButton2Click(){this.actionButton2.emit()}onKeydownHandler(t){this.hide()}autoPosition(t){if("hide"===this.collapseState)return;if("mouseover"===t.type){if(this.isToggletipOpen)return;if(this.toggletip)return void this.hide();this.pdsNgTooltipService.sendNotificationToHideOtherTooltip(this.componentId)}else if("click"===t.type){if(this.isToggletipOpen)return;if(!this.toggletip)return void this.hide();this.isToggletipOpen=!0,this.pdsNgTooltipService.sendNotificationToHideOtherToggletip(this.componentId)}else if("mousewheel"===t.type)return void this.hide();let u,m,f,_,b,v,[i,o]=this.position.split("-"),r=this.trigger.nativeElement.getBoundingClientRect().top,a=this.trigger.nativeElement.getBoundingClientRect().bottom,l=this.trigger.nativeElement.getBoundingClientRect().left,c=this.trigger.nativeElement.getBoundingClientRect().right,d=r,p=window.innerHeight-a,h=l,g=window.innerWidth-c;if("show"===this.collapseState){let C=this.tooltip.nativeElement.getBoundingClientRect().width,w=this.tooltip.nativeElement.getBoundingClientRect().height;m=w<d,u=w<p,f=C<h,_=C<g,b=w/2<(r+a)/2&&w/2<window.innerHeight-(r+a)/2,v=C/2<(l+c)/2&&C/2<window.innerWidth-(l+c)/2,"left"===i&&!f&&_?i="right":"right"===i&&!_&&f?i="left":"top"===i&&!m&&u?i="bottom":"bottom"===i&&!u&&m&&(i="top"),"left"===i||"right"===i?"center"!==o||b?"top"!==o||m?"bottom"===o&&!u&&(b?o="center"
1:m&&(o="top")):b?o="center":u&&(o="bottom"):m?o="top":u&&(o="bottom"):("top"===i||"bottom"===i)&&("center"!==o||v?"left"!==o||f?"right"===o&&!_&&(v?o="center":f&&(o="left")):v?o="center":_&&(o="right"):f?o="left":_&&(o="right")),this.currentPosition=i+"-"+o,this.toggletip&&!this.resizeObserver?(this.resizeObserver=new ResizeObserver(()=>{this.positionTooltip()}),this.resizeObserver.observe(this.tooltip.nativeElement)):this.positionTooltip()}}ngOnInit(){this.currentPosition=this.position,this.collapseState="hide",this.componentId=this.pdsNgTooltipService.getUniqueIdForTooltipAndToggletip(),this.subscriptions$.add(this.toggletip?this.pdsNgTooltipService.subscribeToggletip$.subscribe(t=>{this.componentId!==t&&(this.hide(),this.cd.detectChanges())}):this.pdsNgTooltipService.subscribeTooltip$.subscribe(t=>{this.componentId!==t&&(this.hide(),this.cd.detectChanges())}))}show(){this.collapseState="show"}hide(){this.isToggletipOpen&&this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.isToggletipOpen=!1,this.collapseState="hide"}positionTooltip(){let c,d,[t,i]=this.currentPosition.split("-"),o=this.trigger.nativeElement.getBoundingClientRect().top,r=this.trigger.nativeElement.getBoundingClientRect().bottom,a=this.trigger.nativeElement.getBoundingClientRect().left,l=this.trigger.nativeElement.getBoundingClientRect().right;if("show"===this.collapseState){let p=this.tooltip.nativeElement.getBoundingClientRect().width,h=this.tooltip.nativeElement.getBoundingClientRect().height;"top"===t?(c=o-h,this.tooltip.nativeElement.style.top=String(c).concat("px")):"bottom"===t?(c=r,this.tooltip.nativeElement.style.top=String(c).concat("px")):"left"===t?(d=a-p,this.tooltip.nativeElement.style.left=String(d).concat("px")):"right"===t&&(d=l,this.tooltip.nativeElement.style.left=String(d).concat("px")),"top"===t||"bottom"===t?"center"===i?(d=a-p/2+(l-a)/2,this.tooltip.nativeElement.style.left=String(d).concat("px")):"left"===i?(d=a,this.tooltip.nativeElement.style.left=String(d).concat("px")):"right"===i&&(d=l-p,this.tooltip.nativeElement.style.left=String(d).concat("px")):("left"===t||"right"===t)&&("center"===i?(c=o-h/2+(r-o)/2,this.tooltip.nativeElement.style.top=String(c).concat("px")):"top"===i?(c=o,this.tooltip.nativeElement.style.top=String(c).concat("px")):"bottom"===i&&(c=r-h,this.tooltip.nativeElement.style.top=String(c).concat("px")))}}ngOnDestroy(){this.subscriptions$.unsubscribe(),this.resizeObserver&&this.resizeObserver.disconnect()}}return e.\u0275fac=function(t){return new(t||e)(s.rXU(X1),s.rXU(s.gRc))},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-tooltip"]],viewQuery:function(t,i){if(1&t&&(s.GBs(No,5),s.GBs(hb,5)),2&t){let o;s.mGM(o=s.lsd())&&(i.trigger=o.first),s.mGM(o=s.lsd())&&(i.tooltip=o.first)}},hostBindings:function(t,i){1&t&&s.bIt("keydown.escape",function(r){return i.onKeydownHandler(r)},!1,s.EBC)("resize",function(r){return i.autoPosition(r)},!1,s.tSv)("click",function(r){return i.autoPosition(r)})("mouseover",function(r){return i.autoPosition(r)})("mousewheel",function(r){return i.autoPosition(r)})},inputs:{message:"message",position:"position",toggletip:"toggletip",actionText1:"actionText1",actionText2:"actionText2"},outputs:{actionButton1:"actionButton1",actionButton2:"actionButton2"},standalone:!1,ngContentSelectors:ub,decls:7,vars:8,consts:[["tooltipRelatedElevatedLayers",""],["trigger",""],["tooltip",""],[1,"tooltip-trigger-wrapper"],[1,"tooltip--projected-content-container",3,"mouseover","click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"tooltip-backdrop-layer--full-page",3,"mouseover","click","ngClass"],[1,"tooltip","pds-z-40"],[1,"tooltip-pointer","pds-absolute"],[1,"tooltip-buffer-pad"],["class","tooltip-text",4,"ngIf"],["class","tooltip-text-lg",4,"ngIf"],["class","toggletip",4,"ngIf"],[1,"tooltip-text"],[1,"tooltip-text-lg"],[1,"toggletip"],[1,"toggletip-header"],[3,"onClick","icon","iconMode"],[1,"toggletip-content"],[1,"toggletip-control"],[3,"variant","block","onClick",4,"ngIf"],[3,"onClick","variant","block"]],template:function(t,i){if(1&t){const o=s.RV6();s.NAR(gb),s.DNE(0,kb,1,1,"ng-template",null,0,s.C5r),s.j41(2,"div",3)(3,"div",4,1),s.bIt("mouseover",function(){return s.eBV(o),s.Njj(!i.toggletip&&i.show())})("click",function(){return s.eBV(o),s.Njj(i.toggletip&&i.show())}),s.SdG(5),s.k0s(),s.DNE(6,Pb,1,0,"ng-container",5),s.k0s()}if(2&t){const o=s.sdS(1);s.R7$(3),s.Y8G("ngClass",s.l_i(3,fb,!i.toggletip,i.toggletip)),s.R7$(3),s.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",s.eq3(6,mb,i.collapseState))}},dependencies:[k.YU,k.bT,k.T3,Ke,xe],styles:[".tooltip-backdrop-layer--full-page[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100vh;width:100vw}.tooltip--projected-content-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.tooltip-trigger-wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;line-height:1}.tooltip[_ngcontent-%COMP%]{position:fixed;display:flex;gap:.5rem;white-space:normal}.tooltip[tooltip-position^=top][_ngcontent-%COMP%], .tooltip[tooltip-position^=bottom][_ngcontent-%COMP%]{flex-direction:column}.tooltip-text[_ngcontent-%COMP%]{padding-top:var(--space-200);padding-bottom:var(--space-200);padding-left:var(--space-300);padding-right:var(--space-300);text-align:left;font-size:var(--font-size-text-sm);border-radius:var(--border-radius-default);background-color:var(--background-surface-weak);max-width:23.125rem;color:var(--content-on-surface-strong);--tw-shadow: 0px 2px 16px 0px rgba(0, 0, 0, .25), 0px 2px 3px 0px rgba(0, 0, 0, .1);
1--tw-shadow-colored: 0px 2px 16px 0px var(--tw-shadow-color), 0px 2px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);width:max-content}.tooltip[_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{height:.75rem;width:.75rem;border-radius:1px;background-color:var(--background-surface-weak)}.tooltip[tooltip-position=top-center][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{bottom:5px;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));left:calc(50% - 6px)}.tooltip[tooltip-position=bottom-center][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{top:5px;--tw-rotate: -135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));left:calc(50% - 6px)}.tooltip[tooltip-position=left-center][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{left:auto;right:.25rem;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));top:calc(50% - 6px)}.tooltip[tooltip-position=right-center][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{right:auto;left:.25rem;--tw-rotate: 135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));top:calc(50% - 6px)}.tooltip[tooltip-position=top-left][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{left:.25rem;bottom:.25rem;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=top-right][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{right:.25rem;bottom:.25rem;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=bottom-left][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{left:.25rem;top:.25rem;--tw-rotate: -135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=bottom-right][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{right:.25rem;top:.25rem;--tw-rotate: -135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=left-top][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{left:auto;right:.25rem;top:.25rem;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=left-bottom][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{left:auto;right:.25rem;bottom:.375rem;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=right-top][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{top:.25rem;left:.25rem;--tw-rotate: 135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip[tooltip-position=right-bottom][_ngcontent-%COMP%]   .tooltip-pointer[_ngcontent-%COMP%]{right:auto;left:.25rem;bottom:.375rem;--tw-rotate: 135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip-text-lg[_ngcontent-%COMP%], .toggletip[_ngcontent-%COMP%]{padding:var(--space-400);text-align:left;font-size:var(--font-size-text-sm);border-radius:var(--border-radius-default);background-color:var(--background-surface-weak);max-width:370px;color:var(--content-on-surface-strong);--tw-shadow: 0px 2px 16px 0px rgba(0, 0, 0, .25), 0px 2px 3px 0px rgba(0, 0, 0, .1);
1--tw-shadow-colored: 0px 2px 16px 0px var(--tw-shadow-color), 0px 2px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toggletip-header[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;justify-content:space-between}.toggletip-content[_ngcontent-%COMP%]{margin-bottom:1rem}.toggletip-control[_ngcontent-%COMP%]{display:flex;flex-direction:column}.toggletip-control[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}[_nghost-%COMP%]  .badge.large.default:hover, [_nghost-%COMP%]  .badge.small.default:hover, [_nghost-%COMP%]  .badge.ghost.default:hover{cursor:pointer;background-color:var(--background-surface-weak-hover)}[_nghost-%COMP%]  .badge.large.default:focus, [_nghost-%COMP%]  .badge.small.default:focus, [_nghost-%COMP%]  .badge.ghost.default:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);
1--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.info:hover, [_nghost-%COMP%]  .badge.small.info:hover, [_nghost-%COMP%]  .badge.ghost.info:hover{cursor:pointer;background-color:var(--background-info-weak)}[_nghost-%COMP%]  .badge.large.info:focus, [_nghost-%COMP%]  .badge.small.info:focus, [_nghost-%COMP%]  .badge.ghost.info:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.critical:hover, [_nghost-%COMP%]  .badge.small.critical:hover, [_nghost-%COMP%]  .badge.ghost.critical:hover{cursor:pointer;background-color:var(--background-critical-weak)}[_nghost-%COMP%]  .badge.large.critical:focus, [_nghost-%COMP%]  .badge.small.critical:focus, [_nghost-%COMP%]  .badge.ghost.critical:focus{--tw-shadow: 0px 0px 0px 3px #FDA29B;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.warning:hover, [_nghost-%COMP%]  .badge.small.warning:hover, [_nghost-%COMP%]  .badge.ghost.warning:hover{cursor:pointer;background-color:var(--background-warning-weak)}[_nghost-%COMP%]  .badge.large.warning:focus, [_nghost-%COMP%]  .badge.small.warning:focus, [_nghost-%COMP%]  .badge.ghost.warning:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.success:hover, [_nghost-%COMP%]  .badge.small.success:hover, [_nghost-%COMP%]  .badge.ghost.success:hover{cursor:pointer;background-color:var(--background-success-weak)}[_nghost-%COMP%]  .badge.large.success:focus, [_nghost-%COMP%]  .badge.small.success:focus, [_nghost-%COMP%]  .badge.ghost.success:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);
1--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.primary:hover, [_nghost-%COMP%]  .badge.small.primary:hover, [_nghost-%COMP%]  .badge.ghost.primary:hover{cursor:pointer;background-color:var(--background-surface-weak-hover)}[_nghost-%COMP%]  .badge.large.primary:focus, [_nghost-%COMP%]  .badge.small.primary:focus, [_nghost-%COMP%]  .badge.ghost.primary:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.filled:hover, [_nghost-%COMP%]  .badge.small.filled:hover, [_nghost-%COMP%]  .badge.ghost.filled:hover{cursor:pointer;background-color:var(--background-base-weak-hover)}[_nghost-%COMP%]  .badge.large.filled:focus, [_nghost-%COMP%]  .badge.small.filled:focus, [_nghost-%COMP%]  .badge.ghost.filled:focus{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);
1--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[_nghost-%COMP%]  .badge.large.disabled:hover, [_nghost-%COMP%]  .badge.small.disabled:hover, [_nghost-%COMP%]  .badge.ghost.disabled:hover{cursor:pointer}[_nghost-%COMP%]  .badge.ghost{border-radius:var(--border-radius-large)}"],changeDetection:0}),e})(),Ln=(()=>{class e{constructor(){this.tag_id="",this.value="",this.disabled=!1,this.critical=!1,this.readonly=!1,this.tooltipText="",this.removeTag=new s.bkB}remove(){this.removeTag.emit({tag_id:this.tag_id,value:this.value})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-tags"]],inputs:{tag_id:"tag_id",value:"value",disabled:"disabled",critical:"critical",readonly:"readonly",tooltipText:"tooltipText"},outputs:{removeTag:"removeTag"},standalone:!1,decls:5,vars:11,consts:[["type","button",1,"tag-button",3,"ngClass"],[1,"tag-content"],[1,"text",3,"ngClass","title"],["class","fa-sharp fa-regular fa-xmark remove",3,"ngClass","click",4,"ngIf"],[1,"fa-sharp","fa-regular","fa-xmark","remove",3,"click","ngClass"]],template:function(t,i){1&t&&(s.j41(0,"button",0)(1,"span",1)(2,"span",2),s.EFF(3),s.k0s(),s.DNE(4,Ob,1,4,"i",3),s.k0s()()),2&t&&(s.Y8G("ngClass",s.l_i(5,Io,i.disabled,i.critical)),s.R7$(2),s.Y8G("ngClass",s.l_i(8,Io,i.disabled,i.critical))("title",i.tooltipText?i.tooltipText:i.value),s.R7$(),s.JRh(i.value),s.R7$(),s.Y8G("ngIf",!i.readonly))},dependencies:[k.YU,k.bT],styles:[".tag-button[_ngcontent-%COMP%]{display:inline-flex;cursor:default;background-color:transparent;padding-top:var(--space-025);padding-bottom:var(--space-025);padding-left:var(--space-200);padding-right:var(--space-150);border-radius:var(--border-radius-default);border-width:var(--border-width-default);border-color:var(--border-on-surface-strong);color:var(--content-on-surface-strong);max-width:130px}.tag-button[_ngcontent-%COMP%]:not(.disabled,.critical):hover{background-color:var(--background-surface-weak-hover)}.tag-button[_ngcontent-%COMP%]:not(.disabled,.critical):focus-visible{--tw-shadow: 0px 0px 0px 3px #B692F6;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tag-button.disabled[_ngcontent-%COMP%]{border-color:var(--border-on-surface-medium);color:var(--content-on-surface-disabled)}.tag-button.critical[_ngcontent-%COMP%]:not(.disabled){border-color:var(--border-on-surface-critical)}.tag-button.critical[_ngcontent-%COMP%]:not(.disabled):hover{border-color:var(--content-on-critical-strong);background-color:var(--background-critical-weak)}.tag-button.critical[_ngcontent-%COMP%]:not(.disabled):focus-visible{border-color:var(--content-on-critical-strong);--tw-shadow: 0px 0px 0px 3px #FDA29B;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:inline-block;font-family:var(--utility-small-font-family);font-size:var(--utility-small-font-size);line-height:var(--utility-small-line-height);font-weight:var(--utility-small-font-weight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:.25rem;height:1rem;padding-top:.75px;max-width:100px}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]   .text.critical[_ngcontent-%COMP%]:not(.disabled){color:var(--content-on-surface-critical)}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]   .remove[_ngcontent-%COMP%]{height:.75rem;width:.75rem;cursor:pointer;color:var(--content-on-surface-moderate)}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]   .remove.disabled[_ngcontent-%COMP%]{pointer-events:none;color:var(--content-on-surface-disabled)}.tag-button[_ngcontent-%COMP%]   .tag-content[_ngcontent-%COMP%]   .remove.critical[_ngcontent-%COMP%]:not(.disabled){color:var(--content-on-surface-critical)}"]}),e})();const W1=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/;let Ro=(()=>{class e{constructor(){this.name="",this.value="",this.error=!1,this.tooltipText="",this.placeholder="",this.readOnly=!1,this.disabled=!1,this.autoFocus=!1,this.showPassword=!1,this.controlType="text",this.dateFormat="MM-DD-YYYY",this.size="default",this.variant="generic",this.isRequired=!1,this.tagSeparator=["Enter"," ",","],this.tooltipPosition="top-center",this.onAccept=new s.bkB,this.onDecline=new s.bkB,this.onChangeDate=new s.bkB,this.onValueChanges=new s.bkB,this.isCapsLockOn=!1,this.enteredValue="",this.enteredTagsChange=new s.bkB,this._invalid=[],this.tagsData=[]}set invalidTags(t){this._invalid=t}get invalidTags(){return this._invalid}set customEnteredTags(t){this.tagsData=[...t]}get customEnteredTags(){return this.tagsData}isCritical(t){return this.invalidTags.includes(t)}onCapslockPress(t){this.isCapsLockOn=t?.getModifierState?.("CapsLock")}ngAfterViewInit(){this.autoFocus&&this.input.nativeElement.focus()}ngOnInit(){this.defaultValue&&(this.value=this.defaultValue,"email"===this.controlType&&this.verifyEmail(this.value))}ngOnChanges(){"date"===this.controlType&&this.value&&this.verifyDate(this.value)}writeValue(t){"multi-valueInput"===this.variant?this.customEnteredTags=Array.isArray(t)?t:[]:this.value=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}get rootClass(){return`\n\t\t\tpds-ng-text-input\n\t\t\t--${this.size}\n\t\t\t--${this.controlType}\n\t\t\t${this.error?"--error":""}\n\t\t\t${this.disabled?"--disabled":""}\n\t\t\t${this.trailingText?"--trailingText":""}\n\t\t\t${"inline-edit"===this.variant?"--inlineEdit":""}\n\t\t`.trim()}get inputType(){return"password"===this.controlType&&this.showPassword||"date"===this.controlType?"text":this.controlType}toggleShowPassword(){this.showPassword=!this.showPassword}onInlineAccept(){this.onAccept.emit(this.value)}onInlineDecline(){this.onDecline.emit(this.value)}onInput(t){this.value=t.target.value,"email"===this.controlType&&this.verifyEmail(this.value),this.onChange(this.value),this.onValueChanges.emit(this.value.trim())}handleDateInputField(t){"Enter"===t.key&&(this.value=t.target.value,"date"===this.controlType&&this.verifyDate(this.value),this.onChange(this.value))}onChange(t){return t}onTouched(){}verifyEmail(t){W1.test(t)?(this.error=!1,this.hint=""):(this.error=!0,this.hint="Email address is invali
1d")}verifyDate(t){let i;try{let o;switch(this.dateFormat){case"MM-DD-YYYY":if(o=t.split("-"),3!==o.length)throw new Error("This is invalid date");i=this.getValidDate(Number(o[0]),Number(o[1]),Number(o[2]));break;case"YYYY-MM-DD":if(o=t.split("-"),3!==o.length)throw new Error("This is invalid date");i=this.getValidDate(Number(o[1]),Number(o[2]),Number(o[0]));break;case"MM/DD/YYYY":if(o=t.split("/"),3!==o.length)throw new Error("This is invalid date");i=this.getValidDate(Number(o[0]),Number(o[1]),Number(o[2]));break;case"YYYY/MM/DD":if(o=t.split("/"),3!==o.length)throw new Error("This is invalid date");i=this.getValidDate(Number(o[1]),Number(o[2]),Number(o[0]))}}catch{return this.error=!0,this.hint=this.hint?this.hint:"This is invalid date",void this.onChangeDate.emit("invalid date")}this.error=!1,this.hint="",this.onChangeDate.emit(D.getUTCString(i))}getValidDate(t,i,o){if(!(t>=1&&t<=12&&i>=1&&i<=31&&4===(o+"").length))throw new Error("This is invalid date");const r=new Date(t+"-"+i+"-"+o);if(i!==r.getDate()||t!==r.getMonth()+1||o!==r.getFullYear())throw new Error("This is invalid date");const a=r.getUTCFullYear(),l=r.getUTCMonth();return new Date(Date.UTC(a,l,r.getUTCDate()+1))}onCopy(t){try{const i=document.createElement("input");i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}catch(i){console.error("Copy failed:",i)}}onKeyDown(t){this.tagSeparator.includes(t.key)&&(t.preventDefault(),this.addEnteredTextAsTag())}onBlur(){this.addEnteredTextAsTag()}addEnteredTextAsTag(){const t=this.enteredValue.trim(),i=this.tagSeparator.includes(",")&&this.tagSeparator.includes(" ")?/[, ]+/:/[\n]+/;if(t){const o=t.split(i).filter(r=>""!==r).shift();this.customEnteredTags.push(o),this.enteredTagsChange.emit(this.customEnteredTags),this.onChange(this.customEnteredTags),this.enteredValue=""}}removeTag(t){const i=this.customEnteredTags.indexOf(t);-1!==i&&this.customEnteredTags.splice(i,1),this.onChange(this.customEnteredTags),this.enteredTagsChange.emit(this.customEnteredTags)}focusTag(t){t.currentTarget.focus()}handleKeyDown(t,i){("Backspace"===t.key||"Delete"===t.key)&&(t.preventDefault(),this.customEnteredTags.length>0&&this.customEnteredTags.splice(i,1),this.onChange(this.customEnteredTags),this.enteredTagsChange.emit(this.customEnteredTags))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-text-input"]],viewQuery:function(t,i){if(1&t&&s.GBs(Fc,5,s.aKT),2&t){let o;s.mGM(o=s.lsd())&&(i.input=o.first)}},hostBindings:function(t,i){1&t&&s.bIt("keydown",function(r){return i.onCapslockPress(r)},!1,s.tSv)},inputs:{label:"label",hint:"hint",name:"name",value:"value",prefixIcon:"prefixIcon",trailingText:"trailingText",error:"error",tooltipText:"tooltipText",placeholder:"placeholder",readOnly:"readOnly",disabled:"disabled",autoFocus:"autoFocus",showPassword:"showPassword",defaultValue:"defaultValue",controlType:"controlType",dateFormat:"dateFormat",size:"size",variant:"variant",isRequired:"isRequired",tagSeparator:"tagSeparator",tooltipPosition:"tooltipPosition",enteredValue:"enteredValue",invalidTags:"invalidTags"},outputs:{onAccept:"onAccept",onDecline:"onDecline",onChangeDate:"onChangeDate",onValueChanges:"onValueChanges",enteredTagsChange:"enteredTagsChange"},standalone:!1,features:[s.Jv_([{provide:it.kq,useExisting:(0,s.Rfq)(()=>e),multi:!0}]),s.OA$],decls:12,vars:2,consts:[["dateInputField",""],["tooltip",""],["password",""],["inlineEdit",""],["copy",""],["input",""],["inputs",""],[3,"class",4,"ngIf"],[1,"pds-ng-text-input-input",3,"keydown","name","value","type","disabled","readonly","placeholder"],[3,"message","position"],["pdsNgTooltipTrigger","",3,"ngClass"],["class","fa-sharp fa-regular fa-lock-a pds-ng-text-input-icon pds-pr-2",4,"ngIf"],[3,"click","ngClass"],[1,"fa-sharp","fa-regular","fa-lock-a","pds-ng-text-input-icon","pds-pr-2"],[1,"pds-ng-text-input-inline-edit","pds-flex","pds-flex-row"],["type","button",1,"pds-ng-text-input-inline-edit-button",3,"click","disabled"],[1,"fa-regular","fa-check","pds-ng-text-input-icon"],[1,"fa-regular","fa-times","pds-ng-text-input-icon"],[1,"pds-flex","pds-flex-row"],["type","button",1,"pds-ng-text-input-copy-button",3,"click","disabled"],[1,"pds-w-20"],[1,"pds-icon-sty"],["aria-hidden","true",1,"fa-sharp","fa-regular","fa-clone","pds-ng-text-input-icon"],[1,"pds-copy-txt"],[3,"for",4,"ngIf"],[1,"pds-ng-text-input-outer-container","pds-flex","pds-flex-row"],[4,"ngIf"],[1,"pds-ng-text-input-inner-container","pds-flex","pds-flex-row","pds-gap-2"],[4,"ngIf","ngIfElse"],[3,"for"],[1,"pds-ng-text-input-input",3,"input","name","value","type","disabled","readonly","placeholder"],[4,"ngTemplateOutlet"],[1,"pds-ng-text-input-trailing-text",3,"title"],[1,"pds-ng-multivalue-input-outer-container","pds-flex","pds-flex-row"],[1,"pds-ng-multivalue-input-inner-container","tags-container","pds-flex","pds-flex-row","pds-gap-2"],["class","tag",3,"value","critical","removeTag","keydown","click",4,"ngFor","ngForOf"],[1,"pds-ng-multivalue-input-input",3,"ngModelChange","keydown","blur","input","name","type","disabled","readonly","placeholder","ngModel"],[1,"tag",3,"removeTag","keydown","click","value","critical"]],template:function(t,i){1&t&&s.DNE(0,Tb,2,6,"ng-template",null,0,s.C5r)(2,Db,2,6,"ng-template",null,1,s.C5r)(4,Ib,2,5,"ng-template",null,2,s.C5r)(6,Rb,5,2,"ng-template",null,3,s.C5r)(8,Eb,7,1,"ng-template",null,4,s.C5r)(10,qb,12,13,"section",7)(11,nv,9,13,"section",7),2&t&&(s.R7$(10),s.Y8G("ngIf","multi-valueInput"!==i.variant),s.R7$(),s.Y8G("ngIf","multi-valueInput"===i.variant))},dependencies:[k.YU,k.Sq,k.bT,k.T3,it.me,it.BC,it.vS,ke,Ln],styles:[".pds-ng-text-input[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{padding-bottom:6px;font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);
1font-weight:var(--utility-medium-font-weight);color:var(--content-on-surface-moderate)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]{align-items:center;background-color:var(--background-surface-weak);height:2.75rem;width:100%;border-radius:var(--border-radius-default);border-width:var(--border-width-default);border-color:var(--border-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-primary)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);outline:2px solid transparent;outline-offset:2px;--tw-shadow: 0px 0px 0px 3px #B692F6;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:var(--border-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]{flex-shrink:1;border-radius:var(--border-radius-default);align-items:center;height:2.75rem;width:100%;padding-top:.75rem;padding-bottom:.75rem;padding-right:.75rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:first-child{padding-left:.75rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]{width:100%;flex-shrink:1;background-color:inherit;border-style:none;padding:0;font-size:var(--utility-large-font-size);line-height:var(--utility-large-line-height);color:var(--content-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]:focus{border-style:none}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]::placeholder{font-style:italic;color:var(--content-on-surface-weak)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]:focus{box-shadow:none}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-trailing-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:12ch;padding:.75rem;border-top-right-radius:var(--border-radius-default);border-bottom-right-radius:var(--border-radius-default);border-left-width:var(--border-width-default);border-color:var(--border-on-surface-strong);font-size:var(--utility-large-font-size);line-height:var(--utility-large-line-height);color:var(--content-on-surface-moderate)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon[_ngcontent-%COMP%]{cursor:pointer;text-align:center;font-size:var(--font-size-text-xl);color:var(--content-on-surface-weak)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon.--error[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon.--prefix[_ngcontent-%COMP%]{padding:.75rem .5rem .75rem .75rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-tooltip[_ngcontent-%COMP%]{position:relative;top:1px}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]{border-style:none}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--border-radius-default);border-bottom-left-radius:var(--border-radius-default);border-width:var(--border-width-default);border-color:var(--border-on-surface-strong)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-primary)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:focus{z-index:1}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);outline:2px solid transparent;outline-offset:2px;--tw-shadow: 0px 0px 0px 3px #B692F6;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:var(--border-on-surface-strong)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]{height:2.75rem;width:2.75rem;padding:.75rem;border-top-width:var(--border-width-default);border-bottom-width:var(--border-width-default);border-color:var(--border-on-surface-strong)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]:last-child{border-top-right-radius:var(--border-radius-default);border-bottom-right-radius:var(--border-radius-default);border-left-width:var(--border-width-default);border-right-width:var(--border-width-default)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]:focus{z-index:1;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);outline:2px solid transparent;outline-offset:2px;--tw-shadow: 0px 0px 0px 3px #B692F6;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-width:var(--border-width-default);border-color:var(--border-on-surface-strong)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-icon[_ngcontent-%COMP%]{color:var(--content-on-surface-weak)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-copy-button[_ngcontent-%COMP%]{padding:.125rem;border-width:var(--border-width-default);border-left-width:var(--border-width-none);border-color:var(--border-on-surface-strong);background-color:var(--background-surface-weak)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-icon-sty[_ngcontent-%COMP%]{position:relative;top:2.47rem}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-copy-txt[_ngcontent-%COMP%]{position:relative;top:-.7rem;left:.9rem;border-color:var(--border-on-surface-strong);background-color:var(--background-surface-weak);font-weight:600;color:var(--content-on-surface-moderate)}.pds-ng-text-input.--inlineEdit[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:focus-within{box-shadow:none}.pds-ng-text-input.--inlineEdit.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical)}.pds-ng-text-input.--inlineEdit.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:focus-within{--tw-shadow: 0px 0px 0px 3px #FDA29B;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pds-ng-text-input.--inlineEdit.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]:focus{--tw-shadow: 0px 0px 0px 3px #FDA29B;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:var(--border-on-surface-critical)}.pds-ng-text-input.--inlineEdit.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:focus-within{box-shadow:none}.pds-ng-text-input.--inlineEdit.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%], .pds-ng-text-input.--inlineEdit.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-medium)}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]{height:37px}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]{height:2.25rem;padding-top:.5rem;padding-bottom:.5rem;padding-right:.5rem}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]:first-child{padding-left:.5rem}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]{font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight)}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-trailing-text[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.5rem;font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight)}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]{height:2.25rem;width:2.25rem;padding:.5rem}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-icon[_ngcontent-%COMP%]{font-size:var(--font-size-text-lg)}.pds-ng-text-input.--small[_ngcontent-%COMP%]   .pds-ng-text-input-prefix[_ngcontent-%COMP%]{padding:.5rem}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-medium);background-color:var(--background-surface-disabled)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-trailing-text[_ngcontent-%COMP%]{border-color:var(--border-on-surface-medium)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inner-container[_ngcontent-%COMP%]   .pds-ng-text-input-input[_ngcontent-%COMP%]{color:var(--content-on-surface-disabled)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%], .pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit[_ngcontent-%COMP%]   .pds-ng-text-input-inline-edit-button[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-medium)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon[_ngcontent-%COMP%]{color:var(--content-on-surface-disabled)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-medium);background-color:var(--background-surface-disabled)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-medium)}.pds-ng-text-input.--disabled[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-input[_ngcontent-%COMP%]{color:var(--content-on-surface-disabled)}.pds-ng-text-input.--error[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}.pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical)}.pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:focus-within{--tw-shadow: 0px 0px 0px 3px #FDA29B;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]:hover, .pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-text-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-trailing-text[_ngcontent-%COMP%], .pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical)}.pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]:focus-within{--tw-shadow: 0px 0px 0px 3px #FDA29B;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pds-ng-text-input.--error[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-critical)}.pds-ng-text-input.--error[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}.pds-ng-text-input[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding-top:6px;font-size:var(--utility-small-font-size);line-height:var(--utility-small-line-height);font-weight:var(--utility-small-font-weight);color:var(--content-on-surface-weak)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]{align-items:center;background-color:var(--background-surface-weak);max-height:500px;width:100%;border-radius:var(--border-radius-default);border-width:var(--border-width-default);border-color:var(--border-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]:hover{border-color:var(--border-on-surface-primary)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
1dow, 0 0 #0000);outline:2px solid transparent;outline-offset:2px;--tw-shadow: 0px 0px 0px 3px #B692F6;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:var(--border-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container.tags-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]{overflow:auto;flex-shrink:1;border-radius:var(--border-radius-default);align-items:center;max-height:500px;width:100%;padding-top:.75rem;padding-bottom:.75rem;padding-right:.75rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]:first-child{padding-left:.75rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-input[_ngcontent-%COMP%]{width:100%;flex-shrink:1;background-color:inherit;border-style:none;padding:0;font-size:var(--utility-large-font-size);line-height:var(--utility-large-line-height);color:var(--content-on-surface-strong)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-input[_ngcontent-%COMP%]:focus{border-style:none}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-input[_ngcontent-%COMP%]::placeholder{font-style:italic;color:var(--content-on-surface-weak)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-inner-container[_ngcontent-%COMP%]   .pds-ng-multivalue-input-input[_ngcontent-%COMP%]:focus{box-shadow:none}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-tooltip[_ngcontent-%COMP%]{position:relative;top:1px;right:10px;padding-left:1rem}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon[_ngcontent-%COMP%]{cursor:pointer;text-align:center;font-size:var(--font-size-text-xl);color:var(--content-on-surface-weak)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon.--error[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}.pds-ng-text-input[_ngcontent-%COMP%]   .pds-ng-multivalue-input-outer-container[_ngcontent-%COMP%]   .pds-ng-text-input-icon.--prefix[_ngcontent-%COMP%]{padding:.75rem .5rem .75rem .75rem}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.4rem;height:.4rem}[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin-block:.1rem;border-radius:var(--border-radius-default)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:var(--border-radius-lg);--tw-bg-opacity: 1;background-color:rgb(180 180 180 / var(--tw-bg-opacity))}"]}),e})();class ed{static typeOf(n){return Object.prototype.toString.call(n).split(" ")[1].slice(0,-1)}static fromEntries(n){return n.reduce((t,i)=>(i?.length&&(t[i[0]]=i[1]),t),{})}}const{fromEntries:nd}=ed;const{typeOf:ek}=ed;let sd=(()=>{class e{constructor(){this.label="",this.value=!1,this.disabled=!1,this.isRequired=!1,this.valueChange=new s.bkB,this.onClick=new s.bkB}ngOnInit(){this.onChange||this.init()}init(){this.onChange=t=>t}ngOnChanges(t){const i=t.value;i&&i.previousValue!==i.currentValue&&(this.onChange||this.init(),this.writeValue(i.currentValue))}onInputClick(t){this.onClick.emit(t),this.writeValue(t)}writeValue(t){null!=t&&(this.value=t,this.valueChange.emit(t),this.onChange(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}onTouched(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-toggle-switch"]],inputs:{label:"label",value:"value",disabled:"disabled",isRequired:"isRequired"},outputs:{valueChange:"valueChange",onClick:"onClick"},standalone:!1,features:[s.Jv_([{provide:it.kq,useExisting:(0,s.Rfq)(()=>e),multi:!0}]),s.OA$],decls:4,vars:14,consts:[[1,"toggle-switch-container",3,"click","ngClass"],["type","button",1,"toggle-switch-button",3,"ngClass"],[1,"toggle-switch-handle",3,"ngClass"],["class","toggle-switch-label",3,"ngClass",4,"ngIf"],[1,"toggle-switch-label",3,"ngClass"],[4,"ngIf"]],template:function(t,i){1&t&&(s.j41(0,"span",0),s.bIt("click",function(){return i.onInputClick(!i.value)}),s.j41(1,"button",1),s.nrm(2,"aside",2),s.k0s(),s.DNE(3,Xv,3,5,"span",3),s.k0s()),2&t&&(s.Y8G("ngClass",s.eq3(4,Xi,i.disabled)),s.R7$(),s.Y8G("ngClass",s.sMw(6,Lc,i.value,!i.value,i.disabled)),s.R7$(),s.Y8G("ngClass",s.sMw(10,Lc,i.value,!i.value,i.disabled)),s.R7$(),s.Y8G("ngIf",null==i.label?null:i.label.length))},dependencies:[k.YU,k.bT],styles:[".toggle-switch-container[_ngcontent-%COMP%]{display:inline-flex;cursor:pointer}.toggle-switch-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button[_ngcontent-%COMP%]{position:relative;display:inline-block;height:1.25rem;width:2.25rem;padding:var(--space-050);border-radius:9999px}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button.toggle-on[_ngcontent-%COMP%]{background-color:var(--background-primary-strong)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button.toggle-on[_ngcontent-%COMP%]:hover{background-color:var(--background-primary-strong-hover)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button.toggle-off[_ngcontent-%COMP%]{background-color:var(--background-base-strong)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button.toggle-off[_ngcontent-%COMP%]:hover{background-color:var(--background-base-moderate-hover)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button[_ngcontent-%COMP%]:not(.disabled):focus-visible{--tw-shadow: 0px 0px 0px 3px #B692F6;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-button.disabled[_ngcontent-%COMP%]{background-color:var(--background-base-moderate)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-handle[_ngcontent-%COMP%]{position:absolute;display:flex;height:1rem;width:1rem;align-items:center;justify-content:center;border-radius:var(--border-radius-full);--tw-shadow: 0px 2px 3px rgba(0, 0, 0, .13), 0px 2px 2px rgba(0, 0, 0, .06);--tw-shadow-colored: 0px 2px 3px var(--tw-shadow-color), 0px 2px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-handle.toggle-on[_ngcontent-%COMP%]{background-color:var(--content-on-primary-weak);right:2px;top:2px}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-handle.toggle-off[_ngcontent-%COMP%]{background-color:var(--content-on-base-weak);left:2px;top:2px}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-handle.disabled[_ngcontent-%COMP%]{background-color:var(--content-on-base-disabled);color:var(--content-on-surface-disabled);box-shadow:none}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-label[_ngcontent-%COMP%]{position:relative;margin-left:.5rem;display:inline-block;font-family:var(--utility-medium-font-family);font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);color:var(--content-on-surface-strong)}.toggle-switch-container[_ngcontent-%COMP%]   .toggle-switch-label.disabled[_ngcontent-%COMP%]{color:var(--content-on-surface-disabled)}"]}),e})(),qi=(()=>{class e{constructor(){this.onClick=new s.bkB,this.label="",this.value=!1,this.indeterminate=!1,this.disabled=!1,this.isRequired=!1,this.valueChange=new s.bkB}ngOnInit(){this.onChange||this.init()}init(){this.onChange=t=>t}ngOnChanges(t){const i=t.value,o=t.indeterminate;i&&i.previousValue!==i.currentValue&&(this.onChange||this.init(),this.writeValue(i.currentValue)),o&&!o.currentValue&&void 0===i&&(this.value=!1)}onTouched(){}writeValue(t){null!=t&&(this.value=!this.indeterminate&&t,this.valueChange.emit(t),this.onChange(t))}onInputClick(t){this.onClick?.emit(t),this.writeValue(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-checkbox"]],inputs:{label:"label",value:"value",indeterminate:"indeterminate",disabled:"disabled",isRequired:"isRequired"},outputs:{onClick:"onClick",valueChange:"valueChange"},standalone:!1,features:[s.Jv_([{provide:it.kq,useExisting:(0,s.Rfq)(()=>e),multi:!0}]),s.OA$],decls:5,vars:7,consts:[[1,"checkbox-container",3,"click","ngClass"],["type","button",1,"pds-flex","pds-items-center","pds-justify-center","checkbox-btn-base-style",3,"ngClass"],["width","14","height","10","viewBox","0 0 14 10","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","2","viewBox","0 0 12 2","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","checkbox-label",3,"ngClass",4,"ngIf"],["width","14","height","10","viewBox","0 0 14 10","xmlns","http://www.w3.org/2000/svg"],["d","M13.0176 1.875L12.4336 2.45898L5.93359 8.95898L5.375 9.54297L4.79102 8.95898L1.54102 5.70898L0.957031 5.125L2.125 3.98242L2.68359 4.56641L5.375 7.23242L11.291 1.31641L11.875 0.732422L13.0176 1.875Z",3,"ngClass"],["width","12","height","2","viewBox","0 0 12 2","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.5","y","1.89999","width","1.8","height","11","transform","rotate(-90 0.5 1.89999)","fill","white",3,"ngClass"],[1,"checkbox-label",3,"ngClass"],[4,"ngIf"]],template:function(t,i){1&t&&(s.j41(0,"span",0),s.bIt("click",function(){return i.onInputClick(!i.value)}),s.j41(1,"button",1),s.DNE(2,r0,2,1,"svg",2)(3,a0,2,1,"svg",3),s.k0s(),s.DNE(4,c0,3,5,"span",4),s.k0s()),2&t&&(s.Y8G("ngClass",s.eq3(5,Xi,i.disabled)),s.R7$(),s.Y8G("ngClass",i.disabled?"checkbox-disable":i.indeterminate||i.value?"checked-enable":"unchecked-enable"),s.R7$(),s.Y8G("ngIf",!i.indeterminate&&i.value),s.R7$(),s.Y8G("ngIf",i.indeterminate),s.R7$(),s.Y8G("ngIf",null==i.label?null:i.label.length))},dependencies:[k.YU,k.bT],styles:[".checkbox-container[_ngcontent-%COMP%]{display:flex;cursor:pointer;align-items:center}.checkbox-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style[_ngcontent-%COMP%]{margin:.25rem;box-sizing:border-box;height:1rem;width:1rem;border-radius:var(--border-radius-default)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style.checked-enable[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-style:solid;border-color:var(--border-on-surface-primary);background-color:var(--background-primary-strong)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style.checked-enable[_ngcontent-%COMP%]:hover{background-color:var(--background-primary-strong-hover)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style.unchecked-enable[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-style:solid;border-color:var(--border-on-surface-primary);background-color:var(--background-surface-weak)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style.unchecked-enable[_ngcontent-%COMP%]:hover{background-color:var(--background-surface-weak-hover)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style.checkbox-disable[_ngcontent-%COMP%]{border-width:var(--border-width-default);border-style:solid;border-color:var(--border-on-surface-medium);background-color:var(--background-surface-disabled)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-btn-base-style[_ngcontent-%COMP%]:not(.checkbox-disable):focus-visible{--tw-shadow: 0px 0px 0px 3px #B692F6;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-label[_ngcontent-%COMP%]{position:relative;margin-left:.5rem;display:inline-block;font-family:var(--utility-medium-font-family);font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);color:var(--content-on-surface-strong)}.checkbox-container[_ngcontent-%COMP%]   .checkbox-label.disabled[_ngcontent-%COMP%]{color:var(--content-on-surface-disabled)}"]}),e})(),od=(()=>{class e{constructor(){this.type="info",this.showCloseBtn=!0,this.bannerConfig={title:"",description:"",primaryBtn:"",secondaryBtn:""},this.close=new s.bkB,this.actionClick=new s.bkB}dismiss(){this.close.emit(!0)}triggerAction(t){this.actionClick.emit(t)}isParamPresent(t){return this.bannerConfig?.[t]?.length>0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-callout-banner"]],inputs:{type:"type",showCloseBtn:"showCloseBtn",bannerConfig:"bannerConfig"},outputs:{close:"close",actionClick:"actionClick"},standalone:!1,ngContentSelectors:p0,decls:14,vars:15,consts:[[1,"pds-flex","pds-w-full"],[1,"pds-font-normal","pds-text-xl","fa-light",3,"ngClass"],[1,"text-container"],[1,"text-title"],[4,"ngIf"],[1,"text-desc",3,"ngClass"],[3,"variant","ngClass","click",4,"ngIf"],[3,"variant","click",4,"ngIf"],[3,"click","variant","ngClass"],[3,"click","variant"],[3,"click","variant","iconMode","icon"]],template:function(t,i){1&t&&(s.NAR(d0),s.j41(0,"div")(1,"div",0)(2,"div"),s.nrm(3,"i",1),s.k0s(),s.j41(4,"div",2)(5,"div",3),s.DNE(6,g0,2,1,"span",4),s.SdG(7),s.k0s(),s.j41(8,"div",5),s.DNE(9,u0,2,1,"span",4),s.SdG(10,1),s.k0s(),s.DNE(11,f0,2,3,"pds-ng-condensed-button",6)(12,m0,2,2,"pds-ng-condensed-button",7),s.k0s()(),s.DNE(13,_0,2,3,"div",4),s.k0s()),2&t&&(s.ZvI("callout-container ",i.type,"-container"),s.R7$(3),s.Y8G("ngClass",s.ziG(10,h0,"info"===i.t
1ype,"warning"===i.type,"success"===i.type,"critical"===i.type)),s.R7$(3),s.Y8G("ngIf",i.isParamPresent("title")),s.R7$(2),s.Y8G("ngClass",i.isParamPresent("primaryBtn")||i.isParamPresent("secondaryBtn")?"pds-mb-4":"pds-mb-0"),s.R7$(),s.Y8G("ngIf",i.isParamPresent("description")),s.R7$(2),s.Y8G("ngIf",i.isParamPresent("primaryBtn")),s.R7$(),s.Y8G("ngIf",i.isParamPresent("secondaryBtn")),s.R7$(),s.Y8G("ngIf",i.showCloseBtn))},dependencies:[k.YU,k.bT,xe],styles:[".callout-container[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;width:100%;flex-direction:row;align-items:flex-start;border-radius:var(--border-radius-default);border-width:var(--border-width-default);border-style:solid;padding:1rem}.callout-container.info-container[_ngcontent-%COMP%]{border-color:var(--content-on-info-strong);background-color:var(--background-info-weak);color:var(--content-on-info-strong)}.callout-container.warning-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-warning);background-color:var(--background-warning-weak);color:var(--content-on-warning-strong)}.callout-container.critical-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical);background-color:var(--background-critical-weak);color:var(--content-on-critical-strong)}.callout-container.success-container[_ngcontent-%COMP%]{border-color:var(--border-on-surface-success);background-color:var(--background-success-weak);color:var(--content-on-success-strong)}.callout-container[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.callout-container[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:var(--utility-medium-strong-font-size);line-height:var(--utility-medium-strong-line-height);font-weight:var(--utility-medium-strong-font-weight);font-weight:500}.callout-container[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .text-title[_ngcontent-%COMP%]:empty{display:none}.callout-container[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .text-desc[_ngcontent-%COMP%]{font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);font-weight:400}.callout-container[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]   .text-desc[_ngcontent-%COMP%]:empty{display:none}"]}),e})();let Eo=(()=>{class e{constructor(t){this.changeDetecor=t,this.size="small",this.title="",this.disableOverlayClick=!1,this.disableCloseButton=!1,this.close=new s.bkB,this.showOverflowGradient=!1,this.noOverflow=!0}handleEscapeKey(t){this.disableOverlayClick?t.preventDefault():this.closeModal()}ngAfterViewInit(){this.resizeObserver=new ResizeObserver(t=>{const[{contentRect:{height:i}}]=t;let o=this.body.nativeElement,r=this.bodyContent.nativeElement,l=this.modal.nativeElement,c=this.header.nativeElement.offsetHeight;if(96==c)switch(l.style.minHeight="236px",this.size){case"small":l.style.setProperty("--body-content-max-height","calc(48vh - 180px)");break;case"medium":l.style.setProperty("--body-content-max-height","calc(72vh - 180px)");break;case"large":l.style.setProperty("--body-content-max-height","calc(84vh - 180px)")}else switch(l.style.minHeight=String(c-96+236).concat("px"),this.size){case"small":l.style.setProperty("--body-content-max-height","calc(48vh - ".concat(String(c-96+180),"px)"));break;case"medium":l.style.setProperty("--body-content-max-height","calc(72vh - ".concat(String(c-96+180),"px)"));break;case"large":l.style.setProperty("--body-content-max-height","calc(84vh - ".concat(String(c-96+180),"px)"))}this.showOverflowGradient=!!(i&&Math.ceil(i)>=this.bodyContentHeightThreshold(c)),this.showOverflowGradient?(o.style.minHeight="56px",r.style.minHeight="56px"):(o.style.minHeight="0px",r.style.minHeight="0px"),"0px"===window.getComputedStyle(o).getPropertyValue("max-height")&&l.style.setProperty("--body-content-max-height",o.style.minHeight),l.style.marginBottom=window.innerWidth<=575?0:"auto",this.noOverflow=!this.showOverflowGradient,this.changeDetecor.detectChanges()}),this.modal.nativeElement.showModal(),this.modal.nativeElement.addEventListener("click",t=>{!this.disableOverlayClick&&t.target===this.modal.nativeElement&&this.closeModal()}),this.resizeObserver.observe(this.bodyContent.nativeElement)}ngOnDestroy(){this.resizeObserver.disconnect()}closeModal(){this.modal.nativeElement.close(),this.modalBackdrop&&this.modalBackdrop.nativeElement.remove(),this.close.emit()}get classes(){return["pds-ng-modal",this.size]}bodyContentHeightThreshold(t){switch(this.size){case"small":return Math.ceil(.48*window.innerHeight-(t-96+180));case"medium":return Math.ceil(.72*window.innerHeight-(t-96+180));case"large":return Math.ceil(.84*window.innerHeight-(t-96+180))}}}return e.\u0275fac=function(t){return new(t||e)(s.rXU(s.gRc))},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-modal"]],viewQuery:function(t,i){if(1&t&&(s.GBs(iw,5),s.GBs(sw,5),s.GBs(ow,5),s.GBs(rw,5),s.GBs(aw,5)),2&t){let o;s.mGM(o=s.lsd())&&(i.modal=o.first),s.mGM(o=s.lsd())&&(i.modalBackdrop=o.first),s.mGM(o=s.lsd())&&(i.header=o.first),s.mGM(o=s.lsd())&&(i.body=o.first),s.mGM(o=s.lsd())&&(i.bodyContent=o.first)}},hostBindings:function(t,i){1&t&&s.bIt("keydown.escape",function(r){return i.handleEscapeKey(r)},!1,s.EBC)},inputs:{size:"size",title:"title",disableOverlayClick:"disableOverlayClick",disableCloseButton:"disableCloseButton"},outputs:{close:"close"},standalone:!1,ngContentSelectors:cw,decls:23,vars:10,consts:[["modal",""],["header",""],["modalBody",""],["bodyContent",""],["modalBackdrop",""],[3,"ngClass"],[1,"pds-ng-modal-wrapper"],[1,"pds-ng-modal-header"],[1,"pds-ng-modal-header-close"],["tabindex","1",3,"onClick","variant","iconMode","icon","condXL","disabled"],[1,"pds-ng-modal-body"],[1,"pds-ng-modal-body-content"],[1,"pds-ng-modal-body-content-scroll-wrapper"],["class","pds-ng-modal-body-no-overflow-padding",4,"ngIf"],["class","pds-ng-modal-body-overflow-padding",4,"ngIf"],["class","pds-ng-modal-body-overflow-gradient",4,"ngIf"],[1,"pds-ng-modal-footer"],[1,"modal-backdrop"],[1,"pds-ng-modal-body-no-overflow-padding"],[1,"pds-ng-modal-body-overflow-padding"],[1,"pds-ng-modal-body-overflow-gradient"]],template:function(t,i){if(1&t){const o=s.RV6();s.NAR(lw),s.j41(0,"dialog",5,0)(2,"div",6)(3,"header",7,1)(5,"h3"),s.EFF(6),s.k0s(),s.j41(7,"div",8)(8,"pds-ng-condensed-button",9),s.bIt("onClick",function(){return s.eBV(o),s.Njj(i.closeModal())}),s.k0s()()(),s.j41(9,"div",10,2)(11,"div",11,3)(13,"div",12),s.SdG(14),s.k0s(),s.DNE(15,dw,1,0,"div",13)(16,pw,1,0,"div",14),s.k0s(),s.DNE(17,hw,1,0,"div",15),s.k0s(),s.j41(18,"footer",16),s.SdG(19,1),s.SdG(20,2),s.k0s()()(),s.nrm(21,"div",17,4)}2&t&&(s.Y8G("ngClass",i.classes),s.R7$(6),s.JRh(i.title),s.R7$(2),s.Y8G("variant","primary")("iconMode",!0)("icon","fa-regular fa-sharp fa-xmark")("c
1ondXL",!0)("disabled",i.disableCloseButton),s.R7$(7),s.Y8G("ngIf",i.noOverflow),s.R7$(),s.Y8G("ngIf",i.showOverflowGradient),s.R7$(),s.Y8G("ngIf",i.showOverflowGradient))},dependencies:[k.YU,k.bT,xe],styles:[".pds-ng-modal[_ngcontent-%COMP%]{--body-content-max-height:calc(48vh - 180px);margin-left:auto;margin-right:auto;width:100%;max-width:100%;overflow:hidden;border-radius:var(--border-radius-default);border-style:none;padding:var(--space-0)}.pds-ng-modal.small[_ngcontent-%COMP%]{max-height:48%}@media (min-width: 576px){.pds-ng-modal.small[_ngcontent-%COMP%]{width:60%}}@media (min-width: 768px){.pds-ng-modal.small[_ngcontent-%COMP%]{width:42%}}@media (min-width: 1440px){.pds-ng-modal.small[_ngcontent-%COMP%]{width:36%}}.pds-ng-modal.small[_ngcontent-%COMP%]   .pds-ng-modal-body[_ngcontent-%COMP%], .pds-ng-modal.small[_ngcontent-%COMP%]   .pds-ng-modal-body-content[_ngcontent-%COMP%]{max-height:var(--body-content-max-height)}.pds-ng-modal.medium[_ngcontent-%COMP%]{max-height:72%}@media (min-width: 576px){.pds-ng-modal.medium[_ngcontent-%COMP%]{width:84%}}@media (min-width: 768px){.pds-ng-modal.medium[_ngcontent-%COMP%]{width:60%}}@media (min-width: 1440px){.pds-ng-modal.medium[_ngcontent-%COMP%]{width:48%}}.pds-ng-modal.medium[_ngcontent-%COMP%]   .pds-ng-modal-body[_ngcontent-%COMP%]   .pds-ng-modal-body-content[_ngcontent-%COMP%]{max-height:calc(72vh - 180px)}.pds-ng-modal.large[_ngcontent-%COMP%]{max-height:84%}@media (min-width: 576px){.pds-ng-modal.large[_ngcontent-%COMP%]{width:96%}}@media (min-width: 1280px){.pds-ng-modal.large[_ngcontent-%COMP%]{width:72%}}.pds-ng-modal.large[_ngcontent-%COMP%]   .pds-ng-modal-body[_ngcontent-%COMP%]   .pds-ng-modal-body-content[_ngcontent-%COMP%]{max-height:calc(84vh - 180px)}.pds-ng-modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:var(--space-800)}.pds-ng-modal-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem;font-weight:600}.pds-ng-modal-header-close[_ngcontent-%COMP%]{margin-top:4px;margin-left:var(--space-400)}.pds-ng-modal-body[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr));align-items:flex-end;gap:0px;padding-right:var(--space-400);padding-left:var(--space-800);font-size:16px}.pds-ng-modal-body-content[_ngcontent-%COMP%]{overflow-y:auto;grid-area:1/1/2/2}.pds-ng-modal-body-content-scroll-wrapper[_ngcontent-%COMP%]{margin-right:1rem}.pds-ng-modal-body-overflow-gradient[_ngcontent-%COMP%]{height:2rem;background-image:linear-gradient(to bottom,var(--tw-gradient-stops));--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #fff var(--tw-gradient-to-position);max-width:calc(100% - 16px);grid-area:1/1/2/2}.pds-ng-modal-body-overflow-padding[_ngcontent-%COMP%]{height:2rem}.pds-ng-modal-body-no-overflow-padding[_ngcontent-%COMP%]{padding-bottom:2rem}.pds-ng-modal-footer[_ngcontent-%COMP%]{min-height:84px;padding:1rem 2rem 2rem;display:flex;flex-direction:row-reverse;gap:.5rem}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:45;background-color:#000c;opacity:.8;height:100%;width:100%;transition:opacity .3s ease,visibility .3s ease}.modal-backdrop.active[_ngcontent-%COMP%]{pointer-events:none;visibility:visible;opacity:.8}"]}),e})(),Ao=(()=>{class e{constructor(){this.placeholder="Search by name...",this.disabled=!1,this.debounced=!0,this.debounceDelay=500,this.searchInputWidth="auto",this.prefixIcon="fa-light fa-search",this.helpText="",this.hasErrors=!1,this.onSearch=new s.bkB,this.onClear=new s.bkB,this.onFocus=new s.bkB,this.subscriptions$=new St.yU,this.onSearchDebouncer=new nt.B,this.value="",this.onChange=t=>{},this.onTouched=()=>{}}focusIn(){this.onTouched()}keyDown(t){"Escape"===t.key&&this.clearField()}ngOnInit(){this.debounced&&this.debounceDelay&&this.subscriptions$.add(this.onSearchDebouncer.pipe((0,_r.B)(this.debounceDelay)).subscribe(t=>this.onSearch.emit(t)))}ngOnDestroy(){this.subscriptions$.unsubscribe()}clearField(){this.value="",this.onClear.emit()}onFocusEvent(){this.onFocus.emit(this.value)}writeValue(t){this.value=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}get showClearIcon(){return!!this.value}handleValueChange(t){this.value=t.target.value,this.debounced?this.onSearchDebouncer.next(this.value):this.onSearch.emit(this.value)}handleClearClick(){this.clearField(),this.focusInputField()}focusInputField(){this.inputElementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-search"]],viewQuery:function(t,i){if(1&t&&s.GBs(Fc,5),2&t){let o;s.mGM(o=s.lsd())&&(i.inputElementRef=o.first)}},hostBindings:function(t,i){1&t&&s.bIt("focusin",function(r){return i.focusIn(r)})("keydown",function(r){return i.keyDown(r)})},inputs:{placeholder:"placeholder",disabled:"disabled",debounced:"debounced",debounceDelay:"debounceDelay",searchInputWidth:"searchInputWidth",prefixIcon:"prefixIcon",helpText:"helpText",hasErrors:"hasErrors"},outputs:{onSearch:"onSearch",onClear:"onClear",onFocus:"onFocus"},standalone:!1,features:[s.Jv_([{provide:it.kq,useExisting:(0,s.Rfq)(()=>e),multi:!0}])],decls:7,vars:15,consts:[["input",""],[1,"pds-ng-search-container",3,"ngClass"],["role","search",1,"pds-ng-search","pds-relative","pds-inline-block",3,"ngStyle"],[4,"ngIf"],["type","text",1,"box-border","pds-w-80","pds-h-9","pds-border-on-surface-strong","pds-rounded","focus:pds-shadow-focus-default","pds-leading-[1.25rem]","pds-text-content-on-surface-strong","pds-text-md","pds-bg-surface-weak","placeholder:pds-italic","placeholder:pds-text-content-on-surface-weak","disabled:pds-text-content-on-surface-disabled","disabled:pds-bg-surface-disabled","disabled:pds-border-on-surface-strong",3,"input","focus","placeholder","value","disabled","ngStyle"],["class","fa-light fa-xmark pds-font-normal pds-text-lg pds-absolute pds-top-2 pds-right-3 pds-p-0.5 pds-text-content-on-surface-weak",3,"click",4,"ngIf"],["class","help-text",4,"ngIf"],[3,"click"],[1,"fa-light","fa-xmark","pds-font-normal","pds-text-lg","pds-absolute","pds-top-2","pds-right-3","pds-p-0.5","pds-text-content-on-surface-weak",3,"click"],[1,"help-text"]],template:function(t,i){if(1&t){const o=s.RV6();s.j41(0,"div",1)(1,"div",2),s.DNE(2,gw,2,3,"ng-container",3),s.j41(3,"input",4,0),s.bIt("input",function(a){return s.eBV(o),s.Njj(i.handleValueChange(a))})("focus",function(){return s.eBV(o),s.Njj(i.onFocusEvent())}),s.k0s(),s.DNE(5,uw,1,0,"i",5),s.k0s(),s.DNE(6,fw,2,1,"span",6),s.k0s()}2&t&&(s.Y8G("ngClass",s.eq3(9,$c,i.hasErrors)),s.R7$(),s.Y8G("ngStyle",s.eq3(11,Ui,i.searchInputWidth)),s.R7$(),s.Y8G("ngIf",i.prefixIcon),s.R7$(),s.FS9("placeholder",i.placeholder),s.Y8G("value",i.value)("disabled",i.disabled)("ngStyle",s.eq3(13,Ui,i.searchInputWidth)),s.R7$(2),s.Y8G("ngIf",i.showClearIcon),s.R7$(),s.Y8G("ngIf",i.helpText.length>0))},dependencies:[k.YU,k.bT,k.B3],styles:["input[type=text][_ngcontent-%COMP%]{height:2.25rem;padding:.4375rem 1.75rem .4375rem 2.25rem}input[type=text][_ngcontent-%COMP%]:focus{border-color:var(--content-link-focus);--tw-ring-color: var(--content-link-focus) }.pds-ng-search-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.pds-ng-search-container[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{margin-top:.375rem;font-size:var(--utility-small-font-size);line-height:var(--utility-small-line-height);
1font-weight:var(--utility-small-font-weight);color:var(--content-on-surface-weak)}.pds-ng-search-container.hasErrors[_ngcontent-%COMP%]   .pds-ng-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical)}.pds-ng-search-container.hasErrors[_ngcontent-%COMP%]   .pds-ng-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-within{--tw-shadow: 0px 0px 0px 3px #FDA29B;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pds-ng-search-container.hasErrors[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}"]}),e})(),Bo=(()=>{class e{constructor(t){this.renderer=t,this.isSingleSelect=!0,this.showAllOptionsAlways=!1,this.options=[],this.selectedOptions=[],this.label="",this.placeholder="Select Item.",this.helpText="",this.hasErrors=!1,this.hasWarnings=!1,this.showSearchFilter=!1,this.searchFilterPlaceholder="Search by name",this.valueChange=new s.bkB,this.isRequired=!1,this.isOptionMetadataAsDisplayText=!1,this.isAllowedToSelectSameOption=!1,this.onToggle=new s.bkB,this.onSearch=new s.bkB,this.type="Dropdown",this.onChange=i=>i,this.onTouch=()=>{},this.disabled=!1,this.isOpen=!1,this.selectedItems=[],this.allSelected=!1,this.selectedOnly=!1,this.tagsToShow=[],this.groupedItems=[],this.filteredOptions=[],this.hasFilteredResults=!0,this.isSearchLoader=!1,this.windowEventUnListners=[]}ngOnInit(){this.windowEventUnListners.push(this.renderer.listen("window","click",t=>{this.dropdownEl?.nativeElement.contains(t.target)||(this.isOpen=!1),this.isOpen&&(this.allSelected=this.selectedItems.length>0&&this.selectedItems.length===this.options?.length,this.decideTagsVisibility())})),this.windowEventUnListners.push(this.renderer.listen("window","resize",()=>this.setOptionsListPosition())),this.windowEventUnListners.push(this.renderer.listen("window","scroll",()=>this.setOptionsListPosition()))}ngOnChanges(t){if(this.showSearchFilter&&!this.onSearch.observed)throw new Error('Its mandatory to observe and handle search by listening to "onSearch" when "showSearchFilter" is set to true');if(this.selectedOptions&&this.selectedOptions.length){if(this.isSingleSelect&&this.selectedOptions.length>1)throw new Error("Multiple selected values for this variant. Either change variant or reduce values to 1 only.");this.selectedItems=this.isSingleSelect?[this.selectedOptions[0]]:[...this.selectedOptions],this.allSelected=this.selectedItems.length===this.options?.length}JSON.stringify(t.options?.currentValue)!==JSON.stringify(t.options?.previousValue)&&(this.groupedItems=[],this.initOptionsList())}initOptionsList(){let t=new Map;this.options.forEach(r=>{let a=r.optionGroup||"",l=t.has(a)?t.get(a):[];l.push(r),t.set(a,l)});let i=t.keys(),o=i.next();for(;!o.done;){let r={groupLabel:o.value,items:t.get(o.value)};this.groupedItems.push(r),o=i.next()}this.filteredOptions=structuredClone(this.groupedItems),this.decideTagsVisibility()}writeValue(t){!this.disabled&&null!=t&&(this.selectedItems=t,this.allSelected=this.selectedItems.length===this.options?.length,this.valueChange.emit(this.selectedItems),this.onChange(this.selectedItems))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}setDisabledState(t){this.disabled=t}toggleDropdown(t=!1){this.disabled||(this.isOpen=!this.isOpen),this.decideTagsVisibility(),this.selectedOnly=!this.showAllOptionsAlways&&t,this.setOptionsListPosition(),this.onToggle.emit(this.isOpen),this.showSearchFilter&&this.emitSearchFilterEvent("")}itemClicked(t){if(this.isSingleSelect)this.selectedItems.length>0&&this.amISelected(t)?this.isAllowedToSelectSameOption&&this.valueChange.emit(this.selectedItems):this.writeValue([t]),this.isOpen=!1;else{let i=-1;for(let o=0;o<this.selectedItems.length;o++)if(t.optionId===this.selectedItems[o].optionId){i=o;break}-1!==i?this.selectedItems.splice(i,1):this.selectedItems.push(t),this.writeValue(this.selectedItems),this.decideTagsVisibility(),this.isOpen=!0}}amISelected(t){let i=!1;return i=this.selectedItems.some(o=>t.optionId===o.optionId),i}isAnythingSelected(){return"string"==typeof this.selectedItems&&(this.selectedItems=JSON.parse(this.selectedItems)),this.selectedItems.length>0}toggleSelectAll(){event?.stopPropagation(),this.allSelected?(this.selectedItems=[],this.allSelected=!1,this.onChange(this.selectedItems)):(this.selectedItems=[...this.options],this.allSelected=!0),this.writeValue(this.selectedItems),this.valueChange.emit(this.selectedItems),this.decideTagsVisibility(),this.isOpen=!0}decideTagsVisibility(){let t=Math.floor((this.dropdownBtn?.nativeElement.firstChild.offsetWidth-70)/130);this.tagsToShow=this.isOpen?this.selectedItems:this.selectedItems.slice(0,t)}getShowMoreText(){let t=this.selectedItems.length-this.tagsToShow.length;return"+"+t+" "+(t>1?"items":"item")}setOptionsListPosition(){let t=this.dropdownBtn?.nativeElement.getBoundingClientRect(),i="showAbove";t.bottom>.6*window.innerHeight?setTimeout(()=>{this.dropdownOptionsContainer?.nativeElement.classList.add(i)}):this.dropdownOptionsContainer?.nativeElement.classList.remove(i)}filterOptions(t){if(""!==t.value){const i=t.value;let o=this.groupedItems[0].items.filter(r=>r.optionText.toLowerCase().includes(i));this.filteredOptions[0].items=o,this.isOpen=!0,this.hasFilteredResults=o.length>0}else this.filteredOptions=JSON.parse(JSON.stringify(this.groupedItems)),this.hasFilteredResults=!0}emitSearchFilterEvent(t){this.onSearch.emit(t)}
1ngOnDestroy(){this.windowEventUnListners.forEach(t=>t())}}return e.\u0275fac=function(t){return new(t||e)(s.rXU(s.sFG))},e.\u0275cmp=s.VBU({type:e,selectors:[["pds-ng-dropdown"]],viewQuery:function(t,i){if(1&t&&(s.GBs(mw,7),s.GBs(_w,7),s.GBs(bw,5),s.GBs(vw,5)),2&t){let o;s.mGM(o=s.lsd())&&(i.dropdownEl=o.first),s.mGM(o=s.lsd())&&(i.dropdownBtn=o.first),s.mGM(o=s.lsd())&&(i.tagsContainer=o.first),s.mGM(o=s.lsd())&&(i.dropdownOptionsContainer=o.first)}},inputs:{isSingleSelect:"isSingleSelect",showAllOptionsAlways:"showAllOptionsAlways",options:"options",selectedOptions:"selectedOptions",label:"label",placeholder:"placeholder",helpText:"helpText",hasErrors:"hasErrors",hasWarnings:"hasWarnings",showSearchFilter:"showSearchFilter",searchFilterPlaceholder:"searchFilterPlaceholder",isRequired:"isRequired",isOptionMetadataAsDisplayText:"isOptionMetadataAsDisplayText",isAllowedToSelectSameOption:"isAllowedToSelectSameOption",type:"type",disabled:"disabled",isSearchLoader:"isSearchLoader"},outputs:{valueChange:"valueChange",onToggle:"onToggle",onSearch:"onSearch"},standalone:!1,features:[s.Jv_([{provide:it.kq,useExisting:(0,s.Rfq)(()=>e),multi:!0}]),s.OA$],ngContentSelectors:yw,decls:19,vars:16,consts:[["showOptionMetadataAsDisplayText",""],["dropdownEl",""],["dropdownBtn",""],["tagsContainer",""],["dropdownOptionsContainer",""],[1,"dropdown-container",3,"ngClass"],["class","label",4,"ngIf"],[1,"pds-relative"],["type","button",1,"dropdown-btn",3,"click","disabled","ngClass"],[1,"selected-item-container"],["class","dd-placeholder",4,"ngIf"],["class","selected-single-item",4,"ngIf"],[1,"max-w-[calc(100%-18px)]"],["class","item-tag",4,"ngIf"],["class","pds-italic pds-text-content-on-surface-weak",3,"placeholder","ngClass","disabled","input",4,"ngIf"],[1,"fa-sharp","fa-light","chevron",3,"keyup","ngClass"],["class","dropdown-options-container",4,"ngIf"],[1,"help-text"],[1,"pds-flex","pds-gap-2","pds-items-center"],["class","pds-h-6 pds-w-6",3,"src",4,"ngIf"],[1,"pds-truncate"],[1,"pds-h-6","pds-w-6",3,"src"],[1,"label"],["class","pds-pr-1",4,"ngIf"],[1,"pds-pr-1"],[1,"dd-placeholder"],[1,"selected-single-item"],[4,"ngIf","ngIfElse"],[1,"pds-truncate","pds-flex-1",3,"ngClass"],[1,"pds-truncate","pds-self-center","pds-text-utility-small","pds-text-content-on-base-moderate","pds-flex-1"],[1,"item-tag"],[3,"tag_id","value","disabled","removeTag",4,"ngFor","ngForOf"],[3,"value","click",4,"ngIf"],[3,"removeTag","tag_id","value","disabled"],[3,"click","value"],[1,"pds-italic","pds-text-content-on-surface-weak",3,"input","placeholder","ngClass","disabled"],[1,"dropdown-options-container"],[4,"ngIf"],[1,"pds-border-b","pds-border-on-surface-medium","pds-w-full","[&_.pds-ng-search]:!pds-w-full","[&_.pds-ng-search>input]:!pds-w-full"],[3,"onClear","onSearch","debounced","debounceDelay","placeholder"],[4,"ngFor","ngForOf"],["type","button",1,"dropdown-option",3,"click","ngClass"],[1,"option-content","pds-items-center"],[1,"pds-mr-2",3,"disabled","value","indeterminate"],[1,"option-text-container"],[1,"pds-border-b","pds-border-on-surface-medium","pds-w-full"],["class","dropdown-label",4,"ngIf"],["type","button","class","dropdown-option",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"dropdown-label"],[1,"option-content","pds-justify-between",3,"ngClass"],[1,"pds-flex"],["class","pds-mr-2",3,"disabled","value",4,"ngIf"],[1,"pds-flex","pds-gap-2","pds-items-start"],[1,"ellipsis-style","primary-text",3,"title"],["class","ellipsis-style secondary-text",4,"ngIf"],["class","far fa-check select-icon",4,"ngIf"],[1,"pds-mr-2",3,"disabled","value"],[1,"ellipsis-style","secondary-text"],[3,"title"],[1,"far","fa-check","select-icon"],[1,"pds-py-sm"],[1,"pds-flex","pds-flex-col","pds-justify-center","pds-items-center","pds-p-4xl"],["src","/images/no_results_found_small.svg","alt","No Results",1,"pds-pb-sm"],[1,"pds-text-center","pds-text-content-on-surface-strong","pds-text-headline-h3"],[1,"pds-text-center","pds-text-body-text-medium","pds-text-content-on-surface-strong"],[1,"pds-text-content-on-surface-strong","pds-w-full","pds-h-24","pds-flex","pds-justify-center","pds-items-center"],[1,"fa-duotone","fa-spinner-third","fa-spin","pds-w-fit","pds-h-fit","pds-inline-block","pds-text-[20px]"]],template:function(t,i){if(1&t){const o=s.RV6();s.NAR(ww),s.DNE(0,Ow,5,2,"ng-template",null,0,s.C5r),s.j41(2,"span",5),s.DNE(3,Sw,4,2,"span",6),s.j41(4,"div",7,1)(6,"button",8,2),s.bIt("click",function(){return s.eBV(o),s.Njj(i.toggleDropdown())}),s.j41(8,"span",9),s.DNE(9,Tw,2,1,"span",10)(10,Iw,2,2,"span",11),s.j41(11,"div",12),s.DNE(12,Aw,5,2,"div",13),s.k0s(),s.DNE(13,Bw,1,3,"input",14),s.j41(14,"i",15),s.bIt("keyup",function(){return s.eBV(o),s.Njj(i.toggleDropdown())}),s.k0s()()(),s.DNE(15,Kw,5,3,"div",16),s.k0s(),s.j41(16,"span",17),s.EFF(17),s.SdG(18),s.k0s()()}2&t&&(s.R7$(2),s.Y8G("ngClass",i.hasErrors?"hasErrors":i.hasWarnings?"hasWarnings":""),s.R7$(),s.Y8G("ngIf",i.label.length>0),s.R7$(3),s.Y8G("disabled",i.disabled)("ngClass",s.eq3(11,Cw,i.disabled)),s.R7$(3),s.Y8G("ngIf",!i.isAnythingSelected()&&"Dropdown"===i.t
1ype),s.R7$(),s.Y8G("ngIf",i.isSingleSelect&&i.isAnythingSelected()),s.R7$(2),s.Y8G("ngIf",!i.isSingleSelect&&i.isAnythingSelected()),s.R7$(),s.Y8G("ngIf","Combobox"===i.type),s.R7$(),s.Y8G("ngClass",s.l_i(13,Vc,i.isOpen,!i.isOpen)),s.R7$(),s.Y8G("ngIf",i.isOpen),s.R7$(2),s.SpI("",i.helpText," "))},dependencies:[k.YU,k.Sq,k.bT,qi,Ln,Ao],styles:[".dropdown-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-container[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{margin-bottom:.375rem;font-family:var(--utility-small-font-family);color:var(--content-on-surface-moderate)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{display:flex;height:2.25rem;width:100%;flex-direction:row;align-items:center;justify-content:space-between;padding:.5rem .5rem .5rem .75rem;box-sizing:border-box;border-radius:var(--border-radius-default);border-width:var(--border-width-default);border-style:solid;border-color:var(--border-on-surface-strong);background-color:var(--background-surface-weak);color:var(--content-on-surface-weak)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn.disabled-dropdown[_ngcontent-%COMP%]{cursor:not-allowed;background-color:var(--background-surface-disabled);color:var(--content-on-surface-disabled)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;overflow:auto}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .dd-placeholder[_ngcontent-%COMP%]{font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);font-weight:400;font-style:italic;color:var(--content-on-surface-weak);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:.5rem}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-single-item[_ngcontent-%COMP%]{text-align:start;font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);font-weight:400;color:var(--content-on-surface-strong);display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;padding-right:.5rem;max-width:calc(100% - 20px)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .item-tag[_ngcontent-%COMP%]{display:flex;column-gap:.375rem;white-space:nowrap;margin-right:.5rem;max-height:2.16rem;width:100%;overflow:auto;line-height:normal}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .chevron[_ngcontent-%COMP%]{padding-left:2px;font-size:var(--font-size-text-lg)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]:focus-visible:not(.disabled-dropdown){--tw-shadow: 0px 0px 0px 3px #B692F6;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]:hover:not(.disabled-dropdown){border-width:var(--border-width-default);border-color:var(--border-on-surface-primary)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]{max-height:620px;position:absolute;z-index:100;width:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;background-color:var(--background-base-weak);padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--border-radius-default);--tw-shadow: 0px 2px 6px 0px rgba(0, 0, 0, .19);--tw-shadow-colored: 0px 2px 6px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container.showAbove[_ngcontent-%COMP%]{bottom:2.25rem}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]{width:100%;background-color:var(--background-base-weak);padding:.5rem 1rem;color:var(--content-on-base-moderate)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option.selected[_ngcontent-%COMP%]{background-color:var(--background-base-selected)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]:hover{background-color:var(--background-base-weak-hover)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]:focus-visible{--tw-shadow: inset 0px 0px 0px 3px var(--focus-inner-color);
1--tw-shadow-colored: inset 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]{display:flex}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]   .option-text-container[_ngcontent-%COMP%]{display:grid;flex:1 1 0%;text-align:left}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]   .option-text-container[_ngcontent-%COMP%]   .ellipsis-style[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:.5rem}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]   .option-text-container[_ngcontent-%COMP%]   .ellipsis-style.primary-text[_ngcontent-%COMP%]{font-size:var(--utility-medium-font-size);line-height:var(--utility-medium-line-height);font-weight:var(--utility-medium-font-weight);color:var(--content-on-base-strong)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]   .option-text-container[_ngcontent-%COMP%]   .ellipsis-style.secondary-text[_ngcontent-%COMP%]{font-size:var(--utility-small-font-size);line-height:var(--utility-small-line-height);font-weight:var(--utility-small-font-weight);color:var(--content-on-base-moderate)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-option[_ngcontent-%COMP%]   .option-content[_ngcontent-%COMP%]   .select-icon[_ngcontent-%COMP%]{font-size:var(--font-size-text-lg);color:var(--content-on-base-strong)}.dropdown-container[_ngcontent-%COMP%]   .dropdown-options-container[_ngcontent-%COMP%]   .dropdown-label[_ngcontent-%COMP%]{width:100%;background-color:var(--background-base-weak);padding:.5rem 1.25rem;font-size:var(--utility-extra-small-font-size);line-height:var(--utility-extra-small-line-height);font-weight:var(--utility-extra-small-font-weight);text-transform:uppercase;color:var(--content-on-base-moderate);border-top-width:var(--border-width-default);border-color:var(--border-on-surface-medium)}.dropdown-container[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{margin-top:.375rem;font-family:var(--utility-small-font-family);color:var(--content-on-surface-weak)}.dropdown-container.hasErrors[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .dropdown-container.hasErrors[_ngcontent-%COMP%]   .chevron[_ngcontent-%COMP%], .dropdown-container.hasErrors[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{color:var(--content-on-surface-critical)}.dropdown-container.hasErrors[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{border-color:var(--border-on-surface-critical)}.dropdown-container.hasErrors[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]:focus-visible:not(.disabled-dropdown){--tw-shadow: 0px 0px 0px 3px #FDA29B;
1--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dropdown-container.hasWarnings[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .dropdown-container.hasWarnings[_ngcontent-%COMP%]   .chevron[_ngcontent-%COMP%], .dropdown-container.hasWarnings[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{color:var(--content-on-surface-warning)}.dropdown-container.hasWarnings[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{border-color:var(--content-on-surface-warning)}.dropdown-container.hasWarnings[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]:focus-visible:not(.disabled-dropdown){--tw-shadow: 0px 0px 0px 3px #FDA29B;--tw-shadow-colored: 0px 0px 0px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.search-filter[_ngcontent-%COMP%]{height:100%;overflow:hidden;border-style:none;background-color:transparent;box-sizing:border-box;width:200%;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px;line-height:normal;vertical-align:inherit}[_nghost-%COMP%]     .pds-ng-search input{background-color:var(--background-base-weak);color:var(--content-on-surface-strong);border-width:0px}[_nghost-%COMP%]     .pds-ng-search input:focus{box-shadow:none}[_nghost-%COMP%]     .pds-ng-search input::placeholder{color:var(--content-on-surface-weak)}"]}),e})();let Yo=(()=>{class e{constructor(){this._notificationsSubject$=new nt.B,this._notificationClickSubject$=new nt.B,this._notificationStatusSubject$=new nt.B,this.subscribeNotifications$=this._notificationsSubject$.asObservable(),this.notificationClicked$=this._notificationClickSubject$.asObservable(),this.notificationStatus$=this._notificationStatusSubject$.asObservable()}pushNotification(t){this._notificationsSubject$.next(t)}notifyNotificationClicked(t){this._notificationClickSubject$.next(t)}updateNotificationsStatus(t){this._notificationStatusSubject$.next(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let $k=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.$C({type:e}),e.\u0275inj=s.G2t({providers:[Yo],imports:[k.MD,it.X1,Ze.iI,it.YN,fp]}),e})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.