(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"9a8T":function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];if(t&&(g=!0),g)return p=(0,h.default)(p,f),(0,u.default)(p,f.once),p},v=function(){p=(0,d.default)(),m()};t.exports={init:function(t){f=i(f,t),p=(0,d.default)();var e=document.all&&!window.atob;return function(t){return!0===t||"mobile"===t&&c.default.mobile()||"phone"===t&&c.default.phone()||"tablet"===t&&c.default.tablet()||"function"==typeof t&&!0===t()}(f.disable)||e?void p.forEach((function(t,e){t.node.removeAttribute("data-aos"),t.node.removeAttribute("data-aos-easing"),t.node.removeAttribute("data-aos-duration"),t.node.removeAttribute("data-aos-delay")})):(f.disableMutationObserver||l.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),f.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",f.easing),document.querySelector("body").setAttribute("data-aos-duration",f.duration),document.querySelector("body").setAttribute("data-aos-delay",f.delay),"DOMContentLoaded"===f.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?m(!0):"load"===f.startEvent?window.addEventListener(f.startEvent,(function(){m(!0)})):document.addEventListener(f.startEvent,(function(){m(!0)})),window.addEventListener("resize",(0,a.default)(m,f.debounceDelay,!0)),window.addEventListener("orientationchange",(0,a.default)(m,f.debounceDelay,!0)),window.addEventListener("scroll",(0,o.default)((function(){(0,u.default)(p,f.once)}),f.throttleDelay)),f.disableMutationObserver||l.default.ready("[data-aos]",v),p)},refresh:m,refreshHard:v}},function(t,e){},,,,,function(t,e){(function(e){"use strict";function n(t){var e=void 0===t?"undefined":i(t);return!!t&&("object"==e||"function"==e)}function r(t){if("number"==typeof t)return t;if(function(t){return"symbol"==(void 0===t?"undefined":i(t))||function(t){return!!t&&"object"==(void 0===t?"undefined":i(t))}(t)&&m.call(t)==a}(t))return o;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var r=u.test(t);return r||h.test(t)?d(t.slice(2),r?2:8):c.test(t)?o:+t}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s="Expected a function",o=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt,p="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e,g="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,f=p||g||Function("return this")(),m=Object.prototype.toString,v=Math.max,y=Math.min,w=function(){return f.Date.now()};t.exports=function(t,e,i){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError(s);return n(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),function(t,e,i){function o(e){var n=d,r=p;return d=p=void 0,_=e,f=t.apply(r,n)}function a(t){return _=t,m=setTimeout(c,e),x?o(t):f}function l(t){var n=t-b;return void 0===b||n>=e||n<0||C&&t-_>=g}function c(){var t=w();return l(t)?u(t):void(m=setTimeout(c,function(t){var n=e-(t-b);return C?y(n,g-(t-_)):n}(t)))}function u(t){return m=void 0,O&&d?o(t):(d=p=void 0,f)}function h(){var t=w(),n=l(t);if(d=arguments,p=this,b=t,n){if(void 0===m)return a(b);if(C)return m=setTimeout(c,e),o(b)}return void 0===m&&(m=setTimeout(c,e)),f}var d,p,g,f,m,b,_=0,x=!1,C=!1,O=!0;if("function"!=typeof t)throw new TypeError(s);return e=r(e)||0,n(i)&&(x=!!i.leading,g=(C="maxWait"in i)?v(r(i.maxWait)||0,e):g,O="trailing"in i?!!i.trailing:O),h.cancel=function(){void 0!==m&&clearTimeout(m),_=0,d=b=p=m=void 0},h.flush=function(){return void 0===m?f:u(w())},h}(t,e,{leading:o,maxWait:e,trailing:a})}}).call(e,function(){return this}())},function(t,e){(function(e){"use strict";function n(t){var e=void 0===t?"undefined":i(t);return!!t&&("object"==e||"function"==e)}function r(t){if("number"==typeof t)return t;if(function(t){return"symbol"==(void 0===t?"undefined":i(t))||function(t){return!!t&&"object"==(void 0===t?"undefined":i(t))}(t)&&f.call(t)==o}(t))return s;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var r=c.test(t);return r||u.test(t)?h(t.slice(2),r?2:8):l.test(t)?s:+t}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt,d="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e,p="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,g=d||p||Function("return this")(),f=Object.prototype.toString,m=Math.max,v=Math.min,y=function(){return g.Date.now()};t.exports=function(t,e,i){function s(e){var n=h,r=d;return h=d=void 0,b=e,g=t.apply(r,n)}function o(t){return b=t,f=setTimeout(l,e),_?s(t):g}function a(t){var n=t-w;return void 0===w||n>=e||n<0||x&&t-b>=p}function l(){var t=y();return a(t)?c(t):void(f=setTimeout(l,function(t){var n=e-(t-w);return x?v(n,p-(t-b)):n}(t)))}function c(t){return f=void 0,C&&h?s(t):(h=d=void 0,g)}function u(){var t=y(),n=a(t);if(h=arguments,d=this,w=t,n){if(void 0===f)return o(w);if(x)return f=setTimeout(l,e),s(w)}return void 0===f&&(f=setTimeout(l,e)),g}var h,d,p,g,f,w,b=0,_=!1,x=!1,C=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e)||0,n(i)&&(_=!!i.leading,p=(x="maxWait"in i)?m(r(i.maxWait)||0,e):p,C="trailing"in i?!!i.trailing:C),u.cancel=function(){void 0!==f&&clearTimeout(f),b=0,h=w=d=f=void 0},u.flush=function(){return void 0===f?g:c(y())},u}}).call(e,function(){return this}())},function(t,e){"use strict";function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(t){t&&t.forEach((function(t){var e=Array.prototype.slice.call(t.addedNodes),n=Array.prototype.slice.call(t.removedNodes);if(function t(e){var n=void 0,r=void 0;for(n=0;nt.position?t.node.classList.add("aos-animate"):void 0!==r&&("false"===r||!n&&"true"!==r)&&t.node.classList.remove("aos-animate")}(t,r+n,e)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(12));e.default=function(t,e){return t.forEach((function(t,n){t.node.classList.add("aos-init"),t.position=(0,r.default)(t.node,e.offset)})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(13));e.default=function(t,e){var n=0,i=0,s=window.innerHeight,o={offset:t.getAttribute("data-aos-offset"),anchor:t.getAttribute("data-aos-anchor"),anchorPlacement:t.getAttribute("data-aos-anchor-placement")};switch(o.offset&&!isNaN(o.offset)&&(i=parseInt(o.offset)),o.anchor&&document.querySelectorAll(o.anchor)&&(t=document.querySelectorAll(o.anchor)[0]),n=(0,r.default)(t).top,o.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=t.offsetHeight/2;break;case"bottom-bottom":n+=t.offsetHeight;break;case"top-center":n+=s/2;break;case"bottom-center":n+=s/2+t.offsetHeight;break;case"center-center":n+=s/2+t.offsetHeight/2;break;case"top-top":n+=s;break;case"bottom-top":n+=t.offsetHeight+s;break;case"center-top":n+=t.offsetHeight/2+s}return o.anchorPlacement||o.offset||isNaN(e)||(i=e),n+i}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=0,n=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-("BODY"!=t.tagName?t.scrollLeft:0),n+=t.offsetTop-("BODY"!=t.tagName?t.scrollTop:0),t=t.offsetParent;return{top:n,left:e}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t=t||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(t,(function(t){return{node:t}}))}}])},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let i=!1;const s={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}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{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})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new g(t,e,n);return r.syncErrorThrowable=!1,r}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 f extends g{constructor(t,e,n,i){let s;super(),this._parentSubscriber=t;let o=this;r(e)?s=e:e&&(s=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.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}=s;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.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(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(t){return t}let y=(()=>{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:r}=this,i=function(t,e,n){if(t){if(t instanceof g)return t;if(t[p])return t[p]()}return t||e||n?new g(t,e,n):new g(a)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.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 g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?v:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class _ extends h{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)}}class x extends g{constructor(t){super(t),this.destination=t}}let C=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(t){const e=new O(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;inew O(t,e),t})();class O extends C{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):h.EMPTY}}function S(t){return t&&"function"==typeof t.schedule}class T extends g{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()}}const k=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function A(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(E(t))return k(t);if(A(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){const e=n.next();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=c(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,r};function L(t,e,n,r,i=new T(t,n,r)){if(!i.closed)return e instanceof y?e.subscribe(i):M(e)(i)}class R extends g{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function N(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 D(t,e))}}class D{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new V(t,this.project,this.thisArg))}}class V extends g{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)}}function j(t,e){return new y(n=>{const r=new h;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>{const i=t[m]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(A(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(E(t))return j(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[P](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(M(t))}function z(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(z((n,r)=>F(t(n,r)).pipe(N((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new U(t,this.project,this.concurrent))}}class U extends R{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.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t=Number.POSITIVE_INFINITY){return z(v,t)}function q(t,e){return e?j(t,e):new y(k(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return S(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:B(e)(q(t,n))}function G(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new K(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class K extends g{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,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Q extends 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 h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return G()(this)}}const Y=(()=>{const t=Q.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 J extends x{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()}}}function X(){return new C}function tt(t){return{toString:t}.toString()}function et(t,e,n){return tt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const nt=et("Inject",t=>({token:t})),rt=et("Optional"),it=et("Self"),st=et("SkipSelf");var ot=function(t){return 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}({});function at(t){for(let e in t)if(t[e]===at)return e;throw Error("Could not find renamed property on target object.")}function lt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return dt(t,t[gt])||dt(t,t[vt])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(ft)||t.hasOwnProperty(yt))?t[ft]:null}const gt=at({"\u0275prov":at}),ft=at({"\u0275inj":at}),mt=at({"\u0275provFallback":at}),vt=at({ngInjectableDef:at}),yt=at({ngInjectorDef:at});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).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 bt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const _t=at({__forward_ref__:at});function xt(t){return t.__forward_ref__=xt,t.toString=function(){return wt(this())},t}function Ct(t){return Ot(t)?t():t}function Ot(t){return"function"==typeof t&&t.hasOwnProperty(_t)&&t.__forward_ref__===xt}const St="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Pt=St||It||Tt||kt,Et=at({"\u0275cmp":at}),At=at({"\u0275dir":at}),Mt=at({"\u0275pipe":at}),Lt=at({"\u0275mod":at}),Rt=at({"\u0275loc":at}),Nt=at({"\u0275fac":at}),Dt=at({__NG_ELEMENT_ID__:at});class Vt{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=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const jt=new Vt("INJECTOR",-1),Ft={},zt=/\n/gm,Ht=at({provide:String,useValue:at});let Ut,$t=void 0;function Bt(t){const e=$t;return $t=t,e}function qt(t){const e=Ut;return Ut=t,e}function Wt(t,e=ot.Default){if(void 0===$t)throw new Error("inject() must be called from an injection context");return null===$t?Zt(t,void 0,e):$t.get(t,e&ot.Optional?null:void 0,e)}function Gt(t,e=ot.Default){return(Ut||Wt)(Ct(t),e)}function Zt(t,e,n){const r=ht(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ot.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Kt(t){const e=[];for(let n=0;nArray.isArray(t)?Xt(t,e):e(t))}function te(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ee(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ne(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ie(t,e){const n=se(t,e);if(n>=0)return t[1|n]}function se(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),s=t[n<<1];if(e===s)return n<<1;s>e?i=n:r=n+1}return~(i<<1)}(t,e)}var oe=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ae=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const le={},ce=[];let ue=0;function he(t){return tt(()=>{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===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ae.Emulated,id:"c",styles:t.styles||ce,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,s=t.pipes;return n.id+=ue++,n.inputs=me(t.inputs,e),n.outputs=me(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(de):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(pe):null,n})}function de(t){return we(t)||function(t){return t[At]||null}(t)}function pe(t){return function(t){return t[Mt]||null}(t)}const ge={};function fe(t){const e={type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ge[t.id]=t.type}),e}function me(t,e){if(null==t)return le;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,e&&(e[i]=s)}return n}const ve=he;function ye(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Et]||null}function be(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function _e(t,e){const n=t[Lt]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}function xe(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ce(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function Te(t){return 1==(1&t.flags)}function ke(t){return null!==t.template}function Ie(t){return 0!=(512&t[2])}class Pe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ee(){return Ae}function Ae(t){return t.type.prototype.ngOnChanges&&(t.setInput=Le),Me}function Me(){const t=Re(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===le)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Le(t,e,n,r){const i=Re(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:le,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new Pe(l&&l.currentValue,e,o===le),t[r]=e}function Re(t){return t.__ngSimpleChanges__||null}Ee.ngInherit=!0;let Ne=void 0;function De(){return void 0!==Ne?Ne:"undefined"!=typeof document?document:void 0}function Ve(t){return!!t.listen}const je={createRenderer:(t,e)=>De()};function Fe(t){for(;Array.isArray(t);)t=t[0];return t}function ze(t,e){return Fe(e[t+20])}function He(t,e){return Fe(e[t.index])}function Ue(t,e){return t.data[e+20]}function $e(t,e){return t[e+20]}function Be(t,e){const n=e[t];return xe(n)?n:n[0]}function qe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function We(t){return 4==(4&t[2])}function Ge(t){return 128==(128&t[2])}function Ze(t,e){return null===t||null==e?null:t[e]}function Ke(t){t[18]=0}function Qe(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ye={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Je(){return Ye.bindingsEnabled}function Xe(){return Ye.lFrame.lView}function tn(){return Ye.lFrame.tView}function en(t){Ye.lFrame.contextLView=t}function nn(){return Ye.lFrame.previousOrParentTNode}function rn(t,e){Ye.lFrame.previousOrParentTNode=t,Ye.lFrame.isParent=e}function sn(){return Ye.lFrame.isParent}function on(){Ye.lFrame.isParent=!1}function an(){return Ye.checkNoChangesMode}function ln(t){Ye.checkNoChangesMode=t}function cn(){const t=Ye.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function un(){return Ye.lFrame.bindingIndex}function hn(){return Ye.lFrame.bindingIndex++}function dn(t){const e=Ye.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function pn(t,e){const n=Ye.lFrame;n.bindingIndex=n.bindingRootIndex=t,gn(e)}function gn(t){Ye.lFrame.currentDirectiveIndex=t}function fn(){return Ye.lFrame.currentQueryIndex}function mn(t){Ye.lFrame.currentQueryIndex=t}function vn(t,e){const n=wn();Ye.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function yn(t,e){const n=wn(),r=t[1];Ye.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function wn(){const t=Ye.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function _n(){const t=Ye.lFrame;return Ye.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const xn=_n;function Cn(){const t=_n();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function On(){return Ye.lFrame.selectedIndex}function Sn(t){Ye.lFrame.selectedIndex=t}function Tn(){const t=Ye.lFrame;return Ue(t.tView,t.selectedIndex)}function kn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[o]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}class Ln{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Rn(t,e,n){const r=Ve(t);let i=0;for(;ie){o=s-1;break}}}for(;s>16}function Un(t,e){let n=Hn(t),r=e;for(;n>0;)r=r[15],n--;return r}function $n(t){return"string"==typeof t?t:null==t?"":""+t}function Bn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():$n(t)}const qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function Wn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Gn(t){return t instanceof Function?t():t}let Zn=!0;function Kn(t){const e=Zn;return Zn=t,e}let Qn=0;function Yn(t,e){const n=Xn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Jn(r.data,t),Jn(e,null),Jn(r.blueprint,null));const i=tr(t,e),s=t.injectorIndex;if(Fn(i)){const t=zn(i),n=Un(i,e),r=n[1].data;for(let i=0;i<8;i++)e[s+i]=n[t+i]|r[t+i]}return e[s+8]=i,s}function Jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Xn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function tr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function er(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(r=n[Dt]),null==r&&(r=n[Dt]=Qn++);const i=255&r,s=1<0?255&e:e}(n);if("function"==typeof i){vn(e,t);try{const t=i();if(null!=t||r&ot.Optional)return t;throw new Error(`No provider for ${Bn(n)}!`)}finally{xn()}}else if("number"==typeof i){if(-1===i)return new cr(t,e);let s=null,o=Xn(t,e),a=-1,l=r&ot.Host?e[16][6]:null;for((-1===o||r&ot.SkipSelf)&&(a=-1===o?tr(t,e):e[o+8],lr(r,!1)?(s=e[1],o=zn(a),e=Un(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(ar(i,o,t.data)){const t=ir(o,e,n,s,r,l);if(t!==rr)return t}lr(r,e[1].data[o+8]===l)&&ar(i,o,e)?(s=t,o=zn(a),e=Un(a,e)):o=-1}}}if(r&ot.Optional&&void 0===i&&(i=null),0==(r&(ot.Self|ot.Host))){const t=e[9],s=qt(void 0);try{return t?t.get(n,i,r&ot.Optional):Zt(n,i,r&ot.Optional)}finally{qt(s)}}if(r&ot.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Bn(n)}]`)}const rr={};function ir(t,e,n,r,i,s){const o=e[1],a=o.data[t+8],l=sr(a,o,n,null==r?Se(a)&&Zn:r!=o&&3===a.type,i&ot.Host&&s===a);return null!==l?or(e,o,l,a):rr}function sr(t,e,n,r,i){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(i){const t=o[l];if(t&&ke(t)&&t.type===n)return l}return null}function or(t,e,n,r){let i=t[n];const s=e.data;if(i instanceof Ln){const o=i;if(o.resolving)throw new Error("Circular dep for "+Bn(s[n]));const a=Kn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qt(o.injectImpl)),vn(t,r);try{i=t[n]=o.factory(void 0,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const r=Ae(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{o.injectImpl&&qt(l),Kn(a),o.resolving=!1,xn()}}return i}function ar(t,e,n){const r=64&t,i=32&t;let s;return s=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(s&1<{const t=ur(Ct(e));return t?t():null};let n=be(e);if(null===n){const t=pt(e);n=t&&t.factory}return n||null}function hr(t){return tt(()=>{const e=t.prototype.constructor,n=e[Nt]||ur(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Nt]||ur(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function dr(t){return t.ngDebugContext}function pr(t){return t.ngOriginalError}function gr(t,...e){t.error(...e)}class fr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||gr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?dr(t)?dr(t):this._findContext(pr(t)):null}_findOriginalError(t){let e=pr(t);for(;e&&pr(e);)e=pr(e);return e}}class mr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class vr extends mr{getTypeName(){return"HTML"}}class yr extends mr{getTypeName(){return"Style"}}class wr extends mr{getTypeName(){return"Script"}}class br extends mr{getTypeName(){return"URL"}}class _r extends mr{getTypeName(){return"ResourceURL"}}function xr(t){return t instanceof mr?t.changingThisBreaksApplicationSecurity:t}function Cr(t,e){const n=Or(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Or(t){return t instanceof mr&&t.getTypeName()||null}let Sr=!0,Tr=!1;function kr(){return Tr=!0,Sr}class Ir{getInertBodyElement(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Pr{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=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Mr(t.trim())).join(", ")),this.buf.push(" ",e,'="',Gr(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Fr.hasOwnProperty(e)&&!Nr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Gr(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 qr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wr=/([^\#-~ |!])/g;function Gr(t){return t.replace(/&/g,"&").replace(qr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Wr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Zr;function Kr(t,e){let n=null;try{Zr=Zr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ir:new Pr(t)}(t);let r=e?String(e):"";n=Zr.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Zr.getInertBodyElement(r)}while(r!==s);const o=new Br,a=o.sanitizeChildren(Qr(n)||n);return kr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Qr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Qr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Yr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Jr(t){const e=ti();return e?e.sanitize(Yr.HTML,t)||"":Cr(t,"HTML")?xr(t):Kr(De(),$n(t))}function Xr(t){const e=ti();return e?e.sanitize(Yr.URL,t)||"":Cr(t,"URL")?xr(t):Mr($n(t))}function ti(){const t=Xe();return t&&t[12]}function ei(t,e){t.__ngContext__=e}function ni(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ri(){throw new Error("Cannot mix multi providers and regular providers")}function ii(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function si(t,e,n){let r=0;for(;rs?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ii(e,c,0)||2&r&&c!==t){if(ci(r))return!1;o=!0}}}}else{if(!o&&!ci(r)&&!ci(l))return!1;if(o&&ci(l))continue;o=!1,r=l|1&r}}return ci(r)||o}function ci(t){return 0==(1&t)}function ui(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||ci(o)||(e+=pi(s,i),i=""),r=o,s=s||!ci(r);n++}return""!==i&&(e+=pi(s,i)),e}const fi={};function mi(t){const e=t[3];return Ce(e)?e[3]:e}function vi(t){return wi(t[13])}function yi(t){return wi(t[4])}function wi(t){for(;null!==t&&!Ce(t);)t=t[4];return t}function bi(t){_i(tn(),Xe(),On()+t,an())}function _i(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&In(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Pn(e,r,0,n)}Sn(n)}function xi(t,e){return t<<17|e<<2}function Ci(t){return t>>17&32767}function Oi(t){return 2|t}function Si(t){return(131068&t)>>2}function Ti(t,e){return-131069&t|e<<2}function ki(t){return 1|t}function Ii(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&_i(t,e,0,an()),n(r,i)}finally{Sn(s)}}function Di(t,e,n){if(Oe(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i0&&function t(e){for(let r=vi(e);null!==r;r=yi(r))for(let e=10;e0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r0&&t(i)}}(n)}}function ss(t,e){const n=Be(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function ds(t){return t[7]||(t[7]=[])}function ps(t,e){const n=t[9],r=n?n.get(fr,null):null;r&&r.handleError(e)}function gs(t,e,n,r,i){for(let s=0;s0&&(t[n-1][4]=r[4]);const s=ee(t,10+e);ys(r[1],r,!1,null);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function _s(t,e){if(!(256&e[2])){const n=e[11];Ve(n)&&n.destroyNode&&Ls(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Cs(t[1],t);for(;e;){let n=null;if(xe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&Cs(e[1],e),e=xs(e,t);null===e&&(e=t),xe(e)&&Cs(e[1],e),n=e&&e[4]}e=n}}(e)}}function xs(t,e){let n;return xe(t)&&(n=t[6])&&2===n.type?fs(n,t):t[3]===e?null:t[3]}function Cs(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 r=0;r=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ve(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Ce(e[3])){r!==e[3]&&ws(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function Os(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?ms(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return He(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==ae.ShadowDom&&n!==ae.Native)return null}return He(r,n)}function Ss(t,e,n,r){Ve(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Ts(t,e,n){Ve(t)?t.appendChild(e,n):e.appendChild(n)}function ks(t,e,n,r){null!==r?Ss(t,e,n,r):Ts(t,e,n)}function Is(t,e){return Ve(t)?t.parentNode(e):e.parentNode}function Ps(t,e){if(2===t.type){const n=fs(t,e);return null===n?null:As(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?He(t,e):null}function Es(t,e,n,r){const i=Os(t,r,e);if(null!=i){const t=e[11],s=Ps(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}_s(this._lView[1],this._lView)}onDestroy(t){Hi(this._lView[1],this._lView,null,t)}markForCheck(){as(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ls(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ln(!0);try{ls(t,e,n)}finally{ln(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ls(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class js extends Vs{constructor(t){super(t),this._view=t}detectChanges(){cs(this._view)}checkNoChanges(){!function(t){ln(!0);try{cs(t)}finally{ln(!1)}}(this._view)}get context(){return null}}let Fs,zs,Hs;function Us(t,e,n){return Fs||(Fs=class extends t{}),new Fs(He(e,n))}function $s(t,e,n,r){return zs||(zs=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ei(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Mi(e,n,t),new Vs(n)}}),0===n.type?new zs(r,n,Us(e,n,r)):null}function Bs(t,e,n,r){let i;Hs||(Hs=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Us(e,this._hostTNode,this._hostView)}get injector(){return new cr(this._hostTNode,this._hostView)}get parentInjector(){const t=tr(this._hostTNode,this._hostView),e=Un(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Hn(t),i=e,s=e[6];for(;r>1;)i=i[15],s=i[6],r--;return s}(t,this._hostView,this._hostTNode);return Fn(t)&&null!=n?new cr(n,e):new cr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const s=n||this.parentInjector;if(!i&&null==t.ngModule&&s){const t=s.get(Yt,null);t&&(i=t)}const o=t.create(s,r,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ce(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Hs(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=e),r{class t{}return t.__NG_ELEMENT_ID__=()=>Gs(),t})();const Gs=qs,Zs=Function,Ks=new Vt("Set Injector scope."),Qs={},Ys={},Js=[];let Xs=void 0;function to(){return void 0===Xs&&(Xs=new Qt),Xs}function eo(t,e=null,n=null,r){return new no(t,n,e||to(),r)}class no{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&Xt(e,n=>this.processProvider(n,t,e)),Xt([t],t=>this.processInjectorType(t,[],i)),this.records.set(jt,so(void 0,this));const s=this.records.get(Ks);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:wt(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=Ft,n=ot.Default){this.assertNotDestroyed();const r=Bt(this);try{if(!(n&ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Vt)&&ht(t);e=n&&this.injectableDefInScope(n)?so(ro(t),Qs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ot.Self?to():this.parent).get(t,e=n&ot.Optional&&e===Ft?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(wt(t)),r)throw s;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=wt(e);if(Array.isArray(e))i=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):wt(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(zt,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Bt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Ct(t)))return!1;let r=pt(t);const i=null==r&&t.ngModule||void 0,s=void 0===i?t:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=pt(i)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(s);try{Xt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Js))}}this.injectorDefTypes.add(s),this.records.set(s,so(r.factory,Qs));const a=r.providers;if(null!=a&&!o){const e=t;Xt(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=ao(t=Ct(t))?t:Ct(t&&t.provide);const i=function(t,e,n){return oo(t)?so(void 0,t.useValue):so(io(t,e,n),Qs)}(t,e,n);if(ao(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&ri()}else{let e=this.records.get(r);e?void 0===e.multi&&ri():(e=so(void 0,Qs,!0),e.factory=()=>Kt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Ys?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===Qs&&(e.value=Ys,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function ro(t){const e=ht(t),n=null!==e?e.factory:be(t);if(null!==n)return n;const r=pt(t);if(null!==r)return r.factory;if(t instanceof Vt)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ne(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[vt]||t[mt]&&t[mt]());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 io(t,e,n){let r=void 0;if(ao(t)){const e=Ct(t);return be(e)||ro(e)}if(oo(t))r=()=>Ct(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Kt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Gt(Ct(t.useExisting));else{const i=Ct(t&&(t.useClass||t.provide));if(i||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return be(i)||ro(i);r=()=>new i(...Kt(t.deps))}var i;return r}function so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function oo(t){return null!==t&&"object"==typeof t&&Ht in t}function ao(t){return"function"==typeof t}const lo=function(t,e,n){return function(t,e=null,n=null,r){const i=eo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let co=(()=>{class t{static create(t,e){return Array.isArray(t)?lo(t,e,""):lo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ft,t.NULL=new Qt,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>Gt(jt)}),t.__NG_ELEMENT_ID__=-1,t})();const uo=new Vt("AnalyzeForEntryComponents");function ho(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,s=0;if(null!==e)for(let o=0;oa(Fe(t[r.index])).target:r.index;if(Ve(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=zo(r,e,s,!1);const t=n.listen(p.name||g,i,s);u.push(s,t),c&&c.push(i,m,f,f+1)}}else s=zo(r,e,s,!0),g.addEventListener(i,s,o),u.push(s),c&&c.push(i,m,f,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ye.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const r=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 i=0;i=0}const Qo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yo(t){return t.substring(Qo.key,Qo.keyEnd)}function Jo(t,e){const n=Qo.textEnd;return n===e?-1:(e=Qo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Qo.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Jo(e,n))re(t,Yo(e),!0)}function ra(t,e,n,r){const i=Xe(),s=tn(),o=dn(2);s.firstUpdatePass&&oa(s,t,o,r),e!==fi&&wo(i,o,e)&&ca(s,s.data[On()+20],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(xr(t)))),t}(e,n),r,o)}function ia(t,e,n,r){const i=tn(),s=dn(2);i.firstUpdatePass&&oa(i,null,s,r);const o=Xe();if(n!==fi&&wo(o,s,n)){const a=i.data[On()+20];if(da(a,r)&&!sa(i,s)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=bt(t,n||"")),Io(i,a,o,n,r)}else!function(t,e,n,r,i,s,o,a){i===fi&&(i=Go);let l=0,c=0,u=0=t.expandoStartIndex}function oa(t,e,n,r){const i=t.data;if(null===i[n+1]){const s=i[On()+20],o=sa(t,n);da(s,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Ye.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=la(n=aa(null,t,e,n,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=aa(i,t,e,n,r),null===s){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Si(r))return t[Ci(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=aa(null,t,e,n[1],r),n=la(n,e.attrs,r),function(t,e,n,r){t[Ci(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else s=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=Ci(t[a+1]);t[r+1]=xi(e,a),0!==e&&(t[e+1]=Ti(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=xi(a,0),0!==a&&(t[a+1]=Ti(t[a+1],r)),a=r;else t[r+1]=xi(l,0),0===a?a=r:t[l+1]=Ti(t[l+1],r),l=r;u&&(t[r+1]=Oi(t[r+1])),Zo(t,c,r,!0),Zo(t,c,r,!1),function(t,e,n,r,i){const s=i?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&se(s,e)>=0&&(n[r+1]=ki(n[r+1]))}(e,c,t,r,s),o=xi(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,n,o,r)}}function aa(t,e,n,r,i){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[i],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[i+1];u===fi&&(u=c?Go:void 0);let h=c?ie(u,r):l===r?u:void 0;if(s&&!ha(h)&&(h=ie(e,r)),ha(h)&&(a=h,o))return a;const d=t[i+1];i=o?Ci(d):Si(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=ie(t,r))}return a}function ha(t){return void 0!==t}function da(t,e){return 0!=(t.flags&(e?16:32))}function pa(t,e=""){const n=Xe(),r=tn(),i=t+20,s=r.firstCreatePass?Ai(r,n[6],t,3,null,null):r.data[i],o=n[i]=function(t,e){return Ve(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Es(r,n,o,s),rn(s,!1)}function ga(t){return fa("",t,""),ga}function fa(t,e,n){const r=Xe(),i=xo(r,t,e,n);return i!==fi&&function(t,e,n){const r=ze(e,t),i=t[11];Ve(i)?i.setValue(r,n):r.textContent=n}(r,On(),i),fa}function ma(t,e,n){ia(re,na,xo(Xe(),t,e,n),!0)}function va(t,e,n){const r=Xe();return wo(r,hn(),e)&&Bi(tn(),Tn(),r,t,e,r[11],n,!0),va}function ya(t,e){const n=qe(t)[1],r=n.data.length-1;kn(n,{directiveStart:r,directiveEnd:r+1})}function wa(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(ke(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=ba(t.inputs),e.declaredInputs=ba(t.declaredInputs),e.outputs=ba(t.outputs);const n=i.hostBindings;n&&Ca(t,n);const s=i.viewQuery,o=i.contentQueries;if(s&&_a(t,s),o&&xa(t,o),lt(t.inputs,i.inputs),lt(t.declaredInputs,i.declaredInputs),lt(t.outputs,i.outputs),ke(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Vn(i.hostAttrs,n=Vn(n,i.hostAttrs))}}(r)}function ba(t){return t===le?{}:t===ce?[]:t}function _a(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function xa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Ca(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}function Oa(t,e,n,r,i){if(t=Ct(t),Array.isArray(t))for(let s=0;s>20;if(ao(t)||!t.multi){const r=new Ln(l,i,So),p=ka(a,e,i?u:u+d,h);-1===p?(er(Yn(c,o),s,a),Sa(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=ka(a,e,u+d,h),g=ka(a,e,u,u+d),f=p>=0&&n[p],m=g>=0&&n[g];if(i&&!m||!i&&!f){er(Yn(c,o),s,a);const u=function(t,e,n,r,i){const s=new Ln(t,n,So);return s.multi=[],s.index=e,s.componentProviders=0,Ta(s,i,r&&!n),s}(i?Pa:Ia,n.length,i,r,l);!i&&m&&(n[g].providerFactory=u),Sa(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Sa(s,t,p>-1?p:g,Ta(n[i?g:p],l,!i&&r));!i&&r&&m&&n[g].componentProviders++}}}function Sa(t,e,n,r){const i=ao(e);if(i||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,s]):o[t+1].push(r,s)}else o.push(n,s)}}}function Ta(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ka(t,e,n,r){for(let i=n;i{n.providersResolver=(n,r)=>function(t,e,n){const r=tn();if(r.firstCreatePass){const i=ke(t);Oa(n,r.data,r.blueprint,i,!0),Oa(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class Ma{}class La{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ra=(()=>{class t{}return t.NULL=new La,t})(),Na=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Da(t),t})();const Da=function(t){return Us(t,nn(),Xe())};class Va{}var ja=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>za(),t})();const za=function(){const t=Xe(),e=Be(nn().index,t);return function(t){const e=t[11];if(Ve(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(xe(e)?e:t)};let Ha=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class Ua{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $a=new Ua("10.0.8");class Ba{constructor(){}supports(t){return mo(t)}create(t){return new Wa(t)}}const qa=(t,e)=>e;class Wa{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||qa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const s=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),s=!0),i=i._next,e++}),this.length=e;return this._truncate(i),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Ga(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),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 r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,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 r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ga{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 Za{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Za,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 Qa(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),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 r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Xa(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 Xa{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}}let tl=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new rt]]}}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=ct({token:t,providedIn:"root",factory:()=>new t([new Ba])}),t})(),el=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new rt]]}}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=ct({token:t,providedIn:"root",factory:()=>new t([new Ya])}),t})();const nl=[new Ya],rl=new tl([new Ba]),il=new el(nl);let sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ol(t,Na),t})();const ol=function(t,e){return $s(t,e,nn(),Xe())};let al=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ll(t,Na),t})();const ll=function(t,e){return Bs(t,e,nn(),Xe())},cl={};class ul extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new pl(e,this.ngModule)}}function hl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const dl=new Vt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qn});class pl extends Ma{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(gi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return hl(this.componentDef.inputs)}get outputs(){return hl(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const s=t.get(n,cl,i);return s!==cl||r===cl?s:e.get(n,r,i)}}}(t,r.injector):t,s=i.get(Va,je),o=i.get(Ha,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ve(t))return t.selectRootElement(e,n===ae.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Pi(l,s.createRenderer(null,this.componentDef),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:qn,clean:hs,playerHandler:null,flags:0},d=zi(0,-1,null,1,0,null,null,null,null,null),p=Ei(null,d,h,u,null,null,s,a,o,i);let g,f;yn(p,null);try{const t=function(t,e,n,r,i,s){const o=n[1];n[20]=t;const a=Ai(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ho(a,l,!0),null!==t&&(Rn(i,t,l),null!==a.classes&&Ds(i,t,a.classes),null!==a.styles&&Ns(i,t,a.styles)));const c=r.createRenderer(t,e),u=Ei(n,Fi(e),null,e.onPush?64:16,n[20],a,r,c,void 0);return o.firstCreatePass&&(er(Yn(a,n),o,e.type),Qi(o,a),Ji(a,n.length,1)),os(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)Rn(a,c,["ng-version",$a.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r0&&Ds(a,c,e.join(" "))}if(f=Ue(d,0),void 0!==e){const t=f.projection=[];for(let n=0;nt(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=nn();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Sn(a.index-20);const t=n[1];Wi(t,e),Gi(t,n,e.hostVars),Zi(e,o)}return o}(t,this.componentDef,p,h,[ya]),Mi(d,p,null)}finally{Cn()}const m=new gl(this.componentType,g,Us(Na,f,p),p,f);return d.node.child=f,m}}class gl extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new js(r),function(t,e,n,r){let i=t.node;null==i&&(t.node=i=Ui(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=t}get injector(){return new cr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const fl=void 0;var ml=["en",[["a","p"],["AM","PM"],fl],[["AM","PM"],fl,fl],[["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"]],fl,[["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"]],fl,[["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}",fl,"{1} 'at' {0}",fl],[".",",",";","%","+","-","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 vl={};function yl(t){return t in vl||(vl[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),vl[t]}var wl=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let bl="en-US";function _l(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(bl=t.toLowerCase().replace(/_/g,"-"))}const xl=new Map;class Cl extends Yt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const n=_e(t),r=t[Rt]||null;r&&_l(r),this._bootstrapComponents=Gn(n.bootstrap),this._r3Injector=eo(t,e,[{provide:Yt,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=co.THROW_IF_NOT_FOUND,n=ot.Default){return t===co||t===Yt||t===jt?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 Ol extends Jt{constructor(t){super(),this.moduleType=t,null!==_e(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,xl.get(t),e),xl.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Cl(this.moduleType,t)}}function Sl(t,e,n){const r=cn()+t,i=Xe();return i[r]===fi?yo(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function Tl(t,e,n,r){return El(Xe(),cn(),t,e,n,r)}function kl(t,e,n,r,i){return function(t,e,n,r,i,s,o){const a=e+n;return bo(t,a,i,s)?yo(t,a+2,o?r.call(o,i,s):r(i,s)):Pl(t,a+2)}(Xe(),cn(),t,e,n,r,i)}function Il(t,e,n,r,i,s,o){return function(t,e,n,r,i,s,o,a,l){const c=e+n;return function(t,e,n,r,i,s){const o=bo(t,e,n,r);return bo(t,e+2,i,s)||o}(t,c,i,s,o,a)?yo(t,c+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):Pl(t,c+4)}(Xe(),cn(),t,e,n,r,i,s,o)}function Pl(t,e){const n=t[e];return n===fi?void 0:n}function El(t,e,n,r,i,s){const o=e+n;return wo(t,o,i)?yo(t,o+1,s?r.call(s,i):r(i)):Pl(t,o+1)}function Al(t,e){const n=tn();let r;const i=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=be(r.type)),o=qt(So),a=Kn(!1),l=s();return Kn(a),qt(o),function(t,e,n,r){const i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(n,Xe(),t,l),l}function Ml(t,e,n){const r=Xe(),i=$e(r,t);return function(t,e){return fo.isWrapped(e)&&(e=fo.unwrap(e),t[un()]=fi),e}(r,function(t,e){return t[1].data[e+20].pure}(r,t)?El(r,cn(),e,i.transform,n,i):i.transform(n))}const Ll=class extends C{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,s=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,i,s);return t instanceof h&&t.add(o),o}};function Rl(){return this._results[go()]()}class Nl{constructor(){this.dirty=!0,this._results=[],this.changes=new Ll,this.length=0;const t=go(),e=Nl.prototype;e[t]||(e[t]=Rl)}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){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r0)i.push(a[e/2]);else{const s=o[e+1],a=n[-r];for(let e=10;e{class t{constructor(t){this.appInits=t,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{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Gt(tc,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const nc=new Vt("AppId"),rc={provide:nc,useFactory:function(){return`${ic()}${ic()}${ic()}`},deps:[]};function ic(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sc=new Vt("Platform Initializer"),oc=new Vt("Platform ID"),ac=new Vt("appBootstrapListener");let lc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const cc=new Vt("LocaleId"),uc=new Vt("DefaultCurrencyCode");class hc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const dc=function(t){return new Ol(t)},pc=dc,gc=function(t){return Promise.resolve(dc(t))},fc=function(t){const e=dc(t),n=Gn(_e(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new pl(n)),t},[]);return new hc(e,n)},mc=fc,vc=function(t){return Promise.resolve(fc(t))};let yc=(()=>{class t{constructor(){this.compileModuleSync=pc,this.compileModuleAsync=gc,this.compileModuleAndAllComponentsSync=mc,this.compileModuleAndAllComponentsAsync=vc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const wc=(()=>Promise.resolve(0))();function bc(t){"undefined"==typeof Zone?wc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _c{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ll(!1),this.onMicrotaskEmpty=new Ll(!1),this.onStable=new Ll(!1),this.onError=new Ll(!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.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sc(t),Oc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,s,o,a)=>{try{return Tc(t),n.invokeTask(i,s,o,a)}finally{e&&"eventTask"===s.type&&e(),kc(t)}},onInvoke:(e,n,r,i,s,o,a)=>{try{return Tc(t),e.invoke(r,i,s,o,a)}finally{kc(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Sc(t),Oc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_c.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_c.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,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,t,Cc,xc,xc);try{return i.runTask(s,e,n)}finally{i.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function xc(){}const Cc={};function Oc(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 Sc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Tc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function kc(t){t._nesting--,Oc(t)}class Ic{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ll,this.onMicrotaskEmpty=new Ll,this.onStable=new Ll,this.onError=new Ll}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,r){return t.apply(e,n)}}let Pc=(()=>{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:()=>{_c.assertNotInAngularZone(),bc(()=>{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())bc(()=>{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 r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,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/dist/task-tracking.js" 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)(Gt(_c))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ec=(()=>{class t{constructor(){this._applications=new Map,Lc.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 Lc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Ac{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Mc,Lc=new Ac;const Rc=new Vt("AllowMultipleToken");class Nc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const r="Platform: "+e,i=new Vt(r);return(e=[])=>{let s=Vc();if(!s||s.injector.get(Rc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Ks,useValue:"platform"});!function(t){if(Mc&&!Mc.destroyed&&!Mc.injector.get(Rc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Mc=t.get(jc);const e=t.get(sc,null);e&&e.forEach(t=>t())}(co.create({providers:t,name:r}))}return function(t){const e=Vc();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}(i)}}function Vc(){return Mc&&!Mc.destroyed?Mc:null}let jc=(()=>{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 Ic:("zone.js"===t?void 0:t)||new _c({enableLongStackTrace:kr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:_c,useValue:n}];return n.run(()=>{const e=co.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(fr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>Hc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const r=n();return Do(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(s,n,()=>{const t=i.injector.get(ec);return t.runInitializers(),t.donePromise.then(()=>(_l(i.injector.get(cc,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const r=new Ol(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(zc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(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)(Gt(co))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let zc=(()=>{class t{constructor(t,e,n,r,i,s){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_c.assertNotInAngularZone(),bc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{_c.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(t=>{return G()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Y);return r.source=t,r.subjectFactory=n,r})(t));var e}))}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 Ma?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Yt),i=n.create(co.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(Pc,null);return s&&i.injector.get(Ec).registerApplication(i.location.nativeElement,s),this._loadComponent(i),kr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;Hc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ac,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Hc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Gt(_c),Gt(lc),Gt(co),Gt(fr),Gt(Ra),Gt(ec))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Hc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class $c{}const Bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Wc(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Wc(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc),Gt($c,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Wc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Gc=Dc(null,"core",[{provide:oc,useValue:"unknown"},{provide:jc,deps:[co]},{provide:Ec,deps:[]},{provide:lc,deps:[]}]),Zc=[{provide:zc,useClass:zc,deps:[_c,lc,co,fr,Ra,ec]},{provide:dl,deps:[_c],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ec,useClass:ec,deps:[[new rt,tc]]},{provide:yc,useClass:yc,deps:[]},rc,{provide:tl,useFactory:function(){return rl},deps:[]},{provide:el,useFactory:function(){return il},deps:[]},{provide:cc,useFactory:function(t){return _l(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new nt(cc),new rt,new st]]},{provide:uc,useValue:"USD"}];let Kc=(()=>{class t{constructor(t){}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(zc))},providers:Zc}),t})(),Qc=null;function Yc(){return Qc}const Jc=new Vt("DocumentToken");let Xc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:tu,token:t,providedIn:"platform"}),t})();function tu(){return Gt(nu)}const eu=new Vt("Location Initialized");let nu=(()=>{class t extends Xc{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Yc().getLocation(),this._history=Yc().getHistory()}getBaseHrefFromDOM(){return Yc().getBaseHref(this._doc)}onPopState(t){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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){ru()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ru()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jc))},t.\u0275prov=ct({factory:iu,token:t,providedIn:"platform"}),t})();function ru(){return!!window.history.pushState}function iu(){return new nu(Gt(Jc))}function su(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 ou(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 au(t){return t&&"?"!==t[0]?"?"+t:t}let lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:cu,token:t,providedIn:"root"}),t})();function cu(t){const e=Gt(Jc).location;return new hu(Gt(Xc),e&&e.origin||"")}const uu=new Vt("appBaseHref");let hu=(()=>{class t extends lu{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return su(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+au(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+au(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+au(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(Xc),Gt(uu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t extends lu{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){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=su(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+au(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+au(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(Xc),Gt(uu,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),pu=(()=>{class t{constructor(t,e){this._subject=new Ll,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ou(fu(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+au(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,fu(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+au(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+au(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(Gt(lu),Gt(Xc))},t.normalizeQueryParams=au,t.joinWithSlash=su,t.stripTrailingSlash=ou,t.\u0275prov=ct({factory:gu,token:t,providedIn:"root"}),t})();function gu(){return new pu(Gt(lu),Gt(Xc))}function fu(t){return t.replace(/\/index.html$/,"")}var mu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class vu{}let yu=(()=>{class t extends vu{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=yl(e);if(n)return n;const r=e.split("-")[0];if(n=yl(r),n)return n;if("en"===r)return ml;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[wl.PluralCase]}(e||this.locale)(t)){case mu.Zero:return"zero";case mu.One:return"one";case mu.Two:return"two";case mu.Few:return"few";case mu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Gt(cc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function wu(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let bu=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,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&&(mo(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 "+wt(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)(So(tl),So(el),So(Na),So(Fa))},t.\u0275dir=ve({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class _u{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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 xu=(()=>{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){kr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new _u(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Cu(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new Cu(t,i);e.push(s)}});for(let n=0;n{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)(So(al),So(sl),So(tl))},t.\u0275dir=ve({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Cu{constructor(t,e){this.record=t,this.view=e}}let Ou=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Su,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){Tu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Tu("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)(So(al),So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Su{constructor(){this.$implicit=null,this.ngIf=null}}function Tu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}let ku=(()=>{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,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`: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)(So(Na),So(el),So(Fa))},t.\u0275dir=ve({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Iu=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){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&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(So(al))},t.\u0275dir=ve({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ee]}),t})(),Pu=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:vu,useClass:yu}]}),t})(),Eu=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new Au(Gt(Jc),window,Gt(fr))}),t})();class Au{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(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,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Mu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Mu,Qc||(Qc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Ru||(Ru=document.querySelector("base"),Ru)?Ru.getAttribute("href"):null;return null==e?null:(n=e,Lu||(Lu=document.createElement("a")),Lu.setAttribute("href",n),"/"===Lu.pathname.charAt(0)?Lu.pathname:"/"+Lu.pathname);var n}resetBaseElement(){Ru=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return wu(document.cookie,t)}}let Lu,Ru=null;const Nu=new Vt("TRANSITION_ID"),Du=[{provide:tc,useFactory:function(t,e,n){return()=>{n.get(ec).donePromise.then(()=>{const n=Yc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Nu,Jc,co],multi:!0}];class Vu{static init(){var t;t=new Vu,Lc=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Yc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ju=new Vt("EventManagerPlugins");let Fu=(()=>{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 r=0;r{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=ct({token:t,factory:t.\u0275fac}),t})(),Uu=(()=>{class t extends Hu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Yc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const $u={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/"},Bu=/%COMP%/g;function qu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Gu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Zu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ae.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ku(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ae.Native:case ae.ShadowDom:return new Qu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=qu(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)(Gt(Fu),Gt(Uu),Gt(nc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Zu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS($u[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,r){if(r){e=r+":"+e;const i=$u[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=$u[n];r?t.removeAttributeNS(r,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,r){r&ja.DashCase?t.style.setProperty(e,n,r&ja.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ja.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,Wu(n)):this.eventManager.addEventListener(t,e,Wu(n))}}class Ku extends Zu{constructor(t,e,n,r){super(t),this.component=n;const i=qu(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Bu,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Bu,t)}(r+"-"+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 Qu extends Zu{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ae.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=qu(r.id,r.styles,[]);for(let s=0;s{class t extends zu{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)(Gt(Jc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Ju=["alt","control","meta","shift"],Xu={"\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"},th={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"},eh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let nh=(()=>{class t extends zu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),s=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yc().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let s="";if(Ju.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,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&&th.hasOwnProperty(e)&&(e=th[e]))}return Xu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ju.forEach(r=>{r!=n&&(0,eh[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return Gt(ih)},token:t,providedIn:"root"}),t})(),ih=(()=>{class t extends rh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Yr.NONE:return e;case Yr.HTML:return Cr(e,"HTML")?xr(e):Kr(this._doc,String(e));case Yr.STYLE:return Cr(e,"Style")?xr(e):e;case Yr.SCRIPT:if(Cr(e,"Script"))return xr(e);throw new Error("unsafe value used in a script context");case Yr.URL:return Or(e),Cr(e,"URL")?xr(e):Mr(String(e));case Yr.RESOURCE_URL:if(Cr(e,"ResourceURL"))return xr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new vr(t)}bypassSecurityTrustStyle(t){return new yr(t)}bypassSecurityTrustScript(t){return new wr(t)}bypassSecurityTrustUrl(t){return new br(t)}bypassSecurityTrustResourceUrl(t){return new _r(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jc))},t.\u0275prov=ct({factory:function(){return t=Gt(jt),new ih(t.get(Jc));var t},token:t,providedIn:"root"}),t})();const sh=Dc(Gc,"browser",[{provide:oc,useValue:"browser"},{provide:sc,useValue:function(){Mu.makeCurrent(),Vu.init()},multi:!0},{provide:Jc,useFactory:function(){return function(t){Ne=t}(document),document},deps:[]}]),oh=[[],{provide:Ks,useValue:"root"},{provide:fr,useFactory:function(){return new fr},deps:[]},{provide:ju,useClass:Yu,multi:!0,deps:[Jc,_c,oc]},{provide:ju,useClass:nh,multi:!0,deps:[Jc]},[],{provide:Gu,useClass:Gu,deps:[Fu,Uu,nc]},{provide:Va,useExisting:Gu},{provide:Hu,useExisting:Uu},{provide:Uu,useClass:Uu,deps:[Jc]},{provide:Pc,useClass:Pc,deps:[_c]},{provide:Fu,useClass:Fu,deps:[ju,_c]},[]];let ah=(()=>{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:nc,useValue:e.appId},{provide:Nu,useExisting:nc},Du]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(t,12))},providers:oh,imports:[Pu,Kc]}),t})();function lh(...t){let e=t[t.length-1];return S(e)?(t.pop(),j(t,e)):q(t)}function ch(t){return!!t&&(t instanceof y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function uh(...t){if(1===t.length){const e=t[0];if(l(e))return hh(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return hh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return hh(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(N(t=>e(...t)))}return hh(t,null)}function hh(t,e){return new y(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}function dh(){return B(1)}function ph(...t){return dh()(lh(...t))}"undefined"!=typeof window&&window;const gh=new y(t=>t.complete());function fh(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):gh}function mh(t){return new y(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?F(n):fh()).subscribe(e)})}const vh=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function yh(t){return e=>0===t?fh():e.lift(new wh(t))}class wh{constructor(t){if(this.total=t,this.total<0)throw new vh}call(t,e){return e.subscribe(new bh(t,this.total))}}class bh extends g{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()))}}class _h extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class xh extends _h{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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,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=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class Ch extends xh{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)}}let Oh=(()=>{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 Sh extends Oh{constructor(t,e=Oh.now){super(t,()=>Sh.delegate&&Sh.delegate!==this?Sh.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Sh.delegate&&Sh.delegate!==this?Sh.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}}}class Th extends Sh{}const kh=new Th(Ch);let Ih=(()=>{class t{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 lh(this.value);case"E":return t=this.error,new y(e=>e.error(t));case"C":return fh()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Ph extends g{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ph.dispatch,this.delay,new Eh(t,this.destination)))}_next(t){this.scheduleMessage(Ih.createNext(t))}_error(t){this.scheduleMessage(Ih.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ih.createComplete()),this.unsubscribe()}}class Eh{constructor(t,e){this.notification=t,this.destination=e}}class Ah extends C{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Mh(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let s;if(this.closed)throw new b;if(this.isStopped||this.hasError?s=h.EMPTY:(this.observers.push(t),s=new _(this,t)),r&&t.add(t=new Ph(t,r)),e)for(let o=0;oe&&(s=Math.max(s,i-e)),s>0&&r.splice(0,s),r}}class Mh{constructor(t,e){this.time=t,this.value=e}}function Lh(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,s,o=0,a=!1,l=!1;return function(c){o++,i&&!a||(a=!1,i=new Ah(t,e,r),s=c.subscribe({next(t){i.next(t)},error(t){a=!0,i.error(t)},complete(){l=!0,s=void 0,i.complete()}}));const u=i.subscribe(this);this.add(()=>{o--,u.unsubscribe(),s&&!l&&n&&0===o&&(s.unsubscribe(),s=void 0,i=void 0)})}}(r))}function Rh(t,e){return z(t,e,1)}function Nh(t,e){return"function"==typeof e?n=>n.pipe(Nh((n,r)=>F(t(n,r)).pipe(N((t,i)=>e(n,t,r,i))))):e=>e.lift(new Dh(t))}class Dh{constructor(t){this.project=t}call(t,e){return e.subscribe(new Vh(t,this.project))}}class Vh extends R{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(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const i=new T(this,e,n),s=this.destination;s.add(i),this.innerSubscription=L(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,i){this.destination.next(e)}}class jh{}let Fh=(()=>{class t extends jh{getTranslation(t){return lh({})}}return t.\u0275fac=function(e){return zh(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const zh=hr(Fh);class Hh{}let Uh=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function $h(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,i,s=typeof t;if(s==typeof e&&"object"==s){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in i=Object.create(null),t){if(!$h(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r{class t extends Wh{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!Bh(t)||!Bh(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return Bh(r)?r:t}):t}}return t.\u0275fac=function(e){return Zh(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Zh=hr(Gh);class Kh{}let Qh=(()=>{class t extends Kh{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return Yh(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Yh=hr(Qh);class Jh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Ll,this.onLangChange=new Ll,this.onDefaultLangChange=new Ll}}const Xh=new Vt("USE_STORE"),td=new Vt("USE_DEFAULT_LANG"),ed=new Vt("DEFAULT_LANGUAGE"),nd=new Vt("USE_EXTEND");let rd=(()=>{class t{constructor(t,e,n,r,i,s=!0,o=!1,a=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=i,this.useDefaultLang=s,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new Ll,this._onLangChange=new Ll,this._onDefaultLangChange=new Ll,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(yh(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return lh(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(yh(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),lh(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Lh(1),yh(1));return this.loadingTranslations=e.pipe(N(e=>this.compiler.compileTranslations(e,t)),Lh(1),yh(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let r=Object.assign({},e);return qh(e)&&qh(n)&&Object.keys(n).forEach(i=>{qh(n[i])?i in e?r[i]=t(e[i],n[i]):Object.assign(r,{[i]:n[i]}):Object.assign(r,{[i]:n[i]})}),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},i=!1;for(let s of e)r[s]=this.getParsedResult(t,s,n),ch(r[s])&&(i=!0);return i?uh(e.map(t=>ch(r[t])?r[t]:lh(r[t]))).pipe(N(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n})):r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!Bh(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Rh(n=>ch(n=this.getParsedResult(n,t,e))?n:lh(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return ch(n)?n:lh(n)}}getStreamOnTranslationChange(t,e){if(!Bh(t)||!t.length)throw new Error('Parameter "key" required');return ph(mh(()=>this.get(t,e)),this.onTranslationChange.pipe(Nh(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:lh(r)})))}stream(t,e){if(!Bh(t)||!t.length)throw new Error('Parameter "key" required');return ph(mh(()=>this.get(t,e)),this.onLangChange.pipe(Nh(n=>{const r=this.getParsedResult(n.translations,t,e);return ch(r)?r:lh(r)})))}instant(t,e){if(!Bh(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(ch(n)){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jh),Gt(jh),Gt(Kh),Gt(Wh),Gt(Hh),Gt(td),Gt(Xh),Gt(nd),Gt(ed))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),id=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,t,e);ch(i.subscribe)?i.subscribe(r):r(i)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||!t.length)return t;if($h(t,this.lastKey)&&$h(e,this.lastParams))return this.value;let n;if(Bh(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(So(rd),function(t=ot.Default){const e=qs(!0);if(null!=e||t&ot.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ye({name:"translate",type:t,pure:!1}),t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),sd=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:jh,useClass:Fh},e.compiler||{provide:Kh,useClass:Qh},e.parser||{provide:Wh,useClass:Gh},e.missingTranslationHandler||{provide:Hh,useClass:Uh},Jh,{provide:Xh,useValue:e.isolate},{provide:td,useValue:e.useDefaultLang},{provide:nd,useValue:e.extend},{provide:ed,useValue:e.defaultLanguage},rd]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:jh,useClass:Fh},e.compiler||{provide:Kh,useClass:Qh},e.parser||{provide:Wh,useClass:Gh},e.missingTranslationHandler||{provide:Hh,useClass:Uh},{provide:Xh,useValue:e.isolate},{provide:td,useValue:e.useDefaultLang},{provide:nd,useValue:e.extend},{provide:ed,useValue:e.defaultLanguage},rd]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();class od{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}function ad(t,e){return function(n){return n.lift(new ld(t,e))}}class ld{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new cd(t,this.predicate,this.thisArg))}}class cd extends g{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)}}class ud{}class hd{}class dd{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),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}: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 dd?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 dd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof dd?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 r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.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 pd{encodeKey(t){return gd(t)}encodeValue(t){return gd(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function gd(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,"/")}class fd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new pd,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.split("&").forEach(t=>{const r=t.indexOf("="),[i,s]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,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"})}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 fd({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(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(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)}}function md(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function vd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function yd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class wd{constructor(t,e,n,r){let i;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)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new dd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new wd(e,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}var bd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class _d{constructor(t,e=200,n="OK"){this.headers=t.headers||new dd,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 xd extends _d{constructor(t={}){super(t),this.type=bd.ResponseHeader}clone(t={}){return new xd({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 Cd extends _d{constructor(t={}){super(t),this.type=bd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cd({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 Od extends _d{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 Sd(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Td=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof wd)r=t;else{let i=void 0;i=n.headers instanceof dd?n.headers:new dd(n.headers);let s=void 0;n.params&&(s=n.params instanceof fd?n.params:new fd({fromObject:n.params})),r=new wd(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=lh(r).pipe(Rh(t=>this.handler.handle(t)));if(t instanceof wd||"events"===n.observe)return i;const s=i.pipe(ad(t=>t instanceof Cd));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(N(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(N(t=>t.body))}case"response":return s;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 fd).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,Sd(n,e))}post(t,e,n={}){return this.request("POST",t,Sd(n,e))}put(t,e,n={}){return this.request("PUT",t,Sd(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Gt(ud))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class kd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Id=new Vt("HTTP_INTERCEPTORS");let Pd=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Ed=/^\)\]\}',?\n/;class Ad{}let Md=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ld=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new 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 r=t.serializeBody();let i=null;const s=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",s=new dd(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 i=new xd({headers:s,status:e,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Ed,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Cd({body:l,headers:r,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new Od({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=s(),i=new Od({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let l=!1;const c=r=>{l||(e.next(s()),l=!0);let i={type:bd.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:bd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:bd.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ad))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Rd=new Vt("XSRF_COOKIE_NAME"),Nd=new Vt("XSRF_HEADER_NAME");class Dd{}let Vd=(()=>{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=wu(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jc),Gt(oc),Gt(Rd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),jd=(()=>{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 r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Dd),Gt(Nd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Fd=(()=>{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(Id,[]);this.chain=t.reduceRight((t,e)=>new kd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(hd),Gt(co))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),zd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:jd,useClass:Pd}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Rd,useValue:e.cookieName}:[],e.headerName?{provide:Nd,useValue:e.headerName}:[]]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[jd,{provide:Id,useExisting:jd,multi:!0},{provide:Dd,useClass:Vd},{provide:Rd,useValue:"XSRF-TOKEN"},{provide:Nd,useValue:"X-XSRF-TOKEN"}]}),t})(),Hd=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Td,{provide:ud,useClass:Fd},Ld,{provide:hd,useExisting:Ld},Md,{provide:Ad,useExisting:Md}],imports:[[zd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const Ud=["previewImage"];function $d(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-arrows",15),jo("onPrevClick",(function(){return en(t),Ho().showPrev()}))("onNextClick",(function(){return en(t),Ho().showNext()})),Eo()}if(2&t){const t=Ho();ko("prevDisabled",!t.canShowPrev())("nextDisabled",!t.canShowNext())("arrowPrevIcon",t.arrowPrevIcon)("arrowNextIcon",t.arrowNextIcon)}}function Bd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",16),jo("onClick",(function(n){en(t);const r=e.$implicit,i=Ho();return r.onClick(n,i.index)})),Eo()}if(2&t){const t=e.$implicit;ko("icon",t.icon)("disabled",t.disabled)("titleText",t.titleText)}}function qd(t,e){if(1&t&&(Po(0,"a",17),Ao(1,"i"),Eo()),2&t){const t=Ho();ko("href",t.src,Xr),bi(1),ma("ngx-gallery-icon-content ",t.downloadIcon,"")}}function Wd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",18),jo("onClick",(function(){return en(t),Ho().zoomOut()})),Eo()}if(2&t){const t=Ho();ko("icon",t.zoomOutIcon)("disabled",!t.canZoomOut())}}function Gd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",18),jo("onClick",(function(){return en(t),Ho().zoomIn()})),Eo()}if(2&t){const t=Ho();ko("icon",t.zoomInIcon)("disabled",!t.canZoomIn())}}function Zd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",7),jo("onClick",(function(){return en(t),Ho().rotateLeft()})),Eo()}2&t&&ko("icon",Ho().rotateLeftIcon)}function Kd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",7),jo("onClick",(function(){return en(t),Ho().rotateRight()})),Eo()}2&t&&ko("icon",Ho().rotateRightIcon)}function Qd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",7),jo("onClick",(function(){return en(t),Ho().manageFullscreen()})),Eo()}2&t&&ko("icon","ngx-gallery-fullscreen "+Ho().fullscreenIcon)}function Yd(t,e){if(1&t){const t=No();Po(0,"img",19,20),jo("click",(function(e){return en(t),e.stopPropagation()}))("mouseenter",(function(){return en(t),Ho().imageMouseEnter()}))("mouseleave",(function(){return en(t),Ho().imageMouseLeave()}))("mousedown",(function(e){return en(t),Ho().mouseDownHandler(e)}))("touchstart",(function(e){return en(t),Ho().mouseDownHandler(e)})),Eo()}if(2&t){const t=Ho();ta("transform",t.getTransform())("left",t.positionLeft+"px")("top",t.positionTop+"px"),ea("ngx-gallery-active",!t.loading)("animation",t.animation)("ngx-gallery-grab",t.canDragOnZoom()),ko("src",t.src,Xr)}}function Jd(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-bullets",21),jo("onChange",(function(e){return en(t),Ho().showAtIndex(e)})),Eo()}if(2&t){const t=Ho();ko("count",t.images.length)("active",t.index)}}function Xd(t,e){if(1&t){const t=No();Po(0,"div",22),jo("click",(function(e){return en(t),e.stopPropagation()})),Eo()}2&t&&ko("innerHTML",Ho().description,Jr)}function tp(t,e){if(1&t){const t=No();Po(0,"ngx-gallery-action",7),jo("onClick",(function(n){en(t);const r=e.$implicit,i=Ho().$implicit;return r.onClick(n,i.index)})),Eo()}if(2&t){const t=e.$implicit;ko("icon",t.icon)("disabled",t.disabled)("titleText",t.titleText)}}function ep(t,e){if(1&t){const t=No();Po(0,"div",8),jo("click",(function(e){return en(t),e.stopPropagation()})),Eo()}if(2&t){const t=Ho().$implicit;ko("innerHTML",Ho().descriptions[t.index],Jr)}}const np=function(t,e,n,r){return{"ngx-gallery-active":t,"ngx-gallery-inactive-left":e,"ngx-gallery-inactive-right":n,"ngx-gallery-clickable":r}};function rp(t,e){if(1&t){const t=No();Po(0,"div",3),jo("click",(function(n){en(t);const r=e.$implicit;return Ho().handleClick(n,r.index)})),Po(1,"div",4),Co(2,tp,1,3,"ngx-gallery-action",5),Eo(),Co(3,ep,1,1,"div",6),Eo()}if(2&t){const t=e.$implicit,n=Ho();ta("background-image",n.getSafeUrl(t.src)),ko("ngClass",Il(5,np,n.selectedIndex==t.index,n.selectedIndex>t.index,n.selectedIndex{let t=class{constructor(t){this.renderer=t,this.swipeHandlers=new Map}manageSwipe(t,e,n,r,i){const s=this.getSwipeHandlers(n);try{t&&!s?this.swipeHandlers.set(n,[this.renderer.listen(e.nativeElement,"swipeleft",()=>r()),this.renderer.listen(e.nativeElement,"swiperight",()=>i())]):!t&&s&&(s.map(t=>t()),this.removeSwipeHandlers(n))}catch(o){}}validateUrl(t){return t.replace?t.replace(new RegExp(" ","g"),"%20").replace(new RegExp("'","g"),"%27"):t}getBackgroundUrl(t){return"url('"+this.validateUrl(t)+"')"}getSwipeHandlers(t){return this.swipeHandlers.get(t)}removeSwipeHandlers(t){this.swipeHandlers.delete(t)}};return t.\u0275fac=function(e){return new(e||t)(Gt(Fa))},t.\u0275prov=ct({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),vp=(()=>{class t{}return t.Fade="fade",t.Slide="slide",t.Rotate="rotate",t.Zoom="zoom",t})(),yp=(()=>{class t{}return t.Cover="cover",t.Contain="contain",t})(),wp=(()=>{class t{}return t.ThumbnailsTop="thumbnails-top",t.ThumbnailsBottom="thumbnails-bottom",t})(),bp=(()=>{class t{}return t.Column=1,t.Row=2,t.Page=3,t})();class _p{constructor(t){this.icon=t.icon,this.disabled=!!t.disabled&&t.disabled,this.titleText=t.titleText?t.titleText:"",this.onClick=t.onClick}}class xp{constructor(t){const e=void 0!==t.breakpoint;function n(n,r){return t&&(void 0!==n||e)?n:r}this.breakpoint=n(t.breakpoint,void 0),this.width=n(t.width,"500px"),this.height=n(t.height,"400px"),this.fullWidth=n(t.fullWidth,!1),this.layout=n(t.layout,wp.ThumbnailsBottom),this.startIndex=n(t.startIndex,0),this.linkTarget=n(t.linkTarget,"_blank"),this.lazyLoading=n(t.lazyLoading,!0),this.image=n(t.image,!0),this.imagePercent=n(t.imagePercent,75),this.imageArrows=n(t.imageArrows,!0),this.imageArrowsAutoHide=n(t.imageArrowsAutoHide,!1),this.imageSwipe=n(t.imageSwipe,!1),this.imageAnimation=n(t.imageAnimation,vp.Fade),this.imageSize=n(t.imageSize,yp.Cover),this.imageAutoPlay=n(t.imageAutoPlay,!1),this.imageAutoPlayInterval=n(t.imageAutoPlayInterval,2e3),this.imageAutoPlayPauseOnHover=n(t.imageAutoPlayPauseOnHover,!1),this.imageInfinityMove=n(t.imageInfinityMove,!1),t&&t.imageActions&&t.imageActions.length&&(t.imageActions=t.imageActions.map(t=>new _p(t))),this.imageActions=n(t.imageActions,[]),this.imageDescription=n(t.imageDescription,!1),this.imageBullets=n(t.imageBullets,!1),this.thumbnails=n(t.thumbnails,!0),this.thumbnailsColumns=n(t.thumbnailsColumns,4),this.thumbnailsRows=n(t.thumbnailsRows,1),this.thumbnailsPercent=n(t.thumbnailsPercent,25),this.thumbnailsMargin=n(t.thumbnailsMargin,10),this.thumbnailsArrows=n(t.thumbnailsArrows,!0),this.thumbnailsArrowsAutoHide=n(t.thumbnailsArrowsAutoHide,!1),this.thumbnailsSwipe=n(t.thumbnailsSwipe,!1),this.thumbnailsMoveSize=n(t.thumbnailsMoveSize,1),this.thumbnailsOrder=n(t.thumbnailsOrder,bp.Column),this.thumbnailsRemainingCount=n(t.thumbnailsRemainingCount,!1),this.thumbnailsAsLinks=n(t.thumbnailsAsLinks,!1),this.thumbnailsAutoHide=n(t.thumbnailsAutoHide,!1),this.thumbnailMargin=n(t.thumbnailMargin,10),this.thumbnailSize=n(t.thumbnailSize,yp.Cover),t&&t.thumbnailActions&&t.thumbnailActions.length&&(t.thumbnailActions=t.thumbnailActions.map(t=>new _p(t))),this.thumbnailActions=n(t.thumbnailActions,[]),this.preview=n(t.preview,!0),this.previewDescription=n(t.previewDescription,!0),this.previewArrows=n(t.previewArrows,!0),this.previewArrowsAutoHide=n(t.previewArrowsAutoHide,!1),this.previewSwipe=n(t.previewSwipe,!1),this.previewFullscreen=n(t.previewFullscreen,!1),this.previewForceFullscreen=n(t.previewForceFullscreen,!1),this.previewCloseOnClick=n(t.previewCloseOnClick,!1),this.previewCloseOnEsc=n(t.previewCloseOnEsc,!1),this.previewKeyboardNavigation=n(t.previewKeyboardNavigation,!1),this.previewAnimation=n(t.previewAnimation,!0),this.previewAutoPlay=n(t.previewAutoPlay,!1),this.previewAutoPlayInterval=n(t.previewAutoPlayInterval,2e3),this.previewAutoPlayPauseOnHover=n(t.previewAutoPlayPauseOnHover,!1),this.previewInfinityMove=n(t.previewInfinityMove,!1),this.previewZoom=n(t.previewZoom,!1),this.previewZoomStep=n(t.previewZoomStep,.1),this.previewZoomMax=n(t.previewZoomMax,2),this.previewZoomMin=n(t.previewZoomMin,.5),this.previewRotate=n(t.previewRotate,!1),this.previewDownload=n(t.previewDownload,!1),this.previewCustom=n(t.previewCustom,void 0),this.previewBullets=n(t.previewBullets,!1),this.arrowPrevIcon=n(t.arrowPrevIcon,"fa fa-arrow-circle-left"),this.arrowNextIcon=n(t.arrowNextIcon,"fa fa-arrow-circle-right"),this.closeIcon=n(t.closeIcon,"fa fa-times-circle"),this.fullscreenIcon=n(t.fullscreenIcon,"fa fa-arrows-alt"),this.spinnerIcon=n(t.spinnerIcon,"fa fa-spinner fa-pulse fa-3x fa-fw"),this.zoomInIcon=n(t.zoomInIcon,"fa fa-search-plus"),this.zoomOutIcon=n(t.zoomOutIcon,"fa fa-search-minus"),this.rotateLeftIcon=n(t.rotateLeftIcon,"fa fa-undo"),this.rotateRightIcon=n(t.rotateRightIcon,"fa fa-repeat"),this.downloadIcon=n(t.downloadIcon,"fa fa-arrow-circle-down"),t&&t.actions&&t.actions.length&&(t.actions=t.actions.map(t=>new _p(t))),this.actions=n(t.actions,[])}}class Cp{constructor(t){this.src=t.src,this.index=t.index}}let Op=(()=>{let t=class{constructor(t,e,n,r,i){this.sanitization=t,this.elementRef=e,this.helperService=n,this.renderer=r,this.changeDetectorRef=i,this.showSpinner=!1,this.positionLeft=0,this.positionTop=0,this.zoomValue=1,this.loading=!1,this.rotateValue=0,this.index=0,this.onOpen=new Ll,this.onClose=new Ll,this.onActiveChange=new Ll,this.isOpen=!1,this.initialX=0,this.initialY=0,this.initialLeft=0,this.initialTop=0,this.isMove=!1}ngOnInit(){this.arrows&&this.arrowsAutoHide&&(this.arrows=!1)}ngOnChanges(t){t.swipe&&this.helperService.manageSwipe(this.swipe,this.elementRef,"preview",()=>this.showNext(),()=>this.showPrev())}ngOnDestroy(){this.keyDownListener&&this.keyDownListener()}onMouseEnter(){this.arrowsAutoHide&&!this.arrows&&(this.arrows=!0)}onMouseLeave(){this.arrowsAutoHide&&this.arrows&&(this.arrows=!1)}onKeyDown(t){this.isOpen&&(this.keyboardNavigation&&(this.isKeyboardPrev(t)?this.showPrev():this.isKeyboardNext(t)&&this.showNext()),this.closeOnEsc&&this.isKeyboardEsc(t)&&this.close())}open(t){this.onOpen.emit(),this.index=t,this.isOpen=!0,this.show(!0),this.forceFullscreen&&this.manageFullscreen(),this.keyDownListener=this.renderer.listen("window","keydown",t=>this.onKeyDown(t))}close(){this.isOpen=!1,this.closeFullscreen(),this.onClose.emit(),this.stopAutoPlay(),this.keyDownListener&&this.keyDownListener()}imageMouseEnter(){this.autoPlay&&this.autoPlayPauseOnHover&&this.stopAutoPlay()}imageMouseLeave(){this.autoPlay&&this.autoPlayPauseOnHover&&this.startAutoPlay()}startAutoPlay(){this.autoPlay&&(this.stopAutoPlay(),this.timer=setTimeout(()=>{this.showNext()||(this.index=-1,this.showNext())},this.autoPlayInterval))}stopAutoPlay(){this.timer&&clearTimeout(this.timer)}showAtIndex(t){this.index=t,this.show()}showNext(){return!!this.canShowNext()&&(this.index++,this.index===this.images.length&&(this.index=0),this.show(),!0)}showPrev(){this.canShowPrev()&&(this.index--,this.index<0&&(this.index=this.images.length-1),this.show())}canShowNext(){return!this.loading&&!!this.images&&!!(this.infinityMove||this.index0)}manageFullscreen(){if(this.fullscreen||this.forceFullscreen){const t=document;t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?this.closeFullscreen():this.openFullscreen()}}getSafeUrl(t){return"data:image"===t.substr(0,10)?t:this.sanitization.bypassSecurityTrustUrl(t)}zoomIn(){this.canZoomIn()&&(this.zoomValue+=this.zoomStep,this.zoomValue>this.zoomMax&&(this.zoomValue=this.zoomMax))}zoomOut(){this.canZoomOut()&&(this.zoomValue-=this.zoomStep,this.zoomValuethis.zoomMin}canDragOnZoom(){return this.zoom&&this.zoomValue>1}mouseDownHandler(t){this.canDragOnZoom()&&(this.initialX=this.getClientX(t),this.initialY=this.getClientY(t),this.initialLeft=this.positionLeft,this.initialTop=this.positionTop,this.isMove=!0,t.preventDefault())}mouseUpHandler(t){this.isMove=!1}mouseMoveHandler(t){this.isMove&&(this.positionLeft=this.initialLeft+(this.getClientX(t)-this.initialX),this.positionTop=this.initialTop+(this.getClientY(t)-this.initialY))}getClientX(t){return t.touches&&t.touches.length?t.touches[0].clientX:t.clientX}getClientY(t){return t.touches&&t.touches.length?t.touches[0].clientY:t.clientY}resetPosition(){this.zoom&&(this.positionLeft=0,this.positionTop=0)}isKeyboardNext(t){return 39===t.keyCode}isKeyboardPrev(t){return 37===t.keyCode}isKeyboardEsc(t){return 27===t.keyCode}openFullscreen(){const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}closeFullscreen(){if(this.isFullscreen()){const t=document;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()}}isFullscreen(){const t=document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement}show(t=!1){this.loading=!0,this.stopAutoPlay(),this.onActiveChange.emit(this.index),t||!this.animation?this._show():setTimeout(()=>this._show(),600)}_show(){this.zoomValue=1,this.rotateValue=0,this.resetPosition(),this.src=this.getSafeUrl(this.images[this.index]),this.srcIndex=this.index,this.description=this.descriptions[this.index],this.changeDetectorRef.markForCheck(),setTimeout(()=>{this.isLoaded(this.previewImage.nativeElement)?(this.loading=!1,this.startAutoPlay(),this.changeDetectorRef.markForCheck()):(setTimeout(()=>{this.loading&&(this.showSpinner=!0,this.changeDetectorRef.markForCheck())}),this.previewImage.nativeElement.onload=()=>{this.loading=!1,this.showSpinner=!1,this.previewImage.nativeElement.onload=null,this.startAutoPlay(),this.changeDetectorRef.markForCheck()})})}isLoaded(t){return!!t.complete&&(void 0===t.naturalWidth||0!==t.naturalWidth)}};return t.\u0275fac=function(e){return new(e||t)(So(rh),So(Na),So(mp),So(Fa),So(Ws))},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-preview"]],viewQuery:function(t,e){var n;1&t&&Wl(Ud,!0),2&t&&Bl(n=Kl())&&(e.previewImage=n.first)},hostBindings:function(t,e){1&t&&jo("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{arrows:"arrows",images:"images",descriptions:"descriptions",showDescription:"showDescription",arrowsAutoHide:"arrowsAutoHide",swipe:"swipe",fullscreen:"fullscreen",forceFullscreen:"forceFullscreen",closeOnClick:"closeOnClick",closeOnEsc:"closeOnEsc",keyboardNavigation:"keyboardNavigation",arrowPrevIcon:"arrowPrevIcon",arrowNextIcon:"arrowNextIcon",closeIcon:"closeIcon",fullscreenIcon:"fullscreenIcon",spinnerIcon:"spinnerIcon",autoPlay:"autoPlay",autoPlayInterval:"autoPlayInterval",autoPlayPauseOnHover:"autoPlayPauseOnHover",infinityMove:"infinityMove",zoom:"zoom",zoomStep:"zoomStep",zoomMax:"zoomMax",zoomMin:"zoomMin",zoomInIcon:"zoomInIcon",zoomOutIcon:"zoomOutIcon",animation:"animation",actions:"actions",rotate:"rotate",rotateLeftIcon:"rotateLeftIcon",rotateRightIcon:"rotateRightIcon",download:"download",downloadIcon:"downloadIcon",bullets:"bullets"},outputs:{onOpen:"onOpen",onClose:"onClose",onActiveChange:"onActiveChange"},features:[Ee],decls:18,vars:17,consts:[[3,"prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick",4,"ngIf"],[1,"ngx-gallery-preview-top"],[1,"ngx-gallery-preview-icons"],[3,"icon","disabled","titleText","onClick",4,"ngFor","ngForOf"],["class","ngx-gallery-icon","aria-hidden","true","download","",3,"href",4,"ngIf"],[3,"icon","disabled","onClick",4,"ngIf"],[3,"icon","onClick",4,"ngIf"],[3,"icon","onClick"],[1,"ngx-spinner-wrapper","ngx-gallery-center"],["aria-hidden","true"],[1,"ngx-gallery-preview-wrapper",3,"click","mouseup","mousemove","touchend","touchmove"],[1,"ngx-gallery-preview-img-wrapper"],["class","ngx-gallery-preview-img ngx-gallery-center",3,"src","ngx-gallery-active","animation","ngx-gallery-grab","transform","left","top","click","mouseenter","mouseleave","mousedown","touchstart",4,"ngIf"],[3,"count","active","onChange",4,"ngIf"],["class","ngx-gallery-preview-text",3,"innerHTML","click",4,"ngIf"],[3,"prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick"],[3,"icon","disabled","titleText","onClick"],["aria-hidden","true","download","",1,"ngx-gallery-icon",3,"href"],[3,"icon","disabled","onClick"],[1,"ngx-gallery-preview-img","ngx-gallery-center",3,"src","click","mouseenter","mouseleave","mousedown","touchstart"],["previewImage",""],[3,"count","active","onChange"],[1,"ngx-gallery-preview-text",3,"innerHTML","click"]],template:function(t,e){1&t&&(Co(0,$d,1,4,"ngx-gallery-arrows",0),Po(1,"div",1),Po(2,"div",2),Co(3,Bd,1,3,"ngx-gallery-action",3),Co(4,qd,2,4,"a",4),Co(5,Wd,1,2,"ngx-gallery-action",5),Co(6,Gd,1,2,"ngx-gallery-action",5),Co(7,Zd,1,1,"ngx-gallery-action",6),Co(8,Kd,1,1,"ngx-gallery-action",6),Co(9,Qd,1,1,"ngx-gallery-action",6),Po(10,"ngx-gallery-action",7),jo("onClick",(function(){return e.close()})),Eo(),Eo(),Eo(),Po(11,"div",8),Ao(12,"i",9),Eo(),Po(13,"div",10),jo("click",(function(){return e.closeOnClick&&e.close()}))("mouseup",(function(t){return e.mouseUpHandler(t)}))("mousemove",(function(t){return e.mouseMoveHandler(t)}))("touchend",(function(t){return e.mouseUpHandler(t)}))("touchmove",(function(t){return e.mouseMoveHandler(t)})),Po(14,"div",11),Co(15,Yd,2,13,"img",12),Co(16,Jd,1,2,"ngx-gallery-bullets",13),Eo(),Co(17,Xd,1,1,"div",14),Eo()),2&t&&(ko("ngIf",e.arrows),bi(3),ko("ngForOf",e.actions),bi(1),ko("ngIf",e.download&&e.src),bi(1),ko("ngIf",e.zoom),bi(1),ko("ngIf",e.zoom),bi(1),ko("ngIf",e.rotate),bi(1),ko("ngIf",e.rotate),bi(1),ko("ngIf",e.fullscreen),bi(1),ko("icon","ngx-gallery-close "+e.closeIcon),bi(1),ea("ngx-gallery-active",e.showSpinner),bi(1),ma("ngx-gallery-icon ngx-gallery-spinner ",e.spinnerIcon,""),bi(3),ko("ngIf",e.src),bi(1),ko("ngIf",e.bullets),bi(1),ko("ngIf",e.showDescription&&e.description))},directives:function(){return[Ou,xu,Ip,Pp,Ep]},styles:[".ngx-gallery-active[_nghost-%COMP%]{width:100%;height:100%;position:fixed;left:0;top:0;background:rgba(0,0,0,.7);z-index:10000;display:inline-block}[_nghost-%COMP%]{display:none}[_nghost-%COMP%] .ngx-gallery-arrow{font-size:50px}[_nghost-%COMP%] ngx-gallery-bullets{height:5%;-webkit-box-align:center;align-items:center;padding:0}.ngx-gallery-preview-img[_ngcontent-%COMP%]{opacity:0;max-width:90%;max-height:90%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}.ngx-gallery-preview-img.animation[_ngcontent-%COMP%]{-webkit-transition:opacity .5s linear,-webkit-transform .5s;transition:opacity .5s linear,transform .5s,-webkit-transform .5s}.ngx-gallery-preview-img.ngx-gallery-active[_ngcontent-%COMP%]{opacity:1}.ngx-gallery-preview-img.ngx-gallery-grab[_ngcontent-%COMP%]{cursor:grab;cursor:-webkit-grab}.ngx-gallery-icon.ngx-gallery-spinner[_ngcontent-%COMP%]{font-size:50px;left:0;display:inline-block}[_nghost-%COMP%] .ngx-gallery-preview-top{position:absolute;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%] .ngx-gallery-preview-icons{float:right}[_nghost-%COMP%] .ngx-gallery-preview-icons .ngx-gallery-icon{position:relative;margin-right:10px;margin-top:10px;font-size:25px;cursor:pointer;text-decoration:none}[_nghost-%COMP%] .ngx-gallery-preview-icons .ngx-gallery-icon.ngx-gallery-icon-disabled{cursor:default;opacity:.4}.ngx-spinner-wrapper[_ngcontent-%COMP%]{width:50px;height:50px;display:none}.ngx-spinner-wrapper.ngx-gallery-active[_ngcontent-%COMP%]{display:inline-block}.ngx-gallery-center[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;margin:auto;top:0}.ngx-gallery-preview-text[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,.7);padding:10px;text-align:center;color:#fff;font-size:16px;-webkit-box-flex:0;flex:0 1 auto;z-index:10}.ngx-gallery-preview-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-flow:column}.ngx-gallery-preview-img-wrapper[_ngcontent-%COMP%]{-webkit-box-flex:1;flex:1 1 auto;position:relative}"]}),t})(),Sp=(()=>{let t=class{constructor(t,e,n){this.sanitization=t,this.elementRef=e,this.helperService=n,this.onClick=new Ll,this.onActiveChange=new Ll,this.canChangeImage=!0}ngOnInit(){this.arrows&&this.arrowsAutoHide&&(this.arrows=!1),this.autoPlay&&this.startAutoPlay()}ngOnChanges(t){t.swipe&&this.helperService.manageSwipe(this.swipe,this.elementRef,"image",()=>this.showNext(),()=>this.showPrev())}onMouseEnter(){this.arrowsAutoHide&&!this.arrows&&(this.arrows=!0),this.autoPlay&&this.autoPlayPauseOnHover&&this.stopAutoPlay()}onMouseLeave(){this.arrowsAutoHide&&this.arrows&&(this.arrows=!1),this.autoPlay&&this.autoPlayPauseOnHover&&this.startAutoPlay()}reset(t){this.selectedIndex=t}getImages(){if(!this.images)return[];if(this.lazyLoading){let t=[this.selectedIndex],e=this.selectedIndex-1;-1===e&&this.infinityMove?t.push(this.images.length-1):e>=0&&t.push(e);let n=this.selectedIndex+1;return n==this.images.length&&this.infinityMove?t.push(0):n-1!=t.indexOf(n))}return this.images}startAutoPlay(){this.stopAutoPlay(),this.timer=setInterval(()=>{this.showNext()||(this.selectedIndex=-1,this.showNext())},this.autoPlayInterval)}stopAutoPlay(){this.timer&&clearInterval(this.timer)}handleClick(t,e){this.clickable&&(this.onClick.emit(e),t.stopPropagation(),t.preventDefault())}show(t){this.selectedIndex=t,this.onActiveChange.emit(this.selectedIndex),this.setChangeTimeout()}showNext(){return!(!this.canShowNext()||!this.canChangeImage||(this.selectedIndex++,this.selectedIndex===this.images.length&&(this.selectedIndex=0),this.onActiveChange.emit(this.selectedIndex),this.setChangeTimeout(),0))}showPrev(){this.canShowPrev()&&this.canChangeImage&&(this.selectedIndex--,this.selectedIndex<0&&(this.selectedIndex=this.images.length-1),this.onActiveChange.emit(this.selectedIndex),this.setChangeTimeout())}setChangeTimeout(){this.canChangeImage=!1;let t=1e3;this.animation!==vp.Slide&&this.animation!==vp.Fade||(t=500),setTimeout(()=>{this.canChangeImage=!0},t)}canShowNext(){return!!this.images&&!!(this.infinityMove||this.selectedIndex0)}getSafeUrl(t){return this.sanitization.bypassSecurityTrustStyle(this.helperService.getBackgroundUrl(t))}};return t.\u0275fac=function(e){return new(e||t)(So(rh),So(Na),So(mp))},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-image"]],hostBindings:function(t,e){1&t&&jo("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{arrows:"arrows",selectedIndex:"selectedIndex",images:"images",clickable:"clickable",arrowsAutoHide:"arrowsAutoHide",swipe:"swipe",animation:"animation",size:"size",arrowPrevIcon:"arrowPrevIcon",arrowNextIcon:"arrowNextIcon",autoPlay:"autoPlay",autoPlayInterval:"autoPlayInterval",autoPlayPauseOnHover:"autoPlayPauseOnHover",infinityMove:"infinityMove",lazyLoading:"lazyLoading",actions:"actions",descriptions:"descriptions",showDescription:"showDescription",bullets:"bullets"},outputs:{onClick:"onClick",onActiveChange:"onActiveChange"},features:[Ee],decls:4,vars:7,consts:[["class","ngx-gallery-image",3,"ngClass","background-image","click",4,"ngFor","ngForOf"],[3,"count","active","onChange",4,"ngIf"],[3,"class","prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick",4,"ngIf"],[1,"ngx-gallery-image",3,"ngClass","click"],[1,"ngx-gallery-icons-wrapper"],[3,"icon","disabled","titleText","onClick",4,"ngFor","ngForOf"],["class","ngx-gallery-image-text",3,"innerHTML","click",4,"ngIf"],[3,"icon","disabled","titleText","onClick"],[1,"ngx-gallery-image-text",3,"innerHTML","click"],[3,"count","active","onChange"],[3,"prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick"]],template:function(t,e){var n,r,i,s,o;1&t&&(Po(0,"div"),Co(1,rp,4,10,"div",0),Eo(),Co(2,ip,1,2,"ngx-gallery-bullets",1),Co(3,sp,1,7,"ngx-gallery-arrows",2)),2&t&&(n="ngx-gallery-image-wrapper ngx-gallery-animation-",r=e.animation,i=" ngx-gallery-image-size-",s=e.size,o="",ia(re,na,function(t,e,n,r,i,s){const o=bo(t,un(),n,i);return dn(2),o?e+$n(n)+r+$n(i)+s:fi}(Xe(),n,r,i,s,o),!0),bi(1),ko("ngForOf",e.getImages()),bi(1),ko("ngIf",e.bullets),bi(1),ko("ngIf",e.arrows))},directives:function(){return[xu,Ou,bu,Ip,Ep,Pp]},styles:["[_nghost-%COMP%]{width:100%;display:inline-block;position:relative}.ngx-gallery-image-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;top:0;overflow:hidden}.ngx-gallery-image[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;height:100%;width:100%;position:absolute;top:0}.ngx-gallery-image.ngx-gallery-active[_ngcontent-%COMP%]{z-index:1000}.ngx-gallery-image-size-cover[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{background-size:cover}.ngx-gallery-image-size-contain[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{background-size:contain}.ngx-gallery-animation-fade[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{left:0;opacity:0;-webkit-transition:.5s ease-in-out;transition:.5s ease-in-out}.ngx-gallery-animation-fade[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-active[_ngcontent-%COMP%]{opacity:1}.ngx-gallery-animation-slide[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{-webkit-transition:.5s ease-in-out;transition:.5s ease-in-out}.ngx-gallery-animation-slide[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-active[_ngcontent-%COMP%]{left:0}.ngx-gallery-animation-slide[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-inactive-left[_ngcontent-%COMP%]{left:-100%}.ngx-gallery-animation-slide[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-inactive-right[_ngcontent-%COMP%]{left:100%}.ngx-gallery-animation-rotate[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{-webkit-transition:1s;transition:1s;-webkit-transform:scale(3.5,3.5) rotate(90deg);transform:scale(3.5,3.5) rotate(90deg);left:0;opacity:0}.ngx-gallery-animation-rotate[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-active[_ngcontent-%COMP%]{-webkit-transform:scale(1,1) rotate(0);transform:scale(1,1) rotate(0);opacity:1}.ngx-gallery-animation-zoom[_ngcontent-%COMP%] .ngx-gallery-image[_ngcontent-%COMP%]{-webkit-transition:1s;transition:1s;-webkit-transform:scale(2.5,2.5);transform:scale(2.5,2.5);left:0;opacity:0}.ngx-gallery-animation-zoom[_ngcontent-%COMP%] .ngx-gallery-image.ngx-gallery-active[_ngcontent-%COMP%]{-webkit-transform:scale(1,1);transform:scale(1,1);opacity:1}.ngx-gallery-image-text[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,.7);padding:10px;text-align:center;color:#fff;font-size:16px;position:absolute;bottom:0;z-index:10}"]}),t})(),Tp=(()=>{let t=class{constructor(t,e,n){this.sanitization=t,this.elementRef=e,this.helperService=n,this.minStopIndex=0,this.onActiveChange=new Ll,this.index=0}ngOnChanges(t){t.selectedIndex&&this.validateIndex(),t.swipe&&this.helperService.manageSwipe(this.swipe,this.elementRef,"thumbnails",()=>this.moveRight(),()=>this.moveLeft()),this.images&&(this.remainingCountValue=this.images.length-this.rows*this.columns)}onMouseEnter(){this.mouseenter=!0}onMouseLeave(){this.mouseenter=!1}reset(t){this.selectedIndex=t,this.setDefaultPosition(),this.index=0,this.validateIndex()}getImages(){if(!this.images)return[];if(this.remainingCount)return this.images.slice(0,this.rows*this.columns);if(this.lazyLoading&&this.order!=bp.Row){let t=0;return this.order===bp.Column?t=(this.index+this.columns+this.moveSize)*this.rows:this.order===bp.Page&&(t=this.index+this.columns*this.rows*2),t<=this.minStopIndex?t=this.minStopIndex:this.minStopIndex=t,this.images.slice(0,t)}return this.images}handleClick(t,e){this.hasLink(e)||(this.selectedIndex=e,this.onActiveChange.emit(e),t.stopPropagation(),t.preventDefault())}hasLink(t){if(this.links&&this.links.length&&this.links[t])return!0}moveRight(){if(this.canMoveRight()){this.index+=this.moveSize;let t=this.getMaxIndex()-this.columns;this.index>t&&(this.index=t),this.setThumbnailsPosition()}}moveLeft(){this.canMoveLeft()&&(this.index-=this.moveSize,this.index<0&&(this.index=0),this.setThumbnailsPosition())}canMoveRight(){return this.index+this.columnsthis.getVisibleCount())||this.arrowsAutoHide&&!this.mouseenter)}validateIndex(){if(this.images){let t;if(t=this.order===bp.Column?Math.floor(this.selectedIndex/this.rows):this.selectedIndex%Math.ceil(this.images.length/this.rows),this.remainingCount&&(t=0),t=this.index+this.columns){const e=this.getMaxIndex()-this.columns;this.index=t>e?e:t,this.setThumbnailsPosition()}}}getSafeUrl(t){return this.sanitization.bypassSecurityTrustStyle(this.helperService.getBackgroundUrl(t))}getThumbnailPosition(t,e){return this.getSafeStyle("calc("+100/e*t+"% + "+(this.margin-(e-1)*this.margin/e)*t+"px)")}getThumbnailDimension(t){return this.getSafeStyle(0!==this.margin?"calc("+100/t+"% - "+(t-1)*this.margin/t+"px)":"calc("+100/t+"% + 1px)")}getMaxIndex(){if(this.order==bp.Page){let t=Math.floor(this.images.length/this.getVisibleCount())*this.columns;return this.images.length%this.getVisibleCount()>this.columns?t+=this.columns:t+=this.images.length%this.getVisibleCount(),t}return Math.ceil(this.images.length/this.rows)}getVisibleCount(){return this.columns*this.rows}getSafeStyle(t){return this.sanitization.bypassSecurityTrustStyle(t)}};return t.\u0275fac=function(e){return new(e||t)(So(rh),So(Na),So(mp))},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-thumbnails"]],hostBindings:function(t,e){1&t&&jo("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{selectedIndex:"selectedIndex",images:"images",links:"links",labels:"labels",linkTarget:"linkTarget",columns:"columns",rows:"rows",arrows:"arrows",arrowsAutoHide:"arrowsAutoHide",margin:"margin",clickable:"clickable",swipe:"swipe",size:"size",arrowPrevIcon:"arrowPrevIcon",arrowNextIcon:"arrowNextIcon",moveSize:"moveSize",order:"order",remainingCount:"remainingCount",lazyLoading:"lazyLoading",actions:"actions"},outputs:{onActiveChange:"onActiveChange"},features:[Ee],decls:4,vars:9,consts:[[1,"ngx-gallery-thumbnails"],["class","ngx-gallery-thumbnail",3,"href","target","background-image","width","height","left","top","ngClass","click",4,"ngFor","ngForOf"],[3,"prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick",4,"ngIf"],[1,"ngx-gallery-thumbnail",3,"href","target","ngClass","click"],[1,"ngx-gallery-icons-wrapper"],[3,"icon","disabled","titleText","onClick",4,"ngFor","ngForOf"],["class","ngx-gallery-remaining-count-overlay",4,"ngIf"],[3,"icon","disabled","titleText","onClick"],[1,"ngx-gallery-remaining-count-overlay"],[1,"ngx-gallery-remaining-count"],[3,"prevDisabled","nextDisabled","arrowPrevIcon","arrowNextIcon","onPrevClick","onNextClick"]],template:function(t,e){1&t&&(Po(0,"div"),Po(1,"div",0),Co(2,cp,4,19,"a",1),Eo(),Eo(),Co(3,up,1,4,"ngx-gallery-arrows",2)),2&t&&(ma("ngx-gallery-thumbnails-wrapper ngx-gallery-thumbnail-size-",e.size,""),bi(1),ta("transform","translateX("+e.thumbnailsLeft+")")("margin-left",e.thumbnailsMarginLeft),bi(1),ko("ngForOf",e.getImages()),bi(1),ko("ngIf",e.canShowArrows()))},directives:function(){return[xu,Ou,bu,Ip,Pp]},styles:["[_nghost-%COMP%]{width:100%;display:inline-block;position:relative}.ngx-gallery-thumbnails-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden}.ngx-gallery-thumbnails[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out,-webkit-transform .5s ease-in-out;will-change:transform}.ngx-gallery-thumbnails[_ngcontent-%COMP%] .ngx-gallery-thumbnail[_ngcontent-%COMP%]{position:absolute;height:100%;background-position:center;background-repeat:no-repeat;text-decoration:none}.ngx-gallery-thumbnail-size-cover[_ngcontent-%COMP%] .ngx-gallery-thumbnails[_ngcontent-%COMP%] .ngx-gallery-thumbnail[_ngcontent-%COMP%]{background-size:cover}.ngx-gallery-thumbnail-size-contain[_ngcontent-%COMP%] .ngx-gallery-thumbnails[_ngcontent-%COMP%] .ngx-gallery-thumbnail[_ngcontent-%COMP%]{background-size:contain}.ngx-gallery-remaining-count-overlay[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.4)}.ngx-gallery-remaining-count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:30px}"]}),t})(),kp=(()=>{let t=class{constructor(t){this.myElement=t,this.imagesReady=new Ll,this.change=new Ll,this.previewOpen=new Ll,this.previewClose=new Ll,this.previewChange=new Ll,this.oldImagesLength=0,this.selectedIndex=0,this.breakpoint=void 0,this.prevBreakpoint=void 0}ngOnInit(){this.options=this.options.map(t=>new xp(t)),this.sortOptions(),this.setBreakpoint(),this.setOptions(),this.checkFullWidth(),this.currentOptions&&(this.selectedIndex=this.currentOptions.startIndex)}ngDoCheck(){(void 0!==this.images&&this.images.length!==this.oldImagesLength||this.images!==this.oldImages)&&(this.oldImagesLength=this.images.length,this.oldImages=this.images,this.setOptions(),this.setImages(),this.images&&this.images.length&&this.imagesReady.emit(),this.image&&this.image.reset(this.currentOptions.startIndex),this.currentOptions.thumbnailsAutoHide&&this.currentOptions.thumbnails&&this.images.length<=1&&(this.currentOptions.thumbnails=!1,this.currentOptions.imageArrows=!1),this.resetThumbnails())}ngAfterViewInit(){this.checkFullWidth()}onResize(){this.setBreakpoint(),this.prevBreakpoint!==this.breakpoint&&(this.setOptions(),this.resetThumbnails()),this.currentOptions&&this.currentOptions.fullWidth&&(this.fullWidthTimeout&&clearTimeout(this.fullWidthTimeout),this.fullWidthTimeout=setTimeout(()=>{this.checkFullWidth()},200))}getImageHeight(){return this.currentOptions&&this.currentOptions.thumbnails?this.currentOptions.imagePercent+"%":"100%"}getThumbnailsHeight(){return this.currentOptions&&this.currentOptions.image?"calc("+this.currentOptions.thumbnailsPercent+"% - "+this.currentOptions.thumbnailsMargin+"px)":"100%"}getThumbnailsMarginTop(){return this.currentOptions&&this.currentOptions.layout===wp.ThumbnailsBottom?this.currentOptions.thumbnailsMargin+"px":"0px"}getThumbnailsMarginBottom(){return this.currentOptions&&this.currentOptions.layout===wp.ThumbnailsTop?this.currentOptions.thumbnailsMargin+"px":"0px"}openPreview(t){this.currentOptions.previewCustom?this.currentOptions.previewCustom(t):(this.previewEnabled=!0,this.preview.open(t))}onPreviewOpen(){this.previewOpen.emit(),this.image&&this.image.autoPlay&&this.image.stopAutoPlay()}onPreviewClose(){this.previewEnabled=!1,this.previewClose.emit(),this.image&&this.image.autoPlay&&this.image.startAutoPlay()}selectFromImage(t){this.select(t)}selectFromThumbnails(t){this.select(t),this.currentOptions&&this.currentOptions.thumbnails&&this.currentOptions.preview&&(!this.currentOptions.image||this.currentOptions.thumbnailsRemainingCount)&&this.openPreview(this.selectedIndex)}show(t){this.select(t)}showNext(){this.image.showNext()}showPrev(){this.image.showPrev()}canShowNext(){return!(!this.images||!this.currentOptions||!(this.currentOptions.imageInfinityMove||this.selectedIndex0))}previewSelect(t){this.previewChange.emit({index:t,image:this.images[t]})}moveThumbnailsRight(){this.thubmnails.moveRight()}moveThumbnailsLeft(){this.thubmnails.moveLeft()}canMoveThumbnailsRight(){return this.thubmnails.canMoveRight()}canMoveThumbnailsLeft(){return this.thubmnails.canMoveLeft()}resetThumbnails(){this.thubmnails&&this.thubmnails.reset(this.currentOptions.startIndex)}select(t){this.selectedIndex=t,this.change.emit({index:t,image:this.images[t]})}checkFullWidth(){this.currentOptions&&this.currentOptions.fullWidth&&(this.width=document.body.clientWidth+"px",this.left=-(document.body.clientWidth-this.myElement.nativeElement.parentNode.innerWidth)/2+"px")}setImages(){this.smallImages=this.images.map(t=>t.small),this.mediumImages=this.images.map((t,e)=>new Cp({src:t.medium,index:e})),this.bigImages=this.images.map(t=>t.big),this.descriptions=this.images.map(t=>t.description),this.links=this.images.map(t=>t.url),this.labels=this.images.map(t=>t.label)}setBreakpoint(){let t;this.prevBreakpoint=this.breakpoint,"undefined"!=typeof window&&(t=this.options.filter(t=>t.breakpoint>=window.innerWidth).map(t=>t.breakpoint)),this.breakpoint=t&&t.length?t.pop():void 0}sortOptions(){this.options=[...this.options.filter(t=>void 0===t.breakpoint),...this.options.filter(t=>void 0!==t.breakpoint).sort((t,e)=>e.breakpoint-t.breakpoint)]}setOptions(){this.currentOptions=new xp({}),this.options.filter(t=>void 0===t.breakpoint||t.breakpoint>=this.breakpoint).map(t=>this.combineOptions(this.currentOptions,t)),this.width=this.currentOptions.width,this.height=this.currentOptions.height}combineOptions(t,e){Object.keys(e).map(n=>t[n]=void 0!==e[n]?e[n]:t[n])}};return t.\u0275fac=function(e){return new(e||t)(So(Na))},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery"]],viewQuery:function(t,e){var n;1&t&&(Wl(Op,!0),Wl(Sp,!0),Wl(Tp,!0)),2&t&&(Bl(n=Kl())&&(e.preview=n.first),Bl(n=Kl())&&(e.image=n.first),Bl(n=Kl())&&(e.thubmnails=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&jo("resize",(function(){return e.onResize()}),!1,Wn),2&t&&ta("width",e.width)("left",e.left)("height",e.height)},inputs:{options:"options",images:"images"},outputs:{imagesReady:"imagesReady",change:"change",previewOpen:"previewOpen",previewClose:"previewClose",previewChange:"previewChange"},features:[Aa([mp])],decls:4,vars:41,consts:[[3,"height","images","clickable","selectedIndex","arrows","arrowsAutoHide","arrowPrevIcon","arrowNextIcon","swipe","animation","size","autoPlay","autoPlayInterval","autoPlayPauseOnHover","infinityMove","lazyLoading","actions","descriptions","showDescription","bullets","onClick","onActiveChange",4,"ngIf"],[3,"marginTop","marginBottom","height","images","links","labels","linkTarget","selectedIndex","columns","rows","margin","arrows","arrowsAutoHide","arrowPrevIcon","arrowNextIcon","clickable","swipe","size","moveSize","order","remainingCount","lazyLoading","actions","onActiveChange",4,"ngIf"],[3,"images","descriptions","showDescription","arrowPrevIcon","arrowNextIcon","closeIcon","fullscreenIcon","spinnerIcon","arrows","arrowsAutoHide","swipe","fullscreen","forceFullscreen","closeOnClick","closeOnEsc","keyboardNavigation","animation","autoPlay","autoPlayInterval","autoPlayPauseOnHover","infinityMove","zoom","zoomStep","zoomMax","zoomMin","zoomInIcon","zoomOutIcon","actions","rotate","rotateLeftIcon","rotateRightIcon","download","downloadIcon","bullets","onClose","onOpen","onActiveChange"],[3,"images","clickable","selectedIndex","arrows","arrowsAutoHide","arrowPrevIcon","arrowNextIcon","swipe","animation","size","autoPlay","autoPlayInterval","autoPlayPauseOnHover","infinityMove","lazyLoading","actions","descriptions","showDescription","bullets","onClick","onActiveChange"],[3,"images","links","labels","linkTarget","selectedIndex","columns","rows","margin","arrows","arrowsAutoHide","arrowPrevIcon","arrowNextIcon","clickable","swipe","size","moveSize","order","remainingCount","lazyLoading","actions","onActiveChange"]],template:function(t,e){1&t&&(Po(0,"div"),Co(1,hp,1,21,"ngx-gallery-image",0),Co(2,pp,1,27,"ngx-gallery-thumbnails",1),Po(3,"ngx-gallery-preview",2),jo("onClose",(function(){return e.onPreviewClose()}))("onOpen",(function(){return e.onPreviewOpen()}))("onActiveChange",(function(t){return e.previewSelect(t)})),Eo(),Eo()),2&t&&(ma("ngx-gallery-layout ",null==e.currentOptions?null:e.currentOptions.layout,""),bi(1),ko("ngIf",null==e.currentOptions?null:e.currentOptions.image),bi(1),ko("ngIf",null==e.currentOptions?null:e.currentOptions.thumbnails),bi(1),ea("ngx-gallery-active",e.previewEnabled),ko("images",e.bigImages)("descriptions",e.descriptions)("showDescription",null==e.currentOptions?null:e.currentOptions.previewDescription)("arrowPrevIcon",null==e.currentOptions?null:e.currentOptions.arrowPrevIcon)("arrowNextIcon",null==e.currentOptions?null:e.currentOptions.arrowNextIcon)("closeIcon",null==e.currentOptions?null:e.currentOptions.closeIcon)("fullscreenIcon",null==e.currentOptions?null:e.currentOptions.fullscreenIcon)("spinnerIcon",null==e.currentOptions?null:e.currentOptions.spinnerIcon)("arrows",null==e.currentOptions?null:e.currentOptions.previewArrows)("arrowsAutoHide",null==e.currentOptions?null:e.currentOptions.previewArrowsAutoHide)("swipe",null==e.currentOptions?null:e.currentOptions.previewSwipe)("fullscreen",null==e.currentOptions?null:e.currentOptions.previewFullscreen)("forceFullscreen",null==e.currentOptions?null:e.currentOptions.previewForceFullscreen)("closeOnClick",null==e.currentOptions?null:e.currentOptions.previewCloseOnClick)("closeOnEsc",null==e.currentOptions?null:e.currentOptions.previewCloseOnEsc)("keyboardNavigation",null==e.currentOptions?null:e.currentOptions.previewKeyboardNavigation)("animation",null==e.currentOptions?null:e.currentOptions.previewAnimation)("autoPlay",null==e.currentOptions?null:e.currentOptions.previewAutoPlay)("autoPlayInterval",null==e.currentOptions?null:e.currentOptions.previewAutoPlayInterval)("autoPlayPauseOnHover",null==e.currentOptions?null:e.currentOptions.previewAutoPlayPauseOnHover)("infinityMove",null==e.currentOptions?null:e.currentOptions.previewInfinityMove)("zoom",null==e.currentOptions?null:e.currentOptions.previewZoom)("zoomStep",null==e.currentOptions?null:e.currentOptions.previewZoomStep)("zoomMax",null==e.currentOptions?null:e.currentOptions.previewZoomMax)("zoomMin",null==e.currentOptions?null:e.currentOptions.previewZoomMin)("zoomInIcon",null==e.currentOptions?null:e.currentOptions.zoomInIcon)("zoomOutIcon",null==e.currentOptions?null:e.currentOptions.zoomOutIcon)("actions",null==e.currentOptions?null:e.currentOptions.actions)("rotate",null==e.currentOptions?null:e.currentOptions.previewRotate)("rotateLeftIcon",null==e.currentOptions?null:e.currentOptions.rotateLeftIcon)("rotateRightIcon",null==e.currentOptions?null:e.currentOptions.rotateRightIcon)("download",null==e.currentOptions?null:e.currentOptions.previewDownload)("downloadIcon",null==e.currentOptions?null:e.currentOptions.downloadIcon)("bullets",null==e.currentOptions?null:e.currentOptions.previewBullets))},directives:[Ou,Op,Sp,Tp],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{float:left}[_nghost-%COMP%] *{box-sizing:border-box}[_nghost-%COMP%] .ngx-gallery-icon{color:#fff;font-size:25px;position:absolute;z-index:2000;display:inline-block}[_nghost-%COMP%] .ngx-gallery-icon .ngx-gallery-icon-content{display:block}[_nghost-%COMP%] .ngx-gallery-clickable{cursor:pointer}[_nghost-%COMP%] .ngx-gallery-icons-wrapper .ngx-gallery-icon{position:relative;margin-right:5px;margin-top:5px;font-size:20px;cursor:pointer}[_nghost-%COMP%] .ngx-gallery-icons-wrapper{float:right}[_nghost-%COMP%] .ngx-gallery-layout[_ngcontent-%COMP%]{width:100%;height:100%;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}[_nghost-%COMP%] .ngx-gallery-layout.thumbnails-top[_ngcontent-%COMP%] ngx-gallery-image[_ngcontent-%COMP%]{-webkit-box-ordinal-group:3;order:2}[_nghost-%COMP%] .ngx-gallery-layout.thumbnails-top[_ngcontent-%COMP%] ngx-gallery-thumbnails[_ngcontent-%COMP%]{-webkit-box-ordinal-group:2;order:1}[_nghost-%COMP%] .ngx-gallery-layout.thumbnails-bottom[_ngcontent-%COMP%] ngx-gallery-image[_ngcontent-%COMP%]{-webkit-box-ordinal-group:2;order:1}[_nghost-%COMP%] .ngx-gallery-layout.thumbnails-bottom[_ngcontent-%COMP%] ngx-gallery-thumbnails[_ngcontent-%COMP%]{-webkit-box-ordinal-group:3;order:2}"]}),t})(),Ip=(()=>{let t=class{constructor(){this.disabled=!1,this.titleText="",this.onClick=new Ll}handleClick(t){this.disabled||this.onClick.emit(t),t.stopPropagation(),t.preventDefault()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-action"]],inputs:{disabled:"disabled",titleText:"titleText",icon:"icon"},outputs:{onClick:"onClick"},decls:2,vars:6,consts:[["aria-hidden","true",1,"ngx-gallery-icon",3,"title","click"]],template:function(t,e){1&t&&(Po(0,"div",0),jo("click",(function(t){return e.handleClick(t)})),Ao(1,"i"),Eo()),2&t&&(ea("ngx-gallery-icon-disabled",e.disabled),qo("title",e.titleText),bi(1),ma("ngx-gallery-icon-content ",e.icon,""))},styles:[""],changeDetection:0}),t})(),Pp=(()=>{let t=class{constructor(){this.onPrevClick=new Ll,this.onNextClick=new Ll}handlePrevClick(){this.onPrevClick.emit()}handleNextClick(){this.onNextClick.emit()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-arrows"]],inputs:{prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",arrowPrevIcon:"arrowPrevIcon",arrowNextIcon:"arrowNextIcon"},outputs:{onPrevClick:"onPrevClick",onNextClick:"onNextClick"},decls:6,vars:10,consts:[[1,"ngx-gallery-arrow-wrapper","ngx-gallery-arrow-left"],["aria-hidden","true",1,"ngx-gallery-icon","ngx-gallery-arrow",3,"click"],[1,"ngx-gallery-arrow-wrapper","ngx-gallery-arrow-right"]],template:function(t,e){1&t&&(Po(0,"div",0),Po(1,"div",1),jo("click",(function(){return e.handlePrevClick()})),Ao(2,"i"),Eo(),Eo(),Po(3,"div",2),Po(4,"div",1),jo("click",(function(){return e.handleNextClick()})),Ao(5,"i"),Eo(),Eo()),2&t&&(bi(1),ea("ngx-gallery-disabled",e.prevDisabled),bi(1),ma("ngx-gallery-icon-content ",e.arrowPrevIcon,""),bi(2),ea("ngx-gallery-disabled",e.nextDisabled),bi(1),ma("ngx-gallery-icon-content ",e.arrowNextIcon,""))},styles:[".ngx-gallery-arrow-wrapper[_ngcontent-%COMP%]{position:absolute;height:100%;width:1px;display:table;z-index:2000;table-layout:fixed}.ngx-gallery-arrow-left[_ngcontent-%COMP%]{left:0}.ngx-gallery-arrow-right[_ngcontent-%COMP%]{right:0}.ngx-gallery-arrow[_ngcontent-%COMP%]{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer}.ngx-gallery-arrow.ngx-gallery-disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default}.ngx-gallery-arrow-left[_ngcontent-%COMP%] .ngx-gallery-arrow[_ngcontent-%COMP%]{left:10px}.ngx-gallery-arrow-right[_ngcontent-%COMP%] .ngx-gallery-arrow[_ngcontent-%COMP%]{right:10px}"]}),t})(),Ep=(()=>{let t=class{constructor(){this.active=0,this.onChange=new Ll}getBullets(){return Array(this.count)}handleChange(t,e){this.onChange.emit(e)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngx-gallery-bullets"]],inputs:{active:"active",count:"count"},outputs:{onChange:"onChange"},decls:1,vars:1,consts:[["class","ngx-gallery-bullet",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"ngx-gallery-bullet",3,"ngClass","click"]],template:function(t,e){1&t&&Co(0,fp,1,3,"div",0),2&t&&ko("ngForOf",e.getBullets())},directives:[xu,bu],styles:["[_nghost-%COMP%]{position:absolute;z-index:2000;display:-webkit-inline-box;display:inline-flex;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:0;padding:10px}.ngx-gallery-bullet[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;cursor:pointer;background:#fff}.ngx-gallery-bullet[_ngcontent-%COMP%]:not(:first-child){margin-left:5px}.ngx-gallery-bullet.ngx-gallery-active[_ngcontent-%COMP%], .ngx-gallery-bullet[_ngcontent-%COMP%]:hover{background:#000}"]}),t})(),Ap=(()=>{let t=class{};return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Pu]]}),t})();const Mp=new Vt("NgValueAccessor"),Lp={provide:Mp,useExisting:xt(()=>Rp),multi:!0};let Rp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(Na))},t.\u0275dir=ve({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&jo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Aa([Lp])]}),t})();const Np={provide:Mp,useExisting:xt(()=>Vp),multi:!0},Dp=new Vt("CompositionEventMode");let Vp=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Yc()?Yc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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)(So(Fa),So(Na),So(Dp,8))},t.\u0275dir=ve({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&&jo("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:[Aa([Np])]}),t})(),jp=(()=>{class t{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}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=ve({type:t}),t})(),Fp=(()=>{class t extends jp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return zp(e||t)},t.\u0275dir=ve({type:t,features:[wa]}),t})();const zp=hr(Fp);function Hp(){throw new Error("unimplemented")}class Up extends jp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Hp()}get asyncValidator(){return Hp()}}let $p=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(So(Up,2))},t.\u0275dir=ve({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ea("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[wa]}),t})();function Bp(t){return null==t||0===t.length}function qp(t){return null!=t&&"number"==typeof t.length}const Wp=new Vt("NgValidators"),Gp=new Vt("NgAsyncValidators"),Zp=/^(?=.{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 Kp{static min(t){return e=>{if(Bp(e.value)||Bp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Bp(e.value)||Bp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Bp(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Bp(t.value)||Zp.test(t.value)?null:{email:!0}}static minLength(t){return e=>Bp(e.value)||!qp(e.value)?null:e.value.lengthqp(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Kp.nullValidator;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(Bp(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Qp);return 0==e.length?null:function(t){return Jp(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Qp);return 0==e.length?null:function(t){return uh(function(t,e){return e.map(e=>e(t))}(t,e).map(Yp)).pipe(N(Jp))}}}function Qp(t){return null!=t}function Yp(t){const e=Do(t)?F(t):t;if(!Vo(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Jp(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 Xp(t){return t.validate?e=>t.validate(e):t}function tg(t){return t.validate?e=>t.validate(e):t}const eg={provide:Mp,useExisting:xt(()=>ng),multi:!0};let ng=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(Na))},t.\u0275dir=ve({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&jo("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Aa([eg])]}),t})();const rg={provide:Mp,useExisting:xt(()=>sg),multi:!0};let ig=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),sg=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Up),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(Na),So(ig),So(co))},t.\u0275dir=ve({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&jo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Aa([rg])]}),t})();const og={provide:Mp,useExisting:xt(()=>ag),multi:!0};let ag=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(Na))},t.\u0275dir=ve({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&jo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Aa([og])]}),t})();const lg='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',cg='\n
\n
\n \n
\n
',ug={provide:Mp,useExisting:xt(()=>hg),multi:!0};let hg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(Na))},t.\u0275dir=ve({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&jo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Aa([ug])]}),t})();const dg={provide:Mp,useExisting:xt(()=>pg),multi:!0};let pg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&mg(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&mg(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function mg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function vg(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function yg(t){return null!=t?Kp.compose(t.map(Xp)):null}function wg(t){return null!=t?Kp.composeAsync(t.map(tg)):null}const bg=[Rp,ag,ng,hg,pg,sg];function _g(t){const e=Cg(t)?t.validators:t;return Array.isArray(e)?yg(e):e||null}function xg(t,e){const n=Cg(e)?e.asyncValidators:t;return Array.isArray(n)?wg(n):n||null}function Cg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Og{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}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.validator=_g(t)}setAsyncValidators(t){this.asyncValidator=xg(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";const e=Yp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}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 r=t;return e.forEach(t=>{r=r instanceof Tg?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof kg&&r.at(t)||null}),r}(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 Ll,this.statusChanges=new Ll}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":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){Cg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Sg extends Og{constructor(t=null,e,n){super(_g(e),xg(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(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 Tg extends Og{constructor(t,e,n){super(_g(e),xg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),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={}){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,r)=>{n.reset(t[r],{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 Sg?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=>t(this.controls[e],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,r)=>{n=e(n,t,r)}),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 kg extends Og{constructor(t,e,n){super(_g(e),xg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),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={}){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,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Sg?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_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 Ig={provide:Fp,useExisting:xt(()=>Eg)},Pg=(()=>Promise.resolve(null))();let Eg=(()=>{class t extends Fp{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Ll,this.form=new Tg({},yg(t),wg(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Pg.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),fg(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Pg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){Pg.then(()=>{const e=this._findContainer(t.path),n=new Tg({});(function(t,e){null==t&&vg(e,"Cannot find control with"),t.validator=Kp.compose([t.validator,e.validator]),t.asyncValidator=Kp.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Pg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Pg.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}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)(So(Wp,10),So(Gp,10))},t.\u0275dir=ve({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&jo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([Ig]),wa]}),t})(),Ag=(()=>{class t extends Fp{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return gg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return yg(this._validators)}get asyncValidator(){return wg(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Mg(e||t)},t.\u0275dir=ve({type:t,features:[wa]}),t})();const Mg=hr(Ag);class Lg{static modelParentException(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${lg}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${cg}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${lg}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${cg}`)}}const Rg={provide:Fp,useExisting:xt(()=>Ng)};let Ng=(()=>{class t extends Ag{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof Eg||Lg.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(So(Fp,5),So(Wp,10),So(Gp,10))},t.\u0275dir=ve({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Aa([Rg]),wa]}),t})();const Dg={provide:Up,useExisting:xt(()=>jg)},Vg=(()=>Promise.resolve(null))();let jg=(()=>{class t extends Up{constructor(t,e,n,r){super(),this.control=new Sg,this._registered=!1,this.update=new Ll,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||vg(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return e.forEach(e=>{var s;e.constructor===Vp?n=e:(s=e,bg.some(t=>s.constructor===t)?(r&&vg(t,"More than one built-in value accessor matches form control with"),r=e):(i&&vg(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(vg(t,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?gg(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return yg(this._rawValidators)}get asyncValidator(){return wg(this._rawAsyncValidators)}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(){fg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ng)&&this._parent instanceof Ag?Lg.formGroupNameException():this._parent instanceof Ng||this._parent instanceof Eg||Lg.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Lg.missingNameException()}_updateValue(t){Vg.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Vg.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(So(Fp,9),So(Wp,10),So(Gp,10),So(Mp,10))},t.\u0275dir=ve({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:[Aa([Dg]),wa,Ee]}),t})(),Fg=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),zg=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[ig],imports:[Fg]}),t})();function Hg(t){return e=>e.lift(new Ug(t))}class Ug{constructor(t){this.notifier=t}call(t,e){const n=new $g(t),r=L(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class $g extends R{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}const Bg=new Sh(xh);class qg{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Wg(t,this.durationSelector))}}class Wg extends R{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 r=L(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Gg(t){return!l(t)&&t-parseFloat(t)+1>=0}function Zg(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Kg(...t){const e=t[t.length-1];return S(e)?(t.pop(),n=>ph(t,n,e)):e=>ph(t,e)}function Qg(){}function Yg(t,e,n){return function(r){return r.lift(new Jg(t,e,n))}}class Jg{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Xg(t,this.nextOrObserver,this.error,this.complete))}}class Xg extends g{constructor(t,e,n,i){super(t),this._tapNext=Qg,this._tapError=Qg,this._tapComplete=Qg,this._tapError=n||Qg,this._tapComplete=i||Qg,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Qg,this._tapError=e.error||Qg,this._tapComplete=e.complete||Qg)}_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()}}class tf{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ef(t,this.dueTime,this.scheduler))}}class ef extends g{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(nf,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 nf(t){t.debouncedNext()}class rf extends xh{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)}}class sf extends Sh{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++rPromise.resolve())(),cf={};function uf(t){return t in cf&&(delete cf[t],!0)}const hf={setImmediate(t){const e=af++;return cf[e]=!0,lf.then(()=>uf(e)&&t()),e},clearImmediate(t){uf(t)}};class df extends xh{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=hf.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&&(hf.clearImmediate(e),t.scheduled=void 0)}}class pf extends Sh{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++rl(t)?i(...t):i(t))):new y(r=>{!function t(e,n,r,i,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,s),o=()=>t.removeEventListener(n,r,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),r,n)})}const mf=["content"],vf=["scroll"],yf=["padding"],wf=function(t){return{searchTerm:t}};function bf(t,e){if(1&t&&(Po(0,"div",6),Ro(1,7),Eo()),2&t){const t=Ho();bi(1),ko("ngTemplateOutlet",t.headerTemplate)("ngTemplateOutletContext",Tl(2,wf,t.filterValue))}}function _f(t,e){if(1&t&&(Po(0,"div",8),Ro(1,7),Eo()),2&t){const t=Ho();bi(1),ko("ngTemplateOutlet",t.footerTemplate)("ngTemplateOutletContext",Tl(2,wf,t.filterValue))}}const xf=["*"],Cf=["searchInput"];function Of(t,e){if(1&t){const t=No();Po(0,"span",15),jo("click",(function(){en(t);const e=Ho().$implicit;return Ho(2).unselect(e)})),pa(1,"\xd7"),Eo(),Ao(2,"span",16)}if(2&t){const t=Ho().$implicit,e=Ho(2);bi(2),ko("ngItemLabel",t.label)("escape",e.escapeHTML)}}function Sf(t,e){}const Tf=function(t,e,n){return{item:t,clear:e,label:n}};function kf(t,e){if(1&t&&(Po(0,"div",12),Co(1,Of,3,2,"ng-template",null,13,Xl),Co(3,Sf,0,0,"ng-template",14),Eo()),2&t){const t=e.$implicit,l=Oo(2),c=Ho(2);ea("ng-value-disabled",t.disabled),bi(3),ko("ngTemplateOutlet",c.labelTemplate||l)("ngTemplateOutletContext",(n=4,r=Tf,i=t.value,s=c.clearItem,o=t.label,function(t,e,n,r,i,s,o,a){const l=e+n;return function(t,e,n,r,i){const s=bo(t,e,n,r);return wo(t,e+2,i)||s}(t,l,i,s,o)?yo(t,l+3,a?r.call(a,i,s,o):r(i,s,o)):Pl(t,l+3)}(Xe(),cn(),n,r,i,s,o,a)))}var n,r,i,s,o,a}function If(t,e){if(1&t&&(Mo(0),Co(1,kf,4,8,"div",11),Lo()),2&t){const t=Ho();bi(1),ko("ngForOf",t.selectedItems)("ngForTrackBy",t.trackByOption)}}function Pf(t,e){}const Ef=function(t,e){return{items:t,clear:e}};function Af(t,e){if(1&t&&Co(0,Pf,0,0,"ng-template",14),2&t){const t=Ho();ko("ngTemplateOutlet",t.multiLabelTemplate)("ngTemplateOutletContext",kl(2,Ef,t.selectedValues,t.clearItem))}}function Mf(t,e){1&t&&Ao(0,"div",19)}function Lf(t,e){}function Rf(t,e){if(1&t&&(Mo(0),Co(1,Mf,1,0,"ng-template",null,17,Xl),Co(3,Lf,0,0,"ng-template",18),Lo()),2&t){const t=Oo(2),e=Ho();bi(3),ko("ngTemplateOutlet",e.loadingSpinnerTemplate||t)}}function Nf(t,e){1&t&&(Po(0,"span",20),Po(1,"span",21),pa(2,"\xd7"),Eo(),Eo()),2&t&&qo("title",Ho().clearAllText)}function Df(t,e){if(1&t&&Ao(0,"span",27),2&t){const t=Ho().$implicit,e=Ho(2);ko("ngItemLabel",t.label)("escape",e.escapeHTML)}}function Vf(t,e){}const jf=function(t,e,n,r){return{item:t,item$:e,index:n,searchTerm:r}};function Ff(t,e){if(1&t){const t=No();Po(0,"div",25),jo("click",(function(){en(t);const n=e.$implicit;return Ho(2).toggleItem(n)}))("mouseover",(function(){en(t);const n=e.$implicit;return Ho(2).onItemHover(n)})),Co(1,Df,1,2,"ng-template",null,26,Xl),Co(3,Vf,0,0,"ng-template",14),Eo()}if(2&t){const t=e.$implicit,n=Oo(2),r=Ho(2);ea("ng-option-disabled",t.disabled)("ng-option-selected",t.selected)("ng-optgroup",t.children)("ng-option",!t.children)("ng-option-child",!!t.parent)("ng-option-marked",t===r.itemsList.markedItem),_o("role",t.children?"group":"option")("aria-selected",t.selected)("id",null==t?null:t.htmlId),bi(3),ko("ngTemplateOutlet",t.children?r.optgroupTemplate||n:r.optionTemplate||n)("ngTemplateOutletContext",Il(17,jf,t.value,t,t.index,r.searchTerm))}}function zf(t,e){if(1&t&&(Po(0,"span"),Po(1,"span",30),pa(2),Eo(),pa(3),Eo()),2&t){const t=Ho(3);bi(2),ga(t.addTagText),bi(1),fa('"',t.searchTerm,'"')}}function Hf(t,e){}function Uf(t,e){if(1&t){const t=No();Po(0,"div",28),jo("mouseover",(function(){return en(t),Ho(2).itemsList.unmarkItem()}))("click",(function(){return en(t),Ho(2).selectTag()})),Co(1,zf,4,2,"ng-template",null,29,Xl),Co(3,Hf,0,0,"ng-template",14),Eo()}if(2&t){const t=Oo(2),e=Ho(2);ea("ng-option-marked",!e.itemsList.markedItem),bi(3),ko("ngTemplateOutlet",e.tagTemplate||t)("ngTemplateOutletContext",Tl(4,wf,e.searchTerm))}}function $f(t,e){if(1&t&&(Po(0,"div",32),pa(1),Eo()),2&t){const t=Ho(3);bi(1),ga(t.notFoundText)}}function Bf(t,e){}function qf(t,e){if(1&t&&(Mo(0),Co(1,$f,2,1,"ng-template",null,31,Xl),Co(3,Bf,0,0,"ng-template",14),Lo()),2&t){const t=Oo(2),e=Ho(2);bi(3),ko("ngTemplateOutlet",e.notFoundTemplate||t)("ngTemplateOutletContext",Tl(2,wf,e.searchTerm))}}function Wf(t,e){if(1&t&&(Po(0,"div",32),pa(1),Eo()),2&t){const t=Ho(3);bi(1),ga(t.typeToSearchText)}}function Gf(t,e){}function Zf(t,e){if(1&t&&(Mo(0),Co(1,Wf,2,1,"ng-template",null,33,Xl),Co(3,Gf,0,0,"ng-template",18),Lo()),2&t){const t=Oo(2),e=Ho(2);bi(3),ko("ngTemplateOutlet",e.typeToSearchTemplate||t)}}function Kf(t,e){if(1&t&&(Po(0,"div",32),pa(1),Eo()),2&t){const t=Ho(3);bi(1),ga(t.loadingText)}}function Qf(t,e){}function Yf(t,e){if(1&t&&(Mo(0),Co(1,Kf,2,1,"ng-template",null,34,Xl),Co(3,Qf,0,0,"ng-template",14),Lo()),2&t){const t=Oo(2),e=Ho(2);bi(3),ko("ngTemplateOutlet",e.loadingTextTemplate||t)("ngTemplateOutletContext",Tl(2,wf,e.searchTerm))}}function Jf(t,e){if(1&t){const t=No();Po(0,"ng-dropdown-panel",22),jo("update",(function(e){return en(t),Ho().viewPortItems=e}))("scroll",(function(e){return en(t),Ho().scroll.emit(e)}))("scrollToEnd",(function(e){return en(t),Ho().scrollToEnd.emit(e)}))("outsideClick",(function(){return en(t),Ho().close()})),Mo(1),Co(2,Ff,4,22,"div",23),Co(3,Uf,4,6,"div",24),Lo(),Co(4,qf,4,4,"ng-container",3),Co(5,Zf,4,1,"ng-container",3),Co(6,Yf,4,4,"ng-container",3),Eo()}if(2&t){const t=Ho();ea("ng-select-multiple",t.multiple),ko("virtualScroll",t.virtualScroll)("bufferAmount",t.bufferAmount)("appendTo",t.appendTo)("position",t.dropdownPosition)("headerTemplate",t.headerTemplate)("footerTemplate",t.footerTemplate)("filterValue",t.searchTerm)("items",t.itemsList.filteredItems)("markedItem",t.itemsList.markedItem)("ngClass",t.appendTo?t.classes:null)("id",t.dropdownId),bi(2),ko("ngForOf",t.viewPortItems)("ngForTrackBy",t.trackByOption),bi(1),ko("ngIf",t.showAddTag),bi(1),ko("ngIf",t.showNoItemsFound()),bi(1),ko("ngIf",t.showTypeToSearch()),bi(1),ko("ngIf",t.loading&&0===t.itemsList.filteredItems.length)}}const Xf=/[&<>"']/g,tm=RegExp(Xf.source),em={"&":"&","<":"<",">":">",'"':""","'":"'"};function nm(t){return null!=t}function rm(t){return"object"==typeof t&&nm(t)}function im(t){return t instanceof Function}let sm=(()=>{class t{constructor(t){this.element=t,this.escape=!0}ngOnChanges(t){var e;this.element.nativeElement.innerHTML=this.escape?(e=this.ngItemLabel)&&tm.test(e)?e.replace(Xf,t=>em[t]):e:this.ngItemLabel}}return t.\u0275fac=function(e){return new(e||t)(So(Na))},t.\u0275dir=ve({type:t,selectors:[["","ngItemLabel",""]],inputs:{escape:"escape",ngItemLabel:"ngItemLabel"},features:[Ee]}),t})(),om=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-option-tmp",""]]}),t})(),am=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-optgroup-tmp",""]]}),t})(),lm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-label-tmp",""]]}),t})(),cm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-multi-label-tmp",""]]}),t})(),um=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-header-tmp",""]]}),t})(),hm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-footer-tmp",""]]}),t})(),dm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-notfound-tmp",""]]}),t})(),pm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-typetosearch-tmp",""]]}),t})(),gm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-loadingtext-tmp",""]]}),t})(),fm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-tag-tmp",""]]}),t})(),mm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(So(sl))},t.\u0275dir=ve({type:t,selectors:[["","ng-loadingspinner-tmp",""]]}),t})(),vm=(()=>{class t{warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();function ym(){return"axxxxxxxxxxx".replace(/[x]/g,(function(t){return(16*Math.random()|0).toString(16)}))}const wm={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};function bm(t){return t.replace(/[^\u0000-\u007E]/g,t=>wm[t]||t)}class _m{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((t,e)=>this.mapItem(t,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;const e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&nm(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return e=this._ngSelect.compareWith?e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(t){const e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=bm(t).toLocaleLowerCase(),this.filteredItems.find(e=>bm(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t)return void this.resetFilteredItems();this._filteredItems=[],t=this._ngSelect.searchFn?t:bm(t).toLocaleLowerCase();const e=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const r of Array.from(this._groups.keys())){const i=[];for(const s of this._groups.get(r))n&&(s.parent&&s.parent.selected||s.selected)||e(t,this._ngSelect.searchFn?s.value:s)&&i.push(s);if(i.length>0){const[t]=i.slice(-1);if(t.parent){const e=this._items.find(e=>e===t.parent);this._filteredItems.push(e)}this._filteredItems.push(...i)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(t=>!t.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(0===this._filteredItems.length)return;const e=this._getLastMarkedIndex();this._markedIndex=e>-1?e:t?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(t,e){if(!rm(t))return t;if(-1===e.indexOf("."))return t[e];{let n=e.split("."),r=t;for(let t=0,e=n.length;t-1===this.selectedItems.indexOf(t)))}_showSelected(t){if(this._filteredItems.push(t),t.parent){const e=t.parent;this._filteredItems.find(t=>t===e)||this._filteredItems.push(e)}else if(t.children)for(const e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((t,e)=>t.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return bm(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){0===this._filteredItems.length||this._filteredItems.every(t=>t.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected)return-1;if(this._markedIndex>-1&&void 0===this.markedItem)return-1;const t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){const n=new Map;if(0===t.length)return n;if(Array.isArray(t[0].value[e])){for(const r of t){const t=(r.value[e]||[]).map((t,e)=>this.mapItem(t,e));n.set(r,t)}return n}const r=im(this._ngSelect.groupBy),i=t=>{let n=r?e(t.value):t.value[e];return nm(n)?n:void 0};for(const s of t){let t=i(s);const e=n.get(t);e?e.push(s):n.set(t,[s])}return n}_flatten(t){const e=im(this._ngSelect.groupBy),n=[];for(const r of Array.from(t.keys())){let i=n.length;if(void 0===r){const e=t.get(void 0)||[];n.push(...e.map(t=>Object.assign(Object.assign({},t),{index:i++})));continue}const s=rm(r),o={label:s?"":String(r),children:void 0,parent:null,index:i++,disabled:!this._ngSelect.selectableGroup,htmlId:ym()},a=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,l=this._ngSelect.groupValue||(()=>s?r.value:{[a]:r}),c=t.get(r).map(t=>(t.parent=o,t.children=void 0,t.index=i++,t));o.children=c,o.value=l(r,c.map(t=>t.value)),n.push(o),n.push(...c)}return n}}const xm=function(){var t={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};return t[t.Tab]="Tab",t[t.Enter]="Enter",t[t.Esc]="Esc",t[t.Space]="Space",t[t.ArrowUp]="ArrowUp",t[t.ArrowDown]="ArrowDown",t[t.Backspace]="Backspace",t}();let Cm=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(t,e,n){const r=this._dimensions,i=r.itemHeight*e,s=Math.max(0,t)/i*e;let o=Math.min(e,Math.ceil(s)+(r.itemsPerViewport+1));const a=Math.max(0,o-r.itemsPerViewport);let l=Math.min(a,Math.floor(s)),c=r.itemHeight*Math.ceil(l)-r.itemHeight*Math.min(l,n);return c=isNaN(c)?0:c,l=isNaN(l)?-1:l,o=isNaN(o)?-1:o,l-=n,l=Math.max(0,l),o+=n,o=Math.min(e,o),{topPadding:c,scrollHeight:i,start:l,end:o}}setDimensions(t,e){const n=Math.max(1,Math.floor(e/t));this._dimensions={itemHeight:t,panelHeight:e,itemsPerViewport:n}}getScrollTo(t,e,n){const{panelHeight:r}=this.dimensions,i=t+e,s=n+r;return r>=i&&n===t?null:i>s?n+i-s:t<=n?t:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Om="undefined"!=typeof requestAnimationFrame?of:gf;let Sm=(()=>{class t{constructor(t,e,n,r,i){this._renderer=t,this._zone=e,this._panelService=n,this._document=i,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new Ll,this.scroll=new Ll,this.scrollToEnd=new Ll,this.outsideClick=new Ll,this._destroy$=new C,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(t){t!==this._itemsLength&&(this._itemsLength=t,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:t,panelHeight:e}=this._panelService.dimensions,n=this.markedItem.index*t;return e>n?0:n}return 0}handleMousedown(t){"INPUT"!==t.target.tagName&&t.preventDefault()}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()}ngOnChanges(t){if(t.items){const e=t.items;this._onItemsChange(e.currentValue,e.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(t,e=!1){if(!t)return;const n=this.items.indexOf(t);if(n<0||n>=this.itemsLength)return;let r;if(this.virtualScroll){const t=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(n*t,t,this._lastScrollPosition)}else{const n=this._dropdown.querySelector("#"+t.htmlId);r=this._panelService.getScrollTo(n.offsetTop,n.clientHeight,e?n.offsetTop:this._lastScrollPosition)}nm(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){const t=this._scrollablePanel;t.scrollTop=t.scrollHeight-t.clientHeight}adjustPosition(){const t=this._parent.getBoundingClientRect(),e=this._select.getBoundingClientRect();this._setOffset(t,e)}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,"ng-select-top"),this._renderer.removeClass(this._dropdown,"ng-select-bottom"),this._renderer.addClass(this._select,"ng-select-top"),this._renderer.removeClass(this._select,"ng-select-bottom")):(this._renderer.addClass(this._dropdown,"ng-select-bottom"),this._renderer.removeClass(this._dropdown,"ng-select-top"),this._renderer.addClass(this._select,"ng-select-bottom"),this._renderer.removeClass(this._select,"ng-select-top")),this.appendTo&&this._updatePosition(),this._dropdown.style.opacity="1"}_handleScroll(){this._zone.runOutsideAngular(()=>{ff(this.scrollElementRef.nativeElement,"scroll").pipe(Hg(this._destroy$),function(t,e=Bg){return n=()=>function(t=0,e,n){let r=-1;return Gg(e)?r=Number(e)<1?1:Number(e):S(e)&&(n=e),S(n)||(n=Bg),new y(e=>{const i=Gg(t)?t:+t-n.now();return n.schedule(Zg,i,{index:0,period:r,subscriber:e})})}(t,e),function(t){return t.lift(new qg(n))};var n}(0,Om)).subscribe(t=>this._onContentScrolled(t.target.scrollTop))})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{W(ff(this._document,"touchstart",{capture:!0}),ff(this._document,"mousedown",{capture:!0})).pipe(Hg(this._destroy$)).subscribe(t=>this._checkToClose(t))})}_checkToClose(t){if(this._select.contains(t.target)||this._dropdown.contains(t.target))return;const e=t.path||t.composedPath&&t.composedPath();t.target&&t.target.shadowRoot&&e&&e[0]&&this._select.contains(e[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(t,e){this.items=t||[],this._scrollToEndFired=!1,this.itemsLength=t.length,this.virtualScroll?this._updateItemsRange(e):(this._setVirtualHeight(),this._updateItems(e))}_updateItems(t){this.update.emit(this.items),!1!==t&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,t)})})}_updateItemsRange(t){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{t?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(t){this.virtualScroll&&this._renderItemsRange(t),this._lastScrollPosition=t,this._fireScrollToEnd(t)}_updateVirtualHeight(t){this._updateScrollHeight&&(this._virtualPadding.style.height=t+"px",this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(t=null){if(t&&this._lastScrollPosition===t)return;const e=this._panelService.calculateItems(t=t||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(e.scrollHeight),this._contentPanel.style.transform=`translateY(${e.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(e.start,e.end)),this.scroll.emit({start:e.start,end:e.end})}),nm(t)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=t,this._lastScrollPosition=t)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[t]=this.items;return this.update.emit([t]),Promise.resolve().then(()=>{const e=this._dropdown.querySelector("#"+t.htmlId).clientHeight;return this._virtualPadding.style.height=e*this.itemsLength+"px",this._panelService.setDimensions(e,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(t){this._scrollToEndFired||0===t||t+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(t){if("auto"!==this.position)return this.position;const e=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return e.top+window.pageYOffset+e.height+t.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._parent.appendChild(this._dropdown)}}_updatePosition(){const t=this._select.getBoundingClientRect(),e=this._parent.getBoundingClientRect(),n=t.left-e.left;this._setOffset(e,t),this._dropdown.style.left=n+"px",this._dropdown.style.width=t.width+"px",this._dropdown.style.minWidth=t.width+"px"}_setOffset(t,e){const n=e.height;"top"===this._currentPosition?(this._dropdown.style.bottom=t.bottom-e.bottom+n+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=e.top-t.top+n+"px",this._dropdown.style.bottom="auto")}}return t.\u0275fac=function(e){return new(e||t)(So(Fa),So(_c),So(Cm),So(Na),So(Jc,8))},t.\u0275cmp=he({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,e){var n;1&t&&(ql(mf,!0,Na),ql(vf,!0,Na),ql(yf,!0,Na)),2&t&&(Bl(n=Kl())&&(e.contentElementRef=n.first),Bl(n=Kl())&&(e.scrollElementRef=n.first),Bl(n=Kl())&&(e.paddingElementRef=n.first))},hostBindings:function(t,e){1&t&&jo("mousedown",(function(t){return e.handleMousedown(t)}))},inputs:{items:"items",position:"position",virtualScroll:"virtualScroll",filterValue:"filterValue",markedItem:"markedItem",appendTo:"appendTo",bufferAmount:"bufferAmount",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ee],ngContentSelectors:xf,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(t,e){1&t&&($o(),Co(0,bf,2,4,"div",0),Po(1,"div",1,2),Ao(3,"div",null,3),Po(5,"div",null,4),Bo(7),Eo(),Eo(),Co(8,_f,2,4,"div",5)),2&t&&(ko("ngIf",e.headerTemplate),bi(3),ea("total-padding",e.virtualScroll),bi(2),ea("scrollable-content",e.virtualScroll&&e.items.length),bi(3),ko("ngIf",e.footerTemplate))},directives:[Ou,Iu],encapsulation:2,changeDetection:0}),t})(),Tm=(()=>{class t{constructor(t){this.elementRef=t,this.stateChange$=new C,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=this._isDisabled(t)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(t){t.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(t){return null!=t&&""+t!="false"}}return t.\u0275fac=function(e){return new(e||t)(So(Na))},t.\u0275cmp=he({type:t,selectors:[["ng-option"]],inputs:{disabled:"disabled",value:"value"},features:[Ee],ngContentSelectors:xf,decls:1,vars:0,template:function(t,e){1&t&&($o(),Bo(0))},encapsulation:2,changeDetection:0}),t})(),km=(()=>{class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Im=new Vt("ng-select-selection-model");let Pm=(()=>{class t{constructor(t,e,n,r,i,s,o){this.classes=t,this.autoFocus=e,this._cd=s,this._console=o,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=t=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new Ll,this.focusEvent=new Ll,this.changeEvent=new Ll,this.openEvent=new Ll,this.closeEvent=new Ll,this.searchEvent=new Ll,this.clearEvent=new Ll,this.addEvent=new Ll,this.removeEvent=new Ll,this.scroll=new Ll,this.scrollToEnd=new Ll,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=ym(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new C,this._keyPress$=new C,this._onChange=t=>{},this._onTouched=()=>{},this.clearItem=t=>{const e=this.selectedItems.find(e=>e.value===t);this.unselect(e)},this.trackByOption=(t,e)=>this.trackByFn?this.trackByFn(e.value):e,this._mergeGlobalConfig(n),this.itemsList=new _m(this,r()),this.element=i.nativeElement}get items(){return this._items}set items(t){this._itemsAreUsed=!0,this._items=t}get compareWith(){return this._compareWith}set compareWith(t){if(!im(t))throw Error("`compareWith` must be a function.");this._compareWith=t}get clearSearchOnAdd(){return nm(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(t){this._clearSearchOnAdd=t}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(t=>t.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(t){t.multiple&&this.itemsList.clearSelected(),t.items&&this._setItems(t.items.currentValue||[]),t.isOpen&&(this._manualOpen=nm(t.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),nm(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(t){if(xm[t.which]){if(!1===this.keyDownFn(t))return;this.handleKeyCode(t)}else t.key&&1===t.key.length&&this._keyPress$.next(t.key.toLocaleLowerCase())}handleKeyCode(t){switch(t.which){case xm.ArrowDown:this._handleArrowDown(t);break;case xm.ArrowUp:this._handleArrowUp(t);break;case xm.Space:this._handleSpace(t);break;case xm.Enter:this._handleEnter(t);break;case xm.Tab:this._handleTab(t);break;case xm.Esc:this.close(),t.preventDefault();break;case xm.Backspace:this._handleBackspace()}}handleMousedown(t){const e=t.target;"INPUT"!==e.tagName&&t.preventDefault(),e.classList.contains("ng-clear-wrapper")?this.handleClearClick():e.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():e.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(t){this.itemsList.clearSelected(),this._handleWriteValue(t),this._cd.markForCheck()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._disabled=t,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!this.itemsList.noItemsToSelect)&&(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){this.isOpen&&!this._manualOpen&&(this.isOpen=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(t){!t||t.disabled||this.disabled||(this.multiple&&t.selected?this.unselect(t):this.select(t),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(t){t.selected||(this.itemsList.select(t),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(t.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(t){t&&(this.itemsList.unselect(t),this.focus(),this._updateNgModel(),this.removeEvent.emit(t))}selectTag(){let t;t=im(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const e=t=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(t,null):this.itemsList.addItem(t);t instanceof Promise?t.then(t=>this.select(e(t))).catch(()=>{}):t&&this.select(e(t))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const t=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(e=>e.label.toLowerCase()===t)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(e=>e.label.toLowerCase()===t))&&!this.loading}showNoItemsFound(){const t=0===this.itemsList.filteredItems.length;return(t&&!this._isTypeahead&&!this.loading||t&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this.searchWhileComposing||this.filter(t)}filter(t){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=t,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(t),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:t,items:this.itemsList.filteredItems.map(t=>t.value)}),this.open())}onInputFocus(t){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(t),this.focused=!0)}onInputBlur(t){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(t),this.isOpen||this.disabled||this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(t){t.disabled||this.itemsList.markItem(t)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const t=this.selectedItems&&this.selectedItems[0];this.searchTerm=t&&t.label||null}_setItems(t){const e=t[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=nm(e)?!rm(e):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(t),t.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&nm(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const t=t=>{this.items=t.map(t=>({$ngOptionValue:t.value,$ngOptionLabel:t.elementRef.nativeElement.innerHTML,disabled:t.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},e=()=>{const t=W(this.ngOptions.changes,this._destroy$);W(...this.ngOptions.map(t=>t.stateChange$)).pipe(Hg(t)).subscribe(t=>{const e=this.itemsList.findItem(t.value);e.disabled=t.disabled,e.label=t.label||e.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Kg(this.ngOptions),Hg(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,t(n),e()})}_isValidWriteValue(t){if(!nm(t)||this.multiple&&""===t||Array.isArray(t)&&0===t.length)return!1;const e=t=>!(!nm(this.compareWith)&&rm(t)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(t)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(t)?t.every(t=>e(t)):(this._console.warn("Multiple select ngModel should be array."),!1):e(t)}_handleWriteValue(t){if(!this._isValidWriteValue(t))return;const e=t=>{let e=this.itemsList.findItem(t);if(e)this.itemsList.select(e);else{const n=rm(t),r=!n&&!this.bindValue;n||r?this.itemsList.select(this.itemsList.mapItem(t,null)):this.bindValue&&(e={[this.bindLabel]:null,[this.bindValue]:t},this.itemsList.select(this.itemsList.mapItem(e,null)))}};this.multiple?t.forEach(t=>e(t)):e(t)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(Hg(this._destroy$),Yg(t=>this._pressedKeys.push(t)),function(t,e=Bg){return n=>n.lift(new tf(t,e))}(200),ad(()=>this._pressedKeys.length>0),N(()=>this._pressedKeys.join(""))).subscribe(t=>{const e=this.itemsList.findByLabel(t);e&&(this.isOpen?(this.itemsList.markItem(e),this._cd.markForCheck()):this.select(e)),this._pressedKeys=[]})}_setInputAttributes(){const t=this.searchInput.nativeElement,e=Object.assign({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(const n of Object.keys(e))t.setAttribute(n,e[n])}_updateNgModel(){const t=[];for(const n of this.selectedItems)if(this.bindValue){let e=null;e=n.children?n.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(n.value,this.bindValue),t.push(e)}else t.push(n.value);const e=this.selectedItems.map(t=>t.value);this.multiple?(this._onChange(t),this.changeEvent.emit(e)):(this._onChange(nm(t[0])?t[0]:null),this.changeEvent.emit(e[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(t){this.searchTerm=t,this._isTypeahead&&this.typeahead.next(t)}_scrollToMarked(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(t){(!1!==this.isOpen||this.addTag)&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),t.preventDefault()):this.showAddTag?(this.selectTag(),t.preventDefault()):this.close():this.close())}_handleEnter(t){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}t.preventDefault()}_handleSpace(t){this.isOpen||this._manualOpen||(this.open(),t.preventDefault())}_handleArrowDown(t){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),t.preventDefault()}_handleArrowUp(t){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),t.preventDefault())}_nextItemIsTag(t){const e=this.itemsList.markedIndex+t;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(e<0||e===this.itemsList.filteredItems.length)}_handleBackspace(){!this.searchTerm&&this.clearable&&this.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const t=this.searchTerm&&this.searchTerm.trim();return t&&t.length>=this.minTermLength}_mergeGlobalConfig(t){this.placeholder=this.placeholder||t.placeholder,this.notFoundText=this.notFoundText||t.notFoundText,this.typeToSearchText=this.typeToSearchText||t.typeToSearchText,this.addTagText=this.addTagText||t.addTagText,this.loadingText=this.loadingText||t.loadingText,this.clearAllText=this.clearAllText||t.clearAllText,this.virtualScroll=nm(this.virtualScroll)?this.virtualScroll:!!nm(t.disableVirtualScroll)&&!t.disableVirtualScroll,this.openOnEnter=nm(this.openOnEnter)?this.openOnEnter:t.openOnEnter,this.appendTo=this.appendTo||t.appendTo,this.bindValue=this.bindValue||t.bindValue,this.appearance=this.appearance||t.appearance}}return t.\u0275fac=function(e){return new(e||t)(To("class"),To("autofocus"),So(km),So(Im),So(Na),So(Ws),So(vm))},t.\u0275cmp=he({type:t,selectors:[["ng-select"]],contentQueries:function(t,e,n){var r;1&t&&(Zl(n,om,!0,sl),Zl(n,am,!0,sl),Zl(n,lm,!0,sl),Zl(n,cm,!0,sl),Zl(n,um,!0,sl),Zl(n,hm,!0,sl),Zl(n,dm,!0,sl),Zl(n,pm,!0,sl),Zl(n,gm,!0,sl),Zl(n,fm,!0,sl),Zl(n,mm,!0,sl),Zl(n,Tm,!0)),2&t&&(Bl(r=Kl())&&(e.optionTemplate=r.first),Bl(r=Kl())&&(e.optgroupTemplate=r.first),Bl(r=Kl())&&(e.labelTemplate=r.first),Bl(r=Kl())&&(e.multiLabelTemplate=r.first),Bl(r=Kl())&&(e.headerTemplate=r.first),Bl(r=Kl())&&(e.footerTemplate=r.first),Bl(r=Kl())&&(e.notFoundTemplate=r.first),Bl(r=Kl())&&(e.typeToSearchTemplate=r.first),Bl(r=Kl())&&(e.loadingTextTemplate=r.first),Bl(r=Kl())&&(e.tagTemplate=r.first),Bl(r=Kl())&&(e.loadingSpinnerTemplate=r.first),Bl(r=Kl())&&(e.ngOptions=r))},viewQuery:function(t,e){var n;1&t&&(Wl(Sm,!0),ql(Cf,!0)),2&t&&(Bl(n=Kl())&&(e.dropdownPanel=n.first),Bl(n=Kl())&&(e.searchInput=n.first))},hostAttrs:["role","listbox"],hostVars:20,hostBindings:function(t,e){1&t&&jo("keydown",(function(t){return e.handleKeyDown(t)})),2&t&&ea("ng-select",e.useDefaultClass)("ng-select-single",!e.multiple)("ng-select-multiple",e.multiple)("ng-select-taggable",e.addTag)("ng-select-searchable",e.searchable)("ng-select-clearable",e.clearable)("ng-select-opened",e.isOpen)("ng-select-disabled",e.disabled)("ng-select-filtered",e.filtered)("ng-select-typeahead",e.typeahead)},inputs:{markFirst:"markFirst",dropdownPosition:"dropdownPosition",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",bufferAmount:"bufferAmount",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",bindLabel:"bindLabel",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",virtualScroll:"virtualScroll",openOnEnter:"openOnEnter",appendTo:"appendTo",bindValue:"bindValue",appearance:"appearance",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",tabIndex:"tabIndex",typeahead:"typeahead"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Aa([{provide:Mp,useExisting:xt(()=>t),multi:!0},Cm]),Ee],decls:14,vars:18,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],[1,"ng-input"],["role","combobox",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(t,e){if(1&t){const t=No();Po(0,"div",0),jo("mousedown",(function(t){return e.handleMousedown(t)})),Po(1,"div",1),Po(2,"div",2),pa(3),Eo(),Co(4,If,2,2,"ng-container",3),Co(5,Af,1,5,void 0,3),Po(6,"div",4),Po(7,"input",5,6),jo("input",(function(){en(t);const n=Oo(8);return e.filter(n.value)}))("compositionstart",(function(){return e.onCompositionStart()}))("compositionend",(function(){en(t);const n=Oo(8);return e.onCompositionEnd(n.value)}))("focus",(function(t){return e.onInputFocus(t)}))("blur",(function(t){return e.onInputBlur(t)}))("change",(function(t){return t.stopPropagation()})),Eo(),Eo(),Eo(),Co(9,Rf,4,1,"ng-container",3),Co(10,Nf,3,1,"span",7),Po(11,"span",8),Ao(12,"span",9),Eo(),Eo(),Co(13,Jf,7,19,"ng-dropdown-panel",10)}2&t&&(ea("ng-appearance-outline","outline"===e.appearance)("ng-has-value",e.hasValue),bi(3),ga(e.placeholder),bi(1),ko("ngIf",!e.multiLabelTemplate&&e.selectedItems.length>0),bi(1),ko("ngIf",e.multiLabelTemplate&&e.selectedValues.length>0),bi(2),ko("readOnly",!e.searchable||e.itemsList.maxItemsSelected)("disabled",e.disabled)("value",e.searchTerm?e.searchTerm:""),_o("id",e.labelForId)("tabindex",e.tabIndex)("aria-expanded",e.isOpen)("aria-owns",e.isOpen?e.dropdownId:null)("aria-activedescendant",e.isOpen?null==e.itemsList||null==e.itemsList.markedItem?null:e.itemsList.markedItem.htmlId:null),bi(2),ko("ngIf",e.loading),bi(1),ko("ngIf",e.showClear()),bi(3),ko("ngIf",e.isOpen))},directives:[Ou,xu,Iu,sm,Sm,bu],styles:[".ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}"],encapsulation:2,changeDetection:0}),t})();class Em{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,n){if(t.selected=!0,(!t.children||!e&&n)&&this._selected.push(t),e)if(t.parent){const e=t.parent.children.length,n=t.parent.children.filter(t=>t.selected).length;t.parent.selected=e===n}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),this._selected=n&&this._activeChildren(t)?[...this._selected.filter(e=>e.parent!==t),t]:[...this._selected,...t.children.filter(t=>!t.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){const e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(e=>e!==t&&!e.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(t,e){for(const n of t)n.disabled||(n.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(t=>!t.disabled||t.selected)}}const Am=function(){return new Em};let Mm=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Im,useValue:Am}],imports:[[Pu]]}),t})();class Lm extends C{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 b;return this._value}next(t){super.next(this._value=t)}}const Rm=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Nm={};class Dm{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Vm(t,this.resultSelector))}}class Vm extends R{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Nm),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;n0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;ie.lift(new Um(t))}class Um{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new $m(t,this.errorFactory))}}class $m extends g{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 Bm(){return new Rm}function qm(t=null){return e=>e.lift(new Wm(t))}class Wm{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Gm(t,this.defaultValue))}}class Gm extends g{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()}}function Zm(t){return function(e){const n=new Km(t),r=e.lift(n);return n.caught=r}}class Km{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Qm(t,this.selector,this.caught))}}class Qm extends R{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 T(this,void 0,void 0);this.add(r);const i=L(this,n,void 0,void 0,r);i!==r&&this.add(i)}}}function Ym(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ad((e,n)=>t(e,n,r)):v,yh(1),n?qm(e):Hm(()=>new Rm))}class Jm{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Xm(t,this.predicate,this.thisArg,this.source))}}class Xm extends g{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}class tv{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new ev(t,this.accumulator,this.seed,this.hasSeed))}}class ev extends g{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}class nv{constructor(t){this.callback=t}call(t,e){return e.subscribe(new rv(t,this.callback))}}class rv extends g{constructor(t,e){super(t),this.add(new h(e))}}class iv{constructor(t,e){this.id=t,this.url=e}}class sv extends iv{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ov extends iv{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class av extends iv{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lv extends iv{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cv extends iv{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uv extends iv{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hv extends iv{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dv extends iv{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pv extends iv{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gv{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fv{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mv{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vv{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yv{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wv{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bv{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 _v{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 xv(t){return new _v(t)}function Cv(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ov(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthe.indexOf(t)>-1):t===e}function kv(t){return Array.prototype.concat.apply([],t)}function Iv(t){return t.length>0?t[t.length-1]:null}function Pv(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ev(t){return Vo(t)?t:Do(t)?F(Promise.resolve(t)):lh(t)}function Av(t,e,n){return n?function(t,e){return Sv(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nv(e.segments,n.segments))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]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Tv(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Nv(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Nv(n.segments,i))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Nv(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,s)}}(e,n,n.segments)}(t.root,e.root)}class Mv{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xv(this.queryParams)),this._queryParamMap}toString(){return Fv.serialize(this)}}class Lv{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Pv(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zv(this)}}class Rv{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=xv(this.parameters)),this._parameterMap}toString(){return Wv(this)}}function Nv(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Dv(t,e){let n=[];return Pv(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Pv(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Vv{}class jv{parse(t){const e=new Yv(t);return new Mv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return zv(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Pv(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Dv(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${zv(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Uv(e)}=${Uv(t)}`).join("&"):`${Uv(e)}=${Uv(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Fv=new jv;function zv(t){return t.segments.map(t=>Wv(t)).join("/")}function Hv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uv(t){return Hv(t).replace(/%3B/gi,";")}function $v(t){return Hv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bv(t){return decodeURIComponent(t)}function qv(t){return Bv(t.replace(/\+/g,"%20"))}function Wv(t){return`${$v(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$v(t)}=${$v(e[t])}`).join("")}`;var e}const Gv=/^[^\/()?;=#]+/;function Zv(t){const e=t.match(Gv);return e?e[0]:""}const Kv=/^[^=?&#]+/,Qv=/^[^?&#]+/;class Yv{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lv([],{}):new Lv([],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 Lv(t,e)),n}parseSegment(){const t=Zv(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Rv(Bv(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Zv(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Zv(this.remaining);t&&(n=t,this.capture(n))}t[Bv(e)]=Bv(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kv);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(Qv);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=qv(e),i=qv(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Zv(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const s=this.parseChildren();e[i]=1===Object.keys(s).length?s.primary:new Lv([],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 Jv{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=Xv(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Xv(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=ty(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return ty(t,this._root).map(t=>t.value)}}function Xv(t,e){if(t===e.value)return e;for(const n of e.children){const e=Xv(t,n);if(e)return e}return null}function ty(t,e){if(t===e.value)return[e];for(const n of e.children){const r=ty(t,n);if(r.length)return r.unshift(e),r}return[]}class ey{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ny(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ry extends Jv{constructor(t,e){super(t),this.snapshot=e,cy(this,t)}toString(){return this.snapshot.toString()}}function iy(t,e){const n=function(t,e){const n=new ay([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ly("",new ey(n,[]))}(t,e),r=new Lm([new Rv("",{})]),i=new Lm({}),s=new Lm({}),o=new Lm({}),a=new Lm(""),l=new sy(r,i,o,a,s,"primary",e,n.root);return l.snapshot=n.root,new ry(new ey(l,[]),n)}class sy{constructor(t,e,n,r,i,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,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(N(t=>xv(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(N(t=>xv(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function oy(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}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(r))}class ay{constructor(t,e,n,r,i,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,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=xv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ly extends Jv{constructor(t,e){super(e),this.url=t,cy(this,e)}toString(){return uy(this._root)}}function cy(t,e){e.value._routerState=t,e.children.forEach(e=>cy(t,e))}function uy(t){const e=t.children.length>0?` { ${t.children.map(uy).join(", ")} } `:"";return`${t.value}${e}`}function hy(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Sv(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Sv(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nSv(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||dy(t.parent,e.parent))}function py(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function gy(t,e,n,r,i){let s={};return r&&Pv(r,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Mv(n.root===t?e:function t(e,n,r){const i={};return Pv(e.children,(e,s)=>{i[s]=e===n?r:t(e,n,r)}),new Lv(e.segments,i)}(n.root,t,e),s,i)}class fy{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&py(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Iv(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class my{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function vy(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function yy(t,e,n){if(t||(t=new Lv([],{})),0===t.segments.length&&t.hasChildren())return wy(t,e,n);const r=function(t,e,n){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return s;const e=t.segments[i],o=vy(n[r]),a=r0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Cy(o,a,e))return s;r+=2}else{if(!Cy(o,{},e))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(i[r]=yy(t.children[r],e,n))}),Pv(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new Lv(t.segments,i)}}function by(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i{null!==t&&(e[n]=by(new Lv([],{}),0,t))}),e}function xy(t){const e={};return Pv(t,(t,n)=>e[n]=""+t),e}function Cy(t,e,n){return t==n.path&&Sv(e,n.parameters)}class Oy{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),hy(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=ny(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Pv(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=ny(t),i=t.value.component?n.children:e;Pv(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=ny(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new wv(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vv(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(hy(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),Sy(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}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Sy(t){hy(t.value),t.children.forEach(Sy)}class Ty{constructor(t,e){this.routes=t,this.module=e}}function ky(t){return"function"==typeof t}function Iy(t){return t instanceof Mv}class Py{constructor(t){this.segmentGroup=t||null}}class Ey{constructor(t){this.urlTree=t}}function Ay(t){return new y(e=>e.error(new Py(t)))}function My(t){return new y(e=>e.error(new Ey(t)))}function Ly(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ry{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Yt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(N(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Zm(t=>{if(t instanceof Ey)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Py)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(N(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Zm(t=>{if(t instanceof Py)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Lv([],{primary:t}):t;return new Mv(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(N(t=>new Lv([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return lh({});const n=[],r=[],i={};return Pv(t,(t,s)=>{const o=e(s,t).pipe(N(t=>i[s]=t));"primary"===s?n.push(o):r.push(o)}),lh.apply(null,n.concat(r)).pipe(dh(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ad((e,n)=>t(e,n,r)):v,jm(1),n?qm(e):Hm(()=>new Rm))}(),N(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,s){return lh(...n).pipe(N(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,i,s).pipe(Zm(t=>{if(t instanceof Py)return lh(null);throw t}))),dh(),Ym(t=>!!t),Zm((t,n)=>{if(t instanceof Rm||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return lh(new Lv([],{}));throw new Py(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,s,o){return jy(r)!==s?Ay(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s):Ay(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?My(i):this.lineralizeSegments(n,i).pipe(z(n=>{const i=new Lv(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ny(e,r,i);if(!o)return Ay(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?My(u):this.lineralizeSegments(r,u).pipe(z(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(N(t=>(n._loadedConfig=t,new Lv(r,{})))):lh(new Lv(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=Ny(e,n,r);if(!i)return Ay(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe(z(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Vy(t,e,n)&&"primary"!==jy(n))}(t,n,r)?{segmentGroup:Dy(new Lv(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==jy(r)&&(n[jy(r)]=new Lv([],{}));return n}(r,new Lv(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Vy(t,e,n))}(t,n,r)?{segmentGroup:Dy(new Lv(t.segments,function(t,e,n,r){const i={};for(const s of n)Vy(t,e,s)&&!r[jy(s)]&&(i[jy(s)]=new Lv([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(N(t=>new Lv(s,t))):0===r.length&&0===o.length?lh(new Lv(s,{})):this.expandSegment(n,i,r,o,"primary",!0).pipe(N(t=>new Lv(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?lh(new Ty(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lh(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(z(n=>n?this.configLoader.load(t.injector,e).pipe(N(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Cv(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):lh(new Ty([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?F(r).pipe(N(r=>{const i=t.get(r);let s;if(function(t){return t&&ky(t.canLoad)}(i))s=i.canLoad(e,n);else{if(!ky(i))throw new Error("Invalid CanLoad guard");s=i(e,n)}return Ev(s)})).pipe(dh(),Yg(t=>{if(!Iy(t))return;const e=Cv(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(i=t=>!0===t,t=>t.lift(new Jm(i,void 0,t)))):lh(!0);var i}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return lh(n);if(r.numberOfChildren>1||!r.children.primary)return Ly(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new Mv(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Pv(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let s={};return Pv(e.children,(e,i)=>{s[i]=this.createSegmentGroup(t,e,n,r)}),new Lv(i,s)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Ny(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||Ov)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Dy(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Lv(t.segments.concat(e.segments),e.children)}return t}function Vy(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function jy(t){return t.outlet||"primary"}class Fy{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class zy{constructor(t,e){this.component=t,this.route=e}}function Hy(t,e,n){const r=t._root;return function t(e,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=ny(n);return e.children.forEach(e=>{!function(e,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Nv(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Nv(t.url,e.url)||!Sv(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dy(t,e)||!Sv(t.queryParams,e.queryParams);case"paramsChange":default:return!dy(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Fy(i)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,i,s),c&&s.canDeactivateChecks.push(new zy(l&&l.outlet&&l.outlet.component||null,a))}else a&&$y(n,l,s),s.canActivateChecks.push(new Fy(i)),t(e,null,o.component?l?l.children:null:r,i,s)}(e,o[e.value.outlet],r,i.concat([e.value]),s),delete o[e.value.outlet]}),Pv(o,(t,e)=>$y(t,r.getContext(e),s)),s}(r,e?e._root:null,n,[r.value])}function Uy(t,e,n){const r=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(r?r.module.injector:n).get(t)}function $y(t,e,n){const r=ny(t),i=t.value;Pv(r,(t,r)=>{$y(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new zy(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const By=Symbol("INITIAL_VALUE");function qy(){return Nh(t=>function(...t){let e=null,n=null;return S(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new Dm(e))}(...t.map(t=>t.pipe(yh(1),Kg(By)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new tv(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==By)return t;if(r===By&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Iy(r))return r}return t},t)},By),ad(t=>t!==By),N(t=>Iy(t)?t:!0===t),yh(1)))}function Wy(t,e){return null!==t&&e&&e(new yv(t)),lh(!0)}function Gy(t,e){return null!==t&&e&&e(new mv(t)),lh(!0)}function Zy(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?lh(r.map(r=>mh(()=>{const i=Uy(r,e,n);let s;if(function(t){return t&&ky(t.canActivate)}(i))s=Ev(i.canActivate(e,t));else{if(!ky(i))throw new Error("Invalid CanActivate guard");s=Ev(i(e,t))}return s.pipe(Ym())}))).pipe(qy()):lh(!0)}function Ky(t,e,n){const r=e[e.length-1],i=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=>mh(()=>lh(e.guards.map(i=>{const s=Uy(i,e.node,n);let o;if(function(t){return t&&ky(t.canActivateChild)}(s))o=Ev(s.canActivateChild(r,t));else{if(!ky(s))throw new Error("Invalid CanActivateChild guard");o=Ev(s(r,t))}return o.pipe(Ym())})).pipe(qy())));return lh(i).pipe(qy())}class Qy{}class Yy{constructor(t,e,n,r,i,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const t=tw(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new ay([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ey(n,e),i=new ly(this.url,r);return this.inheritParamsAndData(i._root),lh(i)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=oy(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=Dv(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(i){if(!(i instanceof Qy))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new Qy}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Qy;if((t.outlet||"primary")!==r)throw new Qy;let i,s=[],o=[];if("**"===t.path){const s=n.length>0?Iv(n).parameters:{};i=new ay(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rw(t),r,t.component,t,Jy(e),Xy(e)+n.length,iw(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Qy;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Ov)(n,t,e);if(!r)throw new Qy;const i={};Pv(r.posParams,(t,e)=>{i[e]=t.path});const s=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new ay(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rw(t),r,t.component,t,Jy(e),Xy(e)+s.length,iw(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=tw(e,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new ey(i,t)]}if(0===a.length&&0===c.length)return[new ey(i,[])];const u=this.processSegment(a,l,c,"primary");return[new ey(i,u)]}}function Jy(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xy(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 tw(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>ew(t,e,n)&&"primary"!==nw(n))}(t,n,r)){const i=new Lv(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==nw(s)){const n=new Lv([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[nw(s)]=n}return i}(t,e,r,new Lv(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>ew(t,e,n))}(t,n,r)){const s=new Lv(t.segments,function(t,e,n,r,i,s){const o={};for(const a of r)if(ew(t,n,a)&&!i[nw(a)]){const n=new Lv([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[nw(a)]=n}return Object.assign(Object.assign({},i),o)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new Lv(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ew(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function nw(t){return t.outlet||"primary"}function rw(t){return t.data||{}}function iw(t){return t.resolve||{}}function sw(t){return function(e){return e.pipe(Nh(e=>{const n=t(e);return n?F(n).pipe(N(()=>e)):F([e])}))}}class ow{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let aw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ao(0,"router-outlet")},directives:function(){return[Cw]},encapsulation:2}),t})();function lw(t,e=""){for(let n=0;n{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Ty(kv(r.injector.get(dw)).map(hw),r)}))}loadModuleFactory(t){return"string"==typeof t?F(this.loader.load(t)):Ev(t()).pipe(z(t=>t instanceof Jt?lh(t):F(this.compiler.compileModuleAsync(t))))}}class gw{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fw,this.attachRef=null}}class fw{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 gw,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class mw{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function vw(t){throw t}function yw(t,e,n){return e.parse("/")}function ww(t,e){return lh(null)}let bw=(()=>{class t{constructor(t,e,n,r,i,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=vw,this.malformedUriErrorHandler=yw,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ww,afterPreactivation:ww},this.urlHandlingStrategy=new mw,this.routeReuseStrategy=new ow,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Yt),this.console=i.get(lc);const l=i.get(_c);this.isNgZoneEnabled=l instanceof _c,this.resetConfig(a),this.currentUrlTree=new Mv(new Lv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pw(s,o,t=>this.triggerEvent(new gv(t)),t=>this.triggerEvent(new fv(t))),this.routerState=iy(this.currentUrlTree,this.rootComponentType),this.transitions=new Lm({id: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()}setupNavigations(t){const e=this.events;return t.pipe(ad(t=>0!==t.id),N(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Nh(t=>{let n=!1,r=!1;return lh(t).pipe(Yg(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}}),Nh(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return lh(t).pipe(Nh(t=>{const n=this.transitions.getValue();return e.next(new sv(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?gh:[t]}),Nh(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(t){return t.pipe(Nh(t=>function(t,e,n,r,i){return new Ry(t,e,n,r,i).apply()}(r,i,s,t.extractedUrl,o).pipe(N(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Yg(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(s){return s.pipe(z(s=>function(t,e,n,r,i="emptyOnly",s="legacy"){return new Yy(t,e,n,r,i,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(N(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Yg(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Yg(t=>{const n=new cv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=t,a=new sv(n,this.serializeUrl(r),i,s);e.next(a);const l=iy(r,this.rootComponentType).snapshot;return lh(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),gh}),sw(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Yg(t=>{const e=new uv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),N(t=>Object.assign(Object.assign({},t),{guards:Hy(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(z(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?lh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return F(t).pipe(z(t=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?lh(s.map(s=>{const o=Uy(s,e,i);let a;if(function(t){return t&&ky(t.canDeactivate)}(o))a=Ev(o.canDeactivate(t,e,n,r));else{if(!ky(o))throw new Error("Invalid CanDeactivate guard");a=Ev(o(t,e,n,r))}return a.pipe(Ym())})).pipe(qy()):lh(!0)}(t.component,t.route,n,e,r)),Ym(t=>!0!==t,!0))}(o,r,i,t).pipe(z(n=>n&&"boolean"==typeof n?function(t,e,n,r){return F(e).pipe(Rh(e=>F([Gy(e.route.parent,r),Wy(e.route,r),Ky(t,e.path,n),Zy(t,e.route,n)]).pipe(dh(),Ym(t=>!0!==t,!0))),Ym(t=>!0!==t,!0))}(r,s,t,e):lh(n)),N(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Yg(t=>{if(Iy(t.guardsResult)){const e=Cv(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Yg(t=>{const e=new hv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ad(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new av(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),sw(t=>{if(t.guards.canActivateChecks.length)return lh(t).pipe(Yg(t=>{const e=new dv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Nh(t=>{let n=!1;return lh(t).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(z(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return lh(t);let s=0;return F(n).pipe(Rh(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return lh({});const s={};return F(i).pipe(z(i=>function(t,e,n,r){const i=Uy(t,e,r);return Ev(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(Yg(t=>{s[i]=t}))),jm(1),z(()=>Object.keys(s).length===i.length?lh(s):gh))}(t._resolve,t,e,r).pipe(N(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),oy(t,n).resolve),null)))}(t.route,e,r,i)),Yg(()=>s++),jm(1),z(e=>s===n.length?lh(t):gh))}))}),Yg({next:()=>n=!0,complete:()=>{if(!n){const n=new av(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,i}),Yg(t=>{const e=new pv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),sw(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),N(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const s=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new ey(i,s)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;rt(e,n));return new ey(r,s)}}var i}(t,e._root,n?n._root:void 0);return new ry(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Yg(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.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),N(t=>(new Oy(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),Yg({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new av(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new nv(i))),Zm(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=Iy(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new av(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new lv(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var i;return gh}));var i,s,o,a}))}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=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){lw(t),this.config=t.map(hw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:s,queryParamsHandling:o,preserveFragment:a}=e;kr()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i;let u=null;if(o)switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=s?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,i){if(0===n.length)return gy(e.root,e.root,e,r,i);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new fy(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Pv(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new fy(n,e,r)}(n);if(s.toRoot())return gy(e.root,new Lv([],{}),e,r,i);const o=function(t,e,n){if(t.isAbsolute)return new my(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new my(t,t===e.root,0)}const r=py(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new my(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?wy(o.segmentGroup,o.index,s.commands):yy(o.segmentGroup,o.index,s.commands);return gy(o.segmentGroup,a,e,r,i)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){kr()&&this.isNgZoneEnabled&&!_c.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Iy(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new ov(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;i?(o=i.resolve,a=i.reject,l=i.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(Gt(Zs),Gt(Vv),Gt(fw),Gt(pu),Gt(co),Gt(Uc),Gt(yc),Gt(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),_w=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof ov&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){kr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:xw(this.skipLocationChange),replaceUrl:xw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:xw(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:xw(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(So(bw),So(sy),So(lu))},t.\u0275dir=ve({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&jo("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(va("href",e.href,Xr),_o("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ee]}),t})();function xw(t){return""===t||!!t}let Cw=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ll,this.deactivateEvents=new Ll,this.name=r||"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),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Ow(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(So(fw),So(al),So(Ra),To("name"),So(Ws))},t.\u0275dir=ve({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ow{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===sy?this.route:t===fw?this.childContexts:this.parent.get(t,e)}}class Sw{}class Tw{preload(t,e){return lh(null)}}let kw=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new pw(e,n,e=>t.triggerEvent(new gv(e)),e=>t.triggerEvent(new fv(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ad(t=>t instanceof ov),Rh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Yt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return F(n).pipe(B(),N(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Gt(bw),Gt(Uc),Gt(yc),Gt(co),Gt(Sw))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Iw=(()=>{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 sv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ov&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof bv&&(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 bv(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)(Gt(bw),Gt(Eu),Gt(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Pw=new Vt("ROUTER_CONFIGURATION"),Ew=new Vt("ROUTER_FORROOT_GUARD"),Aw=[pu,{provide:Vv,useClass:jv},{provide:bw,useFactory:function(t,e,n,r,i,s,o,a={},l,c){const u=new bw(null,t,e,n,r,i,s,kv(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Yc();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[Vv,fw,pu,co,Uc,yc,dw,Pw,[class{},new rt],[class{},new rt]]},fw,{provide:sy,useFactory:function(t){return t.routerState.root},deps:[bw]},{provide:Uc,useClass:qc},kw,Tw,class{preload(t,e){return e().pipe(Zm(()=>lh(null)))}},{provide:Pw,useValue:{enableTracing:!1}}];function Mw(){return new Nc("Router",bw)}let Lw=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Aw,Vw(e),{provide:Ew,useFactory:Dw,deps:[[bw,new rt,new st]]},{provide:Pw,useValue:n||{}},{provide:lu,useFactory:Nw,deps:[Xc,[new nt(uu),new rt],Pw]},{provide:Iw,useFactory:Rw,deps:[bw,Eu,Pw]},{provide:Sw,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Tw},{provide:Nc,multi:!0,useFactory:Mw},[jw,{provide:tc,multi:!0,useFactory:Fw,deps:[jw]},{provide:Hw,useFactory:zw,deps:[jw]},{provide:ac,multi:!0,useExisting:Hw}]]}}static forChild(e){return{ngModule:t,providers:[Vw(e)]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(Ew,8),Gt(bw,8))}}),t})();function Rw(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Iw(t,e,n)}function Nw(t,e,n={}){return n.useHash?new du(t,e):new hu(t,e)}function Dw(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Vw(t){return[{provide:uo,multi:!0,useValue:t},{provide:dw,multi:!0,useValue:t}]}let jw=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get(eu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(bw),r=this.injector.get(Pw);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?lh(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Pw),n=this.injector.get(kw),r=this.injector.get(Iw),i=this.injector.get(bw),s=this.injector.get(zc);t===s.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Gt(co))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Fw(t){return t.appInitializer.bind(t)}function zw(t){return t.bootstrapListener.bind(t)}const Hw=new Vt("Router Initializer");var Uw=n("9a8T"),$w=n.n(Uw);function Bw(t,e){if(1&t&&(Po(0,"div",13),Po(1,"div",14),Po(2,"a",15),Ao(3,"img",16),Eo(),Eo(),Po(4,"div",17),pa(5),Eo(),Po(6,"p",18),pa(7),Eo(),Eo()),2&t){const t=Ho();bi(5),fa(" ",t.profile.name," "),bi(2),fa(" ",t.profile.titles," ")}}let qw=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-header"]],inputs:{profile:"profile"},decls:14,vars:1,consts:[[1,"profile-page","animate__animated","animate_fadeIn"],[1,"wrapper"],["filter-color","green",1,"page-header","page-header-small"],["id","particles-js"],["data-parallax","true",1,"page-header-image"],[1,"container"],["class","content-center",4,"ngIf"],[1,"section"],[1,"button-container"],["href","https://www.linkedin.com/in/inggomezjc/","rel","tooltip","title","Follow me on LinkedIn",1,"btn","btn-default","btn-round","btn-lg","btn-icon","cc-linkedin"],[1,"fa","fa-linkedin"],["href","https://github.com/CharlieGomez","rel","tooltip","title","Follow me on GitHub",1,"btn","btn-default","btn-round","btn-lg","btn-icon","cc-github"],[1,"fa","fa-github"],[1,"content-center"],[1,"cc-profile-image"],["href","#"],["src","../../../assets/profile/0.jpg","alt","Image"],[1,"h2","title"],[1,"category","text-white"]],template:function(t,e){1&t&&(Po(0,"div",0),Po(1,"div",1),Po(2,"div",2),Ao(3,"div",3),Ao(4,"div",4),Po(5,"div",5),Co(6,Bw,8,2,"div",6),Eo(),Po(7,"div",7),Po(8,"div",5),Po(9,"div",8),Po(10,"a",9),Ao(11,"i",10),Eo(),Po(12,"a",11),Ao(13,"i",12),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&t&&(bi(6),ko("ngIf",e.profile))},directives:[Ou],styles:["body[_ngcontent-%COMP%]{margin:0;font:normal 75% Arial,Helvetica,sans-serif}canvas[_ngcontent-%COMP%]{display:block;vertical-align:bottom}#particles-js[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;background-color:#10206b;background-repeat:no-repeat;background-size:cover;background-position:50% 50%}.count-particles[_ngcontent-%COMP%]{background:#002;position:absolute;top:48px;left:0;width:80px;color:#13e8e9;font-size:.8em;text-align:left;text-indent:4px;line-height:14px;padding-bottom:2px;font-family:Helvetica,Arial,sans-serif;font-weight:700}.js-count-particles[_ngcontent-%COMP%]{font-size:1.1em}#stats[_ngcontent-%COMP%], .count-particles[_ngcontent-%COMP%]{-webkit-user-select:none;margin-top:5px;margin-left:5px}#stats[_ngcontent-%COMP%]{border-radius:3px 3px 0 0;overflow:hidden}.count-particles[_ngcontent-%COMP%]{border-radius:0 0 3px 3px}.cc-profile-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{border:15px solid rgba(55,123,140,.6)}"]}),t})();function Ww(t,e){1&t&&(Po(0,"div",17),Po(1,"div",18),Ao(2,"i",19),Ao(3,"i",20),Eo(),Po(4,"div",21),pa(5),Al(6,"translate"),Eo(),Eo()),2&t&&(bi(5),fa(" ",Ml(6,1,"profile.language")," "))}function Gw(t,e){if(1&t&&(Po(0,"div",17),Po(1,"div",18),Ao(2,"i",19),Ao(3,"i",22),Eo(),Po(4,"div",21),pa(5),Eo(),Eo()),2&t){const t=Ho(2);bi(5),fa(" ",t.profile.email," ")}}function Zw(t,e){if(1&t&&(Po(0,"div",17),Po(1,"div",18),Ao(2,"i",19),Ao(3,"i",23),Eo(),Po(4,"div",21),pa(5),Eo(),Eo()),2&t){const t=Ho(2);bi(5),fa(" ",t.profile.phone," ")}}function Kw(t,e){1&t&&(Po(0,"div",17),Po(1,"div",18),Ao(2,"i",19),Ao(3,"i",24),Eo(),Po(4,"div",21),pa(5),Al(6,"translate"),Eo(),Eo()),2&t&&(bi(5),fa(" ",Ml(6,1,"profile.cedula")," "))}function Qw(t,e){if(1&t&&(Po(0,"div",1),Po(1,"div",2),Po(2,"div",3),Po(3,"div",4),Po(4,"div",5),Po(5,"div",6),Po(6,"div",7),pa(7),Al(8,"translate"),Eo(),Co(9,Ww,7,3,"div",8),Al(10,"translate"),Co(11,Gw,6,1,"div",8),Co(12,Zw,6,1,"div",8),Co(13,Kw,7,3,"div",8),Al(14,"translate"),Eo(),Eo(),Po(15,"div",5),Po(16,"div",6),Po(17,"div",7),pa(18),Al(19,"translate"),Eo(),Po(20,"p",9),pa(21),Al(22,"translate"),Eo(),Eo(),Eo(),Eo(),Po(23,"div",10),Po(24,"div",11),Po(25,"a",12),Ao(26,"img",13),Eo(),Eo(),Po(27,"div",14),Po(28,"a",15),Ao(29,"img",16),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&t){const t=Ho();bi(7),fa(" ",Ml(8,7,"information")," "),bi(2),ko("ngIf",Ml(10,9,"profile.language")),bi(2),ko("ngIf",t.profile.email),bi(1),ko("ngIf",t.profile.phone),bi(1),ko("ngIf",Ml(14,11,"profile.cedula")),bi(5),fa(" ",Ml(19,13,"about")," "),bi(3),fa(" ",Ml(22,15,"profile.about")," ")}}let Yw=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-about"]],inputs:{profile:"profile"},decls:1,vars:1,consts:[["class","section","id","about",4,"ngIf"],["id","about",1,"section"],[1,"container"],["data-aos","fade-up","data-aos-offset","10",1,"card"],[1,"row"],[1,"col-lg-6","col-md-12"],[1,"card-body"],[1,"h4","mt-0","title"],["class","row mt-3",4,"ngIf"],[1,"text-justify"],[1,"row","justify-content-center"],["data-aos","fade-right",1,"claim-image","claim-image-red"],["href","https://www.youracclaim.com/badges/cc3a4fde-adce-468d-ad1b-90ca7d57df1a/public_url"],["src","assets/profile/lifelong.png","alt","Image"],["data-aos","fade-left",1,"claim-image"],["href","https://www.youracclaim.com/badges/3f3ba989-7276-49d3-8107-b2b872b5d976/public_url"],["src","assets/profile/scrum.png","alt","Image"],[1,"row","mt-3"],[1,"col-sm-2","fa-stack"],[1,"fas","fa-circle","fa-stack-2x"],[1,"fas","fa-language","fa-stack-1x"],[1,"col-sm-10"],[1,"fas","fa-envelope","fa-stack-1x"],[1,"fas","fa-mobile-alt","fa-stack-1x"],[1,"fas","fa-id-badge","fa-stack-1x"]],template:function(t,e){1&t&&Co(0,Qw,30,17,"div",0),2&t&&ko("ngIf",e.profile)},directives:[Ou],pipes:[id],styles:['.fa-stack[_ngcontent-%COMP%] .fa-stack-1x[_ngcontent-%COMP%]{color:#fff}.fa-stack[_ngcontent-%COMP%]{font-size:1em;color:#888}.claim-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative}.claim-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{content:"";border:15px solid hsla(0,0%,53.3%,.6);border-radius:50%;height:180px;width:180px;position:absolute;left:0;animation:pulsate 1.6s ease-out;animation-iteration-count:infinite;opacity:0;z-index:99}.claim-image.claim-image-red[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{border:15px solid rgba(255,0,0,.6)}.claim-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:relative;border-radius:50%;height:180px;width:180px;padding:0;margin:0;border:15px solid transparent;z-index:9999;transition:all .3s ease-out}.claim-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.06)}.claim-image[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover:before{animation:none}']}),t})();const Jw=["ci1","ci2","ci3"],Xw=function(t){return{width:t}};function tb(t,e){if(1&t&&(Po(0,"div",17),Po(1,"div",18),Po(2,"span",19),pa(3),Eo(),Po(4,"div",20),Ao(5,"div",21),Po(6,"span",22),pa(7),Eo(),Eo(),Eo(),Eo()),2&t){const t=e.$implicit;bi(3),fa(" ",t.name," "),bi(2),ko("ngStyle",Tl(3,Xw,t.value+"%")),bi(2),fa(" ",t.value,"% ")}}function eb(t,e){if(1&t&&(Po(0,"div",17),Po(1,"div",18),Po(2,"span",19),pa(3),Eo(),Po(4,"div",20),Ao(5,"div",23),Po(6,"span",22),pa(7),Eo(),Eo(),Eo(),Eo()),2&t){const t=e.$implicit;bi(3),fa(" ",t.name," "),bi(2),ko("ngStyle",Tl(3,Xw,t.value+"%")),bi(2),fa(" ",t.value,"% ")}}let nb=(()=>{class t{constructor(t){this.renderer=t,this.renderer.listen("window","scroll",this.detectElms.bind(this))}ngAfterViewInit(){setTimeout(this.detectElms.bind(this))}detectElms(){this.elms.forEach((t,e)=>{(function(t){var e=t.offsetTop,n=document.documentElement.scrollTop,r=n+document.documentElement.clientHeight;return e+t.offsetHeight>n&&e{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-timeline"]],decls:3,vars:3,consts:[[1,"main-timeline","p-1"],["class","timeline","data-aos","fade-up",4,"ngFor","ngForOf"],["data-aos","fade-up",1,"timeline"],[1,"timeline-icon"],[1,"fa","fa-briefcase"],[1,"year"],[1,"timeline-content"],[1,"title"],["class","",4,"ngFor","ngForOf"],["class","description",4,"ngFor","ngForOf"],[1,""],[1,"company",3,"href"],[1,"description"]],template:function(t,e){1&t&&(Po(0,"div",0),Co(1,sb,10,4,"div",1),Al(2,"translate"),Eo()),2&t&&(bi(1),ko("ngForOf",Ml(2,1,"profile.expirence")))},directives:[xu],pipes:[id],styles:['.main-timeline[_ngcontent-%COMP%]{overflow:hidden;position:relative}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]{width:50%;float:left;z-index:1;position:relative}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:after, .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:before{content:"";display:block;clear:both}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:before{content:"";width:40px;height:90%;background:#105f6b;position:absolute;top:5%;right:-20px}.main-timeline[_ngcontent-%COMP%] .timeline-icon[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;background:#105f6b;overflow:hidden;text-align:center;position:absolute;top:0;right:-40px;z-index:3}.main-timeline[_ngcontent-%COMP%] .timeline-icon[_ngcontent-%COMP%]:before{content:"";width:60px;height:60px;border-radius:50%;background:#fff;border:2px solid #105f6b;box-shadow:0 0 0 4px #1b9eb3;margin:auto;position:absolute;top:0;left:0;bottom:0;right:0}.main-timeline[_ngcontent-%COMP%] .timeline-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:35px;color:#303a3b;line-height:80px;z-index:1;position:relative}.main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{display:block;padding:0 60px 0 30px;font-size:25px;color:#5e6464;text-align:right;border-bottom:2px solid #303a3b;z-index:2;position:relative}.main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before{content:"";display:block;width:30px;height:30px;border-radius:50%;background:#105f6b;border:5px solid #fff;box-shadow:0 0 0 4px #105f6b;margin:auto;position:absolute;bottom:-15px;left:4px}.main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:after{content:"";border-left:10px solid #303a3b;border-top:10px solid transparent;border-bottom:10px solid transparent;position:absolute;bottom:-11px;left:50px}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]{padding:18px 60px 18px 40px;text-align:right;position:relative;z-index:1}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]:after, .main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]:before{content:"";width:40px;height:150px;border-radius:50%;background:#fff;position:absolute;top:-7%;right:15px;z-index:-1}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]:after{left:auto;right:-55px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:last-child .timeline-content[_ngcontent-%COMP%]:after, .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:last-child .timeline-content[_ngcontent-%COMP%]:before{width:0;height:0}.main-timeline[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:#105f6b;margin-top:0}.main-timeline[_ngcontent-%COMP%] .company[_ngcontent-%COMP%]{font-weight:700;color:#000;z-index:5}.main-timeline[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-top:5px;font-size:15px;color:#383a3b;line-height:25px;text-align:left}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2){margin-top:140px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n){margin-bottom:80px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(odd){margin:-140px 0 0}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:first-child, .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:last-child:nth-child(2n){margin:0!important}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-icon[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n):before{right:auto;left:-20px;background:#10406b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-icon[_ngcontent-%COMP%]{left:-40px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .year[_ngcontent-%COMP%]{padding:0 30px 0 60px;text-align:left}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .year[_ngcontent-%COMP%]:before{left:auto;right:3px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .year[_ngcontent-%COMP%]:after{border-left:none;border-right:10px solid #303a3b;right:50px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-content[_ngcontent-%COMP%]{padding:18px 40px 18px 60px;text-align:left}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-content[_ngcontent-%COMP%]:before{left:-55px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-content[_ngcontent-%COMP%]:after{left:15px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+2) .timeline-icon[_ngcontent-%COMP%]:before{border-color:#10406b;box-shadow:0 0 0 4px #1b6cb3}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+2) .year[_ngcontent-%COMP%]:before{background:#10406b;box-shadow:0 0 0 4px #10406b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+2) .title[_ngcontent-%COMP%]{color:#10406b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+3) .timeline-icon[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+3):before{background:#10206b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+3) .timeline-icon[_ngcontent-%COMP%]:before{border-color:#10206b;box-shadow:0 0 0 4px #1b37b3}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+3) .year[_ngcontent-%COMP%]:before{background:#10206b;box-shadow:0 0 0 4px #10206b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+3) .title[_ngcontent-%COMP%]{color:#10206b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+4) .timeline-icon[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+4):before{background:#2e106b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+4) .timeline-icon[_ngcontent-%COMP%]:before{border-color:#2e106b;box-shadow:0 0 0 4px #4d1bb3}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+4) .year[_ngcontent-%COMP%]:before{background:#2e106b;box-shadow:0 0 0 4px #2e106b}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(4n+4) .title[_ngcontent-%COMP%]{color:#2e106b}@media only screen and (max-width:990px){.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]{width:100%}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n), .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(odd){margin:0}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:before, .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n):before{width:30px;height:100%;left:25px;top:10px}.main-timeline[_ngcontent-%COMP%] .timeline-icon[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-icon[_ngcontent-%COMP%]{left:0}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .year[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{text-align:left;padding:0 30px 0 100px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .year[_ngcontent-%COMP%]:before, .main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:before{left:auto;right:4px}.main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:after{left:auto;right:50px;border-right:10px solid #303a3b;border-left:none}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#666}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:nth-child(2n) .timeline-content[_ngcontent-%COMP%]{text-align:left;padding:18px 40px 18px 100px}.main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]:after, .main-timeline[_ngcontent-%COMP%] .timeline-content[_ngcontent-%COMP%]:before{width:0;height:0}}@media only screen and (max-width:400px){.main-timeline[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{text-align:left;padding:0 30px 0 100px;font-size:16px}.main-timeline[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:15px}.main-timeline[_ngcontent-%COMP%] .company[_ngcontent-%COMP%], .main-timeline[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:12px}.main-timeline[_ngcontent-%COMP%] .timeline[_ngcontent-%COMP%]:before{top:1%}}']}),t})(),ab=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-experience"]],decls:8,vars:3,consts:[["id","experience",1,"section"],[1,"container","cc-experience"],[1,"h4","text-center","mb-4","title"],[1,"card"],[1,"col-md-12"]],template:function(t,e){1&t&&(Po(0,"div",0),Po(1,"div",1),Po(2,"div",2),pa(3),Al(4,"translate"),Eo(),Po(5,"div",3),Po(6,"div",4),Ao(7,"app-timeline"),Eo(),Eo(),Eo(),Eo()),2&t&&(bi(3),ga(Ml(4,1,"wExperience")))},directives:[ob],pipes:[id],styles:[".cc-experience-header[_ngcontent-%COMP%] .h5[_ngcontent-%COMP%]{overflow-wrap:normal}"]}),t})(),lb=(()=>{class t{constructor(){}ngOnInit(){this.galleryOptions=[{width:"800px",height:"600px",thumbnailsColumns:4,imageAnimation:vp.Slide,imageAutoPlay:!0,imageSize:yp.Contain,imageAutoPlayPauseOnHover:!0,previewCloseOnClick:!0,previewCloseOnEsc:!0,thumbnailsMoveSize:4,thumbnailsPercent:25,imageArrowsAutoHide:!0,thumbnailsArrowsAutoHide:!0,previewZoom:!0,imageAutoPlayInterval:3e3},{breakpoint:800,width:"100%",height:"600px",imagePercent:50,thumbnailsPercent:23,thumbnailsColumns:3},{breakpoint:400,width:"100%",preview:!1,thumbnailsPercent:23,thumbnailsColumns:2}],this.galleryImages=[{small:"assets/courses/Azure.png",medium:"assets/courses/Azure.png",big:"assets/courses/Azure.png"},{small:"assets/courses/Azure1.png",medium:"assets/courses/Azure1.png",big:"assets/courses/Azure1.png"},{small:"assets/courses/AzureCos.png",medium:"assets/courses/AzureCos.png",big:"assets/courses/AzureCos.png"},{small:"assets/courses/AzureDev.png",medium:"assets/courses/AzureDev.png",big:"assets/courses/AzureDev.png"},{small:"assets/courses/AzureDevOps.png",medium:"assets/courses/AzureDevOps.png",big:"assets/courses/AzureDevOps.png"},{small:"assets/courses/AzureFabric.png",medium:"assets/courses/AzureFabric.png",big:"assets/courses/AzureFabric.png"},{small:"assets/courses/AzureFunctions.png",medium:"assets/courses/AzureFunctions.png",big:"assets/courses/AzureFunctions.png"},{small:"assets/courses/AzureMachine.png",medium:"assets/courses/AzureMachine.png",big:"assets/courses/AzureMachine.png"},{small:"assets/courses/AzureMicroservicios.png",medium:"assets/courses/AzureMicroservicios.png",big:"assets/courses/AzureMicroservicios.png"},{small:"assets/courses/CloudComp.png",medium:"assets/courses/CloudComp.png",big:"assets/courses/CloudComp.png"},{small:"assets/courses/CosmoDB.png",medium:"assets/courses/CosmoDB.png",big:"assets/courses/CosmoDB.png"},{small:"assets/courses/Css.png",medium:"assets/courses/Css.png",big:"assets/courses/Css.png"},{small:"assets/courses/DevOps.png",medium:"assets/courses/DevOps.png",big:"assets/courses/DevOps.png"},{small:"assets/courses/Docker.png",medium:"assets/courses/Docker.png",big:"assets/courses/Docker.png"},{small:"assets/courses/Scrum.png",medium:"assets/courses/Scrum.png",big:"assets/courses/Scrum.png"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-course"]],decls:9,vars:5,consts:[["id","course",1,"section"],[1,"container"],[1,"h4","text-center","mb-4","title"],[1,"card"],[1,"card-body"],[1,"row","justify-content-center"],[3,"options","images"]],template:function(t,e){1&t&&(Po(0,"div",0),Po(1,"div",1),Po(2,"div",2),pa(3),Al(4,"translate"),Eo(),Po(5,"div",3),Po(6,"div",4),Po(7,"div",5),Ao(8,"ngx-gallery",6),Eo(),Eo(),Eo(),Eo(),Eo()),2&t&&(bi(3),ga(Ml(4,3,"course")),bi(5),ko("options",e.galleryOptions)("images",e.galleryImages))},directives:[kp],pipes:[id],styles:[""]}),t})(),cb=(()=>{class t{constructor(t){this.http=t,this.progSkills=[],this.otherSkills=[],this.otherSkills2=[]}ngOnInit(){particlesJS.load("particles-js","assets/particles.json",null),this.http.get("assets/translate/profile.json").subscribe(t=>{this.progSkills=t.prog_skill,this.profile=t.profile,this.otherSkills=t.other_skill,this.otherSkills2=t.other_skill2}),$w.a.init()}}return t.\u0275fac=function(e){return new(e||t)(So(Td))},t.\u0275cmp=he({type:t,selectors:[["app-home"]],decls:7,vars:5,consts:[[1,"page-content"],[3,"profile"],[3,"progSkills","otherSkills","otherSkills2"]],template:function(t,e){1&t&&(Po(0,"div",0),Po(1,"div"),Ao(2,"app-header",1),Ao(3,"app-about",1),Ao(4,"app-skill",2),Ao(5,"app-experience"),Ao(6,"app-course"),Eo(),Eo()),2&t&&(bi(2),ko("profile",e.profile),bi(1),ko("profile",e.profile),bi(1),ko("progSkills",e.progSkills)("otherSkills",e.otherSkills)("otherSkills2",e.otherSkills2))},directives:[qw,Yw,nb,ab,lb],styles:[""]}),t})();const ub=[{path:"home",component:cb},{path:"**",component:cb}];let hb=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Lw.forRoot(ub,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled",useHash:!0})],Lw]}),t})();function db(t,e){if(1&t&&(Po(0,"ng-option",19),Ao(1,"img",20),Eo()),2&t){const t=e.$implicit;ko("value",t),bi(1),qo("src","https://www.countryflags.io/"+t+"/flat/64.png",Xr)}}const pb=function(){return["home"]};let gb=(()=>{class t{constructor(t){this.translate=t,this.flag="mx",t.addLangs(["mx","us"]),localStorage.getItem("language")&&t.getLangs().includes(localStorage.getItem("language"))?this.switchLang(localStorage.getItem("language")):this.switchLang("mx")}switchLang(t){this.translate.use(t),localStorage.setItem("language",t),this.flag=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(So(rd))},t.\u0275cmp=he({type:t,selectors:[["app-navbar"]],decls:32,vars:26,consts:[[1,"profile-page","sidebar-collapse"],["color-on-scroll","400",1,"navbar","navbar-expand-lg","fixed-top","navbar-transparent","bg-principal"],[1,"container"],[1,"navbar-translate"],["rel","tooltip",1,"navbar-brand",3,"routerLink"],[1,"fas","fa-home"],["type","button","data-toggle","collapse","data-target","#navigation","aria-controls","navigation","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler"],[1,"navbar-toggler-bar","bar1"],[1,"navbar-toggler-bar","bar2"],[1,"navbar-toggler-bar","bar3"],["id","navigation",1,"collapse","navbar-collapse","justify-content-end"],[1,"navbar-nav"],[1,"nav-item"],["fragment","about",1,"nav-link","smooth-scroll",3,"routerLink"],["fragment","skill",1,"nav-link","smooth-scroll",3,"routerLink"],["fragment","experience",1,"nav-link","smooth-scroll",3,"routerLink"],["fragment","course",1,"nav-link","smooth-scroll",3,"routerLink"],[1,"flags",3,"searchable","clearable","ngModel","change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"src"]],template:function(t,e){1&t&&(Po(0,"header"),Po(1,"div",0),Po(2,"nav",1),Po(3,"div",2),Po(4,"div",3),Po(5,"a",4),Ao(6,"i",5),Eo(),Po(7,"button",6),Ao(8,"span",7),Ao(9,"span",8),Ao(10,"span",9),Eo(),Eo(),Po(11,"div",10),Po(12,"ul",11),Po(13,"li",12),Po(14,"a",13),pa(15),Al(16,"translate"),Eo(),Eo(),Po(17,"li",12),Po(18,"a",14),pa(19),Al(20,"translate"),Eo(),Eo(),Po(21,"li",12),Po(22,"a",15),pa(23),Al(24,"translate"),Eo(),Eo(),Po(25,"li",12),Po(26,"a",16),pa(27),Al(28,"translate"),Eo(),Eo(),Po(29,"li",12),Po(30,"ng-select",17),jo("change",(function(t){return e.switchLang(t)})),Co(31,db,2,2,"ng-option",18),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&t&&(bi(5),ko("routerLink",Sl(21,pb)),bi(9),ko("routerLink",Sl(22,pb)),bi(1),fa(" ",Ml(16,13,"about")," "),bi(3),ko("routerLink",Sl(23,pb)),bi(1),fa(" ",Ml(20,15,"skills")," "),bi(3),ko("routerLink",Sl(24,pb)),bi(1),fa(" ",Ml(24,17,"experience")," "),bi(3),ko("routerLink",Sl(25,pb)),bi(1),fa(" ",Ml(28,19,"course")," "),bi(3),ko("searchable",!1)("clearable",!1)("ngModel",e.flag),bi(1),ko("ngForOf",e.translate.getLangs()))},directives:[_w,Pm,$p,jg,xu,Tm],pipes:[id],styles:[""]}),t})(),fb=(()=>{class t{constructor(){this.currentYear=(new Date).getFullYear()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-footer"]],decls:9,vars:1,consts:[[1,"footer"],[1,"container","text-center"],["href","https://www.linkedin.com/in/inggomezjc/",1,"cc-linkedin","btn","btn-link"],["aria-hidden","true",1,"fa","fa-linkedin","fa-2x"],["href","https://github.com/CharlieGomez",1,"cc-github","btn","btn-link"],["aria-hidden","true",1,"fa","fa-github","fa-2x"],[1,"text-center","text-muted"]],template:function(t,e){1&t&&(Po(0,"footer",0),Po(1,"div",1),Po(2,"a",2),Ao(3,"i",3),Eo(),Po(4,"a",4),Ao(5,"i",5),Eo(),Eo(),Po(6,"div",6),Po(7,"p"),pa(8),Eo(),Eo(),Eo()),2&t&&(bi(8),fa("Copyright \xa9 ",e.currentYear," Carlos Gomez J. All rights reserved. "))},styles:[""]}),t})(),mb=(()=>{class t{constructor(){this.title="ProfileWeb"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-root"]],decls:3,vars:0,template:function(t,e){1&t&&(Ao(0,"app-navbar"),Ao(1,"router-outlet"),Ao(2,"app-footer"))},directives:[gb,Cw,fb],styles:[""]}),t})(),vb=(()=>{class t{}return t.\u0275mod=fe({type:t,bootstrap:[mb]}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[ah,hb,Hd,sd.forRoot({loader:{provide:jh,useFactory:yb,deps:[Td]}}),Ap,Mm,zg]]}),t})();function yb(t){return new od(t,"./assets/translate/")}(function(){if(Tr)throw new Error("Cannot enable prod mode after platform setup.");Sr=!1})(),sh().bootstrapModule(vb).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);