webpackJsonp([3],{"+3/4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YaPU"),o=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.scheduler=e}return o(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r.Observable)},"+6gH":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("LK4L"),o=n("3j3K"),i=n("2Je8"),a=n("KgXS"),s=n("xDLk"),u=[r.styles];function c(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,0,"div",[["class","image"]],[[2,"active",null],[24,"@imageTransition",0],[4,"background-image",null],[4,"left",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,e.context.$implicit.active,e.context.$implicit.transition,e.context.$implicit.viewerImageLoaded?"url("+e.context.$implicit[n.categorySelected].path+")":n.Math.abs(n.currentIdx-e.context.index)<=1?"url("+e.context.$implicit.preview_xxs.path+")":"",n.transform+"px")})}function l(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,0,"img",[["class","preloading-image"]],[[8,"src",4]],[[null,"load"]],function(t,e,n){var r=!0,o=t.component;"load"===e&&(r=!1!==o.imageLoaded(t.context.$implicit)&&r);return r},null,null))],null,function(t,e){var n=e.component;t(e,0,0,o.\u0275inlineInterpolate(1,"",n.Math.abs(n.currentIdx-e.context.index)<=1?e.context.$implicit[n.categorySelected].path:"",""))})}function p(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,23,"div",[["class","outerContainer"]],[[24,"@showViewerTransition",0]],[["window","resize"]],function(t,e,n){var r=!0,o=t.component;"window:resize"===e&&(r=!1!==o.onResize(n)&&r);return r},null,null)),(t()(),o.\u0275ted(-1,null,["\n\n "])),(t()(),o.\u0275eld(2,0,null,null,2,"img",[["class","arrow left"],["src","data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczpza2V0Y2g9Imh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaC9ucyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZS8+PGRlc2MvPiAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9Im1pdSIgc3Ryb2tlPSIjNTU1IiBzdHJva2Utd2lkdGg9IjAuMiI+ICAgICA8ZyBpZD0iQXJ0Ym9hcmQtMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM5NS4wMDAwMDAsIC0xOTEuMDAwMDAwKSI+PGcgaWQ9InNsaWNlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTUuMDAwMDAwLCAxMTkuMDAwMDAwKSIvPjxwYXRoICAgICAgIGQ9Ik0zOTYsMjAyLjUgQzM5NiwxOTYuMTQ4NzI1IDQwMS4xNDg3MjUsMTkxIDQwNy41LDE5MSBDNDEzLjg1MTI3NSwxOTEgNDE5LDE5Ni4xNDg3MjUgNDE5LDIwMi41IEM0MTksMjA4Ljg1MTI3NSA0MTMuODUxMjc1LDIxNCA0MDcuNSwyMTQgQzQwMS4xNDg3MjUsMjE0IDM5NiwyMDguODUxMjc1IDM5NiwyMDIuNSBaIE00MDguNjU2ODU0LDE5Ni44NDMxNDYgTDQxMC4wNzEwNjgsMTk4LjI1NzM1OSBMNDA1LjgyODQyNywyMDIuNSBMNDEwLjA3MTA2OCwyMDYuNzQyNjQxIEw0MDguNjU2ODU0LDIwOC4xNTY4NTQgTDQwMywyMDIuNSBMNDA4LjY1Njg1NCwxOTYuODQzMTQ2IFoiICAgICAgIGZpbGw9IiNhYWEiICAgICAgIGlkPSJjaXJjbGUtYmFjay1hcnJvdy1nbHlwaCIvPjwvZz4gICA8L2c+IDwvc3ZnPg=="]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;"click"===e&&(r=!1!==o.navigate(-1)&&r);return r},null,null)),o.\u0275did(3,278528,null,0,i.NgClass,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o.\u0275pod(4,{activeArrow:0}),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275eld(6,0,null,null,2,"img",[["class","arrow right"],["src","data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0cHgiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczpza2V0Y2g9Imh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaC9ucyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjx0aXRsZS8+PGRlc2MvPjxkZWZzLz4gICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGlkPSJtaXUiIHN0cm9rZT0iIzU1NSIgc3Ryb2tlLXdpZHRoPSIwLjIiPiAgICAgPGcgaWQ9IkFydGJvYXJkLTEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NjcuMDAwMDAwLCAtMTkxLjAwMDAwMCkiPjxnIGlkPSJzbGljZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjE1LjAwMDAwMCwgMTE5LjAwMDAwMCkiLz48cGF0aCAgICAgICBkPSJNNDY4LDIwMi41IEM0NjgsMTk2LjE0ODcyNSA0NzMuMTQ4NzI1LDE5MSA0NzkuNSwxOTEgQzQ4NS44NTEyNzUsMTkxIDQ5MSwxOTYuMTQ4NzI1IDQ5MSwyMDIuNSBDNDkxLDIwOC44NTEyNzUgNDg1Ljg1MTI3NSwyMTQgNDc5LjUsMjE0IEM0NzMuMTQ4NzI1LDIxNCA0NjgsMjA4Ljg1MTI3NSA0NjgsMjAyLjUgWiBNNDgwLjY1Njg1NCwxOTYuODQzMTQ2IEw0ODIuMDcxMDY4LDE5OC4yNTczNTkgTDQ3Ny44Mjg0MjcsMjAyLjUgTDQ4Mi4wNzEwNjgsMjA2Ljc0MjY0MSBMNDgwLjY1Njg1NCwyMDguMTU2ODU0IEw0NzUsMjAyLjUgTDQ4MC42NTY4NTQsMTk2Ljg0MzE0NiBaIiAgICAgICBmaWxsPSIjYWFhIiAgICAgICBpZD0iY2lyY2xlLW5leHQtYXJyb3ctZGlzY2xvc3VyZS1nbHlwaCIgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDc5LjUwMDAwMCwgMjAyLjUwMDAwMCkgc2NhbGUoLTEsIDEpIHRyYW5zbGF0ZSgtNDc5LjUwMDAwMCwgLTIwMi41MDAwMDApICIvPjwvZz4gICA8L2c+IDwvc3ZnPg=="]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;"click"===e&&(r=!1!==o.navigate(1)&&r);return r},null,null)),o.\u0275did(7,278528,null,0,i.NgClass,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o.\u0275pod(8,{activeArrow:0}),(t()(),o.\u0275ted(-1,null,["\n\n "])),(t()(),o.\u0275eld(10,0,null,null,3,"div",[["class","buttonContainer"]],null,null,null,null,null)),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275eld(12,0,null,null,0,"img",[["class","action close"],["src","data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMwcHgiIGlkPSJMYXllcl8xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgdmVyc2lvbj0iMS4xIiBmaWxsPSIjYWFhIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgd2lkdGg9IjI0cHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgPHBhdGggICAgc3Ryb2tlLXdpZHRoPSIzMCIgc3Ryb2tlPSIjNDQ0IiAgICBkPSJNNDM3LjUsMzg2LjZMMzA2LjksMjU2bDEzMC42LTEzMC42YzE0LjEtMTQuMSwxNC4xLTM2LjgsMC01MC45Yy0xNC4xLTE0LjEtMzYuOC0xNC4xLTUwLjksMEwyNTYsMjA1LjFMMTI1LjQsNzQuNSAgYy0xNC4xLTE0LjEtMzYuOC0xNC4xLTUwLjksMGMtMTQuMSwxNC4xLTE0LjEsMzYuOCwwLDUwLjlMMjA1LjEsMjU2TDc0LjUsMzg2LjZjLTE0LjEsMTQuMS0xNC4xLDM2LjgsMCw1MC45ICBjMTQuMSwxNC4xLDM2LjgsMTQuMSw1MC45LDBMMjU2LDMwNi45bDEzMC42LDEzMC42YzE0LjEsMTQuMSwzNi44LDE0LjEsNTAuOSwwQzQ1MS41LDQyMy40LDQ1MS41LDQwMC42LDQzNy41LDM4Ni42eiIvPjwvc3ZnPg=="]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;"click"===e&&(r=!1!==o.closeViewer()&&r);return r},null,null)),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275ted(-1,null,["\n\n "])),(t()(),o.\u0275eld(15,0,null,null,7,"div",[["class","imageContainer"]],null,[[null,"click"],[null,"swipeleft"],[null,"swiperight"],[null,"pan"]],function(t,e,n){var r=!0,o=t.component;"click"===e&&(r=!1!==o.showNavigationArrows()&&r);"swipeleft"===e&&(r=!1!==o.navigate(1,n)&&r);"swiperight"===e&&(r=!1!==o.navigate(-1,n)&&r);"pan"===e&&(r=!1!==o.pan(n)&&r);return r},null,null)),(t()(),o.\u0275ted(-1,null,["\n\n "])),(t()(),o.\u0275and(16777216,null,null,1,null,c)),o.\u0275did(18,802816,null,0,i.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),o.\u0275ted(-1,null,["\n\n "])),(t()(),o.\u0275and(16777216,null,null,1,null,l)),o.\u0275did(21,802816,null,0,i.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275ted(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,3,0,"arrow left",t(e,4,0,n.leftArrowActive));t(e,7,0,"arrow right",t(e,8,0,n.rightArrowActive)),t(e,18,0,n.images),t(e,21,0,n.images)},function(t,e){var n=e.component;t(e,0,0,n.showViewer),t(e,2,0,!n.leftArrowVisible),t(e,6,0,!n.rightArrowVisible)})}function f(t){return o.\u0275vid(0,[(t()(),o.\u0275and(16777216,null,null,1,null,p)),o.\u0275did(1,16384,null,0,i.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),o.\u0275ted(-1,null,["\n"]))],function(t,e){t(e,1,0,e.component.showViewer)},null)}function h(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,1,"viewer",[],null,[["document","keydown"]],function(t,e,n){var r=!0;"document:keydown"===e&&(r=!1!==o.\u0275nov(t,1).onKeydown(n)&&r);return r},f,e.RenderType_ViewerComponent)),o.\u0275did(1,49152,null,0,a.ViewerComponent,[s.ImageService],null,null)],null,null)}e.RenderType_ViewerComponent=o.\u0275crt({encapsulation:0,styles:u,data:{animation:[{type:7,name:"imageTransition",definitions:[{type:0,name:"enterFromRight",styles:{type:6,styles:{opacity:1,transform:"translate(0px, 0px)"},offset:null},options:void 0},{type:0,name:"enterFromLeft",styles:{type:6,styles:{opacity:1,transform:"translate(0px, 0px)"},offset:null},options:void 0},{type:0,name:"leaveToLeft",styles:{type:6,styles:{opacity:0,transform:"translate(-100px, 0px)"},offset:null},options:void 0},{type:0,name:"leaveToRight",styles:{type:6,styles:{opacity:0,transform:"translate(100px, 0px)"},offset:null},options:void 0},{type:1,expr:"* => enterFromRight",animation:[{type:6,styles:{opacity:0,transform:"translate(30px, 0px)"},offset:null},{type:4,styles:null,timings:"250ms 500ms ease-in"}],options:null},{type:1,expr:"* => enterFromLeft",animation:[{type:6,styles:{opacity:0,transform:"translate(-30px, 0px)"},offset:null},{type:4,styles:null,timings:"250ms 500ms ease-in"}],options:null},{type:1,expr:"* => leaveToLeft",animation:[{type:6,styles:{opacity:1},offset:null},{type:4,styles:null,timings:"250ms ease-out"}],options:null},{type:1,expr:"* => leaveToRight",animation:[{type:6,styles:{opacity:1},offset:null},{type:4,styles:null,timings:"250ms ease-out"}],options:null}],options:{}},{type:7,name:"showViewerTransition",definitions:[{type:0,name:"true",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"1000ms ease-in"}],options:null},{type:1,expr:"* => void",animation:[{type:6,styles:{opacity:1},offset:null},{type:4,styles:null,timings:"500ms ease-out"}],options:null}],options:{}}]}}),e.View_ViewerComponent_0=f,e.View_ViewerComponent_Host_0=h,e.ViewerComponentNgFactory=o.\u0275ccf("viewer",a.ViewerComponent,h,{},{},[])},"+CnV":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}(n("AMGY").a)},"/iUD":function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},"/nXB":function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop());if(null===s&&1===t.length&&t[0]instanceof r.Observable)return t[0];return Object(a.a)(n)(new o.a(t,s))};var r=n("YaPU"),o=n("Veqx"),i=n("1Q68"),a=n("8D5t")},"1GJ2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AnimationDriver",function(){return w}),n.d(e,"\u0275Animation",function(){return yt}),n.d(e,"\u0275AnimationStyleNormalizer",function(){return gt}),n.d(e,"\u0275NoopAnimationStyleNormalizer",function(){return mt}),n.d(e,"\u0275WebAnimationsStyleNormalizer",function(){return vt}),n.d(e,"\u0275NoopAnimationDriver",function(){return _}),n.d(e,"\u0275AnimationEngine",function(){return Qt}),n.d(e,"\u0275WebAnimationsDriver",function(){return Yt}),n.d(e,"\u0275supportsWebAnimations",function(){return Kt}),n.d(e,"\u0275WebAnimationsPlayer",function(){return Zt});var r=n("TToO"),o=n("Um43");function i(t){switch(t.length){case 0:return new o.NoopAnimationPlayer;case 1:return t[0];default:return new o["\u0275AnimationGroupPlayer"](t)}}function a(t,e,n,r,i,a){void 0===i&&(i={}),void 0===a&&(a={});var s=[],u=[],c=-1,l=null;if(r.forEach(function(t){var n=t.offset,r=n==c,p=r&&l||{};Object.keys(t).forEach(function(n){var r=n,u=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),u){case o["\u0275PRE_STYLE"]:u=i[n];break;case o.AUTO_STYLE:u=a[n];break;default:u=e.normalizeStyleValue(n,r,u,s)}p[r]=u}),r||u.push(p),l=p,c=n}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return u}function s(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&u(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&u(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&u(n,"destroy",t.totalTime))})}}function u(t,e,n){var r=c(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),o=t._data;return null!=o&&(r._data=o),r}function c(t,e,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i}}function l(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function p(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var f=function(t,e){return!1},h=function(t,e){return!1},d=function(t,e,n){return[]};if("undefined"!=typeof Element){if(f=function(t,e){return t.contains(e)},Element.prototype.matches)h=function(t,e){return t.matches(e)};else{var y=Element.prototype,g=y.matchesSelector||y.mozMatchesSelector||y.msMatchesSelector||y.oMatchesSelector||y.webkitMatchesSelector;g&&(h=function(t,e){return g.apply(t,[e])})}d=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var m=h,v=f,b=d,_=function(){function t(){}return t.prototype.matchesElement=function(t,e){return m(t,e)},t.prototype.containsElement=function(t,e){return v(t,e)},t.prototype.query=function(t,e,n){return b(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,a){return void 0===a&&(a=[]),new o.NoopAnimationPlayer},t}(),w=function(){return function(){}}();w.NOOP=new _;var C=1e3,E=".ng-enter",S=".ng-leave",O=".ng-trigger",x=".ng-animating";function I(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:P(parseFloat(e[1]),e[2])}function P(t,e){switch(e){case"s":return t*C;default:return t}}function T(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=P(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(o=P(Math.floor(parseFloat(s)),a[4]));var u=a[5];u&&(i=u)}else r=t;if(!n){var c=!1,l=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function A(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function M(t){var e={};return Array.isArray(t)?t.forEach(function(t){return N(t,!1,e)}):N(t,!1,e),e}function N(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else A(t,n);return n}function j(t,e){t.style&&Object.keys(e).forEach(function(n){var r=z(n);t.style[r]=e[n]})}function R(t,e){t.style&&Object.keys(e).forEach(function(e){var n=z(e);t.style[n]=""})}function k(t){return Array.isArray(t)?1==t.length?t[0]:Object(o.sequence)(t):t}var D=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=D.exec(n);)e.push(r[1]);D.lastIndex=0}return e}function L(t,e,n){var r=t.toString(),o=r.replace(D,function(t,r){var o=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?t:o}function F(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var U=/-+([a-z0-9])/g;function z(t){return t.replace(U,function(){for(var t=[],e=0;e *";case":leave":return"* => void";default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n));var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],i=r[2],a=r[3];e.push(Z(o,a));var s=o==B&&a==B;"<"!=i[0]||s||e.push(Z(a,o))}(t,n,e)}):n.push(t),n}var q=new Set;q.add("true"),q.add("1");var Q=new Set;function Z(t,e){var n=q.has(t)||Q.has(t),r=q.has(e)||Q.has(e);return function(o,i){var a=t==B||t==o,s=e==B||e==i;return!a&&n&&"boolean"==typeof o&&(a=o?q.has(t):Q.has(t)),!s&&r&&"boolean"==typeof i&&(s=i?q.has(e):Q.has(e)),a&&s}}Q.add("false"),Q.add("0");var W=":self",Y=new RegExp("s*"+W+"s*,?","g");function K(t,e){return(new $).build(t,e)}var J=new RegExp(":leave","g"),X=new RegExp(":enter","g"),$=function(){function t(){}return t.prototype.build=function(t,e){var n=new tt(e);return this._resetContextStyleTimingState(n),H(this,k(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,o=e.depCount=0,i=[],a=[];return t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,u=s.name;u.split(/\s*,\s*/).forEach(function(t){s.name=t,i.push(n.visitState(s,e))}),s.name=u}else if(1==t.type){var c=n.visitTransition(t,e);r+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:a,queryCount:r,depCount:o,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(t){if(et(t)){var e=t;Object.keys(e).forEach(function(t){V(e[t]).forEach(function(t){i.hasOwnProperty(t)||o.add(t)})})}}),o.size){var a=F(o.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=H(this,k(t.animation),e);return{type:1,matchers:G(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return H(n,t,e)}),options:nt(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=H(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:nt(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){var r=T(t,e).duration;return rt(r,0,"")}var o=t;if(o.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=rt(0,0,"");return i.dynamic=!0,i.strValue=o,i}return rt((n=n||T(o,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(o.style)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var a=t.styles,s=!1;if(!a){s=!0;var u={};r.easing&&(u.easing=r.easing),a=Object(o.style)(u)}e.currentTime+=r.duration+r.delay;var c=this.visitStyle(a,e);c.isEmptyStep=s,n=c}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==o.AUTO_STYLE?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(et(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e){if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){var i,a,s,u,c,l=e.collectedStyles[e.currentQuerySelector],p=l[n],f=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push('The CSS property "'+n+'" that exists between the times of "'+p.startTime+'ms" and "'+p.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),f=!1),o=p.startTime),f&&(l[n]={startTime:o,endTime:r}),e.options&&(i=t[n],a=e.options,s=e.errors,u=a.params||{},(c=V(i)).length&&c.forEach(function(t){u.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(o++,l=r.offset=c),s=s||l<0||l>1,a=a||l0&&o0?o==f?1:p*o:i[o],s=a*y;e.currentTime=h+d.delay+s,d.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:H(this,k(t.animation),e),options:nt(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:nt(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==W});e&&(t=t.replace(Y,""));return[t=t.replace(X,E).replace(J,S).replace(/@\*/g,O).replace(/@\w+/g,function(t){return O+"-"+t.substr(1)}).replace(/:animating/g,x),e]}(t.selector),i=o[0],a=o[1];e.currentQuerySelector=n.length?n+" "+i:i,l(e.collectedStyles,e.currentQuerySelector,{});var s=H(this,k(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:nt(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:T(t.timings,e.errors,!0);return{type:12,animation:H(this,k(t.animation),e),timings:n,options:null}},t}();var tt=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=A(t)).params&&(t.params=(e=t.params)?A(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function ot(t,e,n,r,o,i,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:a,subTimeline:s}}var it=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}();function at(t,e,n,r,o,i,a,s){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===s&&(s=[]),(new st).buildKeyframes(t,e,n,r,o,i,a,s)}var st=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,a,s){void 0===s&&(s=[]),a=a||new it;var u=new ct(t,e,a,s,[]);u.options=i,u.currentTimeline.setStyles([r],null,u.errors,i),H(this,n,u);var c=u.timelines.filter(function(t){return t.containsAnimation()});if(c.length&&Object.keys(o).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([o],null,u.errors,i)}return c.length?c.map(function(t){return t.buildKeyframes()}):[ot(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?I(n.duration):null,i=null!=n.delay?I(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),H(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ut);var a=I(i.delay);o.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return H(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?I(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);i&&s.delayNextStep(i),H(n,a,s),o=Math.max(o,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return T(e.params?L(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;i.forwardTime(n*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?I(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,o){e.currentQueryIndex=o;var s=e.createSubContext(t.options,r);i&&s.delayNextStep(i),r===e.element&&(u=s.currentTimeline),H(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe();var c=s.currentTimeline.currentTime;a=Math.max(a,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),a=i*(e.currentQueryTotal-1),s=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;H(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),ut={},ct=function(){function t(t,e,n,r,o,i){this._driver=t,this.element=e,this.subInstructions=n,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new lt(e,0),o.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=I(r.duration)),null!=r.delay&&(o.delay=I(r.delay));var i=r.params;if(i){var a=o.params;a||(a=this.options.params={}),Object.keys(i).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=L(i[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new pt(t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var a=[];if(r&&a.push(this.element),t.length>0){var s=1!=n,u=this._driver.query(this.element,t,s);0!==n&&(u=u.slice(0,n)),a.push.apply(a,u)}return o||0!=a.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),lt=function(){function t(t,e,n){this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||o.AUTO_STYLE,e._currentKeyframe[t]=o.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var a=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=o.AUTO_STYLE}):N(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=L(s[t],a,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:o.AUTO_STYLE),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(a,s){var u=N(a,!0);Object.keys(u).forEach(function(t){var r=u[t];r==o["\u0275PRE_STYLE"]?e.add(t):r==o.AUTO_STYLE&&n.add(t)}),r||(u.offset=s/t.duration),i.push(u)});var a=e.size?F(e.values()):[],s=n.size?F(n.values()):[];if(r){var u=i[0],c=A(u);u.offset=0,c.offset=1,i=[u,c]}return ot(this.element,i,a,s,this.duration,this.startTime,this.easing,!1)},t}(),pt=function(t){function e(e,n,r,o,i,a){void 0===a&&(a=!1);var s=t.call(this,e,i.delay)||this;return s.element=e,s.keyframes=n,s.preStyleProps=r,s.postStyleProps=o,s._stretchStartingKeyframe=a,s.timings={duration:i.duration,delay:i.delay,easing:i.easing},s}return r.a(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],a=r+n,s=n/a,u=N(t[0],!1);u.offset=0,i.push(u);var c=N(t[0],!1);c.offset=ft(s),i.push(c);for(var l=t.length-1,p=1;p<=l;p++){var f=N(t[p],!1),h=n+f.offset*r;f.offset=ft(h/a),i.push(f)}r=a,n=0,o="",t=i}return ot(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(lt);function ft(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var ht,dt,yt=function(){function t(t,e){this._driver=t;var n=[],r=K(e,n);if(n.length){var o="animation validation failed:\n"+n.join("\n");throw new Error(o)}this._animationAst=r}return t.prototype.buildTimelines=function(t,e,n,r,o){var i=Array.isArray(e)?M(e):e,a=Array.isArray(n)?M(n):n,s=[];o=o||new it;var u=at(this._driver,t,this._animationAst,i,a,r,o,s);if(s.length){var c="animation building failed:\n"+s.join("\n");throw new Error(c)}return u},t}(),gt=function(){return function(){}}(),mt=function(){function t(){}return t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n},t}(),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.normalizePropertyName=function(t,e){return z(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(bt[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(gt),bt=(ht="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),dt={},ht.forEach(function(t){return dt[t]=!0}),dt);function _t(t,e,n,r,o,i,a,s,u,c,l,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}var wt={},Ct=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,i,a){var s=[],u=this.ast.options&&this.ast.options.params||wt,c=o&&o.params||wt,p=this.buildStyles(n,c,s),f=i&&i.params||wt,h=this.buildStyles(r,f,s),d=new Set,y=new Map,g=new Map,m="void"===r,v={params:Object.assign({},u,f)},b=at(t,e,this.ast.animation,p,h,v,a,s);if(s.length)return _t(e,this._triggerName,n,r,m,p,h,[],[],y,g,s);b.forEach(function(t){var n=t.element,r=l(y,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=l(g,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&d.add(n)});var _=F(d.values());return _t(e,this._triggerName,n,r,m,p,h,b,_,y,g)},t}();var Et=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=A(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=L(i,r,e)),n[t]=i})}}),n},t}();var St=function(){function t(t,e){var n,r,o=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=t.options&&t.options.params||{};o.states[t.name]=new Et(t.style,e)}),Ot(this.states,"true","1"),Ot(this.states,"false","0"),e.transitions.forEach(function(e){o.transitionFactories.push(new Ct(t,e,o.states))}),this.fallbackTransition=(n=t,r=this.states,new Ct(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},r))}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Ot(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var xt=new it,It=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=K(e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=a(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var a,s=[],u=this._animations[t],c=new Map;if(u?(a=at(this._driver,e,u,{},{},n,xt,s)).forEach(function(t){var e=l(c,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),a=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));c.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,o.AUTO_STYLE)})});var p=i(a.map(function(t){var e=c.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=p,p.onDestroy(function(){return r.destroy(t)}),this.players.push(p),p},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=c(e,"","","");return s(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else{var i=r[0]||{};this.create(t,e,i)}else this.register(t,r[0])},t}(),Pt=[],Tt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},At={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Mt="__ng_removed",Nt=function(){function t(t){var e=t&&t.hasOwnProperty("value"),n=e?t.value:t;if(this.value=function(t){return null!=t?t:null}(n),e){var r=A(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),jt=new Nt("void"),Rt=new Nt("DELETED"),kt=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ht(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=l(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=l(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Ht(t,"ng-trigger"),Ht(t,"ng-trigger-"+e),u[e]=null),function(){i._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),a=new Vt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Ht(t,"ng-trigger"),Ht(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Nt(n);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u){if(u===Rt)return a}else u=jt;if("void"===c.value||u.value!==c.value){var p=l(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=i.matchTransition(u.value,c.value),h=!1;if(!f){if(!r)return;f=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:u,toState:c,player:a,isFallbackTransition:h}),h||(Ht(t,"ng-animate-queued"),a.onStart(function(){Bt(t,"ng-animate-queued")})),a.onDone(function(){var e=o.players.indexOf(a);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),p.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--){var i=this._namespaceList[o];if(this.driver.containsElement(i.hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.trigger=function(t,e,n,r){return!!Lt(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Lt(e)){var o=e[Mt];o&&o.setForRemoval&&(o.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ht(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bt(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(Lt(e)){var o=t?this._fetchNamespace(t):null;o?o.removeNode(e,n,r):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Mt]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return Lt(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,O,!0);n.forEach(function(t){var n=e.playersByElement.get(t);n&&n.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var r=e.statesByElement.get(t);r&&Object.keys(r).forEach(function(t){return r[t]=Rt})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,x,!0)).length&&n.forEach(function(t){var n=e.playersByQueriedElement.get(t);n&&n.forEach(function(t){return t.finish()})})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return i(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Mt];if(n&&n.setForRemoval){if(t[Mt]=Tt,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var o=0;o=0;_--){this._namespaceList[_].drainQueuedTransitions(e).forEach(function(t){var e=t.player;E.push(e);var o=t.element;if(v&&n.driver.containsElement(v,o)){var i=n._buildInstruction(t,r);if(i.errors&&i.errors.length)S.push(i);else{if(t.isFallbackTransition)return e.onStart(function(){return R(o,i.fromStyles)}),e.onDestroy(function(){return j(o,i.toStyles)}),void a.push(e);i.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,i.timelines);var s={instruction:i,player:e,element:o};u.push(s),i.queriedElements.forEach(function(t){return l(c,t,[]).push(e)}),i.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=p.get(e);r||p.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),i.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=f.get(e);r||f.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()})}if(S.length){var O=[];S.forEach(function(t){O.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return O.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(O)}var I=new Set;for(_=0;_0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new o.NoopAnimationPlayer},t}(),Vt=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new o.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(t.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return s(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},t.prototype.getRealPlayer=function(){return this._player},t.prototype._queueEvent=function(t,e){l(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t}();function Lt(t){return t&&1===t.nodeType}function Ft(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ut(t,e,n,r){var o=[];e.forEach(function(t){return o.push(Ft(t))});var i=new Map,a=[];n.forEach(function(e,n){var o={};e.forEach(function(e){var i=o[e]=t.computeStyle(n,e,r);i&&0!=i.length||(n[Mt]=At,a.push(n))}),i.set(n,o)});var s=0;return e.forEach(function(t){return Ft(t,o[s++])}),[i,a]}var zt="$$classes";function Ht(t,e){if(t.classList)t.classList.add(e);else{var n=t[zt];n||(n=t[zt]={}),n[e]=!0}}function Bt(t,e){if(t.classList)t.classList.remove(e);else{var n=t[zt];n&&delete n[e]}}function Gt(t,e,n){i(n).onDone(function(){return t.processLeaveNode(e)})}function qt(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var Qt=function(){function t(t,e){var n=this;this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Dt(t,e),this._timelineEngine=new It(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,a=this._triggerCache[i];if(!a){var s=[],u=K(o,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new St(t,e)}(r,u),this._triggerCache[i]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=p(n),i=o[0],a=o[1],s=r;this._timelineEngine.command(i,e,a,s)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=p(n),a=i[0],s=i[1];return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Zt=function(){function t(t,e,n,r){void 0===r&&(r=[]);var o,i,a=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,o=this._duration,i=this._delay,(0===o||0===i)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return a.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return N(t,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=e[0],o=[];if(n.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=t.previousStyles[e]}),o.length)for(var i=this,a=function(){var t=e[s];o.forEach(function(e){t[e]=Wt(i.element,e)})},s=1;s0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=c.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.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+c.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}(s);p.decorators=[{type:o.Injectable}],p.ctorParameters=function(){return[{type:i},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[u]}]}]};var f=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 r.a(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 c.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+c.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+c.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s);f.decorators=[{type:o.Injectable}],f.ctorParameters=function(){return[{type:i},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[u]}]}]};var h=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}();function d(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var y=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return r.a(e,t),e.prototype.getPluralCategory=function(t){switch(function(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?g.One:g.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?g.One:g.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?g.One:g.Other;case"ar":return 0===n?g.Zero:1===n?g.One:2===n?g.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?g.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?g.Many:g.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?g.One:g.Other;case"be":return n%10==1&&n%100!=11?g.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?g.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?g.Many:g.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?g.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?g.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?g.Few:0!==n&&n%1e6==0?g.Many:g.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||a%10==1&&a%100!=11?g.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?g.Few:g.Other;case"cs":case"sk":return 1===o&&0===i?g.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?g.Few:0!==i?g.Many:g.Other;case"cy":return 0===n?g.Zero:1===n?g.One:2===n?g.Two:3===n?g.Few:6===n?g.Many:g.Other;case"da":return 1===n||0!==s&&(0===o||1===o)?g.One:g.Other;case"dsb":case"hsb":return 0===i&&o%100==1||a%100==1?g.One:0===i&&o%100==2||a%100==2?g.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?g.Few:g.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?g.One:g.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&a%10!=4&&a%10!=6&&a%10!=9?g.One:g.Other;case"ga":return 1===n?g.One:2===n?g.Two:n===Math.floor(n)&&n>=3&&n<=6?g.Few:n===Math.floor(n)&&n>=7&&n<=10?g.Many:g.Other;case"gd":return 1===n||11===n?g.One:2===n||12===n?g.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?g.Few:g.Other;case"gv":return 0===i&&o%10==1?g.One:0===i&&o%10==2?g.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?g.Many:g.Other:g.Few;case"he":return 1===o&&0===i?g.One:2===o&&0===i?g.Two:0!==i||n>=0&&n<=10||n%10!=0?g.Other:g.Many;case"is":return 0===s&&o%10==1&&o%100!=11||0!==s?g.One:g.Other;case"ksh":return 0===n?g.Zero:1===n?g.One:g.Other;case"kw":case"naq":case"se":case"smn":return 1===n?g.One:2===n?g.Two:g.Other;case"lag":return 0===n?g.Zero:0!==o&&1!==o||0===n?g.Other:g.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?g.Few:0!==a?g.Many:g.Other:g.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?g.Zero:n%10==1&&n%100!=11||2===i&&a%10==1&&a%100!=11||2!==i&&a%10==1?g.One:g.Other;case"mk":return 0===i&&o%10==1||a%10==1?g.One:g.Other;case"mt":return 1===n?g.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?g.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?g.Many:g.Other;case"pl":return 1===o&&0===i?g.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?g.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?g.Many:g.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?g.One:g.Other;case"ro":return 1===o&&0===i?g.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?g.Few:g.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?g.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?g.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?g.Many:g.Other;case"shi":return 0===o||1===n?g.One:n===Math.floor(n)&&n>=2&&n<=10?g.Few:g.Other;case"si":return 0===n||1===n||0===o&&1===a?g.One:g.Other;case"sl":return 0===i&&o%100==1?g.One:0===i&&o%100==2?g.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?g.Few:g.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?g.One:g.Other;default:return g.Other}}(this.locale,t)){case g.Zero:return"zero";case g.One:return"one";case g.Two:return"two";case g.Few:return"few";case g.Many:return"many";default:return"other"}},e}(h);y.decorators=[{type:o.Injectable}],y.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var g={};function m(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n1?"short":"narrow":"long",n}function nt(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function rt(t){return function(e,n){return J(e,n,t)}}var ot=new Map;var it=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var r=Z[t];if(r)return r(e,n);var o=t,i=ot.get(o);if(!i){i=[];var a=void 0;Q.exec(t);for(var s=t;s;)(a=Q.exec(s))?s=(i=i.concat(a.slice(1))).pop():(i.push(s),s=null);ot.set(o,i)}return i.reduce(function(t,r){var o=W[r];return t+(o?o(e,n):function(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,t,e)},t}(),at=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function st(t,e,n,r,o,i,a){if(void 0===i&&(i=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&ft(n)?+n:n))throw k(t,n);var s=void 0,u=void 0,c=void 0;if(r!==B.Currency&&(s=1,u=0,c=3),o){var l=o.match(at);if(null===l)throw new Error(o+" is not a valid digit info for number pipes");null!=l[1]&&(s=pt(l[1])),null!=l[3]&&(u=pt(l[3])),null!=l[5]&&(c=pt(l[5]))}return q.format(n,e,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:c,currency:i,currencyAsSymbol:a})}var ut=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return st(t,this._locale,e,B.Decimal,n)},t}();ut.decorators=[{type:o.Pipe,args:[{name:"number"}]}],ut.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return st(t,this._locale,e,B.Percent,n)},t}();ct.decorators=[{type:o.Pipe,args:[{name:"percent"}]}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var lt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),st(t,this._locale,e,B.Currency,o,n,r)},t}();function pt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ft(t){return!isNaN(t-parseFloat(t))}lt.decorators=[{type:o.Pipe,args:[{name:"currency"}]}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var ht=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,dt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){var r,o;if(void 0===n&&(n="mediumDate"),null==(o=e)||""===o||e!=e)return null;if("string"==typeof e&&(e=e.trim()),yt(e))r=e;else if(ft(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),a=i[0],s=i[1],u=i[2];r=new Date(a,s-1,u)}else r=new Date(e);if(!yt(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(ht)))throw k(t,e);r=function(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=gt(t[9]+t[10]),r=gt(t[9]+t[11]));o.call(e,gt(t[1]),gt(t[2])-1,gt(t[3]));var a=gt(t[4]||"0")-n,s=gt(t[5]||"0")-r,u=gt(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,a,s,u,c),e}(c)}return it.format(r,this._locale,t._ALIASES[n]||n)},t}();function yt(t){return t instanceof Date&&!isNaN(t.valueOf())}function gt(t){return parseInt(t,10)}dt._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},dt.decorators=[{type:o.Pipe,args:[{name:"date",pure:!0}]}],dt.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var mt=/#/g,vt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw k(t,n);return n[d(e,Object.keys(n),this._localization)].replace(mt,e.toString())},t}();vt.decorators=[{type:o.Pipe,args:[{name:"i18nPlural",pure:!0}]}],vt.ctorParameters=function(){return[{type:h}]};var bt=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw k(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();bt.decorators=[{type:o.Pipe,args:[{name:"i18nSelect",pure:!0}]}],bt.ctorParameters=function(){return[]};var _t=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();_t.decorators=[{type:o.Pipe,args:[{name:"json",pure:!1}]}],_t.ctorParameters=function(){return[]};var wt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw k(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();wt.decorators=[{type:o.Pipe,args:[{name:"slice",pure:!1}]}],wt.ctorParameters=function(){return[]};var Ct=[F,H,U,_t,wt,ut,ct,z,lt,dt,vt,bt],Et=function(){return function(){}}();Et.decorators=[{type:o.NgModule,args:[{declarations:[R,Ct],exports:[R,Ct],providers:[{provide:h,useClass:y}]}]}],Et.ctorParameters=function(){return[]};var St=function(){return function(){}}();St.decorators=[{type:o.NgModule,args:[{declarations:[],exports:[]}]}],St.ctorParameters=function(){return[]};var Ot=new o.InjectionToken("DocumentToken"),xt="browser",It="server",Pt="browserWorkerApp",Tt="browserWorkerUi";function At(t){return t===xt}function Mt(t){return t===It}function Nt(t){return t===Pt}function jt(t){return t===Tt}var Rt=new o.Version("4.4.6")},"3SP7":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.styles=["@media screen and (min-width:700px){.mainContainer[_ngcontent-%COMP%]{margin:0 40px 40px}}@media (max-width:700px){.mainContainer[_ngcontent-%COMP%]{margin:0 0 40px 2px}}.mainContainer[_ngcontent-%COMP%]{font-family:sans-serif}.mainContainer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:800;text-decoration:none}.headlineContainer[_ngcontent-%COMP%]{margin:80px 0 40px 5px}md-input-container[_ngcontent-%COMP%]{min-width:150px;z-index:0}"]},"3j3K":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(function(t){n.d(e,"Class",function(){return C}),n.d(e,"createPlatform",function(){return We}),n.d(e,"assertPlatform",function(){return Ke}),n.d(e,"destroyPlatform",function(){return Je}),n.d(e,"getPlatform",function(){return Xe}),n.d(e,"PlatformRef",function(){return $e}),n.d(e,"ApplicationRef",function(){return en}),n.d(e,"enableProdMode",function(){return qe}),n.d(e,"isDevMode",function(){return Qe}),n.d(e,"createPlatformFactory",function(){return Ye}),n.d(e,"NgProbeToken",function(){return Ze}),n.d(e,"APP_ID",function(){return Yt}),n.d(e,"PACKAGE_ROOT_URL",function(){return ne}),n.d(e,"PLATFORM_INITIALIZER",function(){return $t}),n.d(e,"PLATFORM_ID",function(){return te}),n.d(e,"APP_BOOTSTRAP_LISTENER",function(){return ee}),n.d(e,"APP_INITIALIZER",function(){return Zt}),n.d(e,"ApplicationInitStatus",function(){return Wt}),n.d(e,"DebugElement",function(){return Tn}),n.d(e,"DebugNode",function(){return Pn}),n.d(e,"asNativeElements",function(){return An}),n.d(e,"getDebugNode",function(){return Rn}),n.d(e,"Testability",function(){return Ve}),n.d(e,"TestabilityRegistry",function(){return Le}),n.d(e,"setTestabilityGetter",function(){return Fe}),n.d(e,"TRANSLATIONS",function(){return ar}),n.d(e,"TRANSLATIONS_FORMAT",function(){return sr}),n.d(e,"LOCALE_ID",function(){return ir}),n.d(e,"MissingTranslationStrategy",function(){return ur}),n.d(e,"ApplicationModule",function(){return fr}),n.d(e,"wtfCreateScope",function(){return Pe}),n.d(e,"wtfLeave",function(){return Te}),n.d(e,"wtfStartTimeRange",function(){return Ae}),n.d(e,"wtfEndTimeRange",function(){return Me}),n.d(e,"Type",function(){return Et}),n.d(e,"EventEmitter",function(){return Ne}),n.d(e,"ErrorHandler",function(){return gt}),n.d(e,"Sanitizer",function(){return dr}),n.d(e,"SecurityContext",function(){return hr}),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return I}),n.d(e,"Attribute",function(){return P}),n.d(e,"ContentChild",function(){return M}),n.d(e,"ContentChildren",function(){return A}),n.d(e,"Query",function(){return T}),n.d(e,"ViewChild",function(){return j}),n.d(e,"ViewChildren",function(){return N}),n.d(e,"Component",function(){return L}),n.d(e,"Directive",function(){return V}),n.d(e,"HostBinding",function(){return H}),n.d(e,"HostListener",function(){return B}),n.d(e,"Input",function(){return U}),n.d(e,"Output",function(){return z}),n.d(e,"Pipe",function(){return F}),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return G}),n.d(e,"NO_ERRORS_SCHEMA",function(){return q}),n.d(e,"NgModule",function(){return Q}),n.d(e,"ViewEncapsulation",function(){return Z}),n.d(e,"Version",function(){return Y}),n.d(e,"VERSION",function(){return K}),n.d(e,"forwardRef",function(){return rt}),n.d(e,"resolveForwardRef",function(){return ot}),n.d(e,"Injector",function(){return ut}),n.d(e,"ReflectiveInjector",function(){return Ht}),n.d(e,"ResolvedReflectiveFactory",function(){return Rt}),n.d(e,"ReflectiveKey",function(){return wt}),n.d(e,"InjectionToken",function(){return c}),n.d(e,"OpaqueToken",function(){return u}),n.d(e,"Inject",function(){return J}),n.d(e,"Optional",function(){return X}),n.d(e,"Injectable",function(){return $}),n.d(e,"Self",function(){return tt}),n.d(e,"SkipSelf",function(){return et}),n.d(e,"Host",function(){return nt}),n.d(e,"NgZone",function(){return je}),n.d(e,"RenderComponentType",function(){return on}),n.d(e,"Renderer",function(){return sn}),n.d(e,"Renderer2",function(){return pn}),n.d(e,"RendererFactory2",function(){return cn}),n.d(e,"RendererStyleFlags2",function(){return ln}),n.d(e,"RootRenderer",function(){return un}),n.d(e,"COMPILER_OPTIONS",function(){return se}),n.d(e,"Compiler",function(){return ae}),n.d(e,"CompilerFactory",function(){return ue}),n.d(e,"ModuleWithComponentFactories",function(){return oe}),n.d(e,"ComponentFactory",function(){return le}),n.d(e,"ComponentRef",function(){return ce}),n.d(e,"ComponentFactoryResolver",function(){return de}),n.d(e,"ElementRef",function(){return fn}),n.d(e,"NgModuleFactory",function(){return _e}),n.d(e,"NgModuleRef",function(){return be}),n.d(e,"NgModuleFactoryLoader",function(){return hn}),n.d(e,"getModuleFactory",function(){return gn}),n.d(e,"QueryList",function(){return mn}),n.d(e,"SystemJsNgModuleLoader",function(){return _n}),n.d(e,"SystemJsNgModuleLoaderConfig",function(){return vn}),n.d(e,"TemplateRef",function(){return Cn}),n.d(e,"ViewContainerRef",function(){return En}),n.d(e,"EmbeddedViewRef",function(){return xn}),n.d(e,"ViewRef",function(){return On}),n.d(e,"ChangeDetectionStrategy",function(){return R}),n.d(e,"ChangeDetectorRef",function(){return Sn}),n.d(e,"DefaultIterableDiffer",function(){return Gn}),n.d(e,"IterableDiffers",function(){return Xn}),n.d(e,"KeyValueDiffers",function(){return $n}),n.d(e,"SimpleChange",function(){return Fn}),n.d(e,"WrappedValue",function(){return Vn}),n.d(e,"platformCore",function(){return or}),n.d(e,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return Ge}),n.d(e,"\u0275APP_ID_RANDOM_PROVIDER",function(){return Jt}),n.d(e,"\u0275ValueUnwrapper",function(){return Ln}),n.d(e,"\u0275devModeEqual",function(){return Dn}),n.d(e,"\u0275isListLikeIterable",function(){return Un}),n.d(e,"\u0275ChangeDetectorStatus",function(){return k}),n.d(e,"\u0275isDefaultChangeDetectionStrategy",function(){return D}),n.d(e,"\u0275Console",function(){return re}),n.d(e,"\u0275ERROR_COMPONENT_TYPE",function(){return ct}),n.d(e,"\u0275ComponentFactory",function(){return le}),n.d(e,"\u0275CodegenComponentFactoryResolver",function(){return me}),n.d(e,"\u0275ViewMetadata",function(){return W}),n.d(e,"\u0275ReflectionCapabilities",function(){return xt}),n.d(e,"\u0275RenderDebugInfo",function(){return an}),n.d(e,"\u0275global",function(){return f}),n.d(e,"\u0275looseIdentical",function(){return g}),n.d(e,"\u0275stringify",function(){return m}),n.d(e,"\u0275makeDecorator",function(){return E}),n.d(e,"\u0275isObservable",function(){return Qt}),n.d(e,"\u0275isPromise",function(){return qt}),n.d(e,"\u0275clearProviderOverrides",function(){return Fa}),n.d(e,"\u0275overrideProvider",function(){return La}),n.d(e,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return pi}),n.d(e,"\u0275registerModuleFactory",function(){return yn}),n.d(e,"\u0275EMPTY_ARRAY",function(){return uo}),n.d(e,"\u0275EMPTY_MAP",function(){return co}),n.d(e,"\u0275and",function(){return lo}),n.d(e,"\u0275ccf",function(){return Mo}),n.d(e,"\u0275cmf",function(){return Ua}),n.d(e,"\u0275crt",function(){return Mr}),n.d(e,"\u0275did",function(){return ei}),n.d(e,"\u0275eld",function(){return po}),n.d(e,"\u0275elementEventFullName",function(){return Hr}),n.d(e,"\u0275getComponentViewDefinitionFactory",function(){return No}),n.d(e,"\u0275inlineInterpolate",function(){return ao}),n.d(e,"\u0275interpolate",function(){return io}),n.d(e,"\u0275mod",function(){return wo}),n.d(e,"\u0275mpd",function(){return _o}),n.d(e,"\u0275ncd",function(){return Ei}),n.d(e,"\u0275nov",function(){return Bo}),n.d(e,"\u0275pid",function(){return ni}),n.d(e,"\u0275prd",function(){return ri}),n.d(e,"\u0275pad",function(){return xi}),n.d(e,"\u0275pod",function(){return Ii}),n.d(e,"\u0275ppd",function(){return Oi}),n.d(e,"\u0275qud",function(){return vi}),n.d(e,"\u0275ted",function(){return Ti}),n.d(e,"\u0275unv",function(){return Pr}),n.d(e,"\u0275vid",function(){return Ni}),n.d(e,"AUTO_STYLE",function(){return Ka}),n.d(e,"trigger",function(){return Ja}),n.d(e,"animate",function(){return Xa}),n.d(e,"group",function(){return $a}),n.d(e,"sequence",function(){return ts}),n.d(e,"style",function(){return es}),n.d(e,"state",function(){return ns}),n.d(e,"keyframes",function(){return rs}),n.d(e,"transition",function(){return os}),n.d(e,"\u0275x",function(){return Ba}),n.d(e,"\u0275y",function(){return Ga}),n.d(e,"\u0275bc",function(){return Wa}),n.d(e,"\u0275z",function(){return qa}),n.d(e,"\u0275bb",function(){return Za}),n.d(e,"\u0275ba",function(){return Qa}),n.d(e,"\u0275bd",function(){return Ya}),n.d(e,"\u0275w",function(){return Ha}),n.d(e,"\u0275k",function(){return cr}),n.d(e,"\u0275l",function(){return lr}),n.d(e,"\u0275m",function(){return pr}),n.d(e,"\u0275e",function(){return nn}),n.d(e,"\u0275f",function(){return Kt}),n.d(e,"\u0275g",function(){return nr}),n.d(e,"\u0275h",function(){return rr}),n.d(e,"\u0275i",function(){return Hn}),n.d(e,"\u0275j",function(){return Yn}),n.d(e,"\u0275b",function(){return Bt}),n.d(e,"\u0275c",function(){return Mt}),n.d(e,"\u0275d",function(){return Vt}),n.d(e,"\u0275n",function(){return xe}),n.d(e,"\u0275p",function(){return Ce}),n.d(e,"\u0275o",function(){return we}),n.d(e,"\u0275s",function(){return Oe}),n.d(e,"\u0275q",function(){return Ee}),n.d(e,"\u0275r",function(){return Se}),n.d(e,"\u0275a",function(){return O}),n.d(e,"\u0275t",function(){return oi}),n.d(e,"\u0275u",function(){return _r});var r=n("TToO"),o=n("YaPU"),i=n("/nXB"),a=n("Rf9G"),s=n("g5jc"),u=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),c=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(u),l="undefined"!=typeof window&&window,p="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,f=l||"undefined"!=typeof t&&t||p,h=null;function d(){if(!h){var t=f.Symbol;if(t&&t.iterator)h=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1?" ("+function(t){for(var e=[],n=0;n-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return m(t.token)}).join(" -> ")+")":""}function vt(t,e,n,r){var o=[e],i=n(o),a=r?function(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[pt]=e,r}(i,r):Error(i);return a.addKey=bt,a.keys=o,a.injectors=[t],a.constructResolvingMessage=n,a[pt]=r,a}function bt(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function _t(t,e){for(var n=[],r=0,o=e.length;r=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,n=t.key,vt(e,n,function(t){return"Cannot instantiate cyclic dependency!"+mt(t)});var e,n;return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+m(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)},e}($e);tn.decorators=[{type:$}],tn.ctorParameters=function(){return[{type:ut}]};var en=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),nn=function(t){function e(e,n,r,s,u,c){var l=t.call(this)||this;l._zone=e,l._console=n,l._injector=r,l._exceptionHandler=s,l._componentFactoryResolver=u,l._initStatus=c,l._bootstrapListeners=[],l._rootComponents=[],l._rootComponentTypes=[],l._views=[],l._runningTick=!1,l._enforceNoNewChanges=!1,l._stable=!0,l._enforceNoNewChanges=Qe(),l._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var p=new o.Observable(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),f=new o.Observable(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){je.assertNotInAngularZone(),y(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){je.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return l._isStable=Object(i.a)(p,a.a.call(f)),l}return r.a(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;rn(this._views,e),e.detachFromAppRef()},e.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 le?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var o=n instanceof ve?null:this._injector.get(be),i=e||n.selector,a=n.create(ut.NULL,[],i,o);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get(Ve,null);return s&&a.injector.get(Le).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Qe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(ee,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),rn(this._rootComponents,t)},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Te(n)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(en);function rn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}nn._tickScope=Pe("ApplicationRef#tick()"),nn.decorators=[{type:$}],nn.ctorParameters=function(){return[{type:je},{type:re},{type:ut},{type:gt},{type:de},{type:Wt}]};var on=function(){return function(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}}(),an=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),sn=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,a){},t}(),un=(new c("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),cn=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t.prototype.begin=function(){},t.prototype.end=function(){},t.prototype.whenRenderingDone=function(){},t}(),ln={Important:1,DashCase:2};ln[ln.Important]="Important",ln[ln.DashCase]="DashCase";var pn=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),fn=function(){return function(t){this.nativeElement=t}}(),hn=function(){function t(){}return t.prototype.load=function(t){},t}(),dn=new Map;function yn(t,e){var n=dn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);dn.set(t,e)}function gn(t){var e=dn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}var mn=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ne}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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[d()]=function(){return this._results[d()]()},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},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},t}();var vn=function(){return function(){}}(),bn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},_n=function(){function t(t,e){this._compiler=t,this._config=e||bn}return t.prototype.load=function(t){return this._compiler instanceof ae?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n("6GLz")(o).then(function(t){return t[i]}).then(function(t){return wn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("6GLz")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return wn(t,r,o)})},t}();function wn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}_n.decorators=[{type:$}],_n.ctorParameters=function(){return[{type:ae},{type:vn,decorators:[{type:X}]}]};var Cn=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),En=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),Sn=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),On=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(Sn),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(On),In=function(){return function(t,e){this.name=t,this.callback=e}}(),Pn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Tn?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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Tn=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 r.a(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,[o+1,0].concat(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 Mn(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Nn(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}(Pn);function An(t){return t.map(function(t){return t.nativeElement})}function Mn(t,e,n){t.childNodes.forEach(function(t){t instanceof Tn&&(e(t)&&n.push(t),Mn(t,e,n))})}function Nn(t,e,n){t instanceof Tn&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Tn&&Nn(t,e,n)})}var jn=new Map;function Rn(t){return jn.get(t)||null}function kn(t){jn.set(t.nativeNode,t)}function Dn(t,e){var n=Un(t),r=Un(e);return n&&r?function(t,e,n){var r=t[d()](),o=e[d()]();for(;;){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,Dn):!(n||!(t&&("object"==typeof t||"function"==typeof t))||r||!(e&&("object"==typeof e||"function"==typeof e)))||g(t,e)}var Vn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ln=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Vn?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Fn=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 Un(t){return!!zn(t)&&(Array.isArray(t)||!(t instanceof Map)&&d()in t)}function zn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Hn=function(){function t(){}return t.prototype.supports=function(t){return Un(t)},t.prototype.create=function(t,e){return new Gn(e||t)},t}(),Bn=function(t,e){return e},Gn=function(){function t(t){this._length=0,this._collection=null,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||Bn}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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"+m(this.currentIndex)+"]"},t}(),Qn=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)&&g(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}(),Zn=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 Qn,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.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.prototype.toString=function(){return"_DuplicateMap("+m(this.map)+")"},t}();function Wn(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r0?o[n-1]:null,r)}function Oo(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,To(n,e),wr.dirtyParentQueries(r),Io(r),r}function xo(t,e,n){var r=e?zr(e,e.def.lastRenderRootNode):t.renderElement;Jr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Io(t){Jr(t,3,null,null,void 0)}function Po(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function To(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Ao=new Object;function Mo(t,e,n,r,o,i){return new jo(t,e,n,r,o,i)}function No(t){return t.viewDefFactory}var jo=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 r.a(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}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=Kr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=wr.createRootView(t,e||[],n,o,r,Ao),s=mr(a,i).instance;return n&&a.renderer.setAttribute(gr(a,0).renderElement,"ng-version",K.full),new Ro(a,new Lo(a),s)},e}(le),Ro=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}return r.a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new fn(gr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ho(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},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}(ce);function ko(t,e,n){return new Do(t,e,n)}var Do=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 fn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ho(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=Ur(t),t=t.parent;return t?new Ho(t,e):new Ho(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Oo(this._data,t);wr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Lo(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 ve||(o=i.get(be));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=t,r=n._view;return So(this._view,this._data,e,r),n.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 n=this._data,r=s,o=e,i=n.viewContainer._embeddedViews,a=i[r],To(i,r),null==o&&(o=i.length),Po(i,o,a),wr.dirtyParentQueries(a),Io(a),xo(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=Oo(this._data,t);e&&wr.destroyView(e)},t.prototype.detach=function(t){var e=Oo(this._data,t);return e?new Lo(e):null},t}();function Vo(t){return new Lo(t)}var Lo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Jr(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(){Dr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),wr.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){wr.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)),wr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Io(this._view),wr.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 Fo(t,e){return new Uo(t,e)}var Uo=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return r.a(e,t),e.prototype.createEmbeddedView=function(t){return new Lo(wr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new fn(gr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Cn);function zo(t,e){return new Ho(t,e)}var Ho=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=ut.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return wr.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Ir(t)},e)},t}();function Bo(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=gr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return yr(t,n.nodeIndex).renderText;if(20240&n.flags)return mr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Go(t){return new qo(t.renderer)}var qo=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=ro(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},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;n0,r=li(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o0,r=e.provider;switch(201347067&e.flags){case 512:return li(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(fi(t,e,n,o[0]));case 2:return r(fi(t,e,n,o[0]),fi(t,e,n,o[1]));case 3:return r(fi(t,e,n,o[0]),fi(t,e,n,o[1]),fi(t,e,n,o[2]));default:for(var a=Array(i),s=0;s0)c=y,ji(y)||(l=y);else for(;c&&d===c.nodeIndex+c.childCount;){var b=c.parent;b&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),l=(c=b)&&ji(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Or,updateRenderer:r||Or,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function ji(t){return 0!=(1&t.flags)&&null===t.element.name}function Ri(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 ki(t,e,n,r){var o=Li(t.root,t.renderer,t,e,n);return Fi(o,t.component,r),Ui(o),o}function Di(t,e,n){var r=Li(t,t.renderer,null,null,e);return Fi(r,n,n),Ui(r),r}function Vi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Li(t.root,o,t,e.element.componentProvider,n)}function Li(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}}function Fi(t,e,n){t.component=e,t.context=n}function Ui(t){var e;if(Br(t)){var n=t.parentNodeDef;e=gr(t.parent,n.parent.nodeIndex).renderElement}for(var r=t.def,o=t.nodes,i=0;i0&&go(t,e,0,n)&&(h=!0),f>1&&go(t,e,1,r)&&(h=!0),f>2&&go(t,e,2,o)&&(h=!0),f>3&&go(t,e,3,i)&&(h=!0),f>4&&go(t,e,4,a)&&(h=!0),f>5&&go(t,e,5,s)&&(h=!0),f>6&&go(t,e,6,u)&&(h=!0),f>7&&go(t,e,7,c)&&(h=!0),f>8&&go(t,e,8,l)&&(h=!0),f>9&&go(t,e,9,p)&&(h=!0),h}(t,e,n,r,o,i,a,s,u,c,l,p);case 2:return function(t,e,n,r,o,i,a,s,u,c,l,p){var f=!1,h=e.bindings,d=h.length;if(d>0&&Rr(t,e,0,n)&&(f=!0),d>1&&Rr(t,e,1,r)&&(f=!0),d>2&&Rr(t,e,2,o)&&(f=!0),d>3&&Rr(t,e,3,i)&&(f=!0),d>4&&Rr(t,e,4,a)&&(f=!0),d>5&&Rr(t,e,5,s)&&(f=!0),d>6&&Rr(t,e,6,u)&&(f=!0),d>7&&Rr(t,e,7,c)&&(f=!0),d>8&&Rr(t,e,8,l)&&(f=!0),d>9&&Rr(t,e,9,p)&&(f=!0),f){var y=e.text.prefix;d>0&&(y+=Mi(n,h[0])),d>1&&(y+=Mi(r,h[1])),d>2&&(y+=Mi(o,h[2])),d>3&&(y+=Mi(i,h[3])),d>4&&(y+=Mi(a,h[4])),d>5&&(y+=Mi(s,h[5])),d>6&&(y+=Mi(u,h[6])),d>7&&(y+=Mi(c,h[7])),d>8&&(y+=Mi(l,h[8])),d>9&&(y+=Mi(p,h[9]));var g=yr(t,e.nodeIndex).renderText;t.renderer.setValue(g,y)}return f}(t,e,n,r,o,i,a,s,u,c,l,p);case 16384:return function(t,e,n,r,o,i,a,s,u,c,l,p){var f=mr(t,e.nodeIndex),h=f.instance,d=!1,y=void 0,g=e.bindings.length;return g>0&&jr(t,e,0,n)&&(d=!0,y=di(t,f,e,0,n,y)),g>1&&jr(t,e,1,r)&&(d=!0,y=di(t,f,e,1,r,y)),g>2&&jr(t,e,2,o)&&(d=!0,y=di(t,f,e,2,o,y)),g>3&&jr(t,e,3,i)&&(d=!0,y=di(t,f,e,3,i,y)),g>4&&jr(t,e,4,a)&&(d=!0,y=di(t,f,e,4,a,y)),g>5&&jr(t,e,5,s)&&(d=!0,y=di(t,f,e,5,s,y)),g>6&&jr(t,e,6,u)&&(d=!0,y=di(t,f,e,6,u,y)),g>7&&jr(t,e,7,c)&&(d=!0,y=di(t,f,e,7,c,y)),g>8&&jr(t,e,8,l)&&(d=!0,y=di(t,f,e,8,l,y)),g>9&&jr(t,e,9,p)&&(d=!0,y=di(t,f,e,9,p,y)),y&&h.ngOnChanges(y),2&t.state&&65536&e.flags&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,a,s,u,c,l,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,c,l,p){var f=e.bindings,h=!1,d=f.length;if(d>0&&Rr(t,e,0,n)&&(h=!0),d>1&&Rr(t,e,1,r)&&(h=!0),d>2&&Rr(t,e,2,o)&&(h=!0),d>3&&Rr(t,e,3,i)&&(h=!0),d>4&&Rr(t,e,4,a)&&(h=!0),d>5&&Rr(t,e,5,s)&&(h=!0),d>6&&Rr(t,e,6,u)&&(h=!0),d>7&&Rr(t,e,7,c)&&(h=!0),d>8&&Rr(t,e,8,l)&&(h=!0),d>9&&Rr(t,e,9,p)&&(h=!0),h){var y=vr(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]=c),d>8&&(g[8]=l),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]=c),d>8&&(g[f[8].name]=l),d>9&&(g[f[9].name]=p);break;case 128:var m=n;switch(d){case 1:g=m.transform(n);break;case 2:g=m.transform(r);break;case 3:g=m.transform(r,o);break;case 4:g=m.transform(r,o,i);break;case 5:g=m.transform(r,o,i,a);break;case 6:g=m.transform(r,o,i,a,s);break;case 7:g=m.transform(r,o,i,a,s,u);break;case 8:g=m.transform(r,o,i,a,s,u,c);break;case 9:g=m.transform(r,o,i,a,s,u,c,l);break;case 10:g=m.transform(r,o,i,a,s,u,c,l,p)}}y.value=g}return h}(t,e,n,r,o,i,a,s,u,c,l,p);default:throw"unreachable"}}(t,e,r,o,i,a,s,u,c,l,p,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&kr(t,e,0,n);f>1&&kr(t,e,1,r);f>2&&kr(t,e,2,o);f>3&&kr(t,e,3,i);f>4&&kr(t,e,4,a);f>5&&kr(t,e,5,s);f>6&&kr(t,e,6,u);f>7&&kr(t,e,7,c);f>8&&kr(t,e,8,l);f>9&&kr(t,e,9,p)}(t,e,r,o,i,a,s,u,c,l,p,f):function(t,e,n){for(var r=0;rC)return C;return e}(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[g.a]=function(){return this},t.prototype.next=function(){return this.idx=r?o.complete():(o.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var i=0;i=2&&(n=!0),function(r){return r.lift(new rt(t,e,n))}}var rt=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 ot(t,this.accumulator,this.seed,this.hasSeed))},t}(),ot=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return et(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}(P.a),it=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},at=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return it(e,t),e}(Error),st=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};function ut(t){return function(e){return 0===t?new O.a:e.lift(new ct(t))}}var ct=function(){function t(t){if(this.total=t,this.total<0)throw new at}return t.prototype.call=function(t,e){return e.subscribe(new lt(t,this.total))},t}(),lt=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return st(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2?function(n){return Object(dt.a)(nt(t,e),ut(1),(void 0===(r=e)&&(r=null),function(t){return t.lift(new ft(r))}))(n);var r}:function(e){return Object(dt.a)(nt(function(e,n,r){return t(e,n,r+1)}),ut(1))(e)}}var gt=n("HurC"),mt=n("8D5t");function vt(){return Object(mt.a)(1)(this)}var bt=n("i9s7");function _t(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(mt.a)(t)(this)}var wt=n("Qbdm"),Ct=n("Uw6n");n.d(e,"RouterLink",function(){return En}),n.d(e,"RouterLinkWithHref",function(){return Sn}),n.d(e,"RouterLinkActive",function(){return xn}),n.d(e,"RouterOutlet",function(){return Tn}),n.d(e,"GuardsCheckEnd",function(){return Mt}),n.d(e,"GuardsCheckStart",function(){return At}),n.d(e,"NavigationCancel",function(){return Ot}),n.d(e,"NavigationEnd",function(){return St}),n.d(e,"NavigationError",function(){return xt}),n.d(e,"NavigationStart",function(){return Et}),n.d(e,"ResolveEnd",function(){return jt}),n.d(e,"ResolveStart",function(){return Nt}),n.d(e,"RouteConfigLoadEnd",function(){return Tt}),n.d(e,"RouteConfigLoadStart",function(){return Pt}),n.d(e,"RoutesRecognized",function(){return It}),n.d(e,"RouteReuseStrategy",function(){return un}),n.d(e,"Router",function(){return gn}),n.d(e,"ROUTES",function(){return ln}),n.d(e,"ROUTER_CONFIGURATION",function(){return Dn}),n.d(e,"ROUTER_INITIALIZER",function(){return Yn}),n.d(e,"RouterModule",function(){return Un}),n.d(e,"provideRoutes",function(){return Bn}),n.d(e,"ChildrenOutletContexts",function(){return Pn}),n.d(e,"OutletContext",function(){return In}),n.d(e,"NoPreloading",function(){return jn}),n.d(e,"PreloadAllModules",function(){return Nn}),n.d(e,"PreloadingStrategy",function(){return Mn}),n.d(e,"RouterPreloader",function(){return Rn}),n.d(e,"ActivatedRoute",function(){return Me}),n.d(e,"ActivatedRouteSnapshot",function(){return je}),n.d(e,"RouterState",function(){return Te}),n.d(e,"RouterStateSnapshot",function(){return Re}),n.d(e,"PRIMARY_OUTLET",function(){return Rt}),n.d(e,"convertToParamMap",function(){return Dt}),n.d(e,"UrlHandlingStrategy",function(){return fn}),n.d(e,"DefaultUrlSerializer",function(){return re}),n.d(e,"UrlSegment",function(){return $t}),n.d(e,"UrlSegmentGroup",function(){return Xt}),n.d(e,"UrlSerializer",function(){return ne}),n.d(e,"UrlTree",function(){return Jt}),n.d(e,"VERSION",function(){return Jn}),n.d(e,"\u0275ROUTER_PROVIDERS",function(){return Ln}),n.d(e,"\u0275flatten",function(){return Gt}),n.d(e,"\u0275a",function(){return Vn}),n.d(e,"\u0275g",function(){return Qn}),n.d(e,"\u0275h",function(){return Zn}),n.d(e,"\u0275i",function(){return Wn}),n.d(e,"\u0275d",function(){return Hn}),n.d(e,"\u0275c",function(){return zn}),n.d(e,"\u0275j",function(){return Kn}),n.d(e,"\u0275f",function(){return qn}),n.d(e,"\u0275b",function(){return Fn}),n.d(e,"\u0275e",function(){return Gn}),n.d(e,"\u0275k",function(){return Oe}),n.d(e,"\u0275l",function(){return Pe});var Et=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),St=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Ot=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),xt=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),It=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Pt=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Tt=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),At=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Mt=function(){function t(t,e,n,r,o){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o}return t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(),Nt=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),jt=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Rt="primary",kt=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 Dt(t){return new kt(t)}var Vt="ngNavigationCancelingError";function Lt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Qt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Zt(t){var e=_t.call(t);return z.call(e,function(t){return!0===t})}function Wt(t){return Object(i["\u0275isObservable"])(t)?t:Object(i["\u0275isPromise"])(t)?Object(bt.a)(Promise.resolve(t)):Object(D.a)(t)}function Yt(t,e,n){return n?function(t,e){return Bt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!te(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)&&Kt(t.root,e.root)}function Kt(t,e){return function t(e,n,r){if(e.segments.length>r.length){var o=e.segments.slice(0,r.length);return!!te(o,r)&&!n.hasChildren()}if(e.segments.length===r.length){if(!te(e.segments,r))return!1;for(var i in n.children){if(!e.children[i])return!1;if(!Kt(e.children[i],n.children[i]))return!1}return!0}var o=r.slice(0,e.segments.length),a=r.slice(e.segments.length);return!!te(e.segments,o)&&(!!e.children[Rt]&&t(e.children[Rt],n,a))}(t,e,e.segments)}var Jt=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=Dt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return oe.serialize(this)},t}(),Xt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Qt(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 ie(this)},t}(),$t=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Dt(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ue(this)},t}();function te(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function ee(t,e){var n=[];return Qt(t.children,function(t,r){r===Rt&&(n=n.concat(e(t,r)))}),Qt(t.children,function(t,r){r!==Rt&&(n=n.concat(e(t,r)))}),n}var ne=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),re=function(){function t(){}return t.prototype.parse=function(t){var e=new he(t);return new Jt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return""+("/"+function t(e,n){if(!e.hasChildren())return ie(e);if(n){var r=e.children[Rt]?t(e.children[Rt],!1):"",o=[];return Qt(e.children,function(e,n){n!==Rt&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=ee(e,function(n,r){return r===Rt?[t(e.children[Rt],!1)]:[r+":"+t(n,!1)]});return ie(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 ae(t)+"="+ae(e)}).join("&"):ae(t)+"="+ae(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),oe=new re;function ie(t){return t.segments.map(function(t){return ue(t)}).join("/")}function ae(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function se(t){return decodeURIComponent(t)}function ue(t){return""+ae(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+ae(t)+"="+ae(e[t])}).join(""));var e}var ce=/^[^\/()?;=&#]+/;function le(t){var e=t.match(ce);return e?e[0]:""}var pe=/^[^=?&#]+/;var fe=/^[^?&#]+/;var he=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 Xt([],{}):new Xt([],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("#")?decodeURI(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[Rt]=new Xt(t,e)),n},t.prototype.parseSegment=function(){var t=le(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $t(se(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=le(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=le(this.remaining);r&&(n=r,this.capture(n))}t[se(e)]=se(n)}},t.prototype.parseQueryParam=function(t){var e,n,r=(e=this.remaining,(n=e.match(pe))?n[0]:"");if(r){this.capture(r);var o="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(fe);return e?e[0]:""}(this.remaining);i&&(o=i,this.capture(o))}var a=se(r),s=se(o);if(t.hasOwnProperty(a)){var u=t[a];Array.isArray(u)||(u=[u],t[a]=u),u.push(s)}else t[a]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=le(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=Rt);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Rt]:new Xt([],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}(),de=function(){return function(t){this.segmentGroup=t||null}}(),ye=function(){return function(t){this.urlTree=t}}();function ge(t){return new y.Observable(function(e){return e.error(new de(t))})}function me(t){return new y.Observable(function(e){return e.error(new ye(t))})}function ve(t){return new y.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function be(t){return new y.Observable(function(e){return e.error((n="Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false",(r=Error("NavigationCancelingError: "+n))[Vt]=!0,r));var n,r})}var _e=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(i.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Rt),n=X.a.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return gt.a.call(n,function(e){if(e instanceof ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof de)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Rt),r=X.a.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return gt.a.call(r,function(t){if(t instanceof de)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 Xt([],((r={})[Rt]=t,r)):t;return new Jt(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?X.a.call(this.expandChildren(t,e,n),function(t){return new Xt([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(t,e){if(0===Object.keys(t).length)return Object(D.a)({});var n=[],r=[],o={};Qt(t,function(t,i){var a=X.a.call(e(i,t),function(t){return o[i]=t});i===Rt?n.push(a):r.push(a)});var i=vt.call(D.a.apply(void 0,n.concat(r))),a=J.call(i);return X.a.call(a,function(){return o})}(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,s=D.a.apply(void 0,n),u=X.a.call(s,function(s){var u=a.expandSegmentAgainstRoute(t,e,n,s,r,o,i);return gt.a.call(u,function(t){if(t instanceof de)return Object(D.a)(null);throw t})}),c=vt.call(u),l=Z.call(c,function(t){return!!t});return gt.a.call(l,function(t,n){if(t instanceof B){if(a.noLeftoversInUrl(e,r,o))return Object(D.a)(new Xt([],{}));throw new de(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 Se(r)!==i?ge(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):ge(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("/")?me(i):tt.call(this.lineralizeSegments(n,i),function(n){var i=new Xt(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=we(e,r,o),u=s.matched,c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!u)return ge(e);var f=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?me(f):tt.call(this.lineralizeSegments(r,f),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?X.a.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Xt(r,{})}):Object(D.a)(new Xt(r,{}));var i=we(e,n,r),a=i.matched,s=i.consumedSegments,u=i.lastChild;if(!a)return ge(e);var c=r.slice(u),l=this.getChildConfig(t,n);return tt.call(l,function(t){var n=t.module,r=t.routes,i=function(t,e,n,r){if(n.length>0&&function(t,e,n){return n.some(function(n){return Ee(t,e,n)&&Se(n)!==Rt})}(t,n,r)){var o=new Xt(e,function(t,e){var n={};n[Rt]=e;for(var r=0,o=t;r1||!r.children[Rt])return ve(t.redirectTo);r=r.children[Rt]}},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 Jt(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Qt(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 Qt(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Xt(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){for(var n=0,r=0,o=e;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Lt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ce(t){if(1===t.numberOfChildren&&t.children[Rt]){var e=t.children[Rt];return new Xt(t.segments.concat(e.segments),e.children)}return t}function Ee(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Se(t){return t.outlet||Rt}var Oe=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=xe(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=xe(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Ie(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 Ie(t,this._root).map(function(t){return t.value})},t}();function xe(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}var je=function(){function t(t,e,n,r,o,i,a,s,u,c,l){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=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._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=Dt(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Dt(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}(),Re=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,ke(r,n),r}return r.a(e,t),e.prototype.toString=function(){return De(this._root)},e}(Oe);function ke(t,e){e.value._routerState=t,e.children.forEach(function(e){return ke(t,e)})}function De(t){var e=t.children.length>0?" { "+t.children.map(De).join(", ")+" } ":"";return""+t.value+e}function Ve(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;no;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new Ge(r,!1,o-i)}(n.snapshot._urlSegment,o,t.numberOfDoubleDots)}(i,e,t),s=a.processChildren?Ze(a.segmentGroup,a.index,i.commands):Qe(a.segmentGroup,a.index,i.commands);return He(a.segmentGroup,s,e,r,o)}function ze(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function He(t,e,n,r,o){var i={};return r&&Qt(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new Jt(e,i,o):new Jt(function t(e,n,r){var o={};Qt(e.children,function(e,i){o[i]=e===n?r:t(e,n,r)});return new Xt(e.segments,o)}(n.root,t,e),i,o)}var Be=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ze(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!==qt(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}();var Ge=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function qe(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Rt]:""+t}function Qe(t,e,n){if(t||(t=new Xt([],{})),0===t.segments.length&&t.hasChildren())return Ze(t,e,n);var r=function(t,e,n){var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;var a=t.segments[o],s=qe(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Je(s,u,a))return i;r+=2}else{if(!Je(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.pathIndex0?qt(n).parameters:{},i=new je(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,an(t),r,t.component,t,tn(e),en(e)+n.length,sn(t));return[new Pe(i,[])]}var a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Xe;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Lt)(n,t,e);if(!r)throw new Xe;var o={};Qt(r.posParams,function(t,e){o[e]=t.path});var i=r.consumed.length>0?Object.assign({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n),s=a.consumedSegments,u=a.parameters,c=a.lastChild,l=n.slice(c),p=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),f=nn(e,s,l,p),h=f.segmentGroup,d=f.slicedSegments,y=new je(s,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,an(t),r,t.component,t,tn(e),en(e)+s.length,sn(t));if(0===d.length&&h.hasChildren()){var g=this.processChildren(p,h);return[new Pe(y,g)]}if(0===p.length&&0===d.length)return[new Pe(y,[])];var m=this.processSegment(p,h,d,Rt);return[new Pe(y,m)]},t}();function tn(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function en(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 nn(t,e,n,r){if(n.length>0&&function(t,e,n){return n.some(function(n){return rn(t,e,n)&&on(n)!==Rt})}(t,n,r)){var o=new Xt(e,function(t,e,n,r){var o={};o[Rt]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,a=n;i0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function on(t){return t.outlet||Rt}function an(t){return t.data||{}}function sn(t){return t.resolve||{}}var un=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),cn=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}(),ln=new i.InjectionToken("ROUTES"),pn=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;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return X.a.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Ft(Gt(o.injector.get(ln)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(bt.a)(this.loader.load(t)):tt.call(Wt(t()),function(t){return t instanceof i.NgModuleFactory?Object(D.a)(t):Object(bt.a)(e.compiler.compileModuleAsync(t))})},t}(),fn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),hn=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 dn(t){throw t}function yn(t){return Object(D.a)(null)}var gn=function(){function t(t,e,n,r,o,s,u,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.navigations=new c(null),this.routerEvents=new a.Subject,this.navigationId=0,this.errorHandler=dn,this.navigated=!1,this.hooks={beforePreactivation:yn,afterPreactivation:yn},this.urlHandlingStrategy=new hn,this.routeReuseStrategy=new cn;this.ngModule=o.get(i.NgModuleRef),this.resetConfig(l),this.currentUrlTree=new Jt(new Xt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new pn(s,u,function(t){return p.triggerEvent(new Pt(t))},function(t){return p.triggerEvent(new Tt(t))}),this.currentRouterState=Ae(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){Ut(t),this.config=t,this.navigated=!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,u=e.preserveFragment;Object(i.isDevMode)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=a?this.currentUrlTree.queryParams:r||null;return Ue(c,this.currentUrlTree,t,p,l)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Jt?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e=2?yt(t,e)(this):yt(t)(this)}).call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=Cn(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Qt(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.traverseRoutes=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);if(s?this.canActivateChecks.push(new mn(r)):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,a?a.children:null,r):this.traverseChildRoutes(t,e,n,r),s){var u=a.outlet;this.canDeactivateChecks.push(new vn(u.component,i))}}else i&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new mn(r)),o.component?this.traverseChildRoutes(t,null,a?a.children:null,r):this.traverseChildRoutes(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Le(t,e)||!Bt(t.queryParams,e.queryParams);case"paramsChange":default:return!Le(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Cn(t),o=t.value;Qt(r,function(t,r){o.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),o.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new vn(e.outlet.component,o)):this.canDeactivateChecks.push(new vn(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=k(this.canDeactivateChecks),n=tt.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return z.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=k(this.canActivateChecks),n=V.a.call(e,function(e){return Zt(k([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return z.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?Zt(X.a.call(k(n),function(n){var r,o=e.getToken(n,t);return r=o.canActivate?Wt(o.canActivate(t,e.future)):Wt(o(t,e.future)),Z.call(r)})):Object(D.a)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return Zt(X.a.call(k(r),function(t){return Zt(X.a.call(k(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=i.canActivateChild?Wt(i.canActivateChild(n,e.future)):Wt(i(n,e.future)),Z.call(o)}))}))},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;if(!r||0===r.length)return Object(D.a)(!0);var o=tt.call(k(r),function(r){var o,i=n.getToken(r,e);return o=i.canDeactivate?Wt(i.canDeactivate(t,e,n.curr,n.future)):Wt(i(t,e,n.curr,n.future)),Z.call(o)});return z.call(o,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return X.a.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object.assign({},t.data,Ne(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(D.a)({});if(1===r.length){var o=r[0];return X.a.call(this.getResolver(t[o],e),function(t){return(e={})[o]=t,e;var e})}var i={},a=tt.call(k(r),function(r){return X.a.call(n.getResolver(t[r],e),function(t){return i[r]=t,t})});return X.a.call(J.call(a),function(){return i})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return n.resolve?Wt(n.resolve(e,this.future)):Wt(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}(),_n=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ve(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=Cn(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,o[e],n),delete o[e]}),Qt(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=Cn(t),i=t.value.component?r.children:e;Qt(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=Cn(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(Ve(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){i=n.getOrCreateContext(r.outlet);if(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),wn(a.route)}else{var s=function(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),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 wn(t){Ve(t.value),t.children.forEach(wn)}function Cn(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var En=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:On(this.skipLocationChange),replaceUrl:On(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:On(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:On(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();En.decorators=[{type:i.Directive,args:[{selector:":not(a)[routerLink]"}]}],En.ctorParameters=function(){return[{type:gn},{type:Me},{type:void 0,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:i.Renderer2},{type:i.ElementRef}]},En.propDecorators={queryParams:[{type:i.Input}],fragment:[{type:i.Input}],queryParamsHandling:[{type:i.Input}],preserveFragment:[{type:i.Input}],skipLocationChange:[{type:i.Input}],replaceUrl:[{type:i.Input}],routerLink:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click"]}]};var Sn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof St&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:On(this.skipLocationChange),replaceUrl:On(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,o),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:On(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:On(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();function On(t){return""===t||!!t}Sn.decorators=[{type:i.Directive,args:[{selector:"a[routerLink]"}]}],Sn.ctorParameters=function(){return[{type:gn},{type:Me},{type:o.LocationStrategy}]},Sn.propDecorators={target:[{type:i.HostBinding,args:["attr.target"]},{type:i.Input}],queryParams:[{type:i.Input}],fragment:[{type:i.Input}],queryParamsHandling:[{type:i.Input}],preserveFragment:[{type:i.Input}],skipLocationChange:[{type:i.Input}],replaceUrl:[{type:i.Input}],href:[{type:i.HostBinding}],routerLink:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var xn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof St&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.active!==e&&(t.active=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();xn.decorators=[{type:i.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],xn.ctorParameters=function(){return[{type:gn},{type:i.ElementRef},{type:i.Renderer2},{type:i.ChangeDetectorRef}]},xn.propDecorators={links:[{type:i.ContentChildren,args:[En,{descendants:!0}]}],linksWithHrefs:[{type:i.ContentChildren,args:[Sn,{descendants:!0}]}],routerLinkActiveOptions:[{type:i.Input}],routerLinkActive:[{type:i.Input}]};var In=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Pn,this.attachRef=null}}(),Pn=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 In,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Tn=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 i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.name=r||Rt,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,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),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=t._futureSnapshot._routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),o=this.parentContexts.getOrCreateContext(this.name).children,i=new An(t,o,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}();Tn.decorators=[{type:i.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Tn.ctorParameters=function(){return[{type:Pn},{type:i.ViewContainerRef},{type:i.ComponentFactoryResolver},{type:void 0,decorators:[{type:i.Attribute,args:["name"]}]},{type:i.ChangeDetectorRef}]},Tn.propDecorators={activateEvents:[{type:i.Output,args:["activate"]}],deactivateEvents:[{type:i.Output,args:["deactivate"]}]};var An=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===Me?this.route:t===Pn?this.childContexts:this.parent.get(t,e)},t}(),Mn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),Nn=function(){function t(){}return t.prototype.preload=function(t,e){return gt.a.call(e(),function(){return Object(D.a)(null)})},t}(),jn=function(){function t(){}return t.prototype.preload=function(t,e){return Object(D.a)(null)},t}(),Rn=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;this.loader=new pn(e,n,function(e){return t.triggerEvent(new Pt(e))},function(e){return t.triggerEvent(new Tt(e))})}return t.prototype.setUpPreloading=function(){var t=this,e=Ct.a.call(this.router.events,function(t){return t instanceof St});this.subscription=V.a.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(i.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,o=e;r0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),d=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,a=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),y=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:l.Default,headers:new h})||this}return r.a(e,t),e}(d);y.decorators=[{type:o.Injectable}],y.ctorParameters=function(){return[]};var g=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),m=function(){return function(){}}(),v=function(){function t(){}return t.prototype.configureRequest=function(t){},t}();function b(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return u.Get;case"POST":return u.Post;case"PUT":return u.Put;case"DELETE":return u.Delete;case"OPTIONS":return u.Options;case"HEAD":return u.Head;case"PATCH":return u.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var _=function(t){return t>=200&&t<300};var w=function(){function t(){}return t.prototype.encodeKey=function(t){return C(t)},t.prototype.encodeValue=function(t){return C(t)},t}();function C(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var E=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new w),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],a=e.get(o)||[];a.push(i),e.set(o,a)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return r.a(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(S),x=0,I="__ng_jsonp__",P=null;function T(){var t="object"==typeof window?window:{};return null===P&&(P=t[I]={}),P}var A=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+x++},t.prototype.requestCallback=function(t){return I+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){T()[t]=e},t.prototype.removeConnection=function(t){T()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();A.decorators=[{type:o.Injectable}],A.ctorParameters=function(){return[]};var M="JSONP injected script did not invoke callback.",N="JSONP requests must use GET request method.",j=function(){function t(){}return t.prototype.finished=function(t){},t}(),R=function(t){function e(e,n,r){var o=t.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,e.method!==u.Get)throw new TypeError(N);return o.request=e,o.response=new i.Observable(function(t){o.readyState=c.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var a=n.requestCallback(o._id),s=e.url;s.indexOf("=JSONP_CALLBACK&")>-1?s=s.replace("=JSONP_CALLBACK&","="+a+"&"):s.lastIndexOf("=JSONP_CALLBACK")===s.length-"=JSONP_CALLBACK".length&&(s=s.substring(0,s.length-"=JSONP_CALLBACK".length)+"="+a);var u=o._script=n.build(s),p=function(e){if(o.readyState!==c.Cancelled){if(o.readyState=c.Done,n.cleanup(u),!o._finished){var i=new d({body:M,type:l.Error,url:s});return r&&(i=r.merge(i)),void t.error(new O(i))}var a=new d({body:o._responseData,url:s});o.baseResponseOptions&&(a=o.baseResponseOptions.merge(a)),t.next(new O(a)),t.complete()}},f=function(e){if(o.readyState!==c.Cancelled){o.readyState=c.Done,n.cleanup(u);var i=new d({body:e.message,type:l.Error});r&&(i=r.merge(i)),t.error(new O(i))}};return u.addEventListener("load",p),u.addEventListener("error",f),n.send(u),function(){o.readyState=c.Cancelled,u.removeEventListener("load",p),u.removeEventListener("error",f),o._dom.cleanup(u)}}),o}return r.a(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==c.Cancelled&&(this._responseData=t)},e}(j),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(g),D=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return r.a(e,t),e.prototype.createConnection=function(t){return new R(t,this._browserJSONP,this._baseResponseOptions)},e}(k);D.decorators=[{type:o.Injectable}],D.ctorParameters=function(){return[{type:A},{type:d}]};var V=/^\)\]\}',?\n/,L=function(){function t(t,e,n){var r=this;this.request=t,this.response=new i.Observable(function(o){var i=e.build();i.open(u[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var a=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r="undefined"==typeof i.response?i.responseText:i.response)&&(r=r.replace(V,"")),0===e&&(e=r?200:0);var a,s=h.fromResponseHeaderString(i.getAllResponseHeaders()),u=("responseURL"in(a=i)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||t.url,c=i.statusText||"OK",l=new d({body:r,status:e,headers:s,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new O(l);if(p.ok=_(e),p.ok)return o.next(p),void o.complete();o.error(p)},s=function(t){var e=new d({body:t,type:l.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new O(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new h),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return i.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case f.ArrayBuffer:i.responseType="arraybuffer";break;case f.Json:i.responseType="json";break;case f.Text:i.responseType="text";break;case f.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",a),i.addEventListener("error",s),i.send(r.request.getBody()),function(){i.removeEventListener("load",a),i.removeEventListener("error",s),i.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case p.NONE:break;case p.JSON:e.setRequestHeader("content-type","application/json");break;case p.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case p.TEXT:e.setRequestHeader("content-type","text/plain");break;case p.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),F=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(a["\u0275getDOM"])().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),U=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new L(t,this._browserXHR,this._baseResponseOptions)},t}();U.decorators=[{type:o.Injectable}],U.ctorParameters=function(){return[{type:s},{type:d},{type:v}]};var z=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,a=t.params,s=t.withCredentials,u=t.responseType;this.method=null!=e?b(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||i),this.withCredentials=null!=s?s:null,this.responseType=null!=u?u:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new h(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof E?t.clone():"string"==typeof t?new E(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new E;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),H=function(t){function e(){return t.call(this,{method:u.Get,headers:new h})||this}return r.a(e,t),e}(z);H.decorators=[{type:o.Injectable}],H.ctorParameters=function(){return[]};var B=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o=e.params||e.search;if(o){var i=void 0;if((i="object"!=typeof o||o instanceof E?o.toString():function(t){var e=new E;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(o).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+i}}return n._body=e.body,n.method=b(e.method),n.headers=new h(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return r.a(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return p.JSON;case"application/x-www-form-urlencoded":return p.FORM;case"multipart/form-data":return p.FORM_DATA;case"text/plain":case"text/html":return p.TEXT;case"application/octet-stream":return this._body instanceof W?p.ARRAY_BUFFER:p.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?p.NONE:this._body instanceof E?p.FORM:this._body instanceof Q?p.FORM_DATA:this._body instanceof Z?p.BLOB:this._body instanceof W?p.ARRAY_BUFFER:this._body&&"object"==typeof this._body?p.JSON:p.TEXT},e.prototype.getBody=function(){switch(this.contentType){case p.JSON:case p.FORM:return this.text();case p.FORM_DATA:return this._body;case p.TEXT:return this.text();case p.BLOB:return this.blob();case p.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(S);var G=function(){},q="object"==typeof window?window:G,Q=q.FormData||G,Z=q.Blob||G,W=q.ArrayBuffer||G;function Y(t,e){return t.createConnection(e).response}function K(t,e,n,r){var o=t;return e?o.merge(new z({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new z({method:n,url:r}))}var J=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=Y(this._backend,new B(K(this._defaultOptions,e,u.Get,t)));else{if(!(t instanceof B))throw new Error("First argument must be a url string or Request instance.");n=Y(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new B(K(this._defaultOptions,e,u.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new B(K(this._defaultOptions.merge(new z({body:e})),n,u.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new B(K(this._defaultOptions.merge(new z({body:e})),n,u.Put,t)))},t.prototype.delete=function(t,e){return this.request(new B(K(this._defaultOptions,e,u.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new B(K(this._defaultOptions.merge(new z({body:e})),n,u.Patch,t)))},t.prototype.head=function(t,e){return this.request(new B(K(this._defaultOptions,e,u.Head,t)))},t.prototype.options=function(t,e){return this.request(new B(K(this._defaultOptions,e,u.Options,t)))},t}();J.decorators=[{type:o.Injectable}],J.ctorParameters=function(){return[{type:g},{type:z}]};var X=function(t){function e(e,n){return t.call(this,e,n)||this}return r.a(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new B(K(this._defaultOptions,e,u.Get,t))),!(t instanceof B))throw new Error("First argument must be a url string or Request instance.");if(t.method!==u.Get)throw new Error("JSONP requests must use GET request method.");return Y(this._backend,t)},e}(J);function $(){return new F}function tt(t,e){return new J(t,e)}function et(t,e){return new X(t,e)}X.decorators=[{type:o.Injectable}],X.ctorParameters=function(){return[{type:g},{type:z}]};var nt=function(){return function(){}}();nt.decorators=[{type:o.NgModule,args:[{providers:[{provide:J,useFactory:tt,deps:[U,z]},s,{provide:z,useClass:H},{provide:d,useClass:y},U,{provide:v,useFactory:$}]}]}],nt.ctorParameters=function(){return[]};var rt=function(){return function(){}}();rt.decorators=[{type:o.NgModule,args:[{providers:[{provide:X,useFactory:et,deps:[k,z]},A,{provide:z,useClass:H},{provide:d,useClass:y},{provide:k,useClass:D}]}]}],rt.ctorParameters=function(){return[]};var ot=new o.Version("4.4.6")},HurC:function(t,e,n){"use strict";var r=n("tZ2B"),o=n("PIsA"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.selector,this.caught))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(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(Object(o.a)(this,n))}},e}(r.a);e.a=function(t){return function(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}}(t)(this)}},KN8t:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"BrowserAnimationsModule",function(){return C}),n.d(e,"NoopAnimationsModule",function(){return E}),n.d(e,"\u0275BrowserAnimationBuilder",function(){return u}),n.d(e,"\u0275BrowserAnimationFactory",function(){return c}),n.d(e,"\u0275AnimationRenderer",function(){return d}),n.d(e,"\u0275AnimationRendererFactory",function(){return f}),n.d(e,"\u0275a",function(){return h}),n.d(e,"\u0275f",function(){return _}),n.d(e,"\u0275g",function(){return w}),n.d(e,"\u0275b",function(){return y}),n.d(e,"\u0275d",function(){return m}),n.d(e,"\u0275e",function(){return v}),n.d(e,"\u0275c",function(){return g});var r=n("TToO"),o=n("3j3K"),i=n("Qbdm"),a=n("Um43"),s=n("1GJ2"),u=function(t){function e(e,n){var r=t.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:o.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=e.createRenderer(n.body,i),r}return r.a(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(a.sequence)(t):t;return p(this._renderer,null,e,"register",[n]),new c(e,this._renderer)},e}(a.AnimationBuilder);u.decorators=[{type:o.Injectable}],u.ctorParameters=function(){return[{type:o.RendererFactory2},{type:void 0,decorators:[{type:o.Inject,args:[i.DOCUMENT]}]}]};var c=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return r.a(e,t),e.prototype.create=function(t,e){return new l(this._id,t,e||{},this._renderer)},e}(a.AnimationFactory),l=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],i=o[0],a=o[1],s=r.get(i)||[];s.push(a),r.set(i,s)}),r):null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}(),g=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,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}();function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=n||null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new g),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?"),s=-1===a?"?":a=200&&this.status<300}}(),E=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.ResponseHeader,n}return r.a(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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}(C),S=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.Response,n.body=e.body||null,n}return r.a(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}(C),O=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return r.a(e,t),e}(C);function x(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var I=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;void 0===n&&(n={}),r=t instanceof _?t:new _(t,e,n.body||null,{headers:n.headers,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials});var c=a.a.call(Object(i.a)(r),function(t){return o.handler.handle(t)});if(t instanceof _||"events"===n.observe)return c;var l=s.a.call(c,function(t){return t instanceof S});switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.a.call(l,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return u.a.call(l,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return u.a.call(l,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return u.a.call(l,function(t){return t.body})}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,x(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,x(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,x(n,e))},t}();I.decorators=[{type:o.Injectable}],I.ctorParameters=function(){return[{type:p}]};var P=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),T=new o.InjectionToken("HTTP_INTERCEPTORS"),A=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}();A.decorators=[{type:o.Injectable}],A.ctorParameters=function(){return[]};var M=0,N=function(){return function(){}}(),j=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+M++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new l.Observable(function(n){var r=e.nextCallback(),o=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),i=e.document.createElement("script");i.src=o;var a=null,s=!1,u=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],u||(a=t,s=!0)};var c=function(){i.parentNode&&i.parentNode.removeChild(i),delete e.callbackMap[r]},l=function(t){u||(c(),s?(n.next(new S({body:a,status:200,statusText:"OK",url:o})),n.complete()):n.error(new O({url:o,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){u||(c(),n.error(new O({error:t,status:0,statusText:"JSONP Error",url:o})))};return i.addEventListener("load",l),i.addEventListener("error",p),e.document.body.appendChild(i),n.next({type:w.Sent}),function(){u=!0,i.removeEventListener("load",l),i.removeEventListener("error",p),c()}})},t}();j.decorators=[{type:o.Injectable}],j.ctorParameters=function(){return[{type:N},{type:void 0,decorators:[{type:o.Inject,args:[c.DOCUMENT]}]}]};var R=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t}();R.decorators=[{type:o.Injectable}],R.ctorParameters=function(){return[{type:j}]};var k=/^\)\]\}',?\n/;var D=function(){function t(){}return t.prototype.build=function(){},t}(),V=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();V.decorators=[{type:o.Injectable}],V.ctorParameters=function(){return[]};var L=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new l.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new g(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new E({headers:o,status:e,statusText:n,url:i})},c=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,c=null;204!==i&&(c="undefined"==typeof r.response?r.responseText:r.response),0===i&&(i=c?200:0);var l=i>=200&&i<300;if(l&&"json"===t.responseType&&"string"==typeof c){c=c.replace(k,"");try{c=JSON.parse(c)}catch(t){l=!1,c={error:t,text:c}}}else if(!l&&"json"===t.responseType&&"string"==typeof c)try{c=JSON.parse(c)}catch(t){}l?(n.next(new S({body:c,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new O({error:c,headers:o,status:i,statusText:a,url:s||void 0}))},l=function(t){var e=new O({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,f=function(e){p||(n.next(u()),p=!0);var o={type:w.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},h=function(t){var e={type:w.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:w.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}();L.decorators=[{type:o.Injectable}],L.ctorParameters=function(){return[{type:D}]};var F=new o.InjectionToken("XSRF_COOKIE_NAME"),U=new o.InjectionToken("XSRF_HEADER_NAME"),z=function(){function t(){}return t.prototype.getToken=function(){},t}(),H=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c["\u0275parseCookieValue"])(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}();H.decorators=[{type:o.Injectable}],H.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[c.DOCUMENT]}]},{type:void 0,decorators:[{type:o.Inject,args:[o.PLATFORM_ID]}]},{type:void 0,decorators:[{type:o.Inject,args:[F]}]}]};var B=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}();function G(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new P(t,e)},t):t}function q(){return"object"==typeof window?window:{}}B.decorators=[{type:o.Injectable}],B.ctorParameters=function(){return[{type:z},{type:void 0,decorators:[{type:o.Inject,args:[U]}]}]};var Q=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:B,useClass:A}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:U,useValue:e.headerName}:[]]}},t}();Q.decorators=[{type:o.NgModule,args:[{providers:[B,{provide:T,useExisting:B,multi:!0},{provide:z,useClass:H},{provide:F,useValue:"XSRF-TOKEN"},{provide:U,useValue:"X-XSRF-TOKEN"}]}]}],Q.ctorParameters=function(){return[]};var Z=function(){return function(){}}();Z.decorators=[{type:o.NgModule,args:[{imports:[Q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[I,{provide:p,useFactory:G,deps:[f,[new o.Optional,new o.Inject(T)]]},L,{provide:f,useExisting:L},V,{provide:D,useExisting:V}]}]}],Z.ctorParameters=function(){return[]};var W=function(){return function(){}}();W.decorators=[{type:o.NgModule,args:[{providers:[j,{provide:N,useFactory:q},{provide:T,useClass:R,multi:!0}]}]}],W.ctorParameters=function(){return[]}},KgXS:function(t,e,n){"use strict";var r=n("3j3K"),o=n("xDLk"),i=function(){function t(t){var e=this;this.ImageService=t,this.images=[{}],this.currentIdx=0,this.leftArrowVisible=!0,this.rightArrowVisible=!0,this.qualitySelectorShown=!1,this.qualitySelected="auto",this.categorySelected="preview_xxs",t.imagesUpdated$.subscribe(function(t){e.images=t}),t.imageSelectedIndexUpdated$.subscribe(function(t){e.currentIdx=t,e.images.forEach(function(t){return t.active=!1}),e.images[e.currentIdx].active=!0,e.transform=0,e.updateQuality()}),t.showImageViewerChanged$.subscribe(function(t){e.showViewer=t}),this.Math=Math}return Object.defineProperty(t.prototype,"leftArrowActive",{get:function(){return this.currentIdx>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightArrowActive",{get:function(){return this.currentIdx0)&&(-1==t?(this.images[this.currentIdx].transition="leaveToRight",this.images[this.currentIdx-1].transition="enterFromLeft"):(this.images[this.currentIdx].transition="leaveToLeft",this.images[this.currentIdx+1].transition="enterFromRight"),this.currentIdx+=t,e?this.hideNavigationArrows():this.showNavigationArrows(),this.updateImage())},t.prototype.hideNavigationArrows=function(){this.leftArrowVisible=!1,this.rightArrowVisible=!1},t.prototype.showNavigationArrows=function(){this.leftArrowVisible=!0,this.rightArrowVisible=!0},t.prototype.closeViewer=function(){this.images.forEach(function(t){return t.transition=void 0}),this.images.forEach(function(t){return t.active=!1}),this.ImageService.showImageViewer(!1)},t.prototype.updateImage=function(){var t=this;setTimeout(function(){t.updateQuality(),t.images[t.currentIdx].active=!0,t.images.forEach(function(e){e!=t.images[t.currentIdx]&&(e.active=!1,t.transform=0)})},500)},t.prototype.updateQuality=function(){var t=window.innerWidth,e=window.innerHeight;switch(this.qualitySelected){case"auto":this.categorySelected="preview_xxs",t>this.images[this.currentIdx].preview_xxs.width&&e>this.images[this.currentIdx].preview_xxs.height&&(this.categorySelected="preview_xs"),t>this.images[this.currentIdx].preview_xs.width&&e>this.images[this.currentIdx].preview_xs.height&&(this.categorySelected="preview_s"),t>this.images[this.currentIdx].preview_s.width&&e>this.images[this.currentIdx].preview_s.height&&(this.categorySelected="preview_m"),t>this.images[this.currentIdx].preview_m.width&&e>this.images[this.currentIdx].preview_m.height&&(this.categorySelected="preview_l"),t>this.images[this.currentIdx].preview_l.width&&e>this.images[this.currentIdx].preview_l.height&&(this.categorySelected="preview_xl"),t>this.images[this.currentIdx].preview_xl.width&&e>this.images[this.currentIdx].preview_xl.height&&(this.categorySelected="raw");break;case"low":this.categorySelected="preview_xxs";break;case"mid":this.categorySelected="preview_m";break;case"high":this.categorySelected="raw"}},t.prototype.onKeydown=function(t){var e=[37,39,27,36,35].find(function(e){return e===t.keyCode});switch(e&&t.preventDefault(),e){case 37:this.navigate(-1,!1);break;case 39:this.navigate(1,!1);break;case 27:this.closeViewer();break;case 36:this.images[this.currentIdx].transition="leaveToRight",this.currentIdx=0,this.images[this.currentIdx].transition="enterFromLeft",this.updateImage();break;case 35:this.images[this.currentIdx].transition="leaveToLeft",this.currentIdx=this.images.length-1,this.images[this.currentIdx].transition="enterFromRight",this.updateImage()}},t}();i.decorators=[{type:r.Component,args:[{selector:"viewer",template:'
',styles:[".imageContainer .image.active,.outerContainer{left:0;right:0;top:0;bottom:0;height:100%;width:100%}.outerContainer{position:fixed;background-color:rgba(0,0,0,.95);font-family:sans-serif}.imageContainer{position:absolute;float:none;top:0;bottom:0;left:0;right:0}.imageContainer .image,.imageContainer .preloading-image{visibility:hidden}.imageContainer .image.active{position:absolute;visibility:visible;background-repeat:no-repeat;background-size:contain;background-position:center;margin:auto;opacity:1}.arrow{opacity:0}.arrow:hover{cursor:pointer}.outerContainer:hover .arrow.activeArrow{height:calc(20px + 1.5vw);position:absolute;top:calc(50% - (20px + 1.5vw)/ 2);bottom:50%;z-index:1;opacity:1;transition:all ease-out .5s}.arrow.left{left:2vw}.arrow.right{right:2vw}.arrow:not(.activeArrow):hover{opacity:0;cursor:pointer;transition:all ease-out .5s}.buttonContainer,.menuButton{position:absolute;right:20px;text-align:center;opacity:1}.buttonContainer{top:20px;height:20px;z-index:200;transition:all ease-out .5s}.buttonContainer .action{height:100%;cursor:pointer;vertical-align:top}.buttonContainer .action:focus{outline:0}.buttonContainer .action:hover{background-color:#222;transition:all ease-out .3s}.buttonContainer .action.close{width:26px;height:26px}md-button-toggle-group{display:table;top:70px;margin:0 auto;background-color:#fff;z-index:500}md-button-toggle.checked{background-color:#a0a0a0}.menuButton{bottom:20px;z-index:200;transition:all ease-out .5s}[md-fab],[md-mini-fab]{background-color:#aaa}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:local('Material Icons'),local('MaterialIcons-Regular'),url(https://fonts.gstatic.com/s/materialicons/v19/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}"],host:{"(document:keydown)":"onKeydown($event)"},animations:[r.trigger("imageTransition",[r.state("enterFromRight",r.style({opacity:1,transform:"translate(0px, 0px)"})),r.state("enterFromLeft",r.style({opacity:1,transform:"translate(0px, 0px)"})),r.state("leaveToLeft",r.style({opacity:0,transform:"translate(-100px, 0px)"})),r.state("leaveToRight",r.style({opacity:0,transform:"translate(100px, 0px)"})),r.transition("* => enterFromRight",[r.style({opacity:0,transform:"translate(30px, 0px)"}),r.animate("250ms 500ms ease-in")]),r.transition("* => enterFromLeft",[r.style({opacity:0,transform:"translate(-30px, 0px)"}),r.animate("250ms 500ms ease-in")]),r.transition("* => leaveToLeft",[r.style({opacity:1}),r.animate("250ms ease-out")]),r.transition("* => leaveToRight",[r.style({opacity:1}),r.animate("250ms ease-out")])]),r.trigger("showViewerTransition",[r.state("true",r.style({opacity:1})),r.state("void",r.style({opacity:0})),r.transition("void => *",[r.style({opacity:0}),r.animate("1000ms ease-in")]),r.transition("* => void",[r.style({opacity:1}),r.animate("500ms ease-out")])])]}]}],i.ctorParameters=function(){return[{type:o.ImageService}]},e.ViewerComponent=i},LK4L:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.styles=[".outerContainer[_ngcontent-%COMP%]{top:0;bottom:0;left:0;right:0;height:100%;width:100%;position:fixed;background-color:rgba(0,0,0,.95);font-family:sans-serif}.imageContainer[_ngcontent-%COMP%]{position:absolute;float:none;top:0;bottom:0;left:0;right:0}.imageContainer[_ngcontent-%COMP%] .image[_ngcontent-%COMP%], .imageContainer[_ngcontent-%COMP%] .preloading-image[_ngcontent-%COMP%]{visibility:hidden}.imageContainer[_ngcontent-%COMP%] .image.active[_ngcontent-%COMP%]{position:absolute;visibility:visible;background-repeat:no-repeat;background-size:contain;background-position:center;margin:auto;left:0;right:0;top:0;bottom:0;height:100%;width:100%;opacity:1}.arrow[_ngcontent-%COMP%]{opacity:0}.arrow[_ngcontent-%COMP%]:hover{cursor:pointer}.outerContainer[_ngcontent-%COMP%]:hover .arrow.activeArrow[_ngcontent-%COMP%]{height:calc(20px + 1.5vw);position:absolute;top:calc(50% - (20px + 1.5vw)/ 2);bottom:50%;z-index:1;opacity:1;-webkit-transition:all ease-out .5s;transition:all ease-out .5s}.arrow.left[_ngcontent-%COMP%]{left:2vw}.arrow.right[_ngcontent-%COMP%]{right:2vw}.arrow[_ngcontent-%COMP%]:not(.activeArrow):hover{opacity:0;cursor:pointer;-webkit-transition:all ease-out .5s;transition:all ease-out .5s}.buttonContainer[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;height:20px;text-align:center;opacity:1;z-index:200;-webkit-transition:all ease-out .5s;transition:all ease-out .5s}.buttonContainer[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{height:100%;cursor:pointer;vertical-align:top}.buttonContainer[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:focus{outline:0}.buttonContainer[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover{background-color:#222;-webkit-transition:all ease-out .3s;transition:all ease-out .3s}.buttonContainer[_ngcontent-%COMP%] .action.close[_ngcontent-%COMP%]{width:26px;height:26px}md-button-toggle-group[_ngcontent-%COMP%]{display:table;top:70px;margin:0 auto;background-color:#fff;z-index:500}md-button-toggle.checked[_ngcontent-%COMP%]{background-color:#a0a0a0}.menuButton[_ngcontent-%COMP%]{position:absolute;bottom:20px;right:20px;text-align:center;opacity:1;z-index:200;-webkit-transition:all ease-out .5s;transition:all ease-out .5s}[md-fab][_ngcontent-%COMP%], [md-mini-fab][_ngcontent-%COMP%]{background-color:#aaa}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:local('Material Icons'),local('MaterialIcons-Regular'),url(https://fonts.gstatic.com/s/materialicons/v19/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2')}.material-icons[_ngcontent-%COMP%]{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}"]},MMpN:function(t,e,n){"use strict";var r=n("3j3K"),o=function(){function t(){this.flexBorderSize=3,this.flexImageSize=7,this.galleryName=""}return t.prototype.ngOnInit=function(){},t.prototype.onViewerVisibilityChanged=function(t){console.log("viewer visible: "+t)},t}();o.decorators=[{type:r.Component,args:[{selector:"app-demo",template:'
angular2-image-gallery   Star


built with angular2-image-gallery
',styles:["@media screen and (min-width:700px){.mainContainer{margin:0 40px 40px}}@media (max-width:700px){.mainContainer{margin:0 0 40px 2px}}.mainContainer{font-family:sans-serif}.mainContainer a{font-weight:800;text-decoration:none}.headlineContainer{margin:80px 0 40px 5px}md-input-container{min-width:150px;z-index:0}"]}]}],o.ctorParameters=function(){return[]},e.DemoComponent=o},N4j0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length}},NVOs:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("TToO"),o=n("3j3K"),i=n("YaPU"),a=n("+3/4"),s=n("BX3T"),u=n("PIsA"),c=n("tZ2B"),l=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return l(e,t),e.create=function(){for(var t=[],n=0;nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return b(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return C.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(b(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(b(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(S);return 0==e.length?null:function(t){return x(function(t,e){return e.map(function(e){return e(t)})}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(S);return 0==e.length?null:function(t){var n=function(t,e){return e.map(function(e){return e(t)})}(t,e).map(O);return y.a.call(h(n),x)}},t}();function S(t){return null!=t}function O(t){var e=Object(o["\u0275isPromise"])(t)?Object(d.a)(t):t;if(!Object(o["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function x(t){var e=t.reduce(function(t,e){return null!=e?Object.assign({},t,e):t},{});return 0===Object.keys(e).length?null:e}var I=new o.InjectionToken("NgValueAccessor"),P={provide:I,useExisting:Object(o.forwardRef)(function(){return T}),multi:!0},T=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();T.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[P]}]}],T.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var A={provide:I,useExisting:Object(o.forwardRef)(function(){return N}),multi:!0};var M=new o.InjectionToken("CompositionEventMode"),N=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(g["\u0275getDOM"])()?Object(g["\u0275getDOM"])().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function j(t){return t.validate?function(e){return t.validate(e)}:t}function R(t){return t.validate?function(e){return t.validate(e)}:t}N.decorators=[{type:o.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[A]}]}],N.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[M]}]}]};var k={provide:I,useExisting:Object(o.forwardRef)(function(){return D}),multi:!0},D=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function V(){throw new Error("unimplemented")}D.decorators=[{type:o.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[k]}]}],D.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var L=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return r.a(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return V()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return V()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(m),F={provide:I,useExisting:Object(o.forwardRef)(function(){return z}),multi:!0},U=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();U.decorators=[{type:o.Injectable}],U.ctorParameters=function(){return[]};var z=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(L),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}();z.decorators=[{type:o.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[F]}]}],z.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:U},{type:o.Injector}]},z.propDecorators={name:[{type:o.Input}],formControlName:[{type:o.Input}],value:[{type:o.Input}]};var H={provide:I,useExisting:Object(o.forwardRef)(function(){return B}),multi:!0},B=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();B.decorators=[{type:o.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[H]}]}],B.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var G={provide:I,useExisting:Object(o.forwardRef)(function(){return Q}),multi:!0};function q(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var Q=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=q(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function rt(t){return null!=t?E.compose(t.map(j)):null}function ot(t){return null!=t?E.composeAsync(t.map(R)):null}function it(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(e,n.currentValue)}J.decorators=[{type:o.Directive,args:[{selector:"option"}]}],J.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:K,decorators:[{type:o.Optional},{type:o.Host}]}]},J.propDecorators={ngValue:[{type:o.Input,args:["ngValue"]}],value:[{type:o.Input,args:["value"]}]};var at=[T,B,D,Q,K,z];function st(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===N?n=e:(i=e,at.some(function(t){return i.constructor===t})?(r&&nt(t,"More than one built-in value accessor matches form control with"),r=e):(o&&nt(t,"More than one custom value accessor matches form control with"),o=e))}),o||(r||(n||(nt(t,"No valid value accessor for form control with"),null)))}var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return X(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ot(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(v),ct=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),lt={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},pt=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e}(ct);pt.decorators=[{type:o.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:lt}]}],pt.ctorParameters=function(){return[{type:L,decorators:[{type:o.Self}]}]};var ft=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e}(ct);ft.decorators=[{type:o.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:lt}]}],ft.ctorParameters=function(){return[{type:v,decorators:[{type:o.Self}]}]};function ht(t){return Array.isArray(t)?rt(t):t||null}function dt(t){return Array.isArray(t)?ot(t):t||null}var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ht(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=dt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this._touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this._pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this._status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=O(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this._errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof mt?t.controls[e]||null:t instanceof vt&&t.at(e)||null},t))}(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new o.EventEmitter,this._statusChanges=new o.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this._pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this._touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),gt=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,ht(n),dt(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return r.a(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),mt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return r.a(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof gt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(yt),vt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return r.a(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof gt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),bt={provide:v,useExisting:Object(o.forwardRef)(function(){return wt})},_t=Promise.resolve(null),wt=function(t){function e(e,n){var r=t.call(this)||this;return r._submitted=!1,r.ngSubmit=new o.EventEmitter,r.form=new mt({},rt(e),ot(n)),r}return r.a(e,t),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),$(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.addFormGroup=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path),r=new mt({});tt(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;_t.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;_t.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(v);wt.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],wt.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]}]};var Ct='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Et='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',St='\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',Ot='\n
\n
\n \n
\n
',xt='\n
\n \n \n
\n ',It=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Ct+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+xt)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Et+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Ot)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Et+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Ot)},t}(),Pt={provide:v,useExisting:Object(o.forwardRef)(function(){return Tt})},Tt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return r.a(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof wt||It.modelGroupParentException()},e}(ut);Tt.decorators=[{type:o.Directive,args:[{selector:"[ngModelGroup]",providers:[Pt],exportAs:"ngModelGroup"}]}],Tt.ctorParameters=function(){return[{type:v,decorators:[{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]}]},Tt.propDecorators={name:[{type:o.Input,args:["ngModelGroup"]}]};var At={provide:L,useExisting:Object(o.forwardRef)(function(){return Nt})},Mt=Promise.resolve(null),Nt=function(t){function e(e,n,r,i){var a=t.call(this)||this;return a._control=new gt,a._registered=!1,a.update=new o.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=st(a,i),a}return r.a(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),it(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?X(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ot(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){$(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Tt)&&this._parent instanceof ut?It.formGroupNameException():this._parent instanceof Tt||this._parent instanceof wt||It.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||It.missingNameException()},e.prototype._updateValue=function(t){var e=this;Mt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Mt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(L);Nt.decorators=[{type:o.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[At],exportAs:"ngModel"}]}],Nt.ctorParameters=function(){return[{type:v,decorators:[{type:o.Optional},{type:o.Host}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[I]}]}]},Nt.propDecorators={name:[{type:o.Input}],isDisabled:[{type:o.Input,args:["disabled"]}],model:[{type:o.Input,args:["ngModel"]}],options:[{type:o.Input,args:["ngModelOptions"]}],update:[{type:o.Output,args:["ngModelChange"]}]};var jt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ct)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Et+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Ot)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Ct)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Et)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+St)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Rt={provide:L,useExisting:Object(o.forwardRef)(function(){return kt})},kt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new o.EventEmitter,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=st(i,r),i}return r.a(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){jt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&($(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),it(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ot(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e}(L);kt.decorators=[{type:o.Directive,args:[{selector:"[formControl]",providers:[Rt],exportAs:"ngForm"}]}],kt.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[I]}]}]},kt.propDecorators={form:[{type:o.Input,args:["formControl"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]};var Dt={provide:v,useExisting:Object(o.forwardRef)(function(){return Vt})},Vt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new o.EventEmitter,r}return r.a(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return $(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e,n,r;e=this.directives,n=t,(r=e.indexOf(n))>-1&&e.splice(r,1)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(!function(t,e){e.valueAccessor.registerOnChange(function(){return et(e)}),e.valueAccessor.registerOnTouched(function(){return et(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e._control,e),n&&$(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=rt(this._validators);this.form.validator=E.compose([this.form.validator,t]);var e=ot(this._asyncValidators);this.form.asyncValidator=E.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||jt.missingFormException()},e}(v);Vt.decorators=[{type:o.Directive,args:[{selector:"[formGroup]",providers:[Dt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]}]},Vt.propDecorators={form:[{type:o.Input,args:["formGroup"]}],ngSubmit:[{type:o.Output}]};var Lt={provide:v,useExisting:Object(o.forwardRef)(function(){return Ft})},Ft=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return r.a(e,t),e.prototype._checkParentType=function(){Ht(this._parent)&&jt.groupParentException()},e}(ut);Ft.decorators=[{type:o.Directive,args:[{selector:"[formGroupName]",providers:[Lt]}]}],Ft.ctorParameters=function(){return[{type:v,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]}]},Ft.propDecorators={name:[{type:o.Input,args:["formGroupName"]}]};var Ut={provide:v,useExisting:Object(o.forwardRef)(function(){return zt})},zt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return r.a(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return X(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ot(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Ht(this._parent)&&jt.arrayParentException()},e}(v);function Ht(t){return!(t instanceof Ft||t instanceof Vt||t instanceof zt)}zt.decorators=[{type:o.Directive,args:[{selector:"[formArrayName]",providers:[Ut]}]}],zt.ctorParameters=function(){return[{type:v,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]}]},zt.propDecorators={name:[{type:o.Input,args:["formArrayName"]}]};var Bt={provide:L,useExisting:Object(o.forwardRef)(function(){return Gt})},Gt=function(t){function e(e,n,r,i){var a=t.call(this)||this;return a._added=!1,a.update=new o.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=st(a,i),a}return r.a(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){jt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),it(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return X(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ot(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ft)&&this._parent instanceof ut?jt.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Vt||this._parent instanceof zt||jt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}(L);Gt.decorators=[{type:o.Directive,args:[{selector:"[formControlName]",providers:[Bt]}]}],Gt.ctorParameters=function(){return[{type:v,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[w]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[I]}]}]},Gt.propDecorators={name:[{type:o.Input,args:["formControlName"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]};var qt={provide:_,useExisting:Object(o.forwardRef)(function(){return Zt}),multi:!0},Qt={provide:_,useExisting:Object(o.forwardRef)(function(){return Wt}),multi:!0},Zt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?E.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Zt.decorators=[{type:o.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[qt],host:{"[attr.required]":'required ? "" : null'}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={required:[{type:o.Input}]};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.validate=function(t){return this.required?E.requiredTrue(t):null},e}(Zt);Wt.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Qt],host:{"[attr.required]":'required ? "" : null'}}]}],Wt.ctorParameters=function(){return[]};var Yt={provide:_,useExisting:Object(o.forwardRef)(function(){return Kt}),multi:!0},Kt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?E.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Kt.decorators=[{type:o.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Yt]}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={email:[{type:o.Input}]};var Jt={provide:_,useExisting:Object(o.forwardRef)(function(){return Xt}),multi:!0},Xt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=E.minLength(parseInt(this.minlength,10))},t}();Xt.decorators=[{type:o.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Jt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={minlength:[{type:o.Input}]};var $t={provide:_,useExisting:Object(o.forwardRef)(function(){return te}),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=E.maxLength(parseInt(this.maxlength,10))},t}();te.decorators=[{type:o.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[$t],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={maxlength:[{type:o.Input}]};var ee={provide:_,useExisting:Object(o.forwardRef)(function(){return ne}),multi:!0},ne=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=E.pattern(this.pattern)},t}();ne.decorators=[{type:o.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],ne.ctorParameters=function(){return[]},ne.propDecorators={pattern:[{type:o.Input}]};var re=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new mt(n,r,o)},t.prototype.control=function(t,e,n){return new gt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new vt(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof gt||t instanceof mt||t instanceof vt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();re.decorators=[{type:o.Injectable}],re.ctorParameters=function(){return[]};var oe=new o.Version("4.4.6"),ie=function(){return function(){}}();ie.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};var ae=[ie,Z,J,N,D,B,T,Q,K,z,pt,ft,Zt,Xt,te,ne,Wt,Kt],se=[Nt,Tt,wt],ue=[kt,Vt,Gt,Ft,zt],ce=function(){return function(){}}();ce.decorators=[{type:o.NgModule,args:[{declarations:ae,exports:ae}]}],ce.ctorParameters=function(){return[]};var le=function(){return function(){}}();le.decorators=[{type:o.NgModule,args:[{declarations:se,providers:[U],exports:[ce,se]}]}],le.ctorParameters=function(){return[]};var pe=function(){return function(){}}();pe.decorators=[{type:o.NgModule,args:[{declarations:[ue],providers:[re,U],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]}},OQqy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("EA34"),o=n("3j3K"),i=n("2Je8"),a=n("+6gH"),s=n("KgXS"),u=n("xDLk"),c=n("fVJg"),l=n("Fzro"),p=[r.styles];function f(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,[[2,0],["imageElement",1]],null,0,"img",[["class","thumbnail"]],[[4,"width","px"],[4,"height","px"],[8,"src",4],[4,"background",null],[4,"margin-right","px"]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;"click"===e&&(r=!1!==o.openImageViewer(t.context.$implicit)&&r);return r},null,null))],null,function(t,e){var n=e.component;t(e,0,0,e.context.$implicit.width,e.context.$implicit.height,e.context.$implicit.srcAfterFocus,e.context.$implicit.dominantColor,n.calcImageMargin())})}function h(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,4,"div",[["class","imagerow"]],[[4,"margin-bottom","px"]],null,null,null,null)),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275and(16777216,null,null,1,null,f)),o.\u0275did(3,802816,null,0,i.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),o.\u0275ted(-1,null,["\n "]))],function(t,e){t(e,3,0,e.context.$implicit)},function(t,e){t(e,0,0,e.component.calcImageMargin())})}function d(t){return o.\u0275vid(0,[o.\u0275qud(402653184,1,{galleryContainer:0}),o.\u0275qud(671088640,2,{imageElements:1}),(t()(),o.\u0275eld(2,0,[[1,0],["galleryContainer",1]],null,7,"div",[["class","galleryContainer"]],null,null,null,null,null)),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275eld(4,0,null,null,4,"div",[["class","innerGalleryContainer"]],null,null,null,null,null)),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275and(16777216,null,null,1,null,h)),o.\u0275did(7,802816,null,0,i.NgForOf,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),o.\u0275ted(-1,null,["\n "])),(t()(),o.\u0275ted(-1,null,["\n"])),(t()(),o.\u0275ted(-1,null,["\n\n"])),(t()(),o.\u0275eld(11,0,null,null,1,"viewer",[],null,[["document","keydown"]],function(t,e,n){var r=!0;"document:keydown"===e&&(r=!1!==o.\u0275nov(t,12).onKeydown(n)&&r);return r},a.View_ViewerComponent_0,a.RenderType_ViewerComponent)),o.\u0275did(12,49152,null,0,s.ViewerComponent,[u.ImageService],null,null),(t()(),o.\u0275ted(-1,null,["\n"]))],function(t,e){t(e,7,0,e.component.gallery)},null)}function y(t){return o.\u0275vid(0,[(t()(),o.\u0275eld(0,0,null,null,1,"gallery",[],null,[["window","scroll"],["window","resize"]],function(t,e,n){var r=!0;"window:scroll"===e&&(r=!1!==o.\u0275nov(t,1).triggerCycle(n)&&r);"window:resize"===e&&(r=!1!==o.\u0275nov(t,1).windowResize(n)&&r);return r},d,e.RenderType_GalleryComponent)),o.\u0275did(1,770048,null,0,c.GalleryComponent,[u.ImageService,l.Http,o.ChangeDetectorRef],null,null)],function(t,e){t(e,1,0)},null)}e.RenderType_GalleryComponent=o.\u0275crt({encapsulation:0,styles:p,data:{}}),e.View_GalleryComponent_0=d,e.View_GalleryComponent_Host_0=y,e.GalleryComponentNgFactory=o.\u0275ccf("gallery",c.GalleryComponent,y,{providedImageMargin:"flexBorderSize",providedImageSize:"flexImageSize",providedGalleryName:"galleryName",providedMetadataUri:"metadataUri"},{viewerChange:"viewerChange"},[])},OVmG:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("/iUD"),o=n("VwZZ"),i=n("t7NR"),a=n("tLDX"),s=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!n){this.destination=i.a;break}if("object"==typeof n){n instanceof e?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return s(e,t),e.prototype[a.a]=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}(o.a),c=function(t){function e(e,n,o,a){var s;t.call(this),this._parentSubscriber=e;var u=this;Object(r.a)(n)?s=n:n&&(s=n.next,o=n.error,a=n.complete,n!==i.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=o,this._complete=a}return s(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;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;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},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)};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){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},PIsA:function(t,e,n){"use strict";var r=n("AMGY"),o=n("N4j0"),i=n("cQXm"),a=n("dgOU"),s=n("YaPU"),u=n("etqZ"),c=n("OVmG"),l=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return l(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}(c.a),f=n("+CnV");e.a=function(t,e,n,c){var l=new p(t,n,c);if(l.closed)return null;if(e instanceof s.Observable)return e._isScalar?(l.next(e.value),l.complete(),null):(l.syncErrorThrowable=!0,e.subscribe(l));if(Object(o.a)(e)){for(var h=0,d=e.length;h0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r-1},e}(L);it.decorators=[{type:i.Injectable}],it.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]},{type:ot,decorators:[{type:i.Inject,args:[rt]}]}]};var at=["alt","control","meta","shift"],st={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},ut=function(t){function e(e){return t.call(this,e)||this}return r.a(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 s().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(at.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=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),at.forEach(function(r){r!=n&&((0,st[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}(L);ut.decorators=[{type:i.Injectable}],ut.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]}]};var ct=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,lt=/^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 pt(t){return(t=String(t)).match(ct)||t.match(lt)?t:(Object(i.isDevMode)()&&s().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}var ft=null,ht=null;function dt(t){for(var e={},n=0,r=t.split(",");n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=ht.nodeName(t).toLowerCase();Ct.hasOwnProperty(e)&&!gt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Mt(t))},t}();function Pt(t,e){if(e&&ht.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+ht.getOuterHTML(t));return e}var Tt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,At=/([^\#-~ |!])/g;function Mt(t){return t.replace(/&/g,"&").replace(Tt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(At,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Nt(t){ht.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||ht.removeAttribute(t,n)});for(var e=0,n=ht.childNodesAsList(t);e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},Rf9G:function(t,e,n){"use strict";var r=n("g5jc"),o=n("YaPU"),i=n("OVmG"),a=n("VwZZ"),s=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new l(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),l=function(t){function e(e,n){t.call(this,e),this.connectable=n}return s(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}(i.a),p=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},f=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return p(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 a.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed?(this._connection=null,t=a.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u()(this)},e}(o.Observable).prototype,h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},d=function(t){function e(e,n){t.call(this,e),this.connectable=n}return p(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}(r.SubjectSubscriber);i.a;var y=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function g(){return new r.Subject}function m(){return function(t){return u()((e=g,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new y(r,n));var o=Object.create(t,h);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}e.a=function(){return m()(this)}},TILf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YaPU"),o=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return o(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(r.Observable)},TToO:function(t,e,n){"use strict";e.a=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};var 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])};Object.assign},Um43:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AnimationBuilder",function(){return r}),n.d(e,"AnimationFactory",function(){return o}),n.d(e,"AUTO_STYLE",function(){return i}),n.d(e,"animate",function(){return s}),n.d(e,"animateChild",function(){return y}),n.d(e,"animation",function(){return d}),n.d(e,"group",function(){return u}),n.d(e,"keyframes",function(){return f}),n.d(e,"query",function(){return m}),n.d(e,"sequence",function(){return c}),n.d(e,"stagger",function(){return v}),n.d(e,"state",function(){return p}),n.d(e,"style",function(){return l}),n.d(e,"transition",function(){return h}),n.d(e,"trigger",function(){return a}),n.d(e,"useAnimation",function(){return g}),n.d(e,"NoopAnimationPlayer",function(){return _}),n.d(e,"\u0275AnimationGroupPlayer",function(){return w}),n.d(e,"\u0275PRE_STYLE",function(){return C});var r=function(){function t(){}return t.prototype.build=function(t){},t}(),o=function(){function t(){}return t.prototype.create=function(t,e){},t}(),i="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function u(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function c(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function p(t,e,n){return{type:0,name:t,styles:e,options:n}}function f(t){return{type:5,steps:t}}function h(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function d(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}}function y(t){return void 0===t&&(t=null),{type:9,options:t}}function g(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}}function m(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function v(t,e){return{type:12,timings:t,animation:e}}function b(t){Promise.resolve(null).then(t)}var _=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this.triggerMicrotask(),this._onStart()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;b(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t}(),w=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0;var n=0,r=0,o=0,i=this._players.length;0==i?b(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=i&&e._onFinish()}),t.onDestroy(function(){++r>=i&&e._onDestroy()}),t.onStart(function(){++o>=i&&e._onStart()})}),this.totalTime=this._players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this._players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t}(),C="!"},Uw6n:function(t,e,n){"use strict";var r=n("OVmG"),o=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}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}(r.a);e.a=function(t,e){return function(t,e){return function(n){return n.lift(new i(t,e))}}(t,e)(this)}},Veqx:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("YaPU"),o=n("TILf"),i=n("+3/4"),a=n("1Q68"),s=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return s(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n1?new e(t,r):1===s?new o.a(t[0],r):new i.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;n>=r?o.complete():(o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;iMath.abs(r)},t.prototype.calcRowHeight=function(t){var e=this.calcOriginalRowWidth(t),n=(this.getGalleryWidth()-(t.length-1)*this.calcImageMargin())/e;return t[0][this.minimalQualityCategory].height*n},t.prototype.calcImageMargin=function(){var t=this.getGalleryWidth()/1920;return Math.round(Math.max(1,this.providedImageMargin*t))},t.prototype.calcOriginalRowWidth=function(t){var e=this,n=0;return t.forEach(function(t){var r=e.calcIdealHeight()/t[e.minimalQualityCategory].height;t[e.minimalQualityCategory].width=t[e.minimalQualityCategory].width*r,t[e.minimalQualityCategory].height=e.calcIdealHeight(),n+=t[e.minimalQualityCategory].width}),n},t.prototype.calcIdealHeight=function(){return this.getGalleryWidth()/(80/this.providedImageSize)+100},t.prototype.getGalleryWidth=function(){return 0===this.galleryContainer.nativeElement.clientWidth?this.galleryContainer.nativeElement.scrollWidth:this.galleryContainer.nativeElement.clientWidth},t.prototype.scaleGallery=function(){var t=this,e=0,n=0;this.gallery.forEach(function(r){var o=t.calcOriginalRowWidth(r);if(r!==t.gallery[t.gallery.length-1]){var i=(t.getGalleryWidth()-(r.length-1)*t.calcImageMargin())/o;r.forEach(function(r){r.width=r[t.minimalQualityCategory].width*i,r.height=r[t.minimalQualityCategory].height*i,n=Math.max(n,r.height),t.checkForAsyncLoading(r,e++)})}else r.forEach(function(r){r.width=r[t.minimalQualityCategory].width,r.height=r[t.minimalQualityCategory].height,n=Math.max(n,r.height),t.checkForAsyncLoading(r,e++)})}),this.minimalQualityCategory=n>375?"preview_xs":"preview_xxs",this.ChangeDetectorRef.detectChanges()},t.prototype.checkForAsyncLoading=function(t,e){var n=this.imageElements.toArray();t.galleryImageLoaded||n.length>0&&this.isScrolledIntoView(n[e].nativeElement)?(t.galleryImageLoaded=!0,t.srcAfterFocus=t[this.minimalQualityCategory].path):t.srcAfterFocus=""},t.prototype.isScrolledIntoView=function(t){var e=t.getBoundingClientRect().top,n=t.getBoundingClientRect().bottom;return e=0&&(n>0||e>0)},t}();a.decorators=[{type:r.Component,args:[{selector:"gallery",template:'
',styles:[".innerGalleryContainer{position:relative}.galleryContainer{height:100%;width:100%;overflow:hidden}.galleryContainer img:last-child{margin-right:-1px!important}.galleryContainer img:hover{-webkit-filter:brightness(50%);filter:brightness(50%);transition:all ease-out .2s;cursor:pointer}.imagerow{margin-right:1px;overflow:hidden;display:flex}::-webkit-scrollbar{display:none}.asyncLoadingContainer{position:absolute;background-color:transparent;height:0;width:0;bottom:120px}"]}]}],a.ctorParameters=function(){return[{type:i.ImageService},{type:o.Http},{type:r.ChangeDetectorRef}]},a.propDecorators={providedImageMargin:[{type:r.Input,args:["flexBorderSize"]}],providedImageSize:[{type:r.Input,args:["flexImageSize"]}],providedGalleryName:[{type:r.Input,args:["galleryName"]}],providedMetadataUri:[{type:r.Input,args:["metadataUri"]}],viewerChange:[{type:r.Output}],galleryContainer:[{type:r.ViewChild,args:["galleryContainer"]}],imageElements:[{type:r.ViewChildren,args:["imageElement"]}],triggerCycle:[{type:r.HostListener,args:["window:scroll",["$event"]]}],windowResize:[{type:r.HostListener,args:["window:resize",["$event"]]}]},e.GalleryComponent=a},g5jc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("YaPU"),o=n("OVmG"),i=n("VwZZ"),a=n("x6VL"),s=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return s(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}(i.a),c=n("tLDX");n.d(e,"SubjectSubscriber",function(){return p}),n.d(e,"Subject",function(){return f}),n.d(e,"AnonymousSubject",function(){return h});var l=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},p=function(t){function e(e){t.call(this,e),this.destination=e}return l(e,t),e}(o.a),f=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return l(e,t),e.prototype[c.a]=function(){return new p(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o