window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function at(n,t){return a(b.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function st(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 wt(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")?st(u,t):(u=(n+" "+lt.join(r+" ")+r).split(" "),wt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)k[i[r]]=i[r]in o;return k.list&&(k.list=!!t.createElement("datalist")&&!!n.HTMLDataListElement),k}("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=tt,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!=tt)),ut[n[u]]=!!r;return ut}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var yt="2.6.2",u={},g=!0,s=t.documentElement,e="modernizr",ct=t.createElement(e),c=ct.style,o=t.createElement("input"),tt=":)",ht={}.toString,b=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),lt=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ut={},k={},rt=[],it=rt.slice,y,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},vt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ft=function(){function n(n,u){u=u||t.createElement(r[n]||"div"),n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),nt={}.hasOwnProperty,w,d;w=!h(nt,"undefined")&&!h(nt.call,"undefined")?function(n,t){return nt.call(n,t)}:function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=it.call(arguments,1),r=function(){var e,f,u;return this instanceof r?(e=function(){},e.prototype=t.prototype,f=new e,u=t.apply(f,i.concat(it.call(arguments))),Object(u)===u?u:f):t.apply(n,i.concat(it.call(arguments)))},r}),r.flexbox=function(){return f("flexWrap")},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 (",b.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 ft("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 at("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:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return a((n+"-webkit- ".split(" ").join(t+n)+b.join(i+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 n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n},r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',tt,'";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(ht.call(t.createElementNS(p.svg,"animate")))},r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ht.call(t.createElementNS(p.svg,"clipPath")))};for(d in r)w(r,d)&&(y=d.toLowerCase(),u[y]=r[d](),rt.push((u[y]?"":"no-")+y));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)w(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t,typeof g!="undefined"&&g&&(s.className+=" "+(t?"":"no-")+n),u[n]=t}return u},a(""),ct=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 l(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=c[n[h]];return t||(t={},o++,n[h]=o,c[o]=t),t}function s(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)?f.frag.appendChild(e):e}function v(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=l(),s=o.length;f<s;f++)e.createElement(o[f]);return e}function y(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?s(i,n,t):t.createElem(i)},n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().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 f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!p(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||y(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?: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,e,h="_html5shiv",o=0,c={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz></xyz>",e="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){e=!0,i=!0}})(),r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:a,createElement:s,createDocumentFragment:v},n.html5=r,a(t)}(this,t),u._version=yt,u._prefixes=b,u._domPrefixes=lt,u._cssomPrefixes=ot,u.mq=vt,u.hasEvent=ft,u.testProp=function(n){return st([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")+(g?" js "+rt.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function v(){}function tt(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function e(){var n=l.shift();a=1,n?n.t?o(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):a=0}function ft(n,i,s,h,c,v,y){function b(t){if(!g&&tt(p.readyState)&&(nt.r=g=1,!a&&e(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&o(function(){d.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),g=0,w=0,nt={t:s,s:i,e:c,a:v,x:y};1===r[i]&&(w=1,r[i]=[]),"object"==n?p.data=i:(p.src=i,p.type=n),p.width=p.height="0",p.onerror=p.onload=p.onreadystatechange=function(){b.call(this,w)},l.splice(h,0,nt),"img"!=n&&(w||2===r[i]?(d.insertBefore(p,k?null:f),o(b,y)):r[i].push(p))}function ut(n,t,i,r,u){return a=0,t=t||"j",c(n)?ft("c"==t?et:g,n,t,this.i++,i,r,u):(l.splice(this.i++,0,n),1==l.length&&e()),this}function rt(){var n=u;return n.loader={load:ut,i:0},n}var s=t.documentElement,o=n.setTimeout,f=t.getElementsByTagName("script")[0],y={}.toString,l=[],a=0,b="MozAppearance"in s.style,k=b&&!!t.createRange().compareNode,d=k?s:f.parentNode,s=n.opera&&"[object Opera]"==y.call(n.opera),s=!!t.attachEvent&&!s,g=b?"object":s?"script":"img",et=s?"script":g,nt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},w,u;u=function(n){function l(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=l(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){rt(),t&&t(o.origUrl,e,f),s&&s(o.origUrl,e,f),r[o.url]=2})))}function s(n,t){function l(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n),u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in a=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--a&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n),u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t),u()}}(s[r])),f(n[r],i,t,r,e))}else!o&&u()}var e=!!n.test,o=n.load||n.both,i=n.callback||v,s=i,u=n.complete||v,a,r;l(e?n.yep:n.nope,!!o),o&&l(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(nt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):nt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)},u.addPrefix=function(n,t){it[n]=t},u.addFilter=function(n){p.push(n)},u.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",w=function(){t.removeEventListener("DOMContentLoaded",w,0),t.readyState="complete"},0)),n.yepnope=rt(),n.yepnope.executeStack=e,n.yepnope.injectJs=function(n,i,r,s,h,c){var l=t.createElement("script"),a,y,s=s||u.errorTimeout;l.src=n;for(y in r)l.setAttribute(y,r[y]);i=c?e:i||v,l.onreadystatechange=l.onload=function(){!a&&tt(l.readyState)&&(a=1,i(),l.onload=l.onreadystatechange=null)},o(function(){a||(a=1,i(1))},s),h?l.onload():f.parentNode.insertBefore(l,f)},n.yepnope.injectCss=function(n,i,r,u,s,h){var u=t.createElement("link"),c,i=h?e:i||v;u.href=n,u.rel="stylesheet",u.type="text/css";for(c in r)u.setAttribute(c,r[c]);s||(f.parentNode.insertBefore(u,f),o(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},window.matchMedia=window.matchMedia||function(n){"use strict";var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(document),function(n){"use strict";function g(){h(!0)}var r={};if(n.respond=r,r.update=function(){},r.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!r.mediaQueriesSupported){var v,p,a,t=n.document,u=t.documentElement,o=[],s=[],i=[],l={},y=30,e=t.getElementsByTagName("head")[0]||u,nt=t.getElementsByTagName("base")[0],f=e.getElementsByTagName("link"),c=[],w=function(){for(var r=0;f.length>r;r++){var t=f[r],i=t.href,u=t.media,e=t.rel&&"stylesheet"===t.rel.toLowerCase();i&&e&&!l[i]&&(t.styleSheet&&t.styleSheet.rawCssText?(k(t.styleSheet.rawCssText,i,u),l[i]=!0):(!/^([a-zA-Z:]*\/\/)/.test(i)&&!nt||i.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&c.push({href:i,media:u}))}b()},b=function(){if(c.length){var t=c.shift();tt(t.href,function(i){k(i,t.href,t.media),l[t.href]=!0,n.setTimeout(function(){b()},0)})}},k=function(n,t,i){var e=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),c=e&&e.length||0,l,a,u,v,r,y,p,f;for(t=t.substring(0,t.lastIndexOf("/")),l=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},a=!c&&i,t.length&&(t+="/"),a&&(c=1),u=0;c>u;u++)for(a?(v=i,s.push(l(n))):(v=e[u].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,s.push(RegExp.$2&&l(RegExp.$2))),y=v.split(","),p=y.length,f=0;p>f;f++)r=y[f],o.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:s.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});h()},d=function(){var r,i=t.createElement("div"),n=t.body,f=!1;return i.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(i),u.insertBefore(n,u.firstChild),r=i.offsetWidth,f?u.removeChild(n):n.removeChild(i),r=a=parseFloat(r)},h=function(r){var ft="clientWidth",ht=u[ft],rt="CSS1Compat"===t.compatMode&&ht||t.body[ft]||ht,w={},ct=f[f.length-1],ut=+new Date,tt,g,nt,c,it;if(r&&v&&y>ut-v)return n.clearTimeout(p),p=n.setTimeout(h,y),void 0;v=ut;for(tt in o)if(o.hasOwnProperty(tt)){var l=o[tt],b=l.minw,k=l.maxw,et=null===b,ot=null===k,st="em";b&&(b=parseFloat(b)*(b.indexOf(st)>-1?a||d():1)),k&&(k=parseFloat(k)*(k.indexOf(st)>-1?a||d():1)),l.hasquery&&(et&&ot||!(et||rt>=b)||!(ot||k>=rt))||(w[l.media]||(w[l.media]=[]),w[l.media].push(s[l.rules]))}for(g in i)i.hasOwnProperty(g)&&i[g]&&i[g].parentNode===e&&e.removeChild(i[g]);for(nt in w)w.hasOwnProperty(nt)&&(c=t.createElement("style"),it=w[nt].join("\n"),c.type="text/css",c.media=nt,e.insertBefore(c,ct.nextSibling),c.styleSheet?c.styleSheet.cssText=it:c.appendChild(t.createTextNode(it)),i.push(c))},tt=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();w(),r.update=w,n.addEventListener?n.addEventListener("resize",g,!1):n.attachEvent&&n.attachEvent("onresize",g)}}(this);var Query=function(n){"use strict";var f=function(n){var t,i,f,r,u=[];if(n===void 0||null===n||""===n)return u;for(0===n.indexOf("?")&&(n=n.substring(1)),i=(""+n).split(/[&;]/),t=0;i.length>t;t++)f=i[t],r=f.split("="),u.push([r[0],r[1]]);return u},t=f(n),e=function(){for(var r,n="",i=0;t.length>i;i++)r=t[i],n.length>0&&(n+="&"),n+=r.join("=");return n.length>0?"?"+n:n},i=function(n){return n=decodeURIComponent(n),n=n.replace("+"," ")},o=function(n){for(var u,r=0;t.length>r;r++)if(u=t[r],i(n)===i(u[0]))return u[1]},s=function(n){for(var u,f=[],r=0;t.length>r;r++)u=t[r],i(n)===i(u[0])&&f.push(u[1]);return f},r=function(n,r){for(var f,e,o,s=[],u=0;t.length>u;u++)f=t[u],e=i(f[0])===i(n),o=i(f[1])===i(r),(1===arguments.length&&!e||2===arguments.length&&!e&&!o)&&s.push(f);return t=s,this},u=function(n,i,r){return 3===arguments.length&&-1!==r?(r=Math.min(r,t.length),t.splice(r,0,[n,i])):arguments.length>0&&t.push([n,i]),this},h=function(n,f,e){var o,s,h=-1;if(3===arguments.length){for(o=0;t.length>o;o++)if(s=t[o],i(s[0])===i(n)&&decodeURIComponent(s[1])===i(e)){h=o;break}r(n,e).addParam(n,f,h)}else{for(o=0;t.length>o;o++)if(s=t[o],i(s[0])===i(n)){h=o;break}r(n),u(n,f,h)}return this};return{getParamValue:o,getParamValues:s,deleteParam:r,addParam:u,replaceParam:h,toString:e}},Uri=function(n){"use strict";var ft=!1,ut=function(n){for(var f={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},u=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],i={name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},e=f[ft?"strict":"loose"].exec(n),t={},r=14;r--;)t[u[r]]=e[r]||"";return t[i.name]={},t[u[12]].replace(i.parser,function(n,r,u){r&&(t[i.name][r]=u)}),t},i=ut(n||""),l=new Query(i.query),u=function(n){return n!==void 0&&(i.protocol=n),i.protocol},h=null,c=function(n){return n!==void 0&&(h=n),null===h?-1!==i.source.indexOf("//"):h},f=function(n){return n!==void 0&&(i.userInfo=n),i.userInfo},r=function(n){return n!==void 0&&(i.host=n),i.host},o=function(n){return n!==void 0&&(i.port=n),i.port},s=function(n){return n!==void 0&&(i.path=n),i.path},t=function(n){return n!==void 0&&(l=new Query(n)),l},e=function(n){return n!==void 0&&(i.anchor=n),i.anchor},g=function(n){return u(n),this},rt=function(n){return c(n),this},it=function(n){return f(n),this},tt=function(n){return r(n),this},nt=function(n){return o(n),this},et=function(n){return s(n),this},d=function(n){return t(n),this},v=function(n){return e(n),this},b=function(n){return t().getParamValue(n)},w=function(n){return t().getParamValues(n)},p=function(n,i){return 2===arguments.length?t().deleteParam(n,i):t().deleteParam(n),this},k=function(n,i,r){return 3===arguments.length?t().addParam(n,i,r):t().addParam(n,i),this},y=function(n,i,r){return 3===arguments.length?t().replaceParam(n,i,r):t().replaceParam(n,i),this},a=function(){var n="",i=function(n){return null!==n&&""!==n};return i(u())?(n+=u(),u().indexOf(":")!==u().length-1&&(n+=":"),n+="//"):c()&&i(r())&&(n+="//"),i(f())&&i(r())&&(n+=f(),f().indexOf("@")!==f().length-1&&(n+="@")),i(r())&&(n+=r(),i(o())&&(n+=":"+o())),i(s())?n+=s():i(r())&&(i(""+t())||i(e()))&&(n+="/"),i(""+t())&&(0!==(""+t()).indexOf("?")&&(n+="?"),n+=""+t()),i(e())&&(0!==e().indexOf("#")&&(n+="#"),n+=e()),n},ot=function(){return new Uri(a())};return{protocol:u,hasAuthorityPrefix:c,userInfo:f,host:r,port:o,path:s,query:t,anchor:e,setProtocol:g,setHasAuthorityPrefix:rt,setUserInfo:it,setHost:tt,setPort:nt,setPath:et,setQuery:d,setAnchor:v,getQueryParamValue:b,getQueryParamValues:w,deleteQueryParam:p,addQueryParam:k,replaceQueryParam:y,toString:a,clone:ot}},jsUri=Uri;(function(n){function t(n){this.imageCandidates=[],this.srcValue=n.src,this.srcsetValue=n.srcset,this.isValid=!0,this.error="",this._parse(this.srcsetValue),this.isValid||console.error("Error: "+this.error)}function i(n){this.src=n.src,this.w=n.w||1/0,this.h=n.h||1/0,this.x=n.x||1}var r=/^[0-9]+$/;t.prototype._parse=function(){for(var u,h,s,f,e,o,n=this.srcsetValue,t=0,r=[];""!==n;){for(;" "===n.charAt(0);)n=n.slice(1);if(t=n.indexOf(" "),-1!==t){if(e=n.slice(0,t),""===e)break;n=n.slice(t+1),t=n.indexOf(","),-1===t?(o=n,n=""):(o=n.slice(0,t),n=n.slice(t+1)),r.push({url:e,descriptors:o})}else r.push({url:n,descriptors:""}),n=""}for(u=0,h=r.length;h>u;u++)s=r[u],f=this._parseDescriptors(s.descriptors),this._addCandidate(new i({src:s.url,x:f.x,w:f.w,h:f.h}));this.srcValue&&this._addCandidate(new i({src:this.srcValue}))},t.prototype._addCandidate=function(n){for(var i,t=0;this.imageCandidates.length>t;t++)if(i=this.imageCandidates[t],i.x==n.x&&i.w==n.w&&i.h==n.h)return;this.imageCandidates.push(n)},t.prototype._parseDescriptors=function(n){for(var t,o=n.split(/\s/),u={},e=0;o.length>e;e++)if(t=o[e],t.length>0){var i=t[t.length-1],f=t.substring(0,t.length-1),s=parseInt(f,10),h=parseFloat(f);f.match(r)&&"w"===i?u[i]=s:f.match(r)&&"h"==i?u[i]=s:isNaN(h)||"x"!=i?(this.error='Invalid srcset descriptor found in "'+t+'".',this.isValid=!1):u[i]=h}return u},n.SrcsetInfo=t})(window),function(n){function t(){this.w=null,this.h=null,this.x=null}t.prototype.compute=function(){this.w=window.innerWidth||document.documentElement.clientWidth,this.h=window.innerHeight||document.documentElement.clientHeight,this.x=window.devicePixelRatio},t.prototype.setForTesting=function(n){this.w=n.w,this.h=n.h,this.x=n.x},t.prototype.getBestImage=function(n){var t=n.imageCandidates.slice(0),e=this._getBestCandidateIf(t,function(n,t){return n.w>t.w}),r,u,i,f;return this._removeCandidatesIf(t,function(n){return function(t){return t.w<n.w}}(this)),0===t.length&&(t=[e]),r=this._getBestCandidateIf(t,function(n,t){return n.h>t.h}),this._removeCandidatesIf(t,function(n){return function(t){return t.h<n.h}}(this)),0===t.length&&(t=[r]),u=this._getBestCandidateIf(t,function(n,t){return n.x>t.x}),this._removeCandidatesIf(t,function(n){return function(t){return t.x<n.x}}(this)),0===t.length&&(t=[u]),i=this._getBestCandidateIf(t,function(n,t){return n.w<t.w}),this._removeCandidatesIf(t,function(n){return n.w>i.w}),this._getBestCandidateIf(t,function(n,t){return n.h<t.h}),this._removeCandidatesIf(t,function(n){return n.h>i.h}),f=this._getBestCandidateIf(t,function(n,t){return n.x<t.x}),this._removeCandidatesIf(t,function(n){return n.x>f.x}),t[0]},t.prototype._getBestCandidateIf=function(n,t){for(var u,i=n[0],r=0;n.length>r;r++)u=n[r],t(u,i)&&(i=u);return i},t.prototype._removeCandidatesIf=function(n,t){for(var r,i=n.length-1;i>=0;i--)r=n[i],t(r)&&n.splice(i,1);return n},t.prototype.getBestImage2=function(n){for(var i,f,t=null,u=n.imageCandidates,r=0;u.length>r;r++)if(i=u[r],f=t?t.x:0,i.x>=f&&i.x<=this.x){if(null===t){t=i;continue}this.w<=i.w&&i.w<=t.w&&(t=i)}return t},n.ViewportInfo=t}(window),function(){function n(){var n=new Image;return"srcset"in n}function t(){var r,u,i,t,f,o,e;if(!n())for(r=new ViewportInfo,r.compute(),u=document.querySelectorAll("img"),i=0;u.length>i;i++)t=u[i],f=t.getAttribute("srcset"),f&&(o=new SrcsetInfo({src:t.src,srcset:f}),e=r.getBestImage(o),t.src=e.src,t.style.webkitTransform="scale("+1/e.x+")",t.style.webkitTransformOrigin="0 0")}var i=setInterval(function(){"complete"===document.readyState&&(t(),clearInterval(i))},10)}(window)