"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92587],{36991:function(e,t,n){n.d(t,{Z:function(){return y}});var a=n(51438),o=n(14924),r=n(26042),i=n(69396),c=n(90250),s=n(89380),l=function(e){/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent)?(0,s.Z)(e.top,{speed:"smooth"===e.behavior?500:0}):window.scrollTo(e)},u=function(){return document.body.scrollTop||document.documentElement.scrollTop},h=function(e){var t=u(),n=e?e.getBoundingClientRect():{top:0,bottom:0},a=n.top,o=n.bottom;return{top:Math.floor(a+t),bottom:Math.floor(o+t)}},f=function(e,t){return!!e.contains(t)||!(t.contains(e)||!function(e,t){var n=h(e),a=n.top,o=n.bottom,r=h(t),i=r.top,c=r.bottom;return a===i?o===c?ea}(e,t))},d=function(e,t){var n,a;return Object.keys(e).forEach((function(o){var r=e[o].component;(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=u(),a=h(e).top+t;return n>=a&&n0&&void 0!==arguments[0]?arguments[0]:0;return t.goToSection(n,e)};t.config.scrollOnImagesLoad&&!t.imagesAreLoaded?window.addEventListener(p,a,!1):a(t.config.scrollDelay)}})),(0,o.Z)(this,"goToSection",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t.anchors[e]?t.anchors[e].component:null)||document.getElementById(e),o=t.config.offset;a&&setTimeout((function(){a.currentStyle||window.getComputedStyle(a).marginTop.replace(/\D+/g,"");var e=a.getBoundingClientRect().top;l({top:e-o,behavior:t.config.scrollBehaviour})}),n)})),this.anchors={},this.forcedHash=!1,this.config=v,this.scrollHandler=(0,c.Ds)(this.handleScroll,~~this.config.debounce),this.forceHashUpdate=(0,c.Ds)(this.handleHashChange,1),this.basePath=this.getBasePath(),this.basePathName=window.location.pathname,this.imagesAreLoaded=!1,this.currentArticleData=this.config.currentArticleData,this.queryString=this.config.queryString,this.resetDefaultMetaTags(),setTimeout((function(){var e=!1,n=function(){if(!e){var t=new Event(p);window.dispatchEvent(t)}e=!0};if(t.config.scrollOnImagesLoad){t.config.scrollOnImagesLoad>1&&setTimeout(n,parseInt(t.config.scrollOnImagesLoad,10));var a=document.images,o=a.length,r=0,i=function(){++r===o&&(t.imagesAreLoaded=!0,n())};[].forEach.call(a,(function(e){e.complete?i():e.addEventListener("load",i,!1)}))}})),window.history&&window.history.pushState&&window.addEventListener("popstate",(function(){t.config.reloadOnGoingBack&&window.location.reload()}))}},92587:function(e,t,n){n.r(t),n.d(t,{ScrollableLink:function(){return b},default:function(){return Z}});var a=n(4111),o=n(51438),r=n(52951),i=n(14924),c=n(88029),s=n(26042),l=n(69396),u=n(99534),h=n(5950),f=n(85893),d=n(67294),m=n(73935),g=n(45697),v=n.n(g),p=n(36991),y=n(90250),w=n(98761),Z=function(e){(0,c.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).name=(e.name||"").replace(/^\//,"")||null,a.hash=(e.hash||"").replace(/^\#/,"")||e.children.ref||null,a.meta=e.meta||null,a.link=e.link||null,a.id=(0,y.Mc)({name:a.name,hash:a.hash}),a.currentArticleData=e.currentArticleData||null,a.queryString=e.queryString||null,a}return(0,r.Z)(n,[{key:"componentDidMount",value:function(){var e=m.findDOMNode(this.refs[Object.keys(this.refs)[0]]);p.Z.addAnchor({element:e,name:this.name,hash:this.hash,exact:!!this.props.exact,id:this.id,meta:this.meta,link:this.link,currentArticleData:this.currentArticleData,queryString:this.queryString})}},{key:"componentWillUnmount",value:function(){p.Z.removeAnchor(this.id)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.name,e.hash,e.title,e.formatTitle,(0,u.Z)(e,["children","name","hash","title","formatTitle"]));return Array.isArray(t)?(0,f.jsx)("div",(0,l.Z)((0,s.Z)({ref:this.id},n),{children:d.Children.map(t,(function(e){return d.cloneElement(e,{})}))})):d.cloneElement(t,(0,s.Z)({ref:t.ref||this.id},n))}}]),n}(d.Component);(0,i.Z)(Z,"propTypes",{children:v().oneOfType([v().node,v().array]),name:v().string,hash:v().string,onEnter:v().func}),Z.defaultProps={};var b=function(e){(0,c.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).handleClick=r.handleClick.bind((0,a.Z)(r)),r}return(0,r.Z)(n,[{key:"handleClick",value:function(){var e=this.props.href;if(e&&"/"!==e&&"#"!==e){var t=e.split("#"),n=t[0].replace(/^\//,"")||null,a=t[1]||null,o=(0,y.Mc)({name:n,hash:a});p.Z.anchors[o]&&((0,w.V$)({anchor:p.Z.anchors[o],affectHistory:!1,manager:p.Z}),p.Z.goToSection(o))}else(0,w.lm)({manager:p.Z})}},{key:"render",value:function(){var e=this.props.children;return Array.isArray(e)?(0,f.jsx)("span",{onClick:this.handleClick,children:d.Children.map(e,(function(e){return d.cloneElement(e,{})}))}):d.cloneElement(e,{onClick:this.handleClick})}}]),n}(d.Component)},90250:function(e,t,n){n.d(t,{Ds:function(){return r},Mc:function(){return i},Uh:function(){return c}});var a=void 0,o=arguments,r=function(e,t,n){var r;return function(){var i=a,c=o,s=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,c)}),t),s&&e.apply(i,c)}},i=function(e){var t=e.name,n=e.hash;return"___scroll-section___".concat(t||"","___").concat(n||"")},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=Object.keys(e).find((function(n){return e[n].name===t&&!e[n].hash}));return n?e[n]:null}},98761:function(e,t,n){n.d(t,{V$:function(){return s},XR:function(){return c},lm:function(){return l}});var a=n(90250),o=n(59083),r=n(17539),i=n(21227),c=("".concat(window.location.origin).concat(window.location.pathname),function(e){var t=e.manager,n=(t.basePath,t.currentArticleData,decodeURI(window.location.hash.slice(1)));return(0,a.Mc)({name:name,hash:n})}),s=function(e){var t=e.anchor,n=e.affectHistory,a=e.manager,c=t.hash,s=t.name,l=t.meta,u=t.exact,h=t.link,f=t.currentArticleData,d=t.queryString,m=a.basePath,g=n?"pushState":"replaceState",v="".concat(s?"".concat(u?window.location.origin:m,"/").concat(s):m).concat(c?"#".concat(c):"");if(window.location.href.split("?")[0]!==v){if(f){var p=(0,r.getArticleIdByURL)(window.location.href.split("?")[0]);document.getElementById(p+"paywallpopup")&&document.getElementById(p+"paywallpopup").remove()}window.location.href.split("?")[0].split("-"),d&&(v=v+"?"+d),window.history[g](window.history.state,"",v),f&&setTimeout((function(){(0,i.$2)(f)}),2e3)}l?((0,o.xs)(l),h&&(0,o.WI)(h)):a.setDefaultMetaTags()},l=function(e){var t=e.manager;window.history.replaceState(void 0,t.defaultMetaTags.title,t?t.basePath:basePath),t.setDefaultMetaTags()}},59083:function(e,t,n){n.d(t,{WI:function(){return m},eg:function(){return v},x4:function(){return g},xs:function(){return d}});var a=n(14924),o=n(26042),r=n(69396),i=n(99534),c=n(44622),s=n.n(c),l=function(e){return e.getAttribute("name")||e.getAttribute("property")},u=function(e){return e.getAttribute("rel")},h=function(e){if("undefined"!==typeof document){var t=document.getElementsByTagName("meta");return s()(t).find((function(t){return l(t)===e}))}},f=function(e){if("undefined"!==typeof document){var t=document.getElementsByTagName("link");return s()(t).find((function(t){return u(t)===e}))}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=(0,i.Z)(e,["title"]);t&&(document.title=t),Object.keys(n).forEach((function(e){var t=h(e);if(n[e])if(t)t.setAttribute("content",n[e]);else{var a=document.createElement("meta");a.name=e,a.setAttribute("content",n[e]),document.getElementsByTagName("head")[0].appendChild(a)}else t&&t.parentNode.removeChild(t)}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=(0,i.Z)(e,["title"]);t&&(document.title=t),Object.keys(n).forEach((function(e){var t=f(e);if(n[e])if(t)t.setAttribute("rel",e),t.setAttribute("href",n[e]);else{var a=document.createElement("link");a.rel=e,a.setAttribute("href",n[e]),document.getElementsByTagName("head")[0].appendChild(a)}else t&&t.parentNode.removeChild(t)}))},g=function(e){if(e)return e;var t=document.getElementsByTagName("meta");return s()(t).reduce((function(e,t){return(0,r.Z)((0,o.Z)({},e),(0,a.Z)({},l(t),t.getAttribute("content")))}),{title:document.title})},v=function(e){if(e)return e;var t=document.getElementsByTagName("link");return s()(t).reduce((function(e,t){return(0,r.Z)((0,o.Z)({},e),(0,a.Z)({},u(t),t.getAttribute("href")))}),{title:document.title})}}}]);