window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var n=document.createElement("style"),i=document.getElementsByTagName("script")[0],r=null;n.type="text/css";n.id="matchmediajs-test";i.parentNode.insertBefore(n,i);r="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle;t={matchMedium:function(t){var i="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,"1px"===r.width}}}return function(n){return{matches:t.matchMedium(n||"all"),media:n||"all"}}}()),function(n,t,i){"use strict";function f(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd&&define("picturefill",function(){return t});"object"==typeof n&&(n.picturefill=t)}function u(n){var s,t,i,u,f,h=n||{},e,c;for(s=h.elements||r.getAllElements(),e=0,c=s.length;c>e;e++)if(t=s[e],i=t.parentNode,u=void 0,f=void 0,"IMG"===t.nodeName.toUpperCase()&&(t[r.ns]||(t[r.ns]={}),h.reevaluate||!t[r.ns].evaluated)){if(i&&"PICTURE"===i.nodeName.toUpperCase()){if(r.removeVideoShim(i),u=r.getMatch(t,i),u===!1)continue}else u=void 0;(i&&"PICTURE"===i.nodeName.toUpperCase()||!r.sizesSupported&&t.srcset&&o.test(t.srcset))&&r.dodgeSrcset(t);u?(f=r.processSourceSet(u),r.applyBestCandidate(f,t)):(f=r.processSourceSet(t),(void 0===t.srcset||t[r.ns].srcset)&&r.applyBestCandidate(f,t));t[r.ns].evaluated=!0}}function e(){function i(){var t;n._picturefillWorking||(n._picturefillWorking=!0,n.clearTimeout(t),t=n.setTimeout(function(){u({reevaluate:!0});n._picturefillWorking=!1},60))}r.initTypeDetects();u();var f=setInterval(function(){return u(),/^loaded|^i|^c/.test(t.readyState)?void clearInterval(f):void 0},250);n.addEventListener?n.addEventListener("resize",i,!1):n.attachEvent&&n.attachEvent("onresize",i)}if(n.HTMLPictureElement)return void f(function(){});t.createElement("picture");var r=n.picturefill||{},o=/\s+\+?\d+(e\d+)?w/;r.ns="picturefill",function(){r.srcsetSupported="srcset"in i;r.sizesSupported="sizes"in i}();r.trim=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")};r.makeUrl=function(){var n=t.createElement("a");return function(t){return n.href=t,n.href}}();r.restrictsMixedContent=function(){return"https:"===n.location.protocol};r.matchesMedia=function(t){return n.matchMedia&&n.matchMedia(t).matches};r.getDpr=function(){return n.devicePixelRatio||1};r.getWidthFromLength=function(n){var i;if(!n||n.indexOf("%")>-1!=!1||!(parseFloat(n)>0||n.indexOf("calc(")>-1))return!1;n=n.replace("vw","%");r.lengthEl||(r.lengthEl=t.createElement("div"),r.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden",r.lengthEl.className="helper-from-picturefill-js");r.lengthEl.style.width="0px";try{r.lengthEl.style.width=n}catch(u){}return t.body.appendChild(r.lengthEl),i=r.lengthEl.offsetWidth,0>=i&&(i=!1),t.body.removeChild(r.lengthEl),i};r.detectTypeSupport=function(t,i){var f=new n.Image;return f.onerror=function(){r.types[t]=!1;u()},f.onload=function(){r.types[t]=1===f.width;u()},f.src=i,"pending"};r.types=r.types||{};r.initTypeDetects=function(){r.types["image/jpeg"]=!0;r.types["image/gif"]=!0;r.types["image/png"]=!0;r.types["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1");r.types["image/webp"]=r.detectTypeSupport("image/webp","data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")};r.verifyTypeSupport=function(n){var i=n.getAttribute("type"),t;return null===i||""===i?!0:(t=r.types[i],"string"==typeof t&&"pending"!==t?(r.types[i]=r.detectTypeSupport(i,t),"pending"):"function"==typeof t?(t(),"pending"):t)};r.parseSize=function(n){var t=/(\([^)]+\))?\s*(.+)/g.exec(n);return{media:t&&t[1],length:t&&t[2]}};r.findWidthFromSourceSize=function(i){for(var f,e=r.trim(i).split(/\s*,\s*/),u=0,c=e.length;c>u;u++){var l=e[u],o=r.parseSize(l),s=o.length,h=o.media;if(s&&(!h||r.matchesMedia(h))&&(f=r.getWidthFromLength(s)))break}return f||Math.max(n.innerWidth||0,t.documentElement.clientWidth)};r.parseSrcset=function(n){for(var t,r,i,e,u,f=[];""!==n;)n=n.replace(/^\s+/g,""),r=n.search(/\s/g),i=null,-1!==r?(t=n.slice(0,r),e=t.slice(-1),((","===e||""===t)&&(t=t.replace(/,+$/,""),i=""),n=n.slice(r+1),null===i)&&(u=n.indexOf(","),-1!==u?(i=n.slice(0,u),n=n.slice(u+1)):(i=n,n=""))):(t=n,n=""),(t||i)&&f.push({url:t,descriptor:i});return f};r.parseDescriptor=function(n,t){var o,c=t||"100vw",h=n&&n.replace(/(^\s+|\s+$)/g,""),l=r.findWidthFromSourceSize(c),s,u,i,f,e;if(h)for(s=h.split(" "),u=s.length-1;u>=0;u--)i=s[u],f=i&&i.slice(i.length-1),"h"!==f&&"w"!==f||r.sizesSupported?"x"===f&&(e=i&&parseFloat(i,10),o=e&&!isNaN(e)?e:1):o=parseFloat(parseInt(i,10)/l);return o||1};r.getCandidatesFromSourceSet=function(n,t){for(var u,f=r.parseSrcset(n),e=[],i=0,o=f.length;o>i;i++)u=f[i],e.push({url:u.url,resolution:r.parseDescriptor(u.descriptor,t)});return e};r.dodgeSrcset=function(n){n.srcset&&(n[r.ns].srcset=n.srcset,n.srcset="",n.setAttribute("data-pfsrcset",n[r.ns].srcset))};r.processSourceSet=function(n){var t=n.getAttribute("srcset"),u=n.getAttribute("sizes"),i=[];return"IMG"===n.nodeName.toUpperCase()&&n[r.ns]&&n[r.ns].srcset&&(t=n[r.ns].srcset),t&&(i=r.getCandidatesFromSourceSet(t,u)),i};r.backfaceVisibilityFix=function(n){var t=n.style||{},i="webkitBackfaceVisibility"in t,r=t.zoom;i&&(t.zoom=".999",i=n.offsetWidth,t.zoom=r)};r.setIntrinsicSize=function(){var i={},u=function(n,t,i){t&&n.setAttribute("width",parseInt(t/i,10))};return function(f,e){var o;f[r.ns]&&!n.pfStopIntrinsicSize&&(void 0===f[r.ns].dims&&(f[r.ns].dims=f.getAttribute("width")||f.getAttribute("height")),f[r.ns].dims||(e.url in i?u(f,i[e.url],e.resolution):(o=t.createElement("img"),o.onload=function(){if(i[e.url]=o.width,!i[e.url])try{t.body.appendChild(o);i[e.url]=o.width||o.offsetWidth;t.body.removeChild(o)}catch(n){}f.src===e.url&&u(f,i[e.url],e.resolution);f=null;o.onload=null;o=null},o.src=e.url)))}}();r.applyBestCandidate=function(n,t){var f,e,i,u;for(n.sort(r.ascendingSort),e=n.length,i=n[e-1],u=0;e>u;u++)if(f=n[u],f.resolution>=r.getDpr()){i=f;break}i&&(i.url=r.makeUrl(i.url),t.src!==i.url&&(r.restrictsMixedContent()&&"http:"===i.url.substr(0,5).toLowerCase()?void 0!==window.console&&console.warn("Blocked mixed content image "+i.url):(t.src=i.url,t.currentSrc=t.src,r.backfaceVisibilityFix(t))),r.setIntrinsicSize(t,i))};r.ascendingSort=function(n,t){return n.resolution-t.resolution};r.removeVideoShim=function(n){var r=n.getElementsByTagName("video"),t,i;if(r.length){for(t=r[0],i=t.getElementsByTagName("source");i.length;)n.insertBefore(i[0],t);t.parentNode.removeChild(t)}};r.getAllElements=function(){for(var n,u=[],f=t.getElementsByTagName("img"),i=0,e=f.length;e>i;i++)n=f[i],("PICTURE"===n.parentNode.nodeName.toUpperCase()||null!==n.getAttribute("srcset")||n[r.ns]&&null!==n[r.ns].srcset)&&u.push(n);return u};r.getMatch=function(n,t){for(var i,e,o,u,s=t.childNodes,f=0,h=s.length;h>f;f++)if(i=s[f],1===i.nodeType){if(i===n)return u;if("SOURCE"===i.nodeName.toUpperCase()&&(null!==i.getAttribute("src")&&void 0!==typeof console&&console.warn("The `src` attribute is invalid on `picture` `source` element; instead, use `srcset`."),e=i.getAttribute("media"),i.getAttribute("srcset")&&(!e||r.matchesMedia(e)))){if(o=r.verifyTypeSupport(i),o===!0){u=i;break}if("pending"===o)return!1}}return u};e();u._=r;f(u)}(window,window.document,new window.Image)