!function(n,t,i){function s(n,t){return typeof n===t}function st(){var i,n,u,f,e,h,t,o;for(o in l)if(l.hasOwnProperty(o)){if(i=[],n=l[o],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=s(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)h=i[e],t=h.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),ft.push((f?"":"no-")+t.join("-"))}}function ht(n){var t=e.className,i=r._config.classPrefix||"",u;(c&&(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),c?e.className.baseVal=t:e.className=t)}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):c?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function it(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ct(){var n=t.body;return n||(n=o(c?"svg":"body"),n.fake=!0),n}function rt(n,i,r,u){var s,a,c,v,l="modernizr",h=o("div"),f=ct();if(parseInt(r,10))for(;r--;)c=o("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return s=o("style"),s.type="text/css",s.id="s"+l,(f.fake?f:h).appendChild(s),f.appendChild(h),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function lt(n,t){return!!~(""+n).indexOf(t)}function at(n,t){return function(){return n.apply(t,arguments)}}function vt(n,t,i){var r,u;for(u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],s(r,"function")?at(r,i||t):r);return!1}function ut(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(ut(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+ut(t[f])+":"+r+")");return u=u.join(" or "),rt("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==getComputedStyle(n,null).position})}return i}function pt(n,t,r,u){function c(){a&&(delete f.style,delete f.modElem)}var l,a,h,v,e,y,p;if((u=s(u,"undefined")?!1:u,!s(r,"undefined"))&&(l=yt(n,r),!s(l,"undefined")))return l;for(p=["modernizr","tspan"];!f.style;)a=!0,f.modElem=o(p.shift()),f.style=f.modElem.style;for(v=n.length,h=0;v>h;h++)if(e=n[h],y=f.style[e],lt(e,"-")&&(e=it(e)),f.style[e]!==i){if(u||s(r,"undefined"))return c(),"pfx"==t?e:!0;try{f.style[e]=r}catch(w){}if(f.style[e]!=y)return c(),"pfx"==t?e:!0}return c(),!1}function y(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+d.join(f+" ")+f).split(" ");return s(t,"string")||s(t,"undefined")?pt(e,t,r,u):(e=(n+" "+nt.join(f+" ")+f).split(" "),vt(e,t,i))}function h(n,t,r){return y(n,i,i,t,r)}var ft=[],l=[],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){l.push({name:n,fn:t,options:i})},addAsyncTest:function(n){l.push({name:null,fn:n})}},r=function(){},e,c,a,w,et,ot,b,k,d,g,nt,tt,f,v,p;for(r.prototype=u,r=new r,r.addTest("geolocation","geolocation"in navigator),r.addTest("localstorage",function(){var n="modernizr";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch(t){return!1}}),e=t.documentElement,c="svg"===e.nodeName.toLowerCase(),c||!function(n,t){function v(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 h(){var n=i.elements;return"string"==typeof n?n.split(" "):n}function y(n,t){var r=i.elements;"string"!=typeof r&&(r=r.join(" "));"string"!=typeof n&&(n=n.join(" "));i.elements=r+" "+n;f(t)}function u(n){var t=a[n[l]];return t||(t={},s++,n[l]=s,a[s]=t),t}function c(n,i,f){if(i||(i=t),r)return i.createElement(n);f||(f=u(i));var e;return e=f.cache[n]?f.cache[n].cloneNode():k.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),!e.canHaveChildren||b.test(n)||e.tagUrn?e:f.frag.appendChild(e)}function p(n,i){if(n||(n=t),r)return n.createDocumentFragment();i=i||u(n);for(var e=i.frag.cloneNode(),f=0,o=h(),s=o.length;s>f;f++)e.createElement(o[f]);return e}function w(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(r){return i.shivMethods?c(r,n,t):t.createElem(r)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-:]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(i,t.frag)}function f(n){n||(n=t);var f=u(n);return!i.shivCSS||e||f.hasCSS||(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||w(n,f),n}var e,r,o=n.html5||{},b=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,k=/^(?: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,l="_html5shiv",s=0,a={},i;!function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;r=1==n.childNodes.length||function(){t.createElement("a");var n=t.createDocumentFragment();return"undefined"==typeof n.cloneNode||"undefined"==typeof n.createDocumentFragment||"undefined"==typeof n.createElement}()}catch(i){e=!0;r=!0}}();i={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:o.shivCSS!==!1,supportsUnknownElements:r,shivMethods:o.shivMethods!==!1,type:"default",shivDocument:f,createElement:c,createDocumentFragment:p,addElements:y};n.html5=i;f(t);"object"==typeof module&&module.exports&&(module.exports=i)}("undefined"!=typeof n?n:this,t),a=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],u._prefixes=a,r.addTest("csspointerevents",function(){var n=o("a").style;return n.cssText="pointer-events:auto","auto"===n.pointerEvents}),w=function(){function n(n,t){var u;return n?(t&&"string"!=typeof t||(t=o(t||"div")),n="on"+n,u=n in t,!u&&r&&(t.setAttribute||(t=o("div")),t.setAttribute(n,""),u="function"==typeof t[n],t[n]!==i&&(t[n]=i),t.removeAttribute(n)),u):!1}var r=!("onblur"in t.documentElement);return n}(),u.hasEvent=w,r.addTest("hashchange",function(){return w("hashchange",n)===!1?!1:t.documentMode===i||t.documentMode>7}),et=("CSS"in n)&&("supports"in n.CSS),ot=("supportsCSS"in n),r.addTest("supports",et||ot),b=u.testStyles=rt,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",a.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),b(r,function(n){i=9===n.offsetTop})),i}),k="Moz O ms Webkit",d=u._config.usePrefixes?k.split(" "):[],u._cssomPrefixes=d,g=function(t){var u,s=a.length,f=n.CSSRule,r,e,o;if("undefined"==typeof f)return i;if(!t)return!1;if(t=t.replace(/^@/,""),u=t.replace(/-/g,"_").toUpperCase()+"_RULE",u in f)return"@"+t;for(r=0;s>r;r++)if(e=a[r],o=e.toUpperCase()+"_"+u,o in f)return"@-"+e.toLowerCase()+"-"+t;return!1},u.atRule=g,nt=u._config.usePrefixes?k.toLowerCase().split(" "):[],u._domPrefixes=nt,tt={elem:o("modernizr")},r._q.push(function(){delete tt.elem}),f={style:tt.elem.style},r._q.unshift(function(){delete f.style}),u.testAllProps=y,v=u.prefixed=function(n,t,i){return 0===n.indexOf("@")?g(n):(-1!=n.indexOf("-")&&(n=it(n)),t?y(n,t,i):y(n,"pfx"))},r.addTest("fullscreen",!(!v("exitFullscreen",t,!1)&&!v("cancelFullScreen",t,!1))),r.addTest("objectfit",!!v("objectFit"),{aliases:["object-fit"]}),r.addTest("matchmedia",!!v("matchMedia",n)),u.testAllProps=h,r.addTest("cssanimations",h("animationName","a",!0)),r.addTest("flexbox",h("flexBasis","1px",!0)),r.addTest("flexboxlegacy",h("boxDirection","reverse",!0)),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 e.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}}",b(u+n,function(n){t=7===n.offsetWidth&&18===n.offsetHeight})),t}),r.addTest("csstransitions",h("transition","all",!0)),st(),ht(ft),delete u.addTest,delete u.addAsyncTest,p=0;p<r._q.length;p++)r._q[p]();n.Modernizr=r}(window,document),function(n){var t=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(t)&&t.match(/rv\:(\d+)/)&&RegExp.$1<41&&addEventListener("resize",function(){var r,u=document.createElement("source"),e=function(n){var i,r,t=n.parentNode;t.nodeName.toUpperCase()==="PICTURE"?(i=u.cloneNode(),t.insertBefore(i,t.firstElementChild),setTimeout(function(){t.removeChild(i)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,r=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=r}))},o=function(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)e(t[n])},t=function(){clearTimeout(r);r=setTimeout(o,99)},i=n.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){t();i&&i.addListener&&i.addListener(t)};return u.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),t}())}(window),function(n,t,i){"use strict";function b(n){return n===" "||n==="\t"||n==="\n"||n==="\f"||n==="\r"}function ui(t,i){var r=new n.Image;return r.onerror=function(){e[t]=!1;o()},r.onload=function(){e[t]=r.width===1;o()},r.src=i,"pending"}function fi(){p=!1;a=n.devicePixelRatio;h={};w={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,f.clientWidth);u.height=Math.max(n.innerHeight||0,f.clientHeight);u.vw=u.width/100;u.vh=u.height/100;v=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function ei(n,t,i,r){var f,o,e,u;return y.algorithm==="saveData"?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function oi(n){var i,t=r.getSet(n),u=!1;t!=="pending"&&(u=v,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function si(n,t){return n.res-t.res}function hi(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=yt(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function yt(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function ci(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;u<e;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function li(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return i=r[0],e+=i.length,i}function s(){for(var n=!1,u,r,e,i={},h,v,s,l,y,a=0;a<f.length;a++)h=f[a],v=h[h.length-1],s=h.substring(0,h.length-1),l=parseInt(s,10),y=parseFloat(s),lt.test(s)&&v==="w"?((u||r)&&(n=!0),l===0?n=!0:u=l):ri.test(s)&&v==="x"?((u||r||e)&&(n=!0),y<0?n=!0:r=y):lt.test(s)&&v==="h"?((e||r)&&(n=!0),l===0?n=!0:e=l):n=!0;n||(i.url=o,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),i.d===1&&(t.has1x=!0),i.set=t,c.push(i))}function a(){for(h(gt),i="",u="in descriptor";;){if(r=n.charAt(e),u==="in descriptor")if(b(r))i&&(f.push(i),i="",u="after descriptor");else{if(r===","){e+=1;i&&f.push(i);s();return}if(r==="(")i=i+r,u="in parens";else{if(r===""){i&&f.push(i);s();return}i=i+r}}else if(u==="in parens")if(r===")")i=i+r,u="in descriptor";else{if(r===""){f.push(i);s();return}i=i+r}else if(u==="after descriptor"&&!b(r)){if(r===""){s();return}u="in descriptor";e-=1}e+=1}}for(var l=n.length,o,f,i,u,r,e=0,c=[];;){if(h(ni),e>=l)return c;o=h(ti);f=[];o.slice(-1)===","?(o=o.replace(ii,""),s()):a()}}function ai(n){function c(n){function f(){r&&(u.push(r),r="")}function h(){u[0]&&(s.push(u),u=[])}for(var i,r="",u=[],s=[],e=0,t=0,o=!1;;){if(i=n.charAt(t),i==="")return f(),h(),s;if(o)if(i==="*"&&n[t+1]==="/"){o=!1;t+=2;f();continue}else{t+=1;continue}else if(b(i))if(n.charAt(t-1)&&b(n.charAt(t-1))||!r){t+=1;continue}else if(e===0){f();t+=1;continue}else i=" ";else if(i==="(")e+=1;else if(i===")")e-=1;else if(i===","){f();h();t+=1;continue}else if(i==="/"&&n.charAt(t+1)==="*"){o=!0;t+=2;continue}r=r+i;t+=1}}function l(n){return s.test(n)&&parseFloat(n)>=0?!0:h.test(n)?!0:n==="0"||n==="-0"||n==="+0"?!0:!1}var s=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,h=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i,i,u,o,t,f,e;for(u=c(n),o=u.length,i=0;i<o;i++){if(t=u[i],f=t[t.length-1],l(f))e=f,t.pop();else continue;if(t.length===0)return e;if(t=t.join(" "),r.matchesMedia(t))return e}return"100vw"}t.createElement("picture");var pt,c,et,v,r={},l=function(){},s=t.createElement("img"),k=s.getAttribute,ot=s.setAttribute,st=s.removeAttribute,f=t.documentElement,e={},y={algorithm:""},d="data-pfsrc",g=d+"set",nt=navigator.userAgent,wt=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",bt=/\s+\+?\d+(e\d+)?w/,kt=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,dt="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",ht="font-size:100%!important;",p=!0,h={},w={},a=n.devicePixelRatio,u={px:1,"in":96},ct=t.createElement("a"),rt=!1,gt=/^[ \t\n\r\u000c]+/,ni=/^[, \t\n\r\u000c]+/,ti=/^[^ \t\n\r\u000c]+/,ii=/[,]+$/,lt=/^\d+$/,ri=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,at=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}};var vt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/ig,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},o=function(n){var f,u,e,i=n||{};if(i.elements&&i.elements.nodeType===1&&(i.elements.nodeName.toUpperCase()==="IMG"?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;u<e;u++)r.fillImg(f[u],i);r.teardownRun(i)}};for(pt=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),e["image/jpeg"]=!0,e["image/gif"]=!0,e["image/png"]=!0,e["image/svg+xml"]=t.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&function(n){s.srcset="data:,a";n.src="data:,a";r.supSrcset=s.complete===n.complete;r.supPicture=r.supSrcset&&r.supPicture}(t.createElement("img")),r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=y,r.supSrcset&&(r.sel+=",img["+g+"]"),r.DPR=a||1,r.u=u,r.types=e,et=r.supSrcset&&!r.supSizes,r.setSize=l,r.makeUrl=ut(function(n){return ct.href=n,ct.href}),r.qsa=function(n,t){return n.querySelectorAll(t)},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?vt(n):!0},r.calcLength=function(n){var t=vt(n,!0)||!1;return t<0&&(t=!1),t},r.supportsType=function(n){return n?e[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(kt);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=li(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=f.style.cssText,u=n.style.cssText;i.style.cssText=dt;f.style.cssText=ht;n.style.cssText=ht;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);f.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in w)||y.uT){var t=r.calcLength(ai(n));w[n]=t?t:u.width}return w[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;i<u;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||hi(t,s,n[0].set),u&&u.set===n[0].set&&(v=wt&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u.res>=c&&(i=u))),!i)for(n.sort(si),l=n.length,i=n[l-1],e=0;e<l;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&ei(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;t.set.type==="image/svg+xml"&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){u==="pending"&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&t.nodeName.toUpperCase()==="PICTURE",f=n[r.ns];(f.src===i||u.src)&&(f.src=k.call(n,"src"),f.src?ot.call(n,d,f.src):st.call(n,d));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=k.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,ci(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:k.call(n,"sizes")},f.sets.push(e),s=(et||f.src)&&bt.test(f.srcset||""),s||!f.src||yt(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s);h&&r.supSrcset&&!f.supported&&(o?(ot.call(n,g,o),n.srcset=""):st.call(n,g));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(f.src===null?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;(n[r.ns]||(n[r.ns]={}),i=n[r.ns],u||i.evaled!==v)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=v:oi(n))},r.setupRun=function(){(!rt||p||a!==n.devicePixelRatio)&&fi()},r.supPicture?(o=l,r.fillImg=l):function(){var i,h=n.attachEvent?/d$|^c/:/d$|^c|^i/,e=function(){var n=t.readyState||"";o=setTimeout(e,n==="loading"?200:999);t.body&&(r.fillImgs(),i=i||h.test(n),i&&clearTimeout(o))},o=setTimeout(e,t.body?9:99),c=function(n,t){var i,r,u=function(){var f=new Date-r;f<t?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},s=f.clientHeight,l=function(){p=Math.max(n.innerWidth||0,f.clientWidth)!==u.width||f.clientHeight!==s;s=f.clientHeight;p&&r.fillImgs()};at(n,"resize",c(l,99));at(t,"readystatechange",e)}(),r.picturefill=o,r.fillImgs=o,r.teardownRun=l,o._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();typeof r[t]=="function"?r[t].apply(r,n):(y[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=o;typeof module=="object"&&typeof module.exports=="object"?module.exports=o:typeof define=="function"&&define.amd&&define("picturefill",function(){return o});r.supPicture||(e["image/webp"]=ui("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document)