-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.49c0974f995bfa5b2e83.js
1 lines (1 loc) · 257 KB
/
main.49c0974f995bfa5b2e83.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{3:function(t,e,n){t.exports=n("zUnb")},ELNm:function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),i=n(3),a=function(){function t(e,n){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),o.initializer.load(this,n,e),this.begin()}return r(t,[{key:"toggle",value:function(){this.pause.status?this.start():this.stop()}},{key:"stop",value:function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))}},{key:"start",value:function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))}},{key:"destroy",value:function(){this.reset(!1),this.options.onDestroy(this)}},{key:"reset",value:function(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0];clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())}},{key:"begin",value:function(){var t=this;this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){t.currentElContent&&0!==t.currentElContent.length?t.backspace(t.currentElContent,t.currentElContent.length):t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},this.startDelay)}},{key:"typewrite",value:function(t,e){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),o=1;!0!==this.pause.status?this.timeout=setTimeout(function(){e=i.htmlParser.typeHtmlChars(t,e,n);var r=0,a=t.substr(e);if("^"===a.charAt(0)&&/^\^\d+/.test(a)){var s=1;s+=(a=/\d+/.exec(a)[0]).length,r=parseInt(a),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),t=t.substring(0,e)+t.substring(e+s),n.toggleBlinking(!0)}if("`"===a.charAt(0)){for(;"`"!==t.substr(e+o).charAt(0)&&!(e+ ++o>t.length););var u=t.substring(0,e),l=t.substring(u.length+1,e+o),c=t.substring(e+o+1);t=u+l+c,o--}n.timeout=setTimeout(function(){n.toggleBlinking(!1),e===t.length?n.doneTyping(t,e):n.keepTyping(t,e,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))},r)},r):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=t.substr(0,e+=n);this.replaceText(r),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout(function(){n.backspace(t,e)},this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){e=i.htmlParser.backSpaceHtmlChars(t,e,n);var r=t.substr(0,e);if(n.replaceText(r),n.smartBackspace){var o=n.strings[n.arrayPos+1];n.stopNum=o&&r===o.substr(0,e)?e:0}e>n.stopNum?n.backspace(t,--e):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))},r)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",function(e){t.stop()}),this.el.addEventListener("blur",function(e){t.el.value&&0!==t.el.value.length||t.start()}))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=a,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=(r=n(2))&&r.__esModule?r:{default:r},s=function(){function t(){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this)}return i(t,[{key:"load",value:function(t,e,n){if(t.el="string"==typeof n?document.querySelector(n):n,t.options=o({},a.default,e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map(function(t){return t.trim()}),t.stringsElement="string"==typeof t.options.stringsElement?document.querySelector(t.options.stringsElement):t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.display="none";var r=Array.prototype.slice.apply(t.stringsElement.children),i=r.length;if(i)for(var s=0;s<i;s+=1)t.strings.push(r[s].innerHTML.trim())}for(var s in t.strPos=0,t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.sequence=[],t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1,t.strings)t.sequence[s]=s;t.currentElContent=this.getCurrentElContent(t),t.autoInsertCss=t.options.autoInsertCss,this.appendAnimationCss(t)}},{key:"getCurrentElContent",value:function(t){return t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent}},{key:"appendAnimationCss",value:function(t){if(t.autoInsertCss&&(t.showCursor||t.fadeOut)&&!document.querySelector("[data-typed-js-css]")){var e=document.createElement("style");e.type="text/css",e.setAttribute("data-typed-js-css",!0);var n="";t.showCursor&&(n+="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n "),t.fadeOut&&(n+="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n "),0!==e.length&&(e.innerHTML=n,document.body.appendChild(e))}}}]),t}();e.default=s;var u=new s;e.initializer=u},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}},t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=function(){function t(){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this)}return n(t,[{key:"typeHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if("<"===r||"&"===r){var o;for(o="<"===r?">":";";t.substr(e+1).charAt(0)!==o&&!(++e+1>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if(">"===r||";"===r){var o;for(o=">"===r?"<":"&";t.substr(e-1).charAt(0)!==o&&!(--e<0););e--}return e}}]),t}();e.default=r;var o=new r;e.htmlParser=o}])},t.exports=r()},crnd: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="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}function l(t){return"function"==typeof t}var c=!1,p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){c=t},get useDeprecatedSynchronousErrorHandling(){return c}};function f(t){setTimeout(function(){throw t})}var h={closed:!0,next:function(t){},error:function(t){if(p.useDeprecatedSynchronousErrorHandling)throw t;f(t)},complete:function(){}},d=Array.isArray||function(t){return t&&"number"==typeof t.length};function v(t){return null!=t&&"object"==typeof t}var g,y={e:{}};function m(){try{return g.apply(this,arguments)}catch(t){return y.e=t,y}}function b(t){return g=t,m}var w=function(t){function e(n){var r=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error),_=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,s=r?r.length:0;n;)n.remove(this),n=++a<s&&r[a]||null;if(l(o)&&b(o).call(this)===y&&(e=!0,t=t||(y.e instanceof w?C(y.e.errors):[y.e])),d(i))for(a=-1,s=i.length;++a<s;){var u=i[a];if(v(u)&&b(u.unsubscribe).call(u)===y){e=!0,t=t||[];var c=y.e;c instanceof w?t=t.concat(C(c.errors)):t.push(c)}}if(e)throw new w(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function C(t){return t.reduce(function(t,e){return t.concat(e instanceof w?e.errors:e)},[])}var x="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",E=function(t){function e(e,n,r){var o,i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=h;break;case 1:if(!e){i.destination=h;break}if("object"==typeof e){if((o=e)instanceof E||"syncErrorThrowable"in o&&o[x]){var a=e[x]();i.syncErrorThrowable=a.syncErrorThrowable,i.destination=a,a.add(i)}else i.syncErrorThrowable=!0,i.destination=new S(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new S(i,e,n,r)}return i}return o(e,t),e.prototype[x]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(_),S=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return l(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==h&&(l((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=i,a._error=r,a._complete=o,a}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;p.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=p.useDeprecatedSynchronousErrorHandling;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):f(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;f(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};p.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),p.useDeprecatedSynchronousErrorHandling)throw t;f(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!p.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return p.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(f(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(E),T="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(){}function P(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I(t)}function I(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:k}var A=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof E)return t;if(t[x])return t[x]()}return t||e||n?new E(t,e,n):new E(h)}(t,e,n);if(r?r.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),p.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){p.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=O(e))(function(e,r){var o;o=n.subscribe(function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[T]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:I(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=O(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function O(t){if(t||(t=p.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function R(t){return t&&"function"==typeof t.schedule}var N=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return o(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(E),D=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},M=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,f),e}},j=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),V=function(t){return function(e){for(var n=t[j]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},L=function(t){return function(e){var n=t[T]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},U=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function H(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var z=function(t){if(t instanceof A)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(U(t))return D(t);if(H(t))return M(t);if(t&&"function"==typeof t[j])return V(t);if(t&&"function"==typeof t[T])return L(t);var e=v(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.")};function F(t,e,n,r){var o=new N(t,n,r);return z(e)(o)}var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(E);function q(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 G(t,e))}}var G=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.project,this.thisArg))},t}(),Z=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(E);function Q(t,e){return new A(e?function(n){var r=new _,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:D(t))}function W(t,e){if(!e)return t instanceof A?t:new A(z(t));if(null!=t){if(function(t){return t&&"function"==typeof t[T]}(t))return function(t,e){return new A(e?function(n){var r=new _;return r.add(e.schedule(function(){var o=t[T]();r.add(o.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:L(t))}(t,e);if(H(t))return function(t,e){return new A(e?function(n){var r=new _;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:M(t))}(t,e);if(U(t))return Q(t,e);if(function(t){return t&&"function"==typeof t[j]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new A(e?function(n){var r,o=new _;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[j](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:V(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function K(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(K(function(n,r){return W(t(n,r)).pipe(q(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Y(t,n))})}var Y=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.project,this.concurrent))},t}(),$=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(F(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(B);function J(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),K(J,t)}var tt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),et=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(_),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(E),rt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[x]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new tt;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new tt;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new tt;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new tt;return this.hasError?(t.error(this.thrownError),_.EMPTY):this.isStopped?(t.complete(),_.EMPTY):(this.observers.push(t),new et(this,t))},e.prototype.asObservable=function(){var t=new A;return t.source=this,t},e.create=function(t,e){return new ot(t,e)},e}(A),ot=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return o(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):_.EMPTY},e}(rt);function it(){return function(t){return t.lift(new at(t))}}var at=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new st(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),st=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),ut=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new _).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=_.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(A).prototype,lt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ut._subscribe},_isComplete:{value:ut._isComplete,writable:!0},getSubject:{value:ut.getSubject},connect:{value:ut.connect},refCount:{value:ut.refCount}},ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(nt);function pt(){return new rt}function ft(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ht=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?ft({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),dt="__parameters__";function vt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,u(e));for(var o in r)this[o]=r[o]}}}(e);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof o)return r.apply(this,t),this;var n,i=new((n=o).bind.apply(n,u([void 0],t)));return a.annotation=i,a;function a(t,e,n){for(var r=t.hasOwnProperty(dt)?t[dt]:Object.defineProperty(t,dt,{value:[]})[dt];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}var gt=new ht("AnalyzeForEntryComponents");Function;var yt="undefined"!=typeof window&&window,mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,bt="undefined"!=typeof global&&global,wt=yt||bt||mt,_t=Promise.resolve(0),Ct=null;function xt(){if(!Ct){var t=wt.Symbol;if(t&&t.iterator)Ct=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ct=r)}}return Ct}function Et(t){"undefined"==typeof Zone?_t.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function St(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Tt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Tt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function kt(t){return t.__forward_ref__=kt,t.toString=function(){return Tt(this())},t}function Pt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===kt?t():t}var It=vt("Inject",function(t){return{token:t}}),At=vt("Optional"),Ot=vt("Self"),Rt=vt("SkipSelf"),Nt="__source",Dt=new Object,Mt=new ht("INJECTOR"),jt=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Dt),e===Dt)throw new Error("NullInjectorError: No provider for "+Tt(t)+"!");return e},t}(),Vt=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Qt(t,e):new Qt(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=Dt,t.NULL=new jt,t.ngInjectableDef=ft({providedIn:"any",factory:function(){return function(t,e){if(void 0===e&&(e=0),void 0===$t)throw new Error("inject() must be called from an injection context");if(null===$t){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;throw new Error("Injector: NOT_FOUND ["+Tt(t)+"]")}return $t.get(t,8&e?null:void 0,e)}(Mt)}}),t}(),Lt=function(t){return t},Ut=[],Ht=Lt,zt=function(){return Array.prototype.slice.call(arguments)},Ft={},Bt=function(t){for(var e in t)if(t[e]===Ft)return e;throw Error("!prop")}({provide:String,useValue:Ft}),qt=Vt.NULL,Gt=/\n/gm,Zt="\u0275",Qt=function(){function t(t,e,n){void 0===e&&(e=qt),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Vt,{token:Vt,fn:Lt,deps:Ut,value:this,useNew:!1}),r.set(Mt,{token:Mt,fn:Lt,deps:Ut,value:this,useNew:!1}),function t(e,n){if(n)if((n=Pt(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Yt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Yt("Unexpected provider",n);var o=Pt(n.provide),i=function(t){var e=function(t){var e=Ut,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var o=6;if((u=Pt(n[r]))instanceof Array)for(var i=0,a=u;i<a.length;i++){var s=a[i];s instanceof At||s==At?o|=1:s instanceof Rt||s==Rt?o&=-3:s instanceof Ot||s==Ot?o&=-5:u=s instanceof It?s.token:Pt(s)}e.push({token:u,options:o})}}else if(t.useExisting){var u;e=[{token:u=Pt(t.useExisting),options:6}]}else if(!(n||Bt in t))throw Yt("'deps' required",t);return e}(t),n=Lt,r=Ut,o=!1,i=Pt(t.provide);if(Bt in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,n=Pt(t.useClass);else{if("function"!=typeof i)throw Yt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,n=i}return{deps:e,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var a=e.get(o);if(a){if(a.fn!==zt)throw Wt(o)}else e.set(o,a={token:n.provide,deps:[],useNew:!1,fn:zt,value:Ut});a.deps.push({token:o=n,options:6})}var s=e.get(o);if(s&&s.fn==zt)throw Wt(o);e.set(o,i)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,o,i,a){try{return function(e,n,r,o,i,a){var s,l;if(!n||4&a)2&a||(s=o.get(e,i,0));else{if((s=n.value)==Ht)throw Error(Zt+"Circular dependency");if(s===Ut){n.value=Ht;var c=n.useNew,p=n.fn,f=n.deps,h=Ut;if(f.length){h=[];for(var d=0;d<f.length;d++){var v=f[d],g=v.options,y=2&g?r.get(v.token):void 0;h.push(t(v.token,y,r,y||4&g?o:qt,1&g?null:Vt.THROW_IF_NOT_FOUND,0))}}n.value=s=c?new((l=p).bind.apply(l,u([void 0],h))):p.apply(void 0,h)}}return s}(e,n,r,o,i,a)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==Ht&&(n.value=Ut),t}}(t,r,this._records,this.parent,e,n)}catch(e){var o=e.ngTempTokenPath;throw t[Nt]&&o.unshift(t[Nt]),e.message=Kt("\n"+e.message,o,this.source),e.ngTokenPath=o,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(Tt(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Wt(t){return Yt("Cannot mix multi providers and regular providers",t)}function Kt(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Zt?t.substr(2):t;var r=Tt(e);if(e instanceof Array)r=e.map(Tt).join(" -> ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):Tt(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Yt(t,e){return new Error(Kt(t,e))}var $t=void 0;function Jt(t){var e=$t;return $t=t,e}String;var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),te=new function(t){this.full="6.0.9",this.major="6.0.9".split(".")[0],this.minor="6.0.9".split(".")[1],this.patch="6.0.9".split(".").slice(2).join(".")}("6.0.9"),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function ae(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,u(e))}var se=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[re]||ae}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?oe(t)?oe(t):this._findContext(ie(t)):null},t.prototype._findOriginalError=function(t){for(var e=ie(t);e&&ie(e);)e=ie(e);return e},t}(),ue=new ht("The presence of this token marks an injector as being the root injector.");function le(t){return!!t&&"function"==typeof t.then}var ce=new ht("Application Initializer"),pe=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();le(o)&&e.push(o)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),fe=new ht("AppId"),he=new ht("Platform Initializer"),de=new ht("Platform ID"),ve=new ht("appBootstrapListener"),ge=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function ye(){throw new Error("Runtime compiler is not loaded")}var me=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw ye()},t.prototype.compileModuleAsync=function(t){throw ye()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw ye()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw ye()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}(),be=function(){},we=function(){};function _e(t){var e=Error("No component factory found for "+Tt(t)+". Did you add it to @NgModule.entryComponents?");return e[Ee]=t,e}var Ce,xe,Ee="ngComponent",Se=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw _e(t)},t}(),Te=function(){function t(){}return t.NULL=new Se,t}(),ke=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw _e(t);return new Pe(e,this._ngModule)},t}(),Pe=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(we),Ie=function(){},Ae=function(){},Oe=function(){var t=wt.wtf;return!(!t||!(Ce=t.trace)||(xe=Ce.events,0))}();function Re(t,e){return null}var Ne=Oe?function(t,e){return void 0===e&&(e=null),xe.createScope(t,e)}:function(t,e){return Re},De=Oe?function(t,e){return Ce.leaveScope(t,e),e}:function(t,e){return e},Me=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},a=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=t.prototype.subscribe.call(this,o,i,a);return e instanceof _&&e.add(s),s},e}(rt),je=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!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)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,o,i,a){try{return He(e),t.invokeTask(r,o,i,a)}finally{ze(e)}},onInvoke:function(t,n,r,o,i,a,s){try{return He(e),t.invoke(r,o,i,a,s)}finally{ze(e)}},onHasTask:function(t,n,r,o){t.hasTask(r,o),n===r&&("microTask"==o.change?(e.hasPendingMicrotasks=o.microTask,Ue(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:function(t,n,r,o){return t.handleError(r,o),e.runOutsideAngular(function(){return e.onError.emit(o)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,t,Le,Ve,Ve);try{return o.runTask(i,e,n)}finally{o.cancelTask(i)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Ve(){}var Le={};function Ue(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(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function He(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ze(t){t._nesting--,Ue(t)}var Fe,Be=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),qe=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){je.assertNotInAngularZone(),Et(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Et(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,isPeriodic:t.data.isPeriodic,delay:t.data.delay,creationLocation:t.creationLocation,xhr:t.data.target}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,o=-1;e&&e>0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(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()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ge=function(){function t(){this._applications=new Map,Ze.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ze.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),Ze=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Qe=!0,We=!1,Ke=new ht("AllowMultipleToken");function Ye(){return We=!0,Qe}var $e=function(t,e){this.name=t,this.token=e};function Je(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ht(r);return function(e){void 0===e&&(e=[]);var i=Xe();if(!i||i.injector.get(Ke,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Fe&&!Fe.destroyed&&!Fe.injector.get(Ke,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fe=t.get(tn);var e=t.get(he,null);e&&e.forEach(function(t){return t()})}(Vt.create({providers:a,name:r}))}return function(t){var e=Xe();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}(o)}}function Xe(){return Fe&&!Fe.destroyed?Fe:null}var tn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Be:("zone.js"===n?void 0:n)||new je({enableLongStackTrace:Ye()}),i=[{provide:je,useValue:o}];return o.run(function(){var e=Vt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(se,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return rn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(pe)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return le(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(be),o=en({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(nn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Tt(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)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function en(t,e){return Array.isArray(e)?e.reduce(en,t):i({},t,e)}var nn=function(){function t(t,e,n,r,o,i){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ye(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new A(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new A(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){je.assertNotInAngularZone(),Et(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){je.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return R(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof A?t[0]:X(n)(Q(t,r))}(s,u.pipe(function(t){return it()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,lt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){var n,r=this;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.");n=t instanceof we?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Pe?null:this._injector.get(Ie),i=n.create(Vt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(qe,null);return a&&i.injector.get(Ge).registerApplication(i.location.nativeElement,a),this._loadComponent(i),Ye()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,De(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;rn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ve,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),rn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Ne("ApplicationRef#tick()"),t}();function rn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var on=function(){},an=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),sn=function(){},un=function(t){this.nativeElement=t},ln=function(){},cn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Me,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[xt()]=function(){return this._results[xt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),pn=function(){},fn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},hn=function(){function t(t,e){this._compiler=t,this._config=e||fn}return t.prototype.load=function(t){return this._compiler instanceof me?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=s(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return dn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return dn(t,r,o)})},t}();function dn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var vn=function(){},gn=function(){},yn=function(){},mn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof bn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),bn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,u([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof bn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof bn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof bn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(mn),wn=new Map;function _n(t){return wn.get(t)||null}function Cn(t){wn.set(t.nativeNode,t)}function xn(t,e){var n=Tn(t),r=Tn(e);return n&&r?function(t,e,n){for(var r=t[xt()](),o=e[xt()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(t,e,xn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||St(t,e)}var En=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Sn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Tn(t){return!!kn(t)&&(Array.isArray(t)||!(t instanceof Map)&&xt()in t)}function kn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Pn=function(){function t(){}return t.prototype.supports=function(t){return Tn(t)},t.prototype.create=function(t){return new An(t)},t}(),In=function(t,e){return e},An=function(){function t(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||In}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex<Dn(n,r,o)?e:n,a=Dn(i,r,o),s=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=a-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var p=c<o.length?o[c]:o[c]=0,f=p+c;l<=f&&f<u&&(o[c]=p+1)}o[i.previousIndex]=l-u}}a!==s&&t(i,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Tn(t))throw new Error("Error trying to diff '"+Tt(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,i=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)o=this._trackByFn(s,r=t[s]),null!==i&&St(i.trackById,o)?(a&&(i=this._verifyReinsertion(i,r,o,s)),St(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,s),a=!0),i=i._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[xt()](),o=void 0;!(o=r.next()).done;)e(o.value)}(t,function(t){o=e._trackByFn(n,t),null!==i&&St(i.trackById,o)?(a&&(i=e._verifyReinsertion(i,t,o,n)),St(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),a=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;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}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(St(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(St(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new On(e,n),o,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var 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)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var 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 Nn),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Nn),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},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),On=function(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},Rn=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(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)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&St(n.trackById,t))return n;return null},t.prototype.remove=function(t){var 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},t}(),Nn=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Rn,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function Dn(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}var Mn=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||kn(t)},t.prototype.create=function(){return new jn},t}(),jn=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||kn(t)))throw new Error("Error trying to diff '"+Tt(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var 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},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new Vn(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;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}},t.prototype._maybeAddToChanges=function(t,e){St(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Vn=function(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},Ln=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Rt,new At]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=ft({providedIn:"root",factory:function(){return new t([new Pn])}}),t}(),Un=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Rt,new At]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Hn=[new Mn],zn=new Ln([new Pn]),Fn=new Un(Hn),Bn=Je(null,"core",[{provide:de,useValue:"unknown"},{provide:tn,deps:[Vt]},{provide:Ge,deps:[]},{provide:ge,deps:[]}]),qn=new ht("LocaleId");function Gn(){return zn}function Zn(){return Fn}function Qn(t){return t||"en-US"}var Wn=function(t){},Kn=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var o=t.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},t}(),Yn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,$n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Jn(t){return(t=String(t)).match(Yn)||t.match($n)?t:(Ye()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function Xn(t){var e,n,r={};try{for(var o=a(t.split(",")),i=o.next();!i.done;i=o.next())r[i.value]=!0}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function tr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r,o={};try{for(var i=a(t),s=i.next();!s.done;s=i.next()){var u=s.value;for(var l in u)u.hasOwnProperty(l)&&(o[l]=!0)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var er,nr=Xn("area,br,col,hr,img,wbr"),rr=Xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),or=Xn("rp,rt"),ir=tr(or,rr),ar=tr(nr,tr(rr,Xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tr(or,Xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ir),sr=Xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ur=Xn("srcset"),lr=tr(sr,ur,Xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),cr=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(e.nodeType===Node.ELEMENT_NODE?this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var n=this.checkClobberedElement(e,e.nextSibling);if(n){e=n;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e=t.nodeName.toLowerCase();if(ar.hasOwnProperty(e)){this.buf.push("<"),this.buf.push(e);for(var n,r=t.attributes,o=0;o<r.length;o++){var i=r.item(o),a=i.name,s=a.toLowerCase();if(lr.hasOwnProperty(s)){var u=i.value;sr[s]&&(u=Jn(u)),ur[s]&&(n=u,u=(n=String(n)).split(",").map(function(t){return Jn(t.trim())}).join(", ")),this.buf.push(" ",a,'="',hr(u),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();ar.hasOwnProperty(e)&&!nr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(hr(t))},t.prototype.checkClobberedElement=function(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},t}(),pr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fr=/([^\#-~ |!])/g;function hr(t){return t.replace(/&/g,"&").replace(pr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(fr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function dr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var vr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),gr=/^url\(([^)]+)\)$/,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}({}),mr=function(){};function br(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function wr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function _r(t,e){return t.nodes[e]}function Cr(t,e){return t.nodes[e]}function xr(t,e){return t.nodes[e]}function Er(t,e){return t.nodes[e]}function Sr(t,e){return t.nodes[e]}var Tr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function kr(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Pr(n,e),n}(o,t)}function Pr(t,e){t[ee]=e,t[re]=e.logError.bind(e)}function Ir(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Ar=function(){},Or=new Map;function Rr(t){var e=Or.get(t);return e||(e=Tt(t)+"_"+Or.size,Or.set(t,e)),e}var Nr="$$undefined",Dr="$$empty";function Mr(t){return{id:Nr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var jr=0;function Vr(t,e,n,r){return!(!(2&t.state)&&St(t.oldValues[e.bindingIndex+n],r))}function Lr(t,e,n,r){return!!Vr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Ur(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!xn(o,r)){var i=e.bindings[n].name;throw kr(Tr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function Hr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function zr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Fr(t,e,n,r){try{return Hr(33554432&t.def.nodes[e].flags?Cr(t,e).componentView:t),Tr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Br(t){return t.parent?Cr(t.parent,t.parentNodeDef.nodeIndex):null}function qr(t){return t.parent?t.parentNodeDef.parent:null}function Gr(t,e){switch(201347067&e.flags){case 1:return Cr(t,e.nodeIndex).renderElement;case 2:return _r(t,e.nodeIndex).renderText}}function Zr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Qr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Wr(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=s(t,2),i=o[0],a=o[1];"number"==typeof i?(e[i]=a,n|=function(t){return 1<<t%32}(i)):r[i]=a}),{matchedQueries:e,references:r,matchedQueryIds:n}}function Kr(t,e){return t.map(function(t){var n,r,o;return Array.isArray(t)?(r=(o=s(t,2))[0],n=o[1]):(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,Nt,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Rr(n)}})}function Yr(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Xt.Native?Cr(t,n.renderParent.nodeIndex).renderElement:void 0:e}var $r=new WeakMap;function Jr(t){var e=$r.get(t);return e||((e=t(function(){return Ar})).factory=t,$r.set(t,e)),e}function Xr(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(Gr(t,t.def.lastRenderRootNode))),to(t,e,0,t.def.nodes.length-1,n,r,o)}function to(t,e,n,r,o,i,a){for(var s=n;s<=r;s++){var u=t.def.nodes[s];11&u.flags&&no(t,u,e,o,i,a),s+=u.childCount}}function eo(t,e,n,r,o,i){for(var a=t;a&&!Zr(a);)a=a.parent;for(var s=a.parent,u=qr(a),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var p=s.def.nodes[c];p.ngContentIndex===e&&no(s,p,n,r,o,i),c+=p.childCount}if(!s.parent){var f=t.root.projectableNodes[e];if(f)for(c=0;c<f.length;c++)ro(t,f[c],n,r,o,i)}}function no(t,e,n,r,o,i){if(8&e.flags)eo(t,e.ngContent.index,n,r,o,i);else{var a=Gr(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&ro(t,a,n,r,o,i),32&e.bindingFlags&&ro(Cr(t,e.nodeIndex).componentView,a,n,r,o,i)):ro(t,a,n,r,o,i),16777216&e.flags)for(var s=Cr(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<s.length;u++)Xr(s[u],n,r,o,i);1&e.flags&&!e.element.name&&to(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,o,i)}}function ro(t,e,n,r,o,i){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,o);break;case 3:a.removeChild(r,e);break;case 0:i.push(e)}}var oo=/^:([^:]+):(.+)$/;function io(t){if(":"===t[0]){var e=t.match(oo);return[e[1],e[2]]}return["",t]}function ao(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function so(t,e,n,r,o,i){t|=1;var a=Wr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Jr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Ar},provider:null,text:null,query:null,ngContent:null}}function uo(t,e,n,r,o,i,a,u,l,c,p,f){void 0===a&&(a=[]),c||(c=Ar);var h=Wr(n),d=h.matchedQueries,v=h.references,g=h.matchedQueryIds,y=null,m=null;i&&(y=(O=s(io(i),2))[0],m=O[1]),u=u||[];for(var b=new Array(u.length),w=0;w<u.length;w++){var _=s(u[w],3),C=_[0],x=_[2],E=s(io(_[1]),2),S=E[0],T=E[1],k=void 0,P=void 0;switch(15&C){case 4:P=x;break;case 1:case 8:k=x}b[w]={flags:C,ns:S,name:T,nonMinifiedName:T,securityContext:k,suffix:P}}l=l||[];var I=new Array(l.length);for(w=0;w<l.length;w++){var A=s(l[w],2);I[w]={type:0,target:A[0],eventName:A[1],propName:null}}var O,R=(a=a||[]).map(function(t){var e=s(t,2),n=e[1],r=s(io(e[0]),2);return[r[0],r[1],n]});return f=function(t){if(t&&t.id===Nr){var e=null!=t.encapsulation&&t.encapsulation!==Xt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+jr++:Dr}return t&&t.id===Dr&&(t=null),t||null}(f),p&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:g,references:v,ngContentIndex:r,childCount:o,bindings:b,bindingFlags:ao(b),outputs:I,element:{ns:y,name:m,attrs:R,template:null,componentProvider:null,componentView:p||null,componentRendererType:f,publicProviders:null,allProviders:null,handleEvent:c||Ar},provider:null,text:null,query:null,ngContent:null}}function lo(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,a=t.renderer;if(t.parent||!i){r=o.name?a.createElement(o.name,o.ns):a.createComment("");var u=Yr(t,e,n);u&&a.appendChild(u,r)}else r=a.selectRootElement(i);if(o.attrs)for(var l=0;l<o.attrs.length;l++){var c=s(o.attrs[l],3);a.setAttribute(r,c[1],c[2],c[0])}return r}function co(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],a=po(t,n.nodeIndex,(p=i.eventName,(c=i.target)?c+":"+p:p)),s=i.target,u=t;"component"===i.target&&(s=null,u=e);var l=u.renderer.listen(s||r,i.eventName,a);t.disposables[n.outputIndex+o]=l}var c,p}function po(t,e,n){return function(r){return Fr(t,e,n,r)}}function fo(t,e,n,r){if(!Lr(t,e,n,r))return!1;var o=e.bindings[n],i=Cr(t,e.nodeIndex),a=i.renderElement,s=o.name;switch(15&o.flags){case 1:!function(t,e,n,r,o,i){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,i):i;s=null!=s?s.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,s,r):u.removeAttribute(n,o,r)}(t,o,a,o.ns,s,r);break;case 2:!function(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,o){var i=t.root.sanitizer.sanitize(yr.STYLE,o);if(null!=i){i=i.toString();var a=e.suffix;null!=a&&(i+=a)}else i=null;var s=t.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(t,o,a,s,r);break;case 8:!function(t,e,n,r,o){var i=e.securityContext,a=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&o.flags?i.componentView:t,o,a,s,r)}return!0}var ho=new Object,vo=Rr(Vt),go=Rr(Mt),yo=Rr(Ie);function mo(t,e,n,r){return n=Pt(n),{index:-1,deps:Kr(r,Tt(e)),flags:t,token:e,value:n}}function bo(t,e,n){void 0===n&&(n=Vt.THROW_IF_NOT_FOUND);var r,o,i=Jt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var a=e.tokenKey;switch(a){case vo:case go:case yo:return t}var s=t._def.providersByKey[a];if(s){var u=t._providers[s.index];return void 0===u&&(u=t._providers[s.index]=wo(t,s)),u===ho?void 0:u}if(e.token.ngInjectableDef&&(r=t,null!=(o=e.token.ngInjectableDef).providedIn&&(function(t,e){return t._def.modules.indexOf(o.providedIn)>-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:l,token:e.token},t._providers[l]=ho,t._providers[l]=wo(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Jt(i)}}function wo(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(bo(t,n[0]));case 2:return new e(bo(t,n[0]),bo(t,n[1]));case 3:return new e(bo(t,n[0]),bo(t,n[1]),bo(t,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=bo(t,n[i]);return new(e.bind.apply(e,u([void 0],o)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(bo(t,n[0]));case 2:return e(bo(t,n[0]),bo(t,n[1]));case 3:return e(bo(t,n[0]),bo(t,n[1]),bo(t,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=bo(t,n[i]);return e.apply(void 0,u(o))}}(t,e.value,e.deps);break;case 2048:n=bo(t,e.deps[0]);break;case 256:n=e.value}return n===ho||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?ho:n}function _o(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,So(n,e),Tr.dirtyParentQueries(r),xo(r),r}function Co(t,e,n){var r=e?Gr(e,e.def.lastRenderRootNode):t.renderElement;Xr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function xo(t){Xr(t,3,null,null,void 0)}function Eo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function So(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var To=new Object;function ko(t,e,n,r,o,i){return new Po(t,e,n,r,o,i)}var Po=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Jr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Tr.createRootView(t,e||[],n,o,r,To),s=xr(a,i).instance;return n&&a.renderer.setAttribute(Cr(a,0).renderElement,"ng-version",te.full),new Io(a,new No(a),s)},e}(we),Io=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new un(Cr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Vo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function Ao(t,e,n){return new Oo(t,e,n)}var Oo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new un(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Vo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=qr(t),t=t.parent;return t?new Vo(t,e):new Vo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=_o(this._data,t);Tr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new No(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Pe||(o=i.get(Ie));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return o=a._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Eo(i,r,o),function(t,e){var n=Br(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Tr.dirtyParentQueries(o),Co(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],So(i,r),null==o&&(o=i.length),Eo(i,o,a),Tr.dirtyParentQueries(a),xo(a),Co(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=_o(this._data,t);e&&Tr.destroyView(e)},t.prototype.detach=function(t){var e=_o(this._data,t);return e?new No(e):null},t}();function Ro(t){return new No(t)}var No=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Xr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Hr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Tr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Tr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Tr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,xo(this._view),Tr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Do(t,e){return new Mo(t,e)}var Mo=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new No(Tr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new un(Cr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(vn);function jo(t,e){return new Vo(t,e)}var Vo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Vt.THROW_IF_NOT_FOUND),Tr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Rr(t)},e)},t}();function Lo(t){return new Uo(t.renderer)}var Uo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=s(io(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=s(io(e),2),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Ho(t,e,n,r){return new zo(t,e,n,r)}var zo=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var o=e.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=wo(t,o))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Vt.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),bo(this,{token:t,tokenKey:Rr(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Te)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Tt(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=t._providers[o];if(i&&i!==ho){var a=i.ngOnDestroy;"function"!=typeof a||r.has(i)||(a.apply(i),r.add(i))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Fo=Rr(function(){}),Bo=Rr(sn),qo=Rr(un),Go=Rr(gn),Zo=Rr(vn),Qo=Rr(yn),Wo=Rr(Vt),Ko=Rr(Mt);function Yo(t,e,n,r,o,i,a,u){var l=[];if(a)for(var c in a){var p=s(a[c],2);l[p[0]]={flags:8,name:c,nonMinifiedName:p[1],ns:null,securityContext:null,suffix:null}}var f=[];if(u)for(var h in u)f.push({type:1,propName:h,target:null,eventName:u[h]});return function(t,e,n,r,o,i,a,s,u){var l=Wr(n),c=l.matchedQueries,p=l.references,f=l.matchedQueryIds;u||(u=[]),s||(s=[]),i=Pt(i);var h=Kr(a,Tt(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ao(s),outputs:u,element:null,provider:{token:o,value:i,deps:h},text:null,query:null,ngContent:null}}(t,e|=16384,n,r,o,o,i,l,f)}function $o(t,e){return ei(t,e)}function Jo(t,e){for(var n=t;n.parent&&!Zr(n);)n=n.parent;return ni(n.parent,qr(n),!0,e.provider.value,e.provider.deps)}function Xo(t,e){var n=ni(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var o=e.outputs[r],i=n[o.propName].subscribe(ti(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+r]=i.unsubscribe.bind(i)}return n}function ti(t,e,n){return function(r){return Fr(t,e,n,r)}}function ei(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return ni(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(oi(t,e,n,o[0]));case 2:return r(oi(t,e,n,o[0]),oi(t,e,n,o[1]));case 3:return r(oi(t,e,n,o[0]),oi(t,e,n,o[1]),oi(t,e,n,o[2]));default:for(var a=Array(i),s=0;s<i;s++)a[s]=oi(t,e,n,o[s]);return r.apply(void 0,u(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return oi(t,e.parent,n,r.deps[0]);case 256:return r.value}}function ni(t,e,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(oi(t,e,n,o[0]));case 2:return new r(oi(t,e,n,o[0]),oi(t,e,n,o[1]));case 3:return new r(oi(t,e,n,o[0]),oi(t,e,n,o[1]),oi(t,e,n,o[2]));default:for(var a=new Array(i),s=0;s<i;s++)a[s]=oi(t,e,n,o[s]);return new(r.bind.apply(r,u([void 0],a)))}}var ri={};function oi(t,e,n,r,o){if(void 0===o&&(o=Vt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var a=r.tokenKey;a===Qo&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case Fo:return Lo(ii(s,e,n));case Bo:return ii(s,e,n).renderer;case qo:return new un(Cr(s,e.nodeIndex).renderElement);case Go:return Cr(s,e.nodeIndex).viewContainer;case Zo:if(e.element.template)return Cr(s,e.nodeIndex).template;break;case Qo:return Ro(ii(s,e,n));case Wo:case Ko:return jo(s,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[a];if(u){var l=xr(s,u.nodeIndex);return l||(l={instance:ei(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=Zr(s),e=qr(s),s=s.parent,4&r.flags&&(s=null)}var c=i.root.injector.get(r.token,ri);return c!==ri||o===ri?c:i.root.ngModule.injector.get(r.token,o)}function ii(t,e,n){var r;if(n)r=Cr(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Zr(r);)r=r.parent;return r}function ai(t,e,n,r,o,i){if(32768&n.flags){var a=Cr(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(e.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var s=En.unwrap(t.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Sn(s,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function si(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],a=i.parent;for(!a&&i.flags&e&&li(t,o,i.flags&e,r++),0==(i.childFlags&e)&&(o+=i.childCount);a&&1&a.flags&&o===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=ui(t,a,e,r)),a=a.parent}}function ui(t,e,n,r){for(var o=e.nodeIndex+1;o<=e.nodeIndex+e.childCount;o++){var i=t.def.nodes[o];i.flags&n&&li(t,o,i.flags&n,r++),o+=i.childCount}return r}function li(t,e,n,r){var o=xr(t,e);if(o){var i=o.instance;i&&(Tr.setCurrentNode(t,e),1048576&n&&wr(t,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&wr(t,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function ci(t){for(var e=t.def.nodeMatchedQueries;t.parent&&Qr(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=t.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&Sr(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var i;134217728&(i=t.def.nodes[o]).flags&&536870912&i.flags&&Sr(t,o).setDirty(),o+=i.childCount}}function pi(t,e){var n=Sr(t,e.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=fi(t,i.nodeIndex,i.nodeIndex+i.childCount,e.query,[]),r=xr(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(o=fi(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var a=e.query.bindings,s=!1,u=0;u<a.length;u++){var l=a[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[l.propName]=c}s&&n.notifyOnChanges()}}function fi(t,e,n,r,o){for(var i=e;i<=n;i++){var a=t.def.nodes[i],s=a.matchedQueries[r.id];if(null!=s&&o.push(hi(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Cr(t,i);if((a.childMatchedQueries&r.filterId)===r.filterId&&(fi(t,i+1,i+a.childCount,r,o),i+=a.childCount),16777216&a.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var p=l[c],f=Br(p);f&&f===u&&fi(p,0,p.def.nodes.length-1,r,o)}var h=u.template._projectedViews;if(h)for(c=0;c<h.length;c++){var d=h[c];fi(d,0,d.def.nodes.length-1,r,o)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(i+=a.childCount)}return o}function hi(t,e,n){if(null!=n)switch(n){case 1:return Cr(t,e.nodeIndex).renderElement;case 0:return new un(Cr(t,e.nodeIndex).renderElement);case 2:return Cr(t,e.nodeIndex).template;case 3:return Cr(t,e.nodeIndex).viewContainer;case 4:return xr(t,e.nodeIndex).instance}}function di(t,e,n){var r=Yr(t,e,n);r&&eo(t,n.ngContent.index,1,r,null,void 0)}function vi(t,e,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function gi(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=Yr(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function yi(t,e){return(null!=t?t.toString():"")+e.suffix}function mi(t,e,n,r){for(var o=0,i=0,a=0,s=0,u=0,l=null,c=null,p=!1,f=!1,h=null,d=0;d<e.length;d++){var v=e[d];if(v.nodeIndex=d,v.parent=l,v.bindingIndex=o,v.outputIndex=i,v.renderParent=c,a|=v.flags,u|=v.matchedQueryIds,v.element){var g=v.element;g.publicProviders=l?l.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,p=!1,f=!1,v.element.template&&(u|=v.element.template.nodeMatchedQueries)}if(wi(l,v,e.length),o+=v.bindings.length,i+=v.outputs.length,!c&&3&v.flags&&(h=v),20224&v.flags){p||(p=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var y=0!=(32768&v.flags);0==(8192&v.flags)||y?l.element.publicProviders[Rr(v.provider.token)]=v:(f||(f=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Rr(v.provider.token)]=v),y&&(l.element.componentProvider=v)}if(l?(l.childFlags|=v.flags,l.directChildFlags|=v.flags,l.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(l.childMatchedQueries|=v.element.template.nodeMatchedQueries)):s|=v.flags,v.childCount>0)l=v,bi(v)||(c=v);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&bi(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Ar,updateRenderer:r||Ar,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function bi(t){return 0!=(1&t.flags)&&null===t.element.name}function wi(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function _i(t,e,n,r){var o=Ei(t.root,t.renderer,t,e,n);return Si(o,t.component,r),Ti(o),o}function Ci(t,e,n){var r=Ei(t,t.renderer,null,null,e);return Si(r,n,n),Ti(r),r}function xi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Ei(t.root,o,t,e.element.componentProvider,n)}function Ei(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function Si(t,e,n){t.component=e,t.context=n}function Ti(t){var e;Zr(t)&&(e=Cr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Tr.setCurrentNode(t,o);var a=void 0;switch(201347067&i.flags){case 1:var s=lo(t,e,i),u=void 0;if(33554432&i.flags){var l=Jr(i.element.componentView);u=Tr.createComponentView(t,i,l,s)}co(t,u,i,s),a={renderElement:s,componentView:u,viewContainer:null,template:i.element.template?Do(t,i):void 0},16777216&i.flags&&(a.viewContainer=Ao(t,i,a));break;case 2:a=gi(t,e,i);break;case 512:case 1024:case 2048:case 256:(a=r[o])||4096&i.flags||(a={instance:$o(t,i)});break;case 16:a={instance:Jo(t,i)};break;case 16384:(a=r[o])||(a={instance:Xo(t,i)}),32768&i.flags&&Si(Cr(t,i.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new cn;break;case 8:di(t,e,i),a=void 0}r[o]=a}Mi(t,Di.CreateViewNodes),Ui(t,201326592,268435456,0)}function ki(t){Ai(t),Tr.updateDirectives(t,1),ji(t,Di.CheckNoChanges),Tr.updateRenderer(t,1),Mi(t,Di.CheckNoChanges),t.state&=-97}function Pi(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,br(t,0,256),Ai(t),Tr.updateDirectives(t,0),ji(t,Di.CheckAndUpdate),Ui(t,67108864,536870912,0);var e=br(t,256,512);si(t,2097152|(e?1048576:0)),Tr.updateRenderer(t,0),Mi(t,Di.CheckAndUpdate),Ui(t,134217728,536870912,0),si(t,8388608|((e=br(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,br(t,768,1024)}function Ii(t,e,n,r,o,i,a,s,l,c,p,f,h){return 0===n?function(t,e,n,r,o,i,a,s,u,l,c,p){switch(201347067&e.flags){case 1:return function(t,e,n,r,o,i,a,s,u,l,c,p){var f=e.bindings.length,h=!1;return f>0&&fo(t,e,0,n)&&(h=!0),f>1&&fo(t,e,1,r)&&(h=!0),f>2&&fo(t,e,2,o)&&(h=!0),f>3&&fo(t,e,3,i)&&(h=!0),f>4&&fo(t,e,4,a)&&(h=!0),f>5&&fo(t,e,5,s)&&(h=!0),f>6&&fo(t,e,6,u)&&(h=!0),f>7&&fo(t,e,7,l)&&(h=!0),f>8&&fo(t,e,8,c)&&(h=!0),f>9&&fo(t,e,9,p)&&(h=!0),h}(t,e,n,r,o,i,a,s,u,l,c,p);case 2:return function(t,e,n,r,o,i,a,s,u,l,c,p){var f=!1,h=e.bindings,d=h.length;if(d>0&&Lr(t,e,0,n)&&(f=!0),d>1&&Lr(t,e,1,r)&&(f=!0),d>2&&Lr(t,e,2,o)&&(f=!0),d>3&&Lr(t,e,3,i)&&(f=!0),d>4&&Lr(t,e,4,a)&&(f=!0),d>5&&Lr(t,e,5,s)&&(f=!0),d>6&&Lr(t,e,6,u)&&(f=!0),d>7&&Lr(t,e,7,l)&&(f=!0),d>8&&Lr(t,e,8,c)&&(f=!0),d>9&&Lr(t,e,9,p)&&(f=!0),f){var v=e.text.prefix;d>0&&(v+=yi(n,h[0])),d>1&&(v+=yi(r,h[1])),d>2&&(v+=yi(o,h[2])),d>3&&(v+=yi(i,h[3])),d>4&&(v+=yi(a,h[4])),d>5&&(v+=yi(s,h[5])),d>6&&(v+=yi(u,h[6])),d>7&&(v+=yi(l,h[7])),d>8&&(v+=yi(c,h[8])),d>9&&(v+=yi(p,h[9]));var g=_r(t,e.nodeIndex).renderText;t.renderer.setValue(g,v)}return f}(t,e,n,r,o,i,a,s,u,l,c,p);case 16384:return function(t,e,n,r,o,i,a,s,u,l,c,p){var f=xr(t,e.nodeIndex),h=f.instance,d=!1,v=void 0,g=e.bindings.length;return g>0&&Vr(t,e,0,n)&&(d=!0,v=ai(t,f,e,0,n,v)),g>1&&Vr(t,e,1,r)&&(d=!0,v=ai(t,f,e,1,r,v)),g>2&&Vr(t,e,2,o)&&(d=!0,v=ai(t,f,e,2,o,v)),g>3&&Vr(t,e,3,i)&&(d=!0,v=ai(t,f,e,3,i,v)),g>4&&Vr(t,e,4,a)&&(d=!0,v=ai(t,f,e,4,a,v)),g>5&&Vr(t,e,5,s)&&(d=!0,v=ai(t,f,e,5,s,v)),g>6&&Vr(t,e,6,u)&&(d=!0,v=ai(t,f,e,6,u,v)),g>7&&Vr(t,e,7,l)&&(d=!0,v=ai(t,f,e,7,l,v)),g>8&&Vr(t,e,8,c)&&(d=!0,v=ai(t,f,e,8,c,v)),g>9&&Vr(t,e,9,p)&&(d=!0,v=ai(t,f,e,9,p,v)),v&&h.ngOnChanges(v),65536&e.flags&&wr(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,a,s,u,l,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,l,c,p){var f=e.bindings,h=!1,d=f.length;if(d>0&&Lr(t,e,0,n)&&(h=!0),d>1&&Lr(t,e,1,r)&&(h=!0),d>2&&Lr(t,e,2,o)&&(h=!0),d>3&&Lr(t,e,3,i)&&(h=!0),d>4&&Lr(t,e,4,a)&&(h=!0),d>5&&Lr(t,e,5,s)&&(h=!0),d>6&&Lr(t,e,6,u)&&(h=!0),d>7&&Lr(t,e,7,l)&&(h=!0),d>8&&Lr(t,e,8,c)&&(h=!0),d>9&&Lr(t,e,9,p)&&(h=!0),h){var v=Er(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(f.length),d>0&&(g[0]=n),d>1&&(g[1]=r),d>2&&(g[2]=o),d>3&&(g[3]=i),d>4&&(g[4]=a),d>5&&(g[5]=s),d>6&&(g[6]=u),d>7&&(g[7]=l),d>8&&(g[8]=c),d>9&&(g[9]=p);break;case 64:g={},d>0&&(g[f[0].name]=n),d>1&&(g[f[1].name]=r),d>2&&(g[f[2].name]=o),d>3&&(g[f[3].name]=i),d>4&&(g[f[4].name]=a),d>5&&(g[f[5].name]=s),d>6&&(g[f[6].name]=u),d>7&&(g[f[7].name]=l),d>8&&(g[f[8].name]=c),d>9&&(g[f[9].name]=p);break;case 128:var y=n;switch(d){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,o);break;case 4:g=y.transform(r,o,i);break;case 5:g=y.transform(r,o,i,a);break;case 6:g=y.transform(r,o,i,a,s);break;case 7:g=y.transform(r,o,i,a,s,u);break;case 8:g=y.transform(r,o,i,a,s,u,l);break;case 9:g=y.transform(r,o,i,a,s,u,l,c);break;case 10:g=y.transform(r,o,i,a,s,u,l,c,p)}}v.value=g}return h}(t,e,n,r,o,i,a,s,u,l,c,p);default:throw"unreachable"}}(t,e,r,o,i,a,s,l,c,p,f,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o<n.length;o++)fo(t,e,o,n[o])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Lr(t,e,i,n[i])&&(o=!0);if(o){var a="";for(i=0;i<n.length;i++)a+=yi(n[i],r[i]);a=e.text.prefix+a;var s=_r(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return o}(t,e,n);case 16384:return function(t,e,n){for(var r=xr(t,e.nodeIndex),o=r.instance,i=!1,a=void 0,s=0;s<n.length;s++)Vr(t,e,s,n[s])&&(i=!0,a=ai(t,r,e,s,n[s],a));return a&&o.ngOnChanges(a),65536&e.flags&&wr(t,256,e.nodeIndex)&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Lr(t,e,i,n[i])&&(o=!0);if(o){var a=Er(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:var l=n[0],c=n.slice(1);s=l.transform.apply(l,u(c))}a.value=s}return o}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Ai(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var o=Cr(t,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.state|=32,zr(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Oi(t,e,n,r,o,i,a,s,u,l,c,p,f){return 0===n?function(t,e,n,r,o,i,a,s,u,l,c,p){var f=e.bindings.length;f>0&&Ur(t,e,0,n),f>1&&Ur(t,e,1,r),f>2&&Ur(t,e,2,o),f>3&&Ur(t,e,3,i),f>4&&Ur(t,e,4,a),f>5&&Ur(t,e,5,s),f>6&&Ur(t,e,6,u),f>7&&Ur(t,e,7,l),f>8&&Ur(t,e,8,c),f>9&&Ur(t,e,9,p)}(t,e,r,o,i,a,s,u,l,c,p,f):function(t,e,n){for(var r=0;r<n.length;r++)Ur(t,e,r,n[r])}(t,e,r),!1}function Ri(t,e){if(Sr(t,e.nodeIndex).dirty)throw kr(Tr.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Ni(t){if(!(128&t.state)){if(ji(t,Di.Destroy),Mi(t,Di.Destroy),si(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=Br(t);if(e){var n=e.template._projectedViews;n&&(So(n,n.indexOf(t)),Tr.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Cr(t,n).renderElement):2&r.flags?t.renderer.destroyNode(_r(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Sr(t,n).destroy()}}(t),Zr(t)&&t.renderer.destroy(),t.state|=128}}var Di=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function Mi(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?Vi(Cr(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function ji(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=Cr(t,r).viewContainer._embeddedViews,a=0;a<i.length;a++)Vi(i[a],e);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Vi(t,e){var n=t.state;switch(e){case Di.CheckNoChanges:0==(128&n)&&(12==(12&n)?ki(t):64&n&&Li(t,Di.CheckNoChangesProjectedViews));break;case Di.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ki(t):64&n&&Li(t,e));break;case Di.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Pi(t):64&n&&Li(t,Di.CheckAndUpdateProjectedViews));break;case Di.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Pi(t):64&n&&Li(t,e));break;case Di.Destroy:Ni(t);break;case Di.CreateViewNodes:Ti(t)}}function Li(t,e){ji(t,e),Mi(t,e)}function Ui(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var a=t.def.nodes[i];if(a.flags&e&&a.flags&n)switch(Tr.setCurrentNode(t,a.nodeIndex),r){case 0:pi(t,a);break;case 1:Ri(t,a)}a.childFlags&e&&a.childFlags&n||(i+=a.childCount)}}var Hi=!1;function zi(t,e,n,r,o,i){return Ci(Bi(t,o,o.injector.get(on),e,n),r,i)}function Fi(t,e,n,r,o,i){var a=o.injector.get(on),s=Bi(t,o,new xa(a),e,n),u=Xi(r);return _a(ua.create,Ci,null,[s,u,i])}function Bi(t,e,n,r,o){var i=e.injector.get(mr),a=e.injector.get(se);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:a}}function qi(t,e,n,r){var o=Xi(n);return _a(ua.create,_i,null,[t,e,o,r])}function Gi(t,e,n,r){return n=Ki.get(e.element.componentProvider.provider.token)||Xi(n),_a(ua.create,xi,null,[t,e,n,r])}function Zi(t,e,n,r){return Ho(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===Qi.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=Qi.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){Wi.forEach(function(r,o){o.ngInjectableDef.providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var o=Qi.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=Kr(o.deps),r.value=o.value)}if(Wi.size>0){var i=new Set(t.modules);Wi.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:Kr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Rr(r)]=o}})}}(t=t.factory(function(){return Ar})),t):t}(r))}var Qi=new Map,Wi=new Map,Ki=new Map;function Yi(t){Qi.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&Wi.set(t.token,t)}function $i(t,e){var n=Jr(Jr(e.viewDefFactory).nodes[0].element.componentView);Ki.set(t,n)}function Ji(){Qi.clear(),Wi.clear(),Ki.clear()}function Xi(t){if(0===Qi.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var o=t.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&Qi.has(o.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Ar});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=Qi.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=Kr(i.deps),o.value=i.value)}}}}function ta(t,e,n,r,o,i,a,s,u,l,c,p,f){var h=t.def.nodes[e];return Ii(t,h,n,r,o,i,a,s,u,l,c,p,f),224&h.flags?Er(t,e).value:void 0}function ea(t,e,n,r,o,i,a,s,u,l,c,p,f){var h=t.def.nodes[e];return Oi(t,h,n,r,o,i,a,s,u,l,c,p,f),224&h.flags?Er(t,e).value:void 0}function na(t){return _a(ua.detectChanges,Pi,null,[t])}function ra(t){return _a(ua.checkNoChanges,ki,null,[t])}function oa(t){return _a(ua.destroy,Ni,null,[t])}var ia,aa,sa,ua=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function la(t,e){aa=t,sa=e}function ca(t,e,n,r){return la(t,e),_a(ua.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function pa(t,e){if(128&t.state)throw Ir(ua[ia]);return la(t,ya(t,0)),t.def.updateDirectives(function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=t.def.nodes[n];return 0===e?ha(t,a,r,o):da(t,a,r,o),16384&a.flags&&la(t,ya(t,n)),224&a.flags?Er(t,a.nodeIndex).value:void 0},t)}function fa(t,e){if(128&t.state)throw Ir(ua[ia]);return la(t,ma(t,0)),t.def.updateRenderer(function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=t.def.nodes[n];return 0===e?ha(t,a,r,o):da(t,a,r,o),3&a.flags&&la(t,ma(t,n)),224&a.flags?Er(t,a.nodeIndex).value:void 0},t)}function ha(t,e,n,r){if(Ii.apply(void 0,u([t,e,n],r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var i={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],l=o[a];8&s.flags&&(i[(h=s.nonMinifiedName,"ng-reflect-"+(h=h.replace(/[$@]/g,"_").replace(va,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=ga(l))}var c=e.parent,p=Cr(t,c.nodeIndex).renderElement;if(c.element.name)for(var f in i)null!=(l=i[f])?t.renderer.setAttribute(p,f,l):t.renderer.removeAttribute(p,f);else t.renderer.setValue(p,"bindings="+JSON.stringify(i,null,2))}}var h}function da(t,e,n,r){Oi.apply(void 0,u([t,e,n],r))}var va=/([A-Z])/g;function ga(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function ya(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ma(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var ba=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=qr(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Cr(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return jo(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){wa(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&wa(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Zr(t);)t=t.parent;return t.parent?Cr(t.parent,qr(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Gr(this.view,this.nodeDef):Gr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var i=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){return++a===i?(e=t.error).bind.apply(e,u([t],r)):Ar;var e}),a<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,u(r)))},t}();function wa(t,e,n){for(var r in e.references)n[r]=hi(t,e,e.references[r])}function _a(t,e,n,r){var o=ia,i=aa,a=sa;try{ia=t;var s=e.apply(n,r);return aa=i,sa=a,ia=o,s}catch(t){if(oe(t)||!aa)throw t;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Pr(t,e),t}(t,Ca())}}function Ca(){return aa?new ba(aa,sa):null}var xa=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ea(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Ea=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function(t){wn.delete(t.nativeNode)}(_n(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Ca();if(r){var o=new bn(n,null,r);o.name=t,Cn(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Ca();return n&&Cn(new mn(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Ca();return n&&Cn(new mn(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=_n(t),r=_n(e);n&&r&&n instanceof bn&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=_n(t),o=_n(e),i=_n(n);r&&o&&r instanceof bn&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=_n(t),r=_n(e);n&&r&&n instanceof bn&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Ca();return n&&Cn(new bn(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=_n(t);o&&o instanceof bn&&(o.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=_n(t);r&&r instanceof bn&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=_n(t);n&&n instanceof bn&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=_n(t);n&&n instanceof bn&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=_n(t);o&&o instanceof bn&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=_n(t);r&&r instanceof bn&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=_n(t);r&&r instanceof bn&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=_n(t);r&&r.listeners.push(new function(t,e){this.name=t,this.callback=e}(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),Sa=function(t){function e(e,n,r){var o=t.call(this)||this;return o.moduleType=e,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return o(e,t),e.prototype.create=function(t){!function(){if(!Hi){Hi=!0;var t=Ye()?{setCurrentNode:la,createRootView:Fi,createEmbeddedView:qi,createComponentView:Gi,createNgModuleRef:Zi,overrideProvider:Yi,overrideComponentView:$i,clearOverrides:Ji,checkAndUpdateView:na,checkNoChangesView:ra,destroyView:oa,createDebugContext:function(t,e){return new ba(t,e)},handleEvent:ca,updateDirectives:pa,updateRenderer:fa}:{setCurrentNode:function(){},createRootView:zi,createEmbeddedView:_i,createComponentView:xi,createNgModuleRef:Ho,overrideProvider:Ar,overrideComponentView:Ar,clearOverrides:Ar,checkAndUpdateView:Pi,checkNoChangesView:ki,destroyView:Ni,createDebugContext:function(t,e){return new ba(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?ta:ea,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?ta:ea,t)}};Tr.setCurrentNode=t.setCurrentNode,Tr.createRootView=t.createRootView,Tr.createEmbeddedView=t.createEmbeddedView,Tr.createComponentView=t.createComponentView,Tr.createNgModuleRef=t.createNgModuleRef,Tr.overrideProvider=t.overrideProvider,Tr.overrideComponentView=t.overrideComponentView,Tr.clearOverrides=t.clearOverrides,Tr.checkAndUpdateView=t.checkAndUpdateView,Tr.checkNoChangesView=t.checkNoChangesView,Tr.destroyView=t.destroyView,Tr.resolveDep=oi,Tr.createDebugContext=t.createDebugContext,Tr.handleEvent=t.handleEvent,Tr.updateDirectives=t.updateDirectives,Tr.updateRenderer=t.updateRenderer,Tr.dirtyParentQueries=ci}}();var e=Jr(this._ngModuleDefFactory);return Tr.createNgModuleRef(this.moduleType,t||Vt.NULL,this._bootstrapComponents,e)},e}(Ae);"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof global&&(global.ngDevMode=!0));var Ta=function(){},ka=function(){},Pa=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tt;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(rt),Ia=new A(function(t){return t.complete()});function Aa(t){return t?function(t){return new A(function(e){return t.schedule(function(){return e.complete()})})}(t):Ia}function Oa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r,o=t[t.length-1];switch(R(o)?t.pop():o=void 0,t.length){case 0:return Aa(o);case 1:return o?Q(t,o):(n=t[0],(r=new A(function(t){t.next(n),t.complete()}))._isScalar=!0,r.value=n,r);default:return Q(t,o)}}var Ra=function(t){function e(){var n=t.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error);function Na(t,e){return function(n){return n.lift(new Da(t,e))}}var Da=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ma(t,this.predicate,this.thisArg))},t}(),Ma=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(E),ja=function(t){function e(){var n=t.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error);function Va(t){return function(e){return 0===t?Aa():e.lift(new La(t))}}var La=function(){function t(t){if(this.total=t,this.total<0)throw new ja}return t.prototype.call=function(t,e){return e.subscribe(new Ua(t,this.total))},t}(),Ua=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function Ha(t){return void 0===t&&(t=null),function(e){return e.lift(new za(t))}}var za=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Fa(t,this.defaultValue))},t}(),Fa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return o(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(E);function Ba(t,e,n){return function(r){return r.lift(new qa(t,e,n))}}var qa=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Ga(t,this.nextOrObserver,this.error,this.complete))},t}(),Ga=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=k,i._tapError=k,i._tapComplete=k,i._tapError=r||k,i._tapComplete=o||k,l(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||k,i._tapError=n.error||k,i._tapComplete=n.complete||k),i}return o(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(E),Za=function(t){return void 0===t&&(t=Qa),Ba({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Qa(){return new Ra}function Wa(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Na(function(e,n){return t(e,n,r)}):J,Va(1),n?Ha(e):Za(function(){return new Ra}))}}function Ka(t,e){return K(t,e,1)}function Ya(t){return function(e){return 0===t?Aa():e.lift(new $a(t))}}var $a=function(){function t(t){if(this.total=t,this.total<0)throw new ja}return t.prototype.call=function(t,e){return e.subscribe(new Ja(t,this.total))},t}(),Ja=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o<n;o++){var i=e++%n;t.next(r[i])}t.complete()},e}(E);function Xa(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Na(function(e,n){return t(e,n,r)}):J,Ya(1),n?Ha(e):Za(function(){return new Ra}))}}function ts(t,e){return function(n){return n.lift(new es(t,e,n))}}var es=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new ns(t,this.predicate,this.thisArg,this.source))},t}(),ns=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E);function rs(t){return function(e){var n=new os(t),r=e.lift(n);return n.caught=r}}var os=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new is(t,this.selector,this.caught))},t}(),is=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(F(this,n))}},e}(B);function as(){return X(1)}function ss(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new us(t,e,n))}}var us=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new ls(t,this.accumulator,this.seed,this.hasSeed))},t}(),ls=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(E),cs=function(){},ps=new ht("Location Initialized"),fs=function(){},hs=new ht("appBaseHref"),ds=function(){function t(e){var n=this;this._subject=new Me,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(vs(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,vs(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function vs(t){return t.replace(/\/index.html$/,"")}var gs=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=ds.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ds.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ds.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(fs),ys=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return ds.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+ds.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ds.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ds.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(fs),ms=void 0,bs=["en",[["a","p"],["AM","PM"],ms],[["AM","PM"],ms,ms],[["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"]],ms,[["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"]],ms,[["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}",ms,"{1} 'at' {0}",ms],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ws={},_s=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}({}),Cs=new ht("UseV4Plurals"),xs=function(){},Es=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=ws[e];if(n)return n;var r=e.split("-")[0];if(n=ws[r])return n;if("en"===r)return bs;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case _s.Zero:return"zero";case _s.One:return"one";case _s.Two:return"two";case _s.Few:return"few";case _s.Many:return"many";default:return"other"}},e}(xs),Ss=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(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&&(Tn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Tt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),Ts=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),ks=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Ye()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Ts(null,e.ngForOf,-1,-1),o),a=new Ps(t,i);n.push(a)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),a=new Ps(t,i),n.push(a))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o,i.context.ngForOf=this.ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}(),Ps=function(t,e){this.record=t,this.view=e},Is=function(){function t(t,e){this._viewContainer=t,this._context=new As,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){Os("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Os("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){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)))},t}(),As=function(){this.$implicit=null,this.ngIf=null};function Os(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Tt(e)+"'.")}var Rs=function(){},Ns=new ht("DocumentToken"),Ds="server",Ms=null;function js(){return Ms}var Vs,Ls={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Us={"\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"},Hs={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"};wt.Node&&(Vs=wt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var zs,Fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ms||(Ms=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,u(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Ls},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Vs.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n.item(r);e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Hs.hasOwnProperty(e)&&(e=Hs[e]))}return Us[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=Bs||(Bs=document.querySelector("base"))?Bs.getAttribute("href"):null;return null==n?null:(e=n,zs||(zs=document.createElement("a")),zs.setAttribute("href",e),"/"===zs.pathname.charAt(0)?zs.pathname:"/"+zs.pathname)},e.prototype.resetBaseElement=function(){Bs=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return function(t,e){e=encodeURIComponent(e);try{for(var n=a(t.split(";")),r=n.next();!r.done;r=n.next()){var o=r.value,i=o.indexOf("="),u=s(-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],2),l=u[1];if(u[0].trim()===e)return decodeURIComponent(l)}}catch(t){c={error:t}}finally{try{r&&!r.done&&(p=n.return)&&p.call(n)}finally{if(c)throw c.error}}return null;var c,p}(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return o(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),Bs=null,qs=Ns;function Gs(){return!!window.history.pushState}var Zs=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return o(e,t),e.prototype._init=function(){this.location=js().getLocation(),this._history=js().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return js().getBaseHref(this._doc)},e.prototype.onPopState=function(t){js().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){js().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){Gs()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){Gs()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:It,args:[qs]}]}]},e}(cs),Qs=function(){function t(t){this._doc=t,this._dom=js()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}(),Ws=new ht("TRANSITION_ID");function Ks(t,e,n){return function(){n.get(pe).donePromise.then(function(){var n=js();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}var Ys=[{provide:ce,useFactory:Ks,deps:[Ws,qs,Vt],multi:!0}],$s=function(){function t(){}return t.init=function(){var e;e=new t,Ze=e},t.prototype.addToWindow=function(t){wt.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},wt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},wt.getAllAngularRootElements=function(){return t.getAllRootElements()},wt.frameworkStabilizers||(wt.frameworkStabilizers=[]),wt.frameworkStabilizers.push(function(t){var e=wt.getAllAngularTestabilities(),n=e.length,r=!1,o=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?js().isShadowRoot(e)?this.findTestabilityInTree(t,js().getHost(e),!0):this.findTestabilityInTree(t,js().parentElement(e),!0):null},t}(),Js=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return js().getTitle(this._doc)},t.prototype.setTitle=function(t){js().setTitle(this._doc,t)},t}();function Xs(t,e){"undefined"!=typeof COMPILED&&COMPILED||((wt.ng=wt.ng||{})[t]=e)}var tu={ApplicationRef:nn,NgZone:je};function eu(t){return _n(t)}var nu=new ht("EventManagerPlugins"),ru=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}(),ou=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=js().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),iu=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),au=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return o(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return js().remove(t)})},e}(iu),su={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/"},uu=/%COMP%/g,lu="_nghost-%COMP%",cu="_ngcontent-%COMP%";function pu(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?pu(t,o,n):(o=o.replace(uu,t),n.push(o))}return n}function fu(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var hu=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new du(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Xt.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new mu(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case Xt.Native:case Xt.ShadowDom:return new bu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=pu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),du=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(su[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=su[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=su[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&an.DashCase?t.style.setProperty(e,n,r&an.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&an.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){gu(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return gu(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,fu(n)):this.eventManager.addEventListener(t,e,fu(n))},t}(),vu="@".charCodeAt(0);function gu(t,e){if(t.charCodeAt(0)===vu)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var yu,mu=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=pu(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=cu.replace(uu,r.id),o.hostAttr=lu.replace(uu,r.id),o}return o(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(du),bu=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=o.encapsulation===Xt.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var a=pu(o.id,o.styles,[]),s=0;s<a.length;s++){var u=document.createElement("style");u.textContent=a[s],i.shadowRoot.appendChild(u)}return i}return o(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(du),wu="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},_u=wu("addEventListener"),Cu=wu("removeEventListener"),xu={},Eu="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[wu("BLACK_LISTED_EVENTS")]&&(yu={});var Su=function(t){return!!yu&&yu.hasOwnProperty(t)},Tu=function(t){var e=xu[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==t[Eu];i++){var a;(a=o[i]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},ku=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.ngZone=n,r&&function(t){return t===Ds}(r)||o.patchEvent(),o}return o(e,t),e.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Eu]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=n;if(!t[_u]||je.isInAngularZone()&&!Su(e))t.addEventListener(e,o,!1);else{var i=xu[e];i||(i=xu[e]=wu("ANGULAR"+e+"FALSE"));var a=t[i],s=a&&a.length>0;a||(a=t[i]=[]);var u=Su(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:o});else{for(var l=!1,c=0;c<a.length;c++)if(a[c].handler===o){l=!0;break}l||a.push({zone:u,handler:o})}s||t[_u](e,Tu,!1)}return function(){return r.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var r=t[Cu];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var o=xu[e],i=o&&t[o];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<i.length;s++)if(i[s].handler===n){a=!0,i.splice(s,1);break}a?0===i.length&&r.apply(t,[e,Tu,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(ou),Pu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Iu=new ht("HammerGestureConfig"),Au=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),Ou=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._config=n,o.console=r,o}return o(e,t),e.prototype.supports=function(t){return!(!Pu.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&(this.console.warn("Hammer.js is not loaded, can not bind '"+t+"' event."),1))},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),a=function(t){o.runGuarded(function(){n(t)})};return i.on(e,a),function(){return i.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ou),Ru=["alt","control","meta","shift"],Nu={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Du=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return js().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(Ru.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=js().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ru.forEach(function(r){r!=n&&(0,Nu[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ou),Mu=function(){},ju=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case yr.NONE:return e;case yr.HTML:return e instanceof Lu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{er=er||new Kn(t);var r=e?String(e):"";n=er.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=er.getInertBodyElement(r)}while(r!==i);var a=new cr,s=a.sanitizeChildren(dr(n)||n);return Ye()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var u=dr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case yr.STYLE:return e instanceof Uu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(gr);return e&&Jn(e[1])===e[1]||t.match(vr)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(Ye()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case yr.SCRIPT:if(e instanceof Hu)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case yr.URL:return e instanceof Fu||e instanceof zu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Jn(String(e)));case yr.RESOURCE_URL:if(e instanceof Fu)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),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)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Vu)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Lu(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Uu(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Hu(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new zu(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Fu(t)},e}(Mu),Vu=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Lu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Vu),Uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Vu),Hu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Vu),zu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Vu),Fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Vu),Bu=Je(Bn,"browser",[{provide:de,useValue:"browser"},{provide:he,useValue:function(){Fs.makeCurrent(),$s.init()},multi:!0},{provide:cs,useClass:Zs,deps:[qs]},{provide:qs,useFactory:function(){return document},deps:[]}]);function qu(){return new se}var Gu=function(){function t(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.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:fe,useValue:e.appId},{provide:Ws,useExisting:fe},Ys]}},t}();function Zu(t){return t}"undefined"!=typeof window&&window;var Qu=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t}();function Wu(t,e){var n,r=t.getElementById(e+"-state"),o={};if(r&&r.textContent)try{o=JSON.parse((n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},r.textContent.replace(/&[^;]+;/g,function(t){return n[t]})))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return Qu.init(o)}var Ku=function(){},Yu=function(t,e){this.id=t,this.url=e},$u=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return o(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(Yu),Ju=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(Yu),Xu=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(Yu),tl=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(Yu),el=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Yu),nl=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Yu),rl=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=o,a.shouldActivate=i,a}return o(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(Yu),ol=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Yu),il=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Yu),al=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),sl=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),ul=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ll=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),cl=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),pl=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),fl=function(){},hl="primary",dl=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function vl(t){return new dl(t)}function gl(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var o={},i=0;i<r.length;i++){var a=r[i],s=t[i];if(a.startsWith(":"))o[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}var yl=function(t,e){this.routes=t,this.module=e};function ml(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];bl(r,wl(e,r))}}function bl(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==hl)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&ml(t.children,e)}function wl(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function _l(t){var e=t.children&&t.children.map(_l),n=e?i({},t,{children:e}):i({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==hl&&(n.component=fl),n}function Cl(t,e){var n,r=Object.keys(t),o=Object.keys(e);if(r.length!=o.length)return!1;for(var i=0;i<r.length;i++)if(t[n=r[i]]!==e[n])return!1;return!0}function xl(t){return Array.prototype.concat.apply([],t)}function El(t){return t.length>0?t[t.length-1]:null}function Sl(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tl(t){return t.pipe(X(),ts(function(t){return!0===t}))}function kl(t){return(e=t)&&"function"==typeof e.subscribe?t:le(t)?W(Promise.resolve(t)):Oa(t);var e}function Pl(t,e,n){return n?function(t,e){return Cl(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Rl(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var 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(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Rl(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Rl(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Rl(n.segments,a)&&!!n.children[hl]&&e(n.children[hl],r,s)}(e,n,n.segments)}(t.root,e.root)}var Il=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=vl(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return jl.serialize(this)},t}(),Al=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Sl(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Vl(this)},t}(),Ol=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=vl(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Bl(this)},t}();function Rl(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Nl(t,e){var n=[];return Sl(t.children,function(t,r){r===hl&&(n=n.concat(e(t,r)))}),Sl(t.children,function(t,r){r!==hl&&(n=n.concat(e(t,r)))}),n}var Dl=function(){},Ml=function(){function t(){}return t.prototype.parse=function(t){var e=new Wl(t);return new Il(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Vl(e);if(n){var r=e.children[hl]?t(e.children[hl],!1):"",o=[];return Sl(e.children,function(e,n){n!==hl&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Nl(e,function(n,r){return r===hl?[t(e.children[hl],!1)]:[r+":"+t(n,!1)]});return Vl(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Ul(t)+"="+Ul(e)}).join("&"):Ul(t)+"="+Ul(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),jl=new Ml;function Vl(t){return t.segments.map(function(t){return Bl(t)}).join("/")}function Ll(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ul(t){return Ll(t).replace(/%3B/gi,";")}function Hl(t){return Ll(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zl(t){return decodeURIComponent(t)}function Fl(t){return zl(t.replace(/\+/g,"%20"))}function Bl(t){return""+Hl(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Hl(t)+"="+Hl(e[t])}).join(""));var e}var ql=/^[^\/()?;=#]+/;function Gl(t){var e=t.match(ql);return e?e[0]:""}var Zl=/^[^=?&#]+/,Ql=/^[^?&#]+/,Wl=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Al([],{}):new Al([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[hl]=new Al(t,e)),n},t.prototype.parseSegment=function(){var t=Gl(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ol(zl(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Gl(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Gl(this.remaining);r&&this.capture(n=r)}t[zl(e)]=zl(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Zl))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Ql);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Fl(n),a=Fl(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Gl(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=hl);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[hl]:new Al([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Kl=function(t){this.segmentGroup=t||null},Yl=function(t){this.urlTree=t};function $l(t){return new A(function(e){return e.error(new Kl(t))})}function Jl(t){return new A(function(e){return e.error(new Yl(t))})}function Xl(t){return new A(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var tc=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Ie)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,hl).pipe(q(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(rs(function(e){if(e instanceof Yl)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Kl)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,hl).pipe(q(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(rs(function(t){if(t instanceof Kl)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new Al([],((r={})[hl]=t,r)):t;return new Il(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new Al([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Oa({});var i=[],a=[],s={};return Sl(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(q(function(t){return s[o]=t}));o===hl?i.push(c):a.push(c)}),Oa.apply(null,i.concat(a)).pipe(as(),Xa(),q(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this;return Oa.apply(void 0,u(n)).pipe(q(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,o,i).pipe(rs(function(t){if(t instanceof Kl)return Oa(null);throw t}))}),as(),Wa(function(t){return!!t}),rs(function(t,n){if(t instanceof Ra||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,o))return Oa(new Al([],{}));throw new Kl(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return oc(r)!==i?$l(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):$l(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Jl(i):this.lineralizeSegments(n,i).pipe(K(function(n){var i=new Al(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=ec(e,r,o),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return $l(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Jl(p):this.lineralizeSegments(r,p).pipe(K(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(q(function(t){return n._loadedConfig=t,new Al(r,{})})):Oa(new Al(r,{}));var s=ec(e,n,r),u=s.consumedSegments,l=s.lastChild;if(!s.matched)return $l(e);var c=r.slice(l);return this.getChildConfig(t,n).pipe(K(function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return rc(t,e,n)&&oc(n)!==hl})}(t,n)?{segmentGroup:nc(new Al(e,function(t,e){var n,r,o={};o[hl]=e;try{for(var i=a(t),s=i.next();!s.done;s=i.next()){var u=s.value;""===u.path&&oc(u)!==hl&&(o[oc(u)]=new Al([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Al(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return rc(t,e,n)})}(t,n)?{segmentGroup:nc(new Al(t.segments,function(t,e,n,r){var o,s,u={};try{for(var l=a(n),c=l.next();!c.done;c=l.next()){var p=c.value;rc(t,e,p)&&!r[oc(p)]&&(u[oc(p)]=new Al([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return i({},r,u)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,r),l=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&l.hasChildren()?o.expandChildren(n,r,l).pipe(q(function(t){return new Al(u,t)})):0===r.length&&0===p.length?Oa(new Al(u,{})):o.expandSegment(n,l,r,p,hl,!0).pipe(q(function(t){return new Al(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Oa(new yl(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Oa(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Tl(W(n).pipe(q(function(n){var r=t.get(n);return kl(r.canLoad?r.canLoad(e):r(e))}))):Oa(!0)}(t.injector,e).pipe(K(function(r){return r?n.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new A(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Oa(new yl([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Oa(n);if(r.numberOfChildren>1||!r.children[hl])return Xl(t.redirectTo);r=r.children[hl]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Il(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Sl(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return Sl(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Al(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=a(e),s=i.next();!s.done;s=i.next()){var u=s.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function ec(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:{}};var r=(e.matcher||gl)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function nc(t){if(1===t.numberOfChildren&&t.children[hl]){var e=t.children[hl];return new Al(t.segments.concat(e.segments),e.children)}return t}function rc(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function oc(t){return t.outlet||hl}var ic=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=ac(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=ac(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=sc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return sc(t,this._root).map(function(t){return t.value})},t}();function ac(t,e){if(t===e.value)return e;try{for(var n=a(e.children),r=n.next();!r.done;r=n.next()){var o=ac(t,r.value);if(o)return o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}return null;var i,s}function sc(t,e){if(t===e.value)return[e];try{for(var n=a(e.children),r=n.next();!r.done;r=n.next()){var o=sc(t,r.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}return[];var i,s}var uc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function lc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var cc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,gc(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ic);function pc(t,e){var n=function(t,e){var n=new dc([],{},{},"",{},hl,e,null,t.root,-1,{});return new vc("",new uc(n,[]))}(t,e),r=new Pa([new Ol("",{})]),o=new Pa({}),i=new Pa({}),a=new Pa({}),s=new Pa(""),u=new fc(r,o,a,s,i,hl,e,n.root);return u.snapshot=n.root,new cc(new uc(u,[]),n)}var fc=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q(function(t){return vl(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return vl(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function hc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var dc=function(){function t(t,e,n,r,o,i,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=vl(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=vl(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),vc=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,gc(r,n),r}return o(e,t),e.prototype.toString=function(){return yc(this._root)},e}(ic);function gc(t,e){e.value._routerState=t,e.children.forEach(function(e){return gc(t,e)})}function yc(t){var e=t.children.length>0?" { "+t.children.map(yc).join(", ")+" } ":"";return""+t.value+e}function mc(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Cl(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Cl(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Cl(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Cl(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function bc(t,e){var n,r;return Cl(t.params,e.params)&&Rl(n=t.url,r=e.url)&&n.every(function(t,e){return Cl(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||bc(t.parent,e.parent))}function wc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function _c(t,e,n,r,o){var i={};return r&&Sl(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new Il(n.root===t?e:function t(e,n,r){var o={};return Sl(e.children,function(e,i){o[i]=e===n?r:t(e,n,r)}),new Al(e.segments,o)}(n.root,t,e),i,o)}var Cc=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&wc(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==El(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),xc=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Ec(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[hl]:""+t}function Sc(t,e,n){if(t||(t=new Al([],{})),0===t.segments.length&&t.hasChildren())return Tc(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var a=t.segments[o],s=Ec(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Ac(s,u,a))return i;r+=2}else{if(!Ac(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new Al(t.segments.slice(0,r.pathIndex),{});return i.children[hl]=new Al(t.segments.slice(r.pathIndex),t.children),Tc(i,0,o)}return r.match&&0===o.length?new Al(t.segments,{}):r.match&&!t.hasChildren()?kc(t,e,n):r.match?Tc(t,0,o):kc(t,e,n)}function Tc(t,e,n){if(0===n.length)return new Al(t.segments,{});var r=function(t){return"object"!=typeof t[0]?((e={})[hl]=t,e):void 0===t[0].outlets?((n={})[hl]=t,n):t[0].outlets;var e,n}(n),o={};return Sl(r,function(n,r){null!==n&&(o[r]=Sc(t.children[r],e,n))}),Sl(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new Al(t.segments,o)}function kc(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=Pc(n[o].outlets);return new Al(r,i)}if(0===o&&wc(n[0]))r.push(new Ol(t.segments[e].path,n[0])),o++;else{var a=Ec(n[o]),s=o<n.length-1?n[o+1]:null;a&&s&&wc(s)?(r.push(new Ol(a,Ic(s))),o+=2):(r.push(new Ol(a,{})),o++)}}return new Al(r,{})}function Pc(t){var e={};return Sl(t,function(t,n){null!==t&&(e[n]=kc(new Al([],{}),0,t))}),e}function Ic(t){var e={};return Sl(t,function(t,n){return e[n]=""+t}),e}function Ac(t,e,n){return t==n.path&&Cl(e,n.parameters)}var Oc=function(t){this.path=t,this.route=this.path[this.path.length-1]},Rc=function(t,e){this.component=t,this.route=e},Nc=function(){function t(t,e,n,r){this.future=t,this.curr=e,this.moduleInjector=n,this.forwardEvent=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var e=this.future._root;this.setupChildRouteGuards(e,this.curr?this.curr._root:null,t,[e.value])},t.prototype.checkGuards=function(){var t=this;return this.isDeactivating()||this.isActivating()?this.runCanDeactivateChecks().pipe(K(function(e){return e?t.runCanActivateChecks():Oa(!1)})):Oa(!0)},t.prototype.resolveData=function(t){var e=this;return this.isActivating()?W(this.canActivateChecks).pipe(Ka(function(n){return e.runResolve(n.route,t)}),function(t,e){return arguments.length>=2?function(n){return P(ss(t,e),Ya(1),Ha(e))(n)}:function(e){return P(ss(function(e,n,r){return t(e,n,r+1)}),Ya(1))(e)}}(function(t,e){return t})):Oa(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=lc(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Sl(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var s=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new Oc(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?a?a.children:null:n,r),s&&this.canDeactivateChecks.push(new Rc(a.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new Oc(r)),this.setupChildRouteGuards(t,null,o.component?a?a.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!bc(t,e)||!Cl(t.queryParams,e.queryParams);case"paramsChange":default:return!bc(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=lc(t),o=t.value;Sl(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Rc(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return W(this.canDeactivateChecks).pipe(K(function(e){return t.runCanDeactivate(e.component,e.route)}),ts(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return W(this.canActivateChecks).pipe(Ka(function(e){return Tl(W([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),ts(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new cl(t)),Oa(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new ul(t)),Oa(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Tl(W(n).pipe(q(function(n){var r=e.getToken(n,t);return kl(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(Wa())}))):Oa(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Tl(W(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(q(function(t){return Tl(W(t.guards).pipe(q(function(r){var o=e.getToken(r,t.node);return kl(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(Wa())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?W(r).pipe(K(function(r){var o=n.getToken(r,e);return kl(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(Wa())})).pipe(ts(function(t){return!0===t})):Oa(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(q(function(n){return t._resolvedData=n,t.data=i({},t.data,hc(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Oa({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(q(function(t){return(e={})[o]=t,e;var e}))}var i={};return W(r).pipe(K(function(r){return n.getResolver(t[r],e).pipe(q(function(t){return i[r]=t,t}))})).pipe(Xa(),q(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return kl(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Dc=function(){},Mc=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=Lc(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,hl),n=new dc([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},hl,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new uc(n,e),o=new vc(this.url,r);return this.inheritParamsAndData(o._root),Oa(o)}catch(t){return new A(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=hc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Nl(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===hl?-1:e.value.outlet===hl?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){try{for(var o=a(t),i=o.next();!i.done;i=o.next()){var s=i.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof Dc))throw t}}}catch(t){u={error:t}}finally{try{i&&!i.done&&(l=o.return)&&l.call(o)}finally{if(u)throw u.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Dc;var u,l},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Dc;if((t.outlet||hl)!==r)throw new Dc;var o,a=[],s=[];if("**"===t.path){var u=n.length>0?El(n).parameters:{};o=new dc(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,zc(t),r,t.component,t,jc(e),Vc(e)+n.length,Fc(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Dc;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||gl)(n,t,e);if(!r)throw new Dc;var o={};Sl(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),o=new dc(a,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,zc(t),r,t.component,t,jc(e),Vc(e)+a.length,Fc(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Lc(e,a,s,c),f=p.segmentGroup,h=p.slicedSegments;if(0===h.length&&f.hasChildren()){var d=this.processChildren(c,f);return[new uc(o,d)]}if(0===c.length&&0===h.length)return[new uc(o,[])];var v=this.processSegment(c,f,h,hl);return[new uc(o,v)]},t}();function jc(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Vc(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Lc(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Uc(t,e,n)&&Hc(n)!==hl})}(t,n)){var o=new Al(e,function(t,e,n,r){var o,i,s={};s[hl]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=a(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&Hc(c)!==hl){var p=new Al([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Hc(c)]=p}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return s}(t,e,r,new Al(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Uc(t,e,n)})}(t,n)){var s=new Al(t.segments,function(t,e,n,r){var o,s,u={};try{for(var l=a(n),c=l.next();!c.done;c=l.next()){var p=c.value;if(Uc(t,e,p)&&!r[Hc(p)]){var f=new Al([],{});f._sourceSegment=t,f._segmentIndexShift=t.segments.length,u[Hc(p)]=f}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return i({},r,u)}(t,n,r,t.children));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new Al(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Uc(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Hc(t){return t.outlet||hl}function zc(t){return t.data||{}}function Fc(t){return t.resolve||{}}var Bc=function(){},qc=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Gc=new ht("ROUTES"),Zc=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(q(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new yl(xl(o.injector.get(Gc)).map(_l),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?W(this.loader.load(t)):kl(t()).pipe(K(function(t){return t instanceof Ae?Oa(t):W(e.compiler.compileModuleAsync(t))}))},t}(),Qc=function(){},Wc=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Kc(t){throw t}function Yc(t,e,n){return e.parse("/")}function $c(t){return Oa(null)}var Jc=function(){function t(t,e,n,r,o,i,a,s){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.navigations=new Pa(null),this.navigationId=0,this.events=new rt,this.errorHandler=Kc,this.malformedUriErrorHandler=Yc,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:$c,afterPreactivation:$c},this.urlHandlingStrategy=new Wc,this.routeReuseStrategy=new qc,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(Ie),this.resetConfig(s),this.currentUrlTree=new Il(new Al([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Zc(i,a,function(t){return u.triggerEvent(new al(t))},function(t){return u.triggerEvent(new sl(t))}),this.routerState=pc(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){ml(t),this.config=t.map(_l),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;Ye()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,p=l?this.currentUrlTree.fragment:o,f=null;if(s)switch(s){case"merge":f=i({},this.currentUrlTree.queryParams,r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}else f=a?this.currentUrlTree.queryParams:r||null;return null!==f&&(f=this.removeEmptyProps(f)),function(t,e,n,r,o){if(0===n.length)return _c(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Cc(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Sl(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),u(t,[{outlets:i}])}if(r.segmentPath)return u(t,[r.segmentPath])}return"string"!=typeof r?u(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):u(t,[r])},[]);return new Cc(n,e,r)}(n);if(i.toRoot())return _c(e.root,new Al([],{}),e,r,o);var a=function(t,n,r){if(t.isAbsolute)return new xc(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new xc(r.snapshot._urlSegment,!0,0);var o=wc(t.commands[0])?0:1;return function(e,n,i){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new xc(a,!1,s-u)}()}(i,0,t),s=a.processChildren?Tc(a.segmentGroup,a.index,i.commands):Sc(a.segmentGroup,a.index,i.commands);return _c(a.segmentGroup,s,e,r,o)}(c,this.currentUrlTree,t,f,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Il?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(t instanceof Il)return Pl(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Pl(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;this.navigations.pipe(Ka(function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):Oa(null)})).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n,r){var o=this.navigations.value;if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,a=null,s=new Promise(function(t,e){i=t,a=e}),u=++this.navigationId;return this.navigations.next({id:u,source:e,state:n,rawUrl:t,extras:r,resolve:i,reject:a,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,a=t.reject,s=t.source,u=t.state,l=this.urlHandlingStrategy.extract(r),c=!this.navigated||l.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.events.next(new $u(n,this.serializeUrl(l),s,u)),Promise.resolve().then(function(t){return e.runNavigate(l,r,!!o.skipLocationChange,!!o.replaceUrl,n,null)}).then(i,a)):c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new $u(n,this.serializeUrl(l),s,u)),Promise.resolve().then(function(t){return e.runNavigate(l,r,!1,!1,n,pc(l,e.rootComponentType).snapshot)}).then(i,a)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,n,r,o,i){var s=this;return o!==this.navigationId?(this.events.next(new Xu(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,l){var c,p=(i?Oa({appliedUrl:t,snapshot:i}):new tc(s.ngModule.injector,s.configLoader,s.urlSerializer,t,s.config).apply().pipe(K(function(e){return function(t,e,n,r,o){return void 0===o&&(o="emptyOnly"),new Mc(t,e,n,r,o).recognize()}(s.rootComponentType,s.config,e,s.serializeUrl(e),s.paramsInheritanceStrategy).pipe(q(function(n){return s.events.next(new el(o,s.serializeUrl(t),s.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}}))}))).pipe(K(function(t){return"boolean"==typeof t?Oa(t):s.hooks.beforePreactivation(t.snapshot).pipe(q(function(){return t}))})).pipe(q(function(t){if("boolean"==typeof t)return t;var e=t.appliedUrl,n=t.snapshot;return(c=new Nc(n,s.routerState.snapshot,s.ngModule.injector,function(t){return s.triggerEvent(t)})).initialize(s.rootContexts),{appliedUrl:e,snapshot:n}})).pipe(K(function(e){if("boolean"==typeof e||s.navigationId!==o)return Oa(!1);var n=e.appliedUrl,r=e.snapshot;return s.triggerEvent(new nl(o,s.serializeUrl(t),s.serializeUrl(n),r)),c.checkGuards().pipe(q(function(e){return s.triggerEvent(new rl(o,s.serializeUrl(t),s.serializeUrl(n),r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))})).pipe(K(function(e){return"boolean"==typeof e||s.navigationId!==o?Oa(!1):e.shouldActivate&&c.isActivating()?(s.triggerEvent(new ol(o,s.serializeUrl(t),s.serializeUrl(e.appliedUrl),e.snapshot)),c.resolveData(s.paramsInheritanceStrategy).pipe(q(function(){return s.triggerEvent(new il(o,s.serializeUrl(t),s.serializeUrl(e.appliedUrl),e.snapshot)),e}))):Oa(e)})).pipe(K(function(t){return"boolean"==typeof t||s.navigationId!==o?Oa(!1):s.hooks.afterPreactivation(t.snapshot).pipe(q(function(){return t}))})).pipe(q(function(t){if("boolean"==typeof t||s.navigationId!==o)return!1;var e,n,r,i=t.appliedUrl,u=t.shouldActivate;return u?{appliedUrl:i,state:(r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){try{for(var o=a(r.children),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}}catch(t){u={error:t}}finally{try{i&&!i.done&&(l=o.return)&&l.call(o)}finally{if(u)throw u.error}}return t(e,n);var u,l})}(e,n,r);return new uc(l,o)}var i=e.retrieve(n.value);if(i){var s=i.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(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,s),s}var u,l=new fc(new Pa((u=n.value).url),new Pa(u.params),new Pa(u.queryParams),new Pa(u.fragment),new Pa(u.data),u.outlet,u.component,u);return o=n.children.map(function(n){return t(e,n)}),new uc(l,o)}(s.routeReuseStrategy,(e=t.snapshot)._root,(n=s.routerState)?n._root:void 0),new cc(r,e)),shouldActivate:u}:{appliedUrl:i,state:null,shouldActivate:u}}));s.activateRoutes(p,s.routerState,s.currentUrlTree,o,t,e,n,r,u,l)})},t.prototype.activateRoutes=function(t,e,n,r,o,i,a,s,u,l){var c,p=this;t.forEach(function(t){if("boolean"!=typeof t&&t.shouldActivate&&r===p.navigationId&&t.state){var n=t.state;if(p.currentUrlTree=t.appliedUrl,p.rawUrlTree=p.urlHandlingStrategy.merge(p.currentUrlTree,i),p.routerState=n,!a){var o=p.urlSerializer.serialize(p.rawUrlTree);p.location.isCurrentPathEqualTo(o)||s?p.location.replaceState(o,"",{navigationId:r}):p.location.go(o,"",{navigationId:r})}new Xc(p.routeReuseStrategy,n,e,function(t){return p.triggerEvent(t)}).activate(p.rootContexts),c=!0}else c=!1}).then(function(){c?(p.navigated=!0,p.lastSuccessfulId=r,p.events.next(new Ju(r,p.serializeUrl(o),p.serializeUrl(p.currentUrlTree))),u(!0)):(p.resetUrlToCurrentUrlTree(),p.events.next(new Xu(r,p.serializeUrl(o),"")),u(!1))},function(t){if((a=t)&&a.ngNavigationCancelingError)p.navigated=!0,p.resetStateAndUrl(e,n,i),p.events.next(new Xu(r,p.serializeUrl(o),t.message)),u(!1);else{p.resetStateAndUrl(e,n,i),p.events.next(new tl(r,p.serializeUrl(o),t));try{u(p.errorHandler(t))}catch(t){l(t)}}var a})},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),Xc=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),mc(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=lc(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,o[e],n),delete o[e]}),Sl(o,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var o=lc(t),i=t.value.component?r.children:e;Sl(o,function(t,e){return n.deactivateRouteAndItsChildren(t,i)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=lc(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n),r.forwardEvent(new pl(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ll(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(mc(r),r===o)if(r.component){var i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(i=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),i.children.onOutletReAttached(a.contexts),i.attachRef=a.componentRef,i.route=a.route.value,i.outlet&&i.outlet.attach(a.componentRef,a.route.value),tp(a.route)}else{var s=function(t){for(var e=r.snapshot.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),u=s?s.module.componentFactoryResolver:null;i.route=r,i.resolver=u,i.outlet&&i.outlet.activateWith(r,u),this.activateChildRoutes(t,null,i.children)}else this.activateChildRoutes(t,null,n)},t}();function tp(t){mc(t.value),t.children.forEach(tp)}var ep=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new np,this.attachRef=null}}(),np=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new ep,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),rp=function(){function t(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Me,this.deactivateEvents=new Me,this.name=r||hl,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,o=new op(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),op=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===fc?this.route:t===np?this.childContexts:this.parent.get(t,e)},t}(),ip=function(){},ap=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(rs(function(){return Oa(null)}))},t}(),sp=function(){function t(){}return t.prototype.preload=function(t,e){return Oa(null)},t}(),up=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new Zc(e,n,function(e){return t.triggerEvent(new al(e))},function(e){return t.triggerEvent(new sl(e))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Na(function(t){return t instanceof Ju}),Ka(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(Ie);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,r,o=[];try{for(var i=a(e),s=i.next();!s.done;s=i.next()){var u=s.value;if(u.loadChildren&&!u.canLoad&&u._loadedConfig){var l=u._loadedConfig;o.push(this.processRoutes(l.module,l.routes))}else u.loadChildren&&!u.canLoad?o.push(this.preloadConfig(t,u)):u.children&&o.push(this.processRoutes(t,u.children))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return W(o).pipe(X(),q(function(t){}))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return n.loader.load(t.injector,e).pipe(K(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})},t}(),lp=new ht("ROUTER_CONFIGURATION"),cp=new ht("ROUTER_FORROOT_GUARD"),pp=[ds,{provide:Dl,useClass:Ml},{provide:Jc,useFactory:yp,deps:[nn,Dl,np,ds,Vt,ln,me,Gc,lp,[Qc,new At],[Bc,new At]]},np,{provide:fc,useFactory:mp,deps:[Jc]},{provide:ln,useClass:hn},up,sp,ap,{provide:lp,useValue:{enableTracing:!1}}];function fp(){return new $e("Router",Jc)}var hp=function(){function t(t,e){}return t.forRoot=function(e,n){return{ngModule:t,providers:[pp,gp(e),{provide:cp,useFactory:vp,deps:[[Jc,new At,new Rt]]},{provide:lp,useValue:n||{}},{provide:fs,useFactory:dp,deps:[cs,[new It(hs),new At],lp]},{provide:ip,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:sp},{provide:$e,multi:!0,useFactory:fp},[bp,{provide:ce,multi:!0,useFactory:wp,deps:[bp]},{provide:Cp,useFactory:_p,deps:[bp]},{provide:ve,multi:!0,useExisting:Cp}]]}},t.forChild=function(e){return{ngModule:t,providers:[gp(e)]}},t}();function dp(t,e,n){return void 0===n&&(n={}),n.useHash?new gs(t,e):new ys(t,e)}function vp(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function gp(t){return[{provide:gt,multi:!0,useValue:t},{provide:Gc,multi:!0,useValue:t}]}function yp(t,e,n,r,o,i,a,s,u,l,c){void 0===u&&(u={});var p=new Jc(null,e,n,r,o,i,a,xl(s));if(l&&(p.urlHandlingStrategy=l),c&&(p.routeReuseStrategy=c),u.errorHandler&&(p.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(p.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var f=js();p.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return u.onSameUrlNavigation&&(p.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=u.paramsInheritanceStrategy),p}function mp(t){return t.routerState.root}var bp=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new rt}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(ps,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Jc),o=t.injector.get(lp);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Oa(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(lp),n=this.injector.get(up),r=this.injector.get(Jc),o=this.injector.get(nn);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();function wp(t){return t.appInitializer.bind(t)}function _p(t){return t.bootstrapListener.bind(t)}var Cp=new ht("Router Initializer"),xp=Mr({encapsulation:2,styles:[],data:{}});function Ep(t){return mi(0,[(t()(),uo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Yo(1,212992,null,0,rp,[np,gn,Te,[8,null],yn],null,null)],function(t,e){t(e,1,0)},null)}var Sp=ko("ng-component",fl,function(t){return mi(0,[(t()(),uo(0,0,null,null,1,"ng-component",[],null,null,null,Ep,xp)),Yo(1,49152,null,0,fl,[],null,null)],null,null)},{},{},[]),Tp=function(){function t(){this.navigationItems=[{label:"Home"},{label:"About"}]}return t.prototype.ngOnInit=function(){return t=this,void 0,n=function(){return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return this.toggled=!1,[2]})},new((e=void 0)||(e=Promise))(function(r,o){function i(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){t.done?r(t.value):new e(function(e){e(t.value)}).then(i,a)}s((n=n.apply(t,[])).next())});var t,e,n},t.prototype.toggleNavigation=function(){this.toggled=!this.toggled},t}(),kp=Mr({encapsulation:0,styles:[["[_nghost-%COMP%]{position:fixed}.navigation-button[_ngcontent-%COMP%]{position:absolute;z-index:1000;width:40px;height:30px;margin:20px;-webkit-transform:rotate(0);transform:rotate(0);transition:.5s ease-in-out;cursor:pointer}.navigation-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:6px;width:100%;background:#fff;opacity:1;left:0;-webkit-transform:rotate(0);transform:rotate(0);transition:.25s ease-in-out}.navigation-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.navigation-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){top:12px}.navigation-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:24px}.navigation-button.toggled[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:12px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.navigation-button.toggled[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){opacity:0;left:-40px}.navigation-button.toggled[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:12px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.navigation-menu[_ngcontent-%COMP%]{position:fixed;display:flex;z-index:100;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;background:rgba(30,30,30,.95);color:#fff}.navigation-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px;list-style:none;font-size:2rem}"]],data:{}});function Pp(t){return mi(0,[(t()(),uo(0,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),vi(1,null,[" "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit.label)})}function Ip(t){return mi(0,[(t()(),uo(0,0,null,null,3,"div",[["class","navigation-menu"]],null,null,null,null,null)),(t()(),uo(1,0,null,null,2,"ul",[],null,null,null,null,null)),(t()(),so(16777216,null,null,1,null,Pp)),Yo(3,802816,null,0,ks,[gn,vn,Ln],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,e.component.navigationItems)},null)}function Ap(t){return mi(0,[(t()(),uo(0,0,null,null,5,"div",[["class","navigation-button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleNavigation()&&r),r},null,null)),Yo(1,278528,null,0,Ss,[Ln,Un,un,sn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),function(t,e){for(var n=Object.keys(e),r=n.length,o=new Array(r),i=0;i<r;i++){var a=n[i];o[e[a]]=a}return function(t,e,n){for(var r=new Array(n.length),o=0;o<n.length;o++){var i=n[o];r[o]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:2,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ao(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,0,o)}(0,{toggled:0}),(t()(),uo(3,0,null,null,0,"span",[],null,null,null,null,null)),(t()(),uo(4,0,null,null,0,"span",[],null,null,null,null,null)),(t()(),uo(5,0,null,null,0,"span",[],null,null,null,null,null)),(t()(),so(16777216,null,null,1,null,Ip)),Yo(7,16384,null,0,Is,[gn,vn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,"navigation-button",t(e,2,0,n.toggled)),t(e,7,0,n.toggled)},null)}var Op=n("ELNm"),Rp=function(){function t(){}return t.prototype.ngOnInit=function(){return t=this,void 0,n=function(){return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return this.name="Jonas Grosch",this.jobs=["Software Engineer","Lead Developer","Scrum Master"],new Op(".typed-jobs",{typeSpeed:50,strings:this.jobs,onComplete:function(){return setTimeout(function(){return document.querySelector(".typed-cursor").remove()},2e3)}}),[2]})},new((e=void 0)||(e=Promise))(function(r,o){function i(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){t.done?r(t.value):new e(function(e){e(t.value)}).then(i,a)}s((n=n.apply(t,[])).next())});var t,e,n},t}(),Np=Mr({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;background:#642b73;background:linear-gradient(to right,#c6426e,#642b73);color:#fff}[_nghost-%COMP%] img[_ngcontent-%COMP%]{max-width:200px;max-height:200px;border-radius:50%}@media (max-width:500px){[_nghost-%COMP%]{background-position:center;background-size:500px}}"]],data:{}});function Dp(t){return mi(0,[(t()(),uo(0,0,null,null,0,"img",[["src","/assets/images/jonas.jpg"]],[[8,"alt",0]],null,null,null,null)),(t()(),uo(1,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),vi(2,null,["",""])),(t()(),uo(3,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),uo(4,0,null,null,0,"span",[["class","typed-jobs"]],null,null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.name),t(e,2,0,n.name)})}var Mp=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),jp=Mr({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;background:#159957;background:linear-gradient(to right,#155799,#159957);color:#fff}"]],data:{}});function Vp(t){return mi(0,[(t()(),uo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),vi(-1,null,["About"]))],null,null)}var Lp=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),Up=Mr({encapsulation:2,styles:[],data:{}});function Hp(t){return mi(0,[(t()(),uo(0,0,null,null,1,"app-navigation",[],null,null,null,Ap,kp)),Yo(1,114688,null,0,Tp,[],null,null),(t()(),uo(2,0,null,null,1,"app-hero",[],null,null,null,Dp,Np)),Yo(3,114688,null,0,Rp,[],null,null),(t()(),uo(4,0,null,null,1,"app-about",[],null,null,null,Vp,jp)),Yo(5,114688,null,0,Mp,[],null,null)],function(t,e){t(e,1,0),t(e,3,0),t(e,5,0)},null)}var zp=ko("app-home",Lp,function(t){return mi(0,[(t()(),uo(0,0,null,null,1,"app-home",[],null,null,null,Hp,Up)),Yo(1,114688,null,0,Lp,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Fp=Mr({encapsulation:2,styles:[],data:{}});function Bp(t){return mi(0,[(t()(),uo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Yo(1,212992,null,0,rp,[np,gn,Te,[8,null],yn],null,null)],function(t,e){t(e,1,0)},null)}var qp=ko("app-root",ka,function(t){return mi(0,[(t()(),uo(0,0,null,null,1,"app-root",[],null,null,null,Bp,Fp)),Yo(1,49152,null,0,ka,[],null,null)],null,null)},{},{},[]),Gp=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,u(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Zp=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}({}),Qp=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Zp.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new Gp,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}}()),Wp=new ht("HTTP_INTERCEPTORS"),Kp=function(){function t(t,e){var n=this;this.transferState=e,this.isCacheActive=!0,t.isStable.pipe(Na(function(t){return t}),Va(1)).toPromise().then(function(){n.isCacheActive=!1})}return t.prototype.invalidateCacheEntry=function(t){this.transferState.remove(Zu("G."+t)),this.transferState.remove(Zu("H."+t))},t.prototype.intercept=function(t,e){var n=this;if("GET"!==t.method&&"HEAD"!==t.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(t.url)),!this.isCacheActive)return e.handle(t);var r=Zu(("GET"===t.method?"G.":"H.")+t.url);if(this.transferState.hasKey(r)){var o=this.transferState.get(r,{});return Oa(new Qp({body:o.body,headers:new Gp(o.headers),status:o.status,statusText:o.statusText,url:o.url}))}return e.handle(t).pipe(Ba(function(t){t instanceof Qp&&n.transferState.set(r,{body:t.body,headers:function(t){var e,n,r={};try{for(var o=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(t.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;r[a]=t.getAll(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(t.headers),status:t.status,statusText:t.statusText,url:t.url})}))},t}(),Yp=function(){},$p=function(t,e,n){return new Sa(Ta,[ka],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o<t.length;o++){var i=t[o];i.token===ue&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=o,e[Rr(i.token)]=i}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}([mo(512,Te,ke,[[8,[Sp,zp,qp]],[3,Te],Ie]),mo(5120,qn,Qn,[[3,qn]]),mo(4608,xs,Es,[qn,[2,Cs]]),mo(5120,Ln,Gn,[]),mo(5120,Un,Zn,[]),mo(4608,Mu,ju,[Ns]),mo(6144,mr,null,[Mu]),mo(4608,Iu,Au,[]),mo(5120,nu,function(t,e,n,r,o,i,a){return[new ku(t,e,n),new Du(r),new Ou(o,i,a)]},[Ns,je,[2,de],Ns,Ns,Iu,ge]),mo(4608,ru,ru,[nu,je]),mo(135680,au,au,[Ns]),mo(4608,hu,hu,[ru,au]),mo(6144,on,null,[hu]),mo(6144,iu,null,[au]),mo(4608,qe,qe,[je]),mo(4608,Qs,Qs,[Ns]),mo(4608,Js,Js,[Ns]),mo(5120,Qu,Wu,[Ns,fe]),mo(4608,Kp,Kp,[nn,Qu]),mo(5120,Wp,function(t){return[t]},[Kp]),mo(5120,fc,mp,[Jc]),mo(4608,sp,sp,[]),mo(6144,ip,null,[sp]),mo(135680,up,up,[Jc,ln,me,Vt,ip]),mo(4608,ap,ap,[]),mo(5120,Cp,_p,[bp]),mo(5120,ve,function(t){return[t]},[Cp]),mo(1073742336,Rs,Rs,[]),mo(1024,se,qu,[]),mo(1024,$e,function(){return[fp()]},[]),mo(256,fe,"my-app",[]),mo(2048,Ws,null,[fe]),mo(512,bp,bp,[Vt]),mo(1024,ce,function(t,e,n,r,o){return[(a=t,Xs("probe",eu),Xs("coreTokens",i({},tu,(a||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return eu}),Ks(e,n,r),wp(o)];var a},[[2,$e],Ws,Ns,Vt,bp]),mo(512,pe,pe,[[2,ce]]),mo(131584,nn,nn,[je,ge,Vt,se,Te,pe]),mo(1073742336,Wn,Wn,[nn]),mo(1073742336,Gu,Gu,[[3,Gu]]),mo(1024,cp,vp,[[3,Jc]]),mo(512,Dl,Ml,[]),mo(512,np,np,[]),mo(256,lp,{},[]),mo(1024,fs,dp,[cs,[2,hs],lp]),mo(512,ds,ds,[fs]),mo(512,me,me,[]),mo(512,ln,hn,[me,[2,pn]]),mo(1024,Gc,function(){return[[{path:"",component:Lp,pathMatch:"full"}]]},[]),mo(1024,Jc,yp,[nn,Dl,np,ds,Vt,ln,me,Gc,lp,[2,Qc],[2,Bc]]),mo(1073742336,hp,hp,[[2,cp],[2,Jc]]),mo(1073742336,Ku,Ku,[]),mo(1073742336,Yp,Yp,[]),mo(1073742336,Ta,Ta,[]),mo(256,ue,!0,[])])})}();(function(){if(We)throw new Error("Cannot enable prod mode after platform setup.");Qe=!1})(),document.addEventListener("DOMContentLoaded",function(){Bu().bootstrapModuleFactory($p)})}},[[3,0]]]);