From 321de75d38cc964114a86f861813a0d5e0265645 Mon Sep 17 00:00:00 2001 From: Ifeora Okechukwu Date: Mon, 25 Sep 2017 18:26:55 +0100 Subject: [PATCH] Update browsengine.min.js --- dist/browsengine.min.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/browsengine.min.js b/dist/browsengine.min.js index 876fb7e..f106636 100644 --- a/dist/browsengine.min.js +++ b/dist/browsengine.min.js @@ -1,14 +1,14 @@ /*! * @desc: [Engine Detection Script for Browsers on Any Device] * @file: [browsengine.js] - * @version: 0.0.3-beta.5 + * @version: 0.0.4 * @author: https://twitter.com/isocroft (@isocroft) * @created: 13/11/2014 - * @updated: 12/09/2017 + * @updated: 25/09/2017 * @license: MIT * @remarks: with love for the OpenSource Community... */ -!function(n,t){var f="attachEvent",i=!0,r=!1;function e(n){return{}.toString.call(n).toLowerCase()}function u(n,t){return{}.hasOwnProperty.call(n,t)}function o(){var n=new Function("/*@cc_on return @_jscript_version; @*/")();return n===t&&(n=11),n}function s(n,t,u){var l="complete",c="readystatechange",a=r,v=i,e=n.document,y=e.documentElement,h=e.addEventListener?"addEventListener":f,w=e.addEventListener?"removeEventListener":"detachEvent",s=e.addEventListener?"":"on",o=function(f){(f.type!=c||e.readyState==l)&&((f.type=="load"?n:e)[w](s+f.type,o,r),!a&&(a=i)&&t.call(n,f.type||f,u))},p=function(){try{y.doScroll("left")}catch(n){setTimeout(p,50);return}o("poll")};if(e.readyState==l)t.call(n,"lazy",u);else{if(e.createEventObject&&y.doScroll){try{v=!n.frameElement}catch(b){}v&&p()}e[h](s+"DOMContentLoaded",o,r),e[h](s+c,o,r),n[h](s+"load",o,r)}} + /*! * contentloaded.js * @@ -23,4 +23,5 @@ * http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE * */ -s.apply(null,[window,function(){var ci="yes-webkit",ni="yes-blink",gt="aria-setup-mode",nt="aria-os-data",ri=" oldFlock",fi="aria-screen-view",ot="unknown",dt=" 360x480 480x640",ui=" 480x360 640x480",ii=" 600x800",si=" 800x600",st="1.333",hi=" 320x480",ei=" 480x320",oi=" 320x534",ti=" 534x320",it="mobile",rt="desktop",d="tablet",l="aria-view-mode",vt=" 600x1024",yt=" 1024x600",w=768,s=this,v=s.document,li=v.documentElement,pt="documentMode",y=s.navigator,c=y.userAgent,ir=y.appName,a,bt=r,gi=r,kt=r,at=r,ki=r,di=r,lt=r,ai,ut,vi,b,g,ht=r,ct=r,yi=r,p=c.toLowerCase(),wt=(s.chrome||v.readyState)&&"clientInformation"in s&&"all"in v,et="orientation"in s&&!("ondeviceorientation"in s),pi=/(?:chrome[^ ]+:)? (edge)\/(\d+(\.\d+)?)/.exec(p)||/(webkit)[ \/]([\w.]+)/.exec(p)||/; (flock)\/(\d+(\.\d+)?)/.exec(p)||/(opera|opr|opios)(?:.*version)?[ \/]([\w.]+)/.exec(p)||/(?:(msie) |rv)([\w.]+)/.exec(p)||!/compatible/.test(p)&&!/seamonkey/.test(p)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(p)||[],h={isLinux:function(){return y.platform.indexOf("Linux")==0},isMac:function(){return y.platform.indexOf("Mac")==0},isSun:function(){return y.platform.indexOf("Sun")==0},isWinPC:function(){return y.platform.indexOf("Win32")==0},isWinMobile:function(){return y.platform.indexOf("Win")==0&&(c.indexOf("Windows Phone")>0||c.indexOf("IEMobile")>0||c.indexOf("WPDesktop")>0)},isOperaMobile:function(n){return e(window.operamini)=="[object operamini]"||c.indexOf("Opera Mini")>0||n&&"OMiniFold"in n.style&&!!(n.className+=" operamini")},isIOS:function(){return c.indexOf("iPhone; U;")>0||c.indexOf("iPad; U;")>0||c.indexOf("iPod; U;")>0||c.search(/iPhone OS 3_(1|2)_2/)>0},isAndriod:function(){return this.isLinux()&&c.search(/\; Andriod(?:[\d]+\.[\d]+)/)>0&&c.search(/like/ig)==-1},isBB:function(){return c.search(/BlackBerry|\bBB\d+/)>-1},isWebOS:function(){return c.search(/(Web|HPW)OS/)>-1}},n=v.body||v.getElementsByTagName("body")[0],bt=!y.vendor&&s.crypto&&typeof s.mozInnerScreenX=="number"&&(!v.getBoxObjectFor||"registerContentHandler"in y)&&/Gecko/g.test(c),lt=/Presto/g.test(c)&&"defaultStatus"in s&&("OLink"in n.style||"oMatchesSelector"in n||e(s.opera)=="[object opera]"||h.isOperaMobile(n))&&"navigationMode"in s.history,at=(/*@cc_on!@*/r||v.selection||v.createEventObject)&&/Trident/g.test(c)&&(s.execScript||wt)&&"behavior"in n.style,gi="crypto"in s&&wt&&/Edge/g.test(c)&&!u(v,"security")&&s.chrome.runtime===t&&!at,kt=wt&&"crypto"in s&&!!s.Intl&&!!s.Intl.v8BreakIterator&&"CSS"in s;s.webpage={engine:{},old:{},device:{screen:{},os:null}};var nr=s.innerHeight||li.clientHeight||n.clientHeight,wi=s.innerWidth||li.clientWidth||n.clientWidth,rr=(wi/nr).toPrecision(2),k=(s.screen.width/s.screen.height).toPrecision(4),tr=s.screen.colorDepth||s.screen.pixelDepth;s.webpage.device.screen.dpi=tr,ut=at||bt?parseInt(s.screen.availWidth/wi):s.devicePixelRatio,a={isTouchCapable:function(){var n="onmsgesturechange",t="ontouchstart";return t in s&&!u(s,t)||(y.maxTouchPoints||y.msMaxTouchPoints||1)===10||n in s&&!u(s,n)},onDesktop:function(){return~~ut==1&&s.screen.width>=1024&&s.screen.width<1920&&!this.onTablet(i)},onTV:function(){return this.isTouchCapable()?~~ut==1.5&&s.screen.width>=1920:r},onTablet:function(n){return!n&&!this.isTouchCapable()?r:(c.match(/RIM/i)||c.match(/ipad;/i)||c.match(/nexus (7|10)/i)||c.match(/KFAPWI/i)||c.match(/tablet/i))&&!this.onMobile()},onMobile:function(){return this.isTouchCapable()?c.match(/[^-]mobi|mobile/i)&&s.screen.width=2}};switch(k){case"1.706":case"1.708":case"1.707":case"0.5859":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=600?(n.className+=k.search(/^(?:1\.70(?:[6-8]))$/)==0?yt:vt,a.onTablet()&&n.setAttribute(l,d),a.onDesktop()&&n.setAttribute(l,rt)):(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isIOS(n)||h.isOperaMobile(n))&&(n.className+=et?Math.abs(s.orientation||0)==90?yt:vt:k=="0.5859"?vt:yt,a.onTablet()&&n.setAttribute(l,d),a.onMobile()&&n.setAttribute(l,it));break;case"0.5634":case"0.5625":(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isIOS(n)||h.isOperaMobile(n))&&a.onMobile()&&n.setAttribute(l,it);break;case"0.5993":case"1.669":(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isIOS(n)||h.isOperaMobile(n))&&(n.className+=et?Math.abs(s.orientation||0)==90?ti:oi:k=="1.669"?ti:oi,a.onMobile()&&n.setAttribute(l,it));break;case"1.500":case"0.6667":(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isIOS(n)||h.isOperaMobile(n))&&(n.className+=et?Math.abs(s.orientation||0)==90?ei:hi:k=="0.6667"?hi:ei,a.onMobile()&&n.setAttribute(l,it));break;case st:case"0.7500":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=w?(n.className+=k==st?s.screen.width<=1024?" 1024x768":" 1152x864":s.screen.width<=w?" 768x1024":" 864x1152",a.onTablet()&&n.setAttribute(l,d),a.onDesktop()&&n.setAttribute(l,rt)):(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isIOS(n)||h.isOperaMobile(n))&&(a.onTablet()&&s.screen.width>=800?(n.className+=et?Math.abs(s.orientation)==90?si:ii:k==st?si:ii,n.setAttribute(l,d)):a.onMobile()&&s.screen.width>=360&&(n.className+=et?Math.abs(s.orientation||0)==90?ui:dt:k==st?ui:dt,n.setAttribute(l,it)));break;case"1.250":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=w?(n.className+=k=="1.250"?" 1280x1024":" 1024x1280",a.onTablet()&&n.setAttribute(l,d),a.onDesktop()&&n.setAttribute(l,rt)):(h.isWinMobile(n)||h.isBB(n)||h.isAndriod(n)||h.isOperaMobile(n))&&(a.onTablet()&&n.setAttribute(l,d),a.onMobile()&&n.setAttribute(l,it));break;case"1.779":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=w&&(n.className+=" 1366x768",a.onTablet()&&n.setAttribute(l,d),a.onDesktop()&&n.setAttribute(l,rt));break;case"1.778":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=w&&(n.className+=" 1920x1080",a.onDesktop()&&n.setAttribute(l,"desktop tv"));break;case"1.600":(h.isWinPC(n)||h.isMac(n)||h.isLinux(n))&&s.screen.width>=w&&(s.screen.width>1440&&s.screen.width<=1680&&(n.className+=" 1680x1050"),s.screen.width>1280&&s.screen.width<=1440&&(n.className+=" 1440x900"),s.screen.width<=1280&&(n.className+=" 1280x800"),a.onTablet()&&n.setAttribute(l,d),a.onDesktop()&&n.setAttribute(l,rt));break;case"1.805":(h.isWinPC()||h.isMac()||h.isLinux())&&s.screen.width>=w&&(n.className+=" 1386x768",a.onDesktop()&&n.setAttribute(l,rt));break;default:n.setAttribute(l,ot)}n.setAttribute("aria-last-detected",document.lastModified),n.setAttribute("aria-touch-capable",String(a.isTouchCapable())),ai.isRetina()?(n.setAttribute(fi,"retina"),s.webpage.device.screen.type="retina"):(n.setAttribute(fi,"normal"),s.webpage.device.screen.type="normal"),v[pt]||lt||(ht=(v.webkitHidden==r||v.webkitHidden===t)&&/(Chrome|Crios|Crmo|CrOS)/g.test(c)&&(y.vendor.indexOf("Google Inc")!=-1||!s.showModalDialog),ct=navigator.vendor.indexOf("Apple Computer")!=-1&&(/Gecko/g.test(c)||!y.taintEnabled)&&"webkitDashboardRegion"in n.style,yi=navigator.vendor.indexOf("KDE")!=-1&&/Konqueror/g.test(c)&&"KhtmlUserInput"in n.style,ki=navigator.vendor.indexOf("Amazon")!=-1&&/Silk/g.test(c),di=/YAbrowser/ig.test(c)),b=pi[1]||ot,g=parseInt(pi[2]||"0").toPrecision(2),g=parseFloat(g),g<=8&&b=="msie"&&at&&(n.className+=" oldIE",s.webpage.old.ie=i),g<=10&&b=="opera"&<&&(n.className+=" oldOpera",s.webpage.old.opera=i),g<=4&&b=="mozilla"&&bt&&(c.match(/firefox/i)&&(n.className+=" oldMoz",s.webpage.old.firefox=i),c.match(/flock/i)&&(n.className+=ri,s.webpage.old.flock=i)),g<=12&&b=="webkit"&&!kt&&(n.className+=ht?" oldChrome":ct?" oldSafari":"",ct?s.webpage.old.safari=i:ht&&(s.webpage.old.chrome=i),c.match(/flock/i)&&g>=4&&(n.className+=ri,s.webpage.old.flock=i)),h.isWinPC()?(n.setAttribute(nt,"Windows"),s.webpage.device.os="windows"):h.isMac(n)?(n.setAttribute(nt,"Macintosh"),s.webpage.device.os="macintosh"):h.isSun(n)?(n.setAttribute(nt,"Sun"),s.webpage.device.os="sun"):h.isLinux(n)?(n.setAttribute(nt,"Linux"),s.webpage.device.os="linux"):h.isIOS(n)?(n.setAttribute(nt,"iOS"),s.webpage.device.os="ios"):h.isAndriod(n)?(n.setAttribute(nt,"Linux Andriod"),s.webpage.device.os="linux andriod"):(n.setAttribute(nt,ot),s.webpage.device.os=ot),v.compatMode=="BackCompat"?(n.setAttribute(gt,"quirks"),n.className+=" quirks",s.webpage.quirks=i):(n.setAttribute(gt,"standards"),n.className+=" standards",s.webpage.standards=i);try{vi=n.getAttribute(l),s.webpage.device.type=vi}catch(ur){}if(at){var bi=function(n){return parseInt(c.match(n)[2])}(/MSIE\s(([0-9]+)[\.0-9]*)/),ft=o(),tt=bi===ft?" IE"+bi:ft;if(typeof tt!="number"){tt=" UA-unknown";return}ft=parseInt(tt),tt=" IE"+ft,n.className+=ft>=10?" yes-ms":" yes-old-ms",v[pt]&&v[pt]===ft&&("msInterpolationMode"in n.style||"msLinearGradient"in n.style)?n.className.indexOf(tt.substring(1))==-1&&(n.className+=tt+" forward-ie"):n.className+=tt,n.className+=" trident",s.webpage.engine.trident=i}else gi?b=="edge"&&"msTextSizeAdjust"in n.style&&(n.className+=" microsoftedge like-gecko like-khtml",s.webpage.engine.edgehtml=i):bt?(p.search(/firefox|iceweasel/)>-1?(n.className.indexOf("yes-moz")==-1&&(n.className+=" yes-moz firefox gecko"),b=="rv"&&(h.onTablet()||h.onMobile())&&(n.className+=" firefoxos")):p.search(/seamonkey/)>-1?n.className+=" yes-moz seamonkey gecko":p.search(/flock/)>-1&&(n.className+=" yes-moz flock gecko"),s.webpage.engine.gecko=i):yi?(n.className.indexOf("yes-khtml")>-1&&(n.className+=" yes-khtml konqueror like-gecko"),s.webpage.engine.khtml=i):typeof(window.URL||window.webkitURL)=="function"||ht?kt?(n.className.indexOf(ni)==-1&&(n.className+=" yes-blink chrome"),n.className+=" blink like-gecko like-khtml",s.webpage.engine.blink=i):(n.className.indexOf(ci)==-1&&(n.className+=c.match(/ubrowser\/(?:[\d]{1,}\.[\d]{1,})/)?" yes-webkit ucbrowser":" yes-webkit chrome"),n.className+=" webkit like-gecko like-khtml",s.webpage.engine.webkit=i):typeof(window.webkitURL||window.URL)=="undefined"&&c.indexOf("AppleWebkit")!=-1||ct?(n.className.indexOf(ci)==-1&&(n.className+=" yes-webkit safari like-gecko like-khtml"),s.webpage.engine.webkit=i):"OBackgroundSize"in n.style&&f in v||lt&&b=="opera"?(n.className.indexOf("yes-opera")==-1&&(n.className+=" yes-opera opera presto"),s.webpage.engine.presto=i):(/Blink/g.test(c)||kt&&!lt&&b=="opr")&&(n.className.indexOf(ni)==-1&&(n.className+=" yes-blink opera blink like-gecko like-khtml"),s.webpage.engine.blink=i)},{}])}("HTMLDocument"in this||"Document"in this) \ No newline at end of file + +!function(e,i){function t(e){return{}.toString.call(e).toLowerCase()}function a(e,i){return{}.hasOwnProperty.call(e,i)}function s(){var e=new Function("/*@cc_on return @_jscript_version; @*/")();return e===i&&(e=11),e}function n(e,i,t){var a=!1,s=!0,n=e.document,o=n.documentElement,r=n.addEventListener?"addEventListener":"attachEvent",c=n.addEventListener?"removeEventListener":"detachEvent",l=n.addEventListener?"":"on",d=function(s){("readystatechange"!=s.type||"complete"==n.readyState)&&(("load"==s.type?e:n)[c](l+s.type,d,!1),!a&&(a=!0)&&i.call(e,s.type||s,t))},b=function(){try{o.doScroll("left")}catch(e){return void setTimeout(b,50)}d("poll")};if("complete"==n.readyState)i.call(e,"lazy",t);else{if(n.createEventObject&&o.doScroll){try{s=!e.frameElement}catch(m){}s&&b()}n[r](l+"DOMContentLoaded",d,!1),n[r](l+"readystatechange",d,!1),e[r](l+"load",d,!1)}}n.apply(null,[window,function(){var e,n,o,r,c,l,d,b=this,m=b.document,u=m.documentElement,p="documentMode",w=b.navigator,h=w.userAgent,k=(w.appName,!1),x=!1,f=!1,g=!1,v=!1,y=!1,M=!1,N=!1,A=!1,O=!1,S=h.toLowerCase(),W=(b.chrome||m.readyState)&&"clientInformation"in b&&"all"in m,L="orientation"in b&&!("ondeviceorientation"in b),P=/(?:chrome[^ ]+:)? (edge)\/(\d+(\.\d+)?)/.exec(S)||/(webkit)[ \/]([\w.]+)/.exec(S)||/; (flock)\/(\d+(\.\d+)?)/.exec(S)||/(opera|opr|opios)(?:.*version)?[ \/]([\w.]+)/.exec(S)||/(?:(msie) |rv)([\w.]+)/.exec(S)||!/compatible/.test(S)&&!/seamonkey/.test(S)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(S)||[],C={isLinux:function(){return 0==w.platform.indexOf("Linux")},isMac:function(){return 0==w.platform.indexOf("Mac")},isSun:function(){return 0==w.platform.indexOf("Sun")},isWinPC:function(){return 0==w.platform.indexOf("Win32")},isWinMobile:function(e){return 0==w.platform.indexOf("Win")&&(h.indexOf("Windows Phone")>0||h.indexOf("IEMobile")>0||h.indexOf("WPDesktop")>0)},isOperaMobile:function(e){return"[object operamini]"==t(window.operamini)||h.indexOf("Opera Mini")>0||e&&"OMiniFold"in e.style&&!!(e.className+=" operamini")},isIOS:function(e){return!!w.platform&&!window.MSStream&&/iPad|iPhone|iPod/.test(w.platform)||h.indexOf("iPhone;")>0||h.indexOf("iPad;")>0||h.indexOf("iPod;")>0||h.search(/iPhone OS 3_(1|2)_2/)>0},isAndriod:function(e){return this.isLinux()&&h.search(/\; Andriod(?:[\d]+\.[\d]+)/)>0&&-1==h.search(/like/gi)},isBB:function(e){return h.search(/BlackBerry|\bBB\d+/)>-1},isWebOS:function(){return h.search(/(Web|HPW)OS/)>-1}},e=m.body||m.getElementsByTagName("body")[0],k=!w.vendor&&b.crypto&&"number"==typeof b.mozInnerScreenX&&(!m.getBoxObjectFor||"registerContentHandler"in w)&&/Gecko/g.test(h),M=/Presto/g.test(h)&&"defaultStatus"in b&&("OLink"in e.style||"oMatchesSelector"in e||"[object opera]"==t(b.opera)||C.isOperaMobile(e))&&"navigationMode"in b.history,g=(m.selection||m.createEventObject)&&/Trident/g.test(h)&&(b.execScript||W)&&"behavior"in e.style,x="crypto"in b&&W&&/Edge/g.test(h)&&!a(m,"security")&&b.chrome.runtime===i&&!g,f=W&&"crypto"in b&&!!b.Intl&&!!b.Intl.v8BreakIterator&&"CSS"in b;b.webpage={engine:{},old:{},device:{screen:{},os:null}};var I=b.innerHeight||u.clientHeight||e.clientHeight,T=b.innerWidth||u.clientWidth||e.clientWidth,B=((T/I).toPrecision(2),(b.screen.width/b.screen.height).toPrecision(4)),E=b.screen.colorDepth||b.screen.pixelDepth;switch(b.webpage.device.screen.dpi=E,r=g||k?parseInt(b.screen.availWidth/T):b.devicePixelRatio,n={isTouchCapable:function(){return"ontouchstart"in b&&!a(b,"ontouchstart")||10===(w.maxTouchPoints||w.msMaxTouchPoints||1)||"onmsgesturechange"in b&&!a(b,"onmsgesturechange")},onDesktop:function(){return 1==~~r&&b.screen.width>=1024&&b.screen.width<1920&&!this.onTablet(!0)},onTV:function(){return this.isTouchCapable()?1.5==~~r&&b.screen.width>=1920:!1},onTablet:function(e){return e||this.isTouchCapable()?(h.match(/RIM/i)||h.match(/ipad;/i)||h.match(/nexus (7|10)/i)||h.match(/KFAPWI/i)||h.match(/tablet/i))&&!this.onMobile():!1},onMobile:function(){return this.isTouchCapable()?h.match(/[^-]mobi|mobile/i)&&b.screen.width<768&&b.screen.width/r<768:!1}},o={isRetina:function(){return r>=2}},B){case"1.706":case"1.708":case"1.707":case"0.5859":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=600?(e.className+=0==B.search(/^(?:1\.70(?:[6-8]))$/)?" 1024x600":" 600x1024",n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onDesktop()&&e.setAttribute("aria-view-mode","desktop")):(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isIOS(e)||C.isOperaMobile(e))&&(L?e.className+=90==Math.abs(b.orientation||0)?" 1024x600":" 600x1024":e.className+="0.5859"==B?" 600x1024":" 1024x600",n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onMobile()&&e.setAttribute("aria-view-mode","mobile"));break;case"0.5634":case"0.5625":(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isIOS(e)||C.isOperaMobile(e))&&n.onMobile()&&e.setAttribute("aria-view-mode","mobile");break;case"0.5993":case"1.669":(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isIOS(e)||C.isOperaMobile(e))&&(L?e.className+=90==Math.abs(b.orientation||0)?" 534x320":" 320x534":e.className+="1.669"==B?" 534x320":" 320x534",n.onMobile()&&e.setAttribute("aria-view-mode","mobile"));break;case"1.500":case"0.6667":(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isIOS(e)||C.isOperaMobile(e))&&(L?e.className+=90==Math.abs(b.orientation||0)?" 480x320":" 320x480":e.className+="0.6667"==B?" 320x480":" 480x320",n.onMobile()&&e.setAttribute("aria-view-mode","mobile"));break;case"1.333":case"0.7500":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=768?(e.className+="1.333"==B?b.screen.width<=1024?" 1024x768":" 1152x864":b.screen.width<=768?" 768x1024":" 864x1152",n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onDesktop()&&e.setAttribute("aria-view-mode","desktop")):(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isIOS(e)||C.isOperaMobile(e))&&(n.onTablet()&&b.screen.width>=800?(L?e.className+=90==Math.abs(b.orientation)?" 800x600":" 600x800":e.className+="1.333"==B?" 800x600":" 600x800",e.setAttribute("aria-view-mode","tablet")):n.onMobile()&&b.screen.width>=360&&(L?e.className+=90==Math.abs(b.orientation||0)?" 480x360 640x480":" 360x480 480x640":e.className+="1.333"==B?" 480x360 640x480":" 360x480 480x640",e.setAttribute("aria-view-mode","mobile")));break;case"1.250":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=768?(e.className+="1.250"==B?" 1280x1024":" 1024x1280",n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onDesktop()&&e.setAttribute("aria-view-mode","desktop")):(C.isWinMobile(e)||C.isBB(e)||C.isAndriod(e)||C.isOperaMobile(e))&&(n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onMobile()&&e.setAttribute("aria-view-mode","mobile"));break;case"1.779":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=768&&(e.className+=" 1366x768",n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onDesktop()&&e.setAttribute("aria-view-mode","desktop"));break;case"1.778":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=768&&(e.className+=" 1920x1080",n.onDesktop()&&e.setAttribute("aria-view-mode","desktop"),n.onTV()&&e.setAttribute("aria-view-mode","tv"));break;case"1.600":(C.isWinPC(e)||C.isMac(e)||C.isLinux(e))&&b.screen.width>=768&&(b.screen.width>1440&&b.screen.width<=1680&&(e.className+=" 1680x1050"),b.screen.width>1280&&b.screen.width<=1440&&(e.className+=" 1440x900"),b.screen.width<=1280&&(e.className+=" 1280x800"),n.onTablet()&&e.setAttribute("aria-view-mode","tablet"),n.onDesktop()&&e.setAttribute("aria-view-mode","desktop"));break;case"1.805":(C.isWinPC()||C.isMac()||C.isLinux())&&b.screen.width>=768&&(e.className+=" 1386x768",n.onDesktop()&&e.setAttribute("aria-view-mode","desktop"));break;default:e.setAttribute("aria-view-mode","unknown")}e.setAttribute("aria-last-detected",document.lastModified),e.setAttribute("aria-touch-capable",String(n.isTouchCapable())),o.isRetina()?(e.setAttribute("aria-screen-view","retina"),b.webpage.device.screen.type="retina"):(e.setAttribute("aria-screen-view","normal"),b.webpage.device.screen.type="normal"),m[p]||M||(N=(0==m.webkitHidden||m.webkitHidden===i)&&/(Chrome|Crios|Crmo|CrOS)/g.test(h)&&(-1!=w.vendor.indexOf("Google Inc")||!b.showModalDialog),A=-1!=navigator.vendor.indexOf("Apple Computer")&&(/Gecko/g.test(h)||!w.taintEnabled)&&"webkitDashboardRegion"in e.style,O=-1!=navigator.vendor.indexOf("KDE")&&/Konqueror/g.test(h)&&"KhtmlUserInput"in e.style,v=-1!=navigator.vendor.indexOf("Amazon")&&/Silk/g.test(h),y=/YAbrowser/gi.test(h)),l=P[1]||"unknown",d=parseInt(P[2]||"0").toPrecision(2),d=parseFloat(d),8>=d&&"msie"==l&&g&&(e.className+=" oldIE",b.webpage.old.ie=!0),10>=d&&"opera"==l&&M&&(e.className+=" oldOpera",b.webpage.old.opera=!0),4>=d&&"mozilla"==l&&k&&(h.match(/firefox/i)&&(e.className+=" oldMoz",b.webpage.old.firefox=!0),h.match(/flock/i)&&(e.className+=" oldFlock",b.webpage.old.flock=!0)),12>=d&&"webkit"==l&&!f&&(e.className+=N?" oldChrome":A?" oldSafari":"",A?b.webpage.old.safari=!0:N&&(b.webpage.old.chrome=!0),h.match(/flock/i)&&d>=4&&(e.className+=" oldFlock",b.webpage.old.flock=!0)),C.isWinPC()?(e.setAttribute("aria-os-data","Windows"),b.webpage.device.os="windows"):C.isMac(e)?(e.setAttribute("aria-os-data","Macintosh"),b.webpage.device.os="macintosh"):C.isSun(e)?(e.setAttribute("aria-os-data","Sun"),b.webpage.device.os="sun"):C.isLinux(e)?(e.setAttribute("aria-os-data","Linux"),b.webpage.device.os="linux"):C.isIOS(e)?(e.setAttribute("aria-os-data","iOS"),b.webpage.device.os="ios"):C.isAndriod(e)?(e.setAttribute("aria-os-data","Linux Andriod"),b.webpage.device.os="linux andriod"):(e.setAttribute("aria-os-data","unknown"),b.webpage.device.os="unknown"),"BackCompat"==m.compatMode?(e.setAttribute("aria-setup-mode","quirks"),e.className+=" quirks",b.webpage.quirks=!0):(e.setAttribute("aria-setup-mode","standards"),e.className+=" standards",b.webpage.standards=!0);try{c=e.getAttribute("aria-view-mode"),b.webpage.device.type=c}catch(D){}if(g){var z=function(e){return parseInt(h.match(e)[2])}(/MSIE\s(([0-9]+)[\.0-9]*)/),R=s(),H=z===R?" IE"+z:R;if("number"!=typeof H)return void(H=" UA-unknown");R=parseInt(H),H=" IE"+R,e.className+=R>=10?" yes-ms":" yes-old-ms",m[p]&&m[p]===R&&("msInterpolationMode"in e.style||"msLinearGradient"in e.style)?-1==e.className.indexOf(H.substring(1))&&(e.className+=H+" forward-ie"):e.className+=H,e.className+=" trident",b.webpage.engine.trident=!0}else x?"edge"==l&&"msTextSizeAdjust"in e.style&&(e.className+=" microsoftedge like-gecko like-khtml",b.webpage.engine.edgehtml=!0):k?(S.search(/firefox|iceweasel/)>-1?(-1==e.className.indexOf("yes-moz")&&(e.className+=" yes-moz firefox gecko"),"rv"==l&&(C.onTablet()||C.onMobile())&&(e.className+=" firefoxos")):S.search(/seamonkey/)>-1?e.className+=" yes-moz seamonkey gecko":S.search(/flock/)>-1&&(e.className+=" yes-moz flock gecko"),b.webpage.engine.gecko=!0):O?(e.className.indexOf("yes-khtml")>-1&&(e.className+=" yes-khtml konqueror like-gecko"),b.webpage.engine.khtml=!0):"function"==typeof(window.URL||window.webkitURL)||N?f?(-1==e.className.indexOf("yes-blink")&&(e.className+=" yes-blink chrome"),e.className+=" blink like-gecko like-khtml",b.webpage.engine.blink=!0):(-1==e.className.indexOf("yes-webkit")&&(h.match(/ubrowser\/(?:[\d]{1,}\.[\d]{1,})/)?e.className+=" yes-webkit ucbrowser":e.className+=" yes-webkit chrome"),e.className+=" webkit like-gecko like-khtml",b.webpage.engine.webkit=!0):"undefined"==typeof(window.webkitURL||window.URL)&&-1!=h.indexOf("AppleWebkit")||A?(-1==e.className.indexOf("yes-webkit")&&(e.className+=" yes-webkit safari like-gecko like-khtml"),b.webpage.engine.webkit=!0):"OBackgroundSize"in e.style&&"attachEvent"in m||M&&"opera"==l?(-1==e.className.indexOf("yes-opera")&&(e.className+=" yes-opera opera presto"),b.webpage.engine.presto=!0):(/Blink/g.test(h)||f&&!M&&"opr"==l)&&(-1==e.className.indexOf("yes-blink")&&(e.className+=" yes-blink opera blink like-gecko like-khtml"),b.webpage.engine.blink=!0)},{}])}("HTMLDocument"in this||"Document"in this);