(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57482,57190],{17240:function(e,a,t){"use strict";t.r(a);var i=t(26042),n=t(69396),o=t(99534),r=t(85893),l=t(68333),d=t(9008),c=t.n(d),u=t(25675),s=t.n(u),f=t(67294);a.default=function(e){var a,t,d,u,v=e.alt,m=(e.akamai,e.width),_=void 0===m?l.ZP.Default_Image_Width:m,g=e.height,p=void 0===g?l.ZP.Default_Image_Height:g,h=e.imageType,A=e.post,b=e.preload,y=e.loadLazy,w=void 0!==y&&y,k=(0,o.Z)(e,["alt","akamai","width","height","imageType","post","preload","loadLazy"]),x=(null===A||void 0===A?void 0:A.article_media_maps)&&(null===A||void 0===A?void 0:A.article_media_maps.length)>0&&(null===A||void 0===A?void 0:A.article_media_maps.find((function(e){return 1==e.feature&&(null===e||void 0===e?void 0:e.akamai_image_type)})));if("undefined"!==typeof h);else if(A&&(null===A||void 0===A?void 0:A.akamai_image_type)&&""!=(null===A||void 0===A?void 0:A.akamai_image_type))h=null===A||void 0===A?void 0:A.akamai_image_type;else if(void 0!==x)h=null===x||void 0===x?void 0:x.akamai_image_type;else if((null===A||void 0===A?void 0:A.article_media_maps)&&(null===A||void 0===A?void 0:A.article_media_maps.length)>0&&(null===(a=null===A||void 0===A?void 0:A.article_media_maps[0])||void 0===a?void 0:a.akamai_image_type)&&""!==(null===(t=null===A||void 0===A?void 0:A.article_media_maps[0])||void 0===t?void 0:t.akamai_image_type)){var P;h=null===(P=null===A||void 0===A?void 0:A.article_media_maps[0])||void 0===P?void 0:P.akamai_image_type}else if((null===A||void 0===A?void 0:A.article_media_info)&&(null===A||void 0===A||null===(d=A.article_media_info)||void 0===d?void 0:d.akamai_image_type)){var C;h=null===A||void 0===A||null===(C=A.article_media_info)||void 0===C?void 0:C.akamai_image_type}else h=l.ZP.Default_Image_Type;var I=[40,100,328,446,685].reduce((function(e,a){return Math.abs(a-_)0&&(u=u.substring(a,u.length)),-1!=a&&(t=u,n=_,o=p,u="FeatureCrop"===(i=h)?l.ZP.mediaPath+"/"+t+"?im=".concat(i,",size=(").concat(n,",").concat(o,")"):"Resize"===i?l.ZP.mediaPath+"/"+t+"?im=".concat(i,",width=").concat(n,",height=").concat(o,",aspect=ignore"):"FitAndFill"===i?l.ZP.mediaPath+"/"+t+"?im=".concat(i,"=(").concat(n,",").concat(o,")"):"FaceCrop"===i?l.ZP.mediaPath+"/"+t+"?im=".concat(i,",size=(").concat(n,",").concat(o,")"):"normal"===i?l.ZP.mediaPath+"/"+t:void 0),u}return v="Image",u=E;var t,i,n,o}(k)),z=O[0],R=O[1];(0,f.useEffect)((function(){R(u)}),[u]);var F={};return w&&(F.loading="lazy"),(0,r.jsx)(r.Fragment,{children:"undefined"!==typeof b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c(),{children:[" ",(0,r.jsx)("link",{rel:"preload",href:z,as:"image"})]}),(0,r.jsx)("img",(0,n.Z)((0,i.Z)({},F,k),{src:z,alt:v,width:_,height:p,onError:function(e){var a=e.currentTarget;a.onerror=null,a.src=E}}))]}):(0,r.jsx)(s(),(0,n.Z)((0,i.Z)({},F,k),{src:z,alt:v,width:_,height:p,placeholder:"blur",blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk0AAAAC4AKhMfIC0AAAAASUVORK5CYII=",onError:function(e){var a=e.currentTarget;a.onerror=null,a.src=E}}))})}},57190:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t(94941).Z;Object.defineProperty(a,"__esModule",{value:!0}),a.useIntersection=function(e){var a=e.rootRef,t=e.rootMargin,c=e.disabled||!r,u=i(n.useState(!1),2),s=u[0],f=u[1],v=i(n.useState(null),2),m=v[0],_=v[1];n.useEffect((function(){if(r){if(c||s)return;if(m&&m.tagName){var e=function(e,a,t){var i=function(e){var a,t={root:e.root||null,margin:e.rootMargin||""},i=d.find((function(e){return e.root===t.root&&e.margin===t.margin}));if(i&&(a=l.get(i)))return a;var n=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var a=n.get(e.target),t=e.isIntersecting||e.intersectionRatio>0;a&&t&&a(t)}))}),e);return a={id:t,observer:o,elements:n},d.push(t),l.set(t,a),a}(t),n=i.id,o=i.observer,r=i.elements;return r.set(e,a),o.observe(e),function(){if(r.delete(e),o.unobserve(e),0===r.size){o.disconnect(),l.delete(n);var a=d.findIndex((function(e){return e.root===n.root&&e.margin===n.margin}));a>-1&&d.splice(a,1)}}}(m,(function(e){return e&&f(e)}),{root:null==a?void 0:a.current,rootMargin:t});return e}}else if(!s){var i=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(i)}}}),[m,c,t,a,s]);var g=n.useCallback((function(){f(!1)}),[]);return[_,s,g]};var n=t(67294),o=t(9311),r="function"===typeof IntersectionObserver,l=new Map,d=[];("function"===typeof a.default||"object"===typeof a.default&&null!==a.default)&&"undefined"===typeof a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),e.exports=a.default)},9008:function(e,a,t){e.exports=t(5443)}}]);