!function(t,e){function n(t,e){var n=arguments.length>2?arguments[2]:[];if(!1===i(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,n)}function r(t,e,n){var r={value:n,writable:!0,enumerable:!1,configurable:!0};Object.defineProperty(t,e,r)}function o(t,e){return t[e]}function i(t){return"function"==typeof t}function s(t){if(null==t)throw TypeError();return Object(t)}function c(t,e){var n,r=(n=e,s(t)[n]);if(null!=r){if(!1===i(r))throw new TypeError("Method not callable: "+e);return r}}function a(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function u(t,e){if("string"===e)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var s=0;s1?arguments[1]:void 0;if("object"===a(e)){if(arguments.length<2)var o="default";else r===String?o="string":r===Number&&(o="number");var i="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?c(e,t.Symbol.toPrimitive):void 0;if(void 0!==i){var s=n(i,e,[o]);if("object"!==a(s))return s;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===o&&(o="number"),u(e,o)}return e}function v(t){switch(a(t)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return v(f(t,String));default:return String(t)}}var d,b,g,m;"includes"in Array.prototype||r(Array.prototype,"includes",(function(t){"use strict";var e=s(this),n=p(o(e,"length"));if(0===n)return!1;var r=h(arguments[1]);if(r>=0)var i=r;else(i=n+r)<0&&(i=0);for(;i1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=c(i),a=this._rootContainsTarget(i),u=o.entry,l=e&&a&&this._computeTargetAndRootIntersection(i,n),h=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:l});u?e&&a?this._hasCrossedThreshold(u,h)&&this._queuedEntries.push(h):u&&u.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o,i,s,a,l,h,p,f,v=c(n),d=u(n),b=!1;!b;){var g=null,m=1==d.nodeType?t.getComputedStyle(d):{};if("none"==m.display)return;if(d==this.root||d==e?(b=!0,g=r):d!=e.body&&d!=e.documentElement&&"visible"!=m.overflow&&(g=c(d)),g&&(o=g,i=v,s=void 0,a=void 0,l=void 0,h=void 0,p=void 0,f=void 0,s=Math.max(o.top,i.top),a=Math.min(o.bottom,i.bottom),l=Math.max(o.left,i.left),h=Math.min(o.right,i.right),f=a-s,!(v=(p=h-l)>=0&&f>=0&&{top:s,bottom:a,left:l,right:h,width:p,height:f})))break;d=u(d)}return v}},o.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o=0&&"[object Function]"===e.call(a.callee)),h),v="[object String]"===e.call(n),d=[];if(null==n)throw new TypeError("Cannot convert undefined or null to object");var b=o&&p;if(v&&n.length>0&&!t.call(n,0))for(var g=0;g0)for(var m=0;m