| Server IP : 216.238.66.20 / Your IP : 216.73.216.248 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/gamliel.mx/htdocs/js/ |
Upload File : |
(self.webpackChunknx_getting_started_rc_ui=self.webpackChunknx_getting_started_rc_ui||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return s},_j:function(){return i},LC:function(){return r},ZN:function(){return m},jt:function(){return a},pV:function(){return f},F4:function(){return h},IO:function(){return p},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t=null){return{type:9,options:t}}function p(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function g(t){Promise.resolve(null).then(t)}class m{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){g(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return X},s1:function(){return T},$s:function(){return k},Qr:function(){return Z},kH:function(){return K},mK:function(){return j},Em:function(){return O},tE:function(){return W},qV:function(){return N},qm:function(){return $},Kd:function(){return H},X6:function(){return P},yG:function(){return F}});var i=n(8583),r=n(7716),s=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),f=n(8002),p=n(5257),g=n(3653),m=n(7519),_=n(6782),y=n(9490),v=n(521),b=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let x=0;const C=new Map;let S=null,k=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=E(e,n);"string"!=typeof e?(A(e),C.set(i,{messageElement:e,referenceCount:0})):C.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=E(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=C.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}S&&0===S.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");S&&this._deleteMessagesContainer(),C.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");A(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),S.appendChild(n),C.set(E(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=C.get(t),n=e&&e.messageElement;S&&n&&S.removeChild(n),C.delete(t)}_createMessagesContainer(){if(!S){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode&&t.parentNode.removeChild(t),S=this._document.createElement("div"),S.id="cdk-describedby-message-container",S.style.visibility="hidden",S.classList.add("cdk-visually-hidden"),this._document.body.appendChild(S)}}_deleteMessagesContainer(){S&&S.parentNode&&(S.parentNode.removeChild(S),S=null)}_removeCdkDescribedByReferenceIds(t){const e=w(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=C.get(e);!function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=C.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=C.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(i.K0))},token:t,providedIn:"root"}),t})();function E(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function A(t){t.id||(t.id="cdk-describedby-message-"+x++)}class M{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new s.xQ,this.change=new s.xQ,t instanceof r.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,f.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,r=e[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class T extends M{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends M{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let D=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===R(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=R(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(v.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(v.t4))},token:t,providedIn:"root"}),t})();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!I(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class L{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let N=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new L(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(D),r.LFG(r.R0b),r.LFG(i.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(D),r.LFG(r.R0b),r.LFG(i.K0))},token:t,providedIn:"root"}),t})(),j=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,y.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,y.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(N),r.Y36(i.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t})();function P(t){return 0===t.offsetX&&0===t.offsetY}function F(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const z=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},U=(0,v.i$)({passive:!0,capture:!0});let B=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(P(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(t))},this._onTouchstart=t=>{F(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(t))},this._options=Object.assign(Object.assign({},V),i),this.modalityDetected=this._modality.pipe((0,g.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,m.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,U),n.addEventListener("mousedown",this._onMousedown,U),n.addEventListener("touchstart",this._onTouchstart,U)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,U),document.removeEventListener("mousedown",this._onMousedown,U),document.removeEventListener("touchstart",this._onTouchstart,U))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(v.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(z,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(v.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(z,8))},token:t,providedIn:"root"}),t})();const q=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let H=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(q,8),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(Y,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(q,8),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(Y,8))},token:t,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(H),r.Y36(b.yq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();const G=new r.OlP("cdk-focus-monitor-default-options"),Q=(0,v.i$)({passive:!0,capture:!0});let W=(()=>{class t{constructor(t,e,n,i,r){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new s.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,v.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,v.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const o={checkChildren:e,subject:new s.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,v.sA)(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Q),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(v.t4),r.LFG(B),r.LFG(i.K0,8),r.LFG(G,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(v.t4),r.LFG(B),r.LFG(i.K0,8),r.LFG(G,8))},token:t,providedIn:"root"}),t})(),K=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(W))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),$=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(v.t4),r.LFG(i.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(v.t4),r.LFG(i.K0))},token:t,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG($))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.ud,b.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(7716),r=n(8583);const s=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(r.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return h},A8:function(){return d},yy:function(){return c},eX:function(){return u},k:function(){return f},Z9:function(){return a}});var i=n(5639),r=n(5917),s=n(9765),o=n(7716);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}disconnect(){}}class c{applyChanges(t,e,n,i,r){t.forEachOperation((t,i,s)=>{let o,a;if(null==t.previousIndex){const r=n(t,i,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(i),a=3):(o=e.get(i),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation((t,s,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,s,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(s,e),l=3):(a=this._moveView(s,o,e,i(t)),l=2),r&&r({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const s=t();return n.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const n=e.indexOf(t);-1===n?t.destroy():e.remove(n)}}_insertViewFromCache(t,e){const n=this._viewCache.pop();return n&&e.insert(n,t),n||null}}class h{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let d=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return x},zL:function(){return l},ZH:function(){return i},jx:function(){return a},yY:function(){return v},JH:function(){return y},uR:function(){return f},K5:function(){return s},hY:function(){return c},Sd:function(){return p},oh:function(){return g},b2:function(){return k},MW:function(){return S},aO:function(){return w},VM:function(){return d},Ku:function(){return h},SV:function(){return _},JU:function(){return o},L_:function(){return u},Mf:function(){return r},LH:function(){return m},Z:function(){return C},xE:function(){return b},Vb:function(){return E}});const i=8,r=9,s=13,o=16,a=17,l=18,c=27,u=32,h=33,d=34,f=35,p=36,g=37,m=38,_=39,y=40,v=46,b=48,w=57,x=65,C=90,S=91,k=224;function E(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},5072:function(t,e,n){"use strict";n.d(e,{Yg:function(){return b},u3:function(){return x}});var i=n(7716),r=n(9490),s=n(9765),o=n(739),a=n(8071),l=n(7574),c=n(5257),u=n(3653),h=n(4395),d=n(8002),f=n(9761),p=n(6782),g=n(521);const m=new Set;let _,y=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!m.has(t))try{_||(_=document.createElement("style"),_.setAttribute("type","text/css"),document.head.appendChild(_)),_.sheet&&(_.sheet.insertRule(`@media ${t} {body{ }}`,0),m.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(g.t4))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(g.t4))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let b=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return w((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=w((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,o.aj)(e);return n=(0,a.z)(n.pipe((0,c.q)(1)),n.pipe((0,u.T)(1),(0,h.b)(0))),n.pipe((0,d.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new l.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,d.U)(({matches:e})=>({query:t,matches:e})),(0,p.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(y),i.LFG(i.R0b))},token:t,providedIn:"root"}),t})();function w(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const x={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),r=n(7716),s=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new s.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(l))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c),r.Y36(r.SBq),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return Q},xu:function(){return G},_G:function(){return j},aV:function(){return Y},X_:function(){return A},Xj:function(){return R},U8:function(){return K}});var i=n(6994),r=n(7716),s=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),f=n(7393);class p{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new g(t,this.predicate,this.inclusive))}}class g extends f.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var m=n(5257),_=n(6782),y=n(6461);const v=(0,s.Mq)();class b{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),v&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),v&&(e.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function C(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function S(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class k{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();C(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let E=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new x,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new b(this._viewportRuler,this._document),this.reposition=t=>new k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(a.K0))},token:t,providedIn:"root"}),t})();class A{constructor(t){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class M{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class T{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let O=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),D=(()=>{class t extends O{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends O{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._pointerDownListener=t=>{this._pointerDownEventTarget=(0,s.sA)(t)},this._clickListener=t=>{const e=(0,s.sA)(t),n="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let r=i.length-1;r>-1;r--){const s=i[r];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e)||s.overlayElement.contains(n))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0),r.LFG(s.t4))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||(0,s.Oy)()){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),(0,s.Oy)()?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(a.K0),r.LFG(s.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(a.K0),r.LFG(s.t4))},token:t,providedIn:"root"}),t})();class L{constructor(t,e,n,i,r,s,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new u.xQ,this._attachments=new u.xQ,this._detachments=new u.xQ,this._locationChanges=h.w.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const N=/([A-Za-z%]+)$/;class j{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),l=this._getOverlayFit(a,e,n,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:a,originPoint:o,position:s,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){const r=z(e);let{x:s,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(s+=a),l&&(o+=l);let c=0-o,u=o+r.height-n.height,h=this._subtractOverflows(r.width,0-s,s+r.width-n.width),d=this._subtractOverflows(r.height,c,u),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=F(this._overlayRef.getConfig().minHeight),o=F(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=z(e),r=this._viewportRect,s=Math.max(t.x+i.width-r.width,0),o=Math.max(t.y+i.height-r.height,0),a=Math.max(r.top-n.top-t.y,0),l=Math.max(r.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=r.width?l||-s:t.x<this._viewportMargin?r.left-n.left-t.x:0,u=i.height<=r.height?a||-o:t.y<this._viewportMargin?r.top-n.top-t.y:0,this._previousPushAmount={x:c,y:u},{x:t.x+c,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new T(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,l,c;if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),r&&(i.maxWidth=(0,l.HM)(r))}this._lastBoundingBoxSize=n,P(this._boundingBox.style,i)}_resetBoundingBoxStyles(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();P(n,this._getExactOverlayY(e,t,i)),P(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=(0,l.HM)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=(0,l.HM)(s.maxWidth):r&&(n.maxWidth="")),P(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=(0,l.HM)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:S(t,n),isOriginOutsideView:C(t,n),isOverlayClipped:S(e,n),isOverlayOutsideView:C(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function P(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function F(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(N);return n&&"px"!==n?null:parseFloat(e)}return t||null}function z(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new j(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new M(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let B=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new U}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new j(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(R))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(i.rL),r.LFG(a.K0),r.LFG(s.t4),r.LFG(R))},token:t,providedIn:"root"}),t})(),q=0,Y=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new A(t);return r.direction=r.direction||this._directionality.value,new L(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+q++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(E),r.LFG(R),r.LFG(r._Vd),r.LFG(B),r.LFG(D),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(a.K0),r.LFG(o.Is),r.LFG(a.Ye),r.LFG(I))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const H=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=new r.OlP("cdk-connected-overlay-scroll-strategy");let G=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Q=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=H);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==y.hY||this.disableClose||(0,y.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new p(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(Y),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(Z),r.Y36(o.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),t})();const W={provide:Z,deps:[Y],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Y,W],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return b},ht:function(){return v},kV:function(){return y},Oy:function(){return w},_i:function(){return _},qK:function(){return u},i$:function(){return g},Mq:function(){return m}});var i=n(7716),r=n(8583);let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(x){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,r.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,f,p;function g(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){if(null==f){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return f=!1,f;if("scrollBehavior"in document.documentElement.style)f=!0;else{const t=Element.prototype.scrollTo;f=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return f}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function v(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function b(t){return t.composedPath?t.composedPath()[0]:t.target}function w(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},ig:function(){return h},Pl:function(){return d},C5:function(){return o},u0:function(){return u},eL:function(){return f},UE:function(){return a}});var i=n(7716),r=n(8583);class s{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends s{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends s{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends s{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),t})(),d=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(r.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},6994:function(t,e,n){"use strict";n.d(e,{PQ:function(){return y},ZD:function(){return b},mF:function(){return _},Cl:function(){return w},rL:function(){return v}});var i=n(9490),r=n(7716),s=n(9765),o=n(5917),a=n(7574),l=n(2759);n(1927),n(4581),n(5319),n(5639),n(7393);var c=n(6465),u=n(6102);new class extends u.v{}(class extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(3098),n(7971),n(8858),n(7519);var h=n(13),d=n(5435),f=n(6782),p=(n(9761),n(3190),n(521)),g=n(8583),m=n(946);n(8345);let _=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,o.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,l.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(p.t4),r.LFG(g.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(p.t4),r.LFG(g.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new s.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,l.R)(this.elementRef.nativeElement,"scroll").pipe((0,f.R)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=(0,p._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,p._i)()?t.left=t.right:1==(0,p._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,p.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==(0,p._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==(0,p._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(_),r.Y36(r.R0b),r.Y36(m.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),v=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new s.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(p.t4),r.LFG(r.R0b),r.LFG(g.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(p.t4),r.LFG(r.R0b),r.LFG(g.K0,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[m.vT,p.ud,b],m.vT,b]}),t})()},552:function(t,e,n){"use strict";n.d(e,{pN:function(){return x},hD:function(){return R},O_:function(){return S},Kb:function(){return H},fo:function(){return T},QJ:function(){return I},Z4:function(){return E},qM:function(){return G},fe:function(){return q},Af:function(){return D},D5:function(){return k},xN:function(){return Z},s$:function(){return V},r2:function(){return W},_J:function(){return Q},Sq:function(){return Y},zC:function(){return it},HT:function(){return ot},Hx:function(){return st},T$:function(){return J},$E:function(){return et},FT:function(){return tt},bH:function(){return nt},pF:function(){return X},nl:function(){return N},oF:function(){return j}});var i=n(9490),r=n(8345),s=n(7716),o=n(946),a=n(521),l=n(6994),c=n(8583),u=n(9765),h=n(4402),d=n(6215),f=n(5639),p=n(5917),g=n(6782),m=n(5257);const _=[[["caption"]],[["colgroup"],["col"]]],y=["caption","colgroup, col"];function v(t,e){if(1&t&&(s.TgZ(0,"th",3),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Udp("text-align",t.justify),s.xp6(1),s.hij(" ",t.headerText," ")}}function b(t,e){if(1&t&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&t){const t=e.$implicit,n=s.oxw();s.Udp("text-align",n.justify),s.xp6(1),s.hij(" ",n.dataAccessor(t,n.name)," ")}}function w(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,i.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const x=new s.OlP("CDK_TABLE"),C=new s.OlP("text-column-options");let S=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),k=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),E=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class A{}const M=w(A);let T=(()=>{class t extends M{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,i.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(x,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,S,5),s.Suo(n,k,5),s.Suo(n,E,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class O{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let D=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(T),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),I=(()=>{class t extends O{constructor(t,e){var n;if(super(t,e),1===(null===(n=t._table)||void 0===n?void 0:n._elementRef.nativeElement.nodeType)){const n=t._table._elementRef.nativeElement.getAttribute("role");e.nativeElement.setAttribute("role","grid"===n||"treegrid"===n?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(T),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[s.qOj]}),t})(),R=(()=>{class t extends O{constructor(t,e){var n;if(super(t,e),1===(null===(n=t._table)||void 0===n?void 0:n._elementRef.nativeElement.nodeType)){const n=t._table._elementRef.nativeElement.getAttribute("role");e.nativeElement.setAttribute("role","grid"===n||"treegrid"===n?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(T),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[s.qOj]}),t})();class L{constructor(){this.tasks=[],this.endTasks=[]}}const N=new s.OlP("_COALESCED_STYLE_SCHEDULER");let j=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new u.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new L,this._getScheduleObservable().pipe((0,g.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new L;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof V?t.headerCell.template:this instanceof q?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class F extends P{}const z=w(F);let V=(()=>{class t extends z{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(x,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class U extends P{}const B=w(U);let q=(()=>{class t extends B{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(x,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),Y=(()=>{class t extends P{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(x,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),H=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[H],encapsulation:2}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[H],encapsulation:2}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[H],encapsulation:2}),t})(),W=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const K=["top","bottom","left","right"];class ${constructor(t,e,n,i,r=!0,s=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t<i.children.length;t++)n.push(i.children[t])}this._coalescedStyleScheduler.schedule(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=t[0],s=r.children.length,o=this._getCellWidths(r,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n),c=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const i="rtl"===this.direction,r=i?"right":"left",h=i?"left":"right";for(const o of t)for(let t=0;t<s;t++){const i=o.children[t];e[t]&&this._addStickyStyle(i,r,a[t],t===c),n[t]&&this._addStickyStyle(i,h,l[t],t===u)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===c?[]:o.slice(0,c+1).map((t,n)=>e[n]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:o.slice(u).map((t,e)=>n[e+u]?t:null).reverse()}))})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,r="bottom"===n?e.slice().reverse():e,s=[],o=[],a=[];for(let c=0,u=0;c<i.length;c++){if(!r[c])continue;s[c]=u;const t=i[c];a[c]=this._isNativeHtmlTable?Array.from(t.children):[t];const e=t.getBoundingClientRect().height;u+=e,o[c]=e}const l=r.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var t,e;for(let o=0;o<i.length;o++){if(!r[o])continue;const t=s[o],e=o===l;for(const i of a[o])this._addStickyStyle(i,n,t,e)}"top"===n?null===(t=this._positionListener)||void 0===t||t.stickyHeaderRowsUpdated({sizes:o,offsets:s,elements:a}):null===(e=this._positionListener)||void 0===e||e.stickyFooterRowsUpdated({sizes:o,offsets:s,elements:a})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="",t.classList.remove(this._borderCellCss[n]);K.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n,i){t.classList.add(this._stickCellCss),i&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of K)t.style[i]&&(n+=e[i]);return n?`${n}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let r=0;r<i.length;r++)n.push(i[r].getBoundingClientRect().width);return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(t,e){const n=[];let i=0;for(let r=0;r<t.length;r++)e[r]&&(n[r]=i,i+=t[r]);return n}_getStickyEndColumnPositions(t,e){const n=[];let i=0;for(let r=t.length;r>0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}const X=new s.OlP("CDK_SPL");let J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),tt=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),et=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),nt=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),it=(()=>{class t{constructor(t,e,n,i,r,o,a,l,c,h,f){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=a,this._viewRepeater=l,this._coalescedStyleScheduler=c,this._viewportRuler=h,this._stickyPositioningListener=f,this._onDestroy=new u.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new s.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,i.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,i.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,g.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i<e.length;i++)this._renderRows[i].rowDef===t&&n.push(e[i]);this._addStickyColumnStyles(n,t)}),n.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let i=this._data[n];const r=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let e=0;e<r.length;e++){let n=r[e];const i=this._cachedRenderRowsMap.get(n.data);i.has(n.rowDef)?i.get(n.rowDef).push(n):i.set(n.rowDef,[n]),t.push(n)}}return t}_getRenderRowsForData(t,e,n){return this._getRowDefs(t,e).map(i=>{const r=n&&n.has(i)?n.get(i):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),rt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=rt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=rt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=rt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,r.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,f.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,p.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,g.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),r=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n<t.viewContainer.length;n++){const i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(n=>!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e<n;e++){const i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new $(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,p.of)()).pipe((0,g.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(o.Is,8),s.Y36(c.K0),s.Y36(a.t4),s.Y36(r.k),s.Y36(N),s.Y36(l.rL),s.Y36(X,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,W,5),s.Suo(n,T,5),s.Suo(n,Y,5),s.Suo(n,V,5),s.Suo(n,q,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(J,7),s.Gf(tt,7),s.Gf(et,7),s.Gf(nt,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[s._Bn([{provide:x,useExisting:t},{provide:r.k,useClass:r.yy},{provide:N,useClass:j},{provide:X,useValue:null}])],ngContentSelectors:y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[tt,J,nt,et],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function rt(t,e){return t.concat(Array.from(e))}let st=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(it,8),s.Y36(C,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){if(1&t&&(s.Gf(T,7),s.Gf(S,7),s.Gf(k,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.columnDef=t.first),s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first)}},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(s.ynx(0,0),s.YNc(1,v,2,3,"th",1),s.YNc(2,b,2,3,"td",2),s.BQk())},directives:[T,k,S,D,R],encapsulation:2}),t})(),ot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[l.Cl]]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return r},HM:function(){return a},fI:function(){return l},su:function(){return s},du:function(){return c}});var i=n(7716);function r(t){return null!=t&&"false"!=`${t}`}function s(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}function c(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(e);for(const t of i){const e=`${t}`.trim();e&&n.push(e)}}return n}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return b},Ov:function(){return Q},ez:function(){return W},K0:function(){return l},Do:function(){return x},V_:function(){return h},Ye:function(){return C},S$:function(){return y},mk:function(){return D},sg:function(){return R},O5:function(){return N},PC:function(){return B},RF:function(){return z},n9:function(){return V},ED:function(){return U},tP:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return X},JF:function(){return et},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return s},Mx:function(){return O},HT:function(){return o}});var i=n(7716);let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d((0,i.LFG)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const b=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(k(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,i.Yz7)({factory:S,token:t,providedIn:"root"}),t})();function S(){return new C((0,i.LFG)(y),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var E=(()=>((E=E||{})[E.Zero=0]="Zero",E[E.One=1]="One",E[E.Two=2]="Two",E[E.Few=3]="Few",E[E.Many=4]="Many",E[E.Other=5]="Other",E))();const A=i.kL8;class M{}let T=(()=>{class t extends M{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function O(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let D=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class I{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 R=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new I(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new L(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new L(t,r);e.push(s)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class L{constructor(t,e){this.record=t,this.view=e}}let N=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new j,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){P("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){P("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class j{constructor(){this.$implicit=null,this.ngIf=null}}function P(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class F{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let z=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),V=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new F(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(z,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),U=(()=>{class t{constructor(t,e,n){n._addDefault(new F(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(z,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),B=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),q=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();class Y{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class H{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Z=new H,G=new Y;let Q=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return Z;if((0,i.F4k)(e))return G;throw Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:M,useClass:T}]}),t})();const K="browser";function $(t){return t===K}let X=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new J((0,i.LFG)(l),window)}),t})();class J{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=tt(this.window.history)||tt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function tt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class et{}},1841:function(t,e,n){"use strict";n.d(e,{TP:function(){return O},eN:function(){return M},JF:function(){return U},UA:function(){return E},WM:function(){return d}});var i=n(8583),r=n(7716),s=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(g(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:y(this.body)||v(this.body)||b(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||b(this.body)?null:v(this.body)?this.body.type||null:y(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new w(n,i,s,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var x=(()=>((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x))();class C{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends C{constructor(t={}){super(t),this.type=x.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k extends C{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new k({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends C{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function A(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let M=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof w)i=t;else{let r,s;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new w(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,s.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===n.observe)return r;const o=r.pipe((0,l.h)(t=>t instanceof k));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,A(n,e))}post(t,e,n={}){return this.request("POST",t,A(n,e))}put(t,e,n={}){return this.request("PUT",t,A(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(u))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O=new r.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;let R=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new S({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(I,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new k({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:x.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:x.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const L=new r.OlP("XSRF_COOKIE_NAME"),N=new r.OlP("XSRF_HEADER_NAME");class j{}let P=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(L))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(j),r.LFG(N))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(O,[]);this.chain=t.reduceRight((t,e)=>new T(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:F,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:L,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[F,{provide:O,useExisting:F,multi:!0},{provide:j,useClass:P},{provide:L,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[M,{provide:u,useClass:z},R,{provide:h,useExisting:R}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},7716:function(t,e,n){"use strict";n.d(e,{deG:function(){return en},tb:function(){return Ll},AFp:function(){return Tl},ip1:function(){return Al},CZH:function(){return Ml},hGG:function(){return Ac},z2F:function(){return _c},sBO:function(){return Aa},Sil:function(){return Hl},_Vd:function(){return $o},EJc:function(){return Pl},SBq:function(){return ea},qLn:function(){return mi},vpe:function(){return al},gxx:function(){return ns},tBr:function(){return xn},XFs:function(){return T},OlP:function(){return tn},zs3:function(){return _s},ZZ4:function(){return ba},aQg:function(){return xa},soG:function(){return jl},YKP:function(){return Pa},v3s:function(){return vc},h0i:function(){return ja},PXZ:function(){return dc},R0b:function(){return Ql},FiY:function(){return Cn},Lbi:function(){return Rl},g9A:function(){return Il},n_E:function(){return cl},Qsj:function(){return ra},FYo:function(){return ia},JOm:function(){return vi},Tiy:function(){return oa},q3G:function(){return ui},tp0:function(){return Sn},EAV:function(){return xc},Rgc:function(){return Ia},dDg:function(){return ec},DyG:function(){return nn},GfV:function(){return aa},s_b:function(){return za},ifc:function(){return N},eFA:function(){return fc},G48:function(){return uc},Gpc:function(){return f},f3M:function(){return vn},X6Q:function(){return cc},_c5:function(){return kc},VLi:function(){return rc},c2e:function(){return Nl},zSh:function(){return rs},wAp:function(){return Fo},vHH:function(){return m},EiD:function(){return li},mCW:function(){return Hn},qzn:function(){return Ln},JVY:function(){return jn},pB0:function(){return Vn},eBb:function(){return Fn},L6k:function(){return Pn},LAX:function(){return zn},cg1:function(){return No},Tjo:function(){return Sc},kL8:function(){return jo},yhl:function(){return Nn},dqk:function(){return V},sIi:function(){return As},CqO:function(){return Qs},QGY:function(){return Zs},F4k:function(){return Gs},RDi:function(){return xt},AaK:function(){return u},z3N:function(){return Rn},qOj:function(){return vs},TTD:function(){return mt},_Bn:function(){return Qo},xp6:function(){return sr},uIk:function(){return Is},Gre:function(){return To},ekj:function(){return po},Suo:function(){return wl},Xpm:function(){return $},lG2:function(){return rt},Yz7:function(){return b},cJS:function(){return w},oAB:function(){return et},Yjl:function(){return st},Y36:function(){return js},_UZ:function(){return Us},GkF:function(){return Ys},BQk:function(){return qs},ynx:function(){return Bs},qZA:function(){return Vs},TgZ:function(){return zs},EpF:function(){return Hs},n5z:function(){return Ke},Ikx:function(){return Oo},LFG:function(){return yn},$8M:function(){return Xe},NdJ:function(){return Ws},CRH:function(){return xl},kcU:function(){return ge},O4$:function(){return pe},oxw:function(){return to},ALo:function(){return rl},lcZ:function(){return sl},Hsn:function(){return io},F$t:function(){return no},Q6J:function(){return Ps},s9C:function(){return ro},MGl:function(){return so},VKq:function(){return tl},WLB:function(){return el},iGM:function(){return vl},MAs:function(){return Ns},CHM:function(){return Vt},LSH:function(){return hi},kYT:function(){return nt},Udp:function(){return fo},WFA:function(){return Ks},d8E:function(){return Do},YNc:function(){return Ls},W1O:function(){return El},_uU:function(){return ko},Oqu:function(){return Eo},hij:function(){return Ao},AsE:function(){return Mo},Gf:function(){return bl}});var i=n(9765),r=n(5319),s=n(7574),o=n(6682),a=n(8819);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function f(t){return t.__forward_ref__=f,t.toString=function(){return u(this())},t}function p(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function v(t,e){const n=e?` in ${e}`:"";throw new m("201",`No provider for ${y(t)} found${n}`)}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function x(t){return C(t,k)||C(t,A)}function C(t,e){return t.hasOwnProperty(e)?t[e]:null}function S(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(M))?t[E]:null}const k=l({"\u0275prov":l}),E=l({"\u0275inj":l}),A=l({ngInjectableDef:l}),M=l({ngInjectorDef:l});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let O;function D(t){const e=O;return O=t,e}function I(t,e,n){const i=x(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&T.Optional?null:void 0!==e?e:void v(u(t),"Injector")}function R(t){return{toString:t}.toString()}var L=(()=>((L=L||{})[L.OnPush=0]="OnPush",L[L.Default=1]="Default",L))(),N=(()=>((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N))();const j="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z="undefined"!=typeof global&&global,V=j||z||P||F,U={},B=[],q=l({"\u0275cmp":l}),Y=l({"\u0275dir":l}),H=l({"\u0275pipe":l}),Z=l({"\u0275mod":l}),G=l({"\u0275loc":l}),Q=l({"\u0275fac":l}),W=l({__NG_ELEMENT_ID__:l});let K=0;function $(t){return R(()=>{const e={},n={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===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||B,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||N.Emulated,id:"c",styles:t.styles||B,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=K++,n.inputs=it(t.inputs,e),n.outputs=it(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(J):null,n})}function X(t){return ot(t)||function(t){return t[Y]||null}(t)}function J(t){return function(t){return t[H]||null}(t)}const tt={};function et(t){return R(()=>{const e={type:t.type,bootstrap:t.bootstrap||B,declarations:t.declarations||B,imports:t.imports||B,exports:t.exports||B,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function nt(t,e){return R(()=>{const n=at(t,!0);n.declarations=e.declarations||B,n.imports=e.imports||B,n.exports=e.exports||B})}function it(t,e){if(null==t)return U;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const rt=$;function st(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ot(t){return t[q]||null}function at(t,e){const n=t[Z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ct(t){return Array.isArray(t)&&!0===t[1]}function ut(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function dt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function pt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class gt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function mt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=vt),yt}function yt(){const t=bt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===U)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function vt(t,e,n,i){const r=bt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:U,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new gt(l&&l.currentValue,e,o===U),t[i]=e}function bt(t){return t.__ngSimpleChanges__||null}let wt;function xt(t){wt=t}function Ct(t){return!!t.listen}mt.ngInherit=!0;const St={createRenderer:(t,e)=>void 0!==wt?wt:"undefined"!=typeof document?document:void 0};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function Et(t,e){return kt(e[t])}function At(t,e){return kt(e[t.index])}function Mt(t,e){return t.data[e]}function Tt(t,e){return t[e]}function Ot(t,e){const n=e[t];return lt(n)?n:n[0]}function Dt(t){return 4==(4&t[2])}function It(t){return 128==(128&t[2])}function Rt(t,e){return null==e?null:t[e]}function Lt(t){t[18]=0}function Nt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const jt={lFrame:ae(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Pt(){return jt.bindingsEnabled}function Ft(){return jt.lFrame.lView}function zt(){return jt.lFrame.tView}function Vt(t){return jt.lFrame.contextLView=t,t[8]}function Ut(){let t=Bt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Bt(){return jt.lFrame.currentTNode}function qt(t,e){const n=jt.lFrame;n.currentTNode=t,n.isParent=e}function Yt(){return jt.lFrame.isParent}function Ht(){jt.lFrame.isParent=!1}function Zt(){return jt.isInCheckNoChangesMode}function Gt(t){jt.isInCheckNoChangesMode=t}function Qt(){const t=jt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Wt(){return jt.lFrame.bindingIndex}function Kt(){return jt.lFrame.bindingIndex++}function $t(t){const e=jt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Xt(t,e){const n=jt.lFrame;n.bindingIndex=n.bindingRootIndex=t,Jt(e)}function Jt(t){jt.lFrame.currentDirectiveIndex=t}function te(t){const e=jt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ee(){return jt.lFrame.currentQueryIndex}function ne(t){jt.lFrame.currentQueryIndex=t}function ie(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function re(t,e,n){if(n&T.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&T.Host||(i=ie(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=jt.lFrame=oe();return i.currentTNode=e,i.lView=t,!0}function se(t){const e=oe(),n=t[1];jt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function oe(){const t=jt.lFrame,e=null===t?null:t.child;return null===e?ae(t):e}function ae(t){const e={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=e),e}function le(){const t=jt.lFrame;return jt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ce=le;function ue(){const t=le();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 he(){return jt.lFrame.selectedIndex}function de(t){jt.lFrame.selectedIndex=t}function fe(){const t=jt.lFrame;return Mt(t.tView,t.selectedIndex)}function pe(){jt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ge(){jt.lFrame.currentNamespace=null}function me(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function _e(t,e,n){be(t,e,3,n)}function ye(t,e,n,i){(3&t[2])===n&&be(t,e,n,i)}function ve(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function be(t,e,n,i){const r=null!=i?i:-1,s=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<s;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(we(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function we(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}class xe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ce(t,e,n){const i=Ct(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];ke(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Se(t){return 3===t||4===t||6===t}function ke(t){return 64===t.charCodeAt(0)}function Ee(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Ae(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Ae(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Me(t){return-1!==t}function Te(t){return 32767&t}function Oe(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let De=!0;function Ie(t){const e=De;return De=t,e}let Re=0;function Le(t,e){const n=je(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ne(i.data,t),Ne(e,null),Ne(i.blueprint,null));const r=Pe(t,e),s=t.injectorIndex;if(Me(r)){const t=Te(r),n=Oe(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function je(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Pe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Fe(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(i=n[W]),null==i&&(i=n[W]=Re++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function ze(t,e,n){if(n&T.Optional)return t;v(e,"NodeInjector")}function Ve(t,e,n,i){if(n&T.Optional&&void 0===i&&(i=null),0==(n&(T.Self|T.Host))){const r=t[9],s=D(void 0);try{return r?r.get(e,i,n&T.Optional):I(e,i,n&T.Optional)}finally{D(s)}}return ze(i,e,n)}function Ue(t,e,n,i=T.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(W)?t[W]:void 0;return"number"==typeof e?e>=0?255&e:qe:e}(n);if("function"==typeof s){if(!re(e,t,i))return i&T.Host?ze(r,n,i):Ve(e,n,i,r);try{const t=s(i);if(null!=t||i&T.Optional)return t;v(n)}finally{ce()}}else if("number"==typeof s){let r=null,o=je(t,e),a=-1,l=i&T.Host?e[16][6]:null;for((-1===o||i&T.SkipSelf)&&(a=-1===o?Pe(t,e):e[o+8],-1!==a&&Qe(i,!1)?(r=e[1],o=Te(a),e=Oe(a,e)):o=-1);-1!==o;){const t=e[1];if(Ge(s,o,t.data)){const t=Ye(o,e,n,r,i,l);if(t!==Be)return t}a=e[o+8],-1!==a&&Qe(i,e[1].data[o+8]===l)&&Ge(s,o,e)?(r=t,o=Te(a),e=Oe(a,e)):o=-1}}}return Ve(e,n,i,r)}const Be={};function qe(){return new We(Ut(),Ft())}function Ye(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=He(a,o,n,null==i?ht(a)&&De:i!=o&&0!=(3&a.type),r&T.Host&&s===a);return null!==l?Ze(e,o,l,a):Be}function He(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(r){const t=o[l];if(t&&ft(t)&&t.type===n)return l}return null}function Ze(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof xe){const o=r;o.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(y(s[n]));const a=Ie(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?D(o.injectImpl):null;re(t,i,T.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=_t(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&D(l),Ie(a),o.resolving=!1,ce()}}return r}function Ge(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Qe(t,e){return!(t&T.Self||t&T.Host&&e)}class We{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ue(this._tNode,this._lView,t,void 0,e)}}function Ke(t){return R(()=>{const e=t.prototype.constructor,n=e[Q]||$e(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[Q]||$e(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function $e(t){return g(t)?()=>{const e=$e(p(t));return e&&e()}:pt(t)}function Xe(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const r=n[i];if(Se(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(Ut(),t)}function Je(t,e,n){return R(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class tn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const en=new tn("AnalyzeForEntryComponents"),nn=Function;function rn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),rn(i,e)):e!==t&&e.push(i)}return e}function sn(t,e){t.forEach(t=>Array.isArray(t)?sn(t,e):e(t))}function on(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function an(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ln(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function cn(t,e,n){let i=hn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function un(t,e){const n=hn(t,e);if(n>=0)return t[1|n]}function hn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const dn={},fn=/\n/gm,pn=l({provide:String,useValue:l});let gn;function mn(t){const e=gn;return gn=t,e}function _n(t,e=T.Default){if(void 0===gn)throw new Error("inject() must be called from an injection context");return null===gn?I(t,void 0,e):gn.get(t,e&T.Optional?null:void 0,e)}function yn(t,e=T.Default){return(O||_n)(p(t),e)}const vn=yn;function bn(t){const e=[];for(let n=0;n<t.length;n++){const i=p(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=T.Default;for(let e=0;e<i.length;e++){const r=i[e],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?t=r.token:n|=s:t=r}e.push(yn(t,n))}else e.push(yn(i))}return e}function wn(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const xn=wn(Je("Inject",t=>({token:t})),-1),Cn=wn(Je("Optional"),8),Sn=wn(Je("SkipSelf"),4);let kn;function En(t){var e;return(null===(e=function(){if(void 0===kn&&(kn=null,V.trustedTypes))try{kn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return kn}())||void 0===e?void 0:e.createHTML(t))||t}class An{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends An{getTypeName(){return"HTML"}}class Tn extends An{getTypeName(){return"Style"}}class On extends An{getTypeName(){return"Script"}}class Dn extends An{getTypeName(){return"URL"}}class In extends An{getTypeName(){return"ResourceURL"}}function Rn(t){return t instanceof An?t.changingThisBreaksApplicationSecurity:t}function Ln(t,e){const n=Nn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Nn(t){return t instanceof An&&t.getTypeName()||null}function jn(t){return new Mn(t)}function Pn(t){return new Tn(t)}function Fn(t){return new On(t)}function zn(t){return new Dn(t)}function Vn(t){return new In(t)}class Un{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(En(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Bn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=En(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=En(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const qn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Yn=/^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 Hn(t){return(t=String(t)).match(qn)||t.match(Yn)?t:"unsafe:"+t}function Zn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Gn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Qn=Zn("area,br,col,hr,img,wbr"),Wn=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kn=Zn("rp,rt"),$n=Gn(Kn,Wn),Xn=Gn(Qn,Gn(Wn,Zn("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")),Gn(Kn,Zn("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")),$n),Jn=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ti=Zn("srcset"),ei=Gn(Jn,ti,Zn("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"),Zn("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")),ni=Zn("script,style,template");class ii{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Xn.hasOwnProperty(e))return this.sanitizedSomething=!0,!ni.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!ei.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;Jn[s]&&(o=Hn(o)),ti[s]&&(i=o,o=(i=String(i)).split(",").map(t=>Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',oi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Xn.hasOwnProperty(e)&&!Qn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(oi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const ri=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,si=/([^\#-~ |!])/g;function oi(t){return t.replace(/&/g,"&").replace(ri,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(si,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ai;function li(t,e){let n=null;try{ai=ai||function(t){const e=new Bn(t);return function(){try{return!!(new window.DOMParser).parseFromString(En(""),"text/html")}catch(t){return!1}}()?new Un(e):e}(t);let i=e?String(e):"";n=ai.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=ai.getInertBodyElement(i)}while(i!==s);return En((new ii).sanitizeChildren(ci(n)||n))}finally{if(n){const t=ci(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ci(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ui=(()=>((ui=ui||{})[ui.NONE=0]="NONE",ui[ui.HTML=1]="HTML",ui[ui.STYLE=2]="STYLE",ui[ui.SCRIPT=3]="SCRIPT",ui[ui.URL=4]="URL",ui[ui.RESOURCE_URL=5]="RESOURCE_URL",ui))();function hi(t){const e=function(){const t=Ft();return t&&t[12]}();return e?e.sanitize(ui.URL,t)||"":Ln(t,"URL")?Rn(t):Hn(_(t))}function di(t,e){t.__ngContext__=e}function fi(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function pi(t){return t.ngOriginalError}function gi(t,...e){t.error(...e)}class mi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t&&t.ngErrorLogger||gi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(pi(t)):null}_findOriginalError(t){let e=t&&pi(t);for(;e&&pi(e);)e=pi(e);return e||null}}const _i=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function yi(t){return t instanceof Function?t():t}var vi=(()=>((vi=vi||{})[vi.Important=1]="Important",vi[vi.DashCase=2]="DashCase",vi))();function bi(t,e){return(void 0)(t,e)}function wi(t){const e=t[3];return ct(e)?e[3]:e}function xi(t){return Si(t[13])}function Ci(t){return Si(t[4])}function Si(t){for(;null!==t&&!ct(t);)t=t[4];return t}function ki(t,e,n,i,r){if(null!=i){let s,o=!1;ct(i)?s=i:lt(i)&&(o=!0,i=i[0]);const a=kt(i);0===t&&null!==n?null==r?Ri(e,n,a):Ii(e,n,a,r||null,!0):1===t&&null!==n?Ii(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Ni(t,e);i&&function(t,e,n,i){Ct(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==kt(n)&&ki(e,t,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];qi(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function Ei(t,e,n){return Ct(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ai(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Nt(r,-1)),n.splice(i,1)}function Mi(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&Ai(s,i),e>0&&(t[n-1][4]=i[4]);const o=an(t,10+e);qi(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Ti(t,e){if(!(256&e[2])){const n=e[11];Ct(n)&&n.destroyNode&&qi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Oi(t[1],t);for(;e;){let n=null;if(lt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)lt(e)&&Oi(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&Oi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Oi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof xe)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],r=e[n+1];try{r.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const t=n[s+1],o="function"==typeof t?t(e):kt(e[t]),a=i[r=n[s+2]],l=n[s+3];"boolean"==typeof l?o.removeEventListener(n[s],a,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&Ct(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ct(e[3])){n!==e[3]&&Ai(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Di(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===N.None||e===N.Emulated)return null}return At(i,n)}(t,e.parent,n)}function Ii(t,e,n,i,r){Ct(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function Ri(t,e,n){Ct(t)?t.appendChild(e,n):e.appendChild(n)}function Li(t,e,n,i,r){null!==i?Ii(t,e,n,i,r):Ri(t,e,n)}function Ni(t,e){return Ct(t)?t.parentNode(e):e.parentNode}function ji(t,e,n){return Pi(t,e,n)}let Pi=function(t,e,n){return 40&t.type?At(t,n):null};function Fi(t,e,n,i){const r=Di(t,i,e),s=e[11],o=ji(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)Li(s,r,n[a],o,!1);else Li(s,r,n,o,!1)}function zi(t,e){if(null!==e){const n=e.type;if(3&n)return At(e,t);if(4&n)return Ui(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return zi(t,n);{const n=t[e.index];return ct(n)?Ui(-1,n):kt(n)}}if(32&n)return bi(e,t)()||kt(t[e.index]);{const n=Vi(t,e);return null!==n?Array.isArray(n)?n[0]:zi(wi(t[16]),n):zi(t,e.next)}}return null}function Vi(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Ui(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return zi(t,i)}return e[7]}function Bi(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&di(kt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Bi(t,e,n.child,i,r,s,!1),ki(e,t,r,a,s);else if(32&l){const o=bi(n,i);let l;for(;l=o();)ki(e,t,r,l,s);ki(e,t,r,a,s)}else 16&l?Yi(t,e,i,n,r,s):ki(e,t,r,a,s);n=o?n.projectionNext:n.next}}function qi(t,e,n,i,r,s){Bi(n,i,t.firstChild,e,r,s,!1)}function Yi(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ki(e,t,r,a[l],s);else Bi(t,e,a,o[3],r,s,!0)}function Hi(t,e,n){Ct(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Zi(t,e,n){Ct(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Gi(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function Qi(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==Gi(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Wi(t){return 4===t.type&&"ng-template"!==t.value}function Ki(t,e,n){return e===(4!==t.type||n?t.value:"ng-template")}function $i(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Se(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Ki(t,l,n)||""===l&&1===e.length){if(Xi(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!Qi(t.attrs,c,n)){if(Xi(i))return!1;o=!0}continue}const u=Ji(8&i?"class":l,r,Wi(t),n);if(-1===u){if(Xi(i))return!1;o=!0;continue}if(""!==c){let t;t=u>s?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Gi(e,c,0)||2&i&&c!==t){if(Xi(i))return!1;o=!0}}}}else{if(!o&&!Xi(i)&&!Xi(l))return!1;if(o&&Xi(l))continue;o=!1,i=l|1&i}}return Xi(i)||o}function Xi(t){return 0==(1&t)}function Ji(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function tr(t,e,n=!1){for(let i=0;i<e.length;i++)if($i(t,e[i],n))return!0;return!1}function er(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function nr(t,e){return t?":not("+e.trim()+")":e}function ir(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Xi(o)||(e+=nr(s,r),r=""),i=o,s=s||!Xi(i);n++}return""!==r&&(e+=nr(s,r)),e}const rr={};function sr(t){or(zt(),Ft(),he()+t,Zt())}function or(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&_e(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ye(e,i,0,n)}de(n)}function ar(t,e){return t<<17|e<<2}function lr(t){return t>>17&32767}function cr(t){return 2|t}function ur(t){return(131068&t)>>2}function hr(t,e){return-131069&t|e<<2}function dr(t){return 1|t}function fr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];ne(r),n.contentQueries(2,e[s],s)}}}function pr(t,e,n,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Lt(u),u[3]=u[15]=t,u[8]=n,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]=s,u[16]=2==e.type?t[16]:u,u}function gr(t,e,n,i,r){let s=t.data[e];if(null===s)s=function(t,e,n,i,r){const s=Bt(),o=Yt(),a=t.data[e]=function(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(t,e,n,i,r),jt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const t=function(){const t=jt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return qt(s,!0),s}function mr(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function _r(t,e,n){se(e);try{const i=t.viewQuery;null!==i&&Gr(1,i,n);const r=t.template;null!==r&&br(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&fr(t,e),t.staticViewQueries&&Gr(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)Br(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,ue()}}function yr(t,e,n,i){const r=e[2];if(256==(256&r))return;se(e);const s=Zt();try{Lt(e),jt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&br(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&_e(e,n,null)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,null),ve(e,0)}if(function(t){for(let e=xi(t);null!==e;e=Ci(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Nt(i,1),n[2]|=1024}}}(e),function(t){for(let e=xi(t);null!==e;e=Ci(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];It(n)&&yr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&fr(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&_e(e,n)}else{const n=t.contentHooks;null!==n&&ye(e,n,1),ve(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)de(~i);else{const r=i,s=n[++t],o=n[++t];Xt(s,r),o(2,e[r])}}}finally{de(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Vr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Gr(2,l,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&_e(e,n)}else{const n=t.viewHooks;null!==n&&ye(e,n,2),ve(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Nt(e[3],-1))}finally{ue()}}function vr(t,e,n,i){const r=e[10],s=!Zt(),o=Dt(e);try{s&&!o&&r.begin&&r.begin(),o&&_r(t,e,i),yr(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function br(t,e,n,i,r){const s=he(),o=2&i;try{de(-1),o&&e.length>20&&or(t,e,20,Zt()),n(i,r)}finally{de(s)}}function wr(t,e,n){if(ut(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function xr(t,e,n){Pt()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Le(n,e),di(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=ft(i);s&&jr(e,n,i);const l=Ze(e,t,a,n);di(l,e),null!==o&&Pr(0,a-r,l,i,0,o),s&&(Ot(n.index,e)[8]=l)}}(t,e,n,At(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=jt.lFrame.currentDirectiveIndex;try{de(s);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];Jt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Dr(i,r)}}finally{de(-1),Jt(o)}}(t,e,n))}function Cr(t,e,n=At){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Sr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=kr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function kr(t,e,n,i,r,s,o,a,l,c){const u=20+i,h=u+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:rr);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Er(t,e,n,i){const r=Wr(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&Kr(t).push(i,r.length-1))}function Ar(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Mr(t,e,n,i,r,s,o,a){const l=At(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[i])?(Jr(t,n,c,i,r),ht(e)&&function(t,e){const n=Ot(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,e.value||"",i):r,Ct(s)?s.setProperty(l,i,r):ke(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Tr(t,e,n,i){let r=!1;if(Pt()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];tr(n,o.selectors,!1)&&(r||(r=[]),Fe(Le(n,e),t,o.type),ft(o)?(Ir(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,Lr(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,l=mr(t,e,s.length,null);for(let r=0;r<s.length;r++){const c=s[r];n.mergedAttrs=Ee(n.mergedAttrs,c.hostAttrs),Nr(t,n,e,l,c),Rr(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===r||Wi(e)?null:Fr(n,r);s.push(c),o=Ar(n,l,o),a=Ar(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new m("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Ee(n.mergedAttrs,n.attrs),r}function Or(t,e,n,i,r,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function Dr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ir(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Rr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ft(e)&&(n[""]=t)}}function Lr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Nr(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=pt(r.type)),o=new xe(s,ft(r),null);t.blueprint[i]=o,n[i]=o,Or(t,e,0,i,mr(t,n,r.hostVars,rr),r)}function jr(t,e,n){const i=At(e,t),r=Sr(n),s=t[10],o=qr(t,pr(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function Pr(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function Fr(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function zr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Vr(t,e){const n=Ot(e,t);if(It(n)){const t=n[1];80&n[2]?yr(t,n,t.template,n[8]):n[5]>0&&Ur(n)}}function Ur(t){for(let n=xi(t);null!==n;n=Ci(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];yr(t,e,t.template,e[8])}else e[5]>0&&Ur(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Ot(e[n],t);It(i)&&i[5]>0&&Ur(i)}}function Br(t,e){const n=Ot(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),_r(i,n,n[8])}function qr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Yr(t){for(;t;){t[2]|=64;const e=wi(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Hr(t,e,n){const i=e[10];i.begin&&i.begin();try{yr(t,e,t.template,n)}catch(r){throw Xr(e,r),r}finally{i.end&&i.end()}}function Zr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=fi(n),r=i[1];vr(r,i,r.template,n)}}(t[8])}function Gr(t,e,n){ne(0),e(t,n)}const Qr=(()=>Promise.resolve(null))();function Wr(t){return t[7]||(t[7]=[])}function Kr(t){return t.cleanup||(t.cleanup=[])}function $r(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Xr(t,e){const n=t[9],i=n?n.get(mi,null):null;i&&i.handleError(e)}function Jr(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ts(t,e,n){const i=Et(e,t);!function(t,e,n){Ct(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function es(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=h(r,t):2==s&&(i=h(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const ns=new tn("INJECTOR",-1);class is{get(t,e=dn){if(e===dn){const e=new Error(`NullInjectorError: No provider for ${u(t)}!`);throw e.name="NullInjectorError",e}return e}}const rs=new tn("Set Injector scope."),ss={},os={};let as;function ls(){return void 0===as&&(as=new is),as}function cs(t,e=null,n=null,i){return new us(t,n,e||ls(),i)}class us{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&sn(e,n=>this.processProvider(n,t,e)),sn([t],t=>this.processInjectorType(t,[],r)),this.records.set(ns,fs(void 0,this));const s=this.records.get(rs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=dn,n=T.Default){this.assertNotDestroyed();const i=mn(this),r=D(void 0);try{if(!(n&T.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof tn)&&x(t);e=n&&this.injectableDefInScope(n)?fs(hs(t),ss):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&T.Self?ls():this.parent).get(t,e=n&T.Optional&&e===dn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(u(t)),i)throw o;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=u(e);if(Array.isArray(e))r=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(fn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{D(r),mn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=p(t)))return!1;let i=S(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=S(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{sn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];sn(i,t=>this.processProvider(t,n,i||B))}}this.injectorDefTypes.add(s);const a=pt(s)||(()=>new s);this.records.set(s,fs(a,ss));const l=i.providers;if(null!=l&&!o){const e=t;sn(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=gs(t=p(t))?t:p(t&&t.provide);const r=function(t,e,n){return ps(t)?fs(void 0,t.useValue):fs(ds(t),ss)}(t);if(gs(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=fs(void 0,ss,!0),e.factory=()=>bn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===ss&&(e.value=os,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=p(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function hs(t){const e=x(t),n=null!==e?e.factory:pt(t);if(null!==n)return n;if(t instanceof tn)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ln(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[k]||t[A]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ds(t,e,n){let i;if(gs(t)){const e=p(t);return pt(e)||hs(e)}if(ps(t))i=()=>p(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...bn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>yn(p(t.useExisting));else{const e=p(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return pt(e)||hs(e);i=()=>new e(...bn(t.deps))}var r;return i}function fs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ps(t){return null!==t&&"object"==typeof t&&pn in t}function gs(t){return"function"==typeof t}const ms=function(t,e,n){return function(t,e=null,n=null,i){const r=cs(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};class _s{static create(t,e){return Array.isArray(t)?ms(t,e,""):ms(t.providers,t.parent,t.name||"")}}function ys(t,e){me(fi(t)[1],Ut())}function vs(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r;if(ft(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=bs(t.inputs),e.declaredInputs=bs(t.declaredInputs),e.outputs=bs(t.outputs);const n=r.hostBindings;n&&Cs(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&ws(t,s),o&&xs(t,o),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),ft(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===vs&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ee(r.hostAttrs,n=Ee(n,r.hostAttrs))}}(i)}function bs(t){return t===U?{}:t===B?[]:t}function ws(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function xs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Cs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}_s.THROW_IF_NOT_FOUND=dn,_s.NULL=new is,_s.\u0275prov=b({token:_s,providedIn:"any",factory:()=>yn(ns)}),_s.__NG_ELEMENT_ID__=-1;let Ss=null;function ks(){if(!Ss){const t=V.Symbol;if(t&&t.iterator)Ss=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ss=n)}}}return Ss}class Es{constructor(t){this.wrapped=t}static wrap(t){return new Es(t)}static unwrap(t){return Es.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Es}}function As(t){return!!Ms(t)&&(Array.isArray(t)||!(t instanceof Map)&&ks()in t)}function Ms(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ts(t,e,n){return t[e]=n}function Os(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ds(t,e,n,i){const r=Os(t,e,n);return Os(t,e+1,i)||r}function Is(t,e,n,i){const r=Ft();return Os(r,Kt(),e)&&(zt(),function(t,e,n,i,r,s){const o=At(t,e);!function(t,e,n,i,r,s,o){if(null==s)Ct(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?_(s):o(s,i||"",r);Ct(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,s,t.value,n,i,r)}(fe(),r,t,e,n,i)),Is}function Rs(t,e,n,i){return Os(t,Kt(),n)?e+_(n)+i:rr}function Ls(t,e,n,i,r,s,o,a){const l=Ft(),c=zt(),u=t+20,h=c.firstCreatePass?function(t,e,n,i,r,s,o,a,l){const c=e.consts,u=gr(e,t,4,o||null,Rt(c,a));Tr(e,n,u,Rt(c,l)),me(e,u);const h=u.tViews=kr(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,i,r,s,o):c.data[u];qt(h,!1);const d=l[11].createComment("");Fi(c,l,d,h),di(d,l),qr(l,l[u]=zr(d,l,d,h)),dt(h)&&xr(c,l,h),null!=o&&Cr(l,h,a)}function Ns(t){return Tt(jt.lFrame.contextLView,20+t)}function js(t,e=T.Default){const n=Ft();return null===n?yn(t,e):Ue(Ut(),n,p(t),e)}function Ps(t,e,n){const i=Ft();return Os(i,Kt(),e)&&Mr(zt(),fe(),i,t,e,i[11],n,!1),Ps}function Fs(t,e,n,i,r){const s=r?"class":"style";Jr(t,n,e.inputs[s],s,i)}function zs(t,e,n,i){const r=Ft(),s=zt(),o=20+t,a=r[11],l=r[o]=Ei(a,e,jt.lFrame.currentNamespace),c=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,l=gr(e,t,2,r,Rt(a,s));return Tr(e,n,l,Rt(a,o)),null!==l.attrs&&es(l,l.attrs,!1),null!==l.mergedAttrs&&es(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,s,r,0,e,n,i):s.data[o];qt(c,!0);const u=c.mergedAttrs;null!==u&&Ce(a,l,u);const h=c.classes;null!==h&&Zi(a,l,h);const d=c.styles;null!==d&&Hi(a,l,d),64!=(64&c.flags)&&Fi(s,r,l,c),0===jt.lFrame.elementDepthCount&&di(l,r),jt.lFrame.elementDepthCount++,dt(c)&&(xr(s,r,c),wr(s,c,r)),null!==i&&Cr(r,c)}function Vs(){let t=Ut();Yt()?Ht():(t=t.parent,qt(t,!1));const e=t;jt.lFrame.elementDepthCount--;const n=zt();n.firstCreatePass&&(me(n,t),ut(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Fs(n,e,Ft(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Fs(n,e,Ft(),e.stylesWithoutHost,!1)}function Us(t,e,n,i){zs(t,e,n,i),Vs()}function Bs(t,e,n){const i=Ft(),r=zt(),s=t+20,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Rt(s,i),a=gr(e,t,8,"ng-container",o);return null!==o&&es(a,o,!0),Tr(e,n,a,Rt(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];qt(o,!0);const a=i[s]=i[11].createComment("");Fi(r,i,a,o),di(a,i),dt(o)&&(xr(r,i,o),wr(r,o,i)),null!=n&&Cr(i,o)}function qs(){let t=Ut();const e=zt();Yt()?Ht():(t=t.parent,qt(t,!1)),e.firstCreatePass&&(me(e,t),ut(t)&&e.queries.elementEnd(t))}function Ys(t,e,n){Bs(t,e,n),qs()}function Hs(){return Ft()}function Zs(t){return!!t&&"function"==typeof t.then}function Gs(t){return!!t&&"function"==typeof t.subscribe}const Qs=Gs;function Ws(t,e,n,i){const r=Ft(),s=zt(),o=Ut();return $s(s,r,r[11],o,t,e,!!n,i),Ws}function Ks(t,e){const n=Ut(),i=Ft(),r=zt();return $s(r,i,$r(te(r.data),n,i),n,t,e,!1),Ks}function $s(t,e,n,i,r,s,o,a){const l=dt(i),c=t.firstCreatePass&&Kr(t),u=Wr(e);let h=!0;if(3&i.type||a){const d=At(i,e),f=a?a(d):d,p=u.length,g=a?t=>a(kt(t[i.index])):i.index;if(Ct(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Js(i,e,0,s,!1);const t=n.listen(f,r,s);u.push(s,t),c&&c.push(r,g,p,p+1)}}else s=Js(i,e,0,s,!0),f.addEventListener(r,s,o),u.push(s),c&&c.push(r,g,p,o)}else s=Js(i,e,0,s,!1);const d=i.outputs;let f;if(h&&null!==d&&(f=d[r])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(s),o=u.length;u.push(s,t),c&&c.push(r,i.index,o,-(o+1))}}}function Xs(t,e,n,i){try{return!1!==n(i)}catch(r){return Xr(t,r),!1}}function Js(t,e,n,i,r){return function n(s){if(s===Function)return i;const o=2&t.flags?Ot(t.index,e):e;0==(32&e[2])&&Yr(o);let a=Xs(e,0,i,s),l=n.__ngNextListenerFn__;for(;l;)a=Xs(e,0,l,s)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function to(t=1){return function(t){return(jt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,jt.lFrame.contextLView))[8]}(t)}function eo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?tr(t,s,!0):er(i,s))return r}else n=r}return n}function no(t){const e=Ft()[16][6];if(!e.projection){const n=e.projection=ln(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?eo(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function io(t,e=0,n){const i=Ft(),r=zt(),s=gr(r,20+t,16,null,n||null);null===s.projection&&(s.projection=e),Ht(),64!=(64&s.flags)&&function(t,e,n){Yi(e[11],0,e,n,Di(t,n,e),ji(n.parent||e[6],n,e))}(r,i,s)}function ro(t,e,n){return so(t,"",e,"",n),ro}function so(t,e,n,i,r){const s=Ft(),o=Rs(s,e,n,i);return o!==rr&&Mr(zt(),fe(),s,t,o,s[11],r,!1),so}function oo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?lr(s):ur(s),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];ao(t[a],e)&&(l=!0,t[a+1]=i?dr(n):cr(n)),a=i?lr(n):ur(n)}l&&(t[n+1]=i?cr(s):dr(s))}function ao(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&hn(t,e)>=0}const lo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function co(t){return t.substring(lo.key,lo.keyEnd)}function uo(t,e){const n=lo.textEnd;return n===e?-1:(e=lo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,lo.key=e,n),ho(t,e,n))}function ho(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function fo(t,e,n){return mo(t,e,n,!1),fo}function po(t,e){return mo(t,e,null,!0),po}function go(t,e){for(let n=function(t){return function(t){lo.key=0,lo.keyEnd=0,lo.value=0,lo.valueEnd=0,lo.textEnd=t.length}(t),uo(t,ho(t,0,lo.textEnd))}(e);n>=0;n=uo(e,n))cn(t,co(e),!0)}function mo(t,e,n,i){const r=Ft(),s=zt(),o=$t(2);s.firstUpdatePass&&yo(s,t,o,i),e!==rr&&Os(r,o,e)&&wo(s,s.data[he()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(Rn(t)))),t}(e,n),i,o)}function _o(t,e){return e>=t.expandoStartIndex}function yo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[he()],o=_o(t,n);So(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=te(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=bo(n=vo(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=vo(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ur(i))return t[lr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=vo(null,t,e,n[1],i),n=bo(n,e.attrs,i),function(t,e,n,i){t[lr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=bo(i,t[s].hostAttrs,n);return bo(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=lr(o),l=ur(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||hn(t,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=lr(t[a+1]);t[i+1]=ar(e,a),0!==e&&(t[e+1]=hr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=ar(a,0),0!==a&&(t[a+1]=hr(t[a+1],i)),a=i;else t[i+1]=ar(l,0),0===a?a=i:t[l+1]=hr(t[l+1],i),l=i;u&&(t[i+1]=cr(t[i+1])),oo(t,c,i,!0),oo(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&hn(s,e)>=0&&(n[i+1]=dr(n[i+1]))}(e,c,t,i,s),o=ar(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function vo(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=bo(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function bo(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),cn(t,o,!!n||e[++s]))}return void 0===t?null:t}function wo(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Co(1==(1&c)?xo(l,e,n,r,ur(c),o):void 0)||(Co(s)||2==(2&c)&&(s=xo(l,null,n,r,a,o)),function(t,e,n,i,r){const s=Ct(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:vi.DashCase;if(null==r)s?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=vi.Important),s?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}(i,o,Et(he(),n),r,s))}function xo(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===rr&&(u=c?B:void 0);let h=c?un(u,i):l===i?u:void 0;if(s&&!Co(h)&&(h=un(e,i)),Co(h)&&(a=h,o))return a;const d=t[r+1];r=o?lr(d):ur(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=un(t,i))}return a}function Co(t){return void 0!==t}function So(t,e){return 0!=(t.flags&(e?16:32))}function ko(t,e=""){const n=Ft(),i=zt(),r=t+20,s=i.firstCreatePass?gr(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return Ct(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Fi(i,n,o,s),qt(s,!1)}function Eo(t){return Ao("",t,""),Eo}function Ao(t,e,n){const i=Ft(),r=Rs(i,t,e,n);return r!==rr&&ts(i,he(),r),Ao}function Mo(t,e,n,i,r){const s=Ft(),o=function(t,e,n,i,r,s){const o=Ds(t,Wt(),n,r);return $t(2),o?e+_(n)+i+_(r)+s:rr}(s,t,e,n,i,r);return o!==rr&&ts(s,he(),o),Mo}function To(t,e,n){!function(t,e,n,i){const r=zt(),s=$t(2);r.firstUpdatePass&&yo(r,null,s,true);const o=Ft();if(n!==rr&&Os(o,s,n)){const i=r.data[he()];if(So(i,true)&&!_o(r,s)){let t=i.classesWithoutHost;null!==t&&(n=h(t,n||"")),Fs(r,i,o,n,true)}else!function(t,e,n,i,r,s,o,a){r===rr&&(r=B);let l=0,c=0,u=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==u||null!==h;){const o=l<r.length?r[l+1]:void 0,d=c<s.length?s[c+1]:void 0;let f,p=null;u===h?(l+=2,c+=2,o!==d&&(p=h,f=d)):null===h||null!==u&&u<h?(l+=2,p=u):(c+=2,p=h,f=d),null!==p&&wo(t,e,n,i,p,f,true,a),u=l<r.length?r[l]:null,h=c<s.length?s[c]:null}}(r,i,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return B;const i=[],r=Rn(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),0,s)}}(cn,go,Rs(Ft(),t,e,n))}function Oo(t,e,n){const i=Ft();return Os(i,Kt(),e)&&Mr(zt(),fe(),i,t,e,i[11],n,!0),Oo}function Do(t,e,n){const i=Ft();if(Os(i,Kt(),e)){const r=zt(),s=fe();Mr(r,s,i,t,e,$r(te(r.data),s,i),n,!0)}return Do}const Io=void 0;var Ro=["en",[["a","p"],["AM","PM"],Io],[["AM","PM"],Io,Io],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Io,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Io,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Io,"{1} 'at' {0}",Io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Lo={};function No(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Po(e);if(n)return n;const i=e.split("-")[0];if(n=Po(i),n)return n;if("en"===i)return Ro;throw new Error(`Missing locale data for the locale "${t}".`)}function jo(t){return No(t)[Fo.PluralCase]}function Po(t){return t in Lo||(Lo[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),Lo[t]}var Fo=(()=>((Fo=Fo||{})[Fo.LocaleId=0]="LocaleId",Fo[Fo.DayPeriodsFormat=1]="DayPeriodsFormat",Fo[Fo.DayPeriodsStandalone=2]="DayPeriodsStandalone",Fo[Fo.DaysFormat=3]="DaysFormat",Fo[Fo.DaysStandalone=4]="DaysStandalone",Fo[Fo.MonthsFormat=5]="MonthsFormat",Fo[Fo.MonthsStandalone=6]="MonthsStandalone",Fo[Fo.Eras=7]="Eras",Fo[Fo.FirstDayOfWeek=8]="FirstDayOfWeek",Fo[Fo.WeekendRange=9]="WeekendRange",Fo[Fo.DateFormat=10]="DateFormat",Fo[Fo.TimeFormat=11]="TimeFormat",Fo[Fo.DateTimeFormat=12]="DateTimeFormat",Fo[Fo.NumberSymbols=13]="NumberSymbols",Fo[Fo.NumberFormats=14]="NumberFormats",Fo[Fo.CurrencyCode=15]="CurrencyCode",Fo[Fo.CurrencySymbol=16]="CurrencySymbol",Fo[Fo.CurrencyName=17]="CurrencyName",Fo[Fo.Currencies=18]="Currencies",Fo[Fo.Directionality=19]="Directionality",Fo[Fo.PluralCase=20]="PluralCase",Fo[Fo.ExtraData=21]="ExtraData",Fo))();let zo="en-US";function Vo(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(zo=t.toLowerCase().replace(/_/g,"-"))}function Uo(t,e,n,i,r){if(t=p(t),Array.isArray(t))for(let s=0;s<t.length;s++)Uo(t[s],e,n,i,r);else{const s=zt(),o=Ft();let a=gs(t)?t:p(t.provide),l=ds(t);const c=Ut(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(gs(t)||!t.multi){const i=new xe(l,r,js),f=Yo(a,e,r?u:u+d,h);-1===f?(Fe(Le(c,o),s,a),Bo(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=Yo(a,e,u+d,h),p=Yo(a,e,u,u+d),g=f>=0&&n[f],m=p>=0&&n[p];if(r&&!m||!r&&!g){Fe(Le(c,o),s,a);const u=function(t,e,n,i,r){const s=new xe(t,n,js);return s.multi=[],s.index=e,s.componentProviders=0,qo(s,r,i&&!n),s}(r?Zo:Ho,n.length,r,i,l);!r&&m&&(n[p].providerFactory=u),Bo(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Bo(s,t,f>-1?f:p,qo(n[r?p:f],l,!r&&i));!r&&i&&m&&n[p].componentProviders++}}}function Bo(t,e,n,i){const r=gs(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function qo(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Yo(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function Ho(t,e,n,i){return Go(this.multi,[])}function Zo(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ze(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),Go(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],Go(r,s);return s}function Go(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Qo(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=zt();if(i.firstCreatePass){const r=ft(t);Uo(n,i.data,i.blueprint,r,!0),Uo(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Wo{}class Ko{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class $o{}function Xo(...t){}function Jo(t,e){return new ea(At(t,e))}$o.NULL=new Ko;const ta=function(){return Jo(Ut(),Ft())};let ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ta,t})();function na(t){return t instanceof ea?t.nativeElement:t}class ia{}let ra=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>sa(),t})();const sa=function(){const t=Ft(),e=Ot(Ut().index,t);return function(t){return t[11]}(lt(e)?e:t)};let oa=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class aa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const la=new aa("12.1.5");class ca{constructor(){}supports(t){return As(t)}create(t){return new ha(t)}}const ua=(t,e)=>e;class ha{constructor(t){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=t||ua}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<ga(n,i,r)?e:n,o=ga(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!As(t))throw new Error(`Error trying to diff '${u(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ks()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new da(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class da{constructor(t,e){this.item=t,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 fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ga(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class ma{constructor(){}supports(t){return t instanceof Map||Ms(t)}create(){return new _a}}class _a{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ms(t)))throw new Error(`Error trying to diff '${u(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new ya(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ya{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function va(){return new ba([new ca])}let ba=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||va()),deps:[[t,new Sn,new Cn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=b({token:t,providedIn:"root",factory:va}),t})();function wa(){return new xa([new ma])}let xa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||wa()),deps:[[t,new Sn,new Cn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=b({token:t,providedIn:"root",factory:wa}),t})();function Ca(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(kt(s)),ct(s))for(let t=10;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&Ca(e[1],e,n,i)}const o=n.type;if(8&o)Ca(t,e,n.child,i);else if(32&o){const t=bi(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=Vi(e,n);if(Array.isArray(t))i.push(...t);else{const n=wi(e[16]);Ca(n[1],n,t,i,!0)}}n=r?n.projectionNext:n.next}return i}class Sa{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ca(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(ct(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Mi(t,n),an(e,n))}this._attachedToViewContainer=!1}Ti(this._lView[1],this._lView)}onDestroy(t){Er(this._lView[1],this._lView,null,t)}markForCheck(){Yr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Gt(!0);try{Hr(t,e,n)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,qi(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ka extends Sa{constructor(t){super(t),this._view=t}detectChanges(){Zr(this._view)}checkNoChanges(){!function(t){Gt(!0);try{Zr(t)}finally{Gt(!1)}}(this._view)}get context(){return null}}const Ea=function(t){return function(t,e,n){if(ht(t)&&!n){const n=Ot(t.index,e);return new Sa(n,n)}return 47&t.type?new Sa(e[16],e):null}(Ut(),Ft(),16==(16&t))};let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ea,t})();const Ma=[new ma],Ta=new ba([new ca]),Oa=new xa(Ma),Da=function(){return Na(Ut(),Ft())};let Ia=(()=>{class t{}return t.__NG_ELEMENT_ID__=Da,t})();const Ra=Ia,La=class extends Ra{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=pr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),_r(e,n,t),new Sa(n)}};function Na(t,e){return 4&t.type?new La(e,t,Jo(t,e)):null}class ja{}class Pa{}const Fa=function(){return Ya(Ut(),Ft())};let za=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fa,t})();const Va=za,Ua=class extends Va{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Jo(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pe(this._hostTNode,this._hostLView);if(Me(t)){const e=Oe(t,this._hostLView),n=Te(t);return new We(e[1].data[n+8],e)}return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ba(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ja,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ct(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Ua(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],on(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,s,r);const o=Ui(r,s),a=n[11],l=Ni(a,s[7]);return null!==l&&function(t,e,n,i,r,s){i[0]=r,i[6]=e,qi(t,i,n,1,r,s)}(i,s[6],a,n,l,o),t.attachToViewContainerRef(),on(qa(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ba(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Mi(this._lContainer,e);n&&(an(qa(this._lContainer),e),Ti(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Mi(this._lContainer,e);return n&&null!=an(qa(this._lContainer),e)?new Sa(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ba(t){return t[8]}function qa(t){return t[8]||(t[8]=[])}function Ya(t,e){let n;const i=e[t.index];if(ct(i))n=i;else{let r;if(8&t.type)r=kt(i);else{const n=e[11];r=n.createComment("");const i=At(t,e);Ii(n,Ni(n,i),r,function(t,e){return Ct(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=zr(i,e,r,t),qr(e,n)}return new Ua(n,t,e)}const Ha={};class Za extends $o{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ot(t);return new Wa(e,this.ngModule)}}function Ga(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Qa=new tn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>_i});class Wa extends Wo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ir).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ga(this.componentDef.inputs)}get outputs(){return Ga(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,Ha,r);return s!==Ha||i===Ha?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(ia,St),o=r.get(oa,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ct(t))return t.selectRootElement(e,n===N.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Ei(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:_i,clean:Qr,playerHandler:null,flags:0},d=kr(0,null,null,1,0,null,null,null,null,null),f=pr(null,d,h,u,null,null,s,a,o,r);let p,g;se(f);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=gr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(es(a,l,!0),null!==t&&(Ce(r,t,l),null!==a.classes&&Zi(r,t,a.classes),null!==a.styles&&Hi(r,t,a.styles)));const c=i.createRenderer(t,e),u=pr(n,Sr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Fe(Le(a,n),o,e.type),Ir(o,a),Lr(a,n.length,1)),qr(n,u),n[20]=u}(c,this.componentDef,f,s,a);if(c)if(n)Ce(a,c,["ng-version",la.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!Xi(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ce(a,c,t),e&&e.length>0&&Zi(a,c,e.join(" "))}if(g=Mt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=Ut();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Nr(t,i,e,mr(t,e,1,null),n));const r=Ze(e,t,i.directiveStart,i);di(r,e);const s=At(i,e);return s&&di(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=Ut();e.contentQueries(1,o,t.directiveStart)}const a=Ut();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(de(a.index),Or(n[1],a,0,a.directiveStart,a.directiveEnd,e),Dr(e,o)),o}(t,this.componentDef,f,h,[ys]),_r(d,f,null)}finally{ue()}return new Ka(this.componentType,p,Jo(g,f),f,g)}}class Ka extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new ka(i),this.componentType=t}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const $a=new Map;class Xa extends ja{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Za(this);const n=at(t),i=t[G]||null;i&&Vo(i),this._bootstrapComponents=yi(n.bootstrap),this._r3Injector=cs(t,e,[{provide:ja,useValue:this},{provide:$o,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=_s.THROW_IF_NOT_FOUND,n=T.Default){return t===_s||t===ja||t===ns?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ja extends Pa{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(n){const i=at(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,$a.get(r),n),$a.set(r,n));const s=yi(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Xa(this.moduleType,t)}}function tl(t,e,n,i){return il(Ft(),Qt(),t,e,n,i)}function el(t,e,n,i,r){return function(t,e,n,i,r,s,o){const a=e+n;return Ds(t,a,r,s)?Ts(t,a+2,o?i.call(o,r,s):i(r,s)):nl(t,a+2)}(Ft(),Qt(),t,e,n,i,r)}function nl(t,e){const n=t[e];return n===rr?void 0:n}function il(t,e,n,i,r,s){const o=e+n;return Os(t,o,r)?Ts(t,o+1,s?i.call(s,r):i(r)):nl(t,o+1)}function rl(t,e){const n=zt();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=pt(i.type)),o=D(js);try{const t=Ie(!1),e=s();return Ie(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Ft(),r,e),e}finally{D(o)}}function sl(t,e,n){const i=t+20,r=Ft(),s=Tt(r,i);return function(t,e){return Es.isWrapped(e)&&(e=Es.unwrap(e),t[Wt()]=rr),e}(r,function(t,e){return t[1].data[e].pure}(r,i)?il(r,Qt(),e,s.transform,n,s):s.transform(n))}function ol(t){return e=>{setTimeout(t,void 0,e)}}const al=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,s,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(s=e.error)||void 0===s?void 0:s.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=ol(l),a&&(a=ol(a)),c&&(c=ol(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w&&t.add(u),u}};function ll(){return this._results[ks()]()}class cl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ks(),n=cl.prototype;n[e]||(n[e]=ll)}get changes(){return this._changes||(this._changes=new al)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const n=rn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=e[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class ul{constructor(t){this.queryList=t,this.matches=null}clone(){return new ul(this.queryList)}setDirty(){this.queryList.setDirty()}}class hl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new hl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==kl(t,e).matches&&this.queries[e].setDirty()}}class dl{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class fl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new fl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class pl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new pl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,gl(e,r)),this.matchTNodeWithReadOption(t,e,He(e,t,r,!1,!1))}else n===Ia?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,He(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ea||i===za||i===Ia&&4&e.type)this.addMatch(e.index,-2);else{const n=He(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function gl(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function ml(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Jo(t,e):4&t.type?Na(t,e):null}(e,t):-2===n?function(t,e,n){return n===ea?Jo(e,t):n===Ia?Na(e,t):n===za?Ya(e,t):void 0}(t,e,i):Ze(t,t[1],n,e)}function _l(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:ml(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function yl(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=_l(t,e,r,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&yl(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];yl(n[1],n,r,i)}}}}}return i}function vl(t){const e=Ft(),n=zt(),i=ee();ne(i+1);const r=kl(n,i);if(t.dirty&&Dt(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?yl(n,e,i,[]):_l(n,e,r,i);t.reset(s,na),t.notifyOnChanges()}return!0}return!1}function bl(t,e,n){const i=zt();i.firstCreatePass&&(Sl(i,new dl(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Cl(i,Ft(),e)}function wl(t,e,n,i){const r=zt();if(r.firstCreatePass){const s=Ut();Sl(r,new dl(e,n,i),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(r,t),2==(2&n)&&(r.staticContentQueries=!0)}Cl(r,Ft(),n)}function xl(){return t=Ft(),e=ee(),t[19].queries[e].queryList;var t,e}function Cl(t,e,n){const i=new cl(4==(4&n));Er(t,e,i,i.destroy),null===e[19]&&(e[19]=new hl),e[19].queries.push(new ul(i))}function Sl(t,e,n){null===t.queries&&(t.queries=new fl),t.queries.track(new pl(e,n))}function kl(t,e){return t.queries.getByIndex(e)}function El(t,e){return Na(t,e)}const Al=new tn("Application Initializer");let Ml=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Xo,this.reject=Xo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(Zs(e))t.push(e);else if(Qs(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(yn(Al,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Tl=new tn("AppId"),Ol={provide:Tl,useFactory:function(){return`${Dl()}${Dl()}${Dl()}`},deps:[]};function Dl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Il=new tn("Platform Initializer"),Rl=new tn("Platform ID"),Ll=new tn("appBootstrapListener");let Nl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const jl=new tn("LocaleId"),Pl=new tn("DefaultCurrencyCode");class Fl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const zl=function(t){return new Ja(t)},Vl=zl,Ul=function(t){return Promise.resolve(zl(t))},Bl=function(t){const e=zl(t),n=yi(at(t).declarations).reduce((t,e)=>{const n=ot(e);return n&&t.push(new Wa(n)),t},[]);return new Fl(e,n)},ql=Bl,Yl=function(t){return Promise.resolve(Bl(t))};let Hl=(()=>{class t{constructor(){this.compileModuleSync=Vl,this.compileModuleAsync=Ul,this.compileModuleAndAllComponentsSync=ql,this.compileModuleAndAllComponentsAsync=Yl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Zl=(()=>Promise.resolve(0))();function Gl(t){"undefined"==typeof Zone?Zl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ql{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new al(!1),this.onMicrotaskEmpty=new al(!1),this.onStable=new al(!1),this.onError=new al(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&e,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,$l(t),t.isCheckStableRunning=!0,Kl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),$l(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return Xl(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Jl(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return Xl(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Jl(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,$l(t),Kl(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ql.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ql.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,Wl,Xo,Xo);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Wl={};function Kl(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 $l(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Xl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Jl(t){t._nesting--,Kl(t)}class tc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new al,this.onMicrotaskEmpty=new al,this.onStable=new al,this.onError=new al}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let ec=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Ql.assertNotInAngularZone(),Gl(()=>{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())Gl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(yn(Ql))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),nc=(()=>{class t{constructor(){this._applications=new Map,oc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return oc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class ic{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function rc(t){oc=t}let sc,oc=new ic,ac=!0,lc=!1;function cc(){return lc=!0,ac}function uc(){if(lc)throw new Error("Cannot enable prod mode after platform setup.");ac=!1}const hc=new tn("AllowMultipleToken");class dc{constructor(t,e){this.name=t,this.token=e}}function fc(t,e,n=[]){const i=`Platform: ${e}`,r=new tn(i);return(e=[])=>{let s=pc();if(!s||s.injector.get(hc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:rs,useValue:"platform"});!function(t){if(sc&&!sc.destroyed&&!sc.injector.get(hc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");sc=t.get(gc);const e=t.get(Il,null);e&&e.forEach(t=>t())}(_s.create({providers:t,name:i}))}return function(t){const e=pc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function pc(){return sc&&!sc.destroyed?sc:null}let gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new tc:("zone.js"===t?void 0:t)||new Ql({enableLongStackTrace:cc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Ql,useValue:n}];return n.run(()=>{const e=_s.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(mi,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{yc(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Zs(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Ml);return t.runInitializers(),t.donePromise.then(()=>(Vo(r.injector.get(jl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=mc({},e);return function(t,e,n){const i=new Ja(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(_c);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(yn(_s))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function mc(t,e){return Array.isArray(e)?e.reduce(mc,t):Object.assign(Object.assign({},t),e)}let _c=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,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 l=new s.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new s.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ql.assertNotInAngularZone(),Gl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ql.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Wo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ja),r=n.create(_s.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(ec,null),a=o&&r.injector.get(nc);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),yc(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ll,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(yn(Ql),yn(_s),yn(mi),yn($o),yn(Ml))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class vc{}class bc{}const wc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let xc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||wc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Cc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Cc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(yn(Hl),yn(bc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Cc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Sc=function(t){return null},kc=fc(null,"core",[{provide:Rl,useValue:"unknown"},{provide:gc,deps:[_s]},{provide:nc,deps:[]},{provide:Nl,deps:[]}]),Ec=[{provide:_c,useClass:_c,deps:[Ql,_s,mi,$o,Ml]},{provide:Qa,deps:[Ql],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ml,useClass:Ml,deps:[[new Cn,Al]]},{provide:Hl,useClass:Hl,deps:[]},Ol,{provide:ba,useFactory:function(){return Ta},deps:[]},{provide:xa,useFactory:function(){return Oa},deps:[]},{provide:jl,useFactory:function(t){return Vo(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new xn(jl),new Cn,new Sn]]},{provide:Pl,useValue:"USD"}];let Ac=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(yn(_c))},t.\u0275mod=et({type:t}),t.\u0275inj=w({providers:Ec}),t})()},3679:function(t,e,n){"use strict";n.d(e,{Zs:function(){return bt},gN:function(){return j},Fj:function(){return f},NI:function(){return nt},oH:function(){return pt},sg:function(){return mt},u5:function(){return xt},Cf:function(){return m},JU:function(){return u},a5:function(){return P},JJ:function(){return F},F:function(){return at},On:function(){return ut},UX:function(){return Ct},kI:function(){return v}});var i=n(7716),r=n(8583),s=n(4402),o=n(5758),a=n(8002);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const u=new i.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,i.Gpc)(()=>f),multi:!0},d=new i.OlP("CompositionEventMode");let f=(()=>{class t extends l{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(d,8))},t.\u0275dir=i.lG2({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i._Bn([h]),i.qOj]}),t})();function p(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=new i.OlP("NgValidators"),_=new i.OlP("NgAsyncValidators"),y=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class v{static min(t){return function(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}static max(t){return function(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return b(t)}static requiredTrue(t){return w(t)}static email(t){return function(t){return p(t.value)||y.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>p(e.value)||!g(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static maxLength(t){return function(t){return e=>g(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return x;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(p(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return M(t)}static composeAsync(t){return O(t)}}function b(t){return p(t.value)?{required:!0}:null}function w(t){return!0===t.value?null:{required:!0}}function x(t){return null}function C(t){return null!=t}function S(t){const e=(0,i.QGY)(t)?(0,s.D)(t):t;return(0,i.CqO)(e),e}function k(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function E(t,e){return e.map(e=>e(t))}function A(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function M(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return k(E(t,e))}}function T(t){return null!=t?M(A(t)):null}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=E(t,e).map(S);return(0,o.D)(n).pipe((0,a.U)(k))}}function D(t){return null!=t?O(A(t)):null}function I(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function R(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}let N=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=T(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=D(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),j=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class P extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let F=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(P,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})();function z(t,e){B(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Y(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Y(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function V(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function U(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function B(t,e){const n=R(t);null!==e.validator?t.setValidators(I(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=L(t);null!==e.asyncValidator?t.setAsyncValidators(I(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();U(e._rawValidators,r),U(e._rawAsyncValidators,r)}function q(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=R(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=L(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return U(e._rawValidators,i),U(e._rawAsyncValidators,i),n}function Y(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function H(t,e){B(t,e)}function Z(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function G(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Q(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===f?n=t:Object.getPrototypeOf(t.constructor)===c?i=t:r=t}),r||i||n||null}function W(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function K(t){return(tt(t)?t.validators:t)||null}function $(t){return Array.isArray(t)?T(t):t||null}function X(t,e){return(tt(e)?e.asyncValidators:t)||null}function J(t){return Array.isArray(t)?D(t):t||null}function tt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class et{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=$(this._rawValidators),this._composedAsyncValidatorFn=J(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=$(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=J(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=S(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof it?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof rt&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){tt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class nt extends et{constructor(t=null,e,n){super(K(e),X(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){W(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){W(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class it extends et{constructor(t,e,n){super(K(e),X(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof nt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class rt extends et{constructor(t,e,n){super(K(e),X(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof nt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const st={provide:j,useExisting:(0,i.Gpc)(()=>at)},ot=(()=>Promise.resolve(null))();let at=(()=>{class t extends j{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new it({},T(t),D(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ot.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),z(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ot.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),W(this._directives,t)})}addFormGroup(t){ot.then(()=>{const e=this._findContainer(t.path),n=new it({});H(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ot.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ot.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,G(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj]}),t})();const lt={provide:P,useExisting:(0,i.Gpc)(()=>ut)},ct=(()=>Promise.resolve(null))();let ut=(()=>{class t extends P{constructor(t,e,n,r){super(),this.control=new nt,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Q(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Z(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ct.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(j,9),i.Y36(m,10),i.Y36(_,10),i.Y36(u,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([lt]),i.qOj,i.TTD]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const dt=new i.OlP("NgModelWithFormControlWarning"),ft={provide:P,useExisting:(0,i.Gpc)(()=>pt)};let pt=(()=>{class t extends P{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Q(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&V(e,this,!1),z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Z(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&V(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(_,10),i.Y36(u,10),i.Y36(dt,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([ft]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const gt={provide:j,useExisting:(0,i.Gpc)(()=>mt)};let mt=(()=>{class t extends j{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){V(t.control||null,t,!1),W(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,G(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(V(e||null,t),n instanceof nt&&(z(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);H(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return q(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){B(this.form,this),this._oldForm&&q(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([gt]),i.qOj,i.TTD]}),t})();const _t={provide:m,useExisting:(0,i.Gpc)(()=>vt),multi:!0},yt={provide:m,useExisting:(0,i.Gpc)(()=>bt),multi:!0};let vt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?b(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([_t])]}),t})(),bt=(()=>{class t extends vt{validate(t){return this.required?w(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([yt]),i.qOj]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[ht]]}),t})(),xt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[wt]}),t})(),Ct=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[wt]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{lW:function(){return h},ot:function(){return d}});var i=n(2458),r=n(6237),s=n(7716),o=n(9238);const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],u=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let h=(()=>{class t extends u{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of c)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(o.tE),s.Y36(r.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(i.wG,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},7539:function(t,e,n){"use strict";n.d(e,{p9:function(){return a}}),n(9490);var i=n(7716),r=(n(3679),n(2458)),s=(n(6237),n(8553));n(9238);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.si,r.BQ,s.Q8,o],r.BQ,o]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{yN:function(){return y},mZ:function(){return v},_A:function(){return O},rD:function(){return B},sG:function(){return D},K7:function(){return lt},HF:function(){return rt},Y2:function(){return J},BQ:function(){return x},X2:function(){return q},uc:function(){return Z},XK:function(){return U},ey:function(){return dt},Ng:function(){return gt},rN:function(){return ut},nP:function(){return nt},us:function(){return it},wG:function(){return tt},si:function(){return et},IR:function(){return X},CB:function(){return ft},jH:function(){return pt},pj:function(){return S},Kr:function(){return k},Id:function(){return C},FD:function(){return A},dB:function(){return M},sb:function(){return E},E0:function(){return Y}});var i=n(7716),r=n(9238),s=n(946);const o=new i.GfV("12.2.13");var a=n(8583),l=n(521),c=n(9490),u=n(9765),h=n(7574),d=n(9761),f=n(6237),p=n(6461);function g(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const _=["*"];let y=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),v=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const b=new i.GfV("12.2.13"),w=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let x=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!(0,i.X6Q)()||(0,l.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&b.full!==o.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r.qm),i.LFG(w,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[s.vT],s.vT]}),t})();function C(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function S(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function k(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function A(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new u.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function M(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const T=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,i.f3M)(i.soG)}});class O{constructor(){this._localeChanges=new u.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const D=new i.OlP("mat-date-formats");let I;try{I="undefined"!=typeof Intl}catch(mt){I=!1}const R={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},L=P(31,t=>String(t+1)),N={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},j=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let F=(()=>{class t extends O{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return P(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return R[t]}getDateNames(){if(I){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return L}getDayOfWeekNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return N[t]}getYearName(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(j.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(T,8),i.LFG(l.t4))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:O,useClass:F}],imports:[[l.ud]]}),t})();const V={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:D,useValue:V}],imports:[[z]]}),t})(),B=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Y(t,e,n="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{H(e,`${n}-2-line`,!1),H(e,`${n}-3-line`,!1),H(e,`${n}-multi-line`,!1),2===t||3===t?H(e,`${n}-${t}-line`,!0):t>3&&H(e,`${n}-multi-line`,!0)})}function H(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[x],x]}),t})();class G{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Q={enterDuration:225,exitDuration:150},W=(0,l.i$)({passive:!0}),K=["mousedown","touchstart"],$=["mouseup","mouseleave","touchend","touchcancel"];class X{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,c.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Q),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-s+"px",c.style.top=a-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new G(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Q),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(K))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents($),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,r.X6)(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!(0,r.yG)(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,W)})})}_removeTriggerEvents(){this._triggerElement&&(K.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}),this._pointerUpEventsRegistered&&$.forEach(t=>{this._triggerElement.removeEventListener(t,this,W)}))}}const J=new i.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new X(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(l.t4),i.Y36(J,8),i.Y36(f.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[x,l.ud],x]}),t})(),nt=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(f.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[x]]}),t})();const rt=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),st=C(class{});let ot=0,at=(()=>{class t extends st{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+ot++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(rt,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const lt=new i.OlP("MatOptgroup");let ct=0;class ut{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ht=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new i.vpe,this._stateChanges=new u.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.K5&&t.keyCode!==p.L_||(0,p.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ut(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(at))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),dt=(()=>{class t extends ht{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(rt,8),i.Y36(lt,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,g,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,m,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,nt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ft(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===r[s]&&s++;return s}return 0}function pt(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}let gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[et,a.ez,x,it]]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return Z},KE:function(){return G},Eo:function(){return P},lN:function(){return Q}});var i=n(8553),r=n(8583),s=n(7716),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),f=n(5257),p=n(7238),g=n(6237),m=n(946),_=n(521);const y=["underline"],v=["connectionContainer"],b=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function C(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function S(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function k(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function A(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,S,4,1,"ng-container",12),s.YNc(3,k,1,0,"ng-content",12),s.YNc(4,E,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function M(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function T(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function O(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function D(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function I(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,D,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const R=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],N=new s.OlP("MatError"),j={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})();const F=new s.OlP("MatHint");let z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const U=new s.OlP("MatPrefix"),B=new s.OlP("MatSuffix");let q=0;const Y=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),H=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Z=new s.OlP("MatFormField");let G=(()=>{class t extends Y{constructor(t,e,n,i,r,s,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+q++,this._labelId="mat-form-field-label-"+q++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,f.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t<o.length;t++)l+=o[t].offsetWidth;e=Math.abs(a-s)-5,n=l>0?.75*l+10:0}for(let o=0;o<r.length;o++)r[o].style.width=`${e}px`;for(let o=0;o<s.length;o++)s[o].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(m.Is,8),s.Y36(H,8),s.Y36(_.t4),s.Y36(s.R0b),s.Y36(g.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,P,5),s.Suo(n,P,7),s.Suo(n,z,5),s.Suo(n,z,7),s.Suo(n,V,5),s.Suo(n,N,5),s.Suo(n,F,5),s.Suo(n,U,5),s.Suo(n,B,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._controlNonStatic=t.first),s.iGM(t=s.CRH())&&(e._controlStatic=t.first),s.iGM(t=s.CRH())&&(e._labelChildNonStatic=t.first),s.iGM(t=s.CRH())&&(e._labelChildStatic=t.first),s.iGM(t=s.CRH())&&(e._placeholderChild=t.first),s.iGM(t=s.CRH())&&(e._errorChildren=t),s.iGM(t=s.CRH())&&(e._hintChildren=t),s.iGM(t=s.CRH())&&(e._prefixChildren=t),s.iGM(t=s.CRH())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(y,5),s.Gf(v,7),s.Gf(b,5),s.Gf(w,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.underlineRef=t.first),s.iGM(t=s.CRH())&&(e._connectionContainerRef=t.first),s.iGM(t=s.CRH())&&(e._inputContainerRef=t.first),s.iGM(t=s.CRH())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,e){2&t&&s.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[s._Bn([{provide:Z,useExisting:t}]),s.qOj],ngContentSelectors:L,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(s.F$t(R),s.TgZ(0,"div",0),s.TgZ(1,"div",1,2),s.NdJ("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),s.YNc(3,x,9,0,"ng-container",3),s.YNc(4,C,2,0,"div",4),s.TgZ(5,"div",5,6),s.Hsn(7),s.TgZ(8,"span",7),s.YNc(9,A,5,16,"label",8),s.qZA(),s.qZA(),s.YNc(10,M,2,0,"div",9),s.qZA(),s.YNc(11,T,3,4,"div",10),s.TgZ(12,"div",11),s.YNc(13,O,2,1,"div",12),s.YNc(14,I,5,2,"div",13),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngIf","outline"==e.appearance),s.xp6(1),s.Q6J("ngIf",e._prefixChildren.length),s.xp6(5),s.Q6J("ngIf",e._hasFloatingLabel()),s.xp6(1),s.Q6J("ngIf",e._suffixChildren.length),s.xp6(1),s.Q6J("ngIf","outline"!=e.appearance),s.xp6(1),s.Q6J("ngSwitch",e._getDisplayedMessages()),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","hint"))},directives:[r.O5,r.RF,r.n9,i.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[j.transitionMessages]},changeDetection:0}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.ez,o.BQ,i.Q8],o.BQ]}),t})()},9692:function(t,e,n){"use strict";n.d(e,{TU:function(){return d}});var i=n(8583),r=n(7716),s=n(2458),o=n(1095),a=n(7441),l=n(1436),c=(n(9490),n(9765));n(8295);let u=(()=>{class t{constructor(){this.changes=new c.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const h={provide:u,deps:[[new r.FiY,new r.tp0,u]],useFactory:function(t){return t||new u}};let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[h],imports:[[i.ez,o.ot,a.LD,l.AV,s.BQ]]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return Y},LD:function(){return H}});var i=n(625),r=n(8583),s=n(7716),o=n(2458),a=n(8295),l=n(6994),c=n(9238),u=n(9490),h=n(8345),d=n(6461),f=n(9765),p=n(1439),g=n(6682),m=n(9761),_=n(3190),y=n(5257),v=n(5435),b=n(8002),w=n(7519),x=n(6782),C=n(7238),S=n(946),k=n(3679);const E=["trigger"],A=["panel"];function M(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function T(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function O(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function D(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,T,2,1,"span",10),s.YNc(2,O,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const R=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],N={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let j=0;const P=new s.OlP("mat-select-scroll-strategy"),F=new s.OlP("MAT_SELECT_CONFIG"),z={provide:P,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class V{constructor(t,e){this.source=t,this.value=e}}const U=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}})))),B=new s.OlP("MatSelectTrigger");let q=(()=>{class t extends U{constructor(t,e,n,i,r,o,a,l,c,u,h,d,w,x){var C,S,k;super(r,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+j++,this._triggerAriaLabelledBy=null,this._destroy=new f.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+j++,this._panelDoneAnimatingStream=new f.xQ,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(k=null===(S=this._defaultOptions)||void 0===S?void 0:S.disableOptionCentering)&&void 0!==k&&k,this.ariaLabel="",this.optionSelectionChanges=(0,p.P)(()=>{const t=this.options;return t?t.changes.pipe((0,m.O)(t),(0,_.w)(()=>(0,g.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,v.h)(t=>t),(0,b.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,v.h)(t=>!t),(0,b.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,m.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var t,e;return this.multiple?(null===(t=this._selectionModel)||void 0===t?void 0:t.selected)||[]:null===(e=this._selectionModel)||void 0===e?void 0:e.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!r&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,g.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(l.rL),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(o.rD),s.Y36(s.SBq),s.Y36(S.Is,8),s.Y36(k.F,8),s.Y36(k.sg,8),s.Y36(a.G_,8),s.Y36(k.a5,10),s.$8M("tabindex"),s.Y36(P),s.Y36(c.Kd),s.Y36(F,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(E,5),s.Gf(A,5),s.Gf(i.pI,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),Y=(()=>{class t extends q{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new V(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}n||(r*=-1);const s=0-(t.left+r-(n?i:0)),o=t.right+r-e.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,o.CB)(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,B,5),s.Suo(n,o.ey,5),s.Suo(n,o.K7,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),s.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.F$t(R),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,M,2,1,"span",3),s.YNc(5,D,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,I,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[z],imports:[[r.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},1494:function(t,e,n){"use strict";n.d(e,{JX:function(){return c}});var i=n(7716),r=(n(9238),n(9490),n(6461),n(2458)),s=n(9765),o=(n(6682),n(7238),n(8583));let a=(()=>{class t{constructor(){this.changes=new s.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const l={provide:a,deps:[[new i.FiY,new i.tp0,a]],useFactory:function(t){return t||new a}};let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[l],imports:[[o.ez,r.BQ]]}),t})()},2091:function(t,e,n){"use strict";n.d(e,{p0:function(){return o}});var i=n(552),r=(n(8345),n(2458)),s=n(7716);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.HT,r.BQ],r.BQ]}),t})()},1436:function(t,e,n){"use strict";n.d(e,{gM:function(){return k},AV:function(){return M}});var i=n(625),r=n(9238),s=n(8583),o=n(7716),a=n(2458),l=n(6994),c=n(9490),u=n(6461),h=n(5072),d=n(521),f=n(7636),p=n(9765),g=n(6782),m=n(5257),_=n(7238),y=n(946);const v={tooltipState:(0,_.X$)("state",[(0,_.SB)("initial, void, hidden",(0,_.oB)({opacity:0,transform:"scale(0)"})),(0,_.SB)("visible",(0,_.oB)({transform:"scale(1)"})),(0,_.eR)("* => visible",(0,_.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,_.F4)([(0,_.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,_.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,_.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,_.eR)("* => hidden",(0,_.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({opacity:0})))])},b=(0,d.i$)({passive:!0}),w=new o.OlP("mat-tooltip-scroll-strategy"),x={provide:w,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let S=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new p.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.hY&&!(0,u.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),c.change.pipe((0,g.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,g.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,b)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new f.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,g.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,g.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,g.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,g.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,m.q)(1),(0,g.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let r;if(r="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",r!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,b)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(i.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(void 0),o.Y36(y.Is),o.Y36(void 0),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),k=(()=>{class t extends S{constructor(t,e,n,i,r,s,o,a,l,c,u,h){super(t,e,n,i,r,s,o,a,l,c,u,h),this._tooltipComponent=A}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(i.aV),o.Y36(o.SBq),o.Y36(l.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(d.t4),o.Y36(r.$s),o.Y36(r.tE),o.Y36(w),o.Y36(y.Is,8),o.Y36(C,8),o.Y36(s.K0))},t.\u0275dir=o.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),t})(),E=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new p.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO))},t.\u0275dir=o.lG2({type:t}),t})(),A=(()=>{class t extends E{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe(h.u3.Handset)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.sBO),o.Y36(h.Yg))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&o.Udp("zoom","visible"===e._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&t){let t;o.ekj("mat-tooltip-handset",null==(t=o.lcZ(1,5,e._isHandset))?null:t.matches),o.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),o.xp6(2),o.Oqu(e.message)}},directives:[s.mk],pipes:[s.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[v.tooltipState]},changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[x],imports:[[r.rt,s.ez,i.U8,a.BQ],a.BQ,l.ZD]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return _e},PW:function(){return we}});var i=n(7716),r=n(9075),s=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new s.ZN;case 1:return t[0];default:return new s.ZE(t)}}function c(t,e,n,i,r={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case s.k1:l=r[n];break;case s.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function d(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function f(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let g=(t,e)=>!1,m=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(g=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),m=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let v=null,b=!1;function w(t){v||(v=("undefined"!=typeof document?document.body:null)||{},b=!!v.style&&"WebkitAppearance"in v.style);let e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in v.style,!e&&b)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}const x=m,C=g,S=_;function k(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let E=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],a){return new s.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:T(parseFloat(e[1]),e[2])}function T(t,e){switch(e){case"s":return 1e3*t;default:return t}}function O(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=T(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=T(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function D(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function I(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else D(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function L(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=R(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=R(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function N(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=q(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),a()&&L(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=q(e);t.style[n]=""}),a()&&L(t))}function P(t){return Array.isArray(t)?1==t.length?t[0]:(0,s.vP)(t):t}A.NOOP=new E;const F=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=F.exec(t);)e.push(n[1]);F.lastIndex=0}return e}function V(t,e,n){const i=t.toString(),r=i.replace(F,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function U(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const B=/-+([a-z0-9])/g;function q(t){return t.replace(B,(...t)=>t[1].toUpperCase())}function Y(t,e){return 0===t||0===e}function H(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=G(t,e)})}}return e}function Z(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function G(t,e){return window.getComputedStyle(t)[e]}function Q(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push($(r,o)),"<"!=s[0]||"*"==r&&"*"==o||e.push($(o,r))}(t,n,e)):n.push(t),n}const W=new Set(["true","1"]),K=new Set(["false","0"]);function $(t,e){const n=W.has(t)||K.has(t),i=W.has(e)||K.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?W.has(t):K.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?W.has(e):K.has(e)),o&&a}}const X=new RegExp("s*:selfs*,?","g");function J(t,e,n){return new tt(t).build(e,n)}class tt{constructor(t){this._driver=t}build(t,e){const n=new et(e);return this._resetContextStyleTimingState(n),Z(this,P(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(nt(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=U(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Z(this,P(t.animation),e);return{type:1,matchers:Q(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:it(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Z(this,t,e)),options:it(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Z(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:it(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return rt(O(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=rt(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||O(i,e),rt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:(0,s.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=(0,s.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(nt(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=z(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(nt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(nt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,s=s||c<a,a=c,r.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,i)=>{const s=u>0?i==h?1:u*i:r[i],o=s*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Z(this,P(t.animation),e),options:it(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:it(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:it(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(X,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,f(e.collectedStyles,e.currentQuerySelector,{});const o=Z(this,P(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:it(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:O(t.timings,e.errors,!0);return{type:12,animation:Z(this,P(t.animation),e),timings:n,options:null}}}class et{constructor(t){this.errors=t,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}}function nt(t){return!Array.isArray(t)&&"object"==typeof t}function it(t){var e;return t?(t=D(t)).params&&(t.params=(e=t.params)?D(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function st(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class ot{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const at=new RegExp(":enter","g"),lt=new RegExp(":leave","g");function ct(t,e,n,i,r,s={},o={},a,l,c=[]){return(new ut).buildKeyframes(t,e,n,i,r,s,o,a,l,c)}class ut{buildKeyframes(t,e,n,i,r,s,o,a,l,c=[]){l=l||new ot;const u=new dt(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),Z(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[st(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?M(n.duration):null,s=null!=n.delay?M(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Z(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ht);const t=M(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Z(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Z(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return O(e.params?V(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?M(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),Z(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Z(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ft(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=V(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new dt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(lt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class ft{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ft(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.l3,this._currentKeyframe[t]=s.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=s.l3})):I(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=V(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const a=I(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.k1?t.add(n):i==s.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?U(t.values()):[],o=e.size?U(e.values()):[];if(n){const t=i[0],e=D(t);t.offset=0,e.offset=1,i=[t,e]}return st(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class pt extends ft{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=I(t[0],!1);a.offset=0,r.push(a);const l=I(t[0],!1);l.offset=gt(o),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=I(t[i],!1);o.offset=gt((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return st(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function gt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class _t extends mt{normalizePropertyName(t,e){return q(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(yt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const yt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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 vt(t,e,n,i,r,s,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const bt={};class wt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||bt,d=this.buildStyles(n,o&&o.params||bt,u),p=a&&a.params||bt,g=this.buildStyles(i,p,u),m=new Set,_=new Map,y=new Map,v="void"===i,b={params:Object.assign(Object.assign({},h),p)},w=c?[]:ct(t,e,this.ast.animation,r,s,d,g,b,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return vt(e,this._triggerName,n,i,v,d,g,[],[],_,y,x,u);w.forEach(t=>{const n=t.element,i=f(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=f(y,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const C=U(m.values());return vt(e,this._triggerName,n,i,v,d,g,w,C,_,y,x)}}class xt{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=D(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=V(s,i,e));const o=this.normalizer.normalizePropertyName(t,e);s=this.normalizer.normalizeStyleValue(t,o,s,e),n[o]=s})}}),n}}class Ct{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new xt(t.style,t.options&&t.options.params||{},n)}),St(this.states,"true","1"),St(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new wt(t,e,this.states))}),this.fallbackTransition=new wt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function St(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const kt=new ot;class Et{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=J(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const a=new Map;if(r?(o=ct(this._driver,e,r,"ng-enter","ng-leave",{},{},n,kt,i),o.forEach(t=>{const e=f(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,s.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=d(e,"","","");return u(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){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(i[0]));break;case"destroy":this.destroy(t)}}}const At=[],Mt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ot{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=D(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Dt=new Ot("void");class It{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,zt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=f(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=f(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(zt(t,"ng-trigger"),zt(t,"ng-trigger-"+e),a[e]=Dt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new Lt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(zt(t,"ng-trigger"),zt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Ot(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Dt),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{j(t,n),N(t,i)})}return}const c=f(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:h}),h||(zt(t,"ng-animate-queued"),s.onStart(()=>{Vt(t,"ng-animate-queued")})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const r=e.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Dt,a=new Ot("void"),l=new Lt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Mt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){zt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=d(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Rt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new It(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Nt(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Nt(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),zt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vt(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Nt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Nt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Mt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)zt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ot,i=[],r=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const d=this.bodyNode,p=Array.from(this.statesByElement.keys()),g=Ft(p,this.collectedEnterElements),m=new Map;let _=0;g.forEach((t,e)=>{const n="ng-enter"+_++;m.set(e,n),t.forEach(t=>zt(t,n))});const y=[],v=new Set,b=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const t=this.collectedLeaveElements[s],e=t.__ng_removed;e&&e.setForRemoval&&(y.push(t),v.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>v.add(t)):b.add(t))}const w=new Map,x=Ft(p,Array.from(v));x.forEach((t,e)=>{const n="ng-leave"+_++;w.set(e,n),t.forEach(t=>zt(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Vt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Vt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const C=[],S=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!d||!this.driver.containsElement(d,r),l=w.get(r),h=m.get(r),p=this._buildInstruction(t,n,h,l,s);if(p.errors&&p.errors.length)S.push(p);else{if(s)return e.onStart(()=>j(r,p.fromStyles)),e.onDestroy(()=>N(r,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(r,p.fromStyles)),e.onDestroy(()=>N(r,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),o.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>f(a,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(S.length){const t=[];S.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{f(k,e,[]).push(t),t.destroy()})});const A=y.filter(t=>qt(t,c,u)),M=new Map;Pt(M,this.driver,b,u,s.l3).forEach(t=>{qt(t,c,u)&&A.push(t)});const T=new Map;g.forEach((t,e)=>{Pt(T,this.driver,new Set(t),c,s.k1)}),A.forEach(t=>{const e=M.get(t),n=T.get(t);M.set(t,Object.assign(Object.assign({},e),n))});const O=[],D=[],I={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(h.has(e))return s.onDestroy(()=>N(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=I;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,k,r,T,M);if(s.setRealPlayer(n),t===I)O.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=l(e)),i.push(s)}}else j(e,o.fromStyles),s.onDestroy(()=>N(e,o.toStyles)),D.push(s),h.has(e)&&i.push(s)}),D.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<y.length;s++){const t=y[s],e=t.__ng_removed;if(Vt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(a.size){let e=a.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=a.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Ut(this,t,i):this.processLeaveNode(t)}return y.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=f(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const a=e.triggerName,u=e.element,h=[],d=new Set,p=new Set,g=e.timelines.map(e=>{const l=e.element;d.add(l);const f=l.__ng_removed;if(f&&f.removedBeforeQueried)return new s.ZN(e.duration,e.delay);const g=l!==u,m=function(t){const e=[];return Bt(t,e),e}((n.get(l)||At).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=r.get(l),y=o.get(l),v=c(0,this._normalizer,0,e.keyframes,_,y),b=this._buildPlayer(e,v,m);if(e.subTimeline&&i&&p.add(l),g){const e=new Lt(t,a,l);e.setRealPlayer(b),h.push(e)}return b});h.forEach(t=>{f(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>zt(t,"ng-animating"));const m=l(g);return m.onDestroy(()=>{d.forEach(t=>Vt(t,"ng-animating")),N(u,e.toStyles)}),p.forEach(t=>{f(i,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.ZN(t.duration,t.delay)}}class Lt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){f(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Nt(t){return t&&1===t.nodeType}function jt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Pt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(jt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Tt,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>jt(t,s[a++])),o}function Ft(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function zt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Vt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ut(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function Bt(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof s.ZE?Bt(i.players,e):e.push(i)}}function qt(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class Yt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Rt(t,e,n),this._timelineEngine=new Et(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=J(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Ct(t,e,n)}(i,e,this._normalizer),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ht(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Gt(e[0]),e.length>1&&(i=Gt(e[e.length-1]))):e&&(n=Gt(e)),n||i?new Zt(t,n,i):null}class Zt{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=Zt.initialStylesByElement.get(t);i||Zt.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&N(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(N(this._element,this._initialStyles),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Zt.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),N(this._element,this._initialStyles),this._state=3)}}function Gt(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Qt(r)&&(e=e||{},e[r]=t[r])}return e}function Qt(t){return"display"===t||"position"===t}Zt.initialStylesByElement=new WeakMap;class Wt{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=ee(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),te(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Jt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Kt(this._element,this._name,"paused")}resume(){Kt(this._element,this._name,"running")}setPosition(t){const e=$t(this._element,this._name);this._position=t*this._duration,te(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Jt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ee(t,"").split(","),i=Xt(n,e);i>=0&&(n.splice(i,1),te(t,"",n.join(",")))}(this._element,this._name))}}function Kt(t,e,n){te(t,"PlayState",n,$t(t,e))}function $t(t,e){const n=ee(t,"");return n.indexOf(",")>0?Xt(n.split(","),e):Xt([n],e)}function Xt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Jt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function ee(t,e){return t.style["animation"+e]||""}class ne{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:G(this.element,n))})}this.currentSnapshot=t}}class ie extends s.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class re{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof ne),l={};Y(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=H(t,e,l));if(0==n)return new ie(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=Ht(t,e),f=new ne(t,e,u,n,i,r,c,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}}class se{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:G(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class oe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new re}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(t=>t instanceof se);Y(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=Ht(t,e=H(t,e=e.map(t=>I(t,!1)),l));return new se(t,e,a,u)}}function ae(){return o()&&Element.prototype.animate||{}}var le=n(8583);let ce=(()=>{class t extends s._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,s.vP)(t):t;return de(this._renderer,null,e,"register",[n]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(le.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ue extends s.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return de(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function de(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let fe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new ge(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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)(i.LFG(i.FYo),i.LFG(Yt),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ge extends pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let me=(()=>{class t extends Yt{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(le.K0),i.LFG(A),i.LFG(mt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const _e=new i.OlP("AnimationModuleType"),ye=[{provide:s._j,useClass:ce},{provide:mt,useFactory:function(){return new _t}},{provide:Yt,useClass:me},{provide:i.FYo,useFactory:function(t,e,n){return new fe(t,e,n)},deps:[r.se,Yt,i.R0b]}],ve=[{provide:A,useFactory:function(){return"function"==typeof ae()?new oe:new re}},{provide:_e,useValue:"BrowserAnimations"},...ye],be=[{provide:A,useClass:E},{provide:_e,useValue:"NoopAnimations"},...ye];let we=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?be:ve}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:ve,imports:[r.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return F},H7:function(){return R},q6:function(){return j},se:function(){return C}});var i=n(8583),r=n(7716);class s extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends s{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),u=[{provide:r.ip1,useFactory:function(t,e,n){return()=>{n.get(r.CZH).donePromise.then(()=>{const n=(0,i.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,i.K0,r.zs3],multi:!0}];class h{static init(){(0,r.VLi)(new h)}addToWindow(t){r.dqk.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(t=>{const e=r.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const f=new r.OlP("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(f),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class g{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=(0,i.q)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let m=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const v={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/"},b=/%COMP%/g;function w(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?w(t,r,n):(r=r.replace(b,t),n.push(r))}return n}function x(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(p),r.LFG(_),r.LFG(r.AFp))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(v[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=v[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=v[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,n,i&r.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(n)):this.eventManager.addEventListener(t,e,x(n))}}class k extends S{constructor(t,e,n,i){super(t),this.component=n;const r=w(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(b,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(b,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends S{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=w(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let A=(()=>{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const M=["alt","control","meta","shift"],T={"\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"},O={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"},D={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(M.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&O.hasOwnProperty(e)&&(e=O[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),M.forEach(i=>{i!=n&&(0,D[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(N)},token:t,providedIn:"root"}),t})();function L(t){return new N(t.get(i.K0))}let N=(()=>{class t extends R{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return L((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const j=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:i.bD},{provide:r.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}]),P=[[],{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:f,useClass:A,multi:!0,deps:[i.K0,r.R0b,r.Lbi]},{provide:f,useClass:I,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[p,_,r.AFp]},{provide:r.FYo,useExisting:C},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:p,useClass:p,deps:[f,r.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let F=(()=>{class t{constructor(t){if(t)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:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(t,12))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:P,imports:[i.ez,r.hGG]}),t})();"undefined"!=typeof window&&window},4655:function(t,e,n){"use strict";n.d(e,{gz:function(){return $t},OD:function(){return Z},F0:function(){return bn},yS:function(){return wn},Bz:function(){return Rn},lC:function(){return Cn}});var i=n(8583),r=n(7716);const s=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),f=n(9193),p=n(2441),g=n(9765),m=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new v(t,this.accumulator,this.seed,this.hasSeed))}}class v extends m.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var b=n(5435),w=n(7108);function x(t){return function(e){return 0===t?(0,f.c)():e.lift(new C(t))}}class C{constructor(t){if(this.total=t,this.total<0)throw new w.W}call(t,e){return e.subscribe(new S(t,this.total))}}class S extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function k(t=M){return e=>e.lift(new E(t))}class E{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new A(t,this.errorFactory))}}class A extends m.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function M(){return new s}function T(t=null){return e=>e.lift(new O(t))}class O{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new D(t,this.defaultValue))}}class D extends m.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var I=n(4487),R=n(5257);function L(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,b.h)((e,n)=>t(e,n,i)):I.y,(0,R.q)(1),n?T(e):k(()=>new s))}var N=n(8002),j=n(3190),P=n(9761),F=n(5304),z=n(4612),V=n(9773),U=n(3342),B=n(1307),q=n(8939),Y=n(3282);class H{constructor(t,e){this.id=t,this.url=e}}class Z extends H{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class G extends H{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Q extends H{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class W extends H{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends H{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $ extends H{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends H{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class J extends H{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends H{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class lt{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ct(t){return new lt(t)}function ut(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ht(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const e=i[s],n=t[s];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function dt(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!ft(t[r],e[r]))return!1;return!0}function ft(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function pt(t){return Array.prototype.concat.apply([],t)}function gt(t){return t.length>0?t[t.length-1]:null}function mt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function _t(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const yt={exact:function t(e,n,i){if(!At(e.segments,n.segments))return!1;if(!Ct(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:wt},vt={exact:function(t,e){return dt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ft(t[n],e[n]))},ignored:()=>!0};function bt(t,e,n){return yt[n.paths](t.root,e.root,n.matrixParams)&&vt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function wt(t,e,n){return xt(t,e,e.segments,n)}function xt(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!!At(r,n)&&!e.hasChildren()&&!!Ct(r,n,i)}if(t.segments.length===n.length){if(!At(t.segments,n))return!1;if(!Ct(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!wt(t.children[n],e.children[n],i))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!At(t.segments,r)&&!!Ct(t.segments,r,i)&&!!t.children.primary&&xt(t.children.primary,e,s,i)}}function Ct(t,e,n){return e.every((e,i)=>vt[n](t[i].parameters,e.parameters))}class St{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return Ot.serialize(this)}}class kt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,mt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dt(this)}}class Et{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ct(this.parameters)),this._parameterMap}toString(){return Ft(this)}}function At(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Mt{}class Tt{parse(t){const e=new qt(t);return new St(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${It(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Lt(e)}=${Lt(t)}`).join("&"):`${Lt(e)}=${Lt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Ot=new Tt;function Dt(t){return t.segments.map(t=>Ft(t)).join("/")}function It(t,e){if(!t.hasChildren())return Dt(t);if(e){const e=t.children.primary?It(t.children.primary,!1):"",n=[];return mt(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${It(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return mt(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),mt(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>"primary"===n?[It(t.children.primary,!1)]:[`${n}:${It(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Dt(t)}/${e[0]}`:`${Dt(t)}/(${e.join("//")})`}}function Rt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lt(t){return Rt(t).replace(/%3B/gi,";")}function Nt(t){return Rt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jt(t){return decodeURIComponent(t)}function Pt(t){return jt(t.replace(/\+/g,"%20"))}function Ft(t){return`${Nt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Nt(t)}=${Nt(e[t])}`).join("")}`;var e}const zt=/^[^\/()?;=#]+/;function Vt(t){const e=t.match(zt);return e?e[0]:""}const Ut=/^[^=?&#]+/,Bt=/^[^?&#]+/;class qt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new kt(t,e)),n}parseSegment(){const t=Vt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Et(jt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Vt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Vt(this.remaining);t&&(n=t,this.capture(n))}t[jt(e)]=jt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ut);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Bt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Pt(e),r=Pt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Vt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new kt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Yt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ht(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ht(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Zt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Zt(t,this._root).map(t=>t.value)}}function Ht(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ht(t,n);if(e)return e}return null}function Zt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Zt(t,n);if(i.length)return i.unshift(e),i}return[]}class Gt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Qt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Wt extends Yt{constructor(t,e){super(t),this.snapshot=e,ee(this,t)}toString(){return this.snapshot.toString()}}function Kt(t,e){const n=function(t,e){const n=new Jt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new te("",new Gt(n,[]))}(t,e),i=new l.X([new Et("",{})]),r=new l.X({}),s=new l.X({}),o=new l.X({}),a=new l.X(""),c=new $t(i,r,o,a,s,"primary",e,n.root);return c.snapshot=n.root,new Wt(new Gt(c,[]),n)}class $t{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,N.U)(t=>ct(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,N.U)(t=>ct(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Jt{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ct(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class te extends Yt{constructor(t,e){super(e),this.url=t,ee(this,e)}toString(){return ne(this._root)}}function ee(t,e){e.value._routerState=t,e.children.forEach(e=>ee(t,e))}function ne(t){const e=t.children.length>0?` { ${t.children.map(ne).join(", ")} } `:"";return`${t.value}${e}`}function ie(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,dt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),dt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!dt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),dt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function re(t,e){var n,i;return dt(t.params,e.params)&&At(n=t.url,i=e.url)&&n.every((t,e)=>dt(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||re(t.parent,e.parent))}function se(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return se(t,e,i);return se(t,e)})}(t,e,n);return new Gt(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return oe(e,t),t}}const n=new $t(new l.X((i=e.value).url),new l.X(i.params),new l.X(i.queryParams),new l.X(i.fragment),new l.X(i.data),i.outlet,i.component,i),r=e.children.map(e=>se(t,e));return new Gt(n,r)}var i}function oe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)oe(t.children[n],e.children[n])}function ae(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function le(t){return"object"==typeof t&&null!=t&&t.outlets}function ce(t,e,n,i,r){let s={};return i&&mt(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new St(n.root===t?e:ue(n.root,t,e),s,r)}function ue(t,e,n){const i={};return mt(t.children,(t,r)=>{i[r]=t===e?n:ue(t,e,n)}),new kt(t.segments,i)}class he{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ae(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(le);if(i&&i!==gt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class de{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function fe(t,e,n){if(t||(t=new kt([],{})),0===t.segments.length&&t.hasChildren())return pe(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=n[i];if(le(o))break;const a=`${o}`,l=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ye(a,l,e))return s;i+=2}else{if(!ye(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new kt(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new kt(t.segments.slice(i.pathIndex),t.children),pe(e,0,r)}return i.match&&0===r.length?new kt(t.segments,{}):i.match&&!t.hasChildren()?ge(t,e,n):i.match?pe(t,0,r):ge(t,e,n)}function pe(t,e,n){if(0===n.length)return new kt(t.segments,{});{const i=function(t){return le(t[0])?t[0].outlets:{primary:t}}(n),r={};return mt(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=fe(t.children[i],e,n))}),mt(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new kt(t.segments,r)}}function ge(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const s=n[r];if(le(s)){const t=me(s.outlets);return new kt(i,t)}if(0===r&&ae(n[0])){i.push(new Et(t.segments[e].path,_e(n[0]))),r++;continue}const o=le(s)?s.outlets.primary:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&ae(a)?(i.push(new Et(o,_e(a))),r+=2):(i.push(new Et(o,{})),r++)}return new kt(i,{})}function me(t){const e={};return mt(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ge(new kt([],{}),0,t))}),e}function _e(t){const e={};return mt(t,(t,n)=>e[n]=`${t}`),e}function ye(t,e,n){return t==n.path&&dt(e,n.parameters)}class ve{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ie(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Qt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),mt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Qt(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Qt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ot(t.value.snapshot))}),t.children.length&&this.forwardEvent(new rt(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(ie(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),be(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function be(t){ie(t.value),t.children.forEach(be)}class we{constructor(t,e){this.routes=t,this.module=e}}function xe(t){return"function"==typeof t}function Ce(t){return t instanceof St}const Se=Symbol("INITIAL_VALUE");function ke(){return(0,j.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,R.q)(1),(0,P.O)(Se)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==Se)return t;if(i===Se&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||Ce(i))return i}return t},t)},Se),(0,b.h)(t=>t!==Se),(0,N.U)(t=>Ce(t)?t:!0===t),(0,R.q)(1)))}let Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[Cn]},encapsulation:2}),t})();function Ae(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Me(i,Te(e,i))}}function Me(t,e){t.children&&Ae(t.children,e)}function Te(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Oe(t){const e=t.children&&t.children.map(Oe),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Ee),n}function De(t){return t.outlet||"primary"}function Ie(t,e){const n=t.filter(t=>De(t)===e);return n.push(...t.filter(t=>De(t)!==e)),n}const Re={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Le(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Re):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||ht)(n,t,e);if(!r)return Object.assign({},Re);const s={};mt(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ne(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>je(t,e,n)&&"primary"!==De(n))}(t,n,i)){const r=new kt(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==De(s)){const n=new kt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[De(s)]=n}return r}(t,e,i,new kt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>je(t,e,n))}(t,n,i)){const s=new kt(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(je(t,n,a)&&!r[De(a)]){const n=new kt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[De(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new kt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function je(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Pe(t,e,n,i){return!!(De(t)===i||"primary"!==i&&je(e,n,t))&&("**"===t.path||Le(e,t,n).matched)}function Fe(t,e,n){return 0===e.length&&!t.children[n]}class ze{constructor(t){this.segmentGroup=t||null}}class Ve{constructor(t){this.urlTree=t}}function Ue(t){return new u.y(e=>e.error(new ze(t)))}function Be(t){return new u.y(e=>e.error(new Ve(t)))}function qe(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ye{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Ne(this.urlTree.root,[],[],this.config).segmentGroup,e=new kt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,N.U)(t=>this.createUrlTree(He(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,F.K)(t=>{if(t instanceof Ve)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ze)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,N.U)(e=>this.createUrlTree(He(e),t.queryParams,t.fragment))).pipe((0,F.K)(t=>{if(t instanceof ze)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new kt([],{primary:t}):t;return new St(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,N.U)(t=>new kt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return(0,o.D)(i).pipe((0,z.b)(i=>{const r=n.children[i],s=Ie(e,i);return this.expandSegmentGroup(t,s,r,i).pipe((0,N.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,b.h)((e,n)=>t(e,n,i)):I.y,x(1),n?T(e):k(()=>new s))}())}expandSegment(t,e,n,i,r,l){return(0,o.D)(n).pipe((0,z.b)(s=>this.expandSegmentAgainstRoute(t,e,n,s,i,r,l).pipe((0,F.K)(t=>{if(t instanceof ze)return(0,a.of)(null);throw t}))),L(t=>!!t),(0,F.K)((t,n)=>{if(t instanceof s||"EmptyError"===t.name){if(Fe(e,i,r))return(0,a.of)(new kt([],{}));throw new ze(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return Pe(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):Ue(e):Ue(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Be(r):this.lineralizeSegments(n,r).pipe((0,V.zg)(n=>{const r=new kt(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Le(e,i,r);if(!o)return Ue(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Be(u):this.lineralizeSegments(i,u).pipe((0,V.zg)(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,N.U)(t=>(n._loadedConfig=t,new kt(i,{})))):(0,a.of)(new kt(i,{}));const{matched:s,consumedSegments:o,lastChild:l}=Le(e,n,i);if(!s)return Ue(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,V.zg)(t=>{const i=t.module,s=t.routes,{segmentGroup:l,slicedSegments:u}=Ne(e,o,c,s),h=new kt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,s,h).pipe((0,N.U)(t=>new kt(o,t)));if(0===s.length&&0===u.length)return(0,a.of)(new kt(o,{}));const d=De(n)===r;return this.expandSegment(i,h,s,u,d?"primary":r,!0).pipe((0,N.U)(t=>new kt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new we(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,V.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,N.U)(t=>(e._loadedConfig=t,t))):function(t){return new u.y(e=>e.error(ut(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,a.of)(new we([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const r=i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&xe(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!xe(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return _t(s)});return(0,a.of)(r).pipe(ke(),(0,U.b)(t=>{if(!Ce(t))return;const e=ut(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,N.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children.primary)return qe(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new St(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return mt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return mt(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new kt(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function He(t){const e={};for(const n of Object.keys(t.children)){const i=He(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new kt(t.segments.concat(e.segments),e.children)}return t}(new kt(t.segments,e))}class Ze{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ge{constructor(t,e){this.component=t,this.route=e}}function Qe(t,e,n){const i=t._root;return Ke(i,e?e._root:null,n,[i.value])}function We(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ke(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Qt(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!dt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!re(t,e)||!dt(t.queryParams,e.queryParams);case"paramsChange":default:return!re(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ze(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Ke(t,e,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ge(a.outlet.component,o))}else o&&$e(e,a,r),r.canActivateChecks.push(new Ze(i)),Ke(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),mt(s,(t,e)=>$e(t,n.getContext(e),r)),r}function $e(t,e,n){const i=Qt(t),r=t.value;mt(i,(t,i)=>{$e(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Ge(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class Xe{}function Je(t){return new u.y(e=>e.error(t))}class tn{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=Ne(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new Jt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Gt(n,e),r=new te(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Xt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=Ie(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=nn(n);return i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return Fe(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Pe(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?gt(n).parameters:{};r=new Jt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(t),De(t),t.component,t,rn(e),sn(e)+n.length,an(t))}else{const i=Le(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Jt(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(t),De(t),t.component,t,rn(e),sn(e)+s.length,an(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ne(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Gt(r,t)]}if(0===a.length&&0===c.length)return[new Gt(r,[])];const u=De(t)===i,h=this.processSegment(a,l,c,u?"primary":i);return null===h?null:[new Gt(r,h)]}}function en(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function nn(t){const e=[],n=new Set;for(const i of t){if(!en(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=nn(i.children);e.push(new Gt(i.value,t))}return e.filter(t=>!n.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function sn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function on(t){return t.data||{}}function an(t){return t.resolve||{}}function ln(t){return(0,j.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,N.U)(()=>e)):(0,a.of)(e)})}class cn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const un=new r.OlP("ROUTES");class hn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,N.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new we(pt(i.injector.get(un,void 0,r.XFs.Self|r.XFs.Optional)).map(Oe),i)}),(0,F.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new p.c(n,()=>new g.xQ).pipe((0,B.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):_t(t()).pipe((0,V.zg)(t=>t instanceof r.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class dn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fn,this.attachRef=null}}class fn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new dn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class pn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function gn(t){throw t}function mn(t,e,n){return e.parse("/")}function _n(t,e){return(0,a.of)(null)}const yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let bn=(()=>{class t{constructor(t,e,n,i,s,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=gn,this.malformedUriErrorHandler=mn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_n,afterPreactivation:_n},this.urlHandlingStrategy=new pn,this.routeReuseStrategy=new cn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(r.h0i),this.console=s.get(r.c2e);const u=s.get(r.R0b);this.isNgZoneEnabled=u instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new St(new kt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new hn(o,a,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Kt(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,b.h)(t=>0!==t.id),(0,N.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,j.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,U.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,j.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,a.of)(t).pipe((0,j.w)(t=>{const n=this.transitions.getValue();return e.next(new Z(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?f.E:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,(0,j.w)(t=>function(t,e,n,i,r){return new Ye(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe((0,N.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,U.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return(0,V.zg)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const o=new tn(t,e,n,i,r,s).recognize();return null===o?Je(new Xe):(0,a.of)(o)}catch(o){return Je(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe((0,N.U)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,U.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,l=new Z(n,this.serializeUrl(i),r,s);e.next(l);const c=Kt(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.E}),ln(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,U.b)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,N.U)(t=>Object.assign(Object.assign({},t),{guards:Qe(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,V.zg)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:l}}=n;return 0===l.length&&0===s.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,V.zg)(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return(0,a.of)(!0);const o=s.map(s=>{const o=We(s,e,r);let a;if(function(t){return t&&xe(t.canDeactivate)}(o))a=_t(o.canDeactivate(t,e,n,i));else{if(!xe(o))throw new Error("Invalid CanDeactivate guard");a=_t(o(t,e,n,i))}return a.pipe(L())});return(0,a.of)(o).pipe(ke())}(t.component,t.route,n,e,i)),L(t=>!0!==t,!0))}(l,i,r,t).pipe((0,V.zg)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new it(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new st(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const r=e.guards.map(r=>{const s=We(r,e.node,n);let o;if(function(t){return t&&xe(t.canActivateChild)}(s))o=_t(s.canActivateChild(i,t));else{if(!xe(s))throw new Error("Invalid CanActivateChild guard");o=_t(s(i,t))}return o.pipe(L())});return(0,a.of)(r).pipe(ke())}));return(0,a.of)(r).pipe(ke())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const r=i.map(i=>(0,d.P)(()=>{const r=We(i,e,n);let s;if(function(t){return t&&xe(t.canActivate)}(r))s=_t(r.canActivate(e,t));else{if(!xe(r))throw new Error("Invalid CanActivate guard");s=_t(r(e,t))}return s.pipe(L())}));return(0,a.of)(r).pipe(ke())}(t,e.route,n))),L(t=>!0!==t,!0))}(i,s,t,e):(0,a.of)(n)),(0,N.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,U.b)(t=>{if(Ce(t.guardsResult)){const e=ut(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,b.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),ln(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,U.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.w)(t=>{let e=!1;return(0,a.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,V.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,a.of)(t);let s=0;return(0,o.D)(r).pipe((0,z.b)(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,a.of)({});const s={};return(0,o.D)(r).pipe((0,V.zg)(r=>function(t,e,n,i){const r=We(t,e,i);return _t(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe((0,U.b)(t=>{s[r]=t}))),x(1),(0,V.zg)(()=>Object.keys(s).length===r.length?(0,a.of)(s):f.E))}(t._resolve,t,e,i).pipe((0,N.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Xt(t,n).resolve),null)))}(t.route,e,n,i)),(0,U.b)(()=>s++),x(1),(0,V.zg)(e=>s===r.length?(0,a.of)(t):f.E))})),(0,U.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,i}),(0,U.b)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ln(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,N.U)(t=>{const e=function(t,e,n){const i=se(t,e._root,n?n._root:void 0);return new Wt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,U.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,l=t=>this.triggerEvent(t),(0,N.U)(t=>(new ve(s,t.targetRouterState,t.currentRouterState,l).activate(r),t))),(0,U.b)({next(){n=!0},complete(){n=!0}}),(0,q.x)(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),(0,F.K)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=Ce(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new Q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new W(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return f.E}));var r,s,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ae(t),this.config=t.map(Oe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return ce(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new he(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return mt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new he(n,e,i)}(n);if(s.toRoot())return ce(e.root,new kt([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new de(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new de(t,t===e.root,0)}const i=ae(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new de(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?pe(o.segmentGroup,o.index,s.commands):fe(o.segmentGroup,o.index,s.commands);return ce(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Ce(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},yn):!1===e?Object.assign({},vn):e,Ce(t))return bt(this.currentUrlTree,t,n);const i=this.parseUrl(t);return bt(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){var s,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;r?(u=r.resolve,h=r.reject,d=r.promise):d=new Promise((t,e)=>{u=t,h=e});const f=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),p=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):p=0,this.setTransition({id:f,targetPageId:p,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new Q(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(Mt),r.LFG(fn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),wn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe(t=>{t instanceof G&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:xn(this.skipLocationChange),replaceUrl:xn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:xn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(bn),r.Y36($t),r.Y36(i.S$))},t.\u0275dir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function xn(t){return""===t||!!t}let Cn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Sn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(fn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Sn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===$t?this.route:t===fn?this.childContexts:this.parent.get(t,e)}}class kn{}class En{preload(t,e){return(0,a.of)(null)}}let An=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new hn(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,b.h)(t=>t instanceof G),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,Y.J)(),(0,N.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,V.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(bn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(kn))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Mn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof G&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(bn),r.LFG(i.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const Tn=new r.OlP("ROUTER_CONFIGURATION"),On=new r.OlP("ROUTER_FORROOT_GUARD"),Dn=[i.Ye,{provide:Mt,useClass:Tt},{provide:bn,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new bn(null,t,e,n,i,r,s,pt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Mt,fn,i.Ye,r.zs3,r.v3s,r.Sil,un,Tn,[class{},new r.FiY],[class{},new r.FiY]]},fn,{provide:$t,useFactory:function(t){return t.routerState.root},deps:[bn]},{provide:r.v3s,useClass:r.EAV},An,En,class{preload(t,e){return e().pipe((0,F.K)(()=>(0,a.of)(null)))}},{provide:Tn,useValue:{enableTracing:!1}}];function In(){return new r.PXZ("Router",bn)}let Rn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Dn,Pn(e),{provide:On,useFactory:jn,deps:[[bn,new r.FiY,new r.tp0]]},{provide:Tn,useValue:n||{}},{provide:i.S$,useFactory:Nn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Tn]},{provide:Mn,useFactory:Ln,deps:[bn,i.EM,Tn]},{provide:kn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:En},{provide:r.PXZ,multi:!0,useFactory:In},[Fn,{provide:r.ip1,multi:!0,useFactory:zn,deps:[Fn]},{provide:Un,useFactory:Vn,deps:[Fn]},{provide:r.tb,multi:!0,useExisting:Un}]]}}static forChild(e){return{ngModule:t,providers:[Pn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(On,8),r.LFG(bn,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();function Ln(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Mn(t,e,n)}function Nn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function jn(t){return"guarded"}function Pn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:un,multi:!0,useValue:t}]}let Fn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(bn),i=this.injector.get(Tn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Tn),n=this.injector.get(An),i=this.injector.get(Mn),s=this.injector.get(bn),o=this.injector.get(r.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function zn(t){return t.appInitializer.bind(t)}function Vn(t){return t.bootstrapListener.bind(t)}const Un=new r.OlP("Router Initializer")},3446:function(t,e,n){"use strict";n.d(e,{wx:function(){return Nr},c9:function(){return Rr},$5:function(){return Pr},YP:function(){return jr},e$:function(){return Ur},Ue:function(){return Fr},Mn:function(){return zr},ll:function(){return Vr}});var i=n(7716),r=n(8583),s=n(3679),o=n(4655),a=n(7441),l=n(2091),c=n(9692),u=n(1494),h=n(7539),d=n(9765);const f=function(){let t=0;return function(){return t++}}();function p(t){return null==t}function g(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function m(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const _=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function y(t,e){return _(t)?t:e}function v(t,e){return void 0===t?e:t}function b(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function w(t,e,n,i){let r,s,o;if(g(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(m(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(n,t[o[r]],o[r])}function x(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function C(t){if(g(t))return t.map(C);if(m(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=C(t[n[r]]);return e}return t}function S(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function k(t,e,n,i){if(!S(t))return;const r=e[t],s=n[t];m(r)&&m(s)?E(r,s,i):e[t]=C(s)}function E(t,e,n){const i=g(e)?e:[e],r=i.length;if(!m(t))return t;const s=(n=n||{}).merger||k;for(let o=0;o<r;++o){if(!m(e=i[o]))continue;const r=Object.keys(e);for(let i=0,o=r.length;i<o;++i)s(r[i],t,e,n)}return t}function A(t,e){return E(t,e,{merger:M})}function M(t,e,n){if(!S(t))return;const i=e[t],r=n[t];m(i)&&m(r)?A(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=C(r))}const T={"":t=>t,x:t=>t.x,y:t=>t.y};function O(t,e){return(T[e]||(T[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e)))(t)}function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}const I=t=>void 0!==t,R=t=>"function"==typeof t,L=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},N=Math.PI,j=2*N,P=Number.POSITIVE_INFINITY,F=N/2,z=Math.log10,V=Math.sign;function U(t){const e=Math.round(t);t=q(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(z(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function B(t){return!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e,n){return Math.abs(t-e)<n}function Y(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function H(t){return t*(N/180)}function Z(t){return t*(180/N)}function G(t){if(!_(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Q(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*N&&(s+=j),{angle:s,distance:r}}function W(t){return(t%j+j)%j}function K(t,e,n,i){const r=W(t),s=W(e),o=W(n),a=W(s-r),l=W(o-r),c=W(r-s),u=W(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function $(t,e,n){return Math.max(e,Math.min(n,t))}function X(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function J(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const tt=(t,e,n,i)=>J(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),et=(t,e,n)=>J(t,n,i=>t[i][e]>=n),nt=["push","pop","shift","splice","unshift"];function it(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(nt.forEach(e=>{delete t[e]}),delete t._chartjs)}const rt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function st(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let r=!1,s=[];return function(...n){s=i(n),r||(r=!0,rt.call(window,()=>{r=!1,t.apply(e,s)}))}}const ot=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,at=t=>0===t||1===t,lt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*j/n),ct=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*j/n)+1,ut={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*F),easeOutSine:t=>Math.sin(t*F),easeInOutSine:t=>-.5*(Math.cos(N*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>at(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>at(t)?t:lt(t,.075,.3),easeOutElastic:t=>at(t)?t:ct(t,.075,.3),easeInOutElastic(t){const e=.1125;return at(t)?t:t<.5?.5*lt(2*t,e,.45):.5+.5*ct(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ut.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5};function ht(t){return t+.5|0}const dt=(t,e,n)=>Math.max(Math.min(t,n),e);function ft(t){return dt(ht(2.55*t),0,255)}function pt(t){return dt(ht(255*t),0,255)}function gt(t){return dt(ht(t/2.55)/100,0,1)}function mt(t){return dt(ht(100*t),0,100)}const _t={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},yt=[..."0123456789ABCDEF"],vt=t=>yt[15&t],bt=t=>yt[(240&t)>>4]+yt[15&t],wt=t=>(240&t)>>4==(15&t),xt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ct(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function St(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function kt(t,e,n){const i=Ct(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Et(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o=(r+s)/2;let a,l,c;return r!==s&&(c=r-s,l=o>.5?c/(2-r-s):c/(r+s),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,o]}function At(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(pt)}function Mt(t,e,n){return At(Ct,t,e,n)}function Tt(t){return(t%360+360)%360}const Ot={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let It;const Rt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Lt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Nt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function jt(t,e,n){if(t){let i=Et(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Mt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Pt(t,e){return t?Object.assign(e||{},t):t}function Ft(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=pt(t[3]))):(e=Pt(t,{r:0,g:0,b:0,a:1})).a=pt(e.a),e}class zt{constructor(t){if(t instanceof zt)return t;const e=typeof t;let n;var i,r,s;"object"===e?n=Ft(t):"string"===e&&(s=(i=t).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*_t[i[1]],g:255&17*_t[i[2]],b:255&17*_t[i[3]],a:5===s?17*_t[i[4]]:255}:7!==s&&9!==s||(r={r:_t[i[1]]<<4|_t[i[2]],g:_t[i[3]]<<4|_t[i[4]],b:_t[i[5]]<<4|_t[i[6]],a:9===s?_t[i[7]]<<4|_t[i[8]]:255})),n=r||function(t){It||(It=function(){const t={},e=Object.keys(Dt),n=Object.keys(Ot);let i,r,s,o,a;for(i=0;i<e.length;i++){for(o=a=e[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,Ot[s]);s=parseInt(Dt[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),It.transparent=[0,0,0,0]);const e=It[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||function(t){return"r"===t.charAt(0)?function(t){const e=Rt.exec(t);let n,i,r,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?ft(t):dt(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?ft(n):dt(n,0,255)),i=255&(e[4]?ft(i):dt(i,0,255)),r=255&(e[6]?ft(r):dt(r,0,255)),{r:n,g:i,b:r,a:s}}}(t):function(t){const e=xt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?ft(+e[5]):pt(+e[5]));const r=Tt(+e[2]),s=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return At(kt,t,e,n)}(r,s,o):"hsv"===e[1]?function(t,e,n){return At(St,t,e,n)}(r,s,o):Mt(r,s,o),{r:n[0],g:n[1],b:n[2],a:i}}(t)}(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Pt(this._rgb);return t&&(t.a=gt(t.a)),t}set rgb(t){this._rgb=Ft(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${gt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>wt(t.r)&&wt(t.g)&&wt(t.b)&&wt(t.a))(t=this._rgb)?vt:bt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Et(t),n=e[0],i=mt(e[1]),r=mt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${gt(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const s=e===r?.5:e,o=2*s-1,a=n.a-i.a,l=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Nt(gt(t.r)),r=Nt(gt(t.g)),s=Nt(gt(t.b));return{r:pt(Lt(i+n*(Nt(gt(e.r))-i))),g:pt(Lt(r+n*(Nt(gt(e.g))-r))),b:pt(Lt(s+n*(Nt(gt(e.b))-s))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new zt(this.rgb)}alpha(t){return this._rgb.a=pt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ht(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return jt(this._rgb,2,t),this}darken(t){return jt(this._rgb,2,-t),this}saturate(t){return jt(this._rgb,1,t),this}desaturate(t){return jt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Et(t);n[0]=Tt(n[0]+e),n=Mt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Vt(t){return new zt(t)}function Ut(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Bt(t){return Ut(t)?t:Vt(t)}function qt(t){return Ut(t)?t:Vt(t).saturate(.5).darken(.1).hexString()}const Yt=Object.create(null),Ht=Object.create(null);function Zt(t,e){if(!e)return t;const n=e.split(".");for(let i=0,r=n.length;i<r;++i){const e=n[i];t=t[e]||(t[e]=Object.create(null))}return t}function Gt(t,e,n){return"string"==typeof e?E(Zt(t,e),n):E(Zt(t,""),e)}var Qt=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>qt(e.backgroundColor),this.hoverBorderColor=(t,e)=>qt(e.borderColor),this.hoverColor=(t,e)=>qt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Gt(this,t,e)}get(t){return Zt(this,t)}describe(t,e){return Gt(Ht,t,e)}override(t,e){return Gt(Yt,t,e)}route(t,e,n,i){const r=Zt(this,t),s=Zt(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=s[i];return m(t)?Object.assign({},e,t):v(t,e)},set(t){this[o]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Wt(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function Kt(t,e,n,i){let r=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},s=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,c,u,h,d;for(l=0;l<a;l++)if(h=n[l],null!=h&&!0!==g(h))o=Wt(t,r,s,o,h);else if(g(h))for(c=0,u=h.length;c<u;c++)d=h[c],null==d||g(d)||(o=Wt(t,r,s,o,d));t.restore();const f=s.length/2;if(f>n.length){for(l=0;l<f;l++)delete r[s[l]];s.splice(0,f)}return o}function $t(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Xt(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Jt(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function te(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ee(t){t.restore()}function ne(t,e,n,i,r,s={}){const o=g(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),p(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;l<o.length;++l)c=o[l],a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),p(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,i,s.maxWidth)),t.fillText(c,n,i,s.maxWidth),ie(t,n,i,c,s),i+=r.lineHeight;t.restore()}function ie(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function re(t,e){const{x:n,y:i,w:r,h:s,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,-F,N,!0),t.lineTo(n,i+s-o.bottomLeft),t.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,N,F,!0),t.lineTo(n+r-o.bottomRight,i+s),t.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,F,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-F,!0),t.lineTo(n+o.topLeft,i)}const se=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),oe=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ae(t,e){const n=(""+t).match(se);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function le(t,e){const n={},i=m(e),r=i?Object.keys(e):e,s=m(t)?i?n=>v(t[n],t[e[n]]):e=>t[e]:()=>t;for(const o of r)n[o]=+s(o)||0;return n}function ce(t){return le(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ue(t){return le(t,["topLeft","topRight","bottomLeft","bottomRight"])}function he(t){const e=ce(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function de(t,e){let n=v((t=t||{}).size,(e=e||Qt.font).size);"string"==typeof n&&(n=parseInt(n,10));let i=v(t.style,e.style);i&&!(""+i).match(oe)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:v(t.family,e.family),lineHeight:ae(v(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:v(t.weight,e.weight),string:""};return r.string=function(t){return!t||p(t.size)||p(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function fe(t,e,n,i){let r,s,o,a=!0;for(r=0,s=t.length;r<s;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==n&&g(o)&&(o=o[n%o.length],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}function pe(t,e){return Object.assign(Object.create(t),e)}function ge(t,e=[""],n=t,i,r=(()=>t[0])){I(i)||(i=Ee("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:r,override:r=>ge([r,...t],e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>be(n,i,()=>function(t,e,n,i){let r;for(const s of e)if(r=Ee(ye(s,t),n),I(r))return ve(t,r)?Se(n,i,t,r):r}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ae(t).includes(e),ownKeys:t=>Ae(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function me(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_e(t,i),setContext:e=>me(t,e,n,i),override:r=>me(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>be(t,e,()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return R(a)&&o.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(s,o||i),a.delete(t),ve(t,e)&&(e=Se(r._scopes,r,t,e)),e}(e,a,t,n)),g(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(I(s.index)&&i(t))e=e[s.index%e.length];else if(m(e[0])){const n=e,i=r._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Se(i,r,t,l);e.push(me(n,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable)),ve(e,a)&&(a=me(a,r,s&&s[e],o)),a}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function _e(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:R(n)?n:()=>n,isIndexable:R(i)?i:()=>i}}const ye=(t,e)=>t?t+D(e):e,ve=(t,e)=>m(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function be(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function we(t,e,n){return R(t)?t(e,n):t}const xe=(t,e)=>!0===t?e:"string"==typeof t?O(e,t):void 0;function Ce(t,e,n,i,r){for(const s of e){const e=xe(n,s);if(e){t.add(e);const s=we(e._fallback,n,r);if(I(s)&&s!==n&&s!==i)return s}else if(!1===e&&I(i)&&n!==i)return null}return!1}function Se(t,e,n,i){const r=e._rootScopes,s=we(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=ke(a,o,n,s||n,i);return null!==l&&(!I(s)||s===n||(l=ke(a,o,s,l,i),null!==l))&&ge(Array.from(a),[""],r,s,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return g(r)&&m(n)?n:r}(e,n,i))}function ke(t,e,n,i,r){for(;n;)n=Ce(t,e,n,i,r);return n}function Ee(t,e){for(const n of e){if(!n)continue;const e=n[t];if(I(e))return e}}function Ae(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Me(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Te(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Oe(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const De=t=>window.getComputedStyle(t,null),Ie=["top","right","bottom","left"];function Re(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=Ie[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Le(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=De(n),s="border-box"===r.boxSizing,o=Re(r,"padding"),a=Re(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,s,t.target))o=r,a=s;else{const t=e.getBoundingClientRect();o=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:o,y:a,box:l}}(t,n),h=o.left+(u&&a.left),d=o.top+(u&&a.top);let{width:f,height:p}=e;return s&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-h)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const Ne=t=>Math.round(10*t)/10;function je(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=r/i,t.width=s/i;const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Pe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function Fe(t,e){const n=function(t,e){return De(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}const ze=new Map;function Ve(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ze.get(n);return i||(i=new Intl.NumberFormat(t,e),ze.set(n,i)),i}(e,n).format(t)}var Ue=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.duration;e.listeners[i].forEach(i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=rt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Be={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Bt(t||"transparent"),r=i.valid&&Bt(e||"transparent");return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class qe{constructor(t,e,n,i){const r=e[n];i=fe([t.to,i,r,t.from]);const s=fe([t.from,r,i]);this._active=!0,this._fn=t.fn||Be[t.type||typeof s],this._easing=ut[t.easing]||ut.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=fe([t.to,e,i,t.from]),this._from=fe([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||e<n),!this._active)return this._target[i]=o,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][e]()}}Qt.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Ye=Object.keys(Qt.animation);Qt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class He{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!m(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!m(i))return;const r={};for(const t of Ye)r[t]=i[t];(g(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,r)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let r=0;r<i.length;r++){const e=t[i[r]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,o);continue}u.cancel()}h&&h.duration?(r[l]=u=new qe(h,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Ue.add(this._chart,n),!0):void 0}}function Ze(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,s=void 0===n.max?e:0;return{start:i?s:r,end:i?r:s}}function Ge(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function Qe(t,e,n,i={}){const r=t.keys,s="single"===i.mode;let o,a,l,c;if(null!==e){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===n){if(i.all)continue;break}c=t.values[l],_(c)&&(s||0===e||V(e)===V(c))&&(e+=c)}return e}}function We(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ke(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function $e(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Xe(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(s,o,i),h=e.length;let d;for(let f=0;f<h;++f){const t=e[f],{[l]:n,[c]:s}=t;d=(t._stacks||(t._stacks={}))[c]=Ke(r,u,n),d[a]=s,d._top=$e(d,o,!0,i.type),d._bottom=$e(d,o,!1,i.type)}}function Je(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function tn(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const en=t=>"reset"===t||"none"===t,nn=(t,e)=>e?t:Object.assign({},t);let rn=(()=>{class t{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=We(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&tn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=v(n.xAxisID,Je(t,"x")),s=e.yAxisID=v(n.yAxisID,Je(t,"y")),o=e.rAxisID=v(n.rAxisID,Je(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,s,o),c=e.vAxisID=i(a,s,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&it(this._data,this),t._stacked&&tn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(m(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i],n[i]={x:s,y:t[s]};return n}(e);else if(n!==e){if(n){it(n,this);const t=this._cachedMeta;tn(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),nt.forEach(t=>{const e="_onData"+D(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),r}})}))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=We(e.vScale,e),e.stack!==n.stack&&(i=!0,tn(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&Xe(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:s}=n,o=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=g(i[t])?this.parseArrayData(n,i,t,e):m(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[o]||h&&l[o]<h[o];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),h=l);n._sorted=u}s&&Xe(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:s}=t,o=r.axis,a=s.axis,l=r.getLabels(),c=r===s,u=new Array(i);let h,d,f;for(h=0,d=i;h<d;++h)f=h+n,u[h]={[o]:c||r.parse(l[f],f),[a]:s.parse(e[f],f)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:s}=t,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],o[a]={x:r.parse(u[0],c),y:s.parse(u[1],c)};return o}parseObjectData(t,e,n,i){const{xScale:r,yScale:s}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,h,d;for(c=0,u=i;c<u;++c)h=c+n,d=e[h],l[c]={x:r.parse(O(d,o),h),y:s.parse(O(d,a),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this._cachedMeta,r=e[t.axis];return Qe({keys:Ge(this.chart,!0),values:e._stacks[t.axis]},r,i.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let s=null===r?NaN:r;const o=i&&n._stacks[e.axis];i&&o&&(i.values=o,s=Qe(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,s=i.length,o=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ge(this.chart,!0),values:null})(e,n),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let h,d;function f(){d=i[h];const e=d[o.axis];return!_(d[t.axis])||c>e||u<e}for(h=0;h<s&&(f()||(this.updateRangeFromParsed(l,t,d,a),!r));++h);if(r)for(h=s-1;h>=0;--h)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,s;for(i=0,r=e.length;i<r;++i)s=e[i][t.axis],_(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return m(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(v(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Ze(t,n),r=Ze(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this._cachedMeta,n=e.data||[],i=this.chart.chartArea,r=[],s=this._drawStart||0,o=this._drawCount||n.length-s,a=this.options.drawActiveElementsOnTop;let l;for(e.dataset&&e.dataset.draw(t,i,s,o),l=s;l<s+o;++l){const e=n[l];e.hidden||(e.active&&a?r.push(e):e.draw(t,i))}for(l=0;l<r.length;++l)r[l].draw(t,i)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return pe(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return pe(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,s=t+"-"+e,o=r[s],a=this.enableOptionSharing&&I(n);if(o)return nn(o,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(Qt.elements[t]),f=l.resolveNamedOptions(h,d,()=>this.getContext(n,i),u);return f.$shared&&(f.$shared=a,r[s]=Object.freeze(nn(f,a))),f}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),s=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(s,this.getContext(t,n,e))}const l=new He(i,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||en(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:s}}updateElement(t,e,n,i){en(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!en(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[o,a,l]of this._syncList)this[o](a,l);this._syncList=[];const i=n.length,r=e.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,s=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(a(r),o=t;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&tn(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return t.defaults={},t})();rn.prototype.datasetElementType=null,rn.prototype.dataElementType=null;class sn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return B(this.x)&&B(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}sn.defaults={},sn.defaultRoutes=void 0;const on={values:t=>g(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),s=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=z(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ve(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(z(t)));return 1===i||2===i||5===i?on.numeric.call(this,t,e,n):""}};var an={formatters:on};function ln(t,e,n,i,r){const s=v(i,0),o=Math.min(v(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=s;c<0;)u++,c=Math.round(s+u*n);for(l=Math.max(s,0);l<o;l++)l===c&&(e.push(t[l]),u++,c=Math.round(s+u*n))}Qt.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:an.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const cn=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function un(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function hn(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,o=t._endPixel;let a,l=t.getPixelForTick(r);if(!(n&&(a=1===i?Math.max(l-s,o-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,l+=r<e?a:-a,l<s-1e-6||l>o+1e-6)))return l}function dn(t){return t.drawTicks?t.tickLength:0}function fn(t,e){if(!t.display)return 0;const n=de(t.font,e),i=he(t.padding);return(g(t.text)?t.text.length:1)*n.lineHeight+i.height}function pn(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class gn extends sn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=y(t,Number.POSITIVE_INFINITY),e=y(e,Number.NEGATIVE_INFINITY),n=y(n,Number.POSITIVE_INFINITY),i=y(i,Number.NEGATIVE_INFINITY),{min:y(t,n),max:y(e,i),minDefined:_(t),maxDefined:_(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let a=0,l=o.length;a<l;++a)e=o[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),s||(i=Math.max(i,e.max));return n=s&&n>i?i:n,i=r&&n>i?n:i,{min:y(n,y(i,n)),max:y(i,y(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){b(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,s=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),o=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?un(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize();return Math.floor(Math.min(t._length/n+(e?0:1),t._maxLength/n))}(t),r=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],s=r.length,o=r[0],a=r[s-1],l=[];if(s>i)return function(t,e,n,i){let r,s=0,o=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===o&&(e.push(t[r]),s++,o=n[s*i])}(e,l,r,s/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const s=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let o=0,a=s.length-1;o<a;o++){const t=s[o];if(t>r)return t}return Math.max(r,1)}(r,e,i);if(s>0){let t,n;const i=s>1?Math.round((a-o)/(s-1)):null;for(ln(e,l,c,p(i)?0:o-i,o),t=0,n=s-1;t<n;t++)ln(e,l,c,r[t],r[t+1]);return ln(e,l,c,a,p(i)?e.length:a+i),l}return ln(e,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){b(this.options.afterUpdate,[this])}beforeSetDimensions(){b(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){b(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),b(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){b(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=b(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){b(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){b(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,r=e.maxRotation;let s,o,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=$(this.chart.width-u,0,this.maxWidth);s=t.offset?this.maxWidth/n:d/(n-1),u+6>s&&(s=d/(n-(t.offset?.5:1)),o=this.maxHeight-dn(t.grid)-e.padding-fn(t.title,this.chart.options.font),a=Math.sqrt(u*u+h*h),l=Z(Math.min(Math.asin($((c.highest.height+6)/s,-1,1)),Math.asin($(o/a,-1,1))-Math.asin($(h/a,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){b(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){b(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=fn(i,e.options.font);if(o?(t.width=this.maxWidth,t.height=dn(r)+s):(t.height=this.maxHeight,t.width=dn(r)+s),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:s}=this._getLabelSizes(),a=2*n.padding,l=H(this.labelRotation),c=Math.cos(l),u=Math.sin(l);o?t.height=Math.min(this.maxHeight,t.height+(n.mirror?0:u*r.width+c*s.height)+a):t.width=Math.min(this.maxWidth,t.width+(n.mirror?0:c*r.width+u*s.height)+a),this._calculatePadding(e,i,u,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;a?l?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===r?h=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((h-c+s)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){b(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)p(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=un(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,r=[],s=[];let o,a,l,c,u,h,d,f,m,_,y,v=0,b=0;for(o=0;o<e;++o){if(c=t[o].label,u=this._resolveTickFontOptions(o),n.font=h=u.string,d=i[h]=i[h]||{data:{},gc:[]},f=u.lineHeight,m=_=0,p(c)||g(c)){if(g(c))for(a=0,l=c.length;a<l;++a)y=c[a],p(y)||g(y)||(m=Wt(n,d.data,d.gc,m,y),_+=f)}else m=Wt(n,d.data,d.gc,m,c),_=f;r.push(m),s.push(_),v=Math.max(m,v),b=Math.max(_,b)}!function(t,e){w(t,t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}})}(i,e);const x=r.indexOf(v),C=s.indexOf(b),S=t=>({width:r[t]||0,height:s[t]||0});return{first:S(0),last:S(e-1),widest:S(x),highest:S(C),widths:r,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return $(this._alignToPixels?$t(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return pe(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=pe(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=H(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),s=t.autoSkipPadding||0,o=r?r.widest.width+s:0,a=r?r.highest.height+s:0;return this.isHorizontal()?a*n>o*i?o/n:a/i:a*i<o*n?a/n:o/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:s}=i,o=r.offset,a=this.isHorizontal(),l=this.ticks.length+(o?1:0),c=dn(r),u=[],h=r.setContext(this.getContext()),d=h.drawBorder?h.borderWidth:0,f=d/2,p=function(t){return $t(n,t,d)};let g,_,y,b,w,x,C,S,k,E,A,M;if("top"===s)g=p(this.bottom),x=this.bottom-c,S=g-f,E=p(t.top)+f,M=t.bottom;else if("bottom"===s)g=p(this.top),E=t.top,M=p(t.bottom)-f,x=g+f,S=this.top+c;else if("left"===s)g=p(this.right),w=this.right-c,C=g-f,k=p(t.left)+f,A=t.right;else if("right"===s)g=p(this.left),k=t.left,A=p(t.right)-f,w=g+f,C=this.left+c;else if("x"===e){if("center"===s)g=p((t.top+t.bottom)/2+.5);else if(m(s)){const t=Object.keys(s)[0];g=p(this.chart.scales[t].getPixelForValue(s[t]))}E=t.top,M=t.bottom,x=g+f,S=x+c}else if("y"===e){if("center"===s)g=p((t.left+t.right)/2);else if(m(s)){const t=Object.keys(s)[0];g=p(this.chart.scales[t].getPixelForValue(s[t]))}w=g-f,C=w-c,k=t.left,A=t.right}const T=v(i.ticks.maxTicksLimit,l),O=Math.max(1,Math.ceil(l/T));for(_=0;_<l;_+=O){const t=r.setContext(this.getContext(_)),e=t.lineWidth,i=t.color,s=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;y=hn(this,_,o),void 0!==y&&(b=$t(n,y,e),a?w=C=k=A=b:x=S=E=M=b,u.push({tx1:w,ty1:x,tx2:C,ty2:S,x1:k,y1:E,x2:A,y2:M,width:e,color:i,borderDash:s,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=g,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,s=this.isHorizontal(),o=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,h=dn(n.grid),d=h+c,f=u?-c:d,p=-H(this.labelRotation),_=[];let y,v,b,w,x,C,S,k,E,A,M,T,O="middle";if("top"===i)C=this.bottom-f,S=this._getXAxisLabelAlignment();else if("bottom"===i)C=this.top+f,S=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);S=t.textAlign,x=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);S=t.textAlign,x=t.x}else if("x"===e){if("center"===i)C=(t.top+t.bottom)/2+d;else if(m(i)){const t=Object.keys(i)[0];C=this.chart.scales[t].getPixelForValue(i[t])+d}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)x=(t.left+t.right)/2-d;else if(m(i)){const t=Object.keys(i)[0];x=this.chart.scales[t].getPixelForValue(i[t])}S=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===a?O="top":"end"===a&&(O="bottom"));const D=this._getLabelSizes();for(y=0,v=o.length;y<v;++y){b=o[y],w=b.label;const t=r.setContext(this.getContext(y));k=this.getPixelForTick(y)+r.labelOffset,E=this._resolveTickFontOptions(y),A=E.lineHeight,M=g(w)?w.length:1;const e=M/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let h,d=S;if(s?(x=k,"inner"===S&&(d=y===v-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==p?-M*A+A/2:"center"===l?-D.highest.height/2-e*A+A:A/2-D.highest.height:"near"===l||0!==p?A/2:"center"===l?D.highest.height/2-e*A:D.highest.height-M*A,u&&(T*=-1)):(C=k,T=(1-M)*A/2),t.showLabelBackdrop){const e=he(t.backdropPadding),n=D.heights[y],i=D.widths[y];let r=C+T-e.top,s=x-e.left;switch(O){case"middle":r-=n/2;break;case"bottom":r-=n}switch(S){case"center":s-=i/2;break;case"right":s-=i}h={left:s,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}_.push({rotation:p,label:w,font:E,color:n,strokeColor:a,strokeWidth:c,textOffset:T,textAlign:d,textBaseline:O,translation:[x,C],backdrop:h})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-H(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=t+r,o=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l+=o)):(l=this.right-s,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=o/2):(a="left",l-=o)):(l=this.left+s,"near"===n?a="left":"center"===n?(a="center",l+=o/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,s;const o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,s=i.length;r<s;++r){const t=i[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),r=n.drawBorder?i.borderWidth:0;if(!r)return;const s=n.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let a,l,c,u;this.isHorizontal()?(a=$t(t,this.left,r)-r/2,l=$t(t,this.right,s)+s/2,c=u=o):(c=$t(t,this.top,r)-r/2,u=$t(t,this.bottom,s)+s/2,a=l=o),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(a,c),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&te(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let r,s;for(r=0,s=i.length;r<s;++r){const t=i[r],n=t.font,s=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ne(e,s,0,t.textOffset,n,t)}n&&ee(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=de(n.font),s=he(n.padding),o=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||m(e)?(a+=s.bottom,g(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=s.top;const{titleX:l,titleY:c,maxWidth:u,rotation:h}=function(t,e,n,i){const{top:r,left:s,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let h,d,f,p=0;const g=o-r,_=a-s;if(t.isHorizontal()){if(d=ot(i,s,a),m(n)){const t=Object.keys(n)[0];f=u[t].getPixelForValue(n[t])+g-e}else f="center"===n?(c.bottom+c.top)/2+g-e:cn(t,n,e);h=a-s}else{if(m(n)){const t=Object.keys(n)[0];d=u[t].getPixelForValue(n[t])-_+e}else d="center"===n?(c.left+c.right)/2-_+e:cn(t,n,e);f=ot(i,o,r),p="left"===n?-F:F}return{titleX:d,titleY:f,maxWidth:h,rotation:p}}(this,a,e,o);ne(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:h,textAlign:pn(o,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=v(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===gn.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=e.length;r<s;++r){const s=e[r];s[n]!==this.id||t&&s.type!==t||i.push(s)}return i}_resolveTickFontOptions(t){return de(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class mn{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=E(Object.create(null),[n?Qt.get(n):{},Qt.get(e),t.defaults]);Qt.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");Qt.route(s,r,l,a)})}(e,t.defaultRoutes),t.descriptors&&Qt.describe(e,t.descriptors)}(t,s,n),this.override&&Qt.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Qt[i]&&(delete Qt[i][n],this.override&&delete Yt[n])}}var _n=new class{constructor(){this.controllers=new mn(rn,"datasets",!0),this.elements=new mn(sn,"elements"),this.plugins=new mn(Object,"plugins"),this.scales=new mn(gn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):w(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=D(t);b(n["before"+i],[],n),e[t](n),b(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};function yn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var vn={_date:(()=>{class t{constructor(t){this.options=t||{}}init(t){}formats(){return yn()}parse(t,e){return yn()}format(t,e){return yn()}add(t,e,n){return yn()}diff(t,e,n){return yn()}startOf(t,e,n){return yn()}endOf(t,e){return yn()}}return t.override=function(e){Object.assign(t.prototype,e)},t})()};function bn(t,e,n,i){const{controller:r,data:s,_sorted:o}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&s.length){const t=a._reversePixels?et:tt;if(!i)return t(s,e,n);if(r._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(s,e,n-r),o=t(s,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function wn(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=s.length;a<l;++a){const{index:t,data:n}=s[a],{lo:l,hi:c}=bn(s[a],e,o,r);for(let e=l;e<=c;++e){const r=n[e];r.skip||i(r,t,e)}}}function xn(t,e,n,i,r){const s=[];return r||t.isPointInArea(e)?(wn(t,n,e,function(n,o,a){(r||Jt(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&s.push({element:n,datasetIndex:o,index:a})},!0),s):s}function Cn(t,e,n,i,r,s){return s||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,s){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,s=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return wn(t,n,e,function(n,c,u){const h=n.inRange(e.x,e.y,r);if(i&&!h)return;const d=n.getCenterPoint(r);if(!s&&!t.isPointInArea(d)&&!h)return;const f=a(e,d);f<l?(o=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&o.push({element:n,datasetIndex:c,index:u})}),o}(t,e,n,i,r,s):function(t,e,n,i){let r=[];return wn(t,n,e,function(t,n,s){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Q(t,{x:e.x,y:e.y});K(l,o,a)&&r.push({element:t,datasetIndex:n,index:s})}),r}(t,e,n,r):[]}function Sn(t,e,n,i,r){const s=[],o="x"===n?"inXRange":"inYRange";let a=!1;return wn(t,n,e,(t,i,l)=>{t[o](e[n],r)&&(s.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))}),i&&!a?[]:s}var kn={evaluateInteractionItems:wn,modes:{index(t,e,n,i){const r=Le(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?xn(t,r,s,i,o):Cn(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const r=Le(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?xn(t,r,s,i,o):Cn(t,r,s,!1,i,o);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>xn(t,Le(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest:(t,e,n,i)=>Cn(t,Le(e,t),n.axis||"xy",n.intersect,i,n.includeInvisible||!1),x:(t,e,n,i)=>Sn(t,Le(e,t),"x",n.intersect,i),y:(t,e,n,i)=>Sn(t,Le(e,t),"y",n.intersect,i)}};const En=["left","top","right","bottom"];function An(t,e){return t.filter(t=>t.pos===e)}function Mn(t,e){return t.filter(t=>-1===En.indexOf(t.pos)&&t.box.axis===e)}function Tn(t,e){return t.sort((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function On(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Dn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function In(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!m(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[r]+=n.size}s.getPadding&&Dn(o,s.getPadding());const a=Math.max(0,e.outerWidth-On(o,t,"left","right")),l=Math.max(0,e.outerHeight-On(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Rn(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}(t?["left","right"]:["top","bottom"])}function Ln(t,e,n,i){const r=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;s<o;++s){a=t[s],l=a.box,l.update(a.width||e.w,a.height||e.h,Rn(a.horizontal,e));const{same:o,other:h}=In(e,n,a,i);c|=o&&r.length,u=u||h,l.fullSize||r.push(a)}return c&&Ln(r,e,n,i)||u}function Nn(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function jn(t,e,n,i){const r=n.padding;let{x:s,y:o}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,s=l.size||t.height;I(l.start)&&(o=l.start),t.fullSize?Nn(t,r.left,o,n.outerWidth-r.right-r.left,s):Nn(t,e.left+l.placed,o,i,s),l.start=o,l.placed+=i,o=t.bottom}else{const i=e.h*c,o=l.size||t.width;I(l.start)&&(s=l.start),t.fullSize?Nn(t,s,r.top,o,n.outerHeight-r.bottom-r.top):Nn(t,s,e.top+l.placed,o,i),l.start=s,l.placed+=i,s=t.right}}e.x=s,e.y=o}Qt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Pn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=he(t.options.layout.padding),s=Math.max(e-r.width,0),o=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:s,options:{stack:o,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}(t),n=Tn(e.filter(t=>t.box.fullSize),!0),i=Tn(An(e,"left"),!0),r=Tn(An(e,"right")),s=Tn(An(e,"top"),!0),o=Tn(An(e,"bottom")),a=Mn(e,"x"),l=Mn(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:An(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;w(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},r);Dn(d,he(i));const f=Object.assign({maxPadding:d,w:s,h:o,x:r.left,y:r.top},r),p=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!En.includes(i))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:o}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:o&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:o&&e.availableHeight)}return n}(l.concat(c),h);Ln(a.fullSize,f,h,p),Ln(l,f,h,p),Ln(c,f,h,p)&&Ln(l,f,h,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),jn(a.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,jn(a.rightAndBottom,f,h,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},w(a.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Fn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class zn extends Fn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Vn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Un=t=>null===t||""===t,Bn=!!Pe&&{passive:!0};function qn(t,e,n){t.canvas.removeEventListener(e,n,Bn)}function Yn(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Hn(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Yn(n.addedNodes,i),e=e&&!Yn(n.removedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function Zn(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Yn(n.removedNodes,i),e=e&&!Yn(n.addedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const Gn=new Map;let Qn=0;function Wn(){const t=window.devicePixelRatio;t!==Qn&&(Qn=t,Gn.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Kn(t,e,n){const i=t.canvas,r=i&&Te(i);if(!r)return;const s=st((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()},window),o=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)});return o.observe(r),function(t,e){Gn.size||window.addEventListener("resize",Wn),Gn.set(t,e)}(t,s),o}function $n(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Gn.delete(t),Gn.size||window.removeEventListener("resize",Wn)}(t)}function Xn(t,e,n){const i=t.canvas,r=st(e=>{null!==t.ctx&&n(function(t,e){const n=Vn[t.type]||t.type,{x:i,y:r}=Le(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Bn)}(i,e,r),r}class Jn extends Fn{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Un(r)){const e=Fe(t,"width");void 0!==e&&(t.width=e)}if(Un(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Fe(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const n=e.$chartjs.initial;["height","width"].forEach(t=>{const i=n[t];p(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:Hn,detach:Zn,resize:Kn}[e]||Xn)(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:$n,detach:$n,resize:$n}[e]||qn)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=De(t),s=Re(r,"margin"),o=Oe(r.maxWidth,t,"clientWidth")||P,a=Oe(r.maxHeight,t,"clientHeight")||P,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const s=Te(t);if(s){const t=s.getBoundingClientRect(),o=De(s),a=Re(o,"border","width"),l=Re(o,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=Oe(o.maxWidth,s,"clientWidth"),r=Oe(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||P,maxHeight:r||P}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=Re(r,"border","width"),e=Re(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?Math.floor(c/i):u-s.height),c=Ne(Math.min(c,o,l.maxWidth)),u=Ne(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Ne(c/2)),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=Te(t);return!(!e||!e.isConnected)}}class ti{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===b(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){p(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=v(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(_n.plugins.items);for(let s=0;s<i.length;s++)n.push(_n.getPlugin(i[s]));const r=t.plugins||[];for(let s=0;s<r.length;s++){const t=r[s];-1===n.indexOf(t)&&(n.push(t),e[t.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const s=[],o=t.getContext();for(const a of e){const e=a.id,l=ei(i[e],r);null!==l&&s.push({plugin:a,options:ni(t.config,{plugin:a,local:n[e]},l,o)})}return s}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function ei(t,e){return e||!1!==t?!0===t?{}:t:null}function ni(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ii(t,e){return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function ri(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function si(t){const e=t.options||(t.options={});e.plugins=v(e.plugins,{}),e.scales=function(t,e){const n=Yt[t.type]||{scales:{}},i=e.scales||{},r=ii(t.type,e),s=Object.create(null),o=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!m(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=ri(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};s[a]=s[a]||t,o[t]=A(Object.create(null),[{axis:a},e,c[a],c[l]])}),t.data.datasets.forEach(n=>{const r=n.type||t.type,a=n.indexAxis||ii(r,e),l=(Yt[r]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),r=n[e+"AxisID"]||s[e]||e;o[r]=o[r]||Object.create(null),A(o[r],[{axis:e},i[r],l[t]])})}),Object.keys(o).forEach(t=>{const e=o[t];A(e,[Qt.scales[e.type],Qt.scale])}),o}(t,e)}function oi(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ai=new Map,li=new Set;function ci(t,e){let n=ai.get(t);return n||(n=e(),ai.set(t,n),li.add(n)),n}const ui=(t,e,n)=>{const i=O(e,n);void 0!==i&&t.add(i)};class hi{constructor(t){this._config=function(t){return(t=t||{}).data=oi(t.data),si(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=oi(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),si(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ci(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ci(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ci(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return ci(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,s=this._cachedScopes(t,n),o=s.get(e);if(o)return o;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>ui(a,t,e))),e.forEach(t=>ui(a,i,t)),e.forEach(t=>ui(a,Yt[r]||{},t)),e.forEach(t=>ui(a,Qt,t)),e.forEach(t=>ui(a,Ht,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),li.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Yt[e]||{},Qt.datasets[e]||{},{type:e},Qt,Ht]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:s,subPrefixes:o}=di(this._resolverCache,t,i);let a=s;(function(t,e){const{isScriptable:n,isIndexable:i}=_e(t);for(const r of e){const e=n(r),s=i(r),o=(s||e)&&t[r];if(e&&(R(o)||fi(o))||s&&g(o))return!0}return!1})(s,e)&&(r.$shared=!1,a=me(s,n=R(n)?n():n,this.createResolver(t,n,o)));for(const l of e)r[l]=a[l];return r}createResolver(t,e,n=[""],i){const{resolver:r}=di(this._resolverCache,t,n);return m(e)?me(r,e,void 0,i):r}}function di(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:ge(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(r,s)),s}const fi=t=>m(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||R(t[n]),!1),pi=["top","bottom","left","right","chartArea"];function gi(t,e){return"top"===t||"bottom"===t||-1===pi.indexOf(t)&&"x"===e}function mi(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function _i(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),b(n&&n.onComplete,[t],e)}function yi(t){const e=t.chart,n=e.options.animation;b(n&&n.onProgress,[t],e)}function vi(t){return Me()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const bi={},wi=t=>{const e=vi(t);return Object.values(bi).filter(t=>t.canvas===e).pop()};function xi(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const s=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=s)}}}class Ci{constructor(t,e){const n=this.config=new hi(e),i=vi(t),r=wi(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Me()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zn:Jn}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=f(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ti,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),s.resizeDelay||0),this._dataChanges=[],bi[this.id]=this,o&&a?(Ue.listen(this,"complete",_i),Ue.listen(this,"progress",yi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return p(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():je(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Xt(this.canvas,this.ctx),this}stop(){return Ue.stop(this),this}resize(t,e){Ue.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.platform.getMaximumSize(this.canvas,t,e,n.maintainAspectRatio&&this.aspectRatio),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,je(this,r,!0)&&(this.notifyPlugins("resize",{size:i}),b(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){w(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let r=[];e&&(r=r.concat(Object.keys(e).map(t=>{const n=e[t],i=ri(t,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}}))),w(r,e=>{const r=e.options,s=r.id,o=ri(s,r),a=v(r.type,e.dtype);void 0!==r.position&&gi(r.position,o)===gi(e.dposition)||(r.position=e.dposition),i[s]=!0;let l=null;s in n&&n[s].type===a?l=n[s]:(l=new(_n.getScale(a))({id:s,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)}),w(i,(t,e)=>{t||delete n[e]}),w(n,t=>{Pn.configure(this,t,t.options),Pn.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(mi("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const s=i.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=i.indexAxis||ii(s,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=_n.getController(s),{datasetElementType:i,dataElementType:o}=Qt.datasets[s];Object.assign(e.prototype,{dataElementType:_n.getElement(o),datasetElementType:i&&_n.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){w(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:t}=this.getDatasetMeta(l),e=!i&&-1===r.indexOf(t);t.buildOrUpdateElements(e),s=Math.max(+t.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||w(r,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(mi("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){w(this.scales,t=>{Pn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);L(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)xi(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let r=1;r<e;r++)if(!L(i,n(r)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Pn.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],w(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,R(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ue.has(this)?this.attached&&!Ue.running(this)&&Ue.start(this):(this.draw(),_i({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=this.chartArea,s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&te(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&ee(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Jt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=kn.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=pe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),s=r.controller._resolveAnimations(void 0,i);I(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(r,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ue.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Xt(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete bi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};w(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){w(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},w(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,s,o,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!x(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),s=r(e,t),o=n?t:r(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,s=this._getActiveElements(t,i,n,e),o=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),a=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,o);n&&(this._lastEvent=null,b(r.onHover,[t,s,this],this),o&&b(r.onClick,[t,s,this],this));const l=!x(s,i);return(l||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=a,l}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}const Si=()=>w(Ci.instances,t=>t._plugins.invalidate());function ki(t,e,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(s,o,a,i-c,n+c),l>r?(c=r/l,t.arc(s,o,l,n+c,i-c,!0)):t.arc(s,o,r,n+F,i-F),t.closePath(),t.clip()}function Ei(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ai(t,e,n,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,h=Math.max(e.outerRadius+i+n-c,0),d=u>0?u+i+n+c:0;let f=0;const p=r-l;if(i){const t=((u>0?u-i:0)+(h>0?h-i:0))/2;f=(p-(0!==t?p*t/(t+i):p))/2}const g=(p-Math.max(.001,p*h-n/N)/h)/2,m=l+g+f,_=r-g-f,{outerStart:y,outerEnd:v,innerStart:b,innerEnd:w}=function(t,e,n,i){const r=le(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),s=(n-e)/2,o=Math.min(s,i*e/2),a=t=>{const e=(n-Math.min(s,t))*i/2;return $(t,0,Math.min(s,e))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:$(r.innerStart,0,o),innerEnd:$(r.innerEnd,0,o)}}(e,d,h,_-m),x=h-y,C=h-v,S=m+y/x,k=_-v/C,E=d+b,A=d+w,M=m+b/E,T=_-w/A;if(t.beginPath(),s){if(t.arc(o,a,h,S,k),v>0){const e=Ei(C,k,o,a);t.arc(e.x,e.y,v,k,_+F)}const e=Ei(A,_,o,a);if(t.lineTo(e.x,e.y),w>0){const e=Ei(A,T,o,a);t.arc(e.x,e.y,w,_+F,T+Math.PI)}if(t.arc(o,a,d,_-w/d,m+b/d,!0),b>0){const e=Ei(E,M,o,a);t.arc(e.x,e.y,b,M+Math.PI,m-F)}const n=Ei(x,m,o,a);if(t.lineTo(n.x,n.y),y>0){const e=Ei(x,S,o,a);t.arc(e.x,e.y,y,m-F,S)}}else{t.moveTo(o,a);const e=Math.cos(S)*h+o,n=Math.sin(S)*h+a;t.lineTo(e,n);const i=Math.cos(k)*h+o,r=Math.sin(k)*h+a;t.lineTo(i,r)}t.closePath()}Object.defineProperties(Ci,{defaults:{enumerable:!0,value:Qt},instances:{enumerable:!0,value:bi},overrides:{enumerable:!0,value:Yt},registry:{enumerable:!0,value:_n},version:{enumerable:!0,value:"3.9.1"},getChart:{enumerable:!0,value:wi},register:{enumerable:!0,value:(...t)=>{_n.add(...t),Si()}},unregister:{enumerable:!0,value:(...t)=>{_n.remove(...t),Si()}}});class Mi extends sn{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:r,distance:s}=Q(i,{x:t,y:e}),{startAngle:o,endAngle:a,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,d=v(u,a-o)>=j||K(r,o,a),f=X(s,l+h,c+h);return d&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(i+r)/2,u=(s+o+l+a)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,r=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>j?Math.floor(n/j):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(i){o=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=N&&(o=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,i,r){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){Ai(t,e,n,i,o+j,r);for(let e=0;e<s;++e)t.fill();isNaN(a)||(l=o+a%j,a%j==0&&(l+=j))}return Ai(t,e,n,i,l,r),t.fill(),l}(t,this,o,r,s);(function(t,e,n,i,r,s){const{options:o}=e,{borderWidth:a,borderJoinStyle:l}=o,c="inner"===o.borderAlign;a&&(c?(t.lineWidth=2*a,t.lineJoin=l||"round"):(t.lineWidth=a,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:r,startAngle:s,pixelMargin:o,fullCircles:a}=e,l=Math.max(e.outerRadius-o,0),c=e.innerRadius+o;let u;for(n&&ki(t,e,s+j),t.beginPath(),t.arc(i,r,c,s+j,s,!0),u=0;u<a;++u)t.stroke();for(t.beginPath(),t.arc(i,r,l,s,s+j),u=0;u<a;++u)t.stroke()}(t,e,c),c&&ki(t,e,r),Ai(t,e,n,i,r,s),t.stroke())})(t,this,o,r,a,s),t.restore()}}function Ti(t,e){const{x:n,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,h;return t.horizontal?(h=o/2,a=Math.min(n,r),l=Math.max(n,r),c=i-h,u=i+h):(h=s/2,a=n-h,l=n+h,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Oi(t,e,n,i){return t?0:$(e,n,i)}function Di(t,e,n,i){const r=null===e,s=null===n,o=t&&!(r&&s)&&Ti(t,i);return o&&(r||X(e,o.left,o.right))&&(s||X(n,o.top,o.bottom))}function Ii(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ri(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0;return{x:t.x+i,y:t.y+r,w:t.w+((t.x+t.w!==n.x+n.w?e:0)-i),h:t.h+((t.y+t.h!==n.y+n.h?e:0)-r),radius:t.radius}}Mi.id="arc",Mi.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Mi.defaultRoutes={backgroundColor:"backgroundColor"};class Li extends sn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:s}=function(t){const e=Ti(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.borderSkipped,r=ce(t.options.borderWidth);return{t:Oi(i.top,r.top,0,n),r:Oi(i.right,r.right,0,e),b:Oi(i.bottom,r.bottom,0,n),l:Oi(i.left,r.left,0,e)}}(t,n/2,i/2),s=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=ue(r),o=Math.min(e,n),a=t.borderSkipped,l=i||m(r);return{topLeft:Oi(!l||a.top||a.left,s.topLeft,0,o),topRight:Oi(!l||a.top||a.right,s.topRight,0,o),bottomLeft:Oi(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:Oi(!l||a.bottom||a.right,s.bottomRight,0,o)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}(this),o=(a=s.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?re:Ii;var a;t.save(),s.w===r.w&&s.h===r.h||(t.beginPath(),o(t,Ri(s,e,r)),t.clip(),o(t,Ri(r,-e,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,Ri(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Di(this,t,e,n)}inXRange(t,e){return Di(this,t,null,e)}inYRange(t,e){return Di(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Li.id="bar",Li.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Li.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},new WeakMap;class Ni extends gn{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(p(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:$(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,v(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let s=t;s<=e;s++)i.push({value:s});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function ji(t,e,{horizontal:n,minRotation:i}){const r=H(i),s=(n?Math.sin(r):Math.cos(r))||.001;return Math.min(e/s,.75*e*(""+t).length)}Ni.id="category",Ni.defaults={ticks:{callback:Ni.prototype.getLabelForValue}};class Pi extends gn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return p(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const s=t=>i=e?i:t,o=t=>r=n?r:t;if(t){const t=V(i),e=V(r);t<0&&e<0?o(0):t>0&&e>0&&s(0)}if(i===r){let e=1;(r>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*r)),o(r+e),t||s(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:h}=t,d=r||1,f=c-1,{min:g,max:m}=e,_=!p(s),y=!p(o),v=!p(l),b=(m-g)/(u+1);let w,x,C,S,k=U((m-g)/f/d)*d;if(k<1e-14&&!_&&!y)return[{value:g},{value:m}];S=Math.ceil(m/k)-Math.floor(g/k),S>f&&(k=U(S*k/f/d)*d),p(a)||(w=Math.pow(10,a),k=Math.ceil(k*w)/w),"ticks"===i?(x=Math.floor(g/k)*k,C=Math.ceil(m/k)*k):(x=g,C=m),_&&y&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-s)/r,k/1e3)?(S=Math.round(Math.min((o-s)/k,c)),k=(o-s)/S,x=s,C=o):v?(x=_?s:x,C=y?o:C,S=l-1,k=(C-x)/S):(S=(C-x)/k,S=q(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(G(k),G(x));w=Math.pow(10,p(a)?E:a),x=Math.round(x*w)/w,C=Math.round(C*w)/w;let A=0;for(_&&(h&&x!==s?(n.push({value:s}),x<s&&A++,q(Math.round((x+A*k)*w)/w,s,ji(s,b,t))&&A++):x<s&&A++);A<S;++A)n.push({value:Math.round((x+A*k)*w)/w});return y&&h&&C!==o?n.length&&q(n[n.length-1].value,o,ji(o,b,t))?n[n.length-1].value=o:n.push({value:o}):y&&C!==o||n.push({value:C}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Y(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Ve(t,this.chart.options.locale,this.options.ticks.format)}}class Fi extends Pi{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=_(t)?t:0,this.max=_(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=H(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function zi(t){return 1==t/Math.pow(10,Math.floor(z(t)))}Fi.id="linear",Fi.defaults={ticks:{callback:an.formatters.numeric}};class Vi extends gn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Pi.prototype.parse.apply(this,[t,e]);if(0!==n)return _(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=_(t)?Math.max(0,t):null,this.max=_(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const r=e=>n=t?n:e,s=t=>i=e?i:t,o=(t,e)=>Math.pow(10,Math.floor(z(t))+e);n===i&&(n<=0?(r(1),s(10)):(r(o(n,-1)),s(o(i,1)))),n<=0&&r(o(i,-1)),i<=0&&s(o(n,1)),this._zero&&this.min!==this._suggestedMin&&n===o(this.min,0)&&r(o(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(z(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),r=[];let s=y(t.min,Math.pow(10,Math.floor(z(e.min)))),o=Math.floor(z(s)),a=Math.floor(s/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{r.push({value:s,major:zi(s)}),++a,10===a&&(a=1,++o,l=o>=0?1:l),s=Math.round(a*Math.pow(10,o)*l)/l}while(o<n||o===n&&a<i);const c=y(t.max,s);return r.push({value:c,major:zi(s)}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Y(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Ve(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=z(t),this._valueRange=z(this.max)-z(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(z(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ui(t){const e=t.ticks;if(e.display&&t.display){const t=he(e.backdropPadding);return v(e.font&&e.font.size,Qt.font.size)+t.height}return 0}function Bi(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function qi(t,e,n,i,r){const s=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/s,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/s,t.r=Math.max(t.r,e.r+a)),r.start<e.t?(l=(e.t-r.start)/o,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function Yi(t){return 0===t||180===t?"center":t<180?"left":"right"}function Hi(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Zi(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,j);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let s=1;s<i;s++)n=t.getPointPosition(s,e),r.lineTo(n.x,n.y)}}Vi.id="logarithmic",Vi.defaults={ticks:{callback:an.formatters.logarithmic,major:{enabled:!0}}};class Gi extends Pi{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=he(Ui(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=_(t)&&!isNaN(t)?t:0,this.max=_(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ui(this.options))}generateTickLabels(t){Pi.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=b(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],r=[],s=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?N/s:0;for(let h=0;h<s;h++){const s=o.setContext(t.getPointLabelContext(h));r[h]=s.padding;const d=t.getPointPosition(h,t.drawingArea+r[h],a),f=de(s.font),p=(l=t.ctx,c=f,u=g(u=t._pointLabels[h])?u:[u],{w:Kt(l,c.string,u),h:u.length*c.lineHeight});i[h]=p;const m=W(t.getIndexAngle(h)+a),_=Math.round(Z(m));qi(n,e,m,Bi(_,d.x,p.w,0,180),Bi(_,d.y,p.h,90,270))}var l,c,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],r=t._pointLabels.length,s=t.options,o=Ui(s)/2,a=t.drawingArea,l=s.pointLabels.centerPointLabels?N/r:0;for(let d=0;d<r;d++){const r=t.getPointPosition(d,a+o+n[d],l),s=Math.round(Z(W(r.angle+F))),f=e[d],p=Hi(r.y,f.h,s),g=Yi(s),m=(c=r.x,u=f.w,"right"===(h=g)?c-=u:"center"===h&&(c-=u/2),c);i.push({x:r.x,y:p,textAlign:g,left:m,top:p,right:m+f.w,bottom:p+f.h})}var c,u,h;return i}(t,i,r)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return W(t*(j/(this._pointLabels.length||1))+H(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(p(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(p(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return pe(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-F+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Zi(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,r=this._pointLabels.length;let s,o,a;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const e=i.setContext(t.getPointLabelContext(r)),s=de(e.font),{x:o,y:a,textAlign:l,left:c,top:u,right:h,bottom:d}=t._pointLabelItems[r],{backdropColor:f}=e;if(!p(f)){const t=ue(e.borderRadius),i=he(e.backdropPadding);n.fillStyle=f;const r=c-i.left,s=u-i.top,o=h-c+i.width,a=d-u+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),re(n,{x:r,y:s,w:o,h:a,radius:t}),n.fill()):n.fillRect(r,s,o,a)}ne(n,t._pointLabels[r],o,a+s.lineHeight/2,s,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,r),i.display&&this.ticks.forEach((t,e)=>{0!==e&&(o=this.getDistanceFromCenterForValue(t.value),function(t,e,n,i){const r=t.ctx,s=e.circular,{color:o,lineWidth:a}=e;!s&&!i||!o||!a||n<0||(r.save(),r.strokeStyle=o,r.lineWidth=a,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),Zi(t,n,s,i),r.closePath(),r.stroke(),r.restore())}(this,i.setContext(this.getContext(e-1)),o,r))}),n.display){for(t.save(),s=r-1;s>=0;s--){const i=n.setContext(this.getPointLabelContext(s)),{color:r,lineWidth:l}=i;l&&r&&(t.lineWidth=l,t.strokeStyle=r,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,o=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(s,o),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,o)=>{if(0===o&&!e.reverse)return;const a=n.setContext(this.getContext(o)),l=de(a.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),a.showLabelBackdrop){t.font=l.string,s=t.measureText(i.label).width,t.fillStyle=a.backdropColor;const e=he(a.backdropPadding);t.fillRect(-s/2-e.left,-r-l.size/2-e.top,s+e.width,l.size+e.height)}ne(t,i.label,0,-r,l,{color:a.color})}),t.restore()}drawTitle(){}}Gi.id="radialLinear",Gi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:an.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Gi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Gi.descriptors={angleLines:{_fallback:"grid"}};const Qi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wi=Object.keys(Qi);function Ki(t,e){return t-e}function $i(t,e){if(p(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts;let o=e;return"function"==typeof i&&(o=i(o)),_(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null===o?null:(r&&(o="week"!==r||!B(s)&&!0!==s?n.startOf(o,r):n.startOf(o,"isoWeek",s)),+o)}function Xi(t,e,n,i){const r=Wi.length;for(let s=Wi.indexOf(t);s<r-1;++s){const t=Qi[Wi[s]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=i)return Wi[s]}return Wi[r-1]}function Ji(t,e,n){if(n){if(n.length){const{lo:i,hi:r}=J(n,e);t[n[i]>=e?n[i]:n[r]]=!0}}else t[e]=!0}function tr(t,e,n){const i=[],r={},s=e.length;let o,a;for(o=0;o<s;++o)a=e[o],r[a]=o,i.push({value:a,major:!1});return 0!==s&&n?function(t,e,n,i){const r=t._adapter,s=+r.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}(t,i,r,n):i}let er=(()=>{class t extends gn{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new vn._date(t.adapters.date);i.init(e),A(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:$i(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:r,minDefined:s,maxDefined:o}=this.getUserBounds();function a(t){s||isNaN(t.min)||(i=Math.min(i,t.min)),o||isNaN(t.max)||(r=Math.max(r,t.max))}s&&o||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),i=_(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),r=_(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,s=function(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}(i,r,this.max);return this._unit=e.unit||(n.autoSkip?Xi(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,i,r){for(let s=Wi.length-1;s>=Wi.indexOf(n);s--){const n=Wi[s];if(Qi[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return Wi[n?Wi.indexOf(n):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Wi.indexOf(t)+1,n=Wi.length;e<n;++e)if(Qi[Wi[e]].common)return Wi[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&s.reverse(),tr(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;i=$(i,0,s),r=$(r,0,s),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,r=i.time,s=r.unit||Xi(r.minUnit,e,n,this._getLabelCapacity(e)),o=v(r.stepSize,1),a="week"===s&&r.isoWeekday,l=B(a)||!0===a,c={};let u,h,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":s),t.diff(n,e,s)>1e5*o)throw new Error(e+" and "+n+" are too far apart with stepSize of "+o+" "+s);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=d,h=0;u<n;u=+t.add(u,o,s),h++)Ji(c,u,f);return u!==n&&"ticks"!==i.bounds&&1!==h||Ji(c,u,f),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this.options.time;return this._adapter.format(t,e.tooltipFormat?e.tooltipFormat:e.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const r=this.options,s=r.time.displayFormats,o=this._unit,a=this._majorUnit,l=a&&s[a],c=n[e],u=this._adapter.format(t,i||(a&&l&&c&&c.major?l:o&&s[o])),h=r.ticks.callback;return h?b(h,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=H(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:n*r+o*s,h:n*s+o*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,tr(this,[t],this._majorUnit),i),s=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push($i(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return function(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}(t.sort(Ki))}}return t.id="time",t.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},t})();function nr(t,e,n){let i,r,s,o,a=0,l=t.length-1;n?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=tt(t,"pos",e)),({pos:i,time:s}=t[a]),({pos:r,time:o}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=tt(t,"time",e)),({time:i,pos:s}=t[a]),({time:r,pos:o}=t[l]));const c=r-i;return c?s+(o-s)*(e-i)/c:s}class ir extends er{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=nr(e,this.min),this._tableRange=nr(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let s,o,a,l,c;for(s=0,o=t.length;s<o;++s)l=t[s],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(s=0,o=i.length;s<o;++s)c=i[s+1],a=i[s-1],l=i[s],Math.round((c+a)/2)!==l&&r.push({time:l,pos:s/(o-1)});return r}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(nr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return nr(this._table,n*this._tableRange+this._minPos,!0)}}ir.id="timeseries",ir.defaults=er.defaults,n(3815);const rr=function(t,e){return{"oss-toast-show":t,"oss-toast-hide":e}};function sr(t,e){if(1&t&&i._UZ(0,"nx-alert-card",2),2&t){const t=e.$implicit;i.Q6J("sticky",t.sticky)("timeOut",t.timeOut)("alert",t)}}const or=function(t){return{"oss-dialog-active":t}};function ar(t,e){if(1&t&&(i.TgZ(0,"th"),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.hij(" ",t.title," ")}}function lr(t,e){if(1&t&&(i.TgZ(0,"tr"),i.YNc(1,ar,2,1,"th",10),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.headers)}}function cr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td"),i.TgZ(1,"span",20),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw().clickEvent(e)}),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw().$implicit;i.xp6(2),i.Oqu(n[t.code])}}function ur(t,e){if(1&t&&(i.TgZ(0,"tr"),i.YNc(1,cr,3,1,"td",10),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.headers)}}function hr(t,e){if(1&t&&(i.TgZ(0,"div",2),i.TgZ(1,"div",3),i.TgZ(2,"h5",21),i._uU(3),i.qZA(),i.qZA(),i._UZ(4,"div",3),i._UZ(5,"div",3),i.qZA()),2&t){const t=i.oxw();i.xp6(3),i.Oqu(t.config.emptyDataLabel)}}const dr=function(t){return{"search-modal-active":t}},fr=function(t){return{"nav-menu-active":t}},pr=function(t,e){return{"ion-android-close":t,"ion-ios-search":e}},gr=function(t,e){return{"ion-android-close":t,"ion-grid":e}};function mr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"nav",9),i.TgZ(1,"div",10),i.TgZ(2,"ul"),i.TgZ(3,"li",11),i.TgZ(4,"span"),i._uU(5),i.qZA(),i.qZA(),i.TgZ(6,"li"),i._UZ(7,"i",12),i.qZA(),i.TgZ(8,"li"),i.TgZ(9,"i",13),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.openSearch(!e.activeSearch)}),i.qZA(),i.qZA(),i.TgZ(10,"li"),i.TgZ(11,"i",14),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.openMenu(!e.activeMenu)}),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.s9C("id",t.nxId),i.Q6J("ngClass",i.VKq(5,fr,1==t.focus)),i.xp6(5),i.Oqu(t.title),i.xp6(4),i.Q6J("ngClass",i.WLB(7,pr,1==t.activeSearch,0==t.activeSearch)),i.xp6(2),i.Q6J("ngClass",i.WLB(10,gr,1==t.activeMenu,0==t.activeMenu))}}const _r=function(t){return{title:t}};function yr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li",15),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw().clickEvent(e.route)}),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.Q6J("ngClass",i.VKq(2,_r,1==t.isTitle)),i.xp6(1),i.hij(" ",t.description," ")}}function vr(t,e){if(1&t&&(i.TgZ(0,"li",17),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.Q6J("ngClass",i.VKq(2,_r,1==t.isTitle)),i.xp6(1),i.Oqu(t.content)}}function br(t,e){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"ul"),i.YNc(2,vr,2,4,"li",16),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(2),i.Q6J("ngForOf",t.content)}}const wr=function(t){return{"modal-active":t}};function xr(t,e){1&t&&i.GkF(0)}function Cr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i.NdJ("click",function(e){return i.CHM(t),i.oxw(2).toggleList(e)}),i._uU(1),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(1),i.Oqu(t.description)}}const Sr=function(t){return[t]};function kr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",14),i.NdJ("click",function(e){return i.CHM(t),i.oxw(2).toggleList(e)}),i._uU(1),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.ekj("disabled",void 0!==t.disabled&&!0===t.disabled),i.Q6J("routerLink",i.VKq(4,Sr,t.route)),i.xp6(1),i.hij(" ",t.description," ")}}function Er(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",17),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.ekj("disabled",void 0!==t.disabled&&!0===t.disabled),i.Q6J("routerLink",i.VKq(4,Sr,t.route)),i.xp6(1),i.Oqu(t.description)}}function Ar(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"ul",15),i.YNc(2,Er,3,6,"li",16),i.qZA(),i.BQk()),2&t){const t=i.oxw().$implicit;i.xp6(2),i.Q6J("ngForOf",t.items)}}const Mr=function(t){return{selected:t}};function Tr(t,e){if(1&t&&(i.TgZ(0,"li",8),i.YNc(1,xr,1,0,"ng-container",9),i.YNc(2,Cr,2,1,"ng-template",null,10,i.W1O),i.YNc(4,kr,2,6,"ng-template",null,11,i.W1O),i.YNc(6,Ar,3,1,"ng-container",12),i.qZA()),2&t){const t=e.$implicit,n=i.MAs(3),r=i.MAs(5),s=i.oxw();i.Q6J("ngClass",i.VKq(5,Mr,s.isSelected)),i.xp6(1),i.Q6J("ngIf",t.items)("ngIfThen",n)("ngIfElse",r),i.xp6(5),i.Q6J("ngIf",t.items)}}const Or=function(t){return{"width.px":t}},Dr=["*"];var Ir=(()=>(function(t){t[t.Success=0]="Success",t[t.Error=1]="Error",t[t.Info=2]="Info",t[t.Warning=3]="Warning"}(Ir||(Ir={})),Ir))();let Rr=(()=>{class t{constructor(t){this.router=t,this.subject=new d.xQ,this.keepAfterRouteChange=!1,t.events.subscribe(t=>{t instanceof o.OD&&(this.keepAfterRouteChange?this.keepAfterRouteChange=!1:this.clear())})}getAlert(){return this.subject.asObservable()}success(t,e=5,n=!1,i=!1){this.alert(Ir.Success,t,e,n,i)}error(t,e=5,n=!1,i=!1){this.alert(Ir.Error,t,e,n,i)}info(t,e=5,n=!1,i=!1){this.alert(Ir.Info,t,e,n,i)}warn(t,e=5,n=!1,i=!1){this.alert(Ir.Warning,t,e,n,i)}alert(t,e,n=5,i=!1,r=!1){this.keepAfterRouteChange=r,console.log("alert creation"),console.log(n),this.subject.next({type:t,message:e,timeOut:n,sticky:i})}clear(){this.subject.next()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Lr=(()=>{class t{constructor(){this.timeOut=5,this.sticky=!1,this.isActive=!1,this.isDead=!1}ngOnInit(){setTimeout(()=>{this.isActive=!0},100),this.sticky||(setTimeout(()=>{this.isActive=!1},1e3*this.timeOut-500),setTimeout(()=>{this.isDead=!0},1e3*this.timeOut))}cssClass(t){if(this.alert)switch(this.alert.type){case Ir.Success:return"success";case Ir.Error:return"error";case Ir.Info:return"info";case Ir.Warning:return"warning"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-alert-card"]],inputs:{alert:"alert",timeOut:"timeOut",sticky:"sticky"},decls:8,vars:11,consts:[[1,"toast-wrapper",3,"ngClass"],[2,"width","100%"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div"),i._UZ(2,"h3"),i.TgZ(3,"p"),i._uU(4),i.qZA(),i._UZ(5,"div",1),i._UZ(6,"a"),i._UZ(7,"a"),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngClass",i.WLB(8,rr,1==e.isActive,1==e.isDead)),i.xp6(1),i.Gre("toast toast--",e.cssClass(e.alert)," slideLeftRightFade-init slideLeftRightFade-show"),i.xp6(3),i.Oqu(e.alert.message),i.xp6(1),i.Gre("toast-progressbar toast-progressbar--",e.cssClass(e.alert),""))},directives:[r.mk],encapsulation:2}),t})(),Nr=(()=>{class t{constructor(t){this.alertService=t,this.alerts=[],this.timeOut=5,this.sticky=!1,this.showing=!1}ngOnInit(){this.alertService.getAlert().subscribe(t=>{t?this.alerts.unshift(t):this.alerts=[]})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Rr))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-alert"]],inputs:{timeOut:"timeOut",sticky:"sticky"},decls:2,vars:1,consts:[[1,"toast-container","toast-container--slideLeftRightFade"],[3,"sticky","timeOut","alert",4,"ngFor","ngForOf"],[3,"sticky","timeOut","alert"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,sr,1,3,"nx-alert-card",1),i.qZA()),2&t&&(i.xp6(1),i.Q6J("ngForOf",e.alerts))},directives:[r.sg,Lr],encapsulation:2}),t})(),jr=(()=>{class t{constructor(){this.requireConfirmationSource=new d.xQ,this.acceptConfirmationSource=new d.xQ,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}confirm(t){return this.requireConfirmationSource.next(t),this}close(){this.requireConfirmationSource.next({message:"",lblOkBtn:"",lblCancelBtn:"",close:!0})}onAccept(){this.acceptConfirmationSource.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Pr=(()=>{class t{constructor(t,e,n,r){this.el=t,this.renderer=e,this.confirmationService=n,this.zone=r,this.question="",this.icon="",this.header="",this.message="",this.acceptIcon="fa-check",this.acceptLabel="Yes",this.acceptVisible=!0,this.rejectIcon="fa-close",this.rejectLabel="No",this.rejectVisible=!0,this.acceptButtonStyleClass="",this.rejectButtonStyleClass="",this.closeOnEscape=!0,this.rtl=!1,this.closable=!0,this.responsive=!0,this.lblOkBtn="Aceptar",this.lblCancelBtn="Cancelar",this.nxId="nx-confirm-dialog",this._visible=!1,this.positionInitialized=!1,this.executePostShowActions=!1,this.confirmation={message:"",lblOkBtn:"",lblCancelBtn:""},this.subscription=n.requireConfirmation$.subscribe(t=>{t.close?(console.log("close"),this.visible=!1,this.reject()):t.key===this.key&&(this.confirmation=t,this.question=this.confirmation.message||this.question,this.lblOkBtn=this.confirmation.lblOkBtn||this.lblOkBtn,this.lblCancelBtn=this.confirmation.lblCancelBtn||this.lblCancelBtn,this.icon=this.confirmation.icon||this.icon,this.header=this.confirmation.header||this.header,this.rejectVisible=null==this.confirmation.rejectVisible?this.rejectVisible:this.confirmation.rejectVisible,this.acceptVisible=null==this.confirmation.acceptVisible?this.acceptVisible:this.confirmation.acceptVisible,this.confirmation.accept&&(this.confirmation.acceptEvent=new i.vpe,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new i.vpe,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&(this.positionInitialized||(this.center(),this.positionInitialized=!0),this.executePostShowActions=!0),this._visible?this.enableModality():this.disableModality()}ngAfterViewInit(){}ngAfterViewChecked(){}center(){}enableModality(){}disableModality(){}close(t){this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(),this.hide(),t.preventDefault()}hide(){this.visible=!1}bindGlobalListeners(){}unbindGlobalListeners(){}ngOnDestroy(){this.disableModality(),this.documentResponsiveListener&&this.documentResponsiveListener(),this.documentEscapeListener&&this.documentEscapeListener(),this.appendTo&&"body"===this.appendTo&&document.body.removeChild(this.el.nativeElement),this.subscription.unsubscribe()}accept(){this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(),this.confirmation={message:"",lblOkBtn:"",lblCancelBtn:""}}reject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(),this.hide(),this.confirmation={message:"",lblOkBtn:"",lblCancelBtn:""}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(jr),i.Y36(i.R0b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-confirm-dialog"]],inputs:{question:"question",icon:"icon",header:"header",message:"message",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",acceptVisible:"acceptVisible",rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectVisible:"rejectVisible",acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",width:"width",height:"height",closeOnEscape:"closeOnEscape",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",key:"key",lblOkBtn:"lblOkBtn",lblCancelBtn:"lblCancelBtn",nxId:"nxId",visible:"visible"},decls:12,vars:7,consts:[[1,"oss-dialog-modal",3,"ngClass","id"],[1,"oss-dialog"],[1,"oss-dialog-content"],[1,"dialog-content","ui-widget-content"],[1,"dialog-footer"],["type","button",1,"default",3,"click"],["type","button",1,"mat-button","mat-warn",3,"click"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"h4"),i._uU(5),i.qZA(),i.qZA(),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return e.accept()}),i._uU(8),i.qZA(),i._UZ(9,"b"),i.TgZ(10,"button",6),i.NdJ("click",function(){return e.reject()}),i._uU(11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.s9C("id",e.nxId),i.Q6J("ngClass",i.VKq(5,or,e._visible)),i.xp6(5),i.Oqu(e.question),i.xp6(3),i.hij(" ",e.lblOkBtn," "),i.xp6(3),i.hij(" ",e.lblCancelBtn," "))},directives:[r.mk],encapsulation:2}),t})(),Fr=(()=>{class t{constructor(t){this.router=t,this.collection=[],this.headers=[],this.route="",this.keyUp=new i.vpe,this.findClick=new i.vpe,this.afterClick=new i.vpe,this.newClick=new i.vpe,this.value="",this.config={},this.nxId="nx-finder"}ngOnInit(){}keyupEvent(t){this.keyUp.emit(t.target.value)}clickEvent(t){this.afterClick.emit(t)}closeEvent(){this.active=!1,this.router.navigate([this.route])}findEvent(){this.findClick.emit(this.value)}clearEvent(){this.value="",this.findClick.emit(this.value)}newEvent(){this.newClick.emit("ok")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-finder"]],inputs:{collection:"collection",headers:"headers",active:"active",route:"route",value:"value",config:"config",nxId:"nxId"},outputs:{keyUp:"keyUp",findClick:"findClick",afterClick:"afterClick",newClick:"newClick"},decls:33,vars:10,consts:[[1,"modal",3,"ngClass","id"],[1,"search-wrapper"],[1,"grid-3_xs-1"],[1,"col"],[1,"col",2,"text-align","center"],[1,"primary","outline",3,"click"],[1,"icon","ion-android-close","finder-close-cross-bg",3,"click"],[1,"search-content"],[1,"search-data-table"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","grid-3_xs-1",4,"ngIf"],[1,"search-controls"],["for","ctrl-main-searcher",1,"main-searcher-label"],["id","ctrl-main-searcher","type","text",1,"main-searcher",3,"ngModel","ngModelChange","keyup"],["tabindex","0",1,"icon","ion-android-close",3,"click"],[1,"main-searcher-xs-label",3,"click"],[1,"main-searcher-button",3,"click"],[1,"icon","ion-ios-search"],[1,"main-searcher-bottom-line"],[3,"click"],[1,"text-danger"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"header"),i.TgZ(3,"div",2),i.TgZ(4,"div",3),i.TgZ(5,"h1"),i._uU(6),i.qZA(),i.qZA(),i._UZ(7,"div",3),i.TgZ(8,"div",4),i.TgZ(9,"button",5),i.NdJ("click",function(){return e.newEvent()}),i._uU(10),i.qZA(),i.TgZ(11,"i",6),i.NdJ("click",function(){return e.closeEvent()}),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"div",7),i.TgZ(13,"div"),i.TgZ(14,"b"),i._uU(15,"Resultado"),i.qZA(),i.qZA(),i.TgZ(16,"div"),i.TgZ(17,"table",8),i.TgZ(18,"thead"),i.YNc(19,lr,2,1,"tr",9),i.qZA(),i.TgZ(20,"tbody"),i.YNc(21,ur,2,1,"tr",10),i.qZA(),i.qZA(),i.YNc(22,hr,6,1,"div",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(23,"div",12),i.TgZ(24,"label",13),i._uU(25,"Buscador"),i.qZA(),i.TgZ(26,"input",14),i.NdJ("ngModelChange",function(t){return e.value=t})("keyup",function(t){return e.keyupEvent(t)}),i.qZA(),i.TgZ(27,"i",15),i.NdJ("click",function(){return e.clearEvent()}),i.qZA(),i.TgZ(28,"span",16),i.NdJ("click",function(){return e.clearEvent()}),i._uU(29,"Cancelar"),i.qZA(),i.TgZ(30,"button",17),i.NdJ("click",function(){return e.findEvent()}),i._UZ(31,"i",18),i.qZA(),i._UZ(32,"div",19),i.qZA(),i.qZA()),2&t&&(i.s9C("id",e.nxId),i.Q6J("ngClass",i.VKq(8,dr,1==e.active)),i.xp6(6),i.Oqu(e.config.title),i.xp6(4),i.Oqu(e.config.newButtonTitle),i.xp6(9),i.Q6J("ngIf",e.collection.length>0),i.xp6(2),i.Q6J("ngForOf",e.collection),i.xp6(1),i.Q6J("ngIf",0===e.collection.length),i.xp6(4),i.Q6J("ngModel",e.value))},directives:[r.mk,r.O5,r.sg,s.Fj,s.JJ,s.On],encapsulation:2}),t})(),zr=(()=>{class t{constructor(t){this.router=t,this.menuItems=[],this.favsItems=[],this.focus=!1,this.activeMenu=!1,this.activeSearch=!1,this.launch=new i.vpe,this.title="Web App",this.nxId="nx-menu-component",this.activeSidebar=!0}openSearch(t){this.activeSearch=t,this.activeMenu=!1,this.focus=t,this.launch.emit(t)}openMenu(t){this.launch.emit(!1),this.activeSearch=!1,this.activeMenu=t,this.focus=t}clickEvent(t){this.openMenu(!1),this.router.navigate([t])}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-menu"]],inputs:{menuItems:"menuItems",favsItems:"favsItems",focus:"focus",activeMenu:"activeMenu",activeSearch:"activeSearch",title:"title",nxId:"nxId"},outputs:{launch:"launch"},decls:11,vars:7,consts:[["class","nav-menu",3,"id","ngClass",4,"ngIf"],[1,"menu-modal",3,"ngClass","id"],[1,"menu-wrapper"],[1,"menu-left"],[3,"ngClass","click",4,"ngFor","ngForOf"],[1,"menu-content"],[1,"menu-card-header"],[1,"menu-card-items"],[4,"ngFor","ngForOf"],[1,"nav-menu",3,"id","ngClass"],[1,"nav-content"],[1,"title"],[1,"icon","ion-ios-albums-outline"],["id","search-toggle-menu",1,"icon",3,"ngClass","click"],["id","nav-toggle-menu",1,"icon",3,"ngClass","click"],[3,"ngClass","click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(t,e){1&t&&(i.YNc(0,mr,12,13,"nav",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"ul"),i.YNc(5,yr,2,4,"li",4),i.qZA(),i.qZA(),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._uU(8,"Header"),i.qZA(),i.TgZ(9,"div",7),i.YNc(10,br,3,1,"div",8),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngIf",e.activeSidebar),i.xp6(1),i.MGl("id","",e.nxId,"-modal"),i.Q6J("ngClass",i.VKq(5,wr,1==e.activeMenu)),i.xp6(4),i.Q6J("ngForOf",e.favsItems),i.xp6(5),i.Q6J("ngForOf",e.menuItems))},directives:[r.O5,r.mk,r.sg],encapsulation:2}),t})(),Vr=(()=>{class t{constructor(t){this.router=t,this.collection=[],this.nxId="nx-sub-menu-content",this.isSelected=!1}ngOnInit(){}toggleList(t){const e=(t.target||t.srcElement||t.currentTarget).parentElement,n=e.parentElement.childNodes;for(let i of n)if("li"===i.localName&&i.innerText!==e.innerText){i.classList.remove("selected");for(let t of i.childNodes)"ul"===t.localName&&t.classList.remove("oss-list-active")}if(e.classList.contains("selected")?e.classList.remove("selected"):e.classList.add("selected"),e.children.length>1){const t=e.children[1];t.classList.contains("oss-list-active")?t.classList.remove("oss-list-active"):t.classList.add("oss-list-active")}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-sub-menu-content"]],inputs:{collection:"collection",title:"title",progress:"progress",nxId:"nxId"},ngContentSelectors:Dr,decls:15,vars:8,consts:[[1,"oss-extended-content",3,"id"],[1,"oss-sub-menu"],[1,"oss-progress-bar"],[1,"oss-bar"],[1,"oss-progress",3,"ngStyle"],[1,"oss-pb-label"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"oss-main-section"],[3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["thenTemplateName",""],["elseTemplateName",""],[4,"ngIf"],[1,"collapse",3,"click"],[3,"routerLink","click"],[1,"oss-nested-list"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"h4"),i._uU(3),i.TgZ(4,"b"),i._uU(5),i.qZA(),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i._UZ(8,"div",4),i.qZA(),i.TgZ(9,"h6",5),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"ul"),i.YNc(12,Tr,7,7,"li",6),i.qZA(),i.qZA(),i.TgZ(13,"div",7),i.Hsn(14),i.qZA(),i.qZA()),2&t&&(i.s9C("id",e.nxId),i.xp6(3),i.hij("",e.title.label," "),i.xp6(2),i.Oqu(e.title.value),i.xp6(3),i.Q6J("ngStyle",i.VKq(6,Or,e.progress)),i.xp6(2),i.hij("",e.progress,"%"),i.xp6(2),i.Q6J("ngForOf",e.collection))},directives:[r.PC,r.sg,r.mk,r.O5,o.yS],encapsulation:2}),t})(),Ur=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.ez,o.Bz,s.u5,s.UX,a.LD,l.p0,c.TU,u.JX,h.p9]]}),t})()},5650:function(t,e,n){"use strict";n.d(e,{a1:function(){return v},e8:function(){return y},IR:function(){return O},NF:function(){return S},bz:function(){return b},G5:function(){return k},dk:function(){return E}});var i=n(7716),r=n(8583),s=n(1841),o=n(3679);let a=(()=>{class t{constructor(t,e){this.document=t,this.platformId=e,this.documentIsAccessible=(0,r.NF)(this.platformId)}static getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch(e){return t}}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const n=t.getCookieRegExp(e).exec(this.document.cookie);return n[1]?t.safeDecodeURIComponent(n[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},n=this.document;return n.cookie&&""!==n.cookie&&n.cookie.split(";").forEach(n=>{const[i,r]=n.split("=");e[t.safeDecodeURIComponent(i.replace(/^ /,""))]=t.safeDecodeURIComponent(r)}),e}set(t,e,n,i,r,s,o){if(!this.documentIsAccessible)return;if("number"==typeof n||n instanceof Date||i||r||s||o)return void this.set(t,e,{expires:n,path:i,domain:r,secure:s,sameSite:o||"Lax"});let a=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";const l=n||{};l.expires&&(a+="number"==typeof l.expires?"expires="+new Date((new Date).getTime()+1e3*l.expires*60*60*24).toUTCString()+";":"expires="+l.expires.toUTCString()+";"),l.path&&(a+="path="+l.path+";"),l.domain&&(a+="domain="+l.domain+";"),!1===l.secure&&"None"===l.sameSite&&(l.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),l.secure&&(a+="secure;"),l.sameSite||(l.sameSite="Lax"),a+="sameSite="+l.sameSite+";",this.document.cookie=a}delete(t,e,n,i,r="Lax"){if(!this.documentIsAccessible)return;const s=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:s,path:e,domain:n,secure:i,sameSite:r})}deleteAll(t,e,n,i="Lax"){if(!this.documentIsAccessible)return;const r=this.getAll();for(const s in r)r.hasOwnProperty(s)&&this.delete(s,t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r.K0),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r.K0),i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})();var l=n(4655),c=n(9765),u=n(205),h=n(3342),d=n(5304),f=n(8939);const p=function(t){return{"loading-modal-active":t}};function g(t,e){1&t&&i._UZ(0,"img",13)}function m(t,e){1&t&&i._UZ(0,"img",14)}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",3),i.TgZ(1,"ul"),i.TgZ(2,"li",4),i.NdJ("click",function(){return i.CHM(t),i.oxw().logOut()}),i._uU(3," Cerrar sesi\xf3n "),i.qZA(),i.qZA(),i.qZA()}}let y=(()=>{class t{constructor(t,e){this.http=t,this.cookieService=e}IsAuth(){return!!this.cookieService.check("currentUser")||!!localStorage.getItem("currentUser")}getToken(){const t=localStorage.getItem("currentUser");return t?JSON.parse(t).token.token:""}getUser(){const t=localStorage.getItem("currentUser");return t?JSON.parse(t):{userId:"",nombre:"BR",username:"",firstName:"",lastName:"",img64:"",token:""}}getUserId(){const t=localStorage.getItem("currentUser");return t?JSON.parse(t).userId:""}Authenticate(t,e,n){const i=`{"username": "${t}", "password": "${btoa(e)}", "useCookie": false, "applicacion": "${n}"}`,r=(new s.WM).set("Content-Type","application/json");return this.http.post("/seguridad/login",i.toString(),{headers:r,withCredentials:!0})}logOut(){const t=(new s.WM).set("Content-Type","application/json");return this.http.delete("/seguridad/login",{headers:t,withCredentials:!0})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.eN),i.LFG(a))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t{constructor(t,e){this.isLoggedIn=!1,this.redirectURL="",this.router=t,this.authService=e}canActivate(t,e){return this.redirectURL=e.url,this.checkIfCurrentUserIsAuthenticated()}checkIfCurrentUserIsAuthenticated(){return!!this.authService.IsAuth()||(this.router.navigate(["/login"],{queryParams:{returnUrl:this.redirectURL}}),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l.F0),i.LFG(y))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t{constructor(){this.isLoading=!1,this.keepLoading=!1}showLoading(t){this.isLoading=!0===this.keepLoading||t}holdLoading(t){this.keepLoading=t,this.showLoading(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t{constructor(){this.subject=new c.xQ,this.keepAfterRouteChange=!1,this.gotError=!1,this.errorMessage=""}errorHndlr(){return this.subject.asObservable()}setMessage(t,e=""){this.message(t,e)}message(t,e,n=!1){this.keepAfterRouteChange=n,this.subject.next({gotError:t,message:e})}clear(){this.subject.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(){this.subject=new c.xQ,this.keepAfterRouteChange=!1,this.gotError=!1,this.errorMessage=""}errorHandler(){return this.subject.asObservable()}setMessage(t,e=""){this.message(t,e)}message(t,e,n=!1){this.keepAfterRouteChange=n,this.subject.next({status:t,message:e})}clear(){this.subject.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e,n,i,r,s,o){this.config=t,this.injector=e,this.router=n,this.loadingService=i,this.loginService=r,this.errorService=s,this.cookieService=o,this.endpoint=this.config.endpoint,this.endsWith(this.endpoint,"/")||(this.endpoint=this.endpoint+"/")}endsWith(t,e){return t.indexOf(e,t.length-e.length)>=0}intercept(t,e){this.loginService.setMessage(!1,"");const n=this.injector.get(y);if(this.endsWith(t.url,"login")&&"POST"===t.method)this.loadingService.showLoading(!0),t=t.clone({url:this.config.endpoint+t.url});else if(t.url.indexOf("assets")>-1)this.loadingService.showLoading(!1),t=t.clone({url:t.url});else if(0===t.url.indexOf("http")&&t.url.indexOf("://")>0)this.loadingService.showLoading(!0),t=t.clone({url:t.url});else{this.loadingService.showLoading(!0);const e=n.getToken();t=t.clone({url:this.config.endpoint+t.url,setHeaders:{Authorization:`${e||""}`}})}return e.handle(t).pipe((0,h.b)(t=>{}),(0,d.K)(i=>{if(this.loadingService.showLoading(!1),i instanceof s.UA){if(401===i.status||403===i.status){if(403===i.status){const i=n.getToken();t=t.clone({url:this.config.endpoint+"/seguridad/login",method:"DELETE",setHeaders:{Authorization:`${i||""}`}}),e.handle(t)}localStorage.removeItem("currentUser"),this.cookieService.delete("currentUser"),this.router.navigateByUrl("/login")}i.status>=500&&this.errorService.setMessage(i.status,i.error.message),this.loginService.setMessage(!0,i.error.message)}return console.warn(i),(0,u._)(i)}),(0,f.x)(()=>{this.loadingService.showLoading(!1)}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG("config"),i.LFG(i.zs3),i.LFG(l.F0),i.LFG(b),i.LFG(w),i.LFG(x),i.LFG(a))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t){this.loadingService=t,this.isLoading=!1}ngOnInit(){this.isLoading&&(this.loadingService.isLoading=!0),this.isLoading=this.loadingService.isLoading}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-loading"]],inputs:{isLoading:"isLoading"},decls:5,vars:3,consts:[[1,"modal",3,"ngClass"],[1,"oss-loading"],[1,"oss-loading-content"],[1,"oss-loading-circle"],[1,"oss-loading-name"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"div",3),i._UZ(4,"span",4),i.qZA(),i.qZA(),i.qZA()),2&t&&i.Q6J("ngClass",i.VKq(1,p,e.loadingService.isLoading))},directives:[r.mk],encapsulation:2}),t})(),k=(()=>{class t{constructor(t,e,n,i,r,s){this.config=t,this.route=e,this.router=n,this.loginService=r,this.cookieService=s,this.nxId="nx-profile-component",this.auth=!1,this.returnUrl="",this.errMsg="",this.username=new o.NI(""),this.password=new o.NI(""),this.isHide=!0,this.title="",this._banca="",this.usernamePlaceholder="Usuario",this.usernameLabel="",this.errorMessage={gotError:!1,message:""},i.IsAuth()&&(this.auth=!0),this.authService=i}ngOnInit(){var t;this.errorMessage.message="",this.errorMessage.gotError=!1,this.errMsg="",this.returnUrl=(null===(t=this.route)||void 0===t?void 0:t.snapshot.queryParams.returnUrl)||"/",this.title=this.config.applicationTitle||"Acceso a usuario",this.usernameLabel=this.config.usernameLabel||"Correo",this._banca=this.config.banca||"banregio",this.loginService.errorHndlr().subscribe(t=>{this.errorMessage.gotError=t.gotError,this.errorMessage.message=t.message})}Authenticate(){this.authService.Authenticate(this.username.value,this.password.value,this.config.application).subscribe(t=>{if(t&&(this.router.navigateByUrl(this.returnUrl),t.token)){const e=JSON.stringify(t);localStorage.setItem("currentUser",e)}},t=>{switch(t.status){case 401:this.errorMessage.message=this.errMsg="Acceso no autorizado";break;case 403:this.errorMessage.message=this.errMsg="Verifique usuario y password e intente de nuevo.";break;case 0:case 404:this.errorMessage.message=this.errMsg="Error en la comunicaci\xf3n con el servidor, favor de intentar mas tarde.";break;default:this.errorMessage.message=this.errMsg="Ocurri\xf3 un error, favor de intentarlo mas tarde"}})}showPassword(){this.isHide=!this.isHide}}return t.\u0275fac=function(e){return new(e||t)(i.Y36("config"),i.Y36(l.gz),i.Y36(l.F0),i.Y36(y),i.Y36(w),i.Y36(a))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-login"]],inputs:{nxId:"nxId"},decls:23,vars:10,consts:[[1,"oss-login",3,"id"],[1,"oss-login-wrapper"],[1,"oss-login-logo"],["alt","Banregio","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdEAAAB0CAMAAADtu/hAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QwEEyoBXVL5RgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAC9FBMVEX+5dj/59r/7OL/9fD/9fH/9vH/9/L/9/P/+PT/+PX/+fb/+vf/+vj/+/n/+/r//Pr//fv//fz//v3//v7///8iISD/9O//9O7/8+2IgX7/8uyqoZ3/8uv/8er/8en8Zxn8aBr8aBv8aRz8aR38ah78ax78ax/8bCD8bCH8bSL8biP8biT8byX8byb8cCf8cSf8cSj8cin8cir8cyv8dCz8dC38dS78dS/8djD8dzH8eDL8eDP8eTT8eTX8ejb8ezf8ezj8fDn8fTr8fjv8fjz8fz38fz78gD/9gUD9gUH9gkL9g0P9hET9hEX9hUb9hUf9hkj9h0n9h0r9iEv9iEz9iUz9ik39ik79i0/9i1D9jFH9jVL9jVP9jlT9jlX9j1X9kFb9kFf9kVj9kVn9klr9k1v9k1z9lF39lF79lV79lV/9lmD9l2H9l2L9mGP9mGT9mWX9mmb9mmf9m2f9m2j9nGn9nWr9nWv9nmz9nm39n279oG/9oHD9oXD9oXH9onL9o3P9o3T9pHX9pHb9pXf9pnj9pnn9p3r9qHv9qXz9qX39qn79qn/9q4D9rIH9rIL9rYP9roT9r4X9r4b9sIf9sIj9sYn9sor9sov9s4z+s4z+tI3+tI7+tY/+tpD+tpH+t5L+t5P+uJT+uZX+upb+upf+u5j+vJn+vJr+vZv+vZz+vp3+v57+wJ/+wKD+waH+wqL+wqP+w6T+w6X+xKb+xaf+xaj+xqj+xqn+x6r+yKv+yKz+ya3+ya7+yq/+y7D+y7H+zLH+zLL+zbP+zrT+zrX+z7b+z7f+0Lj+0bn+0br+0rr+0rv+07z+073+1L7+1b/+1cD+1sH+1sL+18P+2MP+2MT+2cX+2cb+2sf+28j+28n+3Mr+3Mv+3cz+3sz+3s3+387+38/+4ND+4dH+4dL+4tP+4tT+49X+5Nb+5df+5dj/5tn/59r/59v/6Nz/6N3/6d7/6t//6+D/6+H/7OL/7eP/7eT/7uX/7ub/7+f/8Og9KCaqAAAAH3RSTlMAAAAAAAAAAAAAAAAAAAAAAAAAAAAiIkRmiIiqqszu4hbpIQAAAAFiS0dEFJLfyTUAABFoSURBVHja7Z1nXBXHFsDznoBwlQuXu8/k+YhDFWzYUCxB0KBRUGOvYKxRgz02wBfsLTFgYkOfGh9RUVBjJVhjx15i1CjGKPLsDSv65QGXcu/MmdnZvcC95jfn4+6cs7Pz392ZOefM7HuSkL+WvCeaQBAVIogKKXOiCJNU0TCCqBBBVIggKkQQFUQFUUFUiCAqRBAVIogKooKoICpEEBUiiAoRRIUIooKoEEFUiCAqpJSJvvl1V1JS0vb9F98qtf7B+c3fTxobGTkyZvqKtIsfqK6l/c39W5PWpx6941A6raC5kbZwcm49J8TGbzj1VG99mPTPz6fETR4XGRk9Y8GOq++bQVR/e2Uvv+LjNbsvueLE20qHY5pjZoNGb/tQ8c1oT8wyshMy7Yij8gfi/qX0o2evZbuAZ+8l9PIyqWadQT88UmL+edp3ke2C/f38gjt9ueSkbYnjfJ48sr5pQ4ZM3WOrimil1cGIEP+4xxy1yIzxQZC49dyjhcqXD8OkvOH424UNcRN1Z78i1C9i2oOKzmSvG924UPMFAHt9O7CeLZdV5mvuP2dibeQRvqXgS5KJVSq2SAm/2cV0+zYpXcEK+ow66qKUqMNiXwTL8Acyt3kjAtGlYTLwmtvgpWzyqxAPPhc+8+wx9aNYiUDDYZd93Y2PEkTtfqhHrabP1Gfy349NrSFVv4T8+l3CDvcu0sMVYmgXeDu/Fr0hW2zRKiJ6rBHdlsdkG8Z9vj8BsaXFRT6ifwTRLARd4yF6uY3pUZzo3gBmNasu0jB5umxvSlNtfKokiFZc5sNuyMDD/ER189i2Gv1GvdEzDZGcuM3XcRDd4UW34LVTlqguzg2xiL7tK1vPwCsMoI96sFQX6M0mejpYtoJowHNOorrRcqbcEyk3muiOOGSwRpZoMtvCRhmi2i8IFROiFxpyVJN6l5K0sSpbdbrePKKOM3naEdXYzUf0Kw5bs6BRvv4bxCc9NTJEf5Fr7P1MorphiEk0yZ2vnrE6uAedIqu53CyiVTpxNiSareMgGs5lajqA9GveeqARLkyif1STM1D9MYvoIsQkOp+7nuMhpJo+8ooea8wgmv0RdwXRFxp5opyylKhIigLtlUyibeQNtHOmE830YBL9TkE9ZwBAI3gUa6on+sBfCYcITUkRRcfxyZmHAmWv2yyiPLKBTrQnYhFNUnSZZKJrGaaqtfiJvmiszPIQXUkRrZNj+ug2V6Tdw1yide1pRN0Qi+gZd0WX8crCGnwBKl2idq2Vmp5RUkRRX5OaLFH/iqsiitbSiCIW0Sr+Ci/T0tTxeBKVLlH9SOW2U0uKKDpgPMGD58M1A4PrusncokqizfQqiOr70d5Fb5riChMHSsNSJrpJhW3fpyVFtEmF4prEA660qCP5vnnnzPXdAO2HZhJFV1QQ/RkaN49PvZf7IupenlvaHnLrGUc7olDpEn1VXY3xbnpuokH9o2ImhFP9ZSnFU+LaxMlprkY1vfoJcT6Bg6hvWHjvDrVpc2LlRO3IV6zWqvJG9bw7htSMN4pBUOf6ob3DO9c3n+gY2tC5y7jYmOGhtMHnLj6iPbZVKZwgrQ0FSzQtmkIcJlgcM+3wHQbgJdrLEfWZnmGw/zgRHHV9rJwoOXEZUAUb+ZwnoFezKzrZGzTdfs19w0uS83M/N7OI/g7qNph/o2A863B6AugdbWTPQbTLdZMOOx30M/5SeD4G75YI169DCK5syyb6hVGM3TkJ6qbfKCVqU4N4z8mo1Kvm1InSFcjwp5dMJpNDzCEK9U6111cw8UhPgx6aVbJEPRLxW60YCxQbWHg2EDuRBPieceXfmESXmjqlrgORpXR5oi3GLNyYmpq8IrpT3lzrB/z0ZMjJ96wuViqs8AwwDvVYhTfU3uqqiV4DFD8jkkeuAVGfRloZovg3M19WAf7VgstVwtsACMi64BG6dSyi3+Lql8h55HIZoi3XvDYxocNr0AEMwEv7KYO4HLIb8z1Nqv+vvlqiI0i9yYAf8l9tyXI72ETdj4F3upDqucEdV3sh9bGY7jwG0c7kjXxLFIpiEvXfhT9W5/D36x4ltNILK/ij4fBqsqFOQepZ1dURdSUf2mgw7+kfIWQnySa6jJLCNIjs7IryYfZ93bWor6tWAVLHJzhjGERvAZkO1SkuDphoBJmr9pV81MMgx2EcXdnu6WLZpY7oRkKrI/wRkbLJZ+YVi6iRF9xU3hCGahoXdcrcEJ3/9PQCtediukPpRAdA+tOIryqD6FCyLZzxrvgOjagT1pN656fSuBJDknY6ioEhqogSUXTvp7QabiYukMgiepEa6SXDVJnEq3Ru+eAEUDmMdpMk0X1gWB8RYTMq0XZA0uBNrEwreooCPgTKAmdo6AJN/6GbCqK2xEc3jp4UEwZegEK0CyMHl/CVbeHOU9yAuIm6g5lM5fFiDalEvZ8A+ng3OJNe1yXQXcYRjw3dwFAVRM/gZ6r+k36BA8QYTUsnmsbAMh7xN4vpUxuL+Il+AttogvvnqETjIfVh1HgcIdsg91QvaqyAlEMqiH5PDIsY7elM5PZdpxL1ZKURE49GuGxG+OsLG+YMbMQa0BNEh8Om2vMS9XaF1HEfSb1AqvhDA0D8gUKMDFCNp3Kin+FnTrDadRYCJoMw0Z4sO0TjN6eXtcvctWRM22ryrk4bzhe/Dy/R8eBwR0lEHvi+OhKzelZDdVROtBn+XFZkXeA05OaGicYxX7mP8W89VMj2QtKU3gHc4QiC6Fz42pG8RA+CI371QJF/3vwMP9iP1U7/VkxUiw+MOjFBlMPtDKISTWMaGo4XJwYxWQvC+NIESo2omx2kfdEMop65+rfxg1NZ7bRUMdEn+Ikp7O6sKRC4gIleZtqZC8cdixIffwpVHjIsaaIhoPZRM4iiXP0MRPN5QZKkmOhNTvdFoeDZVA2oRNl7nS/DixtPgvXbAxS0UqkRHc3ryOEXG3LdA1rEaqdkxUQvwa5aqozCQ7RUon+XlDx7yCip71k3dWH9kiYax+lmUUY0k7OWat/RdC43S7HEAN+REiZ6uiayDqKrQe2t5hDN7Znv48cmsNppvmKixG0cLimif2PaWU6dlO12R1ZCFPZj7TazH81RNM37UjHR8/gJme0TcGePN5XoVaYdIqZVmLV7WCnQ0iOaWuIjo7zW0uH5IDVcGO0UopgoMfJazyY6EM91oBLdzbRDrFsryHB5VIM9/A+JjP/cskTNmb3kzUel5owhBC6uyr2Ad/ET37CJtsKKN6MS/Z5pB5+c1CqIBXSkNUadrpMS0x/nhaMSLEsUn++5xfBL/liLiA4n8DuGOYjaQC4DhmMXX/DYg0r0M5YdDe5Ka0MfSLp3nbP1d6O4s4WJEj4ZjaRMiFUDgfTPbjcVnno8vakuc98WYug9iUrUh7XLzCm89GDDA0NmCtZd5SoTXC1jokR22x2FRM8R97iXVjRDTcS7M37mf6za/IiX/g89mnaQYWca/I0+QRjp4yrrbiprov1Vh3YL4rN4PAUFUV5zl65qiE5W5MIg+B+jE+1LN+PgB0+axhJAgQSZKAsTxSdekQqJSkQSOS1ItBqpIZpGBHcY20cRs2NUiZGVkkW1s44om5+wpMfzGb2fc2TYlTVR3M3mxdoxKzYpW364g9BPkO5Zd1VEieAO+plev0l42dasPKMIWpdsR7htm+Uff8oTfdfXtjDRCt78o/q87PlW8RmmmWHlyMR+txRS96QvUkWUCMmjJtTB210ikWk2M7tzM8XOVASFWclsSLSf5ztR1kSJDD2fF1SiBTOVetEHyjPvP/fhLYcNqRe7I5VE5/N+1SUnchFdBpOobyZoZw9Z0pBSTuzAcAPQXmFxonuJGtCyM48ZdSD9kovAPwS9D6uNoDvv/VjGQcYgehvxjqbJzXGa6plEUf27gJkz5EennmEAlIgffwiM/4IsTtS+GvyJIVMesa0Q2rhSvLUF7/rITTdcdZLt3X1T/GVdnqxVEuSOIl5grlECad/QgzBWMtU5Q5jZDqxzm0cJmgKbku1EFidKzr1QHDRk0OD+geDCMy+qqvUjchHdQep5kRmLjtOBYm/liCK3WabpJm/BtaoPKSG2JUQ1KgdYAdFscqHesEpEqQ+70CeGi0qVqBZKmRyO7VZ6HVjHlO8wkuRWBPstKE5PuD0L3GYhktbBNsWno5peyAqISsD+eI3wBU8HiCXBHsW7wmjbliZRaT34UZ9RvOLK5cJQMBDymIdoroR8tTr1UOqKiYGU84VuqizizELTVqrUF1kF0UdQhmfLlGL/ln1aB7LAWCMLD3xLk6hzK1i71YxN5zIuH187jpL187XESVRGihKltWRSrsmS4PSmyDqIUja6c28/fU3qkdQ1s7tBa+I9TDbFPuhWikSls+qCfbYlQ7T6y6KKfE6e7Xe14Gv2ekOYVUS8De/gR8rvc7qpicTSJCpNVGO8aPMEM4mukcmz8x8cO+3Lfk2sJYfBIJcVp1o0KCeTQgRKDZVEbZopBxEllQzRCKPpuaaeOY9tWRKVViqt5nHCxBr5D+/wSJVEpSzFHXWoQ8kQbWwSLlulwkJHixDVj1VWS6guZ+rKKIXZqiYqHVT4FQko7vwoRPkW/Pj+aTo7CVJONMwiRCVtHyWVHAg6Cl/2Zir1fF9STxRYvM8SE/ceTHQhjx0vfEuJ8/JfIm9sI4bmliEqafrzt1cne8qbnsroZ2Y7kXWN4CcqbXRTCZRC9EU0xxt6Uj4Lh5zQYFnj9SxEVNKO5+7q6Wtpy6+iMA29CtU1UgFR6aAPbwVbmO7UQCGqlf3PQgAQW9HLPQiz8JCzh6WISvpET672Gs9cwWm/I5x8mXqnGyZt+K8PRiohKt3iHPF+jo3DKUQlrcwer33Af6jp2H8smKWXbmCHqliKqCRltpBvrqrrZM3kpMY0Lx7INBhYHHjrRuXGQ1Sy4ZmX+ibhcQYaUUm/nDE8qplCS2pkPPkeeT6kZ9jBG5YjKjkslvuydb7Pl33keO/Evm0paUevmvyaC0/XjldGVJJ+ayU7Q3pJKFGJ5j7DtIxqn28Yfym8RVs82jofXkXs6CELEpWkV1GsUf1Hu8z6y6ET7k5cp5So5JTclMWzx3lAh0FU0h/uDphpspj900rdVmgW0yjFCcyYXWtRopL0Os6P0lztdjrL6D5grxwjljwcVEw0l2lqB9q0YVgGqGEgehuTokBY1gLTmPonc8/pZFvJ5cgIU6eHZ//dRRafmF6psB/V4VV4A9t+jhUrGLjb4uqVuF8lx+MTyRFraPxdtpbr7kmNUQ1mWxBrDIoDYnhtX7HsPFkSRoy+fPttpt3he7J3/OH5tbOjIweNmhS38ZIrbzNVuLhyXJfA2jX8AtoOW3jCTrJu0T/cMrN/sOEprB06ZMGBN+zJ7Nl5BV1LBqsYvl2Ft7PqCpY7sWhMW4OTyjOgx6T/XtXSy74nCSkeXdrYy35/MldGVDWajTEo4Nkr7cyun0PlclrZQoKoEnk9ytSbW4vx0078H1toTtnUURBVIpURdUKCix3ROZ8QRK1Q8GC5501aSWJNkqe9IGqFQvjEmlGmcjuoKXaCqFVJOuk4yYHKpZHJSocEUWsUR3LqGkCmmleYQzoE6jkKolYpwJ/E0ETTRYmaLZDrbqkkiFql5EDOfbeBW54aXMC6R7uiQLdi9XKCqJXKPIqbtVrLTl3DmlAjT4slQdRKpZKqf1U2qyCIWq0cUkP0pCSIvkNzUnmZLAmi1jyD6aAUaHuNIGrVUlnZD+hRkxxJELXyKYwipI2fSIKotYvrp/xAg7IlQdT6RTOBF2h4ZUkQfScklWv/ds8EnSSIviPylmOBW/c7ZV8vQVS9XB8gs6jzqF4SRN8tuTWF+u31HvWrZeokiJonDgeigZ+w1x+709ZSNRJEzRb90z3fjvjUP+9/0rUaBncbu/iXbEtWRxD9q4kgKogKsW75P2OuSAts/xMAAAAAAElFTkSuQmCC","width","160",4,"ngIf","ngIfElse"],["heybanco",""],[1,"oss-login-form"],[1,"login-header"],["type","text",3,"formControl","placeholder"],[1,"login-password"],[3,"type","formControl","keyup.enter"],[3,"click"],[1,"oss-error-message"],[1,"dark",3,"click"],["alt","Banregio","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdEAAAB0CAMAAADtu/hAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QwEEyoBXVL5RgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAC9FBMVEX+5dj/59r/7OL/9fD/9fH/9vH/9/L/9/P/+PT/+PX/+fb/+vf/+vj/+/n/+/r//Pr//fv//fz//v3//v7///8iISD/9O//9O7/8+2IgX7/8uyqoZ3/8uv/8er/8en8Zxn8aBr8aBv8aRz8aR38ah78ax78ax/8bCD8bCH8bSL8biP8biT8byX8byb8cCf8cSf8cSj8cin8cir8cyv8dCz8dC38dS78dS/8djD8dzH8eDL8eDP8eTT8eTX8ejb8ezf8ezj8fDn8fTr8fjv8fjz8fz38fz78gD/9gUD9gUH9gkL9g0P9hET9hEX9hUb9hUf9hkj9h0n9h0r9iEv9iEz9iUz9ik39ik79i0/9i1D9jFH9jVL9jVP9jlT9jlX9j1X9kFb9kFf9kVj9kVn9klr9k1v9k1z9lF39lF79lV79lV/9lmD9l2H9l2L9mGP9mGT9mWX9mmb9mmf9m2f9m2j9nGn9nWr9nWv9nmz9nm39n279oG/9oHD9oXD9oXH9onL9o3P9o3T9pHX9pHb9pXf9pnj9pnn9p3r9qHv9qXz9qX39qn79qn/9q4D9rIH9rIL9rYP9roT9r4X9r4b9sIf9sIj9sYn9sor9sov9s4z+s4z+tI3+tI7+tY/+tpD+tpH+t5L+t5P+uJT+uZX+upb+upf+u5j+vJn+vJr+vZv+vZz+vp3+v57+wJ/+wKD+waH+wqL+wqP+w6T+w6X+xKb+xaf+xaj+xqj+xqn+x6r+yKv+yKz+ya3+ya7+yq/+y7D+y7H+zLH+zLL+zbP+zrT+zrX+z7b+z7f+0Lj+0bn+0br+0rr+0rv+07z+073+1L7+1b/+1cD+1sH+1sL+18P+2MP+2MT+2cX+2cb+2sf+28j+28n+3Mr+3Mv+3cz+3sz+3s3+387+38/+4ND+4dH+4dL+4tP+4tT+49X+5Nb+5df+5dj/5tn/59r/59v/6Nz/6N3/6d7/6t//6+D/6+H/7OL/7eP/7eT/7uX/7ub/7+f/8Og9KCaqAAAAH3RSTlMAAAAAAAAAAAAAAAAAAAAAAAAAAAAiIkRmiIiqqszu4hbpIQAAAAFiS0dEFJLfyTUAABFoSURBVHja7Z1nXBXHFsDznoBwlQuXu8/k+YhDFWzYUCxB0KBRUGOvYKxRgz02wBfsLTFgYkOfGh9RUVBjJVhjx15i1CjGKPLsDSv65QGXcu/MmdnZvcC95jfn4+6cs7Pz392ZOefM7HuSkL+WvCeaQBAVIogKKXOiCJNU0TCCqBBBVIggKkQQFUQFUUFUiCAqRBAVIogKooKoICpEEBUiiAoRRIUIooKoEEFUiCAqpJSJvvl1V1JS0vb9F98qtf7B+c3fTxobGTkyZvqKtIsfqK6l/c39W5PWpx6941A6raC5kbZwcm49J8TGbzj1VG99mPTPz6fETR4XGRk9Y8GOq++bQVR/e2Uvv+LjNbsvueLE20qHY5pjZoNGb/tQ8c1oT8wyshMy7Yij8gfi/qX0o2evZbuAZ+8l9PIyqWadQT88UmL+edp3ke2C/f38gjt9ueSkbYnjfJ48sr5pQ4ZM3WOrimil1cGIEP+4xxy1yIzxQZC49dyjhcqXD8OkvOH424UNcRN1Z78i1C9i2oOKzmSvG924UPMFAHt9O7CeLZdV5mvuP2dibeQRvqXgS5KJVSq2SAm/2cV0+zYpXcEK+ow66qKUqMNiXwTL8Acyt3kjAtGlYTLwmtvgpWzyqxAPPhc+8+wx9aNYiUDDYZd93Y2PEkTtfqhHrabP1Gfy349NrSFVv4T8+l3CDvcu0sMVYmgXeDu/Fr0hW2zRKiJ6rBHdlsdkG8Z9vj8BsaXFRT6ifwTRLARd4yF6uY3pUZzo3gBmNasu0jB5umxvSlNtfKokiFZc5sNuyMDD/ER189i2Gv1GvdEzDZGcuM3XcRDd4UW34LVTlqguzg2xiL7tK1vPwCsMoI96sFQX6M0mejpYtoJowHNOorrRcqbcEyk3muiOOGSwRpZoMtvCRhmi2i8IFROiFxpyVJN6l5K0sSpbdbrePKKOM3naEdXYzUf0Kw5bs6BRvv4bxCc9NTJEf5Fr7P1MorphiEk0yZ2vnrE6uAedIqu53CyiVTpxNiSareMgGs5lajqA9GveeqARLkyif1STM1D9MYvoIsQkOp+7nuMhpJo+8ooea8wgmv0RdwXRFxp5opyylKhIigLtlUyibeQNtHOmE830YBL9TkE9ZwBAI3gUa6on+sBfCYcITUkRRcfxyZmHAmWv2yyiPLKBTrQnYhFNUnSZZKJrGaaqtfiJvmiszPIQXUkRrZNj+ug2V6Tdw1yide1pRN0Qi+gZd0WX8crCGnwBKl2idq2Vmp5RUkRRX5OaLFH/iqsiitbSiCIW0Sr+Ci/T0tTxeBKVLlH9SOW2U0uKKDpgPMGD58M1A4PrusncokqizfQqiOr70d5Fb5riChMHSsNSJrpJhW3fpyVFtEmF4prEA660qCP5vnnnzPXdAO2HZhJFV1QQ/RkaN49PvZf7IupenlvaHnLrGUc7olDpEn1VXY3xbnpuokH9o2ImhFP9ZSnFU+LaxMlprkY1vfoJcT6Bg6hvWHjvDrVpc2LlRO3IV6zWqvJG9bw7htSMN4pBUOf6ob3DO9c3n+gY2tC5y7jYmOGhtMHnLj6iPbZVKZwgrQ0FSzQtmkIcJlgcM+3wHQbgJdrLEfWZnmGw/zgRHHV9rJwoOXEZUAUb+ZwnoFezKzrZGzTdfs19w0uS83M/N7OI/g7qNph/o2A863B6AugdbWTPQbTLdZMOOx30M/5SeD4G75YI169DCK5syyb6hVGM3TkJ6qbfKCVqU4N4z8mo1Kvm1InSFcjwp5dMJpNDzCEK9U6111cw8UhPgx6aVbJEPRLxW60YCxQbWHg2EDuRBPieceXfmESXmjqlrgORpXR5oi3GLNyYmpq8IrpT3lzrB/z0ZMjJ96wuViqs8AwwDvVYhTfU3uqqiV4DFD8jkkeuAVGfRloZovg3M19WAf7VgstVwtsACMi64BG6dSyi3+Lql8h55HIZoi3XvDYxocNr0AEMwEv7KYO4HLIb8z1Nqv+vvlqiI0i9yYAf8l9tyXI72ETdj4F3upDqucEdV3sh9bGY7jwG0c7kjXxLFIpiEvXfhT9W5/D36x4ltNILK/ij4fBqsqFOQepZ1dURdSUf2mgw7+kfIWQnySa6jJLCNIjs7IryYfZ93bWor6tWAVLHJzhjGERvAZkO1SkuDphoBJmr9pV81MMgx2EcXdnu6WLZpY7oRkKrI/wRkbLJZ+YVi6iRF9xU3hCGahoXdcrcEJ3/9PQCtediukPpRAdA+tOIryqD6FCyLZzxrvgOjagT1pN656fSuBJDknY6ioEhqogSUXTvp7QabiYukMgiepEa6SXDVJnEq3Ru+eAEUDmMdpMk0X1gWB8RYTMq0XZA0uBNrEwreooCPgTKAmdo6AJN/6GbCqK2xEc3jp4UEwZegEK0CyMHl/CVbeHOU9yAuIm6g5lM5fFiDalEvZ8A+ng3OJNe1yXQXcYRjw3dwFAVRM/gZ6r+k36BA8QYTUsnmsbAMh7xN4vpUxuL+Il+AttogvvnqETjIfVh1HgcIdsg91QvaqyAlEMqiH5PDIsY7elM5PZdpxL1ZKURE49GuGxG+OsLG+YMbMQa0BNEh8Om2vMS9XaF1HEfSb1AqvhDA0D8gUKMDFCNp3Kin+FnTrDadRYCJoMw0Z4sO0TjN6eXtcvctWRM22ryrk4bzhe/Dy/R8eBwR0lEHvi+OhKzelZDdVROtBn+XFZkXeA05OaGicYxX7mP8W89VMj2QtKU3gHc4QiC6Fz42pG8RA+CI371QJF/3vwMP9iP1U7/VkxUiw+MOjFBlMPtDKISTWMaGo4XJwYxWQvC+NIESo2omx2kfdEMop65+rfxg1NZ7bRUMdEn+Ikp7O6sKRC4gIleZtqZC8cdixIffwpVHjIsaaIhoPZRM4iiXP0MRPN5QZKkmOhNTvdFoeDZVA2oRNl7nS/DixtPgvXbAxS0UqkRHc3ryOEXG3LdA1rEaqdkxUQvwa5aqozCQ7RUon+XlDx7yCip71k3dWH9kiYax+lmUUY0k7OWat/RdC43S7HEAN+REiZ6uiayDqKrQe2t5hDN7Znv48cmsNppvmKixG0cLimif2PaWU6dlO12R1ZCFPZj7TazH81RNM37UjHR8/gJme0TcGePN5XoVaYdIqZVmLV7WCnQ0iOaWuIjo7zW0uH5IDVcGO0UopgoMfJazyY6EM91oBLdzbRDrFsryHB5VIM9/A+JjP/cskTNmb3kzUel5owhBC6uyr2Ad/ET37CJtsKKN6MS/Z5pB5+c1CqIBXSkNUadrpMS0x/nhaMSLEsUn++5xfBL/liLiA4n8DuGOYjaQC4DhmMXX/DYg0r0M5YdDe5Ka0MfSLp3nbP1d6O4s4WJEj4ZjaRMiFUDgfTPbjcVnno8vakuc98WYug9iUrUh7XLzCm89GDDA0NmCtZd5SoTXC1jokR22x2FRM8R97iXVjRDTcS7M37mf6za/IiX/g89mnaQYWca/I0+QRjp4yrrbiprov1Vh3YL4rN4PAUFUV5zl65qiE5W5MIg+B+jE+1LN+PgB0+axhJAgQSZKAsTxSdekQqJSkQSOS1ItBqpIZpGBHcY20cRs2NUiZGVkkW1s44om5+wpMfzGb2fc2TYlTVR3M3mxdoxKzYpW364g9BPkO5Zd1VEieAO+plev0l42dasPKMIWpdsR7htm+Uff8oTfdfXtjDRCt78o/q87PlW8RmmmWHlyMR+txRS96QvUkWUCMmjJtTB210ikWk2M7tzM8XOVASFWclsSLSf5ztR1kSJDD2fF1SiBTOVetEHyjPvP/fhLYcNqRe7I5VE5/N+1SUnchFdBpOobyZoZw9Z0pBSTuzAcAPQXmFxonuJGtCyM48ZdSD9kovAPwS9D6uNoDvv/VjGQcYgehvxjqbJzXGa6plEUf27gJkz5EennmEAlIgffwiM/4IsTtS+GvyJIVMesa0Q2rhSvLUF7/rITTdcdZLt3X1T/GVdnqxVEuSOIl5grlECad/QgzBWMtU5Q5jZDqxzm0cJmgKbku1EFidKzr1QHDRk0OD+geDCMy+qqvUjchHdQep5kRmLjtOBYm/liCK3WabpJm/BtaoPKSG2JUQ1KgdYAdFscqHesEpEqQ+70CeGi0qVqBZKmRyO7VZ6HVjHlO8wkuRWBPstKE5PuD0L3GYhktbBNsWno5peyAqISsD+eI3wBU8HiCXBHsW7wmjbliZRaT34UZ9RvOLK5cJQMBDymIdoroR8tTr1UOqKiYGU84VuqizizELTVqrUF1kF0UdQhmfLlGL/ln1aB7LAWCMLD3xLk6hzK1i71YxN5zIuH187jpL187XESVRGihKltWRSrsmS4PSmyDqIUja6c28/fU3qkdQ1s7tBa+I9TDbFPuhWikSls+qCfbYlQ7T6y6KKfE6e7Xe14Gv2ekOYVUS8De/gR8rvc7qpicTSJCpNVGO8aPMEM4mukcmz8x8cO+3Lfk2sJYfBIJcVp1o0KCeTQgRKDZVEbZopBxEllQzRCKPpuaaeOY9tWRKVViqt5nHCxBr5D+/wSJVEpSzFHXWoQ8kQbWwSLlulwkJHixDVj1VWS6guZ+rKKIXZqiYqHVT4FQko7vwoRPkW/Pj+aTo7CVJONMwiRCVtHyWVHAg6Cl/2Zir1fF9STxRYvM8SE/ceTHQhjx0vfEuJ8/JfIm9sI4bmliEqafrzt1cne8qbnsroZ2Y7kXWN4CcqbXRTCZRC9EU0xxt6Uj4Lh5zQYFnj9SxEVNKO5+7q6Wtpy6+iMA29CtU1UgFR6aAPbwVbmO7UQCGqlf3PQgAQW9HLPQiz8JCzh6WISvpET672Gs9cwWm/I5x8mXqnGyZt+K8PRiohKt3iHPF+jo3DKUQlrcwer33Af6jp2H8smKWXbmCHqliKqCRltpBvrqrrZM3kpMY0Lx7INBhYHHjrRuXGQ1Sy4ZmX+ibhcQYaUUm/nDE8qplCS2pkPPkeeT6kZ9jBG5YjKjkslvuydb7Pl33keO/Evm0paUevmvyaC0/XjldGVJJ+ayU7Q3pJKFGJ5j7DtIxqn28Yfym8RVs82jofXkXs6CELEpWkV1GsUf1Hu8z6y6ET7k5cp5So5JTclMWzx3lAh0FU0h/uDphpspj900rdVmgW0yjFCcyYXWtRopL0Os6P0lztdjrL6D5grxwjljwcVEw0l2lqB9q0YVgGqGEgehuTokBY1gLTmPonc8/pZFvJ5cgIU6eHZ//dRRafmF6psB/V4VV4A9t+jhUrGLjb4uqVuF8lx+MTyRFraPxdtpbr7kmNUQ1mWxBrDIoDYnhtX7HsPFkSRoy+fPttpt3he7J3/OH5tbOjIweNmhS38ZIrbzNVuLhyXJfA2jX8AtoOW3jCTrJu0T/cMrN/sOEprB06ZMGBN+zJ7Nl5BV1LBqsYvl2Ft7PqCpY7sWhMW4OTyjOgx6T/XtXSy74nCSkeXdrYy35/MldGVDWajTEo4Nkr7cyun0PlclrZQoKoEnk9ytSbW4vx0078H1toTtnUURBVIpURdUKCix3ROZ8QRK1Q8GC5501aSWJNkqe9IGqFQvjEmlGmcjuoKXaCqFVJOuk4yYHKpZHJSocEUWsUR3LqGkCmmleYQzoE6jkKolYpwJ/E0ETTRYmaLZDrbqkkiFql5EDOfbeBW54aXMC6R7uiQLdi9XKCqJXKPIqbtVrLTl3DmlAjT4slQdRKpZKqf1U2qyCIWq0cUkP0pCSIvkNzUnmZLAmi1jyD6aAUaHuNIGrVUlnZD+hRkxxJELXyKYwipI2fSIKotYvrp/xAg7IlQdT6RTOBF2h4ZUkQfScklWv/ds8EnSSIviPylmOBW/c7ZV8vQVS9XB8gs6jzqF4SRN8tuTWF+u31HvWrZeokiJonDgeigZ+w1x+709ZSNRJEzRb90z3fjvjUP+9/0rUaBncbu/iXbEtWRxD9q4kgKogKsW75P2OuSAts/xMAAAAAAElFTkSuQmCC","width","160"],["alt","Hey Banco","src","data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM0IiBoZWlnaHQ9IjI5IiB2aWV3Qm94PSIwIDAgMTM0IDI5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMjM3Xzc4NSkiPgo8cGF0aCBkPSJNNy4xNTA4IDBWNy40NTEyOUM3LjgyMzk1IDYuNjEwNjggOC42NzkyMSA1LjkzODkgOS42NTAwNyA1LjQ4ODI0QzEwLjYyMDkgNS4wMzc1OCAxMS42ODEyIDQuODIwMTUgMTIuNzQ4NCA0Ljg1MjlDMTMuNjYwMSA0LjgwMDM2IDE0LjU3MjYgNC45NDA1OSAxNS40MjggNS4yNjQ2MUMxNi4yODM0IDUuNTg4NjIgMTcuMDYzMiA2LjA4OTM3IDE3LjcxNzcgNi43MzUxNUMxOC4zNDIgNy40MTg1MSAxOC44MjQgOC4yMjI1NiAxOS4xMzQ5IDkuMDk5MTdDMTkuNDQ1OSA5Ljk3NTc5IDE5LjU3OTMgMTAuOTA2OSAxOS41MjczIDExLjgzNzFWMjMuNzM4MkgxMC41NzA2VjEyLjgxODJDMTAuNjA2IDEyLjIyMzkgMTAuNDQzOCAxMS42MzQ4IDEwLjExMDEgMTEuMTQ1QzkuOTUwODQgMTAuOTQ0NSA5Ljc0NjY0IDEwLjc4NTYgOS41MTQ1IDEwLjY4MTVDOS4yODIzNyAxMC41NzczIDkuMDI5MDYgMTAuNTMxMSA4Ljc3NTcgMTAuNTQ2NUM4LjE2Mjk0IDEwLjU3NjYgNy41ODMyMyAxMC44MzcyIDcuMTQ5NjcgMTEuMjc3NFYyMy43MzgySC0wLjAwMTk1MzEyVjBINy4xNTA4WiIgZmlsbD0iIzk3OTc5NyIvPgo8cGF0aCBkPSJNNDcuNjc3MSA1LjAxMjA3TDQ5LjkwMTEgMTAuMDA1NUw1Mi4wMzI3IDUuMDEyMDdINjEuMjM0OUw1MS4yNTAxIDI4Ljk5NjlINDAuOTQzM0w0NC43NDcxIDE5Ljg4MTVMMzguMjQ0MSA1LjAwOTc3TDQ3LjY3NzEgNS4wMTIwN1oiIGZpbGw9IiM5Nzk3OTciLz4KPHBhdGggZD0iTTU3LjM2NDEgMTkuNzY3NkM1Ny4zNDAzIDE5LjA0MDEgNTcuNDcxMiAxOC4zMTU5IDU3Ljc0ODEgMTcuNjQ0M0M1OC4wMTE2IDE2Ljk5NDQgNTguMzkzNiAxNi40MDA4IDU4Ljg3NDEgMTUuODk0NkM1OS4zNDc2IDE1LjM5ODMgNTkuOTEzMiAxNS4wMDIgNjAuNTM4NCAxNC43Mjg1QzYxLjE3MTUgMTQuNDQ4NSA2MS44NTY4IDE0LjMxMDYgNjIuNTQ3MyAxNC4zMjQyQzYzLjIzMDUgMTQuMzA0NiA2My45MDk2IDE0LjQzNjUgNjQuNTM3NCAxNC43MTA1QzY1LjE2NTIgMTQuOTg0NSA2NS43MjY1IDE1LjM5NDEgNjYuMTgyMyAxNS45MTA2QzY3LjE1NjIgMTcuMDIwNSA2Ny42Njc3IDE4LjQ3MDMgNjcuNjA4OSAxOS45NTQ5QzY3LjU3NzEgMjIuMTA3OSA2Ni43MjUzIDI0LjE2NDkgNjUuMjMxOSAyNS42OTUzQzYzLjY4MDYgMjcuNDI0NyA2MS41OTA4IDI4LjU2MTMgNTkuMzEyMSAyOC45MTVMNTkuMDM2MyAyOC43MTI4QzU5LjM3ODYgMjguNTEyIDU5LjY5MzIgMjguMjY2MiA1OS45NzIgMjcuOTgxOEM2MC4yNTQzIDI3LjY5NjcgNjAuNTAxNSAyNy4zNzggNjAuNzA4NCAyNy4wMzI3QzYwLjkxNTQgMjYuNjg0OSA2MS4wODI3IDI2LjMxNDQgNjEuMjA3MyAyNS45MjgzQzYxLjMzNCAyNS41NDAyIDYxLjQxMzggMjUuMTM3OCA2MS40NDQ5IDI0LjczMDJDNTguNzI1MSAyMy45MDEgNTcuMzY1MiAyMi4yNDY4IDU3LjM2NTIgMTkuNzY3NiIgZmlsbD0iIzk3OTc5NyIvPgo8cGF0aCBkPSJNNDAuMTEyNiAxNC45ODc3QzQwLjE0NDQgMTMuMDg3OSAzOS43MDY5IDExLjIxMDMgMzguODQwMiA5LjUyNTkyQzM4LjA0NiA3Ljk3Mzk5IDM2LjgwNDkgNi43MDQwMiAzNS4yODE4IDUuODg0OEMzMy43MDE0IDUuMDMyMDYgMzEuOTMzNiA0LjU5OTgzIDMwLjE0MzYgNC42Mjg0OEMyOC4zODYyIDQuNTk4MTEgMjYuNjUgNS4wMjA5NiAyNS4wOTc3IDUuODU3NDFDMjMuNjYwNCA2LjYzMTcgMjIuNDczMiA3LjgwOTI3IDIxLjY3NzkgOS4yNDk1MkMyMC44NTU5IDEwLjc1MDMgMjAuNDM4IDEyLjQ0NDIgMjAuNDY2MyAxNC4xNjA4QzIwLjQ1MDkgMTUuMDk0NSAyMC41NTkyIDE2LjAyNiAyMC43ODgzIDE2LjkzMDRDMjEuMDAyOSAxNy43NzM4IDIxLjMzNTkgMTguNTgxNiAyMS43NzcgMTkuMzI4OUMyMi4yMTI2IDIwLjA2MTUgMjIuNzQ5NSAyMC43MjcgMjMuMzcxNSAyMS4zMDQ4QzI0LjAxMjUgMjEuODk5MSAyNC43MzI3IDIyLjM5ODkgMjUuNTExIDIyLjc4OTZDMjYuMzQxOCAyMy4yMDYxIDI3LjIyIDIzLjUxNzIgMjguMTI1NyAyMy43MTU4QzI5LjExNTUgMjMuOTMyOSAzMC4xMjY1IDI0LjAzNDkgMzEuMTM5MSAyNC4wMTk2QzMyLjg4NTYgMjQuMDUyNSAzNC42MTk4IDIzLjcxNjEgMzYuMjMxMSAyMy4wMzE3QzM3Ljc2MzIgMjIuMzMyNyAzOS4wOTM1IDIxLjI0OCA0MC4wOTU3IDE5Ljg4MDZWMTYuNTk4MUMzOS43OTI0IDE2LjkyNTEgMzkuNDUyMiAxNy4yMTQ5IDM5LjA4MjMgMTcuNDYxNUMzOC42OTk1IDE3LjcxOCAzOC4yOTA3IDE3LjkzMjEgMzcuODYyOCAxOC4xQzM3LjQxMzQgMTguMjc1NCAzNi45NDkgMTguNDA4IDM2LjQ3NTUgMTguNDk2M0MzNS45ODUgMTguNTg5NyAzNS40ODcgMTguNjM2NyAzNC45ODc5IDE4LjYzNjdDMzQuNDcyMSAxOC42NDAyIDMzLjk1ODQgMTguNTY5NSAzMy40NjIxIDE4LjQyNjZDMzIuOTk3NiAxOC4yOTE2IDMyLjU1NTQgMTguMDg3MiAzMi4xNTAzIDE3LjgyMDFDMzEuNzUzOCAxNy41NTczIDMxLjQwMTggMTcuMjMxNCAzMS4xMDc1IDE2Ljg1NUMzMC44MDk2IDE2LjQ3MzggMzAuNTc2MyAxNi4wNDUgMzAuNDE3MiAxNS41ODYxSDQwLjExMDRMNDAuMTEyNiAxNC45ODc3Wk0yMy44OTA2IDEyLjMxMTZWMTIuMTMyM0MyMy44NjMzIDExLjUxMTkgMjQuMDUyNyAxMC45MDE1IDI0LjQyNTUgMTAuNDA4OEMyNC41Nzc4IDEwLjE5MzUgMjQuNzc4NyAxMC4wMTgzIDI1LjAxMTUgOS44OTc5QzI1LjI0NDIgOS43Nzc0OCAyNS41MDIgOS43MTUzIDI1Ljc2MzIgOS43MTY2NUMyNi4wNDA1IDkuNzA4MzYgMjYuMzE1NyA5Ljc2NzUyIDI2LjU2NTkgOS44ODkxMUMyNi44MTYxIDEwLjAxMDcgMjcuMDMzOSAxMC4xOTEyIDI3LjIwMTIgMTAuNDE1NkMyNy41OTAyIDEwLjk2NzMgMjcuNzk0MyAxMS42MzEyIDI3Ljc4MzQgMTIuMzA5M0wyMy44OTA2IDEyLjMxMTZaTTMwLjA2NDggMTIuMzExNlYxMi4xODZDMzAuMDU2IDExLjk1OTIgMzAuMDkzMyAxMS43MzMgMzAuMTc0MyAxMS41MjE0QzMwLjI1NTIgMTEuMzA5OCAzMC4zNzgyIDExLjExNzMgMzAuNTM1NSAxMC45NTU5QzMwLjY4NzIgMTAuNzk1IDMwLjg3MDMgMTAuNjY4IDMxLjA3MzEgMTAuNTgzMUMzMS4yNzU5IDEwLjQ5ODEgMzEuNDk0IDEwLjQ1NyAzMS43MTMzIDEwLjQ2MjVDMzEuOTQ2OCAxMC40NTIyIDMyLjE3OTkgMTAuNDkxMSAzMi4zOTc3IDEwLjU3NjhDMzIuNjE1NiAxMC42NjI1IDMyLjgxMzUgMTAuNzkzMiAzMi45NzkxIDEwLjk2MDVDMzMuMzExMyAxMS4zMjkxIDMzLjQ5NDIgMTEuODExMSAzMy40OTE0IDEyLjMxMDVMMzAuMDY0OCAxMi4zMTE2WiIgZmlsbD0iIzk3OTc5NyIvPgo8cGF0aCBkPSJNODIuOTYwMiAxOS4wMzE3QzgyLjk2MDIgMjIuMjM2NiA4MS4yODY5IDI0LjM5OTggNzguNTgwOSAyNC4zOTk4Qzc3LjkxNzIgMjQuNDQxOCA3Ny4yNTUzIDI0LjI5MDcgNzYuNjczNCAyMy45NjQxQzc2LjA5MTUgMjMuNjM3NSA3NS42MTM3IDIzLjE0OTEgNzUuMjk2MiAyMi41NTY0VjI0LjE5MDhINzMuNzA1MVY5LjMxNDQ1SDc1LjI5NjJWMTUuMzQ4NEM3NS41OTM4IDE0Ljc2MTkgNzYuMDUyOCAxNC4yNzU3IDc2LjYxNzQgMTMuOTQ4NUM3Ny4xODIgMTMuNjIxMyA3Ny44MjgxIDEzLjQ2NzIgNzguNDc3MyAxMy41MDVDODEuMDM3OSAxMy41MDUgODIuOTYwMiAxNS42MjEzIDgyLjk2MDIgMTkuMDMxN1pNODEuMzcwMiAxOS4xMzY5QzgxLjM3MDIgMTYuODMyIDgwLjM3ODEgMTQuODgzNiA3OC4yNzEyIDE0Ljg4MzZDNzYuMzA4NSAxNC44ODM2IDc1LjI5NjIgMTYuNDEyOSA3NS4yOTYyIDE4Ljg4MUM3NS4yOTYyIDIxLjUyMTcgNzYuNDEyMSAyMy4wMjkyIDc4LjM1MzQgMjMuMDI5MkM4MC4zNzcgMjMuMDM4NCA4MS4zNjkxIDIxLjQ0NjMgODEuMzY5MSAxOS4xNDZMODEuMzcwMiAxOS4xMzY5WiIgZmlsbD0iIzk3OTc5NyIvPgo8cGF0aCBkPSJNOTQuODM1NiAxNi44NzgxVjI0LjE4NzdIOTMuMjg2MlYyMi4yMzkyQzkyLjk0NjUgMjIuOTA4OCA5Mi40MjY2IDIzLjQ2NyA5MS43ODY4IDIzLjg0OTFDOTEuMTQ3MSAyNC4yMzEyIDkwLjQxMzYgMjQuNDIxNSA4OS42NzE1IDI0LjM5NzlDODcuODEyNCAyNC4zOTc5IDg2LjI4MzIgMjMuMzcgODYuMjgzMiAyMS40MjgzQzg2LjI4MzIgMTkuNTQyNyA4Ny41ODUgMTguNzI2IDkwLjM3MzEgMTguMzA2OEM5Mi4zMzU4IDE3Ljk5MjggOTMuMjg2MiAxNy44MDQzIDkzLjI4NjIgMTYuNjkzQzkzLjI4NjIgMTUuNjIzOSA5Mi4zMTU1IDE0Ljg0OTYgOTAuOTMxNiAxNC44NDk2QzkwLjU5MzggMTQuODExNiA5MC4yNTIgMTQuODQ3OSA4OS45MjkzIDE0Ljk1NkM4OS42MDY2IDE1LjA2NDEgODkuMzEwNyAxNS4yNDE1IDg5LjA2MTcgMTUuNDc2Qzg4LjgxMjcgMTUuNzEwNiA4OC42MTY2IDE1Ljk5NjggODguNDg2NSAxNi4zMTUyQzg4LjM1NjQgMTYuNjMzNiA4OC4yOTU0IDE2Ljk3NjggODguMzA3OCAxNy4zMjEySDg2Ljc1ODRDODYuODQwNiAxNS4yNjU0IDg4LjA4MDQgMTMuNTI5MyA5MC45NzIxIDEzLjUyOTNDOTMuMTQ2NSAxMy41MjU5IDk0LjgzNTYgMTQuNjM2IDk0LjgzNTYgMTYuODc4MVpNOTMuMjg3MyAxOS41MzgxVjE4LjY1ODZDOTIuNDYxNiAxOS4wNjg3IDkxLjU3NTQgMTkuMzM4OCA5MC42NjM2IDE5LjQ1ODFDODguODg2NyAxOS43OTI4IDg3Ljg1NDEgMjAuMjMzNiA4Ny44NTQxIDIxLjQyNzJDODcuODU0MSAyMi42MDAxIDg4Ljg0NSAyMy4xMDM4IDg5Ljk4MTIgMjMuMTAzOEM5MC40MzUzIDIzLjExMDkgOTAuODg1OCAyMy4wMjE4IDkxLjMwNDEgMjIuODQyM0M5MS43MjIzIDIyLjY2MjcgOTIuMDk5MSAyMi4zOTY3IDkyLjQxMDIgMjIuMDYxMUM5Mi43MjEzIDIxLjcyNTUgOTIuOTYgMjEuMzI3OCA5My4xMTEgMjAuODkzNEM5My4yNjIxIDIwLjQ1ODkgOTMuMzIyMSAxOS45OTc0IDkzLjI4NzMgMTkuNTM4MVoiIGZpbGw9IiM5Nzk3OTciLz4KPHBhdGggZD0iTTEwNy44MDcgMTcuNTA2OFYyNC4xOTA1SDEwNi4xNzZWMTguMDkzOEMxMDYuMTc2IDE1Ljg3MjMgMTA1LjYxMyAxNC44NjcyIDEwNC4xOTMgMTQuODY3MkMxMDIuMzkxIDE0Ljg2NzIgMTAwLjYxOCAxNy4xMjk4IDEwMC42MTggMjAuOTQzNFYyNC4xOTA1SDk5LjAyNzNWMTMuNzE0OUgxMDAuNjE4VjE3LjAwNDJDMTAxLjIzOCAxNS4wNzc0IDEwMi4zOTUgMTMuNTA1OSAxMDQuNjA1IDEzLjUwNTlDMTA2LjYxIDEzLjUwNDcgMTA3LjgwNyAxNC43ODI4IDEwNy44MDcgMTcuNTA2OFoiIGZpbGw9IiM5Nzk3OTciLz4KPHBhdGggZD0iTTExNi4zNTkgMTQuODg4OUMxMTQuMjcyIDE0Ljg4ODkgMTEzLjA1NCAxNi43NTQgMTEzLjA1NCAxOC45NzQzQzExMy4wNTQgMjEuMzYyNSAxMTQuNDE4IDIzLjAzOTIgMTE2LjU0NSAyMy4wMzkyQzExNy4yMjEgMjMuMDg5NiAxMTcuODkgMjIuODczOCAxMTguNDEzIDIyLjQzNjdDMTE4LjkzNyAyMS45OTk2IDExOS4yNzQgMjEuMzc0NyAxMTkuMzU0IDIwLjY5MjFIMTIwLjkyNEMxMjAuODA1IDIxLjc2NjkgMTIwLjI4IDIyLjc1MzIgMTE5LjQ2IDIzLjQ0NDVDMTE4LjY0IDI0LjEzNTggMTE3LjU4OCAyNC40Nzg1IDExNi41MjUgMjQuNDAwNkMxMTMuMjU5IDI0LjQwMDYgMTExLjQ2MyAyMS45NDk2IDExMS40NjMgMTguOTUyNkMxMTEuNDYzIDE1Ljk1NTYgMTEzLjMyMiAxMy41MjYzIDExNi4zMzkgMTMuNTI2M0MxMTcuNDMgMTMuNDU1NCAxMTguNTA2IDEzLjgxOCAxMTkuMzM5IDE0LjUzNzRDMTIwLjE3MiAxNS4yNTY4IDEyMC42OTYgMTYuMjc2NyAxMjAuOCAxNy4zODFIMTE5LjIzQzExOS4xNTcgMTYuNjcxOCAxMTguODE5IDE2LjAxOCAxMTguMjg1IDE1LjU1NDNDMTE3Ljc1IDE1LjA5MDcgMTE3LjA2MSAxNC44NTI2IDExNi4zNTkgMTQuODg4OVoiIGZpbGw9IiM5Nzk3OTciLz4KPHBhdGggZD0iTTEyNC4yMDcgMTguOTczM0MxMjQuMjA3IDE1Ljc4NzkgMTI2LjEwOCAxMy41MjU0IDEyOS4xMDMgMTMuNTI1NEMxMzIuMDk4IDEzLjUyNTQgMTMzLjk5OSAxNS43ODc5IDEzMy45OTkgMTguOTczM0MxMzMuOTk5IDIyLjEzNzEgMTMyLjA5OCAyNC4zOTk3IDEyOS4xMDMgMjQuMzk5N0MxMjYuMTA4IDI0LjM5OTcgMTI0LjIwNyAyMi4xMzcxIDEyNC4yMDcgMTguOTczM1pNMTMyLjQwOCAxOC45NzMzQzEzMi40MDggMTYuNjQ3OSAxMzEuMjMgMTQuODYxNyAxMjkuMTAzIDE0Ljg2MTdDMTI2Ljk3NiAxNC44NjE3IDEyNS43OTggMTYuNjQyMiAxMjUuNzk4IDE4Ljk3MzNDMTI1Ljc5OCAyMS4yNzgyIDEyNi45NzYgMjMuMDU4OCAxMjkuMTAzIDIzLjA1ODhDMTMxLjIzIDIzLjA1ODggMTMyLjQwOCAyMS4yNzgyIDEzMi40MDggMTguOTczM1oiIGZpbGw9IiM5Nzk3OTciLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yMzdfNzg1Ij4KPHJlY3Qgd2lkdGg9IjEzNCIgaGVpZ2h0PSIyOSIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K","width","160"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.YNc(3,g,1,0,"img",3),i.YNc(4,m,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i.TgZ(8,"h2"),i._uU(9),i.qZA(),i.qZA(),i.TgZ(10,"label"),i._uU(11),i.qZA(),i._UZ(12,"input",7),i.TgZ(13,"label"),i._uU(14,"Contrase\xf1a"),i.qZA(),i.TgZ(15,"div",8),i.TgZ(16,"input",9),i.NdJ("keyup.enter",function(){return e.Authenticate()}),i.qZA(),i.TgZ(17,"span",10),i.NdJ("click",function(){return e.showPassword()}),i._uU(18,"Mostrar"),i.qZA(),i.qZA(),i.TgZ(19,"span",11),i._uU(20),i.qZA(),i.TgZ(21,"button",12),i.NdJ("click",function(){return e.Authenticate()}),i._uU(22,"Ingresar"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.MAs(5);i.s9C("id",e.nxId),i.xp6(3),i.Q6J("ngIf","banregio"==e._banca)("ngIfElse",t),i.xp6(6),i.Oqu(e.title),i.xp6(2),i.Oqu(e.usernameLabel),i.xp6(1),i.s9C("placeholder",e.usernamePlaceholder),i.Q6J("formControl",e.username),i.xp6(4),i.Q6J("type",e.isHide?"password":"text")("formControl",e.password),i.xp6(4),i.Oqu(e.errorMessage.message)}},directives:[r.O5,o.Fj,o.JJ,o.oH],encapsulation:2}),t})(),E=(()=>{class t{constructor(t,e){this.route=t,this.logoutEvent=new i.vpe,this.nxId="nx-profile-component",this.auth=!1,this.returnUrl="",this.errMsg="",this.username=new o.NI(""),this.password=new o.NI(""),this.isHide=!0,this.showMenu=!1,this.alias="",e.IsAuth()&&(this.auth=!0),this.authService=e}ngOnInit(){var t;this.errMsg="",this.returnUrl=(null===(t=this.route)||void 0===t?void 0:t.snapshot.queryParams.returnUrl)||"/";const e=this.authService.getUser();e&&(this.alias=e.nombre.substring(0,2),this.alias=this.alias.toUpperCase())}logOut(){this.logoutEvent.emit("logout")}toggleMenu(){this.showMenu=!this.showMenu}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(l.gz),i.Y36(y))},t.\u0275cmp=i.Xpm({type:t,selectors:[["nx-profile"]],inputs:{nxId:"nxId"},outputs:{logoutEvent:"logoutEvent"},decls:5,vars:3,consts:[[1,"oss-profile",3,"id"],[1,"icon","ion-android-arrow-dropdown",3,"click"],["class","oss-profile-menu",4,"ngIf"],[1,"oss-profile-menu"],[3,"click"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"h2"),i._uU(2),i.qZA(),i.TgZ(3,"i",1),i.NdJ("click",function(){return e.toggleMenu()}),i.qZA(),i.YNc(4,_,4,0,"div",2),i.qZA()),2&t&&(i.s9C("id",e.nxId),i.xp6(2),i.Oqu(e.alias),i.xp6(2),i.Q6J("ngIf",e.showMenu))},directives:[r.O5],encapsulation:2}),t})(),A=(()=>{class t{constructor(t){this.http=t}Log(t){return this.http.post("/log",t)}getLogEntries(){return this.http.get("/datogeografico/datosgeograficos/catalogos/entidades")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class M{constructor(t,e,n,i,r){this.eventId=t,this.additionalInfo=e,this.applicationId=n,this.userId=i}}let T=(()=>{class t{constructor(t){this._injector=t}handleError(t){const e=this._injector.get(A),n=this._injector.get(y);var i=new M("error",t.toString(),1,n.getUserId(),new Date);throw e.Log(i),t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[y,A,b,w,x,v,a,{provide:s.TP,useClass:C,multi:!0},{provide:i.qLn,useClass:T},{provide:"config",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.ez,s.JF,o.UX]]}),t})()},3815:function(t,e,n){var i;t=n.nmd(t),(function(){var r="Expected a function",s="__lodash_placeholder__",o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",h="[object Error]",d="[object Function]",f="[object GeneratorFunction]",p="[object Map]",g="[object Number]",m="[object Object]",_="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",k="[object Float64Array]",E="[object Int8Array]",A="[object Int16Array]",M="[object Int32Array]",T="[object Uint8Array]",O="[object Uint16Array]",D="[object Uint32Array]",I=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,P=RegExp(N.source),F=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(H.source),G=/^\s+/,Q=/\s/,W=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,J=/[()=,{}\[\]\/\s]/,tt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,rt=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="["+dt+"]",pt="["+ht+"]",gt="\\d+",mt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+dt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",yt="\\ud83c[\\udffb-\\udfff]",vt="[^\\ud800-\\udfff]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+mt+"|"+_t+")",St="(?:"+xt+"|"+_t+")",kt="(?:"+pt+"|"+yt+")?",Et="[\\ufe0e\\ufe0f]?"+kt+"(?:\\u200d(?:"+[vt,bt,wt].join("|")+")[\\ufe0e\\ufe0f]?"+kt+")*",At="(?:"+["[\\u2700-\\u27bf]",bt,wt].join("|")+")"+Et,Mt="(?:"+[vt+pt+"?",pt,bt,wt,"[\\ud800-\\udfff]"].join("|")+")",Tt=RegExp("['\u2019]","g"),Ot=RegExp(pt,"g"),Dt=RegExp(yt+"(?="+yt+")|"+Mt+Et,"g"),It=RegExp([xt+"?"+mt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ft,xt,"$"].join("|")+")",St+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ft,xt+Ct,"$"].join("|")+")",xt+"?"+Ct+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",xt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,At].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Pt={};Pt[S]=Pt[k]=Pt[E]=Pt[A]=Pt[M]=Pt[T]=Pt["[object Uint8ClampedArray]"]=Pt[O]=Pt[D]=!0,Pt[a]=Pt[l]=Pt[x]=Pt[c]=Pt[C]=Pt[u]=Pt[h]=Pt[d]=Pt[p]=Pt[g]=Pt[m]=Pt[_]=Pt[y]=Pt[v]=Pt[w]=!1;var Ft={};Ft[a]=Ft[l]=Ft[x]=Ft[C]=Ft[c]=Ft[u]=Ft[S]=Ft[k]=Ft[E]=Ft[A]=Ft[M]=Ft[p]=Ft[g]=Ft[m]=Ft[_]=Ft[y]=Ft[v]=Ft[b]=Ft[T]=Ft["[object Uint8ClampedArray]"]=Ft[O]=Ft[D]=!0,Ft[h]=Ft[d]=Ft[w]=!1;var zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Ut=parseInt,Bt="object"==typeof global&&global&&global.Object===Object&&global,qt="object"==typeof self&&self&&self.Object===Object&&self,Yt=Bt||qt||Function("return this")(),Ht=e&&!e.nodeType&&e,Zt=Ht&&t&&!t.nodeType&&t,Gt=Zt&&Zt.exports===Ht,Qt=Gt&&Bt.process,Wt=function(){try{return Zt&&Zt.require&&Zt.require("util").types||Qt&&Qt.binding&&Qt.binding("util")}catch(t){}}(),Kt=Wt&&Wt.isArrayBuffer,$t=Wt&&Wt.isDate,Xt=Wt&&Wt.isMap,Jt=Wt&&Wt.isRegExp,te=Wt&&Wt.isSet,ee=Wt&&Wt.isTypedArray;function ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ie(t,e,n,i){for(var r=-1,s=null==t?0:t.length;++r<s;){var o=t[r];e(i,o,n(o),t)}return i}function re(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function se(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function oe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function ae(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++n<i;){var o=t[n];e(o,n,t)&&(s[r++]=o)}return s}function le(t,e){return!(null==t||!t.length)&&ye(t,e,0)>-1}function ce(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function ue(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function he(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function de(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r<s;)n=e(n,t[r],r,t);return n}function fe(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function pe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var ge=xe("length");function me(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function _e(t,e,n,i){for(var r=t.length,s=n+(i?1:-1);i?s--:++s<r;)if(e(t[s],s,t))return s;return-1}function ye(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):_e(t,be,n)}function ve(t,e,n,i){for(var r=n-1,s=t.length;++r<s;)if(i(t[r],e))return r;return-1}function be(t){return t!=t}function we(t,e){var n=null==t?0:t.length;return n?ke(t,e)/n:NaN}function xe(t){return function(e){return null==e?void 0:e[t]}}function Ce(t){return function(e){return null==t?void 0:t[e]}}function Se(t,e,n,i,r){return r(t,function(t,r,s){n=i?(i=!1,t):e(n,t,r,s)}),n}function ke(t,e){for(var n,i=-1,r=t.length;++i<r;){var s=e(t[i]);void 0!==s&&(n=void 0===n?s:n+s)}return n}function Ee(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Ae(t){return t?t.slice(0,He(t)+1).replace(G,""):t}function Me(t){return function(e){return t(e)}}function Te(t,e){return ue(e,function(e){return t[e]})}function Oe(t,e){return t.has(e)}function De(t,e){for(var n=-1,i=t.length;++n<i&&ye(e,t[n],0)>-1;);return n}function Ie(t,e){for(var n=t.length;n--&&ye(e,t[n],0)>-1;);return n}function Re(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}var Le=Ce({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Ne=Ce({"&":"&","<":"<",">":">",'"':""","'":"'"});function je(t){return"\\"+zt[t]}function Pe(t){return Rt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function ze(t,e){return function(n){return t(e(n))}}function Ve(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[r++]=n)}return o}function Ue(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Be(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function qe(t){return Pe(t)?function(t){for(var e=Dt.lastIndex=0;Dt.test(t);)++e;return e}(t):ge(t)}function Ye(t){return Pe(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.split("")}(t)}function He(t){for(var e=t.length;e--&&Q.test(t.charAt(e)););return e}var Ze=Ce({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ge=function t(e){var n,i=(e=null==e?Yt:Ge.defaults(Yt.Object(),e,Ge.pick(Yt,Nt))).Array,Q=e.Date,ht=e.Error,dt=e.Function,ft=e.Math,pt=e.Object,gt=e.RegExp,mt=e.String,_t=e.TypeError,yt=i.prototype,vt=pt.prototype,bt=e["__core-js_shared__"],wt=dt.prototype.toString,xt=vt.hasOwnProperty,Ct=0,St=(n=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",kt=vt.toString,Et=wt.call(pt),At=Yt._,Mt=gt("^"+wt.call(xt).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=Gt?e.Buffer:void 0,Rt=e.Symbol,zt=e.Uint8Array,Bt=Dt?Dt.allocUnsafe:void 0,qt=ze(pt.getPrototypeOf,pt),Ht=pt.create,Zt=vt.propertyIsEnumerable,Qt=yt.splice,Wt=Rt?Rt.isConcatSpreadable:void 0,ge=Rt?Rt.iterator:void 0,Ce=Rt?Rt.toStringTag:void 0,Qe=function(){try{var t=Xr(pt,"defineProperty");return t({},"",{}),t}catch(e){}}(),We=e.clearTimeout!==Yt.clearTimeout&&e.clearTimeout,Ke=Q&&Q.now!==Yt.Date.now&&Q.now,$e=e.setTimeout!==Yt.setTimeout&&e.setTimeout,Xe=ft.ceil,Je=ft.floor,tn=pt.getOwnPropertySymbols,en=Dt?Dt.isBuffer:void 0,nn=e.isFinite,rn=yt.join,sn=ze(pt.keys,pt),on=ft.max,an=ft.min,ln=Q.now,cn=e.parseInt,un=ft.random,hn=yt.reverse,dn=Xr(e,"DataView"),fn=Xr(e,"Map"),pn=Xr(e,"Promise"),gn=Xr(e,"Set"),mn=Xr(e,"WeakMap"),_n=Xr(pt,"create"),yn=mn&&new mn,vn={},bn=As(dn),wn=As(fn),xn=As(pn),Cn=As(gn),Sn=As(mn),kn=Rt?Rt.prototype:void 0,En=kn?kn.valueOf:void 0,An=kn?kn.toString:void 0;function Mn(t){if(Ho(t)&&!Lo(t)&&!(t instanceof In)){if(t instanceof Dn)return t;if(xt.call(t,"__wrapped__"))return Ms(t)}return new Dn(t)}var Tn=function(){function t(){}return function(e){if(!Yo(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Dn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ln(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Nn;++e<n;)this.add(t[e])}function Pn(t){var e=this.__data__=new Ln(t);this.size=e.size}function Fn(t,e){var n=Lo(t),i=!n&&Ro(t),r=!n&&!i&&Fo(t),s=!n&&!i&&!r&&Jo(t),o=n||i||r||s,a=o?Ee(t.length,mt):[],l=a.length;for(var c in t)!e&&!xt.call(t,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ss(c,l))||a.push(c);return a}function zn(t){var e=t.length;return e?t[Ni(0,e-1)]:void 0}function Vn(t,e){return xs(mr(t),Wn(e,0,t.length))}function Un(t){return xs(mr(t))}function Bn(t,e,n){(void 0!==n&&!Oo(t[e],n)||void 0===n&&!(e in t))&&Gn(t,e,n)}function qn(t,e,n){var i=t[e];xt.call(t,e)&&Oo(i,n)&&(void 0!==n||e in t)||Gn(t,e,n)}function Yn(t,e){for(var n=t.length;n--;)if(Oo(t[n][0],e))return n;return-1}function Hn(t,e,n,i){return ti(t,function(t,r,s){e(i,t,n(t),s)}),i}function Zn(t,e){return t&&_r(e,wa(e),t)}function Gn(t,e,n){"__proto__"==e&&Qe?Qe(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Qn(t,e){for(var n=-1,r=e.length,s=i(r),o=null==t;++n<r;)s[n]=o?void 0:ma(t,e[n]);return s}function Wn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Kn(t,e,n,i,r,s){var o,l=1&e,h=2&e,w=4&e;if(n&&(o=r?n(t,i,r,s):n(t)),void 0!==o)return o;if(!Yo(t))return t;var I=Lo(t);if(I){if(o=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&xt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return mr(t,o)}else{var R=es(t),L=R==d||R==f;if(Fo(t))return ur(t,l);if(R==m||R==a||L&&!r){if(o=h||L?{}:is(t),!l)return h?function(t,e){return _r(t,ts(t),e)}(t,function(t,e){return t&&_r(e,xa(e),t)}(o,t)):function(t,e){return _r(t,Jr(t),e)}(t,Zn(o,t))}else{if(!Ft[R])return r?t:{};o=function(t,e,n){var i=t.constructor;switch(e){case x:return hr(t);case c:case u:return new i(+t);case C:return function(t,e){var n=e?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case k:case E:case A:case M:case T:case"[object Uint8ClampedArray]":case O:case D:return dr(t,n);case p:return new i;case g:case v:return new i(t);case _:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new i;case b:return En?pt(En.call(t)):{}}}(t,R,l)}}s||(s=new Pn);var N=s.get(t);if(N)return N;s.set(t,o),Ko(t)?t.forEach(function(i){o.add(Kn(i,e,n,i,t,s))}):Zo(t)&&t.forEach(function(i,r){o.set(r,Kn(i,e,n,r,t,s))});var j=I?void 0:(w?h?Hr:Yr:h?xa:wa)(t);return re(j||t,function(i,r){j&&(i=t[r=i]),qn(o,r,Kn(i,e,n,r,t,s))}),o}function $n(t,e,n){var i=n.length;if(null==t)return!i;for(t=pt(t);i--;){var r=n[i],s=t[r];if(void 0===s&&!(r in t)||!(0,e[r])(s))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new _t(r);return ys(function(){t.apply(void 0,n)},e)}function Jn(t,e,n,i){var r=-1,s=le,o=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=ue(e,Me(n))),i?(s=ce,o=!1):e.length>=200&&(s=Oe,o=!1,e=new jn(e));t:for(;++r<a;){var u=t[r],h=null==n?u:n(u);if(u=i||0!==u?u:0,o&&h==h){for(var d=c;d--;)if(e[d]===h)continue t;l.push(u)}else s(e,h,i)||l.push(u)}return l}Mn.templateSettings={escape:z,evaluate:V,interpolate:U,variable:"",imports:{_:Mn}},(Mn.prototype=On.prototype).constructor=Mn,(Dn.prototype=Tn(On.prototype)).constructor=Dn,(In.prototype=Tn(On.prototype)).constructor=In,Rn.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},Rn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Rn.prototype.get=function(t){var e=this.__data__;if(_n){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(e,t)?e[t]:void 0},Rn.prototype.has=function(t){var e=this.__data__;return _n?void 0!==e[t]:xt.call(e,t)},Rn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_n&&void 0===e?"__lodash_hash_undefined__":e,this},Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(t){var e=this.__data__,n=Yn(e,t);return!(n<0||(n==e.length-1?e.pop():Qt.call(e,n,1),--this.size,0))},Ln.prototype.get=function(t){var e=this.__data__,n=Yn(e,t);return n<0?void 0:e[n][1]},Ln.prototype.has=function(t){return Yn(this.__data__,t)>-1},Ln.prototype.set=function(t,e){var n=this.__data__,i=Yn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(fn||Ln),string:new Rn}},Nn.prototype.delete=function(t){var e=Kr(this,t).delete(t);return this.size-=e?1:0,e},Nn.prototype.get=function(t){return Kr(this,t).get(t)},Nn.prototype.has=function(t){return Kr(this,t).has(t)},Nn.prototype.set=function(t,e){var n=Kr(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jn.prototype.has=function(t){return this.__data__.has(t)},Pn.prototype.clear=function(){this.__data__=new Ln,this.size=0},Pn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Pn.prototype.get=function(t){return this.__data__.get(t)},Pn.prototype.has=function(t){return this.__data__.has(t)},Pn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ln){var i=n.__data__;if(!fn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Nn(i)}return n.set(t,e),this.size=n.size,this};var ti=br(li),ei=br(ci,!0);function ni(t,e){var n=!0;return ti(t,function(t,i,r){return n=!!e(t,i,r)}),n}function ii(t,e,n){for(var i=-1,r=t.length;++i<r;){var s=t[i],o=e(s);if(null!=o&&(void 0===a?o==o&&!Xo(o):n(o,a)))var a=o,l=s}return l}function ri(t,e){var n=[];return ti(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function si(t,e,n,i,r){var s=-1,o=t.length;for(n||(n=rs),r||(r=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?si(a,e-1,n,i,r):he(r,a):i||(r[r.length]=a)}return r}var oi=wr(),ai=wr(!0);function li(t,e){return t&&oi(t,e,wa)}function ci(t,e){return t&&ai(t,e,wa)}function ui(t,e){return ae(e,function(e){return Uo(t[e])})}function hi(t,e){for(var n=0,i=(e=or(e,t)).length;null!=t&&n<i;)t=t[Es(e[n++])];return n&&n==i?t:void 0}function di(t,e,n){var i=e(t);return Lo(t)?i:he(i,n(t))}function fi(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ce&&Ce in pt(t)?function(t){var e=xt.call(t,Ce),n=t[Ce];try{t[Ce]=void 0;var i=!0}catch(s){}var r=kt.call(t);return i&&(e?t[Ce]=n:delete t[Ce]),r}(t):function(t){return kt.call(t)}(t)}function pi(t,e){return t>e}function gi(t,e){return null!=t&&xt.call(t,e)}function mi(t,e){return null!=t&&e in pt(t)}function _i(t,e,n){for(var r=n?ce:le,s=t[0].length,o=t.length,a=o,l=i(o),c=1/0,u=[];a--;){var h=t[a];a&&e&&(h=ue(h,Me(e))),c=an(h.length,c),l[a]=!n&&(e||s>=120&&h.length>=120)?new jn(a&&h):void 0}h=t[0];var d=-1,f=l[0];t:for(;++d<s&&u.length<c;){var p=h[d],g=e?e(p):p;if(p=n||0!==p?p:0,!(f?Oe(f,g):r(u,g,n))){for(a=o;--a;){var m=l[a];if(!(m?Oe(m,g):r(t[a],g,n)))continue t}f&&f.push(g),u.push(p)}}return u}function yi(t,e,n){var i=null==(t=ps(t,e=or(e,t)))?t:t[Es(zs(e))];return null==i?void 0:ne(i,t,n)}function vi(t){return Ho(t)&&fi(t)==a}function bi(t,e,n,i,r){return t===e||(null==t||null==e||!Ho(t)&&!Ho(e)?t!=t&&e!=e:function(t,e,n,i,r,s){var o=Lo(t),d=Lo(e),f=o?l:es(t),w=d?l:es(e),S=(f=f==a?m:f)==m,k=(w=w==a?m:w)==m,E=f==w;if(E&&Fo(t)){if(!Fo(e))return!1;o=!0,S=!1}if(E&&!S)return s||(s=new Pn),o||Jo(t)?Br(t,e,n,i,r,s):function(t,e,n,i,r,s,o){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!s(new zt(t),new zt(e)));case c:case u:case g:return Oo(+t,+e);case h:return t.name==e.name&&t.message==e.message;case _:case v:return t==e+"";case p:var a=Fe;case y:if(a||(a=Ue),t.size!=e.size&&!(1&i))return!1;var l=o.get(t);if(l)return l==e;i|=2,o.set(t,e);var d=Br(a(t),a(e),i,r,s,o);return o.delete(t),d;case b:if(En)return En.call(t)==En.call(e)}return!1}(t,e,f,n,i,r,s);if(!(1&n)){var A=S&&xt.call(t,"__wrapped__"),M=k&&xt.call(e,"__wrapped__");if(A||M){var T=A?t.value():t,O=M?e.value():e;return s||(s=new Pn),r(T,O,n,i,s)}}return!!E&&(s||(s=new Pn),function(t,e,n,i,r,s){var o=1&n,a=Yr(t),l=a.length;if(l!=Yr(e).length&&!o)return!1;for(var c=l;c--;){var u=a[c];if(!(o?u in e:xt.call(e,u)))return!1}var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var f=!0;s.set(t,e),s.set(e,t);for(var p=o;++c<l;){var g=t[u=a[c]],m=e[u];if(i)var _=o?i(m,g,u,e,t,s):i(g,m,u,t,e,s);if(!(void 0===_?g===m||r(g,m,n,i,s):_)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var y=t.constructor,v=e.constructor;y==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(f=!1)}return s.delete(t),s.delete(e),f}(t,e,n,i,r,s))}(t,e,n,i,bi,r))}function wi(t,e,n,i){var r=n.length,s=r,o=!i;if(null==t)return!s;for(t=pt(t);r--;){var a=n[r];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<s;){var l=(a=n[r])[0],c=t[l],u=a[1];if(o&&a[2]){if(void 0===c&&!(l in t))return!1}else{var h=new Pn;if(i)var d=i(c,u,l,t,e,h);if(!(void 0===d?bi(u,c,3,i,h):d))return!1}}return!0}function xi(t){return!(!Yo(t)||(e=t,St&&St in e))&&(Uo(t)?Mt:st).test(As(t));var e}function Ci(t){return"function"==typeof t?t:null==t?Ga:"object"==typeof t?Lo(t)?Mi(t[0],t[1]):Ai(t):nl(t)}function Si(t){if(!us(t))return sn(t);var e=[];for(var n in pt(t))xt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ki(t,e){return t<e}function Ei(t,e){var n=-1,r=jo(t)?i(t.length):[];return ti(t,function(t,i,s){r[++n]=e(t,i,s)}),r}function Ai(t){var e=$r(t);return 1==e.length&&e[0][2]?ds(e[0][0],e[0][1]):function(n){return n===t||wi(n,t,e)}}function Mi(t,e){return as(t)&&hs(e)?ds(Es(t),e):function(n){var i=ma(n,t);return void 0===i&&i===e?_a(n,t):bi(e,i,3)}}function Ti(t,e,n,i,r){t!==e&&oi(e,function(s,o){if(r||(r=new Pn),Yo(s))!function(t,e,n,i,r,s,o){var a=ms(t,n),l=ms(e,n),c=o.get(l);if(c)Bn(t,n,c);else{var u=s?s(a,l,n+"",t,e,o):void 0,h=void 0===u;if(h){var d=Lo(l),f=!d&&Fo(l),p=!d&&!f&&Jo(l);u=l,d||f||p?Lo(a)?u=a:Po(a)?u=mr(a):f?(h=!1,u=ur(l,!0)):p?(h=!1,u=dr(l,!0)):u=[]:Qo(l)||Ro(l)?(u=a,Ro(a)?u=aa(a):Yo(a)&&!Uo(a)||(u=is(l))):h=!1}h&&(o.set(l,u),r(u,l,i,s,o),o.delete(l)),Bn(t,n,u)}}(t,e,o,n,Ti,i,r);else{var a=i?i(ms(t,o),s,o+"",t,e,r):void 0;void 0===a&&(a=s),Bn(t,o,a)}},xa)}function Oi(t,e){var n=t.length;if(n)return ss(e+=e<0?n:0,n)?t[e]:void 0}function Di(t,e,n){e=e.length?ue(e,function(t){return Lo(t)?function(e){return hi(e,1===t.length?t[0]:t)}:t}):[Ga];var i=-1;return e=ue(e,Me(Wr())),function(t,e){var i=t.length;for(t.sort(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,s=e.criteria,o=r.length,a=n.length;++i<o;){var l=fr(r[i],s[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)});i--;)t[i]=t[i].value;return t}(Ei(t,function(t,n,r){return{criteria:ue(e,function(e){return e(t)}),index:++i,value:t}}))}function Ii(t,e,n){for(var i=-1,r=e.length,s={};++i<r;){var o=e[i],a=hi(t,o);n(a,o)&&Vi(s,or(o,t),a)}return s}function Ri(t,e,n,i){var r=i?ve:ye,s=-1,o=e.length,a=t;for(t===e&&(e=mr(e)),n&&(a=ue(t,Me(n)));++s<o;)for(var l=0,c=e[s],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==t&&Qt.call(a,l,1),Qt.call(t,l,1);return t}function Li(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==s){var s=r;ss(r)?Qt.call(t,r,1):Xi(t,r)}}return t}function Ni(t,e){return t+Je(un()*(e-t+1))}function ji(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Je(e/2))&&(t+=t)}while(e);return n}function Pi(t,e){return vs(fs(t,e,Ga),t+"")}function Fi(t){return zn(Oa(t))}function zi(t,e){var n=Oa(t);return xs(n,Wn(e,0,n.length))}function Vi(t,e,n,i){if(!Yo(t))return t;for(var r=-1,s=(e=or(e,t)).length,o=s-1,a=t;null!=a&&++r<s;){var l=Es(e[r]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=o){var u=a[l];void 0===(c=i?i(u,l,a):void 0)&&(c=Yo(u)?u:ss(e[r+1])?[]:{})}qn(a,l,c),a=a[l]}return t}var Ui=yn?function(t,e){return yn.set(t,e),t}:Ga,Bi=Qe?function(t,e){return Qe(t,"toString",{configurable:!0,enumerable:!1,value:Ya(e),writable:!0})}:Ga;function qi(t){return xs(Oa(t))}function Yi(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=i(s);++r<s;)o[r]=t[r+e];return o}function Hi(t,e){var n;return ti(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function Zi(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=t[s];null!==o&&!Xo(o)&&(n?o<=e:o<e)?i=s+1:r=s}return r}return Gi(t,e,Ga,n)}function Gi(t,e,n,i){var r=0,s=null==t?0:t.length;if(0===s)return 0;for(var o=(e=n(e))!=e,a=null===e,l=Xo(e),c=void 0===e;r<s;){var u=Je((r+s)/2),h=n(t[u]),d=void 0!==h,f=null===h,p=h==h,g=Xo(h);if(o)var m=i||p;else m=c?p&&(i||d):a?p&&d&&(i||!f):l?p&&d&&!f&&(i||!g):!f&&!g&&(i?h<=e:h<e);m?r=u+1:s=u}return an(s,4294967294)}function Qi(t,e){for(var n=-1,i=t.length,r=0,s=[];++n<i;){var o=t[n],a=e?e(o):o;if(!n||!Oo(a,l)){var l=a;s[r++]=0===o?0:o}}return s}function Wi(t){return"number"==typeof t?t:Xo(t)?NaN:+t}function Ki(t){if("string"==typeof t)return t;if(Lo(t))return ue(t,Ki)+"";if(Xo(t))return An?An.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $i(t,e,n){var i=-1,r=le,s=t.length,o=!0,a=[],l=a;if(n)o=!1,r=ce;else if(s>=200){var c=e?null:jr(t);if(c)return Ue(c);o=!1,r=Oe,l=new jn}else l=e?[]:a;t:for(;++i<s;){var u=t[i],h=e?e(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),a.push(u)}else r(l,h,n)||(l!==a&&l.push(h),a.push(u))}return a}function Xi(t,e){return null==(t=ps(t,e=or(e,t)))||delete t[Es(zs(e))]}function Ji(t,e,n,i){return Vi(t,e,n(hi(t,e)),i)}function tr(t,e,n,i){for(var r=t.length,s=i?r:-1;(i?s--:++s<r)&&e(t[s],s,t););return n?Yi(t,i?0:s,i?s+1:r):Yi(t,i?s+1:0,i?r:s)}function er(t,e){var n=t;return n instanceof In&&(n=n.value()),de(e,function(t,e){return e.func.apply(e.thisArg,he([t],e.args))},n)}function nr(t,e,n){var r=t.length;if(r<2)return r?$i(t[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=t[s],l=-1;++l<r;)l!=s&&(o[s]=Jn(o[s]||a,t[l],e,n));return $i(si(o,1),e,n)}function ir(t,e,n){for(var i=-1,r=t.length,s=e.length,o={};++i<r;)n(o,t[i],i<s?e[i]:void 0);return o}function rr(t){return Po(t)?t:[]}function sr(t){return"function"==typeof t?t:Ga}function or(t,e){return Lo(t)?t:as(t,e)?[t]:ks(la(t))}var ar=Pi;function lr(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:Yi(t,e,n)}var cr=We||function(t){return Yt.clearTimeout(t)};function ur(t,e){if(e)return t.slice();var n=t.length,i=Bt?Bt(n):new t.constructor(n);return t.copy(i),i}function hr(t){var e=new t.constructor(t.byteLength);return new zt(e).set(new zt(t)),e}function dr(t,e){var n=e?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function fr(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,s=Xo(t),o=void 0!==e,a=null===e,l=e==e,c=Xo(e);if(!a&&!c&&!s&&t>e||s&&o&&l&&!a&&!c||i&&o&&l||!n&&l||!r)return 1;if(!i&&!s&&!c&&t<e||c&&n&&r&&!i&&!s||a&&n&&r||!o&&r||!l)return-1}return 0}function pr(t,e,n,r){for(var s=-1,o=t.length,a=n.length,l=-1,c=e.length,u=on(o-a,0),h=i(c+u),d=!r;++l<c;)h[l]=e[l];for(;++s<a;)(d||s<o)&&(h[n[s]]=t[s]);for(;u--;)h[l++]=t[s++];return h}function gr(t,e,n,r){for(var s=-1,o=t.length,a=-1,l=n.length,c=-1,u=e.length,h=on(o-l,0),d=i(h+u),f=!r;++s<h;)d[s]=t[s];for(var p=s;++c<u;)d[p+c]=e[c];for(;++a<l;)(f||s<o)&&(d[p+n[a]]=t[s++]);return d}function mr(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function _r(t,e,n,i){var r=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),r?Gn(n,a,l):qn(n,a,l)}return n}function yr(t,e){return function(n,i){var r=Lo(n)?ie:Hn,s=e?e():{};return r(n,t,Wr(i,2),s)}}function vr(t){return Pi(function(e,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(r--,s):void 0,o&&os(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),e=pt(e);++i<r;){var a=n[i];a&&t(e,a,i,s)}return e})}function br(t,e){return function(n,i){if(null==n)return n;if(!jo(n))return t(n,i);for(var r=n.length,s=e?r:-1,o=pt(n);(e?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function wr(t){return function(e,n,i){for(var r=-1,s=pt(e),o=i(e),a=o.length;a--;){var l=o[t?a:++r];if(!1===n(s[l],l,s))break}return e}}function xr(t){return function(e){var n=Pe(e=la(e))?Ye(e):void 0,i=n?n[0]:e.charAt(0),r=n?lr(n,1).join(""):e.slice(1);return i[t]()+r}}function Cr(t){return function(e){return de(Ua(Ra(e).replace(Tt,"")),t,"")}}function Sr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Tn(t.prototype),i=t.apply(n,e);return Yo(i)?i:n}}function kr(t){return function(e,n,i){var r=pt(e);if(!jo(e)){var s=Wr(n,3);e=wa(e),n=function(t){return s(r[t],t,r)}}var o=t(e,n,i);return o>-1?r[s?e[o]:o]:void 0}}function Er(t){return qr(function(e){var n=e.length,i=n,s=Dn.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new _t(r);if(s&&!a&&"wrapper"==Gr(o))var a=new Dn([],!0)}for(i=a?i:n;++i<n;){var l=Gr(o=e[i]),c="wrapper"==l?Zr(o):void 0;a=c&&ls(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[Gr(c[0])].apply(a,c[3]):1==o.length&&ls(o)?a[l]():a.thru(o)}return function(){var t=arguments,i=t[0];if(a&&1==t.length&&Lo(i))return a.plant(i).value();for(var r=0,s=n?e[r].apply(this,t):i;++r<n;)s=e[r].call(this,s);return s}})}function Ar(t,e,n,r,s,o,a,l,c,u){var h=128&e,d=1&e,f=2&e,p=24&e,g=512&e,m=f?void 0:Sr(t);return function _(){for(var y=arguments.length,v=i(y),b=y;b--;)v[b]=arguments[b];if(p)var w=Qr(_),x=Re(v,w);if(r&&(v=pr(v,r,s,p)),o&&(v=gr(v,o,a,p)),y-=x,p&&y<u){var C=Ve(v,w);return Lr(t,e,Ar,_.placeholder,n,v,C,l,c,u-y)}var S=d?n:this,k=f?S[t]:t;return y=v.length,l?v=gs(v,l):g&&y>1&&v.reverse(),h&&c<y&&(v.length=c),this&&this!==Yt&&this instanceof _&&(k=m||Sr(k)),k.apply(S,v)}}function Mr(t,e){return function(n,i){return function(t,e,n,i){return li(t,function(t,r,s){e(i,n(t),r,s)}),i}(n,t,e(i),{})}}function Tr(t,e){return function(n,i){var r;if(void 0===n&&void 0===i)return e;if(void 0!==n&&(r=n),void 0!==i){if(void 0===r)return i;"string"==typeof n||"string"==typeof i?(n=Ki(n),i=Ki(i)):(n=Wi(n),i=Wi(i)),r=t(n,i)}return r}}function Or(t){return qr(function(e){return e=ue(e,Me(Wr())),Pi(function(n){var i=this;return t(e,function(t){return ne(t,i,n)})})})}function Dr(t,e){var n=(e=void 0===e?" ":Ki(e)).length;if(n<2)return n?ji(e,t):e;var i=ji(e,Xe(t/qe(e)));return Pe(e)?lr(Ye(i),0,t).join(""):i.slice(0,t)}function Ir(t){return function(e,n,r){return r&&"number"!=typeof r&&os(e,n,r)&&(n=r=void 0),e=ia(e),void 0===n?(n=e,e=0):n=ia(n),function(t,e,n,r){for(var s=-1,o=on(Xe((e-t)/(n||1)),0),a=i(o);o--;)a[r?o:++s]=t,t+=n;return a}(e,n,r=void 0===r?e<n?1:-1:ia(r),t)}}function Rr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=oa(e),n=oa(n)),t(e,n)}}function Lr(t,e,n,i,r,s,o,a,l,c){var u=8&e;e|=u?32:64,4&(e&=~(u?64:32))||(e&=-4);var h=[t,e,r,u?s:void 0,u?o:void 0,u?void 0:s,u?void 0:o,a,l,c],d=n.apply(void 0,h);return ls(t)&&_s(d,h),d.placeholder=i,bs(d,t,e)}function Nr(t){var e=ft[t];return function(t,n){if(t=oa(t),(n=null==n?0:an(ra(n),292))&&nn(t)){var i=(la(t)+"e").split("e");return+((i=(la(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var jr=gn&&1/Ue(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Xa;function Pr(t){return function(e){var n=es(e);return n==p?Fe(e):n==y?Be(e):function(t,e){return ue(e,function(e){return[e,t[e]]})}(e,t(e))}}function Fr(t,e,n,o,a,l,c,u){var h=2&e;if(!h&&"function"!=typeof t)throw new _t(r);var d=o?o.length:0;if(d||(e&=-97,o=a=void 0),c=void 0===c?c:on(ra(c),0),u=void 0===u?u:ra(u),d-=a?a.length:0,64&e){var f=o,p=a;o=a=void 0}var g=h?void 0:Zr(t),m=[t,e,n,o,a,f,p,l,c,u];if(g&&function(t,e){var n=t[1],i=e[1],r=n|i;if(!(r<131||128==i&&8==n||128==i&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n))return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var o=e[3];if(o){var a=t[3];t[3]=a?pr(a,o,e[4]):o,t[4]=a?Ve(t[3],s):e[4]}(o=e[5])&&(t[5]=(a=t[5])?gr(a,o,e[6]):o,t[6]=a?Ve(t[5],s):e[6]),(o=e[7])&&(t[7]=o),128&i&&(t[8]=null==t[8]?e[8]:an(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(m,g),t=m[0],e=m[1],n=m[2],o=m[3],a=m[4],!(u=m[9]=void 0===m[9]?h?0:t.length:on(m[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||16==e?function(t,e,n){var r=Sr(t);return function s(){for(var o=arguments.length,a=i(o),l=o,c=Qr(s);l--;)a[l]=arguments[l];var u=o<3&&a[0]!==c&&a[o-1]!==c?[]:Ve(a,c);return(o-=u.length)<n?Lr(t,e,Ar,s.placeholder,void 0,a,u,void 0,void 0,n-o):ne(this&&this!==Yt&&this instanceof s?r:t,this,a)}}(t,e,u):32!=e&&33!=e||a.length?Ar.apply(void 0,m):function(t,e,n,r){var s=1&e,o=Sr(t);return function e(){for(var a=-1,l=arguments.length,c=-1,u=r.length,h=i(u+l),d=this&&this!==Yt&&this instanceof e?o:t;++c<u;)h[c]=r[c];for(;l--;)h[c++]=arguments[++a];return ne(d,s?n:this,h)}}(t,e,n,o);else var _=function(t,e,n){var i=1&e,r=Sr(t);return function e(){return(this&&this!==Yt&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return bs((g?Ui:_s)(_,m),t,e)}function zr(t,e,n,i){return void 0===t||Oo(t,vt[n])&&!xt.call(i,n)?e:t}function Vr(t,e,n,i,r,s){return Yo(t)&&Yo(e)&&(s.set(e,t),Ti(t,e,void 0,Vr,s),s.delete(e)),t}function Ur(t){return Qo(t)?void 0:t}function Br(t,e,n,i,r,s){var o=1&n,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(t),u=s.get(e);if(c&&u)return c==e&&u==t;var h=-1,d=!0,f=2&n?new jn:void 0;for(s.set(t,e),s.set(e,t);++h<a;){var p=t[h],g=e[h];if(i)var m=o?i(g,p,h,e,t,s):i(p,g,h,t,e,s);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!pe(e,function(t,e){if(!Oe(f,e)&&(p===t||r(p,t,n,i,s)))return f.push(e)})){d=!1;break}}else if(p!==g&&!r(p,g,n,i,s)){d=!1;break}}return s.delete(t),s.delete(e),d}function qr(t){return vs(fs(t,void 0,Ls),t+"")}function Yr(t){return di(t,wa,Jr)}function Hr(t){return di(t,xa,ts)}var Zr=yn?function(t){return yn.get(t)}:Xa;function Gr(t){for(var e=t.name+"",n=vn[e],i=xt.call(vn,e)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==t)return r.name}return e}function Qr(t){return(xt.call(Mn,"placeholder")?Mn:t).placeholder}function Wr(){var t=Mn.iteratee||Qa;return t=t===Qa?Ci:t,arguments.length?t(arguments[0],arguments[1]):t}function Kr(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function $r(t){for(var e=wa(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,hs(r)]}return e}function Xr(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return xi(n)?n:void 0}var Jr=tn?function(t){return null==t?[]:(t=pt(t),ae(tn(t),function(e){return Zt.call(t,e)}))}:sl,ts=tn?function(t){for(var e=[];t;)he(e,Jr(t)),t=qt(t);return e}:sl,es=fi;function ns(t,e,n){for(var i=-1,r=(e=or(e,t)).length,s=!1;++i<r;){var o=Es(e[i]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++i!=r?s:!!(r=null==t?0:t.length)&&qo(r)&&ss(o,r)&&(Lo(t)||Ro(t))}function is(t){return"function"!=typeof t.constructor||us(t)?{}:Tn(qt(t))}function rs(t){return Lo(t)||Ro(t)||!!(Wt&&t&&t[Wt])}function ss(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&at.test(t))&&t>-1&&t%1==0&&t<e}function os(t,e,n){if(!Yo(n))return!1;var i=typeof e;return!!("number"==i?jo(n)&&ss(e,n.length):"string"==i&&e in n)&&Oo(n[e],t)}function as(t,e){if(Lo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Xo(t))||q.test(t)||!B.test(t)||null!=e&&t in pt(e)}function ls(t){var e=Gr(t),n=Mn[e];if("function"!=typeof n||!(e in In.prototype))return!1;if(t===n)return!0;var i=Zr(n);return!!i&&t===i[0]}(dn&&es(new dn(new ArrayBuffer(1)))!=C||fn&&es(new fn)!=p||pn&&"[object Promise]"!=es(pn.resolve())||gn&&es(new gn)!=y||mn&&es(new mn)!=w)&&(es=function(t){var e=fi(t),n=e==m?t.constructor:void 0,i=n?As(n):"";if(i)switch(i){case bn:return C;case wn:return p;case xn:return"[object Promise]";case Cn:return y;case Sn:return w}return e});var cs=bt?Uo:ol;function us(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||vt)}function hs(t){return t==t&&!Yo(t)}function ds(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in pt(n))}}function fs(t,e,n){return e=on(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,o=on(r.length-e,0),a=i(o);++s<o;)a[s]=r[e+s];s=-1;for(var l=i(e+1);++s<e;)l[s]=r[s];return l[e]=n(a),ne(t,this,l)}}function ps(t,e){return e.length<2?t:hi(t,Yi(e,0,-1))}function gs(t,e){for(var n=t.length,i=an(e.length,n),r=mr(t);i--;){var s=e[i];t[i]=ss(s,n)?r[s]:void 0}return t}function ms(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _s=ws(Ui),ys=$e||function(t,e){return Yt.setTimeout(t,e)},vs=ws(Bi);function bs(t,e,n){var i=e+"";return vs(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(W,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return re(o,function(n){var i="_."+n[0];e&n[1]&&!le(t,i)&&t.push(i)}),t.sort()}(function(t){var e=t.match(K);return e?e[1].split($):[]}(i),n)))}function ws(t){var e=0,n=0;return function(){var i=ln(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xs(t,e){var n=-1,i=t.length,r=i-1;for(e=void 0===e?i:e;++n<e;){var s=Ni(n,r),o=t[s];t[s]=t[n],t[n]=o}return t.length=e,t}var Cs,Ss,ks=(Cs=So(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Y,function(t,n,i,r){e.push(i?r.replace(tt,"$1"):n||t)}),e},function(t){return 500===Ss.size&&Ss.clear(),t}),Ss=Cs.cache,Cs);function Es(t){if("string"==typeof t||Xo(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function As(t){if(null!=t){try{return wt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ms(t){if(t instanceof In)return t.clone();var e=new Dn(t.__wrapped__,t.__chain__);return e.__actions__=mr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ts=Pi(function(t,e){return Po(t)?Jn(t,si(e,1,Po,!0)):[]}),Os=Pi(function(t,e){var n=zs(e);return Po(n)&&(n=void 0),Po(t)?Jn(t,si(e,1,Po,!0),Wr(n,2)):[]}),Ds=Pi(function(t,e){var n=zs(e);return Po(n)&&(n=void 0),Po(t)?Jn(t,si(e,1,Po,!0),void 0,n):[]});function Is(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=on(i+r,0)),_e(t,Wr(e,3),r)}function Rs(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=ra(n),r=n<0?on(i+r,0):an(r,i-1)),_e(t,Wr(e,3),r,!0)}function Ls(t){return null!=t&&t.length?si(t,1):[]}function Ns(t){return t&&t.length?t[0]:void 0}var js=Pi(function(t){var e=ue(t,rr);return e.length&&e[0]===t[0]?_i(e):[]}),Ps=Pi(function(t){var e=zs(t),n=ue(t,rr);return e===zs(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?_i(n,Wr(e,2)):[]}),Fs=Pi(function(t){var e=zs(t),n=ue(t,rr);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?_i(n,void 0,e):[]});function zs(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Vs=Pi(Us);function Us(t,e){return t&&t.length&&e&&e.length?Ri(t,e):t}var Bs=qr(function(t,e){var n=null==t?0:t.length,i=Qn(t,e);return Li(t,ue(e,function(t){return ss(t,n)?+t:t}).sort(fr)),i});function qs(t){return null==t?t:hn.call(t)}var Ys=Pi(function(t){return $i(si(t,1,Po,!0))}),Hs=Pi(function(t){var e=zs(t);return Po(e)&&(e=void 0),$i(si(t,1,Po,!0),Wr(e,2))}),Zs=Pi(function(t){var e=zs(t);return e="function"==typeof e?e:void 0,$i(si(t,1,Po,!0),void 0,e)});function Gs(t){if(!t||!t.length)return[];var e=0;return t=ae(t,function(t){if(Po(t))return e=on(t.length,e),!0}),Ee(e,function(e){return ue(t,xe(e))})}function Qs(t,e){if(!t||!t.length)return[];var n=Gs(t);return null==e?n:ue(n,function(t){return ne(e,void 0,t)})}var Ws=Pi(function(t,e){return Po(t)?Jn(t,e):[]}),Ks=Pi(function(t){return nr(ae(t,Po))}),$s=Pi(function(t){var e=zs(t);return Po(e)&&(e=void 0),nr(ae(t,Po),Wr(e,2))}),Xs=Pi(function(t){var e=zs(t);return e="function"==typeof e?e:void 0,nr(ae(t,Po),void 0,e)}),Js=Pi(Gs),to=Pi(function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Qs(t,n)});function eo(t){var e=Mn(t);return e.__chain__=!0,e}function no(t,e){return e(t)}var io=qr(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return Qn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof In&&ss(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:no,args:[r],thisArg:void 0}),new Dn(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(void 0),t})):this.thru(r)}),ro=yr(function(t,e,n){xt.call(t,n)?++t[n]:Gn(t,n,1)}),so=kr(Is),oo=kr(Rs);function ao(t,e){return(Lo(t)?re:ti)(t,Wr(e,3))}function lo(t,e){return(Lo(t)?se:ei)(t,Wr(e,3))}var co=yr(function(t,e,n){xt.call(t,n)?t[n].push(e):Gn(t,n,[e])}),uo=Pi(function(t,e,n){var r=-1,s="function"==typeof e,o=jo(t)?i(t.length):[];return ti(t,function(t){o[++r]=s?ne(e,t,n):yi(t,e,n)}),o}),ho=yr(function(t,e,n){Gn(t,n,e)});function fo(t,e){return(Lo(t)?ue:Ei)(t,Wr(e,3))}var po=yr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),go=Pi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&os(t,e[0],e[1])?e=[]:n>2&&os(e[0],e[1],e[2])&&(e=[e[0]]),Di(t,si(e,1),[])}),mo=Ke||function(){return Yt.Date.now()};function _o(t,e,n){return e=n?void 0:e,Fr(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function yo(t,e){var n;if("function"!=typeof e)throw new _t(r);return t=ra(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var vo=Pi(function(t,e,n){var i=1;if(n.length){var r=Ve(n,Qr(vo));i|=32}return Fr(t,i,e,n,r)}),bo=Pi(function(t,e,n){var i=3;if(n.length){var r=Ve(n,Qr(bo));i|=32}return Fr(e,i,t,n,r)});function wo(t,e,n){var i,s,o,a,l,c,u=0,h=!1,d=!1,f=!0;if("function"!=typeof t)throw new _t(r);function p(e){var n=i,r=s;return i=s=void 0,u=e,a=t.apply(r,n)}function g(t){return u=t,l=ys(_,e),h?p(t):a}function m(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-u>=o}function _(){var t=mo();if(m(t))return y(t);l=ys(_,function(t){var n=e-(t-c);return d?an(n,o-(t-u)):n}(t))}function y(t){return l=void 0,f&&i?p(t):(i=s=void 0,a)}function v(){var t=mo(),n=m(t);if(i=arguments,s=this,c=t,n){if(void 0===l)return g(c);if(d)return cr(l),l=ys(_,e),p(c)}return void 0===l&&(l=ys(_,e)),a}return e=oa(e)||0,Yo(n)&&(h=!!n.leading,o=(d="maxWait"in n)?on(oa(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&cr(l),u=0,i=c=s=l=void 0},v.flush=function(){return void 0===l?a:y(mo())},v}var xo=Pi(function(t,e){return Xn(t,1,e)}),Co=Pi(function(t,e,n){return Xn(t,oa(e)||0,n)});function So(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new _t(r);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=t.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(So.Cache||Nn),n}function ko(t){if("function"!=typeof t)throw new _t(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}So.Cache=Nn;var Eo=ar(function(t,e){var n=(e=1==e.length&&Lo(e[0])?ue(e[0],Me(Wr())):ue(si(e,1),Me(Wr()))).length;return Pi(function(i){for(var r=-1,s=an(i.length,n);++r<s;)i[r]=e[r].call(this,i[r]);return ne(t,this,i)})}),Ao=Pi(function(t,e){return Fr(t,32,void 0,e,Ve(e,Qr(Ao)))}),Mo=Pi(function(t,e){return Fr(t,64,void 0,e,Ve(e,Qr(Mo)))}),To=qr(function(t,e){return Fr(t,256,void 0,void 0,void 0,e)});function Oo(t,e){return t===e||t!=t&&e!=e}var Do=Rr(pi),Io=Rr(function(t,e){return t>=e}),Ro=vi(function(){return arguments}())?vi:function(t){return Ho(t)&&xt.call(t,"callee")&&!Zt.call(t,"callee")},Lo=i.isArray,No=Kt?Me(Kt):function(t){return Ho(t)&&fi(t)==x};function jo(t){return null!=t&&qo(t.length)&&!Uo(t)}function Po(t){return Ho(t)&&jo(t)}var Fo=en||ol,zo=$t?Me($t):function(t){return Ho(t)&&fi(t)==u};function Vo(t){if(!Ho(t))return!1;var e=fi(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Qo(t)}function Uo(t){if(!Yo(t))return!1;var e=fi(t);return e==d||e==f||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Bo(t){return"number"==typeof t&&t==ra(t)}function qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Yo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ho(t){return null!=t&&"object"==typeof t}var Zo=Xt?Me(Xt):function(t){return Ho(t)&&es(t)==p};function Go(t){return"number"==typeof t||Ho(t)&&fi(t)==g}function Qo(t){if(!Ho(t)||fi(t)!=m)return!1;var e=qt(t);if(null===e)return!0;var n=xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&wt.call(n)==Et}var Wo=Jt?Me(Jt):function(t){return Ho(t)&&fi(t)==_},Ko=te?Me(te):function(t){return Ho(t)&&es(t)==y};function $o(t){return"string"==typeof t||!Lo(t)&&Ho(t)&&fi(t)==v}function Xo(t){return"symbol"==typeof t||Ho(t)&&fi(t)==b}var Jo=ee?Me(ee):function(t){return Ho(t)&&qo(t.length)&&!!Pt[fi(t)]},ta=Rr(ki),ea=Rr(function(t,e){return t<=e});function na(t){if(!t)return[];if(jo(t))return $o(t)?Ye(t):mr(t);if(ge&&t[ge])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ge]());var e=es(t);return(e==p?Fe:e==y?Ue:Oa)(t)}function ia(t){return t?1/0===(t=oa(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var e=ia(t),n=e%1;return e==e?n?e-n:e:0}function sa(t){return t?Wn(ra(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Xo(t))return NaN;if(Yo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Yo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ae(t);var n=rt.test(t);return n||ot.test(t)?Ut(t.slice(2),n?2:8):it.test(t)?NaN:+t}function aa(t){return _r(t,xa(t))}function la(t){return null==t?"":Ki(t)}var ca=vr(function(t,e){if(us(e)||jo(e))_r(e,wa(e),t);else for(var n in e)xt.call(e,n)&&qn(t,n,e[n])}),ua=vr(function(t,e){_r(e,xa(e),t)}),ha=vr(function(t,e,n,i){_r(e,xa(e),t,i)}),da=vr(function(t,e,n,i){_r(e,wa(e),t,i)}),fa=qr(Qn),pa=Pi(function(t,e){t=pt(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&os(e[0],e[1],r)&&(i=1);++n<i;)for(var s=e[n],o=xa(s),a=-1,l=o.length;++a<l;){var c=o[a],u=t[c];(void 0===u||Oo(u,vt[c])&&!xt.call(t,c))&&(t[c]=s[c])}return t}),ga=Pi(function(t){return t.push(void 0,Vr),ne(Sa,void 0,t)});function ma(t,e,n){var i=null==t?void 0:hi(t,e);return void 0===i?n:i}function _a(t,e){return null!=t&&ns(t,e,mi)}var ya=Mr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),t[e]=n},Ya(Ga)),va=Mr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),xt.call(t,e)?t[e].push(n):t[e]=[n]},Wr),ba=Pi(yi);function wa(t){return jo(t)?Fn(t):Si(t)}function xa(t){return jo(t)?Fn(t,!0):function(t){if(!Yo(t))return function(t){var e=[];if(null!=t)for(var n in pt(t))e.push(n);return e}(t);var e=us(t),n=[];for(var i in t)("constructor"!=i||!e&&xt.call(t,i))&&n.push(i);return n}(t)}var Ca=vr(function(t,e,n){Ti(t,e,n)}),Sa=vr(function(t,e,n,i){Ti(t,e,n,i)}),ka=qr(function(t,e){var n={};if(null==t)return n;var i=!1;e=ue(e,function(e){return e=or(e,t),i||(i=e.length>1),e}),_r(t,Hr(t),n),i&&(n=Kn(n,7,Ur));for(var r=e.length;r--;)Xi(n,e[r]);return n}),Ea=qr(function(t,e){return null==t?{}:function(t,e){return Ii(t,e,function(e,n){return _a(t,n)})}(t,e)});function Aa(t,e){if(null==t)return{};var n=ue(Hr(t),function(t){return[t]});return e=Wr(e),Ii(t,n,function(t,n){return e(t,n[0])})}var Ma=Pr(wa),Ta=Pr(xa);function Oa(t){return null==t?[]:Te(t,wa(t))}var Da=Cr(function(t,e,n){return e=e.toLowerCase(),t+(n?Ia(e):e)});function Ia(t){return Va(la(t).toLowerCase())}function Ra(t){return(t=la(t))&&t.replace(lt,Le).replace(Ot,"")}var La=Cr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Na=Cr(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),ja=xr("toLowerCase"),Pa=Cr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Fa=Cr(function(t,e,n){return t+(n?" ":"")+Va(e)}),za=Cr(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Va=xr("toUpperCase");function Ua(t,e,n){return t=la(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(It)||[]}(t):function(t){return t.match(X)||[]}(t):t.match(e)||[]}var Ba=Pi(function(t,e){try{return ne(t,void 0,e)}catch(n){return Vo(n)?n:new ht(n)}}),qa=qr(function(t,e){return re(e,function(e){e=Es(e),Gn(t,e,vo(t[e],t))}),t});function Ya(t){return function(){return t}}var Ha=Er(),Za=Er(!0);function Ga(t){return t}function Qa(t){return Ci("function"==typeof t?t:Kn(t,1))}var Wa=Pi(function(t,e){return function(n){return yi(n,t,e)}}),Ka=Pi(function(t,e){return function(n){return yi(t,n,e)}});function $a(t,e,n){var i=wa(e),r=ui(e,i);null!=n||Yo(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=ui(e,wa(e)));var s=!(Yo(n)&&"chain"in n&&!n.chain),o=Uo(t);return re(r,function(n){var i=e[n];t[n]=i,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__),r=n.__actions__=mr(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,he([this.value()],arguments))})}),t}function Xa(){}var Ja=Or(ue),tl=Or(oe),el=Or(pe);function nl(t){return as(t)?xe(Es(t)):function(t){return function(e){return hi(e,t)}}(t)}var il=Ir(),rl=Ir(!0);function sl(){return[]}function ol(){return!1}var al,ll=Tr(function(t,e){return t+e},0),cl=Nr("ceil"),ul=Tr(function(t,e){return t/e},1),hl=Nr("floor"),dl=Tr(function(t,e){return t*e},1),fl=Nr("round"),pl=Tr(function(t,e){return t-e},0);return Mn.after=function(t,e){if("function"!=typeof e)throw new _t(r);return t=ra(t),function(){if(--t<1)return e.apply(this,arguments)}},Mn.ary=_o,Mn.assign=ca,Mn.assignIn=ua,Mn.assignInWith=ha,Mn.assignWith=da,Mn.at=fa,Mn.before=yo,Mn.bind=vo,Mn.bindAll=qa,Mn.bindKey=bo,Mn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Lo(t)?t:[t]},Mn.chain=eo,Mn.chunk=function(t,e,n){e=(n?os(t,e,n):void 0===e)?1:on(ra(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var s=0,o=0,a=i(Xe(r/e));s<r;)a[o++]=Yi(t,s,s+=e);return a},Mn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var s=t[e];s&&(r[i++]=s)}return r},Mn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return he(Lo(n)?mr(n):[n],si(e,1))},Mn.cond=function(t){var e=null==t?0:t.length,n=Wr();return t=e?ue(t,function(t){if("function"!=typeof t[1])throw new _t(r);return[n(t[0]),t[1]]}):[],Pi(function(n){for(var i=-1;++i<e;){var r=t[i];if(ne(r[0],this,n))return ne(r[1],this,n)}})},Mn.conforms=function(t){return function(t){var e=wa(t);return function(n){return $n(n,t,e)}}(Kn(t,1))},Mn.constant=Ya,Mn.countBy=ro,Mn.create=function(t,e){var n=Tn(t);return null==e?n:Zn(n,e)},Mn.curry=function t(e,n,i){var r=Fr(e,8,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=t.placeholder,r},Mn.curryRight=function t(e,n,i){var r=Fr(e,16,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=t.placeholder,r},Mn.debounce=wo,Mn.defaults=pa,Mn.defaultsDeep=ga,Mn.defer=xo,Mn.delay=Co,Mn.difference=Ts,Mn.differenceBy=Os,Mn.differenceWith=Ds,Mn.drop=function(t,e,n){var i=null==t?0:t.length;return i?Yi(t,(e=n||void 0===e?1:ra(e))<0?0:e,i):[]},Mn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Yi(t,0,(e=i-(e=n||void 0===e?1:ra(e)))<0?0:e):[]},Mn.dropRightWhile=function(t,e){return t&&t.length?tr(t,Wr(e,3),!0,!0):[]},Mn.dropWhile=function(t,e){return t&&t.length?tr(t,Wr(e,3),!0):[]},Mn.fill=function(t,e,n,i){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&os(t,e,n)&&(n=0,i=r),function(t,e,n,i){var r=t.length;for((n=ra(n))<0&&(n=-n>r?0:r+n),(i=void 0===i||i>r?r:ra(i))<0&&(i+=r),i=n>i?0:sa(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},Mn.filter=function(t,e){return(Lo(t)?ae:ri)(t,Wr(e,3))},Mn.flatMap=function(t,e){return si(fo(t,e),1)},Mn.flatMapDeep=function(t,e){return si(fo(t,e),1/0)},Mn.flatMapDepth=function(t,e,n){return n=void 0===n?1:ra(n),si(fo(t,e),n)},Mn.flatten=Ls,Mn.flattenDeep=function(t){return null!=t&&t.length?si(t,1/0):[]},Mn.flattenDepth=function(t,e){return null!=t&&t.length?si(t,e=void 0===e?1:ra(e)):[]},Mn.flip=function(t){return Fr(t,512)},Mn.flow=Ha,Mn.flowRight=Za,Mn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},Mn.functions=function(t){return null==t?[]:ui(t,wa(t))},Mn.functionsIn=function(t){return null==t?[]:ui(t,xa(t))},Mn.groupBy=co,Mn.initial=function(t){return null!=t&&t.length?Yi(t,0,-1):[]},Mn.intersection=js,Mn.intersectionBy=Ps,Mn.intersectionWith=Fs,Mn.invert=ya,Mn.invertBy=va,Mn.invokeMap=uo,Mn.iteratee=Qa,Mn.keyBy=ho,Mn.keys=wa,Mn.keysIn=xa,Mn.map=fo,Mn.mapKeys=function(t,e){var n={};return e=Wr(e,3),li(t,function(t,i,r){Gn(n,e(t,i,r),t)}),n},Mn.mapValues=function(t,e){var n={};return e=Wr(e,3),li(t,function(t,i,r){Gn(n,i,e(t,i,r))}),n},Mn.matches=function(t){return Ai(Kn(t,1))},Mn.matchesProperty=function(t,e){return Mi(t,Kn(e,1))},Mn.memoize=So,Mn.merge=Ca,Mn.mergeWith=Sa,Mn.method=Wa,Mn.methodOf=Ka,Mn.mixin=$a,Mn.negate=ko,Mn.nthArg=function(t){return t=ra(t),Pi(function(e){return Oi(e,t)})},Mn.omit=ka,Mn.omitBy=function(t,e){return Aa(t,ko(Wr(e)))},Mn.once=function(t){return yo(2,t)},Mn.orderBy=function(t,e,n,i){return null==t?[]:(Lo(e)||(e=null==e?[]:[e]),Lo(n=i?void 0:n)||(n=null==n?[]:[n]),Di(t,e,n))},Mn.over=Ja,Mn.overArgs=Eo,Mn.overEvery=tl,Mn.overSome=el,Mn.partial=Ao,Mn.partialRight=Mo,Mn.partition=po,Mn.pick=Ea,Mn.pickBy=Aa,Mn.property=nl,Mn.propertyOf=function(t){return function(e){return null==t?void 0:hi(t,e)}},Mn.pull=Vs,Mn.pullAll=Us,Mn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ri(t,e,Wr(n,2)):t},Mn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ri(t,e,void 0,n):t},Mn.pullAt=Bs,Mn.range=il,Mn.rangeRight=rl,Mn.rearg=To,Mn.reject=function(t,e){return(Lo(t)?ae:ri)(t,ko(Wr(e,3)))},Mn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],s=t.length;for(e=Wr(e,3);++i<s;){var o=t[i];e(o,i,t)&&(n.push(o),r.push(i))}return Li(t,r),n},Mn.rest=function(t,e){if("function"!=typeof t)throw new _t(r);return Pi(t,e=void 0===e?e:ra(e))},Mn.reverse=qs,Mn.sampleSize=function(t,e,n){return e=(n?os(t,e,n):void 0===e)?1:ra(e),(Lo(t)?Vn:zi)(t,e)},Mn.set=function(t,e,n){return null==t?t:Vi(t,e,n)},Mn.setWith=function(t,e,n,i){return i="function"==typeof i?i:void 0,null==t?t:Vi(t,e,n,i)},Mn.shuffle=function(t){return(Lo(t)?Un:qi)(t)},Mn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&os(t,e,n)?(e=0,n=i):(e=null==e?0:ra(e),n=void 0===n?i:ra(n)),Yi(t,e,n)):[]},Mn.sortBy=go,Mn.sortedUniq=function(t){return t&&t.length?Qi(t):[]},Mn.sortedUniqBy=function(t,e){return t&&t.length?Qi(t,Wr(e,2)):[]},Mn.split=function(t,e,n){return n&&"number"!=typeof n&&os(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=la(t))&&("string"==typeof e||null!=e&&!Wo(e))&&!(e=Ki(e))&&Pe(t)?lr(Ye(t),0,n):t.split(e,n):[]},Mn.spread=function(t,e){if("function"!=typeof t)throw new _t(r);return e=null==e?0:on(ra(e),0),Pi(function(n){var i=n[e],r=lr(n,0,e);return i&&he(r,i),ne(t,this,r)})},Mn.tail=function(t){var e=null==t?0:t.length;return e?Yi(t,1,e):[]},Mn.take=function(t,e,n){return t&&t.length?Yi(t,0,(e=n||void 0===e?1:ra(e))<0?0:e):[]},Mn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Yi(t,(e=i-(e=n||void 0===e?1:ra(e)))<0?0:e,i):[]},Mn.takeRightWhile=function(t,e){return t&&t.length?tr(t,Wr(e,3),!1,!0):[]},Mn.takeWhile=function(t,e){return t&&t.length?tr(t,Wr(e,3)):[]},Mn.tap=function(t,e){return e(t),t},Mn.throttle=function(t,e,n){var i=!0,s=!0;if("function"!=typeof t)throw new _t(r);return Yo(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),wo(t,e,{leading:i,maxWait:e,trailing:s})},Mn.thru=no,Mn.toArray=na,Mn.toPairs=Ma,Mn.toPairsIn=Ta,Mn.toPath=function(t){return Lo(t)?ue(t,Es):Xo(t)?[t]:mr(ks(la(t)))},Mn.toPlainObject=aa,Mn.transform=function(t,e,n){var i=Lo(t),r=i||Fo(t)||Jo(t);if(e=Wr(e,4),null==n){var s=t&&t.constructor;n=r?i?new s:[]:Yo(t)&&Uo(s)?Tn(qt(t)):{}}return(r?re:li)(t,function(t,i,r){return e(n,t,i,r)}),n},Mn.unary=function(t){return _o(t,1)},Mn.union=Ys,Mn.unionBy=Hs,Mn.unionWith=Zs,Mn.uniq=function(t){return t&&t.length?$i(t):[]},Mn.uniqBy=function(t,e){return t&&t.length?$i(t,Wr(e,2)):[]},Mn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?$i(t,void 0,e):[]},Mn.unset=function(t,e){return null==t||Xi(t,e)},Mn.unzip=Gs,Mn.unzipWith=Qs,Mn.update=function(t,e,n){return null==t?t:Ji(t,e,sr(n))},Mn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:void 0,null==t?t:Ji(t,e,sr(n),i)},Mn.values=Oa,Mn.valuesIn=function(t){return null==t?[]:Te(t,xa(t))},Mn.without=Ws,Mn.words=Ua,Mn.wrap=function(t,e){return Ao(sr(e),t)},Mn.xor=Ks,Mn.xorBy=$s,Mn.xorWith=Xs,Mn.zip=Js,Mn.zipObject=function(t,e){return ir(t||[],e||[],qn)},Mn.zipObjectDeep=function(t,e){return ir(t||[],e||[],Vi)},Mn.zipWith=to,Mn.entries=Ma,Mn.entriesIn=Ta,Mn.extend=ua,Mn.extendWith=ha,$a(Mn,Mn),Mn.add=ll,Mn.attempt=Ba,Mn.camelCase=Da,Mn.capitalize=Ia,Mn.ceil=cl,Mn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==e&&(e=(e=oa(e))==e?e:0),Wn(oa(t),e,n)},Mn.clone=function(t){return Kn(t,4)},Mn.cloneDeep=function(t){return Kn(t,5)},Mn.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},Mn.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},Mn.conformsTo=function(t,e){return null==e||$n(t,e,wa(e))},Mn.deburr=Ra,Mn.defaultTo=function(t,e){return null==t||t!=t?e:t},Mn.divide=ul,Mn.endsWith=function(t,e,n){t=la(t),e=Ki(e);var i=t.length,r=n=void 0===n?i:Wn(ra(n),0,i);return(n-=e.length)>=0&&t.slice(n,r)==e},Mn.eq=Oo,Mn.escape=function(t){return(t=la(t))&&F.test(t)?t.replace(j,Ne):t},Mn.escapeRegExp=function(t){return(t=la(t))&&Z.test(t)?t.replace(H,"\\$&"):t},Mn.every=function(t,e,n){var i=Lo(t)?oe:ni;return n&&os(t,e,n)&&(e=void 0),i(t,Wr(e,3))},Mn.find=so,Mn.findIndex=Is,Mn.findKey=function(t,e){return me(t,Wr(e,3),li)},Mn.findLast=oo,Mn.findLastIndex=Rs,Mn.findLastKey=function(t,e){return me(t,Wr(e,3),ci)},Mn.floor=hl,Mn.forEach=ao,Mn.forEachRight=lo,Mn.forIn=function(t,e){return null==t?t:oi(t,Wr(e,3),xa)},Mn.forInRight=function(t,e){return null==t?t:ai(t,Wr(e,3),xa)},Mn.forOwn=function(t,e){return t&&li(t,Wr(e,3))},Mn.forOwnRight=function(t,e){return t&&ci(t,Wr(e,3))},Mn.get=ma,Mn.gt=Do,Mn.gte=Io,Mn.has=function(t,e){return null!=t&&ns(t,e,gi)},Mn.hasIn=_a,Mn.head=Ns,Mn.identity=Ga,Mn.includes=function(t,e,n,i){t=jo(t)?t:Oa(t),n=n&&!i?ra(n):0;var r=t.length;return n<0&&(n=on(r+n,0)),$o(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&ye(t,e,n)>-1},Mn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=on(i+r,0)),ye(t,e,r)},Mn.inRange=function(t,e,n){return e=ia(e),void 0===n?(n=e,e=0):n=ia(n),function(t,e,n){return t>=an(e,n)&&t<on(e,n)}(t=oa(t),e,n)},Mn.invoke=ba,Mn.isArguments=Ro,Mn.isArray=Lo,Mn.isArrayBuffer=No,Mn.isArrayLike=jo,Mn.isArrayLikeObject=Po,Mn.isBoolean=function(t){return!0===t||!1===t||Ho(t)&&fi(t)==c},Mn.isBuffer=Fo,Mn.isDate=zo,Mn.isElement=function(t){return Ho(t)&&1===t.nodeType&&!Qo(t)},Mn.isEmpty=function(t){if(null==t)return!0;if(jo(t)&&(Lo(t)||"string"==typeof t||"function"==typeof t.splice||Fo(t)||Jo(t)||Ro(t)))return!t.length;var e=es(t);if(e==p||e==y)return!t.size;if(us(t))return!Si(t).length;for(var n in t)if(xt.call(t,n))return!1;return!0},Mn.isEqual=function(t,e){return bi(t,e)},Mn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===i?bi(t,e,void 0,n):!!i},Mn.isError=Vo,Mn.isFinite=function(t){return"number"==typeof t&&nn(t)},Mn.isFunction=Uo,Mn.isInteger=Bo,Mn.isLength=qo,Mn.isMap=Zo,Mn.isMatch=function(t,e){return t===e||wi(t,e,$r(e))},Mn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,wi(t,e,$r(e),n)},Mn.isNaN=function(t){return Go(t)&&t!=+t},Mn.isNative=function(t){if(cs(t))throw new ht("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xi(t)},Mn.isNil=function(t){return null==t},Mn.isNull=function(t){return null===t},Mn.isNumber=Go,Mn.isObject=Yo,Mn.isObjectLike=Ho,Mn.isPlainObject=Qo,Mn.isRegExp=Wo,Mn.isSafeInteger=function(t){return Bo(t)&&t>=-9007199254740991&&t<=9007199254740991},Mn.isSet=Ko,Mn.isString=$o,Mn.isSymbol=Xo,Mn.isTypedArray=Jo,Mn.isUndefined=function(t){return void 0===t},Mn.isWeakMap=function(t){return Ho(t)&&es(t)==w},Mn.isWeakSet=function(t){return Ho(t)&&"[object WeakSet]"==fi(t)},Mn.join=function(t,e){return null==t?"":rn.call(t,e)},Mn.kebabCase=La,Mn.last=zs,Mn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=ra(n))<0?on(i+r,0):an(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):_e(t,be,r,!0)},Mn.lowerCase=Na,Mn.lowerFirst=ja,Mn.lt=ta,Mn.lte=ea,Mn.max=function(t){return t&&t.length?ii(t,Ga,pi):void 0},Mn.maxBy=function(t,e){return t&&t.length?ii(t,Wr(e,2),pi):void 0},Mn.mean=function(t){return we(t,Ga)},Mn.meanBy=function(t,e){return we(t,Wr(e,2))},Mn.min=function(t){return t&&t.length?ii(t,Ga,ki):void 0},Mn.minBy=function(t,e){return t&&t.length?ii(t,Wr(e,2),ki):void 0},Mn.stubArray=sl,Mn.stubFalse=ol,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=dl,Mn.nth=function(t,e){return t&&t.length?Oi(t,ra(e)):void 0},Mn.noConflict=function(){return Yt._===this&&(Yt._=At),this},Mn.noop=Xa,Mn.now=mo,Mn.pad=function(t,e,n){t=la(t);var i=(e=ra(e))?qe(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Dr(Je(r),n)+t+Dr(Xe(r),n)},Mn.padEnd=function(t,e,n){t=la(t);var i=(e=ra(e))?qe(t):0;return e&&i<e?t+Dr(e-i,n):t},Mn.padStart=function(t,e,n){t=la(t);var i=(e=ra(e))?qe(t):0;return e&&i<e?Dr(e-i,n)+t:t},Mn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(la(t).replace(G,""),e||0)},Mn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&os(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=ia(t),void 0===e?(e=t,t=0):e=ia(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=un();return an(t+r*(e-t+Vt("1e-"+((r+"").length-1))),e)}return Ni(t,e)},Mn.reduce=function(t,e,n){var i=Lo(t)?de:Se,r=arguments.length<3;return i(t,Wr(e,4),n,r,ti)},Mn.reduceRight=function(t,e,n){var i=Lo(t)?fe:Se,r=arguments.length<3;return i(t,Wr(e,4),n,r,ei)},Mn.repeat=function(t,e,n){return e=(n?os(t,e,n):void 0===e)?1:ra(e),ji(la(t),e)},Mn.replace=function(){var t=arguments,e=la(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mn.result=function(t,e,n){var i=-1,r=(e=or(e,t)).length;for(r||(r=1,t=void 0);++i<r;){var s=null==t?void 0:t[Es(e[i])];void 0===s&&(i=r,s=n),t=Uo(s)?s.call(t):s}return t},Mn.round=fl,Mn.runInContext=t,Mn.sample=function(t){return(Lo(t)?zn:Fi)(t)},Mn.size=function(t){if(null==t)return 0;if(jo(t))return $o(t)?qe(t):t.length;var e=es(t);return e==p||e==y?t.size:Si(t).length},Mn.snakeCase=Pa,Mn.some=function(t,e,n){var i=Lo(t)?pe:Hi;return n&&os(t,e,n)&&(e=void 0),i(t,Wr(e,3))},Mn.sortedIndex=function(t,e){return Zi(t,e)},Mn.sortedIndexBy=function(t,e,n){return Gi(t,e,Wr(n,2))},Mn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Zi(t,e);if(i<n&&Oo(t[i],e))return i}return-1},Mn.sortedLastIndex=function(t,e){return Zi(t,e,!0)},Mn.sortedLastIndexBy=function(t,e,n){return Gi(t,e,Wr(n,2),!0)},Mn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Zi(t,e,!0)-1;if(Oo(t[n],e))return n}return-1},Mn.startCase=Fa,Mn.startsWith=function(t,e,n){return t=la(t),n=null==n?0:Wn(ra(n),0,t.length),e=Ki(e),t.slice(n,n+e.length)==e},Mn.subtract=pl,Mn.sum=function(t){return t&&t.length?ke(t,Ga):0},Mn.sumBy=function(t,e){return t&&t.length?ke(t,Wr(e,2)):0},Mn.template=function(t,e,n){var i=Mn.templateSettings;n&&os(t,e,n)&&(e=void 0),t=la(t),e=ha({},e,i,zr);var r,s,o=ha({},e.imports,i.imports,zr),a=wa(o),l=Te(o,a),c=0,u=e.interpolate||ct,h="__p += '",d=gt((e.escape||ct).source+"|"+u.source+"|"+(u===U?et:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),f="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+"\n";t.replace(d,function(e,n,i,o,a,l){return i||(i=o),h+=t.slice(c,l).replace(ut,je),n&&(r=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),h+="';\n";var p=xt.call(e,"variable")&&e.variable;if(p){if(J.test(p))throw new ht("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(I,""):h).replace(R,"$1").replace(L,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Ba(function(){return dt(a,f+"return "+h).apply(void 0,l)});if(g.source=h,Vo(g))throw g;return g},Mn.times=function(t,e){if((t=ra(t))<1||t>9007199254740991)return[];var n=4294967295,i=an(t,4294967295);t-=4294967295;for(var r=Ee(i,e=Wr(e));++n<t;)e(n);return r},Mn.toFinite=ia,Mn.toInteger=ra,Mn.toLength=sa,Mn.toLower=function(t){return la(t).toLowerCase()},Mn.toNumber=oa,Mn.toSafeInteger=function(t){return t?Wn(ra(t),-9007199254740991,9007199254740991):0===t?t:0},Mn.toString=la,Mn.toUpper=function(t){return la(t).toUpperCase()},Mn.trim=function(t,e,n){if((t=la(t))&&(n||void 0===e))return Ae(t);if(!t||!(e=Ki(e)))return t;var i=Ye(t),r=Ye(e);return lr(i,De(i,r),Ie(i,r)+1).join("")},Mn.trimEnd=function(t,e,n){if((t=la(t))&&(n||void 0===e))return t.slice(0,He(t)+1);if(!t||!(e=Ki(e)))return t;var i=Ye(t);return lr(i,0,Ie(i,Ye(e))+1).join("")},Mn.trimStart=function(t,e,n){if((t=la(t))&&(n||void 0===e))return t.replace(G,"");if(!t||!(e=Ki(e)))return t;var i=Ye(t);return lr(i,De(i,Ye(e))).join("")},Mn.truncate=function(t,e){var n=30,i="...";if(Yo(e)){var r="separator"in e?e.separator:r;n="length"in e?ra(e.length):n,i="omission"in e?Ki(e.omission):i}var s=(t=la(t)).length;if(Pe(t)){var o=Ye(t);s=o.length}if(n>=s)return t;var a=n-qe(i);if(a<1)return i;var l=o?lr(o,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(o&&(a+=l.length-a),Wo(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=gt(r.source,la(nt.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var h=c.index;l=l.slice(0,void 0===h?a:h)}}else if(t.indexOf(Ki(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i},Mn.unescape=function(t){return(t=la(t))&&P.test(t)?t.replace(N,Ze):t},Mn.uniqueId=function(t){var e=++Ct;return la(t)+e},Mn.upperCase=za,Mn.upperFirst=Va,Mn.each=ao,Mn.eachRight=lo,Mn.first=Ns,$a(Mn,(al={},li(Mn,function(t,e){xt.call(Mn.prototype,e)||(al[e]=t)}),al),{chain:!1}),Mn.VERSION="4.17.21",re(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Mn[t].placeholder=Mn}),re(["drop","take"],function(t,e){In.prototype[t]=function(n){n=void 0===n?1:on(ra(n),0);var i=this.__filtered__&&!e?new In(this):this.clone();return i.__filtered__?i.__takeCount__=an(n,i.__takeCount__):i.__views__.push({size:an(n,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),re(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Wr(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),re(["head","last"],function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}}),re(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}}),In.prototype.compact=function(){return this.filter(Ga)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Pi(function(t,e){return"function"==typeof t?new In(this):this.map(function(n){return yi(n,t,e)})}),In.prototype.reject=function(t){return this.filter(ko(Wr(t)))},In.prototype.slice=function(t,e){t=ra(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ra(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},li(In.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=Mn[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);r&&(Mn.prototype[e]=function(){var e=this.__wrapped__,o=i?[1]:arguments,a=e instanceof In,l=o[0],c=a||Lo(e),u=function(t){var e=r.apply(Mn,he([t],o));return i&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(a=c=!1);var h=this.__chain__,d=!!this.__actions__.length,f=s&&!h,p=a&&!d;if(!s&&c){e=p?e:new In(this);var g=t.apply(e,o);return g.__actions__.push({func:no,args:[u],thisArg:void 0}),new Dn(g,h)}return f&&p?t.apply(this,o):(g=this.thru(u),f?i?g.value()[0]:g.value():g)})}),re(["pop","push","shift","sort","splice","unshift"],function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Mn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Lo(r)?r:[],t)}return this[n](function(n){return e.apply(Lo(n)?n:[],t)})}}),li(In.prototype,function(t,e){var n=Mn[e];if(n){var i=n.name+"";xt.call(vn,i)||(vn[i]=[]),vn[i].push({name:e,func:n})}}),vn[Ar(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=mr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mr(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Lo(t),i=e<0,r=n?t.length:0,s=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=an(e,t+o);break;case"takeRight":t=on(t,e-o)}}return{start:t,end:e}}(0,r,this.__views__),o=s.start,a=s.end,l=a-o,c=i?a:o-1,u=this.__iteratees__,h=u.length,d=0,f=an(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return er(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var g=-1,m=t[c+=e];++g<h;){var _=u[g],y=_.type,v=(0,_.iteratee)(m);if(2==y)m=v;else if(!v){if(1==y)continue t;break t}}p[d++]=m}return p},Mn.prototype.at=io,Mn.prototype.chain=function(){return eo(this)},Mn.prototype.commit=function(){return new Dn(this.value(),this.__chain__)},Mn.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var i=Ms(n);i.__index__=0,i.__values__=void 0,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},Mn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:no,args:[qs],thisArg:void 0}),new Dn(e,this.__chain__)}return this.thru(qs)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return er(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,ge&&(Mn.prototype[ge]=function(){return this}),Mn}();Yt._=Ge,void 0===(i=(function(){return Ge}).call(e,n,e,t))||(t.exports=i)}).call(this)},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return s}});var i=n(9765),r=n(7971);class s extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}next(t){super.next(this._value=t)}}},3098:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),r=n(5917),s=n(205);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),r=n(9181),s=n(6490),o=n(6554),a=n(4487),l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[r.b])return t[r.b]()}return t||e||n?new i.L(t,e,n):new i.L(s.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return s}});var i=n(2494),r=n(4449);const s={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,r.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),r=n(7393),s=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends r.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new o.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.N;return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.isStopped?(t.complete(),s.w.EMPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new i.y;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):s.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var i=n(5319);class r extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),r=n(6490),s=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends s.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.c;break;case 1:if(!t){this.destination=r.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==r.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),r=n(1555),s=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;i<e.length;++i)e[i].remove(this);if((0,s.m)(l)){n&&(this._unsubscribe=void 0);try{l.call(this)}catch(h){t=h instanceof o?c(h.errors):[h]}}if((0,i.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if((0,r.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof o?t=t.concat(c(h.errors)):t.push(h)}}}if(t)throw new o(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var l;function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),r=n(7574),s=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof r.y)return t.subscribe(e);let n;try{n=(0,s.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),r=n(7574),s=n(5319),o=n(1307);class a extends r.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return f}});var i=n(4869),r=n(9796),s=n(7393);class o extends s.L{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends s.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,r=new a(t,n,i)){if(!r.closed)return e instanceof c.y?e.subscribe(r):(0,l.s)(e)(r)}var h=n(6693);const d={};function f(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,r.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new p(e))}class p{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new g(t,this.resultSelector))}}class g extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(u(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===d?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},8071:function(t,e,n){"use strict";n.d(e,{z:function(){return s}});var i=n(5917),r=n(3282);function s(...t){return(0,r.J)(1)((0,i.of)(...t))}},1439:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(7574),r=n(4402),s=n(9193);function o(t){return new i.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,r.D)(n):(0,s.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return r},c:function(){return s}});var i=n(7574);const r=new i.y(t=>t.complete());function s(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):r}},5758:function(t,e,n){"use strict";n.d(e,{D:function(){return l}});var i=n(7574),r=n(9796),s=n(8002),o=n(1555),a=n(4402);function l(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,o.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,s.U)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.y(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let l=0;l<i;l++){const c=(0,a.D)(t[l]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,o++),r[l]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),r=n(7444),s=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new s.w;return i.add(e.schedule(()=>{const r=t[o.L]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new s.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new s.w;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,r.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),r=n(5015),s=n(4087);function o(t,e){return e?(0,s.r)(t,e):new i.y((0,r.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),r=n(9796),s=n(9105),o=n(8002);function a(t,e,n,c){return(0,s.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,r.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)l(t[s],e,n,i,r)}i.add(s)}},6682:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(7574),r=n(4869),s=n(3282),o=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,r.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,s.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),r=n(6693),s=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,s.r)(t,e)):(0,r.n)(t)}},205:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});var i=n(7574);function r(t,e){return new i.y(e?n=>e.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},6797:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var i=n(7574),r=n(3637),s=n(6561),o=n(4869);function a(t=0,e,n){let a=-1;return(0,s.k)(e)?a=Number(e)<1?1:Number(e):(0,o.K)(e)&&(n=e),(0,o.K)(n)||(n=r.P),new i.y(e=>{const i=(0,s.k)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:a,subscriber:e})})}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},13:function(t,e,n){"use strict";n.d(e,{e:function(){return l}});var i=n(3637),r=n(5345);class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,r.ft)(n,new r.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(6797);function l(t,e=i.P){return n=()=>(0,a.H)(t,e),function(t){return t.lift(new s(n))};var n}},5304:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var i=n(5345);function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new i.IY(this);this.add(r);const s=(0,i.ft)(n,r);s!==r&&this.add(s)}}}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(9773);function r(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7393),r=n(3637);function s(t,e=r.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(7393);function r(t,e){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(7393);function r(t,e){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8939:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393),r=n(5319);function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.L{constructor(t,e){super(t),this.add(new r.w(e))}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return r}});var i=n(7393);function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var i=n(9773),r=n(4487);function s(t=Number.POSITIVE_INFINITY){return(0,i.zg)(r.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),r=n(4402),s=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>(0,r.D)(t(n,s)).pipe((0,i.U)((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new s.IY(this),n=this.destination;n.add(e);const i=(0,s.ft)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(7393);function r(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},8819:function(t,e,n){"use strict";n.d(e,{B:function(){return a}});var i=n(2441),r=n(1307),s=n(9765);function o(){return new s.xQ}function a(){return t=>{return(0,r.x)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,i.N);return r.source=t,r.subjectFactory=n,r})(t));var e}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return r}});var i=n(7393);function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return s}});var i=n(8071),r=n(4869);function s(...t){const e=t[t.length-1];return(0,r.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),r=n(4402),s=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>(0,r.D)(t(n,s)).pipe((0,i.U)((t,i)=>e(n,t,s,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends s.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new s.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,s.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),r=n(7108),s=n(9193);function o(t){return e=>0===t?(0,s.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var i=n(5345);function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function r(){}var s=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,(0,s.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return s}});var i=n(7574),r=n(5319);function s(t,e){return new i.y(n=>{const i=new r.w;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return s}});var i=n(5319);class r extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},1927:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(6465),r=n(6102);const s=new class extends r.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends i.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}})},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const r=Promise.resolve(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends l.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var i=n(6465);const r=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});var i=n(9796);function r(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7574);function r(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),r=n(4449),s=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return u=t,t=>{const e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.z),t);if(t&&"function"==typeof t[s.hZ])return e=t,t=>{const n=e[s.hZ]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=(0,c.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0,config:{usernameLabel:"BRM",usernamePlaceholder:"Usuario",endpoint:"/api",application:"COMISION",applicationTitle:"Banregio Web App",banca:"hey"}}},7583:function(t,e,n){"use strict";var i=n(9075),r=n(7716),s=n(2340),o=n(1841),a=n(4655);let l=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:[a.lC],styles:[""]}),t})();var c=n(5650);const u=[{path:"",component:l,children:[{path:"",loadChildren:()=>n.e(290).then(n.bind(n,4290)).then(t=>t.HomeModule)}],canActivate:[c.a1]},{path:"login",loadChildren:()=>n.e(53).then(n.bind(n,9053)).then(t=>t.AuthModule)},{path:"**",redirectTo:"login"}];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[a.Bz.forRoot(u,{useHash:!0})],a.Bz]}),t})();var d=n(8583),f=n(3446);function p(t,e){if(1&t&&r._UZ(0,"nx-menu",2),2&t){const t=r.oxw();r.Q6J("title",t.title)}}let g=(()=>{class t{constructor(t,e){this.authService=t,this.router=e,this.title="",this.version="0.0.0",this.git="6d9af77-dirty",this.title=s.N.config.applicationTitle,this.isAuthenticated=!1,e.events.subscribe(()=>this.isAuthenticated=this.authService.IsAuth())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.e8),r.Y36(a.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-root"]],decls:4,vars:3,consts:[["id","gitver"],[3,"title",4,"ngIf"],[3,"title"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r._uU(1),r.qZA(),r.YNc(2,p,1,1,"nx-menu",1),r._UZ(3,"router-outlet")),2&t&&(r.xp6(1),r.AsE(" v",e.version,"@",e.git,"\n"),r.xp6(1),r.Q6J("ngIf",e.isAuthenticated))},directives:[d.O5,a.lC,f.Mn],styles:[""]}),t})();var m=n(6237);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t,bootstrap:[g]}),t.\u0275inj=r.cJS({providers:[f.c9,f.YP],imports:[[i.b2,m.PW,h,o.JF,d.ez,c.IR.forRoot(s.N.config),f.e$.forRoot()]]}),t})();s.N.production&&(0,r.G48)(),i.q6().bootstrapModule(_).catch(t=>console.error(t))}},function(t){"use strict";t(t.s=7583)}]);