@drayman/elements 1.85.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ngx-charts/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var Yw={289:(mn,oi,ut)=>{mn.exports={ResizeSensor:ut(294),ElementQueries:ut(322)}},322:function(mn,oi,ut){"use strict";var bi,cn;"undefined"!=typeof window&&window,bi=[ut(294)],void 0!==(cn=function(Bn){var Gt=function(){var se,Mt={},Ln=[];function To(R){R||(R=document.documentElement);var j=window.getComputedStyle(R,null).fontSize;return parseFloat(j)||16}function ht(R,j){var ue=j.split(/\d/),le=ue[ue.length-1];switch(j=parseFloat(j),le){case"px":default:return j;case"em":return j*To(R);case"rem":return j*To();case"vw":return j*document.documentElement.clientWidth/100;case"vh":return j*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Re=document.documentElement.clientWidth/100,vt=document.documentElement.clientHeight/100;return j*(0,Math["vmin"===le?"min":"max"])(Re,vt)}}function De(R,j){this.element=R;var ue,le,Re,vt,Jt,ot,Yt,Ut,ai=["min-width","min-height","max-width","max-height"];this.call=function(){for(ue in Re=function re(R){if(!R.getBoundingClientRect)return{width:R.offsetWidth,height:R.offsetHeight};var j=R.getBoundingClientRect();return{width:Math.round(j.width),height:Math.round(j.height)}}(this.element),ot={},Mt[j])!Mt[j].hasOwnProperty(ue)||(vt=ht(this.element,(le=Mt[j][ue]).value),Jt="width"===le.property?Re.width:Re.height,Yt="","min"===le.mode&&Jt>=vt&&(Yt+=le.value),"max"===le.mode&&Jt<=vt&&(Yt+=le.value),ot[Ut=le.mode+"-"+le.property]||(ot[Ut]=""),Yt&&-1===(" "+ot[Ut]+" ").indexOf(" "+Yt+" ")&&(ot[Ut]+=" "+Yt));for(var zn in ai)!ai.hasOwnProperty(zn)||(ot[ai[zn]]?this.element.setAttribute(ai[zn],ot[ai[zn]].substr(1)):this.element.removeAttribute(ai[zn]))}}function Hn(R,j){R.elementQueriesSetupInformation||(R.elementQueriesSetupInformation=new De(R,j)),R.elementQueriesSensor||(R.elementQueriesSensor=new Bn(R,function(){R.elementQueriesSetupInformation.call()}))}function Vn(R,j,ue,le){if(void 0===Mt[R]){Mt[R]=[];var Re=Ln.length;se.innerHTML+="\n"+R+" {animation: 0.1s element-queries;}",se.innerHTML+="\n"+R+" > .resize-sensor {min-width: "+Re+"px;}",Ln.push(R)}Mt[R].push({mode:j,property:ue,value:le})}function ae(R){var j;if(document.querySelectorAll&&(j=R?R.querySelectorAll.bind(R):document.querySelectorAll.bind(document)),!j&&"undefined"!=typeof $$&&(j=$$),!j&&"undefined"!=typeof jQuery&&(j=jQuery),!j)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return j}function $n(R){var j=[],ue=[],le=[],Re=0,vt=-1,Jt=[];for(var ot in R.children)if(R.children.hasOwnProperty(ot)&&R.children[ot].tagName&&"img"===R.children[ot].tagName.toLowerCase()){j.push(R.children[ot]);var Yt=R.children[ot].getAttribute("min-width")||R.children[ot].getAttribute("data-min-width"),Ut=R.children[ot].getAttribute("data-src")||R.children[ot].getAttribute("url");le.push(Ut),ue.push({minWidth:Yt}),Yt?R.children[ot].style.display="none":(Re=j.length-1,R.children[ot].style.display="block")}function zn(){var vn,qe=!1;for(vn in j)!j.hasOwnProperty(vn)||ue[vn].minWidth&&R.offsetWidth>ue[vn].minWidth&&(qe=vn);if(qe||(qe=Re),vt!==qe)if(Jt[qe])j[vt].style.display="none",j[qe].style.display="block",vt=qe;else{var Ts=new Image;Ts.onload=function(){j[qe].src=le[qe],j[vt].style.display="none",j[qe].style.display="block",Jt[qe]=!0,vt=qe},Ts.src=le[qe]}else j[qe].src=le[qe]}vt=Re,R.resizeSensorInstance=new Bn(R,zn),zn()}var yn=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Hs=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Wt(R){var j,ue,le,Re;for(R=R.replace(/'/g,'"');null!==(j=yn.exec(R));)for(ue=j[1]+j[3],le=j[2];null!==(Re=Hs.exec(le));)Vn(ue,Re[1],Re[2],Re[3])}function $i(R){var j="";if(R)if("string"==typeof R)(-1!==(R=R.toLowerCase()).indexOf("min-width")||-1!==R.indexOf("max-width"))&&Wt(R);else for(var ue=0,le=R.length;ue<le;ue++)1===R[ue].type?(-1!==(j=R[ue].selectorText||R[ue].cssText).indexOf("min-height")||-1!==j.indexOf("max-height")||-1!==j.indexOf("min-width")||-1!==j.indexOf("max-width"))&&Wt(j):4===R[ue].type?$i(R[ue].cssRules||R[ue].rules):3===R[ue].type&&R[ue].styleSheet.hasOwnProperty("cssRules")&&$i(R[ue].styleSheet.cssRules)}var bs=!1;this.init=function(){var R="animationstart";void 0!==document.documentElement.style.webkitAnimationName?R="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?R="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(R="oanimationstart"),document.body.addEventListener(R,function(le){var Re=le.target,vt=Re&&window.getComputedStyle(Re,null),Jt=vt&&vt.getPropertyValue("animation-name");if(Jt&&-1!==Jt.indexOf("element-queries")){Re.elementQueriesSensor=new Bn(Re,function(){Re.elementQueriesSetupInformation&&Re.elementQueriesSetupInformation.call()});var Ut=window.getComputedStyle(Re.resizeSensor,null).getPropertyValue("min-width");Ut=parseInt(Ut.replace("px","")),Hn(le.target,Ln[Ut])}}),bs||((se=document.createElement("style")).type="text/css",se.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",se.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(se),bs=!0);for(var j=0,ue=document.styleSheets.length;j<ue;j++)try{document.styleSheets[j].href&&0===document.styleSheets[j].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[j].href),$i(document.styleSheets[j].cssRules||document.styleSheets[j].rules||document.styleSheets[j].cssText)}catch(le){}!function je(){for(var j=ae()("[data-responsive-image],[responsive-image]"),ue=0,le=j.length;ue<le;ue++)$n(j[ue])}()},this.findElementQueriesElements=function(R){!function _n(R){var j=ae(R);for(var ue in Mt)if(Mt.hasOwnProperty(ue))for(var le=j(ue,R),Re=0,vt=le.length;Re<vt;Re++)Hn(le[Re],ue)}(R)},this.update=function(){this.init()}};Gt.update=function(){Gt.instance.update()},Gt.detach=function(se){se.elementQueriesSetupInformation?(se.elementQueriesSensor.detach(),delete se.elementQueriesSetupInformation,delete se.elementQueriesSensor):se.resizeSensorInstance&&(se.resizeSensorInstance.detach(),delete se.resizeSensorInstance)},Gt.init=function(){Gt.instance||(Gt.instance=new Gt),Gt.instance.init()};return Gt.findElementQueriesElements=function(se){Gt.instance.findElementQueriesElements(se)},Gt.listen=function(){!function(se){if(document.addEventListener)document.addEventListener("DOMContentLoaded",se,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Mt=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(se(),clearInterval(Mt))},10);else window.onload=se}(Gt.init)},Gt}.apply(oi,bi))&&(mn.exports=cn)},294:function(mn,oi,ut){"use strict";var bi;"undefined"!=typeof window&&window,void 0!==(bi=function(){if("undefined"==typeof window)return null;var cn="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Bn=cn.requestAnimationFrame||cn.mozRequestAnimationFrame||cn.webkitRequestAnimationFrame||function(re){return cn.setTimeout(re,20)},Gt=cn.cancelAnimationFrame||cn.mozCancelAnimationFrame||cn.webkitCancelAnimationFrame||function(re){cn.clearTimeout(re)};function Vi(re,ht){var De=Object.prototype.toString.call(re),Hn="[object Array]"===De||"[object NodeList]"===De||"[object HTMLCollection]"===De||"[object Object]"===De||"undefined"!=typeof jQuery&&re instanceof jQuery||"undefined"!=typeof Elements&&re instanceof Elements,Vn=0,ae=re.length;if(Hn)for(;Vn<ae;Vn++)ht(re[Vn]);else ht(re)}function se(re){if(!re.getBoundingClientRect)return{width:re.offsetWidth,height:re.offsetHeight};var ht=re.getBoundingClientRect();return{width:Math.round(ht.width),height:Math.round(ht.height)}}function Mt(re,ht){Object.keys(ht).forEach(function(De){re.style[De]=ht[De]})}var Ln=function(re,ht){var De=0;function Hn(){var _n,$n,ae=[];this.add=function(je){ae.push(je)},this.call=function(je){for(_n=0,$n=ae.length;_n<$n;_n++)ae[_n].call(this,je)},this.remove=function(je){var yn=[];for(_n=0,$n=ae.length;_n<$n;_n++)ae[_n]!==je&&yn.push(ae[_n]);ae=yn},this.length=function(){return ae.length}}function Vn(ae,_n){if(ae){if(ae.resizedAttached)return void ae.resizedAttached.add(_n);ae.resizedAttached=new Hn,ae.resizedAttached.add(_n),ae.resizeSensor=document.createElement("div"),ae.resizeSensor.dir="ltr",ae.resizeSensor.className="resize-sensor";var $n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},je={position:"absolute",left:"0px",top:"0px",transition:"0s"};Mt(ae.resizeSensor,$n);var yn=document.createElement("div");yn.className="resize-sensor-expand",Mt(yn,$n);var Hs=document.createElement("div");Mt(Hs,je),yn.appendChild(Hs);var Wt=document.createElement("div");Wt.className="resize-sensor-shrink",Mt(Wt,$n);var $i=document.createElement("div");Mt($i,je),Mt($i,{width:"200%",height:"200%"}),Wt.appendChild($i),ae.resizeSensor.appendChild(yn),ae.resizeSensor.appendChild(Wt),ae.appendChild(ae.resizeSensor);var bs=window.getComputedStyle(ae),R=bs?bs.getPropertyValue("position"):null;"absolute"!==R&&"relative"!==R&&"fixed"!==R&&"sticky"!==R&&(ae.style.position="relative");var j=!1,ue=0,le=se(ae),Re=0,vt=0,Jt=!0;De=0;var Yt=function(){if(Jt){if(0===ae.offsetWidth&&0===ae.offsetHeight)return void(De||(De=Bn(function(){De=0,Yt()})));Jt=!1}var qe,vn;vn=ae.offsetHeight,Hs.style.width=(qe=ae.offsetWidth)+10+"px",Hs.style.height=vn+10+"px",yn.scrollLeft=qe+10,yn.scrollTop=vn+10,Wt.scrollLeft=qe+10,Wt.scrollTop=vn+10};ae.resizeSensor.resetSensor=Yt;var Ut=function(){ue=0,j&&(Re=le.width,vt=le.height,ae.resizedAttached&&ae.resizedAttached.call(le))},ai=function(){le=se(ae),(j=le.width!==Re||le.height!==vt)&&!ue&&(ue=Bn(Ut)),Yt()},zn=function(qe,vn,Ts){qe.attachEvent?qe.attachEvent("on"+vn,Ts):qe.addEventListener(vn,Ts)};zn(yn,"scroll",ai),zn(Wt,"scroll",ai),De=Bn(function(){De=0,Yt()})}}Vi(re,function(ae){Vn(ae,ht)}),this.detach=function(ae){De||(Gt(De),De=0),Ln.detach(re,ae)},this.reset=function(){re.resizeSensor.resetSensor()}};if(Ln.reset=function(re){Vi(re,function(ht){ht.resizeSensor.resetSensor()})},Ln.detach=function(re,ht){Vi(re,function(De){!De||De.resizedAttached&&"function"==typeof ht&&(De.resizedAttached.remove(ht),De.resizedAttached.length())||De.resizeSensor&&(De.contains(De.resizeSensor)&&De.removeChild(De.resizeSensor),delete De.resizeSensor,delete De.resizedAttached)})},"undefined"!=typeof MutationObserver){var To=new MutationObserver(function(re){for(var ht in re)if(re.hasOwnProperty(ht))for(var De=re[ht].addedNodes,Hn=0;Hn<De.length;Hn++)De[Hn].resizeSensor&&Ln.reset(De[Hn])});document.addEventListener("DOMContentLoaded",function(re){To.observe(document.body,{childList:!0,subtree:!0})})}return Ln}.call(oi,ut,oi,mn))&&(mn.exports=bi)}},fp={};function gp(mn){var oi=fp[mn];if(void 0!==oi)return oi.exports;var ut=fp[mn]={exports:{}};return Yw[mn].call(ut.exports,ut,ut.exports,gp),ut.exports}(()=>{"use strict";function mn(t){return"function"==typeof t}let oi=!1;const ut={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else oi&&console.log("RxJS: Back to a better error behavior. Thank you. <3");oi=t},get useDeprecatedSynchronousErrorHandling(){return oi}};function ln(t){setTimeout(()=>{throw t},0)}const bi={closed:!0,next(t){},error(t){if(ut.useDeprecatedSynchronousErrorHandling)throw t;ln(t)},complete(){}},cn=Array.isArray||(t=>t&&"number"==typeof t.length);function Bn(t){return null!==t&&"object"==typeof t}const Vi=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class se{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof se)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(mn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof Vi?Mt(o.errors):[o]}}if(cn(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(Bn(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof Vi?n=n.concat(Mt(c.errors)):n.push(c)}}}if(n)throw new Vi(n)}add(n){let e=n;if(!n)return se.EMPTY;switch(typeof n){case"function":e=new se(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof se)){const r=e;e=new se,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof se){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function Mt(t){return t.reduce((n,e)=>n.concat(e instanceof Vi?e.errors:e),[])}se.EMPTY=((t=new se).closed=!0,t);const Ln="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class re extends se{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=bi;break;case 1:if(!n){this.destination=bi;break}if("object"==typeof n){n instanceof re?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ht(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ht(this,n,e,i)}}[Ln](){return this}static create(n,e,i){const s=new re(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ht extends re{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;mn(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==bi&&(o=Object.create(e),mn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ut.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ut;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):ln(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;ln(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ut.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ut.useDeprecatedSynchronousErrorHandling)throw i;ln(i)}}__tryOrSetError(n,e,i){if(!ut.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return ut.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(ln(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Vn="function"==typeof Symbol&&Symbol.observable||"@@observable";function ae(t){return t}let je=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function Hn(t,n,e){if(t){if(t instanceof re)return t;if(t[Ln])return t[Ln]()}return t||n||e?new re(t,n,e):new re(bi)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||ut.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),ut.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ut.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function De(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof re?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=yn(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Vn](){return this}pipe(...e){return 0===e.length?this:function $n(t){return 0===t.length?ae:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=yn(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function yn(t){if(t||(t=ut.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Wt=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class $i extends se{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class bs extends re{constructor(n){super(n),this.destination=n}}let R=(()=>{class t extends je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ln](){return new bs(this)}lift(e){const i=new j(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Wt;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new Wt;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Wt;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Wt;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Wt;return this.hasError?(e.error(this.thrownError),se.EMPTY):this.isStopped?(e.complete(),se.EMPTY):(this.observers.push(e),new $i(this,e))}asObservable(){const e=new je;return e.source=this,e}}return t.create=(n,e)=>new j(n,e),t})();class j extends R{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):se.EMPTY}}function ue(t){return t&&"function"==typeof t.schedule}function le(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Re(t,n))}}class Re{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new vt(n,this.project,this.thisArg))}}class vt extends re{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jt=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Ut=function Yt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),vn=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ts(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const pp=t=>{if(t&&"function"==typeof t[Vn])return(t=>n=>{const e=t[Vn]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(vn(t))return Jt(t);if(Ts(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ln),n))(t);if(t&&"function"==typeof t[Ut])return(t=>n=>{const e=t[Ut]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Bn(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function xu(t,n){return new je(e=>{const i=new se;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function mp(t,n){return n?function Kw(t,n){if(null!=t){if(function Qw(t){return t&&"function"==typeof t[Vn]}(t))return function Uw(t,n){return new je(e=>{const i=new se;return i.add(n.schedule(()=>{const s=t[Vn]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(Ts(t))return function Xw(t,n){return new je(e=>{const i=new se;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(vn(t))return xu(t,n);if(function Zw(t){return t&&"function"==typeof t[Ut]}(t)||"string"==typeof t)return function qw(t,n){if(!t)throw new Error("Iterable cannot be null");return new je(e=>{const i=new se;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[Ut](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof je?t:new je(pp(t))}class _p extends re{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class yp extends re{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function vp(t,n){if(!n.closed)return t instanceof je?t.subscribe(n):pp(t)(n)}function xp(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(xp((s,r)=>mp(t(s,r)).pipe(le((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Jw(t,e)))}class Jw{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new eD(n,this.project,this.concurrent))}}class eD extends yp{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new _p(this),i=this.destination;i.add(e);const s=vp(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function tD(t=Number.POSITIVE_INFINITY){return xp(ae,t)}function bp(t,n){return n?xu(t,n):new je(Jt(t))}function Tp(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return ue(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof je?t[0]:tD(n)(bp(t,e))}function Cp(){return function(n){return n.lift(new nD(n))}}class nD{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new iD(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class iD extends re{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class sD extends je{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new se,n.add(this.source.subscribe(new oD(this.getSubject(),this))),n.closed&&(this._connection=null,n=se.EMPTY)),n}refCount(){return Cp()(this)}}const rD=(()=>{const t=sD.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class oD extends bs{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cD{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function uD(){return new R}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function bu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function We(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(We).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Tu(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const dD=Qe({__forward_ref__:Qe});function Cu(t){return t.__forward_ref__=Cu,t.toString=function(){return We(this())},t}function ve(t){return wp(t)?t():t}function wp(t){return"function"==typeof t&&t.hasOwnProperty(dD)&&t.__forward_ref__===Cu}class K extends Error{constructor(n,e){super(function wu(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function he(t){return"string"==typeof t?t:null==t?"":String(t)}function en(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}function Wa(t,n){const e=n?` in ${n}`:"";throw new K(-201,`No provider for ${en(t)} found${e}`)}function Gn(t,n){null==t&&function Ye(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function ze(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Du(t){return Dp(t,Ya)||Dp(t,Sp)}function Dp(t,n){return t.hasOwnProperty(n)?t[n]:null}function Ap(t){return t&&(t.hasOwnProperty(Au)||t.hasOwnProperty(vD))?t[Au]:null}const Ya=Qe({\u0275prov:Qe}),Au=Qe({\u0275inj:Qe}),Sp=Qe({ngInjectableDef:Qe}),vD=Qe({ngInjectorDef:Qe});var ge=(()=>((ge=ge||{})[ge.Default=0]="Default",ge[ge.Host=1]="Host",ge[ge.Self=2]="Self",ge[ge.SkipSelf=4]="SkipSelf",ge[ge.Optional=8]="Optional",ge))();let Su;function Cs(t){const n=Su;return Su=t,n}function Ep(t,n,e){const i=Du(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ge.Optional?null:void 0!==n?n:void Wa(We(t),"Injector")}function ws(t){return{toString:t}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),Ci=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Ci||(Ci={})),Ci))();const bD="undefined"!=typeof globalThis&&globalThis,TD="undefined"!=typeof window&&window,CD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue=bD||"undefined"!=typeof global&&global||TD||CD,vr={},Ze=[],Ua=Qe({\u0275cmp:Qe}),Eu=Qe({\u0275dir:Qe}),ku=Qe({\u0275pipe:Qe}),kp=Qe({\u0275mod:Qe}),ss=Qe({\u0275fac:Qe}),Co=Qe({__NG_ELEMENT_ID__:Qe});let wD=0;function q(t){return ws(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ci.Emulated,id:"c",styles:t.styles||Ze,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=wD++,i.inputs=Ip(t.inputs,e),i.outputs=Ip(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(Mp):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Lp):null,i})}function Mp(t){return tn(t)||function Ds(t){return t[Eu]||null}(t)}function Lp(t){return function Vs(t){return t[ku]||null}(t)}const Fp={};function At(t){return ws(()=>{const n={type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Fp[t.id]=t.type),n})}function Ip(t,n){if(null==t)return vr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const xn=q;function tn(t){return t[Ua]||null}function li(t,n){const e=t[kp]||null;if(!e&&!0===n)throw new Error(`Type ${We(t)} does not have '\u0275mod' property.`);return e}function zi(t){return Array.isArray(t)&&"object"==typeof t[1]}function Di(t){return Array.isArray(t)&&!0===t[1]}function Fu(t){return 0!=(8&t.flags)}function Za(t){return 2==(2&t.flags)}function Ka(t){return 1==(1&t.flags)}function Ai(t){return null!==t.template}function MD(t){return 0!=(512&t[2])}function Gs(t,n){return t.hasOwnProperty(ss)?t[ss]:null}class Np{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function _e(){return Op}function Op(t){return t.type.prototype.ngOnChanges&&(t.setInput=PD),ID}function ID(){const t=Bp(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===vr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function PD(t,n,e,i){const s=Bp(t)||function ND(t,n){return t[Rp]=n}(t,{previous:vr,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Np(l&&l.currentValue,n,o===vr),t[i]=n}_e.ngInherit=!0;const Rp="__ngSimpleChanges__";function Bp(t){return t[Rp]||null}let Ru;function Bu(){return void 0!==Ru?Ru:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Hp={createRenderer:(t,n)=>Bu()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function Ja(t,n){return Lt(n[t])}function Yn(t,n){return Lt(n[t.index])}function Hu(t,n){return t.data[n]}function Un(t,n){const e=n[t];return zi(e)?e:e[0]}function Vp(t){return 4==(4&t[2])}function Vu(t){return 128==(128&t[2])}function As(t,n){return null==n?null:t[n]}function $p(t){t[18]=0}function $u(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const de={lFrame:Qp(null),bindingsEnabled:!0};function jp(){return de.bindingsEnabled}function F(){return de.lFrame.lView}function Pe(){return de.lFrame.tView}function S(t){return de.lFrame.contextLView=t,t[8]}function Rt(){let t=Gp();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gp(){return de.lFrame.currentTNode}function ji(t,n){const e=de.lFrame;e.currentTNode=t,e.isParent=n}function zu(){return de.lFrame.isParent}function ju(){de.lFrame.isParent=!1}function Tn(){const t=de.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Dr(){return de.lFrame.bindingIndex++}function os(t){const n=de.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function KD(t,n){const e=de.lFrame;e.bindingIndex=e.bindingRootIndex=t,Gu(n)}function Gu(t){de.lFrame.currentDirectiveIndex=t}function Up(){return de.lFrame.currentQueryIndex}function Yu(t){de.lFrame.currentQueryIndex=t}function e1(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Xp(t,n,e){if(e&ge.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&ge.Host||(s=e1(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=de.lFrame=qp();return i.currentTNode=n,i.lView=t,!0}function tl(t){const n=qp(),e=t[1];de.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function qp(){const t=de.lFrame,n=null===t?null:t.child;return null===n?Qp(t):n}function Qp(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Zp(){const t=de.lFrame;return de.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Kp=Zp;function nl(){const t=Zp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Cn(){return de.lFrame.selectedIndex}function Ss(t){de.lFrame.selectedIndex=t}function dt(){const t=de.lFrame;return Hu(t.tView,t.selectedIndex)}function w(){de.lFrame.currentNamespace="svg"}function Ws(){!function s1(){de.lFrame.currentNamespace=null}()}function il(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function sl(t,n,e){Jp(t,n,3,e)}function rl(t,n,e,i){(3&t[2])===e&&Jp(t,n,e,i)}function Uu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Jp(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(a1(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function a1(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Eo{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ol(t,n,e){const i=Tt(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];qu(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function em(t){return 3===t||4===t||6===t}function qu(t){return 64===t.charCodeAt(0)}function al(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||tm(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function tm(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function nm(t){return-1!==t}function Ar(t){return 32767&t}function Sr(t,n){let e=function d1(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Qu=!0;function ll(t){const n=Qu;return Qu=t,n}let f1=0;function Mo(t,n){const e=Ku(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Zu(i.data,t),Zu(n,null),Zu(i.blueprint,null));const s=cl(t,n),r=t.injectorIndex;if(nm(s)){const o=Ar(s),a=Sr(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Zu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ku(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ul(t,n,e){!function g1(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Co)&&(i=e[Co]),null==i&&(i=e[Co]=f1++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function rm(t,n,e){if(e&ge.Optional)return t;Wa(n,"NodeInjector")}function om(t,n,e,i){if(e&ge.Optional&&void 0===i&&(i=null),0==(e&(ge.Self|ge.Host))){const s=t[9],r=Cs(void 0);try{return s?s.get(n,i,e&ge.Optional):Ep(n,i,e&ge.Optional)}finally{Cs(r)}}return rm(i,n,e)}function am(t,n,e,i=ge.Default,s){if(null!==t){const r=function y1(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Co)?t[Co]:void 0;return"number"==typeof n?n>=0?255&n:m1:n}(e);if("function"==typeof r){if(!Xp(n,t,i))return i&ge.Host?rm(s,e,i):om(n,e,i,s);try{const o=r(i);if(null!=o||i&ge.Optional)return o;Wa(e)}finally{Kp()}}else if("number"==typeof r){let o=null,a=Ku(t,n),l=-1,c=i&ge.Host?n[16][6]:null;for((-1===a||i&ge.SkipSelf)&&(l=-1===a?cl(t,n):n[a+8],-1!==l&&um(i,!1)?(o=n[1],a=Ar(l),n=Sr(l,n)):a=-1);-1!==a;){const u=n[1];if(cm(r,a,u.data)){const h=_1(a,n,e,o,i,c);if(h!==lm)return h}l=n[a+8],-1!==l&&um(i,n[1].data[a+8]===c)&&cm(r,a,n)?(o=u,a=Ar(l),n=Sr(l,n)):a=-1}}}return om(n,e,i,s)}const lm={};function m1(){return new Er(Rt(),F())}function _1(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],u=hl(a,o,e,null==i?Za(a)&&Qu:i!=o&&0!=(3&a.type),s&ge.Host&&r===a);return null!==u?Lo(n,o,u,a):lm}function hl(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,d=s?a+u:t.directiveEnd;for(let f=i?a:a+u;f<d;f++){const g=o[f];if(f<l&&e===g||f>=l&&g.type===e)return f}if(s){const f=o[l];if(f&&Ai(f)&&f.type===e)return l}return null}function Lo(t,n,e,i){let s=t[e];const r=n.data;if(function l1(t){return t instanceof Eo}(s)){const o=s;o.resolving&&function fD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new K(-200,`Circular dependency in DI detected for ${t}${e}`)}(en(r[e]));const a=ll(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Cs(o.injectImpl):null;Xp(t,i,ge.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function o1(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Op(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Cs(l),ll(a),o.resolving=!1,Kp()}}return s}function cm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function um(t,n){return!(t&ge.Self||t&ge.Host&&n)}class Er{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return am(this._tNode,this._lView,n,i,e)}}function ft(t){return ws(()=>{const n=t.prototype.constructor,e=n[ss]||Ju(n),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const r=s[ss]||Ju(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new r})}function Ju(t){return wp(t)?()=>{const n=Ju(ve(t));return n&&n()}:Gs(t)}const Mr="__parameters__";function Fr(t,n,e){return ws(()=>{const i=function th(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,u){const h=l.hasOwnProperty(Mr)?l[Mr]:Object.defineProperty(l,Mr,{value:[]})[Mr];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ne{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ze({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function hi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),hi(i,n)):n!==t&&n.push(i)}return n}function Gi(t,n){t.forEach(e=>Array.isArray(e)?Gi(e,n):n(e))}function dm(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function dl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Po(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Xn(t,n,e){let i=Ir(t,n);return i>=0?t[1|i]=e:(i=~i,function T1(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ih(t,n){const e=Ir(t,n);if(e>=0)return t[1|e]}function Ir(t,n){return function pm(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const No={},rh="__NG_DI_FLAG__",gl="ngTempTokenPath",k1=/\n/gm,_m="__source",L1=Qe({provide:String,useValue:Qe});let Oo;function ym(t){const n=Oo;return Oo=t,n}function F1(t,n=ge.Default){if(void 0===Oo)throw new K(203,"");return null===Oo?Ep(t,void 0,n):Oo.get(t,n&ge.Optional?null:void 0,n)}function pe(t,n=ge.Default){return(function xD(){return Su}()||F1)(ve(t),n)}const I1=pe;function oh(t){const n=[];for(let e=0;e<t.length;e++){const i=ve(t[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let s,r=ge.Default;for(let o=0;o<i.length;o++){const a=i[o],l=P1(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(pe(s,r))}else n.push(pe(i))}return n}function Ro(t,n){return t[rh]=n,t.prototype[rh]=n,t}function P1(t){return t[rh]}const pl=Ro(Fr("Optional"),8),ml=Ro(Fr("SkipSelf"),4);var qn=(()=>((qn=qn||{})[qn.Important=1]="Important",qn[qn.DashCase=2]="DashCase",qn))();const Am="__ngContext__";function hn(t,n){t[Am]=n}function uh(t){const n=function Ho(t){return t[Am]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function dh(t,n){return undefined(t,n)}function Vo(t){const n=t[3];return Di(n)?n[3]:n}function fh(t){return Im(t[13])}function gh(t){return Im(t[4])}function Im(t){for(;null!==t&&!Di(t);)t=t[4];return t}function Nr(t,n,e,i,s){if(null!=i){let r,o=!1;Di(i)?r=i:zi(i)&&(o=!0,i=i[0]);const a=Lt(i);0===t&&null!==e?null==s?Hm(n,e,a):Ys(n,e,a,s||null,!0):1===t&&null!==e?Ys(n,e,a,s||null,!0):2===t?function bh(t,n,e){const i=yl(t,n);i&&function hA(t,n,e,i){Tt(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function gA(t,n,e,i,s){const r=e[7];r!==Lt(e)&&Nr(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];$o(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function mh(t,n,e){if(Tt(t))return t.createElement(n,e);{const i=null!==e?function HD(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function Nm(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,$u(s,-1)),e.splice(i,1)}function _h(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&Nm(s,i),n>0&&(t[e-1][4]=i[4]);const r=dl(t,10+n);!function iA(t,n){$o(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Om(t,n){if(!(256&n[2])){const e=n[11];Tt(e)&&e.destroyNode&&$o(t,n,e,3,null,null),function oA(t){let n=t[13];if(!n)return yh(t[1],t);for(;n;){let e=null;if(zi(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)zi(n)&&yh(n[1],n),n=n[3];null===n&&(n=t),zi(n)&&yh(n[1],n),e=n&&n[4]}n=e}}(n)}}function yh(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function uA(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Eo)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function cA(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):Lt(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&Tt(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&Di(n[3])){e!==n[3]&&Nm(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Rm(t,n,e){return function Bm(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===Ci.None||s===Ci.Emulated)return null}return Yn(i,e)}(t,n.parent,e)}function Ys(t,n,e,i,s){Tt(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function Hm(t,n,e){Tt(t)?t.appendChild(n,e):n.appendChild(e)}function Vm(t,n,e,i,s){null!==i?Ys(t,n,e,i,s):Hm(t,n,e)}function yl(t,n){return Tt(t)?t.parentNode(n):n.parentNode}function $m(t,n,e){return jm(t,n,e)}let bl,Tl,jm=function zm(t,n,e){return 40&t.type?Yn(t,e):null};function vl(t,n,e,i){const s=Rm(t,i,n),r=n[11],a=$m(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)Vm(r,s,e[l],a,!1);else Vm(r,s,e,a,!1)}function xl(t,n){if(null!==n){const e=n.type;if(3&e)return Yn(n,t);if(4&e)return xh(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return xl(t,i);{const s=t[n.index];return Di(s)?xh(-1,s):Lt(s)}}if(32&e)return dh(n,t)()||Lt(t[n.index]);{const i=Wm(t,n);return null!==i?Array.isArray(i)?i[0]:xl(Vo(t[16]),i):xl(t,n.next)}}return null}function Wm(t,n){return null!==n?t[16][6].projection[n.projection]:null}function xh(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return xl(i,s)}return n[7]}function Th(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&hn(Lt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Th(t,n,e.child,i,s,r,!1),Nr(n,t,s,a,r);else if(32&l){const c=dh(e,i);let u;for(;u=c();)Nr(n,t,s,u,r);Nr(n,t,s,a,r)}else 16&l?Ym(t,n,i,e,s,r):Nr(n,t,s,a,r);e=o?e.projectionNext:e.next}}function $o(t,n,e,i,s,r){Th(e,i,t.firstChild,n,s,r,!1)}function Ym(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Nr(n,t,s,l[c],r);else Th(t,n,l,o[3],s,r,!0)}function Um(t,n,e){Tt(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function Ch(t,n,e){Tt(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Us(t){var n;return(null===(n=function wh(){if(void 0===bl&&(bl=null,Ue.trustedTypes))try{bl=Ue.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return bl}())||void 0===n?void 0:n.createHTML(t))||t}function Xm(t){var n;return(null===(n=function Dh(){if(void 0===Tl&&(Tl=null,Ue.trustedTypes))try{Tl=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Tl}())||void 0===n?void 0:n.createHTML(t))||t}class Xs{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vA extends Xs{getTypeName(){return"HTML"}}class xA extends Xs{getTypeName(){return"Style"}}class bA extends Xs{getTypeName(){return"Script"}}class TA extends Xs{getTypeName(){return"URL"}}class CA extends Xs{getTypeName(){return"ResourceURL"}}function Qn(t){return t instanceof Xs?t.changingThisBreaksApplicationSecurity:t}function Wi(t,n){const e=Zm(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function Zm(t){return t instanceof Xs&&t.getTypeName()||null}class kA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Us(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MA{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Us(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Us(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FA=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IA=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zo(t){return(t=String(t)).match(FA)||t.match(IA)?t:"unsafe:"+t}function Jm(t){return(t=String(t)).split(",").map(n=>zo(n.trim())).join(", ")}function Yi(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function jo(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const e_=Yi("area,br,col,hr,img,wbr"),t_=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n_=Yi("rp,rt"),Ah=jo(e_,jo(t_,Yi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jo(n_,Yi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jo(n_,t_)),Sh=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Eh=Yi("srcset"),i_=jo(Sh,Eh,Yi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),PA=Yi("script,style,template");class NA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Ah.hasOwnProperty(e))return this.sanitizedSomething=!0,!PA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!i_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;Sh[a]&&(l=zo(l)),Eh[a]&&(l=Jm(l)),this.buf.push(" ",o,'="',s_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Ah.hasOwnProperty(e)&&!e_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(s_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const OA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RA=/([^\#-~ |!])/g;function s_(t){return t.replace(/&/g,"&").replace(OA,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(RA,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Cl;function r_(t,n){let e=null;try{Cl=Cl||function Km(t){const n=new MA(t);return function LA(){try{return!!(new window.DOMParser).parseFromString(Us(""),"text/html")}catch(t){return!1}}()?new kA(n):n}(t);let i=n?String(n):"";e=Cl.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=Cl.getInertBodyElement(i)}while(i!==r);return Us((new NA).sanitizeChildren(kh(e)||e))}finally{if(e){const i=kh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function kh(t){return"content"in t&&function BA(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var nt=(()=>((nt=nt||{})[nt.NONE=0]="NONE",nt[nt.HTML=1]="HTML",nt[nt.STYLE=2]="STYLE",nt[nt.SCRIPT=3]="SCRIPT",nt[nt.URL=4]="URL",nt[nt.RESOURCE_URL=5]="RESOURCE_URL",nt))();function wl(t){const n=function Go(){const t=F();return t&&t[12]}();return n?Xm(n.sanitize(nt.HTML,t)||""):Wi(t,"HTML")?Xm(Qn(t)):r_(Bu(),he(t))}function Lh(t){return t.ngOriginalError}function XA(t,...n){t.error(...n)}class Wo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function UA(t){return t&&t.ngErrorLogger||XA}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Lh(n);for(;e&&Lh(e);)e=Lh(e);return e||null}}const tS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ue))();function l_(t){return t.ownerDocument.defaultView}function Ui(t){return t instanceof Function?t():t}function u_(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const h_="ng-template";function sS(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==u_(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function d_(t){return 4===t.type&&t.value!==h_}function rS(t,n,e){return n===(4!==t.type||e?t.value:h_)}function oS(t,n,e){let i=4;const s=t.attrs||[],r=function cS(t){for(let n=0;n<t.length;n++)if(em(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!rS(t,l,e)||""===l&&1===n.length){if(Si(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sS(t.attrs,c,e)){if(Si(i))return!1;o=!0}continue}const h=aS(8&i?"class":l,s,d_(t),e);if(-1===h){if(Si(i))return!1;o=!0;continue}if(""!==c){let d;d=h>r?"":s[h+1].toLowerCase();const f=8&i?d:null;if(f&&-1!==u_(f,c,0)||2&i&&c!==d){if(Si(i))return!1;o=!0}}}}else{if(!o&&!Si(i)&&!Si(l))return!1;if(o&&Si(l))continue;o=!1,i=l|1&i}}return Si(i)||o}function Si(t){return 0==(1&t)}function aS(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function uS(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function f_(t,n,e=!1){for(let i=0;i<n.length;i++)if(oS(t,n[i],e))return!0;return!1}function hS(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function g_(t,n){return t?":not("+n.trim()+")":n}function dS(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!Si(o)&&(n+=g_(r,s),s=""),i=o,r=r||!Si(i);e++}return""!==s&&(n+=g_(r,s)),n}const fe={};function _(t){p_(Pe(),F(),Cn()+t,!1)}function p_(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&sl(n,r,e)}else{const r=t.preOrderHooks;null!==r&&rl(n,r,0,e)}Ss(e)}function Dl(t,n){return t<<17|n<<2}function Ei(t){return t>>17&32767}function Fh(t){return 2|t}function as(t){return(131068&t)>>2}function Ih(t,n){return-131069&t|n<<2}function Ph(t){return 1|t}function A_(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];Yu(s),o.contentQueries(2,n[r],r)}}}function Yo(t,n,e,i,s,r,o,a,l,c){const u=n.blueprint.slice();return u[0]=s,u[2]=140|i,$p(u),u[3]=u[15]=t,u[8]=e,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==n.type?t[16]:u,u}function Rr(t,n,e,i,s){let r=t.data[n];if(null===r)r=function jh(t,n,e,i,s){const r=Gp(),o=zu(),l=t.data[n]=function MS(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function ZD(){return de.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function So(){const t=de.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return ji(r,!0),r}function Br(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function Uo(t,n,e){tl(n);try{const i=t.viewQuery;null!==i&&Kh(1,i,e);const s=t.template;null!==s&&S_(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&A_(t,n),t.staticViewQueries&&Kh(2,t.viewQuery,e);const r=t.components;null!==r&&function SS(t,n){for(let e=0;e<n.length;e++)XS(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,nl()}}function Hr(t,n,e,i){const s=n[2];if(256!=(256&s)){tl(n);try{$p(n),function Wp(t){return de.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&S_(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&sl(n,c,null)}else{const c=t.preOrderHooks;null!==c&&rl(n,c,0,null),Uu(n,0)}if(function YS(t){for(let n=fh(t);null!==n;n=gh(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&$u(r,1),s[2]|=1024}}}(n),function WS(t){for(let n=fh(t);null!==n;n=gh(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];Vu(i)&&Hr(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&A_(t,n),o){const c=t.contentCheckHooks;null!==c&&sl(n,c)}else{const c=t.contentHooks;null!==c&&rl(n,c,1),Uu(n,1)}!function DS(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)Ss(~s);else{const r=s,o=e[++i],a=e[++i];KD(o,r),a(2,n[r])}}}finally{Ss(-1)}}(t,n);const a=t.components;null!==a&&function AS(t,n){for(let e=0;e<n.length;e++)US(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Kh(2,l,i),o){const c=t.viewCheckHooks;null!==c&&sl(n,c)}else{const c=t.viewHooks;null!==c&&rl(n,c,2),Uu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,$u(n[3],-1))}finally{nl()}}}function ES(t,n,e,i){const s=n[10],o=Vp(n);try{!o&&s.begin&&s.begin(),o&&Uo(t,n,i),Hr(t,n,e,i)}finally{!o&&s.end&&s.end()}}function S_(t,n,e,i,s){const r=Cn(),o=2&i;try{Ss(-1),o&&n.length>20&&p_(t,n,20,!1),e(i,s)}finally{Ss(r)}}function E_(t,n,e){if(Fu(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Gh(t,n,e){!jp()||(function RS(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Mo(e,n),hn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=Ai(l);c&&zS(n,e,l);const u=Lo(n,t,a,e);hn(u,n),null!==o&&jS(0,a-s,u,l,0,o),c&&(Un(e.index,n)[8]=u)}}(t,n,e,Yn(e,n)),128==(128&e.flags)&&function BS(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function JD(){return de.lFrame.currentDirectiveIndex}();try{Ss(o);for(let l=i;l<s;l++){const c=t.data[l],u=n[l];Gu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&O_(c,u)}}finally{Ss(-1),Gu(a)}}(t,n,e))}function Wh(t,n,e=Yn){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function k_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=El(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function El(t,n,e,i,s,r,o,a,l,c){const u=20+i,h=u+s,d=function kS(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:fe);return e}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:e,queries:null,viewQuery:a,declTNode:n,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function F_(t,n,e,i){const s=z_(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&j_(t).push(i,s.length-1))}function I_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Yh(t,n,e,i){let s=!1;if(jp()){const r=function HS(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];f_(e,o.selectors,!1)&&(s||(s=[]),ul(Mo(e,n),t,o.type),Ai(o)?(R_(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,B_(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const h=r[u];h.providersResolver&&h.providersResolver(h)}let a=!1,l=!1,c=Br(t,n,r.length,null);for(let u=0;u<r.length;u++){const h=r[u];e.mergedAttrs=al(e.mergedAttrs,h.hostAttrs),H_(t,e,n,c,h),$S(c,h,o),null!==h.contentQueries&&(e.flags|=8),(null!==h.hostBindings||null!==h.hostAttrs||0!==h.hostVars)&&(e.flags|=128);const d=h.type.prototype;!a&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function LS(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=s[c],h=u.inputs,d=null===r||d_(n)?null:GS(h,r);o.push(d),a=I_(h,c,a),l=I_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function VS(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new K(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=al(e.mergedAttrs,e.attrs),s}function N_(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function OS(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function O_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function R_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function $S(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Ai(n)&&(e[""]=t)}}function B_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function H_(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Gs(s.type)),o=new Eo(r,Ai(s),null);t.blueprint[i]=o,e[i]=o,N_(t,n,0,i,Br(t,e,s.hostVars,fe),s)}function zS(t,n,e){const i=Yn(n,t),s=k_(e),r=t[10],o=kl(t,Yo(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Xi(t,n,e,i,s,r){const o=Yn(t,n);!function Uh(t,n,e,i,s,r,o){if(null==r)Tt(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?he(r):o(r,i||"",s);Tt(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function jS(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],h=o[l++];null!==a?i.setInput(e,h,c,u):e[u]=h}}}function GS(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function V_(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function US(t,n){const e=Un(n,t);if(Vu(e)){const i=e[1];80&e[2]?Hr(i,e,i.template,e[8]):e[5]>0&&Xh(e)}}function Xh(t){for(let i=fh(t);null!==i;i=gh(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Hr(o,r,o.template,r[8])}else r[5]>0&&Xh(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Un(e[i],t);Vu(s)&&s[5]>0&&Xh(s)}}function XS(t,n){const e=Un(n,t),i=e[1];(function qS(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Uo(i,e,e[8])}function kl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function qh(t){for(;t;){t[2]|=64;const n=Vo(t);if(MD(t)&&!n)return t;t=n}return null}function $_(t){!function Qh(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=uh(e),s=i[1];ES(s,i,s.template,e)}}(t[8])}function Kh(t,n,e){Yu(0),n(t,e)}const ZS=(()=>Promise.resolve(null))();function z_(t){return t[7]||(t[7]=[])}function j_(t){return t.cleanup||(t.cleanup=[])}function W_(t,n){const e=t[9],i=e?e.get(Wo,null):null;i&&i.handleError(n)}function Y_(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function ls(t,n,e){const i=Ja(n,t);!function Pm(t,n,e){Tt(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Ml(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=Tu(s,a):2==r&&(i=Tu(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const Jh=new Ne("INJECTOR",-1);class U_{get(n,e=No){if(e===No){const i=new Error(`NullInjectorError: No provider for ${We(n)}!`);throw i.name="NullInjectorError",i}return e}}const ed=new Ne("Set Injector scope."),Xo={},eE={};let td;function X_(){return void 0===td&&(td=new U_),td}function q_(t,n=null,e=null,i){const s=Q_(t,n,e,i);return s._resolveInjectorDefTypes(),s}function Q_(t,n=null,e=null,i){return new tE(t,e,n||X_(),i)}class tE{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&Gi(e,a=>this.processProvider(a,n,e)),Gi([n],a=>this.processInjectorType(a,[],r)),this.records.set(Jh,Vr(void 0,this));const o=this.records.get(ed);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:We(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=No,i=ge.Default){this.assertNotDestroyed();const s=ym(this),r=Cs(void 0);try{if(!(i&ge.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function cE(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ne}(n)&&Du(n);a=l&&this.injectableDefInScope(l)?Vr(nd(n),Xo):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ge.Self?X_():this.parent).get(n,e=i&ge.Optional&&e===No?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[gl]=o[gl]||[]).unshift(We(n)),s)throw o;return function N1(t,n,e,i){const s=t[gl];throw n[_m]&&s.unshift(n[_m]),t.message=function O1(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=We(n);if(Array.isArray(n))s=n.map(We).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):We(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(k1,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[gl]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{Cs(r),ym(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(We(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(n,e,i){if(!(n=ve(n)))return!1;let s=Ap(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=Ap(r)),null==s)return!1;if(null!=s.imports&&!a){let u;i.push(o);try{Gi(s.imports,h=>{this.processInjectorType(h,e,i)&&(void 0===u&&(u=[]),u.push(h))})}finally{}if(void 0!==u)for(let h=0;h<u.length;h++){const{ngModule:d,providers:f}=u[h];Gi(f,g=>this.processProvider(g,d,f||Ze))}}this.injectorDefTypes.add(o);const l=Gs(o)||(()=>new o);this.records.set(o,Vr(l,Xo));const c=s.providers;if(null!=c&&!a){const u=n;Gi(c,h=>this.processProvider(h,u,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=$r(n=ve(n))?n:ve(n&&n.provide);const r=function iE(t,n,e){return K_(t)?Vr(void 0,t.useValue):Vr(Z_(t),Xo)}(n);if($r(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Vr(void 0,Xo,!0),o.factory=()=>oh(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===Xo&&(e.value=eE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function lE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=ve(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function nd(t){const n=Du(t),e=null!==n?n.factory:Gs(t);if(null!==e)return e;if(t instanceof Ne)throw new K(204,!1);if(t instanceof Function)return function nE(t){const n=t.length;if(n>0)throw Po(n,"?"),new K(204,!1);const e=function _D(t){const n=t&&(t[Ya]||t[Sp]);if(n){const e=function yD(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new K(204,!1)}function Z_(t,n,e){let i;if($r(t)){const s=ve(t);return Gs(s)||nd(s)}if(K_(t))i=()=>ve(t.useValue);else if(function rE(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...oh(t.deps||[]));else if(function sE(t){return!(!t||!t.useExisting)}(t))i=()=>pe(ve(t.useExisting));else{const s=ve(t&&(t.useClass||t.provide));if(!function aE(t){return!!t.deps}(t))return Gs(s)||nd(s);i=()=>new s(...oh(t.deps))}return i}function Vr(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function K_(t){return null!==t&&"object"==typeof t&&L1 in t}function $r(t){return"function"==typeof t}let In=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return q_({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return q_({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=No,t.NULL=new U_,t.\u0275prov=ze({token:t,providedIn:"any",factory:()=>pe(Jh)}),t.__NG_ELEMENT_ID__=-1,t})();function _E(t,n){il(uh(t)[1],Rt())}function lt(t){let n=function uy(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(Ai(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new K(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=rd(t.inputs),o.declaredInputs=rd(t.declaredInputs),o.outputs=rd(t.outputs);const a=s.hostBindings;a&&bE(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&vE(t,l),c&&xE(t,c),bu(t.inputs,s.inputs),bu(t.declaredInputs,s.declaredInputs),bu(t.outputs,s.outputs),Ai(s)&&s.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===lt&&(e=!1)}}n=Object.getPrototypeOf(n)}!function yE(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=al(s.hostAttrs,e=al(e,s.hostAttrs))}}(i)}function rd(t){return t===vr?{}:t===Ze?[]:t}function vE(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function xE(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function bE(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Ll=null;function zr(){if(!Ll){const t=Ue.Symbol;if(t&&t.iterator)Ll=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ll=i)}}}return Ll}function qo(t){return!!function od(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&zr()in t)}function qi(t,n,e){return t[n]=e}function dn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function L(t,n,e,i){const s=F();return dn(s,Dr(),n)&&(Pe(),Xi(dt(),s,t,n,e,i)),L}function Gr(t,n,e,i){return dn(t,Dr(),e)?n+he(e)+i:fe}function A(t,n,e,i,s,r,o,a){const l=F(),c=Pe(),u=t+20,h=c.firstCreatePass?function EE(t,n,e,i,s,r,o,a,l){const c=n.consts,u=Rr(n,t,4,o||null,As(c,a));Yh(n,e,u,As(c,l)),il(n,u);const h=u.tViews=El(2,u,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,s,r,o):c.data[u];ji(h,!1);const d=l[11].createComment("");vl(c,l,d,h),hn(d,l),kl(l,l[u]=V_(d,l,d,h)),Ka(h)&&Gh(c,l,h),null!=o&&Wh(l,h,a)}function Q(t,n=ge.Default){const e=F();return null===e?pe(t,n):am(Rt(),e,ve(t),n)}function p(t,n,e){const i=F();return dn(i,Dr(),n)&&function Zn(t,n,e,i,s,r,o,a){const l=Yn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(Y_(t,e,u,i,s),Za(n)&&function IS(t,n){const e=Un(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function FS(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,Tt(r)?r.setProperty(l,i,s):qu(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Pe(),dt(),i,t,n,i[11],e,!1),p}function hd(t,n,e,i,s){const o=s?"class":"style";Y_(t,e,n.inputs[o],o,i)}function x(t,n,e,i){const s=F(),r=Pe(),o=20+t,a=s[11],l=s[o]=mh(a,n,function r1(){return de.lFrame.currentNamespace}()),c=r.firstCreatePass?function QE(t,n,e,i,s,r,o){const a=n.consts,c=Rr(n,t,2,s,As(a,r));return Yh(n,e,c,As(a,o)),null!==c.attrs&&Ml(c,c.attrs,!1),null!==c.mergedAttrs&&Ml(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];ji(c,!0);const u=c.mergedAttrs;null!==u&&ol(a,l,u);const h=c.classes;null!==h&&Ch(a,l,h);const d=c.styles;return null!==d&&Um(a,l,d),64!=(64&c.flags)&&vl(r,s,l,c),0===function WD(){return de.lFrame.elementDepthCount}()&&hn(l,s),function YD(){de.lFrame.elementDepthCount++}(),Ka(c)&&(Gh(r,s,c),E_(r,c,s)),null!==i&&Wh(s,c),x}function T(){let t=Rt();zu()?ju():(t=t.parent,ji(t,!1));const n=t;!function UD(){de.lFrame.elementDepthCount--}();const e=Pe();return e.firstCreatePass&&(il(e,t),Fu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function u1(t){return 0!=(16&t.flags)}(n)&&hd(e,n,F(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function h1(t){return 0!=(32&t.flags)}(n)&&hd(e,n,F(),n.stylesWithoutHost,!1),T}function V(t,n,e,i){return x(t,n,e,i),T(),V}function Mi(t,n,e){const i=F(),s=Pe(),r=t+20,o=s.firstCreatePass?function ZE(t,n,e,i,s){const r=n.consts,o=As(r,i),a=Rr(n,t,8,"ng-container",o);return null!==o&&Ml(a,o,!0),Yh(n,e,a,As(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];ji(o,!0);const a=i[r]=i[11].createComment("");return vl(s,i,a,o),hn(a,i),Ka(o)&&(Gh(s,i,o),E_(s,o,i)),null!=e&&Wh(i,o),Mi}function Li(){let t=Rt();const n=Pe();return zu()?ju():(t=t.parent,ji(t,!1)),n.firstCreatePass&&(il(n,t),Fu(t)&&n.queries.elementEnd(t)),Li}function z(){return F()}function dd(t){return!!t&&"function"==typeof t.then}const KE=function Fy(t){return!!t&&"function"==typeof t.subscribe};function E(t,n,e,i){const s=F(),r=Pe(),o=Rt();return function Py(t,n,e,i,s,r,o,a){const l=Ka(i),u=t.firstCreatePass&&j_(t),h=n[8],d=z_(n);let f=!0;if(3&i.type||a){const m=Yn(i,n),C=a?a(m):m,b=d.length,D=a?M=>a(Lt(M[i.index])):i.index;if(Tt(e)){let M=null;if(!a&&l&&(M=function JE(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=r,M.__ngLastListenerFn__=r,f=!1;else{r=fd(i,n,h,r,!1);const N=e.listen(C,s,r);d.push(r,N),u&&u.push(s,D,b,b+1)}}else r=fd(i,n,h,r,!0),C.addEventListener(s,r,o),d.push(r),u&&u.push(s,D,b,o)}else r=fd(i,n,h,r,!1);const g=i.outputs;let v;if(f&&null!==g&&(v=g[s])){const m=v.length;if(m)for(let C=0;C<m;C+=2){const I=n[v[C]][v[C+1]].subscribe(r),X=d.length;d.push(r,I),u&&u.push(s,i.index,X,-(X+1))}}}(r,s,s[11],o,t,n,!!e,i),E}function Ny(t,n,e,i){try{return!1!==e(i)}catch(s){return W_(t,s),!1}}function fd(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Un(t.index,n):n;0==(32&n[2])&&qh(a);let l=Ny(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Ny(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function y(t=1){return function t1(t){return(de.lFrame.contextLView=function n1(t,n){for(;t>0;)n=n[15],t--;return n}(t,de.lFrame.contextLView))[8]}(t)}function ek(t,n){let e=null;const i=function lS(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?f_(t,r,!0):hS(i,r))return s}else e=s}return e}function gd(t){const n=F()[16][6];if(!n.projection){const i=n.projection=Po(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?ek(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}function pd(t,n=0,e){const i=F(),s=Pe(),r=Rr(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),ju(),64!=(64&r.flags)&&function fA(t,n,e){Ym(n[11],0,n,e,Rm(t,e,n),$m(e.parent||n[6],e,n))}(s,i,r)}function Wy(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?Ei(r):as(r),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];ik(t[a],n)&&(l=!0,t[a+1]=i?Ph(u):Fh(u)),a=i?Ei(u):as(u)}l&&(t[e+1]=i?Fh(r):Ph(r))}function ik(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ir(t,n)>=0}const Ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yy(t){return t.substring(Ht.key,Ht.keyEnd)}function Uy(t,n){const e=Ht.textEnd;return e===n?-1:(n=Ht.keyEnd=function ak(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Ht.key=n,e),Jr(t,n,e))}function Jr(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function ke(t,n,e){return Fi(t,n,e,!1),ke}function qt(t,n){return Fi(t,n,null,!0),qt}function Zi(t,n){for(let e=function rk(t){return function qy(t){Ht.key=0,Ht.keyEnd=0,Ht.value=0,Ht.valueEnd=0,Ht.textEnd=t.length}(t),Uy(t,Jr(t,0,Ht.textEnd))}(n);e>=0;e=Uy(n,e))Xn(t,Yy(n),!0)}function Fi(t,n,e,i){const s=F(),r=Pe(),o=os(2);r.firstUpdatePass&&ev(r,t,o,i),n!==fe&&dn(s,o,n)&&nv(r,r.data[Cn()],s,s[11],t,s[o+1]=function _k(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=We(Qn(t)))),t}(n,e),i,o)}function Ii(t,n,e,i){const s=Pe(),r=os(2);s.firstUpdatePass&&ev(s,null,r,i);const o=F();if(e!==fe&&dn(o,r,e)){const a=s.data[Cn()];if(sv(a,i)&&!Jy(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Tu(l,e||"")),hd(s,a,o,e,i)}else!function mk(t,n,e,i,s,r,o,a){s===fe&&(s=Ze);let l=0,c=0,u=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let v,g=null;u===h?(l+=2,c+=2,d!==f&&(g=h,v=f)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,v=f),null!==g&&nv(t,n,e,i,g,v,o,a),u=l<s.length?s[l]:null,h=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function pk(t,n,e){if(null==e||""===e)return Ze;const i=[],s=Qn(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function Jy(t,n){return n>=t.expandoStartIndex}function ev(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[Cn()],o=Jy(t,e);sv(r,i)&&null===n&&!o&&(n=!1),n=function hk(t,n,e,i){const s=function Wu(t){const n=de.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=Zo(e=_d(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=_d(s,t,n,e,i),null===r){let l=function dk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==as(i))return t[Ei(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=_d(null,t,n,l[1],i),l=Zo(l,n.attrs,i),function fk(t,n,e,i){t[Ei(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function gk(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=Zo(i,t[r].hostAttrs,e);return Zo(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function tk(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=Ei(o),l=as(o);t[i]=e;let u,c=!1;if(Array.isArray(e)){const h=e;u=h[1],(null===u||Ir(h,u)>0)&&(c=!0)}else u=e;if(s)if(0!==l){const d=Ei(t[a+1]);t[i+1]=Dl(d,a),0!==d&&(t[d+1]=Ih(t[d+1],i)),t[a+1]=function pS(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Dl(a,0),0!==a&&(t[a+1]=Ih(t[a+1],i)),a=i;else t[i+1]=Dl(l,0),0===a?a=i:t[l+1]=Ih(t[l+1],i),l=i;c&&(t[i+1]=Fh(t[i+1])),Wy(t,u,i,!0),Wy(t,u,i,!1),function nk(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Ir(r,n)>=0&&(e[i+1]=Ph(e[i+1]))}(n,u,t,i,r),o=Dl(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function _d(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=Zo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Zo(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Xn(t,o,!!e||n[++r]))}return void 0===t?null:t}function nv(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Pl(function y_(t){return 1==(1&t)}(c)?iv(l,n,e,s,as(c),o):void 0)||(Pl(r)||function __(t){return 2==(2&t)}(c)&&(r=iv(l,null,e,s,a,o)),function pA(t,n,e,i,s){const r=Tt(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:qn.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=qn.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,Ja(Cn(),e),s,r))}function iv(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let d=e[s+1];d===fe&&(d=h?Ze:void 0);let f=h?ih(d,i):u===i?d:void 0;if(c&&!Pl(f)&&(f=ih(l,i)),Pl(f)&&(a=f,o))return a;const g=t[s+1];s=o?Ei(g):as(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=ih(l,i))}return a}function Pl(t){return void 0!==t}function sv(t,n){return 0!=(t.flags&(n?16:32))}function Be(t,n=""){const e=F(),i=Pe(),s=t+20,r=i.firstCreatePass?Rr(i,s,1,n,null):i.data[s],o=e[s]=function ph(t,n){return Tt(t)?t.createText(n):t.createTextNode(n)}(e[11],n);vl(i,e,o,r),ji(r,!1)}function Kn(t){return gt("",t,""),Kn}function gt(t,n,e){const i=F(),s=Gr(i,t,n,e);return s!==fe&&ls(i,Cn(),s),gt}const Nl="en-US";let Av=Nl;function bd(t,n,e,i,s){if(t=ve(t),Array.isArray(t))for(let r=0;r<t.length;r++)bd(t[r],n,e,i,s);else{const r=Pe(),o=F();let a=$r(t)?t:ve(t.provide),l=Z_(t);const c=Rt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if($r(t)||!t.multi){const f=new Eo(l,s,Q),g=Cd(a,n,s?u:u+d,h);-1===g?(ul(Mo(c,o),r,a),Td(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[g]=f,o[g]=f)}else{const f=Cd(a,n,u+d,h),g=Cd(a,n,u,u+d),v=f>=0&&e[f],m=g>=0&&e[g];if(s&&!m||!s&&!v){ul(Mo(c,o),r,a);const C=function NM(t,n,e,i,s){const r=new Eo(t,e,Q);return r.multi=[],r.index=n,r.componentProviders=0,Qv(r,s,i&&!e),r}(s?PM:IM,e.length,s,i,l);!s&&m&&(e[g].providerFactory=C),Td(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(C),o.push(C)}else Td(r,t,f>-1?f:g,Qv(e[s?g:f],l,!s&&i));!s&&i&&m&&e[g].componentProviders++}}}function Td(t,n,e,i){const s=$r(n),r=function oE(t){return!!t.useClass}(n);if(s||r){const l=(r?ve(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!s&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Qv(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Cd(t,n,e,i){for(let s=e;s<i;s++)if(n[s]===t)return s;return-1}function IM(t,n,e,i){return wd(this.multi,[])}function PM(t,n,e,i){const s=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Lo(e,e[1],this.providerFactory.index,i);r=a.slice(0,o),wd(s,r);for(let l=o;l<a.length;l++)r.push(a[l])}else r=[],wd(s,r);return r}function wd(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Zv(t,n=[]){return e=>{e.providersResolver=(i,s)=>function FM(t,n,e){const i=Pe();if(i.firstCreatePass){const s=Ai(t);bd(e,i.data,i.blueprint,s,!0),bd(n,i.data,i.blueprint,s,!1)}}(i,s?s(t):t,n)}}class Kv{}class BM{resolveComponentFactory(n){throw function RM(t){const n=Error(`No component factory found for ${We(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Zs=(()=>{class t{}return t.NULL=new BM,t})();function HM(){return no(Rt(),F())}function no(t,n){return new ct(Yn(t,n))}let ct=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=HM,t})();function VM(t){return t instanceof ct?t.nativeElement:t}class na{}let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function zM(){const t=F(),e=Un(Rt().index,t);return function $M(t){return t[11]}(zi(e)?e:t)}(),t})(),jM=(()=>{class t{}return t.\u0275prov=ze({token:t,providedIn:"root",factory:()=>null}),t})();class $l{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const GM=new $l("13.4.0"),Dd={};function zl(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Lt(r)),Di(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&zl(l[1],l,c,i)}const o=e.type;if(8&o)zl(t,n,e.child,i);else if(32&o){const a=dh(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Wm(n,e);if(Array.isArray(a))i.push(...a);else{const l=Vo(n[16]);zl(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class ia{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return zl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Di(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(_h(n,i),dl(e,i))}this._attachedToViewContainer=!1}Om(this._lView[1],this._lView)}onDestroy(n){F_(this._lView[1],this._lView,null,n)}markForCheck(){qh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Zh(t,n,e){const i=n[10];i.begin&&i.begin();try{Hr(t,n,t.template,e)}catch(s){throw W_(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rA(t,n){$o(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=n}}class WM extends ia{constructor(n){super(n),this._view=n}detectChanges(){$_(this._view)}checkNoChanges(){}get context(){return null}}class ex extends Zs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=tn(n);return new Ad(e,this.ngModule)}}function tx(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Ad extends Kv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fS(t){return t.map(dS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return tx(this.componentDef.inputs)}get outputs(){return tx(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function UM(t,n){return{get:(e,i,s)=>{const r=t.get(e,Dd,s);return r!==Dd||i===Dd?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(na,Hp),a=r.get(jM,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function L_(t,n,e){if(Tt(t))return t.selectRootElement(n,e===Ci.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):mh(o.createRenderer(null,this.componentDef),c,function YM(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),h=this.componentDef.onPush?576:528,d=function cy(t,n){return{components:[],scheduler:t||tS,clean:ZS,playerHandler:n||null,flags:0}}(),f=El(0,null,null,1,0,null,null,null,null,null),g=Yo(null,f,d,h,null,null,o,l,a,r);let v,m;tl(g);try{const C=function ay(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Rr(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Ml(l,c,!0),null!==t&&(ol(s,t,c),null!==l.classes&&Ch(s,t,l.classes),null!==l.styles&&Um(s,t,l.styles)));const u=i.createRenderer(t,n),h=Yo(e,k_(n),null,n.onPush?64:16,e[20],l,i,u,r||null,null);return o.firstCreatePass&&(ul(Mo(l,e),o,n.type),R_(o,l),B_(l,e.length,1)),kl(e,h),e[20]=h}(u,this.componentDef,g,o,l);if(u)if(i)ol(l,u,["ng-version",GM.full]);else{const{attrs:b,classes:D}=function gS(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!Si(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);b&&ol(l,u,b),D&&D.length>0&&Ch(l,u,D.join(" "))}if(m=Hu(f,20),void 0!==e){const b=m.projection=[];for(let D=0;D<this.ngContentSelectors.length;D++){const M=e[D];b.push(null!=M?Array.from(M):null)}}v=function ly(t,n,e,i,s){const r=e[1],o=function NS(t,n,e){const i=Rt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),H_(t,i,n,Br(t,n,1,null),e));const s=Lo(n,t,i.directiveStart,i);hn(s,n);const r=Yn(i,n);return r&&hn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=Rt();n.contentQueries(1,o,l.directiveStart)}const a=Rt();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Ss(a.index),N_(e[1],a,0,a.directiveStart,a.directiveEnd,n),O_(n,o)),o}(C,this.componentDef,g,d,[_E]),Uo(f,g,null)}finally{nl()}return new qM(this.componentType,v,no(m,g),g,m)}}class qM extends class OM{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new WM(s),this.componentType=n}get injector(){return new Er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class io{}const so=new Map;class sx extends io{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ex(this);const i=li(n);this._bootstrapComponents=Ui(i.bootstrap),this._r3Injector=Q_(n,e,[{provide:io,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],We(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=In.THROW_IF_NOT_FOUND,i=ge.Default){return n===In||n===io||n===Jh?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Sd extends class ZM{}{constructor(n){super(),this.moduleType=n,null!==li(n)&&function KM(t){const n=new Set;!function e(i){const s=li(i,!0),r=s.id;null!==r&&(function nx(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${We(n)} vs ${We(n.name)}`)}(r,so.get(r),i),so.set(r,i));const o=Ui(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new sx(this.moduleType,n)}}function jl(t,n,e,i){return function ox(t,n,e,i,s,r){const o=n+e;return dn(t,o,s)?qi(t,o+1,r?i.call(r,s):i(s)):sa(t,o+1)}(F(),Tn(),t,n,e,i)}function Ke(t,n,e,i,s){return function ax(t,n,e,i,s,r,o){const a=n+e;return function qs(t,n,e,i){const s=dn(t,n,e);return dn(t,n+1,i)||s}(t,a,s,r)?qi(t,a+2,o?i.call(o,s,r):i(s,r)):sa(t,a+2)}(F(),Tn(),t,n,e,i,s)}function sa(t,n){const e=t[n];return e===fe?void 0:e}function kd(t){return n=>{setTimeout(t,void 0,n)}}const k=class dL extends R{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const h=n;a=null===(s=h.next)||void 0===s?void 0:s.bind(h),l=null===(r=h.error)||void 0===r?void 0:r.bind(h),c=null===(o=h.complete)||void 0===o?void 0:o.bind(h)}this.__isAsync&&(l=kd(l),a&&(a=kd(a)),c&&(c=kd(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof se&&n.add(u),u}};function fL(){return this._results[zr()]()}class Md{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zr(),i=Md.prototype;i[e]||(i[e]=fL)}get changes(){return this._changes||(this._changes=new k)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=hi(n);(this._changesDetected=!function x1(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let cs=(()=>{class t{}return t.__NG_ELEMENT_ID__=mL,t})();const gL=cs,pL=class extends gL{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Yo(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Uo(e,i,n),new ia(i)}};function mL(){return Gl(Rt(),F())}function Gl(t,n){return 4&t.type?new pL(n,t,no(t,n)):null}let fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=_L,t})();function _L(){return fx(Rt(),F())}const yL=fi,hx=class extends yL{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return no(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const n=cl(this._hostTNode,this._hostLView);if(nm(n)){const e=Sr(n,this._hostLView),i=Ar(n);return new Er(e[1].data[i+8],e)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=dx(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Io(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const h=e||{};a=h.index,i=h.injector,s=h.projectableNodes,r=h.ngModuleRef}const l=o?n:new Ad(tn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const d=(o?c:this.parentInjector).get(io,null);d&&(r=d)}const u=l.create(c,s,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,s=i[1];if(function GD(t){return Di(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const h=i[3],d=new hx(h,h[6],h[3]);d.detach(d.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function aA(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],dm(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function lA(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=xh(r,o),l=i[11],c=yl(l,o[7]);return null!==c&&function sA(t,n,e,i,s,r){i[0]=s,i[6]=n,$o(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),dm(Ld(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=dx(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);i&&(dl(Ld(this._lContainer),e),Om(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);return i&&null!=dl(Ld(this._lContainer),e)?new ia(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function dx(t){return t[8]}function Ld(t){return t[8]||(t[8]=[])}function fx(t,n){let e;const i=n[t.index];if(Di(i))e=i;else{let s;if(8&t.type)s=Lt(i);else{const r=n[11];s=r.createComment("");const o=Yn(t,n);Ys(r,yl(r,o),s,function dA(t,n){return Tt(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=V_(i,n,s,t),kl(n,e)}return new hx(e,t,n)}class Fd{constructor(n){this.queryList=n,this.matches=null}clone(){return new Fd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Id{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new Id(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==yx(n,e).matches&&this.queries[e].setDirty()}}class gx{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Pd{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Pd(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Nd{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Nd(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,bL(e,r)),this.matchTNodeWithReadOption(n,e,hl(e,n,r,!1,!1))}else i===cs?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,hl(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===ct||s===fi||s===cs&&4&e.type)this.addMatch(e.index,-2);else{const r=hl(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function bL(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function CL(t,n,e,i){return-1===e?function TL(t,n){return 11&t.type?no(t,n):4&t.type?Gl(t,n):null}(n,t):-2===e?function wL(t,n,e){return e===ct?no(n,t):e===cs?Gl(n,t):e===fi?fx(n,t):void 0}(t,n,i):Lo(t,t[1],e,n)}function px(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:CL(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function Od(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=px(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],u=n[-l];for(let h=10;h<u.length;h++){const d=u[h];d[17]===d[3]&&Od(d[1],d,c,i)}if(null!==u[9]){const h=u[9];for(let d=0;d<h.length;d++){const f=h[d];Od(f[1],f,c,i)}}}}}return i}function Me(t){const n=F(),e=Pe(),i=Up();Yu(i+1);const s=yx(e,i);if(t.dirty&&Vp(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?Od(e,n,i,[]):px(e,n,s,i);t.reset(r,VM),t.notifyOnChanges()}return!0}return!1}function gi(t,n,e){const i=Pe();i.firstCreatePass&&(_x(i,new gx(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),mx(i,F(),n)}function rt(t,n,e,i){const s=Pe();if(s.firstCreatePass){const r=Rt();_x(s,new gx(n,e,i),r.index),function AL(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}mx(s,F(),e)}function Le(){return function DL(t,n){return t[19].queries[n].queryList}(F(),Up())}function mx(t,n,e){const i=new Md(4==(4&e));F_(t,n,i,i.destroy),null===n[19]&&(n[19]=new Id),n[19].queries.push(new Fd(i))}function _x(t,n,e){null===t.queries&&(t.queries=new Pd),t.queries.track(new Nd(n,e))}function yx(t,n){return t.queries.getByIndex(n)}function vx(t,n){return Gl(t,n)}function Ul(...t){}const Ox=new Ne("Application Initializer");let zd=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Ul,this.reject=Ul,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(dd(r))e.push(r);else if(KE(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(pe(Ox,8))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aa=new Ne("AppId",{providedIn:"root",factory:function Rx(){return`${jd()}${jd()}${jd()}`}});function jd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bx=new Ne("Platform Initializer"),Hx=new Ne("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),jL=new Ne("appBootstrapListener"),Ls=new Ne("LocaleId",{providedIn:"root",factory:()=>I1(Ls,ge.Optional|ge.SkipSelf)||function GL(){return"undefined"!=typeof $localize&&$localize.locale||Nl}()}),XL=(()=>Promise.resolve(0))();function Gd(t){"undefined"==typeof Zone?XL.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ft{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new k(!1),this.onMicrotaskEmpty=new k(!1),this.onStable=new k(!1),this.onError=new k(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function qL(){let t=Ue.requestAnimationFrame,n=Ue.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function KL(t){const n=()=>{!function ZL(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ue,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Yd(t),t.isCheckStableRunning=!0,Wd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Yd(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return Vx(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),$x(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return Vx(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),$x(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Yd(t),Wd(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ft.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ft.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,QL,Ul,Ul);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const QL={};function Wd(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Yd(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Vx(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $x(t){t._nesting--,Wd(t)}class JL{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new k,this.onMicrotaskEmpty=new k,this.onStable=new k,this.onError=new k}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Ud=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ft.assertNotInAngularZone(),Gd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Gd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),eF=(()=>{class t{constructor(){this._applications=new Map,Xd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Xd.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class tF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Xd=new tF,Ks=null;const zx=new Ne("AllowMultipleToken"),jx=new Ne("PlatformOnDestroy");function Gx(t,n,e=[]){const i=`Platform: ${n}`,s=new Ne(i);return(r=[])=>{let o=qd();if(!o||o.injector.get(zx,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function rF(t){if(Ks&&!Ks.get(zx,!1))throw new K(400,"");Ks=t;const n=t.get(Wx),e=t.get(Bx,null);e&&e.forEach(i=>i())}(function aF(t=[],n){return In.create({name:n,providers:[{provide:ed,useValue:"platform"},{provide:jx,useValue:()=>Ks=null},...t]})}(a,i))}return function oF(t){const n=qd();if(!n)throw new K(401,"");return n}()}}function qd(){var t;return null!==(t=null==Ks?void 0:Ks.get(Wx))&&void 0!==t?t:null}let Wx=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function lF(t,n){let e;return e="noop"===t?new JL:("zone.js"===t?void 0:t)||new Ft({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Ft,useValue:a}];return a.run(()=>{const c=In.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),h=u.injector.get(Wo,null);if(!h)throw new K(402,"");return a.runOutsideAngular(()=>{const d=a.onError.subscribe({next:f=>{h.handleError(f)}});u.onDestroy(()=>{Qd(this._modules,u),d.unsubscribe()})}),function cF(t,n,e){try{const i=e();return dd(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(h,a,()=>{const d=u.injector.get(zd);return d.runInitializers(),d.donePromise.then(()=>(function $k(t){Gn(t,"Expected localeId to be defined"),"string"==typeof t&&(Av=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ls,Nl)||Nl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const s=Yx({},i);return function iF(t,n,e){const i=new Sd(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(Xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(jx,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(pe(In))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Yx(t,n){return Array.isArray(n)?n.reduce(Yx,t):Object.assign(Object.assign({},t),n)}let Xl=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new je(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new je(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ft.assertNotInAngularZone(),Gd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ft.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Tp(o,a.pipe(function hD(){return t=>Cp()(function lD(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cD(s,n));const r=Object.create(i,rD);return r.source=i,r.subjectFactory=s,r}}(uD)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let s;s=e instanceof Kv?e:this._injector.get(Zs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function sF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(io),a=s.create(In.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Ud,null),u=c&&a.injector.get(eF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Qd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(jL,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(pe(Ft),pe(In),pe(Wo),pe(zd))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qd(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Xx=!0,Js=(()=>{class t{}return t.__NG_ELEMENT_ID__=dF,t})();function dF(t){return function fF(t,n,e){if(Za(t)&&!e){const i=Un(t.index,n);return new ia(i,i)}return 47&t.type?new ia(n[16],n):null}(Rt(),F(),16==(16&t))}class Jx{constructor(){}supports(n){return qo(n)}create(n){return new vF(n)}}const yF=(t,n)=>n;class vF{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||yF}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<t0(i,s,r)?e:i,a=t0(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,u=l-s;if(c!=u){for(let d=0;d<c;d++){const f=d<r.length?r[d]:r[d]=0,g=f+d;u<=g&&g<c&&(r[d]=f+1)}r[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!qo(n))throw new K(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function SE(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[zr()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new xF(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new e0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new e0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class xF{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bF{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class e0{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new bF,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function t0(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}function s0(){return new Zl([new Jx])}let Zl=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||s0()),deps:[[t,new ml,new pl]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new K(901,"")}}return t.\u0275prov=ze({token:t,providedIn:"root",factory:s0}),t})();const AF=Gx(null,"core",[]);let SF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl))},t.\u0275mod=At({type:t}),t.\u0275inj=xt({}),t})(),Kl=null;function ca(){return Kl}const Pn=new Ne("DocumentToken");class vI{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Oe=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new vI(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),m0(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{m0(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs),Q(Zl))},t.\u0275dir=xn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function m0(t,n){t.context.$implicit=n.item}let Ce=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new xI,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){_0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){_0("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs))},t.\u0275dir=xn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class xI{constructor(){this.$implicit=null,this.ngIf=null}}function _0(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${We(n)}'.`)}class ff{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let uc=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),C0=(()=>{class t{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new ff(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs),Q(uc,9))},t.\u0275dir=xn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),D0=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Q(fi))},t.\u0275dir=xn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[_e]}),t})(),fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({}),t})();class mf extends class TP extends class MF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kF(t){Kl||(Kl=t)}(new mf)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function CP(){return ga=ga||document.querySelector("base"),ga?ga.getAttribute("href"):null}();return null==e?null:function wP(t){hc=hc||document.createElement("a"),hc.setAttribute("href",t);const n=hc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){ga=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function mI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let hc,ga=null;const E0=new Ne("TRANSITION_ID"),AP=[{provide:Ox,useFactory:function DP(t,n,e){return()=>{e.get(zd).donePromise.then(()=>{const i=ca(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[E0,Pn,In],multi:!0}];class _f{static init(){!function nF(t){Xd=t}(new _f)}addToWindow(n){Ue.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},Ue.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ue.getAllAngularRootElements=()=>n.getAllRootElements(),Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(i=>{const s=Ue.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?ca().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let SP=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const dc=new Ne("EventManagerPlugins");let fc=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(pe(dc),pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class k0{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=ca().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let M0=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),pa=(()=>{class t extends M0{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(L0),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(L0))}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();function L0(t){ca().remove(t)}const yf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},vf=/%COMP%/g;function gc(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?gc(t,s,e):(s=s.replace(vf,t),e.push(s))}return e}function P0(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let pc=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new xf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ci.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new IP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case Ci.ShadowDom:return new PP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=gc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(pe(fc),pe(pa),pe(aa))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class xf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(yf[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=yf[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=yf[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(qn.DashCase|qn.Important)?n.style.setProperty(e,i,s&qn.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&qn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,P0(i)):this.eventManager.addEventListener(n,e,P0(i))}}class IP extends xf{constructor(n,e,i,s){super(n),this.component=i;const r=gc(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function MP(t){return"_ngcontent-%COMP%".replace(vf,t)}(s+"-"+i.id),this.hostAttr=function LP(t){return"_nghost-%COMP%".replace(vf,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class PP extends xf{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=gc(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let NP=(()=>{class t extends k0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const O0=["alt","control","meta","shift"],RP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},R0={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},BP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let HP=(()=>{class t extends k0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ca().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(O0.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function VP(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&R0.hasOwnProperty(n)&&(n=R0[n]))}return RP[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),O0.forEach(r=>{r!=s&&BP[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const GP=Gx(AF,"browser",[{provide:Hx,useValue:"browser"},{provide:Bx,useValue:function $P(){mf.makeCurrent(),_f.init()},multi:!0},{provide:Pn,useFactory:function jP(){return function VD(t){Ru=t}(document),document},deps:[]}]),WP=[{provide:ed,useValue:"root"},{provide:Wo,useFactory:function zP(){return new Wo},deps:[]},{provide:dc,useClass:NP,multi:!0,deps:[Pn,Ft,Hx]},{provide:dc,useClass:HP,multi:!0,deps:[Pn]},{provide:pc,useClass:pc,deps:[fc,pa,aa]},{provide:na,useExisting:pc},{provide:M0,useExisting:pa},{provide:pa,useClass:pa,deps:[Pn]},{provide:Ud,useClass:Ud,deps:[Ft]},{provide:fc,useClass:fc,deps:[dc,Ft]},{provide:class xP{},useClass:SP,deps:[]}];let B0=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:aa,useValue:e.appId},{provide:E0,useExisting:aa},AP]}}}return t.\u0275fac=function(e){return new(e||t)(pe(t,12))},t.\u0275mod=At({type:t}),t.\u0275inj=xt({providers:WP,imports:[fa,SF]}),t})();"undefined"!=typeof window&&window;let $0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:function(e){let i=null;return i=e?new(e||t):pe(z0),i},providedIn:"root"}),t})(),z0=(()=>{class t extends $0{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case nt.NONE:return i;case nt.HTML:return Wi(i,"HTML")?Qn(i):r_(this._doc,String(i)).toString();case nt.STYLE:return Wi(i,"Style")?Qn(i):i;case nt.SCRIPT:if(Wi(i,"Script"))return Qn(i);throw new Error("unsafe value used in a script context");case nt.URL:return Zm(i),Wi(i,"URL")?Qn(i):zo(String(i));case nt.RESOURCE_URL:if(Wi(i,"ResourceURL"))return Qn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function wA(t){return new vA(t)}(e)}bypassSecurityTrustStyle(e){return function DA(t){return new xA(t)}(e)}bypassSecurityTrustScript(e){return function AA(t){return new bA(t)}(e)}bypassSecurityTrustUrl(e){return function SA(t){return new TA(t)}(e)}bypassSecurityTrustResourceUrl(e){return function EA(t){return new CA(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:function(e){let i=null;return i=e?new e:function t2(t){return new z0(t.get(Pn))}(pe(In)),i},providedIn:"root"}),t})();class n2 extends se{constructor(n,e){super()}schedule(n,e=0){return this}}class j0 extends n2{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let G0=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class hs extends G0{constructor(n,e=G0.now){super(n,()=>hs.delegate&&hs.delegate!==this?hs.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return hs.delegate&&hs.delegate!==this?hs.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const r2=new class s2 extends hs{}(class i2 extends j0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),o2=new je(t=>t.complete());function h2({error:t,subscriber:n}){n.error(t)}class _i{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return function c2(...t){let n=t[t.length-1];return ue(n)?(t.pop(),xu(t,n)):bp(t)}(this.value);case"E":return function u2(t,n){return new je(n?e=>n.schedule(h2,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return function a2(t){return t?function l2(t){return new je(n=>t.schedule(()=>n.complete()))}(t):o2}()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new _i("N",n):_i.undefinedValueNotification}static createError(n){return new _i("E",void 0,n)}static createComplete(){return _i.completeNotification}}_i.completeNotification=new _i("C"),_i.undefinedValueNotification=new _i("N",void 0);class mc extends re{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(mc.dispatch,this.delay,new f2(n,this.destination)))}_next(n){this.scheduleMessage(_i.createNext(n))}_error(n){this.scheduleMessage(_i.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(_i.createComplete()),this.unsubscribe()}}class f2{constructor(n,e){this.notification=n,this.destination=e}}class g2 extends R{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new p2(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new Wt;if(this.isStopped||this.hasError?o=se.EMPTY:(this.observers.push(n),o=new $i(this,n)),s&&n.add(n=new mc(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||r2).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class p2{constructor(n,e){this.time=n,this.value=e}}function W0(t,n){return"function"==typeof n?e=>e.pipe(W0((i,s)=>mp(t(i,s)).pipe(le((r,o)=>n(i,r,s,o))))):e=>e.lift(new m2(t))}class m2{constructor(n){this.project=n}call(n,e){return e.subscribe(new _2(n,this.project))}}class _2 extends yp{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _p(this),s=this.destination;s.add(i),this.innerSubscription=vp(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const _c={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return _c.schedule(t,0);if(void 0===window.requestAnimationFrame)return _c.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let Tf;function A2(t,n,e){let i=e;return function v2(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function b2(t,n){if(!Tf){const e=Element.prototype;Tf=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Tf.call(t,n)}(t,s)||(i=r,0))),i}class E2{constructor(n,e){this.componentFactory=e.get(Zs).resolveComponentFactory(n)}create(n){return new k2(this.componentFactory,n)}}class k2{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new g2(1),this.events=this.eventEmitters.pipe(W0(i=>Tp(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Ft),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_c.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function T2(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=In.create({providers:[],parent:this.injector}),i=function D2(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=A2(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Js),this.implementsOnChanges=function x2(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Xl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(le(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_c.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Np(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class M2 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Y0{}const ds="*";function fn(t,n){return{type:7,name:t,definitions:n,options:{}}}function nn(t,n=null){return{type:4,styles:n,timings:t}}function U0(t,n=null){return{type:2,steps:t,options:n}}function Fe(t){return{type:6,styles:t,offset:null}}function sn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function X0(t){Promise.resolve(null).then(t)}class ma{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){X0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class q0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?X0(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ie=!1;function Q0(t){return new K(3e3,Ie)}function dN(){return"undefined"!=typeof window&&void 0!==window.document}function wf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Is(t){switch(t.length){case 0:return new ma;case 1:return t[0];default:return new q0(t)}}function Z0(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.offset,d=h==l,f=d&&c||{};Object.keys(u).forEach(g=>{let v=g,m=u[g];if("offset"!==g)switch(v=n.normalizePropertyName(v,o),m){case"!":m=s[g];break;case ds:m=r[g];break;default:m=n.normalizeStyleValue(g,v,m,o)}f[v]=m}),d||a.push(f),c=f,l=h}),o.length)throw function tN(t){return new K(3502,Ie)}();return a}function Df(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Af(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Af(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Af(e,"destroy",t)))}}function Af(t,n,e){const i=e.totalTime,r=Sf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function Sf(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Jn(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function K0(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Ef=(t,n)=>!1,J0=(t,n,e)=>[],eb=null;function kf(t){const n=t.parentNode||t.host;return n===eb?null:n}(wf()||"undefined"!=typeof Element)&&(dN()?(eb=(()=>document.documentElement)(),Ef=(t,n)=>{for(;n;){if(n===t)return!0;n=kf(n)}return!1}):Ef=(t,n)=>t.contains(n),J0=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let tr=null,tb=!1;function nb(t){tr||(tr=function gN(){return"undefined"!=typeof document?document.body:null}()||{},tb=!!tr.style&&"WebkitAppearance"in tr.style);let n=!0;return tr.style&&!function fN(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in tr.style,!n&&tb&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in tr.style)),n}const ib=Ef,sb=J0;let rb=(()=>{class t{validateStyleProperty(e){return nb(e)}matchesElement(e,i){return!1}containsElement(e,i){return ib(e,i)}getParentElement(e){return kf(e)}query(e,i,s){return sb(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new ma(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),Mf=(()=>{class t{}return t.NOOP=new rb,t})();const Lf="ng-enter",vc="ng-leave",xc="ng-trigger",bc=".ng-trigger",ab="ng-animating",Ff=".ng-animating";function nr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:If(parseFloat(n[1]),n[2])}function If(t,n){return"s"===n?1e3*t:t}function Tc(t,n,e){return t.hasOwnProperty("duration")?t:function _N(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(Q0()),{duration:0,delay:0,easing:""};s=If(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=If(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function I2(){return new K(3100,Ie)}()),a=!0),r<0&&(n.push(function P2(){return new K(3101,Ie)}()),a=!0),a&&n.splice(l,0,Q0())}return{duration:s,delay:r,easing:o}}(t,n,e)}function oo(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ps(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else oo(t,e);return e}function cb(t,n,e){return e?n+":"+e+";":""}function ub(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=cb(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=cb(0,xN(e),t.style[e]));t.setAttribute("style",n)}function Ki(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=Nf(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),wf()&&ub(t))}function ir(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=Nf(e);t.style[i]=""}),wf()&&ub(t))}function _a(t){return Array.isArray(t)?1==t.length?t[0]:U0(t):t}const Pf=new RegExp("{{\\s*(.+?)\\s*}}","g");function hb(t){let n=[];if("string"==typeof t){let e;for(;e=Pf.exec(t);)n.push(e[1]);Pf.lastIndex=0}return n}function Cc(t,n,e){const i=t.toString(),s=i.replace(Pf,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function O2(t){return new K(3003,Ie)}()),a=""),a.toString()});return s==i?t:s}function wc(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const vN=/-+([a-z0-9])/g;function Nf(t){return t.replace(vN,(...n)=>n[1].toUpperCase())}function xN(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ei(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function R2(t){return new K(3004,Ie)}()}}function db(t,n){return window.getComputedStyle(t)[n]}function AN(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function SN(t,n,e){if(":"==t[0]){const l=function EN(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function Z2(t){return new K(3016,Ie)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Q2(t){return new K(3015,Ie)}()),n;const s=i[1],r=i[2],o=i[3];n.push(fb(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(fb(o,s))}(i,e,n)):e.push(t),e}const Ec=new Set(["true","1"]),kc=new Set(["false","0"]);function fb(t,n){const e=Ec.has(t)||kc.has(t),i=Ec.has(n)||kc.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Ec.has(t):kc.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Ec.has(n):kc.has(n)),o&&a}}const kN=new RegExp("s*:selfs*,?","g");function Of(t,n,e,i){return new MN(t).build(n,e,i)}class MN{constructor(n){this._driver=n}build(n,e,i){const s=new IN(e);this._resetContextStyleTimingState(s);const r=ei(this,_a(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function H2(){return new K(3006,Ie)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function V2(){return new K(3007,Ie)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Mc(a)){const l=a;Object.keys(l).forEach(c=>{hb(l[c]).forEach(u=>{o.hasOwnProperty(u)||r.add(u)})})}}),r.size&&(wc(r.values()),e.errors.push(function $2(t,n){return new K(3008,Ie)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ei(this,_a(n.animation),e);return{type:1,matchers:AN(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:sr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>ei(this,i,e)),options:sr(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=ei(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:sr(n.options)}}visitAnimate(n,e){const i=function NN(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Rf(Tc(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Rf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Tc(e,n);return Rf(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:Fe({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Fe(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==ds?i.push(o):e.errors.push(function z2(t){return new K(3002,Ie)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Mc(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function j2(t,n,e,i,s){return new K(3010,Ie)}()),u=!1),r=c.startTime),u&&(l[a]={startTime:r,endTime:s}),e.options&&function yN(t,n,e){const i=n.params||{},s=hb(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function N2(t){return new K(3001,Ie)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function G2(){return new K(3011,Ie)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(C=>{const b=this._makeStyleAst(C,e);let D=null!=b.offset?b.offset:function PN(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Mc(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Mc(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(b.styles),M=0;return null!=D&&(r++,M=b.offset=D),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),b});l&&e.errors.push(function W2(){return new K(3012,Ie)}()),a&&e.errors.push(function Y2(){return new K(3200,Ie)}());const h=n.steps.length;let d=0;r>0&&r<h?e.errors.push(function U2(){return new K(3202,Ie)}()):0==r&&(d=1/(h-1));const f=h-1,g=e.currentTime,v=e.currentAnimateTimings,m=v.duration;return u.forEach((C,b)=>{const D=d>0?b==f?1:d*b:o[b],M=D*m;e.currentTime=g+v.delay+M,v.duration=M,this._validateStyleAst(C,e),C.offset=D,i.styles.push(C)}),i}visitReference(n,e){return{type:8,animation:ei(this,_a(n.animation),e),options:sr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:sr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:sr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function LN(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(kN,"")),t=t.replace(/@\*/g,bc).replace(/@\w+/g,e=>bc+"-"+e.substr(1)).replace(/:animating/g,Ff),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Jn(e.collectedStyles,e.currentQuerySelector,{});const a=ei(this,_a(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:sr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function X2(){return new K(3013,Ie)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Tc(n.timings,e.errors,!0);return{type:12,animation:ei(this,_a(n.animation),e),timings:i,options:null}}}class IN{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Mc(t){return!Array.isArray(t)&&"object"==typeof t}function sr(t){return t?(t=oo(t)).params&&(t.params=function FN(t){return t?oo(t):null}(t.params)):t={},t}function Rf(t,n,e){return{duration:t,delay:n,easing:e}}function Bf(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Lc{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const BN=new RegExp(":enter","g"),VN=new RegExp(":leave","g");function Hf(t,n,e,i,s,r={},o={},a,l,c=[]){return(new $N).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class $N{buildKeyframes(n,e,i,s,r,o,a,l,c,u=[]){c=c||new Lc;const h=new Vf(n,e,c,s,r,u,[]);h.options=l,h.currentTimeline.setStyles([o],null,h.errors,l),ei(this,i,h);const d=h.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let g=d.length-1;g>=0;g--){const v=d[g];if(v.element===e){f=v;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,h.errors,l)}return d.length?d.map(f=>f.buildKeyframes()):[Bf(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?nr(i.duration):null,a=null!=i.delay?nr(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ei(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Fc);const o=nr(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>ei(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?nr(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),ei(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Tc(e.params?Cc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?nr(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fc);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,c);r&&h.delayNextStep(r),c===e.element&&(l=h.currentTimeline),ei(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;ei(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-h+(s.startTime-i.currentTimeline.startTime)}}const Fc={};class Vf{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ic(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=nr(i.duration)),null!=i.delay&&(s.delay=nr(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Cc(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Vf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Fc,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new zN(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(BN,"."+this._enterClassName)).replace(VN,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function q2(t){return new K(3014,Ie)}()),a}}class Ic{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Ic(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ds,this._currentKeyframe[e]=ds}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function jN(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=ds})):Ps(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Cc(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ds),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=Ps(a,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?n.add(u):h==ds&&e.add(u)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?wc(n.values()):[],o=e.size?wc(e.values()):[];if(i){const a=s[0],l=oo(a);a.offset=0,l.offset=1,s=[a,l]}return Bf(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class zN extends Ic{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=Ps(n[0],!1);l.offset=0,r.push(l);const c=Ps(n[0],!1);c.offset=mb(a),r.push(c);const u=n.length-1;for(let h=1;h<=u;h++){let d=Ps(n[h],!1);d.offset=mb((e+d.offset*i)/o),r.push(d)}i=o,e=0,s="",n=r}return Bf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function mb(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class $f{}class GN extends $f{normalizePropertyName(n,e){return Nf(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(WN[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function B2(t,n){return new K(3005,Ie)}())}return o+r}}const WN=(()=>function YN(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _b(t,n,e,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const zf={};class yb{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function UN(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,u){const h=[],d=this.ast.options&&this.ast.options.params||zf,g=this.buildStyles(i,a&&a.params||zf,h),v=l&&l.params||zf,m=this.buildStyles(s,v,h),C=new Set,b=new Map,D=new Map,M="void"===s,N={params:Object.assign(Object.assign({},d),v)},I=u?[]:Hf(n,e,this.ast.animation,r,o,g,m,N,c,h);let X=0;if(I.forEach(ee=>{X=Math.max(ee.duration+ee.delay,X)}),h.length)return _b(e,this._triggerName,i,s,M,g,m,[],[],b,D,X,h);I.forEach(ee=>{const oe=ee.element,J=Jn(b,oe,{});ee.preStyleProps.forEach(W=>J[W]=!0);const B=Jn(D,oe,{});ee.postStyleProps.forEach(W=>B[W]=!0),oe!==e&&C.add(oe)});const be=wc(C.values());return _b(e,this._triggerName,i,s,M,g,m,I,be,b,D,X)}}class XN{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=oo(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Cc(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class QN{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new XN(s.style,s.options&&s.options.params||{},i)}),vb(this.states,"true","1"),vb(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new yb(n,s,this.states))}),this.fallbackTransition=function ZN(t,n,e){return new yb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function vb(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const KN=new Lc;class JN{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=Of(this._driver,e,i,[]);if(i.length)throw function nN(t){return new K(3503,Ie)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Z0(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=Hf(this._driver,e,r,Lf,vc,{},{},i,KN,s),o.forEach(u=>{const h=Jn(a,u.element,{});u.postStyleProps.forEach(d=>h[d]=null)})):(s.push(function iN(){return new K(3300,Ie)}()),o=[]),s.length)throw function sN(t){return new K(3504,Ie)}();a.forEach((u,h)=>{Object.keys(u).forEach(d=>{u[d]=this._driver.computeStyle(h,d,ds)})});const c=Is(o.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function rN(t){return new K(3301,Ie)}();return e}listen(n,e,i,s){const r=Sf(e,"","","");return Df(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const xb="ng-animate-queued",jf="ng-animate-disabled",sO=[],bb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yi="__ng_removed";class Gf{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function cO(t){return null!=t?t:null}(i?n.value:n),i){const r=oo(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const ya="void",Wf=new Gf(ya);class oO{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,vi(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function oN(t,n){return new K(3302,Ie)}();if(null==i||0==i.length)throw function aN(t){return new K(3303,Ie)}();if(!function uO(t){return"start"==t||"done"==t}(i))throw function lN(t,n){return new K(3400,Ie)}();const r=Jn(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=Jn(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(vi(n,xc),vi(n,xc+"-"+e),a[e]=Wf),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function cN(t){return new K(3401,Ie)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new Yf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(vi(n,xc),vi(n,xc+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Gf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Wf),c.value!==ya&&l.value===c.value){if(!function fO(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const v=[],m=r.matchStyles(l.value,l.params,v),C=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{ir(n,m),Ki(n,C)})}return}const d=Jn(this._engine.playersByElement,n,[]);d.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!f){if(!s)return;f=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(vi(n,xb),o.onStart(()=>{ao(n,xb)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const m=this._engine.playersByElement.get(n);if(m){let C=m.indexOf(o);C>=0&&m.splice(C,1)}}),this.players.push(o),d.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bc,!0);i.forEach(s=>{if(s[yi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,ya,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Is(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Wf,u=new Gf(ya),h=new Yf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[yi];(!r||r===bb)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){vi(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Sf(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Df(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class aO{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new oO(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Pc(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Pc(e))return;const r=e[yi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),vi(n,jf)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ao(n,jf))}removeNode(n,e,i,s){if(Pc(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[yi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Pc(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Ff,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Is(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[yi];if(i&&i.setForRemoval){if(n[yi]=bb,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(jf))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)vi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Is(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function uN(t){return new K(3402,Ie)}()}_flushAnimations(n,e){const i=new Lc,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const G=this.driver.query(P,".ng-animate-queued",!0);for(let $=0;$<G.length;$++)u.add(G[$])});const h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=wb(d,this.collectedEnterElements),g=new Map;let v=0;f.forEach((P,G)=>{const $=Lf+v++;g.set(G,$),P.forEach(Z=>vi(Z,$))});const m=[],C=new Set,b=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const G=this.collectedLeaveElements[P],$=G[yi];$&&$.setForRemoval&&(m.push(G),C.add(G),$.hasAnimation?this.driver.query(G,".ng-star-inserted",!0).forEach(Z=>C.add(Z)):b.add(G))}const D=new Map,M=wb(d,Array.from(C));M.forEach((P,G)=>{const $=vc+v++;D.set(G,$),P.forEach(Z=>vi(Z,$))}),n.push(()=>{f.forEach((P,G)=>{const $=g.get(G);P.forEach(Z=>ao(Z,$))}),M.forEach((P,G)=>{const $=D.get(G);P.forEach(Z=>ao(Z,$))}),m.forEach(P=>{this.processLeaveNode(P)})});const N=[],I=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach($=>{const Z=$.player,ce=$.element;if(N.push(Z),this.collectedEnterElements.length){const et=ce[yi];if(et&&et.setForMove){if(et.previousTriggersValues&&et.previousTriggersValues.has($.triggerName)){const jt=et.previousTriggersValues.get($.triggerName),H=this.statesByElement.get($.element);H&&H[$.triggerName]&&(H[$.triggerName].value=jt)}return void Z.destroy()}}const Ee=!h||!this.driver.containsElement(h,ce),yt=D.get(ce),zt=g.get(ce),Te=this._buildInstruction($,i,zt,yt,Ee);if(Te.errors&&Te.errors.length)return void I.push(Te);if(Ee)return Z.onStart(()=>ir(ce,Te.fromStyles)),Z.onDestroy(()=>Ki(ce,Te.toStyles)),void s.push(Z);if($.isFallbackTransition)return Z.onStart(()=>ir(ce,Te.fromStyles)),Z.onDestroy(()=>Ki(ce,Te.toStyles)),void s.push(Z);const ri=[];Te.timelines.forEach(et=>{et.stretchStartingKeyframe=!0,this.disabledNodes.has(et.element)||ri.push(et)}),Te.timelines=ri,i.append(ce,Te.timelines),o.push({instruction:Te,player:Z,element:ce}),Te.queriedElements.forEach(et=>Jn(a,et,[]).push(Z)),Te.preStyleProps.forEach((et,jt)=>{const H=Object.keys(et);if(H.length){let ne=l.get(jt);ne||l.set(jt,ne=new Set),H.forEach(ye=>ne.add(ye))}}),Te.postStyleProps.forEach((et,jt)=>{const H=Object.keys(et);let ne=c.get(jt);ne||c.set(jt,ne=new Set),H.forEach(ye=>ne.add(ye))})});if(I.length){const P=[];I.forEach(G=>{P.push(function hN(t,n){return new K(3505,Ie)}())}),N.forEach(G=>G.destroy()),this.reportError(P)}const X=new Map,be=new Map;o.forEach(P=>{const G=P.element;i.has(G)&&(be.set(G,G),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,X))}),s.forEach(P=>{const G=P.element;this._getPreviousPlayers(G,!1,P.namespaceId,P.triggerName,null).forEach(Z=>{Jn(X,G,[]).push(Z),Z.destroy()})});const ee=m.filter(P=>Ab(P,l,c)),oe=new Map;Cb(oe,this.driver,b,c,ds).forEach(P=>{Ab(P,l,c)&&ee.push(P)});const B=new Map;f.forEach((P,G)=>{Cb(B,this.driver,new Set(P),l,"!")}),ee.forEach(P=>{const G=oe.get(P),$=B.get(P);oe.set(P,Object.assign(Object.assign({},G),$))});const W=[],Ge=[],Se={};o.forEach(P=>{const{element:G,player:$,instruction:Z}=P;if(i.has(G)){if(u.has(G))return $.onDestroy(()=>Ki(G,Z.toStyles)),$.disabled=!0,$.overrideTotalTime(Z.totalTime),void s.push($);let ce=Se;if(be.size>1){let yt=G;const zt=[];for(;yt=yt.parentNode;){const Te=be.get(yt);if(Te){ce=Te;break}zt.push(yt)}zt.forEach(Te=>be.set(Te,ce))}const Ee=this._buildAnimation($.namespaceId,Z,X,r,B,oe);if($.setRealPlayer(Ee),ce===Se)W.push($);else{const yt=this.playersByElement.get(ce);yt&&yt.length&&($.parentPlayer=Is(yt)),s.push($)}}else ir(G,Z.fromStyles),$.onDestroy(()=>Ki(G,Z.toStyles)),Ge.push($),u.has(G)&&s.push($)}),Ge.forEach(P=>{const G=r.get(P.element);if(G&&G.length){const $=Is(G);P.setRealPlayer($)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<m.length;P++){const G=m[P],$=G[yi];if(ao(G,vc),$&&$.hasAnimation)continue;let Z=[];if(a.size){let Ee=a.get(G);Ee&&Ee.length&&Z.push(...Ee);let yt=this.driver.query(G,Ff,!0);for(let zt=0;zt<yt.length;zt++){let Te=a.get(yt[zt]);Te&&Te.length&&Z.push(...Te)}}const ce=Z.filter(Ee=>!Ee.destroyed);ce.length?hO(this,G,ce):this.processLeaveNode(G)}return m.length=0,W.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const G=this.players.indexOf(P);this.players.splice(G,1)}),P.play()}),W}elementContainsData(n,e){let i=!1;const s=e[yi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==ya;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,h=Jn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),h.push(f)})}ir(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,d=e.timelines.map(g=>{const v=g.element;u.add(v);const m=v[yi];if(m&&m.removedBeforeQueried)return new ma(g.duration,g.delay);const C=v!==l,b=function dO(t){const n=[];return Db(t,n),n}((i.get(v)||sO).map(X=>X.getRealPlayer())).filter(X=>!!X.element&&X.element===v),D=r.get(v),M=o.get(v),N=Z0(0,this._normalizer,0,g.keyframes,D,M),I=this._buildPlayer(g,N,b);if(g.subTimeline&&s&&h.add(v),C){const X=new Yf(n,a,v);X.setRealPlayer(I),c.push(X)}return I});c.forEach(g=>{Jn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function lO(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>vi(g,ab));const f=Is(d);return f.onDestroy(()=>{u.forEach(g=>ao(g,ab)),Ki(l,e.toStyles)}),h.forEach(g=>{Jn(s,g,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new ma(n.duration,n.delay)}}class Yf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new ma,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Df(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Jn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Pc(t){return t&&1===t.nodeType}function Tb(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function Cb(t,n,e,i,s){const r=[];e.forEach(l=>r.push(Tb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(h=>{const d=u[h]=n.computeStyle(c,h,s);(!d||0==d.length)&&(c[yi]=rO,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>Tb(l,r[a++])),o}function wb(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function vi(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function ao(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function hO(t,n,e){Is(e).onDone(()=>t.processLeaveNode(n))}function Db(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof q0?Db(i.players,n):n.push(i)}}function Ab(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class Nc{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new aO(n,e,i),this._timelineEngine=new JN(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],u=Of(this._driver,r,l,[]);if(l.length)throw function eN(t,n){return new K(3404,Ie)}();a=function qN(t,n,e){return new QN(t,n,e)}(s,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=K0(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=K0(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let pO=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ki(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ki(this._element,this._initialStyles),this._endStyles&&(Ki(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Ki(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Uf(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];mO(s)&&(n=n||{},n[s]=t[s])}return n}function mO(t){return"display"===t||"position"===t}class Sb{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:db(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class _O{validateStyleProperty(n){return nb(n)}matchesElement(n,e){return!1}containsElement(n,e){return ib(n,e)}getParentElement(n){return kf(n)}query(n,e,i){return sb(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},u=o.filter(d=>d instanceof Sb);(function bN(t,n){return 0===t||0===n})(i,s)&&u.forEach(d=>{let f=d.currentSnapshot;Object.keys(f).forEach(g=>c[g]=f[g])}),e=function TN(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=db(t,l)})}}return n}(n,e=e.map(d=>Ps(d,!1)),c);const h=function gO(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Uf(n[0]),n.length>1&&(i=Uf(n[n.length-1]))):n&&(e=Uf(n)),e||i?new pO(t,e,i):null}(n,e);return new Sb(n,e,l,h)}}let yO=(()=>{class t extends Y0{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ci.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?U0(e):e;return Eb(this._renderer,null,i,"register",[s]),new vO(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(pe(na),pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class vO extends class F2{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new xO(this._id,n,e||{},this._renderer)}}class xO{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return Eb(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function Eb(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const kb="@.disabled";let bO=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new Mb("",r,this.engine),this._rendererCache.set(r,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new TO(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(pe(na),pe(Nc),pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class Mb{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==kb?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class TO extends Mb{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kb?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function CO(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function wO(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let DO=(()=>{class t extends Nc{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn),pe(Mf),pe($f))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const Lb=new Ne("AnimationModuleType"),Fb=[{provide:Y0,useClass:yO},{provide:$f,useFactory:function AO(){return new GN}},{provide:Nc,useClass:DO},{provide:na,useFactory:function SO(t,n,e){return new bO(t,n,e)},deps:[pc,Nc,Ft]}],Ib=[{provide:Mf,useFactory:()=>new _O},{provide:Lb,useValue:"BrowserAnimations"},...Fb],EO=[{provide:Mf,useClass:rb},{provide:Lb,useValue:"NoopAnimations"},...Fb];let kO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?EO:Ib}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({providers:Ib,imports:[B0]}),t})();class Xf{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 Pb extends Xf{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class MO extends Xf{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class LO extends Xf{constructor(n){super(),this.element=n instanceof ct?n.nativeElement:n}}class PO extends class IO extends class FO{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Pb?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof MO?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof LO?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}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)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}{}function Rb(t,n,e,i){return mn(e)&&(i=e,e=void 0),i?Rb(t,n,e).pipe(le(s=>cn(s)?i(...s):i(s))):new je(s=>{Bb(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function Bb(t,n,e,i,s){let r;if(function oR(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function rR(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function sR(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)Bb(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const aR=new hs(j0);class cR{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new uR(n,this.dueTime,this.scheduler))}}class uR extends re{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(hR,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function hR(t){t.debouncedNext()}function dR(){}function Jf(t){return null==t?dR:function(){return this.querySelector(t)}}function gR(){return[]}function Hb(t){return null==t?gR:function(){return this.querySelectorAll(t)}}function Vb(t){return function(){return this.matches(t)}}function $b(t){return new Array(t.length)}function Rc(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function vR(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new Rc(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function xR(t,n,e,i,s,r,o){var a,l,f,c={},u=n.length,h=r.length,d=new Array(u);for(a=0;a<u;++a)(l=n[a])&&(d[a]=f="$"+o.call(l,l.__data__,a,n),f in c?s[a]=l:c[f]=l);for(a=0;a<h;++a)(l=c[f="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[f]=null):e[a]=new Rc(t,r[a]);for(a=0;a<u;++a)(l=n[a])&&c[d[a]]===l&&(s[a]=l)}function SR(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Rc.prototype={constructor:Rc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var eg="http://www.w3.org/1999/xhtml";const jb={svg:"http://www.w3.org/2000/svg",xhtml:eg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bc(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),jb.hasOwnProperty(n)?{space:jb[n],local:t}:t}function PR(t){return function(){this.removeAttribute(t)}}function NR(t){return function(){this.removeAttributeNS(t.space,t.local)}}function OR(t,n){return function(){this.setAttribute(t,n)}}function RR(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function BR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function HR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Gb(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $R(t){return function(){this.style.removeProperty(t)}}function zR(t,n,e){return function(){this.style.setProperty(t,n,e)}}function jR(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function lo(t,n){return t.style.getPropertyValue(n)||Gb(t).getComputedStyle(t,null).getPropertyValue(n)}function WR(t){return function(){delete this[t]}}function YR(t,n){return function(){this[t]=n}}function UR(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Wb(t){return t.trim().split(/^|\s+/)}function tg(t){return t.classList||new Yb(t)}function Yb(t){this._node=t,this._names=Wb(t.getAttribute("class")||"")}function Ub(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function Xb(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function qR(t){return function(){Ub(this,t)}}function QR(t){return function(){Xb(this,t)}}function ZR(t,n){return function(){(n.apply(this,arguments)?Ub:Xb)(this,t)}}function JR(){this.textContent=""}function eB(t){return function(){this.textContent=t}}function tB(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function iB(){this.innerHTML=""}function sB(t){return function(){this.innerHTML=t}}function rB(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function aB(){this.nextSibling&&this.parentNode.appendChild(this)}function cB(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hB(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===eg&&n.documentElement.namespaceURI===eg?n.createElement(t):n.createElementNS(e,t)}}function dB(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qb(t){var n=Bc(t);return(n.local?dB:hB)(n)}function gB(){return null}function mB(){var t=this.parentNode;t&&t.removeChild(this)}function yB(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function vB(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}Yb.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Qb={},He=null;function CB(t,n,e){return t=Zb(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function Zb(t,n,e){return function(i){var s=He;He=i;try{t.call(this,this.__data__,n,e)}finally{He=s}}}function wB(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function DB(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function AB(t,n,e){var i=Qb.hasOwnProperty(t.type)?CB:Zb;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var u=0,h=a.length;u<h;++u)if((l=a[u]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function Kb(t,n,e){var i=Gb(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function kB(t,n){return function(){return Kb(this,t,n)}}function MB(t,n){return function(){return Kb(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Qb={mouseenter:"mouseover",mouseleave:"mouseout"}));var Jb=[null];function ti(t,n){this._groups=t,this._parents=n}function eT(){return new ti([[document.documentElement]],Jb)}ti.prototype=eT.prototype={constructor:ti,select:function fR(t){"function"!=typeof t&&(t=Jf(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),u=0;u<o;++u)(l=r[u])&&(c=t.call(l,l.__data__,u,r))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new ti(i,this._parents)},selectAll:function pR(t){"function"!=typeof t&&(t=Hb(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new ti(i,s)},filter:function mR(t){"function"!=typeof t&&(t=Vb(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new ti(i,this._parents)},data:function bR(t,n){if(!t)return f=new Array(this.size()),c=-1,this.each(function(I){f[++c]=I}),f;var e=n?xR:vR,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function yR(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var u=i[c],h=s[c],d=h.length,f=t.call(u,u&&u.__data__,c,i),g=f.length,v=a[c]=new Array(g),m=o[c]=new Array(g);e(u,h,v,m,l[c]=new Array(d),f,n);for(var M,N,b=0,D=0;b<g;++b)if(M=v[b]){for(b>=D&&(D=b+1);!(N=m[D])&&++D<g;);M._next=N||null}}return(o=new ti(o,i))._enter=a,o._exit=l,o},enter:function _R(){return new ti(this._enter||this._groups.map($b),this._parents)},exit:function TR(){return new ti(this._exit||this._groups.map($b),this._parents)},join:function CR(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function wR(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new ti(o,this._parents)},order:function DR(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function AR(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=SR);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(n)}return new ti(s,this._parents).order()},call:function ER(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function kR(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function MR(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function LR(){var t=0;return this.each(function(){++t}),t},empty:function FR(){return!this.node()},each:function IR(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function VR(t,n){var e=Bc(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?NR:PR:"function"==typeof n?e.local?HR:BR:e.local?RR:OR)(e,n))},style:function GR(t,n,e){return arguments.length>1?this.each((null==n?$R:"function"==typeof n?jR:zR)(t,n,null==e?"":e)):lo(this.node(),t)},property:function XR(t,n){return arguments.length>1?this.each((null==n?WR:"function"==typeof n?UR:YR)(t,n)):this.node()[t]},classed:function KR(t,n){var e=Wb(t+"");if(arguments.length<2){for(var i=tg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?ZR:n?qR:QR)(e,n))},text:function nB(t){return arguments.length?this.each(null==t?JR:("function"==typeof t?tB:eB)(t)):this.node().textContent},html:function oB(t){return arguments.length?this.each(null==t?iB:("function"==typeof t?rB:sB)(t)):this.node().innerHTML},raise:function lB(){return this.each(aB)},lower:function uB(){return this.each(cB)},append:function fB(t){var n="function"==typeof t?t:qb(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function pB(t,n){var e="function"==typeof t?t:qb(t),i=null==n?gB:"function"==typeof n?n:Jf(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function _B(){return this.each(mB)},clone:function xB(t){return this.select(t?vB:yB)},datum:function bB(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function SB(t,n,e){var s,o,i=wB(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?AB:DB,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var u,l=0,c=a.length;l<c;++l)for(s=0,u=a[l];s<r;++s)if((o=i[s]).type===u.type&&o.name===u.name)return u.value},dispatch:function LB(t,n){return this.each(("function"==typeof n?MB:kB)(t,n))}};const xa=eT;function Qt(t){return"string"==typeof t?new ti([[document.querySelector(t)]],[document.documentElement]):new ti([[t]],Jb)}var FB={value:function(){}};function tT(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new Hc(e)}function Hc(t){this._=t}function IB(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function PB(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function nT(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=FB,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}Hc.prototype=tT.prototype={constructor:Hc,on:function(t,n){var s,e=this._,i=IB(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=nT(e[s],t.name,n);else if(null==n)for(s in e)e[s]=nT(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=PB(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Hc(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const iT=tT;function ng(){He.preventDefault(),He.stopImmediatePropagation()}function NB(t){var n=t.document.documentElement,e=Qt(t).on("dragstart.drag",ng,!0);"onselectstart"in n?e.on("selectstart.drag",ng,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function OB(t,n){var e=t.document.documentElement,i=Qt(t).on("dragstart.drag",null);n&&(i.on("click.drag",ng,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function ig(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function sT(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function ba(){}var Vc=1/.7,co="\\s*([+-]?\\d+)\\s*",Ca="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ji="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RB=/^#([0-9a-f]{3,8})$/,BB=new RegExp("^rgb\\("+[co,co,co]+"\\)$"),HB=new RegExp("^rgb\\("+[Ji,Ji,Ji]+"\\)$"),VB=new RegExp("^rgba\\("+[co,co,co,Ca]+"\\)$"),$B=new RegExp("^rgba\\("+[Ji,Ji,Ji,Ca]+"\\)$"),zB=new RegExp("^hsl\\("+[Ca,Ji,Ji]+"\\)$"),jB=new RegExp("^hsla\\("+[Ca,Ji,Ji,Ca]+"\\)$"),rT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function oT(){return this.rgb().formatHex()}function aT(){return this.rgb().formatRgb()}function rr(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=RB.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?lT(n):3===e?new ni(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?$c(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?$c(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=BB.exec(t))?new ni(n[1],n[2],n[3],1):(n=HB.exec(t))?new ni(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=VB.exec(t))?$c(n[1],n[2],n[3],n[4]):(n=$B.exec(t))?$c(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=zB.exec(t))?hT(n[1],n[2]/100,n[3]/100,1):(n=jB.exec(t))?hT(n[1],n[2]/100,n[3]/100,n[4]):rT.hasOwnProperty(t)?lT(rT[t]):"transparent"===t?new ni(NaN,NaN,NaN,0):null}function lT(t){return new ni(t>>16&255,t>>8&255,255&t,1)}function $c(t,n,e,i){return i<=0&&(t=n=e=NaN),new ni(t,n,e,i)}function WB(t){return t instanceof ba||(t=rr(t)),t?new ni((t=t.rgb()).r,t.g,t.b,t.opacity):new ni}function wa(t,n,e,i){return 1===arguments.length?WB(t):new ni(t,n,e,null==i?1:i)}function ni(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function cT(){return"#"+sg(this.r)+sg(this.g)+sg(this.b)}function uT(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function sg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function hT(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new es(t,n,e,i)}function dT(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof ba||(t=rr(t)),!t)return new es;if(t instanceof es)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new es(o,a,l,t.opacity)}function es(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function rg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function fT(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function og(t){return function(){return t}}function pT(t,n){var e=n-t;return e?function gT(t,n){return function(e){return t+e*n}}(t,e):og(isNaN(t)?n:t)}ig(ba,rr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:oT,formatHex:oT,formatHsl:function GB(){return dT(this).formatHsl()},formatRgb:aT,toString:aT}),ig(ni,wa,sT(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new ni(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ni(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cT,formatHex:cT,formatRgb:uT,toString:uT})),ig(es,function YB(t,n,e,i){return 1===arguments.length?dT(t):new es(t,n,e,null==i?1:i)},sT(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new es(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new ni(rg(t>=240?t-240:t+120,s,i),rg(t,s,i),rg(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const zc=function t(n){var e=function QB(t){return 1==(t=+t)?pT:function(n,e){return e-n?function qB(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):og(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=wa(s)).r,(r=wa(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=pT(s.opacity,r.opacity);return function(u){return s.r=o(u),s.g=a(u),s.b=l(u),s.opacity=c(u),s+""}}return i.gamma=t,i}(1);function mT(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=wa(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function _T(t,n){var o,e=n?n.length:0,i=t?Math.min(e,t.length):0,s=new Array(i),r=new Array(e);for(o=0;o<i;++o)s[o]=or(t[o],n[o]);for(;o<e;++o)r[o]=n[o];return function(a){for(o=0;o<i;++o)r[o]=s[o](a);return r}}function ZB(t,n){var e=new Date;return t=+t,n=+n,function(i){return e.setTime(t*(1-i)+n*i),e}}function Oi(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function KB(t,n){var s,e={},i={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)s in t?e[s]=or(t[s],n[s]):i[s]=n[s];return function(r){for(s in e)i[s]=e[s](r);return i}}mT(function UB(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return fT((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),mT(function XB(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return fT((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var ag=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lg=new RegExp(ag.source,"g");function yT(t,n){var i,s,r,e=ag.lastIndex=lg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=ag.exec(t))&&(s=lg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:Oi(i,s)})),e=lg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function e3(t){return function(n){return t(n)+""}}(l[0].x):function JB(t){return function(){return t}}(n):(n=l.length,function(c){for(var h,u=0;u<n;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function t3(t,n){n||(n=[]);var s,e=t?Math.min(n.length,t.length):0,i=n.slice();return function(r){for(s=0;s<e;++s)i[s]=t[s]*(1-r)+n[s]*r;return i}}function or(t,n){var i,e=typeof n;return null==n||"boolean"===e?og(n):("number"===e?Oi:"string"===e?(i=rr(n))?(n=i,zc):yT:n instanceof rr?zc:n instanceof Date?ZB:function n3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?t3:Array.isArray(n)?_T:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?KB:Oi)(t,n)}function vT(){for(var n,t=He;n=t.sourceEvent;)t=n;return t}function xT(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function s3(t){var n=vT();return n.changedTouches&&(n=n.changedTouches[0]),xT(t,n)}var jc,Sa,uo=0,Da=0,Aa=0,Gc=0,ar=0,Wc=0,Ea="object"==typeof performance&&performance.now?performance:Date,TT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Yc(){return ar||(TT(r3),ar=Ea.now()+Wc)}function r3(){ar=0}function Uc(){this._call=this._time=this._next=null}function CT(t,n,e){var i=new Uc;return i.restart(t,n,e),i}function wT(){ar=(Gc=Ea.now())+Wc,uo=Da=0;try{!function o3(){Yc(),++uo;for(var n,t=jc;t;)(n=ar-t._time)>=0&&t._call.call(null,n),t=t._next;--uo}()}finally{uo=0,function l3(){for(var t,e,n=jc,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:jc=e);Sa=t,cg(i)}(),ar=0}}function a3(){var t=Ea.now(),n=t-Gc;n>1e3&&(Wc-=n,Gc=t)}function cg(t){uo||(Da&&(Da=clearTimeout(Da)),t-ar>24?(t<1/0&&(Da=setTimeout(wT,t-Ea.now()-Wc)),Aa&&(Aa=clearInterval(Aa))):(Aa||(Gc=Ea.now(),Aa=setInterval(a3,1e3)),uo=1,TT(wT)))}function DT(t,n,e){var i=new Uc;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Uc.prototype=CT.prototype={constructor:Uc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Yc():+e)+(null==n?0:+n),!this._next&&Sa!==this&&(Sa?Sa._next=this:jc=this,Sa=this),this._call=t,this._time=e,cg()},stop:function(){this._call&&(this._call=null,this._time=1/0,cg())}};var c3=iT("start","end","cancel","interrupt"),u3=[];function Qc(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function h3(t,n,e){var s,i=t.__transition;function o(c){var u,h,d,f;if(1!==e.state)return l();for(u in i)if((f=i[u]).name===e.name){if(3===f.state)return DT(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[u])}if(DT(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(d=e.tween.length),u=0,h=-1;u<d;++u)(f=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(s[++h]=f);s.length=h+1}}function a(c){for(var u=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),h=-1,d=s.length;++h<d;)s[h].call(t,u);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=CT(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:c3,tween:u3,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function dg(t,n){var e=Ri(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function fs(t,n){var e=Ri(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ri(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function fg(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}var ka,pg,LT,Zc,kT=180/Math.PI,gg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function MT(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*kT,skewX:Math.atan(l)*kT,scaleX:o,scaleY:a}}function FT(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,u){var h=[],d=[];return c=t(c),u=t(u),function r(c,u,h,d,f,g){if(c!==h||u!==d){var v=f.push("translate(",null,n,null,e);g.push({i:v-4,x:Oi(c,h)},{i:v-2,x:Oi(u,d)})}else(h||d)&&f.push("translate("+h+n+d+e)}(c.translateX,c.translateY,u.translateX,u.translateY,h,d),function o(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(s(h)+"rotate(",null,i)-2,x:Oi(c,u)})):u&&h.push(s(h)+"rotate("+u+i)}(c.rotate,u.rotate,h,d),function a(c,u,h,d){c!==u?d.push({i:h.push(s(h)+"skewX(",null,i)-2,x:Oi(c,u)}):u&&h.push(s(h)+"skewX("+u+i)}(c.skewX,u.skewX,h,d),function l(c,u,h,d,f,g){if(c!==h||u!==d){var v=f.push(s(f)+"scale(",null,",",null,")");g.push({i:v-4,x:Oi(c,h)},{i:v-2,x:Oi(u,d)})}else(1!==h||1!==d)&&f.push(s(f)+"scale("+h+","+d+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var m,g=-1,v=d.length;++g<v;)h[(m=d[g]).i]=m.x(f);return h.join("")}}}var p3=FT(function f3(t){return"none"===t?gg:(ka||(ka=document.createElement("DIV"),pg=document.documentElement,LT=document.defaultView),ka.style.transform=t,t=LT.getComputedStyle(pg.appendChild(ka),null).getPropertyValue("transform"),pg.removeChild(ka),MT(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),m3=FT(function g3(t){return null!=t&&(Zc||(Zc=document.createElementNS("http://www.w3.org/2000/svg","g")),Zc.setAttribute("transform",t),t=Zc.transform.baseVal.consolidate())?MT((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):gg},", ",")",")");function _3(t,n){var e,i;return function(){var s=fs(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function y3(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=fs(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function mg(t,n,e){var i=t._id;return t.each(function(){var s=fs(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return Ri(s,i).value[n]}}function IT(t,n){var e;return("number"==typeof n?Oi:n instanceof rr?zc:(e=rr(n))?(n=e,zc):yT)(t,n)}function x3(t){return function(){this.removeAttribute(t)}}function b3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function C3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function w3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function D3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function S3(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function E3(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function k3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&E3(t,r)),e}return s._value=n,s}function M3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&S3(t,r)),e}return s._value=n,s}function F3(t,n){return function(){dg(this,t).delay=+n.apply(this,arguments)}}function I3(t,n){return n=+n,function(){dg(this,t).delay=n}}function N3(t,n){return function(){fs(this,t).duration=+n.apply(this,arguments)}}function O3(t,n){return n=+n,function(){fs(this,t).duration=n}}function B3(t,n){if("function"!=typeof n)throw new Error;return function(){fs(this,t).ease=n}}function j3(t,n,e){var i,s,r=function z3(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?dg:fs;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var q3=xa.prototype.constructor;function PT(t){return function(){this.style.removeProperty(t)}}function nH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function iH(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&nH(t,o,e)),i}return r._value=n,r}function lH(t){return function(n){this.textContent=t.call(this,n)}}function cH(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&lH(s)),n}return i._value=t,i}var fH=0;function gs(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function NT(){return++fH}var ho=xa.prototype;gs.prototype=function gH(t){return xa().transition(t)}.prototype={constructor:gs,select:function U3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Jf(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var u,h,a=i[o],l=a.length,c=r[o]=new Array(l),d=0;d<l;++d)(u=a[d])&&(h=t.call(u,u.__data__,d,a))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,Qc(c[d],n,e,d,c,Ri(u,e)));return new gs(r,this._parents,n,e)},selectAll:function X3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Hb(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var u,l=i[a],c=l.length,h=0;h<c;++h)if(u=l[h]){for(var f,d=t.call(u,u.__data__,h,l),g=Ri(u,e),v=0,m=d.length;v<m;++v)(f=d[v])&&Qc(f,n,e,v,d,g);r.push(d),o.push(u)}return new gs(r,o,n,e)},filter:function V3(t){"function"!=typeof t&&(t=Vb(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new gs(i,this._parents,this._name,this._id)},merge:function $3(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new gs(o,this._parents,this._name,this._id)},selection:function Q3(){return new q3(this._groups,this._parents)},transition:function hH(){for(var t=this._name,n=this._id,e=NT(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var u=Ri(l,n);Qc(l,t,e,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new gs(i,this._parents,t,e)},call:ho.call,nodes:ho.nodes,node:ho.node,size:ho.size,empty:ho.empty,each:ho.each,on:function G3(t,n){var e=this._id;return arguments.length<2?Ri(this.node(),e).on.on(t):this.each(j3(e,t,n))},attr:function A3(t,n){var e=Bc(t),i="transform"===e?m3:IT;return this.attrTween(t,"function"==typeof n?(e.local?D3:w3)(e,i,mg(this,"attr."+t,n)):null==n?(e.local?b3:x3)(e):(e.local?C3:T3)(e,i,n))},attrTween:function L3(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=Bc(t);return this.tween(e,(i.local?k3:M3)(i,n))},style:function tH(t,n,e){var i="transform"==(t+="")?p3:IT;return null==n?this.styleTween(t,function Z3(t,n){var e,i,s;return function(){var r=lo(this,t),o=(this.style.removeProperty(t),lo(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,PT(t)):"function"==typeof n?this.styleTween(t,function J3(t,n,e){var i,s,r;return function(){var o=lo(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=lo(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,mg(this,"style."+t,n))).each(function eH(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=fs(this,t),c=l.on,u=null==l.value[r]?a||(a=PT(n)):void 0;(c!==e||s!==u)&&(i=(e=c).copy()).on(o,s=u),l.on=i}}(this._id,t)):this.styleTween(t,function K3(t,n,e){var i,r,s=e+"";return function(){var o=lo(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function sH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,iH(t,n,null==e?"":e))},text:function aH(t){return this.tween("text","function"==typeof t?function oH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(mg(this,"text",t)):function rH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function uH(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,cH(t))},remove:function Y3(){return this.on("end.remove",function W3(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function v3(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=Ri(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?_3:y3)(e,t,n))},delay:function P3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?F3:I3)(n,t)):Ri(this.node(),n).delay},duration:function R3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?N3:O3)(n,t)):Ri(this.node(),n).duration},ease:function H3(t){var n=this._id;return arguments.length?this.each(B3(n,t)):Ri(this.node(),n).ease},end:function dH(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=fs(this,i),u=c.on;u!==t&&((n=(t=u).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var _g={time:null,delay:0,duration:250,ease:function pH(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function mH(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return _g.time=Yc(),_g;return e}function yg(t){return function(){return t}}function vH(t,n,e){this.target=t,this.type=n,this.selection=e}function OT(){He.stopImmediatePropagation()}function vg(){He.preventDefault(),He.stopImmediatePropagation()}xa.prototype.interrupt=function d3(t){return this.each(function(){fg(this,t)})},xa.prototype.transition=function _H(t){var n,e;t instanceof gs?(n=t._id,t=t._name):(n=NT(),(e=_g).time=Yc(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&Qc(l,t,n,c,o,e||mH(l,n));return new gs(i,this._parents,t,n)};var RT={name:"drag"},xg={name:"space"},fo={name:"handle"},go={name:"center"};function BT(t){return[+t[0],+t[1]]}function bg(t){return[BT(t[0]),BT(t[1])]}function xH(t){return function(n){return function i3(t,n,e){arguments.length<3&&(e=n,n=vT().changedTouches);for(var r,i=0,s=n?n.length:0;i<s;++i)if((r=n[i]).identifier===e)return xT(t,r);return null}(n,He.touches,t)}}var Kc={name:"x",handles:["w","e"].map(Ma),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Jc={name:"y",handles:["n","s"].map(Ma),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ps=(["n","w","e","s","nw","ne","sw","se"].map(Ma),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),HT={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},VT={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},TH={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},CH={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ma(t){return{type:t}}function wH(){return!He.ctrlKey&&!He.button}function DH(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function AH(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function SH(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function wg(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Dg(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function kH(t){return(n,e)=>wg(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const u=i(o,a,l,c-1);return u>l&&n(o[u-1],a)>-n(o[u],a)?u-1:u},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)>0?c=u:l=u+1}return l}}}var Ag=Math.sqrt(50),Sg=Math.sqrt(10),Eg=Math.sqrt(2);function $T(t,n,e){var i=(n-t)/Math.max(0,e),s=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,s);return s>=0?(r>=Ag?10:r>=Sg?5:r>=Eg?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Ag?10:r>=Sg?5:r>=Eg?2:1)}function kg(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=Ag?s*=10:r>=Sg?s*=5:r>=Eg&&(s*=2),n<t?-s:s}const ms=1e3,xi=6e4,_s=60*xi,lr=24*_s,Mg=7*lr,zT=30*lr,Lg=365*lr;var Fg=new Date,Ig=new Date;function Zt(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return Zt(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Fg.setTime(+r),Ig.setTime(+o),t(Fg),t(Ig),Math.floor(e(Fg,Ig))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var eu=Zt(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});eu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zt(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):eu:null};const LH=eu;var jT=Zt(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*ms)},function(t,n){return(n-t)/ms},function(t){return t.getUTCSeconds()});const La=jT;var GT=Zt(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ms)},function(t,n){t.setTime(+t+n*xi)},function(t,n){return(n-t)/xi},function(t){return t.getMinutes()});const WT=GT;var YT=Zt(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ms-t.getMinutes()*xi)},function(t,n){t.setTime(+t+n*_s)},function(t,n){return(n-t)/_s},function(t){return t.getHours()});const UT=YT;var XT=Zt(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xi)/lr,t=>t.getDate()-1);const qT=XT;function cr(t){return Zt(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*xi)/Mg})}var Pg=cr(0),QT=(cr(1),cr(2),cr(3),cr(4),cr(5),cr(6),Zt(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const ZT=QT;var Ng=Zt(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ng.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zt(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const KT=Ng;var JT=Zt(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*xi)},function(t,n){return(n-t)/xi},function(t){return t.getUTCMinutes()});const BH=JT;var eC=Zt(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*_s)},function(t,n){return(n-t)/_s},function(t){return t.getUTCHours()});const HH=eC;var tC=Zt(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/lr},function(t){return t.getUTCDate()-1});const VH=tC;function ur(t){return Zt(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/Mg})}var nC=ur(0),iC=(ur(1),ur(2),ur(3),ur(4),ur(5),ur(6),Zt(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const UH=iC;var Og=Zt(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Og.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zt(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const XH=Og;function sC(t,n,e,i,s,r){const o=[[La,1,ms],[La,5,5e3],[La,15,15e3],[La,30,3e4],[r,1,xi],[r,5,5*xi],[r,15,15*xi],[r,30,30*xi],[s,1,_s],[s,3,3*_s],[s,6,6*_s],[s,12,12*_s],[i,1,lr],[i,2,2*lr],[e,1,Mg],[n,1,zT],[n,3,3*zT],[t,1,Lg]];function l(c,u,h){const d=Math.abs(u-c)/h,f=Dg(([,,m])=>m).right(o,d);if(f===o.length)return t.every(kg(c/Lg,u/Lg,h));if(0===f)return LH.every(Math.max(kg(c,u,h),1));const[g,v]=o[d/o[f-1][2]<o[f][2]/d?f-1:f];return g.every(v)}return[function a(c,u,h){const d=u<c;d&&([c,u]=[u,c]);const f=h&&"function"==typeof h.range?h:l(c,u,h),g=f?f.range(c,+u+1):[];return d?g.reverse():g},l]}const[k7,M7]=sC(XH,UH,nC,VH,HH,BH),[qH,QH]=sC(KT,ZT,Pg,qT,UT,WT);var Rg=new Date,Bg=new Date;function ys(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return ys(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Rg.setTime(+r),Bg.setTime(+o),t(Rg),t(Bg),Math.floor(e(Rg,Bg))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var aC=6048e5;function hr(t){return ys(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/aC})}var lC=hr(0),tu=hr(1),po=(hr(2),hr(3),hr(4)),cC=(hr(5),hr(6),ys(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const uC=cC;function dr(t){return ys(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/aC})}var hC=dr(0),nu=dr(1),mo=(dr(2),dr(3),dr(4)),dC=(dr(5),dr(6),ys(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const fC=dC;var Hg=ys(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Hg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Fa=Hg;var Vg=ys(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Vg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Ia=Vg;function $g(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function zg(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pa(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var _o,EC,gC={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,oV=/^%/,aV=/[\\^$*+?|[\]().{}]/g;function $e(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function lV(t){return t.replace(aV,"\\$&")}function Na(t){return new RegExp("^(?:"+t.map(lV).join("|")+")","i")}function Oa(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function cV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function uV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function hV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function dV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function fV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function pC(t,n,e){var i=Kt.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function mC(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function gV(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function pV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function mV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function _C(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function _V(t,n,e){var i=Kt.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function yC(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function yV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function vV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function xV(t,n,e){var i=Kt.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function bV(t,n,e){var i=Kt.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function TV(t,n,e){var i=oV.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function CV(t,n,e){var i=Kt.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function wV(t,n,e){var i=Kt.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function vC(t,n){return $e(t.getDate(),n,2)}function DV(t,n){return $e(t.getHours(),n,2)}function AV(t,n){return $e(t.getHours()%12||12,n,2)}function SV(t,n){return $e(1+fC.count(Fa(t),t),n,3)}function xC(t,n){return $e(t.getMilliseconds(),n,3)}function EV(t,n){return xC(t,n)+"000"}function kV(t,n){return $e(t.getMonth()+1,n,2)}function MV(t,n){return $e(t.getMinutes(),n,2)}function LV(t,n){return $e(t.getSeconds(),n,2)}function FV(t){var n=t.getDay();return 0===n?7:n}function IV(t,n){return $e(hC.count(Fa(t)-1,t),n,2)}function bC(t){var n=t.getDay();return n>=4||0===n?mo(t):mo.ceil(t)}function PV(t,n){return t=bC(t),$e(mo.count(Fa(t),t)+(4===Fa(t).getDay()),n,2)}function NV(t){return t.getDay()}function OV(t,n){return $e(nu.count(Fa(t)-1,t),n,2)}function RV(t,n){return $e(t.getFullYear()%100,n,2)}function BV(t,n){return $e((t=bC(t)).getFullYear()%100,n,2)}function HV(t,n){return $e(t.getFullYear()%1e4,n,4)}function VV(t,n){var e=t.getDay();return $e((t=e>=4||0===e?mo(t):mo.ceil(t)).getFullYear()%1e4,n,4)}function $V(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+$e(n/60|0,"0",2)+$e(n%60,"0",2)}function TC(t,n){return $e(t.getUTCDate(),n,2)}function zV(t,n){return $e(t.getUTCHours(),n,2)}function jV(t,n){return $e(t.getUTCHours()%12||12,n,2)}function GV(t,n){return $e(1+uC.count(Ia(t),t),n,3)}function CC(t,n){return $e(t.getUTCMilliseconds(),n,3)}function WV(t,n){return CC(t,n)+"000"}function YV(t,n){return $e(t.getUTCMonth()+1,n,2)}function UV(t,n){return $e(t.getUTCMinutes(),n,2)}function XV(t,n){return $e(t.getUTCSeconds(),n,2)}function qV(t){var n=t.getUTCDay();return 0===n?7:n}function QV(t,n){return $e(lC.count(Ia(t)-1,t),n,2)}function wC(t){var n=t.getUTCDay();return n>=4||0===n?po(t):po.ceil(t)}function ZV(t,n){return t=wC(t),$e(po.count(Ia(t),t)+(4===Ia(t).getUTCDay()),n,2)}function KV(t){return t.getUTCDay()}function JV(t,n){return $e(tu.count(Ia(t)-1,t),n,2)}function e$(t,n){return $e(t.getUTCFullYear()%100,n,2)}function t$(t,n){return $e((t=wC(t)).getUTCFullYear()%100,n,2)}function n$(t,n){return $e(t.getUTCFullYear()%1e4,n,4)}function i$(t,n){var e=t.getUTCDay();return $e((t=e>=4||0===e?po(t):po.ceil(t)).getUTCFullYear()%1e4,n,4)}function s$(){return"+0000"}function DC(){return"%"}function AC(t){return+t}function SC(t){return Math.floor(+t/1e3)}function kC(t){return null===t?NaN:+t}!function l$(t){_o=function rV(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Na(s),u=Oa(s),h=Na(r),d=Oa(r),f=Na(o),g=Oa(o),v=Na(a),m=Oa(a),C=Na(l),b=Oa(l),D={a:function G(H){return o[H.getDay()]},A:function $(H){return r[H.getDay()]},b:function Z(H){return l[H.getMonth()]},B:function ce(H){return a[H.getMonth()]},c:null,d:vC,e:vC,f:EV,g:BV,G:VV,H:DV,I:AV,j:SV,L:xC,m:kV,M:MV,p:function Ee(H){return s[+(H.getHours()>=12)]},q:function yt(H){return 1+~~(H.getMonth()/3)},Q:AC,s:SC,S:LV,u:FV,U:IV,V:PV,w:NV,W:OV,x:null,X:null,y:RV,Y:HV,Z:$V,"%":DC},M={a:function zt(H){return o[H.getUTCDay()]},A:function Te(H){return r[H.getUTCDay()]},b:function ri(H){return l[H.getUTCMonth()]},B:function ns(H){return a[H.getUTCMonth()]},c:null,d:TC,e:TC,f:WV,g:t$,G:i$,H:zV,I:jV,j:GV,L:CC,m:YV,M:UV,p:function et(H){return s[+(H.getUTCHours()>=12)]},q:function jt(H){return 1+~~(H.getUTCMonth()/3)},Q:AC,s:SC,S:XV,u:qV,U:QV,V:ZV,w:KV,W:JV,x:null,X:null,y:e$,Y:n$,Z:s$,"%":DC},N={a:function oe(H,ne,ye){var O=f.exec(ne.slice(ye));return O?(H.w=g[O[0].toLowerCase()],ye+O[0].length):-1},A:function J(H,ne,ye){var O=h.exec(ne.slice(ye));return O?(H.w=d[O[0].toLowerCase()],ye+O[0].length):-1},b:function B(H,ne,ye){var O=C.exec(ne.slice(ye));return O?(H.m=b[O[0].toLowerCase()],ye+O[0].length):-1},B:function W(H,ne,ye){var O=v.exec(ne.slice(ye));return O?(H.m=m[O[0].toLowerCase()],ye+O[0].length):-1},c:function Ge(H,ne,ye){return be(H,n,ne,ye)},d:_C,e:_C,f:bV,g:mC,G:pC,H:yC,I:yC,j:_V,L:xV,m:mV,M:yV,p:function ee(H,ne,ye){var O=c.exec(ne.slice(ye));return O?(H.p=u[O[0].toLowerCase()],ye+O[0].length):-1},q:pV,Q:CV,s:wV,S:vV,u:uV,U:hV,V:dV,w:cV,W:fV,x:function Se(H,ne,ye){return be(H,e,ne,ye)},X:function P(H,ne,ye){return be(H,i,ne,ye)},y:mC,Y:pC,Z:gV,"%":TV};function I(H,ne){return function(ye){var kn,xs,Mn,O=[],an=-1,Ve=0,pn=H.length;for(ye instanceof Date||(ye=new Date(+ye));++an<pn;)37===H.charCodeAt(an)&&(O.push(H.slice(Ve,an)),null!=(xs=gC[kn=H.charAt(++an)])?kn=H.charAt(++an):xs="e"===kn?" ":"0",(Mn=ne[kn])&&(kn=Mn(ye,xs)),O.push(kn),Ve=an+1);return O.push(H.slice(Ve,an)),O.join("")}}function X(H,ne){return function(ye){var Ve,pn,O=Pa(1900,void 0,1);if(be(O,H,ye+="",0)!=ye.length)return null;if("Q"in O)return new Date(O.Q);if("s"in O)return new Date(1e3*O.s+("L"in O?O.L:0));if(ne&&!("Z"in O)&&(O.Z=0),"p"in O&&(O.H=O.H%12+12*O.p),void 0===O.m&&(O.m="q"in O?O.q:0),"V"in O){if(O.V<1||O.V>53)return null;"w"in O||(O.w=1),"Z"in O?(pn=(Ve=zg(Pa(O.y,0,1))).getUTCDay(),Ve=pn>4||0===pn?tu.ceil(Ve):tu(Ve),Ve=uC.offset(Ve,7*(O.V-1)),O.y=Ve.getUTCFullYear(),O.m=Ve.getUTCMonth(),O.d=Ve.getUTCDate()+(O.w+6)%7):(pn=(Ve=$g(Pa(O.y,0,1))).getDay(),Ve=pn>4||0===pn?nu.ceil(Ve):nu(Ve),Ve=fC.offset(Ve,7*(O.V-1)),O.y=Ve.getFullYear(),O.m=Ve.getMonth(),O.d=Ve.getDate()+(O.w+6)%7)}else("W"in O||"U"in O)&&("w"in O||(O.w="u"in O?O.u%7:"W"in O?1:0),pn="Z"in O?zg(Pa(O.y,0,1)).getUTCDay():$g(Pa(O.y,0,1)).getDay(),O.m=0,O.d="W"in O?(O.w+6)%7+7*O.W-(pn+5)%7:O.w+7*O.U-(pn+6)%7);return"Z"in O?(O.H+=O.Z/100|0,O.M+=O.Z%100,zg(O)):$g(O)}}function be(H,ne,ye,O){for(var kn,xs,an=0,Ve=ne.length,pn=ye.length;an<Ve;){if(O>=pn)return-1;if(37===(kn=ne.charCodeAt(an++))){if(kn=ne.charAt(an++),!(xs=N[kn in gC?ne.charAt(an++):kn])||(O=xs(H,ye,O))<0)return-1}else if(kn!=ye.charCodeAt(O++))return-1}return O}return D.x=I(e,D),D.X=I(i,D),D.c=I(n,D),M.x=I(e,M),M.X=I(i,M),M.c=I(n,M),{format:function(H){var ne=I(H+="",D);return ne.toString=function(){return H},ne},parse:function(H){var ne=X(H+="",!1);return ne.toString=function(){return H},ne},utcFormat:function(H){var ne=I(H+="",M);return ne.toString=function(){return H},ne},utcParse:function(H){var ne=X(H+="",!0);return ne.toString=function(){return H},ne}}}(t),EC=_o.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const c$=Dg(wg).right,LC=(Dg(kC),c$);function u$(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function d$(t){return+t}var FC=[0,1];function yo(t){return t}function jg(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function h$(t){return function(){return t}}(isNaN(n)?NaN:.5)}function g$(t,n,e){var i=t[0],s=t[1],r=n[0],o=n[1];return s<i?(i=jg(s,i),r=e(o,r)):(i=jg(i,s),r=e(r,o)),function(a){return r(i(a))}}function p$(t,n,e){var i=Math.min(t.length,n.length)-1,s=new Array(i),r=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<i;)s[o]=jg(t[o],t[o+1]),r[o]=e(n[o],n[o+1]);return function(a){var l=LC(t,a,1,i)-1;return r[l](s[l](a))}}function IC(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function PC(){return function m$(){var i,s,r,a,l,c,t=FC,n=FC,e=or,o=yo;function u(){var d=Math.min(t.length,n.length);return o!==yo&&(o=function f$(t,n){var e;return t>n&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[d-1])),a=d>2?p$:g$,l=c=null,h}function h(d){return null==d||isNaN(d=+d)?r:(l||(l=a(t.map(i),n,e)))(i(o(d)))}return h.invert=function(d){return o(s((c||(c=a(n,t.map(i),Oi)))(d)))},h.domain=function(d){return arguments.length?(t=Array.from(d,d$),u()):t.slice()},h.range=function(d){return arguments.length?(n=Array.from(d),u()):n.slice()},h.rangeRound=function(d){return n=Array.from(d),e=u$,u()},h.clamp=function(d){return arguments.length?(o=!!d||yo,u()):o!==yo},h.interpolate=function(d){return arguments.length?(e=d,u()):e},h.unknown=function(d){return arguments.length?(r=d,h):r},function(d,f){return i=d,s=f,u()}}()(yo,yo)}function Ra(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function y$(t){return new Date(t)}function v$(t){return t instanceof Date?+t:+new Date(+t)}function NC(t,n,e,i,s,r,o,a,l,c){var u=PC(),h=u.invert,d=u.domain,f=c(".%L"),g=c(":%S"),v=c("%I:%M"),m=c("%I %p"),C=c("%a %d"),b=c("%b %d"),D=c("%B"),M=c("%Y");function N(I){return(l(I)<I?f:a(I)<I?g:o(I)<I?v:r(I)<I?m:i(I)<I?s(I)<I?C:b:e(I)<I?D:M)(I)}return u.invert=function(I){return new Date(h(I))},u.domain=function(I){return arguments.length?d(Array.from(I,v$)):d().map(y$)},u.ticks=function(I){var X=d();return t(X[0],X[X.length-1],null==I?10:I)},u.tickFormat=function(I,X){return null==X?N:c(X)},u.nice=function(I){var X=d();return(!I||"function"!=typeof I.range)&&(I=n(X[0],X[X.length-1],null==I?10:I)),I?d(function _$(t,n){var o,e=0,i=(t=t.slice()).length-1,s=t[e],r=t[i];return r<s&&(o=e,e=i,i=o,o=s,s=r,r=o),t[e]=n.floor(s),t[i]=n.ceil(r),t}(X,I)):u},u.copy=function(){return IC(u,NC(t,n,e,i,s,r,o,a,l,c))},u}function fr(){return Ra.apply(NC(qH,QH,KT,ZT,Pg,qT,UT,WT,La,EC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var OC,x$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iu(t){if(!(n=x$.exec(t)))throw new Error("invalid format: "+t);var n;return new Gg({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Gg(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function su(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function vo(t){return(t=su(Math.abs(t)))?t[1]:NaN}function RC(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}iu.prototype=Gg.prototype,Gg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const BC={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function b$(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return RC(100*t,n)},r:RC,s:function A$(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(OC=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+su(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HC(t){return t}var ru,Wg,zC,VC=Array.prototype.map,$C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function F$(t){var n=t.domain;return t.ticks=function(e){var i=n();return function MH(t,n,e){var i,r,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n<t)&&(r=t,t=n,n=r),0===(a=$T(t,n,e))||!isFinite(a))return[];if(a>0){let l=Math.round(t/a),c=Math.round(n/a);for(l*a<t&&++l,c*a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)*a}else{a=-a;let l=Math.round(t*a),c=Math.round(n*a);for(l/a<t&&++l,c/a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)/a}return i&&o.reverse(),o}(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){var s=n();return function L$(t,n,e,i){var r,s=kg(t,n,e);switch((i=iu(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null==i.precision&&!isNaN(r=function T$(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vo(n)/3)))-vo(Math.abs(t)))}(s,o))&&(i.precision=r),zC(i,o);case"":case"e":case"g":case"p":case"r":null==i.precision&&!isNaN(r=function k$(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,vo(n)-vo(t))+1}(s,Math.max(Math.abs(t),Math.abs(n))))&&(i.precision=r-("e"===i.type));break;case"f":case"%":null==i.precision&&!isNaN(r=function M$(t){return Math.max(0,-vo(Math.abs(t)))}(s))&&(i.precision=r-2*("%"===i.type))}return Wg(i)}(s[0],s[s.length-1],null==e?10:e,i)},t.nice=function(e){null==e&&(e=10);var l,c,i=n(),s=0,r=i.length-1,o=i[s],a=i[r],u=10;for(a<o&&(c=o,o=a,a=c,c=s,s=r,r=c);u-- >0;){if((c=$T(o,a,e))===l)return i[s]=o,i[r]=a,n(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Je(){var t=PC();return t.copy=function(){return IC(t,Je())},Ra.apply(t,arguments),F$(t)}function jC(t,n,e){t=+t,n=+n,e=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+e;for(var i=-1,s=0|Math.max(0,Math.ceil((n-t)/e)),r=new Array(s);++i<s;)r[i]=t+i*e;return r}!function E$(t){ru=function S$(t){var n=void 0===t.grouping||void 0===t.thousands?HC:function C$(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(VC.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?HC:function w$(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(VC.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(h){var d=(h=iu(h)).fill,f=h.align,g=h.sign,v=h.symbol,m=h.zero,C=h.width,b=h.comma,D=h.precision,M=h.trim,N=h.type;"n"===N?(b=!0,N="g"):BC[N]||(void 0===D&&(D=12),M=!0,N="g"),(m||"0"===d&&"="===f)&&(m=!0,d="0",f="=");var I="$"===v?e:"#"===v&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",X="$"===v?i:/[%p]/.test(N)?o:"",be=BC[N],ee=/[defgprs%]/.test(N);function oe(J){var Ge,Se,P,B=I,W=X;if("c"===N)W=be(J)+W,J="";else{var G=(J=+J)<0||1/J<0;if(J=isNaN(J)?l:be(Math.abs(J),D),M&&(J=function D$(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(J)),G&&0==+J&&"+"!==g&&(G=!1),B=(G?"("===g?g:a:"-"===g||"("===g?"":g)+B,W=("s"===N?$C[8+OC/3]:"")+W+(G&&"("===g?")":""),ee)for(Ge=-1,Se=J.length;++Ge<Se;)if(48>(P=J.charCodeAt(Ge))||P>57){W=(46===P?s+J.slice(Ge+1):J.slice(Ge))+W,J=J.slice(0,Ge);break}}b&&!m&&(J=n(J,1/0));var $=B.length+J.length+W.length,Z=$<C?new Array(C-$+1).join(d):"";switch(b&&m&&(J=n(Z+J,Z.length?C-W.length:1/0),Z=""),f){case"<":J=B+J+W+Z;break;case"=":J=B+Z+J+W;break;case"^":J=Z.slice(0,$=Z.length>>1)+B+J+W+Z.slice($);break;default:J=Z+B+J+W}return r(J)}return D=void 0===D?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),oe.toString=function(){return h+""},oe}return{format:c,formatPrefix:function u(h,d){var f=c(((h=iu(h)).type="f",h)),g=3*Math.max(-8,Math.min(8,Math.floor(vo(d)/3))),v=Math.pow(10,-g),m=$C[8+g/3];return function(C){return f(v*C)+m}}}}(t),Wg=ru.format,zC=ru.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const GC=Symbol("implicit");function Yg(){var t=new Map,n=[],e=[],i=GC;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==GC)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Yg(n,e).unknown(i)},Ra.apply(s,arguments),s}function rn(){var r,o,t=Yg().unknown(void 0),n=t.domain,e=t.range,i=0,s=1,a=!1,l=0,c=0,u=.5;function h(){var d=n().length,f=s<i,g=f?s:i,v=f?i:s;r=(v-g)/Math.max(1,d-l+2*c),a&&(r=Math.floor(r)),g+=(v-g-r*(d-l))*u,o=r*(1-l),a&&(g=Math.round(g),o=Math.round(o));var m=jC(d).map(function(C){return g+r*C});return e(f?m.reverse():m)}return delete t.unknown,t.domain=function(d){return arguments.length?(n(d),h()):n()},t.range=function(d){return arguments.length?([i,s]=d,i=+i,s=+s,h()):[i,s]},t.rangeRound=function(d){return[i,s]=d,i=+i,s=+s,a=!0,h()},t.bandwidth=function(){return o},t.step=function(){return r},t.round=function(d){return arguments.length?(a=!!d,h()):a},t.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),h()):l},t.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),h()):l},t.paddingOuter=function(d){return arguments.length?(c=+d,h()):c},t.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),h()):u},t.copy=function(){return rn(n(),[i,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Ra.apply(h(),arguments)}function WC(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return WC(n())},t}function gr(){return WC(rn.apply(null,arguments).paddingInner(1))}function I$(t,n,e=kC){if(i=t.length){if((n=+n)<=0||i<2)return+e(t[0],0,t);if(n>=1)return+e(t[i-1],i-1,t);var i,s=(i-1)*n,r=Math.floor(s),o=+e(t[r],r,t);return o+(+e(t[r+1],r+1,t)-o)*(s-r)}}function YC(){var i,t=[],n=[],e=[];function s(){var o=0,a=Math.max(1,n.length);for(e=new Array(a-1);++o<a;)e[o-1]=I$(t,o/a);return r}function r(o){return null==o||isNaN(o=+o)?i:n[LC(e,o)]}return r.invertExtent=function(o){var a=n.indexOf(o);return a<0?[NaN,NaN]:[a>0?e[a-1]:t[0],a<e.length?e[a]:t[t.length-1]]},r.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)null!=a&&!isNaN(a=+a)&&t.push(a);return t.sort(wg),s()},r.range=function(o){return arguments.length?(n=Array.from(o),s()):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.quantiles=function(){return e.slice()},r.copy=function(){return YC().domain(t).range(n).unknown(i)},Ra.apply(r,arguments)}function UC(t){this._context=t}function pr(t){return new UC(t)}UC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Ug=Math.PI,Xg=2*Ug,mr=1e-6,P$=Xg-mr;function qg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function XC(){return new qg}qg.prototype=XC.prototype={constructor:qg,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,u=o-n,h=c*c+u*u;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>mr)if(Math.abs(u*a-l*c)>mr&&s){var d=e-r,f=i-o,g=a*a+l*l,v=d*d+f*f,m=Math.sqrt(g),C=Math.sqrt(h),b=s*Math.tan((Ug-Math.acos((g+h-v)/(2*m*C)))/2),D=b/C,M=b/m;Math.abs(D-1)>mr&&(this._+="L"+(t+D*c)+","+(n+D*u)),this._+="A"+s+","+s+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+M*a)+","+(this._y1=n+M*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,u=1^r,h=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>mr||Math.abs(this._y1-c)>mr)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Xg+Xg),h>P$?this._+="A"+e+","+e+",0,1,"+u+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>mr&&(this._+="A"+e+","+e+",0,"+ +(h>=Ug)+","+u+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Qg=XC;function Xe(t){return function(){return t}}function qC(t){return t[0]}function QC(t){return t[1]}function ou(){var t=qC,n=QC,e=Xe(!0),i=null,s=pr,r=null;function o(a){var l,u,d,c=a.length,h=!1;for(null==i&&(r=s(d=Qg())),l=0;l<=c;++l)!(l<c&&e(u=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(u,l,a),+n(u,l,a));if(d)return r=null,d+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:Xe(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:Xe(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:Xe(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}function xo(){var t=qC,n=null,e=Xe(0),i=QC,s=Xe(!0),r=null,o=pr,a=null;function l(u){var h,d,f,v,C,g=u.length,m=!1,b=new Array(g),D=new Array(g);for(null==r&&(a=o(C=Qg())),h=0;h<=g;++h){if(!(h<g&&s(v=u[h],h,u))===m)if(m=!m)d=h,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),f=h-1;f>=d;--f)a.point(b[f],D[f]);a.lineEnd(),a.areaEnd()}m&&(b[h]=+t(v,h,u),D[h]=+e(v,h,u),a.point(n?+n(v,h,u):b[h],i?+i(v,h,u):D[h]))}if(C)return a=null,C+""||null}function c(){return ou().defined(s).curve(o).context(r)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:Xe(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:Xe(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:Xe(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:Xe(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:Xe(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:Xe(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(s="function"==typeof u?u:Xe(!!u),l):s},l.curve=function(u){return arguments.length?(o=u,null!=r&&(a=o(r)),l):o},l.context=function(u){return arguments.length?(null==u?r=a=null:a=o(r=u),l):r},l}function ZC(){}function Zg(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function KC(t,n){this._context=t,this._k=(1-n)/6}function JC(t,n){this._context=t,this._k=(1-n)/6}function ew(t){this._curve=t}KC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zg(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new KC(i,n)}return e.tension=function(i){return t(+i)},e}(0),JC.prototype={areaStart:ZC,areaEnd:ZC,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new JC(i,n)}return e.tension=function(i){return t(+i)},e}(0),function tw(t){function n(e){return new ew(t(e))}return n._curve=t,n}(pr),ew.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var nw=Math.abs,gn=Math.atan2,_r=Math.cos,H$=Math.max,Kg=Math.min,ts=Math.sin,bo=Math.sqrt,On=1e-12,Ba=Math.PI,au=Ba/2,lu=2*Ba;function V$(t){return t>1?0:t<-1?Ba:Math.acos(t)}function iw(t){return t>=1?au:t<=-1?-au:Math.asin(t)}function z$(t){return t.innerRadius}function j$(t){return t.outerRadius}function G$(t){return t.startAngle}function W$(t){return t.endAngle}function Y$(t){return t&&t.padAngle}function U$(t,n,e,i,s,r,o,a){var l=e-t,c=i-n,u=o-s,h=a-r,d=h*l-u*c;if(!(d*d<On))return[t+(d=(u*(n-r)-h*(t-s))/d)*l,n+d*c]}function cu(t,n,e,i,s,r,o){var a=t-e,l=n-i,c=(o?r:-r)/bo(a*a+l*l),u=c*l,h=-c*a,d=t+u,f=n+h,g=e+u,v=i+h,m=(d+g)/2,C=(f+v)/2,b=g-d,D=v-f,M=b*b+D*D,N=s-r,I=d*v-g*f,X=(D<0?-1:1)*bo(H$(0,N*N*M-I*I)),be=(I*D-b*X)/M,ee=(-I*b-D*X)/M,oe=(I*D+b*X)/M,J=(-I*b+D*X)/M,B=be-m,W=ee-C,Ge=oe-m,Se=J-C;return B*B+W*W>Ge*Ge+Se*Se&&(be=oe,ee=J),{cx:be,cy:ee,x01:-u,y01:-h,x11:be*(s/N-1),y11:ee*(s/N-1)}}function Jg(){var t=z$,n=j$,e=Xe(0),i=null,s=G$,r=W$,o=Y$,a=null;function l(){var c,u,h=+t.apply(this,arguments),d=+n.apply(this,arguments),f=s.apply(this,arguments)-au,g=r.apply(this,arguments)-au,v=nw(g-f),m=g>f;if(a||(a=c=Qg()),d<h&&(u=d,d=h,h=u),d>On)if(v>lu-On)a.moveTo(d*_r(f),d*ts(f)),a.arc(0,0,d,f,g,!m),h>On&&(a.moveTo(h*_r(g),h*ts(g)),a.arc(0,0,h,g,f,m));else{var B,W,C=f,b=g,D=f,M=g,N=v,I=v,X=o.apply(this,arguments)/2,be=X>On&&(i?+i.apply(this,arguments):bo(h*h+d*d)),ee=Kg(nw(d-h)/2,+e.apply(this,arguments)),oe=ee,J=ee;if(be>On){var Ge=iw(be/h*ts(X)),Se=iw(be/d*ts(X));(N-=2*Ge)>On?(D+=Ge*=m?1:-1,M-=Ge):(N=0,D=M=(f+g)/2),(I-=2*Se)>On?(C+=Se*=m?1:-1,b-=Se):(I=0,C=b=(f+g)/2)}var P=d*_r(C),G=d*ts(C),$=h*_r(M),Z=h*ts(M);if(ee>On){var Te,ce=d*_r(b),Ee=d*ts(b),yt=h*_r(D),zt=h*ts(D);if(v<Ba&&(Te=U$(P,G,yt,zt,ce,Ee,$,Z))){var ri=P-Te[0],ns=G-Te[1],et=ce-Te[0],jt=Ee-Te[1],H=1/ts(V$((ri*et+ns*jt)/(bo(ri*ri+ns*ns)*bo(et*et+jt*jt)))/2),ne=bo(Te[0]*Te[0]+Te[1]*Te[1]);oe=Kg(ee,(h-ne)/(H-1)),J=Kg(ee,(d-ne)/(H+1))}}I>On?J>On?(B=cu(yt,zt,P,G,d,J,m),W=cu(ce,Ee,$,Z,d,J,m),a.moveTo(B.cx+B.x01,B.cy+B.y01),J<ee?a.arc(B.cx,B.cy,J,gn(B.y01,B.x01),gn(W.y01,W.x01),!m):(a.arc(B.cx,B.cy,J,gn(B.y01,B.x01),gn(B.y11,B.x11),!m),a.arc(0,0,d,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),!m),a.arc(W.cx,W.cy,J,gn(W.y11,W.x11),gn(W.y01,W.x01),!m))):(a.moveTo(P,G),a.arc(0,0,d,C,b,!m)):a.moveTo(P,G),h>On&&N>On?oe>On?(B=cu($,Z,ce,Ee,h,-oe,m),W=cu(P,G,yt,zt,h,-oe,m),a.lineTo(B.cx+B.x01,B.cy+B.y01),oe<ee?a.arc(B.cx,B.cy,oe,gn(B.y01,B.x01),gn(W.y01,W.x01),!m):(a.arc(B.cx,B.cy,oe,gn(B.y01,B.x01),gn(B.y11,B.x11),!m),a.arc(0,0,h,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),m),a.arc(W.cx,W.cy,oe,gn(W.y11,W.x11),gn(W.y01,W.x01),!m))):a.arc(0,0,h,M,D,m):a.lineTo($,Z)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return l.centroid=function(){var c=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,u=(+s.apply(this,arguments)+ +r.apply(this,arguments))/2-Ba/2;return[_r(u)*c,ts(u)*c]},l.innerRadius=function(c){return arguments.length?(t="function"==typeof c?c:Xe(+c),l):t},l.outerRadius=function(c){return arguments.length?(n="function"==typeof c?c:Xe(+c),l):n},l.cornerRadius=function(c){return arguments.length?(e="function"==typeof c?c:Xe(+c),l):e},l.padRadius=function(c){return arguments.length?(i=null==c?null:"function"==typeof c?c:Xe(+c),l):i},l.startAngle=function(c){return arguments.length?(s="function"==typeof c?c:Xe(+c),l):s},l.endAngle=function(c){return arguments.length?(r="function"==typeof c?c:Xe(+c),l):r},l.padAngle=function(c){return arguments.length?(o="function"==typeof c?c:Xe(+c),l):o},l.context=function(c){return arguments.length?(a=null==c?null:c,l):a},l}function X$(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function q$(t){return t}function J$(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function e5(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}function r5(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function rw(t,n){var s,o,a,l,c,e=new $a(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=v5);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new $a(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(ow)}function v5(t){return t.children}function x5(t){t.data=t.data.data}function ow(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function $a(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(n){function e(i,s,r,o,a){!function n5(t,n,e,i,s,r){for(var l,c,f,g,m,C,b,D,M,N,I,o=[],a=n.children,u=0,h=0,d=a.length,v=n.value;u<d;){f=s-e,g=r-i;do{m=a[h++].value}while(!m&&h<d);for(C=b=m,I=m*m*(N=Math.max(g/f,f/g)/(v*t)),M=Math.max(b/I,I/C);h<d;++h){if(m+=c=a[h].value,c<C&&(C=c),c>b&&(b=c),I=m*m*N,(D=Math.max(b/I,I/C))>M){m-=c;break}M=D}o.push(l={value:m,dice:f<g,children:a.slice(u,h)}),l.dice?J$(l,e,i,s,v?i+=g*m/v:r):e5(l,e,i,v?e+=f*m/v:s,r),v-=m,u=h}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2),$a.prototype=rw.prototype={constructor:$a,count:function o5(){return this.eachAfter(r5)},each:function a5(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function c5(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function l5(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function u5(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function h5(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function d5(t){for(var n=this,e=function f5(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function g5(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function p5(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function m5(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function _5(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function y5(){return rw(this).eachBefore(x5)}};const D5=["caretElm"];function A5(t,n){}const S5=function(t){return{model:t}};function E5(t,n){if(1&t&&(x(0,"span"),A(1,A5,0,0,"ng-template",5),T()),2&t){const e=y();_(1),p("ngTemplateOutlet",e.template)("ngTemplateOutletContext",jl(2,S5,e.context))}}function k5(t,n){1&t&&V(0,"span",6),2&t&&p("innerHTML",y().title,wl)}function M5(t,n){if(1&t&&(w(),Ws(),V(0,"ngx-charts-scale-legend",4)),2&t){const e=y();p("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function L5(t,n){if(1&t){const e=z();w(),Ws(),x(0,"ngx-charts-legend",5),E("labelClick",function(s){return S(e),y().legendLabelClick.emit(s)})("labelActivate",function(s){return S(e),y().legendLabelActivate.emit(s)})("labelDeactivate",function(s){return S(e),y().legendLabelDeactivate.emit(s)}),T()}if(2&t){const e=y();p("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const cw=["*"],F5=["ngx-charts-axis-label",""],uw=["ticksel"],I5=["ngx-charts-x-axis-ticks",""];function P5(t,n){if(1&t&&(w(),x(0,"g",3)(1,"title"),Be(2),T(),x(3,"text",4),Be(4),T()()),2&t){const e=n.$implicit,i=y();L("transform",i.tickTransform(e)),_(2),Kn(i.tickFormat(e)),_(1),ke("font-size","12px"),L("text-anchor",i.textAnchor)("transform",i.textTransform),_(1),gt(" ",i.tickTrim(i.tickFormat(e))," ")}}function N5(t,n){if(1&t&&(w(),x(0,"g"),V(1,"line",6),T()),2&t){const e=y(2);L("transform",e.gridLineTransform()),_(1),L("y1",-e.gridLineHeight)}}function O5(t,n){if(1&t&&(w(),x(0,"g"),A(1,N5,2,2,"g",5),T()),2&t){const e=n.$implicit,i=y();L("transform",i.tickTransform(e)),_(1),p("ngIf",i.showGridLines)}}const R5=["ngx-charts-x-axis",""];function B5(t,n){if(1&t){const e=z();w(),x(0,"g",2),E("dimensionsChanged",function(s){return S(e),y().emitTicksHeight(s)}),T()}if(2&t){const e=y();p("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function H5(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y();p("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const V5=["ngx-charts-y-axis-ticks",""];function $5(t,n){if(1&t&&(w(),x(0,"g",4)(1,"title"),Be(2),T(),x(3,"text",5),Be(4),T()()),2&t){const e=n.$implicit,i=y();L("transform",i.transform(e)),_(2),Kn(i.tickFormat(e)),_(1),ke("font-size","12px"),L("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),_(1),gt(" ",i.tickTrim(i.tickFormat(e))," ")}}function z5(t,n){if(1&t&&(w(),V(0,"path",6)),2&t){const e=y();L("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function j5(t,n){1&t&&(w(),V(0,"line",9)),2&t&&L("x2",y(3).gridLineWidth)}function G5(t,n){1&t&&(w(),V(0,"line",9)),2&t&&L("x2",-y(3).gridLineWidth)}function W5(t,n){if(1&t&&(w(),x(0,"g"),A(1,j5,1,1,"line",8),A(2,G5,1,1,"line",8),T()),2&t){const e=y(2);L("transform",e.gridLineTransform()),_(1),p("ngIf","left"===e.orient),_(1),p("ngIf","right"===e.orient)}}function Y5(t,n){if(1&t&&(w(),x(0,"g"),A(1,W5,3,3,"g",7),T()),2&t){const e=n.$implicit,i=y();L("transform",i.transform(e)),_(1),p("ngIf",i.showGridLines)}}function U5(t,n){if(1&t&&(w(),x(0,"g")(1,"title"),Be(2),T(),x(3,"text",11),Be(4),T()()),2&t){const e=y(2).$implicit,i=y();_(2),Kn(i.tickTrim(i.tickFormat(e.value))),_(1),L("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),_(1),gt(" ",e.name," ")}}function X5(t,n){if(1&t&&(w(),x(0,"g"),V(1,"line",10),A(2,U5,5,6,"g",7),T()),2&t){const e=y().$implicit,i=y();L("transform",i.transform(e.value)),_(1),L("x2",i.gridLineWidth)("transform",i.gridLineTransform()),_(1),p("ngIf",i.showRefLabels)}}function q5(t,n){if(1&t&&(w(),x(0,"g"),A(1,X5,3,4,"g",7),T()),2&t){const e=y();_(1),p("ngIf",e.showRefLines)}}const Q5=["ngx-charts-y-axis",""];function Z5(t,n){if(1&t){const e=z();w(),x(0,"g",2),E("dimensionsChanged",function(s){return S(e),y().emitTicksWidth(s)}),T()}if(2&t){const e=y();p("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function K5(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y();p("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const J5=["ngx-charts-circle-series",""];function e4(t,n){if(1&t&&(w(),V(0,"rect",4)),2&t){const e=y(2);p("@animationState","active"),L("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const t4=function(t){return{name:t}};function n4(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"defs"),V(2,"g",1),T(),A(3,e4,1,6,"rect",2),x(4,"g",3),E("select",function(){S(e);const s=y();return s.onClick(s.circle.data)})("activate",function(){return S(e),y().activateCircle()})("deactivate",function(){return S(e),y().deactivateCircle()}),T()()}if(2&t){const e=y();_(2),p("name",e.gradientId)("stops",e.circle.gradientStops),_(1),p("ngIf",e.barVisible&&"standard"===e.type),_(1),qt("active",e.isActive(jl(18,t4,e.circle.seriesName))),p("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const i4=["ngx-charts-circle",""],a4=["ngx-charts-svg-linear-gradient",""];function l4(t,n){if(1&t&&(w(),V(0,"stop")),2&t){const e=n.$implicit;ke("stop-color",e.color)("stop-opacity",e.opacity),L("offset",e.offset+"%")}}const c4=["ngx-charts-svg-radial-gradient",""];function u4(t,n){if(1&t&&(w(),V(0,"stop")),2&t){const e=n.$implicit;ke("stop-color",e.color)("stop-opacity",e.opacity),L("offset",e.offset+"%")}}const h4=["ngx-charts-area",""];function d4(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",2),T()),2&t){const e=y();_(1),p("name",e.gradientId)("stops",e.gradientStops)}}const g4=["tooltipAnchor"],p4=["ngx-charts-tooltip-area",""];function m4(t,n){if(1&t&&(x(0,"div",6),V(1,"span",7),Be(2),T()),2&t){const e=n.$implicit,i=y(2);_(1),ke("background-color",e.color),_(1),gt(" ",i.getToolTipText(e)," ")}}function _4(t,n){if(1&t&&(w(),Ws(),x(0,"div",4),A(1,m4,3,3,"div",5),T()),2&t){const e=n.model;_(1),p("ngForOf",e)}}const y4=["ngx-charts-timeline",""];function v4(t,n){if(1&t&&(x(0,"header",4)(1,"span",5),Be(2),T()()),2&t){const e=y();_(2),Kn(e.title)}}function x4(t,n){if(1&t){const e=z();x(0,"li",6)(1,"ngx-charts-legend-entry",7),E("select",function(s){return S(e),y().labelClick.emit(s)})("activate",function(s){return S(e),y().activate(s)})("deactivate",function(s){return S(e),y().deactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),p("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Nt=["tooltipTemplate"],hu=["seriesTooltipTemplate"],st=function(t,n){return[t,n]};function N4(t,n){if(1&t){const e=z();w(),x(0,"g",7),E("dimensionsChanged",function(s){return S(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function O4(t,n){if(1&t){const e=z();w(),x(0,"g",8),E("dimensionsChanged",function(s){return S(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function R4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("activeEntries",i.activeEntries)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function B4(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",13),E("select",function(s){const o=S(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return S(e),y(2).onActivate(s)})("deactivate",function(s){return S(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function H4(t,n){if(1&t){const e=z();w(),x(0,"g",10),E("mouseleave",function(){return S(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return S(e),y().updateHoveredVertical(s)}),T(),A(2,B4,2,9,"g",12),T()}if(2&t){const e=y();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("showPercentage",!0)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)}}function V4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",15),T()),2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function $4(t,n){if(1&t){const e=z();w(),x(0,"g",14),E("onDomainChange",function(s){return S(e),y().updateDomain(s)}),A(1,V4,2,8,"g",4),T()}if(2&t){const e=y();p("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),L("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const kt=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function z4(t,n){if(1&t){const e=z();w(),x(0,"g",7),E("dimensionsChanged",function(s){return S(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function j4(t,n){if(1&t){const e=z();w(),x(0,"g",8),E("dimensionsChanged",function(s){return S(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function G4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("activeEntries",i.activeEntries)("curve",i.curve)("animations",i.animations)}}function W4(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",12),E("select",function(s){const o=S(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return S(e),y(2).onActivate(s)})("deactivate",function(s){return S(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Y4(t,n){if(1&t){const e=z();w(),x(0,"g",10),E("mouseleave",function(){return S(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return S(e),y().updateHoveredVertical(s)}),T(),A(2,W4,2,9,"g",4),T()}if(2&t){const e=y();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function U4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",14),T()),2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function X4(t,n){if(1&t){const e=z();w(),x(0,"g",13),E("onDomainChange",function(s){return S(e),y().updateDomain(s)}),A(1,U4,2,8,"g",4),T()}if(2&t){const e=y();p("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),L("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const q4=["ngx-charts-area-series",""],Q4=["ngx-charts-bar",""];function Z4(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",2),T()),2&t){const e=y();_(1),p("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}function cz(t,n){if(1&t){const e=z();w(),x(0,"g",5),E("dimensionsChanged",function(s){return S(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function uz(t,n){if(1&t){const e=z();w(),x(0,"g",6),E("dimensionsChanged",function(s){return S(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function _z(t,n){if(1&t){const e=z();w(),x(0,"g",5),E("dimensionsChanged",function(s){return S(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function yz(t,n){if(1&t){const e=z();w(),x(0,"g",6),E("dimensionsChanged",function(s){return S(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function vz(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",7),E("select",function(s){const o=S(e).$implicit;return y().onClick(s,o)})("activate",function(s){const o=S(e).$implicit;return y().onActivate(s,o)})("deactivate",function(s){const o=S(e).$implicit;return y().onDeactivate(s,o)})("dataLabelHeightChanged",function(s){const o=S(e).index;return y().onDataLabelMaxHeightChanged(s,o)}),T()()}if(2&t){const e=n.$implicit,i=y();p("@animationState","active"),L("transform",i.groupTransform(e)),_(1),p("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}const xz=["ngx-charts-series-vertical",""];function bz(t,n){if(1&t){const e=z();w(),x(0,"g",2),E("select",function(s){return S(e),y().onClick(s)})("activate",function(s){return S(e),y().activate.emit(s)})("deactivate",function(s){return S(e),y().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=y();p("@animationState","active")("@.disabled",!i.animations)("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation","vertical")("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Tz(t,n){if(1&t){const e=z();w(),x(0,"g",4),E("dimensionsChanged",function(s){const o=S(e).index;return y(2).dataLabelHeightChanged.emit({size:s,index:o})}),T()}if(2&t){const e=n.$implicit,i=y(2);p("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function Cz(t,n){if(1&t&&(w(),x(0,"g"),A(1,Tz,1,7,"g",3),T()),2&t){const e=y();_(1),p("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}const Ez=["ngx-charts-bar-label",""],zz=["ngx-charts-line",""];function jz(t,n){if(1&t){const e=z();w(),x(0,"g",7),E("dimensionsChanged",function(s){return S(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function Gz(t,n){if(1&t){const e=z();w(),x(0,"g",8),E("dimensionsChanged",function(s){return S(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function Wz(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();p("@animationState","active"),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Yz(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",13),E("select",function(s){return S(e),y(2).onClick(s)})("activate",function(s){return S(e),y(2).onActivate(s)})("deactivate",function(s){return S(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Uz(t,n){if(1&t){const e=z();w(),x(0,"g",10),E("mouseleave",function(){return S(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return S(e),y().updateHoveredVertical(s)}),T(),A(2,Yz,2,9,"g",12),T()}if(2&t){const e=y();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)}}function Xz(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",15),T()),2&t){const e=n.$implicit,i=y(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function qz(t,n){if(1&t){const e=z();w(),x(0,"g",14),E("onDomainChange",function(s){return S(e),y().updateDomain(s)}),A(1,Xz,2,8,"g",4),T()}if(2&t){const e=y();p("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),L("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const Qz=["ngx-charts-line-series",""];function Zz(t,n){if(1&t&&(w(),V(0,"g",4)),2&t){const e=y();p("name",e.gradientId)("stops",e.gradientStops)}}function Kz(t,n){if(1&t&&(w(),V(0,"g",5)),2&t){const e=y();qt("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),p("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}const cj=["ngx-charts-pie-label",""],uj=["ngx-charts-pie-arc",""];function hj(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",3),T()),2&t){const e=y();_(1),p("color",e.fill)("name",e.radialGradientId)("startOpacity",e.startOpacity)}}const xj=["ngx-charts-pie-series",""];function bj(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y().$implicit,i=y();p("data",e)("radius",i.outerRadius)("color",i.color(e))("label",i.labelText(e))("labelTrim",i.trimLabels)("labelTrimSize",i.maxLabelLength)("max",i.max)("value",e.value)("explodeSlices",i.explodeSlices)("animations",i.animations)}}function Tj(t,n){if(1&t){const e=z();w(),x(0,"g"),A(1,bj,1,10,"g",1),x(2,"g",2),E("select",function(s){return S(e),y().onClick(s)})("activate",function(s){return S(e),y().activate.emit(s)})("deactivate",function(s){return S(e),y().deactivate.emit(s)})("dblclick",function(s){return S(e),y().dblclick.emit(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),p("ngIf",i.labelVisible(e)),_(1),p("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("gradient",i.gradient)("data",e.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(e.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.getTooltipTitle(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const dw=["textEl"],Cj=["ngx-charts-card",""];function wj(t,n){if(1&t&&(w(),V(0,"path",7)),2&t){const e=y();L("fill",e.bandColor)("transform",e.transformBand)("d",e.bandPath)}}const Dj=["ngx-charts-card-series",""];function Aj(t,n){if(1&t&&(w(),V(0,"rect",2)),2&t){const e=n.$implicit;ke("fill",y().emptyColor),L("x",e.x)("y",e.y)("width",e.width)("height",e.height)}}function Sj(t,n){if(1&t){const e=z();w(),x(0,"g",3),E("select",function(s){return S(e),y().onClick(s)}),T()}if(2&t){const e=n.$implicit,i=y();p("x",e.x)("y",e.y)("width",e.width)("height",e.height)("color",e.color)("bandColor",e.bandColor)("textColor",e.textColor)("data",e.data)("label",e.label)("medianSize",i.medianSize)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations)}}function Hj(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",5),E("select",function(s){return S(e),y().onClick(s)})("activate",function(s){return S(e),y().onActivate(s)})("deactivate",function(s){return S(e),y().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();L("transform",i.rotation),_(1),p("backgroundArc",e.backgroundArc)("valueArc",e.valueArc)("cornerRadius",i.cornerRadius)("colors",i.colors)("isActive",i.isActive(e.valueArc.data))("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("valueFormatting",i.valueFormatting)("animations",i.animations)}}function Vj(t,n){if(1&t&&(w(),V(0,"g",6)),2&t){const e=y();p("bigSegments",e.bigSegments)("smallSegments",e.smallSegments)("min",e.min)("max",e.max)("radius",e.outerRadius)("angleSpan",e.angleSpan)("valueScale",e.valueScale)("startAngle",e.startAngle)("tickFormatting",e.axisTickFormatting)}}function $j(t,n){if(1&t&&(w(),x(0,"text",7,8)(2,"tspan",9),Be(3),T(),x(4,"tspan",10),Be(5),T()()),2&t){const e=y();ke("text-anchor","middle"),L("transform",e.textTransform),_(3),Kn(e.displayValue),_(2),Kn(e.units)}}const zj=["ngx-charts-gauge-arc",""],jj=["ngx-charts-gauge-axis",""];function Gj(t,n){if(1&t&&(w(),x(0,"g",2),V(1,"path"),T()),2&t){const e=n.$implicit;_(1),L("d",e.line)}}function Wj(t,n){if(1&t&&(w(),x(0,"g",2)(1,"text",3),Be(2),T()()),2&t){const e=n.$implicit;_(1),ke("text-anchor",e.textAnchor),L("transform",e.textTransform),_(1),gt(" ",e.text," ")}}function Yj(t,n){if(1&t&&(w(),x(0,"g",4),V(1,"path"),T()),2&t){const e=n.$implicit;_(1),L("d",e.line)}}let gw=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function Uj(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new PO(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Pb(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl),pe(Zs),pe(In))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Xj(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,s=arguments,u<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,u)),r}}function qj(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:Xj(r.value,t,n)}),this[s]}}}}var Ot=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Ot||(Ot={})),Ot))();function pw(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function mw(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class ii{static calculateVerticalAlignment(n,e,i){let s=pw(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=pw(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=mw(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=mw(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===Ot.right?(a=-7,o=ii.calculateVerticalCaret(i,e,s,r)):n===Ot.left?(a=e.width,o=ii.calculateVerticalCaret(i,e,s,r)):n===Ot.top?(o=e.height,a=ii.calculateHorizontalCaret(i,e,s,r)):n===Ot.bottom&&(o=-7,a=ii.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===Ot.right?(a=i.left+i.width+s,o=ii.calculateVerticalAlignment(i,e,r)):n===Ot.left?(a=i.left-e.width-s,o=ii.calculateVerticalAlignment(i,e,r)):n===Ot.top?(o=i.top-e.height-s,a=ii.calculateHorizontalAlignment(i,e,r)):n===Ot.bottom&&(o=i.top+i.height+s,a=ii.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(ii.shouldFlip(i,e,n,s)){if(n===Ot.right)return Ot.left;if(n===Ot.left)return Ot.right;if(n===Ot.top)return Ot.bottom;if(n===Ot.bottom)return Ot.top}return n}}let Qj=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=ii.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=ii.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=ii.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Vl))},t.\u0275cmp=q({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&gi(D5,5),2&e){let s;Me(s=Le())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&E("resize",function(){return i.onWindowResize()},!1,l_),2&e&&function Ky(t){Ii(Xn,Zi,t,!0)}(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(x(0,"div"),V(1,"span",0,1),x(3,"div",2),A(4,E5,2,4,"span",3),A(5,k5,1,1,"span",4),T()()),2&e&&(_(1),function dv(t,n,e){Ii(Xn,Zi,Gr(F(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),p("hidden",!i.showCaret),_(3),p("ngIf",!i.title),_(1),p("ngIf",i.title))},directives:[Ce,D0],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function Nb(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}([qj(100)],t.prototype,"onWindowResize",null),t})(),du=(()=>{class t extends class Zj{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Qj}}return t.\u0275fac=function(e){return new(e||t)(pe(gw))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),mt=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new k,this.legendLabelActivate=new k,this.legendLabelDeactivate=new k}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Zv([du]),_e],ngContentSelectors:cw,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(gd(),x(0,"div",0),w(),x(1,"svg",1),pd(2),T(),A(3,M5,1,5,"ngx-charts-scale-legend",2),A(4,L5,1,7,"ngx-charts-legend",3),T()),2&e&&(ke("width",i.view[0],"px"),p("@animationState","active")("@.disabled",!i.animations),_(1),L("width",i.chartWidth)("height",i.view[1]),_(2),p("ngIf",i.showLegend&&"scaleLegend"===i.legendType),_(1),p("ngIf",i.showLegend&&"legend"===i.legendType))},directives:function(){return[Ce,Mw,Ew]},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({opacity:0}),nn("500ms 100ms",Fe({opacity:1}))])])]},changeDetection:0}),t})(),Kj=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new k,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Ft))},t.\u0275dir=xn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),_t=(()=>{class t{constructor(e,i,s){this.chartElement=e,this.zone=i,this.cd=s,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new k}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Kj(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const s=this.chartElement.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;e<this.results.length;e++){const i=this.results[e];if(i.label=i.name,i.label instanceof Date&&(i.label=i.label.toLocaleDateString()),i.series)for(let s=0;s<i.series.length;s++){const r=i.series[s];r.label=r.name,r.label instanceof Date&&(r.label=r.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=Rb(window,"resize").pipe(function lR(t,n=aR){return e=>e.lift(new cR(t,n))}(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const s of e){const r={name:s.name};if(void 0!==s.value&&(r.value=s.value),void 0!==s.series){r.series=[];for(const o of s.series){const a=Object.assign({},o);r.series.push(a)}}void 0!==s.extra&&(r.extra=JSON.parse(JSON.stringify(s.extra))),i.push(r)}return i}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Ft),Q(Js))},t.\u0275cmp=q({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[_e],decls:1,vars:0,template:function(e,i){1&e&&V(0,"div")},encapsulation:2}),t})(),ep=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[_e],attrs:F5,decls:2,vars:6,template:function(e,i){1&e&&(w(),x(0,"text"),Be(1),T()),2&e&&(L("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),_(1),gt(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Os(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function _w(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let s=0;s<t.length;s++)s%i==0&&e.push(t[s]);t=e}return t}let yw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new k,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(s){return this.scale(s)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;c<e.length;c++){const u=this.tickFormat(e[c]).toString();let h=u.length;this.trimTicks&&(h=this.tickTrim(u).length),h>this.maxTicksLength&&(this.maxTicksLength=h)}const o=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=o;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*o;return i}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&gi(uw,5),2&e){let s;Me(s=Le())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:I5,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(w(),x(0,"g",null,0),A(2,P5,5,7,"g",1),T(),A(3,O5,2,2,"g",2)),2&e&&(_(2),p("ngForOf",i.ticks),_(1),p("ngForOf",i.ticks))},directives:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),Rn=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new k,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&gi(yw,5),2&e){let s;Me(s=Le())&&(i.ticksComponent=s.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:R5,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(w(),x(0,"g"),A(1,B5,1,12,"g",0),A(2,H5,1,5,"g",1),T()),2&e&&(L("class",i.xAxisClassName)("transform",i.transform),_(1),p("ngIf",i.xScale),_(1),p("ngIf",i.showLabel))},directives:[Ce,yw,ep],encapsulation:2,changeDetection:0}),t})();function vs(t,n,e,i,s,[r,o,a,l]){let c="";return c=`M${[t+s,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*s),c+=o?`a${[s,s]} 0 0 1 ${[s,s]}`:`h${s}v${s}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*s),c+=l?`a${[s,s]} 0 0 1 ${[-s,s]}`:`v${s}h${-s}`,c+="h"+(2*s-e),c+=a?`a${[s,s]} 0 0 1 ${[-s,-s]}`:`h${-s}v${-s}`,c+="v"+(2*s-i),c+=r?`a${[s,s]} 0 0 1 ${[s,-s]}`:`v${-s}h${s}`,c+="z",c}let vw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new k,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()},this.adjustedScale=e.bandwidth?function(s){return e(s)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(s){return"translate("+this.adjustedScale(s)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=vs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&gi(uw,5),2&e){let s;Me(s=Le())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:V5,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(w(),x(0,"g",null,0),A(2,$5,5,9,"g",1),T(),A(3,z5,1,2,"path",2),A(4,Y5,2,2,"g",3),A(5,q5,2,1,"g",3)),2&e&&(_(2),p("ngForOf",i.ticks),_(1),p("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),_(1),p("ngForOf",i.ticks),_(1),p("ngForOf",i.referenceLines))},directives:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),Sn=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new k,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&gi(vw,5),2&e){let s;Me(s=Le())&&(i.ticksComponent=s.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:Q5,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(w(),x(0,"g"),A(1,Z5,1,14,"g",0),A(2,K5,1,5,"g",1),T()),2&e&&(L("class",i.yAxisClassName)("transform",i.transform),_(1),p("ngIf",i.yScale),_(1),p("ngIf",i.showLabel))},directives:[Ce,vw,ep],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[fa]]}),t})();var fu=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(fu||(fu={})),fu))(),gu=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(gu||(gu={})),gu))(),Rs=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(Rs||(Rs={})),Rs))();let Bi=(()=>{class t{constructor(e,i,s){this.tooltipService=e,this.viewContainerRef=i,this.renderer=s,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ot.top,this.tooltipAlignment=gu.center,this.tooltipType=fu.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Rs.all,this.tooltipImmediateExit=!1,this.show=new k,this.hide=new k}get listensForFocus(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.focus}get listensForHover(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const s=this.createBoundOptions();this.component=this.tooltipService.create(s),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(Q(du),Q(fi),Q(Vl))},t.\u0275dir=xn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&E("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(r){return i.onMouseLeave(r.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({providers:[gw,du],imports:[[fa]]}),t})();function on(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function $t(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const Tw={};function En(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Tw[t]?En():(Tw[t]=!0,t)}let sp,za=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+En().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const s=i.name;return s&&this.visibleValue&&s.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const s=this.data.name,r=e.value,o=e.name,a=on(o);let l;l=this.xScale("time"===this.scaleType?o:"linear"===this.scaleType?Number(o):o);const c=this.yScale("standard"===this.type?r:e.d1),h=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?r:e.d1:s),{classNames:[`circle-data-${i}`],value:r,label:o,data:Object.assign({},e,{series:s,value:r,name:o}),cx:l,cy:c,radius:5,height:h,tooltipLabel:a,color:f,opacity:1,seriesName:s,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:s,min:r,max:o}){return`\n <span class="tooltip-label">${$t(s)} \u2022 ${$t(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}${this.getTooltipMinMaxText(r,o)}</span>\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let s=" (";return void 0!==e?(void 0===i&&(s+="\u2265"),s+=e.toLocaleString(),void 0!==i&&(s+=" - ")):void 0!==i&&(s+="\u2264"),void 0!==i&&(s+=i.toLocaleString()),s+=")",s}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:J5,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&A(0,n4,5,20,"g",0),2&e&&p("ngIf",i.circle)},directives:function(){return[Ce,yr,pu,Bi]},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({opacity:0}),nn(250,Fe({opacity:1}))])])]},changeDetection:0}),t})(),pu=(()=>{class t{constructor(){this.select=new k,this.activate=new k,this.deactivate=new k}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&E("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:i4,decls:1,vars:8,template:function(e,i){1&e&&(w(),V(0,"circle")),2&e&&L("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),yr=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[_e],attrs:a4,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(w(),x(0,"linearGradient",0),A(1,l4,1,5,"stop",1),T()),2&e&&(p("id",i.name),L("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),_(1),p("ngForOf",i.stops))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),np=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[_e],attrs:c4,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(w(),x(0,"radialGradient",0),A(1,u4,1,5,"stop",1),T()),2&e&&(p("id",i.name),L("cx",i.cx)("cy",i.cy)("r",i.r),_(1),p("ngForOf",i.stops))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),ip=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new k,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+En().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Qt(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[_e],attrs:h4,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(A(0,d4,2,2,"defs",0),w(),V(1,"path",1)),2&e&&(p("ngIf",i.gradient),_(1),ke("opacity",i.opacity),L("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},directives:[Ce,yr],encapsulation:2,changeDetection:0}),t})();function ww(t,n,e,i){return e*(1-Math.pow(2,-10*t/i))*1024/1023+n}function Dw(t,n,e,i,s){const r=Number(t),o=Number(n),a=r>o,l=Math.max(0,e),c=Math.pow(10,l),u=1e3*Number(i);let h;function d(f){let g;const v=f-h;g=a?r-ww(v,0,r-o,u):ww(v,r,o-r,u),g=a?g<o?o:g:g>o?o:g,g=Math.round(g*c)/c;const m=v<u;if(s({value:g,progress:v,timestamp:f,finished:!m}),m)return requestAnimationFrame(C=>d(C))}return requestAnimationFrame(f=>(h=f,d(f)))}"undefined"!=typeof window?sp=window:"undefined"!=typeof global&&(sp=global);const Sw=sp.MouseEvent;function rp(t,n=!1,e=!0){if("function"==typeof Sw)return new Sw(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let ja=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new k}getValues(e){const i=[];for(const s of this.results){const r=s.series.find(a=>a.name.toString()===e.toString());let o=s.name;if(o instanceof Date&&(o=o.toLocaleDateString()),r){const a=r.name;let c,l=r.value;if(this.showPercentage&&(l=(r.d1-r.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let h=l;r.d1&&(h=r.d1),c=this.colors.getColor(h)}else c=this.colors.getColor(s.name);const u=Object.assign({},r,{value:l,name:a,series:o,min:r.min,max:r.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,s=this.findClosestPointIndex(i),r=this.xSet[s];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){const o=rp("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(o),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,s=this.xSet.length-1,r=Number.MAX_VALUE,o=0;for(;i<=s;){const a=(i+s)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(c<r&&(r=c,o=a),l<e)i=a+1;else{if(!(l>e)){r=0,o=a;break}s=a-1}}return o}showTooltip(){const e=rp("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=rp("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&gi(g4,5),2&e){let s;Me(s=Le())&&(i.tooltipAnchor=s.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:p4,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(w(),x(0,"g")(1,"rect",0),E("mousemove",function(r){return i.mouseMove(r)})("mouseleave",function(){return i.hideTooltip()}),T(),A(2,_4,2,1,"ng-template",null,1,vx),V(4,"rect",2,3),T()),2&e){const s=function xy(t){return function wr(t,n){return t[n]}(function QD(){return de.lFrame.contextLView}(),20+t)}(3);_(1),L("x",0)("width",i.dims.width)("height",i.dims.height),_(3),ke("opacity",i.anchorOpacity)("pointer-events","none"),p("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:s)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),L("x",i.anchorPos)("width",1)("height",i.dims.height)}},directives:[Oe,Bi],encapsulation:2,data:{animation:[fn("animationState",[sn("inactive => active",[Fe({opacity:0}),nn(250,Fe({opacity:.7}))]),sn("active => inactive",[Fe({opacity:.7}),nn(250,Fe({opacity:0}))])])]},changeDetection:0}),t})(),Ga=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new k,this.onDomainChange=new k,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+En().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const s of this.results)for(const r of s.series)e.includes(r.name)||e.push(r.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=fr().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Je().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=gr().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function EH(){return function Cg(t){var a,n=DH,e=wH,i=AH,s=!0,r=iT("start","brush","end"),o=6;function l(m){var C=m.property("__brush",v).selectAll(".overlay").data([Ma("overlay")]);C.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ps.overlay).merge(C).each(function(){var D=Tg(this).extent;Qt(this).attr("x",D[0][0]).attr("y",D[0][1]).attr("width",D[1][0]-D[0][0]).attr("height",D[1][1]-D[0][1])}),m.selectAll(".selection").data([Ma("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ps.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var b=m.selectAll(".handle").data(t.handles,function(D){return D.type});b.exit().remove(),b.enter().append("rect").attr("class",function(D){return"handle handle--"+D.type}).attr("cursor",function(D){return ps[D.type]}),m.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var m=Qt(this),C=Tg(this).selection;C?(m.selectAll(".selection").style("display",null).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1]),m.selectAll(".handle").style("display",null).attr("x",function(b){return"e"===b.type[b.type.length-1]?C[1][0]-o/2:C[0][0]-o/2}).attr("y",function(b){return"s"===b.type[0]?C[1][1]-o/2:C[0][1]-o/2}).attr("width",function(b){return"n"===b.type||"s"===b.type?C[1][0]-C[0][0]+o:o}).attr("height",function(b){return"e"===b.type||"w"===b.type?C[1][1]-C[0][1]+o:o})):m.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(m,C,b){var D=m.__brush.emitter;return!D||b&&D.clean?new h(m,C,b):D}function h(m,C,b){this.that=m,this.args=C,this.state=m.__brush,this.active=0,this.clean=b}function d(){if((!a||He.touches)&&e.apply(this,arguments)){var ee,oe,B,W,Se,P,$,Z,yt,Te,ri,m=this,C=He.target.__data__.type,b="selection"===(s&&He.metaKey?C="overlay":C)?RT:s&&He.altKey?go:fo,D=t===Jc?null:TH[C],M=t===Kc?null:CH[C],N=Tg(m),I=N.extent,X=N.selection,be=I[0][0],J=I[0][1],Ge=I[1][0],G=I[1][1],ce=0,Ee=0,zt=D&&M&&s&&He.shiftKey,ns=He.touches?xH(He.changedTouches[0].identifier):s3,et=ns(m),jt=et,H=u(m,arguments,!0).beforestart();"overlay"===C?(X&&(yt=!0),N.selection=X=[[ee=t===Jc?be:et[0],B=t===Kc?J:et[1]],[Se=t===Jc?Ge:ee,$=t===Kc?G:B]]):(ee=X[0][0],B=X[0][1],Se=X[1][0],$=X[1][1]),oe=ee,W=B,P=Se,Z=$;var ne=Qt(m).attr("pointer-events","none"),ye=ne.selectAll(".overlay").attr("cursor",ps[C]);if(He.touches)H.moved=an,H.ended=pn;else{var O=Qt(He.view).on("mousemove.brush",an,!0).on("mouseup.brush",pn,!0);s&&O.on("keydown.brush",kn,!0).on("keyup.brush",xs,!0),NB(He.view)}OT(),fg(m),c.call(m),H.start()}function an(){var Mn=ns(m);zt&&!Te&&!ri&&(Math.abs(Mn[0]-jt[0])>Math.abs(Mn[1]-jt[1])?ri=!0:Te=!0),jt=Mn,yt=!0,vg(),Ve()}function Ve(){var Mn;switch(ce=jt[0]-et[0],Ee=jt[1]-et[1],b){case xg:case RT:D&&(ce=Math.max(be-ee,Math.min(Ge-Se,ce)),oe=ee+ce,P=Se+ce),M&&(Ee=Math.max(J-B,Math.min(G-$,Ee)),W=B+Ee,Z=$+Ee);break;case fo:D<0?(ce=Math.max(be-ee,Math.min(Ge-ee,ce)),oe=ee+ce,P=Se):D>0&&(ce=Math.max(be-Se,Math.min(Ge-Se,ce)),oe=ee,P=Se+ce),M<0?(Ee=Math.max(J-B,Math.min(G-B,Ee)),W=B+Ee,Z=$):M>0&&(Ee=Math.max(J-$,Math.min(G-$,Ee)),W=B,Z=$+Ee);break;case go:D&&(oe=Math.max(be,Math.min(Ge,ee-ce*D)),P=Math.max(be,Math.min(Ge,Se+ce*D))),M&&(W=Math.max(J,Math.min(G,B-Ee*M)),Z=Math.max(J,Math.min(G,$+Ee*M)))}P<oe&&(D*=-1,Mn=ee,ee=Se,Se=Mn,Mn=oe,oe=P,P=Mn,C in HT&&ye.attr("cursor",ps[C=HT[C]])),Z<W&&(M*=-1,Mn=B,B=$,$=Mn,Mn=W,W=Z,Z=Mn,C in VT&&ye.attr("cursor",ps[C=VT[C]])),N.selection&&(X=N.selection),Te&&(oe=X[0][0],P=X[1][0]),ri&&(W=X[0][1],Z=X[1][1]),(X[0][0]!==oe||X[0][1]!==W||X[1][0]!==P||X[1][1]!==Z)&&(N.selection=[[oe,W],[P,Z]],c.call(m),H.brush())}function pn(){if(OT(),He.touches){if(He.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else OB(He.view,yt),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ne.attr("pointer-events","all"),ye.attr("cursor",ps.overlay),N.selection&&(X=N.selection),SH(X)&&(N.selection=null,c.call(m)),H.end()}function kn(){switch(He.keyCode){case 16:zt=D&&M;break;case 18:b===fo&&(D&&(Se=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go,Ve());break;case 32:(b===fo||b===go)&&(D<0?Se=P-ce:D>0&&(ee=oe-ce),M<0?$=Z-Ee:M>0&&(B=W-Ee),b=xg,ye.attr("cursor",ps.selection),Ve());break;default:return}vg()}function xs(){switch(He.keyCode){case 16:zt&&(Te=ri=zt=!1,Ve());break;case 18:b===go&&(D<0?Se=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo,Ve());break;case 32:b===xg&&(He.altKey?(D&&(Se=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go):(D<0?Se=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo),ye.attr("cursor",ps[C]),Ve());break;default:return}vg()}}function f(){u(this,arguments).moved()}function g(){u(this,arguments).ended()}function v(){var m=this.__brush||{selection:null};return m.extent=bg(n.apply(this,arguments)),m.dim=t,m}return l.move=function(m,C){m.selection?m.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var b=this,D=b.__brush,M=u(b,arguments),N=D.selection,I=t.input("function"==typeof C?C.apply(this,arguments):C,D.extent),X=or(N,I);function be(ee){D.selection=1===ee&&null===I?null:X(ee),c.call(b),M.brush()}return null!==N&&null!==I?be:be(1)}):m.each(function(){var b=this,D=arguments,M=b.__brush,N=t.input("function"==typeof C?C.apply(b,D):C,M.extent),I=u(b,D).beforestart();fg(b),M.selection=null===N?null:N,c.call(b),I.start().brush().end()})},l.clear=function(m){l.move(m,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(m){!function EB(t,n,e,i){var s=He;t.sourceEvent=He,He=t;try{n.apply(e,i)}finally{He=s}}(new vH(l,m,t.output(this.state.selection)),r.apply,r,[m,this.that,this.args])}},l.extent=function(m){return arguments.length?(n="function"==typeof m?m:yg(bg(m)),l):n},l.filter=function(m){return arguments.length?(e="function"==typeof m?m:yg(!!m),l):e},l.touchable=function(m){return arguments.length?(i="function"==typeof m?m:yg(!!m),l):i},l.handleSize=function(m){return arguments.length?(o=+m,l):o},l.keyModifiers=function(m){return arguments.length?(s=!!m,l):s},l.on=function(){var m=r.on.apply(r,arguments);return m===r?l:m},l}(Kc)}().extent([[0,0],[i,e]]).on("brush end",()=>{const r=(He.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(r),this.cd.markForCheck()}),Qt(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Qt(this.element).select(".brush").call(this.brush),Qt(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Js))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[_e],attrs:y4,ngContentSelectors:cw,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(gd(),w(),x(0,"g",0)(1,"filter"),V(2,"feColorMatrix",1),T(),x(3,"g",2),pd(4),T(),V(5,"rect",3)(6,"g",4),T()),2&e&&(L("transform",i.transform),_(1),L("id",i.filterId),_(4),L("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Ew=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new k,this.labelActivate=new k,this.labelDeactivate=new k,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const s=on(i);-1===e.findIndex(o=>o.label===s)&&e.push({label:i,formattedLabel:s,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.label===s.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(Q(Js))},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[_e],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"div"),A(1,v4,3,1,"header",0),x(2,"div",1)(3,"ul",2),A(4,x4,2,4,"li",3),T()()()),2&e&&(ke("width",i.width,"px"),_(1),p("ngIf",(null==i.title?null:i.title.length)>0),_(2),ke("max-height",i.height-45,"px"),qt("horizontal-legend",i.horizontal),_(1),p("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},directives:function(){return[Ce,Oe,kw]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),kw=(()=>{class t{constructor(){this.isActive=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.toggle=new k}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(x(0,"span",0),E("click",function(){return i.select.emit(i.formattedLabel)}),x(1,"span",1),E("click",function(){return i.toggle.emit(i.formattedLabel)}),T(),x(2,"span",2),Be(3),T()()),2&e&&(qt("active",i.isActive),p("title",i.formattedLabel),_(1),ke("background-color",i.color),_(2),gt(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const s=[];return e.reverse().forEach((r,o)=>{s.push(`${r} ${Math.round(100*i[o])}%`)}),s.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Q($0))},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[_e],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"div",1)(2,"span"),Be(3),T()(),V(4,"div",2),x(5,"div",1)(6,"span"),Be(7),T()()()),2&e&&(ke("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),qt("horizontal-legend",i.horizontal),_(3),Kn(i.valueRange[1].toLocaleString()),_(1),ke("background",i.gradient),_(3),Kn(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Hi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[fa,xw,bw],fa,xw,bw]}),t})();function wt({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:s=!1,xAxisHeight:r=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:h="right",columns:d=12}){let f=e[3],g=t,v=n-e[0]-e[2];return c&&"right"===h&&(d-="ordinal"===u?2:1),g=g*d/12,g=g-e[1]-e[3],i&&(v-=5,v-=r,a&&(v-=30)),s&&(g-=5,g-=o,f+=o,f+=10,l&&(g-=30,f+=30)),g=Math.max(0,g),v=Math.max(0,v),{width:Math.floor(g),height:Math.floor(v),xOffset:Math.floor(f)}}let Fw=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Dt{constructor(n,e,i,s){"string"==typeof n&&(n=Fw.find(r=>r.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=s,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let s;if("string"==typeof n&&(n=Fw.find(r=>r.name===n)),"quantile"===e)s=YC().range(n.domain).domain(i);else if("ordinal"===e)s=Yg().range(n.domain).domain(i);else if("linear"===e){const r=[...n.domain];1===r.length&&(r.push(r[0]),this.colorDomain=r);const o=jC(0,1,1/r.length);s=Je().domain(o).range(r)}return s}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Je().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Je().domain(this.domain).range([0,1]),s=rn().domain(this.colorDomain).range([0,1]),r=this.getColor(n),o=i(e),a=this.getColor(e),l=i(n);let c=1,u=o;const h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});u<l&&c<this.colorDomain.length;){const d=this.colorDomain[c],f=s(d);if(f<=o)c++;else{if(f.toFixed(4)>=(l-s.bandwidth()).toFixed(4))break;h.push({color:d,offset:f,opacity:1}),u=f,c++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:l,opacity:1}),l===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const d of h)d.offset=(d.offset-o)/(l-o)*100;return h}}function _u(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}function Bs(t,n=!0){return n&&t.every(s=>s instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}let Jj=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0,r=0;for(const o of this.results){const a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a&&(r+=a.value)}for(const o of this.results){let a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a?(a.d0=s,a.d1=s+a.value,s+=a.value):(a={name:i,value:0,d0:s,d1:s},o.series.push(a)),r>0?(a.d0=100*a.d0/r,a.d1=100*a.d1/r):(a.d0=0,a.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+En().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let i=[];if("time"===this.scaleType){const s=Math.min(...e),r=Math.max(...e);i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})}else"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e);return i}getYDomain(){return[0,100]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=Je():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),A(5,N4,1,10,"g",2),A(6,O4,1,9,"g",3),x(7,"g"),A(8,R4,2,9,"g",4),A(9,H4,3,10,"g",5),T()(),A(10,$4,2,13,"g",6),T()),2&e&&(p("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,Sn,Oe,cp,ja,za,Ga]},styles:[kt],encapsulation:2,changeDetection:0}),t})(),e8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0;for(const r of this.results){let o=r.series.find(a=>{let l=a.name,c=i;return"time"===this.scaleType&&(l=l.valueOf(),c=c.valueOf()),l===c});o?(o.d0=s,o.d1=s+o.value,s+=o.value):(o={name:i,value:0,d0:s,d1:s},r.series.push(o))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+En().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(let r=0;r<this.xSet.length;r++){const o=this.xSet[r];let a=0;for(const l of this.results){const c=l.series.find(u=>{let h=u.name,d=o;return"time"===this.scaleType&&(h=h.valueOf(),d=d.valueOf()),h===d});c&&(a+=c.value)}e.push(a)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=Je():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),A(5,z4,1,10,"g",2),A(6,j4,1,9,"g",3),x(7,"g"),A(8,G4,2,9,"g",4),A(9,Y4,3,10,"g",5),T()(),A(10,X4,2,13,"g",6),T()),2&e&&(p("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,Sn,Oe,cp,ja,za,Ga]},styles:[kt],encapsulation:2,changeDetection:0}),t})();function op(t,n,e="asc"){return t.sort((i,s)=>"asc"===e?i[n]-s[n]:s[n]-i[n])}function ap(t,n,e="asc",i){return t.sort((s,r)=>{const a=r[n],l=i.indexOf(s[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}function lp(t,n,e="asc"){return t.sort((i,s)=>{const r=i[n].getTime(),o=s[n].getTime();return"asc"===e?r>o?1:o>r?-1:0:r>o?-1:o>r?1:0})}let cp=(()=>{class t{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new k}ngOnChanges(e){this.update()}update(){let e,i;this.updateGradient();const s=o=>this.xScale(o.name);this.stacked||this.normalized?(e=xo().x(s).y0((o,a)=>this.yScale(o.d0)).y1((o,a)=>this.yScale(o.d1)),i=xo().x(s).y0(o=>this.yScale.range()[0]).y1(o=>this.yScale.range()[0])):(e=xo().x(s).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>this.yScale(o.value)),i=xo().x(s).y0(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),e.curve(this.curve),i.curve(this.curve),this.opacity=.8;let r=this.data.series;r="linear"===this.scaleType?op(r,"name"):"time"===this.scaleType?lp(r,"name"):ap(r,"name","asc",this.xScale.domain()),this.path=e(r),this.startingPath=i(r)}updateGradient(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){const e=this.data.series.map(o=>o.d0),i=this.data.series.map(o=>o.d1),s=Math.max(...i),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(s,r)}else{const e=this.data.series.map(s=>s.value),i=Math.max(...e);this.gradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[_e],attrs:q4,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(e,i){1&e&&(w(),V(0,"g",0)),2&e&&(qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.path)("fill",i.colors.getColor(i.data.name))("stops",i.gradientStops)("startingPath",i.startingPath)("opacity",i.opacity)("gradient",i.gradient||i.hasGradient)("animations",i.animations))},directives:[ip],encapsulation:2,changeDetection:0}),t})(),t8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),up=(()=>{class t{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+En().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Qt(this.element).select(".bar"),i=this.getPath();this.animations?e.transition().duration(500).attr("d",i):e.attr("d",i)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=vs(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=vs(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?i=vs(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(i=vs(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=vs(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=vs(this.x,this.y,this.width,this.height,e,this.edges)):i=vs(this.x,this.y,this.width,this.height,e,this.edges),i}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:Q4,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(A(0,Z4,2,3,"defs",0),w(),x(1,"path",1),E("click",function(){return i.select.emit(i.data)}),T()),2&e&&(p("ngIf",i.hasGradient),_(1),qt("active",i.isActive)("hidden",i.hideBar),L("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},directives:[Ce,yr],encapsulation:2,changeDetection:0}),t})(),n8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const e=this.xDomain.length/(this.dims.width/this.barPadding+1);return rn().range([0,this.dims.width]).paddingInner(e).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const e=Je().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?e.nice():e}getXDomain(){return this.results.map(e=>e.label)}getYDomain(){const e=this.results.map(r=>r.value);let i=this.yScaleMin?Math.min(this.yScaleMin,...e):Math.min(0,...e);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.min(i,...this.yAxisTicks));let s=this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(0,...e);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(s=Math.max(s,...this.yAxisTicks)),[i,s]}onClick(e){this.select.emit(e)}setColors(){let e;e="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.xDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxHeightChanged(e){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),w(),x(1,"g",1),A(2,cz,1,10,"g",2),A(3,uz,1,9,"g",3),x(4,"g",4),E("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("select",function(r){return i.onClick(r)})("dataLabelHeightChanged",function(r){return i.onDataLabelMaxHeightChanged(r)}),T()()()),2&e&&(p("view",Ke(22,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero))},directives:function(){return[mt,Ce,Rn,Sn,yu]},styles:[kt],encapsulation:2,changeDetection:0}),t})(),i8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];let i=0,s=0;for(const a of this.results){let l=0,c=0;for(const u of a.series)u.value<0?l+=u.value:c+=u.value,i=u.value<i?u.value:i,s=u.value>s?u.value:s;e.push(l),e.push(c)}return e.push(i),e.push(s),[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(...e)]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return rn().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=Je().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}onDataLabelMaxHeightChanged(e,i){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),i===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(e){return`translate(${this.xScale(e.name)||0}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","","type","stacked",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),w(),x(1,"g",1),A(2,_z,1,10,"g",2),A(3,yz,1,9,"g",3),A(4,vz,2,16,"g",4),T()()),2&e&&(p("view",Ke(10,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[mt,Ce,Rn,Sn,Oe,yu]},styles:[kt],encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1,transform:"*"}),nn(500,Fe({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();var si=(()=>(function(t){t.positive="positive",t.negative="negative"}(si||(si={})),si))();let yu=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.dataLabelHeightChanged=new k,this.barsForDataLabels=[]}ngOnChanges(e){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const i=Math.max(this.yScale.domain()[0],0),s={[si.positive]:0,[si.negative]:0};let o,r=si.positive;"normalized"===this.type&&(o=this.series.map(a=>a.value).reduce((a,l)=>a+l,0)),this.bars=this.series.map((a,l)=>{let c=a.value;const u=this.getLabel(a),h=on(u);r=c>0?si.positive:si.negative;const f={value:c,label:u,roundEdges:this.roundEdges,data:a,width:e,formattedLabel:h,height:0,x:0,y:0};if("standard"===this.type)f.height=Math.abs(this.yScale(c)-this.yScale(i)),f.x=this.xScale(u),f.y=this.yScale(c<0?0:c);else if("stacked"===this.type){const v=s[r],m=v+c;s[r]+=c,f.height=this.yScale(v)-this.yScale(m),f.x=0,f.y=this.yScale(m),f.offset0=v,f.offset1=m}else if("normalized"===this.type){let v=s[r],m=v+c;s[r]+=c,o>0?(v=100*v/o,m=100*m/o):(v=0,m=0),f.height=this.yScale(v)-this.yScale(m),f.x=0,f.y=this.yScale(m),f.offset0=v,f.offset1=m,c=(m-v).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?f.color=this.colors.getColor(u):"standard"===this.type?(f.color=this.colors.getColor(c),f.gradientStops=this.colors.getLinearGradientStops(c)):(f.color=this.colors.getColor(f.offset1),f.gradientStops=this.colors.getLinearGradientStops(f.offset1,f.offset0));let g=h;return f.ariaLabel=h+" "+c.toLocaleString(),this.seriesName&&(g=`${this.seriesName} \u2022 ${h}`,f.data.series=this.seriesName,f.ariaLabel=this.seriesName+" "+f.ariaLabel),f.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${$t(g)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(c):c.toLocaleString()}</span>\n `,f}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,o)=>o>0?r+o:r,0),s=this.series.map(r=>r.value).reduce((r,o)=>o<0?r+o:r,0);e.total=i+s,e.x=0,e.y=0,e.height=this.yScale(e.total>0?i:s),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{const i={};return i.series=this.seriesName?this.seriesName:e.label,i.total=e.value,i.x=this.xScale(e.label),i.y=this.yScale(0),i.height=this.yScale(i.total)-this.yScale(0),i.width=this.xScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[_e],attrs:xz,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(A(0,bz,1,22,"g",0),A(1,Cz,2,2,"g",1)),2&e&&(p("ngForOf",i.bars)("ngForTrackBy",i.trackBy),_(1),p("ngIf",i.showDataLabel))},directives:function(){return[Oe,up,Bi,Ce,Iw]},encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1}),nn(500,Fe({opacity:0}))])])]},changeDetection:0}),t})(),Iw=(()=>{class t{constructor(e){this.dimensionsChanged=new k,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):on(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:Ez,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,i){1&e&&(w(),x(0,"text",0),Be(1),T()),2&e&&(L("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),_(1),gt(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),r8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),l8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),Rw=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new k,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Qt(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[_e],attrs:zz,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(w(),V(0,"path",0)),2&e&&(p("@animationState","active"),L("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({strokeDasharray:2e3,strokeDashoffset:2e3}),nn(1e3,Fe({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),c8=(()=>{class t extends _t{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+En().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const o of this.results)for(const a of o.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr().range([0,i]).domain(e):"linear"===this.scaleType?(s=Je().range([0,i]).domain(e),this.roundDomains&&(s=s.nice())):"ordinal"===this.scaleType&&(s=gr().range([0,i]).padding(.1).domain(e)),s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),A(5,jz,1,10,"g",2),A(6,Gz,1,12,"g",3),x(7,"g"),A(8,Wz,2,11,"g",4),A(9,Uz,3,9,"g",5),T()(),A(10,qz,2,13,"g",6),T()),2&e&&(p("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,Sn,Oe,u8,ja,za,Ga]},styles:[kt],encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1}),nn(500,Fe({opacity:0}))])])]},changeDetection:0}),t})(),u8=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const s=this.getAreaGenerator();if(this.areaPath=s(e)||"",this.hasRange){const r=this.getRangeGenerator();this.outerPath=r(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const r=this.data.series.map(l=>l.value),o=Math.max(...r);o===Math.min(...r)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return ou().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return xo().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return xo().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?op(e,"name"):"time"===this.scaleType?lp(e,"name"):ap(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+En().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(r=>r.value),i=Math.max(...e),s=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,s),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[_e],attrs:Qz,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(w(),x(0,"g")(1,"defs"),A(2,Zz,1,2,"g",0),T(),V(3,"g",1)(4,"g",2),A(5,Kz,1,9,"g",3),T()),2&e&&(_(2),p("ngIf",i.hasGradient),_(1),qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),_(1),qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),_(1),p("ngIf",i.hasRange))},directives:[Ce,yr,ip,Rw],encapsulation:2,changeDetection:0}),t})(),Bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})();Math;let Vw=(()=>{class t{constructor(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=Os}ngOnChanges(e){this.update()}update(){let e=this.radius;this.explodeSlices&&(e=this.radius*this.value/this.max);const s=Jg().innerRadius(e).outerRadius(e).centroid(this.data);let r=this.data.pos[1]/s[1];(0===this.data.pos[1]||0===s[1])&&(r=1),this.line=`M${s}L${[r*s[0],r*s[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}get styleTransform(){return this.isIE?null:`translate3d(${this.textX}px,${this.textY}px, 0)`}get attrTransform(){return this.isIE?`translate(${this.textX},${this.textY})`:null}get textTransition(){return this.isIE||!this.animations?null:"transform 0.75s"}textAnchor(){return this.midAngle(this.data)<Math.PI?"start":"end"}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[_e],attrs:cj,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(e,i){1&e&&(x(0,"title"),Be(1),T(),w(),x(2,"g")(3,"text",0),Be(4),T()(),V(5,"path",1)),2&e&&(_(1),Kn(i.label),_(1),ke("transform",i.styleTransform)("transition",i.textTransition),L("transform",i.attrTransform),_(1),ke("text-anchor",i.textAnchor())("shape-rendering","crispEdges"),qt("animation",i.animations),_(1),gt(" ",i.labelTrim?i.trimLabel(i.label,i.labelTrimSize):i.label," "),_(1),qt("animation",i.animations),L("d",i.line)("stroke",i.color))},encapsulation:2,changeDetection:0}),t})(),hp=(()=>{class t{constructor(e){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.dblclick=new k,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+En().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),Jg().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=Qt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().attrTween("d",function(s){this._current=this._current||s;const r=Object.assign({},s);r.endAngle=r.startAngle;const o=or(r,r);return this._current=o(0),function(a){return i(o(a))}}).transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}updateAnimation(){const e=Qt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[_e],attrs:uj,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(e,i){1&e&&(w(),x(0,"g",0),A(1,hj,2,3,"defs",1),x(2,"path",2),E("click",function(){return i.onClick()})("dblclick",function(r){return i.onDblClick(r)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),T()()),2&e&&(_(1),p("ngIf",i.gradient),_(1),ke("pointer-events",i.getPointerEvents()),qt("active",i.isActive),L("d",i.path)("fill",i.getGradient()))},directives:[Ce,np],encapsulation:2,changeDetection:0}),t})(),f8=(()=>{class t extends _t{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new k,this.select=new k,this.activate=new k,this.deactivate=new k}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=wt({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((s,r)=>this.domain.indexOf(s.name)-this.domain.indexOf(r.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[lt],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)})("legendLabelClick",function(r){return i.onClick(r)}),w(),x(1,"g",1)(2,"g",2),E("dblclick",function(r){return i.dblclick.emit(r)})("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),T()()()),2&e&&(p("view",Ke(21,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.translation),_(1),p("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:function(){return[mt,jw]},styles:[kt,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:fadeIn .75s ease-in;animation:fadeIn .75s ease-in}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:drawOut 3s linear;animation:drawOut 3s linear;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}"],encapsulation:2,changeDetection:0}),t})();function $w(t,n,e){let i=1,s=n;const r=t.width;if(r>e)for(;r/s<e;)i+=1,s=Math.ceil(n/i);return[s,i]}let jw=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.dblclick=new k}ngOnChanges(e){this.update()}update(){const i=function sw(){var t=q$,n=X$,e=null,i=Xe(0),s=Xe(lu),r=Xe(0);function o(a){var l,u,h,C,M,c=a.length,d=0,f=new Array(c),g=new Array(c),v=+i.apply(this,arguments),m=Math.min(lu,Math.max(-lu,s.apply(this,arguments)-v)),b=Math.min(Math.abs(m)/c,r.apply(this,arguments)),D=b*(m<0?-1:1);for(l=0;l<c;++l)(M=g[f[l]=l]=+t(a[l],l,a))>0&&(d+=M);for(null!=n?f.sort(function(N,I){return n(g[N],g[I])}):null!=e&&f.sort(function(N,I){return e(a[N],a[I])}),l=0,h=d?(m-c*D)/d:0;l<c;++l,v=C)g[u=f[l]]={data:a[u],index:l,value:M=g[u],startAngle:v,endAngle:C=v+(M>0?M*h:0)+D,padAngle:b};return g}return o.value=function(a){return arguments.length?(t="function"==typeof a?a:Xe(+a),o):t},o.sortValues=function(a){return arguments.length?(n=a,e=null,o):n},o.sort=function(a){return arguments.length?(e=a,n=null,o):e},o.startAngle=function(a){return arguments.length?(i="function"==typeof a?a:Xe(+a),o):i},o.endAngle=function(a){return arguments.length?(s="function"==typeof a?a:Xe(+a),o):s},o.padAngle=function(a){return arguments.length?(r="function"==typeof a?a:Xe(+a),o):r},o}().value(s=>s.value).sort(null)(this.series);this.max=function Z$(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e<i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e<s||void 0===e&&s>=s)&&(e=s)}return e}(i,s=>s.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}outerArc(){return Jg().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(e){const r=e;r.forEach(o=>{o.pos=this.outerArc().centroid(o),o.pos[0]=1.5*this.outerRadius*(this.midAngle(o)<Math.PI?1:-1)});for(let o=0;o<r.length-1;o++){const a=r[o];if(this.labelVisible(a))for(let l=o+1;l<r.length;l++){const c=r[l];if(this.labelVisible(c)&&c.pos[0]*a.pos[0]>0){const u=10-Math.abs(c.pos[1]-a.pos[1]);u>0&&(c.pos[1]+=Math.sign(c.pos[0])*u)}}}return r}labelVisible(e){return this.showLabels&&e.endAngle-e.startAngle>Math.PI/30}getTooltipTitle(e){return this.tooltipTemplate?void 0:this.tooltipText(e)}labelText(e){return this.labelFormatting?this.labelFormatting(e.data.name):this.label(e)}label(e){return on(e.data.name)}defaultTooltipText(e){const i=this.label(e),s=on(e.data.value);return`\n <span class="tooltip-label">${$t(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}color(e){return this.colors.getColor(this.label(e))}trackBy(e,i){return i.data.name}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[_e],attrs:xj,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(e,i){1&e&&A(0,Tj,3,19,"g",0),2&e&&p("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[Oe,Ce,Vw,hp,Bi],encapsulation:2,changeDetection:0}),t})(),dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),m8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi,dp,Bw]]}),t})(),_8=(()=>{class t{constructor(e,i,s){this.cd=i,this.zone=s,this.animations=!0,this.select=new k,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=e.nativeElement}ngOnChanges(e){this.update()}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}update(){this.zone.run(()=>{const e=this.data&&void 0!==this.data.value,i=this.valueFormatting||(a=>a.value.toLocaleString()),s=this.labelFormatting||(a=>$t(Os(a.label,55)));this.transform=`translate(${this.x} , ${this.y})`,this.textWidth=Math.max(0,this.width)-this.textPadding[1]-this.textPadding[3],this.cardWidth=Math.max(0,this.width),this.cardHeight=Math.max(0,this.height),this.label=this.label?this.label:this.data.name;const r={label:this.label,data:this.data,value:this.data.value};this.formattedLabel=s(r),this.transformBand=`translate(0 , ${this.cardHeight-this.bandHeight})`;const o=e?i(r):"";this.value=this.paddedValue(o),this.setPadding(),this.bandPath=vs(0,0,this.cardWidth,this.bandHeight,3,[!1,!1,!0,!0]),setTimeout(()=>{this.scaleText(),this.value=o,e&&!this.initialized&&setTimeout(()=>this.startCount(),20)},8)})}paddedValue(e){return this.medianSize&&this.medianSize>e.length&&(e+="\u2007".repeat(this.medianSize-e.length)),e}startCount(){if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);const e=this.data.value,i=function Aw(t){const n=Number(t);return n%1!=0&&Math.abs(n)<=10?2:0}(e),s=this.valueFormatting||(o=>o.value.toLocaleString());this.animationReq=Dw(0,e,i,1,({value:o,finished:a})=>{this.zone.run(()=>{this.value=s({label:this.label,data:this.data,value:o=a?e:o}),a||(this.value=this.paddedValue(this.value)),this.cd.markForCheck()})}),this.initialized=!0}}scaleText(){this.zone.run(()=>{const{width:e,height:i}=this.textEl.nativeElement.getBoundingClientRect();if(0===e||0===i)return;const s=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,a=Math.min((this.cardWidth-2*s)/e,this.cardHeight/3/i);this.textFontSize=Math.floor(this.textFontSize*a),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding(),this.cd.markForCheck()})}setPadding(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;const e=this.cardHeight/2;this.textPadding[0]=e-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=e-this.labelFontSize}onClick(){this.select.emit(this.data)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Js),Q(Ft))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-card",""]],viewQuery:function(e,i){if(1&e&&gi(dw,5),2&e){let s;Me(s=Le())&&(i.textEl=s.first)}},inputs:{animations:"animations",label:"label",color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[_e],attrs:Cj,decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(e,i){1&e&&(w(),x(0,"g",0),E("click",function(){return i.onClick()}),V(1,"rect",1),A(2,wj,1,3,"path",2),x(3,"title"),Be(4),T(),x(5,"foreignObject",3),Ws(),V(6,"p",4),T(),w(),x(7,"text",5,6),Be(9),T()()),2&e&&(L("transform",i.transform),_(1),ke("fill",i.color),L("width",i.cardWidth)("height",i.cardHeight),_(1),p("ngIf",i.bandColor&&i.bandColor!==i.color),_(2),Kn(i.label),_(1),L("x",i.textPadding[3])("y",i.cardHeight-i.textPadding[2])("width",i.textWidth)("height",i.labelFontSize+i.textPadding[2]),_(1),ke("color",i.textColor)("font-size",i.labelFontSize,"px")("line-height",i.labelFontSize,"px"),p("innerHTML",i.formattedLabel,wl),_(1),ke("fill",i.textColor)("font-size",i.textFontSize,"pt"),L("x",i.textPadding[3])("y",i.textPadding[0]),_(2),gt(" ",i.value," "))},directives:[Ce],encapsulation:2,changeDetection:0}),t})();function Gw(t){const n=wa(t),{r:e,g:i,b:s,opacity:r}=n;return 0===r?n.toString():function y8({r:t,g:n,b:e},i){const s=i<0?0:255,r=i<0?-1*i:i;return`rgb(${t=Math.round((s-t)*r)+t}, ${n=Math.round((s-n)*r)+n}, ${e=Math.round((s-e)*r)+e})`}(n,(299*e+587*i+114*s)/1e3>=128?-.8:.8)}let v8=(()=>{class t{constructor(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new k}ngOnChanges(e){this.update()}update(){if(this.data.length>2){const i=this.valueFormatting||(o=>o.value.toLocaleString()),s=this.data.map(o=>o&&o.data&&null!=o.data.value?i({data:o.data,label:o?o.data.name:"",value:o&&o.data?o.data.value:""}).length:0).sort((o,a)=>a-o),r=Math.ceil(this.data.length/2);this.medianSize=s[r]}const e=this.getCards();this.cards=e.filter(i=>null!==i.data.value),this.emptySlots=e.filter(i=>null===i.data.value)}getCards(){const e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],i="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((s,r)=>{let o=s.data.name;o=o&&"Date"===o.constructor.name?o.toLocaleDateString():o&&o.toLocaleString();const a=s.data.value,l=o?this.colors.getColor(o):this.emptyColor,c=this.cardColor||l||"#000";return{x:s.x,y:s.y,width:s.width-i,height:s.height-e,color:c,bandColor:this.bandColor||l,textColor:this.textColor||Gw(c),label:o,data:s.data,tooltipText:`${o}: ${a}`}})}trackBy(e,i){return i.label}onClick(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-card-series",""]],inputs:{innerPadding:"innerPadding",emptyColor:"emptyColor",animations:"animations",data:"data",slots:"slots",dims:"dims",colors:"colors",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[_e],attrs:Dj,decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(A(0,Aj,1,6,"rect",0),A(1,Sj,1,13,"g",1)),2&e&&(p("ngForOf",i.emptySlots)("ngForTrackBy",i.trackBy),_(1),p("ngForOf",i.cards)("ngForTrackBy",i.trackBy))},directives:[Oe,_8],encapsulation:2,changeDetection:0}),t})(),x8=(()=>{class t extends _t{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=15,this.margin=[10,10,10,10]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const e=$w(this.dims,this.results.length,150),i=e[0]*e[1],s=this.results.slice();for(;s.length<i;)s.push({value:null});this.data=function zw(t,n,e,i){const s=rn(),r=rn(),o=t.width,a=t.height,[l,c]=$w(t,n.length,e),u=[],h=[];for(let m=0;m<c;m++)h.push(m);for(let m=0;m<l;m++)u.push(m);s.domain(u),r.domain(h),s.rangeRound([0,o],.1),r.rangeRound([0,a],.1);const d=[],f=i||function g8(t){return t.map(n=>n?n.value:0).reduce((n,e)=>n+e,0)}(n),g=s.bandwidth(),v=r.bandwidth();for(let m=0;m<n.length;m++)d[m]={},d[m].data={name:n[m]?n[m].name:"",value:n[m]?n[m].value:void 0,extra:n[m]?n[m].extra:void 0,label:n[m]?n[m].label:""},d[m].x=s(m%l),d[m].y=r(Math.floor(m/l)),d[m].width=g,d[m].height=v,d[m].data.percent=f>0?d[m].data.value/f:0,d[m].data.total=f;return d}(this.dims,s,150,this.designatedTotal)}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-number-card"]],inputs:{emptyColor:"emptyColor",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[lt],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),w(),x(1,"g",1)(2,"g",2),E("select",function(r){return i.onClick(r)}),T()()()),2&e&&(p("view",Ke(17,st,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),qt("clickable",i.clickable),L("transform",i.transform),_(1),p("colors",i.colors)("cardColor",i.cardColor)("bandColor",i.bandColor)("textColor",i.textColor)("emptyColor",i.emptyColor)("data",i.data)("dims",i.dims)("innerPadding",i.innerPadding)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations))},directives:[mt,v8],styles:[kt,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;line-height:1em;overflow:hidden;pointer-events:none;text-align:left}ngx-charts-number-card .cell .trimmed-label p{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;width:100%}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"],encapsulation:2,changeDetection:0}),t})(),b8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),w8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),D8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new k,this.deactivate=new k,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const e=[],s=Math.min(.7*this.outerRadius/this.results.length,10),r=.7*s;this.textRadius=this.outerRadius-this.results.length*s,this.cornerRadius=Math.floor(r/2);let o=0;for(const a of this.results){const l=this.outerRadius-o*s,c=l-r,u={endAngle:this.angleSpan*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:this.max,name:a.name}},h={endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:a.value,name:a.name}};e.push({backgroundArc:u,valueArc:h}),o++}return e}getDomain(){return this.results.map(e=>e.name)}getValueDomain(){const e=this.results.map(r=>r.value),i=Math.min(...e),s=Math.max(...e);return this.min=void 0!==this.min?Math.min(this.min,i):i,this.max=void 0!==this.max?Math.max(this.max,s):s,[this.min,this.max]}getValueScale(){return Je().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const e=this.results.map(i=>i.value).reduce((i,s)=>i+s,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(e):e.toLocaleString()}scaleText(e=!0){if(!this.showText)return;const{width:i}=this.textEl.nativeElement.getBoundingClientRect(),s=this.resizeScale;this.resizeScale=0===i?1:Math.floor(this.textRadius/(i/this.resizeScale)*100)/100,this.resizeScale!==s&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),e&&setTimeout(()=>this.scaleText(!1),50))}onClick(e){this.select.emit(e)}getLegendOptions(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}trackBy(e,i){return i.valueArc.data.name}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-gauge"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&gi(dw,5),2&e){let s;Me(s=Le())&&(i.textEl=s.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",showText:"showText",margin:"margin",textValue:"textValue",units:"units",results:"results",axisTickFormatting:"axisTickFormatting",valueFormatting:"valueFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"g",1),A(2,Hj,2,10,"g",2),A(3,Vj,1,9,"g",3),A(4,$j,6,5,"text",4),T()()),2&e&&(p("view",Ke(10,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.transform),_(1),p("ngForOf",i.arcs)("ngForTrackBy",i.trackBy),_(1),p("ngIf",i.showAxis),_(1),p("ngIf",i.showText))},directives:function(){return[mt,Oe,A8,Ce,S8]},styles:[kt,".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{fill:#666;font-size:12px;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"],encapsulation:2,changeDetection:0}),t})(),A8=(()=>{class t{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new k,this.activate=new k,this.deactivate=new k}tooltipText(e){const i=on(e.data.name);let s;return s=this.valueFormatting?this.valueFormatting(e.data.value):on(e.data.value),`\n <span class="tooltip-label">${$t(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{isActive:"isActive",tooltipDisabled:"tooltipDisabled",animations:"animations",backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:zj,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&(w(),V(0,"g",0),x(1,"g",1),E("select",function(r){return i.select.emit(r)})("activate",function(r){return i.activate.emit(r)})("deactivate",function(r){return i.deactivate.emit(r)}),T()),2&e&&(p("startAngle",0)("endAngle",i.backgroundArc.endAngle)("innerRadius",i.backgroundArc.innerRadius)("outerRadius",i.backgroundArc.outerRadius)("cornerRadius",i.cornerRadius)("data",i.backgroundArc.data)("animate",!1)("pointerEvents",!1),_(1),p("startAngle",0)("endAngle",i.valueArc.endAngle)("innerRadius",i.valueArc.innerRadius)("outerRadius",i.valueArc.outerRadius)("cornerRadius",i.cornerRadius)("fill",i.colors.getColor(i.valueArc.data.name))("data",i.valueArc.data)("animate",i.animations)("isActive",i.isActive)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(i.valueArc))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.valueArc.data))},directives:[hp,Bi],encapsulation:2,changeDetection:0}),t})(),S8=(()=>{class t{constructor(){this.rotate=""}ngOnChanges(e){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const e=this.angleSpan/this.bigSegments,i=e/this.smallSegments,r={big:[],small:[]},o=this.radius+10,a=o+20+10;for(let l=0;l<=this.bigSegments;l++){const c=l*e,u=c*Math.PI/180,h=this.getTextAnchor(c);let d=!1;if(0===l&&360===this.angleSpan&&(d=!0),!d){let f=Number.parseFloat(this.valueScale.invert(c).toString()).toLocaleString();this.tickFormatting&&(f=this.tickFormatting(f)),r.big.push({line:this.getTickPath(o,20,u),textAnchor:h,text:f,textTransform:`\n translate(${a*Math.cos(u)}, ${a*Math.sin(u)}) rotate(${-this.rotationAngle})\n `})}if(l!==this.bigSegments)for(let f=1;f<=this.smallSegments;f++){const v=(c+f*i)*Math.PI/180;r.small.push({line:this.getTickPath(o,10,v)})}}return r}getTextAnchor(e){let i="middle";return(e=(this.startAngle+e)%360)>45&&e<=135?i="start":e>225&&e<=315&&(i="end"),i}getTickPath(e,i,s){const r=e*Math.sin(s),o=(e+i)*Math.sin(s),c=[{x:e*Math.cos(s),y:r},{x:(e+i)*Math.cos(s),y:o}];return ou().x(h=>h.x).y(h=>h.y)(c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[_e],attrs:jj,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(e,i){1&e&&(w(),x(0,"g"),A(1,Gj,2,1,"g",0),A(2,Wj,3,4,"g",0),A(3,Yj,2,1,"g",1),T()),2&e&&(L("transform",i.rotate),_(1),p("ngForOf",i.ticks.big),_(1),p("ngForOf",i.ticks.big),_(1),p("ngForOf",i.ticks.small))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),E8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[Hi,dp,Pw]]}),t})(),M8=(()=>{class t{constructor(){!function k8(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[Hi,t8,Pw,r8,l8,Bw,m8,b8,dp,w8,E8]}),t})();var Ww=gp(289);class L8{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let F8=(()=>{class t{constructor(e){this.element=e,this.resized=new k}ngOnInit(){Ww.ResizeSensor&&(this.resizeSensor=new Ww.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new L8(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275dir=xn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),I8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[]]}),t})();const P8=["chartContainer"];function N8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-bar-vertical",3),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("yScaleMax",e.chart.yScaleMax)("yScaleMin",e.chart.yScaleMin)("showDataLabel",e.chart.showDataLabel)}}function O8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-bar-vertical-stacked",4),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("showDataLabel",e.chart.showDataLabel)("yScaleMax",e.chart.yScaleMax)}}function R8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-pie-chart",5),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("labels",e.chart.labels)("trimLabels",e.chart.trimLabels)("maxLabelLength",e.chart.maxLabelLength)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("explodeSlices",e.chart.explodeSlices)("doughnut",e.chart.doughnut)("arcWidth",e.chart.arcWidth)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)}}function B8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-number-card",6),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("cardColor",e.chart.cardColor)("bandColor",e.chart.bandColor)("emptyColor",e.chart.emptyColor)("innerPadding",e.chart.innerPadding)}}function H8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-gauge",7),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("units",e.chart.units)("min",e.chart.min)("max",e.chart.max)("bigSegments",e.chart.bigSegments)("smallSegments",e.chart.smallSegments)("showAxis",e.chart.showAxis)("startAngle",e.chart.startAngle)("angleSpan",e.chart.angleSpan)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)}}function V8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-area-chart-normalized",8),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)}}function $8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-area-chart-stacked",9),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function z8(t,n){if(1&t){const e=z();Mi(0),x(1,"ngx-charts-line-chart",10),E("select",function(s){return S(e),y().onSelect(s)}),T(),Li()}if(2&t){const e=y();_(1),p("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("autoScale",e.chart.autoScale)("gradient",e.chart.gradient)("rangeFillOpacity",e.chart.rangeFillOpacity)("showRefLines",e.chart.showRefLines)("referenceLines",e.chart.referenceLines)("showRefLabels",e.chart.showRefLabels)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}let j8=(()=>{class t{constructor(e,i){this.elementRef=e,this.tooltipService=i}ngAfterViewInit(){this.tooltipService.injectionService.setRootViewContainer(this.chartContainer)}onResized(e){window.dispatchEvent(new Event("resize"))}ngOnChanges(){var e,i,s,r,o;this.chart={type:this.type,results:this.results,legendTitle:this.legendTitle||"Legend",scheme:this.scheme||"cool",animations:this.animations||!0,legend:this.legend||!1,labels:this.labels||!1,customColors:this.customColors||void 0,schemeType:this.schemeType||"ordinal",explodeSlices:this.explodeSlices||!1,doughnut:this.doughnut||!1,arcWidth:this.arcWidth||.25,gradient:this.gradient||!1,activeEntries:this.activeEntries||[],tooltipDisabled:this.tooltipDisabled||!1,trimLabels:this.trimLabels||!0,maxLabelLength:this.maxLabelLength||10,xAxis:this.xAxis||void 0,yAxis:this.yAxis||void 0,showXAxisLabel:this.showXAxisLabel||void 0,showYAxisLabel:this.showYAxisLabel||void 0,xAxisLabel:this.xAxisLabel||void 0,yAxisLabel:this.yAxisLabel||void 0,showGridLines:this.showGridLines||!0,trimXAxisTicks:null===(e=this.trimXAxisTicks)||void 0===e||e,trimYAxisTicks:null===(i=this.trimYAxisTicks)||void 0===i||i,rotateXAxisTicks:null===(s=this.rotateXAxisTicks)||void 0===s||s,maxXAxisTickLength:null!==(r=this.maxXAxisTickLength)&&void 0!==r?r:16,maxYAxisTickLength:null!==(o=this.maxYAxisTickLength)&&void 0!==o?o:16,xAxisTickFormatting:this.xAxisTickFormatting||void 0,yAxisTickFormatting:this.yAxisTickFormatting||void 0,xAxisTicks:this.xAxisTicks||void 0,yAxisTicks:this.yAxisTicks||void 0,barPadding:this.barPadding||8,roundDomains:this.roundDomains||!1,roundEdges:this.roundEdges||!0,yScaleMax:this.yScaleMax||void 0,yScaleMin:this.yScaleMin||void 0,showDataLabel:this.showDataLabel||!1,cardColor:this.cardColor||void 0,bandColor:this.bandColor||void 0,emptyColor:this.emptyColor||"rgba(0, 0, 0, 0)",innerPadding:this.innerPadding||15,textColor:this.textColor||void 0,legendPosition:this.legendPosition||"right",min:this.min||0,max:this.max||100,units:this.units||void 0,bigSegments:this.bigSegments||10,smallSegments:this.smallSegments||5,showAxis:this.showAxis||!0,startAngle:this.startAngle||-120,angleSpan:this.angleSpan||240,timeline:this.timeline||void 0,xScaleMin:this.xScaleMin||void 0,xScaleMax:this.xScaleMax||void 0,autoScale:this.autoScale||void 0,rangeFillOpacity:this.rangeFillOpacity||void 0,showRefLines:this.showRefLines||!1,referenceLines:this.referenceLines||void 0,showRefLabels:this.showRefLabels||!0}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(du))},t.\u0275cmp=q({type:t,selectors:[["drayman-ngx-charts-internal"]],viewQuery:function(e,i){if(1&e&&gi(P8,7,fi),2&e){let s;Me(s=Le())&&(i.chartContainer=s.first)}},inputs:{onSelect:"onSelect",type:"type",results:"results",legendTitle:"legendTitle",scheme:"scheme",animations:"animations",legend:"legend",labels:"labels",customColors:"customColors",schemeType:"schemeType",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",showGridLines:"showGridLines",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",legendPosition:"legendPosition",min:"min",max:"max",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",timeline:"timeline",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",autoScale:"autoScale",rangeFillOpacity:"rangeFillOpacity",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels"},features:[_e],decls:10,vars:9,consts:[[2,"width","100%","height","100%",3,"ngSwitch","resized"],["chartContainer",""],[4,"ngSwitchCase"],[3,"results","scheme","customColors","animations","legend","legendTitle","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","yScaleMax","yScaleMin","showDataLabel","select"],[3,"results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","showDataLabel","yScaleMax","select"],[3,"results","scheme","customColors","animations","labels","trimLabels","maxLabelLength","legend","legendTitle","explodeSlices","doughnut","arcWidth","gradient","activeEntries","tooltipDisabled","schemeType","select"],[3,"results","scheme","schemeType","customColors","animations","cardColor","bandColor","emptyColor","innerPadding","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","units","min","max","bigSegments","smallSegments","showAxis","startAngle","angleSpan","activeEntries","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","rangeFillOpacity","showRefLines","referenceLines","showRefLabels","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"]],template:function(e,i){1&e&&(x(0,"div",0,1),E("resized",function(r){return i.onResized(r)}),A(2,N8,2,32,"ng-container",2),A(3,O8,2,31,"ng-container",2),A(4,R8,2,16,"ng-container",2),A(5,B8,2,9,"ng-container",2),A(6,H8,2,17,"ng-container",2),A(7,V8,2,29,"ng-container",2),A(8,$8,2,33,"ng-container",2),A(9,z8,2,39,"ng-container",2),T()),2&e&&(p("ngSwitch",null==i.chart?null:i.chart.type),_(2),p("ngSwitchCase","verticalBar"),_(1),p("ngSwitchCase","verticalBarStacked"),_(1),p("ngSwitchCase","pie"),_(1),p("ngSwitchCase","numberCard"),_(1),p("ngSwitchCase","gauge"),_(1),p("ngSwitchCase","areaNormalized"),_(1),p("ngSwitchCase","areaStacked"),_(1),p("ngSwitchCase","line"))},directives:[uc,F8,C0,n8,i8,f8,x8,D8,Jj,e8,c8],styles:[""]}),t})(),G8=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function L2(t,n){const e=function w2(t,n){return n.get(Zs).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new E2(t,n.injector),s=function C2(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function y2(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends M2{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(s[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}(j8,{injector:this.injector});customElements.define("drayman-ngx-charts",e)}}return t.\u0275fac=function(e){return new(e||t)(pe(In))},t.\u0275mod=At({type:t}),t.\u0275inj=xt({imports:[[B0,kO,M8,I8]]}),t})();(function hF(){Xx=!1})(),GP().bootstrapModule(G8).catch(t=>console.error(t))})()})();
|
|
1
|
+
(()=>{var Xw={289:(xn,ci,dt)=>{xn.exports={ResizeSensor:dt(294),ElementQueries:dt(322)}},322:function(xn,ci,dt){"use strict";var Di,gn;"undefined"!=typeof window&&window,Di=[dt(294)],void 0!==(gn=function(zn){var qt=function(){var oe,Nt={},Pn=[];function To(B){B||(B=document.documentElement);var G=window.getComputedStyle(B,null).fontSize;return parseFloat(G)||16}function ft(B,G){var he=G.split(/\d/),ue=he[he.length-1];switch(G=parseFloat(G),ue){case"px":default:return G;case"em":return G*To(B);case"rem":return G*To();case"vw":return G*document.documentElement.clientWidth/100;case"vh":return G*document.documentElement.clientHeight/100;case"vmin":case"vmax":var He=document.documentElement.clientWidth/100,Ct=document.documentElement.clientHeight/100;return G*(0,Math["vmin"===ue?"min":"max"])(He,Ct)}}function Se(B,G){this.element=B;var he,ue,He,Ct,rn,ct,Zt,Kt,ui=["min-width","min-height","max-width","max-height"];this.call=function(){for(he in He=function ae(B){if(!B.getBoundingClientRect)return{width:B.offsetWidth,height:B.offsetHeight};var G=B.getBoundingClientRect();return{width:Math.round(G.width),height:Math.round(G.height)}}(this.element),ct={},Nt[G])!Nt[G].hasOwnProperty(he)||(Ct=ft(this.element,(ue=Nt[G][he]).value),rn="width"===ue.property?He.width:He.height,Zt="","min"===ue.mode&&rn>=Ct&&(Zt+=ue.value),"max"===ue.mode&&rn<=Ct&&(Zt+=ue.value),ct[Kt=ue.mode+"-"+ue.property]||(ct[Kt]=""),Zt&&-1===(" "+ct[Kt]+" ").indexOf(" "+Zt+" ")&&(ct[Kt]+=" "+Zt));for(var Xn in ui)!ui.hasOwnProperty(Xn)||(ct[ui[Xn]]?this.element.setAttribute(ui[Xn],ct[ui[Xn]].substr(1)):this.element.removeAttribute(ui[Xn]))}}function jn(B,G){B.elementQueriesSetupInformation||(B.elementQueriesSetupInformation=new Se(B,G)),B.elementQueriesSensor||(B.elementQueriesSensor=new zn(B,function(){B.elementQueriesSetupInformation.call()}))}function Yn(B,G,he,ue){if(void 0===Nt[B]){Nt[B]=[];var He=Pn.length;oe.innerHTML+="\n"+B+" {animation: 0.1s element-queries;}",oe.innerHTML+="\n"+B+" > .resize-sensor {min-width: "+He+"px;}",Pn.push(B)}Nt[B].push({mode:G,property:he,value:ue})}function ce(B){var G;if(document.querySelectorAll&&(G=B?B.querySelectorAll.bind(B):document.querySelectorAll.bind(document)),!G&&"undefined"!=typeof $$&&(G=$$),!G&&"undefined"!=typeof jQuery&&(G=jQuery),!G)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return G}function Gn(B){var G=[],he=[],ue=[],He=0,Ct=-1,rn=[];for(var ct in B.children)if(B.children.hasOwnProperty(ct)&&B.children[ct].tagName&&"img"===B.children[ct].tagName.toLowerCase()){G.push(B.children[ct]);var Zt=B.children[ct].getAttribute("min-width")||B.children[ct].getAttribute("data-min-width"),Kt=B.children[ct].getAttribute("data-src")||B.children[ct].getAttribute("url");ue.push(Kt),he.push({minWidth:Zt}),Zt?B.children[ct].style.display="none":(He=G.length-1,B.children[ct].style.display="block")}function Xn(){var Cn,Qe=!1;for(Cn in G)!G.hasOwnProperty(Cn)||he[Cn].minWidth&&B.offsetWidth>he[Cn].minWidth&&(Qe=Cn);if(Qe||(Qe=He),Ct!==Qe)if(rn[Qe])G[Ct].style.display="none",G[Qe].style.display="block",Ct=Qe;else{var Ts=new Image;Ts.onload=function(){G[Qe].src=ue[Qe],G[Ct].style.display="none",G[Qe].style.display="block",rn[Qe]=!0,Ct=Qe},Ts.src=ue[Qe]}else G[Qe].src=ue[Qe]}Ct=He,B.resizeSensorInstance=new zn(B,Xn),Xn()}var Tn=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Hs=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Qt(B){var G,he,ue,He;for(B=B.replace(/'/g,'"');null!==(G=Tn.exec(B));)for(he=G[1]+G[3],ue=G[2];null!==(He=Hs.exec(ue));)Yn(he,He[1],He[2],He[3])}function ji(B){var G="";if(B)if("string"==typeof B)(-1!==(B=B.toLowerCase()).indexOf("min-width")||-1!==B.indexOf("max-width"))&&Qt(B);else for(var he=0,ue=B.length;he<ue;he++)1===B[he].type?(-1!==(G=B[he].selectorText||B[he].cssText).indexOf("min-height")||-1!==G.indexOf("max-height")||-1!==G.indexOf("min-width")||-1!==G.indexOf("max-width"))&&Qt(G):4===B[he].type?ji(B[he].cssRules||B[he].rules):3===B[he].type&&B[he].styleSheet.hasOwnProperty("cssRules")&&ji(B[he].styleSheet.cssRules)}var bs=!1;this.init=function(){var B="animationstart";void 0!==document.documentElement.style.webkitAnimationName?B="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?B="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(B="oanimationstart"),document.body.addEventListener(B,function(ue){var He=ue.target,Ct=He&&window.getComputedStyle(He,null),rn=Ct&&Ct.getPropertyValue("animation-name");if(rn&&-1!==rn.indexOf("element-queries")){He.elementQueriesSensor=new zn(He,function(){He.elementQueriesSetupInformation&&He.elementQueriesSetupInformation.call()});var Kt=window.getComputedStyle(He.resizeSensor,null).getPropertyValue("min-width");Kt=parseInt(Kt.replace("px","")),jn(ue.target,Pn[Kt])}}),bs||((oe=document.createElement("style")).type="text/css",oe.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",oe.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(oe),bs=!0);for(var G=0,he=document.styleSheets.length;G<he;G++)try{document.styleSheets[G].href&&0===document.styleSheets[G].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[G].href),ji(document.styleSheets[G].cssRules||document.styleSheets[G].rules||document.styleSheets[G].cssText)}catch(ue){}!function Ge(){for(var G=ce()("[data-responsive-image],[responsive-image]"),he=0,ue=G.length;he<ue;he++)Gn(G[he])}()},this.findElementQueriesElements=function(B){!function bn(B){var G=ce(B);for(var he in Nt)if(Nt.hasOwnProperty(he))for(var ue=G(he,B),He=0,Ct=ue.length;He<Ct;He++)jn(ue[He],he)}(B)},this.update=function(){this.init()}};qt.update=function(){qt.instance.update()},qt.detach=function(oe){oe.elementQueriesSetupInformation?(oe.elementQueriesSensor.detach(),delete oe.elementQueriesSetupInformation,delete oe.elementQueriesSensor):oe.resizeSensorInstance&&(oe.resizeSensorInstance.detach(),delete oe.resizeSensorInstance)},qt.init=function(){qt.instance||(qt.instance=new qt),qt.instance.init()};return qt.findElementQueriesElements=function(oe){qt.instance.findElementQueriesElements(oe)},qt.listen=function(){!function(oe){if(document.addEventListener)document.addEventListener("DOMContentLoaded",oe,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Nt=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(oe(),clearInterval(Nt))},10);else window.onload=oe}(qt.init)},qt}.apply(ci,Di))&&(xn.exports=gn)},294:function(xn,ci,dt){"use strict";var Di;"undefined"!=typeof window&&window,void 0!==(Di=function(){if("undefined"==typeof window)return null;var gn="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),zn=gn.requestAnimationFrame||gn.mozRequestAnimationFrame||gn.webkitRequestAnimationFrame||function(ae){return gn.setTimeout(ae,20)},qt=gn.cancelAnimationFrame||gn.mozCancelAnimationFrame||gn.webkitCancelAnimationFrame||function(ae){gn.clearTimeout(ae)};function zi(ae,ft){var Se=Object.prototype.toString.call(ae),jn="[object Array]"===Se||"[object NodeList]"===Se||"[object HTMLCollection]"===Se||"[object Object]"===Se||"undefined"!=typeof jQuery&&ae instanceof jQuery||"undefined"!=typeof Elements&&ae instanceof Elements,Yn=0,ce=ae.length;if(jn)for(;Yn<ce;Yn++)ft(ae[Yn]);else ft(ae)}function oe(ae){if(!ae.getBoundingClientRect)return{width:ae.offsetWidth,height:ae.offsetHeight};var ft=ae.getBoundingClientRect();return{width:Math.round(ft.width),height:Math.round(ft.height)}}function Nt(ae,ft){Object.keys(ft).forEach(function(Se){ae.style[Se]=ft[Se]})}var Pn=function(ae,ft){var Se=0;function jn(){var bn,Gn,ce=[];this.add=function(Ge){ce.push(Ge)},this.call=function(Ge){for(bn=0,Gn=ce.length;bn<Gn;bn++)ce[bn].call(this,Ge)},this.remove=function(Ge){var Tn=[];for(bn=0,Gn=ce.length;bn<Gn;bn++)ce[bn]!==Ge&&Tn.push(ce[bn]);ce=Tn},this.length=function(){return ce.length}}function Yn(ce,bn){if(ce){if(ce.resizedAttached)return void ce.resizedAttached.add(bn);ce.resizedAttached=new jn,ce.resizedAttached.add(bn),ce.resizeSensor=document.createElement("div"),ce.resizeSensor.dir="ltr",ce.resizeSensor.className="resize-sensor";var Gn={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},Ge={position:"absolute",left:"0px",top:"0px",transition:"0s"};Nt(ce.resizeSensor,Gn);var Tn=document.createElement("div");Tn.className="resize-sensor-expand",Nt(Tn,Gn);var Hs=document.createElement("div");Nt(Hs,Ge),Tn.appendChild(Hs);var Qt=document.createElement("div");Qt.className="resize-sensor-shrink",Nt(Qt,Gn);var ji=document.createElement("div");Nt(ji,Ge),Nt(ji,{width:"200%",height:"200%"}),Qt.appendChild(ji),ce.resizeSensor.appendChild(Tn),ce.resizeSensor.appendChild(Qt),ce.appendChild(ce.resizeSensor);var bs=window.getComputedStyle(ce),B=bs?bs.getPropertyValue("position"):null;"absolute"!==B&&"relative"!==B&&"fixed"!==B&&"sticky"!==B&&(ce.style.position="relative");var G=!1,he=0,ue=oe(ce),He=0,Ct=0,rn=!0;Se=0;var Zt=function(){if(rn){if(0===ce.offsetWidth&&0===ce.offsetHeight)return void(Se||(Se=zn(function(){Se=0,Zt()})));rn=!1}var Qe,Cn;Cn=ce.offsetHeight,Hs.style.width=(Qe=ce.offsetWidth)+10+"px",Hs.style.height=Cn+10+"px",Tn.scrollLeft=Qe+10,Tn.scrollTop=Cn+10,Qt.scrollLeft=Qe+10,Qt.scrollTop=Cn+10};ce.resizeSensor.resetSensor=Zt;var Kt=function(){he=0,G&&(He=ue.width,Ct=ue.height,ce.resizedAttached&&ce.resizedAttached.call(ue))},ui=function(){ue=oe(ce),(G=ue.width!==He||ue.height!==Ct)&&!he&&(he=zn(Kt)),Zt()},Xn=function(Qe,Cn,Ts){Qe.attachEvent?Qe.attachEvent("on"+Cn,Ts):Qe.addEventListener(Cn,Ts)};Xn(Tn,"scroll",ui),Xn(Qt,"scroll",ui),Se=zn(function(){Se=0,Zt()})}}zi(ae,function(ce){Yn(ce,ft)}),this.detach=function(ce){Se||(qt(Se),Se=0),Pn.detach(ae,ce)},this.reset=function(){ae.resizeSensor.resetSensor()}};if(Pn.reset=function(ae){zi(ae,function(ft){ft.resizeSensor.resetSensor()})},Pn.detach=function(ae,ft){zi(ae,function(Se){!Se||Se.resizedAttached&&"function"==typeof ft&&(Se.resizedAttached.remove(ft),Se.resizedAttached.length())||Se.resizeSensor&&(Se.contains(Se.resizeSensor)&&Se.removeChild(Se.resizeSensor),delete Se.resizeSensor,delete Se.resizedAttached)})},"undefined"!=typeof MutationObserver){var To=new MutationObserver(function(ae){for(var ft in ae)if(ae.hasOwnProperty(ft))for(var Se=ae[ft].addedNodes,jn=0;jn<Se.length;jn++)Se[jn].resizeSensor&&Pn.reset(Se[jn])});document.addEventListener("DOMContentLoaded",function(ae){To.observe(document.body,{childList:!0,subtree:!0})})}return Pn}.call(ci,dt,ci,xn))&&(xn.exports=Di)}},fm={};function gm(xn){var ci=fm[xn];if(void 0!==ci)return ci.exports;var dt=fm[xn]={exports:{}};return Xw[xn].call(dt.exports,dt,dt.exports,gm),dt.exports}(()=>{"use strict";function xn(t){return"function"==typeof t}let ci=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else ci&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ci=t},get useDeprecatedSynchronousErrorHandling(){return ci}};function fn(t){setTimeout(()=>{throw t},0)}const Di={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;fn(t)},complete(){}},gn=Array.isArray||(t=>t&&"number"==typeof t.length);function zn(t){return null!==t&&"object"==typeof t}const zi=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class oe{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof oe)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(xn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof zi?Nt(o.errors):[o]}}if(gn(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(zn(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof zi?n=n.concat(Nt(c.errors)):n.push(c)}}}if(n)throw new zi(n)}add(n){let e=n;if(!n)return oe.EMPTY;switch(typeof n){case"function":e=new oe(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof oe)){const r=e;e=new oe,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof oe){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function Nt(t){return t.reduce((n,e)=>n.concat(e instanceof zi?e.errors:e),[])}oe.EMPTY=((t=new oe).closed=!0,t);const Pn="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ae extends oe{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Di;break;case 1:if(!n){this.destination=Di;break}if("object"==typeof n){n instanceof ae?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ft(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ft(this,n,e,i)}}[Pn](){return this}static create(n,e,i){const s=new ae(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ft extends ae{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;xn(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==Di&&(o=Object.create(e),xn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=dt;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):fn(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;fn(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;fn(i)}}__tryOrSetError(n,e,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return dt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(fn(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Yn="function"==typeof Symbol&&Symbol.observable||"@@observable";function ce(t){return t}let Ge=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function jn(t,n,e){if(t){if(t instanceof ae)return t;if(t[Pn])return t[Pn]()}return t||n||e?new ae(t,n,e):new ae(Di)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),dt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){dt.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Se(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof ae?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Tn(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Yn](){return this}pipe(...e){return 0===e.length?this:function Gn(t){return 0===t.length?ce:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=Tn(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function Tn(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Qt=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class ji extends oe{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class bs extends ae{constructor(n){super(n),this.destination=n}}let B=(()=>{class t extends Ge{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Pn](){return new bs(this)}lift(e){const i=new G(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Qt;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new Qt;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Qt;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Qt;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Qt;return this.hasError?(e.error(this.thrownError),oe.EMPTY):this.isStopped?(e.complete(),oe.EMPTY):(this.observers.push(e),new ji(this,e))}asObservable(){const e=new Ge;return e.source=this,e}}return t.create=(n,e)=>new G(n,e),t})();class G extends B{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):oe.EMPTY}}function he(t){return t&&"function"==typeof t.schedule}function ue(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new He(t,n))}}class He{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new Ct(n,this.project,this.thisArg))}}class Ct extends ae{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const rn=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Kt=function Zt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Cn=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ts(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const mm=t=>{if(t&&"function"==typeof t[Yn])return(t=>n=>{const e=t[Yn]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Cn(t))return rn(t);if(Ts(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,fn),n))(t);if(t&&"function"==typeof t[Kt])return(t=>n=>{const e=t[Kt]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${zn(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function xu(t,n){return new Ge(e=>{const i=new oe;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function pm(t,n){return n?function Kw(t,n){if(null!=t){if(function Qw(t){return t&&"function"==typeof t[Yn]}(t))return function Ww(t,n){return new Ge(e=>{const i=new oe;return i.add(n.schedule(()=>{const s=t[Yn]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(Ts(t))return function Uw(t,n){return new Ge(e=>{const i=new oe;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(Cn(t))return xu(t,n);if(function Zw(t){return t&&"function"==typeof t[Kt]}(t)||"string"==typeof t)return function qw(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ge(e=>{const i=new oe;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[Kt](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Ge?t:new Ge(mm(t))}class _m extends ae{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class vm extends ae{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function ym(t,n){if(!n.closed)return t instanceof Ge?t.subscribe(n):mm(t)(n)}function xm(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(xm((s,r)=>pm(t(s,r)).pipe(ue((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Jw(t,e)))}class Jw{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new eD(n,this.project,this.concurrent))}}class eD extends vm{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new _m(this),i=this.destination;i.add(e);const s=ym(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function tD(t=Number.POSITIVE_INFINITY){return xm(ce,t)}function bm(t,n){return n?xu(t,n):new Ge(rn(t))}function Tm(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return he(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Ge?t[0]:tD(n)(bm(t,e))}function Cm(){return function(n){return n.lift(new nD(n))}}class nD{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new iD(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class iD extends ae{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class sD extends Ge{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new oe,n.add(this.source.subscribe(new oD(this.getSubject(),this))),n.closed&&(this._connection=null,n=oe.EMPTY)),n}refCount(){return Cm()(this)}}const rD=(()=>{const t=sD.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class oD extends bs{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cD{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function uD(){return new B}function Ze(t){for(let n in t)if(t[n]===Ze)return n;throw Error("Could not find renamed property on target object.")}function bu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Xe(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Xe).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Tu(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const dD=Ze({__forward_ref__:Ze});function Cu(t){return t.__forward_ref__=Cu,t.toString=function(){return Xe(this())},t}function be(t){return wm(t)?t():t}function wm(t){return"function"==typeof t&&t.hasOwnProperty(dD)&&t.__forward_ref__===Cu}class K extends Error{constructor(n,e){super(function wu(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function de(t){return"string"==typeof t?t:null==t?"":String(t)}function on(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():de(t)}function Ga(t,n){const e=n?` in ${n}`:"";throw new K(-201,`No provider for ${on(t)} found${e}`)}function Un(t,n){null==t&&function We(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function je(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Du(t){return Dm(t,Xa)||Dm(t,Sm)}function Dm(t,n){return t.hasOwnProperty(n)?t[n]:null}function Am(t){return t&&(t.hasOwnProperty(Au)||t.hasOwnProperty(yD))?t[Au]:null}const Xa=Ze({\u0275prov:Ze}),Au=Ze({\u0275inj:Ze}),Sm=Ze({ngInjectableDef:Ze}),yD=Ze({ngInjectorDef:Ze});var _e=(()=>((_e=_e||{})[_e.Default=0]="Default",_e[_e.Host=1]="Host",_e[_e.Self=2]="Self",_e[_e.SkipSelf=4]="SkipSelf",_e[_e.Optional=8]="Optional",_e))();let Su;function Cs(t){const n=Su;return Su=t,n}function Em(t,n,e){const i=Du(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&_e.Optional?null:void 0!==n?n:void Ga(Xe(t),"Injector")}function ws(t){return{toString:t}.toString()}var Ai=(()=>((Ai=Ai||{})[Ai.OnPush=0]="OnPush",Ai[Ai.Default=1]="Default",Ai))(),Si=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Si||(Si={})),Si))();const bD="undefined"!=typeof globalThis&&globalThis,TD="undefined"!=typeof window&&window,CD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue=bD||"undefined"!=typeof global&&global||TD||CD,yr={},Ke=[],Wa=Ze({\u0275cmp:Ze}),Eu=Ze({\u0275dir:Ze}),ku=Ze({\u0275pipe:Ze}),km=Ze({\u0275mod:Ze}),rs=Ze({\u0275fac:Ze}),Co=Ze({__NG_ELEMENT_ID__:Ze});let wD=0;function Q(t){return ws(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ai.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ke,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Si.Emulated,id:"c",styles:t.styles||Ke,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=wD++,i.inputs=Im(t.inputs,e),i.outputs=Im(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(Lm):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Mm):null,i})}function Lm(t){return an(t)||function Ds(t){return t[Eu]||null}(t)}function Mm(t){return function Vs(t){return t[ku]||null}(t)}const Fm={};function Lt(t){return ws(()=>{const n={type:t.type,bootstrap:t.bootstrap||Ke,declarations:t.declarations||Ke,imports:t.imports||Ke,exports:t.exports||Ke,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Fm[t.id]=t.type),n})}function Im(t,n){if(null==t)return yr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const wn=Q;function an(t){return t[Wa]||null}function hi(t,n){const e=t[km]||null;if(!e&&!0===n)throw new Error(`Type ${Xe(t)} does not have '\u0275mod' property.`);return e}function Yi(t){return Array.isArray(t)&&"object"==typeof t[1]}function ki(t){return Array.isArray(t)&&!0===t[1]}function Fu(t){return 0!=(8&t.flags)}function Za(t){return 2==(2&t.flags)}function Ka(t){return 1==(1&t.flags)}function Li(t){return null!==t.template}function LD(t){return 0!=(512&t[2])}function Ys(t,n){return t.hasOwnProperty(rs)?t[rs]:null}class Nm{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function xe(){return Om}function Om(t){return t.type.prototype.ngOnChanges&&(t.setInput=PD),ID}function ID(){const t=Bm(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===yr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function PD(t,n,e,i){const s=Bm(t)||function ND(t,n){return t[Rm]=n}(t,{previous:yr,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Nm(l&&l.currentValue,n,o===yr),t[i]=n}xe.ngInherit=!0;const Rm="__ngSimpleChanges__";function Bm(t){return t[Rm]||null}let Ru;function Bu(){return void 0!==Ru?Ru:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Hm={createRenderer:(t,n)=>Bu()};function Ot(t){for(;Array.isArray(t);)t=t[0];return t}function Ja(t,n){return Ot(n[t])}function Qn(t,n){return Ot(n[t.index])}function Hu(t,n){return t.data[n]}function Zn(t,n){const e=n[t];return Yi(e)?e:e[0]}function Vm(t){return 4==(4&t[2])}function Vu(t){return 128==(128&t[2])}function As(t,n){return null==n?null:t[n]}function $m(t){t[18]=0}function $u(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const fe={lFrame:Qm(null),bindingsEnabled:!0};function jm(){return fe.bindingsEnabled}function I(){return fe.lFrame.lView}function Ne(){return fe.lFrame.tView}function w(t){return fe.lFrame.contextLView=t,t[8]}function jt(){let t=Ym();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ym(){return fe.lFrame.currentTNode}function Gi(t,n){const e=fe.lFrame;e.currentTNode=t,e.isParent=n}function zu(){return fe.lFrame.isParent}function ju(){fe.lFrame.isParent=!1}function An(){const t=fe.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Dr(){return fe.lFrame.bindingIndex++}function as(t){const n=fe.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function KD(t,n){const e=fe.lFrame;e.bindingIndex=e.bindingRootIndex=t,Yu(n)}function Yu(t){fe.lFrame.currentDirectiveIndex=t}function Wm(){return fe.lFrame.currentQueryIndex}function Xu(t){fe.lFrame.currentQueryIndex=t}function eA(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Um(t,n,e){if(e&_e.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&_e.Host||(s=eA(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=fe.lFrame=qm();return i.currentTNode=n,i.lView=t,!0}function tl(t){const n=qm(),e=t[1];fe.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function qm(){const t=fe.lFrame,n=null===t?null:t.child;return null===n?Qm(t):n}function Qm(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Zm(){const t=fe.lFrame;return fe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Km=Zm;function nl(){const t=Zm();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Sn(){return fe.lFrame.selectedIndex}function Ss(t){fe.lFrame.selectedIndex=t}function gt(){const t=fe.lFrame;return Hu(t.tView,t.selectedIndex)}function A(){fe.lFrame.currentNamespace="svg"}function Gs(){!function sA(){fe.lFrame.currentNamespace=null}()}function il(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function sl(t,n,e){Jm(t,n,3,e)}function rl(t,n,e,i){(3&t[2])===e&&Jm(t,n,e,i)}function Wu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Jm(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(aA(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function aA(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Eo{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ol(t,n,e){const i=At(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];qu(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function ep(t){return 3===t||4===t||6===t}function qu(t){return 64===t.charCodeAt(0)}function al(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||tp(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function tp(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function np(t){return-1!==t}function Ar(t){return 32767&t}function Sr(t,n){let e=function dA(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Qu=!0;function ll(t){const n=Qu;return Qu=t,n}let fA=0;function Lo(t,n){const e=Ku(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Zu(i.data,t),Zu(n,null),Zu(i.blueprint,null));const s=cl(t,n),r=t.injectorIndex;if(np(s)){const o=Ar(s),a=Sr(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Zu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ku(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ul(t,n,e){!function gA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Co)&&(i=e[Co]),null==i&&(i=e[Co]=fA++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function rp(t,n,e){if(e&_e.Optional)return t;Ga(n,"NodeInjector")}function op(t,n,e,i){if(e&_e.Optional&&void 0===i&&(i=null),0==(e&(_e.Self|_e.Host))){const s=t[9],r=Cs(void 0);try{return s?s.get(n,i,e&_e.Optional):Em(n,i,e&_e.Optional)}finally{Cs(r)}}return rp(i,n,e)}function ap(t,n,e,i=_e.Default,s){if(null!==t){const r=function vA(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Co)?t[Co]:void 0;return"number"==typeof n?n>=0?255&n:pA:n}(e);if("function"==typeof r){if(!Um(n,t,i))return i&_e.Host?rp(s,e,i):op(n,e,i,s);try{const o=r(i);if(null!=o||i&_e.Optional)return o;Ga(e)}finally{Km()}}else if("number"==typeof r){let o=null,a=Ku(t,n),l=-1,c=i&_e.Host?n[16][6]:null;for((-1===a||i&_e.SkipSelf)&&(l=-1===a?cl(t,n):n[a+8],-1!==l&&up(i,!1)?(o=n[1],a=Ar(l),n=Sr(l,n)):a=-1);-1!==a;){const u=n[1];if(cp(r,a,u.data)){const h=_A(a,n,e,o,i,c);if(h!==lp)return h}l=n[a+8],-1!==l&&up(i,n[1].data[a+8]===c)&&cp(r,a,n)?(o=u,a=Ar(l),n=Sr(l,n)):a=-1}}}return op(n,e,i,s)}const lp={};function pA(){return new Er(jt(),I())}function _A(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],u=hl(a,o,e,null==i?Za(a)&&Qu:i!=o&&0!=(3&a.type),s&_e.Host&&r===a);return null!==u?Mo(n,o,u,a):lp}function hl(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,d=s?a+u:t.directiveEnd;for(let f=i?a:a+u;f<d;f++){const g=o[f];if(f<l&&e===g||f>=l&&g.type===e)return f}if(s){const f=o[l];if(f&&Li(f)&&f.type===e)return l}return null}function Mo(t,n,e,i){let s=t[e];const r=n.data;if(function lA(t){return t instanceof Eo}(s)){const o=s;o.resolving&&function fD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new K(-200,`Circular dependency in DI detected for ${t}${e}`)}(on(r[e]));const a=ll(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Cs(o.injectImpl):null;Um(t,i,_e.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function oA(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Om(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Cs(l),ll(a),o.resolving=!1,Km()}}return s}function cp(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function up(t,n){return!(t&_e.Self||t&_e.Host&&n)}class Er{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return ap(this._tNode,this._lView,n,i,e)}}function mt(t){return ws(()=>{const n=t.prototype.constructor,e=n[rs]||Ju(n),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const r=s[rs]||Ju(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new r})}function Ju(t){return wm(t)?()=>{const n=Ju(be(t));return n&&n()}:Ys(t)}const Lr="__parameters__";function Fr(t,n,e){return ws(()=>{const i=function th(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,u){const h=l.hasOwnProperty(Lr)?l[Lr]:Object.defineProperty(l,Lr,{value:[]})[Lr];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Oe{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=je({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function gi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),gi(i,n)):n!==t&&n.push(i)}return n}function Xi(t,n){t.forEach(e=>Array.isArray(e)?Xi(e,n):n(e))}function dp(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function dl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Po(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Kn(t,n,e){let i=Ir(t,n);return i>=0?t[1|i]=e:(i=~i,function TA(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ih(t,n){const e=Ir(t,n);if(e>=0)return t[1|e]}function Ir(t,n){return function mp(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const No={},rh="__NG_DI_FLAG__",gl="ngTempTokenPath",kA=/\n/gm,_p="__source",MA=Ze({provide:String,useValue:Ze});let Oo;function vp(t){const n=Oo;return Oo=t,n}function FA(t,n=_e.Default){if(void 0===Oo)throw new K(203,"");return null===Oo?Em(t,void 0,n):Oo.get(t,n&_e.Optional?null:void 0,n)}function ve(t,n=_e.Default){return(function xD(){return Su}()||FA)(be(t),n)}const IA=ve;function oh(t){const n=[];for(let e=0;e<t.length;e++){const i=be(t[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let s,r=_e.Default;for(let o=0;o<i.length;o++){const a=i[o],l=PA(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(ve(s,r))}else n.push(ve(i))}return n}function Ro(t,n){return t[rh]=n,t.prototype[rh]=n,t}function PA(t){return t[rh]}const ml=Ro(Fr("Optional"),8),pl=Ro(Fr("SkipSelf"),4);var Jn=(()=>((Jn=Jn||{})[Jn.Important=1]="Important",Jn[Jn.DashCase=2]="DashCase",Jn))();const Ap="__ngContext__";function pn(t,n){t[Ap]=n}function uh(t){const n=function Ho(t){return t[Ap]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function dh(t,n){return undefined(t,n)}function Vo(t){const n=t[3];return ki(n)?n[3]:n}function fh(t){return Ip(t[13])}function gh(t){return Ip(t[4])}function Ip(t){for(;null!==t&&!ki(t);)t=t[4];return t}function Nr(t,n,e,i,s){if(null!=i){let r,o=!1;ki(i)?r=i:Yi(i)&&(o=!0,i=i[0]);const a=Ot(i);0===t&&null!==e?null==s?Hp(n,e,a):Xs(n,e,a,s||null,!0):1===t&&null!==e?Xs(n,e,a,s||null,!0):2===t?function bh(t,n,e){const i=vl(t,n);i&&function h1(t,n,e,i){At(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function g1(t,n,e,i,s){const r=e[7];r!==Ot(e)&&Nr(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];$o(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function ph(t,n,e){if(At(t))return t.createElement(n,e);{const i=null!==e?function HD(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function Np(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,$u(s,-1)),e.splice(i,1)}function _h(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&Np(s,i),n>0&&(t[e-1][4]=i[4]);const r=dl(t,10+n);!function i1(t,n){$o(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Op(t,n){if(!(256&n[2])){const e=n[11];At(e)&&e.destroyNode&&$o(t,n,e,3,null,null),function o1(t){let n=t[13];if(!n)return vh(t[1],t);for(;n;){let e=null;if(Yi(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Yi(n)&&vh(n[1],n),n=n[3];null===n&&(n=t),Yi(n)&&vh(n[1],n),e=n&&n[4]}n=e}}(n)}}function vh(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function u1(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Eo)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function c1(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):Ot(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&At(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&ki(n[3])){e!==n[3]&&Np(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Rp(t,n,e){return function Bp(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===Si.None||s===Si.Emulated)return null}return Qn(i,e)}(t,n.parent,e)}function Xs(t,n,e,i,s){At(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function Hp(t,n,e){At(t)?t.appendChild(n,e):n.appendChild(e)}function Vp(t,n,e,i,s){null!==i?Xs(t,n,e,i,s):Hp(t,n,e)}function vl(t,n){return At(t)?t.parentNode(n):n.parentNode}function $p(t,n,e){return jp(t,n,e)}let bl,Tl,jp=function zp(t,n,e){return 40&t.type?Qn(t,e):null};function yl(t,n,e,i){const s=Rp(t,i,n),r=n[11],a=$p(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)Vp(r,s,e[l],a,!1);else Vp(r,s,e,a,!1)}function xl(t,n){if(null!==n){const e=n.type;if(3&e)return Qn(n,t);if(4&e)return xh(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return xl(t,i);{const s=t[n.index];return ki(s)?xh(-1,s):Ot(s)}}if(32&e)return dh(n,t)()||Ot(t[n.index]);{const i=Gp(t,n);return null!==i?Array.isArray(i)?i[0]:xl(Vo(t[16]),i):xl(t,n.next)}}return null}function Gp(t,n){return null!==n?t[16][6].projection[n.projection]:null}function xh(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return xl(i,s)}return n[7]}function Th(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&pn(Ot(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Th(t,n,e.child,i,s,r,!1),Nr(n,t,s,a,r);else if(32&l){const c=dh(e,i);let u;for(;u=c();)Nr(n,t,s,u,r);Nr(n,t,s,a,r)}else 16&l?Xp(t,n,i,e,s,r):Nr(n,t,s,a,r);e=o?e.projectionNext:e.next}}function $o(t,n,e,i,s,r){Th(e,i,t.firstChild,n,s,r,!1)}function Xp(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Nr(n,t,s,l[c],r);else Th(t,n,l,o[3],s,r,!0)}function Wp(t,n,e){At(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function Ch(t,n,e){At(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Ws(t){var n;return(null===(n=function wh(){if(void 0===bl&&(bl=null,Ue.trustedTypes))try{bl=Ue.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return bl}())||void 0===n?void 0:n.createHTML(t))||t}function Up(t){var n;return(null===(n=function Dh(){if(void 0===Tl&&(Tl=null,Ue.trustedTypes))try{Tl=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Tl}())||void 0===n?void 0:n.createHTML(t))||t}class Us{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class y1 extends Us{getTypeName(){return"HTML"}}class x1 extends Us{getTypeName(){return"Style"}}class b1 extends Us{getTypeName(){return"Script"}}class T1 extends Us{getTypeName(){return"URL"}}class C1 extends Us{getTypeName(){return"ResourceURL"}}function ei(t){return t instanceof Us?t.changingThisBreaksApplicationSecurity:t}function Wi(t,n){const e=Zp(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function Zp(t){return t instanceof Us&&t.getTypeName()||null}class k1{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ws(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class L1{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ws(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ws(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const F1=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,I1=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zo(t){return(t=String(t)).match(F1)||t.match(I1)?t:"unsafe:"+t}function Jp(t){return(t=String(t)).split(",").map(n=>zo(n.trim())).join(", ")}function Ui(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function jo(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const e_=Ui("area,br,col,hr,img,wbr"),t_=Ui("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n_=Ui("rp,rt"),Ah=jo(e_,jo(t_,Ui("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jo(n_,Ui("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jo(n_,t_)),Sh=Ui("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Eh=Ui("srcset"),i_=jo(Sh,Eh,Ui("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ui("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),P1=Ui("script,style,template");class N1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Ah.hasOwnProperty(e))return this.sanitizedSomething=!0,!P1.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!i_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;Sh[a]&&(l=zo(l)),Eh[a]&&(l=Jp(l)),this.buf.push(" ",o,'="',s_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Ah.hasOwnProperty(e)&&!e_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(s_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const O1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,R1=/([^\#-~ |!])/g;function s_(t){return t.replace(/&/g,"&").replace(O1,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(R1,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Cl;function r_(t,n){let e=null;try{Cl=Cl||function Kp(t){const n=new L1(t);return function M1(){try{return!!(new window.DOMParser).parseFromString(Ws(""),"text/html")}catch(t){return!1}}()?new k1(n):n}(t);let i=n?String(n):"";e=Cl.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=Cl.getInertBodyElement(i)}while(i!==r);return Ws((new N1).sanitizeChildren(kh(e)||e))}finally{if(e){const i=kh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function kh(t){return"content"in t&&function B1(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var it=(()=>((it=it||{})[it.NONE=0]="NONE",it[it.HTML=1]="HTML",it[it.STYLE=2]="STYLE",it[it.SCRIPT=3]="SCRIPT",it[it.URL=4]="URL",it[it.RESOURCE_URL=5]="RESOURCE_URL",it))();function wl(t){const n=function Yo(){const t=I();return t&&t[12]}();return n?Up(n.sanitize(it.HTML,t)||""):Wi(t,"HTML")?Up(ei(t)):r_(Bu(),de(t))}function Mh(t){return t.ngOriginalError}function U1(t,...n){t.error(...n)}class Go{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function W1(t){return t&&t.ngErrorLogger||U1}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Mh(n);for(;e&&Mh(e);)e=Mh(e);return e||null}}const tS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ue))();function l_(t){return t.ownerDocument.defaultView}function qi(t){return t instanceof Function?t():t}function u_(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const h_="ng-template";function sS(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==u_(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function d_(t){return 4===t.type&&t.value!==h_}function rS(t,n,e){return n===(4!==t.type||e?t.value:h_)}function oS(t,n,e){let i=4;const s=t.attrs||[],r=function cS(t){for(let n=0;n<t.length;n++)if(ep(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!rS(t,l,e)||""===l&&1===n.length){if(Mi(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sS(t.attrs,c,e)){if(Mi(i))return!1;o=!0}continue}const h=aS(8&i?"class":l,s,d_(t),e);if(-1===h){if(Mi(i))return!1;o=!0;continue}if(""!==c){let d;d=h>r?"":s[h+1].toLowerCase();const f=8&i?d:null;if(f&&-1!==u_(f,c,0)||2&i&&c!==d){if(Mi(i))return!1;o=!0}}}}else{if(!o&&!Mi(i)&&!Mi(l))return!1;if(o&&Mi(l))continue;o=!1,i=l|1&i}}return Mi(i)||o}function Mi(t){return 0==(1&t)}function aS(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function uS(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function f_(t,n,e=!1){for(let i=0;i<n.length;i++)if(oS(t,n[i],e))return!0;return!1}function hS(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function g_(t,n){return t?":not("+n.trim()+")":n}function dS(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!Mi(o)&&(n+=g_(r,s),s=""),i=o,r=r||!Mi(i);e++}return""!==s&&(n+=g_(r,s)),n}const ge={};function _(t){m_(Ne(),I(),Sn()+t,!1)}function m_(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&sl(n,r,e)}else{const r=t.preOrderHooks;null!==r&&rl(n,r,0,e)}Ss(e)}function Dl(t,n){return t<<17|n<<2}function Fi(t){return t>>17&32767}function Fh(t){return 2|t}function ls(t){return(131068&t)>>2}function Ih(t,n){return-131069&t|n<<2}function Ph(t){return 1|t}function A_(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];Xu(s),o.contentQueries(2,n[r],r)}}}function Xo(t,n,e,i,s,r,o,a,l,c){const u=n.blueprint.slice();return u[0]=s,u[2]=140|i,$m(u),u[3]=u[15]=t,u[8]=e,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==n.type?t[16]:u,u}function Rr(t,n,e,i,s){let r=t.data[n];if(null===r)r=function jh(t,n,e,i,s){const r=Ym(),o=zu(),l=t.data[n]=function LS(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function ZD(){return fe.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function So(){const t=fe.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return Gi(r,!0),r}function Br(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function Wo(t,n,e){tl(n);try{const i=t.viewQuery;null!==i&&Kh(1,i,e);const s=t.template;null!==s&&S_(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&A_(t,n),t.staticViewQueries&&Kh(2,t.viewQuery,e);const r=t.components;null!==r&&function SS(t,n){for(let e=0;e<n.length;e++)US(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,nl()}}function Hr(t,n,e,i){const s=n[2];if(256!=(256&s)){tl(n);try{$m(n),function Gm(t){return fe.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&S_(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&sl(n,c,null)}else{const c=t.preOrderHooks;null!==c&&rl(n,c,0,null),Wu(n,0)}if(function XS(t){for(let n=fh(t);null!==n;n=gh(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&$u(r,1),s[2]|=1024}}}(n),function GS(t){for(let n=fh(t);null!==n;n=gh(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];Vu(i)&&Hr(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&A_(t,n),o){const c=t.contentCheckHooks;null!==c&&sl(n,c)}else{const c=t.contentHooks;null!==c&&rl(n,c,1),Wu(n,1)}!function DS(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)Ss(~s);else{const r=s,o=e[++i],a=e[++i];KD(o,r),a(2,n[r])}}}finally{Ss(-1)}}(t,n);const a=t.components;null!==a&&function AS(t,n){for(let e=0;e<n.length;e++)WS(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Kh(2,l,i),o){const c=t.viewCheckHooks;null!==c&&sl(n,c)}else{const c=t.viewHooks;null!==c&&rl(n,c,2),Wu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,$u(n[3],-1))}finally{nl()}}}function ES(t,n,e,i){const s=n[10],o=Vm(n);try{!o&&s.begin&&s.begin(),o&&Wo(t,n,i),Hr(t,n,e,i)}finally{!o&&s.end&&s.end()}}function S_(t,n,e,i,s){const r=Sn(),o=2&i;try{Ss(-1),o&&n.length>20&&m_(t,n,20,!1),e(i,s)}finally{Ss(r)}}function E_(t,n,e){if(Fu(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Yh(t,n,e){!jm()||(function RS(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Lo(e,n),pn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=Li(l);c&&zS(n,e,l);const u=Mo(n,t,a,e);pn(u,n),null!==o&&jS(0,a-s,u,l,0,o),c&&(Zn(e.index,n)[8]=u)}}(t,n,e,Qn(e,n)),128==(128&e.flags)&&function BS(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function JD(){return fe.lFrame.currentDirectiveIndex}();try{Ss(o);for(let l=i;l<s;l++){const c=t.data[l],u=n[l];Yu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&O_(c,u)}}finally{Ss(-1),Yu(a)}}(t,n,e))}function Gh(t,n,e=Qn){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function k_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=El(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function El(t,n,e,i,s,r,o,a,l,c){const u=20+i,h=u+s,d=function kS(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:ge);return e}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:e,queries:null,viewQuery:a,declTNode:n,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function F_(t,n,e,i){const s=z_(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&j_(t).push(i,s.length-1))}function I_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Xh(t,n,e,i){let s=!1;if(jm()){const r=function HS(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];f_(e,o.selectors,!1)&&(s||(s=[]),ul(Lo(e,n),t,o.type),Li(o)?(R_(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,B_(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const h=r[u];h.providersResolver&&h.providersResolver(h)}let a=!1,l=!1,c=Br(t,n,r.length,null);for(let u=0;u<r.length;u++){const h=r[u];e.mergedAttrs=al(e.mergedAttrs,h.hostAttrs),H_(t,e,n,c,h),$S(c,h,o),null!==h.contentQueries&&(e.flags|=8),(null!==h.hostBindings||null!==h.hostAttrs||0!==h.hostVars)&&(e.flags|=128);const d=h.type.prototype;!a&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function MS(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=s[c],h=u.inputs,d=null===r||d_(n)?null:YS(h,r);o.push(d),a=I_(h,c,a),l=I_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function VS(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new K(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=al(e.mergedAttrs,e.attrs),s}function N_(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function OS(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function O_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function R_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function $S(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Li(n)&&(e[""]=t)}}function B_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function H_(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Ys(s.type)),o=new Eo(r,Li(s),null);t.blueprint[i]=o,e[i]=o,N_(t,n,0,i,Br(t,e,s.hostVars,ge),s)}function zS(t,n,e){const i=Qn(n,t),s=k_(e),r=t[10],o=kl(t,Xo(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Qi(t,n,e,i,s,r){const o=Qn(t,n);!function Wh(t,n,e,i,s,r,o){if(null==r)At(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?de(r):o(r,i||"",s);At(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function jS(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],h=o[l++];null!==a?i.setInput(e,h,c,u):e[u]=h}}}function YS(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function V_(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function WS(t,n){const e=Zn(n,t);if(Vu(e)){const i=e[1];80&e[2]?Hr(i,e,i.template,e[8]):e[5]>0&&Uh(e)}}function Uh(t){for(let i=fh(t);null!==i;i=gh(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Hr(o,r,o.template,r[8])}else r[5]>0&&Uh(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Zn(e[i],t);Vu(s)&&s[5]>0&&Uh(s)}}function US(t,n){const e=Zn(n,t),i=e[1];(function qS(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Wo(i,e,e[8])}function kl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function qh(t){for(;t;){t[2]|=64;const n=Vo(t);if(LD(t)&&!n)return t;t=n}return null}function $_(t){!function Qh(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=uh(e),s=i[1];ES(s,i,s.template,e)}}(t[8])}function Kh(t,n,e){Xu(0),n(t,e)}const ZS=(()=>Promise.resolve(null))();function z_(t){return t[7]||(t[7]=[])}function j_(t){return t.cleanup||(t.cleanup=[])}function G_(t,n){const e=t[9],i=e?e.get(Go,null):null;i&&i.handleError(n)}function X_(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function cs(t,n,e){const i=Ja(n,t);!function Pp(t,n,e){At(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Ll(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=Tu(s,a):2==r&&(i=Tu(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const Jh=new Oe("INJECTOR",-1);class W_{get(n,e=No){if(e===No){const i=new Error(`NullInjectorError: No provider for ${Xe(n)}!`);throw i.name="NullInjectorError",i}return e}}const ed=new Oe("Set Injector scope."),Uo={},eE={};let td;function U_(){return void 0===td&&(td=new W_),td}function q_(t,n=null,e=null,i){const s=Q_(t,n,e,i);return s._resolveInjectorDefTypes(),s}function Q_(t,n=null,e=null,i){return new tE(t,e,n||U_(),i)}class tE{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&Xi(e,a=>this.processProvider(a,n,e)),Xi([n],a=>this.processInjectorType(a,[],r)),this.records.set(Jh,Vr(void 0,this));const o=this.records.get(ed);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Xe(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=No,i=_e.Default){this.assertNotDestroyed();const s=vp(this),r=Cs(void 0);try{if(!(i&_e.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function cE(t){return"function"==typeof t||"object"==typeof t&&t instanceof Oe}(n)&&Du(n);a=l&&this.injectableDefInScope(l)?Vr(nd(n),Uo):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&_e.Self?U_():this.parent).get(n,e=i&_e.Optional&&e===No?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[gl]=o[gl]||[]).unshift(Xe(n)),s)throw o;return function NA(t,n,e,i){const s=t[gl];throw n[_p]&&s.unshift(n[_p]),t.message=function OA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Xe(n);if(Array.isArray(n))s=n.map(Xe).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Xe(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(kA,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[gl]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{Cs(r),vp(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Xe(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(n,e,i){if(!(n=be(n)))return!1;let s=Am(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=Am(r)),null==s)return!1;if(null!=s.imports&&!a){let u;i.push(o);try{Xi(s.imports,h=>{this.processInjectorType(h,e,i)&&(void 0===u&&(u=[]),u.push(h))})}finally{}if(void 0!==u)for(let h=0;h<u.length;h++){const{ngModule:d,providers:f}=u[h];Xi(f,g=>this.processProvider(g,d,f||Ke))}}this.injectorDefTypes.add(o);const l=Ys(o)||(()=>new o);this.records.set(o,Vr(l,Uo));const c=s.providers;if(null!=c&&!a){const u=n;Xi(c,h=>this.processProvider(h,u,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=$r(n=be(n))?n:be(n&&n.provide);const r=function iE(t,n,e){return K_(t)?Vr(void 0,t.useValue):Vr(Z_(t),Uo)}(n);if($r(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Vr(void 0,Uo,!0),o.factory=()=>oh(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===Uo&&(e.value=eE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function lE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=be(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function nd(t){const n=Du(t),e=null!==n?n.factory:Ys(t);if(null!==e)return e;if(t instanceof Oe)throw new K(204,!1);if(t instanceof Function)return function nE(t){const n=t.length;if(n>0)throw Po(n,"?"),new K(204,!1);const e=function _D(t){const n=t&&(t[Xa]||t[Sm]);if(n){const e=function vD(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new K(204,!1)}function Z_(t,n,e){let i;if($r(t)){const s=be(t);return Ys(s)||nd(s)}if(K_(t))i=()=>be(t.useValue);else if(function rE(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...oh(t.deps||[]));else if(function sE(t){return!(!t||!t.useExisting)}(t))i=()=>ve(be(t.useExisting));else{const s=be(t&&(t.useClass||t.provide));if(!function aE(t){return!!t.deps}(t))return Ys(s)||nd(s);i=()=>new s(...oh(t.deps))}return i}function Vr(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function K_(t){return null!==t&&"object"==typeof t&&MA in t}function $r(t){return"function"==typeof t}let On=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return q_({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return q_({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=No,t.NULL=new W_,t.\u0275prov=je({token:t,providedIn:"any",factory:()=>ve(Jh)}),t.__NG_ELEMENT_ID__=-1,t})();function _E(t,n){il(uh(t)[1],jt())}function ht(t){let n=function uv(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(Li(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new K(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=rd(t.inputs),o.declaredInputs=rd(t.declaredInputs),o.outputs=rd(t.outputs);const a=s.hostBindings;a&&bE(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&yE(t,l),c&&xE(t,c),bu(t.inputs,s.inputs),bu(t.declaredInputs,s.declaredInputs),bu(t.outputs,s.outputs),Li(s)&&s.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===ht&&(e=!1)}}n=Object.getPrototypeOf(n)}!function vE(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=al(s.hostAttrs,e=al(e,s.hostAttrs))}}(i)}function rd(t){return t===yr?{}:t===Ke?[]:t}function yE(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function xE(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function bE(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Ml=null;function zr(){if(!Ml){const t=Ue.Symbol;if(t&&t.iterator)Ml=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ml=i)}}}return Ml}function qo(t){return!!function od(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&zr()in t)}function Zi(t,n,e){return t[n]=e}function _n(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function qs(t,n,e,i){const s=_n(t,n,e);return _n(t,n+1,i)||s}function M(t,n,e,i){const s=I();return _n(s,Dr(),n)&&(Ne(),Qi(gt(),s,t,n,e,i)),M}function Yr(t,n,e,i){return _n(t,Dr(),e)?n+de(e)+i:ge}function Gr(t,n,e,i,s,r){const a=qs(t,function os(){return fe.lFrame.bindingIndex}(),e,s);return as(2),a?n+de(e)+i+de(s)+r:ge}function S(t,n,e,i,s,r,o,a){const l=I(),c=Ne(),u=t+20,h=c.firstCreatePass?function EE(t,n,e,i,s,r,o,a,l){const c=n.consts,u=Rr(n,t,4,o||null,As(c,a));Xh(n,e,u,As(c,l)),il(n,u);const h=u.tViews=El(2,u,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,s,r,o):c.data[u];Gi(h,!1);const d=l[11].createComment("");yl(c,l,d,h),pn(d,l),kl(l,l[u]=V_(d,l,d,h)),Ka(h)&&Yh(c,l,h),null!=o&&Gh(l,h,a)}function Z(t,n=_e.Default){const e=I();return null===e?ve(t,n):ap(jt(),e,be(t),n)}function p(t,n,e){const i=I();return _n(i,Dr(),n)&&function ti(t,n,e,i,s,r,o,a){const l=Qn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(X_(t,e,u,i,s),Za(n)&&function IS(t,n){const e=Zn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function FS(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,At(r)?r.setProperty(l,i,s):qu(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Ne(),gt(),i,t,n,i[11],e,!1),p}function hd(t,n,e,i,s){const o=s?"class":"style";X_(t,e,n.inputs[o],o,i)}function x(t,n,e,i){const s=I(),r=Ne(),o=20+t,a=s[11],l=s[o]=ph(a,n,function rA(){return fe.lFrame.currentNamespace}()),c=r.firstCreatePass?function QE(t,n,e,i,s,r,o){const a=n.consts,c=Rr(n,t,2,s,As(a,r));return Xh(n,e,c,As(a,o)),null!==c.attrs&&Ll(c,c.attrs,!1),null!==c.mergedAttrs&&Ll(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];Gi(c,!0);const u=c.mergedAttrs;null!==u&&ol(a,l,u);const h=c.classes;null!==h&&Ch(a,l,h);const d=c.styles;return null!==d&&Wp(a,l,d),64!=(64&c.flags)&&yl(r,s,l,c),0===function GD(){return fe.lFrame.elementDepthCount}()&&pn(l,s),function XD(){fe.lFrame.elementDepthCount++}(),Ka(c)&&(Yh(r,s,c),E_(r,c,s)),null!==i&&Gh(s,c),x}function T(){let t=jt();zu()?ju():(t=t.parent,Gi(t,!1));const n=t;!function WD(){fe.lFrame.elementDepthCount--}();const e=Ne();return e.firstCreatePass&&(il(e,t),Fu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function uA(t){return 0!=(16&t.flags)}(n)&&hd(e,n,I(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function hA(t){return 0!=(32&t.flags)}(n)&&hd(e,n,I(),n.stylesWithoutHost,!1),T}function z(t,n,e,i){return x(t,n,e,i),T(),z}function ot(t,n,e){const i=I(),s=Ne(),r=t+20,o=s.firstCreatePass?function ZE(t,n,e,i,s){const r=n.consts,o=As(r,i),a=Rr(n,t,8,"ng-container",o);return null!==o&&Ll(a,o,!0),Xh(n,e,a,As(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];Gi(o,!0);const a=i[r]=i[11].createComment("");return yl(s,i,a,o),pn(a,i),Ka(o)&&(Yh(s,i,o),E_(s,o,i)),null!=e&&Gh(i,o),ot}function at(){let t=jt();const n=Ne();return zu()?ju():(t=t.parent,Gi(t,!1)),n.firstCreatePass&&(il(n,t),Fu(t)&&n.queries.elementEnd(t)),at}function R(){return I()}function dd(t){return!!t&&"function"==typeof t.then}const KE=function Fv(t){return!!t&&"function"==typeof t.subscribe};function E(t,n,e,i){const s=I(),r=Ne(),o=jt();return function Pv(t,n,e,i,s,r,o,a){const l=Ka(i),u=t.firstCreatePass&&j_(t),h=n[8],d=z_(n);let f=!0;if(3&i.type||a){const v=Qn(i,n),C=a?a(v):v,b=d.length,D=a?k=>a(Ot(k[i.index])):i.index;if(At(e)){let k=null;if(!a&&l&&(k=function JE(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=r,k.__ngLastListenerFn__=r,f=!1;else{r=fd(i,n,h,r,!1);const N=e.listen(C,s,r);d.push(r,N),u&&u.push(s,D,b,b+1)}}else r=fd(i,n,h,r,!0),C.addEventListener(s,r,o),d.push(r),u&&u.push(s,D,b,o)}else r=fd(i,n,h,r,!1);const g=i.outputs;let y;if(f&&null!==g&&(y=g[s])){const v=y.length;if(v)for(let C=0;C<v;C+=2){const F=n[y[C]][y[C+1]].subscribe(r),X=d.length;d.push(r,F),u&&u.push(s,i.index,X,-(X+1))}}}(r,s,s[11],o,t,n,!!e,i),E}function Nv(t,n,e,i){try{return!1!==e(i)}catch(s){return G_(t,s),!1}}function fd(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Zn(t.index,n):n;0==(32&n[2])&&qh(a);let l=Nv(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Nv(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function m(t=1){return function tA(t){return(fe.lFrame.contextLView=function nA(t,n){for(;t>0;)n=n[15],t--;return n}(t,fe.lFrame.contextLView))[8]}(t)}function ek(t,n){let e=null;const i=function lS(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?f_(t,r,!0):hS(i,r))return s}else e=s}return e}function gd(t){const n=I()[16][6];if(!n.projection){const i=n.projection=Po(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?ek(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}function md(t,n=0,e){const i=I(),s=Ne(),r=Rr(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),ju(),64!=(64&r.flags)&&function f1(t,n,e){Xp(n[11],0,n,e,Rp(t,e,n),$p(e.parent||n[6],e,n))}(s,i,r)}function Gv(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?Fi(r):ls(r),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];ik(t[a],n)&&(l=!0,t[a+1]=i?Ph(u):Fh(u)),a=i?Fi(u):ls(u)}l&&(t[e+1]=i?Fh(r):Ph(r))}function ik(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ir(t,n)>=0}const Gt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xv(t){return t.substring(Gt.key,Gt.keyEnd)}function Wv(t,n){const e=Gt.textEnd;return e===n?-1:(n=Gt.keyEnd=function ak(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Gt.key=n,e),Jr(t,n,e))}function Jr(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Le(t,n,e){return Pi(t,n,e,!1),Le}function en(t,n){return Pi(t,n,null,!0),en}function Ji(t,n){for(let e=function rk(t){return function qv(t){Gt.key=0,Gt.keyEnd=0,Gt.value=0,Gt.valueEnd=0,Gt.textEnd=t.length}(t),Wv(t,Jr(t,0,Gt.textEnd))}(n);e>=0;e=Wv(n,e))Kn(t,Xv(n),!0)}function Pi(t,n,e,i){const s=I(),r=Ne(),o=as(2);r.firstUpdatePass&&ey(r,t,o,i),n!==ge&&_n(s,o,n)&&ny(r,r.data[Sn()],s,s[11],t,s[o+1]=function _k(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Xe(ei(t)))),t}(n,e),i,o)}function Ni(t,n,e,i){const s=Ne(),r=as(2);s.firstUpdatePass&&ey(s,null,r,i);const o=I();if(e!==ge&&_n(o,r,e)){const a=s.data[Sn()];if(sy(a,i)&&!Jv(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Tu(l,e||"")),hd(s,a,o,e,i)}else!function pk(t,n,e,i,s,r,o,a){s===ge&&(s=Ke);let l=0,c=0,u=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let y,g=null;u===h?(l+=2,c+=2,d!==f&&(g=h,y=f)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,y=f),null!==g&&ny(t,n,e,i,g,y,o,a),u=l<s.length?s[l]:null,h=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function mk(t,n,e){if(null==e||""===e)return Ke;const i=[],s=ei(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function Jv(t,n){return n>=t.expandoStartIndex}function ey(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[Sn()],o=Jv(t,e);sy(r,i)&&null===n&&!o&&(n=!1),n=function hk(t,n,e,i){const s=function Gu(t){const n=fe.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=Zo(e=_d(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=_d(s,t,n,e,i),null===r){let l=function dk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==ls(i))return t[Fi(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=_d(null,t,n,l[1],i),l=Zo(l,n.attrs,i),function fk(t,n,e,i){t[Fi(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function gk(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=Zo(i,t[r].hostAttrs,e);return Zo(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function tk(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=Fi(o),l=ls(o);t[i]=e;let u,c=!1;if(Array.isArray(e)){const h=e;u=h[1],(null===u||Ir(h,u)>0)&&(c=!0)}else u=e;if(s)if(0!==l){const d=Fi(t[a+1]);t[i+1]=Dl(d,a),0!==d&&(t[d+1]=Ih(t[d+1],i)),t[a+1]=function mS(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Dl(a,0),0!==a&&(t[a+1]=Ih(t[a+1],i)),a=i;else t[i+1]=Dl(l,0),0===a?a=i:t[l+1]=Ih(t[l+1],i),l=i;c&&(t[i+1]=Fh(t[i+1])),Gv(t,u,i,!0),Gv(t,u,i,!1),function nk(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Ir(r,n)>=0&&(e[i+1]=Ph(e[i+1]))}(n,u,t,i,r),o=Dl(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function _d(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=Zo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Zo(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Kn(t,o,!!e||n[++r]))}return void 0===t?null:t}function ny(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Pl(function v_(t){return 1==(1&t)}(c)?iy(l,n,e,s,ls(c),o):void 0)||(Pl(r)||function __(t){return 2==(2&t)}(c)&&(r=iy(l,null,e,s,a,o)),function m1(t,n,e,i,s){const r=At(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Jn.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Jn.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,Ja(Sn(),e),s,r))}function iy(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let d=e[s+1];d===ge&&(d=h?Ke:void 0);let f=h?ih(d,i):u===i?d:void 0;if(c&&!Pl(f)&&(f=ih(l,i)),Pl(f)&&(a=f,o))return a;const g=t[s+1];s=o?Fi(g):ls(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=ih(l,i))}return a}function Pl(t){return void 0!==t}function sy(t,n){return 0!=(t.flags&(n?16:32))}function Ve(t,n=""){const e=I(),i=Ne(),s=t+20,r=i.firstCreatePass?Rr(i,s,1,n,null):i.data[s],o=e[s]=function mh(t,n){return At(t)?t.createText(n):t.createTextNode(n)}(e[11],n);yl(i,e,o,r),Gi(r,!1)}function ni(t){return pt("",t,""),ni}function pt(t,n,e){const i=I(),s=Yr(i,t,n,e);return s!==ge&&cs(i,Sn(),s),pt}function vd(t,n,e,i,s){const r=I(),o=Gr(r,t,n,e,i,s);return o!==ge&&cs(r,Sn(),o),vd}const Nl="en-US";let Ay=Nl;function bd(t,n,e,i,s){if(t=be(t),Array.isArray(t))for(let r=0;r<t.length;r++)bd(t[r],n,e,i,s);else{const r=Ne(),o=I();let a=$r(t)?t:be(t.provide),l=Z_(t);const c=jt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if($r(t)||!t.multi){const f=new Eo(l,s,Z),g=Cd(a,n,s?u:u+d,h);-1===g?(ul(Lo(c,o),r,a),Td(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[g]=f,o[g]=f)}else{const f=Cd(a,n,u+d,h),g=Cd(a,n,u,u+d),y=f>=0&&e[f],v=g>=0&&e[g];if(s&&!v||!s&&!y){ul(Lo(c,o),r,a);const C=function NL(t,n,e,i,s){const r=new Eo(t,e,Z);return r.multi=[],r.index=n,r.componentProviders=0,Qy(r,s,i&&!e),r}(s?PL:IL,e.length,s,i,l);!s&&v&&(e[g].providerFactory=C),Td(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(C),o.push(C)}else Td(r,t,f>-1?f:g,Qy(e[s?g:f],l,!s&&i));!s&&i&&v&&e[g].componentProviders++}}}function Td(t,n,e,i){const s=$r(n),r=function oE(t){return!!t.useClass}(n);if(s||r){const l=(r?be(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!s&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Qy(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Cd(t,n,e,i){for(let s=e;s<i;s++)if(n[s]===t)return s;return-1}function IL(t,n,e,i){return wd(this.multi,[])}function PL(t,n,e,i){const s=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Mo(e,e[1],this.providerFactory.index,i);r=a.slice(0,o),wd(s,r);for(let l=o;l<a.length;l++)r.push(a[l])}else r=[],wd(s,r);return r}function wd(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Zy(t,n=[]){return e=>{e.providersResolver=(i,s)=>function FL(t,n,e){const i=Ne();if(i.firstCreatePass){const s=Li(t);bd(e,i.data,i.blueprint,s,!0),bd(n,i.data,i.blueprint,s,!1)}}(i,s?s(t):t,n)}}class Ky{}class BL{resolveComponentFactory(n){throw function RL(t){const n=Error(`No component factory found for ${Xe(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Zs=(()=>{class t{}return t.NULL=new BL,t})();function HL(){return no(jt(),I())}function no(t,n){return new _t(Qn(t,n))}let _t=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=HL,t})();function VL(t){return t instanceof _t?t.nativeElement:t}class na{}let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function zL(){const t=I(),e=Zn(jt().index,t);return function $L(t){return t[11]}(Yi(e)?e:t)}(),t})(),jL=(()=>{class t{}return t.\u0275prov=je({token:t,providedIn:"root",factory:()=>null}),t})();class $l{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const YL=new $l("13.4.0"),Dd={};function zl(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Ot(r)),ki(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&zl(l[1],l,c,i)}const o=e.type;if(8&o)zl(t,n,e.child,i);else if(32&o){const a=dh(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Gp(n,e);if(Array.isArray(a))i.push(...a);else{const l=Vo(n[16]);zl(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class ia{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return zl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(ki(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(_h(n,i),dl(e,i))}this._attachedToViewContainer=!1}Op(this._lView[1],this._lView)}onDestroy(n){F_(this._lView[1],this._lView,null,n)}markForCheck(){qh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Zh(t,n,e){const i=n[10];i.begin&&i.begin();try{Hr(t,n,t.template,e)}catch(s){throw G_(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r1(t,n){$o(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=n}}class GL extends ia{constructor(n){super(n),this._view=n}detectChanges(){$_(this._view)}checkNoChanges(){}get context(){return null}}class ex extends Zs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=an(n);return new Ad(e,this.ngModule)}}function tx(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Ad extends Ky{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fS(t){return t.map(dS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return tx(this.componentDef.inputs)}get outputs(){return tx(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function WL(t,n){return{get:(e,i,s)=>{const r=t.get(e,Dd,s);return r!==Dd||i===Dd?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(na,Hm),a=r.get(jL,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function M_(t,n,e){if(At(t))return t.selectRootElement(n,e===Si.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):ph(o.createRenderer(null,this.componentDef),c,function XL(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),h=this.componentDef.onPush?576:528,d=function cv(t,n){return{components:[],scheduler:t||tS,clean:ZS,playerHandler:n||null,flags:0}}(),f=El(0,null,null,1,0,null,null,null,null,null),g=Xo(null,f,d,h,null,null,o,l,a,r);let y,v;tl(g);try{const C=function av(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Rr(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Ll(l,c,!0),null!==t&&(ol(s,t,c),null!==l.classes&&Ch(s,t,l.classes),null!==l.styles&&Wp(s,t,l.styles)));const u=i.createRenderer(t,n),h=Xo(e,k_(n),null,n.onPush?64:16,e[20],l,i,u,r||null,null);return o.firstCreatePass&&(ul(Lo(l,e),o,n.type),R_(o,l),B_(l,e.length,1)),kl(e,h),e[20]=h}(u,this.componentDef,g,o,l);if(u)if(i)ol(l,u,["ng-version",YL.full]);else{const{attrs:b,classes:D}=function gS(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!Mi(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);b&&ol(l,u,b),D&&D.length>0&&Ch(l,u,D.join(" "))}if(v=Hu(f,20),void 0!==e){const b=v.projection=[];for(let D=0;D<this.ngContentSelectors.length;D++){const k=e[D];b.push(null!=k?Array.from(k):null)}}y=function lv(t,n,e,i,s){const r=e[1],o=function NS(t,n,e){const i=jt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),H_(t,i,n,Br(t,n,1,null),e));const s=Mo(n,t,i.directiveStart,i);pn(s,n);const r=Qn(i,n);return r&&pn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=jt();n.contentQueries(1,o,l.directiveStart)}const a=jt();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Ss(a.index),N_(e[1],a,0,a.directiveStart,a.directiveEnd,n),O_(n,o)),o}(C,this.componentDef,g,d,[_E]),Wo(f,g,null)}finally{nl()}return new qL(this.componentType,y,no(v,g),g,v)}}class qL extends class OL{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new GL(s),this.componentType=n}get injector(){return new Er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class io{}const so=new Map;class sx extends io{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ex(this);const i=hi(n);this._bootstrapComponents=qi(i.bootstrap),this._r3Injector=Q_(n,e,[{provide:io,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],Xe(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=On.THROW_IF_NOT_FOUND,i=_e.Default){return n===On||n===io||n===Jh?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Sd extends class ZL{}{constructor(n){super(),this.moduleType=n,null!==hi(n)&&function KL(t){const n=new Set;!function e(i){const s=hi(i,!0),r=s.id;null!==r&&(function nx(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Xe(n)} vs ${Xe(n.name)}`)}(r,so.get(r),i),so.set(r,i));const o=qi(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new sx(this.moduleType,n)}}function Ed(t,n,e){const i=An()+t,s=I();return s[i]===ge?Zi(s,i,e?n.call(e):n()):function Qo(t,n){return t[n]}(s,i)}function jl(t,n,e,i){return function ox(t,n,e,i,s,r){const o=n+e;return _n(t,o,s)?Zi(t,o+1,r?i.call(r,s):i(s)):sa(t,o+1)}(I(),An(),t,n,e,i)}function Je(t,n,e,i,s){return function ax(t,n,e,i,s,r,o){const a=n+e;return qs(t,a,s,r)?Zi(t,a+2,o?i.call(o,s,r):i(s,r)):sa(t,a+2)}(I(),An(),t,n,e,i,s)}function rx(t,n,e,i,s,r){return function lx(t,n,e,i,s,r,o,a){const l=n+e;return function Fl(t,n,e,i,s){const r=qs(t,n,e,i);return _n(t,n+2,s)||r}(t,l,s,r,o)?Zi(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):sa(t,l+3)}(I(),An(),t,n,e,i,s,r)}function sa(t,n){const e=t[n];return e===ge?void 0:e}function kd(t){return n=>{setTimeout(t,void 0,n)}}const L=class dM extends B{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const h=n;a=null===(s=h.next)||void 0===s?void 0:s.bind(h),l=null===(r=h.error)||void 0===r?void 0:r.bind(h),c=null===(o=h.complete)||void 0===o?void 0:o.bind(h)}this.__isAsync&&(l=kd(l),a&&(a=kd(a)),c&&(c=kd(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof oe&&n.add(u),u}};function fM(){return this._results[zr()]()}class Ld{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zr(),i=Ld.prototype;i[e]||(i[e]=fM)}get changes(){return this._changes||(this._changes=new L)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=gi(n);(this._changesDetected=!function xA(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let us=(()=>{class t{}return t.__NG_ELEMENT_ID__=pM,t})();const gM=us,mM=class extends gM{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Xo(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Wo(e,i,n),new ia(i)}};function pM(){return Yl(jt(),I())}function Yl(t,n){return 4&t.type?new mM(n,t,no(t,n)):null}let pi=(()=>{class t{}return t.__NG_ELEMENT_ID__=_M,t})();function _M(){return fx(jt(),I())}const vM=pi,hx=class extends vM{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return no(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const n=cl(this._hostTNode,this._hostLView);if(np(n)){const e=Sr(n,this._hostLView),i=Ar(n);return new Er(e[1].data[i+8],e)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=dx(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Io(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const h=e||{};a=h.index,i=h.injector,s=h.projectableNodes,r=h.ngModuleRef}const l=o?n:new Ad(an(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const d=(o?c:this.parentInjector).get(io,null);d&&(r=d)}const u=l.create(c,s,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,s=i[1];if(function YD(t){return ki(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const h=i[3],d=new hx(h,h[6],h[3]);d.detach(d.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function a1(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],dp(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function l1(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=xh(r,o),l=i[11],c=vl(l,o[7]);return null!==c&&function s1(t,n,e,i,s,r){i[0]=s,i[6]=n,$o(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),dp(Md(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=dx(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);i&&(dl(Md(this._lContainer),e),Op(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);return i&&null!=dl(Md(this._lContainer),e)?new ia(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function dx(t){return t[8]}function Md(t){return t[8]||(t[8]=[])}function fx(t,n){let e;const i=n[t.index];if(ki(i))e=i;else{let s;if(8&t.type)s=Ot(i);else{const r=n[11];s=r.createComment("");const o=Qn(t,n);Xs(r,vl(r,o),s,function d1(t,n){return At(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=V_(i,n,s,t),kl(n,e)}return new hx(e,t,n)}class Fd{constructor(n){this.queryList=n,this.matches=null}clone(){return new Fd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Id{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new Id(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==vx(n,e).matches&&this.queries[e].setDirty()}}class gx{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Pd{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Pd(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Nd{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Nd(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,bM(e,r)),this.matchTNodeWithReadOption(n,e,hl(e,n,r,!1,!1))}else i===us?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,hl(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===_t||s===pi||s===us&&4&e.type)this.addMatch(e.index,-2);else{const r=hl(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function bM(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function CM(t,n,e,i){return-1===e?function TM(t,n){return 11&t.type?no(t,n):4&t.type?Yl(t,n):null}(n,t):-2===e?function wM(t,n,e){return e===_t?no(n,t):e===us?Yl(n,t):e===pi?fx(n,t):void 0}(t,n,i):Mo(t,t[1],e,n)}function mx(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:CM(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function Od(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=mx(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],u=n[-l];for(let h=10;h<u.length;h++){const d=u[h];d[17]===d[3]&&Od(d[1],d,c,i)}if(null!==u[9]){const h=u[9];for(let d=0;d<h.length;d++){const f=h[d];Od(f[1],f,c,i)}}}}}return i}function Me(t){const n=I(),e=Ne(),i=Wm();Xu(i+1);const s=vx(e,i);if(t.dirty&&Vm(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?Od(e,n,i,[]):mx(e,n,s,i);t.reset(r,VL),t.notifyOnChanges()}return!0}return!1}function _i(t,n,e){const i=Ne();i.firstCreatePass&&(_x(i,new gx(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),px(i,I(),n)}function lt(t,n,e,i){const s=Ne();if(s.firstCreatePass){const r=jt();_x(s,new gx(n,e,i),r.index),function AM(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}px(s,I(),e)}function Fe(){return function DM(t,n){return t[19].queries[n].queryList}(I(),Wm())}function px(t,n,e){const i=new Ld(4==(4&e));F_(t,n,i,i.destroy),null===n[19]&&(n[19]=new Id),n[19].queries.push(new Fd(i))}function _x(t,n,e){null===t.queries&&(t.queries=new Pd),t.queries.track(new Nd(n,e))}function vx(t,n){return t.queries.getByIndex(n)}function yx(t,n){return Yl(t,n)}function Wl(...t){}const Ox=new Oe("Application Initializer");let zd=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Wl,this.reject=Wl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(dd(r))e.push(r);else if(KE(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ve(Ox,8))},t.\u0275prov=je({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aa=new Oe("AppId",{providedIn:"root",factory:function Rx(){return`${jd()}${jd()}${jd()}`}});function jd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bx=new Oe("Platform Initializer"),Hx=new Oe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),jM=new Oe("appBootstrapListener"),Ms=new Oe("LocaleId",{providedIn:"root",factory:()=>IA(Ms,_e.Optional|_e.SkipSelf)||function YM(){return"undefined"!=typeof $localize&&$localize.locale||Nl}()}),UM=(()=>Promise.resolve(0))();function Yd(t){"undefined"==typeof Zone?UM.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Rt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new L(!1),this.onMicrotaskEmpty=new L(!1),this.onStable=new L(!1),this.onError=new L(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function qM(){let t=Ue.requestAnimationFrame,n=Ue.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function KM(t){const n=()=>{!function ZM(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ue,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Xd(t),t.isCheckStableRunning=!0,Gd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Xd(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return Vx(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),$x(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return Vx(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),$x(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Xd(t),Gd(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Rt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,QM,Wl,Wl);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const QM={};function Gd(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Xd(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Vx(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $x(t){t._nesting--,Gd(t)}class JM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new L,this.onMicrotaskEmpty=new L,this.onStable=new L,this.onError=new L}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Wd=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Rt.assertNotInAngularZone(),Yd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Yd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(ve(Rt))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})(),eF=(()=>{class t{constructor(){this._applications=new Map,Ud.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Ud.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=je({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class tF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Ud=new tF,Ks=null;const zx=new Oe("AllowMultipleToken"),jx=new Oe("PlatformOnDestroy");function Yx(t,n,e=[]){const i=`Platform: ${n}`,s=new Oe(i);return(r=[])=>{let o=qd();if(!o||o.injector.get(zx,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function rF(t){if(Ks&&!Ks.get(zx,!1))throw new K(400,"");Ks=t;const n=t.get(Gx),e=t.get(Bx,null);e&&e.forEach(i=>i())}(function aF(t=[],n){return On.create({name:n,providers:[{provide:ed,useValue:"platform"},{provide:jx,useValue:()=>Ks=null},...t]})}(a,i))}return function oF(t){const n=qd();if(!n)throw new K(401,"");return n}()}}function qd(){var t;return null!==(t=null==Ks?void 0:Ks.get(Gx))&&void 0!==t?t:null}let Gx=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function lF(t,n){let e;return e="noop"===t?new JM:("zone.js"===t?void 0:t)||new Rt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Rt,useValue:a}];return a.run(()=>{const c=On.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),h=u.injector.get(Go,null);if(!h)throw new K(402,"");return a.runOutsideAngular(()=>{const d=a.onError.subscribe({next:f=>{h.handleError(f)}});u.onDestroy(()=>{Qd(this._modules,u),d.unsubscribe()})}),function cF(t,n,e){try{const i=e();return dd(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(h,a,()=>{const d=u.injector.get(zd);return d.runInitializers(),d.donePromise.then(()=>(function $k(t){Un(t,"Expected localeId to be defined"),"string"==typeof t&&(Ay=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ms,Nl)||Nl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const s=Xx({},i);return function iF(t,n,e){const i=new Sd(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(Ul);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(jx,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ve(On))},t.\u0275prov=je({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Xx(t,n){return Array.isArray(n)?n.reduce(Xx,t):Object.assign(Object.assign({},t),n)}let Ul=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Ge(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ge(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Rt.assertNotInAngularZone(),Yd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Rt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Tm(o,a.pipe(function hD(){return t=>Cm()(function lD(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cD(s,n));const r=Object.create(i,rD);return r.source=i,r.subjectFactory=s,r}}(uD)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let s;s=e instanceof Ky?e:this._injector.get(Zs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function sF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(io),a=s.create(On.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Wd,null),u=c&&a.injector.get(eF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Qd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(jM,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ve(Rt),ve(On),ve(Go),ve(zd))},t.\u0275prov=je({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qd(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ux=!0,Js=(()=>{class t{}return t.__NG_ELEMENT_ID__=dF,t})();function dF(t){return function fF(t,n,e){if(Za(t)&&!e){const i=Zn(t.index,n);return new ia(i,i)}return 47&t.type?new ia(n[16],n):null}(jt(),I(),16==(16&t))}class Jx{constructor(){}supports(n){return qo(n)}create(n){return new yF(n)}}const vF=(t,n)=>n;class yF{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||vF}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<tb(i,s,r)?e:i,a=tb(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,u=l-s;if(c!=u){for(let d=0;d<c;d++){const f=d<r.length?r[d]:r[d]=0,g=f+d;u<=g&&g<c&&(r[d]=f+1)}r[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!qo(n))throw new K(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function SE(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[zr()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new xF(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new eb),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eb),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class xF{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bF{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class eb{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new bF,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tb(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}function ib(){return new Zl([new Jx])}let Zl=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ib()),deps:[[t,new pl,new ml]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new K(901,"")}}return t.\u0275prov=je({token:t,providedIn:"root",factory:ib}),t})();const AF=Yx(null,"core",[]);let SF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ve(Ul))},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({}),t})(),Kl=null;function ca(){return Kl}const Rn=new Oe("DocumentToken");class yI{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Re=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new yI(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),mb(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{mb(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Z(pi),Z(us),Z(Zl))},t.\u0275dir=wn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function mb(t,n){t.context.$implicit=n.item}let De=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new xI,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){pb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){pb("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Z(pi),Z(us))},t.\u0275dir=wn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class xI{constructor(){this.$implicit=null,this.ngIf=null}}function pb(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Xe(n)}'.`)}class ff{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let uc=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=wn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Tb=(()=>{class t{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new ff(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Z(pi),Z(us),Z(uc,9))},t.\u0275dir=wn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),wb=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Z(pi))},t.\u0275dir=wn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[xe]}),t})(),fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({}),t})();class pf extends class TP extends class LF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kF(t){Kl||(Kl=t)}(new pf)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function CP(){return ga=ga||document.querySelector("base"),ga?ga.getAttribute("href"):null}();return null==e?null:function wP(t){hc=hc||document.createElement("a"),hc.setAttribute("href",t);const n=hc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){ga=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function pI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let hc,ga=null;const Sb=new Oe("TRANSITION_ID"),AP=[{provide:Ox,useFactory:function DP(t,n,e){return()=>{e.get(zd).donePromise.then(()=>{const i=ca(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[Sb,Rn,On],multi:!0}];class _f{static init(){!function nF(t){Ud=t}(new _f)}addToWindow(n){Ue.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},Ue.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ue.getAllAngularRootElements=()=>n.getAllRootElements(),Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(i=>{const s=Ue.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?ca().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let SP=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();const dc=new Oe("EventManagerPlugins");let fc=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ve(dc),ve(Rt))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();class Eb{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=ca().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let kb=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})(),ma=(()=>{class t extends kb{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Lb),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Lb))}}return t.\u0275fac=function(e){return new(e||t)(ve(Rn))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();function Lb(t){ca().remove(t)}const vf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},yf=/%COMP%/g;function gc(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?gc(t,s,e):(s=s.replace(yf,t),e.push(s))}return e}function Ib(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let mc=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new xf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Si.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new IP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case Si.ShadowDom:return new PP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=gc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ve(fc),ve(ma),ve(aa))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();class xf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(vf[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=vf[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=vf[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(Jn.DashCase|Jn.Important)?n.style.setProperty(e,i,s&Jn.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Jn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Ib(i)):this.eventManager.addEventListener(n,e,Ib(i))}}class IP extends xf{constructor(n,e,i,s){super(n),this.component=i;const r=gc(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function LP(t){return"_ngcontent-%COMP%".replace(yf,t)}(s+"-"+i.id),this.hostAttr=function MP(t){return"_nghost-%COMP%".replace(yf,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class PP extends xf{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=gc(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let NP=(()=>{class t extends Eb{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(ve(Rn))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();const Nb=["alt","control","meta","shift"],RP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ob={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},BP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let HP=(()=>{class t extends Eb{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ca().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(Nb.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function VP(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Ob.hasOwnProperty(n)&&(n=Ob[n]))}return RP[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Nb.forEach(r=>{r!=s&&BP[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ve(Rn))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();const YP=Yx(AF,"browser",[{provide:Hx,useValue:"browser"},{provide:Bx,useValue:function $P(){pf.makeCurrent(),_f.init()},multi:!0},{provide:Rn,useFactory:function jP(){return function VD(t){Ru=t}(document),document},deps:[]}]),GP=[{provide:ed,useValue:"root"},{provide:Go,useFactory:function zP(){return new Go},deps:[]},{provide:dc,useClass:NP,multi:!0,deps:[Rn,Rt,Hx]},{provide:dc,useClass:HP,multi:!0,deps:[Rn]},{provide:mc,useClass:mc,deps:[fc,ma,aa]},{provide:na,useExisting:mc},{provide:kb,useExisting:ma},{provide:ma,useClass:ma,deps:[Rn]},{provide:Wd,useClass:Wd,deps:[Rt]},{provide:fc,useClass:fc,deps:[dc,Rt]},{provide:class xP{},useClass:SP,deps:[]}];let Rb=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:aa,useValue:e.appId},{provide:Sb,useExisting:aa},AP]}}}return t.\u0275fac=function(e){return new(e||t)(ve(t,12))},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({providers:GP,imports:[fa,SF]}),t})();"undefined"!=typeof window&&window;let Vb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=je({token:t,factory:function(e){let i=null;return i=e?new(e||t):ve($b),i},providedIn:"root"}),t})(),$b=(()=>{class t extends Vb{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case it.NONE:return i;case it.HTML:return Wi(i,"HTML")?ei(i):r_(this._doc,String(i)).toString();case it.STYLE:return Wi(i,"Style")?ei(i):i;case it.SCRIPT:if(Wi(i,"Script"))return ei(i);throw new Error("unsafe value used in a script context");case it.URL:return Zp(i),Wi(i,"URL")?ei(i):zo(String(i));case it.RESOURCE_URL:if(Wi(i,"ResourceURL"))return ei(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function w1(t){return new y1(t)}(e)}bypassSecurityTrustStyle(e){return function D1(t){return new x1(t)}(e)}bypassSecurityTrustScript(e){return function A1(t){return new b1(t)}(e)}bypassSecurityTrustUrl(e){return function S1(t){return new T1(t)}(e)}bypassSecurityTrustResourceUrl(e){return function E1(t){return new C1(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ve(Rn))},t.\u0275prov=je({token:t,factory:function(e){let i=null;return i=e?new e:function t2(t){return new $b(t.get(Rn))}(ve(On)),i},providedIn:"root"}),t})();class n2 extends oe{constructor(n,e){super()}schedule(n,e=0){return this}}class zb extends n2{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let jb=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class ds extends jb{constructor(n,e=jb.now){super(n,()=>ds.delegate&&ds.delegate!==this?ds.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return ds.delegate&&ds.delegate!==this?ds.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const r2=new class s2 extends ds{}(class i2 extends zb{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),o2=new Ge(t=>t.complete());function h2({error:t,subscriber:n}){n.error(t)}class xi{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return function c2(...t){let n=t[t.length-1];return he(n)?(t.pop(),xu(t,n)):bm(t)}(this.value);case"E":return function u2(t,n){return new Ge(n?e=>n.schedule(h2,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return function a2(t){return t?function l2(t){return new Ge(n=>t.schedule(()=>n.complete()))}(t):o2}()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new xi("N",n):xi.undefinedValueNotification}static createError(n){return new xi("E",void 0,n)}static createComplete(){return xi.completeNotification}}xi.completeNotification=new xi("C"),xi.undefinedValueNotification=new xi("N",void 0);class pc extends ae{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(pc.dispatch,this.delay,new f2(n,this.destination)))}_next(n){this.scheduleMessage(xi.createNext(n))}_error(n){this.scheduleMessage(xi.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(xi.createComplete()),this.unsubscribe()}}class f2{constructor(n,e){this.notification=n,this.destination=e}}class g2 extends B{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new m2(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new Qt;if(this.isStopped||this.hasError?o=oe.EMPTY:(this.observers.push(n),o=new ji(this,n)),s&&n.add(n=new pc(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||r2).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class m2{constructor(n,e){this.time=n,this.value=e}}function Yb(t,n){return"function"==typeof n?e=>e.pipe(Yb((i,s)=>pm(t(i,s)).pipe(ue((r,o)=>n(i,r,s,o))))):e=>e.lift(new p2(t))}class p2{constructor(n){this.project=n}call(n,e){return e.subscribe(new _2(n,this.project))}}class _2 extends vm{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _m(this),s=this.destination;s.add(i),this.innerSubscription=ym(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const _c={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return _c.schedule(t,0);if(void 0===window.requestAnimationFrame)return _c.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let Tf;function A2(t,n,e){let i=e;return function y2(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function b2(t,n){if(!Tf){const e=Element.prototype;Tf=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Tf.call(t,n)}(t,s)||(i=r,0))),i}class E2{constructor(n,e){this.componentFactory=e.get(Zs).resolveComponentFactory(n)}create(n){return new k2(this.componentFactory,n)}}class k2{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new g2(1),this.events=this.eventEmitters.pipe(Yb(i=>Tm(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Rt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_c.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function T2(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=On.create({providers:[],parent:this.injector}),i=function D2(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=A2(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Js),this.implementsOnChanges=function x2(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ul).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(ue(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_c.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Nm(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class L2 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Gb{}const fs="*";function vn(t,n){return{type:7,name:t,definitions:n,options:{}}}function ln(t,n=null){return{type:4,styles:n,timings:t}}function Xb(t,n=null){return{type:2,steps:t,options:n}}function Ie(t){return{type:6,styles:t,offset:null}}function cn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Wb(t){Promise.resolve(null).then(t)}class pa{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Wb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Ub{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?Wb(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Pe=!1;function qb(t){return new K(3e3,Pe)}function dN(){return"undefined"!=typeof window&&void 0!==window.document}function wf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Is(t){switch(t.length){case 0:return new pa;case 1:return t[0];default:return new Ub(t)}}function Qb(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.offset,d=h==l,f=d&&c||{};Object.keys(u).forEach(g=>{let y=g,v=u[g];if("offset"!==g)switch(y=n.normalizePropertyName(y,o),v){case"!":v=s[g];break;case fs:v=r[g];break;default:v=n.normalizeStyleValue(g,y,v,o)}f[y]=v}),d||a.push(f),c=f,l=h}),o.length)throw function tN(t){return new K(3502,Pe)}();return a}function Df(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Af(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Af(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Af(e,"destroy",t)))}}function Af(t,n,e){const i=e.totalTime,r=Sf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function Sf(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ii(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function Zb(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Ef=(t,n)=>!1,Kb=(t,n,e)=>[],Jb=null;function kf(t){const n=t.parentNode||t.host;return n===Jb?null:n}(wf()||"undefined"!=typeof Element)&&(dN()?(Jb=(()=>document.documentElement)(),Ef=(t,n)=>{for(;n;){if(n===t)return!0;n=kf(n)}return!1}):Ef=(t,n)=>t.contains(n),Kb=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let tr=null,eT=!1;function tT(t){tr||(tr=function gN(){return"undefined"!=typeof document?document.body:null}()||{},eT=!!tr.style&&"WebkitAppearance"in tr.style);let n=!0;return tr.style&&!function fN(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in tr.style,!n&&eT&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in tr.style)),n}const nT=Ef,iT=Kb;let sT=(()=>{class t{validateStyleProperty(e){return tT(e)}matchesElement(e,i){return!1}containsElement(e,i){return nT(e,i)}getParentElement(e){return kf(e)}query(e,i,s){return iT(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new pa(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})(),Lf=(()=>{class t{}return t.NOOP=new sT,t})();const Mf="ng-enter",yc="ng-leave",xc="ng-trigger",bc=".ng-trigger",oT="ng-animating",Ff=".ng-animating";function nr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:If(parseFloat(n[1]),n[2])}function If(t,n){return"s"===n?1e3*t:t}function Tc(t,n,e){return t.hasOwnProperty("duration")?t:function _N(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(qb()),{duration:0,delay:0,easing:""};s=If(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=If(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function I2(){return new K(3100,Pe)}()),a=!0),r<0&&(n.push(function P2(){return new K(3101,Pe)}()),a=!0),a&&n.splice(l,0,qb())}return{duration:s,delay:r,easing:o}}(t,n,e)}function oo(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ps(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else oo(t,e);return e}function lT(t,n,e){return e?n+":"+e+";":""}function cT(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=lT(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=lT(0,xN(e),t.style[e]));t.setAttribute("style",n)}function es(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=Nf(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),wf()&&cT(t))}function ir(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=Nf(e);t.style[i]=""}),wf()&&cT(t))}function _a(t){return Array.isArray(t)?1==t.length?t[0]:Xb(t):t}const Pf=new RegExp("{{\\s*(.+?)\\s*}}","g");function uT(t){let n=[];if("string"==typeof t){let e;for(;e=Pf.exec(t);)n.push(e[1]);Pf.lastIndex=0}return n}function Cc(t,n,e){const i=t.toString(),s=i.replace(Pf,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function O2(t){return new K(3003,Pe)}()),a=""),a.toString()});return s==i?t:s}function wc(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const yN=/-+([a-z0-9])/g;function Nf(t){return t.replace(yN,(...n)=>n[1].toUpperCase())}function xN(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function R2(t){return new K(3004,Pe)}()}}function hT(t,n){return window.getComputedStyle(t)[n]}function AN(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function SN(t,n,e){if(":"==t[0]){const l=function EN(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function Z2(t){return new K(3016,Pe)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Q2(t){return new K(3015,Pe)}()),n;const s=i[1],r=i[2],o=i[3];n.push(dT(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(dT(o,s))}(i,e,n)):e.push(t),e}const Ec=new Set(["true","1"]),kc=new Set(["false","0"]);function dT(t,n){const e=Ec.has(t)||kc.has(t),i=Ec.has(n)||kc.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Ec.has(t):kc.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Ec.has(n):kc.has(n)),o&&a}}const kN=new RegExp("s*:selfs*,?","g");function Of(t,n,e,i){return new LN(t).build(n,e,i)}class LN{constructor(n){this._driver=n}build(n,e,i){const s=new IN(e);this._resetContextStyleTimingState(s);const r=si(this,_a(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function H2(){return new K(3006,Pe)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function V2(){return new K(3007,Pe)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Lc(a)){const l=a;Object.keys(l).forEach(c=>{uT(l[c]).forEach(u=>{o.hasOwnProperty(u)||r.add(u)})})}}),r.size&&(wc(r.values()),e.errors.push(function $2(t,n){return new K(3008,Pe)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=si(this,_a(n.animation),e);return{type:1,matchers:AN(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:sr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>si(this,i,e)),options:sr(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=si(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:sr(n.options)}}visitAnimate(n,e){const i=function NN(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Rf(Tc(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Rf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Tc(e,n);return Rf(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:Ie({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Ie(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==fs?i.push(o):e.errors.push(function z2(t){return new K(3002,Pe)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Lc(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function j2(t,n,e,i,s){return new K(3010,Pe)}()),u=!1),r=c.startTime),u&&(l[a]={startTime:r,endTime:s}),e.options&&function vN(t,n,e){const i=n.params||{},s=uT(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function N2(t){return new K(3001,Pe)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Y2(){return new K(3011,Pe)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(C=>{const b=this._makeStyleAst(C,e);let D=null!=b.offset?b.offset:function PN(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Lc(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Lc(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(b.styles),k=0;return null!=D&&(r++,k=b.offset=D),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),b});l&&e.errors.push(function G2(){return new K(3012,Pe)}()),a&&e.errors.push(function X2(){return new K(3200,Pe)}());const h=n.steps.length;let d=0;r>0&&r<h?e.errors.push(function W2(){return new K(3202,Pe)}()):0==r&&(d=1/(h-1));const f=h-1,g=e.currentTime,y=e.currentAnimateTimings,v=y.duration;return u.forEach((C,b)=>{const D=d>0?b==f?1:d*b:o[b],k=D*v;e.currentTime=g+y.delay+k,y.duration=k,this._validateStyleAst(C,e),C.offset=D,i.styles.push(C)}),i}visitReference(n,e){return{type:8,animation:si(this,_a(n.animation),e),options:sr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:sr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:sr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function MN(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(kN,"")),t=t.replace(/@\*/g,bc).replace(/@\w+/g,e=>bc+"-"+e.substr(1)).replace(/:animating/g,Ff),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ii(e.collectedStyles,e.currentQuerySelector,{});const a=si(this,_a(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:sr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function U2(){return new K(3013,Pe)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Tc(n.timings,e.errors,!0);return{type:12,animation:si(this,_a(n.animation),e),timings:i,options:null}}}class IN{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Lc(t){return!Array.isArray(t)&&"object"==typeof t}function sr(t){return t?(t=oo(t)).params&&(t.params=function FN(t){return t?oo(t):null}(t.params)):t={},t}function Rf(t,n,e){return{duration:t,delay:n,easing:e}}function Bf(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Mc{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const BN=new RegExp(":enter","g"),VN=new RegExp(":leave","g");function Hf(t,n,e,i,s,r={},o={},a,l,c=[]){return(new $N).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class $N{buildKeyframes(n,e,i,s,r,o,a,l,c,u=[]){c=c||new Mc;const h=new Vf(n,e,c,s,r,u,[]);h.options=l,h.currentTimeline.setStyles([o],null,h.errors,l),si(this,i,h);const d=h.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let g=d.length-1;g>=0;g--){const y=d[g];if(y.element===e){f=y;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,h.errors,l)}return d.length?d.map(f=>f.buildKeyframes()):[Bf(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?nr(i.duration):null,a=null!=i.delay?nr(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),si(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Fc);const o=nr(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>si(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?nr(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),si(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Tc(e.params?Cc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?nr(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fc);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,c);r&&h.delayNextStep(r),c===e.element&&(l=h.currentTimeline),si(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;si(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-h+(s.startTime-i.currentTimeline.startTime)}}const Fc={};class Vf{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ic(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=nr(i.duration)),null!=i.delay&&(s.delay=nr(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Cc(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Vf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Fc,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new zN(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(BN,"."+this._enterClassName)).replace(VN,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function q2(t){return new K(3014,Pe)}()),a}}class Ic{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Ic(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||fs,this._currentKeyframe[e]=fs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function jN(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=fs})):Ps(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Cc(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:fs),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=Ps(a,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?n.add(u):h==fs&&e.add(u)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?wc(n.values()):[],o=e.size?wc(e.values()):[];if(i){const a=s[0],l=oo(a);a.offset=0,l.offset=1,s=[a,l]}return Bf(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class zN extends Ic{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=Ps(n[0],!1);l.offset=0,r.push(l);const c=Ps(n[0],!1);c.offset=mT(a),r.push(c);const u=n.length-1;for(let h=1;h<=u;h++){let d=Ps(n[h],!1);d.offset=mT((e+d.offset*i)/o),r.push(d)}i=o,e=0,s="",n=r}return Bf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function mT(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class $f{}class YN extends $f{normalizePropertyName(n,e){return Nf(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(GN[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function B2(t,n){return new K(3005,Pe)}())}return o+r}}const GN=(()=>function XN(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function pT(t,n,e,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const zf={};class _T{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function WN(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,u){const h=[],d=this.ast.options&&this.ast.options.params||zf,g=this.buildStyles(i,a&&a.params||zf,h),y=l&&l.params||zf,v=this.buildStyles(s,y,h),C=new Set,b=new Map,D=new Map,k="void"===s,N={params:Object.assign(Object.assign({},d),y)},F=u?[]:Hf(n,e,this.ast.animation,r,o,g,v,N,c,h);let X=0;if(F.forEach(ee=>{X=Math.max(ee.duration+ee.delay,X)}),h.length)return pT(e,this._triggerName,i,s,k,g,v,[],[],b,D,X,h);F.forEach(ee=>{const ie=ee.element,J=ii(b,ie,{});ee.preStyleProps.forEach(Y=>J[Y]=!0);const H=ii(D,ie,{});ee.postStyleProps.forEach(Y=>H[Y]=!0),ie!==e&&C.add(ie)});const me=wc(C.values());return pT(e,this._triggerName,i,s,k,g,v,F,me,b,D,X)}}class UN{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=oo(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Cc(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class QN{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new UN(s.style,s.options&&s.options.params||{},i)}),vT(this.states,"true","1"),vT(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new _T(n,s,this.states))}),this.fallbackTransition=function ZN(t,n,e){return new _T(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function vT(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const KN=new Mc;class JN{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=Of(this._driver,e,i,[]);if(i.length)throw function nN(t){return new K(3503,Pe)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Qb(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=Hf(this._driver,e,r,Mf,yc,{},{},i,KN,s),o.forEach(u=>{const h=ii(a,u.element,{});u.postStyleProps.forEach(d=>h[d]=null)})):(s.push(function iN(){return new K(3300,Pe)}()),o=[]),s.length)throw function sN(t){return new K(3504,Pe)}();a.forEach((u,h)=>{Object.keys(u).forEach(d=>{u[d]=this._driver.computeStyle(h,d,fs)})});const c=Is(o.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function rN(t){return new K(3301,Pe)}();return e}listen(n,e,i,s){const r=Sf(e,"","","");return Df(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const yT="ng-animate-queued",jf="ng-animate-disabled",sO=[],xT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bi="__ng_removed";class Yf{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function cO(t){return null!=t?t:null}(i?n.value:n),i){const r=oo(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const va="void",Gf=new Yf(va);class oO{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Ti(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function oN(t,n){return new K(3302,Pe)}();if(null==i||0==i.length)throw function aN(t){return new K(3303,Pe)}();if(!function uO(t){return"start"==t||"done"==t}(i))throw function lN(t,n){return new K(3400,Pe)}();const r=ii(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ii(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Ti(n,xc),Ti(n,xc+"-"+e),a[e]=Gf),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function cN(t){return new K(3401,Pe)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new Xf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Ti(n,xc),Ti(n,xc+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Yf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Gf),c.value!==va&&l.value===c.value){if(!function fO(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const y=[],v=r.matchStyles(l.value,l.params,y),C=r.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{ir(n,v),es(n,C)})}return}const d=ii(this._engine.playersByElement,n,[]);d.forEach(y=>{y.namespaceId==this.id&&y.triggerName==e&&y.queued&&y.destroy()});let f=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!f){if(!s)return;f=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(Ti(n,yT),o.onStart(()=>{ao(n,yT)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);const v=this._engine.playersByElement.get(n);if(v){let C=v.indexOf(o);C>=0&&v.splice(C,1)}}),this.players.push(o),d.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bc,!0);i.forEach(s=>{if(s[bi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,va,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Is(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Gf,u=new Yf(va),h=new Xf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[bi];(!r||r===xT)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Ti(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Sf(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Df(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class aO{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new oO(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Pc(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Pc(e))return;const r=e[bi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ti(n,jf)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ao(n,jf))}removeNode(n,e,i,s){if(Pc(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[bi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Pc(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Ff,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Is(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[bi];if(i&&i.setForRemoval){if(n[bi]=xT,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(jf))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Ti(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Is(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function uN(t){return new K(3402,Pe)}()}_flushAnimations(n,e){const i=new Mc,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const j=this.driver.query(P,".ng-animate-queued",!0);for(let $=0;$<j.length;$++)u.add(j[$])});const h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=CT(d,this.collectedEnterElements),g=new Map;let y=0;f.forEach((P,j)=>{const $=Mf+y++;g.set(j,$),P.forEach(q=>Ti(q,$))});const v=[],C=new Set,b=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const j=this.collectedLeaveElements[P],$=j[bi];$&&$.setForRemoval&&(v.push(j),C.add(j),$.hasAnimation?this.driver.query(j,".ng-star-inserted",!0).forEach(q=>C.add(q)):b.add(j))}const D=new Map,k=CT(d,Array.from(C));k.forEach((P,j)=>{const $=yc+y++;D.set(j,$),P.forEach(q=>Ti(q,$))}),n.push(()=>{f.forEach((P,j)=>{const $=g.get(j);P.forEach(q=>ao(q,$))}),k.forEach((P,j)=>{const $=D.get(j);P.forEach(q=>ao(q,$))}),v.forEach(P=>{this.processLeaveNode(P)})});const N=[],F=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach($=>{const q=$.player,re=$.element;if(N.push(q),this.collectedEnterElements.length){const Ye=re[bi];if(Ye&&Ye.setForMove){if(Ye.previousTriggersValues&&Ye.previousTriggersValues.has($.triggerName)){const Tt=Ye.previousTriggersValues.get($.triggerName),V=this.statesByElement.get($.element);V&&V[$.triggerName]&&(V[$.triggerName].value=Tt)}return void q.destroy()}}const we=!h||!this.driver.containsElement(h,re),tt=D.get(re),bt=g.get(re),pe=this._buildInstruction($,i,bt,tt,we);if(pe.errors&&pe.errors.length)return void F.push(pe);if(we)return q.onStart(()=>ir(re,pe.fromStyles)),q.onDestroy(()=>es(re,pe.toStyles)),void s.push(q);if($.isFallbackTransition)return q.onStart(()=>ir(re,pe.fromStyles)),q.onDestroy(()=>es(re,pe.toStyles)),void s.push(q);const dn=[];pe.timelines.forEach(Ye=>{Ye.stretchStartingKeyframe=!0,this.disabledNodes.has(Ye.element)||dn.push(Ye)}),pe.timelines=dn,i.append(re,pe.timelines),o.push({instruction:pe,player:q,element:re}),pe.queriedElements.forEach(Ye=>ii(a,Ye,[]).push(q)),pe.preStyleProps.forEach((Ye,Tt)=>{const V=Object.keys(Ye);if(V.length){let te=l.get(Tt);te||l.set(Tt,te=new Set),V.forEach(le=>te.add(le))}}),pe.postStyleProps.forEach((Ye,Tt)=>{const V=Object.keys(Ye);let te=c.get(Tt);te||c.set(Tt,te=new Set),V.forEach(le=>te.add(le))})});if(F.length){const P=[];F.forEach(j=>{P.push(function hN(t,n){return new K(3505,Pe)}())}),N.forEach(j=>j.destroy()),this.reportError(P)}const X=new Map,me=new Map;o.forEach(P=>{const j=P.element;i.has(j)&&(me.set(j,j),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,X))}),s.forEach(P=>{const j=P.element;this._getPreviousPlayers(j,!1,P.namespaceId,P.triggerName,null).forEach(q=>{ii(X,j,[]).push(q),q.destroy()})});const ee=v.filter(P=>DT(P,l,c)),ie=new Map;TT(ie,this.driver,b,c,fs).forEach(P=>{DT(P,l,c)&&ee.push(P)});const H=new Map;f.forEach((P,j)=>{TT(H,this.driver,new Set(P),l,"!")}),ee.forEach(P=>{const j=ie.get(P),$=H.get(P);ie.set(P,Object.assign(Object.assign({},j),$))});const Y=[],Be=[],Ce={};o.forEach(P=>{const{element:j,player:$,instruction:q}=P;if(i.has(j)){if(u.has(j))return $.onDestroy(()=>es(j,q.toStyles)),$.disabled=!0,$.overrideTotalTime(q.totalTime),void s.push($);let re=Ce;if(me.size>1){let tt=j;const bt=[];for(;tt=tt.parentNode;){const pe=me.get(tt);if(pe){re=pe;break}bt.push(tt)}bt.forEach(pe=>me.set(pe,re))}const we=this._buildAnimation($.namespaceId,q,X,r,H,ie);if($.setRealPlayer(we),re===Ce)Y.push($);else{const tt=this.playersByElement.get(re);tt&&tt.length&&($.parentPlayer=Is(tt)),s.push($)}}else ir(j,q.fromStyles),$.onDestroy(()=>es(j,q.toStyles)),Be.push($),u.has(j)&&s.push($)}),Be.forEach(P=>{const j=r.get(P.element);if(j&&j.length){const $=Is(j);P.setRealPlayer($)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<v.length;P++){const j=v[P],$=j[bi];if(ao(j,yc),$&&$.hasAnimation)continue;let q=[];if(a.size){let we=a.get(j);we&&we.length&&q.push(...we);let tt=this.driver.query(j,Ff,!0);for(let bt=0;bt<tt.length;bt++){let pe=a.get(tt[bt]);pe&&pe.length&&q.push(...pe)}}const re=q.filter(we=>!we.destroyed);re.length?hO(this,j,re):this.processLeaveNode(j)}return v.length=0,Y.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const j=this.players.indexOf(P);this.players.splice(j,1)}),P.play()}),Y}elementContainsData(n,e){let i=!1;const s=e[bi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==va;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,h=ii(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),h.push(f)})}ir(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,d=e.timelines.map(g=>{const y=g.element;u.add(y);const v=y[bi];if(v&&v.removedBeforeQueried)return new pa(g.duration,g.delay);const C=y!==l,b=function dO(t){const n=[];return wT(t,n),n}((i.get(y)||sO).map(X=>X.getRealPlayer())).filter(X=>!!X.element&&X.element===y),D=r.get(y),k=o.get(y),N=Qb(0,this._normalizer,0,g.keyframes,D,k),F=this._buildPlayer(g,N,b);if(g.subTimeline&&s&&h.add(y),C){const X=new Xf(n,a,y);X.setRealPlayer(F),c.push(X)}return F});c.forEach(g=>{ii(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function lO(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>Ti(g,oT));const f=Is(d);return f.onDestroy(()=>{u.forEach(g=>ao(g,oT)),es(l,e.toStyles)}),h.forEach(g=>{ii(s,g,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new pa(n.duration,n.delay)}}class Xf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new pa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Df(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ii(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Pc(t){return t&&1===t.nodeType}function bT(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function TT(t,n,e,i,s){const r=[];e.forEach(l=>r.push(bT(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(h=>{const d=u[h]=n.computeStyle(c,h,s);(!d||0==d.length)&&(c[bi]=rO,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>bT(l,r[a++])),o}function CT(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Ti(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function ao(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function hO(t,n,e){Is(e).onDone(()=>t.processLeaveNode(n))}function wT(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof Ub?wT(i.players,n):n.push(i)}}function DT(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class Nc{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new aO(n,e,i),this._timelineEngine=new JN(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],u=Of(this._driver,r,l,[]);if(l.length)throw function eN(t,n){return new K(3404,Pe)}();a=function qN(t,n,e){return new QN(t,n,e)}(s,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=Zb(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=Zb(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let mO=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&es(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(es(this._element,this._initialStyles),this._endStyles&&(es(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),es(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Wf(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];pO(s)&&(n=n||{},n[s]=t[s])}return n}function pO(t){return"display"===t||"position"===t}class AT{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:hT(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class _O{validateStyleProperty(n){return tT(n)}matchesElement(n,e){return!1}containsElement(n,e){return nT(n,e)}getParentElement(n){return kf(n)}query(n,e,i){return iT(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},u=o.filter(d=>d instanceof AT);(function bN(t,n){return 0===t||0===n})(i,s)&&u.forEach(d=>{let f=d.currentSnapshot;Object.keys(f).forEach(g=>c[g]=f[g])}),e=function TN(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=hT(t,l)})}}return n}(n,e=e.map(d=>Ps(d,!1)),c);const h=function gO(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Wf(n[0]),n.length>1&&(i=Wf(n[n.length-1]))):n&&(e=Wf(n)),e||i?new mO(t,e,i):null}(n,e);return new AT(n,e,l,h)}}let vO=(()=>{class t extends Gb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Si.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?Xb(e):e;return ST(this._renderer,null,i,"register",[s]),new yO(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ve(na),ve(Rn))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();class yO extends class F2{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new xO(this._id,n,e||{},this._renderer)}}class xO{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return ST(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function ST(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const ET="@.disabled";let bO=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new kT("",r,this.engine),this._rendererCache.set(r,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new TO(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ve(na),ve(Nc),ve(Rt))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();class kT{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==ET?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class TO extends kT{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==ET?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function CO(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function wO(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let DO=(()=>{class t extends Nc{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ve(Rn),ve(Lf),ve($f))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})();const LT=new Oe("AnimationModuleType"),MT=[{provide:Gb,useClass:vO},{provide:$f,useFactory:function AO(){return new YN}},{provide:Nc,useClass:DO},{provide:na,useFactory:function SO(t,n,e){return new bO(t,n,e)},deps:[mc,Nc,Rt]}],FT=[{provide:Lf,useFactory:()=>new _O},{provide:LT,useValue:"BrowserAnimations"},...MT],EO=[{provide:Lf,useClass:sT},{provide:LT,useValue:"NoopAnimations"},...MT];let kO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?EO:FT}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({providers:FT,imports:[Rb]}),t})();class Uf{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 IT extends Uf{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class LO extends Uf{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class MO extends Uf{constructor(n){super(),this.element=n instanceof _t?n.nativeElement:n}}class PO extends class IO extends class FO{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof IT?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof LO?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof MO?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}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)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}{}function OT(t,n,e,i){return xn(e)&&(i=e,e=void 0),i?OT(t,n,e).pipe(ue(s=>gn(s)?i(...s):i(s))):new Ge(s=>{RT(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function RT(t,n,e,i,s){let r;if(function oR(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function rR(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function sR(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)RT(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const aR=new ds(zb);class cR{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new uR(n,this.dueTime,this.scheduler))}}class uR extends ae{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(hR,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function hR(t){t.debouncedNext()}function dR(){}function Jf(t){return null==t?dR:function(){return this.querySelector(t)}}function gR(){return[]}function BT(t){return null==t?gR:function(){return this.querySelectorAll(t)}}function HT(t){return function(){return this.matches(t)}}function VT(t){return new Array(t.length)}function Rc(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function yR(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new Rc(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function xR(t,n,e,i,s,r,o){var a,l,f,c={},u=n.length,h=r.length,d=new Array(u);for(a=0;a<u;++a)(l=n[a])&&(d[a]=f="$"+o.call(l,l.__data__,a,n),f in c?s[a]=l:c[f]=l);for(a=0;a<h;++a)(l=c[f="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[f]=null):e[a]=new Rc(t,r[a]);for(a=0;a<u;++a)(l=n[a])&&c[d[a]]===l&&(s[a]=l)}function SR(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Rc.prototype={constructor:Rc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var eg="http://www.w3.org/1999/xhtml";const zT={svg:"http://www.w3.org/2000/svg",xhtml:eg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bc(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),zT.hasOwnProperty(n)?{space:zT[n],local:t}:t}function PR(t){return function(){this.removeAttribute(t)}}function NR(t){return function(){this.removeAttributeNS(t.space,t.local)}}function OR(t,n){return function(){this.setAttribute(t,n)}}function RR(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function BR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function HR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function jT(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $R(t){return function(){this.style.removeProperty(t)}}function zR(t,n,e){return function(){this.style.setProperty(t,n,e)}}function jR(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function lo(t,n){return t.style.getPropertyValue(n)||jT(t).getComputedStyle(t,null).getPropertyValue(n)}function GR(t){return function(){delete this[t]}}function XR(t,n){return function(){this[t]=n}}function WR(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function YT(t){return t.trim().split(/^|\s+/)}function tg(t){return t.classList||new GT(t)}function GT(t){this._node=t,this._names=YT(t.getAttribute("class")||"")}function XT(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function WT(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function qR(t){return function(){XT(this,t)}}function QR(t){return function(){WT(this,t)}}function ZR(t,n){return function(){(n.apply(this,arguments)?XT:WT)(this,t)}}function JR(){this.textContent=""}function eB(t){return function(){this.textContent=t}}function tB(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function iB(){this.innerHTML=""}function sB(t){return function(){this.innerHTML=t}}function rB(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function aB(){this.nextSibling&&this.parentNode.appendChild(this)}function cB(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hB(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===eg&&n.documentElement.namespaceURI===eg?n.createElement(t):n.createElementNS(e,t)}}function dB(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function UT(t){var n=Bc(t);return(n.local?dB:hB)(n)}function gB(){return null}function pB(){var t=this.parentNode;t&&t.removeChild(this)}function vB(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function yB(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}GT.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var qT={},$e=null;function CB(t,n,e){return t=QT(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function QT(t,n,e){return function(i){var s=$e;$e=i;try{t.call(this,this.__data__,n,e)}finally{$e=s}}}function wB(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function DB(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function AB(t,n,e){var i=qT.hasOwnProperty(t.type)?CB:QT;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var u=0,h=a.length;u<h;++u)if((l=a[u]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function ZT(t,n,e){var i=jT(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function kB(t,n){return function(){return ZT(this,t,n)}}function LB(t,n){return function(){return ZT(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(qT={mouseenter:"mouseover",mouseleave:"mouseout"}));var KT=[null];function ri(t,n){this._groups=t,this._parents=n}function JT(){return new ri([[document.documentElement]],KT)}ri.prototype=JT.prototype={constructor:ri,select:function fR(t){"function"!=typeof t&&(t=Jf(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),u=0;u<o;++u)(l=r[u])&&(c=t.call(l,l.__data__,u,r))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new ri(i,this._parents)},selectAll:function mR(t){"function"!=typeof t&&(t=BT(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new ri(i,s)},filter:function pR(t){"function"!=typeof t&&(t=HT(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new ri(i,this._parents)},data:function bR(t,n){if(!t)return f=new Array(this.size()),c=-1,this.each(function(F){f[++c]=F}),f;var e=n?xR:yR,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function vR(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var u=i[c],h=s[c],d=h.length,f=t.call(u,u&&u.__data__,c,i),g=f.length,y=a[c]=new Array(g),v=o[c]=new Array(g);e(u,h,y,v,l[c]=new Array(d),f,n);for(var k,N,b=0,D=0;b<g;++b)if(k=y[b]){for(b>=D&&(D=b+1);!(N=v[D])&&++D<g;);k._next=N||null}}return(o=new ri(o,i))._enter=a,o._exit=l,o},enter:function _R(){return new ri(this._enter||this._groups.map(VT),this._parents)},exit:function TR(){return new ri(this._exit||this._groups.map(VT),this._parents)},join:function CR(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function wR(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new ri(o,this._parents)},order:function DR(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function AR(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=SR);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(n)}return new ri(s,this._parents).order()},call:function ER(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function kR(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function LR(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function MR(){var t=0;return this.each(function(){++t}),t},empty:function FR(){return!this.node()},each:function IR(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function VR(t,n){var e=Bc(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?NR:PR:"function"==typeof n?e.local?HR:BR:e.local?RR:OR)(e,n))},style:function YR(t,n,e){return arguments.length>1?this.each((null==n?$R:"function"==typeof n?jR:zR)(t,n,null==e?"":e)):lo(this.node(),t)},property:function UR(t,n){return arguments.length>1?this.each((null==n?GR:"function"==typeof n?WR:XR)(t,n)):this.node()[t]},classed:function KR(t,n){var e=YT(t+"");if(arguments.length<2){for(var i=tg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?ZR:n?qR:QR)(e,n))},text:function nB(t){return arguments.length?this.each(null==t?JR:("function"==typeof t?tB:eB)(t)):this.node().textContent},html:function oB(t){return arguments.length?this.each(null==t?iB:("function"==typeof t?rB:sB)(t)):this.node().innerHTML},raise:function lB(){return this.each(aB)},lower:function uB(){return this.each(cB)},append:function fB(t){var n="function"==typeof t?t:UT(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function mB(t,n){var e="function"==typeof t?t:UT(t),i=null==n?gB:"function"==typeof n?n:Jf(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function _B(){return this.each(pB)},clone:function xB(t){return this.select(t?yB:vB)},datum:function bB(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function SB(t,n,e){var s,o,i=wB(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?AB:DB,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var u,l=0,c=a.length;l<c;++l)for(s=0,u=a[l];s<r;++s)if((o=i[s]).type===u.type&&o.name===u.name)return u.value},dispatch:function MB(t,n){return this.each(("function"==typeof n?LB:kB)(t,n))}};const xa=JT;function tn(t){return"string"==typeof t?new ri([[document.querySelector(t)]],[document.documentElement]):new ri([[t]],KT)}var FB={value:function(){}};function e0(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new Hc(e)}function Hc(t){this._=t}function IB(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function PB(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function t0(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=FB,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}Hc.prototype=e0.prototype={constructor:Hc,on:function(t,n){var s,e=this._,i=IB(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=t0(e[s],t.name,n);else if(null==n)for(s in e)e[s]=t0(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=PB(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Hc(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const n0=e0;function ng(){$e.preventDefault(),$e.stopImmediatePropagation()}function NB(t){var n=t.document.documentElement,e=tn(t).on("dragstart.drag",ng,!0);"onselectstart"in n?e.on("selectstart.drag",ng,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function OB(t,n){var e=t.document.documentElement,i=tn(t).on("dragstart.drag",null);n&&(i.on("click.drag",ng,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function ig(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function s0(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function ba(){}var Vc=1/.7,co="\\s*([+-]?\\d+)\\s*",Ca="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ts="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RB=/^#([0-9a-f]{3,8})$/,BB=new RegExp("^rgb\\("+[co,co,co]+"\\)$"),HB=new RegExp("^rgb\\("+[ts,ts,ts]+"\\)$"),VB=new RegExp("^rgba\\("+[co,co,co,Ca]+"\\)$"),$B=new RegExp("^rgba\\("+[ts,ts,ts,Ca]+"\\)$"),zB=new RegExp("^hsl\\("+[Ca,ts,ts]+"\\)$"),jB=new RegExp("^hsla\\("+[Ca,ts,ts,Ca]+"\\)$"),r0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function o0(){return this.rgb().formatHex()}function a0(){return this.rgb().formatRgb()}function rr(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=RB.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?l0(n):3===e?new oi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?$c(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?$c(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=BB.exec(t))?new oi(n[1],n[2],n[3],1):(n=HB.exec(t))?new oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=VB.exec(t))?$c(n[1],n[2],n[3],n[4]):(n=$B.exec(t))?$c(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=zB.exec(t))?h0(n[1],n[2]/100,n[3]/100,1):(n=jB.exec(t))?h0(n[1],n[2]/100,n[3]/100,n[4]):r0.hasOwnProperty(t)?l0(r0[t]):"transparent"===t?new oi(NaN,NaN,NaN,0):null}function l0(t){return new oi(t>>16&255,t>>8&255,255&t,1)}function $c(t,n,e,i){return i<=0&&(t=n=e=NaN),new oi(t,n,e,i)}function GB(t){return t instanceof ba||(t=rr(t)),t?new oi((t=t.rgb()).r,t.g,t.b,t.opacity):new oi}function wa(t,n,e,i){return 1===arguments.length?GB(t):new oi(t,n,e,null==i?1:i)}function oi(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function c0(){return"#"+sg(this.r)+sg(this.g)+sg(this.b)}function u0(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function sg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function h0(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ns(t,n,e,i)}function d0(t){if(t instanceof ns)return new ns(t.h,t.s,t.l,t.opacity);if(t instanceof ba||(t=rr(t)),!t)return new ns;if(t instanceof ns)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new ns(o,a,l,t.opacity)}function ns(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function rg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function f0(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function og(t){return function(){return t}}function m0(t,n){var e=n-t;return e?function g0(t,n){return function(e){return t+e*n}}(t,e):og(isNaN(t)?n:t)}ig(ba,rr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:o0,formatHex:o0,formatHsl:function YB(){return d0(this).formatHsl()},formatRgb:a0,toString:a0}),ig(oi,wa,s0(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new oi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new oi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c0,formatHex:c0,formatRgb:u0,toString:u0})),ig(ns,function XB(t,n,e,i){return 1===arguments.length?d0(t):new ns(t,n,e,null==i?1:i)},s0(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new ns(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ns(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new oi(rg(t>=240?t-240:t+120,s,i),rg(t,s,i),rg(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const zc=function t(n){var e=function QB(t){return 1==(t=+t)?m0:function(n,e){return e-n?function qB(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):og(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=wa(s)).r,(r=wa(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=m0(s.opacity,r.opacity);return function(u){return s.r=o(u),s.g=a(u),s.b=l(u),s.opacity=c(u),s+""}}return i.gamma=t,i}(1);function p0(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=wa(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function _0(t,n){var o,e=n?n.length:0,i=t?Math.min(e,t.length):0,s=new Array(i),r=new Array(e);for(o=0;o<i;++o)s[o]=or(t[o],n[o]);for(;o<e;++o)r[o]=n[o];return function(a){for(o=0;o<i;++o)r[o]=s[o](a);return r}}function ZB(t,n){var e=new Date;return t=+t,n=+n,function(i){return e.setTime(t*(1-i)+n*i),e}}function Bi(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function KB(t,n){var s,e={},i={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)s in t?e[s]=or(t[s],n[s]):i[s]=n[s];return function(r){for(s in e)i[s]=e[s](r);return i}}p0(function WB(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return f0((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),p0(function UB(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return f0((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var ag=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lg=new RegExp(ag.source,"g");function v0(t,n){var i,s,r,e=ag.lastIndex=lg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=ag.exec(t))&&(s=lg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:Bi(i,s)})),e=lg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function e3(t){return function(n){return t(n)+""}}(l[0].x):function JB(t){return function(){return t}}(n):(n=l.length,function(c){for(var h,u=0;u<n;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function t3(t,n){n||(n=[]);var s,e=t?Math.min(n.length,t.length):0,i=n.slice();return function(r){for(s=0;s<e;++s)i[s]=t[s]*(1-r)+n[s]*r;return i}}function or(t,n){var i,e=typeof n;return null==n||"boolean"===e?og(n):("number"===e?Bi:"string"===e?(i=rr(n))?(n=i,zc):v0:n instanceof rr?zc:n instanceof Date?ZB:function n3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?t3:Array.isArray(n)?_0:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?KB:Bi)(t,n)}function y0(){for(var n,t=$e;n=t.sourceEvent;)t=n;return t}function x0(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function s3(t){var n=y0();return n.changedTouches&&(n=n.changedTouches[0]),x0(t,n)}var jc,Sa,uo=0,Da=0,Aa=0,Yc=0,ar=0,Gc=0,Ea="object"==typeof performance&&performance.now?performance:Date,T0="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Xc(){return ar||(T0(r3),ar=Ea.now()+Gc)}function r3(){ar=0}function Wc(){this._call=this._time=this._next=null}function C0(t,n,e){var i=new Wc;return i.restart(t,n,e),i}function w0(){ar=(Yc=Ea.now())+Gc,uo=Da=0;try{!function o3(){Xc(),++uo;for(var n,t=jc;t;)(n=ar-t._time)>=0&&t._call.call(null,n),t=t._next;--uo}()}finally{uo=0,function l3(){for(var t,e,n=jc,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:jc=e);Sa=t,cg(i)}(),ar=0}}function a3(){var t=Ea.now(),n=t-Yc;n>1e3&&(Gc-=n,Yc=t)}function cg(t){uo||(Da&&(Da=clearTimeout(Da)),t-ar>24?(t<1/0&&(Da=setTimeout(w0,t-Ea.now()-Gc)),Aa&&(Aa=clearInterval(Aa))):(Aa||(Yc=Ea.now(),Aa=setInterval(a3,1e3)),uo=1,T0(w0)))}function D0(t,n,e){var i=new Wc;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Wc.prototype=C0.prototype={constructor:Wc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xc():+e)+(null==n?0:+n),!this._next&&Sa!==this&&(Sa?Sa._next=this:jc=this,Sa=this),this._call=t,this._time=e,cg()},stop:function(){this._call&&(this._call=null,this._time=1/0,cg())}};var c3=n0("start","end","cancel","interrupt"),u3=[];function Qc(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function h3(t,n,e){var s,i=t.__transition;function o(c){var u,h,d,f;if(1!==e.state)return l();for(u in i)if((f=i[u]).name===e.name){if(3===f.state)return D0(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[u])}if(D0(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(d=e.tween.length),u=0,h=-1;u<d;++u)(f=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(s[++h]=f);s.length=h+1}}function a(c){for(var u=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),h=-1,d=s.length;++h<d;)s[h].call(t,u);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=C0(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:c3,tween:u3,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function dg(t,n){var e=Hi(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function gs(t,n){var e=Hi(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Hi(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function fg(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}var ka,mg,M0,Zc,k0=180/Math.PI,gg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L0(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*k0,skewX:Math.atan(l)*k0,scaleX:o,scaleY:a}}function F0(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,u){var h=[],d=[];return c=t(c),u=t(u),function r(c,u,h,d,f,g){if(c!==h||u!==d){var y=f.push("translate(",null,n,null,e);g.push({i:y-4,x:Bi(c,h)},{i:y-2,x:Bi(u,d)})}else(h||d)&&f.push("translate("+h+n+d+e)}(c.translateX,c.translateY,u.translateX,u.translateY,h,d),function o(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(s(h)+"rotate(",null,i)-2,x:Bi(c,u)})):u&&h.push(s(h)+"rotate("+u+i)}(c.rotate,u.rotate,h,d),function a(c,u,h,d){c!==u?d.push({i:h.push(s(h)+"skewX(",null,i)-2,x:Bi(c,u)}):u&&h.push(s(h)+"skewX("+u+i)}(c.skewX,u.skewX,h,d),function l(c,u,h,d,f,g){if(c!==h||u!==d){var y=f.push(s(f)+"scale(",null,",",null,")");g.push({i:y-4,x:Bi(c,h)},{i:y-2,x:Bi(u,d)})}else(1!==h||1!==d)&&f.push(s(f)+"scale("+h+","+d+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var v,g=-1,y=d.length;++g<y;)h[(v=d[g]).i]=v.x(f);return h.join("")}}}var m3=F0(function f3(t){return"none"===t?gg:(ka||(ka=document.createElement("DIV"),mg=document.documentElement,M0=document.defaultView),ka.style.transform=t,t=M0.getComputedStyle(mg.appendChild(ka),null).getPropertyValue("transform"),mg.removeChild(ka),L0(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),p3=F0(function g3(t){return null!=t&&(Zc||(Zc=document.createElementNS("http://www.w3.org/2000/svg","g")),Zc.setAttribute("transform",t),t=Zc.transform.baseVal.consolidate())?L0((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):gg},", ",")",")");function _3(t,n){var e,i;return function(){var s=gs(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function v3(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=gs(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function pg(t,n,e){var i=t._id;return t.each(function(){var s=gs(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return Hi(s,i).value[n]}}function I0(t,n){var e;return("number"==typeof n?Bi:n instanceof rr?zc:(e=rr(n))?(n=e,zc):v0)(t,n)}function x3(t){return function(){this.removeAttribute(t)}}function b3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function C3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function w3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function D3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function S3(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function E3(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function k3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&E3(t,r)),e}return s._value=n,s}function L3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&S3(t,r)),e}return s._value=n,s}function F3(t,n){return function(){dg(this,t).delay=+n.apply(this,arguments)}}function I3(t,n){return n=+n,function(){dg(this,t).delay=n}}function N3(t,n){return function(){gs(this,t).duration=+n.apply(this,arguments)}}function O3(t,n){return n=+n,function(){gs(this,t).duration=n}}function B3(t,n){if("function"!=typeof n)throw new Error;return function(){gs(this,t).ease=n}}function j3(t,n,e){var i,s,r=function z3(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?dg:gs;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var q3=xa.prototype.constructor;function P0(t){return function(){this.style.removeProperty(t)}}function nH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function iH(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&nH(t,o,e)),i}return r._value=n,r}function lH(t){return function(n){this.textContent=t.call(this,n)}}function cH(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&lH(s)),n}return i._value=t,i}var fH=0;function ms(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function N0(){return++fH}var ho=xa.prototype;ms.prototype=function gH(t){return xa().transition(t)}.prototype={constructor:ms,select:function W3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Jf(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var u,h,a=i[o],l=a.length,c=r[o]=new Array(l),d=0;d<l;++d)(u=a[d])&&(h=t.call(u,u.__data__,d,a))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,Qc(c[d],n,e,d,c,Hi(u,e)));return new ms(r,this._parents,n,e)},selectAll:function U3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=BT(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var u,l=i[a],c=l.length,h=0;h<c;++h)if(u=l[h]){for(var f,d=t.call(u,u.__data__,h,l),g=Hi(u,e),y=0,v=d.length;y<v;++y)(f=d[y])&&Qc(f,n,e,y,d,g);r.push(d),o.push(u)}return new ms(r,o,n,e)},filter:function V3(t){"function"!=typeof t&&(t=HT(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new ms(i,this._parents,this._name,this._id)},merge:function $3(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new ms(o,this._parents,this._name,this._id)},selection:function Q3(){return new q3(this._groups,this._parents)},transition:function hH(){for(var t=this._name,n=this._id,e=N0(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var u=Hi(l,n);Qc(l,t,e,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ms(i,this._parents,t,e)},call:ho.call,nodes:ho.nodes,node:ho.node,size:ho.size,empty:ho.empty,each:ho.each,on:function Y3(t,n){var e=this._id;return arguments.length<2?Hi(this.node(),e).on.on(t):this.each(j3(e,t,n))},attr:function A3(t,n){var e=Bc(t),i="transform"===e?p3:I0;return this.attrTween(t,"function"==typeof n?(e.local?D3:w3)(e,i,pg(this,"attr."+t,n)):null==n?(e.local?b3:x3)(e):(e.local?C3:T3)(e,i,n))},attrTween:function M3(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=Bc(t);return this.tween(e,(i.local?k3:L3)(i,n))},style:function tH(t,n,e){var i="transform"==(t+="")?m3:I0;return null==n?this.styleTween(t,function Z3(t,n){var e,i,s;return function(){var r=lo(this,t),o=(this.style.removeProperty(t),lo(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,P0(t)):"function"==typeof n?this.styleTween(t,function J3(t,n,e){var i,s,r;return function(){var o=lo(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=lo(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,pg(this,"style."+t,n))).each(function eH(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=gs(this,t),c=l.on,u=null==l.value[r]?a||(a=P0(n)):void 0;(c!==e||s!==u)&&(i=(e=c).copy()).on(o,s=u),l.on=i}}(this._id,t)):this.styleTween(t,function K3(t,n,e){var i,r,s=e+"";return function(){var o=lo(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function sH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,iH(t,n,null==e?"":e))},text:function aH(t){return this.tween("text","function"==typeof t?function oH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(pg(this,"text",t)):function rH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function uH(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,cH(t))},remove:function X3(){return this.on("end.remove",function G3(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function y3(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=Hi(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?_3:v3)(e,t,n))},delay:function P3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?F3:I3)(n,t)):Hi(this.node(),n).delay},duration:function R3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?N3:O3)(n,t)):Hi(this.node(),n).duration},ease:function H3(t){var n=this._id;return arguments.length?this.each(B3(n,t)):Hi(this.node(),n).ease},end:function dH(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=gs(this,i),u=c.on;u!==t&&((n=(t=u).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var _g={time:null,delay:0,duration:250,ease:function mH(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function pH(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return _g.time=Xc(),_g;return e}function vg(t){return function(){return t}}function yH(t,n,e){this.target=t,this.type=n,this.selection=e}function O0(){$e.stopImmediatePropagation()}function yg(){$e.preventDefault(),$e.stopImmediatePropagation()}xa.prototype.interrupt=function d3(t){return this.each(function(){fg(this,t)})},xa.prototype.transition=function _H(t){var n,e;t instanceof ms?(n=t._id,t=t._name):(n=N0(),(e=_g).time=Xc(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&Qc(l,t,n,c,o,e||pH(l,n));return new ms(i,this._parents,t,n)};var R0={name:"drag"},xg={name:"space"},fo={name:"handle"},go={name:"center"};function B0(t){return[+t[0],+t[1]]}function bg(t){return[B0(t[0]),B0(t[1])]}function xH(t){return function(n){return function i3(t,n,e){arguments.length<3&&(e=n,n=y0().changedTouches);for(var r,i=0,s=n?n.length:0;i<s;++i)if((r=n[i]).identifier===e)return x0(t,r);return null}(n,$e.touches,t)}}var Kc={name:"x",handles:["w","e"].map(La),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Jc={name:"y",handles:["n","s"].map(La),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ps=(["n","w","e","s","nw","ne","sw","se"].map(La),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),H0={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},V0={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},TH={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},CH={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function La(t){return{type:t}}function wH(){return!$e.ctrlKey&&!$e.button}function DH(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function AH(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function SH(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function wg(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Dg(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function kH(t){return(n,e)=>wg(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const u=i(o,a,l,c-1);return u>l&&n(o[u-1],a)>-n(o[u],a)?u-1:u},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)>0?c=u:l=u+1}return l}}}var Ag=Math.sqrt(50),Sg=Math.sqrt(10),Eg=Math.sqrt(2);function $0(t,n,e){var i=(n-t)/Math.max(0,e),s=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,s);return s>=0?(r>=Ag?10:r>=Sg?5:r>=Eg?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Ag?10:r>=Sg?5:r>=Eg?2:1)}function kg(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=Ag?s*=10:r>=Sg?s*=5:r>=Eg&&(s*=2),n<t?-s:s}const _s=1e3,Ci=6e4,vs=60*Ci,lr=24*vs,Lg=7*lr,z0=30*lr,Mg=365*lr;var Fg=new Date,Ig=new Date;function nn(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return nn(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Fg.setTime(+r),Ig.setTime(+o),t(Fg),t(Ig),Math.floor(e(Fg,Ig))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var eu=nn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});eu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?nn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):eu:null};const MH=eu;var j0=nn(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*_s)},function(t,n){return(n-t)/_s},function(t){return t.getUTCSeconds()});const Ma=j0;var Y0=nn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*_s)},function(t,n){t.setTime(+t+n*Ci)},function(t,n){return(n-t)/Ci},function(t){return t.getMinutes()});const G0=Y0;var X0=nn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*_s-t.getMinutes()*Ci)},function(t,n){t.setTime(+t+n*vs)},function(t,n){return(n-t)/vs},function(t){return t.getHours()});const W0=X0;var U0=nn(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ci)/lr,t=>t.getDate()-1);const q0=U0;function cr(t){return nn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Ci)/Lg})}var Pg=cr(0),Q0=(cr(1),cr(2),cr(3),cr(4),cr(5),cr(6),nn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const Z0=Q0;var Ng=nn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ng.every=function(t){return isFinite(t=Math.floor(t))&&t>0?nn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const K0=Ng;var J0=nn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Ci)},function(t,n){return(n-t)/Ci},function(t){return t.getUTCMinutes()});const BH=J0;var eC=nn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*vs)},function(t,n){return(n-t)/vs},function(t){return t.getUTCHours()});const HH=eC;var tC=nn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/lr},function(t){return t.getUTCDate()-1});const VH=tC;function ur(t){return nn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/Lg})}var nC=ur(0),iC=(ur(1),ur(2),ur(3),ur(4),ur(5),ur(6),nn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const WH=iC;var Og=nn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Og.every=function(t){return isFinite(t=Math.floor(t))&&t>0?nn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const UH=Og;function sC(t,n,e,i,s,r){const o=[[Ma,1,_s],[Ma,5,5e3],[Ma,15,15e3],[Ma,30,3e4],[r,1,Ci],[r,5,5*Ci],[r,15,15*Ci],[r,30,30*Ci],[s,1,vs],[s,3,3*vs],[s,6,6*vs],[s,12,12*vs],[i,1,lr],[i,2,2*lr],[e,1,Lg],[n,1,z0],[n,3,3*z0],[t,1,Mg]];function l(c,u,h){const d=Math.abs(u-c)/h,f=Dg(([,,v])=>v).right(o,d);if(f===o.length)return t.every(kg(c/Mg,u/Mg,h));if(0===f)return MH.every(Math.max(kg(c,u,h),1));const[g,y]=o[d/o[f-1][2]<o[f][2]/d?f-1:f];return g.every(y)}return[function a(c,u,h){const d=u<c;d&&([c,u]=[u,c]);const f=h&&"function"==typeof h.range?h:l(c,u,h),g=f?f.range(c,+u+1):[];return d?g.reverse():g},l]}const[i9,s9]=sC(UH,WH,nC,VH,HH,BH),[qH,QH]=sC(K0,Z0,Pg,q0,W0,G0);var Rg=new Date,Bg=new Date;function ys(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return ys(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Rg.setTime(+r),Bg.setTime(+o),t(Rg),t(Bg),Math.floor(e(Rg,Bg))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var aC=6048e5;function hr(t){return ys(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/aC})}var lC=hr(0),tu=hr(1),mo=(hr(2),hr(3),hr(4)),cC=(hr(5),hr(6),ys(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const uC=cC;function dr(t){return ys(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/aC})}var hC=dr(0),nu=dr(1),po=(dr(2),dr(3),dr(4)),dC=(dr(5),dr(6),ys(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const fC=dC;var Hg=ys(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Hg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Fa=Hg;var Vg=ys(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Vg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Ia=Vg;function $g(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function zg(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pa(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var _o,EC,gC={"-":"",_:" ",0:"0"},sn=/^\s*\d+/,oV=/^%/,aV=/[\\^$*+?|[\]().{}]/g;function ze(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function lV(t){return t.replace(aV,"\\$&")}function Na(t){return new RegExp("^(?:"+t.map(lV).join("|")+")","i")}function Oa(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function cV(t,n,e){var i=sn.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function uV(t,n,e){var i=sn.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function hV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function dV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function fV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function mC(t,n,e){var i=sn.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function pC(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function gV(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function mV(t,n,e){var i=sn.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function pV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function _C(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function _V(t,n,e){var i=sn.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function vC(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function vV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function yV(t,n,e){var i=sn.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function xV(t,n,e){var i=sn.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function bV(t,n,e){var i=sn.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function TV(t,n,e){var i=oV.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function CV(t,n,e){var i=sn.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function wV(t,n,e){var i=sn.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function yC(t,n){return ze(t.getDate(),n,2)}function DV(t,n){return ze(t.getHours(),n,2)}function AV(t,n){return ze(t.getHours()%12||12,n,2)}function SV(t,n){return ze(1+fC.count(Fa(t),t),n,3)}function xC(t,n){return ze(t.getMilliseconds(),n,3)}function EV(t,n){return xC(t,n)+"000"}function kV(t,n){return ze(t.getMonth()+1,n,2)}function LV(t,n){return ze(t.getMinutes(),n,2)}function MV(t,n){return ze(t.getSeconds(),n,2)}function FV(t){var n=t.getDay();return 0===n?7:n}function IV(t,n){return ze(hC.count(Fa(t)-1,t),n,2)}function bC(t){var n=t.getDay();return n>=4||0===n?po(t):po.ceil(t)}function PV(t,n){return t=bC(t),ze(po.count(Fa(t),t)+(4===Fa(t).getDay()),n,2)}function NV(t){return t.getDay()}function OV(t,n){return ze(nu.count(Fa(t)-1,t),n,2)}function RV(t,n){return ze(t.getFullYear()%100,n,2)}function BV(t,n){return ze((t=bC(t)).getFullYear()%100,n,2)}function HV(t,n){return ze(t.getFullYear()%1e4,n,4)}function VV(t,n){var e=t.getDay();return ze((t=e>=4||0===e?po(t):po.ceil(t)).getFullYear()%1e4,n,4)}function $V(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ze(n/60|0,"0",2)+ze(n%60,"0",2)}function TC(t,n){return ze(t.getUTCDate(),n,2)}function zV(t,n){return ze(t.getUTCHours(),n,2)}function jV(t,n){return ze(t.getUTCHours()%12||12,n,2)}function YV(t,n){return ze(1+uC.count(Ia(t),t),n,3)}function CC(t,n){return ze(t.getUTCMilliseconds(),n,3)}function GV(t,n){return CC(t,n)+"000"}function XV(t,n){return ze(t.getUTCMonth()+1,n,2)}function WV(t,n){return ze(t.getUTCMinutes(),n,2)}function UV(t,n){return ze(t.getUTCSeconds(),n,2)}function qV(t){var n=t.getUTCDay();return 0===n?7:n}function QV(t,n){return ze(lC.count(Ia(t)-1,t),n,2)}function wC(t){var n=t.getUTCDay();return n>=4||0===n?mo(t):mo.ceil(t)}function ZV(t,n){return t=wC(t),ze(mo.count(Ia(t),t)+(4===Ia(t).getUTCDay()),n,2)}function KV(t){return t.getUTCDay()}function JV(t,n){return ze(tu.count(Ia(t)-1,t),n,2)}function e$(t,n){return ze(t.getUTCFullYear()%100,n,2)}function t$(t,n){return ze((t=wC(t)).getUTCFullYear()%100,n,2)}function n$(t,n){return ze(t.getUTCFullYear()%1e4,n,4)}function i$(t,n){var e=t.getUTCDay();return ze((t=e>=4||0===e?mo(t):mo.ceil(t)).getUTCFullYear()%1e4,n,4)}function s$(){return"+0000"}function DC(){return"%"}function AC(t){return+t}function SC(t){return Math.floor(+t/1e3)}function kC(t){return null===t?NaN:+t}!function l$(t){_o=function rV(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Na(s),u=Oa(s),h=Na(r),d=Oa(r),f=Na(o),g=Oa(o),y=Na(a),v=Oa(a),C=Na(l),b=Oa(l),D={a:function j(V){return o[V.getDay()]},A:function $(V){return r[V.getDay()]},b:function q(V){return l[V.getMonth()]},B:function re(V){return a[V.getMonth()]},c:null,d:yC,e:yC,f:EV,g:BV,G:VV,H:DV,I:AV,j:SV,L:xC,m:kV,M:LV,p:function we(V){return s[+(V.getHours()>=12)]},q:function tt(V){return 1+~~(V.getMonth()/3)},Q:AC,s:SC,S:MV,u:FV,U:IV,V:PV,w:NV,W:OV,x:null,X:null,y:RV,Y:HV,Z:$V,"%":DC},k={a:function bt(V){return o[V.getUTCDay()]},A:function pe(V){return r[V.getUTCDay()]},b:function dn(V){return l[V.getUTCMonth()]},B:function $n(V){return a[V.getUTCMonth()]},c:null,d:TC,e:TC,f:GV,g:t$,G:i$,H:zV,I:jV,j:YV,L:CC,m:XV,M:WV,p:function Ye(V){return s[+(V.getUTCHours()>=12)]},q:function Tt(V){return 1+~~(V.getUTCMonth()/3)},Q:AC,s:SC,S:UV,u:qV,U:QV,V:ZV,w:KV,W:JV,x:null,X:null,y:e$,Y:n$,Z:s$,"%":DC},N={a:function ie(V,te,le){var O=f.exec(te.slice(le));return O?(V.w=g[O[0].toLowerCase()],le+O[0].length):-1},A:function J(V,te,le){var O=h.exec(te.slice(le));return O?(V.w=d[O[0].toLowerCase()],le+O[0].length):-1},b:function H(V,te,le){var O=C.exec(te.slice(le));return O?(V.m=b[O[0].toLowerCase()],le+O[0].length):-1},B:function Y(V,te,le){var O=y.exec(te.slice(le));return O?(V.m=v[O[0].toLowerCase()],le+O[0].length):-1},c:function Be(V,te,le){return me(V,n,te,le)},d:_C,e:_C,f:bV,g:pC,G:mC,H:vC,I:vC,j:_V,L:xV,m:pV,M:vV,p:function ee(V,te,le){var O=c.exec(te.slice(le));return O?(V.p=u[O[0].toLowerCase()],le+O[0].length):-1},q:mV,Q:CV,s:wV,S:yV,u:uV,U:hV,V:dV,w:cV,W:fV,x:function Ce(V,te,le){return me(V,e,te,le)},X:function P(V,te,le){return me(V,i,te,le)},y:pC,Y:mC,Z:gV,"%":TV};function F(V,te){return function(le){var Ut,wi,In,O=[],Pt=-1,ke=0,zt=V.length;for(le instanceof Date||(le=new Date(+le));++Pt<zt;)37===V.charCodeAt(Pt)&&(O.push(V.slice(ke,Pt)),null!=(wi=gC[Ut=V.charAt(++Pt)])?Ut=V.charAt(++Pt):wi="e"===Ut?" ":"0",(In=te[Ut])&&(Ut=In(le,wi)),O.push(Ut),ke=Pt+1);return O.push(V.slice(ke,Pt)),O.join("")}}function X(V,te){return function(le){var ke,zt,O=Pa(1900,void 0,1);if(me(O,V,le+="",0)!=le.length)return null;if("Q"in O)return new Date(O.Q);if("s"in O)return new Date(1e3*O.s+("L"in O?O.L:0));if(te&&!("Z"in O)&&(O.Z=0),"p"in O&&(O.H=O.H%12+12*O.p),void 0===O.m&&(O.m="q"in O?O.q:0),"V"in O){if(O.V<1||O.V>53)return null;"w"in O||(O.w=1),"Z"in O?(zt=(ke=zg(Pa(O.y,0,1))).getUTCDay(),ke=zt>4||0===zt?tu.ceil(ke):tu(ke),ke=uC.offset(ke,7*(O.V-1)),O.y=ke.getUTCFullYear(),O.m=ke.getUTCMonth(),O.d=ke.getUTCDate()+(O.w+6)%7):(zt=(ke=$g(Pa(O.y,0,1))).getDay(),ke=zt>4||0===zt?nu.ceil(ke):nu(ke),ke=fC.offset(ke,7*(O.V-1)),O.y=ke.getFullYear(),O.m=ke.getMonth(),O.d=ke.getDate()+(O.w+6)%7)}else("W"in O||"U"in O)&&("w"in O||(O.w="u"in O?O.u%7:"W"in O?1:0),zt="Z"in O?zg(Pa(O.y,0,1)).getUTCDay():$g(Pa(O.y,0,1)).getDay(),O.m=0,O.d="W"in O?(O.w+6)%7+7*O.W-(zt+5)%7:O.w+7*O.U-(zt+6)%7);return"Z"in O?(O.H+=O.Z/100|0,O.M+=O.Z%100,zg(O)):$g(O)}}function me(V,te,le,O){for(var Ut,wi,Pt=0,ke=te.length,zt=le.length;Pt<ke;){if(O>=zt)return-1;if(37===(Ut=te.charCodeAt(Pt++))){if(Ut=te.charAt(Pt++),!(wi=N[Ut in gC?te.charAt(Pt++):Ut])||(O=wi(V,le,O))<0)return-1}else if(Ut!=le.charCodeAt(O++))return-1}return O}return D.x=F(e,D),D.X=F(i,D),D.c=F(n,D),k.x=F(e,k),k.X=F(i,k),k.c=F(n,k),{format:function(V){var te=F(V+="",D);return te.toString=function(){return V},te},parse:function(V){var te=X(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=F(V+="",k);return te.toString=function(){return V},te},utcParse:function(V){var te=X(V+="",!0);return te.toString=function(){return V},te}}}(t),EC=_o.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const c$=Dg(wg).right,MC=(Dg(kC),c$);function u$(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function d$(t){return+t}var FC=[0,1];function vo(t){return t}function jg(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function h$(t){return function(){return t}}(isNaN(n)?NaN:.5)}function g$(t,n,e){var i=t[0],s=t[1],r=n[0],o=n[1];return s<i?(i=jg(s,i),r=e(o,r)):(i=jg(i,s),r=e(r,o)),function(a){return r(i(a))}}function m$(t,n,e){var i=Math.min(t.length,n.length)-1,s=new Array(i),r=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<i;)s[o]=jg(t[o],t[o+1]),r[o]=e(n[o],n[o+1]);return function(a){var l=MC(t,a,1,i)-1;return r[l](s[l](a))}}function IC(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function PC(){return function p$(){var i,s,r,a,l,c,t=FC,n=FC,e=or,o=vo;function u(){var d=Math.min(t.length,n.length);return o!==vo&&(o=function f$(t,n){var e;return t>n&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[d-1])),a=d>2?m$:g$,l=c=null,h}function h(d){return null==d||isNaN(d=+d)?r:(l||(l=a(t.map(i),n,e)))(i(o(d)))}return h.invert=function(d){return o(s((c||(c=a(n,t.map(i),Bi)))(d)))},h.domain=function(d){return arguments.length?(t=Array.from(d,d$),u()):t.slice()},h.range=function(d){return arguments.length?(n=Array.from(d),u()):n.slice()},h.rangeRound=function(d){return n=Array.from(d),e=u$,u()},h.clamp=function(d){return arguments.length?(o=!!d||vo,u()):o!==vo},h.interpolate=function(d){return arguments.length?(e=d,u()):e},h.unknown=function(d){return arguments.length?(r=d,h):r},function(d,f){return i=d,s=f,u()}}()(vo,vo)}function Ra(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function v$(t){return new Date(t)}function y$(t){return t instanceof Date?+t:+new Date(+t)}function NC(t,n,e,i,s,r,o,a,l,c){var u=PC(),h=u.invert,d=u.domain,f=c(".%L"),g=c(":%S"),y=c("%I:%M"),v=c("%I %p"),C=c("%a %d"),b=c("%b %d"),D=c("%B"),k=c("%Y");function N(F){return(l(F)<F?f:a(F)<F?g:o(F)<F?y:r(F)<F?v:i(F)<F?s(F)<F?C:b:e(F)<F?D:k)(F)}return u.invert=function(F){return new Date(h(F))},u.domain=function(F){return arguments.length?d(Array.from(F,y$)):d().map(v$)},u.ticks=function(F){var X=d();return t(X[0],X[X.length-1],null==F?10:F)},u.tickFormat=function(F,X){return null==X?N:c(X)},u.nice=function(F){var X=d();return(!F||"function"!=typeof F.range)&&(F=n(X[0],X[X.length-1],null==F?10:F)),F?d(function _$(t,n){var o,e=0,i=(t=t.slice()).length-1,s=t[e],r=t[i];return r<s&&(o=e,e=i,i=o,o=s,s=r,r=o),t[e]=n.floor(s),t[i]=n.ceil(r),t}(X,F)):u},u.copy=function(){return IC(u,NC(t,n,e,i,s,r,o,a,l,c))},u}function fr(){return Ra.apply(NC(qH,QH,K0,Z0,Pg,q0,W0,G0,Ma,EC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var OC,x$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iu(t){if(!(n=x$.exec(t)))throw new Error("invalid format: "+t);var n;return new Yg({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Yg(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function su(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function yo(t){return(t=su(Math.abs(t)))?t[1]:NaN}function RC(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}iu.prototype=Yg.prototype,Yg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const BC={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function b$(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return RC(100*t,n)},r:RC,s:function A$(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(OC=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+su(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HC(t){return t}var ru,Gg,zC,VC=Array.prototype.map,$C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function F$(t){var n=t.domain;return t.ticks=function(e){var i=n();return function LH(t,n,e){var i,r,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n<t)&&(r=t,t=n,n=r),0===(a=$0(t,n,e))||!isFinite(a))return[];if(a>0){let l=Math.round(t/a),c=Math.round(n/a);for(l*a<t&&++l,c*a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)*a}else{a=-a;let l=Math.round(t*a),c=Math.round(n*a);for(l/a<t&&++l,c/a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)/a}return i&&o.reverse(),o}(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){var s=n();return function M$(t,n,e,i){var r,s=kg(t,n,e);switch((i=iu(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null==i.precision&&!isNaN(r=function T$(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yo(n)/3)))-yo(Math.abs(t)))}(s,o))&&(i.precision=r),zC(i,o);case"":case"e":case"g":case"p":case"r":null==i.precision&&!isNaN(r=function k$(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,yo(n)-yo(t))+1}(s,Math.max(Math.abs(t),Math.abs(n))))&&(i.precision=r-("e"===i.type));break;case"f":case"%":null==i.precision&&!isNaN(r=function L$(t){return Math.max(0,-yo(Math.abs(t)))}(s))&&(i.precision=r-2*("%"===i.type))}return Gg(i)}(s[0],s[s.length-1],null==e?10:e,i)},t.nice=function(e){null==e&&(e=10);var l,c,i=n(),s=0,r=i.length-1,o=i[s],a=i[r],u=10;for(a<o&&(c=o,o=a,a=c,c=s,s=r,r=c);u-- >0;){if((c=$0(o,a,e))===l)return i[s]=o,i[r]=a,n(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function et(){var t=PC();return t.copy=function(){return IC(t,et())},Ra.apply(t,arguments),F$(t)}function jC(t,n,e){t=+t,n=+n,e=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+e;for(var i=-1,s=0|Math.max(0,Math.ceil((n-t)/e)),r=new Array(s);++i<s;)r[i]=t+i*e;return r}!function E$(t){ru=function S$(t){var n=void 0===t.grouping||void 0===t.thousands?HC:function C$(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(VC.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?HC:function w$(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(VC.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(h){var d=(h=iu(h)).fill,f=h.align,g=h.sign,y=h.symbol,v=h.zero,C=h.width,b=h.comma,D=h.precision,k=h.trim,N=h.type;"n"===N?(b=!0,N="g"):BC[N]||(void 0===D&&(D=12),k=!0,N="g"),(v||"0"===d&&"="===f)&&(v=!0,d="0",f="=");var F="$"===y?e:"#"===y&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",X="$"===y?i:/[%p]/.test(N)?o:"",me=BC[N],ee=/[defgprs%]/.test(N);function ie(J){var Be,Ce,P,H=F,Y=X;if("c"===N)Y=me(J)+Y,J="";else{var j=(J=+J)<0||1/J<0;if(J=isNaN(J)?l:me(Math.abs(J),D),k&&(J=function D$(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(J)),j&&0==+J&&"+"!==g&&(j=!1),H=(j?"("===g?g:a:"-"===g||"("===g?"":g)+H,Y=("s"===N?$C[8+OC/3]:"")+Y+(j&&"("===g?")":""),ee)for(Be=-1,Ce=J.length;++Be<Ce;)if(48>(P=J.charCodeAt(Be))||P>57){Y=(46===P?s+J.slice(Be+1):J.slice(Be))+Y,J=J.slice(0,Be);break}}b&&!v&&(J=n(J,1/0));var $=H.length+J.length+Y.length,q=$<C?new Array(C-$+1).join(d):"";switch(b&&v&&(J=n(q+J,q.length?C-Y.length:1/0),q=""),f){case"<":J=H+J+Y+q;break;case"=":J=H+q+J+Y;break;case"^":J=q.slice(0,$=q.length>>1)+H+J+Y+q.slice($);break;default:J=q+H+J+Y}return r(J)}return D=void 0===D?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),ie.toString=function(){return h+""},ie}return{format:c,formatPrefix:function u(h,d){var f=c(((h=iu(h)).type="f",h)),g=3*Math.max(-8,Math.min(8,Math.floor(yo(d)/3))),y=Math.pow(10,-g),v=$C[8+g/3];return function(C){return f(y*C)+v}}}}(t),Gg=ru.format,zC=ru.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const YC=Symbol("implicit");function Xg(){var t=new Map,n=[],e=[],i=YC;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==YC)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Xg(n,e).unknown(i)},Ra.apply(s,arguments),s}function un(){var r,o,t=Xg().unknown(void 0),n=t.domain,e=t.range,i=0,s=1,a=!1,l=0,c=0,u=.5;function h(){var d=n().length,f=s<i,g=f?s:i,y=f?i:s;r=(y-g)/Math.max(1,d-l+2*c),a&&(r=Math.floor(r)),g+=(y-g-r*(d-l))*u,o=r*(1-l),a&&(g=Math.round(g),o=Math.round(o));var v=jC(d).map(function(C){return g+r*C});return e(f?v.reverse():v)}return delete t.unknown,t.domain=function(d){return arguments.length?(n(d),h()):n()},t.range=function(d){return arguments.length?([i,s]=d,i=+i,s=+s,h()):[i,s]},t.rangeRound=function(d){return[i,s]=d,i=+i,s=+s,a=!0,h()},t.bandwidth=function(){return o},t.step=function(){return r},t.round=function(d){return arguments.length?(a=!!d,h()):a},t.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),h()):l},t.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),h()):l},t.paddingOuter=function(d){return arguments.length?(c=+d,h()):c},t.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),h()):u},t.copy=function(){return un(n(),[i,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Ra.apply(h(),arguments)}function GC(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return GC(n())},t}function gr(){return GC(un.apply(null,arguments).paddingInner(1))}function I$(t,n,e=kC){if(i=t.length){if((n=+n)<=0||i<2)return+e(t[0],0,t);if(n>=1)return+e(t[i-1],i-1,t);var i,s=(i-1)*n,r=Math.floor(s),o=+e(t[r],r,t);return o+(+e(t[r+1],r+1,t)-o)*(s-r)}}function XC(){var i,t=[],n=[],e=[];function s(){var o=0,a=Math.max(1,n.length);for(e=new Array(a-1);++o<a;)e[o-1]=I$(t,o/a);return r}function r(o){return null==o||isNaN(o=+o)?i:n[MC(e,o)]}return r.invertExtent=function(o){var a=n.indexOf(o);return a<0?[NaN,NaN]:[a>0?e[a-1]:t[0],a<e.length?e[a]:t[t.length-1]]},r.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)null!=a&&!isNaN(a=+a)&&t.push(a);return t.sort(wg),s()},r.range=function(o){return arguments.length?(n=Array.from(o),s()):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.quantiles=function(){return e.slice()},r.copy=function(){return XC().domain(t).range(n).unknown(i)},Ra.apply(r,arguments)}function WC(t){this._context=t}function mr(t){return new WC(t)}WC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Wg=Math.PI,Ug=2*Wg,pr=1e-6,P$=Ug-pr;function qg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function UC(){return new qg}qg.prototype=UC.prototype={constructor:qg,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,u=o-n,h=c*c+u*u;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>pr)if(Math.abs(u*a-l*c)>pr&&s){var d=e-r,f=i-o,g=a*a+l*l,y=d*d+f*f,v=Math.sqrt(g),C=Math.sqrt(h),b=s*Math.tan((Wg-Math.acos((g+h-y)/(2*v*C)))/2),D=b/C,k=b/v;Math.abs(D-1)>pr&&(this._+="L"+(t+D*c)+","+(n+D*u)),this._+="A"+s+","+s+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+k*a)+","+(this._y1=n+k*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,u=1^r,h=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>pr||Math.abs(this._y1-c)>pr)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Ug+Ug),h>P$?this._+="A"+e+","+e+",0,1,"+u+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>pr&&(this._+="A"+e+","+e+",0,"+ +(h>=Wg)+","+u+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Qg=UC;function qe(t){return function(){return t}}function qC(t){return t[0]}function QC(t){return t[1]}function ou(){var t=qC,n=QC,e=qe(!0),i=null,s=mr,r=null;function o(a){var l,u,d,c=a.length,h=!1;for(null==i&&(r=s(d=Qg())),l=0;l<=c;++l)!(l<c&&e(u=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(u,l,a),+n(u,l,a));if(d)return r=null,d+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:qe(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:qe(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:qe(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}function xo(){var t=qC,n=null,e=qe(0),i=QC,s=qe(!0),r=null,o=mr,a=null;function l(u){var h,d,f,y,C,g=u.length,v=!1,b=new Array(g),D=new Array(g);for(null==r&&(a=o(C=Qg())),h=0;h<=g;++h){if(!(h<g&&s(y=u[h],h,u))===v)if(v=!v)d=h,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),f=h-1;f>=d;--f)a.point(b[f],D[f]);a.lineEnd(),a.areaEnd()}v&&(b[h]=+t(y,h,u),D[h]=+e(y,h,u),a.point(n?+n(y,h,u):b[h],i?+i(y,h,u):D[h]))}if(C)return a=null,C+""||null}function c(){return ou().defined(s).curve(o).context(r)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:qe(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:qe(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:qe(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:qe(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:qe(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:qe(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(s="function"==typeof u?u:qe(!!u),l):s},l.curve=function(u){return arguments.length?(o=u,null!=r&&(a=o(r)),l):o},l.context=function(u){return arguments.length?(null==u?r=a=null:a=o(r=u),l):r},l}function ZC(){}function Zg(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function KC(t,n){this._context=t,this._k=(1-n)/6}function JC(t,n){this._context=t,this._k=(1-n)/6}KC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zg(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new KC(i,n)}return e.tension=function(i){return t(+i)},e}(0),JC.prototype={areaStart:ZC,areaEnd:ZC,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const N$=function t(n){function e(i){return new JC(i,n)}return e.tension=function(i){return t(+i)},e}(0);var O$=tw(mr);function ew(t){this._curve=t}function tw(t){function n(e){return new ew(t(e))}return n._curve=t,n}ew.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var nw=Math.abs,yn=Math.atan2,_r=Math.cos,H$=Math.max,Kg=Math.min,is=Math.sin,bo=Math.sqrt,Hn=1e-12,Ba=Math.PI,au=Ba/2,lu=2*Ba;function V$(t){return t>1?0:t<-1?Ba:Math.acos(t)}function iw(t){return t>=1?au:t<=-1?-au:Math.asin(t)}function z$(t){return t.innerRadius}function j$(t){return t.outerRadius}function Y$(t){return t.startAngle}function G$(t){return t.endAngle}function X$(t){return t&&t.padAngle}function W$(t,n,e,i,s,r,o,a){var l=e-t,c=i-n,u=o-s,h=a-r,d=h*l-u*c;if(!(d*d<Hn))return[t+(d=(u*(n-r)-h*(t-s))/d)*l,n+d*c]}function cu(t,n,e,i,s,r,o){var a=t-e,l=n-i,c=(o?r:-r)/bo(a*a+l*l),u=c*l,h=-c*a,d=t+u,f=n+h,g=e+u,y=i+h,v=(d+g)/2,C=(f+y)/2,b=g-d,D=y-f,k=b*b+D*D,N=s-r,F=d*y-g*f,X=(D<0?-1:1)*bo(H$(0,N*N*k-F*F)),me=(F*D-b*X)/k,ee=(-F*b-D*X)/k,ie=(F*D+b*X)/k,J=(-F*b+D*X)/k,H=me-v,Y=ee-C,Be=ie-v,Ce=J-C;return H*H+Y*Y>Be*Be+Ce*Ce&&(me=ie,ee=J),{cx:me,cy:ee,x01:-u,y01:-h,x11:me*(s/N-1),y11:ee*(s/N-1)}}function Jg(){var t=z$,n=j$,e=qe(0),i=null,s=Y$,r=G$,o=X$,a=null;function l(){var c,u,h=+t.apply(this,arguments),d=+n.apply(this,arguments),f=s.apply(this,arguments)-au,g=r.apply(this,arguments)-au,y=nw(g-f),v=g>f;if(a||(a=c=Qg()),d<h&&(u=d,d=h,h=u),d>Hn)if(y>lu-Hn)a.moveTo(d*_r(f),d*is(f)),a.arc(0,0,d,f,g,!v),h>Hn&&(a.moveTo(h*_r(g),h*is(g)),a.arc(0,0,h,g,f,v));else{var H,Y,C=f,b=g,D=f,k=g,N=y,F=y,X=o.apply(this,arguments)/2,me=X>Hn&&(i?+i.apply(this,arguments):bo(h*h+d*d)),ee=Kg(nw(d-h)/2,+e.apply(this,arguments)),ie=ee,J=ee;if(me>Hn){var Be=iw(me/h*is(X)),Ce=iw(me/d*is(X));(N-=2*Be)>Hn?(D+=Be*=v?1:-1,k-=Be):(N=0,D=k=(f+g)/2),(F-=2*Ce)>Hn?(C+=Ce*=v?1:-1,b-=Ce):(F=0,C=b=(f+g)/2)}var P=d*_r(C),j=d*is(C),$=h*_r(k),q=h*is(k);if(ee>Hn){var pe,re=d*_r(b),we=d*is(b),tt=h*_r(D),bt=h*is(D);if(y<Ba&&(pe=W$(P,j,tt,bt,re,we,$,q))){var dn=P-pe[0],$n=j-pe[1],Ye=re-pe[0],Tt=we-pe[1],V=1/is(V$((dn*Ye+$n*Tt)/(bo(dn*dn+$n*$n)*bo(Ye*Ye+Tt*Tt)))/2),te=bo(pe[0]*pe[0]+pe[1]*pe[1]);ie=Kg(ee,(h-te)/(V-1)),J=Kg(ee,(d-te)/(V+1))}}F>Hn?J>Hn?(H=cu(tt,bt,P,j,d,J,v),Y=cu(re,we,$,q,d,J,v),a.moveTo(H.cx+H.x01,H.cy+H.y01),J<ee?a.arc(H.cx,H.cy,J,yn(H.y01,H.x01),yn(Y.y01,Y.x01),!v):(a.arc(H.cx,H.cy,J,yn(H.y01,H.x01),yn(H.y11,H.x11),!v),a.arc(0,0,d,yn(H.cy+H.y11,H.cx+H.x11),yn(Y.cy+Y.y11,Y.cx+Y.x11),!v),a.arc(Y.cx,Y.cy,J,yn(Y.y11,Y.x11),yn(Y.y01,Y.x01),!v))):(a.moveTo(P,j),a.arc(0,0,d,C,b,!v)):a.moveTo(P,j),h>Hn&&N>Hn?ie>Hn?(H=cu($,q,re,we,h,-ie,v),Y=cu(P,j,tt,bt,h,-ie,v),a.lineTo(H.cx+H.x01,H.cy+H.y01),ie<ee?a.arc(H.cx,H.cy,ie,yn(H.y01,H.x01),yn(Y.y01,Y.x01),!v):(a.arc(H.cx,H.cy,ie,yn(H.y01,H.x01),yn(H.y11,H.x11),!v),a.arc(0,0,h,yn(H.cy+H.y11,H.cx+H.x11),yn(Y.cy+Y.y11,Y.cx+Y.x11),v),a.arc(Y.cx,Y.cy,ie,yn(Y.y11,Y.x11),yn(Y.y01,Y.x01),!v))):a.arc(0,0,h,k,D,v):a.lineTo($,q)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return l.centroid=function(){var c=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,u=(+s.apply(this,arguments)+ +r.apply(this,arguments))/2-Ba/2;return[_r(u)*c,is(u)*c]},l.innerRadius=function(c){return arguments.length?(t="function"==typeof c?c:qe(+c),l):t},l.outerRadius=function(c){return arguments.length?(n="function"==typeof c?c:qe(+c),l):n},l.cornerRadius=function(c){return arguments.length?(e="function"==typeof c?c:qe(+c),l):e},l.padRadius=function(c){return arguments.length?(i=null==c?null:"function"==typeof c?c:qe(+c),l):i},l.startAngle=function(c){return arguments.length?(s="function"==typeof c?c:qe(+c),l):s},l.endAngle=function(c){return arguments.length?(r="function"==typeof c?c:qe(+c),l):r},l.padAngle=function(c){return arguments.length?(o="function"==typeof c?c:qe(+c),l):o},l.context=function(c){return arguments.length?(a=null==c?null:c,l):a},l}function U$(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function q$(t){return t}function sw(){var t=q$,n=U$,e=null,i=qe(0),s=qe(lu),r=qe(0);function o(a){var l,u,h,C,k,c=a.length,d=0,f=new Array(c),g=new Array(c),y=+i.apply(this,arguments),v=Math.min(lu,Math.max(-lu,s.apply(this,arguments)-y)),b=Math.min(Math.abs(v)/c,r.apply(this,arguments)),D=b*(v<0?-1:1);for(l=0;l<c;++l)(k=g[f[l]=l]=+t(a[l],l,a))>0&&(d+=k);for(null!=n?f.sort(function(N,F){return n(g[N],g[F])}):null!=e&&f.sort(function(N,F){return e(a[N],a[F])}),l=0,h=d?(v-c*D)/d:0;l<c;++l,y=C)g[u=f[l]]={data:a[u],index:l,value:k=g[u],startAngle:y,endAngle:C=y+(k>0?k*h:0)+D,padAngle:b};return g}return o.value=function(a){return arguments.length?(t="function"==typeof a?a:qe(+a),o):t},o.sortValues=function(a){return arguments.length?(n=a,e=null,o):n},o.sort=function(a){return arguments.length?(e=a,n=null,o):e},o.startAngle=function(a){return arguments.length?(i="function"==typeof a?a:qe(+a),o):i},o.endAngle=function(a){return arguments.length?(s="function"==typeof a?a:qe(+a),o):s},o.padAngle=function(a){return arguments.length?(r="function"==typeof a?a:qe(+a),o):r},o}function K$(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function J$(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function e5(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}const i5=function t(n){function e(i,s,r,o,a){!function n5(t,n,e,i,s,r){for(var l,c,f,g,v,C,b,D,k,N,F,o=[],a=n.children,u=0,h=0,d=a.length,y=n.value;u<d;){f=s-e,g=r-i;do{v=a[h++].value}while(!v&&h<d);for(C=b=v,F=v*v*(N=Math.max(g/f,f/g)/(y*t)),k=Math.max(b/F,F/C);h<d;++h){if(v+=c=a[h].value,c<C&&(C=c),c>b&&(b=c),F=v*v*N,(D=Math.max(b/F,F/C))>k){v-=c;break}k=D}o.push(l={value:v,dice:f<g,children:a.slice(u,h)}),l.dice?J$(l,e,i,s,y?i+=g*v/y:r):e5(l,e,i,y?e+=f*v/y:s,r),y-=v,u=h}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2);function uu(t){if("function"!=typeof t)throw new Error;return t}function Ha(){return 0}function Va(t){return function(){return t}}function r5(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function rw(t,n){var s,o,a,l,c,e=new $a(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=y5);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new $a(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(ow)}function y5(t){return t.children}function x5(t){t.data=t.data.data}function ow(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function $a(t){this.data=t,this.depth=this.height=0,this.parent=null}$a.prototype=rw.prototype={constructor:$a,count:function o5(){return this.eachAfter(r5)},each:function a5(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function c5(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function l5(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function u5(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function h5(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function d5(t){for(var n=this,e=function f5(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function g5(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function m5(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function p5(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function _5(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function v5(){return rw(this).eachBefore(x5)}};var b5={depth:-1},lw={};function T5(t){return t.id}function C5(t){return t.parentId}const D5=["caretElm"];function A5(t,n){}const S5=function(t){return{model:t}};function E5(t,n){if(1&t&&(x(0,"span"),S(1,A5,0,0,"ng-template",5),T()),2&t){const e=m();_(1),p("ngTemplateOutlet",e.template)("ngTemplateOutletContext",jl(2,S5,e.context))}}function k5(t,n){1&t&&z(0,"span",6),2&t&&p("innerHTML",m().title,wl)}function L5(t,n){if(1&t&&(A(),Gs(),z(0,"ngx-charts-scale-legend",4)),2&t){const e=m();p("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function M5(t,n){if(1&t){const e=R();A(),Gs(),x(0,"ngx-charts-legend",5),E("labelClick",function(s){return w(e),m().legendLabelClick.emit(s)})("labelActivate",function(s){return w(e),m().legendLabelActivate.emit(s)})("labelDeactivate",function(s){return w(e),m().legendLabelDeactivate.emit(s)}),T()}if(2&t){const e=m();p("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const cw=["*"],F5=["ngx-charts-axis-label",""],uw=["ticksel"],I5=["ngx-charts-x-axis-ticks",""];function P5(t,n){if(1&t&&(A(),x(0,"g",3)(1,"title"),Ve(2),T(),x(3,"text",4),Ve(4),T()()),2&t){const e=n.$implicit,i=m();M("transform",i.tickTransform(e)),_(2),ni(i.tickFormat(e)),_(1),Le("font-size","12px"),M("text-anchor",i.textAnchor)("transform",i.textTransform),_(1),pt(" ",i.tickTrim(i.tickFormat(e))," ")}}function N5(t,n){if(1&t&&(A(),x(0,"g"),z(1,"line",6),T()),2&t){const e=m(2);M("transform",e.gridLineTransform()),_(1),M("y1",-e.gridLineHeight)}}function O5(t,n){if(1&t&&(A(),x(0,"g"),S(1,N5,2,2,"g",5),T()),2&t){const e=n.$implicit,i=m();M("transform",i.tickTransform(e)),_(1),p("ngIf",i.showGridLines)}}const R5=["ngx-charts-x-axis",""];function B5(t,n){if(1&t){const e=R();A(),x(0,"g",2),E("dimensionsChanged",function(s){return w(e),m().emitTicksHeight(s)}),T()}if(2&t){const e=m();p("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function H5(t,n){if(1&t&&(A(),z(0,"g",3)),2&t){const e=m();p("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const V5=["ngx-charts-y-axis-ticks",""];function $5(t,n){if(1&t&&(A(),x(0,"g",4)(1,"title"),Ve(2),T(),x(3,"text",5),Ve(4),T()()),2&t){const e=n.$implicit,i=m();M("transform",i.transform(e)),_(2),ni(i.tickFormat(e)),_(1),Le("font-size","12px"),M("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),_(1),pt(" ",i.tickTrim(i.tickFormat(e))," ")}}function z5(t,n){if(1&t&&(A(),z(0,"path",6)),2&t){const e=m();M("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function j5(t,n){1&t&&(A(),z(0,"line",9)),2&t&&M("x2",m(3).gridLineWidth)}function Y5(t,n){1&t&&(A(),z(0,"line",9)),2&t&&M("x2",-m(3).gridLineWidth)}function G5(t,n){if(1&t&&(A(),x(0,"g"),S(1,j5,1,1,"line",8),S(2,Y5,1,1,"line",8),T()),2&t){const e=m(2);M("transform",e.gridLineTransform()),_(1),p("ngIf","left"===e.orient),_(1),p("ngIf","right"===e.orient)}}function X5(t,n){if(1&t&&(A(),x(0,"g"),S(1,G5,3,3,"g",7),T()),2&t){const e=n.$implicit,i=m();M("transform",i.transform(e)),_(1),p("ngIf",i.showGridLines)}}function W5(t,n){if(1&t&&(A(),x(0,"g")(1,"title"),Ve(2),T(),x(3,"text",11),Ve(4),T()()),2&t){const e=m(2).$implicit,i=m();_(2),ni(i.tickTrim(i.tickFormat(e.value))),_(1),M("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),_(1),pt(" ",e.name," ")}}function U5(t,n){if(1&t&&(A(),x(0,"g"),z(1,"line",10),S(2,W5,5,6,"g",7),T()),2&t){const e=m().$implicit,i=m();M("transform",i.transform(e.value)),_(1),M("x2",i.gridLineWidth)("transform",i.gridLineTransform()),_(1),p("ngIf",i.showRefLabels)}}function q5(t,n){if(1&t&&(A(),x(0,"g"),S(1,U5,3,4,"g",7),T()),2&t){const e=m();_(1),p("ngIf",e.showRefLines)}}const Q5=["ngx-charts-y-axis",""];function Z5(t,n){if(1&t){const e=R();A(),x(0,"g",2),E("dimensionsChanged",function(s){return w(e),m().emitTicksWidth(s)}),T()}if(2&t){const e=m();p("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function K5(t,n){if(1&t&&(A(),z(0,"g",3)),2&t){const e=m();p("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const J5=["ngx-charts-circle-series",""];function ez(t,n){if(1&t&&(A(),z(0,"rect",4)),2&t){const e=m(2);p("@animationState","active"),M("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const tz=function(t){return{name:t}};function nz(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"defs"),z(2,"g",1),T(),S(3,ez,1,6,"rect",2),x(4,"g",3),E("select",function(){w(e);const s=m();return s.onClick(s.circle.data)})("activate",function(){return w(e),m().activateCircle()})("deactivate",function(){return w(e),m().deactivateCircle()}),T()()}if(2&t){const e=m();_(2),p("name",e.gradientId)("stops",e.circle.gradientStops),_(1),p("ngIf",e.barVisible&&"standard"===e.type),_(1),en("active",e.isActive(jl(18,tz,e.circle.seriesName))),p("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const iz=["ngx-charts-circle",""],sz=["ngx-charts-grid-panel",""],rz=["ngx-charts-grid-panel-series",""];function oz(t,n){if(1&t&&(A(),z(0,"g",1)),2&t){const e=n.$implicit;en("grid-panel",!0)("odd","odd"===e.class)("even","even"===e.class),p("height",e.height)("width",e.width)("x",e.x)("y",e.y)}}const az=["ngx-charts-svg-linear-gradient",""];function lz(t,n){if(1&t&&(A(),z(0,"stop")),2&t){const e=n.$implicit;Le("stop-color",e.color)("stop-opacity",e.opacity),M("offset",e.offset+"%")}}const cz=["ngx-charts-svg-radial-gradient",""];function uz(t,n){if(1&t&&(A(),z(0,"stop")),2&t){const e=n.$implicit;Le("stop-color",e.color)("stop-opacity",e.opacity),M("offset",e.offset+"%")}}const hz=["ngx-charts-area",""];function dz(t,n){if(1&t&&(A(),x(0,"defs"),z(1,"g",2),T()),2&t){const e=m();_(1),p("name",e.gradientId)("stops",e.gradientStops)}}const fz=["ngx-charts-count-up",""],gz=["tooltipAnchor"],mz=["ngx-charts-tooltip-area",""];function pz(t,n){if(1&t&&(x(0,"div",6),z(1,"span",7),Ve(2),T()),2&t){const e=n.$implicit,i=m(2);_(1),Le("background-color",e.color),_(1),pt(" ",i.getToolTipText(e)," ")}}function _z(t,n){if(1&t&&(A(),Gs(),x(0,"div",4),S(1,pz,3,3,"div",5),T()),2&t){const e=n.model;_(1),p("ngForOf",e)}}const vz=["ngx-charts-timeline",""];function yz(t,n){if(1&t&&(x(0,"header",4)(1,"span",5),Ve(2),T()()),2&t){const e=m();_(2),ni(e.title)}}function xz(t,n){if(1&t){const e=R();x(0,"li",6)(1,"ngx-charts-legend-entry",7),E("select",function(s){return w(e),m().labelClick.emit(s)})("activate",function(s){return w(e),m().activate(s)})("deactivate",function(s){return w(e),m().deactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m();_(1),p("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}function bz(t,n){if(1&t&&z(0,"div",7),2&t){const e=m();p("countTo",e.roundedTotal)("valueFormatting",e.valueFormatting)}}function Tz(t,n){if(1&t&&(x(0,"div",8),Ve(1),T()),2&t){const e=m();_(1),pt(" ",e.valueFormatting?e.valueFormatting(e.roundedTotal):e.defaultValueFormatting(e.roundedTotal)," ")}}function Cz(t,n){if(1&t&&z(0,"div",16),2&t){const e=m().$implicit,i=m();p("countTo",e._value)("valueFormatting",i.valueFormatting)}}function wz(t,n){if(1&t&&(x(0,"div",17),Ve(1),T()),2&t){const e=m().$implicit,i=m();_(1),pt(" ",i.valueFormatting?i.valueFormatting(e.value):i.defaultValueFormatting(e.value)," ")}}function Dz(t,n){1&t&&z(0,"div",18),2&t&&p("countTo",m().$implicit.percentage)("countSuffix","%")}function Az(t,n){if(1&t&&(x(0,"div",19),Ve(1),T()),2&t){const e=m().$implicit;_(1),pt("",e.percentage.toLocaleString(),"%")}}function Sz(t,n){if(1&t){const e=R();x(0,"div",9),E("mouseenter",function(){const r=w(e).$implicit;return m().activate.emit(r.data)})("mouseleave",function(){const r=w(e).$implicit;return m().deactivate.emit(r.data)})("click",function(){const r=w(e).$implicit;return m().select.emit(r.data)}),z(1,"div",10),S(2,Cz,1,2,"div",11),S(3,wz,2,1,"div",12),x(4,"div",13),Ve(5),T(),S(6,Dz,1,2,"div",14),S(7,Az,2,1,"div",15),T()}if(2&t){const e=n.$implicit,i=m();_(1),Le("border-left-color",e.color),_(1),p("ngIf",i.animations),_(1),p("ngIf",!i.animations),_(2),ni(e.displayLabel),_(1),p("ngIf",i.animations),_(1),p("ngIf",!i.animations)}}const Vt=["tooltipTemplate"],hu=["seriesTooltipTemplate"];function Ez(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function kz(t,n){if(1&t){const e=R();A(),x(0,"g",8),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function Lz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",9),T()),2&t){const e=n.$implicit,i=m();_(1),p("xScale",i.xScale)("yScale",i.yScale)("baseValue",i.baseValue)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function Mz(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",13),E("select",function(s){const o=w(e).$implicit;return m(2).onClick(s,o)})("activate",function(s){return w(e),m(2).onActivate(s)})("deactivate",function(s){return w(e),m(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Fz(t,n){if(1&t){const e=R();A(),x(0,"g",10),E("mouseleave",function(){return w(e),m().hideCircles()}),x(1,"g",11),E("hover",function(s){return w(e),m().updateHoveredVertical(s)}),T(),S(2,Mz,2,9,"g",12),T()}if(2&t){const e=m();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)}}function Iz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",15),T()),2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("baseValue",i.baseValue)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}const rt=function(t,n){return[t,n]};function Pz(t,n){if(1&t){const e=R();A(),x(0,"g",14),E("onDomainChange",function(s){return w(e),m().updateDomain(s)}),S(1,Iz,2,9,"g",4),T()}if(2&t){const e=m();p("results",e.results)("view",Je(10,rt,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),M("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Nz(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function Oz(t,n){if(1&t){const e=R();A(),x(0,"g",8),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function Rz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",9),T()),2&t){const e=n.$implicit,i=m();_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("activeEntries",i.activeEntries)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function Bz(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",13),E("select",function(s){const o=w(e).$implicit;return m(2).onClick(s,o)})("activate",function(s){return w(e),m(2).onActivate(s)})("deactivate",function(s){return w(e),m(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Hz(t,n){if(1&t){const e=R();A(),x(0,"g",10),E("mouseleave",function(){return w(e),m().hideCircles()}),x(1,"g",11),E("hover",function(s){return w(e),m().updateHoveredVertical(s)}),T(),S(2,Bz,2,9,"g",12),T()}if(2&t){const e=m();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("showPercentage",!0)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)}}function Vz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",15),T()),2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function $z(t,n){if(1&t){const e=R();A(),x(0,"g",14),E("onDomainChange",function(s){return w(e),m().updateDomain(s)}),S(1,Vz,2,8,"g",4),T()}if(2&t){const e=m();p("results",e.results)("view",Je(10,rt,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),M("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const It=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function zz(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function jz(t,n){if(1&t){const e=R();A(),x(0,"g",8),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function Yz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",9),T()),2&t){const e=n.$implicit,i=m();_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("activeEntries",i.activeEntries)("curve",i.curve)("animations",i.animations)}}function Gz(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",12),E("select",function(s){const o=w(e).$implicit;return m(2).onClick(s,o)})("activate",function(s){return w(e),m(2).onActivate(s)})("deactivate",function(s){return w(e),m(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Xz(t,n){if(1&t){const e=R();A(),x(0,"g",10),E("mouseleave",function(){return w(e),m().hideCircles()}),x(1,"g",11),E("hover",function(s){return w(e),m().updateHoveredVertical(s)}),T(),S(2,Gz,2,9,"g",4),T()}if(2&t){const e=m();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Wz(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",14),T()),2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function Uz(t,n){if(1&t){const e=R();A(),x(0,"g",13),E("onDomainChange",function(s){return w(e),m().updateDomain(s)}),S(1,Wz,2,8,"g",4),T()}if(2&t){const e=m();p("results",e.results)("view",Je(10,rt,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),M("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const qz=["ngx-charts-area-series",""],Qz=["ngx-charts-bar",""];function Zz(t,n){if(1&t&&(A(),x(0,"defs"),z(1,"g",2),T()),2&t){const e=m();_(1),p("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}function Kz(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function Jz(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("yAxisOffset",e.dataLabelMaxWidth.negative)}}function e4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.valueScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function t4(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.groupScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("yAxisOffset",e.dataLabelMaxWidth.negative)}}function n4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",8),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)})("dataLabelWidthChanged",function(s){const o=w(e).index;return m().onDataLabelMaxWidthChanged(s,o)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),M("transform",i.groupTransform(e)),_(1),p("xScale",i.valueScale)("activeEntries",i.activeEntries)("yScale",i.innerScale)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("seriesName",e.name)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero)}}function i4(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function s4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function r4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",7),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),M("transform",i.groupTransform(e)),_(1),p("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function o4(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function a4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("yAxisOffset",e.dataLabelMaxWidth.negative)}}function l4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",7),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)})("dataLabelWidthChanged",function(s){const o=w(e).index;return m().onDataLabelMaxWidthChanged(s,o)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),M("transform",i.groupTransform(e)),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",e.series)("activeEntries",i.activeEntries)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("seriesName",e.name)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero)}}function c4(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function u4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function h4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.groupScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function d4(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.valueScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function f4(t,n){if(1&t){const e=R();A(),x(0,"g",8),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)})("dataLabelHeightChanged",function(s){const o=w(e).index;return m().onDataLabelMaxHeightChanged(s,o)}),T()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active")("activeEntries",i.activeEntries)("xScale",i.innerScale)("yScale",i.valueScale)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero),M("transform",i.groupTransform(e))}}function g4(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function m4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function p4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",7),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),M("transform",i.groupTransform(e)),_(1),p("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}function _4(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function v4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function y4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",7),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){const o=w(e).$implicit;return m().onActivate(s,o)})("deactivate",function(s){const o=w(e).$implicit;return m().onDeactivate(s,o)})("dataLabelHeightChanged",function(s){const o=w(e).index;return m().onDataLabelMaxHeightChanged(s,o)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),M("transform",i.groupTransform(e)),_(1),p("xScale",i.xScale)("yScale",i.yScale)("activeEntries",i.activeEntries)("colors",i.colors)("series",e.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",e.name)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero)}}const x4=["ngx-charts-series-vertical",""];function b4(t,n){if(1&t){const e=R();A(),x(0,"g",2),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().activate.emit(s)})("deactivate",function(s){return w(e),m().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active")("@.disabled",!i.animations)("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation","vertical")("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function T4(t,n){if(1&t){const e=R();A(),x(0,"g",4),E("dimensionsChanged",function(s){const o=w(e).index;return m(2).dataLabelHeightChanged.emit({size:s,index:o})}),T()}if(2&t){const e=n.$implicit,i=m(2);p("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function C4(t,n){if(1&t&&(A(),x(0,"g"),S(1,T4,1,7,"g",3),T()),2&t){const e=m();_(1),p("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}const w4=["ngx-charts-series-horizontal",""];function D4(t,n){if(1&t){const e=R();A(),x(0,"g",2),E("select",function(s){return w(e),m().click(s)})("activate",function(s){return w(e),m().activate.emit(s)})("deactivate",function(s){return w(e),m().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active")("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation","horizontal")("roundEdges",e.roundEdges)("gradient",i.gradient)("isActive",i.isActive(e.data))("ariaLabel",e.ariaLabel)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)}}function A4(t,n){if(1&t){const e=R();A(),x(0,"g",4),E("dimensionsChanged",function(s){const o=w(e).index;return m(2).dataLabelWidthChanged.emit({size:s,index:o})}),T()}if(2&t){const e=n.$implicit,i=m(2);p("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation","horizontal")}}function S4(t,n){if(1&t&&(A(),x(0,"g"),S(1,A4,1,7,"g",3),T()),2&t){const e=m();_(1),p("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}const E4=["ngx-charts-bar-label",""];function k4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("showGridLines",e.showGridLines)("dims",e.dims)("xScale",e.xScale)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function L4(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("showGridLines",e.showGridLines)("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function M4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",8),E("select",function(s){const o=w(e).$implicit;return m().onClick(s,o)})("activate",function(s){return w(e),m().onActivate(s)})("deactivate",function(s){return w(e),m().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),_(1),p("xScale",i.xScale)("yScale",i.yScale)("rScale",i.rScale)("xScaleType",i.xScaleType)("yScaleType",i.yScaleType)("xAxisLabel",i.xAxisLabel)("yAxisLabel",i.yAxisLabel)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}const F4=["ngx-charts-bubble-series",""];function I4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g")(2,"g",1),E("select",function(){const r=w(e).$implicit;return m().onClick(r.data)})("activate",function(){const r=w(e).$implicit;return m().activateCircle(r)})("deactivate",function(){const r=w(e).$implicit;return m().deactivateCircle(r)}),T()()()}if(2&t){const e=n.$implicit,i=m();_(1),M("transform",e.transform),_(1),Le("opacity",e.opacity),en("active",e.isActive),p("@animationState","active")("cx",0)("cy",0)("r",e.radius)("fill",e.color)("pointerEvents","all")("data",e.value)("classNames",e.classNames)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.getTooltipText(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const P4=["ngx-charts-heat-map-cell",""];function N4(t,n){if(1&t&&(A(),x(0,"defs"),z(1,"g",3),T()),2&t){const e=m();_(1),p("name",e.gradientId)("stops",e.gradientStops)}}const O4=["ngx-charts-heat-map-cell-series",""],R4=function(t,n,e){return{series:t,name:n,value:e}};function B4(t,n){if(1&t){const e=R();A(),x(0,"g",1),E("select",function(){const r=w(e).$implicit;return m().onClick(r.cell)})("activate",function(){const r=w(e).$implicit;return m().activate.emit(r.cell)})("deactivate",function(){const r=w(e).$implicit;return m().deactivate.emit(r.cell)}),T()}if(2&t){const e=n.$implicit,i=m();p("x",e.x)("y",e.y)("width",e.width)("height",e.height)("fill",e.fill)("data",e.data)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",rx(14,R4,e.series,e.label,e.data))}}function H4(t,n){if(1&t){const e=R();A(),x(0,"g",6),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function V4(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function $4(t,n){if(1&t&&(A(),z(0,"rect")),2&t){const e=n.$implicit;M("x",e.x)("y",e.y)("rx",e.rx)("width",e.width)("height",e.height)("fill",e.fill)}}const z4=["ngx-charts-line",""];function j4(t,n){if(1&t){const e=R();A(),x(0,"g",7),E("dimensionsChanged",function(s){return w(e),m().updateXAxisHeight(s)}),T()}if(2&t){const e=m();p("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function Y4(t,n){if(1&t){const e=R();A(),x(0,"g",8),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function G4(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",9),T()),2&t){const e=n.$implicit,i=m();p("@animationState","active"),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function X4(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",13),E("select",function(s){return w(e),m(2).onClick(s)})("activate",function(s){return w(e),m(2).onActivate(s)})("deactivate",function(s){return w(e),m(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function W4(t,n){if(1&t){const e=R();A(),x(0,"g",10),E("mouseleave",function(){return w(e),m().hideCircles()}),x(1,"g",11),E("hover",function(s){return w(e),m().updateHoveredVertical(s)}),T(),S(2,X4,2,9,"g",12),T()}if(2&t){const e=m();_(1),p("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),p("ngForOf",e.results)}}function U4(t,n){if(1&t&&(A(),x(0,"g"),z(1,"g",15),T()),2&t){const e=n.$implicit,i=m(2);_(1),p("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function q4(t,n){if(1&t){const e=R();A(),x(0,"g",14),E("onDomainChange",function(s){return w(e),m().updateDomain(s)}),S(1,U4,2,8,"g",4),T()}if(2&t){const e=m();p("results",e.results)("view",Je(10,rt,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),M("transform",e.timelineTransform),_(1),p("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const Q4=["ngx-charts-line-series",""];function Z4(t,n){if(1&t&&(A(),z(0,"g",4)),2&t){const e=m();p("name",e.gradientId)("stops",e.gradientStops)}}function K4(t,n){if(1&t&&(A(),z(0,"g",5)),2&t){const e=m();en("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),p("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}function J4(t,n){1&t&&(A(),z(0,"circle",8)),2&t&&M("r",n.$implicit)}function ej(t,n){if(1&t&&(A(),x(0,"g"),S(1,J4,1,1,"circle",7),T()),2&t){const e=m();_(1),p("ngForOf",e.radiusTicks)}}function tj(t,n){if(1&t&&(A(),z(0,"g",10)),2&t){const e=n.$implicit,i=m(2);p("data",e)("radius",i.outerRadius)("label",e.label)("max",i.outerRadius)("value",i.showGridLines?1:i.outerRadius)("explodeSlices",!0)("animations",i.animations)("labelTrim",i.labelTrim)("labelTrimSize",i.labelTrimSize)}}function nj(t,n){if(1&t&&(A(),x(0,"g"),S(1,tj,1,9,"g",9),T()),2&t){const e=m();_(1),p("ngForOf",e.thetaTicks)}}function ij(t,n){if(1&t){const e=R();A(),x(0,"g",11),E("dimensionsChanged",function(s){return w(e),m().updateYAxisWidth(s)}),T()}if(2&t){const e=m();p("yScale",e.yAxisScale)("dims",e.yAxisDims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting),M("transform",e.transformYAxis)}}function sj(t,n){if(1&t&&(A(),z(0,"g",12)),2&t){const e=m();p("label",e.xAxisLabel)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}function rj(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",13),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().onActivate(s)})("deactivate",function(s){return w(e),m().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m();p("@animationState","active"),_(1),p("gradient",i.gradient)("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}const oj=["ngx-charts-polar-series",""];function aj(t,n){if(1&t&&(A(),z(0,"g",4)),2&t){const e=m();p("color",e.seriesColor)("name",e.gradientId)("startOpacity",.25)("endOpacity",1)("stops",e.gradientStops)}}function lj(t,n){if(1&t){const e=R();A(),x(0,"g",5),E("select",function(){const r=w(e).$implicit;return m().select.emit(r.data)})("activate",function(){const r=w(e).$implicit;return m().activate.emit({name:r.data.series})})("deactivate",function(){const r=w(e).$implicit;return m().deactivate.emit({name:r.data.series})}),T()}if(2&t){const e=n.$implicit,i=m();Le("opacity",i.inactive?.2:1),p("cx",e.cx)("cy",e.cy)("r",i.circleRadius)("fill",e.color)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const cj=["ngx-charts-pie-label",""],uj=["ngx-charts-pie-arc",""];function hj(t,n){if(1&t&&(A(),x(0,"defs"),z(1,"g",3),T()),2&t){const e=m();_(1),p("color",e.fill)("name",e.radialGradientId)("startOpacity",e.startOpacity)}}const hw=".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:fadeIn .75s ease-in;animation:fadeIn .75s ease-in}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:drawOut 3s linear;animation:drawOut 3s linear;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}";function dj(t,n){1&t&&(A(),z(0,"text",10)),2&t&&p("countTo",m().$implicit.percent)("countSuffix","%")}function fj(t,n){if(1&t&&(A(),x(0,"text",11),Ve(1),T()),2&t){const e=m().$implicit;_(1),pt(" ",e.percent.toLocaleString()," ")}}function gj(t,n){if(1&t&&(A(),z(0,"text",12)),2&t){const e=m().$implicit,i=m();p("countTo",e.total)("countPrefix",i.label+": "),M("y",e.outerRadius)}}function mj(t,n){if(1&t&&(A(),x(0,"text",13),Ve(1),T()),2&t){const e=m().$implicit,i=m();M("y",e.outerRadius),_(1),vd(" ",i.label,": ",e.total.toLocaleString()," ")}}const pj=function(t){return{data:t}};function _j(t,n){if(1&t){const e=R();A(),x(0,"g",3)(1,"g",4),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().onActivate(s)})("deactivate",function(s){return w(e),m().onDeactivate(s)}),T(),S(2,dj,1,2,"text",5),S(3,fj,2,1,"text",6),x(4,"text",7),Ve(5),T(),S(6,gj,1,3,"text",8),S(7,mj,2,3,"text",9),T()}if(2&t){const e=n.$implicit,i=m();M("transform",e.transform),_(1),p("colors",e.colors)("data",e.data)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(jl(17,pj,e)))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data[0].data),_(1),p("ngIf",i.animations),_(1),p("ngIf",!i.animations),_(2),pt(" ",e.label," "),_(1),p("ngIf",i.animations),_(1),p("ngIf",!i.animations)}}const vj=["ngx-charts-pie-grid-series",""];function yj(t,n){if(1&t){const e=R();A(),x(0,"g",2),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().activate.emit(s)})("deactivate",function(s){return w(e),m().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=m();p("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("data",e.data)("gradient",!1)("pointerEvents",e.pointerEvents)("animate",e.animate),M("class",e.class)}}const xj=["ngx-charts-pie-series",""];function bj(t,n){if(1&t&&(A(),z(0,"g",3)),2&t){const e=m().$implicit,i=m();p("data",e)("radius",i.outerRadius)("color",i.color(e))("label",i.labelText(e))("labelTrim",i.trimLabels)("labelTrimSize",i.maxLabelLength)("max",i.max)("value",e.value)("explodeSlices",i.explodeSlices)("animations",i.animations)}}function Tj(t,n){if(1&t){const e=R();A(),x(0,"g"),S(1,bj,1,10,"g",1),x(2,"g",2),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().activate.emit(s)})("deactivate",function(s){return w(e),m().deactivate.emit(s)})("dblclick",function(s){return w(e),m().dblclick.emit(s)}),T()()}if(2&t){const e=n.$implicit,i=m();_(1),p("ngIf",i.labelVisible(e)),_(1),p("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("gradient",i.gradient)("data",e.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(e.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.getTooltipTitle(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const dw=["textEl"],Cj=["ngx-charts-card",""];function wj(t,n){if(1&t&&(A(),z(0,"path",7)),2&t){const e=m();M("fill",e.bandColor)("transform",e.transformBand)("d",e.bandPath)}}const Dj=["ngx-charts-card-series",""];function Aj(t,n){if(1&t&&(A(),z(0,"rect",2)),2&t){const e=n.$implicit;Le("fill",m().emptyColor),M("x",e.x)("y",e.y)("width",e.width)("height",e.height)}}function Sj(t,n){if(1&t){const e=R();A(),x(0,"g",3),E("select",function(s){return w(e),m().onClick(s)}),T()}if(2&t){const e=n.$implicit,i=m();p("x",e.x)("y",e.y)("width",e.width)("height",e.height)("color",e.color)("bandColor",e.bandColor)("textColor",e.textColor)("data",e.data)("label",e.label)("medianSize",i.medianSize)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations)}}const Ej=["ngx-charts-tree-map-cell",""];function kj(t,n){if(1&t&&(A(),x(0,"defs"),z(1,"g",3),T()),2&t){const e=m();_(1),p("name",e.gradientId)("stops",e.gradientStops)}}function Lj(t,n){if(1&t&&z(0,"span",8),2&t){const e=m(2);p("countTo",e.value)("valueFormatting",e.valueFormatting)}}function Mj(t,n){if(1&t&&(x(0,"span",9),Ve(1),T()),2&t){const e=m(2);_(1),pt(" ",e.formattedValue," ")}}function Fj(t,n){if(1&t&&(A(),x(0,"foreignObject",4),Gs(),x(1,"p"),z(2,"span",5)(3,"br"),S(4,Lj,1,2,"span",6),S(5,Mj,2,1,"span",7),T()()),2&t){const e=m();Le("pointer-events","none"),M("x",e.x)("y",e.y)("width",e.width)("height",e.height),_(1),Le("color",e.getTextColor())("height",e.height+"px")("width",e.width+"px"),_(1),p("innerHTML",e.formattedLabel,wl),_(2),p("ngIf",e.animations),_(1),p("ngIf",!e.animations)}}const Ij=["ngx-charts-tree-map-cell-series",""];function Pj(t,n){if(1&t){const e=R();A(),x(0,"g",1),E("select",function(s){return w(e),m().onClick(s)}),T()}if(2&t){const e=n.$implicit,i=m();p("data",e.data)("x",e.x)("y",e.y)("width",e.width)("height",e.height)("fill",e.fill)("label",e.label)("value",e.value)("valueType",e.valueType)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.getTooltipText(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const Nj=["valueTextEl"],Oj=["unitsTextEl"];function Rj(t,n){if(1&t&&(A(),z(0,"line",10)),2&t){const e=m();M("transform",e.transformLine)("stroke",e.colors.getColor(e.units))}}function Bj(t,n){if(1&t&&(A(),z(0,"line",11)),2&t){const e=m();M("transform",e.transformLine)("stroke",e.colors.getColor(e.units))}}const fw=function(){return{}};function Hj(t,n){if(1&t){const e=R();A(),x(0,"g")(1,"g",5),E("select",function(s){return w(e),m().onClick(s)})("activate",function(s){return w(e),m().onActivate(s)})("deactivate",function(s){return w(e),m().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=m();M("transform",i.rotation),_(1),p("backgroundArc",e.backgroundArc)("valueArc",e.valueArc)("cornerRadius",i.cornerRadius)("colors",i.colors)("isActive",i.isActive(e.valueArc.data))("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("valueFormatting",i.valueFormatting)("animations",i.animations)}}function Vj(t,n){if(1&t&&(A(),z(0,"g",6)),2&t){const e=m();p("bigSegments",e.bigSegments)("smallSegments",e.smallSegments)("min",e.min)("max",e.max)("radius",e.outerRadius)("angleSpan",e.angleSpan)("valueScale",e.valueScale)("startAngle",e.startAngle)("tickFormatting",e.axisTickFormatting)}}function $j(t,n){if(1&t&&(A(),x(0,"text",7,8)(2,"tspan",9),Ve(3),T(),x(4,"tspan",10),Ve(5),T()()),2&t){const e=m();Le("text-anchor","middle"),M("transform",e.textTransform),_(3),ni(e.displayValue),_(2),ni(e.units)}}const zj=["ngx-charts-gauge-arc",""],jj=["ngx-charts-gauge-axis",""];function Yj(t,n){if(1&t&&(A(),x(0,"g",2),z(1,"path"),T()),2&t){const e=n.$implicit;_(1),M("d",e.line)}}function Gj(t,n){if(1&t&&(A(),x(0,"g",2)(1,"text",3),Ve(2),T()()),2&t){const e=n.$implicit;_(1),Le("text-anchor",e.textAnchor),M("transform",e.textTransform),_(1),pt(" ",e.text," ")}}function Xj(t,n){if(1&t&&(A(),x(0,"g",4),z(1,"path"),T()),2&t){const e=n.$implicit;_(1),M("d",e.line)}}let gw=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function Wj(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new PO(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new IT(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(ve(Ul),ve(Zs),ve(On))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Uj(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,s=arguments,u<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,u)),r}}function qj(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:Uj(r.value,t,n)}),this[s]}}}}var $t=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}($t||($t={})),$t))();function mw(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function pw(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class ai{static calculateVerticalAlignment(n,e,i){let s=mw(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=mw(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=pw(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=pw(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===$t.right?(a=-7,o=ai.calculateVerticalCaret(i,e,s,r)):n===$t.left?(a=e.width,o=ai.calculateVerticalCaret(i,e,s,r)):n===$t.top?(o=e.height,a=ai.calculateHorizontalCaret(i,e,s,r)):n===$t.bottom&&(o=-7,a=ai.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===$t.right?(a=i.left+i.width+s,o=ai.calculateVerticalAlignment(i,e,r)):n===$t.left?(a=i.left-e.width-s,o=ai.calculateVerticalAlignment(i,e,r)):n===$t.top?(o=i.top-e.height-s,a=ai.calculateHorizontalAlignment(i,e,r)):n===$t.bottom&&(o=i.top+i.height+s,a=ai.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(ai.shouldFlip(i,e,n,s)){if(n===$t.right)return $t.left;if(n===$t.left)return $t.right;if(n===$t.top)return $t.bottom;if(n===$t.bottom)return $t.top}return n}}let Qj=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=ai.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=ai.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=ai.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Z(_t),Z(Vl))},t.\u0275cmp=Q({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&_i(D5,5),2&e){let s;Me(s=Fe())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&E("resize",function(){return i.onWindowResize()},!1,l_),2&e&&function Kv(t){Ni(Kn,Ji,t,!0)}(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(x(0,"div"),z(1,"span",0,1),x(3,"div",2),S(4,E5,2,4,"span",3),S(5,k5,1,1,"span",4),T()()),2&e&&(_(1),function dy(t,n,e){Ni(Kn,Ji,Yr(I(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),p("hidden",!i.showCaret),_(3),p("ngIf",!i.title),_(1),p("ngIf",i.title))},directives:[De,wb],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function PT(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}([qj(100)],t.prototype,"onWindowResize",null),t})(),du=(()=>{class t extends class Zj{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Qj}}return t.\u0275fac=function(e){return new(e||t)(ve(gw))},t.\u0275prov=je({token:t,factory:t.\u0275fac}),t})(),yt=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new L,this.legendLabelActivate=new L,this.legendLabelDeactivate=new L}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Zy([du]),xe],ngContentSelectors:cw,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(gd(),x(0,"div",0),A(),x(1,"svg",1),md(2),T(),S(3,L5,1,5,"ngx-charts-scale-legend",2),S(4,M5,1,7,"ngx-charts-legend",3),T()),2&e&&(Le("width",i.view[0],"px"),p("@animationState","active")("@.disabled",!i.animations),_(1),M("width",i.chartWidth)("height",i.view[1]),_(2),p("ngIf",i.showLegend&&"scaleLegend"===i.legendType),_(1),p("ngIf",i.showLegend&&"legend"===i.legendType))},directives:function(){return[De,Lw,Ew]},encapsulation:2,data:{animation:[vn("animationState",[cn(":enter",[Ie({opacity:0}),ln("500ms 100ms",Ie({opacity:1}))])])]},changeDetection:0}),t})(),Kj=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new L,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Z(_t),Z(Rt))},t.\u0275dir=wn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),xt=(()=>{class t{constructor(e,i,s){this.chartElement=e,this.zone=i,this.cd=s,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new L}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Kj(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const s=this.chartElement.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;e<this.results.length;e++){const i=this.results[e];if(i.label=i.name,i.label instanceof Date&&(i.label=i.label.toLocaleDateString()),i.series)for(let s=0;s<i.series.length;s++){const r=i.series[s];r.label=r.name,r.label instanceof Date&&(r.label=r.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=OT(window,"resize").pipe(function lR(t,n=aR){return e=>e.lift(new cR(t,n))}(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const s of e){const r={name:s.name};if(void 0!==s.value&&(r.value=s.value),void 0!==s.series){r.series=[];for(const o of s.series){const a=Object.assign({},o);r.series.push(a)}}void 0!==s.extra&&(r.extra=JSON.parse(JSON.stringify(s.extra))),i.push(r)}return i}}return t.\u0275fac=function(e){return new(e||t)(Z(_t),Z(Rt),Z(Js))},t.\u0275cmp=Q({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[xe],decls:1,vars:0,template:function(e,i){1&e&&z(0,"div")},encapsulation:2}),t})(),em=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[xe],attrs:F5,decls:2,vars:6,template:function(e,i){1&e&&(A(),x(0,"text"),Ve(1),T()),2&e&&(M("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),_(1),pt(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Os(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function _w(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let s=0;s<t.length;s++)s%i==0&&e.push(t[s]);t=e}return t}let vw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new L,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(s){return this.scale(s)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;c<e.length;c++){const u=this.tickFormat(e[c]).toString();let h=u.length;this.trimTicks&&(h=this.tickTrim(u).length),h>this.maxTicksLength&&(this.maxTicksLength=h)}const o=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=o;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*o;return i}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_i(uw,5),2&e){let s;Me(s=Fe())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[xe],attrs:I5,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(A(),x(0,"g",null,0),S(2,P5,5,7,"g",1),T(),S(3,O5,2,2,"g",2)),2&e&&(_(2),p("ngForOf",i.ticks),_(1),p("ngForOf",i.ticks))},directives:[Re,De],encapsulation:2,changeDetection:0}),t})(),Vn=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new L,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&_i(vw,5),2&e){let s;Me(s=Fe())&&(i.ticksComponent=s.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[xe],attrs:R5,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(A(),x(0,"g"),S(1,B5,1,12,"g",0),S(2,H5,1,5,"g",1),T()),2&e&&(M("class",i.xAxisClassName)("transform",i.transform),_(1),p("ngIf",i.xScale),_(1),p("ngIf",i.showLabel))},directives:[De,vw,em],encapsulation:2,changeDetection:0}),t})();function xs(t,n,e,i,s,[r,o,a,l]){let c="";return c=`M${[t+s,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*s),c+=o?`a${[s,s]} 0 0 1 ${[s,s]}`:`h${s}v${s}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*s),c+=l?`a${[s,s]} 0 0 1 ${[-s,s]}`:`v${s}h${-s}`,c+="h"+(2*s-e),c+=a?`a${[s,s]} 0 0 1 ${[-s,-s]}`:`h${-s}v${-s}`,c+="v"+(2*s-i),c+=r?`a${[s,s]} 0 0 1 ${[s,-s]}`:`v${-s}h${s}`,c+="z",c}let yw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new L,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()},this.adjustedScale=e.bandwidth?function(s){return e(s)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(s){return"translate("+this.adjustedScale(s)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=xs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&_i(uw,5),2&e){let s;Me(s=Fe())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[xe],attrs:V5,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(A(),x(0,"g",null,0),S(2,$5,5,9,"g",1),T(),S(3,z5,1,2,"path",2),S(4,X5,2,2,"g",3),S(5,q5,2,1,"g",3)),2&e&&(_(2),p("ngForOf",i.ticks),_(1),p("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),_(1),p("ngForOf",i.ticks),_(1),p("ngForOf",i.referenceLines))},directives:[Re,De],encapsulation:2,changeDetection:0}),t})(),Mn=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new L,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&_i(yw,5),2&e){let s;Me(s=Fe())&&(i.ticksComponent=s.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[xe],attrs:Q5,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(A(),x(0,"g"),S(1,Z5,1,14,"g",0),S(2,K5,1,5,"g",1),T()),2&e&&(M("class",i.yAxisClassName)("transform",i.transform),_(1),p("ngIf",i.yScale),_(1),p("ngIf",i.showLabel))},directives:[De,yw,em],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[fa]]}),t})();var fu=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(fu||(fu={})),fu))(),gu=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(gu||(gu={})),gu))(),Rs=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(Rs||(Rs={})),Rs))();let Vi=(()=>{class t{constructor(e,i,s){this.tooltipService=e,this.viewContainerRef=i,this.renderer=s,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=$t.top,this.tooltipAlignment=gu.center,this.tooltipType=fu.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Rs.all,this.tooltipImmediateExit=!1,this.show=new L,this.hide=new L}get listensForFocus(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.focus}get listensForHover(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const s=this.createBoundOptions();this.component=this.tooltipService.create(s),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(Z(du),Z(pi),Z(Vl))},t.\u0275dir=wn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&E("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(r){return i.onMouseLeave(r.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({providers:[gw,du],imports:[[fa]]}),t})();function hn(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function Wt(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const Tw={};function Fn(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Tw[t]?Fn():(Tw[t]=!0,t)}let za=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new L,this.activate=new L,this.deactivate=new L,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Fn().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const s=i.name;return s&&this.visibleValue&&s.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const s=this.data.name,r=e.value,o=e.name,a=hn(o);let l;l=this.xScale("time"===this.scaleType?o:"linear"===this.scaleType?Number(o):o);const c=this.yScale("standard"===this.type?r:e.d1),h=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?r:e.d1:s),{classNames:[`circle-data-${i}`],value:r,label:o,data:Object.assign({},e,{series:s,value:r,name:o}),cx:l,cy:c,radius:5,height:h,tooltipLabel:a,color:f,opacity:1,seriesName:s,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:s,min:r,max:o}){return`\n <span class="tooltip-label">${Wt(s)} \u2022 ${Wt(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}${this.getTooltipMinMaxText(r,o)}</span>\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let s=" (";return void 0!==e?(void 0===i&&(s+="\u2265"),s+=e.toLocaleString(),void 0!==i&&(s+=" - ")):void 0!==i&&(s+="\u2264"),void 0!==i&&(s+=i.toLocaleString()),s+=")",s}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:J5,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&S(0,nz,5,20,"g",0),2&e&&p("ngIf",i.circle)},directives:function(){return[De,vr,mu,Vi]},encapsulation:2,data:{animation:[vn("animationState",[cn(":enter",[Ie({opacity:0}),ln(250,Ie({opacity:1}))])])]},changeDetection:0}),t})(),mu=(()=>{class t{constructor(){this.select=new L,this.activate=new L,this.deactivate=new L}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&E("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:iz,decls:1,vars:8,template:function(e,i){1&e&&(A(),z(0,"circle")),2&e&&M("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),Cw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:sz,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(e,i){1&e&&(A(),z(0,"rect",0)),2&e&&M("height",i.height)("width",i.width)("x",i.x)("y",i.y)},encapsulation:2,changeDetection:0}),t})(),tm=(()=>{class t{ngOnChanges(e){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(e=>{let i,s,r,o,a,l="odd";if("vertical"===this.orient){const c=this.xScale(e.name);Number.parseInt((c/this.xScale.step()).toString(),10)%2==1&&(l="even"),i=this.xScale.bandwidth()*this.xScale.paddingInner(),s=this.xScale.bandwidth()+i,r=this.dims.height,o=this.xScale(e.name)-i/2,a=0}else if("horizontal"===this.orient){const c=this.yScale(e.name);Number.parseInt((c/this.yScale.step()).toString(),10)%2==1&&(l="even"),i=this.yScale.bandwidth()*this.yScale.paddingInner(),s=this.dims.width,r=this.yScale.bandwidth()+i,o=0,a=this.yScale(e.name)-i/2}return{name:e.name,class:l,height:r,width:s,x:o,y:a}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[xe],attrs:rz,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(e,i){1&e&&S(0,oz,1,10,"g",0),2&e&&p("ngForOf",i.gridPanels)},directives:[Re,Cw],encapsulation:2,changeDetection:0}),t})(),vr=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[xe],attrs:az,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(A(),x(0,"linearGradient",0),S(1,lz,1,5,"stop",1),T()),2&e&&(p("id",i.name),M("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),_(1),p("ngForOf",i.stops))},directives:[Re],encapsulation:2,changeDetection:0}),t})(),nm=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[xe],attrs:cz,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(A(),x(0,"radialGradient",0),S(1,uz,1,5,"stop",1),T()),2&e&&(p("id",i.name),M("cx",i.cx)("cy",i.cy)("r",i.r),_(1),p("ngForOf",i.stops))},directives:[Re],encapsulation:2,changeDetection:0}),t})(),im=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new L,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Fn().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=tn(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[xe],attrs:hz,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(S(0,dz,2,2,"defs",0),A(),z(1,"path",1)),2&e&&(p("ngIf",i.gradient),_(1),Le("opacity",i.opacity),M("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},directives:[De,vr],encapsulation:2,changeDetection:0}),t})();function ww(t,n,e,i){return e*(1-Math.pow(2,-10*t/i))*1024/1023+n}function Dw(t,n,e,i,s){const r=Number(t),o=Number(n),a=r>o,l=Math.max(0,e),c=Math.pow(10,l),u=1e3*Number(i);let h;function d(f){let g;const y=f-h;g=a?r-ww(y,0,r-o,u):ww(y,r,o-r,u),g=a?g<o?o:g:g>o?o:g,g=Math.round(g*c)/c;const v=y<u;if(s({value:g,progress:y,timestamp:f,finished:!v}),v)return requestAnimationFrame(C=>d(C))}return requestAnimationFrame(f=>(h=f,d(f)))}function Aw(t){const n=Number(t);return n%1!=0&&Math.abs(n)<=10?2:0}let sm,pu=(()=>{class t{constructor(e,i){this.cd=e,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new L,this.countFinish=new L,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=i.nativeElement}set countDecimals(e){this._countDecimals=e}get countDecimals(){return this._countDecimals?this._countDecimals:Aw(this.countTo)}set countTo(e){this._countTo=parseFloat(e),this.start()}get countTo(){return this._countTo}set countFrom(e){this._countFrom=parseFloat(e),this.start()}get countFrom(){return this._countFrom}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}start(){cancelAnimationFrame(this.animationReq);const e=this.valueFormatting||(s=>`${this.countPrefix}${s.toLocaleString()}${this.countSuffix}`);this.animationReq=Dw(this.countFrom,this.countTo,this.countDecimals,this.countDuration,({value:s,progress:r,finished:o})=>{this.value=e(s),this.cd.markForCheck(),o||this.countChange.emit({value:this.value,progress:r}),o&&this.countFinish.emit({value:this.value,progress:r})})}}return t.\u0275fac=function(e){return new(e||t)(Z(Js),Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["","ngx-charts-count-up",""]],inputs:{countDuration:"countDuration",countPrefix:"countPrefix",countSuffix:"countSuffix",countDecimals:"countDecimals",countTo:"countTo",countFrom:"countFrom",valueFormatting:"valueFormatting"},outputs:{countChange:"countChange",countFinish:"countFinish"},attrs:fz,decls:1,vars:1,template:function(e,i){1&e&&Ve(0),2&e&&pt(" ",i.value," ")},encapsulation:2}),t})();"undefined"!=typeof window?sm=window:"undefined"!=typeof global&&(sm=global);const Sw=sm.MouseEvent;function rm(t,n=!1,e=!0){if("function"==typeof Sw)return new Sw(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let ja=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new L}getValues(e){const i=[];for(const s of this.results){const r=s.series.find(a=>a.name.toString()===e.toString());let o=s.name;if(o instanceof Date&&(o=o.toLocaleDateString()),r){const a=r.name;let c,l=r.value;if(this.showPercentage&&(l=(r.d1-r.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let h=l;r.d1&&(h=r.d1),c=this.colors.getColor(h)}else c=this.colors.getColor(s.name);const u=Object.assign({},r,{value:l,name:a,series:o,min:r.min,max:r.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,s=this.findClosestPointIndex(i),r=this.xSet[s];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){const o=rm("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(o),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,s=this.xSet.length-1,r=Number.MAX_VALUE,o=0;for(;i<=s;){const a=(i+s)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(c<r&&(r=c,o=a),l<e)i=a+1;else{if(!(l>e)){r=0,o=a;break}s=a-1}}return o}showTooltip(){const e=rm("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=rm("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&_i(gz,5),2&e){let s;Me(s=Fe())&&(i.tooltipAnchor=s.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:mz,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(A(),x(0,"g")(1,"rect",0),E("mousemove",function(r){return i.mouseMove(r)})("mouseleave",function(){return i.hideTooltip()}),T(),S(2,_z,2,1,"ng-template",null,1,yx),z(4,"rect",2,3),T()),2&e){const s=function xv(t){return function wr(t,n){return t[n]}(function QD(){return fe.lFrame.contextLView}(),20+t)}(3);_(1),M("x",0)("width",i.dims.width)("height",i.dims.height),_(3),Le("opacity",i.anchorOpacity)("pointer-events","none"),p("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:s)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),M("x",i.anchorPos)("width",1)("height",i.dims.height)}},directives:[Re,Vi],encapsulation:2,data:{animation:[vn("animationState",[cn("inactive => active",[Ie({opacity:0}),ln(250,Ie({opacity:.7}))]),cn("active => inactive",[Ie({opacity:.7}),ln(250,Ie({opacity:0}))])])]},changeDetection:0}),t})(),Ya=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new L,this.onDomainChange=new L,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Fn().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const s of this.results)for(const r of s.series)e.includes(r.name)||e.push(r.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=fr().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=et().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=gr().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function EH(){return function Cg(t){var a,n=DH,e=wH,i=AH,s=!0,r=n0("start","brush","end"),o=6;function l(v){var C=v.property("__brush",y).selectAll(".overlay").data([La("overlay")]);C.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ps.overlay).merge(C).each(function(){var D=Tg(this).extent;tn(this).attr("x",D[0][0]).attr("y",D[0][1]).attr("width",D[1][0]-D[0][0]).attr("height",D[1][1]-D[0][1])}),v.selectAll(".selection").data([La("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ps.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var b=v.selectAll(".handle").data(t.handles,function(D){return D.type});b.exit().remove(),b.enter().append("rect").attr("class",function(D){return"handle handle--"+D.type}).attr("cursor",function(D){return ps[D.type]}),v.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var v=tn(this),C=Tg(this).selection;C?(v.selectAll(".selection").style("display",null).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1]),v.selectAll(".handle").style("display",null).attr("x",function(b){return"e"===b.type[b.type.length-1]?C[1][0]-o/2:C[0][0]-o/2}).attr("y",function(b){return"s"===b.type[0]?C[1][1]-o/2:C[0][1]-o/2}).attr("width",function(b){return"n"===b.type||"s"===b.type?C[1][0]-C[0][0]+o:o}).attr("height",function(b){return"e"===b.type||"w"===b.type?C[1][1]-C[0][1]+o:o})):v.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(v,C,b){var D=v.__brush.emitter;return!D||b&&D.clean?new h(v,C,b):D}function h(v,C,b){this.that=v,this.args=C,this.state=v.__brush,this.active=0,this.clean=b}function d(){if((!a||$e.touches)&&e.apply(this,arguments)){var ee,ie,H,Y,Ce,P,$,q,tt,pe,dn,v=this,C=$e.target.__data__.type,b="selection"===(s&&$e.metaKey?C="overlay":C)?R0:s&&$e.altKey?go:fo,D=t===Jc?null:TH[C],k=t===Kc?null:CH[C],N=Tg(v),F=N.extent,X=N.selection,me=F[0][0],J=F[0][1],Be=F[1][0],j=F[1][1],re=0,we=0,bt=D&&k&&s&&$e.shiftKey,$n=$e.touches?xH($e.changedTouches[0].identifier):s3,Ye=$n(v),Tt=Ye,V=u(v,arguments,!0).beforestart();"overlay"===C?(X&&(tt=!0),N.selection=X=[[ee=t===Jc?me:Ye[0],H=t===Kc?J:Ye[1]],[Ce=t===Jc?Be:ee,$=t===Kc?j:H]]):(ee=X[0][0],H=X[0][1],Ce=X[1][0],$=X[1][1]),ie=ee,Y=H,P=Ce,q=$;var te=tn(v).attr("pointer-events","none"),le=te.selectAll(".overlay").attr("cursor",ps[C]);if($e.touches)V.moved=Pt,V.ended=zt;else{var O=tn($e.view).on("mousemove.brush",Pt,!0).on("mouseup.brush",zt,!0);s&&O.on("keydown.brush",Ut,!0).on("keyup.brush",wi,!0),NB($e.view)}O0(),fg(v),c.call(v),V.start()}function Pt(){var In=$n(v);bt&&!pe&&!dn&&(Math.abs(In[0]-Tt[0])>Math.abs(In[1]-Tt[1])?dn=!0:pe=!0),Tt=In,tt=!0,yg(),ke()}function ke(){var In;switch(re=Tt[0]-Ye[0],we=Tt[1]-Ye[1],b){case xg:case R0:D&&(re=Math.max(me-ee,Math.min(Be-Ce,re)),ie=ee+re,P=Ce+re),k&&(we=Math.max(J-H,Math.min(j-$,we)),Y=H+we,q=$+we);break;case fo:D<0?(re=Math.max(me-ee,Math.min(Be-ee,re)),ie=ee+re,P=Ce):D>0&&(re=Math.max(me-Ce,Math.min(Be-Ce,re)),ie=ee,P=Ce+re),k<0?(we=Math.max(J-H,Math.min(j-H,we)),Y=H+we,q=$):k>0&&(we=Math.max(J-$,Math.min(j-$,we)),Y=H,q=$+we);break;case go:D&&(ie=Math.max(me,Math.min(Be,ee-re*D)),P=Math.max(me,Math.min(Be,Ce+re*D))),k&&(Y=Math.max(J,Math.min(j,H-we*k)),q=Math.max(J,Math.min(j,$+we*k)))}P<ie&&(D*=-1,In=ee,ee=Ce,Ce=In,In=ie,ie=P,P=In,C in H0&&le.attr("cursor",ps[C=H0[C]])),q<Y&&(k*=-1,In=H,H=$,$=In,In=Y,Y=q,q=In,C in V0&&le.attr("cursor",ps[C=V0[C]])),N.selection&&(X=N.selection),pe&&(ie=X[0][0],P=X[1][0]),dn&&(Y=X[0][1],q=X[1][1]),(X[0][0]!==ie||X[0][1]!==Y||X[1][0]!==P||X[1][1]!==q)&&(N.selection=[[ie,Y],[P,q]],c.call(v),V.brush())}function zt(){if(O0(),$e.touches){if($e.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else OB($e.view,tt),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);te.attr("pointer-events","all"),le.attr("cursor",ps.overlay),N.selection&&(X=N.selection),SH(X)&&(N.selection=null,c.call(v)),V.end()}function Ut(){switch($e.keyCode){case 16:bt=D&&k;break;case 18:b===fo&&(D&&(Ce=P-re*D,ee=ie+re*D),k&&($=q-we*k,H=Y+we*k),b=go,ke());break;case 32:(b===fo||b===go)&&(D<0?Ce=P-re:D>0&&(ee=ie-re),k<0?$=q-we:k>0&&(H=Y-we),b=xg,le.attr("cursor",ps.selection),ke());break;default:return}yg()}function wi(){switch($e.keyCode){case 16:bt&&(pe=dn=bt=!1,ke());break;case 18:b===go&&(D<0?Ce=P:D>0&&(ee=ie),k<0?$=q:k>0&&(H=Y),b=fo,ke());break;case 32:b===xg&&($e.altKey?(D&&(Ce=P-re*D,ee=ie+re*D),k&&($=q-we*k,H=Y+we*k),b=go):(D<0?Ce=P:D>0&&(ee=ie),k<0?$=q:k>0&&(H=Y),b=fo),le.attr("cursor",ps[C]),ke());break;default:return}yg()}}function f(){u(this,arguments).moved()}function g(){u(this,arguments).ended()}function y(){var v=this.__brush||{selection:null};return v.extent=bg(n.apply(this,arguments)),v.dim=t,v}return l.move=function(v,C){v.selection?v.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var b=this,D=b.__brush,k=u(b,arguments),N=D.selection,F=t.input("function"==typeof C?C.apply(this,arguments):C,D.extent),X=or(N,F);function me(ee){D.selection=1===ee&&null===F?null:X(ee),c.call(b),k.brush()}return null!==N&&null!==F?me:me(1)}):v.each(function(){var b=this,D=arguments,k=b.__brush,N=t.input("function"==typeof C?C.apply(b,D):C,k.extent),F=u(b,D).beforestart();fg(b),k.selection=null===N?null:N,c.call(b),F.start().brush().end()})},l.clear=function(v){l.move(v,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(v){!function EB(t,n,e,i){var s=$e;t.sourceEvent=$e,$e=t;try{n.apply(e,i)}finally{$e=s}}(new yH(l,v,t.output(this.state.selection)),r.apply,r,[v,this.that,this.args])}},l.extent=function(v){return arguments.length?(n="function"==typeof v?v:vg(bg(v)),l):n},l.filter=function(v){return arguments.length?(e="function"==typeof v?v:vg(!!v),l):e},l.touchable=function(v){return arguments.length?(i="function"==typeof v?v:vg(!!v),l):i},l.handleSize=function(v){return arguments.length?(o=+v,l):o},l.keyModifiers=function(v){return arguments.length?(s=!!v,l):s},l.on=function(){var v=r.on.apply(r,arguments);return v===r?l:v},l}(Kc)}().extent([[0,0],[i,e]]).on("brush end",()=>{const r=($e.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(r),this.cd.markForCheck()}),tn(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),tn(this.element).select(".brush").call(this.brush),tn(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(Z(_t),Z(Js))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[xe],attrs:vz,ngContentSelectors:cw,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(gd(),A(),x(0,"g",0)(1,"filter"),z(2,"feColorMatrix",1),T(),x(3,"g",2),md(4),T(),z(5,"rect",3)(6,"g",4),T()),2&e&&(M("transform",i.transform),_(1),M("id",i.filterId),_(4),M("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Ew=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new L,this.labelActivate=new L,this.labelDeactivate=new L,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const s=hn(i);-1===e.findIndex(o=>o.label===s)&&e.push({label:i,formattedLabel:s,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.label===s.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(Z(Js))},t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[xe],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"div"),S(1,yz,3,1,"header",0),x(2,"div",1)(3,"ul",2),S(4,xz,2,4,"li",3),T()()()),2&e&&(Le("width",i.width,"px"),_(1),p("ngIf",(null==i.title?null:i.title.length)>0),_(2),Le("max-height",i.height-45,"px"),en("horizontal-legend",i.horizontal),_(1),p("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},directives:function(){return[De,Re,kw]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),kw=(()=>{class t{constructor(){this.isActive=!1,this.select=new L,this.activate=new L,this.deactivate=new L,this.toggle=new L}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(x(0,"span",0),E("click",function(){return i.select.emit(i.formattedLabel)}),x(1,"span",1),E("click",function(){return i.toggle.emit(i.formattedLabel)}),T(),x(2,"span",2),Ve(3),T()()),2&e&&(en("active",i.isActive),p("title",i.formattedLabel),_(1),Le("background-color",i.color),_(2),pt(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Lw=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const s=[];return e.reverse().forEach((r,o)=>{s.push(`${r} ${Math.round(100*i[o])}%`)}),s.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Z(Vb))},t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[xe],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"div",1)(2,"span"),Ve(3),T()(),z(4,"div",2),x(5,"div",1)(6,"span"),Ve(7),T()()()),2&e&&(Le("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),en("horizontal-legend",i.horizontal),_(3),ni(i.valueRange[1].toLocaleString()),_(1),Le("background",i.gradient),_(3),ni(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{constructor(){this.label="Total",this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.legendItems=[],this.labelFormatting=e=>e,this.percentageFormatting=e=>e,this.defaultValueFormatting=e=>e.toLocaleString()}ngOnChanges(e){this.update()}getTotal(){return this.data.map(e=>e.value).reduce((e,i)=>e+i,0)}update(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()}getLegendItems(){return this.data.map(e=>{const i=hn(e.name),s=e.value,r=this.colors.getColor(i),o=this.total>0?s/this.total*100:0,a="function"==typeof this.labelFormatting?this.labelFormatting(i):i;return{_value:s,data:e,value:s,color:r,label:a,displayLabel:Os(a,20),origialLabel:e.name,percentage:this.percentageFormatting?this.percentageFormatting(o):o.toLocaleString()}})}trackBy(e){return e.formattedLabel}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-advanced-legend"]],inputs:{label:"label",animations:"animations",labelFormatting:"labelFormatting",percentageFormatting:"percentageFormatting",width:"width",data:"data",colors:"colors",valueFormatting:"valueFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],decls:8,vars:7,consts:[[1,"advanced-pie-legend"],["class","total-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","total-value",4,"ngIf"],[1,"total-label"],[1,"legend-items-container"],[1,"legend-items"],["tabindex","-1","class","legend-item",3,"mouseenter","mouseleave","click",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-count-up","",1,"total-value",3,"countTo","valueFormatting"],[1,"total-value"],["tabindex","-1",1,"legend-item",3,"mouseenter","mouseleave","click"],[1,"item-color"],["class","item-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","item-value",4,"ngIf"],[1,"item-label"],["class","item-percent","ngx-charts-count-up","",3,"countTo","countSuffix",4,"ngIf"],["class","item-percent",4,"ngIf"],["ngx-charts-count-up","",1,"item-value",3,"countTo","valueFormatting"],[1,"item-value"],["ngx-charts-count-up","",1,"item-percent",3,"countTo","countSuffix"],[1,"item-percent"]],template:function(e,i){1&e&&(x(0,"div",0),S(1,bz,1,2,"div",1),S(2,Tz,2,1,"div",2),x(3,"div",3),Ve(4),T(),x(5,"div",4)(6,"div",5),S(7,Sz,8,7,"div",6),T()()()),2&e&&(Le("width",i.width,"px"),_(1),p("ngIf",i.animations),_(1),p("ngIf",!i.animations),_(2),pt(" ",i.label," "),_(3),p("ngForOf",i.legendItems)("ngForTrackBy",i.trackBy))},directives:[De,pu,Re],styles:[".advanced-pie-legend{float:left;position:relative;top:50%;transform:translateY(-50%)}.advanced-pie-legend .total-value{font-size:36px}.advanced-pie-legend .total-label{font-size:24px;margin-bottom:19px}.advanced-pie-legend .legend-items-container{width:100%}.advanced-pie-legend .legend-items-container .legend-items{overflow:auto;white-space:nowrap}.advanced-pie-legend .legend-items-container .legend-items .legend-item{cursor:pointer;display:inline-block;margin-right:20px}.advanced-pie-legend .legend-items-container .legend-items .legend-item:focus{outline:none}.advanced-pie-legend .legend-items-container .legend-items .legend-item:hover{color:#000;transition:.2s}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value{font-size:24px;margin-left:11px;margin-top:-6px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label{font-size:14px;margin-left:11px;margin-top:-6px;opacity:.7}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent{font-size:24px;margin-left:11px;opacity:.7}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color{border-left:4px solid;float:left;height:42px;margin-right:7px;width:4px}"],encapsulation:2,changeDetection:0}),t})(),$i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[fa,xw,bw],fa,xw,bw]}),t})();function Et({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:s=!1,xAxisHeight:r=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:h="right",columns:d=12}){let f=e[3],g=t,y=n-e[0]-e[2];return c&&"right"===h&&(d-="ordinal"===u?2:1),g=g*d/12,g=g-e[1]-e[3],i&&(y-=5,y-=r,a&&(y-=30)),s&&(g-=5,g-=o,f+=o,f+=10,l&&(g-=30,f+=30)),g=Math.max(0,g),y=Math.max(0,y),{width:Math.floor(g),height:Math.floor(y),xOffset:Math.floor(f)}}let Fw=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class kt{constructor(n,e,i,s){"string"==typeof n&&(n=Fw.find(r=>r.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=s,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let s;if("string"==typeof n&&(n=Fw.find(r=>r.name===n)),"quantile"===e)s=XC().range(n.domain).domain(i);else if("ordinal"===e)s=Xg().range(n.domain).domain(i);else if("linear"===e){const r=[...n.domain];1===r.length&&(r.push(r[0]),this.colorDomain=r);const o=jC(0,1,1/r.length);s=et().domain(o).range(r)}return s}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=et().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=et().domain(this.domain).range([0,1]),s=un().domain(this.colorDomain).range([0,1]),r=this.getColor(n),o=i(e),a=this.getColor(e),l=i(n);let c=1,u=o;const h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});u<l&&c<this.colorDomain.length;){const d=this.colorDomain[c],f=s(d);if(f<=o)c++;else{if(f.toFixed(4)>=(l-s.bandwidth()).toFixed(4))break;h.push({color:d,offset:f,opacity:1}),u=f,c++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:l,opacity:1}),l===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const d of h)d.offset=(d.offset-o)/(l-o)*100;return h}}function _u(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}function Bs(t,n=!0){return n&&t.every(s=>s instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}let Jj=(()=>{class t extends xt{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.baseValue="auto",this.showGridLines=!0,this.curve=mr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset}, ${this.margin[0]})`,this.clipPathId="clip"+Fn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const o of this.results)for(const a of o.series)e.includes(a.value)||e.push(a.value);const i=[...e];return this.autoScale||i.push(0),"auto"!==this.baseValue&&i.push(this.baseValue),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=et():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=et().range([i,0]).domain(e);return this.roundDomains?s.nice():s}getScaleType(e){let i=!0,s=!0;for(const r of e)this.isDate(r)||(i=!1),"number"!=typeof r&&(s=!1);return i?"time":s?"linear":"ordinal"}isDate(e){return e instanceof Date}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-area-chart"]],contentQueries:function(e,i,s){if(1&e&&(lt(s,Vt,5),lt(s,hu,5)),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first),Me(r=Fe())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",baseValue:"baseValue",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",legend:"legend",state:"state",xAxis:"xAxis",yAxis:"yAxis",autoScale:"autoScale",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","activeEntries","scaleType","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"defs")(2,"clipPath"),z(3,"rect"),T()(),x(4,"g",1),S(5,Ez,1,10,"g",2),S(6,kz,1,9,"g",3),x(7,"g"),S(8,Lz,2,10,"g",4),S(9,Fz,3,9,"g",5),T()(),S(10,Pz,2,13,"g",6),T()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),M("id",i.clipPathId),_(1),M("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),M("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[yt,De,Vn,Mn,Re,cm,ja,za,Ya]},styles:[It],encapsulation:2,changeDetection:0}),t})(),e8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=mr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0,r=0;for(const o of this.results){const a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a&&(r+=a.value)}for(const o of this.results){let a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a?(a.d0=s,a.d1=s+a.value,s+=a.value):(a={name:i,value:0,d0:s,d1:s},o.series.push(a)),r>0?(a.d0=100*a.d0/r,a.d1=100*a.d1/r):(a.d0=0,a.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Fn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let i=[];if("time"===this.scaleType){const s=Math.min(...e),r=Math.max(...e);i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})}else"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e);return i}getYDomain(){return[0,100]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=et():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=et().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(e,i,s){if(1&e&&(lt(s,Vt,5),lt(s,hu,5)),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first),Me(r=Fe())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"defs")(2,"clipPath"),z(3,"rect"),T()(),x(4,"g",1),S(5,Nz,1,10,"g",2),S(6,Oz,1,9,"g",3),x(7,"g"),S(8,Rz,2,9,"g",4),S(9,Hz,3,10,"g",5),T()(),S(10,$z,2,13,"g",6),T()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),M("id",i.clipPathId),_(1),M("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),M("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[yt,De,Vn,Mn,Re,cm,ja,za,Ya]},styles:[It],encapsulation:2,changeDetection:0}),t})(),t8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=mr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0;for(const r of this.results){let o=r.series.find(a=>{let l=a.name,c=i;return"time"===this.scaleType&&(l=l.valueOf(),c=c.valueOf()),l===c});o?(o.d0=s,o.d1=s+o.value,s+=o.value):(o={name:i,value:0,d0:s,d1:s},r.series.push(o))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Fn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(let r=0;r<this.xSet.length;r++){const o=this.xSet[r];let a=0;for(const l of this.results){const c=l.series.find(u=>{let h=u.name,d=o;return"time"===this.scaleType&&(h=h.valueOf(),d=d.valueOf()),h===d});c&&(a+=c.value)}e.push(a)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=et():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=et().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(e,i,s){if(1&e&&(lt(s,Vt,5),lt(s,hu,5)),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first),Me(r=Fe())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"defs")(2,"clipPath"),z(3,"rect"),T()(),x(4,"g",1),S(5,zz,1,10,"g",2),S(6,jz,1,9,"g",3),x(7,"g"),S(8,Yz,2,9,"g",4),S(9,Xz,3,10,"g",5),T()(),S(10,Uz,2,13,"g",6),T()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),M("id",i.clipPathId),_(1),M("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),M("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[yt,De,Vn,Mn,Re,cm,ja,za,Ya]},styles:[It],encapsulation:2,changeDetection:0}),t})();function om(t,n,e="asc"){return t.sort((i,s)=>"asc"===e?i[n]-s[n]:s[n]-i[n])}function am(t,n,e="asc",i){return t.sort((s,r)=>{const a=r[n],l=i.indexOf(s[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}function lm(t,n,e="asc"){return t.sort((i,s)=>{const r=i[n].getTime(),o=s[n].getTime();return"asc"===e?r>o?1:o>r?-1:0:r>o?-1:o>r?1:0})}let cm=(()=>{class t{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new L}ngOnChanges(e){this.update()}update(){let e,i;this.updateGradient();const s=o=>this.xScale(o.name);this.stacked||this.normalized?(e=xo().x(s).y0((o,a)=>this.yScale(o.d0)).y1((o,a)=>this.yScale(o.d1)),i=xo().x(s).y0(o=>this.yScale.range()[0]).y1(o=>this.yScale.range()[0])):(e=xo().x(s).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>this.yScale(o.value)),i=xo().x(s).y0(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),e.curve(this.curve),i.curve(this.curve),this.opacity=.8;let r=this.data.series;r="linear"===this.scaleType?om(r,"name"):"time"===this.scaleType?lm(r,"name"):am(r,"name","asc",this.xScale.domain()),this.path=e(r),this.startingPath=i(r)}updateGradient(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){const e=this.data.series.map(o=>o.d0),i=this.data.series.map(o=>o.d1),s=Math.max(...i),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(s,r)}else{const e=this.data.series.map(s=>s.value),i=Math.max(...e);this.gradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[xe],attrs:qz,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(e,i){1&e&&(A(),z(0,"g",0)),2&e&&(en("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.path)("fill",i.colors.getColor(i.data.name))("stops",i.gradientStops)("startingPath",i.startingPath)("opacity",i.opacity)("gradient",i.gradient||i.hasGradient)("animations",i.animations))},directives:[im],encapsulation:2,changeDetection:0}),t})(),n8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),um=(()=>{class t{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Fn().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const e=tn(this.element).select(".bar"),i=this.getPath();this.animations?e.transition().duration(500).attr("d",i):e.attr("d",i)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=xs(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=xs(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?i=xs(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(i=xs(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=xs(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=xs(this.x,this.y,this.width,this.height,e,this.edges)):i=xs(this.x,this.y,this.width,this.height,e,this.edges),i}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:Qz,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(S(0,Zz,2,3,"defs",0),A(),x(1,"path",1),E("click",function(){return i.select.emit(i.data)}),T()),2&e&&(p("ngIf",i.hasGradient),_(1),en("active",i.isActive)("hidden",i.hideBar),M("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},directives:[De,vr],encapsulation:2,changeDetection:0}),t})(),i8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const e=et().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?e.nice():e}getYScale(){this.yDomain=this.getYDomain();const e=this.yDomain.length/(this.dims.height/this.barPadding+1);return un().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.yDomain)}getXDomain(){const e=this.results.map(r=>r.value);return[this.xScaleMin?Math.min(this.xScaleMin,...e):Math.min(0,...e),this.xScaleMax?Math.max(this.xScaleMax,...e):Math.max(0,...e)]}getYDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){let e;e="ordinal"===this.schemeType?this.yDomain:this.xDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.yDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.xDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxWidthChanged(e){e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),A(),x(1,"g",1),S(2,Kz,1,10,"g",2),S(3,Jz,1,9,"g",3),x(4,"g",4),E("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("dataLabelWidthChanged",function(r){return i.onDataLabelMaxWidthChanged(r)}),T()()()),2&e&&(p("view",Je(22,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero))},directives:function(){return[yt,De,Vn,Mn,yu]},styles:[It],encapsulation:2,changeDetection:0}),t})(),s8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupScale(){const e=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return un().rangeRound([0,this.dims.height]).paddingInner(e).paddingOuter(e/2).domain(this.groupDomain)}getInnerScale(){const e=this.groupScale.bandwidth(),i=this.innerDomain.length/(e/this.barPadding+1);return un().rangeRound([0,e]).paddingInner(i).domain(this.innerDomain)}getValueScale(){const e=et().range([0,this.dims.width]).domain(this.valuesDomain);return this.roundDomains?e.nice():e}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];for(const r of this.results)for(const o of r.series)e.includes(o.value)||e.push(o.value);return[Math.min(0,...e),this.xScaleMax?Math.max(this.xScaleMax,...e):Math.max(0,...e)]}groupTransform(e){return`translate(0, ${this.groupScale(e.label)})`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valuesDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxWidthChanged(e,i){e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),i===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-horizontal-2d"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","horizontal",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],["ngx-charts-series-horizontal","",3,"xScale","activeEntries","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),z(2,"g",2),S(3,e4,1,10,"g",3),S(4,t4,1,9,"g",4),S(5,n4,2,17,"g",5),T()()),2&e&&(p("view",Je(14,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("xScale",i.valueScale)("yScale",i.groupScale)("data",i.results)("dims",i.dims),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,tm,De,Vn,Mn,Re,yu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),r8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){return[0,100]}getYScale(){const e=this.groupDomain.length/(this.dims.height/this.barPadding+1);return un().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.groupDomain)}getXScale(){const e=et().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?e.nice():e}groupTransform(e){return`translate(0, ${this.yScale(e.name)})`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-horizontal-normalized"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-horizontal","","type","normalized",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),S(2,i4,1,10,"g",2),S(3,s4,1,8,"g",3),S(4,r4,2,14,"g",4),T()()),2&e&&(p("view",Je(10,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Vn,Mn,Re,yu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),o8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];let i=0,s=0;for(const a of this.results){let l=0,c=0;for(const u of a.series)u.value<0?l+=u.value:c+=u.value,i=u.value<i?u.value:i,s=u.value>s?u.value:s;e.push(l),e.push(c)}return e.push(i),e.push(s),[Math.min(0,...e),this.xScaleMax?Math.max(this.xScaleMax,...e):Math.max(...e)]}getYScale(){const e=this.groupDomain.length/(this.dims.height/this.barPadding+1);return un().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.groupDomain)}getXScale(){const e=et().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?e.nice():e}groupTransform(e){return`translate(0, ${this.yScale(e.name)})`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxWidthChanged(e,i){e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),i===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-horizontal-stacked"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],["ngx-charts-series-horizontal","","type","stacked",3,"xScale","yScale","colors","series","activeEntries","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),S(2,o4,1,10,"g",2),S(3,a4,1,9,"g",3),S(4,l4,2,16,"g",4),T()()),2&e&&(p("view",Je(10,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Vn,Mn,Re,yu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),a8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const e=this.xDomain.length/(this.dims.width/this.barPadding+1);return un().range([0,this.dims.width]).paddingInner(e).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const e=et().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?e.nice():e}getXDomain(){return this.results.map(e=>e.label)}getYDomain(){const e=this.results.map(r=>r.value);let i=this.yScaleMin?Math.min(this.yScaleMin,...e):Math.min(0,...e);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.min(i,...this.yAxisTicks));let s=this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(0,...e);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(s=Math.max(s,...this.yAxisTicks)),[i,s]}onClick(e){this.select.emit(e)}setColors(){let e;e="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.xDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxHeightChanged(e){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),A(),x(1,"g",1),S(2,c4,1,10,"g",2),S(3,u4,1,9,"g",3),x(4,"g",4),E("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("select",function(r){return i.onClick(r)})("dataLabelHeightChanged",function(r){return i.onDataLabelMaxHeightChanged(r)}),T()()()),2&e&&(p("view",Je(22,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero))},directives:function(){return[yt,De,Vn,Mn,vu]},styles:[It],encapsulation:2,changeDetection:0}),t})(),l8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.scaleType="ordinal",this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(e,i){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),i===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const e=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return un().rangeRound([0,this.dims.width]).paddingInner(e).paddingOuter(e/2).domain(this.groupDomain)}getInnerScale(){const e=this.groupScale.bandwidth(),i=this.innerDomain.length/(e/this.barPadding+1);return un().rangeRound([0,e]).paddingInner(i).domain(this.innerDomain)}getValueScale(){const e=et().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?e.nice():e}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];for(const r of this.results)for(const o of r.series)e.includes(o.value)||e.push(o.value);return[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(0,...e)]}groupTransform(e){return`translate(${this.groupScale(e.label)}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valuesDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),z(2,"g",2),S(3,h4,1,10,"g",3),S(4,d4,1,9,"g",4),S(5,f4,1,17,"g",5),T()()),2&e&&(p("view",Je(14,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("xScale",i.groupScale)("yScale",i.valueScale)("data",i.results)("dims",i.dims),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,tm,De,Vn,Mn,Re,vu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),c8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){return[0,100]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return un().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=et().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}groupTransform(e){return`translate(${this.xScale(e.name)}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-vertical-normalized"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","","type","normalized",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),S(2,g4,1,9,"g",2),S(3,m4,1,9,"g",3),S(4,p4,2,14,"g",4),T()()),2&e&&(p("view",Je(10,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Vn,Mn,Re,vu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),u8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getGroupDomain(){const e=[];for(const i of this.results)e.includes(i.label)||e.push(i.label);return e}getInnerDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];let i=0,s=0;for(const a of this.results){let l=0,c=0;for(const u of a.series)u.value<0?l+=u.value:c+=u.value,i=u.value<i?u.value:i,s=u.value>s?u.value:s;e.push(l),e.push(c)}return e.push(i),e.push(s),[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(...e)]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return un().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=et().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}onDataLabelMaxHeightChanged(e,i){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),i===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(e){return`translate(${this.xScale(e.name)||0}, 0)`}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","","type","stacked",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,void 0,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,void 0,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),S(2,_4,1,10,"g",2),S(3,v4,1,9,"g",3),S(4,y4,2,16,"g",4),T()()),2&e&&(p("view",Je(10,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Vn,Mn,Re,vu]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1,transform:"*"}),ln(500,Ie({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();var li=(()=>(function(t){t.positive="positive",t.negative="negative"}(li||(li={})),li))();let vu=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.dataLabelHeightChanged=new L,this.barsForDataLabels=[]}ngOnChanges(e){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const i=Math.max(this.yScale.domain()[0],0),s={[li.positive]:0,[li.negative]:0};let o,r=li.positive;"normalized"===this.type&&(o=this.series.map(a=>a.value).reduce((a,l)=>a+l,0)),this.bars=this.series.map((a,l)=>{let c=a.value;const u=this.getLabel(a),h=hn(u);r=c>0?li.positive:li.negative;const f={value:c,label:u,roundEdges:this.roundEdges,data:a,width:e,formattedLabel:h,height:0,x:0,y:0};if("standard"===this.type)f.height=Math.abs(this.yScale(c)-this.yScale(i)),f.x=this.xScale(u),f.y=this.yScale(c<0?0:c);else if("stacked"===this.type){const y=s[r],v=y+c;s[r]+=c,f.height=this.yScale(y)-this.yScale(v),f.x=0,f.y=this.yScale(v),f.offset0=y,f.offset1=v}else if("normalized"===this.type){let y=s[r],v=y+c;s[r]+=c,o>0?(y=100*y/o,v=100*v/o):(y=0,v=0),f.height=this.yScale(y)-this.yScale(v),f.x=0,f.y=this.yScale(v),f.offset0=y,f.offset1=v,c=(v-y).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?f.color=this.colors.getColor(u):"standard"===this.type?(f.color=this.colors.getColor(c),f.gradientStops=this.colors.getLinearGradientStops(c)):(f.color=this.colors.getColor(f.offset1),f.gradientStops=this.colors.getLinearGradientStops(f.offset1,f.offset0));let g=h;return f.ariaLabel=h+" "+c.toLocaleString(),this.seriesName&&(g=`${this.seriesName} \u2022 ${h}`,f.data.series=this.seriesName,f.ariaLabel=this.seriesName+" "+f.ariaLabel),f.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${Wt(g)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(c):c.toLocaleString()}</span>\n `,f}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,o)=>o>0?r+o:r,0),s=this.series.map(r=>r.value).reduce((r,o)=>o<0?r+o:r,0);e.total=i+s,e.x=0,e.y=0,e.height=this.yScale(e.total>0?i:s),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{const i={};return i.series=this.seriesName?this.seriesName:e.label,i.total=e.value,i.x=this.xScale(e.label),i.y=this.yScale(0),i.height=this.yScale(i.total)-this.yScale(0),i.width=this.xScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[xe],attrs:x4,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(S(0,b4,1,22,"g",0),S(1,C4,2,2,"g",1)),2&e&&(p("ngForOf",i.bars)("ngForTrackBy",i.trackBy),_(1),p("ngIf",i.showDataLabel))},directives:function(){return[Re,um,Vi,De,Iw]},encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1}),ln(500,Ie({opacity:0}))])])]},changeDetection:0}),t})(),yu=(()=>{class t{constructor(){this.barsForDataLabels=[],this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.dataLabelWidthChanged=new L}ngOnChanges(e){this.update()}update(){this.updateTooltipSettings();const e={[li.positive]:0,[li.negative]:0};let i,s;i=li.positive,"normalized"===this.type&&(s=this.series.map(o=>o.value).reduce((o,a)=>o+a,0));const r=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map((o,a)=>{let l=o.value;const c=this.getLabel(o),u=hn(c);i=l>0?li.positive:li.negative;const d={value:l,label:c,roundEdges:this.roundEdges,data:o,formattedLabel:u};if(d.height=this.yScale.bandwidth(),"standard"===this.type)d.width=Math.abs(this.xScale(l)-this.xScale(r)),d.x=this.xScale(l<0?l:r),d.y=this.yScale(c);else if("stacked"===this.type){const g=e[i],y=g+l;e[i]+=l,d.width=this.xScale(y)-this.xScale(g),d.x=this.xScale(g),d.y=0,d.offset0=g,d.offset1=y}else if("normalized"===this.type){let g=e[i],y=g+l;e[i]+=l,s>0?(g=100*g/s,y=100*y/s):(g=0,y=0),d.width=this.xScale(y)-this.xScale(g),d.x=this.xScale(g),d.y=0,d.offset0=g,d.offset1=y,l=(y-g).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?d.color=this.colors.getColor(c):"standard"===this.type?(d.color=this.colors.getColor(l),d.gradientStops=this.colors.getLinearGradientStops(l)):(d.color=this.colors.getColor(d.offset1),d.gradientStops=this.colors.getLinearGradientStops(d.offset1,d.offset0));let f=u;return d.ariaLabel=u+" "+l.toLocaleString(),this.seriesName&&(f=`${this.seriesName} \u2022 ${u}`,d.data.series=this.seriesName,d.ariaLabel=this.seriesName+" "+d.ariaLabel),d.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${Wt(f)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(l):l.toLocaleString()}</span>\n `,d}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,o)=>o>0?r+o:r,0),s=this.series.map(r=>r.value).reduce((r,o)=>o<0?r+o:r,0);e.total=i+s,e.x=0,e.y=0,e.width=this.xScale(e.total>0?i:s),e.height=this.yScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{const i={};return i.series=this.seriesName?this.seriesName:e.label,i.total=e.value,i.x=this.xScale(0),i.y=this.yScale(e.label),i.width=this.xScale(i.total)-this.xScale(0),i.height=this.yScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}click(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[xe],attrs:w4,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(S(0,D4,1,21,"g",0),S(1,S4,2,2,"g",1)),2&e&&(p("ngForOf",i.bars)("ngForTrackBy",i.trackBy),_(1),p("ngIf",i.showDataLabel))},directives:function(){return[Re,um,Vi,De,Iw]},encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1}),ln(500,Ie({opacity:0}))])])]},changeDetection:0}),t})(),Iw=(()=>{class t{constructor(e){this.dimensionsChanged=new L,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):hn(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[xe],attrs:E4,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,i){1&e&&(A(),x(0,"text",0),Ve(1),T()),2&e&&(M("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),_(1),pt(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})();function Nw(t,n,e,i,s){let r=[];return"linear"===n&&(t=t.map(o=>Number(o)),e||t.push(0)),r="time"===n||"linear"===n?[i||Math.min(...t),s||Math.max(...t)]:t,r}function Ow(t,n,e,i){let s;return"time"===e?s=fr().range(n).domain(t):"linear"===e?(s=et().range(n).domain(t),i&&(s=s.nice())):"ordinal"===e&&(s=gr().range([n[0],n[1]]).domain(t)),s}let h8=(()=>{class t extends xt{constructor(){super(...arguments),this.showGridLines=!0,this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.xAxis=!0,this.yAxis=!0,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.maxRadius=10,this.minRadius=3,this.schemeType="ordinal",this.tooltipDisabled=!1,this.activate=new L,this.deactivate=new L,this.scaleType="linear",this.margin=[10,20,10,20],this.bubblePadding=[0,0,0,0],this.xAxisHeight=0,this.yAxisWidth=0,this.activeEntries=[]}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.seriesDomain=this.results.map(i=>i.name),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform=`translate(${this.dims.xOffset},${this.margin[0]})`,this.colors=new kt(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.rDomain,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions(),this.clipPathId="clip"+Fn().toString(),this.clipPath=`url(#${this.clipPathId})`}hideCircles(){this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}getBubblePadding(){let e=0,i=0,s=this.dims.height,r=this.dims.width;for(const o of this.data)for(const a of o.series){const l=this.rScale(a.r),c=this.xScale("linear"===this.xScaleType?Number(a.x):a.x),u=this.yScale("linear"===this.yScaleType?Number(a.y):a.y);i=Math.max(l-c,i),e=Math.max(l-u,e),s=Math.max(u+l,s),r=Math.max(c+l,r)}return r=Math.max(r-this.dims.width,0),s=Math.max(s-this.dims.height,0),[e,r,s,i]}setScales(){let e=this.dims.width;void 0===this.xScaleMin&&void 0===this.xScaleMax&&(e-=this.bubblePadding[1]);let i=this.dims.height;void 0===this.yScaleMin&&void 0===this.yScaleMax&&(i-=this.bubblePadding[2]),this.xScale=this.getXScale(this.xDomain,e),this.yScale=this.getYScale(this.yDomain,i)}getYScale(e,i){return Ow(e,[i,this.bubblePadding[0]],this.yScaleType,this.roundDomains)}getXScale(e,i){return Ow(e,[this.bubblePadding[3],i],this.xScaleType,this.roundDomains)}getRScale(e,i){const s=et().range(i).domain(e);return this.roundDomains?s.nice():s}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.rDomain,e.colors=this.colors.scale),e}getXDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.x)||e.push(s.x);return this.xScaleType=Bs(e),Nw(e,this.xScaleType,this.autoScale,this.xScaleMin,this.xScaleMax)}getYDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.y)||e.push(s.y);return this.yScaleType=Bs(e),Nw(e,this.yScaleType,this.autoScale,this.yScaleMin,this.yScaleMax)}getRDomain(){let e=1/0,i=-1/0;for(const s of this.results)for(const r of s.series){const o=Number(r.r)||1;e=Math.min(e,o),i=Math.max(i,o)}return[e,i]}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}trackBy(e,i){return i.name}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-bubble-chart"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{showGridLines:"showGridLines",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",maxRadius:"maxRadius",minRadius:"minRadius",schemeType:"schemeType",tooltipDisabled:"tooltipDisabled",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",autoScale:"autoScale",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:10,vars:20,consts:[[3,"view","showLegend","activeEntries","legendOptions","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bubble-chart","chart"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["x","0","y","0",1,"bubble-chart-area",2,"fill","rgb(255, 0, 0)","opacity","0","cursor","auto",3,"mouseenter"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-bubble-series","",3,"xScale","yScale","rScale","xScaleType","yScaleType","xAxisLabel","yAxisLabel","colors","data","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"defs")(2,"clipPath"),z(3,"rect"),T()(),x(4,"g",1),S(5,k4,1,10,"g",2),S(6,L4,1,9,"g",3),x(7,"rect",4),E("mouseenter",function(){return i.deactivateAll()}),T(),x(8,"g"),S(9,M4,2,13,"g",5),T()()()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("activeEntries",i.activeEntries)("legendOptions",i.legendOptions)("animations",i.animations),_(2),M("id",i.clipPathId),_(1),M("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),M("width",i.dims.width)("height",i.dims.height),_(1),M("clip-path",i.clipPath),_(1),p("ngForOf",i.data)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Vn,Mn,Re,d8]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1}),ln(500,Ie({opacity:0}))])])]},changeDetection:0}),t})(),d8=(()=>{class t{constructor(){this.tooltipDisabled=!1,this.select=new L,this.activate=new L,this.deactivate=new L}ngOnChanges(e){this.update()}update(){this.circles=this.getCircles()}getCircles(){const e=this.data.name;return this.data.series.map((i,s)=>{if(void 0!==i.y&&void 0!==i.x){const r=i.y,o=i.x,a=i.r,l=this.rScale(a||1),c=hn(i.name),u=this.xScale("linear"===this.xScaleType?Number(o):o),h=this.yScale("linear"===this.yScaleType?Number(r):r),d=this.colors.getColor("linear"===this.colors.scaleType?a:e),f=!this.activeEntries.length||this.isActive({name:e}),g=f?1:.3;return{data:Object.assign({},i,{series:e,name:i.name,value:i.y,x:i.x,radius:i.r}),x:o,y:r,r:a,classNames:[`circle-data-${s}`],value:r,label:o,cx:u,cy:h,radius:l,tooltipLabel:c,color:d,opacity:g,seriesName:e,isActive:f,transform:`translate(${u},${h})`}}}).filter(i=>void 0!==i)}getTooltipText(e){const s=e.tooltipLabel&&e.tooltipLabel.length,r=e.seriesName&&e.seriesName.length,o=void 0!==e.r?hn(e.r):"",a=this.xAxisLabel&&""!==this.xAxisLabel?`${this.xAxisLabel}:`:"",l=this.yAxisLabel&&""!==this.yAxisLabel?`${this.yAxisLabel}:`:"",c=hn(e.x),u=hn(e.y);return`\n ${r||s?`<span class="tooltip-label">${Wt(r&&s?`${e.seriesName} \u2022 ${e.tooltipLabel}`:e.seriesName+e.tooltipLabel)}</span>`:""}\n <span class="tooltip-label">\n <label>${Wt(a)}</label> ${Wt(c)}<br />\n <label>${Wt(l)}</label> ${Wt(u)}\n </span>\n <span class="tooltip-val">\n ${Wt(o)}\n </span>\n `}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isVisible(e){return this.activeEntries.length>0?this.isActive({name:e.seriesName}):0!==e.opacity}activateCircle(e){e.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(e){e.barVisible=!1,this.deactivate.emit({name:this.data.name})}trackBy(e,i){return`${i.data.series} ${i.data.name}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-bubble-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",rScale:"rScale",xScaleType:"xScaleType",yScaleType:"yScaleType",colors:"colors",visibleValue:"visibleValue",activeEntries:"activeEntries",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:F4,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&S(0,I4,3,19,"g",0),2&e&&p("ngForOf",i.circles)("ngForTrackBy",i.trackBy)},directives:[Re,mu,Vi],encapsulation:2,data:{animation:[vn("animationState",[cn(":enter",[Ie({opacity:0,transform:"scale(0)"}),ln(250,Ie({opacity:1,transform:"scale(1)"}))])])]},changeDetection:0}),t})(),f8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),g8=(()=>{class t{constructor(e){this.gradient=!1,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.element=e.nativeElement}ngOnChanges(e){this.transform=`translate(${this.x} , ${this.y})`,this.startOpacity=.3,this.gradientId="grad"+Fn().toString(),this.gradientUrl=`url(#${this.gradientId})`,this.gradientStops=this.getGradientStops(),this.animations&&this.loadAnimation()}getGradientStops(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]}loadAnimation(){tn(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()}animateToCurrentForm(){tn(this.element).select(".cell").transition().duration(750).attr("opacity",1)}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-heat-map-cell",""]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{gradient:"gradient",animations:"animations",fill:"fill",x:"x",y:"y",width:"width",height:"height",data:"data",label:"label"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:P4,decls:3,vars:5,consts:[[1,"cell"],[4,"ngIf"],["rx","3",1,"cell",2,"cursor","pointer",3,"click"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(A(),x(0,"g",0),S(1,N4,2,2,"defs",1),x(2,"rect",2),E("click",function(){return i.onClick()}),T()()),2&e&&(M("transform",i.transform),_(1),p("ngIf",i.gradient),_(1),M("fill",i.gradient?i.gradientUrl:i.fill)("width",i.width)("height",i.height))},directives:[De,vr],encapsulation:2,changeDetection:0}),t})(),m8=(()=>{class t{constructor(){this.tooltipDisabled=!1,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L}ngOnInit(){this.tooltipText||(this.tooltipText=this.getTooltipText)}ngOnChanges(e){this.update()}update(){this.cells=this.getCells()}getCells(){const e=[];return this.data.map(i=>{i.series.map(s=>{const r=s.value;s.series=i.name,e.push({row:i,cell:s,x:this.xScale(i.name),y:this.yScale(s.name),width:this.xScale.bandwidth(),height:this.yScale.bandwidth(),fill:this.colors.getColor(r),data:r,label:hn(s.name),series:i.name})})}),e}getTooltipText({label:e,data:i,series:s}){return`\n <span class="tooltip-label">${Wt(s)} \u2022 ${Wt(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}trackBy(e,i){return i.tooltipText}onClick(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-heat-map-cell-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",data:"data",colors:"colors",xScale:"xScale",yScale:"yScale",gradient:"gradient",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:O4,decls:1,vars:2,consts:[["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&S(0,B4,1,18,"g",0),2&e&&p("ngForOf",i.cells)("ngForTrackBy",i.trackBy)},directives:[Re,g8,Vi],encapsulation:2,changeDetection:0}),t})(),p8=(()=>{class t extends xt{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.innerPadding=8,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.tooltipDisabled=!1,this.activeEntries=[],this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.scaleType="linear"}update(){if(super.update(),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=Bs(this.valueDomain,!1),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.scaleType,legendPosition:this.legendPosition}),"linear"===this.scaleType){let e=this.min,i=this.max;this.min||(e=Math.min(0,...this.valueDomain)),this.max||(i=Math.max(...this.valueDomain)),this.valueDomain=[e,i]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.rects=this.getRects()}getXDomain(){const e=[];for(const i of this.results)e.includes(i.name)||e.push(i.name);return e}getYDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.name)||e.push(s.name);return e}getValueDomain(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.value)||e.push(s.value);return e}getDimension(e,i=0,s,r){return"string"==typeof e&&(e=e.replace("[","").replace("]","").replace("px","").replace("'","")).includes(",")&&(e=e.split(",")),Array.isArray(e)&&"number"==typeof i?this.getDimension(e[i],null,s,r):"string"==typeof e&&e.includes("%")?+e.replace("%","")/100:s/(r/+e+1)}getXScale(){const e=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return un().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(e)}getYScale(){const e=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return un().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(e)}getRects(){const e=[];return this.xDomain.map(i=>{this.yDomain.map(s=>{e.push({x:this.xScale(i),y:this.yScale(s),rx:3,width:this.xScale.bandwidth(),height:this.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),e}onClick(e){this.select.emit(e)}setColors(){this.colors=new kt(this.scheme,this.scaleType,this.valueDomain)}getLegendOptions(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:"ordinal"===this.scaleType?this.colors:this.colors.scale,title:"ordinal"===this.scaleType?this.legendTitle:void 0,position:this.legendPosition}}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name);const o=this.results.map(a=>a.series).flat().filter(a=>s?a.label===r.name:a.name===r.name&&a.series===r.series);this.activeEntries=[...o],this.activate.emit({value:r,entries:this.activeEntries})}onDeactivate(e,i,s=!1){const r=Object.assign({},e);i&&(r.series=i.name),this.activeEntries=this.activeEntries.filter(o=>s?o.label!==r.name:!(o.name===r.name&&o.series===r.series)),this.deactivate.emit({value:r,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-heat-map"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",innerPadding:"innerPadding",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",tooltipDisabled:"tooltipDisabled",activeEntries:"activeEntries",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",tooltipText:"tooltipText",min:"min",max:"max"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:6,vars:20,consts:[[3,"view","showLegend","animations","legendOptions","legendLabelClick"],[1,"heat-map","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf"],["ngx-charts-heat-map-cell-series","",3,"xScale","yScale","colors","data","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","select","activate","deactivate"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1),S(2,H4,1,9,"g",2),S(3,V4,1,8,"g",3),S(4,$4,1,6,"rect",4),x(5,"g",5),E("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r,void 0)})("deactivate",function(r){return i.onDeactivate(r,void 0)}),T()()()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("animations",i.animations)("legendOptions",i.legendOptions),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngForOf",i.rects),_(1),p("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",i.results)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:[yt,De,Vn,Mn,Re,m8],styles:[It],encapsulation:2,changeDetection:0}),t})(),_8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),Rw=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new L,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=tn(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[xe],attrs:z4,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(A(),z(0,"path",0)),2&e&&(p("@animationState","active"),M("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[vn("animationState",[cn(":enter",[Ie({strokeDasharray:2e3,strokeDashoffset:2e3}),ln(1e3,Ie({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),v8=(()=>{class t extends xt{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=mr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Fn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const o of this.results)for(const a of o.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr().range([0,i]).domain(e):"linear"===this.scaleType?(s=et().range([0,i]).domain(e),this.roundDomains&&(s=s.nice())):"ordinal"===this.scaleType&&(s=gr().range([0,i]).padding(.1).domain(e)),s}getYScale(e,i){const s=et().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,s){if(1&e&&(lt(s,Vt,5),lt(s,hu,5)),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first),Me(r=Fe())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"defs")(2,"clipPath"),z(3,"rect"),T()(),x(4,"g",1),S(5,j4,1,10,"g",2),S(6,Y4,1,12,"g",3),x(7,"g"),S(8,G4,2,11,"g",4),S(9,W4,3,9,"g",5),T()(),S(10,q4,2,13,"g",6),T()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),M("id",i.clipPathId),_(1),M("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),M("transform",i.transform),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),M("clip-path",i.clipPath),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),p("ngIf",!i.tooltipDisabled),_(1),p("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[yt,De,Vn,Mn,Re,y8,ja,za,Ya]},styles:[It],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1}),ln(500,Ie({opacity:0}))])])]},changeDetection:0}),t})(),y8=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const s=this.getAreaGenerator();if(this.areaPath=s(e)||"",this.hasRange){const r=this.getRangeGenerator();this.outerPath=r(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const r=this.data.series.map(l=>l.value),o=Math.max(...r);o===Math.min(...r)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return ou().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return xo().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return xo().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?om(e,"name"):"time"===this.scaleType?lm(e,"name"):am(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Fn().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(r=>r.value),i=Math.max(...e),s=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,s),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[xe],attrs:Q4,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(A(),x(0,"g")(1,"defs"),S(2,Z4,1,2,"g",0),T(),z(3,"g",1)(4,"g",2),S(5,K4,1,9,"g",3),T()),2&e&&(_(2),p("ngIf",i.hasGradient),_(1),en("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),_(1),en("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),p("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),_(1),p("ngIf",i.hasRange))},directives:[De,vr,im,Rw],encapsulation:2,changeDetection:0}),t})(),Bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})();const Hw=2*Math.PI;let b8=(()=>{class t extends xt{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=N$,this.activeEntries=[],this.rangeFillOpacity=.15,this.trimYAxisTicks=!0,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showSeriesOnHover=!0,this.gradient=!1,this.yAxisMinScale=0,this.labelTrim=!0,this.labelTrimSize=10,this.activate=new L,this.deactivate=new L,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0}update(){super.update(),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()}setDims(){this.dims=Et({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition});const e=Math.floor(this.dims.width/2),i=Math.floor(this.dims.height/2),s=this.outerRadius=Math.min(i/1.5,e/1.5),r=Math.max(0,i-s);this.yAxisDims=Object.assign(Object.assign({},this.dims),{width:e}),this.transform=`translate(${this.dims.xOffset}, ${this.margin[0]})`,this.transformYAxis=`translate(0, ${r})`,this.labelOffset=this.dims.height+40,this.transformPlot=`translate(${e}, ${i})`}setScales(){const e=this.getXValues();this.scaleType=Bs(e),this.xDomain=this.filteredDomain||this.getXDomain(e),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,Hw),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)}setTicks(){let e;e=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):o=>function x8(t){return"[object Date]"===toString.call(t)}(o)?o.toLocaleDateString():o.toLocaleString();const i=this.outerRadius;this.thetaTicks=this.xDomain.map(o=>{const a=this.xScale(o),l=1.1*i*(a>Math.PI?-1:1),c=e(o),u=[i*Math.sin(a),-i*Math.cos(a)];return{innerRadius:0,outerRadius:i,startAngle:a,endAngle:a,value:i,label:c,startPos:u,pos:[l,1.1*u[1]]}});for(let o=0;o<this.thetaTicks.length-1;o++){const a=this.thetaTicks[o];for(let l=o+1;l<this.thetaTicks.length;l++){const c=this.thetaTicks[l];if(c.pos[0]*a.pos[0]>0){const u=10-Math.abs(c.pos[1]-a.pos[1]);u>0&&(c.pos[1]+=Math.sign(c.pos[0])*u)}}}this.radiusTicks=this.yAxisScale.ticks(Math.floor(this.dims.height/50)).map(o=>this.yScale(o))}getXValues(){const e=[];for(const i of this.results)for(const s of i.series)e.includes(s.name)||e.push(s.name);return e}getXDomain(e=this.getXValues()){return"time"===this.scaleType?[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(r=>Number(r)),[Math.min(...e),Math.max(...e)]):e}getYValues(){const e=[];for(const i of this.results)for(const s of i.series)e.indexOf(s.value)<0&&e.push(s.value),void 0!==s.min&&e.indexOf(s.min)<0&&e.push(s.min),void 0!==s.max&&e.indexOf(s.max)<0&&e.push(s.max);return e}getYDomain(e=this.getYValues()){let i=Math.min(...e);const s=Math.max(this.yAxisMinScale,...e);return i=Math.max(0,i),this.autoScale||(i=Math.min(0,i)),[i,s]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){switch(this.scaleType){case"time":return fr().range([0,i]).domain(e);case"linear":const s=et().range([0,i]).domain(e);return this.roundDomains?s.nice():s;default:return gr().range([0,i-Hw/e.length]).padding(0).domain(e)}}getYScale(e,i){const s=et().range([0,i]).domain(e);return this.roundDomains?s.nice():s}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}setColors(){const e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain.reverse();this.colors=new kt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){return"ordinal"===this.schemeType?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle,position:this.legendPosition}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0,position:this.legendPosition}}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=this.showSeriesOnHover?[e,...this.activeEntries]:this.activeEntries,this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}trackBy(e,i){return i.name}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-polar-chart"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",trimYAxisTicks:"trimYAxisTicks",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showSeriesOnHover:"showSeriesOnHover",gradient:"gradient",yAxisMinScale:"yAxisMinScale",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:10,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"polar-chart","chart"],["cx","0","cy","0",1,"polar-chart-background"],[4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","gridline-path radial-gridline-path","cx","0","cy","0",4,"ngFor","ngForOf"],["cx","0","cy","0",1,"gridline-path","radial-gridline-path"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize",4,"ngFor","ngForOf"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"],["ngx-charts-polar-series","",3,"gradient","xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","animations","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"g",1)(2,"g"),z(3,"circle",2),S(4,ej,2,1,"g",3),S(5,nj,2,1,"g",3),T(),S(6,ij,1,9,"g",4),S(7,sj,1,5,"g",5),x(8,"g"),S(9,rj,2,13,"g",6),T()()()),2&e&&(p("view",Je(15,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),M("transform",i.transformPlot),_(1),M("r",i.outerRadius),_(1),p("ngIf",i.showGridLines),_(1),p("ngIf",i.xAxis),_(1),p("ngIf",i.yAxis),_(1),p("ngIf",i.xAxis&&i.showXAxisLabel),_(1),M("transform",i.transformPlot),_(1),p("ngForOf",i.results)("ngForTrackBy",i.trackBy))},directives:function(){return[yt,De,Re,Vw,Mn,em,T8]},styles:[It,hw,".polar-chart .polar-chart-background{fill:none}.polar-chart .radial-gridline-path{fill:none;stroke-dasharray:10 10}.polar-chart .pie-label-line{stroke:#2f3646}.polar-charts-series .polar-series-area,.polar-series-path{pointer-events:none}"],encapsulation:2,data:{animation:[vn("animationState",[cn(":leave",[Ie({opacity:1}),ln(500,Ie({opacity:0}))])])]},changeDetection:0}),t})(),T8=(()=>{class t{constructor(){this.tooltipDisabled=!1,this.gradient=!1,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.circleRadius=3}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.getLineGenerator(),i=this.sortData(this.data.series),s=this.data.name,r="linear"===this.colors.scaleType,o=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(r?o:s),this.path=e(i)||"",this.circles=i.map(a=>{const l=this.getAngle(a),c=this.getRadius(a),u=a.value,h=this.colors.getColor(r?Math.abs(u):s);return{data:Object.assign({},a,{series:s,value:u,name:a.name}),cx:c*Math.sin(l),cy:-c*Math.cos(l),value:u,color:h,label:a.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||(a=>this.defaultTooltipText(a))}getAngle(e){const i=e.name;return this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i)}getRadius(e){return this.yScale(e.value)}getLineGenerator(){return function B$(){return function R$(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(e){return arguments.length?n(tw(e)):n()._curve},t}(ou().curve(O$))}().angle(e=>this.getAngle(e)).radius(e=>this.getRadius(e)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?om(e,"name"):"time"===this.scaleType?lm(e,"name"):am(e,"name","asc",this.xScale.domain())}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}defaultTooltipText({label:e,value:i}){return`\n <span class="tooltip-label">${Wt(this.data.name)} \u2022 ${Wt(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}updateGradients(){if(this.hasGradient=this.gradient||"linear"===this.colors.scaleType,this.hasGradient)if(this.gradientId="grad"+Fn().toString(),this.gradientUrl=`url(#${this.gradientId})`,"linear"===this.colors.scaleType){const e=this.data.series.map(r=>r.value),i=Math.max(...e),s=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,s)}else this.gradientStops=void 0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-polar-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",gradient:"gradient",animations:"animations",tooltipText:"tooltipText",name:"name",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:oj,decls:5,vars:11,consts:[[1,"polar-charts-series"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity","endOpacity","stops",4,"ngIf"],["ngx-charts-line","",1,"polar-series-path",3,"path","stroke","fill","animations"],["ngx-charts-circle","","class","circle","ngx-tooltip","","tooltipType","tooltip",3,"cx","cy","r","fill","opacity","tooltipDisabled","tooltipPlacement","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity","endOpacity","stops"],["ngx-charts-circle","","ngx-tooltip","","tooltipType","tooltip",1,"circle",3,"cx","cy","r","fill","tooltipDisabled","tooltipPlacement","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&(A(),x(0,"g",0)(1,"defs"),S(2,aj,1,5,"g",1),T(),z(3,"g",2),S(4,lj,1,11,"g",3),T()),2&e&&(_(2),p("ngIf",i.hasGradient),_(1),en("active",i.active)("inactive",i.inactive),p("path",i.path)("stroke",i.hasGradient?i.gradientUrl:i.seriesColor)("fill",i.hasGradient?i.gradientUrl:i.seriesColor)("animations",i.animations),M("fill-opacity",i.rangeFillOpacity),_(1),p("ngForOf",i.circles))},directives:[De,nm,Rw,Re,mu,Vi],encapsulation:2,changeDetection:0}),t})(),C8=(()=>{class t extends xt{constructor(){super(...arguments),this.activeEntries=[],this.tooltipDisabled=!1,this.label="Total",this.activate=new L,this.deactivate=new L,this.margin=[20,20,20,20]}update(){super.update(),this.dims=Et({width:4*this.width/12,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors();const e=this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform=`translate(${e} , ${i})`}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new kt(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-advanced-pie-chart"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",label:"label",gradient:"gradient",tooltipText:"tooltipText",valueFormatting:"valueFormatting",nameFormatting:"nameFormatting",percentageFormatting:"percentageFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:7,vars:37,consts:[[1,"advanced-pie","chart"],[3,"view","showLegend","animations"],[1,"pie","chart"],["ngx-charts-pie-series","",3,"colors","series","innerRadius","activeEntries","outerRadius","gradient","tooltipDisabled","tooltipTemplate","tooltipText","animations","select","activate","deactivate"],[1,"advanced-pie-legend-wrapper"],[3,"data","colors","width","label","animations","valueFormatting","labelFormatting","percentageFormatting","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"div")(1,"div",0)(2,"ngx-charts-chart",1),A(),x(3,"g",2)(4,"g",3),E("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),T()()()(),Gs(),x(5,"div",4)(6,"ngx-charts-advanced-legend",5),E("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r,!0)})("deactivate",function(r){return i.onDeactivate(r,!0)}),T()()()),2&e&&(Le("width",i.width,"px")("height",i.height,"px"),_(1),Le("width",i.dims.width,"px")("height",i.dims.height,"px"),_(1),p("view",Je(34,rt,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("colors",i.colors)("series",i.results)("innerRadius",i.innerRadius)("activeEntries",i.activeEntries)("outerRadius",i.outerRadius)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText)("animations",i.animations),_(1),Le("width",i.width-i.dims.width,"px")("height",i.height,"px"),_(1),p("data",i.results)("colors",i.colors)("width",i.width-i.dims.width-i.margin[1])("label",i.label)("animations",i.animations)("valueFormatting",i.valueFormatting)("labelFormatting",i.nameFormatting)("percentageFormatting",i.percentageFormatting))},directives:function(){return[yt,jw,Mw]},styles:[It,".advanced-pie{float:left}.advanced-pie,.advanced-pie-legend-wrapper{display:inline-block}"],encapsulation:2,changeDetection:0}),t})(),Vw=(()=>{class t{constructor(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=Os}ngOnChanges(e){this.update()}update(){let e=this.radius;this.explodeSlices&&(e=this.radius*this.value/this.max);const s=Jg().innerRadius(e).outerRadius(e).centroid(this.data);let r=this.data.pos[1]/s[1];(0===this.data.pos[1]||0===s[1])&&(r=1),this.line=`M${s}L${[r*s[0],r*s[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}get styleTransform(){return this.isIE?null:`translate3d(${this.textX}px,${this.textY}px, 0)`}get attrTransform(){return this.isIE?`translate(${this.textX},${this.textY})`:null}get textTransition(){return this.isIE||!this.animations?null:"transform 0.75s"}textAnchor(){return this.midAngle(this.data)<Math.PI?"start":"end"}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[xe],attrs:cj,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(e,i){1&e&&(x(0,"title"),Ve(1),T(),A(),x(2,"g")(3,"text",0),Ve(4),T()(),z(5,"path",1)),2&e&&(_(1),ni(i.label),_(1),Le("transform",i.styleTransform)("transition",i.textTransition),M("transform",i.attrTransform),_(1),Le("text-anchor",i.textAnchor())("shape-rendering","crispEdges"),en("animation",i.animations),_(1),pt(" ",i.labelTrim?i.trimLabel(i.label,i.labelTrimSize):i.label," "),_(1),en("animation",i.animations),M("d",i.line)("stroke",i.color))},encapsulation:2,changeDetection:0}),t})(),hm=(()=>{class t{constructor(e){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new L,this.activate=new L,this.deactivate=new L,this.dblclick=new L,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Fn().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),Jg().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=tn(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().attrTween("d",function(s){this._current=this._current||s;const r=Object.assign({},s);r.endAngle=r.startAngle;const o=or(r,r);return this._current=o(0),function(a){return i(o(a))}}).transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}updateAnimation(){const e=tn(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[xe],attrs:uj,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(e,i){1&e&&(A(),x(0,"g",0),S(1,hj,2,3,"defs",1),x(2,"path",2),E("click",function(){return i.onClick()})("dblclick",function(r){return i.onDblClick(r)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),T()()),2&e&&(_(1),p("ngIf",i.gradient),_(1),Le("pointer-events",i.getPointerEvents()),en("active",i.isActive),M("d",i.path)("fill",i.getGradient()))},directives:[De,nm],encapsulation:2,changeDetection:0}),t})(),w8=(()=>{class t extends xt{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new L,this.select=new L,this.activate=new L,this.deactivate=new L}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=Et({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((s,r)=>this.domain.indexOf(s.name)-this.domain.indexOf(r.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new kt(this.scheme,"ordinal",this.domain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[ht],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)})("legendLabelClick",function(r){return i.onClick(r)}),A(),x(1,"g",1)(2,"g",2),E("dblclick",function(r){return i.dblclick.emit(r)})("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),T()()()),2&e&&(p("view",Je(21,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.translation),_(1),p("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:function(){return[yt,jw]},styles:[It,hw],encapsulation:2,changeDetection:0}),t})();function $w(t,n,e){let i=1,s=n;const r=t.width;if(r>e)for(;r/s<e;)i+=1,s=Math.ceil(n/i);return[s,i]}function zw(t,n,e,i){const s=un(),r=un(),o=t.width,a=t.height,[l,c]=$w(t,n.length,e),u=[],h=[];for(let v=0;v<c;v++)h.push(v);for(let v=0;v<l;v++)u.push(v);s.domain(u),r.domain(h),s.rangeRound([0,o],.1),r.rangeRound([0,a],.1);const d=[],f=i||function D8(t){return t.map(n=>n?n.value:0).reduce((n,e)=>n+e,0)}(n),g=s.bandwidth(),y=r.bandwidth();for(let v=0;v<n.length;v++)d[v]={},d[v].data={name:n[v]?n[v].name:"",value:n[v]?n[v].value:void 0,extra:n[v]?n[v].extra:void 0,label:n[v]?n[v].label:""},d[v].x=s(v%l),d[v].y=r(Math.floor(v/l)),d[v].width=g,d[v].height=y,d[v].data.percent=f>0?d[v].data.value/f:0,d[v].data.total=f;return d}let A8=(()=>{class t extends xt{constructor(){super(...arguments),this.tooltipDisabled=!1,this.label="Total",this.minWidth=150,this.activeEntries=[],this.activate=new L,this.deactivate=new L,this.margin=[20,20,20,20]}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.data=zw(this.dims,this.results,this.minWidth,this.designatedTotal),this.transform=`translate(${this.margin[3]} , ${this.margin[0]})`,this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText}defaultTooltipText({data:e}){return`\n <span class="tooltip-label">${Os(hn(e.name))}</span>\n <span class="tooltip-val">${e.value.toLocaleString()}</span>\n `}getDomain(){return this.results.map(e=>e.label)}getSeries(){const e=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(i=>{const o=i.data.name,a=hn(o),l=i.data.value,c=function Q$(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e>i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e>s||void 0===e&&s>=s)&&(e=s)}return e}([i.width-10,i.height-20])/2-5;let h=0;return{transform:`translate(${i.x+(i.width-10)/2}, ${i.y+(i.height-20)/2})`,colors:()=>(h+=1,1===h?"rgba(100,100,100,0.3)":this.colorScale.getColor(a)),innerRadius:.9*c,outerRadius:c,name:o,label:Os(a),total:l,value:l,percent:Gg(".1%")(i.data.percent),data:[i,{data:{other:!0,value:e-l,name:i.data.name}}]}})}getTotal(){return this.results.map(e=>e.value).reduce((e,i)=>e+i,0)}onClick(e){this.select.emit(e)}setColors(){this.colorScale=new kt(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-pie-grid"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{tooltipDisabled:"tooltipDisabled",label:"label",minWidth:"minWidth",activeEntries:"activeEntries",tooltipText:"tooltipText",designatedTotal:"designatedTotal"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:3,vars:8,consts:[[3,"view","showLegend","animations"],[1,"pie-grid","chart"],["class","pie-grid-item",4,"ngFor","ngForOf"],[1,"pie-grid-item"],["ngx-charts-pie-grid-series","","ngx-tooltip","",3,"colors","data","innerRadius","outerRadius","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],["class","label percent-label","dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",3,"countTo","countSuffix",4,"ngIf"],["class","label percent-label","dy","-0.5em","x","0","y","5","text-anchor","middle",4,"ngIf"],["dy","0.5em","x","0","y","5","text-anchor","middle",1,"label"],["class","label","dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",3,"countTo","countPrefix",4,"ngIf"],["class","label","dy","1.23em","x","0","text-anchor","middle",4,"ngIf"],["dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",1,"label","percent-label",3,"countTo","countSuffix"],["dy","-0.5em","x","0","y","5","text-anchor","middle",1,"label","percent-label"],["dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",1,"label",3,"countTo","countPrefix"],["dy","1.23em","x","0","text-anchor","middle",1,"label"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),A(),x(1,"g",1),S(2,_j,8,19,"g",2),T()()),2&e&&(p("view",Je(5,rt,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngForOf",i.series))},directives:function(){return[yt,Re,S8,Vi,De,pu]},styles:[It,".pie-grid .arc1{opacity:.4}.pie-grid .percent-label{font-size:16px;font-weight:400}"],encapsulation:2,changeDetection:0}),t})(),S8=(()=>{class t{constructor(e){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){this.layout=sw().value(e=>e.data.value).sort(null),this.arcs=this.getArcs()}getArcs(){return this.layout(this.data).map((e,i)=>{const s=e.data.data.name,r=e.data.data.other;0===i&&(e.startAngle=0);const o=this.colors(s);return{data:e.data.data,class:"arc arc"+i,fill:o,startAngle:r?0:e.startAngle,endAngle:e.endAngle,animate:this.animations&&!r,pointerEvents:!r}})}onClick(e){this.select.emit(this.data[0].data)}trackBy(e,i){return i.data.name}label(e){return e.data.name}color(e){return this.colors(this.label(e))}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-pie-grid-series",""]],inputs:{innerRadius:"innerRadius",outerRadius:"outerRadius",animations:"animations",colors:"colors",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[xe],attrs:vj,decls:2,vars:2,consts:[[1,"pie-grid-arcs"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate"]],template:function(e,i){1&e&&(A(),x(0,"g",0),S(1,yj,1,11,"g",1),T()),2&e&&(_(1),p("ngForOf",i.arcs)("ngForTrackBy",i.trackBy))},directives:[Re,hm],encapsulation:2,changeDetection:0}),t})(),jw=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L,this.dblclick=new L}ngOnChanges(e){this.update()}update(){const i=sw().value(s=>s.value).sort(null)(this.series);this.max=function Z$(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e<i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e<s||void 0===e&&s>=s)&&(e=s)}return e}(i,s=>s.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}outerArc(){return Jg().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(e){const r=e;r.forEach(o=>{o.pos=this.outerArc().centroid(o),o.pos[0]=1.5*this.outerRadius*(this.midAngle(o)<Math.PI?1:-1)});for(let o=0;o<r.length-1;o++){const a=r[o];if(this.labelVisible(a))for(let l=o+1;l<r.length;l++){const c=r[l];if(this.labelVisible(c)&&c.pos[0]*a.pos[0]>0){const u=10-Math.abs(c.pos[1]-a.pos[1]);u>0&&(c.pos[1]+=Math.sign(c.pos[0])*u)}}}return r}labelVisible(e){return this.showLabels&&e.endAngle-e.startAngle>Math.PI/30}getTooltipTitle(e){return this.tooltipTemplate?void 0:this.tooltipText(e)}labelText(e){return this.labelFormatting?this.labelFormatting(e.data.name):this.label(e)}label(e){return hn(e.data.name)}defaultTooltipText(e){const i=this.label(e),s=hn(e.data.value);return`\n <span class="tooltip-label">${Wt(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}color(e){return this.colors.getColor(this.label(e))}trackBy(e,i){return i.data.name}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[xe],attrs:xj,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(e,i){1&e&&S(0,Tj,3,19,"g",0),2&e&&p("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[Re,De,Vw,hm,Vi],encapsulation:2,changeDetection:0}),t})(),dm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),E8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i,dm,Bw]]}),t})(),k8=(()=>{class t{constructor(e,i,s){this.cd=i,this.zone=s,this.animations=!0,this.select=new L,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=e.nativeElement}ngOnChanges(e){this.update()}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}update(){this.zone.run(()=>{const e=this.data&&void 0!==this.data.value,i=this.valueFormatting||(a=>a.value.toLocaleString()),s=this.labelFormatting||(a=>Wt(Os(a.label,55)));this.transform=`translate(${this.x} , ${this.y})`,this.textWidth=Math.max(0,this.width)-this.textPadding[1]-this.textPadding[3],this.cardWidth=Math.max(0,this.width),this.cardHeight=Math.max(0,this.height),this.label=this.label?this.label:this.data.name;const r={label:this.label,data:this.data,value:this.data.value};this.formattedLabel=s(r),this.transformBand=`translate(0 , ${this.cardHeight-this.bandHeight})`;const o=e?i(r):"";this.value=this.paddedValue(o),this.setPadding(),this.bandPath=xs(0,0,this.cardWidth,this.bandHeight,3,[!1,!1,!0,!0]),setTimeout(()=>{this.scaleText(),this.value=o,e&&!this.initialized&&setTimeout(()=>this.startCount(),20)},8)})}paddedValue(e){return this.medianSize&&this.medianSize>e.length&&(e+="\u2007".repeat(this.medianSize-e.length)),e}startCount(){if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);const e=this.data.value,i=Aw(e),s=this.valueFormatting||(o=>o.value.toLocaleString());this.animationReq=Dw(0,e,i,1,({value:o,finished:a})=>{this.zone.run(()=>{this.value=s({label:this.label,data:this.data,value:o=a?e:o}),a||(this.value=this.paddedValue(this.value)),this.cd.markForCheck()})}),this.initialized=!0}}scaleText(){this.zone.run(()=>{const{width:e,height:i}=this.textEl.nativeElement.getBoundingClientRect();if(0===e||0===i)return;const s=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,a=Math.min((this.cardWidth-2*s)/e,this.cardHeight/3/i);this.textFontSize=Math.floor(this.textFontSize*a),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding(),this.cd.markForCheck()})}setPadding(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;const e=this.cardHeight/2;this.textPadding[0]=e-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=e-this.labelFontSize}onClick(){this.select.emit(this.data)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t),Z(Js),Z(Rt))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-card",""]],viewQuery:function(e,i){if(1&e&&_i(dw,5),2&e){let s;Me(s=Fe())&&(i.textEl=s.first)}},inputs:{animations:"animations",label:"label",color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[xe],attrs:Cj,decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(e,i){1&e&&(A(),x(0,"g",0),E("click",function(){return i.onClick()}),z(1,"rect",1),S(2,wj,1,3,"path",2),x(3,"title"),Ve(4),T(),x(5,"foreignObject",3),Gs(),z(6,"p",4),T(),A(),x(7,"text",5,6),Ve(9),T()()),2&e&&(M("transform",i.transform),_(1),Le("fill",i.color),M("width",i.cardWidth)("height",i.cardHeight),_(1),p("ngIf",i.bandColor&&i.bandColor!==i.color),_(2),ni(i.label),_(1),M("x",i.textPadding[3])("y",i.cardHeight-i.textPadding[2])("width",i.textWidth)("height",i.labelFontSize+i.textPadding[2]),_(1),Le("color",i.textColor)("font-size",i.labelFontSize,"px")("line-height",i.labelFontSize,"px"),p("innerHTML",i.formattedLabel,wl),_(1),Le("fill",i.textColor)("font-size",i.textFontSize,"pt"),M("x",i.textPadding[3])("y",i.textPadding[0]),_(2),pt(" ",i.value," "))},directives:[De],encapsulation:2,changeDetection:0}),t})();function Yw(t){const n=wa(t),{r:e,g:i,b:s,opacity:r}=n;return 0===r?n.toString():function L8({r:t,g:n,b:e},i){const s=i<0?0:255,r=i<0?-1*i:i;return`rgb(${t=Math.round((s-t)*r)+t}, ${n=Math.round((s-n)*r)+n}, ${e=Math.round((s-e)*r)+e})`}(n,(299*e+587*i+114*s)/1e3>=128?-.8:.8)}let M8=(()=>{class t{constructor(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new L}ngOnChanges(e){this.update()}update(){if(this.data.length>2){const i=this.valueFormatting||(o=>o.value.toLocaleString()),s=this.data.map(o=>o&&o.data&&null!=o.data.value?i({data:o.data,label:o?o.data.name:"",value:o&&o.data?o.data.value:""}).length:0).sort((o,a)=>a-o),r=Math.ceil(this.data.length/2);this.medianSize=s[r]}const e=this.getCards();this.cards=e.filter(i=>null!==i.data.value),this.emptySlots=e.filter(i=>null===i.data.value)}getCards(){const e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],i="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((s,r)=>{let o=s.data.name;o=o&&"Date"===o.constructor.name?o.toLocaleDateString():o&&o.toLocaleString();const a=s.data.value,l=o?this.colors.getColor(o):this.emptyColor,c=this.cardColor||l||"#000";return{x:s.x,y:s.y,width:s.width-i,height:s.height-e,color:c,bandColor:this.bandColor||l,textColor:this.textColor||Yw(c),label:o,data:s.data,tooltipText:`${o}: ${a}`}})}trackBy(e,i){return i.label}onClick(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-card-series",""]],inputs:{innerPadding:"innerPadding",emptyColor:"emptyColor",animations:"animations",data:"data",slots:"slots",dims:"dims",colors:"colors",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[xe],attrs:Dj,decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(S(0,Aj,1,6,"rect",0),S(1,Sj,1,13,"g",1)),2&e&&(p("ngForOf",i.emptySlots)("ngForTrackBy",i.trackBy),_(1),p("ngForOf",i.cards)("ngForTrackBy",i.trackBy))},directives:[Re,k8],encapsulation:2,changeDetection:0}),t})(),F8=(()=>{class t extends xt{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=15,this.margin=[10,10,10,10]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const e=$w(this.dims,this.results.length,150),i=e[0]*e[1],s=this.results.slice();for(;s.length<i;)s.push({value:null});this.data=zw(this.dims,s,150,this.designatedTotal)}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new kt(this.scheme,"ordinal",this.domain,this.customColors)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-number-card"]],inputs:{emptyColor:"emptyColor",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[ht],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),A(),x(1,"g",1)(2,"g",2),E("select",function(r){return i.onClick(r)}),T()()()),2&e&&(p("view",Je(17,rt,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),en("clickable",i.clickable),M("transform",i.transform),_(1),p("colors",i.colors)("cardColor",i.cardColor)("bandColor",i.bandColor)("textColor",i.textColor)("emptyColor",i.emptyColor)("data",i.data)("dims",i.dims)("innerPadding",i.innerPadding)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations))},directives:[yt,M8],styles:[It,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;line-height:1em;overflow:hidden;pointer-events:none;text-align:left}ngx-charts-number-card .cell .trimmed-label p{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;width:100%}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"],encapsulation:2,changeDetection:0}),t})(),I8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),P8=(()=>{class t{constructor(e){this.gradient=!1,this.animations=!0,this.select=new L,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(){this.update(),this.valueFormatting=this.valueFormatting||(s=>s.toLocaleString());const e=this.labelFormatting||(s=>Wt(Os(s.label,55))),i={data:this.data,label:this.label,value:this.value};this.formattedValue=this.valueFormatting(i.value),this.formattedLabel=e(i),this.gradientId="grad"+Fn().toString(),this.gradientUrl=`url(#${this.gradientId})`,this.gradientStops=this.getGradientStops()}update(){this.initialized?this.animateToCurrentForm():(this.animations&&this.loadAnimation(),this.initialized=!0)}loadAnimation(){tn(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()}getTextColor(){return Yw(this.fill)}animateToCurrentForm(){const e=tn(this.element).select(".cell");this.animations?e.transition().duration(750).attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height):e.attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)}onClick(){this.select.emit(this.data)}getGradientStops(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-tree-map-cell",""]],inputs:{gradient:"gradient",animations:"animations",valueFormatting:"valueFormatting",data:"data",fill:"fill",x:"x",y:"y",width:"width",height:"height",label:"label",value:"value",valueType:"valueType",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[xe],attrs:Ej,decls:4,vars:9,consts:[[4,"ngIf"],[1,"cell",3,"click"],["class","treemap-label",3,"pointer-events",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],[1,"treemap-label"],[1,"treemap-label",3,"innerHTML"],["class","treemap-val","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","treemap-val",4,"ngIf"],["ngx-charts-count-up","",1,"treemap-val",3,"countTo","valueFormatting"],[1,"treemap-val"]],template:function(e,i){1&e&&(A(),x(0,"g"),S(1,kj,2,2,"defs",0),x(2,"rect",1),E("click",function(){return i.onClick()}),T(),S(3,Fj,6,15,"foreignObject",2),T()),2&e&&(_(1),p("ngIf",i.gradient),_(1),Le("cursor","pointer"),M("fill",i.gradient?i.gradientUrl:i.fill)("width",i.width)("height",i.height)("x",i.x)("y",i.y),_(1),p("ngIf",i.width>=70&&i.height>=35))},directives:[De,vr,pu],encapsulation:2,changeDetection:0}),t})(),N8=(()=>{class t{constructor(){this.gradient=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new L}ngOnChanges(e){this.cells=this.getCells()}getCells(){return this.data.children.filter(e=>1===e.depth).map((e,i)=>{const s=e.id;return{data:e.data,x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,fill:this.colors.getColor(s),label:s,value:e.value,valueType:e.valueType}})}getTooltipText({label:e,value:i}){return`\n <span class="tooltip-label">${Wt(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}onClick(e){this.select.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-tree-map-cell-series",""]],inputs:{gradient:"gradient",tooltipDisabled:"tooltipDisabled",animations:"animations",data:"data",dims:"dims",colors:"colors",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select"},features:[xe],attrs:Ij,decls:1,vars:2,consts:[["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueType","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueType","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select"]],template:function(e,i){1&e&&S(0,Pj,1,19,"g",0),2&e&&p("ngForOf",i.cells)("ngForTrackBy",i.trackBy)},directives:[Re,P8,Vi],encapsulation:2,changeDetection:0}),t})(),O8=(()=>{class t extends xt{constructor(){super(...arguments),this.tooltipDisabled=!1,this.gradient=!1,this.select=new L,this.margin=[10,10,10,10]}update(){super.update(),this.dims=Et({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=function s5(){var t=i5,n=!1,e=1,i=1,s=[0],r=Ha,o=Ha,a=Ha,l=Ha,c=Ha;function u(d){return d.x0=d.y0=0,d.x1=e,d.y1=i,d.eachBefore(h),s=[0],n&&d.eachBefore(K$),d}function h(d){var f=s[d.depth],g=d.x0+f,y=d.y0+f,v=d.x1-f,C=d.y1-f;v<g&&(g=v=(g+v)/2),C<y&&(y=C=(y+C)/2),d.x0=g,d.y0=y,d.x1=v,d.y1=C,d.children&&(f=s[d.depth+1]=r(d)/2,g+=c(d)-f,y+=o(d)-f,(v-=a(d)-f)<g&&(g=v=(g+v)/2),(C-=l(d)-f)<y&&(y=C=(y+C)/2),t(d,g,y,v,C))}return u.round=function(d){return arguments.length?(n=!!d,u):n},u.size=function(d){return arguments.length?(e=+d[0],i=+d[1],u):[e,i]},u.tile=function(d){return arguments.length?(t=uu(d),u):t},u.padding=function(d){return arguments.length?u.paddingInner(d).paddingOuter(d):u.paddingInner()},u.paddingInner=function(d){return arguments.length?(r="function"==typeof d?d:Va(+d),u):r},u.paddingOuter=function(d){return arguments.length?u.paddingTop(d).paddingRight(d).paddingBottom(d).paddingLeft(d):u.paddingTop()},u.paddingTop=function(d){return arguments.length?(o="function"==typeof d?d:Va(+d),u):o},u.paddingRight=function(d){return arguments.length?(a="function"==typeof d?d:Va(+d),u):a},u.paddingBottom=function(d){return arguments.length?(l="function"==typeof d?d:Va(+d),u):l},u.paddingLeft=function(d){return arguments.length?(c="function"==typeof d?d:Va(+d),u):c},u}().size([this.dims.width,this.dims.height]);const i=function w5(){var t=T5,n=C5;function e(i){var s,r,a,l,c,h,d,o=i.length,u=new Array(o),f={};for(r=0;r<o;++r)c=u[r]=new $a(s=i[r]),null!=(h=t(s,r,i))&&(h+="")&&(f[d="$"+(c.id=h)]=d in f?lw:c);for(r=0;r<o;++r)if(c=u[r],null!=(h=n(i[r],r,i))&&(h+="")){if(!(l=f["$"+h]))throw new Error("missing: "+h);if(l===lw)throw new Error("ambiguous: "+h);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(a.parent=b5,a.eachBefore(function(g){g.depth=g.parent.depth+1,--o}).eachBefore(ow),a.parent=null,o>0)throw new Error("cycle");return a}return e.id=function(i){return arguments.length?(t=uu(i),e):t},e.parentId=function(i){return arguments.length?(n=uu(i),e):n},e}().id(s=>{let r=s.name;return r="Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString(),r}).parentId(s=>s.isRoot?null:"root")([{name:"root",value:0,isRoot:!0},...this.results]).sum(s=>s.value);this.data=this.treemap(i),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getDomain(){return this.results.map(e=>e.name)}onClick(e){this.select.emit(e)}setColors(){this.colors=new kt(this.scheme,"ordinal",this.domain,this.customColors)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-tree-map"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},inputs:{tooltipDisabled:"tooltipDisabled",gradient:"gradient",results:"results",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[ht],decls:3,vars:16,consts:[[3,"view","showLegend","animations"],[1,"tree-map","chart"],["ngx-charts-tree-map-cell-series","",3,"colors","data","dims","tooltipDisabled","tooltipTemplate","valueFormatting","labelFormatting","gradient","animations","select"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),A(),x(1,"g",1)(2,"g",2),E("select",function(r){return i.onClick(r)}),T()()()),2&e&&(p("view",Je(13,rt,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("colors",i.colors)("data",i.data)("dims",i.dims)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("gradient",i.gradient)("animations",i.animations))},directives:[yt,N8],styles:[".tree-map .treemap-val{display:inline-block;font-size:1.3em;padding-top:5px}.tree-map .treemap-label p{display:table-cell;line-height:1.2em;text-align:center;vertical-align:middle}"],encapsulation:2,changeDetection:0}),t})(),R8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i]]}),t})(),B8=(()=>{class t extends xt{constructor(){super(...arguments),this.min=0,this.max=100,this.value=0,this.margin=[10,20,10,20],this.valueResizeScale=1,this.unitsResizeScale=1,this.valueTextTransform="",this.valueTranslate="",this.unitsTextTransform="",this.unitsTranslate=""}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>{this.scaleText("value"),this.scaleText("units")})}update(){super.update(),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=Et({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();const i=this.margin[0]+this.dims.height/2;this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${i})`,this.transformLine=`translate(${this.margin[3]+this.valueScale(this.previousValue)}, ${i})`,this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",setTimeout(()=>this.scaleText("value"),50),setTimeout(()=>this.scaleText("units"),50)}getValueDomain(){return[this.min,this.max]}getValueScale(){return et().range([0,this.dims.width]).domain(this.valueDomain)}getDisplayValue(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()}scaleText(e,i=!0){let s,r;"value"===e?(s=this.valueTextEl,r=this.valueResizeScale):(s=this.unitsTextEl,r=this.unitsResizeScale);const{width:o,height:a}=s.nativeElement.getBoundingClientRect();if(0===o||0===a)return;const l=r,c=this.dims.width,u=Math.max(this.dims.height/2-15,0),h=Math.floor(c/(o/r)*100)/100,d=Math.floor(u/(a/r)*100)/100;r=Math.min(d,h),r!==l&&("value"===e?(this.valueResizeScale=r,this.valueTextTransform=`scale(${r}, ${r})`):(this.unitsResizeScale=r,this.unitsTextTransform=`scale(${r}, ${r})`),this.cd.markForCheck(),i&&setTimeout(()=>{this.scaleText(e,!1)},50))}onClick(){this.select.emit({name:"Value",value:this.value})}setColors(){this.colors=new kt(this.scheme,"ordinal",[this.value],this.customColors)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-linear-gauge"]],viewQuery:function(e,i){if(1&e&&(_i(Nj,5),_i(Oj,5)),2&e){let s;Me(s=Fe())&&(i.valueTextEl=s.first),Me(s=Fe())&&(i.unitsTextEl=s.first)}},inputs:{min:"min",max:"max",value:"value",units:"units",previousValue:"previousValue",valueFormatting:"valueFormatting"},features:[ht],decls:15,vars:38,consts:[[3,"view","showLegend","animations","click"],[1,"linear-gauge","chart"],["ngx-charts-bar","",1,"background-bar",3,"width","height","x","y","data","orientation","roundEdges","animations"],["ngx-charts-bar","",3,"width","height","x","y","fill","data","orientation","roundEdges","animations"],["x1","0","y1","5","x2","0","y2","15",4,"ngIf"],["x1","0","y1","-5","x2","0","y2","-15",4,"ngIf"],["alignment-baseline","after-edge",1,"value"],["valueTextEl",""],["alignment-baseline","before-edge",1,"units"],["unitsTextEl",""],["x1","0","y1","5","x2","0","y2","15"],["x1","0","y1","-5","x2","0","y2","-15"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("click",function(){return i.onClick()}),A(),x(1,"g",1),z(2,"g",2)(3,"g",3),S(4,Rj,1,2,"line",4),S(5,Bj,1,2,"line",5),x(6,"g")(7,"g")(8,"text",6,7),Ve(10),T()(),x(11,"g")(12,"text",8,9),Ve(14),T()()()()()),2&e&&(p("view",Je(33,rt,i.width,i.height))("showLegend",!1)("animations",i.animations),_(2),p("width",i.dims.width)("height",3)("x",i.margin[3])("y",i.dims.height/2+i.margin[0]-2)("data",Ed(36,fw))("orientation","horizontal")("roundEdges",!0)("animations",i.animations),_(1),p("width",i.valueScale(i.value))("height",3)("x",i.margin[3])("y",i.dims.height/2+i.margin[0]-2)("fill",i.colors.getColor(i.units))("data",Ed(37,fw))("orientation","horizontal")("roundEdges",!0)("animations",i.animations),_(1),p("ngIf",i.hasPreviousValue),_(1),p("ngIf",i.hasPreviousValue),_(1),M("transform",i.transform),_(1),M("transform",i.valueTranslate),_(1),Le("text-anchor","middle"),M("transform",i.valueTextTransform),_(2),pt(" ",i.displayValue," "),_(1),M("transform",i.unitsTranslate),_(1),Le("text-anchor","middle"),M("transform",i.unitsTextTransform),_(2),pt(" ",i.units," "))},directives:[yt,um,De],styles:[It,".linear-gauge{cursor:pointer}.linear-gauge .background-bar path{fill:rgba(0,0,0,.05)}.linear-gauge .units{fill:#666}"],encapsulation:2,changeDetection:0}),t})(),H8=(()=>{class t extends xt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new L,this.deactivate=new L,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=Et({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const e=[],s=Math.min(.7*this.outerRadius/this.results.length,10),r=.7*s;this.textRadius=this.outerRadius-this.results.length*s,this.cornerRadius=Math.floor(r/2);let o=0;for(const a of this.results){const l=this.outerRadius-o*s,c=l-r,u={endAngle:this.angleSpan*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:this.max,name:a.name}},h={endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:a.value,name:a.name}};e.push({backgroundArc:u,valueArc:h}),o++}return e}getDomain(){return this.results.map(e=>e.name)}getValueDomain(){const e=this.results.map(r=>r.value),i=Math.min(...e),s=Math.max(...e);return this.min=void 0!==this.min?Math.min(this.min,i):i,this.max=void 0!==this.max?Math.max(this.max,s):s,[this.min,this.max]}getValueScale(){return et().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const e=this.results.map(i=>i.value).reduce((i,s)=>i+s,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(e):e.toLocaleString()}scaleText(e=!0){if(!this.showText)return;const{width:i}=this.textEl.nativeElement.getBoundingClientRect(),s=this.resizeScale;this.resizeScale=0===i?1:Math.floor(this.textRadius/(i/this.resizeScale)*100)/100,this.resizeScale!==s&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),e&&setTimeout(()=>this.scaleText(!1),50))}onClick(e){this.select.emit(e)}getLegendOptions(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new kt(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}trackBy(e,i){return i.valueArc.data.name}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275cmp=Q({type:t,selectors:[["ngx-charts-gauge"]],contentQueries:function(e,i,s){if(1&e&<(s,Vt,5),2&e){let r;Me(r=Fe())&&(i.tooltipTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&_i(dw,5),2&e){let s;Me(s=Fe())&&(i.textEl=s.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",showText:"showText",margin:"margin",textValue:"textValue",units:"units",results:"results",axisTickFormatting:"axisTickFormatting",valueFormatting:"valueFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ht],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),A(),x(1,"g",1),S(2,Hj,2,10,"g",2),S(3,Vj,1,9,"g",3),S(4,$j,6,5,"text",4),T()()),2&e&&(p("view",Je(10,rt,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),M("transform",i.transform),_(1),p("ngForOf",i.arcs)("ngForTrackBy",i.trackBy),_(1),p("ngIf",i.showAxis),_(1),p("ngIf",i.showText))},directives:function(){return[yt,Re,V8,De,$8]},styles:[It,".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{fill:#666;font-size:12px;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"],encapsulation:2,changeDetection:0}),t})(),V8=(()=>{class t{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new L,this.activate=new L,this.deactivate=new L}tooltipText(e){const i=hn(e.data.name);let s;return s=this.valueFormatting?this.valueFormatting(e.data.value):hn(e.data.value),`\n <span class="tooltip-label">${Wt(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{isActive:"isActive",tooltipDisabled:"tooltipDisabled",animations:"animations",backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:zj,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&(A(),z(0,"g",0),x(1,"g",1),E("select",function(r){return i.select.emit(r)})("activate",function(r){return i.activate.emit(r)})("deactivate",function(r){return i.deactivate.emit(r)}),T()),2&e&&(p("startAngle",0)("endAngle",i.backgroundArc.endAngle)("innerRadius",i.backgroundArc.innerRadius)("outerRadius",i.backgroundArc.outerRadius)("cornerRadius",i.cornerRadius)("data",i.backgroundArc.data)("animate",!1)("pointerEvents",!1),_(1),p("startAngle",0)("endAngle",i.valueArc.endAngle)("innerRadius",i.valueArc.innerRadius)("outerRadius",i.valueArc.outerRadius)("cornerRadius",i.cornerRadius)("fill",i.colors.getColor(i.valueArc.data.name))("data",i.valueArc.data)("animate",i.animations)("isActive",i.isActive)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(i.valueArc))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.valueArc.data))},directives:[hm,Vi],encapsulation:2,changeDetection:0}),t})(),$8=(()=>{class t{constructor(){this.rotate=""}ngOnChanges(e){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const e=this.angleSpan/this.bigSegments,i=e/this.smallSegments,r={big:[],small:[]},o=this.radius+10,a=o+20+10;for(let l=0;l<=this.bigSegments;l++){const c=l*e,u=c*Math.PI/180,h=this.getTextAnchor(c);let d=!1;if(0===l&&360===this.angleSpan&&(d=!0),!d){let f=Number.parseFloat(this.valueScale.invert(c).toString()).toLocaleString();this.tickFormatting&&(f=this.tickFormatting(f)),r.big.push({line:this.getTickPath(o,20,u),textAnchor:h,text:f,textTransform:`\n translate(${a*Math.cos(u)}, ${a*Math.sin(u)}) rotate(${-this.rotationAngle})\n `})}if(l!==this.bigSegments)for(let f=1;f<=this.smallSegments;f++){const y=(c+f*i)*Math.PI/180;r.small.push({line:this.getTickPath(o,10,y)})}}return r}getTextAnchor(e){let i="middle";return(e=(this.startAngle+e)%360)>45&&e<=135?i="start":e>225&&e<=315&&(i="end"),i}getTickPath(e,i,s){const r=e*Math.sin(s),o=(e+i)*Math.sin(s),c=[{x:e*Math.cos(s),y:r},{x:(e+i)*Math.cos(s),y:o}];return ou().x(h=>h.x).y(h=>h.y)(c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Q({type:t,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[xe],attrs:jj,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(e,i){1&e&&(A(),x(0,"g"),S(1,Yj,2,1,"g",0),S(2,Gj,3,4,"g",0),S(3,Xj,2,1,"g",1),T()),2&e&&(M("transform",i.rotate),_(1),p("ngForOf",i.ticks.big),_(1),p("ngForOf",i.ticks.big),_(1),p("ngForOf",i.ticks.small))},directives:[Re],encapsulation:2,changeDetection:0}),t})(),z8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[$i,dm,Pw]]}),t})(),Y8=(()=>{class t{constructor(){!function j8(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[$i,n8,Pw,f8,_8,Bw,E8,I8,dm,R8,z8]}),t})();var Gw=gm(289);class G8{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let X8=(()=>{class t{constructor(e){this.element=e,this.resized=new L}ngOnInit(){Gw.ResizeSensor&&(this.resizeSensor=new Gw.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new G8(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(Z(_t))},t.\u0275dir=wn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),W8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[]]}),t})();const U8=["chartContainer"];function q8(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-vertical",3),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("yScaleMax",e.chart.yScaleMax)("yScaleMin",e.chart.yScaleMin)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function Q8(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-horizontal",4),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("xScaleMax",e.chart.xScaleMax)("xScaleMin",e.chart.xScaleMin)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function Z8(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-vertical-2d",5),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("groupPadding",e.chart.groupPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("yScaleMax",e.chart.yScaleMax)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function K8(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-horizontal-2d",6),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("groupPadding",e.chart.groupPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("xScaleMax",e.chart.xScaleMax)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function J8(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-vertical-stacked",7),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("yScaleMax",e.chart.yScaleMax)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function eY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-horizontal-stacked",8),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("xScaleMax",e.chart.xScaleMax)("showDataLabel",e.chart.showDataLabel)("dataLabelFormatting",e.chart.dataLabelFormatting)("noBarWhenZero",e.chart.noBarWhenZero)}}function tY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-vertical-normalized",9),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("noBarWhenZero",e.chart.noBarWhenZero)}}function nY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bar-horizontal-normalized",9),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("noBarWhenZero",e.chart.noBarWhenZero)}}function iY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-pie-chart",10),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("dblclick",function(s){w(e);const r=m();return r.onDblClick&&r.onDblClick(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("labels",e.chart.labels)("trimLabels",e.chart.trimLabels)("maxLabelLength",e.chart.maxLabelLength)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("explodeSlices",e.chart.explodeSlices)("doughnut",e.chart.doughnut)("arcWidth",e.chart.arcWidth)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("tooltipText",e.chart.tooltipText)("labelFormatting",e.chart.labelFormatting)("schemeType",e.chart.schemeType)}}function sY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-advanced-pie-chart",11),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("tooltipText",e.chart.tooltipText)("label",e.chart.label)("valueFormatting",e.chart.valueFormatting)("nameFormatting",e.chart.nameFormatting)("percentageFormatting",e.chart.percentageFormatting)}}function rY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-pie-grid",12),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("tooltipText",e.chart.tooltipText)("label",e.chart.label)("minWidth",e.chart.minWidth)("designatedTotal",e.chart.designatedTotal)}}function oY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-number-card",13),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("cardColor",e.chart.cardColor)("bandColor",e.chart.bandColor)("emptyColor",e.chart.emptyColor)("innerPadding",e.chart.innerPadding)("textColor",e.chart.textColor)("valueFormatting",e.chart.valueFormatting)("labelFormatting",e.chart.labelFormatting)("designatedTotal",e.chart.designatedTotal)}}function aY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-gauge",14),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("units",e.chart.units)("min",e.chart.min)("max",e.chart.max)("bigSegments",e.chart.bigSegments)("smallSegments",e.chart.smallSegments)("showAxis",e.chart.showAxis)("showText",e.chart.showText)("textValue",e.chart.textValue)("margin",e.chart.margin)("startAngle",e.chart.startAngle)("angleSpan",e.chart.angleSpan)("axisTickFormatting",e.chart.axisTickFormatting)("valueFormatting",e.chart.valueFormatting)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)}}function lY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-linear-gauge",15),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("min",e.chart.min)("max",e.chart.max)("value",e.chart.value)("previousValue",e.chart.previousValue)("units",e.chart.units)("valueFormatting",e.chart.valueFormatting)}}function cY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-area-chart",16),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("autoScale",e.chart.autoScale)("baseValue",e.chart.baseValue)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function uY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-area-chart-normalized",17),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)}}function hY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-area-chart-stacked",18),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function dY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-line-chart",19),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("autoScale",e.chart.autoScale)("rangeFillOpacity",e.chart.rangeFillOpacity)("showRefLines",e.chart.showRefLines)("referenceLines",e.chart.referenceLines)("showRefLabels",e.chart.showRefLabels)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function fY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-bubble-chart",20),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("autoScale",e.chart.autoScale)("minRadius",e.chart.minRadius)("maxRadius",e.chart.maxRadius)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function gY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-heat-map",21),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("gradient",e.chart.gradient)("innerPadding",e.chart.innerPadding)("trimXAxisTicks",e.chart.trimXAxisTicks)("trimYAxisTicks",e.chart.trimYAxisTicks)("rotateXAxisTicks",e.chart.rotateXAxisTicks)("maxXAxisTickLength",e.chart.maxXAxisTickLength)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("min",e.chart.min)("max",e.chart.max)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("tooltipText",e.chart.tooltipText)}}function mY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-tree-map",22),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("gradient",e.chart.gradient)("tooltipDisabled",e.chart.tooltipDisabled)("valueFormatting",e.chart.valueFormatting)("labelFormatting",e.chart.labelFormatting)}}function pY(t,n){if(1&t){const e=R();ot(0),x(1,"ngx-charts-polar-chart",23),E("select",function(s){w(e);const r=m();return r.onSelect&&r.onSelect(s)})("activate",function(s){w(e);const r=m();return r.onActivate&&r.onActivate(s)})("deactivate",function(s){w(e);const r=m();return r.onDeactivate&&r.onDeactivate(s)}),T(),at()}if(2&t){const e=m();_(1),p("view",e.chart.view)("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("legendPosition",e.chart.legendPosition)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("rangeFillOpacity",e.chart.rangeFillOpacity)("trimYAxisTicks",e.chart.trimYAxisTicks)("maxYAxisTickLength",e.chart.maxYAxisTickLength)("xAxisTickFormatting",e.chart.xAxisTickFormatting)("yAxisTickFormatting",e.chart.yAxisTickFormatting)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("showSeriesOnHover",e.chart.showSeriesOnHover)("yAxisMinScale",e.chart.yAxisMinScale)("labelTrim",e.chart.labelTrim)("labelTrimSize",e.chart.labelTrimSize)("autoScale",e.chart.autoScale)}}let _Y=(()=>{class t{constructor(e){this.tooltipService=e}ngAfterViewInit(){this.tooltipService.injectionService.setRootViewContainer(this.chartContainer)}onResized(e){window.dispatchEvent(new Event("resize"))}ngOnChanges(){var e,i,s,r,o,a,l,c,u,h,d,f,g,y,v,C,b,D,k,N,F,X,me,ee,ie,J,H,Y,Be,Ce,P,j,$,q,re,we,tt,bt,pe,dn,$n,Ye,Tt,V,te,le,O,Pt,ke,zt,Ut;const wi="gauge"===this.type||"linearGauge"===this.type;this.chart={type:this.type,results:null!==(e=this.results)&&void 0!==e?e:[],view:this.view,legendTitle:null!==(i=this.legendTitle)&&void 0!==i?i:"Legend",scheme:null!==(s=this.scheme)&&void 0!==s?s:"cool",animations:null===(r=this.animations)||void 0===r||r,legend:null!==(o=this.legend)&&void 0!==o&&o,labels:null!==(a=this.labels)&&void 0!==a&&a,customColors:this.customColors,schemeType:null!==(l=this.schemeType)&&void 0!==l?l:"ordinal",explodeSlices:null!==(c=this.explodeSlices)&&void 0!==c&&c,doughnut:null!==(u=this.doughnut)&&void 0!==u&&u,arcWidth:null!==(h=this.arcWidth)&&void 0!==h?h:.25,gradient:null!==(d=this.gradient)&&void 0!==d&&d,activeEntries:null!==(f=this.activeEntries)&&void 0!==f?f:[],tooltipDisabled:null!==(g=this.tooltipDisabled)&&void 0!==g&&g,tooltipText:this.tooltipText,trimLabels:null===(y=this.trimLabels)||void 0===y||y,maxLabelLength:null!==(v=this.maxLabelLength)&&void 0!==v?v:10,xAxis:this.xAxis,yAxis:this.yAxis,showXAxisLabel:this.showXAxisLabel,showYAxisLabel:this.showYAxisLabel,xAxisLabel:this.xAxisLabel,yAxisLabel:this.yAxisLabel,showGridLines:null===(C=this.showGridLines)||void 0===C||C,trimXAxisTicks:null===(b=this.trimXAxisTicks)||void 0===b||b,trimYAxisTicks:null===(D=this.trimYAxisTicks)||void 0===D||D,rotateXAxisTicks:null===(k=this.rotateXAxisTicks)||void 0===k||k,maxXAxisTickLength:null!==(N=this.maxXAxisTickLength)&&void 0!==N?N:16,maxYAxisTickLength:null!==(F=this.maxYAxisTickLength)&&void 0!==F?F:16,xAxisTickFormatting:this.xAxisTickFormatting,yAxisTickFormatting:this.yAxisTickFormatting,axisTickFormatting:this.axisTickFormatting,xAxisTicks:this.xAxisTicks,yAxisTicks:this.yAxisTicks,barPadding:null!==(X=this.barPadding)&&void 0!==X?X:8,groupPadding:null!==(me=this.groupPadding)&&void 0!==me?me:16,roundDomains:null!==(ee=this.roundDomains)&&void 0!==ee&&ee,roundEdges:null===(ie=this.roundEdges)||void 0===ie||ie,noBarWhenZero:null===(J=this.noBarWhenZero)||void 0===J||J,xScaleMax:this.xScaleMax,xScaleMin:this.xScaleMin,yScaleMax:this.yScaleMax,yScaleMin:this.yScaleMin,showDataLabel:null!==(H=this.showDataLabel)&&void 0!==H&&H,dataLabelFormatting:this.dataLabelFormatting,cardColor:this.cardColor,bandColor:this.bandColor,emptyColor:null!==(Y=this.emptyColor)&&void 0!==Y?Y:"rgba(0, 0, 0, 0)",innerPadding:null!==(Be=this.innerPadding)&&void 0!==Be?Be:"heatMap"===this.type?8:15,textColor:this.textColor,legendPosition:null!==(Ce=this.legendPosition)&&void 0!==Ce?Ce:"right",min:null!==(P=this.min)&&void 0!==P?P:wi?0:void 0,max:null!==(j=this.max)&&void 0!==j?j:wi?100:void 0,units:this.units,bigSegments:null!==($=this.bigSegments)&&void 0!==$?$:10,smallSegments:null!==(q=this.smallSegments)&&void 0!==q?q:5,showAxis:null===(re=this.showAxis)||void 0===re||re,showText:null===(we=this.showText)||void 0===we||we,textValue:this.textValue,margin:this.margin,startAngle:null!==(tt=this.startAngle)&&void 0!==tt?tt:-120,angleSpan:null!==(bt=this.angleSpan)&&void 0!==bt?bt:240,timeline:this.timeline,autoScale:this.autoScale,rangeFillOpacity:null!==(pe=this.rangeFillOpacity)&&void 0!==pe?pe:.15,showRefLines:null!==(dn=this.showRefLines)&&void 0!==dn&&dn,referenceLines:this.referenceLines,showRefLabels:null===($n=this.showRefLabels)||void 0===$n||$n,baseValue:null!==(Ye=this.baseValue)&&void 0!==Ye?Ye:"auto",value:null!==(Tt=this.value)&&void 0!==Tt?Tt:0,previousValue:this.previousValue,maxRadius:null!==(V=this.maxRadius)&&void 0!==V?V:10,minRadius:null!==(te=this.minRadius)&&void 0!==te?te:3,label:null!==(le=this.label)&&void 0!==le?le:"Total",minWidth:null!==(O=this.minWidth)&&void 0!==O?O:150,designatedTotal:this.designatedTotal,valueFormatting:this.valueFormatting,nameFormatting:this.nameFormatting,percentageFormatting:this.percentageFormatting,labelFormatting:this.labelFormatting,showSeriesOnHover:null===(Pt=this.showSeriesOnHover)||void 0===Pt||Pt,yAxisMinScale:null!==(ke=this.yAxisMinScale)&&void 0!==ke?ke:0,labelTrim:null===(zt=this.labelTrim)||void 0===zt||zt,labelTrimSize:null!==(Ut=this.labelTrimSize)&&void 0!==Ut?Ut:10}}}return t.\u0275fac=function(e){return new(e||t)(Z(du))},t.\u0275cmp=Q({type:t,selectors:[["drayman-ngx-charts-internal"]],viewQuery:function(e,i){if(1&e&&_i(U8,7,pi),2&e){let s;Me(s=Fe())&&(i.chartContainer=s.first)}},inputs:{onSelect:"onSelect",onActivate:"onActivate",onDeactivate:"onDeactivate",onDblClick:"onDblClick",type:"type",results:"results",view:"view",legendTitle:"legendTitle",scheme:"scheme",animations:"animations",legend:"legend",labels:"labels",customColors:"customColors",schemeType:"schemeType",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",showGridLines:"showGridLines",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",axisTickFormatting:"axisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",groupPadding:"groupPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",noBarWhenZero:"noBarWhenZero",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",legendPosition:"legendPosition",min:"min",max:"max",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",showText:"showText",textValue:"textValue",margin:"margin",startAngle:"startAngle",angleSpan:"angleSpan",timeline:"timeline",autoScale:"autoScale",rangeFillOpacity:"rangeFillOpacity",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels",baseValue:"baseValue",value:"value",previousValue:"previousValue",maxRadius:"maxRadius",minRadius:"minRadius",label:"label",minWidth:"minWidth",designatedTotal:"designatedTotal",valueFormatting:"valueFormatting",nameFormatting:"nameFormatting",percentageFormatting:"percentageFormatting",labelFormatting:"labelFormatting",showSeriesOnHover:"showSeriesOnHover",yAxisMinScale:"yAxisMinScale",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize"},features:[xe],decls:24,vars:23,consts:[[2,"width","100%","height","100%",3,"ngSwitch","resized"],["chartContainer",""],[4,"ngSwitchCase"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","yScaleMax","yScaleMin","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","xScaleMax","xScaleMin","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","groupPadding","roundDomains","roundEdges","yScaleMax","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","groupPadding","roundDomains","roundEdges","xScaleMax","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","yScaleMax","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","xScaleMax","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","legend","legendTitle","legendPosition","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","barPadding","roundDomains","noBarWhenZero","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","labels","trimLabels","maxLabelLength","legend","legendTitle","legendPosition","explodeSlices","doughnut","arcWidth","gradient","activeEntries","tooltipDisabled","tooltipText","labelFormatting","schemeType","select","dblclick","activate","deactivate"],[3,"view","results","scheme","customColors","animations","gradient","activeEntries","tooltipDisabled","tooltipText","label","valueFormatting","nameFormatting","percentageFormatting","select","activate","deactivate"],[3,"view","results","scheme","customColors","animations","activeEntries","tooltipDisabled","tooltipText","label","minWidth","designatedTotal","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","cardColor","bandColor","emptyColor","innerPadding","textColor","valueFormatting","labelFormatting","designatedTotal","select"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","units","min","max","bigSegments","smallSegments","showAxis","showText","textValue","margin","startAngle","angleSpan","axisTickFormatting","valueFormatting","activeEntries","tooltipDisabled","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","min","max","value","previousValue","units","valueFormatting","select"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","baseValue","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","rangeFillOpacity","showRefLines","referenceLines","showRefLabels","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","minRadius","maxRadius","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","gradient","innerPadding","trimXAxisTicks","trimYAxisTicks","rotateXAxisTicks","maxXAxisTickLength","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","xAxisTicks","yAxisTicks","min","max","activeEntries","tooltipDisabled","tooltipText","select","activate","deactivate"],[3,"view","results","scheme","schemeType","customColors","animations","gradient","tooltipDisabled","valueFormatting","labelFormatting","select"],[3,"view","results","scheme","schemeType","customColors","animations","legend","legendTitle","legendPosition","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","gradient","activeEntries","rangeFillOpacity","trimYAxisTicks","maxYAxisTickLength","xAxisTickFormatting","yAxisTickFormatting","roundDomains","tooltipDisabled","showSeriesOnHover","yAxisMinScale","labelTrim","labelTrimSize","autoScale","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"div",0,1),E("resized",function(r){return i.onResized(r)}),S(2,q8,2,36,"ng-container",2),S(3,Q8,2,36,"ng-container",2),S(4,Z8,2,36,"ng-container",2),S(5,K8,2,36,"ng-container",2),S(6,J8,2,34,"ng-container",2),S(7,eY,2,34,"ng-container",2),S(8,tY,2,31,"ng-container",2),S(9,nY,2,31,"ng-container",2),S(10,iY,2,20,"ng-container",2),S(11,sY,2,13,"ng-container",2),S(12,rY,2,11,"ng-container",2),S(13,oY,2,14,"ng-container",2),S(14,aY,2,24,"ng-container",2),S(15,lY,2,12,"ng-container",2),S(16,cY,2,36,"ng-container",2),S(17,uY,2,30,"ng-container",2),S(18,hY,2,34,"ng-container",2),S(19,dY,2,39,"ng-container",2),S(20,fY,2,34,"ng-container",2),S(21,gY,2,31,"ng-container",2),S(22,mY,2,10,"ng-container",2),S(23,pY,2,30,"ng-container",2),T()),2&e&&(p("ngSwitch",null==i.chart?null:i.chart.type),_(2),p("ngSwitchCase","verticalBar"),_(1),p("ngSwitchCase","horizontalBar"),_(1),p("ngSwitchCase","verticalBarGrouped"),_(1),p("ngSwitchCase","horizontalBarGrouped"),_(1),p("ngSwitchCase","verticalBarStacked"),_(1),p("ngSwitchCase","horizontalBarStacked"),_(1),p("ngSwitchCase","verticalBarNormalized"),_(1),p("ngSwitchCase","horizontalBarNormalized"),_(1),p("ngSwitchCase","pie"),_(1),p("ngSwitchCase","advancedPie"),_(1),p("ngSwitchCase","pieGrid"),_(1),p("ngSwitchCase","numberCard"),_(1),p("ngSwitchCase","gauge"),_(1),p("ngSwitchCase","linearGauge"),_(1),p("ngSwitchCase","area"),_(1),p("ngSwitchCase","areaNormalized"),_(1),p("ngSwitchCase","areaStacked"),_(1),p("ngSwitchCase","line"),_(1),p("ngSwitchCase","bubble"),_(1),p("ngSwitchCase","heatMap"),_(1),p("ngSwitchCase","treeMap"),_(1),p("ngSwitchCase","polarRadar"))},directives:[uc,X8,Tb,a8,i8,l8,s8,u8,o8,c8,r8,w8,C8,A8,F8,H8,B8,Jj,e8,t8,v8,h8,p8,O8,b8],styles:[""]}),t})(),vY=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function M2(t,n){const e=function w2(t,n){return n.get(Zs).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new E2(t,n.injector),s=function C2(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function v2(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends L2{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(s[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}(_Y,{injector:this.injector});customElements.define("drayman-ngx-charts",e)}}return t.\u0275fac=function(e){return new(e||t)(ve(On))},t.\u0275mod=Lt({type:t}),t.\u0275inj=wt({imports:[[Rb,kO,Y8,W8]]}),t})();(function hF(){Ux=!1})(),YP().bootstrapModule(vY).catch(t=>console.error(t))})()})();
|