/*! Respimg - Responsive Images that work today.
* Author: Alexander Farkas, 2014 * Author: Scott Jehl, Filament Group, 2012 ( new proposal implemented by Shawn Jansepar ) * License: MIT * Spec: http://picture.responsiveimages.org/ */
!function(a,b,c){“use strict”;function d(a){return a.trim?a.trim():a.replace(/^s+|s+$/g,“”)}function e(){var b;T=!1,W=a.devicePixelRatio,U={},V={},b=(W||1)*E.xQuant,E.uT||(E.maxX=Math.max(1.3,E.maxX),b=Math.min(b,E.maxX),w.DPR=b),X.width=Math.max(a.innerWidth||0,C.clientWidth),X.height=Math.max(a.innerHeight||0,C.clientHeight),X.vw=X.width/100,X.vh=X.height/100,X.em=w.getEmValue(),X.rem=X.em,o=E.lazyFactor/2,o=o*b+o,q=.4+.1*b,l=.5+.2*b,m=.5+.25*b,p=b+1.3,(n=X.width>X.height)||(o*=.9),J&&(o*=.9),v=.join(“-”)}function f(a,b,c){var d=b*Math.pow(a-.4,1.9);return n||(d/=1.3),a+=d,a>c}function g(a){var b,c=w.getSet(a),d=!1;“pending”!=c&&(d=v,c&&(b=w.setRes©,d=w.applySetCandidate(b,a))),a.evaled=d}function h(a,b){return a.res-b.res}function i(a,b,c){var d;return!c&&b&&(c=a.sets,c=c&&c),d=j(b,c),d&&(b=w.makeUrl(b),a.curSrc=b,a.curCan=d,d.res||cb(d,d.set.sizes)),d}function j(a,b){var c,d,e;if(a&&b)for(e=w.parseSet(b),a=w.makeUrl(a),c=0;cG
”]“),w.DPR=W||1,w.u=X,w.types=D,t=w.supSrcset&&!w.supSizes,w.setSize=x,w.makeUrl=ab(function(a){return Y.href=a,Y.href}),w.qsa=function(a,b){return a.querySelectorAll(b)},w.matchesMedia=function(){return w.matchesMedia=a.matchMedia&&(matchMedia(”(min-width: 0.1em)“)||{}).matches?function(a){return!a||matchMedia(a).matches}:w.mMQ,w.matchesMedia.apply(this,arguments)},w.mMQ=function(a){return a?bb(a):!0},w.calcLength=function(a){var b=bb(a,!0)||!1;return 0>b&&(b=!1),RIDEBUG&&(b===!1||0>b)&&r(”invalid source size: “+a),b},w.supportsType=function(a){return a?D:!0},w.parseSize=ab(function(a){var b=(a||”“).match(M);return{media:b&&b,length:b&&b}}),w.parseSet=function(a){if(!a.cands){var b,c,d,e,f,g,h,i=a.srcset;for(a.cands=[];i;)i=i.replace(/^s+/g,”“),b=i.search(/s/g),d=null,-1!=b?(c=i.slice(0,b),e=c.charAt(c.length-1),”,“!=e&&c||(c=c.replace(/,+$/,”“),d=”“),i=i.slice(b+1),null==d&&(f=i.indexOf(”,“),-1!=f?(d=i.slice(0,f),i=i.slice(f+1)):(d=i,i=”“))):(c=i,i=”“),c&&(d=eb(d))&&(RIDEBUG&&(h||(h=a.sizes?”w“:d),h!=d&&r(”mixing x with a w descriptor/sizes attribute in one srcset doesn't make sense in most cases and is invalid.“)),g={url:c.replace(/^,+/,”“),set:a},g[d]=d,”x“==d&&1==d&&(a.has1x=!0),a.cands.push(g))}return a.cands},w.getEmValue=function(){var a;if(!s&&(a=b.body)){var c=b.createElement(”div“),d=C.style.cssText,e=a.style.cssText;c.style.cssText=R,C.style.cssText=S,a.style.cssText=S,a.appendChild©,s=c.offsetWidth,a.removeChild©,s=parseFloat(s,10),C.style.cssText=d,a.style.cssText=e}return s||16},w.calcListLength=function(a){if(!(a in V)||E.uT){var b,c,e,f,g,h,i=d(a).split(/s*,s*/),j=!1;for(g=0,h=i.length;h>g&&(b=i,c=w.parseSize(b),e=c.length,f=c.media,!e||!w.matchesMedia(f)||(j=w.calcLength(e))===!1);g++);V=j?j:X.width}return V},w.setRes=function(a){var b;if(a){b=w.parseSet(a);for(var c=0,d=b.length;d>c;c++)cb(b,a.sizes)}return b},w.setRes.res=cb,w.applySetCandidate=function(a,b){if(a.length){var c,d,e,g,j,k,n,s,t,u,x,y,z,A=b,B=v,C=o,D=q;if(s=A.curSrc||b,t=A.curCan||i(b,s,a.set),d=w.DPR,z=t&&t.res,!n&&s&&(y=J&&!b.complete&&t&&z-.2>d,y||t&&!(p>z)||(t&&d>z&&z>l&&(m>z&&(C*=.8,D+=.04*d),t.res+=C*Math.pow(z-D,2)),u=!A.pic||t&&t.set==a.set,t&&u&&t.res>=d&&(n=t))),!n)for(z&&(t.res=t.res-(t.res-z)/2),a.sort(h),k=a.length,n=a,e=0;k>e;e++)if(c=a,c.res>=d){g=e-1,n=a&&(j=c.res-d)&&(y||s!=w.makeUrl(c.url))&&f(a.res,j,d)?a:c;break}return z&&(t.res=z),n&&(x=w.makeUrl(n.url),A.curSrc=x,A.curCan=n,x!=s&&(w.setSrc(b,n),RIDEBUG&&(fb(b,n),Q&&!n.url.indexOf(”“)&&r(”insecure: “+x))),w.setSize(b)),B}},w.setSrc=function(a,b){var c;a.src=b.url,H&&(c=a.style.zoom,a.style.zoom=”0.999“,a.style.zoom=c)},w.getSet=function(a){var b,c,d,e=!1,f=a.sets;for(b=0;bb.set.sizes
” was calculated to: “h
”px. But your image is shown with a size of “f
”px. img: “+b.url):b.x&&e>d)),_(a,”load“,c)};$(a,”load“,c)},gb=function(){var a={minw:/^s*(s*min-widths*:s*(s*+)(px|em)s*)s*$/,maxw:/^s*(s*max-widths*:s*(s*+)(px|em)s*)s*$/},b=function(a,b,c,d){var e,f;for(e=0;c>e&&ea.media
” after “f.media
” doesn't make sense.“:”Order inside your sizes attribute does matter. Defining “a.media
” after “f.media
” doesn't make sense.“)},c=function(c,d){var e,f,g,h;for(h=c,h&&(h.media||h.type)&&r(”source“==d?”The last src/srcset shouldn't have any type or media conditions. Use img or img.“:”Last sizes attribute shouldn't have any condition otherwise 100vw is used.“),e=0,f=c.length;f>e;e++)g=c,g.media&&!g.type?(g._min=g.media.match(a.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||”“),g._max=g.media.match(a.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||”“),g._min&&(g._min=parseFloat(g._min,10)*(g._min.indexOf(”em“)>0?w.getEmValue():1)),g._max&&(g._max=parseFloat(g._max,10)*(g._max.indexOf(”em“)>0?w.getEmValue():1)),(g._min||g._max)&&b(g,c,e,d)):g.type||e==f-1||r(”source“==d?”A source element without [media] and [type] doesn't make any sense. Last srcset can be used at the img element. Order is important!“:”The order of your sizes attribute does matter! The sizes length without a media condition has to be defined as last entry.“)};return function(a){var b,e,f,g,h;for(c(a,”source“),b=0,e=a.length;e>b;b++)if(f=d(a.sizes||”“)){for(h=[],f=f.split(/s*,s*/),g=0;ga
”{ matchmediajs-test { width: 1px; } }“;return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,”1px“===d.width}}}return function(b){return{matches:a.matchMedium(b||”all“),media:b||”all“}}}()),/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright © 2012: Scott Jehl. Dual MIT/BSD license */ function(){if(window.matchMedia&&window.matchMedia(”all“).addListener)return!1;var a=window.matchMedia,b=a(”only all“).matches,c=!1,d=0,e=[],f=function(){clearTimeout(d),d=setTimeout(function(){for(var b=0,c=e.length;c>b;b++){var d=e.mql,f=e.listeners||[],g=a(d.media).matches;if(g!==d.matches){d.matches=g;for(var h=0,i=f.length;i>h;h++)f.call(window,d)}}},30)};window.matchMedia=function(d){var g=a(d),h=[],i=0;return g.addListener=function(a){b&&(c||(c=!0,window.addEventListener(”resize“,f,!0)),0===i&&(i=e.push({mql:g,listeners:h})),h.push(a))},g.removeListener=function(a){for(var b=0,c=h.length;c>b;b++)h===a&&h.splice(b,1)},g}}(),webshim.isReady(”matchMedia“,!0);