/*! npm.im/object-fit-images 3.2.3 */ var objectfitimages=function(){"use strict";function t(t,e){return"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3e%3c/svg%3e"}function e(t){if(t.srcset&&!m&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillimg(t,{reselect:!0}),t[e.ns].cursrc||(t[e.ns].supported=!1,e.fillimg(t,{reselect:!0})),t.currentsrc=t[e.ns].cursrc||t.src}}function i(t){for(var e,i=getcomputedstyle(t).fontfamily,r={};null!==(e=l.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);p.call(e,"src")!==n&&b.call(e,"src",n)}function n(t,e){t.naturalwidth?e(t):settimeout(n,100,t,e)}function c(t){var c=i(t),o=t[a];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skiptest&&g&&!c["object-position"])return}if(!o.img){o.img=new image(t.width,t.height),o.img.srcset=p.call(t,"data-ofi-srcset")||t.srcset,o.img.src=p.call(t,"data-ofi-src")||t.src,b.call(t,"data-ofi-src",t.src),t.srcset&&b.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalwidth||t.width,t.naturalheight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundimage='url("'+(o.img.currentsrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundposition=c["object-position"]||"center",t.style.backgroundrepeat="no-repeat",t.style.backgroundorigin="content-box",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalwidth>t.width||o.img.naturalheight>t.height?t.style.backgroundsize="contain":t.style.backgroundsize="auto"}):t.style.backgroundsize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalwidth,e.naturalheight)})}function s(t){var e={get:function(e){return t[a].img[e||"src"]},set:function(e,i){return t[a].img[i||"src"]=e,b.call(t,"data-ofi-"+i,e),c(t),e}};object.defineproperty(t,"src",e),object.defineproperty(t,"currentsrc",{get:function(){return e.get("currentsrc")}}),object.defineproperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(t,e){var i=!h&&!t;if(e=e||{},t=t||"img",f&&!e.skiptest||!d)return!1;"img"===t?t=document.getelementsbytagname("img"):"string"==typeof t?t=document.queryselectorall(t):"length"in t||(t=[t]);for(var r=0;r