define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var userAgent=navigator.userAgent,matched=function(ua){ua=ua.toLowerCase();var match=/(edge)[ \/]([\w.]+)/.exec(ua)||/(opera)[ \/]([\w.]+)/.exec(ua)||/(opr)[ \/]([\w.]+)/.exec(ua)||/(chrome)[ \/]([\w.]+)/.exec(ua)||/(safari)[ \/]([\w.]+)/.exec(ua)||/(firefox)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||[],platform_match=/(ipad)/.exec(ua)||/(iphone)/.exec(ua)||/(android)/.exec(ua)||[],browser=match[1]||"";return"edge"===browser?platform_match=[""]:(-1!==ua.indexOf("windows phone")||-1!==ua.indexOf("iemobile")||-1!==ua.indexOf("like gecko")&&-1===ua.indexOf("webkit")&&-1===ua.indexOf("opera")&&-1===ua.indexOf("chrome")&&-1===ua.indexOf("safari"))&&(browser="msie"),"opr"===browser&&(browser="opera"),{browser:browser,platform:platform_match[0]||""}}(userAgent),browser={};matched.browser&&(browser[matched.browser]=!0),matched.platform&&(browser[matched.platform]=!0);var userAgentLower=userAgent.toLowerCase();browser.chrome||browser.msie||browser.edge||browser.opera||-1===userAgentLower.indexOf("webkit")||(browser.safari=!0),-1!==userAgentLower.indexOf("playstation")&&(browser.playstation=!0,browser.tv=!0,-1!==userAgentLower.indexOf("playstation 4")&&(browser.ps4=!0)),browser.xboxOne=function(userAgentLower){return-1!==userAgentLower.indexOf("xbox")||!!self.Windows&&"Windows.Xbox"===Windows.System.Profile.AnalyticsInfo.versionInfo.deviceFamily}(userAgentLower),browser.animate="undefined"!=typeof document&&null!=document.documentElement.animate,browser.tizen=-1!==userAgentLower.indexOf("tizen")||null!=self.tizen,browser.web0s=-1!==userAgentLower.indexOf("Web0S".toLowerCase()),browser.netcast=-1!==userAgentLower.indexOf("netcast"),browser.edgeUwp=browser.edge&&(-1!==userAgentLower.indexOf("msapphost")||-1!==userAgentLower.indexOf("webview")),browser.tizen||(browser.orsay=-1!==userAgentLower.indexOf("smarthub")),browser.tizen&&(browser.sdkVersion=function(){if(self.tizen&&self.tizen.systeminfo){var v=tizen.systeminfo.getCapability("http://tizen.org/feature/platform.version");return parseFloat(v)}}()),browser.edgeUwp&&(browser.edge=!0),browser.tv=function(){var userAgent=navigator.userAgent.toLowerCase();return-1!==userAgent.indexOf("tv")||(-1!==userAgent.indexOf("viera")||-1!==userAgent.indexOf("web0s"))}(),(browser.tv&&-1!==userAgentLower.indexOf("opr/")||self.location&&-1!==(self.location.href||"").toString().toLowerCase().indexOf("operatv"))&&(browser.tv=!0,browser.operaTv=!0),(browser.xboxOne||browser.playstation||browser.tizen||browser.orsay||browser.netcast||browser.web0s||browser.operaTv)&&(browser.tv=!0),browser.iOS=browser.ipad||browser.iphone||browser.ipod,browser.iOS||(browser.osx=-1!==userAgentLower.indexOf("os x")),browser.keyboard=function(browser){return!!browser.xboxOne||(!!browser.playstation||(!!browser.edgeUwp||(!!browser.tv||(!(!browser.android&&!browser.iOS)||!("undefined"==typeof document||!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch))))))}(browser),browser.customBuiltInElements="customElements"in self&&!browser.iOS&&!browser.safari&&customElements.upgrade,browser.chromecast=browser.chrome&&-1!==userAgentLower.indexOf("crkey"),_exports.default=browser});