!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@lydemann/ngx-responsive",["exports","@angular/core","rxjs","rxjs/operators","@angular/common"],e):e(((t=t||self).lydemann=t.lydemann||{},t.lydemann["ngx-responsive"]={}),t.ng.core,t.rxjs,t.rxjs.operators,t.ng.common)}(this,(function(t,e,i,r,s){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function o(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function a(t,e,i,r){var s,n=arguments.length,o=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o}function p(t,e){return function(i,r){e(i,r,t)}}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var u={DEBIAN:"Debian",KNOPPIX:"Knoppix",MINT:"Mint",UBUNTU:"Ubuntu",KUBUNTU:"Kubuntu",XUBUNTU:"Xubuntu",LUBUNTU:"Lubuntu",FEDORA:"Fedora",RED_HAT:"Red hat",MANDRIVA:"Mandriva",GENTOO:"Gentoo",SABAYON:"Sabayon",SLACKWARE:"Slackware",SUSE:"Suse",CENT_OS:"CentOS",BACKTRACK:"Backtrack",GENERIC_LINUX:"Generic Linux"},h={WINDOWS_XP:"Windows XP",WINDOWS_VISTA:"Windows Vista",WINDOWS_7:"Windows 7",WINDOWS_8:"Windows 8",WINDOWS_10:"Windows 10",GENERIC_WINDOWS:"Generic Windows"},l={IPAD:"Ipad",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",KINDLE:"Kindle",GENERIC_TABLET:"Generic Tablet"},_={IPHONE:"Iphone",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",BLACKBERRY:"Blackberry",GENERIC_MOBILE:"Generic Mobile"},f={WINDOWS:"Windows",ANDROID:_.ANDROID,WINDOWS_PHONE:_.WINDOWS_PHONE,IOS:"iOS",MAC_OS:"Mac",LINUX:"Linux",FIREFOX_OS:"Firefox OS",CHROME_OS:"Chrome OS"},d={PS4:"Playstation 4",PS3:"Playstation 3",XBOX_ONE:"Xbox One",XBOX:"Xbox",WII:"Wii",WII_U:"Wii U",NINTENDO_3DS:"Nintendo 3DS",PLAYSTATION_VITA:"Playstation Vita",PSP:"PSP"},b={CHROMECAST:"Chromecast",APPLE_TV:"Apple tv",GOOGLE_TV:"Google tv",PS4:d.PS4,XBOX_ONE:d.XBOX_ONE,GENERIC_TV:"Generic smartv"},E={GENERIC_BOT:"Generic Bot"},y={CHROME:"chrome",FIREFOX:"firefox",IE:"ie",SAFARI:"safari",OPERA:"opera",SILK:"silk",YANDEX:"yandex",NA:"NA"},v={ANDROID:{REG:/(android);?[\s\/]+([\d.]+)?/,VALUE:_.ANDROID},IPHONE:{REG:/(iphone\sos)\s([\d_]+)/,VALUE:_.IPHONE},WINDOWS_PHONE:{REG:/windows phone ([\d.]+)/,VALUE:_.WINDOWS_PHONE},BLACKBERRY:{REG:/(blackBerry).*version\/([\d.]+)/,VALUE:_.BLACKBERRY},BB10:{REG:/(bb10).*version\/([\d.]+)/,VALUE:_.BLACKBERRY},WEB_OS:{REG:/(webos|hpwos)[\s\/]([\d.]+)/,VALUE:_.GENERIC_MOBILE},IPOD:{REG:/(ipod)(.*os\s([\d_]+))?/,VALUE:_.IPHONE},FIREFOX_OS:{REG:/\((?:mobile|tablet); rv:([\d.]+)\).*firefox\/[\d.]+/,VALUE:_.GENERIC_MOBILE},MOBI:{REG:/[^-]mobi/i,VALUE:_.GENERIC_MOBILE},GENERIC_REG_1:{REG:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,VALUE:_.GENERIC_MOBILE},GENERIC_REG_2:{REG:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,VALUE:_.GENERIC_MOBILE}},R={IPAD:{REG:/(ipad).*os\s([\d_]+)/,VALUE:l.IPAD},KINDLE:{REG:/kindle|silk|kfapw|kfarwi|kfaswi|kffowi|kfjw|kfmewi|kfot|kfsaw|kfsowi|kftbw|kfthw|kftt|wffowi/i,VALUE:l.KINDLE},TABLET:{REG:/tablet/i,VALUE:l.GENERIC_TABLET},PLAYBOOK:{REG:/rim\stablet|playbook/i,VALUE:l.GENERIC_TABLET}},m={CHROMECAST:{REG:/crkey/i,VALUE:b.CHROMECAST},APPLE_TV:{REG:/appletv/i,VALUE:b.APPLE_TV},GOOGLE_TV:{REG:/(large screen)|googletv/i,VALUE:b.GOOGLE_TV},PS4:{REG:/playstation 4/i,VALUE:b.PS4},XBOX_ONE:{REG:/xbox one/i,VALUE:b.XBOX_ONE},GENERIC_TV:{REG:/tv|smarttv|googletv|crkey|Sharp|THOMSON|THOM|Panasonic|Philips|NETTV|Maple_2011|appletv|Humax|Ikea|Loewe|Medion|hbbtv|pov_tv|Airties|netcast.tv|OWB|Grundig|Arcelik/i,VALUE:b.GENERIC_TV}},I={PS4:{REG:/playstation 4/i,VALUE:d.PS4},PS3:{REG:/playstation 3/i,VALUE:d.PS3},XBOX:{REG:/xbox/i,VALUE:d.XBOX},XBOX_ONE:{REG:/xbox one/i,VALUE:d.XBOX_ONE},WII_U:{REG:/nintendo wiiu/i,VALUE:d.WII_U},WII:{REG:/nintendo wii/i,VALUE:d.WII},PS_VITA:{REG:/playstation vita/i,VALUE:d.PLAYSTATION_VITA},NINTENDO_3DS:{REG:/nintendo 3ds/i,VALUE:d.NINTENDO_3DS},PSP:{REG:/psp/i,VALUE:d.PSP}},w={MS_MSIE:{REG:/msie/i,VALUE:null},MS_TRIDENT:{REG:/trident/i,VALUE:null},MS_EDGE:{REG:/edge/i,VALUE:null}},O={CHROME:{REG:/(chrome|crios)\/([\d.]+)/,VALUE:y.CHROME},FIREFOX:{REG:/firefox|iceweasel|fxios/i,VALUE:y.FIREFOX},WEB_VIEW:{REG:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/,VALUE:y.SAFARI},SAFARI:{REG:/version\/([\d.]+)([^s](safari)|[^m]*(mobile)[^S]*(safari))/,VALUE:y.SAFARI},OPERA:{REG:/opera|opr|opios/i,VALUE:y.OPERA},IE:{REG:/msie|trident|edge/,VALUE:y.IE},SILK:{REG:/silk/i,VALUE:y.SILK},YANDEX:{REG:/yabrowser/i,VALUE:y.YANDEX},NA:{REG:null,VALUE:y.NA}},g={WINDOWS:{REG:/win\d{2}|windows/,VALUE:f.WINDOWS},IOS:{REG:/(ipod|iphone|ipad)/i,VALUE:f.IOS},MAC_OS:{REG:/macintosh/i,VALUE:f.MAC_OS},ANDROID:{REG:/android/i,VALUE:f.ANDROID},LINUX:{REG:/linux/i,VALUE:f.LINUX},FIREFOX_OS:{REG:/\((?:mobile|tablet); rv:([\d.]+)\).*firefox\/[\d.]+/,VALUE:f.FIREFOX_OS},CHROME_OS:{REG:/cros/,VALUE:f.CHROME_OS},WINDOWS_PHONE:{REG:/windows phone/i,VALUE:f.WINDOWS_PHONE}},A={MOZILLA:{REG:/mozilla/,VALUE:null},CHROME:{REG:/chrome/,VALUE:null},WEBKIT:{REG:/webkit/,VALUE:null},APPLE_WEBKIT:{REG:/applewebkit/,VALUE:null},SAFARI:{REG:/safari/,VALUE:null}},D={WINDOWS_3_11:{REG:/win16/,VALUE:h.GENERIC_WINDOWS},WINDOWS_95:{REG:/(windows 95|win95|windows_95)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_ME:{REG:/(win 9x 4.90|windows ME)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_98:{REG:/(windows 98|win98)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_CE:{REG:/windows ce/,VALUE:h.GENERIC_WINDOWS},WINDOWS_2000:{REG:/(windows nt 5.0|windows 2000)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_XP:{REG:/(windows nt 5.1|windows xp)/,VALUE:h.WINDOWS_XP},WINDOWS_SERVER_2003:{REG:/windows nt 5.2/,VALUE:h.GENERIC_WINDOWS},WINDOWS_VISTA:{REG:/windows nt 6.0|Windows Vista/,VALUE:h.WINDOWS_VISTA},WINDOWS_7:{REG:/(windows 7|windows nt 6.1)/,VALUE:h.WINDOWS_7},WINDOWS_8:{REG:/(windows 8|windows 8.1|windows nt 6.2 |windows nt 6.3)/,VALUE:h.WINDOWS_8},WINDOWS_10:{REG:/(windows nt 10.0)/,VALUE:h.WINDOWS_10},WINDOWS_NT_4_0:{REG:/(windows nt 4.0|winnt4.0|winnt|windows nt)/,VALUE:h.GENERIC_WINDOWS}},S={WINDOWS_PHONE_7_5:{REG:/(windows phone os 7.5)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_PHONE_8_1:{REG:/(windows phone 8.1)/,VALUE:h.GENERIC_WINDOWS},WINDOWS_PHONE_10:{REG:/(windows phone 10)/,VALUE:h.GENERIC_WINDOWS}},P={DEBIAN:{REG:/Debian/i,VALUE:u.DEBIAN},KNOPPIX:{REG:/Knoppix/i,VALUE:u.KNOPPIX},MINT:{REG:/Mint/i,VALUE:u.MINT},UBUNTU:{REG:/Ubuntu/i,VALUE:u.UBUNTU},KUBUNTU:{REG:/Kubuntu/i,VALUE:u.KUBUNTU},XUBUNTU:{REG:/Xubuntu/i,VALUE:u.XUBUNTU},LUBUNTU:{REG:/Lubuntu/i,VALUE:u.LUBUNTU},FEDORA:{REG:/Fedora/i,VALUE:u.FEDORA},RED_HAT:{REG:/Red Hat/i,VALUE:u.RED_HAT},MANDRIVA:{REG:/Mandriva/i,VALUE:u.MANDRIVA},GENTOO:{REG:/Gentoo/i,VALUE:u.GENTOO},SABAYON:{REG:/Sabayon/i,VALUE:u.SABAYON},SLACKWARE:{REG:/Slackware/i,VALUE:u.SLACKWARE},SUSE:{REG:/SUSE/i,VALUE:u.SUSE},CENT_OS:{REG:/CentOS/i,VALUE:u.CENT_OS},BACKTRACK:{REG:/BackTrack/i,VALUE:u.BACKTRACK}},N={GENERIC_BOT:{REG:/bot|googlebot|crawler|spider|robot|crawling/i,VALUE:E.GENERIC_BOT}},G={IE_7:"ie 7",IE_8:"ie 8",IE_9:"ie 9",IE_10:"ie 10",IE_11:"ie 11",IE_12:"ie +12"},C={device:null,browser:null,pixelratio:null,ie_version:{name:null,state:null},game_device:{name:null,state:null},smart_tv:{name:null,state:null},desktop:{name:null,state:null},tablet:{name:null,state:null},mobile:{name:null,state:null},window_os:{name:null,state:null},linux_os:{name:null,state:null},bot:null},T=function(){function t(t){this._config=t,this.config=this._config}return t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:["config"]}]}]},t=a([e.Injectable(),p(0,e.Inject("config"))],t)}(),V=function(){function t(t,e){this._platformId=t,this.responsiveConfig=e,this.isServer=s.isPlatformServer(t),this.isBrowser=s.isPlatformBrowser(t)}return t.prototype.isEnabledForPlatform=function(){return this.isBrowser||this.responsiveConfig.config.renderOnServer},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:T,decorators:[{type:e.Inject,args:[T]}]}]},t=a([e.Injectable(),p(0,e.Inject(e.PLATFORM_ID)),p(1,e.Inject(T))],t)}(),W=function(){function t(t,e){if(this._responsiveConfig=e,this._windows={},this._window=null,this._screenWidth=null,this._screenHeight=null,this._userAgent=null,this.isEnabledForPlatform=null,this._forceRefresh$=new i.BehaviorSubject(null),this.isEnabledForPlatform=t.isEnabledForPlatform(),this._window=this.isEnabledForPlatform?window:null,this._screenWidth=this.isEnabledForPlatform?this._window.screen.width:0,this._screenHeight=this.isEnabledForPlatform?this._window.screen.height:0,this._userAgent=this.isEnabledForPlatform?this._window.navigator.userAgent.toLowerCase():null,this.isEnabledForPlatform){var s=i.combineLatest(i.fromEvent(this._window,"resize").pipe(r.debounceTime(this._responsiveConfig.config.debounceTime),r.defaultIfEmpty(),r.startWith(this.getWidth("window"))),this._forceRefresh$).pipe(r.debounceTime(this._responsiveConfig.config.debounceTime)),n=i.fromEvent(this._window,"onload").pipe(r.defaultIfEmpty(),r.startWith(this.getDevicePixelRatio())),o=i.fromEvent(this._window,"onload").pipe(r.defaultIfEmpty(),r.startWith(this.getUserAgent())),a=i.fromEvent(this._window,"onload").pipe(r.defaultIfEmpty(),r.startWith(this.userAgentData())),p=i.fromEvent(this._window,"orientationchange").pipe(r.defaultIfEmpty(),r.startWith(this.getOrientation()));this.elemento$=s.pipe(r.map(this.sizeOperations.bind(this))),this.ancho$=s.pipe(r.map(this.sizeObserver.bind(this))),this.browser$=o.pipe(r.map(this.browserName.bind(this))),this.pixel$=n.pipe(r.map(this.pixelRatio.bind(this))),this.device$=o.pipe(r.map(this.deviceDetection.bind(this))),this.orientation$=p.pipe(r.map(this.orientationDevice.bind(this))),this.standard$=o.pipe(r.map(this.standardDevices.bind(this))),this.ieVersion$=o.pipe(r.map(this.ieVersionDetect.bind(this))),this.userAgent$=a.pipe(r.map(this.userAgentData.bind(this)))}}return t.prototype.forceRefresh=function(){this._forceRefresh$.next(null)},t.prototype.registerWindow=function(t,e){void 0===e&&(e=null),t.name&&!this._windows[t.name]&&(this._windows[t.name]=t,null!==e&&e.dispatchEvent(new Event("resize")))},t.prototype.unregisterWindow=function(t,e){for(var i in void 0===e&&(e=null),this._windows)this._windows[i]===t&&delete this._windows[i];null!==e&&e.dispatchEvent(new Event("resize"))},t.prototype.getWidth=function(t){return void 0===t&&(t=null),null!==this._windows&&this.isEnabledForPlatform?t&&this._windows[t]?this._windows[t].getWidth():this._window.innerWidth:0},t.prototype.getDevicePixelRatio=function(){var t=1;return this.isEnabledForPlatform&&(void 0!==this._window.screen.systemXDPI&&void 0!==this._window.screen.logicalXDPI&&this._window.screen.systemXDPI>this._window.screen.logicalXDPI?t=this._window.screen.systemXDPI/this._window.screen.logicalXDPI:void 0!==this._window.devicePixelRatio&&(t=this._window.devicePixelRatio)),t},t.prototype.getOrientation=function(){return this.isEnabledForPlatform?window.orientation:null},t.prototype.sizeObserver=function(){return null!==this._windows&&this.isEnabledForPlatform?this.getWidth("window"):0},t.prototype.sizeOperations=function(){var t=null,e=this._responsiveConfig.config.breakPoints;if(null!==this._windows&&this.isEnabledForPlatform&&null!==e){var i=this.getWidth("window");e.xl.min<=i?t="xl":e.lg.max>=i&&e.lg.min<=i?t="lg":e.md.max>=i&&e.md.min<=i?t="md":e.sm.max>=i&&e.sm.min<=i?t="sm":e.xs.max>=i&&(t="xs")}return t},t.prototype.pixelRatio=function(){var t=null;return this.isEnabledForPlatform&&0!==this._screenWidth&&0!==this._screenHeight&&(this.testIs4k()?t="4k":this.getDevicePixelRatio()>1?t="retina":1===this.getDevicePixelRatio()&&(t="1x")),t},t.prototype.testIs4k=function(){return 0!==this._screenHeight&&0!==this._screenWidth&&(this._screenHeight<this._screenWidth?this._screenWidth>3839:this._screenHeight>3839)},t.prototype.orientationDevice=function(){var t=null;return this.isEnabledForPlatform&&(this.isMobile()||this.isTablet()?t=this._window.innerHeight>this._window.innerWidth?"portrait":"landscape":(this.isSMART()||this.isDesktop())&&(t="landscape")),t},t.prototype.getUserAgent=function(){return this.isEnabledForPlatform?this._window.navigator.userAgent.toLowerCase():null},t.prototype.userAgentData=function(){if(null===this._window)return C;var t=null!==this.ieVersionDetect(),e=this.isGameDevice(),i=this.isSMART(),r=this.isDesktop(),s=this.isTablet(),n=this.isMobile(),o=this.isWindows(),a=this.isLinux();return{device:this.deviceDetection(),browser:this.browserName(),pixelratio:this.pixelRatio(),ie_version:{name:t?this.ieVersionDetect():"",state:t},game_device:{name:e?this.gameDevices():"",state:e},smart_tv:{name:i?this.smartTv():"",state:i},desktop:{name:r?this.desktop():"",state:r},tablet:{name:s?this.tablet():"",state:s},mobile:{name:n?this.mobile():"",state:n},window_os:{name:o?this.windows():"",state:o},linux_os:{name:a?this.linux():"",state:a},bot:this.isBot()}},t.prototype.deviceDetection=function(){if(this.isEnabledForPlatform){if(this.isMobile())return"mobile";if(this.isTablet())return"tablet";if(this.isSMART())return"smarttv";if(this.isDesktop())return"desktop"}return null},t.prototype.standardDevices=function(){if(this.isEnabledForPlatform){if(v.IPHONE.REG.test(this._userAgent))return"iphone";if(R.IPAD.REG.test(this._userAgent))return"ipad";if(this.isMobile()&&v.ANDROID.REG.test(this._userAgent))return"android mobile";if(this.isTablet()&&v.ANDROID.REG.test(this._userAgent))return"android tablet";if(v.WINDOWS_PHONE.REG.test(this._userAgent))return"windows phone"}return null},t.prototype.ieVersionDetect=function(){if(this.isEnabledForPlatform){var t=this.getUserAgent(),e=t.indexOf("msie "),i=null;if(w.MS_MSIE.REG.test(t)){if(7===(i=parseInt(t.substring(e+5,t.indexOf(".",e)),10)))return G.IE_7;if(8==i)return G.IE_8;if(9==i)return G.IE_9;if(10==i)return G.IE_10}if(w.MS_TRIDENT.REG.test(t)){var r=t.indexOf("rv:");if(11==(i=parseInt(t.substring(r+3,t.indexOf(".",r)),10)))return G.IE_11}if(w.MS_EDGE.REG.test(t))return G.IE_12}return null},t.prototype.browserName=function(){var t=null;return this.isEnabledForPlatform&&(t=A.WEBKIT.REG.test(this._userAgent)&&A.CHROME.REG.test(this._userAgent)&&!O.IE.REG.test(this._userAgent)?O.CHROME.VALUE:A.MOZILLA.REG.test(this._userAgent)&&O.FIREFOX.REG.test(this._userAgent)?O.FIREFOX.VALUE:O.IE.REG.test(this._userAgent)?O.IE.VALUE:A.SAFARI.REG.test(this._userAgent)&&A.APPLE_WEBKIT.REG.test(this._userAgent)&&!A.CHROME.REG.test(this._userAgent)?O.SAFARI.VALUE:O.OPERA.REG.test(this._userAgent)?O.OPERA.VALUE:O.SILK.REG.test(this._userAgent)?O.SILK.VALUE:O.YANDEX.REG.test(this._userAgent)?O.YANDEX.VALUE:O.NA.VALUE),t},t.prototype.gameDevices=function(){var t=null;if(null!==this._userAgent)for(var e in I)I[e].REG.test(this._userAgent)&&(t=I[e].VALUE);return t},t.prototype.smartTv=function(){var t=null;return null!==this._userAgent&&(m.CHROMECAST.REG.test(this._userAgent)?t=m.CHROMECAST.VALUE:m.APPLE_TV.REG.test(this._userAgent)?t=m.APPLE_TV.VALUE:m.GOOGLE_TV.REG.test(this._userAgent)?t=m.GOOGLE_TV.VALUE:m.XBOX_ONE.REG.test(this._userAgent)?t=m.XBOX_ONE.VALUE:m.PS4.REG.test(this._userAgent)?t=m.PS4.VALUE:m.GENERIC_TV.REG.test(this._userAgent)&&(t=m.GENERIC_TV.VALUE)),t},t.prototype.desktop=function(){var t=null;return null!==this._userAgent&&(g.WINDOWS.REG.test(this._userAgent)?t=g.WINDOWS.VALUE:g.MAC_OS.REG.test(this._userAgent)?t=g.MAC_OS.VALUE:g.LINUX.REG.test(this._userAgent)?t=g.LINUX.VALUE:g.FIREFOX_OS.REG.test(this._userAgent)?t=g.FIREFOX_OS.VALUE:g.FIREFOX_OS.REG.test(this._userAgent)&&(t=g.CHROME_OS.VALUE)),t},t.prototype.tablet=function(){var t=null;return null!==this._userAgent&&(R.IPAD.REG.test(this._userAgent)?t=l.IPAD:R.TABLET.REG.test(this._userAgent)&&v.ANDROID.REG.test(this._userAgent)?t=l.ANDROID:R.KINDLE.REG.test(this._userAgent)?t=l.KINDLE:R.TABLET.REG.test(this._userAgent)&&(t=l.GENERIC_TABLET)),t},t.prototype.mobile=function(){var t=null;if(null!==this._userAgent){for(var e in v)v[e].REG.test(this._userAgent)&&(t=v[e].VALUE);null===t&&this.isMobile()&&(t=_.GENERIC_MOBILE)}return t},t.prototype.windows=function(){var t=null;if(null!==this._userAgent){for(var e in D)D[e].REG.test(this._userAgent)&&(t=D[e].VALUE);null===t&&this.isDesktop()&&this.isWindows()&&(t=h.GENERIC_WINDOWS)}return t},t.prototype.linux=function(){var t=null;if(null!==this._userAgent){for(var e in P)P[e].REG.test(this._userAgent)&&(t=P[e].VALUE);null===t&&this.isDesktop()&&this.isLinux()&&(t=u.GENERIC_LINUX)}return t},t.prototype.isMobile=function(){var t=!1;if(null!==this._userAgent){var e=this._userAgent;t=v.GENERIC_REG_1.REG.test(e)&&!1===this.isTablet()||v.GENERIC_REG_2.REG.test(e.substr(0,4))&&!1===this.isTablet()}return t},t.prototype.isTablet=function(){var t=!1;return null!==this._userAgent&&(t=R.IPAD.REG.test(this._userAgent)||R.KINDLE.REG.test(this._userAgent)||R.TABLET.REG.test(this._userAgent)),t},t.prototype.isSMART=function(){var t=!1;return null!==this._userAgent&&(t=m.GENERIC_TV.REG.test(this._userAgent)||m.PS4.REG.test(this._userAgent)||m.XBOX_ONE.REG.test(this._userAgent)),t},t.prototype.isDesktop=function(){var t=!1;return null!==this._userAgent&&(t=!(this.isMobile()||this.isTablet()||this.isSMART())),t},t.prototype.isGameDevice=function(){var t=!1;return null!==this._userAgent&&(t=I.PS4.REG.test(this._userAgent)||I.PS3.REG.test(this._userAgent)||I.XBOX.REG.test(this._userAgent)||I.XBOX_ONE.REG.test(this._userAgent)||I.WII.REG.test(this._userAgent)||I.WII_U.REG.test(this._userAgent)||I.NINTENDO_3DS.REG.test(this._userAgent)||I.PS_VITA.REG.test(this._userAgent)||I.PSP.REG.test(this._userAgent)),t},t.prototype.isWindows=function(){var t=!1;return null!==this._userAgent&&(t=g.WINDOWS.REG.test(this._userAgent)),t},t.prototype.isLinux=function(){var t=!1;return null!==this._userAgent&&(t=g.LINUX.REG.test(this._userAgent)),t},t.prototype.isBot=function(){var t=!1;return null!==this._userAgent&&(t=N.GENERIC_BOT.REG.test(this._userAgent)),t},t.ctorParameters=function(){return[{type:V},{type:T}]},t=a([e.Injectable()],t)}(),L=function(){function t(t,i,r,s,n){this.templateRef=t,this.viewContainer=i,this._responsiveState=r,this.cd=s,this.platformService=n,this._noRepeat=0,this.set_active_subscriptions={bootstrap:!1,browser:!1,device:!1,pixelratio:!1,orientation:!1,standard:!1,ie:!1,sizes:!1},this.eventChanges=new e.EventEmitter,this._isEnabledForPlatform=this.platformService.isEnabledForPlatform()}return t.prototype.setGrid=function(t,e){switch(e){case"bootstrap":this.set_active_subscriptions.bootstrap=!0;break;case"device":this.set_active_subscriptions.device=!0;break;case"standard":this.set_active_subscriptions.standard=!0;break;case"orientation":this.set_active_subscriptions.orientation=!0;break;case"browser":this.set_active_subscriptions.browser=!0;break;case"pixelratio":this.set_active_subscriptions.pixelratio=!0;break;case"ie":this.set_active_subscriptions.ie=!0;break;case"sizes":this.set_active_subscriptions.sizes=!0}"sizes"===e?this._sizes_grid_state=t:this._others_grid_state=Array.isArray(t)?t:[t],this._directive=e},t.prototype.ngOnInit=function(){this._isEnabledForPlatform&&(this.set_active_subscriptions.bootstrap&&(this._subscription_Bootstrap=this._responsiveState.elemento$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.browser&&(this._subscription_Browser=this._responsiveState.browser$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.device&&(this._subscription_Device=this._responsiveState.device$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.pixelratio&&(this._subscription_Pixel_Ratio=this._responsiveState.pixel$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.orientation&&(this._subscription_Orientation=this._responsiveState.orientation$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.standard&&(this._subscription_Standard=this._responsiveState.standard$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.ie&&(this._subscription_IE_Version=this._responsiveState.ieVersion$.subscribe(this.updateView.bind(this))),this.set_active_subscriptions.sizes&&(this._subscription_custom_sizes=this._responsiveState.ancho$.subscribe(this.updateView.bind(this))))},t.prototype.ngOnDestroy=function(){this._isEnabledForPlatform&&(this.set_active_subscriptions.bootstrap&&this._subscription_Bootstrap.unsubscribe(),this.set_active_subscriptions.browser&&this._subscription_Browser.unsubscribe(),this.set_active_subscriptions.device&&this._subscription_Device.unsubscribe(),this.set_active_subscriptions.pixelratio&&this._subscription_Pixel_Ratio.unsubscribe(),this.set_active_subscriptions.orientation&&this._subscription_Orientation.unsubscribe(),this.set_active_subscriptions.standard&&this._subscription_Standard.unsubscribe(),this.set_active_subscriptions.ie&&this._subscription_IE_Version.unsubscribe(),this.set_active_subscriptions.sizes&&this._subscription_custom_sizes.unsubscribe())},t.prototype.showHide=function(t){this._isEnabledForPlatform&&(t?0===this._noRepeat&&(this._noRepeat=1,this.eventChanges.emit(!0),this.viewContainer.createEmbeddedView(this.templateRef),this.cd.markForCheck()):(this._noRepeat=0,this.eventChanges.emit(!1),this.viewContainer.clear(),this.cd.markForCheck()))},t.prototype.updateView=function(t){var e="sizes"===this._directive?(void 0===this._sizes_grid_state.min||t>=this._sizes_grid_state.min)&&(void 0===this._sizes_grid_state.max||t<=this._sizes_grid_state.max):!!this._others_grid_state&&-1!==this._others_grid_state.indexOf(t);this.showHide(this._showWhenTrue?e:!e)},t}(),x=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="xl",o._showWhenTrue=!0,o.setGrid(o._state,"bootstrap"),o}return o(i,t),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},i=a([e.Directive({selector:"[xl]"})],i)}(L),U=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="lg",o._showWhenTrue=!0,o.setGrid(o._state,"bootstrap"),o}return o(i,t),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},i=a([e.Directive({selector:"[lg]"})],i)}(L),B=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="md",o._showWhenTrue=!0,o.setGrid(o._state,"bootstrap"),o}return o(i,t),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},i=a([e.Directive({selector:"[md]"})],i)}(L),k=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="sm",o._showWhenTrue=!0,o.setGrid(o._state,"bootstrap"),o}return o(i,t),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},i=a([e.Directive({selector:"[sm]"})],i)}(L),F=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="xs",o._showWhenTrue=!0,o.setGrid(o._state,"bootstrap"),o}return o(i,t),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},i=a([e.Directive({selector:"[xs]"})],i)}(L),j=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showItBootstrap",{set:function(t){this.setGrid(t,"bootstrap")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showItBootstrap",null),i=a([e.Directive({selector:"[showItBootstrap]"})],i)}(L),M=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideItBootstrap",{set:function(t){this.setGrid(t,"bootstrap")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideItBootstrap",null),i=a([e.Directive({selector:"[hideItBootstrap]"})],i)}(L),X=[x,U,B,k,F,j,M],z=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="chrome",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isChrome",{set:function(t){this.setGrid(this._state,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isChrome",null),i=a([e.Directive({selector:"[isChrome]"})],i)}(L),H=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="firefox",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isFirefox",{set:function(t){this.setGrid(this._state,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isFirefox",null),i=a([e.Directive({selector:"[isFirefox]"})],i)}(L),$=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="safari",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isSafari",{set:function(t){this.setGrid(this._state,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isSafari",null),i=a([e.Directive({selector:"[isSafari]"})],i)}(L),K=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="opera",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isOpera",{set:function(t){this.setGrid(this._state,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isOpera",null),i=a([e.Directive({selector:"[isOpera]"})],i)}(L),Y=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="ie",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIE",{set:function(t){this.setGrid(this._state,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIE",null),i=a([e.Directive({selector:"[isIE]"})],i)}(L),q=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showItBrowser",{set:function(t){this.setGrid(t,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showItBrowser",null),i=a([e.Directive({selector:"[showItBrowser]"})],i)}(L),Z=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideItBrowser",{set:function(t){this.setGrid(t,"browser")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideItBrowser",null),i=a([e.Directive({selector:"[hideItBrowser]"})],i)}(L),J=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="ie 9",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIE9",{set:function(t){this.setGrid(this._state,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIE9",null),i=a([e.Directive({selector:"[isIE9]"})],i)}(L),Q=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="ie 10",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIE10",{set:function(t){this.setGrid(this._state,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIE10",null),i=a([e.Directive({selector:"[isIE10]"})],i)}(L),tt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="ie 11",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIE11",{set:function(t){this.setGrid(this._state,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIE11",null),i=a([e.Directive({selector:"[isIE11]"})],i)}(L),et=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="ie 12",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIE12",{set:function(t){this.setGrid(this._state,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIE12",null),i=a([e.Directive({selector:"[isIE12]"})],i)}(L),it=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showIEVersion",{set:function(t){this.setGrid(t,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showIEVersion",null),i=a([e.Directive({selector:"[showIEVersion]"})],i)}(L),rt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideIEVersion",{set:function(t){this.setGrid(t,"ie")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideIEVersion",null),i=a([e.Directive({selector:"[hideIEVersion]"})],i)}(L),st=function(){function t(t,e){this._responsiveState=t,this.platformService=e,this._isEnabledForPlatform=null,this.replaySubject$=new i.ReplaySubject,this._isEnabledForPlatform=e.isEnabledForPlatform()}return t.prototype.connect=function(){var t=this;return this._isEnabledForPlatform&&(this._subscription=this._responsiveState.browser$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isEnabledForPlatform&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getBrowser",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t}(),nt=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:V}]},i=a([e.Injectable()],i)}(st),ot=function(t){function i(i,r,s){var n=t.call(this,i,s)||this;return n._responsiveState=i,n.cd=r,n.platformService=s,n.browser=new e.EventEmitter,n}return o(i,t),Object.defineProperty(i.prototype,"browserInfo",{set:function(t){this._updateData(this.currentstate)},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.browser.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Output()],i.prototype,"browser",void 0),a([e.Input()],i.prototype,"browserInfo",null),i=a([e.Directive({selector:"browser-info"})],i)}(st),at=function(){function t(t,e){this._responsiveState=t,this._platformId=e,this._isBrowser=null,this.replaySubject$=new i.ReplaySubject,this._isBrowser=s.isPlatformBrowser(this._platformId)}return t.prototype.connect=function(){var t=this;return this._isBrowser&&(this._subscription=this._responsiveState.ieVersion$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isBrowser&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getIE",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t=a([p(1,e.Inject(e.PLATFORM_ID))],t)}(),pt=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r._platformId=i,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},i=a([e.Injectable(),p(1,e.Inject(e.PLATFORM_ID))],i)}(at),ct=function(t){function i(i,r,s,n){var o=t.call(this,i,n)||this;return o._responsiveState=i,o.viewContainer=r,o.cd=s,o._platformId=n,o.ieVersion=new e.EventEmitter,o}return o(i,t),Object.defineProperty(i.prototype,"ieInfo",{set:function(t){this._updateData(this.currentstate)},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.ieVersion.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},a([e.Input()],i.prototype,"ieInfo",null),a([e.Output()],i.prototype,"ieVersion",void 0),i=a([e.Directive({selector:"ie-info"}),p(3,e.Inject(e.PLATFORM_ID))],i)}(at),ut=[z,H,$,K,Y,J,Q,tt,et,q,Z,it,rt,ot,ct],ht=[nt],lt=[pt],_t=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showItSizes",{set:function(t){this.setGrid(t,"sizes")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showItSizes",null),i=a([e.Directive({selector:"[showItSizes]"})],i)}(L),ft=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideItSizes",{set:function(t){this.setGrid(t,"sizes")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideItSizes",null),i=a([e.Directive({selector:"[hideItSizes]"})],i)}(L),dt=[_t,ft],bt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="smarttv",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isSmartTv",{set:function(t){this.setGrid(this._state,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isSmartTv",null),i=a([e.Directive({selector:"[isSmartTv]"})],i)}(L),Et=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="desktop",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isDesktop",{set:function(t){this.setGrid(this._state,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isDesktop",null),i=a([e.Directive({selector:"[isDesktop]"})],i)}(L),yt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="tablet",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isTablet",{set:function(t){this.setGrid(this._state,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isTablet",null),i=a([e.Directive({selector:"[isTablet]"})],i)}(L),vt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="mobile",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isMobile",{set:function(t){this.setGrid(this._state,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isMobile",null),i=a([e.Directive({selector:"[isMobile]"})],i)}(L),Rt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showItDevice",{set:function(t){this.setGrid(t,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showItDevice",null),i=a([e.Directive({selector:"[showItDevice]"})],i)}(L),mt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideItDevice",{set:function(t){this.setGrid(t,"device")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideItDevice",null),i=a([e.Directive({selector:"[hideItDevice]"})],i)}(L),It=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="iphone",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIphone",{set:function(t){this.setGrid(this._state,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIphone",null),i=a([e.Directive({selector:"[isIphone]"})],i)}(L),wt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="iphone",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isIphone",{set:function(t){this.setGrid(this._state,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isIphone",null),i=a([e.Directive({selector:"[isIpad]"})],i)}(L),Ot=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="android mobile",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isAndroidMobile",{set:function(t){this.setGrid(this._state,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isAndroidMobile",null),i=a([e.Directive({selector:"[isAndroidMobile]"})],i)}(L),gt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="android tablet",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isAndroidTablet",{set:function(t){this.setGrid(this._state,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isAndroidTablet",null),i=a([e.Directive({selector:"[isAndroidTablet]"})],i)}(L),At=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="windows phone",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isWindowsPhone",{set:function(t){this.setGrid(this._state,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isWindowsPhone",null),i=a([e.Directive({selector:"[isWindowsPhone]"})],i)}(L),Dt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"showItStandard",{set:function(t){this.setGrid(t,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"showItStandard",null),i=a([e.Directive({selector:"[showItStandard]"})],i)}(L),St=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"hideItStandard",{set:function(t){this.setGrid(t,"standard")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"hideItStandard",null),i=a([e.Directive({selector:"[hideItStandard]"})],i)}(L),Pt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="portrait",o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"isPortrait",{set:function(t){this.setGrid(this._state,"orientation")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isPortrait",null),i=a([e.Directive({selector:"[isPortrait]"})],i)}(L),Nt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="landscape",o._showWhenTrue=!1,o}return o(i,t),Object.defineProperty(i.prototype,"isLandscape",{set:function(t){this.setGrid(this._state,"orientation")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isLandscape",null),i=a([e.Directive({selector:"[isLandscape]"})],i)}(L),Gt=function(){function t(t,e){this._responsiveState=t,this._platformId=e,this._isBrowser=null,this.replaySubject$=new i.ReplaySubject,this._isBrowser=s.isPlatformBrowser(this._platformId)}return t.prototype.connect=function(){var t=this;return this._isBrowser&&(this._subscription=this._responsiveState.device$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isBrowser&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getDevice",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t=a([p(1,e.Inject(e.PLATFORM_ID))],t)}(),Ct=function(t){function i(i,r,s,n){var o=t.call(this,i,n)||this;return o._responsiveState=i,o.viewContainer=r,o.cd=s,o._platformId=n,o.device=new e.EventEmitter,o}return o(i,t),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.device.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},a([e.Output()],i.prototype,"device",void 0),i=a([e.Directive({selector:"device-info"}),p(3,e.Inject(e.PLATFORM_ID))],i)}(Gt),Tt=function(){function t(t,e){this._responsiveState=t,this._platformId=e,this._isBrowser=null,this.replaySubject$=new i.ReplaySubject,this._isBrowser=s.isPlatformBrowser(this._platformId)}return t.prototype.connect=function(){var t=this;return this._isBrowser&&(this._subscription=this._responsiveState.standard$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isBrowser&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getStandardDevice",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t=a([p(1,e.Inject(e.PLATFORM_ID))],t)}(),Vt=function(t){function i(i,r,s,n){var o=t.call(this,i,n)||this;return o._responsiveState=i,o.viewContainer=r,o.cd=s,o._platformId=n,o.standard=new e.EventEmitter,o}return o(i,t),Object.defineProperty(i.prototype,"deviceStandardInfo",{set:function(t){this._updateData(this.currentstate)},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.standard.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},a([e.Input()],i.prototype,"deviceStandardInfo",null),a([e.Output()],i.prototype,"standard",void 0),i=a([e.Directive({selector:"device-standard-info"}),p(3,e.Inject(e.PLATFORM_ID))],i)}(Tt),Wt=function(){function t(t,e){this._responsiveState=t,this._isEnabledForPlatform=null,this.replaySubject$=new i.ReplaySubject,this._isEnabledForPlatform=e.isEnabledForPlatform()}return t.prototype.connect=function(){var t=this;return this._isEnabledForPlatform&&(this._subscription=this._responsiveState.orientation$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isEnabledForPlatform&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getOrientation",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t}(),Lt=function(t){function i(i,r,s,n){var o=t.call(this,i,n)||this;return o._responsiveState=i,o.viewContainer=r,o.cd=s,o.orientation=new e.EventEmitter,o}return o(i,t),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.orientation.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:V}]},a([e.Output()],i.prototype,"orientation",void 0),i=a([e.Directive({selector:"orientation-info"})],i)}(Wt),xt=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r._platformId=i,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},i=a([e.Injectable(),p(1,e.Inject(e.PLATFORM_ID))],i)}(Gt),Ut=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r._platformId=i,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},i=a([e.Injectable(),p(1,e.Inject(e.PLATFORM_ID))],i)}(Tt),Bt=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:V}]},i=a([e.Injectable()],i)}(Wt),kt=[Et,yt,vt,bt,Rt,mt,It,wt,Ot,gt,At,Dt,St,Pt,Nt,Ct,Vt,Lt],Ft=[xt,Ut,Bt],jt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="1x",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"is1xPixel",{set:function(t){this.setGrid(this._state,"pixelratio")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"is1xPixel",null),i=a([e.Directive({selector:"[is1xPixel]"})],i)}(L),Mt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="retina",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isRetina",{set:function(t){this.setGrid(this._state,"pixelratio")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isRetina",null),i=a([e.Directive({selector:"[isRetina]"})],i)}(L),Xt=function(t){function i(e,i,r,s,n){var o=t.call(this,e,i,r,s,n)||this;return o._state="4k",o._showWhenTrue=!0,o}return o(i,t),Object.defineProperty(i.prototype,"isRetina",{set:function(t){this.setGrid(this._state,"pixelratio")},enumerable:!0,configurable:!0}),i.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"isRetina",null),i=a([e.Directive({selector:"[is4k]"})],i)}(L),zt=function(){function t(t,i,r,s){this._responsiveState=t,this.viewContainer=i,this.cd=r,this._isEnabledForPlatform=null,this.pixelratio=new e.EventEmitter,this._isEnabledForPlatform=s.isEnabledForPlatform()}return Object.defineProperty(t.prototype,"pixelratioInfo",{set:function(t){this.updateData(this.currentstate)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isEnabledForPlatform&&(this._subscription=this._responsiveState.pixel$.subscribe(this.updateData.bind(this)))},t.prototype.ngOnDestroy=function(){this._isEnabledForPlatform&&this._subscription.unsubscribe()},t.prototype.updateData=function(t){this._ifValueChanged(this.noRepeat,t)&&(this.pixelratio.emit(t),this.cd.markForCheck())},t.prototype._ifValueChanged=function(t,e){return t!==e&&(this.noRepeat=e,!0)},t.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],t.prototype,"pixelratioInfo",null),a([e.Output()],t.prototype,"pixelratio",void 0),t=a([e.Directive({selector:"pixel-ratio-info"})],t)}(),Ht=[jt,Mt,Xt,zt],$t=function(){function t(t,i,r,s,n){this.templateRef=t,this._responsiveState=i,this.viewContainer=r,this.cd=s,this.changes=new e.EventEmitter,this._windows=null,this._window=null,this._isEnabledForPlatform=null,this.set_values={bootstrap:"",browser:"",device:"",pixelratio:"",orientation:"",standard:"",ie:"",sizes:0},this.set_active_subscriptions={bootstrap:!1,browser:!1,device:!1,pixelratio:!1,orientation:!1,standard:!1,ie:!1,sizes:!1},this.match_multiple={bootstrap:!1,browser:!1,device:!1,pixelratio:!1,orientation:!1,standard:!1,ie:!1,sizes:!1},this._showWhenTrue=!0,this._globalNoRepeat=0,this._bootstrapNoRepeat=0,this._deviceNoRepeat=0,this._standardNoRepeat=0,this._orientationNoRepeat=0,this._browserNoRepeat=0,this._pixelratioNoRepeat=0,this._ieNoRepeat=0,this._sizesNoRepeat=0,this._bootstrap_user_param=[],this._devices_user_param=[],this._standard_user_param=[],this._orientation_user_param=[],this._browser_user_param=[],this._pixelratio_user_param=[],this._ie_user_param=[],this._sizes_user_param=[0,Number.MAX_VALUE],this._sizes_window="window",this._actives=[],this._isEnabledForPlatform=n.isEnabledForPlatform()}return Object.defineProperty(t.prototype,"responsive",{set:function(t){this._config=t,this.init_responsive()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsiveContainer",{get:function(){return this._responsiveContainer},set:function(t){if(this._responsiveContainer=t,this.config){if(null!==this._sizes_window&&"window"!==this._sizes_window)throw new Error("Responsive directive cannot use window AND responsiveContainer together");this.init_responsive()}},enumerable:!0,configurable:!0}),t.prototype.init_responsive=function(){var t=this.config;if(this.isJSON(t)){if(t.bootstrap&&0===this._bootstrapNoRepeat&&(this._bootstrap_user_param=Array.isArray(t.bootstrap)?t.bootstrap:[t.bootstrap],this._bootstrapNoRepeat=1,this.set_active_subscriptions.bootstrap=!0),t.device&&0===this._deviceNoRepeat&&(this._devices_user_param=Array.isArray(t.device)?t.device:[t.device],this._deviceNoRepeat=1,this.set_active_subscriptions.device=!0),t.standard&&0===this._standardNoRepeat&&(this._standard_user_param=Array.isArray(t.standard)?t.standard:[t.standard],this._standardNoRepeat=1,this.set_active_subscriptions.standard=!0),t.orientation&&0===this._orientationNoRepeat&&(this._orientation_user_param=Array.isArray(t.orientation)?t.orientation:[t.orientation],this._orientationNoRepeat=1,this.set_active_subscriptions.orientation=!0),t.browser&&0===this._browserNoRepeat&&(this._browser_user_param=Array.isArray(t.browser)?t.browser:[t.browser],this._browserNoRepeat=1,this.set_active_subscriptions.browser=!0),t.pixelratio&&0===this._pixelratioNoRepeat&&(this._pixelratio_user_param=Array.isArray(t.pixelratio)?t.pixelratio:[t.pixelratio],this._pixelratioNoRepeat=1,this.set_active_subscriptions.pixelratio=!0),t.ie&&0===this._ieNoRepeat&&(this._ie_user_param=Array.isArray(t.ie)?t.ie:[t.ie],this._ieNoRepeat=1,this.set_active_subscriptions.ie=!0),t.sizes&&0===this._sizesNoRepeat){var e=t.sizes.min||0,i=t.sizes.max||Number.MAX_VALUE,r=t.sizes.window;void 0!==r&&(this._sizes_window=r),this._sizes_user_param=[e,i],this._sizesNoRepeat=1,this.set_active_subscriptions.sizes=!0}}else{if(Array.isArray(t))throw new Error("Responsive directive don´t work with a only array parameter");if("string"==typeof t)throw new Error("Responsive directive don´t work with a only string parameter");if("number"==typeof t)throw new Error("Responsive directive don´t work with a only number parameter");if(null==t)throw new Error("Responsive directive don´t work without a param")}for(var s in this.set_active_subscriptions)this.set_active_subscriptions[s]&&this._actives.push(s);this._isEnabledForPlatform&&(this.set_active_subscriptions.bootstrap&&(this._subscription_Bootstrap=this._responsiveState.elemento$.subscribe(this.updateBootstrap.bind(this))),this.set_active_subscriptions.browser&&(this._subscription_Browser=this._responsiveState.browser$.subscribe(this.updateBrowser.bind(this))),this.set_active_subscriptions.device&&(this._subscription_Device=this._responsiveState.device$.subscribe(this.updateDevice.bind(this))),this.set_active_subscriptions.pixelratio&&(this._subscription_Pixel_Ratio=this._responsiveState.pixel$.subscribe(this.updatePixelRatio.bind(this))),this.set_active_subscriptions.orientation&&(this._subscription_Orientation=this._responsiveState.orientation$.subscribe(this.updateOrientation.bind(this))),this.set_active_subscriptions.standard&&(this._subscription_Standard=this._responsiveState.standard$.subscribe(this.updateStandard.bind(this))),this.set_active_subscriptions.ie&&(this._subscription_IE_Version=this._responsiveState.ieVersion$.subscribe(this.updateIEversion.bind(this))),this.set_active_subscriptions.sizes&&(this._subscription_custom_sizes=this._responsiveState.ancho$.subscribe(this.updateSizes.bind(this))))},t.prototype.updateBootstrap=function(t){this._ifValueChanged(this._noRepeatBootstrapName,t)&&(this.set_values.bootstrap=t),this.updateEvent(this.set_values.bootstrap,"bootstrap")},t.prototype.updateBrowser=function(t){this.set_values.browser=t,this.updateEvent(this.set_values.browser,"browser")},t.prototype.updateDevice=function(t){this.set_values.device=t,this.updateEvent(this.set_values.device,"device")},t.prototype.updatePixelRatio=function(t){this.set_values.pixelratio=t,this.updateEvent(this.set_values.pixelratio,"pixelratio")},t.prototype.updateOrientation=function(t){this.set_values.orientation=t,this.updateEvent(this.set_values.orientation,"orientation")},t.prototype.updateStandard=function(t){this.set_values.standard=t,this.updateEvent(this.set_values.standard,"standard")},t.prototype.updateIEversion=function(t){this.set_values.ie=t,this.updateEvent(this.set_values.ie,"ie")},t.prototype.updateSizes=function(t){this.responsiveContainer?this.set_values.sizes=this._isEnabledForPlatform?this.responsiveContainer.getWidth():0:this._sizes_window?this.set_values.sizes=this._responsiveState.getWidth(this._sizes_window):this.set_values.sizes=t,this.updateEvent(this.set_values.sizes,"sizes")},t.prototype.updateEvent=function(t,e){if(this._showWhenTrue)switch(e){case"bootstrap":this.showHideOperations(-1!==this._bootstrap_user_param.indexOf(t),e);break;case"device":this.showHideOperations(-1!==this._devices_user_param.indexOf(t),e);break;case"standard":this.showHideOperations(-1!==this._standard_user_param.indexOf(t),e);break;case"orientation":this.showHideOperations(-1!==this._orientation_user_param.indexOf(t),e);break;case"browser":this.showHideOperations(-1!==this._browser_user_param.indexOf(t),e);break;case"pixelratio":this.showHideOperations(-1!==this._pixelratio_user_param.indexOf(t),e);break;case"ie":this.showHideOperations(-1!==this._ie_user_param.indexOf(t),e);break;case"sizes":this.showHideOperations(t>=this._sizes_user_param[0]&&t<this._sizes_user_param[1],e)}else switch(e){case"bootstrap":this.showHideOperations(!this._bootstrap_user_param.indexOf(t),e);break;case"device":this.showHideOperations(!this._devices_user_param.indexOf(t),e);break;case"standard":this.showHideOperations(!this._standard_user_param.indexOf(t),e);break;case"orientation":this.showHideOperations(!this._orientation_user_param.indexOf(t),e);break;case"browser":this.showHideOperations(!this._browser_user_param.indexOf(t),e);break;case"pixelratio":this.showHideOperations(!this._pixelratio_user_param.indexOf(t),e);break;case"ie":this.showHideOperations(!this._ie_user_param.indexOf(t),e);break;case"sizes":this.showHideOperations(!(t>=this._sizes_user_param[0]&&t<this._sizes_user_param[1]),e)}},t.prototype.showHideOperations=function(t,e){this.matchValues(t,e)?0===this._globalNoRepeat&&(this._globalNoRepeat=1,this.viewContainer.createEmbeddedView(this.templateRef),this.changes.emit(!0),this.cd.markForCheck()):(this._globalNoRepeat=0,this.changes.emit(!1),this.viewContainer.clear(),this.cd.markForCheck())},t.prototype.matchValues=function(t,e){var i,r,s=!0;for(var n in this.match_multiple[e]=!!t,this.match_multiple)try{for(var o=(i=void 0,c(this._actives)),a=o.next();!a.done;a=o.next()){if(n==a.value&&!1===this.match_multiple[n])return s=!1}}catch(t){i={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},t.prototype.ngOnDestroy=function(){this._isEnabledForPlatform&&(this.set_active_subscriptions.bootstrap&&this._subscription_Bootstrap.unsubscribe(),this.set_active_subscriptions.browser&&this._subscription_Browser.unsubscribe(),this.set_active_subscriptions.device&&this._subscription_Device.unsubscribe(),this.set_active_subscriptions.pixelratio&&this._subscription_Pixel_Ratio.unsubscribe(),this.set_active_subscriptions.orientation&&this._subscription_Orientation.unsubscribe(),this.set_active_subscriptions.standard&&this._subscription_Standard.unsubscribe(),this.set_active_subscriptions.ie&&this._subscription_IE_Version.unsubscribe(),this.set_active_subscriptions.sizes&&this._subscription_custom_sizes.unsubscribe())},t.prototype._ifValueChanged=function(t,e){return t!==e&&(this._noRepeatBootstrapName=e,!0)},t.prototype.isJSON=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},t.ctorParameters=function(){return[{type:e.TemplateRef},{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],t.prototype,"responsive",null),a([e.Input()],t.prototype,"responsiveContainer",null),a([e.Output()],t.prototype,"changes",void 0),t=a([e.Directive({selector:"[responsive]"})],t)}(),Kt=[$t],Yt=function(){function t(t,e){this._responsiveState=t,this._isEnabledForPlatform=null,this.replaySubject$=new i.ReplaySubject,this._isEnabledForPlatform=e.isEnabledForPlatform()}return t.prototype.connect=function(){var t=this;return this._isEnabledForPlatform&&(this._subscription=this._responsiveState.elemento$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._updateData(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isEnabledForPlatform&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getResponsiveSize",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._updateData=function(t){this.replaySubject$.next(t)},t}(),qt=function(t){function i(i,r,s,n){var o=t.call(this,i,n)||this;return o._responsiveState=i,o.viewContainer=r,o.cd=s,o.statechanges=new e.EventEmitter,o}return o(i,t),Object.defineProperty(i.prototype,"responsiveSizeInfo",{set:function(t){this._updateData(this.currentstate)},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._updateData=function(t){this.statechanges.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ViewContainerRef},{type:e.ChangeDetectorRef},{type:V}]},a([e.Input()],i.prototype,"responsiveSizeInfo",null),a([e.Output()],i.prototype,"statechanges",void 0),i=a([e.Directive({selector:"responsiveSizeInfo"})],i)}(Yt),Zt=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:V}]},i=a([e.Injectable()],i)}(Yt),Jt=[qt],Qt=[Zt],te=function(){function t(t,e,i,s,n){this._responsiveState=t,this.el=e,this.cd=i,this._responsiveConfig=n,this._isEnabledForPlatform=null,this._isEnabledForPlatform=s.isEnabledForPlatform(),this._isEnabledForPlatform&&(this.element=e.nativeElement),this.currentBreakpoint$=this._responsiveState.ancho$.pipe(r.map(this.getCurrentBreakpoint.bind(this)))}return t.prototype.ngOnInit=function(){this._isEnabledForPlatform&&this._responsiveState.registerWindow(this)},t.prototype.ngDoCheck=function(){this._isEnabledForPlatform&&(this._ifValueChanged(this._noRepeat,this.name)&&(this._responsiveState.unregisterWindow(this),this._responsiveState.registerWindow(this),this.cd.markForCheck()))},t.prototype.ngOnDestroy=function(){this._isEnabledForPlatform&&this._responsiveState.unregisterWindow(this)},t.prototype.getWidth=function(){return this._isEnabledForPlatform?this.element.offsetWidth:0},t.prototype.getCurrentBreakpoint=function(){var t=this.getWidth();return this._responsiveConfig.config.breakPoints.xl.min<=t?"xl":this._responsiveConfig.config.breakPoints.lg.max>=t&&this._responsiveConfig.config.breakPoints.lg.min<=t?"lg":this._responsiveConfig.config.breakPoints.md.max>=t&&this._responsiveConfig.config.breakPoints.md.min<=t?"md":this._responsiveConfig.config.breakPoints.sm.max>=t&&this._responsiveConfig.config.breakPoints.sm.min<=t?"sm":this._responsiveConfig.config.breakPoints.xs.max>=t?"xs":void 0},t.prototype._ifValueChanged=function(t,e){return t!==e&&(this._noRepeat=e,!0)},t.ctorParameters=function(){return[{type:W},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:V},{type:T}]},a([e.Input("responsive-window")],t.prototype,"name",void 0),t=a([e.Directive({selector:"[responsive-window]",exportAs:"container"})],t)}(),ee=[te],ie=function(){function t(t,e){this._responsiveState=t,this._platformId=e,this.replaySubject$=new i.ReplaySubject,this._isBrowser=null,this._isBrowser=s.isPlatformBrowser(this._platformId)}return t.prototype.connect=function(){var t=this;return this._isBrowser&&(this._subscription=this._responsiveState.userAgent$.pipe(r.distinctUntilChanged()).subscribe((function(e){t._emitUserAgent(e)}))),this.replaySubject$.asObservable()},t.prototype.disconnect=function(){this._isBrowser&&this._subscription.unsubscribe()},Object.defineProperty(t.prototype,"getUserAgent",{get:function(){return this.replaySubject$.asObservable()},enumerable:!0,configurable:!0}),t.prototype._emitUserAgent=function(t){this.replaySubject$.next(t)},t=a([p(1,e.Inject(e.PLATFORM_ID))],t)}(),re=function(t){function i(i,r,s){var n=t.call(this,i,s)||this;return n._responsiveState=i,n.cd=r,n.info=new e.EventEmitter,n}return o(i,t),i.prototype.ngOnInit=function(){this.connect()},i.prototype.ngOnDestroy=function(){this.disconnect()},i.prototype._emitUserAgent=function(t){this.info.emit(t),this.cd.markForCheck()},i.ctorParameters=function(){return[{type:W},{type:e.ChangeDetectorRef},{type:V}]},a([e.Output()],i.prototype,"info",void 0),i=a([e.Directive({selector:"user-agent-info"})],i)}(ie),se=function(t){function i(e,i){var r=t.call(this,e,i)||this;return r._responsiveState=e,r._platformId=i,r}return o(i,t),i.ctorParameters=function(){return[{type:W},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},i=a([e.Injectable(),p(1,e.Inject(e.PLATFORM_ID))],i)}(ie),ne=[re],oe=[se],ae=new e.InjectionToken("config");function pe(t){return new T(t)}var ce=function(){function t(){}var i;return i=t,t.forRoot=function(t){return void 0===t&&(t=null),{ngModule:i,providers:[{provide:ae,useValue:null!==t?t:{breakPoints:{xs:{max:767},sm:{min:768,max:991},md:{min:992,max:1199},lg:{min:1200,max:1599},xl:{min:1600}},debounceTime:100,renderOnServer:!1}},{provide:T,useFactory:pe,deps:[ae]},W,V,Qt,oe,ht,lt,Ft]}},t=i=a([e.NgModule({declarations:[X,ut,dt,kt,Ht,Kt,ee,ne,Jt],exports:[X,ut,dt,kt,Ht,Kt,ee,ne,Jt]})],t)}();t.BOOTSTRAP_DIRECTIVES=X,t.BOTS=E,t.BROWSER_DIRECTIVES=ut,t.BROWSER_INFO_RX=ht,t.BROWSER_NAMES=y,t.BrowserInfoDirective=ot,t.BrowserInfoRx=nt,t.CUSTOMSIZES_DIRECTIVES=dt,t.DEFAULT_BREACKPOINTS={breakPoints:{xs:{max:767},sm:{min:768,max:991},md:{min:992,max:1199},lg:{min:1200,max:1599},xl:{min:1600}},debounceTime:100},t.DEVICES_DIRECTIVES=kt,t.DEVICES_INFO_RX=Ft,t.DeviceInfoDirective=Ct,t.DeviceInfoRx=xt,t.DeviceStandardInfoDirective=Vt,t.DeviceStandardInfoRx=Ut,t.GAME_DEVICES=d,t.HideIEVersionDirective=rt,t.HideItBootstrapDirective=M,t.HideItBrowserDirective=Z,t.HideItDeviceDirective=mt,t.HideItSizesDirective=ft,t.HideItStandardDirective=St,t.IE_INFO_RX=lt,t.IE_VERSIONS=G,t.IeInfoDirective=ct,t.IeInfoRx=pt,t.Is1xPixelDirective=jt,t.Is4kDirective=Xt,t.IsAndroidMobileDirective=Ot,t.IsAndroidTabletDirective=gt,t.IsChromeDirective=z,t.IsDesktopDirective=Et,t.IsFirefoxDirective=H,t.IsIE10Directive=Q,t.IsIE11Directive=tt,t.IsIE12Directive=et,t.IsIE9Directive=J,t.IsIEDirective=Y,t.IsIpadDirective=wt,t.IsIphoneDirective=It,t.IsLandscapeDirective=Nt,t.IsMobileDirective=vt,t.IsOperaDirective=K,t.IsPortraitDirective=Pt,t.IsRetinaDirective=Mt,t.IsSafariDirective=$,t.IsSmartTvDirective=bt,t.IsTabletDirective=yt,t.IsWindowsPhoneDirective=At,t.LINUX_OS=u,t.LgDirective=U,t.MOBILE=_,t.MdDirective=B,t.OS_SYSTEMS=f,t.OrientationInfoDirective=Lt,t.OrientationInfoRx=Bt,t.PIXELRATIO_DIRECTIVES=Ht,t.PixelRatioInfoDirective=zt,t.REG_BOTS=N,t.REG_BROWSERS=O,t.REG_GAME_DEVICES=I,t.REG_IE_VERSIONS=w,t.REG_LINUX_OS=P,t.REG_MAC_OS_VERSION={MAC_OS:""},t.REG_MOBILES=v,t.REG_OS=g,t.REG_SMARTS_TV=m,t.REG_SORT_NAMES=A,t.REG_TABLETS=R,t.REG_WEARABLES={IWATCH:""},t.REG_WINDOWS_OS_VERSION=D,t.REG_WINDOWS_PHONE_OS_VERSION=S,t.RESPONSIVEWINDOW_DIRECTIVE=ee,t.RESPONSIVE_BASE=L,t.RESPONSIVE_CONFIGURATION=ae,t.RESPONSIVE_DIRECTIVE=Kt,t.RESPONSIVE_SIZE_INFO_DIRECTIVE=Jt,t.RESPONSIVE_SIZE_INFO_RX=Qt,t.ResponsiveConfig=T,t.ResponsiveDirective=$t,t.ResponsiveModule=ce,t.ResponsiveSizeInfo=Yt,t.ResponsiveSizeInfoDirective=qt,t.ResponsiveSizeInfoRx=Zt,t.ResponsiveState=W,t.ResponsiveWindowDirective=te,t.SMART_TV=b,t.ShowIEVersionDirective=it,t.ShowItBootstrapDirective=j,t.ShowItBrowserDirective=q,t.ShowItDeviceDirective=Rt,t.ShowItSizesDirective=_t,t.ShowItStandardDirective=Dt,t.SmDirective=k,t.TABLET=l,t.USERAGENT_INFO_DIRECTIVE=ne,t.USERAGENT_INFO_RX=oe,t.USER_AGENT=C,t.UserAgentInfo=ie,t.UserAgentInfoDirective=re,t.UserAgentInfoRx=se,t.WINDOWS_OS=h,t.XlDirective=x,t.XsDirective=F,t.responsiveConfiguration=pe,t.ɵa=V,t.ɵb=st,t.ɵc=at,t.ɵd=Gt,t.ɵe=Tt,t.ɵf=Wt,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=lydemann-ngx-responsive.umd.min.js.map