(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5675],{78566:function(e,t,i){"use strict";var n=i(14027),o=i(930),a=i(85696),r=i(7980);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,i=e.src,s=e.sizes,c=e.unoptimized,p=void 0!==c&&c,y=e.priority,z=void 0!==y&&y,E=e.loading,I=e.lazyRoot,R=void 0===I?null:I,_=e.lazyBoundary,L=e.className,q=e.quality,C=e.width,O=e.height,N=e.style,P=e.objectFit,M=e.objectPosition,W=e.onLoadingComplete,B=e.placeholder,D=void 0===B?"empty":B,U=e.blurDataURL,V=d(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]),F=u.useContext(h.ImageConfigContext),H=u.useMemo((function(){var e=b||F||g.imageConfigDefault,t=[].concat(r(e.deviceSizes),r(e.imageSizes)).sort((function(e,t){return e-t})),i=e.deviceSizes.sort((function(e,t){return e-t}));return l({},e,{allSizes:t,deviceSizes:i})}),[F]),Z=V,G=s?"responsive":"intrinsic";"layout"in Z&&(Z.layout&&(G=Z.layout),delete Z.layout);var T=k;if("loader"in Z){if(Z.loader){var J=Z.loader;T=function(e){e.config;var t=d(e,["config"]);return J(t)}}delete Z.loader}var Q="";if(function(e){return"object"===n(e)&&(S(e)||function(e){return void 0!==e.src}(e))}(i)){var K=S(i)?i.default:i;if(!K.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(K)));if(U=U||K.blurDataURL,Q=K.src,(!G||"fill"!==G)&&(O=O||K.height,C=C||K.width,!K.height||!K.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(K)))}var X=!z&&("lazy"===E||"undefined"===typeof E);((i="string"===typeof i?i:Q).startsWith("data:")||i.startsWith("blob:"))&&(p=!0,X=!1);v.has(i)&&(X=!1);H.unoptimized&&(p=!0);var Y,$=u.useState(!1),ee=a($,2),te=ee[0],ie=ee[1],ne=m.useIntersection({rootRef:R,rootMargin:_||"200px",disabled:!X}),oe=a(ne,3),ae=oe[0],re=oe[1],le=oe[2],se=!X||re,ce={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},de={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ue=!1,fe={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:M},ge=x(C),me=x(O),he=x(q);0;var pe=Object.assign({},N,fe),ye="blur"!==D||te?{}:{backgroundSize:P||"cover",backgroundPosition:M||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(U,'")')};if("fill"===G)ce.display="block",ce.position="absolute",ce.top=0,ce.left=0,ce.bottom=0,ce.right=0;else if("undefined"!==typeof ge&&"undefined"!==typeof me){var be=me/ge,ve=isNaN(be)?"100%":"".concat(100*be,"%");"responsive"===G?(ce.display="block",ce.position="relative",ue=!0,de.paddingTop=ve):"intrinsic"===G?(ce.display="inline-block",ce.position="relative",ce.maxWidth="100%",ue=!0,de.maxWidth="100%",Y="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(ge,"%27%20height=%27").concat(me,"%27/%3e")):"fixed"===G&&(ce.display="inline-block",ce.position="relative",ce.width=ge,ce.height=me)}else 0;var we={src:w,srcSet:void 0,sizes:void 0};se&&(we=A({config:H,src:i,unoptimized:p,layout:G,width:ge,quality:he,sizes:s,loader:T}));var ze=i;0;var Se="imagesrcset",Ae="imagesizes";Se="imageSrcSet",Ae="imageSizes";var xe=(o(t={},Se,we.srcSet),o(t,Ae,we.sizes),o(t,"crossOrigin",Z.crossOrigin),t),ke=u.default.useLayoutEffect,Ee=u.useRef(W),je=u.useRef(i);u.useEffect((function(){Ee.current=W}),[W]),ke((function(){je.current!==i&&(le(),je.current=i)}),[le,i]);var Ie=l({isLazy:X,imgAttributes:we,heightInt:me,widthInt:ge,qualityInt:he,layout:G,className:L,imgStyle:pe,blurStyle:ye,loading:E,config:H,unoptimized:p,placeholder:D,loader:T,srcString:ze,onLoadingCompleteRef:Ee,setBlurComplete:ie,setIntersection:ae,isVisible:se,noscriptSizes:s},Z);return u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{style:ce},ue?u.default.createElement("span",{style:de},Y?u.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Y}):null):null,u.default.createElement(j,Object.assign({},Ie))),z?u.default.createElement(f.default,null,u.default.createElement("link",Object.assign({key:"__nimg-"+we.src+we.srcSet+we.sizes,rel:"preload",as:"image",href:we.srcSet?void 0:we.src},xe))):null)};var l=i(6495).Z,s=i(92648).Z,c=i(91598).Z,d=i(17273).Z,u=c(i(67294)),f=s(i(72717)),g=i(48187),m=i(90639),h=i(89239),p=(i(99475),i(24969));function y(e){return"/"===e[0]?e.slice(1):e}var b={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},v=new Set,w=(new Map,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");var z=new Map([["default",function(e){var t=e.config,i=e.src,n=e.width,o=e.quality;return i.endsWith(".svg")&&!t.dangerouslyAllowSVG?i:"".concat(p.normalizePathTrailingSlash(t.path),"?url=").concat(encodeURIComponent(i),"&w=").concat(n,"&q=").concat(o||75)}],["imgix",function(e){var t=e.config,i=e.src,n=e.width,o=e.quality,a=new URL("".concat(t.path).concat(y(i))),r=a.searchParams;return r.set("auto",r.getAll("auto").join(",")||"format"),r.set("fit",r.get("fit")||"max"),r.set("w",r.get("w")||n.toString()),o&&r.set("q",o.toString()),a.href}],["cloudinary",function(e){var t=e.config,i=e.src,n=["f_auto","c_limit","w_"+e.width,"q_"+(e.quality||"auto")].join(",")+"/";return"".concat(t.path).concat(n).concat(y(i))}],["akamai",function(e){var t=e.config,i=e.src,n=e.width;return"".concat(t.path).concat(y(i),"?imwidth=").concat(n)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function S(e){return void 0!==e.default}function A(e){var t=e.config,i=e.src,n=e.unoptimized,o=e.layout,a=e.width,l=e.quality,s=e.sizes,c=e.loader;if(n)return{src:i,srcSet:void 0,sizes:void 0};var d=function(e,t,i,n){var o=e.deviceSizes,a=e.allSizes;if(n&&("fill"===i||"responsive"===i)){for(var l,s=/(^|\s)(1?\d?\d)vw/g,c=[];l=s.exec(n);l)c.push(parseInt(l[2]));if(c.length){var d=.01*Math.min.apply(Math,c);return{widths:a.filter((function(e){return e>=o[0]*d})),kind:"w"}}return{widths:a,kind:"w"}}return"number"!==typeof t||"fill"===i||"responsive"===i?{widths:o,kind:"w"}:{widths:r(new Set([t,2*t].map((function(e){return a.find((function(t){return t>=e}))||a[a.length-1]})))),kind:"x"}}(t,a,o,s),u=d.widths,f=d.kind,g=u.length-1;return{sizes:s||"w"!==f?s:"100vw",srcSet:u.map((function(e,n){return"".concat(c({config:t,src:i,quality:l,width:e})," ").concat("w"===f?e:n+1).concat(f)})).join(", "),src:c({config:t,src:i,quality:l,width:u[g]})}}function x(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function k(e){var t,i=(null==(t=e.config)?void 0:t.loader)||"default",n=z.get(i);if(n)return n(e);throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(g.VALID_LOADERS.join(", "),". Received: ").concat(i))}function E(e,t,i,n,o,a){e&&e.src!==w&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if(e.parentNode&&(v.add(t),"blur"===n&&a(!0),null==o?void 0:o.current)){var i=e.naturalWidth,r=e.naturalHeight;o.current({naturalWidth:i,naturalHeight:r})}})))}var j=function(e){var t=e.imgAttributes,i=(e.heightInt,e.widthInt),n=e.qualityInt,o=e.layout,a=e.className,r=e.imgStyle,s=e.blurStyle,c=e.isLazy,f=e.placeholder,g=e.loading,m=e.srcString,h=e.config,p=e.unoptimized,y=e.loader,b=e.onLoadingCompleteRef,v=e.setBlurComplete,w=e.setIntersection,z=e.onLoad,S=e.onError,x=(e.isVisible,e.noscriptSizes),k=d(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return g=c?"lazy":g,u.default.createElement(u.default.Fragment,null,u.default.createElement("img",Object.assign({},k,t,{decoding:"async","data-nimg":o,className:a,style:l({},r,s),ref:u.useCallback((function(e){w(e),(null==e?void 0:e.complete)&&E(e,m,0,f,b,v)}),[w,m,o,f,b,v]),onLoad:function(e){E(e.currentTarget,m,0,f,b,v),z&&z(e)},onError:function(e){"blur"===f&&v(!0),S&&S(e)}})),(c||"blur"===f)&&u.default.createElement("noscript",null,u.default.createElement("img",Object.assign({},k,A({config:h,src:m,unoptimized:p,layout:o,width:i,quality:n,sizes:x,loader:y}),{decoding:"async","data-nimg":o,style:r,className:a,loading:g}))))};("function"===typeof t.default||"object"===n(t.default)&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},930:function(e){e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.default=e.exports,e.exports.__esModule=!0},25675:function(e,t,i){e.exports=i(78566)}}]);