/* Copyright (C) 2013-2015 by Andrea Giammarchi - @WebReflection Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. picturefill - v3.0.2 - 2016-02-12 https://scottjehl.github.io/picturefill/ Copyright (c) 2016 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT Gecko-Picture - v1.0 https://github.com/scottjehl/picturefill/tree/3.0/src/plugins/gecko-picture Firefox's early picture implementation (prior to FF41) is static and does not react to viewport changes. This tiny module fixes this. Picturefill - v3.0.2 http://scottjehl.github.io/picturefill Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; License: MIT */ 'use strict';(function(oa){"function"===typeof define&&define.amd?define(oa):oa()})(function(){(function(oa){"function"===typeof define&&define.amd?define(oa):oa()})(function(){(function(w){function P(r,y){if(!r)throw Error("Failed to construct "+y+": 1 argument required, but only 0 present.");}function A(r){if(1===r.length)return ca(r[0]);for(var y=N.createDocumentFragment(),L=ta.call(r),S=0;St?(t=Q.handler.push(e)-1,Q.wrap[t]=t=new P):t=Q.wrap[t];C in t||(t[C]=A(b,e,q),u.call(this,b,t[C],t[C].capture))}else u.call(this,b,e,q)}}function I(u){return function(b,e,q){if(q&&"boolean"!==typeof q){var t= h.get(this);if(t&&b in t){var C=t[b];e=F.call(C.handler,e);if(-1RegExp.$1&&addEventListener("resize",function(){var ca,Y=document.createElement("source"),N=function(F){var m=F.parentNode;if("PICTURE"===m.nodeName.toUpperCase()){var d=Y.cloneNode();m.insertBefore(d,m.firstElementChild);setTimeout(function(){m.removeChild(d)})}else if(!F._pfLastSize||F.offsetWidth>F._pfLastSize){F._pfLastSize=F.offsetWidth; var c=F.sizes;F.sizes+=",100vw";setTimeout(function(){F.sizes=c})}},H=function(){var F,m=document.querySelectorAll("picture \x3e img, img[srcset][sizes]");for(F=0;Fya?da=!0:Aa=ya}else if(qa.test(xa)&&"h"===Ha){if(wa||Aa)da=!0;0===Fa?da=!0:wa=Fa}else da=!0}da||(sa.url=T,va&&(sa.w=va),Aa&&(sa.d=Aa),wa&&(sa.h=wa),wa||Aa||va||(sa.d=1),1===sa.d&&(v.has1x=!0),sa.set= v,ea.push(sa))}for(var J=f.length,T,Z,M,O,W,ka=0,ea=[];;){B(ba);if(ka>=J)return ea;T=B(pa);Z=[];if(","===T.slice(-1))T=T.replace(ua,""),x();else for(B(Ca),M="",O="in descriptor";;){W=f.charAt(ka);if("in descriptor"===O)if(Y(W))M&&(Z.push(M),M="",O="after descriptor");else if(","===W){ka+=1;M&&Z.push(M);x();break}else if("("===W)M+=W,O="in parens";else if(""===W){M&&Z.push(M);x();break}else M+=W;else if("in parens"===O)if(")"===W)M+=W,O="in descriptor";else if(""===W){Z.push(M);x();break}else M+=W; else if("after descriptor"===O&&!Y(W))if(""===W){x();break}else O="in descriptor",--ka;ka+=1}}}function E(f){function v(O){return B.test(O)&&0<=parseFloat(O)||x.test(O)||"0"===O||"-0"===O||"+0"===O?!0:!1}var B=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,x=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;var J=function(O){function W(){da&&(va.push(da),da="")}function ka(){va[0]&&(Aa.push(va),va=[])}for(var ea,da="",va=[],Aa=[],wa=0,ma=0,sa=!1;;){ea= O.charAt(ma);if(""===ea)return W(),ka(),Aa;if(sa)"*"===ea&&"/"===O[ma+1]?(sa=!1,ma+=2,W()):ma+=1;else{if(Y(ea))if(O.charAt(ma-1)&&Y(O.charAt(ma-1))||!da){ma+=1;continue}else if(0===wa){W();ma+=1;continue}else ea=" ";else if("("===ea)wa+=1;else if(")"===ea)--wa;else if(","===ea){W();ka();ma+=1;continue}else if("/"===ea&&"*"===O.charAt(ma+1)){sa=!0;ma+=2;continue}da+=ea;ma+=1}}}(f);var T=J.length;for(f=0;f<\+\-\*\(\)\/])).*/ig,"")+";"});return function(x,J){var T;if(!(x in y))if(y[x]=!1,J&&(T=x.match(f)))y[x]=T[1]*K[T[2]];else try{y[x]=(new Function("e",B(x)))(K)}catch(Z){}return y[x]}}(),ia=function(f,v){f.w?(f.cWidth=c.calcListLength(v||"100vw"),f.res=f.w/f.cWidth):f.res=f.d;return f},ja=function(f){if(I){var v, B,x=f||{};x.elements&&1===x.elements.nodeType&&("IMG"===x.elements.nodeName.toUpperCase()?x.elements=[x.elements]:(x.context=x.elements,x.elements=null));f=x.elements||c.qsa(x.context||A,x.reevaluate||x.reselect?c.sel:c.selShort);if(B=f.length){c.setupRun(x);ra=!0;for(v=0;vf&&(f=!1);return f};c.supportsType=function(f){return f?C[f]:!0};c.parseSize=Ea(function(f){f=(f||"").match(la);return{media:f&&f[1],length:f&&f[2]}});c.parseSet=function(f){f.cands|| (f.cands=X(f.srcset,f));return f.cands};c.getEmValue=function(){var f;if(!F&&(f=A.body)){var v=A.createElement("div"),B=t.style.cssText,x=f.style.cssText;v.style.cssText="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)";t.style.cssText="font-size:100%!important;";f.style.cssText="font-size:100%!important;";f.appendChild(v);F=v.offsetWidth;f.removeChild(v);F=parseFloat(F,10);t.style.cssText=B;f.style.cssText= x}return F||16};c.calcListLength=function(f){if(!(f in L)||Q.uT){var v=c.calcLength(E(f));L[f]=v?v:K.width}return L[f]};c.setRes=function(f){if(f){var v=c.parseSet(f);for(var B=0,x=v.length;BT;O||(B.cached=!0,B.res>=T&&(x=B))}if(!x){f.sort(H);var W=f.length;x=f[W-1];for(M=0;M=T){x=M-1;if(O=f[x]&&(O||Z!==c.makeUrl(B.url)))M=f[x].res,W=B.res,"saveData"===Q.algorithm?2.7T;x=O?f[x]:B;break}}x&&(f=c.makeUrl(x.url),J.curSrc=f,J.curCan=x,f!==Z&&c.setSrc(v,x),c.setSize(v))}};c.setSrc=function(f,v){f.src=v.url;"image/svg+xml"=== v.set.type&&(v=f.style.width,f.style.width=f.offsetWidth+1+"px",f.offsetWidth+1&&(f.style.width=v))};c.getSet=function(f){var v,B=!1,x=f[c.ns].sets;for(f=0;fe||1I.indexOf(this)&&I.push(this)};A.prototype._unregisterInstance=function(){var b=I.indexOf(this);-1!=b&&I.splice(b,1)};window.IntersectionObserver=A;window.IntersectionObserverEntry=P}})();var oa={exports:{}}; (function(w,P){(function(){w.exports={polyfill:function(){function A(h,u){this.scrollLeft=h;this.scrollTop=u}function ca(h){if(null===h||"object"!==typeof h||void 0===h.behavior||"auto"===h.behavior||"instant"===h.behavior)return!0;if("object"===typeof h&&"smooth"===h.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+h.behavior+" is not a valid value for enumeration ScrollBehavior.");}function Y(h,u){if("Y"===u)return h.clientHeight+I