* @copyright 2018 (c) FOREFRONT International Sdn Bhd
*/varr=this&&this.__assign||function(){return(r=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)};n(1);vari=n(2),o=(s.prototype.start=function(t){vare=this;if(void0===t&&(t=document.body),i.toArray(t.querySelectorAll("[data-track], [data-track-view]")).map(function(t){returne.track(t)}),!this._scrollTrackerInitialised){varn=i.debounce(function(){returne._onScroll()});window.addEventListener("scroll",n,{passive:!0}),this._onScroll(),this._scrollTrackerInitialised=!0}window.addEventListener("beforeunload",function(t){returne._onUnload(t)})},s.prototype.track=function(t){this._untrackFns.has(t)||this._untrackFns.set(t,{click:null,view:null});vare=this._untrackFns.get(t);null!==t.getAttribute("data-track")&&null==e.click&&(e.click=this._trackClicks(t)),null!==t.getAttribute("data-track-view")&&null==e.view&&(e.view=this._trackViews(t)),this._untrackFns.set(t,e)},s.prototype.untrack=function(t){vare=this._untrackFns.get(t);void0!==e&&(null!==e.click&&e.click(),null!==e.view&&e.view(),this._untrackFns.delete(t))},s.prototype.send=function(t){if(null!==this.options.sendEventFn)returnthis.options.sendEventFn(t);if("function"==typeofwindow.gtm)returnwindow.gtm(r(r({event:t.action,event_label:t.label,event_category:t.category,non_interaction:!t.interaction},t.metrics),t.dimensions));if("function"==typeofwindow.gtag)returnwindow.gtag("event",t.action,r(r({event_label:t.label,event_category:t.category,non_interaction:!t.interaction},t.metrics),t.dimensions));if("function"==typeofwindow.ga)returnwindow.ga("send",{hitType:"event",eventCategory:t.category,eventAction:t.action,eventLabel:t.label,nonInteraction:!t.interaction},r(r({},t.metrics),t.dimensions));throw"No available analytics backend found. Has Google Analytics been loaded yet?"},s.prototype._parseEventString=function(t){vare=t.split(";").map(function(t){returnt.trim()}),n=e[0],r=e[1],i=e[2];return1===e.length&&(r=n,n=void0),{category:n,action:r,label:i,interaction:!0}},s.prototype._trackClicks=function(e){functiont(t){returnn._onTrackedClick(e,t)}varn=this;returne.addEventListener("click",t),e.addEventListener("auxclick",t),function(){e.removeEventListener("click",t),e.removeEventListener("auxclick",t)}},s.prototype._trackViews=function(t){vare=this;returnthis._observer.observe(t),function(){e._observer.unobserve(t)}},s.prototype._onTrackedClick=function(t,e){varn=t.getAttribute("data-track"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.clicksAreInteractions,null!==t.getAttribute("data-track:non-interaction")&&(r.interaction=!1),this.send(r)},s.prototype._onTrackedView=function(t,e){varn=t.getAttribute("data-track-view"),r=this._parseEventString(n);r.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track-view:metrics:/,""),r=""===e.value?1:e.value;returnt[n]=r,t},{}),r.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:dimensions")}).reduce(function(t,e){if(""===e.value)returnconsole.warn("No dimension value provided for "+e.name),t;varn=e.name.replace(/data-track-view:dimensions:/,""),r=e.value;returnt[n]=r,t},{}),r.interaction=this.options.viewsAreInteractions,null!==t.getAttribute("data-track-view:interaction")&&(r.interaction=!0),this.send(r)},s.prototype._onScroll=function(t){void0===t&&(t=document.documentElement);vare=Math.max(t.clientHeight,window.innerHeight||0),n=t.scrollTop+e;n>this._maxScrollY&&(this._maxScrollY=n)},s.prototype._onUnload=function(t){vare={category:"general",action:"scroll y",label:window.location.pathname,interaction:!1,value:Math.floor(this._maxScrollY/document.body.clientHeight*100)};this.send(e)},s.defaultOptions={defer:!1,observerOptions:{},clicksAreInteractions:!0,viewsAreInteractions:!1,sendEventFn:null},s);functions(t){varn=this;void0===t&&(t={}),this._untrackFns=newMap,this._observer=null,this._maxScrollY=0,this._scrollTrackerInitialised=!1,this.options=r(r({},s.defaultOptions),t),this._observer=newIntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(n._onTrackedView(t.target,e),e.unobserve(t.target))})},this.options.observerOptions),this.options.defer||("complete"===document.readyState||"interactive"===document.readyState?this.start():window.addEventListener("DOMContentLoaded",function(){returnn.start()}))}t.exports=o},function(t,e){!function(v,m){"use strict";if("IntersectionObserver"inv&&"IntersectionObserverEntry"inv&&"intersectionRatio"inv.IntersectionObserverEntry.prototype)"isIntersecting"inv.IntersectionObserverEntry.prototype||Object.defineProperty(v.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return0<this.intersectionRatio}});else{vare=[];t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){if(!this._observationTargets.some(function(t){returnt.element==e})){if(!e||1!=e.nodeType)thrownewError("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){returnt.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){vart=this._queuedEntries.slice();returnthis._queuedEntries=[],t},t.prototype._initThresholds=function(t){vare=t||[0];returnArray.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeoft||isNaN(t)||t<0||1<t)thrownewError("threshold must be a number between 0 and 1 inclusively");returnt!==n[e-1]})},t.prototype._parseRootMargin=function(t){vare=(t||"0px").split(/\s+/).map(function(t){vare=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)thrownewError("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});returne[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(v,"resize",this._checkForIntersections,!0),n(m,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"inv&&(this._domObserver=newMutationObserver(this._checkForIntersections),this._domObserver.observe(m,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,r(v,"resize",this._checkForIntersections,!0),r(m,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},t.prototype._checkForIntersections=function(){varc=this._rootIsInDom(),a=c?this._getRootRect():o();this._observationTargets.forEach(function(t){vare=t.element,n=_(e),r=this._rootContainsTarget(e),i=t.entry,o=c&&r&&this._computeTargetAndRootIntersection(e,a),s=t.entry=newu({time:v.performance&&performance.now&&performance.now(),target:e,boundingClientRect:n,rootBounds:a,intersectionRect:o});i?c&&r?this._hasCrossedThreshold(i,s)&&this._queuedEntries.push(s):i&&i.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=v.getComputedStyle(t).display){for(varn,r,i,o,s,c,a,u,l=_(t),h=g(t),d=!1;!d;){varf=null,p=1==h.nodeType?v.getComputedStyle(h):{};if("none"==p.display)return;if(h==this.root||h==m?(d=!0,f=e):h!=m.body&&h!=m.documentElement&&"visible"!=p.overflow&&(f=_(h)),f&&(n=f,r=l,0,i=Math.max(n.top,r.top),o=Math.min(n.bottom,r.bottom),s=Math.max(n.left,r.left),c=Math.min(n.right,r.right),u=o-i,!(l=0<=(a=c-s)&&0<=u&&{top:i,bottom:o,left:s,right:c,width:a,height:u})))break;h=g(h)}returnl}},t.prototype._getRootRect=function(){vart;if(this.root)t=_(this.root);else{vare=m.documentElement,n=m.body;t={top:0,left:0,right:e.clientWidth||n.clientWidth,width:e.clientWidth||n.clientWidth,bottom:e.clientHeight||n.clientHeight,height:e.clientHeight||n.clientHeight}}returnthis._expandRectByRootMargin(t)},t.prototype._expandRectByRootMargin=function(n){vart=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?n.width:n.height)/100}),e={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};returne.width=e.right-e.left,e.height=e.bottom-e.top,e},t.prototype._hasCrossedThreshold=function(t,e){varn=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(vari=0;i<this.thresholds.length;i++){varo=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},t.prototype._rootIsInDom=function(){return!this.root||i(m,this.root)},t.prototype._rootContainsTarget=function(t){returni(this.root||m,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){vart=e.indexOf(this);-1!=t&&e.splice(t,1)},v.IntersectionObserver=t,v.IntersectionObserverEntry=u}functionu(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;vare=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}functiont(t,e){varn,r,i,o=e||{};if("function"!=typeoft)thrownewError("callback must be a function");if(o.root&&1!=o.root.nodeType)thrownewError("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i=i||setTimeout(function(){n(),i=null},r)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map(function(t){returnt.value+t.unit}).join(" ")}functionn(t,e,n,r){"function"==typeoft.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeoft.attachEvent&&t.attachEvent("on"+e,n)}functionr(t,e,n,r){"function"==typeoft.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeoft.detatchEvent&&t.detatchEvent("on"+e,n)}function_(t){vare;try{e=t.getBoundingClientRect()}catch(t){}returne?(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):o()}functiono(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}functioni(t,e){for(varn=e;n;){if(n==t)return!0;n=g(n)}return!1}functiong(t){vare=t.parentNode;returne&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(3);e.toArray=r.default;vari=n(4);e.debounce=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t)}},function(t,e,n){"use strict";functionr(n,r){vari;returnvoid0===r&&(r=300),function(){vart=this,e=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n.apply(t,e)},r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=r,e.default=r}],i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varn=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varrine)i.d(n,r,function(t){returne[t]}.bind(null,r));returnn},i.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returni.d(e,"a",e),e},i.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=0);functioni(t){if(r[t])returnr[t].exports;vare=r[t]={i:t,l:!1,exports:{}};returnn[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}varn,r});
\ No newline at end of file
*/
varr=this&&this.__assign||function(){return(r=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)},i=(n(1),n(2));functiono(t){varn=this;void0===t&&(t={}),this._untrackFns=newMap,this._observer=null,this._maxScrollY=0,this._scrollTrackerInitialised=!1,this.options=r(r({},o.defaultOptions),t),this._observer=newIntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(n._onTrackedView(t.target,e),e.unobserve(t.target))})},this.options.observerOptions),this.options.defer||("complete"===document.readyState||"interactive"===document.readyState?this.start():window.addEventListener("DOMContentLoaded",function(){returnn.start()}))}o.prototype.start=function(t){vare=this;void0===t&&(t=document.body),i.toArray(t.querySelectorAll("[data-track], [data-track-view]")).map(function(t){returne.track(t)}),this._scrollTrackerInitialised||(t=i.debounce(function(){returne._onScroll()}),window.addEventListener("scroll",t,{passive:!0}),this._onScroll(),this._scrollTrackerInitialised=!0),window.addEventListener("beforeunload",function(t){returne._onUnload(t)})},o.prototype.track=function(t){this._untrackFns.has(t)||this._untrackFns.set(t,{click:null,view:null});vare=this._untrackFns.get(t);null!==t.getAttribute("data-track")&&null==e.click&&(e.click=this._trackClicks(t)),null!==t.getAttribute("data-track-view")&&null==e.view&&(e.view=this._trackViews(t)),this._untrackFns.set(t,e)},o.prototype.untrack=function(t){vare=this._untrackFns.get(t);void0!==e&&(null!==e.click&&e.click(),null!==e.view&&e.view(),this._untrackFns.delete(t))},o.prototype.send=function(t){if(null!==this.options.sendEventFn)returnthis.options.sendEventFn(t);if("function"==typeofwindow.gtm)returnwindow.gtm(r(r({event:t.action,event_label:t.label,event_category:t.category,non_interaction:!t.interaction},t.metrics),t.dimensions));if("function"==typeofwindow.gtag)returnwindow.gtag("event",t.action,r(r(r(r(r({},t.metrics),t.dimensions),t.label?{label:t.label}:{}),t.category?{category:t.category}:{}),{non_interaction:!t.interaction}));if("function"==typeofwindow.ga)returnwindow.ga("send",{hitType:"event",eventCategory:t.category,eventAction:t.action,eventLabel:t.label,nonInteraction:!t.interaction},r(r({},t.metrics),t.dimensions));throw"No available analytics backend found. Has Google Analytics been loaded yet?"},o.prototype._parseEventString=function(t){vart=t.split(";").map(function(t){returnt.trim()}),e=t[0],n=t[1];return1===t.length&&(n=e,e=void0),{category:e,action:n,label:t[2],interaction:!0}},o.prototype._trackClicks=function(e){functiont(t){returnn._onTrackedClick(e,t)}varn=this;returne.addEventListener("click",t),e.addEventListener("auxclick",t),function(){e.removeEventListener("click",t),e.removeEventListener("auxclick",t)}},o.prototype._trackViews=function(t){vare=this;returnthis._observer.observe(t),function(){e._observer.unobserve(t)}},o.prototype._onTrackedClick=function(t,e){varn=t.getAttribute("data-track"),n=this._parseEventString(n);n.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track:metrics:/,""),e=""===e.value?1:e.value;returnt[n]=e,t},{}),n.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track:dimensions")}).reduce(function(t,e){varn;return""===e.value?console.warn("No dimension value provided for "+e.name):(n=e.name.replace(/data-track:dimensions:/,""),e=e.value,t[n]=e),t},{}),n.interaction=this.options.clicksAreInteractions,null!==t.getAttribute("data-track:non-interaction")&&(n.interaction=!1),this.send(n),t.hasAttribute("data-track:page-view")&&(n=t.getAttribute("data-track:page-view")||window.location.pathname,this.sendPageView(n))},o.prototype._onTrackedView=function(t,e){varn=t.getAttribute("data-track-view"),n=this._parseEventString(n);n.metrics=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:metrics")}).reduce(function(t,e){varn=e.name.replace(/data-track-view:metrics:/,""),e=""===e.value?1:e.value;returnt[n]=e,t},{}),n.dimensions=i.toArray(t.attributes).filter(function(t){returnt.name.startsWith("data-track-view:dimensions")}).reduce(function(t,e){varn;return""===e.value?console.warn("No dimension value provided for "+e.name):(n=e.name.replace(/data-track-view:dimensions:/,""),e=e.value,t[n]=e),t},{}),n.interaction=this.options.viewsAreInteractions,null!==t.getAttribute("data-track-view:interaction")&&(n.interaction=!0),this.send(n)},o.prototype._onScroll=function(t){void0===t&&(t=document.documentElement);vare=Math.max(t.clientHeight,window.innerHeight||0),t=t.scrollTop+e;t>this._maxScrollY&&(this._maxScrollY=t)},o.prototype._onUnload=function(t){vare={category:"general",action:"scroll y",label:window.location.pathname,interaction:!1,value:Math.floor(this._maxScrollY/document.body.clientHeight*100)};this.send(e)},o.prototype.sendPageView=function(t){void0===t&&(t=window.location.pathname),"function"==typeofwindow.gtag&&window.gtag("event","page_view",{page_path:t})},o.defaultOptions={defer:!1,observerOptions:{},clicksAreInteractions:!0,viewsAreInteractions:!1,sendEventFn:null},t.exports=o},function(t,e){functionc(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;vart=this.boundingClientRect,t=t.width*t.height,e=this.intersectionRect,e=e.width*e.height;this.intersectionRatio=t?Number((e/t).toFixed(4)):this.isIntersecting?1:0}functionn(t,e){varn,r,i,e=e||{};if("function"!=typeoft)thrownewError("callback must be a function");if(e.root&&1!=e.root.nodeType)thrownewError("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i=i||setTimeout(function(){n(),i=null},r)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map(function(t){returnt.value+t.unit}).join(" ")}functionr(t,e,n,r){"function"==typeoft.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeoft.attachEvent&&t.attachEvent("on"+e,n)}functioni(t,e,n,r){"function"==typeoft.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeoft.detatchEvent&&t.detatchEvent("on"+e,n)}functionh(t){vare;try{e=t.getBoundingClientRect()}catch(t){}returne?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}:o()}functiono(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}functions(t,e){for(varn=e;n;){if(n==t)return!0;n=d(n)}return!1}functiond(t){t=t.parentNode;returnt&&11==t.nodeType&&t.host?t.host:t}varp,f,a;p=window,f=document,"IntersectionObserver"inp&&"IntersectionObserverEntry"inp&&"intersectionRatio"inp.IntersectionObserverEntry.prototype?"isIntersecting"inp.IntersectionObserverEntry.prototype||Object.defineProperty(p.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return0<this.intersectionRatio}}):(a=[],n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(e){vart=this._observationTargets.some(function(t){returnt.element==e});if(!t){if(!e||1!=e.nodeType)thrownewError("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){returnt.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){vart=this._queuedEntries.slice();returnthis._queuedEntries=[],t},n.prototype._initThresholds=function(t){t=t||[0];return(t=Array.isArray(t)?t:[t]).sort().filter(function(t,e,n){if("number"!=typeoft||isNaN(t)||t<0||1<t)thrownewError("threshold must be a number between 0 and 1 inclusively");returnt!==n[e-1]})},n.prototype._parseRootMargin=function(t){t=(t||"0px").split(/\s+/).map(function(t){t=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(t)return{value:parseFloat(t[1]),unit:t[2]};thrownewError("rootMargin must be specified in pixels or percent")});returnt[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(p,"resize",this._checkForIntersections,!0),r(f,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"inp&&(this._domObserver=newMutationObserver(this._checkForIntersections),this._domObserver.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(p,"resize",this._checkForIntersections,!0),i(f,"scroll",this._checkForIntersections,!0),this._domObserver)&&(this._domObserver.disconnect(),this._domObserver=null)},n.prototype._checkForIntersections=function(){vars=this._rootIsInDom(),a=s?this._getRootRect():o();this._observationTargets.forEach(function(t){vare=t.element,n=h(e),r=this._rootContainsTarget(e),i=t.entry,o=s&&r&&this._computeTargetAndRootIntersection(e,a),t=t.entry=newc({time:p.performance&&performance.now&&performance.now(),target:e,boundingClientRect:n,rootBounds:a,intersectionRect:o});i?s&&r?this._hasCrossedThreshold(i,t)&&this._queuedEntries.push(t):i&&i.isIntersecting&&this._queuedEntries.push(t):this._queuedEntries.push(t)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=p.getComputedStyle(t).display){for(varn,r,i,o,s=h(t),a=d(t),c=!1;!c;){varu=null,l=1==a.nodeType?p.getComputedStyle(a):{};if("none"==l.display)return;if(a==this.root||a==f?(c=!0,u=e):a!=f.body&&a!=f.documentElement&&"visible"!=l.overflow&&(u=h(a)),u&&(l=u,u=s,o=i=r=n=void0,n=Math.max(l.top,u.top),r=Math.min(l.bottom,u.bottom),i=Math.max(l.left,u.left),l=Math.min(l.right,u.right),o=r-n,!(s=0<=(u=l-i)&&0<=o&&{top:n,bottom:r,left:i,right:l,width:u,height:o})))break;a=d(a)}returns}},n.prototype._getRootRect=function(){vart,e;returne=this.root?h(this.root):(e=f.documentElement,t=f.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(e)},n.prototype._expandRectByRootMargin=function(n){vart=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?n.width:n.height)/100}),t={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};returnt.width=t.right-t.left,t.height=t.bottom-t.top,t},n.prototype._hasCrossedThreshold=function(t,e){varn=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(vari=0;i<this.thresholds.length;i++){varo=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},n.prototype._rootIsInDom=function(){return!this.root||s(f,this.root)},n.prototype._rootContainsTarget=function(t){returns(this.root||f,t)},n.prototype._registerInstance=function(){a.indexOf(this)<0&&a.push(this)},n.prototype._unregisterInstance=function(){vart=a.indexOf(this);-1!=t&&a.splice(t,1)},p.IntersectionObserver=n,p.IntersectionObserverEntry=c)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});varr=n(3),i=(Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){returnr.default}}),n(4));Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){returni.default}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t)}},function(t,e,n){functionr(n,r){vari;returnvoid0===r&&(r=300),function(){vart=this,e=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n.apply(t,e)},r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void0,e.debounce=r,e.default=r}],r={},i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varn=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varrine)i.d(n,r,function(t){returne[t]}.bind(null,r));returnn},i.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returni.d(e,"a",e),e},i.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=0);functioni(t){vare;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,i),e.l=!0,e)).exports}varn,r});