!function i(n,t,i){function r(u,e){var s,h,o;if(!t[u]){if(!n[u]){if(s="function"==typeof require&&require,!e&&s)return s(u,!0);if(f)return f(u,!0);h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[u]={exports:{}};n[u][0].call(o.exports,function(t){return r(n[u][1][t]||t)},o,o.exports,i,n,t,i)}return t[u].exports}for(var f="function"==typeof require&&require,u=0;u<i.length;u++)r(i[u]);return r}({1:[function(n){"use strict";var t,i=n("./lazy-loading-observer"),r=(t=i)&&t.__esModule?t:{"default":t},u=document.querySelectorAll("img.lazy-loaded"),f=new r.default;[].forEach.call(u,function(n){f.observeElement(n)})},{"./lazy-loading-observer":2}],2:[function(n,t,i){"use strict";var u,r,f;Object.defineProperty(i,"__esModule",{value:!0});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();n("./polyfill/intersection-observer");r=function(){this.classList.add("is-validated");this.onload=function(){};this.onerror=function(){}};f=function(){function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.observer=new IntersectionObserver(function(t,i){t.forEach(function(t){if(t.isIntersecting){var r=t.target,u=r.getAttribute("data-16-9"),f=r.getAttribute("data-1-1");r.setAttribute("data-picture-loaded","true");(u||f)&&(u&&!f?r.src=u:!u&&f?r.src=f:n.checkImage(!0,r));r.classList.add("revealed");r.classList.remove("lazy-loaded");r.removeAttribute("data-lazy-observed");i.unobserve(t.target)}})},{threshold:.05})}return u(n,[{key:"observeElement",value:function(n){"true"!==n.getAttribute("data-lazy-observed")&&(n.classList.contains("revealed")||(n.setAttribute("data-lazy-observed","true"),this.observer.observe(n)))}}],[{key:"checkImage",value:function(n,t){var u;if("true"===t.getAttribute("data-picture-loaded")&&(u=0<t.offsetWidth&&0<t.offsetHeight,(!t.aspectRatioValidated||n)&&u)){var f=t.offsetWidth,e=t.offsetHeight,i=t.getAttribute("data-16-9");f/e<=1&&(i=t.getAttribute("data-1-1"));t.src!==i&&(t.aspectRatioValidated||(t.onload=r.bind(t),t.onerror=r.bind(t)),t.aspectRatioValidated=!0,t.src=i)}}}]),n}();i.default=f},{"./polyfill/intersection-observer":3}],3:[function(){"use strict";!function(n,t){function e(n){this.time=n.time;this.target=n.target;this.rootBounds=n.rootBounds;this.boundingClientRect=n.boundingClientRect;this.intersectionRect=n.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0};this.isIntersecting=!!n.intersectionRect;var t=this.boundingClientRect,i=t.width*t.height,r=this.intersectionRect,u=r.width*r.height;this.intersectionRatio=i?Number((u/i).toFixed(4)):this.isIntersecting?1:0}function i(n,t){var u,f,r,i=t||{};if("function"!=typeof n)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(u=this._checkForIntersections.bind(this),f=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout(function(){u();r=null},f))});this._callback=n;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(i.rootMargin);this.thresholds=this._initThresholds(i.threshold);this.root=i.root||null;this.rootMargin=this._rootMarginValues.map(function(n){return n.value+n.unit}).join(" ")}function o(n,t,i,r){"function"==typeof n.addEventListener?n.addEventListener(t,i,r||!1):"function"==typeof n.attachEvent&&n.attachEvent("on"+t,i)}function s(n,t,i,r){"function"==typeof n.removeEventListener?n.removeEventListener(t,i,r||!1):"function"==typeof n.detatchEvent&&n.detatchEvent("on"+t,i)}function u(n){var t;try{t=n.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(n,t){for(var i=t;i;){if(i==n)return!0;i=f(i)}return!1}function f(n){var t=n.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}if("IntersectionObserver"in n&&"IntersectionObserverEntry"in n&&"intersectionRatio"in n.IntersectionObserverEntry.prototype)"isIntersecting"in n.IntersectionObserverEntry.prototype||Object.defineProperty(n.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var r=[];i.prototype.THROTTLE_TIMEOUT=100;i.prototype.POLL_INTERVAL=null;i.prototype.USE_MUTATION_OBSERVER=!0;i.prototype.observe=function(n){if(!this._observationTargets.some(function(t){return t.element==n})){if(!n||1!=n.nodeType)throw new Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:n,entry:null});this._monitorIntersections();this._checkForIntersections()}};i.prototype.unobserve=function(n){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=n});this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())};i.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};i.prototype.takeRecords=function(){var n=this._queuedEntries.slice();return this._queuedEntries=[],n};i.prototype._initThresholds=function(n){var t=n||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(n,t,i){if("number"!=typeof n||isNaN(n)||n<0||1<n)throw new Error("threshold must be a number between 0 and 1 inclusively");return n!==i[t-1]})};i.prototype._parseRootMargin=function(n){var t=(n||"0px").split(/\s+/).map(function(n){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(n);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t};i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(n,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))};i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(n,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))};i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),i=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var f=r.element,c=u(f),h=this._rootContainsTarget(f),o=r.entry,l=t&&h&&this._computeTargetAndRootIntersection(f,i),s=r.entry=new e({time:n.performance&&performance.now&&performance.now(),target:f,boundingClientRect:c,rootBounds:i,intersectionRect:l});o?t&&h?this._hasCrossedThreshold(o,s)&&this._queuedEntries.push(s):o&&o.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)};i.prototype._computeTargetAndRootIntersection=function(i,r){var h,w;if("none"!=n.getComputedStyle(i).display){for(var o,s,c,l,a,v,b,y,p=u(i),e=f(i),k=!1;!k;){if(h=null,w=1==e.nodeType?n.getComputedStyle(e):{},"none"==w.display)return;if(e==this.root||e==t?(k=!0,h=r):e!=t.body&&e!=t.documentElement&&"visible"!=w.overflow&&(h=u(e)),h&&(o=h,s=p,void 0,c=Math.max(o.top,s.top),l=Math.min(o.bottom,s.bottom),a=Math.max(o.left,s.left),v=Math.min(o.right,s.right),y=l-c,!(p=0<=(b=v-a)&&0<=y&&{top:c,bottom:l,left:a,right:v,width:b,height:y})))break;e=f(e)}return p}};i.prototype._getRootRect=function(){var r,n,i;return this.root?r=u(this.root):(n=t.documentElement,i=t.body,r={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}),this._expandRectByRootMargin(r)};i.prototype._expandRectByRootMargin=function(n){var i=this._rootMarginValues.map(function(t,i){return"px"==t.unit?t.value:t.value*(i%2?n.width:n.height)/100}),t={top:n.top-i[0],right:n.right+i[1],bottom:n.bottom+i[2],left:n.left-i[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t};i.prototype._hasCrossedThreshold=function(n,t){var u=n&&n.isIntersecting?n.intersectionRatio||0:-1,f=t.isIntersecting?t.intersectionRatio||0:-1,r,i;if(u!==f)for(r=0;r<this.thresholds.length;r++)if(i=this.thresholds[r],i==u||i==f||i<u!=i<f)return!0};i.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)};i.prototype._rootContainsTarget=function(n){return h(this.root||t,n)};i.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)};i.prototype._unregisterInstance=function(){var n=r.indexOf(this);-1!=n&&r.splice(n,1)};n.IntersectionObserver=i;n.IntersectionObserverEntry=e}}(window,document)},{}]},{},[1])