!function(n,t,i){function o(n,t){return typeof n===t}function st(){var i,n,u,f,e,s,t;for(var h in c)if(c.hasOwnProperty(h)){if(i=[],n=c[h],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=o(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)s=i[e],t=s.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),rt.push((f?"":"no-")+t.join("-"))}}function d(n){var t=f.className,i=r._config.classPrefix||"",u;(a&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),a?f.className.baseVal=t:f.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):a?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function g(n,t){var u,i,f;if("object"==typeof n)for(u in n)ot(n,u)&&g(u,n[u]);else{if(n=n.toLowerCase(),i=n.split("."),f=r[i[0]],2==i.length&&(f=f[i[1]]),"undefined"!=typeof f)return r;t="function"==typeof t?t():t;1==i.length?r[i[0]]=t:(!r[i[0]]||r[i[0]]instanceof Boolean||(r[i[0]]=new Boolean(r[i[0]])),r[i[0]][i[1]]=t);d([(t&&0!=t?"":"no-")+i.join("-")]);r._trigger(n,t)}return r}function ht(){var n=t.body;return n||(n=s(a?"svg":"body"),n.fake=!0),n}function nt(n,i,r,u){var o,a,c,v,l="modernizr",h=s("div"),e=ht();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+l,(e.fake?e:h).appendChild(o),e.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,e.fake&&(e.style.background="",e.style.overflow="hidden",v=f.style.overflow,f.style.overflow="hidden",f.appendChild(e)),a=i(h,n),e.fake?(e.parentNode.removeChild(e),f.style.overflow=v,f.offsetHeight):h.parentNode.removeChild(h),!!a}function ct(n,t){return!!~(""+n).indexOf(t)}function lt(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function at(n,t){return function(){return n.apply(t,arguments)}}function vt(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],o(r,"function")?at(r,i||t):r);return!1}function tt(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function yt(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(tt(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+tt(t[f])+":"+r+")");return u=u.join(" or "),nt("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==getComputedStyle(n,null).position})}return i}function pt(n,t,r,u){function c(){v&&(delete e.style,delete e.modElem)}var l,v,h,y,f,p,a;if((u=o(u,"undefined")?!1:u,!o(r,"undefined"))&&(l=yt(n,r),!o(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!e.style&&a.length;)v=!0,e.modElem=s(a.shift()),e.style=e.modElem.style;for(y=n.length,h=0;y>h;h++)if(f=n[h],p=e.style[f],ct(f,"-")&&(f=lt(f)),e.style[f]!==i){if(u||o(r,"undefined"))return c(),"pfx"==t?f:!0;try{e.style[f]=r}catch(w){}if(e.style[f]!=p)return c(),"pfx"==t?f:!0}return c(),!1}function it(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+w.join(f+" ")+f).split(" ");return o(t,"string")||o(t,"undefined")?pt(e,t,r,u):(e=(n+" "+b.join(f+" ")+f).split(" "),vt(e,t,i))}function h(n,t,r){return it(n,i,i,t,r)}var rt=[],c=[],u={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){c.push({name:n,fn:t,options:i})},addAsyncTest:function(n){c.push({name:null,fn:n})}},r=function(){},ut,ft,et,ot,y,p,w,b,k,e,v;r.prototype=u;r=new r;r.addTest("svgfilters",function(){var t=!1;try{t="SVGFEColorMatrixElement"in n&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(i){}return t});var f=t.documentElement,a="svg"===f.nodeName.toLowerCase(),l=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];for(u._prefixes=l,r.addTest("csscalc",function(){var n="width:",t=s("a");return t.style.cssText=n+l.join("calc(10px);"+n),!!t.style.length}),r.addTest("cssgradients",function(){for(var e,i,u,f="background-image:",t="",n=0,o=l.length-1;o>n;n++)u=0===n?"to ":"",t+=f+l[n]+"linear-gradient("+u+"left top, #9f9, white);";return r._config.usePrefixes&&(t+=f+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),e=s("a"),i=e.style,i.cssText=t,(""+i.backgroundImage).indexOf("gradient")>-1}),r.addTest("preserve3d",function(){var n=s("a"),t=s("a"),i;return n.style.cssText="display: block; transform-style: preserve-3d; transform-origin: right; transform: rotateY(40deg);",t.style.cssText="display: block; width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotateY(40deg);",n.appendChild(t),f.appendChild(n),i=t.getBoundingClientRect(),f.removeChild(n),i.width&&i.width<4}),ut=("CSS"in n)&&("supports"in n.CSS),ft=("supportsCSS"in n),r.addTest("supports",ut||ft),et={}.toString,r.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),!function(){var n={}.hasOwnProperty;ot=o(n,"undefined")||o(n.call,"undefined")?function(n,t){return t in n&&o(n.constructor.prototype[t],"undefined")}:function(t,i){return n.call(t,i)}}(),u._l={},u.on=function(n,t){this._l[n]||(this._l[n]=[]);this._l[n].push(t);r.hasOwnProperty(n)&&setTimeout(function(){r._trigger(n,r[n])},0)},u._trigger=function(n,t){if(this._l[n]){var i=this._l[n];setTimeout(function(){for(var r,n=0;n<i.length;n++)(r=i[n])(t)},0);delete this._l[n]}},r._q.push(function(){u.addTest=g}),r.addTest("svgasimg",t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),y=u.testStyles=nt,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",l.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),y(r,function(n){i=9===n.offsetTop})),i}),p="Moz O ms Webkit",w=u._config.usePrefixes?p.split(" "):[],u._cssomPrefixes=w,b=u._config.usePrefixes?p.toLowerCase().split(" "):[],u._domPrefixes=b,k={elem:s("modernizr")},r._q.push(function(){delete k.elem}),e={style:k.elem.style},r._q.unshift(function(){delete e.style}),u.testAllProps=it,u.testAllProps=h,r.addTest("cssanimations",h("animationName","a",!0)),r.addTest("boxsizing",h("boxSizing","border-box",!0)&&(t.documentMode===i||t.documentMode>7)),r.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&h("transform","scale(1)",!0)}),r.addTest("csstransforms3d",function(){var t=!!h("perspective","1px",!0),i=r._config.usePrefixes,n,u;return t&&(!i||"webkitPerspective"in f.style)&&(u="#modernizr{width:0;height:0}",r.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",i&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",y(u+n,function(n){t=7===n.offsetWidth&&18===n.offsetHeight})),t}),r.addTest("csstransitions",h("transition","all",!0)),r.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),st(),d(rt),delete u.addTest,delete u.addAsyncTest,v=0;v<r._q.length;v++)r._q[v]();n.Modernizr=r}(window,document)