1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[137],{"0R3c":function(t,e,n){t.exports=function(){"use strict";function t(t){return+t.getAttribute("data-scrollama-index")}function e(t){if("string"==typeof t&&t.indexOf("px")>0){const e=+t.replace("px","");return isNaN(e)?(err("offset value must be in 'px' format. Fallback to 0.5."),{format:"percent",value:.5}):{format:"pixels",value:e}}return"number"!=typeof t&&isNaN(+t)?null:(t>1&&err("offset value is greater than 1. Fallback to 1."),t<0&&err("offset value is lower than 0. Fallback to 0."),{format:"percent",value:Math.min(Math.max(0,t),1)})}function n(t){const{top:e}=t.getBoundingClientRect();return e+window.pageYOffset-(document.body.clientTop||0)}let o,r,i;function s(t){const e=t?t.scrollTop:window.pageYOffset;o!==e&&(o=e,o>r?i="down":o<r&&(i="up"),r=o)}return function(){let a,c,u,f={},l=function(){const t="abcdefghijklmnopqrstuvwxyz",e=Date.now(),n=[];for(let e=0;e<6;e+=1){const e=t[Math.floor(Math.random()*t.length)];n.push(e)}return`${n.join("")}${e}`}(),h=[],p=0,d=!1,g=!1,m=!1,v=!1,y=[];function b(){f={stepEnter:()=>{},stepExit:()=>{},stepProgress:()=>{}},y=[]}function w(t){t&&!d&&A(),!t&&d&&I(),d=t}function x(e,n){const o=t(e),r=h[o];void 0!==n&&(r.progress=n);const s={element:e,index:o,progress:n,direction:i};"enter"===r.state&&f.stepProgress(s)}function _([e]){const n=t(e.target),o=h[n],r=e.target.offsetHeight;r!==o.height&&(o.height=r,O(o),P(o),R(o))}function E([e]){s(c);const{isIntersecting:n,target:o}=e;n?function(e,n=!0){const o=t(e),r=h[o],s={element:e,index:o,direction:i};r.direction=i,r.state="enter",y[o]||f.stepEnter(s),v&&(y[o]=!0)}(o):function(e,n=!0){const o=t(e),r=h[o];if(!r.state)return!1;const s={element:e,index:o,direction:i};g&&("down"===i&&r.progress<1?x(e,1):"up"===i&&r.progress>0&&x(e,0)),r.direction=i,r.state="exit",f.stepExit(s)}(o)}function T([e]){const n=t(e.target),o=h[n],{isIntersecting:r,intersectionRatio:i,target:s}=e;r&&"enter"===o.state&&x(s,i)}function O({observers:t}){Object.keys(t).map(e=>{t[e].disconnect()})}function I(){h.forEach(O)}function R(t){const e=new ResizeObserver(_);e.observe(t.node),t.observers.resize=e}function P(t){const e=window.innerHeight,n=t.offset||a,o="pixels"===n.format?1:e,r=n.value*o,i=t.height/2-r,s=t.height/2-(e-r),c=new IntersectionObserver(E,{rootMargin:`${i}px 0px ${s}px 0px`,threshold:.5,root:u});c.observe(t.node),t.observers.step=c,m&&function({id:t,step:e,marginTop:n}){const{index:o,height:r}=e,i=`scrollama__debug-step--${t}-${o}`;let s=document.querySelector("."+i);s||(s=function(t){const e=document.createElement("div");e.className="scrollama__debug-step "+t,e.style.position="fixed",e.style.left="0",e.style.width="100%",e.style.zIndex="9999",e.style.borderTop="2px solid black",e.style.borderBottom="2px solid black";const n=document.createElement("p");return n.style.position="absolute",n.style.left="0",n.style.height="1px",n.style.width="100%",n.style.borderTop="1px dashed black",e.appendChild(n),document.body.appendChild(e),e}(i)),s.style.top=-1*n+"px",s.style.height=r+"px",s.querySelector("p").style.top=r/2+"px"}({id:l,step:t,marginTop:i,marginBottom:s})}function S(t){const e=window.innerHeight,n=t.offset||a,o="pixels"===n.format?1:e,r=n.value*o,i=`${-r+t.height}px 0px ${r-e}px 0px`,s=function(t,e){const n=Math.ceil(t/e),o=[],r=1/n;for(let t=0;t<n+1;t+=1)o.push(t*r);return o}(t.height,p),c=new IntersectionObserver(T,{rootMargin:i,threshold:s});c.observe(t.node),t.observers.progress=c}function A(){I(),h.forEach(R),h.forEach(P),g&&h.forEach(S)}const M={setup:({step:t,parent:i,offset:f=.5,threshold:l=4,progress:d=!1,once:y=!1,debug:x=!1,container:_,root:E=null})=>(function(t){o=0,r=0,document.addEventListener("scroll",()=>s(t))}(_),h=function(t,e=document){return"string"==typeof t?Array.from(e.querySelectorAll(t)):t instanceof Element?[t]:t instanceof NodeList?Array.from(t):t instanceof Array?t:[]}(t,i).map((t,o)=>({index:o,direction:void 0,height:t.offsetHeight,node:t,observers:{},offset:e(t.dataset.offset),top:n(t),progress:0,state:void 0})),h.length?(g=d,v=y,m=x,p=Math.max(1,+l),a=e(f),c=_,u=E,b(),function(t){t.forEach(t=>t.node.setAttribute("data-scrollama-index",t.index))}(h),w(!0),M):M),enable:()=>(w(!0),M),disable:()=>(w(!1),M),destroy:()=>(w(!1),b(),M),resize:()=>(A(),M),offset:t=>null==t?a.value:(a=e(t),A(),M),onStepEnter:t=>("function"==typeof t&&(f.stepEnter=t),M),onStepExit:t=>("function"==typeof t&&(f.stepExit=t),M),onStepProgress:t=>("function"==typeof t&&(f.stepProgress=t),M)};return M}}()},"15/o":function(t,e,n){var o=n("F5EJ");"string"==typeof o&&(o=[[t.i,o,""]]);n("aET+")(o,{hmr:!0,transform:void 0}),o.locals&&(t.exports=o.locals)},"1YHl":function(t,e,n){"use strict";n("cIOH"),n("15/o")},F5EJ:function(t,e,n){(e=n("JPst")(!1)).push([t.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-affix {\n position: fixed;\n z-index: 10;\n}\n",""]),t.exports=e},VNzZ:function(t,e,n){"use strict";var o=n("cDcd"),r=n("VCL8"),i=n("eHJ2"),s=n.n(i),a=n("BGR+"),c=n("t23M"),u=n.n(c),f=n("H84U"),l=n("61SU"),h=n.n(l);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function d(){return function(t,e,n){var o=n.value,r=!1;return{configurable:!0,get:function(){if(r||this===t.prototype||this.hasOwnProperty(e))return o;var n=function(t){var e,n=function(n){return function(){e=null,t.apply(void 0,function(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n))}},o=function(){if(null==e){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e=h()(n(o))}};return o.cancel=function(){return h.a.cancel(e)},o}(o.bind(this));return r=!0,Object.defineProperty(this,e,{value:n,configurable:!0,writable:!0}),r=!1,n}}}}var g=n("6CfX"),m=n("zT1h");function v(t){return t!==window?t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(t,e,n){if(void 0!==n&&e.top>t.top-n)return n+e.top}function b(t,e,n){if(void 0!==n&&e.bottom<t.bottom+n)return n+(window.innerHeight-e.bottom)}var w=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],x=[];function _(t,e){if(t){var n=x.find((function(e){return e.target===t}));n?n.affixList.push(e):(n={target:t,affixList:[e],eventHandlers:{}},x.push(n),w.forEach((function(e){n.eventHandlers[e]=Object(m.a)(t,e,(function(){n.affixList.forEach((function(t){t.lazyUpdatePosition()}))}))})))}}function E(t){var e=x.find((function(e){var n=e.affixList.some((function(e){return e===t}));return n&&(e.affixList=e.affixList.filter((function(e){return e!==t}))),n}));e&&0===e.affixList.length&&(x=x.filter((function(t){return t!==e})),w.forEach((function(t){var n=e.eventHandlers[t];n&&n.remove&&n.remove()})))}function T(){return(T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var N,k=function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":M(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};!function(t){t[t.None=0]="None",t[t.Prepare=1]="Prepare"}(N||(N={}));var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(i,t);var e,n,r=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=A(t);if(e){var r=A(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return S(this,n)}}(i);function i(){var t;return I(this,i),(t=r.apply(this,arguments)).state={status:N.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var e=t.props,n=e.offset,o=e.offsetBottom,r=t.props.offsetTop;return void 0===r&&(r=n,Object(g.a)(void 0===n,"Affix","`offset` is deprecated. Please use `offsetTop` instead.")),void 0===o&&void 0===r&&(r=0),r},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(e){t.placeholderNode=e},t.saveFixedNode=function(e){t.fixedNode=e},t.measure=function(){var e=t.state,n=e.status,o=e.lastAffix,r=t.props,i=r.target,s=r.onChange;if(n===N.Prepare&&t.fixedNode&&t.placeholderNode&&i){var a=t.getOffsetTop(),c=t.getOffsetBottom(),u=i();if(u){var f={status:N.None},l=v(u),h=v(t.placeholderNode),p=y(h,l,a),d=b(h,l,c);void 0!==p?(f.affixStyle={position:"fixed",top:p,width:h.width,height:h.height},f.placeholderStyle={width:h.width,height:h.height}):void 0!==d&&(f.affixStyle={position:"fixed",bottom:d,width:h.width,height:h.height},f.placeholderStyle={width:h.width,height:h.height}),f.lastAffix=!!f.affixStyle,s&&o!==f.lastAffix&&s(f.lastAffix),t.setState(f)}}},t.prepareMeasure=function(){t.setState({status:N.Prepare,affixStyle:void 0,placeholderStyle:void 0})},t.renderAffix=function(e){var n=e.getPrefixCls,r=t.state,i=r.affixStyle,c=r.placeholderStyle,f=t.props,l=f.prefixCls,h=f.children,p=s()(O({},n("affix",l),i)),d=Object(a.a)(t.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return o.createElement(u.a,{onResize:function(){t.updatePosition()}},o.createElement("div",T({},d,{ref:t.savePlaceholderNode}),i&&o.createElement("div",{style:c,"aria-hidden":"true"}),o.createElement("div",{className:p,ref:t.saveFixedNode,style:i},o.createElement(u.a,{onResize:function(){t.updatePosition()}},h))))},t}return e=i,(n=[{key:"componentDidMount",value:function(){var t=this,e=this.props.target;e&&(this.timeout=setTimeout((function(){_(e(),t),t.updatePosition()})))}},{key:"componentDidUpdate",value:function(t){var e=this.state.prevTarget,n=this.props.target,o=null;n&&(o=n()||null),e!==o&&(E(this),o&&(_(o,this),this.updatePosition()),this.setState({prevTarget:o})),t.offsetTop===this.props.offsetTop&&t.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),E(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var t=this.props.target,e=this.state.affixStyle;if(t&&e){var n=this.getOffsetTop(),o=this.getOffsetBottom(),r=t();if(r&&this.placeholderNode){var i=v(r),s=v(this.placeholderNode),a=y(s,i,n),c=b(s,i,o);if(void 0!==a&&e.top===a||void 0!==c&&e.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){return o.createElement(f.a,null,this.renderAffix)}}])&&R(e.prototype,n),i}(o.Component);D.defaultProps={target:function(){return"undefined"!=typeof window?window:null}},k([d()],D.prototype,"updatePosition",null),k([d()],D.prototype,"lazyUpdatePosition",null),Object(r.polyfill)(D),e.a=D},Wr5T:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=r(e);n;)n=r(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.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},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),c(t,"resize",o,!0)),c(e,"scroll",o,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var f=r(e);f&&this._monitorIntersections(f.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var i=r(n);if((n=i&&i.ownerDocument)==e)return!0}return!1}))){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),e!=o){var s=r(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var r=o.element,s=u(r),a=this._rootContainsTarget(r),c=o.entry,f=t&&a&&this._computeTargetAndRootIntersection(r,s,e),l=null;this._rootContainsTarget(r)?n&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=o.entry=new i({time:window.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:l,intersectionRect:f});c?t&&a?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,r,i){if("none"!=window.getComputedStyle(e).display){for(var s,a,c,f,h,d,g,m,v=r,y=p(e),b=!1;!b&&y;){var w=null,x=1==y.nodeType?window.getComputedStyle(y):{};if("none"==x.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==t)n&&!this.root?!o||0==o.width&&0==o.height?(y=null,w=null,v=null):w=o:w=i;else{var _=p(y),E=_&&u(_),T=_&&this._computeTargetAndRootIntersection(_,E,i);E&&T?(y=_,w=l(E,T)):(y=null,v=null)}else{var O=y.ownerDocument;y!=O.body&&y!=O.documentElement&&"visible"!=x.overflow&&(w=u(y))}if(w&&(s=w,a=v,void 0,void 0,void 0,void 0,void 0,void 0,c=Math.max(s.top,a.top),f=Math.min(s.bottom,a.bottom),h=Math.max(s.left,a.left),m=f-c,v=(g=(d=Math.min(s.right,a.right))-h)>=0&&m>=0&&{top:c,bottom:f,left:h,right:d,width:g,height:m}||null),!v)break;y=y&&p(y)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var n=d(this.root)?this.root:t,o=n.documentElement,r=n.body;e={top:0,left:0,right:o.clientWidth||r.clientWidth,width:o.clientWidth||r.clientWidth,bottom:o.clientHeight||r.clientHeight,height:o.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},s.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},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return h(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function r(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=f(t.rootBounds),this.boundingClientRect=f(t.boundingClientRect),this.intersectionRect=f(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,o,r,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout((function(){n(),r=null}),o))}),this._callback=t,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(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function h(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?r(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function d(t){return t&&9===t.nodeType}}()},Zm9Q:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var o=n("cDcd"),r=n.n(o),i=n("TOwV");function s(t){var e=[];return r.a.Children.forEach(t,(function(t){null!=t&&(Array.isArray(t)?e=e.concat(s(t)):Object(i.isFragment)(t)&&t.props?e=e.concat(s(t.props.children)):e.push(t))})),e}}}]); |