window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var i;return(l('@font-face {font-family:"font";src:url("https://")}',function(n,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";i=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),i&&/IEMobile\/9\.0/.test(n.navigator.userAgent))?!1:i};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?: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,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.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:"3.7.0",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),function(n,t,i){function et(n){return!n||n=="loaded"||n=="complete"||n=="uninitialized"}function ct(n,i,u,s,h,l){var a=t.createElement("script"),v,y;s=s||r.errorTimeout;a.src=n;for(y in u)a.setAttribute(y,u[y]);i=l?e:i||c;a.onreadystatechange=a.onload=function(){!v&&et(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};o(function(){v||(v=1,i(1))},s);w();h?a.onload():f.parentNode.insertBefore(a,f)}function lt(n,i,u,s,h,l){var a=t.createElement("link"),v;s=s||r.errorTimeout;i=l?e:i||c;a.href=n;a.rel="stylesheet";a.type="text/css";for(v in u)a.setAttribute(v,u[v]);h||(w(),f.parentNode.insertBefore(a,f),o(i,0))}function e(){var n=s.shift();h=1;n?n.t?o(function(){(n.t=="c"?r.injectCss:r.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):h=0}function at(n,i,c,l,a,v,y){function tt(t){if(!k&&et(p.readyState)&&(nt.r=k=1,h||e(),t)){n!="img"&&o(function(){g.removeChild(p)},50);for(var r in u[i])u[i].hasOwnProperty(r)&&u[i][r].onload();p.onload=p.onreadystatechange=null}}y=y||r.errorTimeout;var p=t.createElement(n),k=0,b=0,nt={t:c,s:i,e:a,a:v,x:y};u[i]===1&&(b=1,u[i]=[]);n=="object"?(p.data=i,p.setAttribute("type","text/css")):(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){tt.call(this,b)};s.splice(l,0,nt);n!="img"&&(b||u[i]===2?(w(),g.insertBefore(p,d?null:f),o(tt,y)):u[i].push(p))}function vt(n,t,i,r,u){return h=0,t=t||"j",l(n)?at(t=="c"?ht:it,n,t,this.i++,i,r,u):(s.splice(this.i++,0,n),s.length==1&&e()),this}function ot(){var n=r;return n.loader={load:vt,i:0},n}var v=t.documentElement,o=n.setTimeout,f=t.getElementsByTagName("script")[0],y={}.toString,s=[],h=0,c=function(){},k="MozAppearance"in v.style,d=k&&!!t.createRange().compareNode,g=d?v:f.parentNode,st=n.opera&&y.call(n.opera)=="[object Opera]",nt=!!t.attachEvent&&!st,tt="webkitAppearance"in v.style&&!("async"in t.createElement("script")),it=k?"object":nt||tt?"script":"img",ht=nt?"script":tt?"img":it,rt=Array.isArray||function(n){return y.call(n)=="[object Array]"},p=function(n){return Object(n)===n},l=function(n){return typeof n=="string"},a=function(n){return y.call(n)=="[object Function]"},w=function(){f&&f.parentNode||(f=t.getElementsByTagName("script")[0])},b=[],u={},ut={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},ft,r;r=function(n){function v(n){for(var r=n.split("!"),o=b.length,e=r.pop(),s=r.length,i={url:e,origUrl:e,prefixes:r},u,f,t=0;t<s;t++)f=r[t].split("="),u=ut[f.shift()],u&&(i=u(i,f));for(t=0;t<o;t++)i=b[t](i);return i}function s(n){var t=n.split("?")[0];return t.substr(t.lastIndexOf(".")+1)}function o(n,t,r,f,e){var o=v(n),h=o.autoCallback,c=s(o.url);if(!o.bypass){if(t&&(t=a(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead)return o.instead(n,t,r,f,e);u[o.url]&&o.reexecute!==!0?o.noexec=!0:u[o.url]=1;n&&r.load(o.url,o.forceCSS||!o.forceJS&&"css"==s(o.url)?"c":i,o.noexec,o.attrs,o.timeout);(a(t)||a(h))&&r.load(function(){ot();t&&t(o.origUrl,e,f);h&&h(o.origUrl,e,f);u[o.url]=2})}}function h(n,t){function h(n,u){if(""===n||n){if(l(n))u||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);f()}),o(n,i,t,0,e);else if(p(n)){v=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}();for(r in n)n.hasOwnProperty(r)&&(u||--v||(a(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);f()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);f()}}(s[r])),o(n[r],i,t,r,e))}}else u||f()}var e=!!n.test,y=e?n.yep:n.nope,u=n.load||n.both,i=n.callback||c,s=i,f=n.complete||c,v,r;h(y,!!u||!!n.complete);u&&h(u);u||!n.complete||h("")}var f,t,e=this.yepnope.loader;if(l(n))o(n,0,e,0);else if(rt(n))for(f=0;f<n.length;f++)t=n[f],l(t)?o(t,0,e,0):rt(t)?r(t):p(t)&&h(t,e);else p(n)&&h(n,e)};r.addPrefix=function(n,t){ut[n]=t};r.addFilter=function(n){b.push(n)};r.errorTimeout=1e4;t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",ft=function(){t.removeEventListener("DOMContentLoaded",ft,0);t.readyState="complete"},0));n.yepnope=ot();n.yepnope.executeStack=e;n.yepnope.injectJs=ct;n.yepnope.injectCss=lt}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n){n.addTest("requestanimationframe",function(){return/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)?!1:window.requestAnimationFrame&&window.cancelAnimationFrame})}(window.Modernizr),function(n){n.addTest("ie9Mobile",function(){return/IEMobile\/9\.0/.test(window.navigator.userAgent)?!0:!1})}(window.Modernizr),function(n){n.addTest("queryselector",function(){"querySelector"in document&&"querySelectorAll"in document})}(window.Modernizr),function(n){n.addTest("json",function(){return"JSON"in window&&"parse"in JSON&&"stringify"in JSON})}(window.Modernizr),function(n){n.addTest("promises",function(){return"Promise"in window&&"resolve"in window.Promise&&"reject"in window.Promise&&"all"in window.Promise&&"race"in window.Promise&&function(){var n;return new window.Promise(function(t){n=t}),typeof n=="function"}()})}(window.Modernizr),function(n){n.addTest("es6array",function(){return!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)})}(window.Modernizr),function(n){n.addTest("es5array",function(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)});n.addTest("es5string",function(){return!!(String.prototype&&String.prototype.trim)});n.addTest("es5",function(){return!!(n.es5array&&n.es5string)});n.addTest("es5object",function(){return!!Object.getOwnPropertyNames})}(window.Modernizr)