@angular/flex-layout
Version:
Angular Flex-Layout
9 lines • 85.5 kB
JavaScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/coercion"),require("@angular/platform-browser"),require("@angular/cdk/bidi")):"function"==typeof define&&define.amd?define("@angular/flex-layout",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/cdk/coercion","@angular/platform-browser","@angular/cdk/bidi"],e):e((t.ng=t.ng||{},t.ng.flexLayout={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.ng.cdk.coercion,t.ng.platformBrowser,t.ng.cdk.bidi)}(this,function(t,e,n,r,i,o,a,s){"use strict";function l(t,e){function n(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function u(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function c(t,e){return function(){if(n.isPlatformBrowser(e)){var r=/\bflex-layout-.+?\b/g;Array.from(t.querySelectorAll("[class*="+nt+"]")).forEach(function(t){t.classList.contains(nt+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(r,"")})}}}function d(t,e){return t=t?t.clone():new it,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}function p(t){var e=g(t);return y(e[0],e[1],e[2])}function g(t){t=t?t.toLowerCase():"";var e=t.split(" "),n=e[0],r=e[1],i=e[2];return dt.find(function(t){return t===n})||(n=dt[0]),r===ct&&(r=i!==ct?i:"",i=ct),[n,f(r),!!i]}function f(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function y(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}function m(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}function x(t){return t.replace(bt,"|").split("|").map(m).join("")}function v(t){return t.forEach(function(t){t.suffix||(t.suffix=x(t.alias),t.overlapping=!!t.overlapping)}),t}function b(t,e){void 0===e&&(e=[]);var n={};return t.forEach(function(t){n[t.alias]=t}),e.forEach(function(t){n[t.alias]?h(n[t.alias],t):n[t.alias]=t}),v(Object.keys(n).map(function(t){return n[t]}))}function w(t,e){var n=t?t.priority||0:0;return(e?e.priority||0:0)-n}function A(t,e){return(t.priority||0)-(e.priority||0)}function E(t,e){var n=t.filter(function(t){return!It[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var o="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n";i.appendChild(e.createTextNode(o))}e.head.appendChild(i),n.forEach(function(t){return It[t]=i})}catch(t){console.error(t)}}}function I(t,e){return e&&!!window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}function S(t){return!!t&&t.mediaQuery.startsWith(jt)}function C(t){return Array.isArray(t)?t:[t]}function k(t,e){var n=e.findByAlias(t)||e.findByQuery(t);return n?n.mediaQuery:t}function j(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function _(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}function R(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var r=[e,n,t],i=t.indexOf("calc");if(i>0){r[2]=O(t.substring(i).trim());var o=t.substr(0,i).trim().split(" ");2==o.length&&(r[0]=o[0],r[1]=o[1])}else if(0==i)r[2]=O(t.trim());else{var o=t.split(" ");r=3===o.length?o:[e,n,t]}return r}function O(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function M(t,e,n,r){if(void 0!==r){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}}function D(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function P(t,e){return void 0===e&&(e=";"),String(t).trim().split(e).map(function(t){return t.trim()}).filter(function(t){return""!==t})}function L(t,e){var n=function(t){return e&&(t.value=e(t.value)),t};return t.map(B).filter(function(t){return!!t}).map(n).reduce(T,{})}function F(t,e){var n=[];return"set"===D(t)?t.forEach(function(t){return n.push(t)}):Object.keys(t).forEach(function(e){n.push(e+":"+t[e])}),L(n,e)}function B(t){var e=t.split(":"),n=e[0],r=e.slice(1);return new $t(n,r.join(":"))}function T(t,e){return e.key&&(t[e.key]=e.value),t}function V(t,e){var n=function(t){return e&&(t.value=e(t.value)),t};return t.map(B).filter(function(t){return!!t}).map(n).reduce(T,{})}function G(t){var e=Q(t);return W(e[0],e[1],e[2])}function Q(t){t=t?t.toLowerCase():"";var e=t.split(" "),n=e[0],r=e[1],i=e[2];return re.find(function(t){return t===n})||(n=re[0]),r===ne&&(r=i!==ne?i:"",i=ne),[n,H(r),!!i]}function N(t){return Q(t)[0].indexOf("row")>-1}function H(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function W(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}function K(t,e){var n="0px",r=t,i="0px";return"rtl"===e?i=t:n=t,{padding:"0px "+n+" "+r+" "+i}}function U(t,e){var n="0px",r="-"+t,i="0px";return"rtl"===e?i="-"+t:n="-"+t,{margin:"0px "+n+" "+r+" "+i}}function Y(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function z(t,e){var n=Y(e.directionality,e.layout),r=tt({},ue);return r[n]=t,r}function q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}function $(t){void 0===t&&(t="");var e={},n=t.split(" "),r=n[0],i=n[1];switch(r){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]=cn}switch(i){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]=dn}return e}function Z(t,e){var n={},r=t.split(" "),i=r[0],o=r[1];switch(i){case"center":n["align-content"]="center";break;case"space-around":n["align-content"]="space-around";break;case"space-between":n["align-content"]="space-between";break;case"space-evenly":n["align-content"]="space-evenly";break;case"end":n["align-content"]="end";break;case"start":n["align-content"]="start";break;case"stretch":n["align-content"]="stretch";break;default:n["align-content"]=mn}switch(o){case"start":n["align-items"]="start";break;case"center":n["align-items"]="center";break;case"end":n["align-items"]="end";break;case"stretch":n["align-items"]="stretch";break;default:n["align-items"]=xn}return n.display=e?"inline-grid":"grid",n}function J(t,e){var n={},r=t.split(" "),i=r[0],o=r[1];switch(i){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":n["justify-content"]=i;break;default:n["justify-content"]=Sn}switch(o){case"start":case"center":case"end":case"stretch":n["justify-items"]=o;break;default:n["justify-items"]=Cn}return n.display=e?"inline-grid":"grid",n}var X=function(t,e){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},tt=function(){return tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},tt.apply(this,arguments)},et={provide:e.APP_BOOTSTRAP_LISTENER,useFactory:c,deps:[n.DOCUMENT,e.PLATFORM_ID],multi:!0},nt="flex-layout-",rt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[et]}]}],t}(),it=function(){function t(t,e,n,r,i){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r,this.priority=i,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),ot=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),at={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},st=new e.InjectionToken("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return at}}),lt=new e.InjectionToken("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),ut=new e.InjectionToken("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),ct="inline",dt=["row","column","row-reverse","column-reverse"],pt=function(){function t(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new r.Subject,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach(function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split(".").slice(1).join("."),i=t[n].currentValue;e.setValue(i,r)}})},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(t);i&&r||(i=n.buildStyles(t,e),r&&this.styleCache.set(t,i)),this.mru=tt({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach(function(e){t.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),r=n[0];if(!n[1]&&e){var i=p(r),o=[t];this.styler.applyStyleToElements(i,o)}return r.trim()}return"row"},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.addStyles(t)},t}(),gt=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ft="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",yt="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",ht="(orientation: portrait) and (min-width: 840px)",mt="(orientation: landscape) and (min-width: 1280px)",xt={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:ft+" , "+yt,WEB:ht+", "+mt+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:ft+" ",WEB_PORTRAIT:""+ht,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)]",TABLET_LANDSCAPE:""+yt,WEB_LANDSCAPE:""+mt},vt=[{alias:"handset",priority:2e3,mediaQuery:xt.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:xt.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:xt.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:xt.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:xt.TABLET},{alias:"tablet.portrait",priority:2100,mediaQuery:xt.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:xt.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:xt.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:xt.WEB_PORTRAIT,overlapping:!0}],bt=/(\.|-|_)/g,wt=new e.InjectionToken("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=e.inject(ut),n=e.inject(st),r=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return b((n.disableDefaultBps?[]:gt).concat(n.addOrientationBps?vt:[]),r)}}),At=function(){function t(t){this.findByMap=new Map,this.items=u(t).sort(A)}return t.prototype.findByAlias=function(t){return t?this.findWithPredicate(t,function(e){return e.alias==t}):null},t.prototype.findByQuery=function(t){return this.findWithPredicate(t,function(e){return e.mediaQuery==t})},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this.items.filter(function(t){return 1==t.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this.items.map(function(t){return t.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this.items.map(function(t){return t.suffix?t.suffix:""})},enumerable:!0,configurable:!0}),t.prototype.findWithPredicate=function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[wt]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(wt))},token:t,providedIn:"root"}),t}(),Et=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new r.BehaviorSubject(new it(!0)),this.registry=new Map,this._observable$=this.source.asObservable()}return Object.defineProperty(t.prototype,"activations",{get:function(){var t=[];return this.registry.forEach(function(e,n){e.matches&&t.push(n)}),t},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this.registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t,e){var n=this;if(void 0===e&&(e=!1),t&&t.length){var o=this._observable$.pipe(i.filter(function(n){return!e||t.indexOf(n.mediaQuery)>-1})),a=new r.Observable(function(e){var r=n.registerQuery(t);if(r.length){var i=r.pop();r.forEach(function(t){e.next(t)}),n.source.next(i)}e.complete()});return r.merge(a,o)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return E(n,this._document),n.forEach(function(t){var n=function(n){e._zone.run(function(){return e.source.next(new it(n.matches,t))})},i=e.registry.get(t);i||(i=e.buildMQL(t),i.addListener(n),e.registry.set(t,i)),i.matches&&r.push(new it(!0,t))}),r},t.prototype.buildMQL=function(t){return I(t,n.isPlatformBrowser(this._platformId))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.NgZone),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(n.DOCUMENT))},token:t,providedIn:"root"}),t}(),It={},St=function(t){function r(e,n,r,i){var o=t.call(this,e,n,r)||this;return o._breakpoints=i,o.autoRegisterQueries=!0,o.useOverlaps=!1,o}return l(r,t),r.prototype.clearAll=function(){this.registry.forEach(function(t){t.destroy()}),this.registry.clear(),this.useOverlaps=!1},r.prototype.activate=function(t,e){return void 0===e&&(e=!1),e=e||this.useOverlaps,t=this._validateQuery(t),!e&&this.isActive(t)||(this._deactivateAll(),this._registerMediaQuery(t),this._activateWithOverlaps(t,e)),this.hasActivated},r.prototype._validateQuery=function(t){var e=this._breakpoints.findByAlias(t);return e&&e.mediaQuery||t},r.prototype._activateWithOverlaps=function(t,e){if(e){var n=this._breakpoints.findByQuery(t),r=n?n.alias:"unknown";switch(r){case"lg":this._activateByAlias("lt-xl");break;case"md":this._activateByAlias("lt-xl, lt-lg");break;case"sm":this._activateByAlias("lt-xl, lt-lg, lt-md");break;case"xs":this._activateByAlias("lt-xl, lt-lg, lt-md, lt-sm")}switch(r){case"xl":this._activateByAlias("gt-lg, gt-md, gt-sm, gt-xs");break;case"lg":this._activateByAlias("gt-md, gt-sm, gt-xs");break;case"md":this._activateByAlias("gt-sm, gt-xs");break;case"sm":this._activateByAlias("gt-xs")}}return this._activateByQuery(t)},r.prototype._activateByAlias=function(t){var e=this,n=function(t){var n=e._breakpoints.findByAlias(t);e._activateByQuery(n?n.mediaQuery:t)};t.split(",").forEach(function(t){return n(t.trim())})},r.prototype._activateByQuery=function(t){var e=this.registry.get(t);return e&&!this.isActive(t)&&this.registry.set(t,e.activate()),this.hasActivated},r.prototype._deactivateAll=function(){return this.registry.forEach(function(t){t.deactivate()}),this},r.prototype._registerMediaQuery=function(t){!this.registry.has(t)&&this.autoRegisterQueries&&this.registerQuery(t)},r.prototype.buildMQL=function(t){return new Ct(t)},Object.defineProperty(r.prototype,"hasActivated",{get:function(){return this.activations.length>0},enumerable:!0,configurable:!0}),r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:e.NgZone},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:At}]},r}(Et),Ct=function(){function t(t){this._mediaQuery=t,this._isActive=!1,this._listeners=[],this.onchange=null}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._isActive},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"media",{get:function(){return this._mediaQuery},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.deactivate(),this._listeners=[]},t.prototype.activate=function(){var t=this;return this._isActive||(this._isActive=!0,this._listeners.forEach(function(e){e.call(null,t)})),this},t.prototype.deactivate=function(){var t=this;return this._isActive&&(this._isActive=!1,this._listeners.forEach(function(e){e.call(null,t)})),this},t.prototype.addListener=function(t){if(-1===this._listeners.indexOf(t)&&this._listeners.push(t),this._isActive){t.call(null,this)}},t.prototype.removeListener=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.removeEventListener=function(t,e,n){},t.prototype.dispatchEvent=function(t){return!1},t}(),kt={provide:Et,useClass:St},jt="print",_t={alias:jt,mediaQuery:jt,priority:1e3},Rt=function(){function t(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.isPrinting=!1,this.queue=new Ot,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return u(t,[jt])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith(jt)},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map(function(e){return t.breakpoints.findByAlias(e)}).filter(function(t){return null!==t})},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=t.mediaQuery,n=this.breakpoints.findByQuery(e);return(n?u(this.printBreakPoints,[n]):this.printBreakPoints).sort(w)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),d(t,e)},t.prototype.registerBeforeAfterPrintHooks=function(t){var e=this;this._document.defaultView&&!this.registeredBeforeAfterPrintHooks&&(this.registeredBeforeAfterPrintHooks=!0,this._document.defaultView.addEventListener("beforeprint",function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new it(!0,jt))),t.updateStyles())}),this._document.defaultView.addEventListener("afterprint",function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())}))},t.prototype.interceptEvents=function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(w))}},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:void 0,decorators:[{type:e.Inject,args:[st]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(st),e.ɵɵinject(n.DOCUMENT))},token:t,providedIn:"root"}),t}(),Ot=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(_t),t.sort(w),t.forEach(function(t){return e.addBreakpoint(t)}),this.printBreakpoints},t.prototype.addBreakpoint=function(t){if(t){void 0===this.printBreakpoints.find(function(e){return e.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=S(t)?u([t],this.printBreakpoints):u(this.printBreakpoints,[t]))}},t.prototype.clear=function(){this.printBreakpoints=[]},t}(),Mt=function(){function t(t,e,n){this.breakpoints=t,this.matchMedia=e,this.hook=n,this.filterOverlaps=!1,this.destroyed$=new r.Subject,this._media$=this.watchActivations(),this.media$=this._media$.pipe(i.filter(function(t){return t.length>0}),i.map(function(t){return t[0]}))}return t.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},t.prototype.asObservable=function(){return this._media$},t.prototype.isActive=function(t){var e=this;return j(C(t)).some(function(t){var n=k(t,e.breakpoints);return e.matchMedia.isActive(n)})},t.prototype.watchActivations=function(){var t=this.breakpoints.items.map(function(t){return t.mediaQuery});return this.buildObservable(t)},t.prototype.buildObservable=function(t){var e=this,n=function(t){var e=function(t){return t.mediaQuery.length>0};return t.filter(e).length>0},o=function(t){return e.filterOverlaps?t.filter(function(t){var n=e.breakpoints.findByQuery(t.mediaQuery);return!n||!n.overlapping}):t};return this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(i.filter(function(t){return t.matches}),i.debounceTime(0,r.asapScheduler),i.switchMap(function(t){return r.of(e.findAllActivations())}),i.map(o),i.filter(n),i.takeUntil(this.destroyed$))},t.prototype.findAllActivations=function(){var t=this,e=function(e){return d(e,t.breakpoints.findByQuery(e.mediaQuery))},n=function(e){return t.hook.isPrintEvent(e)?t.hook.updateEvent(e):e};return this.matchMedia.activations.map(function(t){return new it(!0,t)}).map(n).map(e).sort(w)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:Et},{type:Rt}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(Et),e.ɵɵinject(Rt))},token:t,providedIn:"root"}),t}(),Dt=function(){function t(t,e,n,r,i){this.breakpoints=t,this.matchMedia=e,this.layoutConfig=n,this._platformId=r,this._document=i,this.hasCachedRegistryMatches=!1,this.originalActivations=[],this.originalRegistry=new Map}return t.prototype.activate=function(t){t=t.map(function(t){return t.trim()}),this.saveActivations(),this.deactivateAll(),this.setActivations(t),this.prepareAutoRestore()},t.prototype.restore=function(){if(this.hasCachedRegistryMatches){var t=function(t){return t.mediaQuery},e=this.originalActivations.map(t);try{this.deactivateAll(),this.restoreRegistryMatches(),this.setActivations(e)}finally{this.originalActivations=[],this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}},t.prototype.prepareAutoRestore=function(){if(n.isPlatformBrowser(this._platformId)&&this._document&&this.layoutConfig.mediaTriggerAutoRestore){var t=r.fromEvent(window,"resize").pipe(i.take(1));this.resizeSubscription=t.subscribe(this.restore.bind(this))}},t.prototype.deactivateAll=function(){var t=this.currentActivations;this.forceRegistryMatches(t,!1),this.simulateMediaChanges(t,!1)},t.prototype.saveActivations=function(){var t=this;if(!this.hasCachedRegistryMatches){var e=function(t){return new it(!0,t)},n=function(e){return d(e,t.breakpoints.findByQuery(e.mediaQuery))};this.originalActivations=this.currentActivations.map(e).map(n).sort(w),this.cacheRegistryMatches()}},t.prototype.setActivations=function(t){this.originalRegistry&&this.forceRegistryMatches(t,!0),this.simulateMediaChanges(t)},t.prototype.simulateMediaChanges=function(t,e){var n=this;void 0===e&&(e=!0);var r=function(t){var e=n.breakpoints,r=e.findByAlias(t)||e.findByQuery(t);return r?r.mediaQuery:t},i=function(t){return n.emitChangeEvent(e,t)};t.map(r).forEach(i)},t.prototype.forceRegistryMatches=function(t,e){var n=new Map;t.forEach(function(t){n.set(t,{matches:e})}),this.matchMedia.registry=n},t.prototype.cacheRegistryMatches=function(){var t=this.originalRegistry;t.clear(),this.matchMedia.registry.forEach(function(e,n){t.set(n,e)}),this.hasCachedRegistryMatches=!0},t.prototype.restoreRegistryMatches=function(){var t=this.matchMedia.registry;t.clear(),this.originalRegistry.forEach(function(e,n){t.set(n,e)}),this.originalRegistry.clear(),this.hasCachedRegistryMatches=!1},t.prototype.emitChangeEvent=function(t,e){this.matchMedia.source.next(new it(t,e))},Object.defineProperty(t.prototype,"currentActivations",{get:function(){return this.matchMedia.activations},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:Et},{type:void 0,decorators:[{type:e.Inject,args:[st]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(Et),e.ɵɵinject(st),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(n.DOCUMENT))},token:t,providedIn:"root"}),t}(),Pt=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:_(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:_(t);e.forEach(function(t){n._applyMultiValueStyleToElement(r,t)})},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction"),r=this.lookupInlineStyle(t,"flex-direction")||n.isPlatformServer(this._platformId)&&this._serverModuleLoaded?e:"";return[e||"row",r]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return n.isPlatformBrowser(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,r){void 0===r&&(r=!1);var i="";if(t){(i=this.lookupInlineStyle(t,e))||(n.isPlatformBrowser(this._platformId)?r||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))}return i?i.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var r=this;Object.keys(t).sort().forEach(function(i){var o=t[i],a=Array.isArray(o)?o:[o];a.sort();for(var s=0,l=a;s<l.length;s++){var u=l[s];u=u?u+"":"",n.isPlatformBrowser(r._platformId)||!r._serverModuleLoaded?n.isPlatformBrowser(r._platformId)?e.style.setProperty(i,u):r._setServerStyle(e,i,u):r._serverStylesheet.addStyleToElement(e,i,u)}})},t.prototype._setServerStyle=function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var r=this._readStyleAttribute(t);r[e]=n||"",this._writeStyleAttribute(t,r)},t.prototype._getServerStyle=function(t,e){
return this._readStyleAttribute(t)[e]||""},t.prototype._readStyleAttribute=function(t){var e={},n=t.getAttribute("style");if(n)for(var r=n.split(/;+/g),i=0;i<r.length;i++){var o=r[i].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);var s=o.substr(0,a).trim();e[s]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e){e[r]&&(n+=r+":"+e[r]+";")}t.setAttribute("style",n)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:ot},{type:Boolean,decorators:[{type:e.Inject,args:[lt]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[st]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(ot),e.ɵɵinject(lt),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(st))},token:t,providedIn:"root"}),t}(),Lt=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}(),Ft=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new r.Subject,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&(t=d(t,e),t.matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(w),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(w),this.updateStyles()))},t.prototype.init=function(t,e,n,r,i){void 0===i&&(i=[]),M(this.updateMap,t,e,n),M(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)},t.prototype.getValue=function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(i.filter(function(n){return n.element===t&&n.key===e}))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach(function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach(function(e,i){t.updateElement(n,i,e),r.delete(i)}),r.forEach(function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)})})},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach(function(t){return t.unsubscribe()}),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach(function(t,e){return n.delete(e)}),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach(function(e,r){return n.updateElement(t,r,e)}))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var i=this;if(n&&n.length){var o=this.watcherMap.get(t);o||(o=new Map,this.watcherMap.set(t,o));if(!o.get(e)){var a=r.merge.apply(void 0,n).subscribe(function(){var n=i.getValue(t,e);i.updateElement(t,e,n)});o.set(e,a)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n<this.activatedBreakpoints.length;n++){var r=this.activatedBreakpoints[n],i=t.get(r.alias);if(i&&(void 0===e||i.has(e)))return i}var o=t.get("");return void 0===e||o&&o.has(e)?o:void 0},t.prototype.observeActivations=function(){var t=this,e=this.breakpoints.items.map(function(t){return t.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(i.tap(this.hook.interceptEvents(t)),i.filter(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:Et},{type:At},{type:Rt}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(Et),e.ɵɵinject(At),e.ɵɵinject(Rt))},token:t,providedIn:"root"}),t}(),Bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{content:t?"url("+t+")":""}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Lt),Tt=function(t){function r(e,r,i,o,a,s){var l=t.call(this,e,r,i,o)||this;return l.platformId=a,l.serverModuleLoaded=s,l.DIRECTIVE_KEY="img-src",l.defaultSrc="",l.styleCache=Vt,l.init(),l.setValue(l.nativeElement.getAttribute("src")||"",""),n.isPlatformServer(l.platformId)&&l.serverModuleLoaded&&l.nativeElement.setAttribute("src",""),l}return l(r,t),Object.defineProperty(r.prototype,"src",{set:function(t){this.defaultSrc=t,this.setValue(this.defaultSrc,"")},enumerable:!0,configurable:!0}),r.prototype.updateWithValue=function(t){var e=t||this.defaultSrc;n.isPlatformServer(this.platformId)&&this.serverModuleLoaded?this.addStyles(e):this.nativeElement.setAttribute("src",e)},r.decorators=[{type:e.Directive}],r.ctorParameters=function(){return[{type:e.ElementRef},{type:Bt},{type:Pt},{type:Ft},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:e.Inject,args:[lt]}]}]},r.propDecorators={src:[{type:e.Input,args:["src"]}]},r}(pt),Vt=new Map,Gt=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"],Qt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Gt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n img[src.xs], img[src.sm], img[src.md], img[src.lg], img[src.xl],\n img[src.lt-sm], img[src.lt-md], img[src.lt-lg], img[src.lt-xl],\n img[src.gt-xs], img[src.gt-sm], img[src.gt-md], img[src.gt-lg]\n",inputs:Gt}]}],n}(Tt),Nt=function(t){function r(e,r,i,o,a,s,l){var u=t.call(this,e,null,r,i)||this;return u.ngClassInstance=l,u.DIRECTIVE_KEY="ngClass",u.ngClassInstance||(u.ngClassInstance=new n.NgClass(o,a,e,s)),u.init(),u.setValue("",""),u}return l(r,t),Object.defineProperty(r.prototype,"klass",{set:function(t){this.ngClassInstance.klass=t,this.setValue(t,"")},enumerable:!0,configurable:!0}),r.prototype.updateWithValue=function(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()},r.prototype.ngDoCheck=function(){this.ngClassInstance.ngDoCheck()},r.decorators=[{type:e.Directive}],r.ctorParameters=function(){return[{type:e.ElementRef},{type:Pt},{type:Ft},{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.Renderer2},{type:n.NgClass,decorators:[{type:e.Optional},{type:e.Self}]}]},r.propDecorators={klass:[{type:e.Input,args:["class"]}]},r}(pt),Ht=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],Wt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Ht,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl],\n [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl],\n [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]\n",inputs:Ht}]}],n}(Nt),Kt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){return{display:"true"===t?e.display:"none"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Lt),Ut=function(t){function r(e,n,r,i,o,a,s){var l=t.call(this,e,n,r,i)||this;return l.layoutConfig=o,l.platformId=a,l.serverModuleLoaded=s,l.DIRECTIVE_KEY="show-hide",l.display="",l.hasLayout=!1,l.hasFlexChild=!1,l}return l(r,t),r.prototype.ngAfterViewInit=function(){this.trackExtraTriggers();for(var t=Array.from(this.nativeElement.children),e=0;e<t.length;e++)if(this.marshal.hasValue(t[e],"flex")){this.hasFlexChild=!0;break}Yt.has(this.nativeElement)?this.display=Yt.get(this.nativeElement):(this.display=this.getDisplayStyle(),Yt.set(this.nativeElement,this.display)),this.init();var n=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===n||""===n?this.setValue(!0,""):this.triggerUpdate()},r.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach(function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split("."),i=r.slice(1).join("."),a=t[n].currentValue,s=""===a||0!==a&&o.coerceBooleanProperty(a);"fxHide"===r[0]&&(s=!s),e.setValue(s,i)}})},r.prototype.trackExtraTriggers=function(){var t=this;this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(function(e){t.marshal.trackValue(t.nativeElement,e).pipe(i.takeUntil(t.destroySubject)).subscribe(t.triggerUpdate.bind(t))})},r.prototype.getDisplayStyle=function(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)},r.prototype.updateWithValue=function(t){void 0===t&&(t=!0),""!==t&&(this.addStyles(t?"true":"false",{display:this.display}),n.isPlatformServer(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap"))},r.decorators=[{type:e.Directive}],r.ctorParameters=function(){return[{type:e.ElementRef},{type:Kt},{type:Pt},{type:Ft},{type:void 0,decorators:[{type:e.Inject,args:[st]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:e.Inject,args:[lt]}]}]},r}(pt),Yt=new WeakMap,zt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],qt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=zt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxShow], [fxShow.print],\n [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl],\n [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl],\n [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg],\n [fxHide], [fxHide.print],\n [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl],\n [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl],\n [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]\n",inputs:zt}]}],n}(Ut),$t=function(){function t(t,e,n){void 0===n&&(n=!0),this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}return t}(),Zt=function(t){function r(e,r,i,o,a,s,l,u,c){var d=t.call(this,e,null,r,i)||this;d.sanitizer=o,d.ngStyleInstance=l,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new n.NgStyle(e,a,s)),d.init();var p=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(p),d.isServer=u&&n.isPlatformServer(c),d}return l(r,t),r.prototype.updateWithValue=function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=tt(tt({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()},r.prototype.clearStyles=function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()},r.prototype.buildStyleMap=function(t){var n=this,r=function(t){return n.sanitizer.sanitize(e.SecurityContext.STYLE,t)||""};if(t)switch(D(t)){case"string":return V(P(t),r);case"array":return V(t,r);case"set":default:return F(t,r)}return{}},r.prototype.ngDoCheck=function(){this.ngStyleInstance.ngDoCheck()},r.decorators=[{type:e.Directive}],r.ctorParameters=function(){return[{type:e.ElementRef},{type:Pt},{type:Ft},{type:a.DomSanitizer},{type:e.KeyValueDiffers},{type:e.Renderer2},{type:n.NgStyle,decorators:[{type:e.Optional},{type:e.Self}]},{type:Boolean,decorators:[{type:e.Inject,args:[lt]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},r}(pt),Jt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],Xt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Jt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [ngStyle],\n [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl],\n [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl],\n [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]\n",inputs:Jt}]}],n}(Zt),te=[qt,Wt,Xt,Qt],ee=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[rt],declarations:u(te),exports:u(te)}]}],t}(),ne="inline",re=["row","column","row-reverse","column-reverse"],ie=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return G(t)},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Lt),oe=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],ae=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.DIRECTIVE_KEY="layout",o.styleCache=le,o.init(),o}return l(n,t),n.decorators=[{type:e.Directive}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:Pt},{type:ie},{type:Ft}]},n}(pt),se=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=oe,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md],\n [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md],\n [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm],\n [fxLayout.gt-md], [fxLayout.gt-lg]\n",inputs:oe}]}],n}(ae),le=new Map,ue={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},ce=function(t){function n(e){var n=t.call(this)||this;return n._styler=e,n}return l(n,t),n.prototype.buildStyles=function(t,e){return t.endsWith(xe)?(t=t.slice(0,t.indexOf(xe)),U(t,e.directionality)):{}},n.prototype.sideEffect=function(t,e,n){var r=n.items;if(t.endsWith(xe)){t=t.slice(0,t.indexOf(xe));var i=K(t,n.directionality);this._styler.applyStyleToElements(i,n.items)}else{var o=r.pop(),a=z(t,n);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(ue,[o])}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:Pt}]},n.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(Pt))},token:n,providedIn:"root"}),n}(Lt),de=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],pe=function(t){function n(e,n,o,a,s,l){var u=t.call(this,e,s,a,l)||this;u.zone=n,u.directionality=o,u.styleUtils=a,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new r.Subject;var c=[u.directionality.change,u.observerSubject.asObservable()];return u.init(c),u.marshal.trackValue(u.nativeElement,"layout").pipe(i.takeUntil(u.destroySubject)).subscribe(u.onLayoutChange.bind(u)),u}return l(n,t),Object.defineProperty(n.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this.buildChildObservable(),this.triggerUpdate()},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.observer&&this.observer.disconnect()},n.prototype.onLayoutChange=function(t){var e=this,n=t.value,r=n.split(" ");this.layout=r[0],re.find(function(t){return t===e.layout})||(this.layout="row"),this.triggerUpdate()},n.prototype.updateWithValue=function(t){var e=this,n=this.childrenNodes.filter(function(t){return 1===t.nodeType&&e.willDisplay(t)}).sort(function(t,n){var r=+e.styler.lookupStyle(t,"order"),i=+e.styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-