@drayman/elements 1.81.0 → 1.83.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/grid/main.js +1 -1
- package/dist/ngx-charts/main.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +42 -10
package/dist/ngx-charts/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var Uw={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 z=window.getComputedStyle(R,null).fontSize;return parseFloat(z)||16}function ht(R,z){var ue=z.split(/\d/),le=ue[ue.length-1];switch(z=parseFloat(z),le){case"px":default:return z;case"em":return z*To(R);case"rem":return z*To();case"vw":return z*document.documentElement.clientWidth/100;case"vh":return z*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Re=document.documentElement.clientWidth/100,vt=document.documentElement.clientHeight/100;return z*(0,Math["vmin"===le?"min":"max"])(Re,vt)}}function De(R,z){this.element=R;var ue,le,Re,vt,Jt,ot,Ut,Yt,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 z=R.getBoundingClientRect();return{width:Math.round(z.width),height:Math.round(z.height)}}(this.element),ot={},Mt[z])!Mt[z].hasOwnProperty(ue)||(vt=ht(this.element,(le=Mt[z][ue]).value),Jt="width"===le.property?Re.width:Re.height,Ut="","min"===le.mode&&Jt>=vt&&(Ut+=le.value),"max"===le.mode&&Jt<=vt&&(Ut+=le.value),ot[Yt=le.mode+"-"+le.property]||(ot[Yt]=""),Ut&&-1===(" "+ot[Yt]+" ").indexOf(" "+Ut+" ")&&(ot[Yt]+=" "+Ut));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,z){R.elementQueriesSetupInformation||(R.elementQueriesSetupInformation=new De(R,z)),R.elementQueriesSensor||(R.elementQueriesSensor=new Bn(R,function(){R.elementQueriesSetupInformation.call()}))}function Vn(R,z,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:z,property:ue,value:le})}function ae(R){var z;if(document.querySelectorAll&&(z=R?R.querySelectorAll.bind(R):document.querySelectorAll.bind(document)),!z&&"undefined"!=typeof $$&&(z=$$),!z&&"undefined"!=typeof jQuery&&(z=jQuery),!z)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return z}function $n(R){var z=[],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()){z.push(R.children[ot]);var Ut=R.children[ot].getAttribute("min-width")||R.children[ot].getAttribute("data-min-width"),Yt=R.children[ot].getAttribute("data-src")||R.children[ot].getAttribute("url");le.push(Yt),ue.push({minWidth:Ut}),Ut?R.children[ot].style.display="none":(Re=z.length-1,R.children[ot].style.display="block")}function zn(){var vn,qe=!1;for(vn in z)!z.hasOwnProperty(vn)||ue[vn].minWidth&&R.offsetWidth>ue[vn].minWidth&&(qe=vn);if(qe||(qe=Re),vt!==qe)if(Jt[qe])z[vt].style.display="none",z[qe].style.display="block",vt=qe;else{var Ts=new Image;Ts.onload=function(){z[qe].src=le[qe],z[vt].style.display="none",z[qe].style.display="block",Jt[qe]=!0,vt=qe},Ts.src=le[qe]}else z[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 z,ue,le,Re;for(R=R.replace(/'/g,'"');null!==(z=yn.exec(R));)for(ue=z[1]+z[3],le=z[2];null!==(Re=Hs.exec(le));)Vn(ue,Re[1],Re[2],Re[3])}function Hi(R){var z="";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!==(z=R[ue].selectorText||R[ue].cssText).indexOf("min-height")||-1!==z.indexOf("max-height")||-1!==z.indexOf("min-width")||-1!==z.indexOf("max-width"))&&Wt(z):4===R[ue].type?Hi(R[ue].cssRules||R[ue].rules):3===R[ue].type&&R[ue].styleSheet.hasOwnProperty("cssRules")&&Hi(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 Yt=window.getComputedStyle(Re.resizeSensor,null).getPropertyValue("min-width");Yt=parseInt(Yt.replace("px","")),Hn(le.target,Ln[Yt])}}),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 z=0,ue=document.styleSheets.length;z<ue;z++)try{document.styleSheets[z].href&&0===document.styleSheets[z].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[z].href),Hi(document.styleSheets[z].cssRules||document.styleSheets[z].rules||document.styleSheets[z].cssText)}catch(le){}!function je(){for(var z=ae()("[data-responsive-image],[responsive-image]"),ue=0,le=z.length;ue<le;ue++)$n(z[ue])}()},this.findElementQueriesElements=function(R){!function _n(R){var z=ae(R);for(var ue in Mt)if(Mt.hasOwnProperty(ue))for(var le=z(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 Bi(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 Hi=document.createElement("div");Mt(Hi,je),Mt(Hi,{width:"200%",height:"200%"}),Wt.appendChild(Hi),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 z=!1,ue=0,le=se(ae),Re=0,vt=0,Jt=!0;De=0;var Ut=function(){if(Jt){if(0===ae.offsetWidth&&0===ae.offsetHeight)return void(De||(De=Bn(function(){De=0,Ut()})));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=Ut;var Yt=function(){ue=0,z&&(Re=le.width,vt=le.height,ae.resizedAttached&&ae.resizedAttached.call(le))},ai=function(){le=se(ae),(z=le.width!==Re||le.height!==vt)&&!ue&&(ue=Bn(Yt)),Ut()},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,Ut()})}}Bi(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){Bi(re,function(ht){ht.resizeSensor.resetSensor()})},Ln.detach=function(re,ht){Bi(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 Uw[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 Bi=(()=>{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 Bi?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 Bi?n=n.concat(Mt(c.errors)):n.push(c)}}}if(n)throw new Bi(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 Bi?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 Hi 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 z(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 Hi(this,e))}asObservable(){const e=new je;return e.source=this,e}}return t.create=(n,e)=>new z(n,e),t})();class z 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()},Yt=function Ut(){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[Yt])return(t=>n=>{const e=t[Yt]();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 Yw(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[Yt]}(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[Yt](),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 Ue(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,Ua)||Dp(t,Ap)}function Dp(t,n){return t.hasOwnProperty(n)?t[n]:null}function Sp(t){return t&&(t.hasOwnProperty(Su)||t.hasOwnProperty(vD))?t[Su]:null}const Ua=Qe({\u0275prov:Qe}),Su=Qe({\u0275inj:Qe}),Ap=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 Au;function Cs(t){const n=Au;return Au=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,Ye=bD||"undefined"!=typeof global&&global||TD||CD,vr={},Ze=[],Ya=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 St(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[Ya]||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 Vi(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 Si(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 Un(t,n){return Lt(n[t.index])}function Hu(t,n){return t.data[n]}function Yn(t,n){const e=n[t];return Vi(e)?e:e[0]}function Vp(t){return 4==(4&t[2])}function Vu(t){return 128==(128&t[2])}function Ss(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 A(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 $i(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 Yp(){return de.lFrame.currentQueryIndex}function Uu(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 As(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 Yu(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 Sr(t){return 32767&t}function Ar(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=Sr(s),a=Ar(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=Sr(l),n=Ar(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=Sr(l),n=Ar(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&&Si(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 zi(t,n){t.forEach(e=>Array.isArray(e)?zi(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 Au}()||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 Sm="__ngContext__";function hn(t,n){t[Sm]=n}function uh(t){const n=function Ho(t){return t[Sm]||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:Vi(i)&&(o=!0,i=i[0]);const a=Lt(i);0===t&&null!==e?null==s?Hm(n,e,a):Us(n,e,a,s||null,!0):1===t&&null!==e?Us(n,e,a,s||null,!0):2===t?function bh(t,n,e){const i=yl(t,n);i&&function hS(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 gS(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 iS(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 oS(t){let n=t[13];if(!n)return yh(t[1],t);for(;n;){let e=null;if(Vi(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Vi(n)&&yh(n[1],n),n=n[3];null===n&&(n=t),Vi(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 uS(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 cS(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 Un(i,e)}(t,n.parent,e)}function Us(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?Us(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?Un(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 Un(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?Um(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 Um(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 Ym(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 Ys(t){var n;return(null===(n=function wh(){if(void 0===bl&&(bl=null,Ye.trustedTypes))try{bl=Ye.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,Ye.trustedTypes))try{Tl=Ye.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 vS extends Xs{getTypeName(){return"HTML"}}class xS extends Xs{getTypeName(){return"Style"}}class bS extends Xs{getTypeName(){return"Script"}}class TS extends Xs{getTypeName(){return"URL"}}class CS extends Xs{getTypeName(){return"ResourceURL"}}function Qn(t){return t instanceof Xs?t.changingThisBreaksApplicationSecurity:t}function ji(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 kS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ys(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MS{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=Ys(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ys(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 FS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IS=/^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(FS)||t.match(IS)?t:"unsafe:"+t}function Jm(t){return(t=String(t)).split(",").map(n=>zo(n.trim())).join(", ")}function Gi(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_=Gi("area,br,col,hr,img,wbr"),t_=Gi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n_=Gi("rp,rt"),Sh=jo(e_,jo(t_,Gi("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_,Gi("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_)),Ah=Gi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Eh=Gi("srcset"),i_=jo(Ah,Eh,Gi("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"),Gi("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")),PS=Gi("script,style,template");class NS{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(!Sh.hasOwnProperty(e))return this.sanitizedSomething=!0,!PS.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;Ah[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();Sh.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 OS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RS=/([^\#-~ |!])/g;function s_(t){return t.replace(/&/g,"&").replace(OS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(RS,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 MS(t);return function LS(){try{return!!(new window.DOMParser).parseFromString(Ys(""),"text/html")}catch(t){return!1}}()?new kS(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 Ys((new NS).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 BS(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)||""):ji(t,"HTML")?Xm(Qn(t)):r_(Bu(),he(t))}function Lh(t){return t.ngOriginalError}function XS(t,...n){t.error(...n)}class Wo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function YS(t){return t&&t.ngErrorLogger||XS}(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 tA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ye))();function l_(t){return t.ownerDocument.defaultView}function Wi(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 sA(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 rA(t,n,e){return n===(4!==t.type||e?t.value:h_)}function oA(t,n,e){let i=4;const s=t.attrs||[],r=function cA(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&&!rA(t,l,e)||""===l&&1===n.length){if(Ai(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sA(t.attrs,c,e)){if(Ai(i))return!1;o=!0}continue}const h=aA(8&i?"class":l,s,d_(t),e);if(-1===h){if(Ai(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(Ai(i))return!1;o=!0}}}}else{if(!o&&!Ai(i)&&!Ai(l))return!1;if(o&&Ai(l))continue;o=!1,i=l|1&i}}return Ai(i)||o}function Ai(t){return 0==(1&t)}function aA(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 uA(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(oA(t,n[i],e))return!0;return!1}function hA(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 dA(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&&!Ai(o)&&(n+=g_(r,s),s=""),i=o,r=r||!Ai(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)}As(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 S_(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];Uu(s),o.contentQueries(2,n[r],r)}}}function Uo(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 MA(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 Ao(){const t=de.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return $i(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 Yo(t,n,e){tl(n);try{const i=t.viewQuery;null!==i&&Kh(1,i,e);const s=t.template;null!==s&&A_(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&S_(t,n),t.staticViewQueries&&Kh(2,t.viewQuery,e);const r=t.components;null!==r&&function AA(t,n){for(let e=0;e<n.length;e++)XA(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&&A_(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),Yu(n,0)}if(function UA(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 WA(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&&S_(t,n),o){const c=t.contentCheckHooks;null!==c&&sl(n,c)}else{const c=t.contentHooks;null!==c&&rl(n,c,1),Yu(n,1)}!function DA(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)As(~s);else{const r=s,o=e[++i],a=e[++i];KD(o,r),a(2,n[r])}}}finally{As(-1)}}(t,n);const a=t.components;null!==a&&function SA(t,n){for(let e=0;e<n.length;e++)YA(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),Yu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,$u(n[3],-1))}finally{nl()}}}function EA(t,n,e,i){const s=n[10],o=Vp(n);try{!o&&s.begin&&s.begin(),o&&Yo(t,n,i),Hr(t,n,e,i)}finally{!o&&s.end&&s.end()}}function A_(t,n,e,i,s){const r=Cn(),o=2&i;try{As(-1),o&&n.length>20&&p_(t,n,20,!1),e(i,s)}finally{As(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 RA(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=Si(l);c&&zA(n,e,l);const u=Lo(n,t,a,e);hn(u,n),null!==o&&jA(0,a-s,u,l,0,o),c&&(Yn(e.index,n)[8]=u)}}(t,n,e,Un(e,n)),128==(128&e.flags)&&function BA(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function JD(){return de.lFrame.currentDirectiveIndex}();try{As(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{As(-1),Gu(a)}}(t,n,e))}function Wh(t,n,e=Un){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 kA(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 Uh(t,n,e,i){let s=!1;if(jp()){const r=function HA(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),Si(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),$A(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 LA(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:GA(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 VA(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 OA(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 $A(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Si(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,Si(s),null);t.blueprint[i]=o,e[i]=o,N_(t,n,0,i,Br(t,e,s.hostVars,fe),s)}function zA(t,n,e){const i=Un(n,t),s=k_(e),r=t[10],o=kl(t,Uo(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Ui(t,n,e,i,s,r){const o=Un(t,n);!function Yh(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 jA(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 GA(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 YA(t,n){const e=Yn(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=Yn(e[i],t);Vu(s)&&s[5]>0&&Xh(s)}}function XA(t,n){const e=Yn(n,t),i=e[1];(function qA(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Yo(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];EA(s,i,s.template,e)}}(t[8])}function Kh(t,n,e){Uu(0),n(t,e)}const ZA=(()=>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 U_(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 Y_{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 Y_),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&&zi(e,a=>this.processProvider(a,n,e)),zi([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=Sp(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=Sp(r)),null==s)return!1;if(null!=s.imports&&!a){let u;i.push(o);try{zi(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];zi(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;zi(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[Ua]||t[Ap]);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 Y_,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(Si(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),Si(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=Ye.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 Yi(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(),Ui(dt(),s,t,n,e,i)),L}function Gr(t,n,e,i){return dn(t,Dr(),e)?n+he(e)+i:fe}function S(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,Ss(c,a));Uh(n,e,u,Ss(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];$i(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 m(t,n,e){const i=F();return dn(i,Dr(),n)&&function Zn(t,n,e,i,s,r,o,a){const l=Un(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(U_(t,e,u,i,s),Za(n)&&function IA(t,n){const e=Yn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function FA(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),m}function hd(t,n,e,i,s){const o=s?"class":"style";U_(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,Ss(a,r));return Uh(n,e,c,Ss(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];$i(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&&Ym(a,l,d),64!=(64&c.flags)&&vl(r,s,l,c),0===function WD(){return de.lFrame.elementDepthCount}()&&hn(l,s),function UD(){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,$i(t,!1));const n=t;!function YD(){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 Xi(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=Ss(r,i),a=Rr(n,t,8,"ng-container",o);return null!==o&&Ml(a,o,!0),Uh(n,e,a,Ss(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];$i(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),Xi}function qi(){let t=Rt();const n=Pe();return zu()?ju():(t=t.parent,$i(t,!1)),n.firstCreatePass&&(il(n,t),Fu(t)&&n.queries.elementEnd(t)),qi}function j(){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 p=Un(i,n),C=a?a(p):p,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 p=v.length;if(p)for(let C=0;C<p;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?Yn(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 lA(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):hA(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 fS(t,n,e){Um(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 Uy(t){return t.substring(Ht.key,Ht.keyEnd)}function Yy(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 Mi(t,n,e,!1),ke}function qt(t,n){return Mi(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),Yy(t,Jr(t,0,Ht.textEnd))}(n);e>=0;e=Yy(n,e))Xn(t,Uy(n),!0)}function Mi(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 Li(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 pA(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 pS(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),$i(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 Sv=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],p=g>=0&&e[g];if(s&&!p||!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&&p&&(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&&p&&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=Si(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(Un(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=Yn(Rt().index,t);return function $M(t){return t[11]}(Vi(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 rS(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 Sd(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 Sd extends Kv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fA(t){return t.map(dA).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 YM(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 UM(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||tA,clean:ZA,playerHandler:n||null,flags:0}}(),f=El(0,null,null,1,0,null,null,null,null,null),g=Uo(null,f,d,h,null,null,o,l,a,r);let v,p;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&&Ym(s,t,l.styles)));const u=i.createRenderer(t,n),h=Uo(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 gA(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(!Ai(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(p=Hu(f,20),void 0!==e){const b=p.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 NA(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=Un(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||(As(a.index),N_(e[1],a,0,a.directiveStart,a.directiveEnd,n),O_(n,o)),o}(C,this.componentDef,g,d,[_E]),Yo(f,g,null)}finally{nl()}return new qM(this.componentType,v,no(p,g),g,p)}}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=Wi(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 Ad 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=Wi(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)?Yi(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)?Yi(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=Uo(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)),Yo(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=Ar(n,this._hostLView),i=Sr(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 Sd(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 aS(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 lS(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 sS(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=Un(t,n);Us(r,yl(r,o),s,function dS(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=Yp();Uu(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 SL(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(),Yp())}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 Yl(...t){}const Ox=new Ne("Application Initializer");let zd=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Yl,this.reject=Yl,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=Ye.requestAnimationFrame,n=Ye.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(Ye,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ud(t),t.isCheckStableRunning=!0,Wd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ud(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,Ud(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,Yl,Yl);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 Ud(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 Yd=(()=>{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&&(Sv=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ls,Nl)||Nl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const s=Ux({},i);return function iF(t,n,e){const i=new Ad(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 Ux(t,n){return Array.isArray(n)?n.reduce(Ux,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(Yd,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=Yn(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 AE(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 SF=Gx(null,"core",[]);let AF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl))},t.\u0275mod=St({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=St({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"),SP=[{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){Ye.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},Ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ye.getAllAngularRootElements=()=>n.getAllRootElements(),Ye.frameworkStabilizers||(Ye.frameworkStabilizers=[]),Ye.frameworkStabilizers.push(i=>{const s=Ye.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 AP=(()=>{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(SF,"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:Yd,useClass:Yd,deps:[Ft]},{provide:fc,useClass:fc,deps:[dc,Ft]},{provide:class xP{},useClass:AP,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},SP]}}}return t.\u0275fac=function(e){return new(e||t)(pe(t,12))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({providers:WP,imports:[fa,AF]}),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 ji(i,"HTML")?Qn(i):r_(this._doc,String(i)).toString();case nt.STYLE:return ji(i,"Style")?Qn(i):i;case nt.SCRIPT:if(ji(i,"Script"))return Qn(i);throw new Error("unsafe value used in a script context");case nt.URL:return Zm(i),ji(i,"URL")?Qn(i):zo(String(i));case nt.RESOURCE_URL:if(ji(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 wS(t){return new vS(t)}(e)}bypassSecurityTrustStyle(e){return function DS(t){return new xS(t)}(e)}bypassSecurityTrustScript(e){return function SS(t){return new bS(t)}(e)}bypassSecurityTrustUrl(e){return function AS(t){return new TS(t)}(e)}bypassSecurityTrustResourceUrl(e){return function ES(t){return new CS(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 Hi(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 S2(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=S2(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 U0{}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 Y0(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,p=u[g];if("offset"!==g)switch(v=n.normalizePropertyName(v,o),p){case"!":p=s[g];break;case ds:p=r[g];break;default:p=n.normalizeStyleValue(g,v,p,o)}f[v]=p}),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&&Sf(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sf(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sf(e,"destroy",t)))}}function Sf(t,n,e){const i=e.totalTime,r=Af(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 Af(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]:Y0(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 SN(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function AN(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:SN(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 U2(){return new K(3200,Ie)}());const h=n.steps.length;let d=0;r>0&&r<h?e.errors.push(function Y2(){return new K(3202,Ie)}()):0==r&&(d=1/(h-1));const f=h-1,g=e.currentTime,v=e.currentAnimateTimings,p=v.duration;return u.forEach((C,b)=>{const D=d>0?b==f?1:d*b:o[b],M=D*p;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 UN(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 YN(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,p=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,p,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,p,[],[],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,p,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=Af(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 Uf(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=[],p=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,p),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 p=this._engine.playersByElement.get(n);if(p){let C=p.indexOf(o);C>=0&&p.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 Uf(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=Af(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 p=[],C=new Set,b=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const G=this.collectedLeaveElements[P],$=G[yi];$&&$.setForRemoval&&(p.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,$))}),p.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=p.filter(P=>Sb(P,l,c)),oe=new Map;Cb(oe,this.driver,b,c,ds).forEach(P=>{Sb(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=[],Ae={};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=Ae;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===Ae)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<p.length;P++){const G=p[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 p.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 p=v[yi];if(p&&p.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 Uf(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 Uf{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 Sb(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 Yf(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 Ab{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 Ab);(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=Yf(n[0]),n.length>1&&(i=Yf(n[n.length-1]))):n&&(e=Yf(n)),e||i?new pO(t,e,i):null}(n,e);return new Ab(n,e,l,h)}}let yO=(()=>{class t extends U0{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)?Y0(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:U0,useClass:yO},{provide:$f,useFactory:function SO(){return new GN}},{provide:Nc,useClass:DO},{provide:na,useFactory:function AO(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=St({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 AR(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 UR(t,n){return function(){this[t]=n}}function YR(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 Ub(t)}function Ub(t){this._node=t,this._names=Wb(t.getAttribute("class")||"")}function Yb(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(){Yb(this,t)}}function QR(t){return function(){Xb(this,t)}}function ZR(t,n){return function(){(n.apply(this,arguments)?Yb: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}Ub.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 SB(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),p=o[c]=new Array(g);e(u,h,v,p,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=p[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 SR(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=AR);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?YR:UR)(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 AB(t,n,e){var s,o,i=wB(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?SB: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 UB(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 Pi(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 YB(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:Pi(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?Pi:"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:Pi)(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,Aa,uo=0,Da=0,Sa=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 Uc(){return ar||(TT(r3),ar=Ea.now()+Wc)}function r3(){ar=0}function Yc(){this._call=this._time=this._next=null}function CT(t,n,e){var i=new Yc;return i.restart(t,n,e),i}function wT(){ar=(Gc=Ea.now())+Wc,uo=Da=0;try{!function o3(){Uc(),++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);Aa=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)),Sa&&(Sa=clearInterval(Sa))):(Sa||(Gc=Ea.now(),Sa=setInterval(a3,1e3)),uo=1,TT(wT)))}function DT(t,n,e){var i=new Yc;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Yc.prototype=CT.prototype={constructor:Yc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Uc():+e)+(null==n?0:+n),!this._next&&Aa!==this&&(Aa?Aa._next=this:jc=this,Aa=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=Ni(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function fs(t,n){var e=Ni(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ni(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:Pi(c,h)},{i:v-2,x:Pi(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:Pi(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:Pi(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:Pi(c,h)},{i:v-2,x:Pi(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 p,g=-1,v=d.length;++g<v;)h[(p=d[g]).i]=p.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 Ni(s,i).value[n]}}function IT(t,n){var e;return("number"==typeof n?Pi: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 A3(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)&&A3(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 Y3(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,Ni(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=Ni(u,e),v=0,p=d.length;v<p;++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=Ni(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?Ni(this.node(),e).on.on(t):this.each(j3(e,t,n))},attr:function S3(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 U3(){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=Ni(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)):Ni(this.node(),n).delay},duration:function R3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?N3:O3)(n,t)):Ni(this.node(),n).duration},ease:function H3(t){var n=this._id;return arguments.length?this.each(B3(n,t)):Ni(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=Uc(),_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=Uc(),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 SH(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function AH(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 Sg=Math.sqrt(50),Ag=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>=Sg?10:r>=Ag?5:r>=Eg?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Sg?10:r>=Ag?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>=Sg?s*=10:r>=Ag?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 UT=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 YT=UT;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 YH=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(([,,p])=>p).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[AX,EX]=sC(XH,YH,nC,VH,HH,BH),[qH,QH]=sC(KT,ZT,Pg,qT,YT,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 SV(t,n){return $e(t.getHours()%12||12,n,2)}function AV(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 UV(t,n){return $e(t.getUTCMonth()+1,n,2)}function YV(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 SC(t){return+t}function AC(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),p=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:SV,j:AV,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:SC,s:AC,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:UV,M:YV,p:function et(H){return s[+(H.getUTCHours()>=12)]},q:function jt(H){return 1+~~(H.getUTCMonth()/3)},Q:SC,s:AC,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=p[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 Ae(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),Pi)))(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"),p=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?p: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,YT,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 S$(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 A$(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,p=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"),(p||"0"===d&&"="===f)&&(p=!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,Ae,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,Ae=J.length;++Ge<Ae;)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&&!p&&(J=n(J,1/0));var $=B.length+J.length+W.length,Z=$<C?new Array(C-$+1).join(d):"";switch(b&&p&&(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),p=$C[8+g/3];return function(C){return f(v*C)+p}}}}(t),Wg=ru.format,zC=ru.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const GC=Symbol("implicit");function Ug(){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 Ug(n,e).unknown(i)},Ra.apply(s,arguments),s}function rn(){var r,o,t=Ug().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 p=jC(d).map(function(C){return g+r*C});return e(f?p.reverse():p)}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 UC(){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 UC().domain(t).range(n).unknown(i)},Ra.apply(r,arguments)}function YC(t){this._context=t}function pr(t){return new YC(t)}YC.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 Yg=Math.PI,Xg=2*Yg,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,p=Math.sqrt(g),C=Math.sqrt(h),b=s*Math.tan((Yg-Math.acos((g+h-v)/(2*p*C)))/2),D=b/C,M=b/p;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>=Yg)+","+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,p=!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))===p)if(p=!p)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()}p&&(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 U$(t){return t&&t.padAngle}function Y$(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,p=(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-p,W=ee-C,Ge=oe-p,Ae=J-C;return B*B+W*W>Ge*Ge+Ae*Ae&&(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=U$,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),p=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,!p),h>On&&(a.moveTo(h*_r(g),h*ts(g)),a.arc(0,0,h,g,f,p));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)),Ae=iw(be/d*ts(X));(N-=2*Ge)>On?(D+=Ge*=p?1:-1,M-=Ge):(N=0,D=M=(f+g)/2),(I-=2*Ae)>On?(C+=Ae*=p?1:-1,b-=Ae):(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=Y$(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,p),W=cu(ce,Ee,$,Z,d,J,p),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),!p):(a.arc(B.cx,B.cy,J,gn(B.y01,B.x01),gn(B.y11,B.x11),!p),a.arc(0,0,d,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),!p),a.arc(W.cx,W.cy,J,gn(W.y11,W.x11),gn(W.y01,W.x01),!p))):(a.moveTo(P,G),a.arc(0,0,d,C,b,!p)):a.moveTo(P,G),h>On&&N>On?oe>On?(B=cu($,Z,ce,Ee,h,-oe,p),W=cu(P,G,yt,zt,h,-oe,p),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),!p):(a.arc(B.cx,B.cy,oe,gn(B.y01,B.x01),gn(B.y11,B.x11),!p),a.arc(0,0,h,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),p),a.arc(W.cx,W.cy,oe,gn(W.y11,W.x11),gn(W.y01,W.x01),!p))):a.arc(0,0,h,M,D,p):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,p,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{p=a[h++].value}while(!p&&h<d);for(C=b=p,I=p*p*(N=Math.max(g/f,f/g)/(v*t)),M=Math.max(b/I,I/C);h<d;++h){if(p+=c=a[h].value,c<C&&(C=c),c>b&&(b=c),I=p*p*N,(D=Math.max(b/I,I/C))>M){p-=c;break}M=D}o.push(l={value:p,dice:f<g,children:a.slice(u,h)}),l.dice?J$(l,e,i,s,v?i+=g*p/v:r):e5(l,e,i,v?e+=f*p/v:s,r),v-=p,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 S5(t,n){}const A5=function(t){return{model:t}};function E5(t,n){if(1&t&&(x(0,"span"),S(1,S5,0,0,"ng-template",5),T()),2&t){const e=y();_(1),m("ngTemplateOutlet",e.template)("ngTemplateOutletContext",jl(2,A5,e.context))}}function k5(t,n){1&t&&V(0,"span",6),2&t&&m("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();m("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=j();w(),Ws(),x(0,"ngx-charts-legend",5),E("labelClick",function(s){return A(e),y().legendLabelClick.emit(s)})("labelActivate",function(s){return A(e),y().legendLabelActivate.emit(s)})("labelDeactivate",function(s){return A(e),y().legendLabelDeactivate.emit(s)}),T()}if(2&t){const e=y();m("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"),S(1,N5,2,2,"g",5),T()),2&t){const e=n.$implicit,i=y();L("transform",i.tickTransform(e)),_(1),m("ngIf",i.showGridLines)}}const R5=["ngx-charts-x-axis",""];function B5(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("dimensionsChanged",function(s){return A(e),y().emitTicksHeight(s)}),T()}if(2&t){const e=y();m("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();m("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"),S(1,j5,1,1,"line",8),S(2,G5,1,1,"line",8),T()),2&t){const e=y(2);L("transform",e.gridLineTransform()),_(1),m("ngIf","left"===e.orient),_(1),m("ngIf","right"===e.orient)}}function U5(t,n){if(1&t&&(w(),x(0,"g"),S(1,W5,3,3,"g",7),T()),2&t){const e=n.$implicit,i=y();L("transform",i.transform(e)),_(1),m("ngIf",i.showGridLines)}}function Y5(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),S(2,Y5,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),m("ngIf",i.showRefLabels)}}function q5(t,n){if(1&t&&(w(),x(0,"g"),S(1,X5,3,4,"g",7),T()),2&t){const e=y();_(1),m("ngIf",e.showRefLines)}}const Q5=["ngx-charts-y-axis",""];function Z5(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("dimensionsChanged",function(s){return A(e),y().emitTicksWidth(s)}),T()}if(2&t){const e=y();m("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();m("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);m("@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=j();w(),x(0,"g")(1,"defs"),V(2,"g",1),T(),S(3,e4,1,6,"rect",2),x(4,"g",3),E("select",function(){A(e);const s=y();return s.onClick(s.circle.data)})("activate",function(){return A(e),y().activateCircle()})("deactivate",function(){return A(e),y().deactivateCircle()}),T()()}if(2&t){const e=y();_(2),m("name",e.gradientId)("stops",e.circle.gradientStops),_(1),m("ngIf",e.barVisible&&"standard"===e.type),_(1),qt("active",e.isActive(jl(18,t4,e.circle.seriesName))),m("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),m("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),S(1,m4,3,3,"div",5),T()),2&t){const e=n.model;_(1),m("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=j();x(0,"li",6)(1,"ngx-charts-legend-entry",7),E("select",function(s){return A(e),y().labelClick.emit(s)})("activate",function(s){return A(e),y().activate(s)})("deactivate",function(s){return A(e),y().deactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),m("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=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("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=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("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),m("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=j();w(),x(0,"g")(1,"g",13),E("select",function(s){const o=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("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=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,B4,2,9,"g",12),T()}if(2&t){const e=y();_(1),m("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),m("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),m("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=j();w(),x(0,"g",14),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,V4,2,8,"g",4),T()}if(2&t){const e=y();m("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),m("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=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("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=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("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),m("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=j();w(),x(0,"g")(1,"g",12),E("select",function(s){const o=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("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 U4(t,n){if(1&t){const e=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,W4,2,9,"g",4),T()}if(2&t){const e=y();_(1),m("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),m("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Y4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",14),T()),2&t){const e=n.$implicit,i=y(2);_(1),m("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=j();w(),x(0,"g",13),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,Y4,2,8,"g",4),T()}if(2&t){const e=y();m("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),m("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),m("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}function cz(t,n){if(1&t){const e=j();w(),x(0,"g",5),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("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=j();w(),x(0,"g",6),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("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)}}const xz=["ngx-charts-series-vertical",""];function bz(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(e),y().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=y();m("@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=j();w(),x(0,"g",4),E("dimensionsChanged",function(s){const o=A(e).index;return y(2).dataLabelHeightChanged.emit({size:s,index:o})}),T()}if(2&t){const e=n.$implicit,i=y(2);m("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"),S(1,Tz,1,7,"g",3),T()),2&t){const e=y();_(1),m("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=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("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=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("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();m("@animationState","active"),_(1),m("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 Uz(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"g",13),E("select",function(s){return A(e),y(2).onClick(s)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("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 Yz(t,n){if(1&t){const e=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,Uz,2,9,"g",12),T()}if(2&t){const e=y();_(1),m("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),m("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),m("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=j();w(),x(0,"g",14),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,Xz,2,8,"g",4),T()}if(2&t){const e=y();m("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),m("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();m("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)),m("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),m("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();m("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=j();w(),x(0,"g"),S(1,bj,1,10,"g",1),x(2,"g",2),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(e),y().deactivate.emit(s)})("dblclick",function(s){return A(e),y().dblclick.emit(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),m("ngIf",i.labelVisible(e)),_(1),m("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 Sj(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 Aj(t,n){if(1&t){const e=j();w(),x(0,"g",3),E("select",function(s){return A(e),y().onClick(s)}),T()}if(2&t){const e=n.$implicit,i=y();m("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=j();w(),x(0,"g")(1,"g",5),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().onActivate(s)})("deactivate",function(s){return A(e),y().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();L("transform",i.rotation),_(1),m("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();m("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 Uj(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 Yj(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){Li(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),S(4,E5,2,4,"span",3),S(5,k5,1,1,"span",4),T()()),2&e&&(_(1),function dv(t,n,e){Li(Xn,Zi,Gr(F(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),m("hidden",!i.showCaret),_(3),m("ngIf",!i.title),_(1),m("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(),S(3,M5,1,5,"ngx-charts-scale-legend",2),S(4,L5,1,7,"ngx-charts-legend",3),T()),2&e&&(ke("width",i.view[0],"px"),m("@animationState","active")("@.disabled",!i.animations),_(1),L("width",i.chartWidth)("height",i.view[1]),_(2),m("ngIf",i.showLegend&&"scaleLegend"===i.legendType),_(1),m("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),S(2,P5,5,7,"g",1),T(),S(3,O5,2,2,"g",2)),2&e&&(_(2),m("ngForOf",i.ticks),_(1),m("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"),S(1,B5,1,12,"g",0),S(2,H5,1,5,"g",1),T()),2&e&&(L("class",i.xAxisClassName)("transform",i.transform),_(1),m("ngIf",i.xScale),_(1),m("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),S(2,$5,5,9,"g",1),T(),S(3,z5,1,2,"path",2),S(4,U5,2,2,"g",3),S(5,q5,2,1,"g",3)),2&e&&(_(2),m("ngForOf",i.ticks),_(1),m("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),_(1),m("ngForOf",i.ticks),_(1),m("ngForOf",i.referenceLines))},directives:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),An=(()=>{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"),S(1,Z5,1,14,"g",0),S(2,K5,1,5,"g",1),T()),2&e&&(L("class",i.yAxisClassName)("transform",i.transform),_(1),m("ngIf",i.yScale),_(1),m("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=St({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 Oi=(()=>{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=St({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&&S(0,n4,5,20,"g",0),2&e&&m("ngIf",i.circle)},directives:function(){return[Ce,yr,pu,Oi]},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),S(1,l4,1,5,"stop",1),T()),2&e&&(m("id",i.name),L("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),_(1),m("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),S(1,u4,1,5,"stop",1),T()),2&e&&(m("id",i.name),L("cx",i.cx)("cy",i.cy)("r",i.r),_(1),m("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&&(S(0,d4,2,2,"defs",0),w(),V(1,"path",1)),2&e&&(m("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 p=v<u;if(s({value:g,progress:v,timestamp:f,finished:!p}),p)return requestAnimationFrame(C=>d(C))}return requestAnimationFrame(f=>(h=f,d(f)))}"undefined"!=typeof window?sp=window:"undefined"!=typeof global&&(sp=global);const Aw=sp.MouseEvent;function rp(t,n=!1,e=!0){if("function"==typeof Aw)return new Aw(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(),S(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"),m("@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,Oi],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=SH,s=!0,r=iT("start","brush","end"),o=6;function l(p){var C=p.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])}),p.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=p.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]}),p.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 p=Qt(this),C=Tg(this).selection;C?(p.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]),p.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})):p.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(p,C,b){var D=p.__brush.emitter;return!D||b&&D.clean?new h(p,C,b):D}function h(p,C,b){this.that=p,this.args=C,this.state=p.__brush,this.active=0,this.clean=b}function d(){if((!a||He.touches)&&e.apply(this,arguments)){var ee,oe,B,W,Ae,P,$,Z,yt,Te,ri,p=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(p),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(p),jt=et,H=u(p,arguments,!0).beforestart();"overlay"===C?(X&&(yt=!0),N.selection=X=[[ee=t===Jc?be:et[0],B=t===Kc?J:et[1]],[Ae=t===Jc?Ge:ee,$=t===Kc?G:B]]):(ee=X[0][0],B=X[0][1],Ae=X[1][0],$=X[1][1]),oe=ee,W=B,P=Ae,Z=$;var ne=Qt(p).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(p),c.call(p),H.start()}function an(){var Mn=ns(p);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-Ae,ce)),oe=ee+ce,P=Ae+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=Ae):D>0&&(ce=Math.max(be-Ae,Math.min(Ge-Ae,ce)),oe=ee,P=Ae+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,Ae+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=Ae,Ae=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(p),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),AH(X)&&(N.selection=null,c.call(p)),H.end()}function kn(){switch(He.keyCode){case 16:zt=D&&M;break;case 18:b===fo&&(D&&(Ae=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?Ae=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?Ae=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo,Ve());break;case 32:b===xg&&(He.altKey?(D&&(Ae=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go):(D<0?Ae=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 p=this.__brush||{selection:null};return p.extent=bg(n.apply(this,arguments)),p.dim=t,p}return l.move=function(p,C){p.selection?p.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)}):p.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(p){l.move(p,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(p){!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,p,t.output(this.state.selection)),r.apply,r,[p,this.that,this.args])}},l.extent=function(p){return arguments.length?(n="function"==typeof p?p:yg(bg(p)),l):n},l.filter=function(p){return arguments.length?(e="function"==typeof p?p:yg(!!p),l):e},l.touchable=function(p){return arguments.length?(i="function"==typeof p?p:yg(!!p),l):i},l.handleSize=function(p){return arguments.length?(o=+p,l):o},l.keyModifiers=function(p){return arguments.length?(s=!!p,l):s},l.on=function(){var p=r.on.apply(r,arguments);return p===r?l:p},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"),S(1,v4,3,1,"header",0),x(2,"div",1)(3,"ul",2),S(4,x4,2,4,"li",3),T()()()),2&e&&(ke("width",i.width,"px"),_(1),m("ngIf",(null==i.title?null:i.title.length)>0),_(2),ke("max-height",i.height-45,"px"),qt("horizontal-legend",i.horizontal),_(1),m("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),m("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})(),Ri=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({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=UC().range(n.domain).domain(i);else if("ordinal"===e)s=Ug().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),S(5,N4,1,10,"g",2),S(6,O4,1,9,"g",3),x(7,"g"),S(8,R4,2,9,"g",4),S(9,H4,3,10,"g",5),T()(),S(10,$4,2,13,"g",6),T()),2&e&&(m("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),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,An,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),S(5,z4,1,10,"g",2),S(6,j4,1,9,"g",3),x(7,"g"),S(8,G4,2,9,"g",4),S(9,U4,3,10,"g",5),T()(),S(10,X4,2,13,"g",6),T()),2&e&&(m("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),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,An,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)),m("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=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),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&&(S(0,Z4,2,3,"defs",0),w(),x(1,"path",1),E("click",function(){return i.select.emit(i.data)}),T()),2&e&&(m("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),S(2,cz,1,10,"g",2),S(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&&(m("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),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),m("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,An,yu]},styles:[kt],encapsulation:2,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],p=v+c;s[r]+=c,f.height=this.yScale(v)-this.yScale(p),f.x=0,f.y=this.yScale(p),f.offset0=v,f.offset1=p}else if("normalized"===this.type){let v=s[r],p=v+c;s[r]+=c,o>0?(v=100*v/o,p=100*p/o):(v=0,p=0),f.height=this.yScale(v)-this.yScale(p),f.x=0,f.y=this.yScale(p),f.offset0=v,f.offset1=p,c=(p-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&&(S(0,bz,1,22,"g",0),S(1,Cz,2,2,"g",1)),2&e&&(m("ngForOf",i.bars)("ngForTrackBy",i.trackBy),_(1),m("ngIf",i.showDataLabel))},directives:function(){return[Oe,up,Oi,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=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),s8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),a8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),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&&(m("@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})(),l8=(()=>{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),S(5,jz,1,10,"g",2),S(6,Gz,1,12,"g",3),x(7,"g"),S(8,Wz,2,11,"g",4),S(9,Yz,3,9,"g",5),T()(),S(10,qz,2,13,"g",6),T()),2&e&&(m("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),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,An,Oe,c8,ja,za,Ga]},styles:[kt],encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1}),nn(500,Fe({opacity:0}))])])]},changeDetection:0}),t})(),c8=(()=>{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"),S(2,Zz,1,2,"g",0),T(),V(3,"g",1)(4,"g",2),S(5,Kz,1,9,"g",3),T()),2&e&&(_(2),m("ngIf",i.hasGradient),_(1),qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),m("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)),m("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),_(1),m("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=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),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),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),m("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})(),d8=(()=>{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&&(m("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),m("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),p=Math.min(lu,Math.max(-lu,s.apply(this,arguments)-v)),b=Math.min(Math.abs(p)/c,r.apply(this,arguments)),D=b*(p<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?(p-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&&S(0,Tj,3,19,"g",0),2&e&&m("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[Oe,Ce,Vw,hp,Oi],encapsulation:2,changeDetection:0}),t})(),dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),p8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri,dp,Bw]]}),t})(),m8=(()=>{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 Sw(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),S(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),m("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"),m("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 _8({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 y8=(()=>{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&&(S(0,Sj,1,6,"rect",0),S(1,Aj,1,13,"g",1)),2&e&&(m("ngForOf",i.emptySlots)("ngForTrackBy",i.trackBy),_(1),m("ngForOf",i.cards)("ngForTrackBy",i.trackBy))},directives:[Oe,m8],encapsulation:2,changeDetection:0}),t})(),v8=(()=>{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 p=0;p<c;p++)h.push(p);for(let p=0;p<l;p++)u.push(p);s.domain(u),r.domain(h),s.rangeRound([0,o],.1),r.rangeRound([0,a],.1);const d=[],f=i||function f8(t){return t.map(n=>n?n.value:0).reduce((n,e)=>n+e,0)}(n),g=s.bandwidth(),v=r.bandwidth();for(let p=0;p<n.length;p++)d[p]={},d[p].data={name:n[p]?n[p].name:"",value:n[p]?n[p].value:void 0,extra:n[p]?n[p].extra:void 0,label:n[p]?n[p].label:""},d[p].x=s(p%l),d[p].y=r(Math.floor(p/l)),d[p].width=g,d[p].height=v,d[p].data.percent=f>0?d[p].data.value/f:0,d[p].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&&(m("view",Ke(17,st,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),qt("clickable",i.clickable),L("transform",i.transform),_(1),m("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,y8],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})(),x8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),C8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),w8=(()=>{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),S(2,Hj,2,10,"g",2),S(3,Vj,1,9,"g",3),S(4,$j,6,5,"text",4),T()()),2&e&&(m("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),m("ngForOf",i.arcs)("ngForTrackBy",i.trackBy),_(1),m("ngIf",i.showAxis),_(1),m("ngIf",i.showText))},directives:function(){return[mt,Oe,D8,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})(),D8=(()=>{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&&(m("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),m("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,Oi],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"),S(1,Gj,2,1,"g",0),S(2,Wj,3,4,"g",0),S(3,Uj,2,1,"g",1),T()),2&e&&(L("transform",i.rotate),_(1),m("ngForOf",i.ticks.big),_(1),m("ngForOf",i.ticks.big),_(1),m("ngForOf",i.ticks.small))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),A8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri,dp,Pw]]}),t})(),k8=(()=>{class t{constructor(){!function E8(){"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=St({type:t}),t.\u0275inj=xt({imports:[Ri,t8,Pw,s8,a8,Bw,p8,x8,dp,C8,A8]}),t})();var Ww=gp(289);class M8{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let L8=(()=>{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 M8(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})(),F8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[]]}),t})();const I8=["chartContainer"];function P8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-bar-vertical",3),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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)("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 N8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-pie-chart",4),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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 O8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-number-card",5),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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 R8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-gauge",6),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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 B8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-area-chart-normalized",7),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)}}function H8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-area-chart-stacked",8),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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)("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 V8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-line-chart",9),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("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)("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 $8=(()=>{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(){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,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(I8,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",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:9,vars:8,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","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","yScaleMax","yScaleMin","showDataLabel","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","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","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","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)}),S(2,P8,2,25,"ng-container",2),S(3,N8,2,16,"ng-container",2),S(4,O8,2,9,"ng-container",2),S(5,R8,2,17,"ng-container",2),S(6,B8,2,22,"ng-container",2),S(7,H8,2,26,"ng-container",2),S(8,V8,2,32,"ng-container",2),T()),2&e&&(m("ngSwitch",null==i.chart?null:i.chart.type),_(2),m("ngSwitchCase","verticalBar"),_(1),m("ngSwitchCase","pie"),_(1),m("ngSwitchCase","numberCard"),_(1),m("ngSwitchCase","gauge"),_(1),m("ngSwitchCase","areaNormalized"),_(1),m("ngSwitchCase","areaStacked"),_(1),m("ngSwitchCase","line"))},directives:[uc,L8,C0,n8,d8,v8,w8,Jj,e8,l8],styles:[""]}),t})(),z8=(()=>{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}($8,{injector:this.injector});customElements.define("drayman-ngx-charts",e)}}return t.\u0275fac=function(e){return new(e||t)(pe(In))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[B0,kO,k8,F8]]}),t})();(function hF(){Xx=!1})(),GP().bootstrapModule(z8).catch(t=>console.error(t))})()})();
|
|
1
|
+
(()=>{var Uw={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,Ut,Yt,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,Ut="","min"===le.mode&&Jt>=vt&&(Ut+=le.value),"max"===le.mode&&Jt<=vt&&(Ut+=le.value),ot[Yt=le.mode+"-"+le.property]||(ot[Yt]=""),Ut&&-1===(" "+ot[Yt]+" ").indexOf(" "+Ut+" ")&&(ot[Yt]+=" "+Ut));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 Ut=R.children[ot].getAttribute("min-width")||R.children[ot].getAttribute("data-min-width"),Yt=R.children[ot].getAttribute("data-src")||R.children[ot].getAttribute("url");le.push(Yt),ue.push({minWidth:Ut}),Ut?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 Yt=window.getComputedStyle(Re.resizeSensor,null).getPropertyValue("min-width");Yt=parseInt(Yt.replace("px","")),Hn(le.target,Ln[Yt])}}),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 Ut=function(){if(Jt){if(0===ae.offsetWidth&&0===ae.offsetHeight)return void(De||(De=Bn(function(){De=0,Ut()})));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=Ut;var Yt=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(Yt)),Ut()},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,Ut()})}}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 Uw[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()},Yt=function Ut(){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[Yt])return(t=>n=>{const e=t[Yt]();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 Yw(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[Yt]}(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[Yt](),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 Ue(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,Ua)||Dp(t,Ap)}function Dp(t,n){return t.hasOwnProperty(n)?t[n]:null}function Sp(t){return t&&(t.hasOwnProperty(Su)||t.hasOwnProperty(vD))?t[Su]:null}const Ua=Qe({\u0275prov:Qe}),Su=Qe({\u0275inj:Qe}),Ap=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 Au;function Cs(t){const n=Au;return Au=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,Ye=bD||"undefined"!=typeof global&&global||TD||CD,vr={},Ze=[],Ya=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 St(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[Ya]||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 Si(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 Un(t,n){return Lt(n[t.index])}function Hu(t,n){return t.data[n]}function Yn(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 Ss(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 A(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 Yp(){return de.lFrame.currentQueryIndex}function Uu(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 As(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 Yu(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 Sr(t){return 32767&t}function Ar(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=Sr(s),a=Ar(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=Sr(l),n=Ar(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=Sr(l),n=Ar(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&&Si(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 Au}()||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 Sm="__ngContext__";function hn(t,n){t[Sm]=n}function uh(t){const n=function Ho(t){return t[Sm]||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):Us(n,e,a,s||null,!0):1===t&&null!==e?Us(n,e,a,s||null,!0):2===t?function bh(t,n,e){const i=yl(t,n);i&&function hS(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 gS(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 iS(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 oS(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 uS(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 cS(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 Un(i,e)}(t,n.parent,e)}function Us(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?Us(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?Un(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 Un(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?Um(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 Um(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 Ym(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 Ys(t){var n;return(null===(n=function wh(){if(void 0===bl&&(bl=null,Ye.trustedTypes))try{bl=Ye.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,Ye.trustedTypes))try{Tl=Ye.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 vS extends Xs{getTypeName(){return"HTML"}}class xS extends Xs{getTypeName(){return"Style"}}class bS extends Xs{getTypeName(){return"Script"}}class TS extends Xs{getTypeName(){return"URL"}}class CS 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 kS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ys(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MS{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=Ys(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ys(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 FS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IS=/^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(FS)||t.match(IS)?t:"unsafe:"+t}function Jm(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"),Sh=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_)),Ah=Ui("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Eh=Ui("srcset"),i_=jo(Ah,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")),PS=Ui("script,style,template");class NS{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(!Sh.hasOwnProperty(e))return this.sanitizedSomething=!0,!PS.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;Ah[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();Sh.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 OS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RS=/([^\#-~ |!])/g;function s_(t){return t.replace(/&/g,"&").replace(OS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(RS,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 MS(t);return function LS(){try{return!!(new window.DOMParser).parseFromString(Ys(""),"text/html")}catch(t){return!1}}()?new kS(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 Ys((new NS).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 BS(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 XS(t,...n){t.error(...n)}class Wo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function YS(t){return t&&t.ngErrorLogger||XS}(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 tA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ye))();function l_(t){return t.ownerDocument.defaultView}function Yi(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 sA(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 rA(t,n,e){return n===(4!==t.type||e?t.value:h_)}function oA(t,n,e){let i=4;const s=t.attrs||[],r=function cA(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&&!rA(t,l,e)||""===l&&1===n.length){if(Ai(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sA(t.attrs,c,e)){if(Ai(i))return!1;o=!0}continue}const h=aA(8&i?"class":l,s,d_(t),e);if(-1===h){if(Ai(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(Ai(i))return!1;o=!0}}}}else{if(!o&&!Ai(i)&&!Ai(l))return!1;if(o&&Ai(l))continue;o=!1,i=l|1&i}}return Ai(i)||o}function Ai(t){return 0==(1&t)}function aA(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 uA(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(oA(t,n[i],e))return!0;return!1}function hA(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 dA(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&&!Ai(o)&&(n+=g_(r,s),s=""),i=o,r=r||!Ai(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)}As(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 S_(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];Uu(s),o.contentQueries(2,n[r],r)}}}function Uo(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 MA(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 Ao(){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 Yo(t,n,e){tl(n);try{const i=t.viewQuery;null!==i&&Kh(1,i,e);const s=t.template;null!==s&&A_(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&S_(t,n),t.staticViewQueries&&Kh(2,t.viewQuery,e);const r=t.components;null!==r&&function AA(t,n){for(let e=0;e<n.length;e++)XA(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&&A_(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),Yu(n,0)}if(function UA(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 WA(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&&S_(t,n),o){const c=t.contentCheckHooks;null!==c&&sl(n,c)}else{const c=t.contentHooks;null!==c&&rl(n,c,1),Yu(n,1)}!function DA(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)As(~s);else{const r=s,o=e[++i],a=e[++i];KD(o,r),a(2,n[r])}}}finally{As(-1)}}(t,n);const a=t.components;null!==a&&function SA(t,n){for(let e=0;e<n.length;e++)YA(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),Yu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,$u(n[3],-1))}finally{nl()}}}function EA(t,n,e,i){const s=n[10],o=Vp(n);try{!o&&s.begin&&s.begin(),o&&Yo(t,n,i),Hr(t,n,e,i)}finally{!o&&s.end&&s.end()}}function A_(t,n,e,i,s){const r=Cn(),o=2&i;try{As(-1),o&&n.length>20&&p_(t,n,20,!1),e(i,s)}finally{As(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 RA(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=Si(l);c&&zA(n,e,l);const u=Lo(n,t,a,e);hn(u,n),null!==o&&jA(0,a-s,u,l,0,o),c&&(Yn(e.index,n)[8]=u)}}(t,n,e,Un(e,n)),128==(128&e.flags)&&function BA(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function JD(){return de.lFrame.currentDirectiveIndex}();try{As(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{As(-1),Gu(a)}}(t,n,e))}function Wh(t,n,e=Un){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 kA(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 Uh(t,n,e,i){let s=!1;if(jp()){const r=function HA(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),Si(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),$A(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 LA(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:GA(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 VA(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 OA(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 $A(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Si(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,Si(s),null);t.blueprint[i]=o,e[i]=o,N_(t,n,0,i,Br(t,e,s.hostVars,fe),s)}function zA(t,n,e){const i=Un(n,t),s=k_(e),r=t[10],o=kl(t,Uo(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=Un(t,n);!function Yh(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 jA(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 GA(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 YA(t,n){const e=Yn(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=Yn(e[i],t);Vu(s)&&s[5]>0&&Xh(s)}}function XA(t,n){const e=Yn(n,t),i=e[1];(function qA(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Yo(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];EA(s,i,s.template,e)}}(t[8])}function Kh(t,n,e){Uu(0),n(t,e)}const ZA=(()=>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 U_(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 Y_{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 Y_),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=Sp(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=Sp(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[Ua]||t[Ap]);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 Y_,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(Si(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),Si(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=Ye.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 S(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,Ss(c,a));Uh(n,e,u,Ss(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=Un(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(U_(t,e,u,i,s),Za(n)&&function IA(t,n){const e=Yn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function FA(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";U_(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,Ss(a,r));return Uh(n,e,c,Ss(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&&Ym(a,l,d),64!=(64&c.flags)&&vl(r,s,l,c),0===function WD(){return de.lFrame.elementDepthCount}()&&hn(l,s),function UD(){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 YD(){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=Ss(r,i),a=Rr(n,t,8,"ng-container",o);return null!==o&&Ml(a,o,!0),Uh(n,e,a,Ss(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=Un(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?Yn(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 lA(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):hA(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 fS(t,n,e){Um(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 Uy(t){return t.substring(Ht.key,Ht.keyEnd)}function Yy(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),Yy(t,Jr(t,0,Ht.textEnd))}(n);e>=0;e=Yy(n,e))Xn(t,Uy(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 pA(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 pS(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 Sv=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=Si(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(Un(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=Yn(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 rS(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 Sd(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 Sd extends Kv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fA(t){return t.map(dA).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 YM(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 UM(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||tA,clean:ZA,playerHandler:n||null,flags:0}}(),f=El(0,null,null,1,0,null,null,null,null,null),g=Uo(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&&Ym(s,t,l.styles)));const u=i.createRenderer(t,n),h=Uo(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 gA(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(!Ai(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 NA(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=Un(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||(As(a.index),N_(e[1],a,0,a.directiveStart,a.directiveEnd,n),O_(n,o)),o}(C,this.componentDef,g,d,[_E]),Yo(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=Yi(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 Ad 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=Yi(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=Uo(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)),Yo(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=Ar(n,this._hostLView),i=Sr(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 Sd(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 aS(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 lS(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 sS(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=Un(t,n);Us(r,yl(r,o),s,function dS(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=Yp();Uu(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 SL(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(),Yp())}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 Yl(...t){}const Ox=new Ne("Application Initializer");let zd=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Yl,this.reject=Yl,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=Ye.requestAnimationFrame,n=Ye.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(Ye,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ud(t),t.isCheckStableRunning=!0,Wd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ud(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,Ud(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,Yl,Yl);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 Ud(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 Yd=(()=>{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&&(Sv=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ls,Nl)||Nl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const s=Ux({},i);return function iF(t,n,e){const i=new Ad(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 Ux(t,n){return Array.isArray(n)?n.reduce(Ux,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(Yd,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=Yn(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 AE(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 SF=Gx(null,"core",[]);let AF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl))},t.\u0275mod=St({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=St({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"),SP=[{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){Ye.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},Ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ye.getAllAngularRootElements=()=>n.getAllRootElements(),Ye.frameworkStabilizers||(Ye.frameworkStabilizers=[]),Ye.frameworkStabilizers.push(i=>{const s=Ye.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 AP=(()=>{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(SF,"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:Yd,useClass:Yd,deps:[Ft]},{provide:fc,useClass:fc,deps:[dc,Ft]},{provide:class xP{},useClass:AP,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},SP]}}}return t.\u0275fac=function(e){return new(e||t)(pe(t,12))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({providers:WP,imports:[fa,AF]}),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 wS(t){return new vS(t)}(e)}bypassSecurityTrustStyle(e){return function DS(t){return new xS(t)}(e)}bypassSecurityTrustScript(e){return function SS(t){return new bS(t)}(e)}bypassSecurityTrustUrl(e){return function AS(t){return new TS(t)}(e)}bypassSecurityTrustResourceUrl(e){return function ES(t){return new CS(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 S2(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=S2(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 U0{}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 Y0(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&&Sf(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sf(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sf(e,"destroy",t)))}}function Sf(t,n,e){const i=e.totalTime,r=Af(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 Af(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]:Y0(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 SN(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function AN(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:SN(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 U2(){return new K(3200,Ie)}());const h=n.steps.length;let d=0;r>0&&r<h?e.errors.push(function Y2(){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 UN(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 YN(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=Af(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 Uf(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 Uf(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=Af(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=>Sb(P,l,c)),oe=new Map;Cb(oe,this.driver,b,c,ds).forEach(P=>{Sb(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=[],Ae={};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=Ae;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===Ae)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 Uf(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 Uf{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 Sb(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 Yf(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 Ab{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 Ab);(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=Yf(n[0]),n.length>1&&(i=Yf(n[n.length-1]))):n&&(e=Yf(n)),e||i?new pO(t,e,i):null}(n,e);return new Ab(n,e,l,h)}}let yO=(()=>{class t extends U0{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)?Y0(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:U0,useClass:yO},{provide:$f,useFactory:function SO(){return new GN}},{provide:Nc,useClass:DO},{provide:na,useFactory:function AO(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=St({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 AR(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 UR(t,n){return function(){this[t]=n}}function YR(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 Ub(t)}function Ub(t){this._node=t,this._names=Wb(t.getAttribute("class")||"")}function Yb(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(){Yb(this,t)}}function QR(t){return function(){Xb(this,t)}}function ZR(t,n){return function(){(n.apply(this,arguments)?Yb: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}Ub.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 SB(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 SR(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=AR);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?YR:UR)(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 AB(t,n,e){var s,o,i=wB(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?SB: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 UB(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 YB(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,Aa,uo=0,Da=0,Sa=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 Uc(){return ar||(TT(r3),ar=Ea.now()+Wc)}function r3(){ar=0}function Yc(){this._call=this._time=this._next=null}function CT(t,n,e){var i=new Yc;return i.restart(t,n,e),i}function wT(){ar=(Gc=Ea.now())+Wc,uo=Da=0;try{!function o3(){Uc(),++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);Aa=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)),Sa&&(Sa=clearInterval(Sa))):(Sa||(Gc=Ea.now(),Sa=setInterval(a3,1e3)),uo=1,TT(wT)))}function DT(t,n,e){var i=new Yc;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Yc.prototype=CT.prototype={constructor:Yc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Uc():+e)+(null==n?0:+n),!this._next&&Aa!==this&&(Aa?Aa._next=this:jc=this,Aa=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 A3(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)&&A3(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 Y3(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 S3(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 U3(){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=Uc(),_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=Uc(),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 SH(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function AH(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 Sg=Math.sqrt(50),Ag=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>=Sg?10:r>=Ag?5:r>=Eg?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Sg?10:r>=Ag?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>=Sg?s*=10:r>=Ag?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 UT=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 YT=UT;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 YH=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[kX,MX]=sC(XH,YH,nC,VH,HH,BH),[qH,QH]=sC(KT,ZT,Pg,qT,YT,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 SV(t,n){return $e(t.getHours()%12||12,n,2)}function AV(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 UV(t,n){return $e(t.getUTCMonth()+1,n,2)}function YV(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 SC(t){return+t}function AC(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:SV,j:AV,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:SC,s:AC,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:UV,M:YV,p:function et(H){return s[+(H.getUTCHours()>=12)]},q:function jt(H){return 1+~~(H.getUTCMonth()/3)},Q:SC,s:AC,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 Ae(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,YT,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 S$(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 A$(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,Ae,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,Ae=J.length;++Ge<Ae;)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 Ug(){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 Ug(n,e).unknown(i)},Ra.apply(s,arguments),s}function rn(){var r,o,t=Ug().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 UC(){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 UC().domain(t).range(n).unknown(i)},Ra.apply(r,arguments)}function YC(t){this._context=t}function pr(t){return new YC(t)}YC.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 Yg=Math.PI,Xg=2*Yg,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((Yg-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>=Yg)+","+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 U$(t){return t&&t.padAngle}function Y$(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,Ae=J-C;return B*B+W*W>Ge*Ge+Ae*Ae&&(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=U$,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)),Ae=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*Ae)>On?(C+=Ae*=m?1:-1,b-=Ae):(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=Y$(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 S5(t,n){}const A5=function(t){return{model:t}};function E5(t,n){if(1&t&&(x(0,"span"),S(1,S5,0,0,"ng-template",5),T()),2&t){const e=y();_(1),p("ngTemplateOutlet",e.template)("ngTemplateOutletContext",jl(2,A5,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 A(e),y().legendLabelClick.emit(s)})("labelActivate",function(s){return A(e),y().legendLabelActivate.emit(s)})("labelDeactivate",function(s){return A(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"),S(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 A(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"),S(1,j5,1,1,"line",8),S(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 U5(t,n){if(1&t&&(w(),x(0,"g"),S(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 Y5(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),S(2,Y5,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"),S(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 A(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(),S(3,e4,1,6,"rect",2),x(4,"g",3),E("select",function(){A(e);const s=y();return s.onClick(s.circle.data)})("activate",function(){return A(e),y().activateCircle()})("deactivate",function(){return A(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),S(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 A(e),y().labelClick.emit(s)})("activate",function(s){return A(e),y().activate(s)})("deactivate",function(s){return A(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 A(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 A(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=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(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 A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(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 A(e),y().updateDomain(s)}),S(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 A(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 A(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=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(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 U4(t,n){if(1&t){const e=z();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(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 Y4(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 A(e),y().updateDomain(s)}),S(1,Y4,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 A(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 A(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 A(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 A(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=A(e).$implicit;return y().onClick(s,o)})("activate",function(s){const o=A(e).$implicit;return y().onActivate(s,o)})("deactivate",function(s){const o=A(e).$implicit;return y().onDeactivate(s,o)})("dataLabelHeightChanged",function(s){const o=A(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 A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(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=A(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"),S(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 A(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 A(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 Uz(t,n){if(1&t){const e=z();w(),x(0,"g")(1,"g",13),E("select",function(s){return A(e),y(2).onClick(s)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(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 Yz(t,n){if(1&t){const e=z();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,Uz,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 A(e),y().updateDomain(s)}),S(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"),S(1,bj,1,10,"g",1),x(2,"g",2),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(e),y().deactivate.emit(s)})("dblclick",function(s){return A(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 Sj(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 Aj(t,n){if(1&t){const e=z();w(),x(0,"g",3),E("select",function(s){return A(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 A(e),y().onClick(s)})("activate",function(s){return A(e),y().onActivate(s)})("deactivate",function(s){return A(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 Uj(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 Yj(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),S(4,E5,2,4,"span",3),S(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(),S(3,M5,1,5,"ngx-charts-scale-legend",2),S(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),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:[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"),S(1,B5,1,12,"g",0),S(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),S(2,$5,5,9,"g",1),T(),S(3,z5,1,2,"path",2),S(4,U5,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:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),An=(()=>{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"),S(1,Z5,1,14,"g",0),S(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=St({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=St({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&&S(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),S(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),S(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&&(S(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 Aw=sp.MouseEvent;function rp(t,n=!1,e=!0){if("function"==typeof Aw)return new Aw(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(),S(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=SH,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,Ae,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]],[Ae=t===Jc?Ge:ee,$=t===Kc?G:B]]):(ee=X[0][0],B=X[0][1],Ae=X[1][0],$=X[1][1]),oe=ee,W=B,P=Ae,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-Ae,ce)),oe=ee+ce,P=Ae+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=Ae):D>0&&(ce=Math.max(be-Ae,Math.min(Ge-Ae,ce)),oe=ee,P=Ae+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,Ae+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=Ae,Ae=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),AH(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&&(Ae=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?Ae=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?Ae=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo,Ve());break;case 32:b===xg&&(He.altKey?(D&&(Ae=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go):(D<0?Ae=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"),S(1,v4,3,1,"header",0),x(2,"div",1)(3,"ul",2),S(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=St({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=UC().range(n.domain).domain(i);else if("ordinal"===e)s=Ug().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),S(5,N4,1,10,"g",2),S(6,O4,1,9,"g",3),x(7,"g"),S(8,R4,2,9,"g",4),S(9,H4,3,10,"g",5),T()(),S(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,An,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),S(5,z4,1,10,"g",2),S(6,j4,1,9,"g",3),x(7,"g"),S(8,G4,2,9,"g",4),S(9,U4,3,10,"g",5),T()(),S(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,An,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=St({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&&(S(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),S(2,cz,1,10,"g",2),S(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,An,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),S(2,_z,1,10,"g",2),S(3,yz,1,9,"g",3),S(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,An,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&&(S(0,bz,1,22,"g",0),S(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=St({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),r8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),l8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({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),S(5,jz,1,10,"g",2),S(6,Gz,1,12,"g",3),x(7,"g"),S(8,Wz,2,11,"g",4),S(9,Yz,3,9,"g",5),T()(),S(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,An,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"),S(2,Zz,1,2,"g",0),T(),V(3,"g",1)(4,"g",2),S(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=St({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),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),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&&S(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=St({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),m8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({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 Sw(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),S(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&&(S(0,Sj,1,6,"rect",0),S(1,Aj,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=St({type:t}),t.\u0275inj=xt({imports:[[Hi]]}),t})(),w8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({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),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",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,S8,Ce,A8]},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})(),S8=(()=>{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})(),A8=(()=>{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"),S(1,Gj,2,1,"g",0),S(2,Wj,3,4,"g",0),S(3,Uj,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=St({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=St({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=St({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 A(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)("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 A(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)("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 A(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 A(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 A(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 A(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)("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 A(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)("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 A(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)("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(){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,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",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","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","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","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","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","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)}),S(2,N8,2,25,"ng-container",2),S(3,O8,2,24,"ng-container",2),S(4,R8,2,16,"ng-container",2),S(5,B8,2,9,"ng-container",2),S(6,H8,2,17,"ng-container",2),S(7,V8,2,22,"ng-container",2),S(8,$8,2,26,"ng-container",2),S(9,z8,2,32,"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=St({type:t}),t.\u0275inj=xt({imports:[[B0,kO,M8,I8]]}),t})();(function hF(){Xx=!1})(),GP().bootstrapModule(G8).catch(t=>console.error(t))})()})();
|