/*! device.js 0.2.7 */ (function() { var a, b, c, d, e, f, g, h, i, j; b = window.device, a = {}, window.device = a, d = window.document.documentelement, j = window.navigator.useragent.tolowercase(), a.ios = function() { return a.iphone() || a.ipod() || a.ipad() }, a.iphone = function() { return !a.windows() && e("iphone") }, a.ipod = function() { return e("ipod") }, a.ipad = function() { return e("ipad") }, a.android = function() { return !a.windows() && e("android") }, a.androidphone = function() { return a.android() && e("mobile") }, a.androidtablet = function() { return a.android() && !e("mobile") }, a.blackberry = function() { return e("blackberry") || e("bb10") || e("rim") }, a.blackberryphone = function() { return a.blackberry() && !e("tablet") }, a.blackberrytablet = function() { return a.blackberry() && e("tablet") }, a.windows = function() { return e("windows") }, a.windowsphone = function() { return a.windows() && e("phone") }, a.windowstablet = function() { return a.windows() && e("touch") && !a.windowsphone() }, a.fxos = function() { return (e("(mobile;") || e("(tablet;")) && e("; rv:") }, a.fxosphone = function() { return a.fxos() && e("mobile") }, a.fxostablet = function() { return a.fxos() && e("tablet") }, a.meego = function() { return e("meego") }, a.cordova = function() { return window.cordova && "file:" === location.protocol }, a.nodewebkit = function() { return "object" == typeof window.process }, a.mobile = function() { return a.androidphone() || a.iphone() || a.ipod() || a.windowsphone() || a.blackberryphone() || a.fxosphone() || a.meego() }, a.tablet = function() { return a.ipad() || a.androidtablet() || a.blackberrytablet() || a.windowstablet() || a.fxostablet() }, a.desktop = function() { return !a.tablet() && !a.mobile() }, a.television = function() { var a; for (television = ["googletv", "viera", "smarttv", "internet.tv", "netcast", "nettv", "appletv", "boxee", "kylo", "roku", "dlnadoc", "roku", "pov_tv", "hbbtv", "ce-html"], a = 0; a < television.length;) { if (e(television[a])) return !0; a++ } return !1 }, a.portrait = function() { return window.innerheight / window.innerwidth > 1 }, a.landscape = function() { return window.innerheight / window.innerwidth < 1 }, a.noconflict = function() { return window.device = b, this }, e = function(a) { return -1 !== j.indexof(a) }, g = function(a) { var b; return b = new regexp(a, "i"), d.classname.match(b) }, c = function(a) { var b = null; g(a) || (b = d.classname.replace(/^\s+|\s+$/g, ""), d.classname = b + " " + a) }, i = function(a) { g(a) && (d.classname = d.classname.replace(" " + a, "")) }, a.ios() ? a.ipad() ? c("ios ipad tablet") : a.iphone() ? c("ios iphone mobile") : a.ipod() && c("ios ipod mobile") : a.android() ? c(a.androidtablet() ? "android tablet" : "android mobile") : a.blackberry() ? c(a.blackberrytablet() ? "blackberry tablet" : "blackberry mobile") : a.windows() ? c(a.windowstablet() ? "windows tablet" : a.windowsphone() ? "windows mobile" : "desktop") : a.fxos() ? c(a.fxostablet() ? "fxos tablet" : "fxos mobile") : a.meego() ? c("meego mobile") : a.nodewebkit() ? c("node-webkit") : a.television() ? c("television") : a.desktop() && c("desktop"), a.cordova() && c("cordova"), f = function() { a.landscape() ? (i("portrait"), c("landscape")) : (i("landscape"), c("portrait")) }, h = object.prototype.hasownproperty.call(window, "onorientationchange") ? "orientationchange" : "resize", window.addeventlistener ? window.addeventlistener(h, f, !1) : window.attachevent ? window.attachevent(h, f) : window[h] = f, f(), "function" == typeof define && "object" == typeof define.amd && define.amd ? define(function() { return a }) : "undefined" != typeof module && module.exports ? module.exports = a : window.device = a }).call(this);