/*! lozad.js - v1.9.0 - 2019-02-09
* https://github.com/ApoorvSaxena/lozad.js
* Copyright (c) 2019 Apoorv Saxena; Licensed MIT */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,(function(){"use strict";var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},e="undefined"!=typeof document&&document.documentMode,r={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var r=document.createElement("img");e&&t.getAttribute("data-iesrc")&&(r.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(r.alt=t.getAttribute("data-alt")),t.appendChild(r)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var o=t.children,a=void 0,n=0;n<=o.length-1;n++)(a=o[n].getAttribute("data-src"))&&(o[n].src=a);t.load()}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function o(t){t.setAttribute("data-loaded",!0)}var a=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".lozad",n=t({},r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),i=n.root,d=n.rootMargin,u=n.threshold,c=n.load,s=n.loaded,g=void 0;return window.IntersectionObserver&&(g=new IntersectionObserver(function(t,e){return function(r,n){r.forEach((function(r){(r.intersectionRatio>0||r.isIntersecting)&&(n.unobserve(r.target),a(r.target)||(t(r.target),o(r.target),e(r.target)))}))}}(c,s),{root:i,rootMargin:d,threshold:u})),{observe:function(){for(var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(e,i),r=0;r<t.length;r++)a(t[r])||(g?g.observe(t[r]):(c(t[r]),o(t[r]),s(t[r])))},triggerLoad:function(t){a(t)||(c(t),o(t),s(t))},observer:g}}}));