/*
 * Babel v5.8.25
 * https://babeljs.io/
 * Licensed under the MIT license
 */

/*
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under the MIT license
 */

/*
 * CanJS - 2.3.5
 * http://canjs.com/
 * Copyright (c) 2015 Bitovi
 * Thu, 03 Dec 2015 23:34:11 GMT
 * Licensed MIT
 */

/*!
 * Detectizr v2.2.0
 * http://barisaydinoglu.github.com/Detectizr/
 *
 * Written by Baris Aydinoglu (http://baris.aydinoglu.info) - Copyright 2012
 * Released under the MIT license
 *
 * Date: 2015-09-28T21:37Z
 */

/*
 * jQuery JavaScript Library v2.1.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-04-28T16:01Z
 */

/*!
 * jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2015 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Version: 3.2.0
 */

/*
 * lodash 3.10.1 lodash.com/license
 * Underscore.js 1.8.3 underscorejs.org/LICENSE
 */

/*
 * spin.js 2.3.2
 * Copyright (c) 2011-2014 Felix Gnass
 * Licensed under the MIT license
 * http://spin.js.org/
 */

/*
 * SystemJS v0.19.6
 * https://github.com/systemjs/systemjs
 * Copyright (C) 2013-2015 Guy Bedford
 * Licensed MIT
 */

//! moment.js
//! version : 2.10.6
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com

/*
 * Modernizr v2.8.3
 * www.modernizr.com
 *
 * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
 * Available under the BSD and MIT licenses: www.modernizr.com/license/
 */

window.Modernizr=function(e,t,n){function r(e){y.cssText=e}function o(e,t){return r(E.join(e+";")+(t||""))}function i(e,t){return typeof e===t}function a(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var r in e){var o=e[r];if(!a(o,"-")&&y[o]!==n)return"pfx"==t?o:!0}return!1}function c(e,t,r){for(var o in e){var a=t[e[o]];if(a!==n)return r===!1?e[o]:i(a,"function")?a.bind(r||t):a}return!1}function l(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+C.join(r+" ")+r).split(" ");return i(t,"string")||i(t,"undefined")?s(o,t):(o=(e+" "+T.join(r+" ")+r).split(" "),c(o,t,n))}function d(){f.input=function(n){for(var r=0,o=n.length;o>r;r++)z[n[r]]=!!(n[r]in w);return z.list&&(z.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),z}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(e){for(var r,o,i,a=0,s=e.length;s>a;a++)w.setAttribute("type",o=e[a]),r="text"!==w.type,r&&(w.value=x,w.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&w.style.WebkitAppearance!==n?(h.appendChild(w),i=t.defaultView,r=i.getComputedStyle&&"textfield"!==i.getComputedStyle(w,null).WebkitAppearance&&0!==w.offsetHeight,h.removeChild(w)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?w.checkValidity&&w.checkValidity()===!1:w.value!=x)),A[e[a]]=!!r;return A}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u,m,p="2.8.3",f={},g=!0,h=t.documentElement,v="modernizr",b=t.createElement(v),y=b.style,w=t.createElement("input"),x=":)",k={}.toString,E=" -webkit- -moz- -o- -ms- ".split(" "),S="Webkit Moz O ms",C=S.split(" "),T=S.toLowerCase().split(" "),j={svg:"http://www.w3.org/2000/svg"},$={},A={},z={},P=[],R=P.slice,M=function(e,n,r,o){var i,a,s,c,l=t.createElement("div"),d=t.body,u=d||t.createElement("body");if(parseInt(r,10))for(;r--;)s=t.createElement("div"),s.id=o?o[r]:v+(r+1),l.appendChild(s);return i=["&#173;",'<style id="s',v,'">',e,"</style>"].join(""),l.id=v,(d?l:u).innerHTML+=i,u.appendChild(l),d||(u.style.background="",u.style.overflow="hidden",c=h.style.overflow,h.style.overflow="hidden",h.appendChild(u)),a=n(l,e),d?l.parentNode.removeChild(l):(u.parentNode.removeChild(u),h.style.overflow=c),!!a},D=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return M("@media "+t+" { #"+v+" { position: absolute; } }",function(t){r="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r},F=function(){function e(e,o){o=o||t.createElement(r[e]||"div"),e="on"+e;var a=e in o;return a||(o.setAttribute||(o=t.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(e,""),a=i(o[e],"function"),i(o[e],"undefined")||(o[e]=n),o.removeAttribute(e))),o=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),N={}.hasOwnProperty;m=i(N,"undefined")||i(N.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(e,t){return N.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=R.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var i=new o,a=t.apply(i,n.concat(R.call(arguments)));return Object(a)===a?a:i}return t.apply(e,n.concat(R.call(arguments)))};return r}),$.flexbox=function(){return l("flexWrap")},$.flexboxlegacy=function(){return l("boxDirection")},$.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},$.canvastext=function(){return!(!f.canvas||!i(t.createElement("canvas").getContext("2d").fillText,"function"))},$.webgl=function(){return!!e.WebGLRenderingContext},$.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:M(["@media (",E.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},$.geolocation=function(){return"geolocation"in navigator},$.postmessage=function(){return!!e.postMessage},$.websqldatabase=function(){return!!e.openDatabase},$.indexedDB=function(){return!!l("indexedDB",e)},$.hashchange=function(){return F("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},$.history=function(){return!(!e.history||!history.pushState)},$.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},$.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},$.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),a(y.backgroundColor,"rgba")},$.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),a(y.backgroundColor,"rgba")||a(y.backgroundColor,"hsla")},$.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(y.background)},$.backgroundsize=function(){return l("backgroundSize")},$.borderimage=function(){return l("borderImage")},$.borderradius=function(){return l("borderRadius")},$.boxshadow=function(){return l("boxShadow")},$.textshadow=function(){return""===t.createElement("div").style.textShadow},$.opacity=function(){return o("opacity:.55"),/^0.55$/.test(y.opacity)},$.cssanimations=function(){return l("animationName")},$.csscolumns=function(){return l("columnCount")},$.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((e+"-webkit- ".split(" ").join(t+e)+E.join(n+e)).slice(0,-e.length)),a(y.backgroundImage,"gradient")},$.cssreflections=function(){return l("boxReflect")},$.csstransforms=function(){return!!l("transform")},$.csstransforms3d=function(){var e=!!l("perspective");return e&&"webkitPerspective"in h.style&&M("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight}),e},$.csstransitions=function(){return l("transition")},$.fontface=function(){var e;return M('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"";e=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])}),e},$.generatedcontent=function(){var e;return M(["#",v,"{font:0/0 a}#",v,':after{content:"',x,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},$.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},$.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},$.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(e){return!1}},$.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(e){return!1}},$.webworkers=function(){return!!e.Worker},$.applicationcache=function(){return!!e.applicationCache},$.svg=function(){return!!t.createElementNS&&!!t.createElementNS(j.svg,"svg").createSVGRect},$.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==j.svg},$.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(k.call(t.createElementNS(j.svg,"animate")))},$.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(k.call(t.createElementNS(j.svg,"clipPath")))};for(var I in $)m($,I)&&(u=I.toLowerCase(),f[u]=$[I](),P.push((f[u]?"":"no-")+u));return f.input||d(),f.addTest=function(e,t){if("object"==typeof e)for(var r in e)m(e,r)&&f.addTest(r,e[r]);else{if(e=e.toLowerCase(),f[e]!==n)return f;t="function"==typeof t?t():t,"undefined"!=typeof g&&g&&(h.className+=" "+(t?"":"no-")+e),f[e]=t}return f},r(""),b=w=null,function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=v[e[g]];return t||(t={},h++,e[g]=h,v[h]=t),t}function i(e,n,r){if(n||(n=t),d)return n.createElement(e);r||(r=o(n));var i;return i=r.cache[e]?r.cache[e].cloneNode():f.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!i.canHaveChildren||p.test(e)||i.tagUrn?i:r.frag.appendChild(i)}function a(e,n){if(e||(e=t),d)return e.createDocumentFragment();n=n||o(e);for(var i=n.frag.cloneNode(),a=0,s=r(),c=s.length;c>a;a++)i.createElement(s[a]);return i}function s(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return b.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(b,t.frag)}function c(e){e||(e=t);var r=o(e);return!b.shivCSS||l||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),d||s(e,r),e}var l,d,u="3.7.0",m=e.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",h=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",l="hidden"in e,d=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){l=!0,d=!0}}();var b={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:u,shivCSS:m.shivCSS!==!1,supportsUnknownElements:d,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:c,createElement:i,createDocumentFragment:a};e.html5=b,c(t)}(this,t),f._version=p,f._prefixes=E,f._domPrefixes=T,f._cssomPrefixes=C,f.mq=D,f.hasEvent=F,f.testProp=function(e){return s([e])},f.testAllProps=l,f.testStyles=M,f.prefixed=function(e,t,n){return t?l(e,t,n):l(e,"pfx")},h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+P.join(" "):""),f}(this,this.document),window.Detectizr=function(e,t,n,r){function o(e,t){var n,r,i;if(arguments.length>2)for(n=1,r=arguments.length;r>n;n+=1)o(e,arguments[n]);else for(i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function i(e){return w.browser.userAgent.indexOf(e)>-1}function a(e){return e.test(w.browser.userAgent)}function s(e){return e.exec(w.browser.userAgent)}function c(e){return e.replace(/^\s+|\s+$/g,"")}function l(e){return null===e||e===r?"":String(e).replace(/((\s|\-|\.)+[a-z0-9])/g,function(e){return e.toUpperCase().replace(/(\s|\-|\.)/g,"")})}function d(e,t){var n=t||"",r=1===e.nodeType&&(e.className?(" "+e.className+" ").replace(C," "):"");if(r){for(;r.indexOf(" "+n+" ")>=0;)r=r.replace(" "+n+" "," ");e.className=t?c(r):""}}function u(e,t,n){e&&(e=l(e),t&&(t=l(t),m(e+t,!0),n&&m(e+t+"_"+n,!0)))}function m(e,t){e&&x&&(E.addAllFeaturesAsClass?x.addTest(e,t):(t="function"==typeof t?t():t,t?x.addTest(e,!0):(delete x[e],d(T,e))))}function p(e,t){e.version=t;var n=t.split(".");n.length>0?(n=n.reverse(),e.major=n.pop(),n.length>0?(e.minor=n.pop(),n.length>0?(n=n.reverse(),e.patch=n.join(".")):e.patch="0"):e.minor="0"):e.major="0"}function f(){e.clearTimeout(b),b=e.setTimeout(function(){y=w.device.orientation,e.innerHeight>e.innerWidth?w.device.orientation="portrait":w.device.orientation="landscape",m(w.device.orientation,!0),y!==w.device.orientation&&m(y,!1)},10)}function g(e){var n,r,o,i,a,s=t.plugins;for(i=s.length-1;i>=0;i--){for(n=s[i],r=n.name+n.description,o=0,a=e.length;a>=0;a--)-1!==r.indexOf(e[a])&&(o+=1);if(o===e.length)return!0}return!1}function h(e){var t;for(t=e.length-1;t>=0;t--)try{new ActiveXObject(e[t])}catch(n){}return!1}function v(r){var c,d,v,b,y,C,T;if(E=o({},E,r||{}),E.detectDevice){for(w.device={type:"",model:"",orientation:""},v=w.device,a(/googletv|smarttv|smart-tv|internet.tv|netcast|nettv|appletv|boxee|kylo|roku|dlnadoc|roku|pov_tv|hbbtv|ce\-html/)?(v.type=k[0],v.model="smartTv"):a(/xbox|playstation.3|wii/)?(v.type=k[0],v.model="gameConsole"):a(/ip(a|ro)d/)?(v.type=k[1],v.model="ipad"):a(/tablet/)&&!a(/rx-34/)||a(/folio/)?(v.type=k[1],v.model=String(s(/playbook/)||"")):a(/linux/)&&a(/android/)&&!a(/fennec|mobi|htc.magic|htcX06ht|nexus.one|sc-02b|fone.945/)?(v.type=k[1],v.model="android"):a(/kindle/)||a(/mac.os/)&&a(/silk/)?(v.type=k[1],v.model="kindle"):a(/gt-p10|sc-01c|shw-m180s|sgh-t849|sch-i800|shw-m180l|sph-p100|sgh-i987|zt180|htc(.flyer|\_flyer)|sprint.atp51|viewpad7|pandigital(sprnova|nova)|ideos.s7|dell.streak.7|advent.vega|a101it|a70bht|mid7015|next2|nook/)||a(/mb511/)&&a(/rutem/)?(v.type=k[1],v.model="android"):a(/bb10/)?(v.type=k[1],v.model="blackberry"):(v.model=s(/iphone|ipod|android|blackberry|opera mini|opera mobi|skyfire|maemo|windows phone|palm|iemobile|symbian|symbianos|fennec|j2me/),null!==v.model?(v.type=k[2],v.model=String(v.model)):(v.model="",a(/bolt|fennec|iris|maemo|minimo|mobi|mowser|netfront|novarra|prism|rx-34|skyfire|tear|xv6875|xv6975|google.wireless.transcoder/)?v.type=k[2]:a(/opera/)&&a(/windows.nt.5/)&&a(/htc|xda|mini|vario|samsung\-gt\-i8000|samsung\-sgh\-i9/)?v.type=k[2]:a(/windows.(nt|xp|me|9)/)&&!a(/phone/)||a(/win(9|.9|nt)/)||a(/\(windows 8\)/)?v.type=k[3]:a(/macintosh|powerpc/)&&!a(/silk/)?(v.type=k[3],v.model="mac"):a(/linux/)&&a(/x11/)?v.type=k[3]:a(/solaris|sunos|bsd/)?v.type=k[3]:a(/cros/)?v.type=k[3]:a(/bot|crawler|spider|yahoo|ia_archiver|covario-ids|findlinks|dataparksearch|larbin|mediapartners-google|ng-search|snappy|teoma|jeeves|tineye/)&&!a(/mobile/)?(v.type=k[3],v.model="crawler"):v.type=k[2])),c=0,d=k.length;d>c;c+=1)m(k[c],v.type===k[c]);E.detectDeviceModel&&m(l(v.model),!0)}if(E.detectScreen&&(v.screen={},x&&x.mq&&(x.mq("only screen and (max-width: 240px)")?(v.screen.size="veryVerySmall",m("veryVerySmallScreen",!0)):x.mq("only screen and (max-width: 320px)")?(v.screen.size="verySmall",m("verySmallScreen",!0)):x.mq("only screen and (max-width: 480px)")&&(v.screen.size="small",m("smallScreen",!0)),(v.type===k[1]||v.type===k[2])&&x.mq("only screen and (-moz-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen  and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 1.3dppx)")&&(v.screen.resolution="high",m("highresolution",!0))),v.type===k[1]||v.type===k[2]?(e.onresize=function(e){f(e)},f()):(v.orientation="landscape",m(v.orientation,!0))),E.detectOS&&(w.os={},b=w.os,""!==v.model&&("ipad"===v.model||"iphone"===v.model||"ipod"===v.model?(b.name="ios",p(b,(a(/os\s([\d_]+)/)?RegExp.$1:"").replace(/_/g,"."))):"android"===v.model?(b.name="android",p(b,a(/android\s([\d\.]+)/)?RegExp.$1:"")):"blackberry"===v.model?(b.name="blackberry",p(b,a(/version\/([^\s]+)/)?RegExp.$1:"")):"playbook"===v.model&&(b.name="blackberry",p(b,a(/os ([^\s]+)/)?RegExp.$1.replace(";",""):""))),b.name||(i("win")||i("16bit")?(b.name="windows",i("windows nt 10")?p(b,"10"):i("windows nt 6.3")?p(b,"8.1"):i("windows nt 6.2")||a(/\(windows 8\)/)?p(b,"8"):i("windows nt 6.1")?p(b,"7"):i("windows nt 6.0")?p(b,"vista"):i("windows nt 5.2")||i("windows nt 5.1")||i("windows xp")?p(b,"xp"):i("windows nt 5.0")||i("windows 2000")?p(b,"2k"):i("winnt")||i("windows nt")?p(b,"nt"):i("win98")||i("windows 98")?p(b,"98"):(i("win95")||i("windows 95"))&&p(b,"95")):i("mac")||i("darwin")?(b.name="mac os",i("68k")||i("68000")?p(b,"68k"):i("ppc")||i("powerpc")?p(b,"ppc"):i("os x")&&p(b,(a(/os\sx\s([\d_]+)/)?RegExp.$1:"os x").replace(/_/g,"."))):i("webtv")?b.name="webtv":i("x11")||i("inux")?b.name="linux":i("sunos")?b.name="sun":i("irix")?b.name="irix":i("freebsd")?b.name="freebsd":i("bsd")&&(b.name="bsd")),b.name&&(m(b.name,!0),b.major&&(u(b.name,b.major),b.minor&&u(b.name,b.major,b.minor))),a(/\sx64|\sx86|\swin64|\swow64|\samd64/)?b.addressRegisterSize="64bit":b.addressRegisterSize="32bit",m(b.addressRegisterSize,!0)),E.detectBrowser&&(y=w.browser,a(/opera|webtv/)||!a(/msie\s([\d\w\.]+)/)&&!i("trident")?i("firefox")?(y.engine="gecko",y.name="firefox",p(y,a(/firefox\/([\d\w\.]+)/)?RegExp.$1:"")):i("gecko/")?y.engine="gecko":i("opera")?(y.name="opera",y.engine="presto",p(y,a(/version\/([\d\.]+)/)?RegExp.$1:a(/opera(\s|\/)([\d\.]+)/)?RegExp.$2:"")):i("konqueror")?y.name="konqueror":i("edge")?(y.engine="webkit",y.name="edge",p(y,a(/edge\/([\d\.]+)/)?RegExp.$1:"")):i("chrome")?(y.engine="webkit",y.name="chrome",p(y,a(/chrome\/([\d\.]+)/)?RegExp.$1:"")):i("iron")?(y.engine="webkit",y.name="iron"):i("crios")?(y.name="chrome",y.engine="webkit",p(y,a(/crios\/([\d\.]+)/)?RegExp.$1:"")):i("applewebkit/")?(y.name="safari",y.engine="webkit",p(y,a(/version\/([\d\.]+)/)?RegExp.$1:"")):i("mozilla/")&&(y.engine="gecko"):(y.engine="trident",y.name="ie",!e.addEventListener&&n.documentMode&&7===n.documentMode?p(y,"8.compat"):a(/trident.*rv[ :](\d+)\./)?p(y,RegExp.$1):p(y,a(/trident\/4\.0/)?"8":RegExp.$1)),y.name&&(m(y.name,!0),y.major&&(u(y.name,y.major),y.minor&&u(y.name,y.major,y.minor))),m(y.engine,!0),y.language=t.userLanguage||t.language,m(y.language,!0)),E.detectPlugins){for(y.plugins=[],c=S.length-1;c>=0;c--)C=S[c],T=!1,e.ActiveXObject?T=h(C.progIds):t.plugins&&(T=g(C.substrs)),T&&(y.plugins.push(C.name),m(C.name,!0));t.javaEnabled()&&(y.plugins.push("java"),m("java",!0))}}var b,y,w={},x=e.Modernizr,k=["tv","tablet","mobile","desktop"],E={addAllFeaturesAsClass:!1,detectDevice:!0,detectDeviceModel:!0,detectScreen:!0,detectOS:!0,detectBrowser:!0,detectPlugins:!0},S=[{name:"adobereader",substrs:["Adobe","Acrobat"],progIds:["AcroPDF.PDF","PDF.PDFCtrl.5"]},{name:"flash",substrs:["Shockwave Flash"],progIds:["ShockwaveFlash.ShockwaveFlash.1"]},{name:"wmplayer",substrs:["Windows Media"],progIds:["wmplayer.ocx"]},{name:"silverlight",substrs:["Silverlight"],progIds:["AgControl.AgControl"]},{name:"quicktime",substrs:["QuickTime"],progIds:["QuickTime.QuickTime"]}],C=/[\t\r\n]/g,T=n.documentElement;return w.detect=function(e){return v(e)},w.init=function(){w!==r&&(w.browser={userAgent:(t.userAgent||t.vendor||e.opera).toLowerCase()},w.detect())},w.init(),w}(this,this.navigator,this.document);
