1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7e3],{24058:function(e,t,n){n.d(t,{L:function(){return a}});var r=n(47568),i=n(34051),o=n.n(i),a=function(){var e=(0,r.Z)(o().mark((function e(t,n){var r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.warn("No impression feedback URL provided"),e.abrupt("return",!1);case 3:if(n&&Array.isArray(n)&&0!==n.length){e.next=6;break}return console.warn("No ads to report in impression feedback"),e.abrupt("return",!1);case 6:return e.prev=6,e.next=9,fetch("/api/impression-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({impressionFeedbackUrl:t,shownAds:n})});case 9:return r=e.sent,e.next=12,r.json();case 12:if(i=e.sent,r.ok&&i.success){e.next=16;break}return console.error("Impression feedback failed:",i),e.abrupt("return",!1);case 16:return e.abrupt("return",!0);case 19:return e.prev=19,e.t0=e.catch(6),console.error("Error sending impression feedback:",e.t0),e.abrupt("return",!1);case 23:case"end":return e.stop()}}),e,null,[[6,19]])})));return function(t,n){return e.apply(this,arguments)}}()},15995:function(e,t,n){n.d(t,{i:function(){return a}});var r=n(47568),i=n(34051),o=n.n(i),a=function(){var e=(0,r.Z)(o().mark((function e(t,n){var r,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.warn("No visibility feedback URL provided"),e.abrupt("return",!1);case 3:if(n&&Array.isArray(n)&&0!==n.length){e.next=6;break}return console.warn("No impression tokens to report in visibility feedback"),e.abrupt("return",!1);case 6:return e.prev=6,r=n.join(","),i="".concat(t,"&tids=").concat(r),e.next=11,fetch(i,{method:"GET"});case 11:if((a=e.sent).ok){e.next=15;break}return console.error("Visibility feedback failed:",a.status),e.abrupt("return",!1);case 15:return e.abrupt("return",!0);case 18:return e.prev=18,e.t0=e.catch(6),console.error("Error sending visibility feedback:",e.t0),e.abrupt("return",!1);case 22:case"end":return e.stop()}}),e,null,[[6,18]])})));return function(t,n){return e.apply(this,arguments)}}()},17e3:function(e,t,n){n.r(t),n.d(t,{default:function(){return hi}});var r=n(26042),i=n(69396),o=n(10253),a=n(29815),s=n(82222),l=n(85893),c=n(45697),d=n.n(c),u=n(67294),p=n(53990),x=n(8920),m=n(72156),h=n(51990),f=n(47568),g=n(14924),b=n(34051),v=n.n(b),w=n(41120),y=n(20444),j=n(43533),k=n(31567),S=function(e){var t=e.src,n=e.alt,r=e.width,i=e.height,o=(0,u.useState)(t),a=o[0],s=o[1],c=(0,u.useState)((function(){return i>r}))[0];(0,u.useEffect)((function(){s(t)}),[t]);var d=(0,u.useRef)(null);return(0,l.jsx)("img",{className:c?"imgVertical":"imgHorizontal",onLoad:function(){d.current.height/d.current.width>.5||(d.current.style.width="100%")},ref:d,src:a,loading:"lazy",alt:n})};S.propTypes={alt:d().string.isRequired,src:d().string.isRequired,height:d().number.isRequired,width:d().number.isRequired};var C={loaderText:{background:"rgba(0,0,0,.05)",animation:"$pulse 2s infinite ease-in-out"},"@keyframes pulse":{"0%":{backgroundColor:"rgba(165, 165, 165, 0.1)"},"50%":{backgroundColor:"rgba(165, 165, 165, 0.3)"},"100%":{backgroundColor:"rgba(165, 165, 165, 0.1)"}}},N=(0,w.Z)((function(e){var t,n,o,a=e.colorsPalette,s=e.colors,l=e.isOcean,c=e.breakpoints,d=e.isDark,u=void 0===d||d;return(0,i.Z)((0,r.Z)({title:{fontSize:"30px",fontWeight:"normal",color:s.textColor20,lineHeight:1.2,margin:0},titleLoader:{width:200,height:30,marginBottom:15},subtitleLoader:{width:200,height:16}},C),{noImagesContainer:(t={display:"flex",borderBottom:"1px solid ".concat(l?a.lightTransparent:u?"rgba(255, 255, 255, 0.1)":"#dfe1e5"),padding:"15px 15px",alignItems:"center"},(0,g.Z)(t,"@media (max-width:1279px) and (min-width: 960px)",{gap:15}),(0,g.Z)(t,c.down("sm"),{paddingLeft:0,justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid #dfe1e5",minHeight:"unset"}),t),textContainer:{padding:15,borderBottom:"1px solid ".concat(l?a.lightTransparent:"#dfe1e5")},subtitle:(0,g.Z)({margin:"4px 0",lineHeight:"1.25",fontSize:"14px",color:s.textColor18},c.down("sm"),{fontSize:12}),imgLinkWrapper:(0,g.Z)({marginLeft:"auto"},c.down("sm"),{margin:"10px 15px 10px 0"}),resultImageLink:(n={marginLeft:"auto",display:"flex",alignItems:"center",maxHeight:160,maxWidth:230,"& img":(0,g.Z)({maxHeight:57},c.down("sm"),{height:"auto",borderRadius:6,"&.imgHorizontal":{width:"110px !important"},"&.imgVertical":{width:"75px !important"}})},(0,g.Z)(n,"@media (max-width:1279px) and (min-width: 960px)",{maxWidth:"none",marginLeft:"unset"}),(0,g.Z)(n,c.down("sm"),{display:"initial",maxHeight:"unset",maxWidth:"unset"}),n),noImg:(0,g.Z)({},c.down("sm"),{padding:"10px 10px 10px 15px"}),textWithImg:(o={maxWidth:"250px",wordBreak:"break-word"},(0,g.Z)(o,"@media (max-width:1279px) and (min-width: 960px)",{maxWidth:"none"}),(0,g.Z)(o,"@media (max-width:320px)",{maxWidth:195}),(0,g.Z)(o,c.down("sm"),{paddingLeft:15}),o)})})),Z=function(e){var t=e.title;return!e.thumbnail||t.length<20?24:t.length<30?25:t.length<40?20:t.length<50?18:16},R=function(e){var t=e.data,n=N();return(0,l.jsxs)("header",{style:t.thumbnail?{}:{paddingTop:"12px",height:"initial"},className:n.noImagesContainer,children:[(0,l.jsxs)("div",{className:t.thumbnail?n.textWithImg:n.noImg,children:[(0,l.jsx)("h3",{className:n.title,style:{fontSize:Z(t)},children:t.title}),t.description&&(0,l.jsx)("div",{className:n.subtitle,children:(0,l.jsx)("span",{children:t.description})})]}),t.thumbnail&&(0,l.jsx)("div",{className:"".concat(n.imgLinkWrapper," p-1.5 dark:bg-white rounded-lg"),children:(0,l.jsx)("a",{className:n.resultImageLink,href:t.content_urls.desktop.page,children:(0,l.jsx)(S,{width:t.thumbnail.width,height:t.thumbnail.height,src:t.thumbnail.source,alt:t.title})})})]})};R.propTypes={data:d().object.isRequired};R.Loader=function(){var e=N();return(0,l.jsx)("header",{className:e.noImagesContainer,children:(0,l.jsxs)("div",{className:e.textWithImg,children:[(0,l.jsx)("div",{className:"".concat(e.title," ").concat(e.titleLoader," ").concat(e.loaderText)}),(0,l.jsx)("div",{className:"".concat(e.subtitle," ").concat(e.loaderText),children:(0,l.jsx)("div",{className:e.subtitleLoader})})]})})};var T=R,L=n(32504),z=(0,w.Z)((function(e){var t=e.colorsPalette,n=e.colors,o=e.isOcean,a=e.breakpoints,s=e.isDark,l=void 0===s||s;return(0,i.Z)((0,r.Z)({description:{lineHeight:1.54,fontSize:"14px",margin:0,color:n.textColor18,fontWeight:o?300:"inherit","& a":{color:n.textColor43,"&:hover":{textDecoration:"underline"}}},descriptionLoader:{height:16,width:"100%",marginBottom:16}},C),{footer:(0,g.Z)({padding:"10px 15px",margin:0,fontSize:"11px",lineHeight:1.4,display:"flex",alignItems:"flex-end","&, & a":{color:n.textColor19},"& a:hover":{textDecoration:"underline"},"& span":{display:"block"}},a.down("xs"),{display:"none"}),container:(0,g.Z)({maxHeight:"1200px",borderRadius:8,paddingBottom:10,overflow:"auto",border:"1px solid ".concat(o?"none":l?"rgba(255, 255, 255, 0.1)":"#dfe1e5"),background:l?"transparent":n.backgroundColor6},a.down("xs"),{display:"none",boxShadow:"0 1px 6px rgba(32, 33, 36, 0.28)"}),collapsable:{overflow:"hidden",maxHeight:940,transition:"max-height 0.5s cubic-bezier(0, 1, 0, 1)","&.expanded":{maxHeight:3e3,transition:"max-height 1s ease-in-out"}},content:{padding:15},contentLoader:{height:220},infobox:{width:"100%",marginTop:0,fontSize:13,borderCollapse:"collapse",lineHeight:"1.2em","& ul":{padding:0,margin:0,listStyle:"none"},"& tr, & td, & th":{border:"none !important"},"& > tbody > tr > th, & > tbody > tr > td":{textAlign:"left",verticalAlign:"top",padding:"0.6em 15px 0.4em 15px !important","& + td":{paddingLeft:"0 !important"}},"& th":{fontWeight:"600 !important",'&[colspan="2"]':{fontWeight:"600 !important"}},"& *":{backgroundColor:"transparent !important",color:"".concat(n.textColor42," !important")},"& a":{color:"".concat(n.textColor43," !important"),"&:hover":{textDecoration:"underline"}},"& .mergedtoprow th, & .mergedtoprow td, & .header th":{borderTop:"1px solid ".concat(o?t.lightTransparent:"#dfe1e5"," !important"),paddingTop:"0.6em !important"},"& .header th":{fontWeight:"600 !important"},"& .thumbinner":{margin:"0 auto"},"& .trow":{display:"flex",flexDirection:"row",clear:"left",flexWrap:"wrap",width:"100%",boxSizing:"border-box"},"& tr":{display:"none"},"& tr:nth-child(1)":{display:"table-row"},"& tr:nth-child(2)":{display:"table-row"},"& tr:nth-child(3)":{display:"table-row"},"& tr:nth-child(4)":{display:"table-row"},"& tr:nth-child(5)":{display:"table-row"},"& tr:nth-child(6)":{display:"table-row"},"& tr:nth-child(7)":{display:"table-row"},"& tr:nth-child(8)":{display:"table-row"}}
1,showMoreButton:{color:n.textColor19,display:"block",background:"none !important",border:"none !important",borderTop:"1px solid ".concat(o?t.lightTransparent:"#dfe1e5"," !important"),width:"100%",fontSize:"14px",height:"41px",position:"relative",overflow:"hidden",textAlign:"left",paddingLeft:"60px",cursor:"pointer",textTransform:"none",borderRadius:0,fontFamily:"Arial","&.expanded svg":{transform:"rotate(180deg)"},"&:focus":{outline:"none"},"& svg":{color:"#e5e5e5",fontSize:"60px",position:"absolute",left:"0px",top:"-9px"}}})})),I=function(e){var t=e.classes;return(0,l.jsx)("div",{className:t.contentLoader,children:[0,1,2,3,4,5,6].map((function(e){return(0,l.jsx)("div",{className:"".concat(t.descriptionLoader," ").concat(t.loaderText)},e)}))})};I.propTypes={classes:d().object.isRequired};var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(" ").splice(0,60).join(" ");return t.length<e.length?"".concat(t,"..."):t},q=function(){var e=z();return(0,l.jsxs)("div",{children:[(0,l.jsx)(T.Loader,{classes:e}),(0,l.jsx)("div",{className:e.content,children:(0,l.jsx)(I,{classes:e})})]})},A=function(e){var t=e.value,n=(0,k.$)().t,r=z(),i=(0,u.useContext)(L.Mo).getPlatformType(),o=!["mobile","tablet"].includes(i),a=(0,u.useState)(!0),s=a[0],c=a[1],d=(0,u.useState)(!1);d[0],d[1],(0,u.useCallback)((function(){c((function(e){return!e}))}),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:r.container,children:(0,l.jsxs)("div",{className:"".concat(r.collapsable," expanded"),children:[(0,l.jsx)(T,{data:t}),(0,l.jsx)("div",{className:r.content,children:(0,l.jsxs)("p",{className:r.description,children:[D(t.extract)," ",(0,l.jsx)("a",{href:t.content_urls.desktop.page,children:"Wikipedia"}),(0,l.jsx)("br",{})]})}),(o||!o&&s)&&t&&t.infobox&&(0,l.jsx)("table",{className:r.infobox,children:(0,l.jsx)("tbody",{dangerouslySetInnerHTML:{__html:t.infobox}})})]})}),(0,l.jsxs)("footer",{className:r.footer,children:[t&&t.content_urls&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{children:[n("search.web.sidebar.dominant.dataFrom")," ",(0,l.jsx)("a",{href:t.content_urls.desktop.page,children:"Wikipedia"})]}),(0,l.jsxs)("span",{children:[n("search.web.sidebar.dominant.textUnder")," ",(0,l.jsx)("a",{href:"http://creativecommons.org/licenses/by-sa/3.0",children:"CC-BY-SA"})]})]}),(0,l.jsx)("div",{style:{marginLeft:"auto"},children:(0,l.jsx)("a",{href:"https://oceanhero.zendesk.com/hc/en-us/requests/new",children:n("search.web.sidebar.dominant.feedback")})})]})]})};A.propTypes={value:d().object.isRequired};var P=A,B=(0,w.Z)((function(e){var t=e.breakpoints;return{container:(0,g.Z)({position:"relative"},t.down("sm"),{top:"0 !important"})}})),E=function(){return null},F=function(e){var t=e.data,n=e.children,i=e.page,o=B(),a=(0,u.useState)({isLoading:!1,value:null}),s=a[0],c=a[1],d=(0,u.useState)(0),p=d[0],x=d[1],m=(0,u.useContext)(j.J6)[0];return(0,u.useEffect)((function(){x(0)}),[m.theme]),(0,u.useEffect)((function(){var e=document.querySelector("#ad-mainline-"+i),t=null,n=function(){t=setTimeout((function(){var e=document.querySelector("#ad-mainline-".concat(i," iframe"));if(e&&e.contentDocument){var t=e.contentDocument.querySelector(".productAdsContainer");x(e.scrollHeight-(t?t.offsetHeight+55:0))}else x(0)}),0)};return n(),e&&e.addEventListener("adsRendered",n),function(){t&&clearTimeout(t),e&&e.removeEventListener("adsRendered",n)}}),[t,i]),(0,u.useEffect)((function(){if(t&&!(t.pagination&&t.pagination.currentPageNumber>=2)){var e=new URLSearchParams({q:t.url.split("/").pop(),lng:t.language});c({isLoading:!0});var n=new AbortController;return fetch("/api/entity?".concat(e),{signal:n.signal}).then(function(){var e=(0,f.Z)(v().mark((function e(t){var n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={isLoading:!1,value:null},!t.ok){e.next=6;break}return e.next=4,t.json();case 4:r=e.sent,n.value=r.value;case 6:c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){"AbortError"!==e.name&&(c({isLoading:!1}),console.error(e))})),function(){n.abort()}}}
1),[t]),(0,l.jsx)(y.SV,{FallbackComponent:E,children:(0,l.jsxs)("div",{className:o.container,style:{top:-p},children:[s.isLoading&&1===i&&(0,l.jsx)(q,{}),s.value&&1===i&&(0,l.jsx)(P,(0,r.Z)({},s)),n]})})};F.propTypes={data:d().object,children:d().node,page:d().number};var W=F,O=n(30546),U=n(5152),M=n.n(U),H=(0,w.Z)((function(e){var t,n=e.colors,r=e.isOcean,i=e.isDark,o=e.breakpoints;return{title:(0,g.Z)({textDecoration:"none",position:"relative",fontSize:"20px",lineHeight:"1.3",fontWeight:400,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",maxWidth:"100%",overflow:"hidden","&:hover":{textDecoration:"underline"},paddingTop:"2px",marginBottom:"3px",color:n.textColor9},o.down("xs"),{fontSize:"20px",lineHeight:"20px",paddingBottom:8,color:r||i?n.textColor9:"#1558d6",textOverflow:"inherit",whiteSpace:"inherit"}),description:(0,g.Z)({color:n.textColor10,margin:0,fontSize:14,textDecoration:"none",lineHeight:1.54,wordWrap:"break-word",display:"-webkit-box","-webkit-box-orient":"vertical",overflow:"hidden","& p":{margin:0},"& b":{color:n.textColor10}},o.down("xs"),{color:r||i?n.textColor10:"#3C4043",minHeight:"unset !important","-webkit-line-clamp":"3 !important"}),sourceAddress:(t={display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",fontSize:"0.875rem",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%",overflow:"hidden",lineHeight:"1.57"},(0,g.Z)(t,o.down("xs"),{marginBottom:"12px"}),(0,g.Z)(t,"color",n.textColor25),t),sourceAddressDetails:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",fontSize:"14px","& cite":{fontSize:"12px",lineHeight:"1.2",verticalAlign:"baseline",color:n.textColor25,opacity:.9}},link:{display:"inline-flex",flexDirection:"column",width:"100%"},sourceFaviconWrapper:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",marginRight:"9px",backgroundColor:"#f1f3f4",borderRadius:"50%",width:"28px",height:"28px",flexShrink:0},sourceFavicon:{width:"18px",height:"18px",objectFit:"contain",verticalAlign:"middle",pointerEvents:"none"}}})),_=n(11476),V=n(56251),$=n(11163),G=(0,w.Z)((function(e){return{container:(0,g.Z)({paddingLeft:22,display:"flex",flexDirection:"column"},e.breakpoints.down("xs"),{paddingLeft:0,marginTop:10})}})),Q=(0,_.Z)("div")({padding:"11px 6px 3px 5px","@media (max-width: 767px)":{padding:"8px 0px ",borderTop:"1px solid #DFE1E5",display:"flex",justifyContent:"space-between",alignItems:"center"}}),Y=(0,_.Z)("div")({width:"80%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:4,"@media (max-width: 767px)":{"& > a":{padding:0,margin:0}}}),J=(0,_.Z)("a")({lineHeight:1}),X=(0,_.Z)("p")({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":1,overflow:"hidden",width:"100%","@media (max-width: 767px)":{display:"none"}}),K=function(e){var t=e.data,n=e.domain,r=e.q,i=H(),a=G(),s=(0,o.Z)((0,k.$)(),1)[0];r=(0,$.useRouter)().query.q||"";return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:a.container,children:[t.map((function(e){return(0,l.jsxs)(Q,{className:"dark:!border-white/10",children:[(0,l.jsxs)(Y,{children:[(0,l.jsx)(J,{className:i.title,href:e.sponsoredUrl||e.url,children:e.name}),(0,l.jsx)(X,{className:i.description,children:e.snippet})]}),(0,l.jsx)("button",{className:"md:hidden rounded-full dark:bg-[var(--backgroundColor13)] shrink-0 flex justify-center items-center h-9 w-9 border-0 bg-gray-100",children:(0,l.jsx)(V.Z,{className:"text-gray-500"})})]},e.url)})),(0,l.jsxs)("a",{href:"/web?".concat(new URLSearchParams({q:"".concat(r," site:").concat(n)}).toString()),className:"text-sm pt-2 pl-1 hover:underline ocean:text-white hidden md:block dark:text-[var(--textColor45)]",children:[s("search.web.deepLinks.moreResults")," ",n," ","\xbb"]})]})})};K.propTypes={data:d().arrayOf(d().object).isRequired};var ee=K,te=n(99534),ne="/_next/static/media/ic-material-public-dark.0d5e02fb.svg",re="/_next/static/media/ic-material-public-light.edb837f6.svg",ie=((0,_.Z)("section")({width:"100%",marginBottom:"40px"}),(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints,r=e.isOcean;return{sectionContainer:(0,g.Z)({position:"relative",width:"100%",marginBottom:"40px"},n.down("xs"),{backgroundColor:t.backgroundColor9,margin:"0 0 10px 0",padding:"0 15px",boxSizing:"border-box"}),carouselContainer:(0,g.Z)({},n.down("sm"),{margin:"0",whiteSpace:"nowrap",padding:14,width:"100%",boxSizing:"border-box"}),sectionHeader:(0,g.Z)({},n.down("xs"),{marginBottom:"8px",marginTop:"6px"}),sectionTitle:(0,g.Z)({fontSize:"20px",fontWeight:"normal",lineHeight:1.3,margin:0,padding:"0 0px 12px 0px",color:t.textColor3},n.down("xs"),{color:t.textColor13,fontSize:"18px",fontWeight:"500",lineHeight:"12px",letterSpacing:"0.3px",padding:"20px 16px",paddingBottom:"0"}),sectionFooter:(0,g.Z)({display:"block",textAlign:"center",color:"#1967D2",fontSize:"14px",padding:"12px 0",textTransform:"initial"},n.down("sm"),{color:r?"#7DCEFF":"#1967D2"})}}))),oe=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints,r=e.isOcean;return{card:(0,g.Z)({padding:"0 4px",position:"relative"},n.down("xs"),{padding:"0 8px 0 0","&:last-of-type":{paddingRight:"24px"}}),inner:(0,g.Z)({width:"208px",border:r?"none":"1px solid #dfe1e5",borderRadius:"8px",overflow:"hidden"},n.down("xs"),{width:"232px",border:r?"none":"1px solid #dfe1e5"}),innerSmall:{},thumbnail:(0,g.Z)({width:"100%",height:115,backgroundColor:"#2e2f68",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:function(e){var t=e.src;
1return"url(".concat(t,")")},display:"flex",alignItems:"center",justifyContent:"center",position:"relative","& svg":{color:"#fff",opacity:.8,fontSize:"48px"}},n.down("xs"),{height:130}),content:{padding:"16px 16px 11px 16px",background:t.backgroundColor9},title:(0,g.Z)({height:"6em","-webkit-line-clamp":5,display:"-webkit-box",overflow:"hidden","-webkit-box-orient":"vertical","white-space":"normal",color:t.textColor9,"&:hover":{textDecoration:"underline"}},n.down("xs"),{fontSize:16,lineHeight:"1.25em","-webkit-line-clamp":3,height:"3.75em",marginBottom:"10px",color:t.textColor32,"&:visited":{color:t.textColor35}}),cite:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",lineHeight:1.43,padding:0,margin:0,color:t.textColor2},note:{lineHeight:1.33,color:t.textColor1,fontSize:"12px"}}})),ae=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints;return{moreLink:(0,g.Z)({alignItems:"center",display:"inline-flex",fontSize:"16px",lineHeight:1.43,color:t.textColor14},n.down("xs"),{fontSize:"13px",paddingBottom:"12px",paddingLeft:"12px",margin:0}),arrowContainer:{display:"flex",marginRight:"8px"},moreLinkSlider:{width:"140px",paddingLeft:"30px",paddingRight:"calc(30px + 32px)",display:"flex",flexFlow:"column",justifyContent:"center","& span:nth-child(2)":{color:"rgba(0,0,0,.54)",fontSize:"14px"}}}})),se=function(e){var t=e.src,n=(0,te.Z)(e,["src"]),i=(0,x.Z)();return(0,l.jsx)(y.Ei,(0,r.Z)({src:t,fallback:i.isOcean?re:ne},n))};se.propTypes={src:d().string.isRequired};var le=n(42878),ce=(0,w.Z)((function(e){var t=e.colors,n=e.isOcean,r=e.isDark,i=e.breakpoints;return{card:(0,g.Z)({marginTop:0,width:"95%",marginBottom:"30px","& a:hover h3":{textDecoration:"underline"},"& a:visited, & a:visited h3":{color:t.textColor35}},i.down("xs"),{backgroundColor:n?"rgba(255, 255, 255, 0.14)":r?"rgb(32 32 32)":"#fff",margin:"1px 0 10px 0",padding:"12px 16px",width:"unset"}),thumbnail:(0,g.Z)({display:"block",float:"right",padding:"4px 16px 4px 0",margin:"0 -16px 0 16px","& img":{borderRadius:"8px",height:104,width:104}},i.up("sm"),{display:"none"})}})),de=function(e){var t=e.data,n=e.q,r=e.sendClickPing,i=H(),o=i.title,a=i.sourceAddress,s=i.sourceAddressDetails,c=i.description,d=i.link,p=i.sourceFavicon,x=i.sourceFaviconWrapper,m=ce(),h=m.card,f=(m.thumbnail,(0,le.dD)(),(0,u.useMemo)((function(){var e=t.url.split("://")[1].split("/").filter(Boolean),n=e.join(" \u203a "),r=e[0].split(".").length>2?e[0].split(".").slice(1).join("."):e[0];return{urlWithoutProtocol:e,displayUrl:n,domain:r}}),[t.url])),g=f.urlWithoutProtocol,b=f.displayUrl,v=f.domain;return(0,l.jsxs)("div",{className:h,children:[(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:(null===t||void 0===t?void 0:t.sponsoredUrl)||t.url,className:d,onClick:function(e){if(r&&t.urlPingSuffix){e.preventDefault();var n=(null===t||void 0===t?void 0:t.sponsoredUrl)||t.url;r(t.urlPingSuffix),setTimeout((function(){window.location.href=n}),100)}},children:[(0,l.jsxs)("div",{className:a,children:[(0,l.jsx)("span",{className:"".concat(x," "),children:(0,l.jsx)(se,{className:p,src:"https://www.google.com/s2/favicons?domain=".concat(g[0],"&sz=256"),alt:t.name,loading:"lazy"})}),(0,l.jsxs)("div",{className:s,children:[(0,l.jsx)("span",{children:v}),(0,l.jsx)("cite",{children:b})]})]}),(0,l.jsx)("h3",{className:"".concat(o," !mt-1"),children:t.name})]})}),(0,l.jsx)("div",{className:"flex items-start",children:(0,l.jsx)("div",{className:c,style:{WebkitLineClamp:2},children:t.snippet})}),t.deepLinks&&(0,l.jsx)(ee,{domain:v,q:n,data:t.deepLinks.slice(0,4)})]},t.url)};de.propTypes={data:d().object.isRequired,q:d().string,sendClickPing:d().func};var ue=de,pe=n(59637),xe=n(65772),me=(0,w.Z)((function(e){var t=e.colors,n=e.isOcean;return{container:{background:t.backgroundColor6,border:n?"none":"1px solid #dfe1e5"},title:{color:t.textColor5},details:{color:t.textColor7},direction:{"&, &:focus, &:active":{color:t.textColor8}}}})),he=(0,_.Z)("section")({borderRadius:8,overflow:"hidden",marginBottom:"37px",width:"calc(100% + 30px)",marginLeft:-12}),fe=(0,_.Z)("a")({width:"100%",cursor:"pointer",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"328px",display:"block"}),ge=(0,_.Z)("footer")({padding:"14px 16px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),be=(0,_.Z)("h3")({fontSize:18,fontWeight:"normal",lineHeight:1,margin:0}
1),ve=(0,_.Z)("span")({display:"inline-block",fontSize:"medium",paddingTop:8}),we=(0,_.Z)("a")({display:"flex",flexDirection:"column",alignItems:"center",fontSize:"12px","&:hover":{textDecoration:"underline"},"& svg":{fontSize:"24px",display:"inline-block",marginBottom:"6px"}}),ye=function(e){var t=e.data,n=me(),r=(0,k.$)().t;if(!t)return null;var i=(0,pe.Z)(t.label.split(",")),o=i[0],a=i.slice(1);return(0,l.jsxs)(he,{className:n.container,children:[(0,l.jsx)(fe,{prefetch:!1,href:"https://maps.google.com/?".concat(new URLSearchParams({q:t.label}).toString()),style:{backgroundImage:"url(".concat(t.url,")")}}),(0,l.jsxs)(ge,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(be,{className:n.title,children:o}),(0,l.jsx)(ve,{className:n.details,children:a.join(",")})]}),(0,l.jsxs)(we,{className:n.direction,href:"https://maps.google.com?".concat(new URLSearchParams({daddr:t.label,saddr:"Current Location"}).toString()),children:[(0,l.jsx)(xe.Z,{}),r("search.web.mapData.directions")]})]})]})};ye.propTypes={data:d().object.isRequired};var je=ye,ke=n(30120),Se=n(41664),Ce=n.n(Se),Ne=n(70231),Ze=n(89875),Re=n(66735),Te=n(82774),Le=n(77779),ze=(0,_.Z)("div")({position:"relative"}),Ie=(0,w.Z)((function(){return{slidesContainer:{width:"100%",overflowX:"auto",overflowY:"hidden",position:"relative",whiteSpace:"nowrap",scrollBehavior:"smooth","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none","scrollbar-width":"none"}}})),De=(0,_.Z)("button")({cursor:"pointer",height:"36px",width:"36px",boxShadow:"0 0 0 1px rgba(0,0,0,0.04), 0 4px 8px 0 rgba(0,0,0,0.20)",outline:"none",zIndex:1,position:"absolute",top:"50%",transform:"translateY(-50%)",border:"1px solid #dfe1e5",fontSize:"13px",borderRadius:"50%",display:"flex",alignContent:"center",justifyContent:"center",alignItems:"center",opacity:function(e){return e.hidden?0:.9},pointerEvents:function(e){return e.hidden?"none":"all"},left:function(e){return"left"===e.position?-17:void 0},right:function(e){return"right"===e.position?-17:void 0},"&:hover":{opacity:1},"&:not(:hover) svg":{color:"#757575"},"&, & svg":{transition:"opacity 0.5s,visibility 0.5s, color 0.5s"}}),qe=function(e){var t=e.children,n=e.onChange,r=(0,Le.Z)(),i=r.ref,o=r.handleScroll,a=r.scrollBy,s=r.state,c=(0,u.useCallback)((function(){return a(-500)}),[a]),d=(0,u.useCallback)((function(){return a(500)}),[a]),p=(0,Te.S)(),x=Ie().slidesContainer;return(0,u.useEffect)((function(){return n(s)}),[n,s]),(0,l.jsxs)(ze,{children:[(0,l.jsx)(De,{position:"left",hidden:s.isLeft,onClick:c,className:p.mobileHidden,children:(0,l.jsx)(Ze.Z,{})}),(0,l.jsx)("div",{ref:i,onScroll:o,className:x,children:t}),(0,l.jsx)(De,{position:"right",onClick:d,hidden:s.isRight,className:p.mobileHidden,children:(0,l.jsx)(Re.Z,{})})]})};qe.defaultProps={onChange:function(){}},qe.propTypes={children:d().node.isRequired,onChange:d().func};var Ae=n(86072),Pe=(0,w.Z)((function(e){return{scrollerContainer:(0,g.Z)({width:"100%"},e.breakpoints.down("sm"),{margin:"0",whiteSpace:"nowrap",padding:14,width:"100%",boxSizing:"border-box"})}})),Be=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints,r=e.isOcean;return{media:{color:"#1967D2","&:visited":{color:"#4B11A8"}},mediaContainer:{display:"flex",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid rgba(0, 0, 0, 0.1)"},body:{width:"calc(100% - 92px - 20px)"},provider:(0,g.Z)({color:"#000",fontSize:"12px",lineHeight:"16px",textTransform:"uppercase",margin:0},n.down("sm"),{color:r?t.textColor1:"#000"}),title:(0,g.Z)({display:"-webkit-box",fontSize:"16px",lineHeight:"20px",margin:"8px 0",overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical"},n.down("sm"),{color:r?t.textColor9:"inherit"}),date:(0,g.Z)({color:"#5F6368",fontSize:"12px",lineHeight:"16px",margin:0},n.down("sm"),{color:r?t.textColor1:"#5F6368"}),photo:{width:"92px",height:"92px",backgroundColor:"#2e2f68",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundImage:function(e){var t=e.src;return"url(".concat(t,")")},display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:"8px",marginLeft:"20px"}}})),Ee=function(e){return e.image?e.image.contentUrl:e.provider[0].image?e.provider[0].image.thumbnail.contentUrl:null},Fe=((0,_.Z)("div")({display:"flex"}),function(e){var t=e.data,n=(0,k.$)().t,r=(Pe(),ae()),i=(r.moreLink,r.arrowContainer,oe(),Be(),(0,$.useRouter)()),o=ie(),a=o.sectionContainer,s=o.sectionTitle,c=(o.sectionFooter,o.sectionHeader),d=function(e,t){return(0,l.jsxs)("a",{className:"flex flex-col group gap-2 flex-1 py-3 ".concat("left"===t?"pr-3":"pl-3"),href:e.url,children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-4 ",children:[(0,l.jsxs)("div",{className:"flex-col flex justify-start",children:[(0,l.jsxs)("div",{className:"flex justify-start items-center gap-2",children:[(0,l.jsx)("img",{className:"w-4 h-4 object-contain",src:"https://www.google.com/s2/favicons?sz=256&domain_url=".concat(e.url)}),(0,l.jsxs)("span",{className:"text-xs line-clamp-1 text-black ocean:text-white/80 dark:text-[var(--textColor10)]",children:[e.provider[0].name," "]})]}),(0,l.jsx)("p",{className:"line-clamp-3 leading-6 text-link dark:text-[var(--textColor9)] m-0 mt-2 group-hover:underline ocean:text-white",children:e.name})]}),(0,l.jsx)("img",{className:"w-[92px] h-[92px] object-cover rounded-xl",src:Ee(e)})]}),(0,l.jsx)("span",{className:"text-sm text-gray-500 ocean:text-white/80 dark:text-white/50",children:ke.ou.fromISO(e.datePublished).toRelative()})]},e.url)};return(0,l.jsxs)("section",{className:a,children:[(0,l.jsxs)("div",{className:"flex items-center justify-start gap-3",children:[(0,l.jsx)(Ne.kpq,{className:"text-gray-500 mb-2 hidden md:block ocean:text-white"}),(0,l.jsx)("div",{className:"".concat(c),children:(0,l.jsx)("h3",{className:"".concat(s," !pl-0"),children:n("search.web.news.title")})})]}),(0,l.jsx)("div",{className:"md:hidden flex h-[290px] items-start justify-start gap-3 px-0 pb-4 pt-3 overflow-scroll",children:t.value.map((function(e){return function(e){var t,n;return(0,l.jsxs)("a",{className:"flex flex-col h-full w-[234px] shrink-0 rounded-2xl overflow-hidden bg-gray-100/80 hover:bg-gray-200 active:bg-gray-200 transition-colors duration-200 dark:bg-[var(--backgroundColor13)]",children:[(0,l.jsx)("img",{className:"w-[234px] h-[132px] object-cover",src:Ee(e)}),(0,l.jsxs)("div",{className:"p-2.5 flex flex-col gap-2 justify-between flex-1",children:[(0,l.jsx)("p",{className:"text-base m-0 leading-5 line-clamp-4 font-[500] dark:text-[var(--textColor9)] text-[#1558d6]",children:e.name}),(0,l.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2",children:[(0,l.jsx)("span",{className:"text-gray-700 text-xs dar
1k:text-[var(--textColor10)]",children:ke.ou.fromISO(e.datePublished).toRelative()}),(0,l.jsx)("div",{className:"flex items-center justify-start gap-2 dark:text-[var(--textColor10)]",children:(null===e||void 0===e||null===(t=e.provider)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.name)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:"w-4 h-4 object-contain",src:"https://www.google.com/s2/favicons?sz=256&domain_url=".concat(e.url)}),(0,l.jsxs)("span",{className:"text-xs text-gray-900 dark:text-[var(--textColor10)]",children:[e.provider[0].name," "]})]})})]})]})]},e.url)}(e)}))}),(0,l.jsxs)("div",{className:"hidden md:block",children:[(0,l.jsx)("hr",{className:"border-gray-200 m-0 flex-1 border-0 border-b-[1px] dark:border-gray-700"}),(0,l.jsxs)("div",{className:"flex flex-row gap-0",children:[(0,l.jsxs)("div",{className:"flex flex-col flex-1",children:[t.value.slice(0,1).map((function(e){return d(e,"left")})),(0,l.jsx)("hr",{className:"border-gray-200 m-0 border-0 border-b-[1px] mr-2 dark:border-gray-700"}),t.value.slice(1,2).map((function(e){return d(e,"left")}))]}),(0,l.jsx)("hr",{className:"border-gray-200 m-0 my-2 border-0 border-r-[1px] dark:border-gray-700"}),(0,l.jsxs)("div",{className:"flex flex-col flex-1",children:[t.value.slice(2,3).map((function(e){return d(e,"right")})),(0,l.jsx)("hr",{className:"border-gray-200 m-0 border-0 border-b-[1px] ml-2 dark:border-gray-700"}),t.value.slice(3,4).map((function(e){return d(e,"right")}))]})]}),(0,l.jsxs)("div",{className:"w-full justify-center relative items-center flex mt-2",children:[(0,l.jsx)(Ce(),{href:"/news?".concat(i.asPath.split("?")[1]),prefetch:!1,children:(0,l.jsxs)("div",{className:"w-72 py-2 dark:bg-[var(--backgroundColor13)] z-10 dark:text-[var(--textColor7)] bg-[#f1f3f4] text-sm transition-colors flex border-none gap-2 items-center cursor-pointer justify-center rounded-full hover:bg-[#cdcdcd]",children:[n("search.web.news.more"),(0,l.jsx)(Ae.Z,{className:"text-[#5e5e5e] dark:text-[var(--textColor10)]",style:{fontSize:20}})]})}),(0,l.jsx)("span",{className:"h-[2px] absolute w-full bg-gray-100 z-1 dark:bg-[var(--backgroundColor13)]"})]})]})]})});Fe.propTypes={data:d().object.isRequired};var We=Fe,Oe=n(51490),Ue=((0,w.Z)((function(e){var t,n,r=e.breakpoints,i=e.isOcean,o=e.colorsPalette;return{container:(0,g.Z)({width:"100%"},r.down("sm"),{width:"calc(100% + 16px)",margin:"0",whiteSpace:"nowrap",marginRight:"-8px",marginLeft:"-8px"}),innerContainer:(0,g.Z)({display:"flex",whiteSpace:"nowrap",height:130},r.down("xs"),{height:144}),picture:(0,g.Z)({height:"100%",background:"rgb(200,194,168)"},r.down("xs"),{height:144}),imageWrapperLink:(t={display:"inline-block",position:"relative",marginRight:8,borderRadius:4,border:i?"none":"1px solid #dfe1e5",cursor:"pointer",boxSizing:"border-box",height:"100%"},(0,g.Z)(t,r.down("xs"),{boxShadow:"0 1px 6px rgba(32, 33, 36, 0.28)",marginRight:4,border:"none"}),(0,g.Z)(t,"&:hover",{"& $zoomOverlay":{opacity:1}}),t),zoomOverlay:{position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0,background:o.lightTransparent,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","& svg":{color:"white",fontSize:60}},headerAction:(n={},(0,g.Z)(n,r.up("sm"),{display:"none"}),(0,g.Z)(n,"position","absolute"),(0,g.Z)(n,"right","16px"),(0,g.Z)(n,"top","20px"),(0,g.Z)(n,"lineHeight","12px"),(0,g.Z)(n,"color","#1967D2"),(0,g.Z)(n,"fontSize","14px"),(0,g.Z)(n,"fontWeight","500"),(0,g.Z)(n,"opacity",1),(0,g.Z)(n,"visibility","visible"),(0,g.Z)(n,"transition","visibility 300ms,opacity 300ms"),(0,g.Z)(n,"&:visited",{color:"#4B11A8"}),(0,g.Z)(n,"&.hidden",{opacity:0,visibility:"hidden"}),n),elipsis:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},favicon:{position:"absolute",top:10,left:10,width:16,height:16,background:o.lightStrongTransparent},viewAll:{float:"left",height:"100%",padding:" 0 46px",display:"flex",flexDirection:"column",justifyContent:"center","&:hover":{textDecoration:"underline"}},viewAllIcon:{backgroundColor:"#fff",color:"#4285f4",width:"56px",height:"56px",borderRadius:"50%",position:"relative",border:"1px solid #dfe1e5",alignItems:"center",justifyContent:"center",display:"flex"},viewAllLabel:{color:"rgba(0,0,0,.54)",fontSize:"14px",marginTop:"12px",opacity:1,textAlign:"center",transition:"visibility 300ms,opacity 300ms",wordWrap:"break-word",visibility:"visible","&.hidden":{opacity:0,visibility:"hidden"}}}})),function(e){return new URL(e).hostname.split("www.").pop()}),Me=function(e){var t=e.photos,n=(e.to,(0,k.$)().t),r=(0,u.useState)(!1),i=r[0],o=r[1],a=(0,$.useRouter)(),s=function(e,t){return(0,l.jsx)(Ce(),{href:e.to,children:(0,l.jsxs)("a",{className:"flex flex-col w-full relative ocean:text-white dark:text-[var(--textColor10)]",children:[(0,l.jsx)("img",{src:e.src,alt:e.title,className:"rounded-xl h-[160px] md:h-[192px] object-cover"}),(0,l.jsx)("div",{className:"absolute top-0 left-0 h-[160px] md:h-[192px] rounded-xl bg-black/5 w-full dark:bg-white/5"}),(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-800 ocean:text-white line-clamp-1 dark:text-[var(--textColor10)]",children:e.value.name}),(0,l.jsxs)("div",{className:"mt-0.5 text-xs text-gray-800 ocean:text-white/80 flex items-center justify-start dark:text-[var(--textColor10)]",children:[(0,l.jsx)("img",{src:(n=e.value.hostPageUrl,"https://www.google.com/s2/favicons?domain=".concat(new
1URL(n).hostname)),className:"w-3 h-3 inline-block mr-1.5"}),Ue(e.value.hostPageUrl)]})]},e.url)},t);var n};return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"gap-5 grid-cols-3 hidden md:grid",children:t.slice(0,i?t.length>9?9:t.length:3).map(s)}),(0,l.jsx)("div",{className:"gap-5 grid-cols-2 grid md:hidden",children:t.slice(0,i?t.length>8?8:t.length:4).map(s)}),(0,l.jsxs)("div",{className:"w-full justify-center relative items-center flex py-3 md:mt-4 md:py-0",children:[(0,l.jsxs)("button",{onClick:function(){t.length>3&&!i?o((function(e){return!e})):(t.length,a.push("/images?q="+a.query.q))},className:"w-full z-[1] md:w-72 py-2.5 bg-[#f1f3f4] dark:text-[var(--textColor7)] dark:bg-[var(--backgroundColor13)] ocean:bg-white text-sm transition-colors flex border-none gap-2 items-center cursor-pointer justify-center rounded-full hover:bg-[#cdcdcd]",children:[t.length>3&&!i?n("search.web.images.more"):n("search.web.images.viewAll"),t.length>3&&!i?(0,l.jsx)(Oe.Z,{className:"text-[#5e5e5e]",style:{fontSize:20}}):(0,l.jsx)(Ae.Z,{className:"text-[#5e5e5e] dark:text-[var(--textColor10)]",style:{fontSize:20}})]}),(0,l.jsx)("span",{className:"h-[2px] z-[0] absolute hidden md:block w-full bg-gray-100 dark:bg-white/10"})]})]})};Me.defaultProps={to:""},Me.propTypes={photos:d().arrayOf(d().object).isRequired,to:d().string};var He=Me,_e=function(e){var t=e.data,n=e.router,o=(e.index,(0,k.$)().t),a=(0,u.useMemo)((function(){return"?".concat(n.asPath.split("?")[1]||"")}),[n.asPath]),s=(0,u.useMemo)((function(){return t.value.map((function(e){return(0,i.Z)((0,r.Z)({},e.thumbnail),{src:e.thumbnailUrl,to:"/images".concat(a,"&id=").concat(new URLSearchParams(e.webSearchUrl).get("id")),value:e})}))}),[t.value,a]),c=ie().sectionContainer;return(0,l.jsx)("section",{className:"".concat(c),children:(0,l.jsxs)("div",{style:{marginBottom:"4px"},children:[(0,l.jsx)("h3",{className:"md:text-2xl py-4 m-0 font-normal text-xl ocean:text-white dark:text-white",children:o("search.web.images.title")}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(He,{photos:s,to:"/images".concat(a)})})]})})};_e.propTypes={data:d().object.isRequired,router:d().object.isRequired,index:d().number.isRequired};var Ve=_e,$e=n(13908),Ge=n(55906),Qe=n(98055),Ye=function(e){var t=e.data,n=(e.index,(0,k.$)().t),r=(0,$.useRouter)(),i=ie(),o=i.sectionContainer,a=i.sectionTitle,s=i.sectionHeader;return(0,l.jsxs)("section",{className:o,children:[(0,l.jsxs)("div",{className:"flex items-center justify-start gap-3",children:[(0,l.jsx)($e.Z,{className:"text-[#5e5e5e] ocean:text-white !hidden md:!block pb-0 mt-1 -mr-1",style:{fontSize:24}}),(0,l.jsx)("div",{className:s,children:(0,l.jsx)("h3",{className:"".concat(a," !pt-4 !pl-1"),children:n("search.web.videos.title")})})]}),(0,l.jsx)("div",{className:"",children:t.value.slice(0,3).map((function(e,t){var n,r,i;return(0,l.jsxs)("a",{href:e.contentUrl,className:"flex flex-row items-start justify-start gap-4 py-4 last:pb-0 border-solid border-0 border-t-[1px] border-gray-200 hover:border-gray-300 transition-colors duration-200 first:border-t-[0px] md:first:border-t-[1px] dark:border-[var(--textColor44)] group ",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("img",{src:e.thumbnailUrl,className:"object-cover md:h-[5.2rem] md:w-[9.5rem] w-[135px] h-[76px] rounded-lg"}),(0,l.jsx)(Ge.Z,{className:"text-white/90 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",style:{fontSize:36}}),(0,l.jsx)("span",{className:"text-xs rounded-full px-2 py-1 bg-black/80 text-white absolute bottom-2 left-2",children:(0,Qe.LU)(e.duration)})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start h-[76px] md:h-[5rem] py-0.5 box-border",children:[(0,l.jsx)("p",{className:"m-0 group-hover:underline text-link mb-1 md:mb-3 text-gray-800 ocean:text-white line-clamp-1 dark:text-[var(--textColor45)]",children:e.name}),(0,l.jsxs)("div",{className:"flex flex-col mt-auto",children:[(0,l.jsxs)("p",{className:"md:text-sm line-clamp-1 text-xs m-0",children:[(null===e||void 0===e||null===(n=e.publisher)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.name)&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("span",{className:"text-gray-800 ocean:text-white/80 dark:text-[var(--textColor10)]",children:e.publisher[0].name})}),(null===e||void 0===e||null===(i=e.creator)||void 0===i?void 0:i.name)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"mx-1 ocean:text-white/80 dark:text-[var(--textColor10)]",children:["\xb7"," "]}),(0,l.jsx)("span",{className:"text-gray-800 ocean:text-white/80 dark:text-[var(--textColor10)]",children:e.creator.name})]})]}),(0,l.jsx)("span",{className:"text-gray-500 text-xs md:text-sm ocean:text-white/80 dark:text-[var(--textColor10)]",children:(0,l.jsxs)("time",{dateTime:e.datePublished,children:[ke.ou.fromISO(e.datePublished).toLocaleStr
1ing(ke.ou.DATE_FULL)," "]})})]})]})]},t)}))}),(0,l.jsxs)("div",{className:"w-full justify-center relative items-center flex py-3 md:mt-2 md:py-0",children:[(0,l.jsx)(Ce(),{href:"/videos?".concat(r.asPath.split("?")[1]),prefetch:!1,children:(0,l.jsxs)("div",{className:"w-full md:w-72 py-2.5 bg-[#f1f3f4] z-[1] dark:text-[var(--textColor8)] dark:bg-[var(--backgroundColor13)] ocean:bg-white text-sm transition-colors flex border-none gap-2 items-center cursor-pointer justify-center rounded-full hover:bg-[#cdcdcd]",children:[n("search.web.videos.viewAll"),(0,l.jsx)(Ae.Z,{className:"text-[#5e5e5e] dark:text-[var(--textColor8)]",style:{fontSize:20}})]})}),(0,l.jsx)("span",{className:"h-[2px] absolute hidden md:block w-full bg-gray-100 ocean:bg-white/50 z-[0] dark:bg-[var(--backgroundColor13)]"})]})]})};Ye.propTypes={data:d().object.isRequired,index:d().number.isRequired};var Je=Ye,Xe=(0,w.Z)((function(e){var t=e.colorsPalette,n=e.colors,r=e.isOcean;return{card:{background:n.backgroundColor9,border:r?"none":"1px solid #dfe1e5"},time:{color:r?"#FFF":"#212121"},extra:{color:r?t.strongTransparent:"#878787"}}})),Ke=(0,_.Z)("div")({marginBottom:26,padding:"20px 16px 24px 16px",marginLeft:"-16px",marginRight:"-16px",borderRadius:"8px",lineHeight:1.2}),et=(0,_.Z)("strong")({fontSize:"32px",fontWeight:100,marginBottom:5,display:"block"}),tt=function(e){var t=e.data,n=Xe(),r=(0,k.$)().t,i=t.primaryCityTime;if(!i)return null;var o=ke.ou.fromISO(i.time,{zone:"UTC"});return(0,l.jsxs)(Ke,{className:n.card,children:[(0,l.jsx)(et,{className:"".concat(n.time," dark:!text-white"),children:o.toLocaleString(ke.ou.TIME_SIMPLE)}),(0,l.jsxs)("div",{className:n.extra,children:[o.toLocaleString(ke.ou.DATE_HUGE)," (",i.utcOffset,")"]}),(0,l.jsx)("div",{className:n.extra,children:r("search.web.timezone.location",{location:i.location.split(",")[0]})})]})};tt.propTypes={data:d().object},tt.defaultProps={data:{}};var nt=tt,rt=(0,_.Z)("ul")({paddingLeft:18}),it=(0,_.Z)("li")({marginBottom:4}),ot=(0,_.Z)("a")({"&:hover":{textDecoration:"underline"}}),at=function(e){var t=e.listItems;return(0,l.jsx)(rt,{children:t.map((function(e,t){var n=e.items;return(0,l.jsx)(it,{children:n.map((function(e,t){var n=e.text,r=e.url;return(0,l.jsx)("span",{children:r?(0,l.jsx)(ot,{href:r,prefetch:!1,children:(0,l.jsx)("a",{children:n})}):(n||"").replace("\u2022","")},t)}))},t)}))})};at.propTypes={listItems:d().arrayOf(d().object).isRequired};var st=at,lt=(0,_.Z)("table")({fontSize:14,textAlign:"left",borderCollapse:"collapse","& tr":{borderBottom:"1px solid #ebebeb"},"& th, & td":{color:"#000",wordWrap:"normal",height:"26px",padding:"8px 10px","&:first-child":{paddingLeft:0}},"& th":{fontWeight:"bolder"}}),ct=(0,_.Z)("a")({paddingTop:"10px",fontSize:"14px",display:"inline-block","&:hover":{textDecoration:"underline"}}),dt=function(e){var t=e.header,n=e.rows,r=e.seeMoreUrl;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(lt,{children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:t.map((function(e){return(0,l.jsx)("th",{children:e},e)}))})}),(0,l.jsx)("tbody",{children:n.map((function(e,t){return(0,l.jsx)("tr",{children:e.cells.map((function(e){return(0,l.jsx)("td",{children:e.text},e.text)}))},t)}))})]}),r&&(0,l.jsx)(ct,{href:r.url,children:r.text})]})};dt.propTypes={header:d().arrayOf(d().string).isRequired,rows:d().arrayOf(d().object).isRequired,seeMoreUrl:d().object},dt.defaultProps={seeMoreUrl:null};var ut={"StructuredValue/ListData":st,"StructuredValue/TabularData":dt},pt=(0,_.Z)("div")({marginBottom:26,padding:"16px",marginLeft:-16,marginRight:-16,border:"1px solid #dfe1e5",borderRadius:8,lineHeight:1.2,overflow:"hidden"}),xt=(0,_.Z)("img")({maxWidth:210,marginRight:-16,marginTop:-16,marginLeft:20}),mt=(0,_.Z)("header")({display:"flex"}),ht=(0,_.Z)("p")({fontSize:16,margin:0,lineHeight:1.375}),ft=(0,_.Z)("footer")({marginTop:25,"& a:hover h3":{textDecoration:"underline"}}),gt=function(e){var t=e.data,n=H();return(t.value||[]).slice(0,1).map((function(e,t){return function(e,t,n){var o=(e.contractualRules||[]).reduce((function(e,t){return(0,i.Z)((0,r.Z)({},e),(0,g.Z)({},t._type.split("/")[1],t))}),{}).LinkAttribution;return(0,l.jsxs)(pt,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)(mt,{children:[(0,l.jsx)(ht,{children:e.description||(0,l.jsx)("b",{children:e.subjectName})}),e.image&&(0,l.jsx)("a",{style:{marginLeft:"auto"},href:e.image.contractualRules?e.image.contractualRules[0].url:"",children:(0,l.jsx)(xt,{src:e.image.thumbnailUrl,loading:"lazy",alt:""})})]})}),(e.richCaptions||(e.richCaption?[e.richCaption]:[])).map((function(e,t){var n=ut[e._type];return n?(0,u.createElement)(n,(0,i.Z)((0,r.Z)({},e),{key:t})):null}
1)).filter(Boolean),o&&(0,l.jsx)(ft,{children:(0,l.jsxs)("a",{href:o.url,children:[(0,l.jsx)("h3",{className:n.title,children:o.text}),(0,l.jsx)("br",{}),(0,l.jsx)("span",{className:n.sourceAddress,children:o.url})]})})]},t)}(e,t,n)}))};gt.propTypes={data:d().object.isRequired};var bt,vt=gt,wt=function(e){return ke.ou.fromSeconds(e)},yt=function(e,t){return wt(e).hasSame(wt(t),"day")},jt=function(e){var t=e.icon;return"https://assets.oceanhero.today/weather/".concat(t,".png")},kt=function(e,t){return"si"===t?"".concat(Math.round(3.6*e)," km/h"):"ca"===t?"".concat(Math.round(e)," km/h"):["us","uk2"].includes(t)?"".concat(Math.round(e)," mph"):""},St=(n(25329),n(36780)),Ct=n(81764),Nt=(bt=["weather"],function(){var e=(0,f.Z)(v().mark((function e(t,n){var i,o,a,s,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://geocoder.api.here.com/6.2/geocode.json?".concat(new URLSearchParams((0,r.Z)({app_id:"D5UgomqiVTDl7x2Qtxj3",app_code:"LsjOAhXLLvYZ6_ox1jdsNA",maxhits:1,searchtext:t,addressattributes:["city"],responseattributes:["matchCode"]},n)).toString()));case 2:return i=e.sent,e.next=5,i.json();case 5:if((o=e.sent.Response).View[0]){e.next=8;break}return e.abrupt("return",null);case 8:if(a=o.View[0].Result,s=a.filter((function(e){var t=e.MatchQuality;return Object.values(t).every((function(e){return"object"===typeof e?e[0]:e}))}))[0]){e.next=12;break}return e.abrupt("return",null);case 12:return l=s.Location,e.abrupt("return",{center:[l.DisplayPosition.Latitude,l.DisplayPosition.Longitude],viewport:[[l.MapView.TopLeft.Latitude,l.MapView.TopLeft.Longitude],[l.MapView.BottomRight.Latitude,l.MapView.BottomRight.Longitude]],label:l.Address.Label});case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Zt=function(e){if(!e.data||!e.data.results[0])return null;var t=(0,o.Z)(e.data.results,1)[0],n=t.geometry;return{label:t.formatted_address,center:[n.location.lat,n.location.lng],viewport:[[n.viewport.northeast.lat,n.viewport.northeast.lng],[n.viewport.southwest.lat,n.viewport.southwest.lng]]}},Rt=function(){var e=(0,f.Z)(v().mark((function e(t){var n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://maps.googleapis.com/maps/api/geocode/json?".concat(new URLSearchParams({key:Ct.Z.googleMaps,address:t}).toString()));case 2:return n=e.sent,e.next=5,n.json();case 5:return r=e.sent,e.abrupt("return",Zt(r));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Tt=function(){var e=(0,f.Z)(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Nt(t);case 2:return n=e.sent,e.abrupt("return",n||Rt(t));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){var t=e.w,n=e.h,i=(0,te.Z)(e,["w","h"]);return"https://maps.googleapis.com/maps/api/staticmap?".concat(new URLSearchParams((0,r.Z)({key:Ct.Z.googleMaps,size:"".concat(t,"x").concat(n),scale:2},i)))},zt=(function(){var e=(0,f.Z)(v().mark((function e(t,n){var i,o,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.w,o=n.h,a=n.nodot,e.next=3,Tt(t);case 3:if(s=e.sent){e.next=6;break}return e.abrupt("return",null);case 6:return e.abrupt("return",{center:s.center.join(","),label:s.label,url:Lt((0,r.Z)({w:i,h:o,visible:s.viewport.map((function(e){return e.join(",")})).join("|")},!a&&{markers:s.center.join(",")}))});case 7:case"end":return e.stop()}}),e)})))}(),(0,St.ls)((function(e){var t=e.mkt,n=e.selectedUnit;return n?"F"===n?"en-us":"de-de":t}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase()}),(function(e){return["en-us","es-us"].includes(e)?"us":"en-gb"===e?"uk2":"ca"}))),It=function(e,t){return{q:e,lang:t.setLang,units:zt(t),extend:"hourly",exclude:"minutely,alerts"}},Dt=function(){var e=(0,f.Z)(v().mark((function e(t,n){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/weather?".concat(new
1URLSearchParams(It(t,n))));case 2:return r=e.sent,e.abrupt("return",r.json());case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),qt=(0,_.Z)("path")({stroke:"rgb(255, 204, 0)",fill:"none",strokeWidth:1}),At=(0,_.Z)("path")({stroke:"none",fill:"rgba(255, 204, 0, 0.2)"}),Pt=(0,_.Z)("g")({font:"bold 11px arial",textAnchor:"middle",fill:"rgb(181, 181, 181)",cursor:"pointer"}),Bt=function(e){var t,n,r=e.data,i=e.active,o=e.onClick,s=e.x,c=e.h,d=e.d3,p=e.theme,x=(0,u.useMemo)((function(){return r.map((function(e){return Math.round(e.temperature)}))}),[r]),m=(0,u.useMemo)((function(){return d.scaleLinear().domain([(t=Math).max.apply(t,(0,a.Z)(x)),(n=Math).min.apply(n,(0,a.Z)(x))-5]).range([0,c])}),[d,c,x]),h=(0,u.useMemo)((function(){return d.line().x((function(e,t){return s(t)})).y((function(e){return Math.round(m(e))}))(x)}),[d,x,s,m]),f=(0,u.useMemo)((function(){return d.area().x((function(e,t){return s(t)})).y0(c).y1((function(e){return m(e)}))(x)}),[d,c,x,s,m]),g=(0,u.useMemo)((function(){return s.ticks(r.length).map((function(e){var t=x[e]||0,n="ocean"===p?"#fae171":"rgb(85, 85, 85)";return!((e-1)%3)&&(0,l.jsx)("g",{transform:"translate(".concat(s(e),",").concat(m(t)-8,")"),fill:"ocean"===p?"#FFF":"#bababa",children:(0,l.jsx)("text",{"data-index":e,onClick:o,fill:i.value===r[e]?n:void 0,children:x[e]})},e)}))}),[i,r,o,x,s,m,p]);return(0,l.jsxs)("g",{children:[(0,l.jsx)(At,{d:f}),(0,l.jsx)(qt,{d:h}),(0,l.jsx)(Pt,{children:g})]})};Bt.propTypes={active:d().object.isRequired,onClick:d().func.isRequired,data:d().arrayOf(d().object).isRequired,x:d().func.isRequired,h:d().number.isRequired,d3:d().object.isRequired,theme:d().string.isRequired};var Et=Bt,Ft=(0,_.Z)("g")({font:"bold 11px arial",textAnchor:"middle",fill:"#1878f0"}),Wt=function(e){var t=e.data,n=e.onClick,o=e.x,a=e.h,s=e.w,c=e.d3,d=e.theme,p=(0,u.useMemo)((function(){return t.map((function(e){return Math.round(100*e.precipProbability)}))}),[t]),x=Math.ceil(s/p.length),m=(0,u.useMemo)((function(){return c.scaleLinear().domain([100,0]).range([0,a])}),[c,a]),h=(0,u.useMemo)((function(){return o.ticks(t.length).map((function(e){var t=p[e]||0;return!((e-1)%3)&&(0,l.jsx)("g",{transform:"translate(".concat(Math.round(o(e)+x/2),",").concat(m(t)-3,")"),fill:"ocean"===d?"#FFF":"#bababa",children:(0,l.jsxs)("text",{"data-index":e,onClick:n,children:[t,"%"]})},e)}))}),[x,t.length,n,p,o,m,d]);return(0,l.jsxs)("g",{children:[(0,l.jsx)("g",{children:p.map((function(e,t){return{x:Math.round(o(t)),width:x,y:m(e),height:a-m(e)}})).map((function(e,t){return(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",(0,i.Z)((0,r.Z)({},e),{fill:"#E7F1FA"})),(0,l.jsx)("rect",(0,i.Z)((0,r.Z)({},e),{height:2,fill:"#1878f0"}))]},t)}))}),(0,l.jsx)(Ft,{children:h})]})};Wt.propTypes={onClick:d().func.isRequired,data:d().arrayOf(d().object).isRequired,x:d().func.isRequired,h:d().number.isRequired,w:d().number.isRequired,d3:d().object.isRequired,theme:d().string.isRequired};var Ot=Wt,Ut=n(8816),Mt=n.n(Ut),Ht="/_next/static/media/arrowUpward.6a82845b.svg",_t=(0,w.Z)((function(e){return{container:{font:"normal 12px arial",textAnchor:"middle",fill:e.isOcean?"#FFF":"#000"}}})),Vt=Mt()((function(e,t){var n=e.windSpeed;return"si"===t?3.6*n:"ca"===t?n:1.609*n}),(function(e){return Math.round(e)}),(function(e){return e>25?52:e>12?30:20})),$t=function(e){var t=e.data,n=e.units,r=e.onClick,i=e.x,o=_t(),a=(0,u.useMemo)((function(){return i.ticks(t.length).map((function(e){if((e-1)%3||!t[e])return null;var o=Vt(t[e],n);return(0,l.jsxs)("g",{transform:"translate(".concat(Math.round(i(e)),",0)"),children:[(0,l.jsx)("text",{"data-index":e,onClick:r,children:kt(t[e].windSpeed,n)}),(0,l.jsx)("g",{transform:"translate(-".concat(o/2,", ").concat(36-o/2,")"),children:(0,l.jsx)("image",{transform:"rotate(".concat(t[e].windBearing,", ").concat(o/2,", ").concat(o/2,")"),width:o,height:o,xlinkHref:Ht})})]},e)}))}),[t,r,n,i]);return(0,l.jsx)("g",{className:o.container,children:a})};$t.propTypes={onClick:d().func.isRequired,data:d().arrayOf(d().object).isRequired,x:d().func.isRequired,units:d().string.isRequired};var Gt=$t,Qt=(0,_.Z)("div")({width:"100%",overflow:"hidden"}),Yt=(0,_.Z)("g")({font:"normal 12px arial",textAnchor:"middle",fill:"#bababa",cursor:"pointer"}),Jt=20,Xt=30,Kt={temperature:Et,precipitation:Ot,wind:Gt},en=function(e){var t=e.data,n=e.units,r=e.mode,i=e.active,o=e.onClick,a=e.timezone,s=e.d3,c=e.theme,d=(0,u.useRef)(),p=t.length/24*598,x=(0,u.useMemo)((function(){return s.scaleLinear().domain([0,t.length]).range([0,p])}),[s,t.length,p]),m=(0,u.useCallback)((function(e){var n=e.currentTarget.dataset.index;o({type:"hour",value:t[n]})}),[t,o]),h=(0,u.useMemo)((function(){return x.ticks(t.length).map((function(e){return!((e-1)%3)&&t[e]&&(0,l.jsx)("g",{transform:"translate(".concat(x(e),",").concat(60+Jt+2,")"),fill:"ocean"===c?"#FFF":"#bababa",children:(0,l.jsx)("text",{"data-index":e,onClick:m,children:wt(t[e].time).setZone(a).toLocaleStr
1ing(ke.ou.TIME_SIMPLE)})},e)}))}),[t,m,a,x,c]);(0,u.useEffect)((function(){var e;if(d.current&&"hour"!==i.type){var n=t.findIndex((function(e){var t=e.time;return yt(t,i.value.time)}));null===(e=d.current)||void 0===e||e.scrollTo(x(n),0)}}),[i,t,x]);var f=Kt[r];return(0,l.jsx)(Qt,{ref:d,style:d.current?{scrollBehavior:"smooth"}:{},children:(0,l.jsx)("svg",{width:p,height:60+Jt+Xt,children:(0,l.jsxs)("g",{transform:"translate(0, ".concat(Jt,")"),children:[(0,l.jsx)(f,{data:t,active:i,x:x,h:60,w:p,onClick:m,units:n,d3:s,theme:c}),(0,l.jsx)(Yt,{children:h})]})})})};en.propTypes={active:d().object.isRequired,onClick:d().func.isRequired,data:d().arrayOf(d().object).isRequired,mode:d().string.isRequired,units:d().string.isRequired,timezone:d().string.isRequired,d3:d().object.isRequired,theme:d().string.isRequired};var tn=en,nn=(0,w.Z)((function(e){return{container:{padding:"10px 0 0 15px",display:"flex",justifyContent:"space-between"},link:{fontSize:"11px",textDecoration:"none",color:e.isOcean?"#FFF":"#878787",lineHeight:1.2,display:"inline-block","&:hover":{textDecoration:"underline"}}}})),rn=function(){var e=nn(),t=(0,k.$)().t;return(0,l.jsxs)("div",{className:e.container,children:[(0,l.jsx)("a",{className:e.link,href:"https://darksky.net/poweredby/",target:"_blank",rel:"noopener noreferrer",children:t("search.web.weather.poweredBy")}),(0,l.jsx)("a",{className:e.link,href:"https://docs.google.com/forms/d/e/1FAIpQLScqs5LI7cIBOnFQeNFjBA2fsgbMEGxGQe5Wc3LU7y6P6hEEUg/viewform?usp=sf_link",target:"_blank",rel:"noopener noreferrer",children:t("search.web.weather.feedback")})]})},on=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints,r=e.isOcean;return{container:(0,g.Z)({border:r?"none":"1px solid #dfe1e5",borderRadius:8,overflow:"hidden",width:"100%",padding:"20px 16px 24px 16px",boxSizing:"border-box",color:t.textColor37,background:t.backgroundColor9},n.down("sm"),{padding:"20px 16px 30px 16px"}),mainTemperature:{display:"flex",fontSize:64,color:t.textColor6,lineHeight:1,"& small":{fontSize:16},"& img":{marginRight:10}},unitButton:{background:"none",border:"none",fontSize:"16px",display:"inline",padding:0,margin:"0 5px",color:t.textColor6,cursor:"pointer","&:focus":{outline:"none"},"&:disabled":{color:t.textColor34,cursor:"default"}},tempHigh:{color:r?"#FFF":"#000"},daysSummaryTitle:{color:r?"#FFF":"#bababa"},daysSummaryDayActive:{backgroundColor:"".concat(t.textColor21," !important"),border:r?"none":"1px solid #e9e9e9 !important",borderRadius:"1px"}}})),an=(0,_.Z)("div")({marginBottom:"37px"}),sn=(0,_.Z)("div")({display:"flex",marginTop:"20px"}),ln=(0,_.Z)("h3")({fontSize:24,fontWeight:"400",lineHeight:"28px",margin:0}),cn=(0,_.Z)("div")({}),dn=(0,_.Z)("div")({display:"flex",justifyContent:"space-between"});dn.Day=(0,_.Z)("button")({display:"flex",flexDirection:"column",alignItems:"center",background:"none",border:"none",overflow:"hidden",width:75,height:94,cursor:"pointer",boxSizing:"border-box"}),dn.Title=(0,_.Z)("span")({paddingTop:7,lineHeight:"15px",fontSize:14}),dn.Image=(0,_.Z)("img")({margin:"1px 4px 0",height:48,width:48}),dn.Footer=(0,_.Z)("div")((function(e){var t=e.theme;return(0,g.Z)({textAlign:"center",fontWeight:"normal",lineHeight:"15px",fontSize:13,marginTop:2},t.breakpoints.down("sm"),{fontSize:10})})),dn.TempHigh=(0,_.Z)("span")({paddingRight:5}),dn.TempLow=(0,_.Z)("span")({color:"#bababa"});var un=(0,_.Z)("button")({marginLeft:-1,border:"1px solid rgba(0,0,0,0.1)",color:"#444",backgroundColor:"#f5f5f5",borderRadius:"2px",cursor:"default",fontSize:"11px",fontWeight:"bold",lineHeight:"27px",margin:"2px 0",boxSizing:"content-box",minWidth:"54px",padding:"0 8px",textAlign:"center","&:hover":{border:"1px solid #c6c6c6",backgroundColor:"#f8f8f8",color:"#222"},"&.active":{backgroundColor:"#eee",backgroundImage:"linear-gradient(top,#eee,#e0e0e0)",border:"1px solid #ccc",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.1)",color:"#222"}}),pn=(0,_.Z)("small")({paddingTop:"2px"}),xn=(0,_.Z)("div")({padding:"15px 0 9px"}),mn=["temperature","precipitation","wind"],hn=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],fn=function(e){var t=e.router,a=e.data,s=(0,u.useRef)({}),c=(0,u.useState)(),d=c[0],p=c[1],x=(0,u.useState)(mn[0]),m=x[0],h=x[1],f=(0,u.useState)(),g=f[0],b=f[1],v=(0,u.useState)(),w=v[0],y=v[1],S=(0,u.useState)(),C=S[0],N=S[1],Z=(0,k.$)().t,R=(0,u.useContext)(j.J6),T=R[0],L=R[1],z=
1on(),I=(0,u.useCallback)((function(e,t){p(e);var n="us"===e.flags.units?"F":"C";b(t||{type:"hour",value:e.hourly.data[1]}),s.current[n]=e,y(n)}),[]);(0,u.useEffect)((function(){var e,n=(t.query.q||"").toLowerCase();n.match("tomorrow")&&(e=(0,o.Z)(a.daily.data,2)[1]);var r=hn.find((function(e){return n.match(e)}));r&&(e=a.daily.data.find((function(e){var t=e.time;return wt(t).weekdayLong.toLowerCase()===r}))),I(a,e?{type:"day",value:e}:null)}),[]),(0,u.useEffect)((function(){n.e(3840).then(n.bind(n,23840)).then(N)}),[]);var D=(0,u.useCallback)((function(e){var t=e.currentTarget.dataset.index;b({type:"day",value:d.daily.data[t]})}),[d]),q=(0,u.useCallback)((function(e){var n=e.currentTarget.dataset.value;L({selectedUnit:T.selectedUnit?null:n}),s.current[n]&&I(s.current[n]),Dt(t.query.q,(0,i.Z)((0,r.Z)({},T),{selectedUnit:n})).then(I)}),[t.query.q,I,T,L]);return(0,l.jsxs)(an,{children:[(0,l.jsx)("div",{className:z.container,children:function(){if(!d||!g)return null;var e=d.location,t=d.daily,n=d.hourly;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ln,{children:e.label}),(0,l.jsxs)(cn,{children:[wt(g.value.time).weekdayLong," ","hour"===g.type?wt(g.value.time).setZone(d.timezone).toLocaleString(ke.ou.TIME_SIMPLE):""]}),(0,l.jsx)(cn,{children:g.value.summary}),(0,l.jsxs)(sn,{children:[(0,l.jsxs)("div",{className:z.mainTemperature,children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{loading:"lazy",src:jt(g.value),alt:g.value,width:64})}),(0,l.jsx)("span",{children:Math.round(g.value.temperatureMax||g.value.temperature)}),(0,l.jsxs)(pn,{children:[(0,l.jsx)("button",{type:"button",className:z.unitButton,disabled:"C"===w,"data-value":"C",onClick:q,children:"\xb0C"}),"|",(0,l.jsx)("button",{type:"button",className:z.unitButton,disabled:"F"===w,"data-value":"F",onClick:q,children:"\xb0F"})]})]}),(0,l.jsxs)("div",{style:{width:260,marginLeft:"auto",lineHeight:"22px"},children:[(0,l.jsx)(cn,{children:Z("search.web.weather.precipitation",{value:"".concat(Math.round(100*g.value.precipProbability),"%")})}),(0,l.jsx)(cn,{children:Z("search.web.weather.humidity",{value:"".concat(Math.round(100*g.value.humidity),"%")})}),(0,l.jsx)(cn,{children:Z("search.web.weather.wind",{value:kt(g.value.windSpeed,d.flags.units)})}),(0,l.jsx)(xn,{children:mn.map((function(e){return(0,l.jsx)(un,{className:e===m?"active":"",onClick:function(){return h(e)},children:Z("search.web.weather.modes.".concat(e))},e)}))})]})]}),g&&C&&(0,l.jsx)(tn,{data:n.data,active:g,onClick:b,mode:m,units:d.flags.units,timezone:d.timezone,d3:C,theme:T.theme}),(0,l.jsx)(dn,{children:t.data.map((function(e,t){return(0,l.jsxs)(dn.Day,{"data-index":t,onClick:D,className:yt(g.value.time,e.time)?z.daysSummaryDayActive:"",children:[(0,l.jsx)(dn.Title,{className:z.daysSummaryTitle,children:wt(e.time).weekdayShort}),(0,l.jsx)(dn.Image,{src:jt(e)}),(0,l.jsxs)(dn.Footer,{children:[(0,l.jsxs)(dn.TempHigh,{className:z.tempHigh,children:[Math.round(e.temperatureMax),"\xb0"]}),(0,l.jsxs)(dn.TempLow,{children:[Math.round(e.temperatureLow),"\xb0"]})]})]},e.time)}))})]})}()}),(0,l.jsx)(rn,{})]})};fn.propTypes={router:d().object.isRequired,data:d().object.isRequired};var gn=fn,bn=n(52543),vn=n(30653),wn=n(68479),yn=n(74965),jn=n(64566),kn=(0,w.Z)((function(e){return{card:(0,g.Z)({marginBottom:26,marginLeft:"-16px",marginRight:"-16px",border:"1px solid #dfe1e5",borderRadius:"8px",lineHeight:1.2,overflow:"hidden"},e.breakpoints.down("md"),{marginLeft:"0",marginRight:"0"}),panelSummary:{margin:0}}})),Sn=(0,_.Z)("p")({fontSize:16,margin:0,lineHeight:1.375,"& a:hover":{textDecoration:"underline"}}),Cn=(0,_.Z)("a")({display:"inline-flex",flexDirection:"column",width:"100%",marginTop:20}),Nn=(0,_.Z)("h2")({color:"#222",fontSize:"20px",padding:"9px 16px",lineHeight:"1.3",fontWeight:"normal",margin:"0"}),Zn=(0,_.Z)("h4")({fontWeight:"normal",cursor:"pointer",fontSize:"16px",lineHeight:"1.57",margin:0}),Rn=(0,bn.Z)({root:{border:"1px solid rgba(0, 0, 0, .125)",borderRadius:"0 !important",borderLeft:"unset",borderRight:"unset",boxShadow:"none","&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&$expanded":{margin:"auto"}},expanded:{}})(vn.Z),Tn=(0,bn.Z)({root:{minHeight:44,height:44,boxSizing:"border-box",paddingLeft:16,paddingBottom:"9px",paddingTop:"9px","&$expanded":{minHeight:44}},content:{margin:0,"&$expanded":{margin:0}},expanded:{}})(wn.Z),Ln=(0,bn.Z)((function(e){return{root:{display:"block",padding:e.spacing(2)}}}))(yn.Z),zn=function(e){var t=e.value,n=(0,k.$)().t,r=H(),i=kn(),o=(t.contractualRules||[]).find((function(e){return"ContractualRules/LinkAttribution"===e._type}));return(0,l.jsxs)(Rn,{children:[(0,l.jsx)(Tn,{className:i.panelSummary,expandIcon:(0,l.jsx)(jn.Z,{}),children:(0,l.jsx)(Zn,{children:t.subjectName})}),(0,l.jsxs)(Ln,{children:[(0,l.jsx)(Sn,{children:t.description.trim()}),o&&(0,l.jsxs)(Cn,{href:o.url,children:[(0,l.jsx)("h4",{className:r.title,children:o.text}),(0,l.jsx)("span",{className:r.sourceAddress,children:o.url})]}),(0,l.jsxs)(Sn,{style:{marginTop:20},children:[n("search.web.relatedQnA.searchFor")," ",(0,l.jsx)(Ce(),{href:"/web?".concat(new
1URLSearchParams({q:t.subjectName})),prefetch:!1,children:(0,l.jsx)("a",{children:t.subjectName})})]})]})]})};zn.propTypes={value:d().object.isRequired};var In=function(e){var t=e.data,n=(0,k.$)().t,r=kn();return(0,l.jsxs)("div",{className:r.card,children:[(0,l.jsx)(Nn,{children:n("search.web.relatedQnA.title")}),(0,l.jsx)("div",{children:t.value.map((function(e){return e.value})).flat().map((function(e){return(0,l.jsx)(zn,{value:e},e.subjectName)}))})]})};In.propTypes={data:d().object},In.defaultProps={data:{}};var Dn=In,qn=function(){var e=(0,u.useState)(!1),t=e[0],r=e[1];return(0,u.useEffect)((function(){n.e(5787).then(n.t.bind(n,75787,23)).then((function(){window.blockAdBlock&&(window.blockAdBlock.check(!0),window.blockAdBlock.onDetected((function(){return r(!0)})))})).catch(console.error)}),[]),t},An="/_next/static/media/seaweed.9fb0f9d5.webp",Pn="/_next/static/media/turtle.471e9d0b.webp",Bn=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints,r=e.isOcean;return{container:(0,g.Z)({background:t.backgroundColor6,borderRadius:"9px",border:r?"none":"solid 1px #dfe1e5",marginBottom:"40px",position:"relative",boxSizing:"content-box",marginLeft:"-16px",marginRight:"-16px",padding:"20px 7px 20px 23px"},n.down("sm"),{marginLeft:0,marginRight:0,padding:"20px 23px",width:"inherit"}),title:{fontSize:"28px",color:t.textColor5,fontWeight:"normal",margin:"0 0 10px 0"},description:{fontSize:"14px",lineHeight:1.57,color:t.textColor10,marginBottom:10},button:{display:"inline-block",borderRadius:"40px",backgroundColor:t.textColor8,padding:"8px 13px",fontSize:"18px","&, &:active, &:focus":{color:t.textColor15}}}})),En=(0,_.Z)("div")({position:"absolute",right:"12px",bottom:"-4px","& img":{marginLeft:9}}),Fn=function(){var e=(0,k.$)().t,t=qn(),n=Bn();return t?(0,l.jsxs)("section",{className:n.container,children:[(0,l.jsx)("div",{className:n.title,children:e("adBlock.title")}),(0,l.jsx)("div",{className:n.description,children:e("adBlock.description")}),(0,l.jsx)("a",{className:n.button,href:"https://oceanhero.zendesk.com/hc/en-us/articles/360008504339-How-to-disable-your-adblocker-on-OceaHero-today",target:"_blank",rel:"noopener noreferrer",children:e("adBlock.link")}),(0,l.jsxs)(En,{children:[(0,l.jsx)("img",{src:An,width:45,height:70,alt:"plants"}),(0,l.jsx)("img",{src:Pn,width:81,height:63,alt:"turtle"})]})]}):null},Wn=n(89659),On=(0,w.Z)((function(e){var t=e.colors,n=e.isOcean;return{container:{"& a":{"&:hover":{textDecoration:"underline"}}},partOfSpeech:{marginTop:".75em",fontSize:14,fontStyle:"italic",color:t.textColor27,textTransform:"lowercase"},definitionList:{paddingLeft:34,margin:0},definition:{fontSize:14,margin:".75em 0",color:t.textColor6,"& a, & a:active, & a:visited":{color:t.textColor43},"& .example-container":{marginTop:"0px"},"& .example":{marginTop:".175em",opacity:n?.9:.5}}}})),Un=function(e){var t=e.definitions,n=On(),s=(0,o.Z)(t,1)[0],c=(0,u.useRef)(null),d=function(e){var t=e.definition,r=e.examples,i=e.synonyms;return(0,l.jsxs)("li",{className:n.definition,children:[(0,l.jsx)("p",{className:"m-0",children:t}),r&&(0,l.jsx)("div",{className:"example-container",children:r.slice(0,1).map((function(e){return(0,l.jsxs)("div",{className:"example",children:['"',e,'"']},e)}))}),i&&(0,l.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,l.jsx)("span",{className:"text-green-700 ocean:text-white/80",children:"Similar:"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-1 ",children:i.slice(0,5).map((function(e){return(0,l.jsx)(Wn.Z,{href:"/web?q=".concat(e,"+meaning"),children:(0,l.jsx)("button",{className:"border-solid cursor-pointer border-gray-300 border-[1px] px-3 py-1 text-xs rounded-full bg-white hover:bg-gray-100",children:e})},e)}))})]})]},"".concat(t))},p=t.reduce((function(e,t){return(0,i.Z)((0,r.Z)({},e),(0,g.Z)({},t.partOfSpeech,e[t.partOfSpeech]?(0,a.Z)(e[t.partOfSpeech]).concat([t]):[t]))}),(0,g.Z)({},s.partOfSpeech,[])),x=Object.entries(p).map((function(e){var t=(0,o.Z)(e,2),r=t[0],i=t[1].splice(0,3);return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:n.partOfSpeech,children:r}),(0,l.jsx)("ol",{className:n.definitionList,children:i.map(d)})]},r)}));return(0,l.jsx)("div",{className:n.container,ref:c,children:x})},Mn=(0,w.Z)((function(e){var t=e.colors;return{syllable:{fontSize:28,color:t.textColor6},transcription:{fontSize:14,color:t.textColor27,marginTop:"5px"}}})),Hn=function(e){var t,n=e.data,r=Mn(),i=null===n||void 0===n?void 0:n.dictionary,o=i.definitions,a=i.pronunciation,s=i.syllables;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-3",children:(0,l.jsx)("span",{className:r.syllable,children:null===s||void 0===s||null===(t=s.list)||void 0===t?void 0:t.join("\xb7")})}),a&&(a.all||a.simplified)&&(0,l.jsxs)("div",{className:r.transcription,children:["/",a.all||a.simplified,"/"]}),(0,l.jsx)(Un,{definitions:o})]})},_n=(0,w.Z)((function(e){var t=e.colors,n=(e.isOcean,e.breakpoints);return{visuallyHidden:{position:"absolute",height:"1px",width:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",whiteSpace:"nowrap"},formContainer:(0,g.Z)({width:"100%",boxSizing:"border-box",borderRadius:8,"& svg":{color:t.textColor3}},n.down("xs"),{width:"100%",margin:".75em 0 0",borderRadius:0,border:"none",marginBottom:"10px",marginTop:"10px",padding:"10px 15px"}),heading:{fontWeight:"normal",color:t.textColor6,margin:"8px 0px 2px",fontSize:22},inputGroup:{border:"1px solid #dfe1e5",paddingLeft:8,height:38,margin:".75em 0",display:"flex",justifyContent:"center",alignItems:"center","& .MuiInput-root":{lineHeight:"18px",width:"calc(100% - 24px)",color:t.textColor6},"& input":{padding:"0 8px","&::placeholder":{opacity:1,color:t.textColor30}},"& button":{width:38,height:38,padding:0,background:t.buttonColor1,borderLeft:"1px solid #dfe1e5",borderRadius:0}},backButton:{fontSize:18,textTransform:"capitalize",marginBottom:".375em",display:"flex","& .MuiButton-startIcon":{fontSize:18,margin:0}},loading:{width:0,overflow:"hidden",display:"inline-block",animation:"$ellipsis steps(4,end) 900ms infinite","& > div":{width:"1.25em"}},"@keyframes ellipsis":{to:{width:"1.25em"}},externalLinks:(0,g.Z)({display:"flex",justifyContent:"space-between","& a":{display:"inline-flex",alignItems:"center","& img":{marginLeft:"1ch"}},"&, & a, & a:visited, & a:active":{color:t.textColor3,fontStyle:"italic",fontSize:12},"& a:hover":{textDecoration:"underline"}},n.down("xs"),{display:"none"}),wikiLink:{margin:"0 5px"},wikiLinkContainer:{display:"inline-block",marginLeft:15}}})),Vn=function(e){e.query;
1var t,n=e.data,r=(0,o.Z)((0,k.$)(),1)[0],i=_n();(0,$.useRouter)();return(null===n||void 0===n||null===(t=n.dictionary)||void 0===t?void 0:t.definitions)?(0,l.jsxs)(y.SV,{children:[(0,l.jsxs)("div",{className:"".concat(i.formContainer," ocean:bg-transparent bg-white dark:bg-transparent"),children:[(0,l.jsx)("h2",{className:i.heading,children:r("dictionary.heading")}),(0,l.jsxs)("span",{className:"text-gray-500 text-xs ocean:text-white/80",children:[r("dictionary.definitionsFrom")," ",(0,l.jsx)("a",{href:"https://languages.oup.com/",className:"underline text-gray-400 ocean:text-white/80",children:"Oxford Languages"})]}),(0,l.jsx)(Hn,{data:n})]}),(0,l.jsx)("div",{className:i.externalLinks,children:(0,l.jsx)("a",{target:"_blank",rel:"noopener noreferrer",className:"ml-auto !text-gray-400 ocean:!text-white/80",href:"https://docs.google.com/forms/d/e/1FAIpQLSd33sPed9xvFAvoN9IUwJFyEyjOAZYdDE89tv_6gGhTC1r8Lg/viewform",children:r("dictionary.feedback")})}),(0,l.jsxs)("div",{className:"w-full dark:bg-transparent mb-2 -mt-3 md:mt-0 md:mb-5 justify-center box-border relative items-center flex px-4 md:px-0 ocean:bg-transparent md:bg-transparent py-4 md:py-0",children:[(0,l.jsxs)("button",{className:"w-full md:w-72 py-2 z-10 dark:bg-[var(--backgroundColor13)] dark:text-[var(--textColor7)] bg-white md:bg-[#f1f3f4] text-sm transition-colors flex border-none gap-2 items-center cursor-pointer justify-center rounded-full hover:bg-[#cdcdcd]",onClick:function(){return window.open("https://www.oxfordlearnersdictionaries.com/definition/english/"+n.originalKey,"_blank")},children:[r("dictionary.more"),(0,l.jsx)(Oe.Z,{className:"text-[#5e5e5e] dark:text-[var(--textColor10)]"})]}),(0,l.jsx)("span",{className:"h-[2px] absolute w-full bg-[#f1f3f4] ocean:bg-white/50 z-[0] dark:bg-[var(--backgroundColor13)] hidden md:block"})]})]}):(0,l.jsx)(l.Fragment,{})},$n=(0,w.Z)((function(e){return{container:{display:"flex",listStyle:"none",flexWrap:"wrap",fontSize:14,borderTop:"1px solid ".concat(e.isOcean?e.colorsPalette.lightTransparent:"#dfe1e5"),padding:"12px 16px 12px 0",margin:0},element:{margin:"0 0 0 16px",lineHeight:"24px","& a":{color:e.colors.textColor9},"&:hover":{textDecoration:"underline"}}}})),Gn=function(e){var t=e.data,n=$n();return(0,l.jsx)("ul",{className:n.container,children:t.map((function(e){return(0,l.jsx)("li",{className:n.element,children:(0,l.jsx)("a",{href:e.url,children:e.name})},e.url)}))})};Gn.propTypes={data:d().arrayOf(d().object).isRequired};var Qn=Gn,Yn=(0,w.Z)((function(e){return{container:(0,g.Z)({margin:"0 0 10px 0",width:"100%"},e.breakpoints.down("sm"),{width:"calc(100% - 22px)",margin:"0 0 10px 10px"}),link:{border:"none",display:"inline-block",marginRight:8,borderRadius:4},image:{height:130,background:"rgb(200,194,168)",borderRadius:4}}})),Jn=function(e){var t=e.data,n=e.router,o=e.url,a=Yn(),s=(0,u.useMemo)((function(){return"?".concat(n.asPath.split("?")[1]||"")}),[n.asPath]),c=new URL(o).host,d=(0,u.useMemo)((function(){return t.value.map((function(e){return(0,i.Z)((0,r.Z)({},e.thumbnail),{isPrimary:!!e.hostPageUrl.match(c),src:e.thumbnailUrl,to:"/images".concat(s,"&id=").concat(new URLSearchParams(e.webSearchUrl).get("id")),value:e})})).sort((function(e,t){return Number(t.isPrimary)-Number(e.isPrimary)}))}),[t.value,s]);return(0,l.jsx)("div",{className:a.container,children:(0,l.jsx)(He,{photos:d,to:"/images".concat(s)})})};Jn.propTypes={data:d().object.isRequired,router:d().object.isRequired,url:d().string.isRequired};var Xn=Jn,Kn=JSON.parse('["to","how","when","where","what","why","there,","all","another","any","anybody","anyone","anything","as","aught","both","each other","each","either","enough","everybody","everyone","everything","few","he","her","hers","herself","him","himself","his","i","idem","it","its","itself","many","me","mine","most","my","myself","naught","neither","no one","nobody","none","nothing","nought","one","one another","other","others","ought","our","ours","ourself","ourselves","several","she","some","somebody","someone","something","somewhat","such","suchlike","that","thee","the other","their","theirs","theirself","theirselves","them","themself","themselves","there","these","they","thine","this","those","thou","thy","thyself","us","we","what","whatever","whatnot","whatsoever","whence","where","whereby","wherefrom","wherein","whereinto","whereof","
1whereon","wherever","wheresoever","whereto","whereunto","wherewith","wherewithal","whether","which","whichever","whichsoever","who","whoever","whom","whomever","whomso","whomsoever","whose","whosever","whosesoever","whoso","whosoever","ye","yon","yonder","you","your","yours","yourself","yourselves","rather","quite,","am","is","are","was","were","being","been","be","can","has","shall","will","do","does","did","doing","have","should","may","might","would","must","could","had","having","ought to,","the","a","an","some","few","one,","little","bit of","great deal of","large amount of","no","none","not any","some","any","lot of","lots of","plenty of","few","number of","several","great number of","large number of","half of","half","every"]'),er=function(e){return(e||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},tr=(0,w.Z)((function(e){var t;return{description:{fontSize:16,paddingBottom:5,display:"block","&, & b":{color:e.colors.textColor6},"& a, & a:visited":{color:"".concat(e.colors.textColor9," !important")},"& a:hover":{textDecoration:"underline"}},showNext:{backgroundColor:e.colors.backgroundColor9,border:e.isOcean?"none":"1px solid ".concat(e.colors.buttonColor3),borderRadius:"5px",fontSize:13,color:e.colors.textColor25,padding:"6px 10px",cursor:"pointer",marginBottom:10,"&:focus":{outline:"none"}},link:{margin:0,lineHeight:1.3,paddingTop:4},wrapper:{marginBottom:"26px","@media (max-width: 768px)":{marginBottom:"12px",display:"none"}},card:(t={backgroundColor:e.colors.backgroundColor9,border:e.isOcean?"none":"1px solid ".concat(e.colors.buttonColor3),borderRadius:"8px",width:"100%","& a:hover h3":{textDecoration:"underline"},"& a:visited, & a:visited h3":{color:e.colors.textColor35}},(0,g.Z)(t,e.breakpoints.down("sm"),{width:"100%",margin:0,boxSizing:"border-box"}),(0,g.Z)(t,e.breakpoints.down("xs"),{boxShadow:"0 1px 6px rgba(32, 33, 36, 0.28)",padding:"12px",borderRadius:"0px"}),t),cardContent:(0,g.Z)({padding:"16px 14px"},e.breakpoints.down("xs"),{padding:"12px"}),thumbnail:(0,g.Z)({display:"block",float:"right",padding:"4px 16px 4px 0",margin:"0 -16px 0 16px","& img":{borderRadius:"8px",height:104,width:104}},e.breakpoints.up("sm"),{display:"none"}),footer:(0,g.Z)({display:"flex",justifyContent:"space-between",margin:".375em 2px .75em",color:e.colors.textColor19,"& a":{display:"inline-flex",alignItems:"center","& img":{marginLeft:"1ch"}},"&, & a, & a:visited, & a:active":{color:e.colors.textColor19,fontSize:12},"& a:hover":{textDecoration:"underline"}},e.breakpoints.down("xs"),{display:"none"})}})),nr=["cookie","privacy policy","we would like to show you a description"],rr=["creeksideimagery.com"],ir=function(e,t){try{var n=new RegExp("(".concat(Kn.map((function(e){return"\\b".concat(e,"\\b")})).join("|"),")"),"ig"),r=(e||"").replace(/[^\w\s]/gi,"").replace(n,"").trim().split(" ").map((function(e){return e.trim()})).filter(Boolean),i=new RegExp("(\\b[a-z]+\\d+|\\d+(\\s[a-z]+)?(?!;)\\b|".concat(r.map((function(e){return"\\b".concat(e,"\\b")})).join("|"),")"),"ig");return er(t).replace(i,"<b>$1</b>")}catch(o){return console.error(o),er(t)}},or=function(e){var t=e.data,n=e.router,r=(0,k.$)().t,i=H(),o=i.title,a=i.sourceAddress,s=i.description,c=i.link,d=i.sourceFavicon,p=tr(),x=(0,u.useRef)(0),m=(0,u.useState)(t.webPages.value[0]),h=m[0],f=m[1],g=h.url.split("://")[1].split("/").filter(Boolean),b=g.join(" \u203a ");return(0,l.jsxs)("section",{className:p.wrapper,children:[(0,l.jsxs)("div",{className:p.card,children:[(0,l.jsxs)("div",{className:p.cardContent,children:[(0,l.jsxs)("div",{children:[t.images&&(0,l.jsx)(Xn,{data:t.images,router:n,url:h.url}),t.thumbnailUrl&&(0,l.jsx)("div",{className:p.thumbnail,children:(0,l.jsx)("img",{src:t.thumbnailUrl,alt:o,loading:"lazy"})}),(0,l.jsx)("div",{className:"".concat(s," ").concat(p.description),dangerouslySetInnerHTML:{__html:"".concat(ir(n.query.q,h.snippet),' <a href="').concat(h.url,'">').concat(r("instantAnswer.readMore"),"</a>")}}),(0,l.jsx)("button",{className:p.showNext,type:"button",onClick:function(){f((function(e){var n=t.
1webPages.value.indexOf(e);return t.webPages.value[n+1]||t.webPages.value[0]})),x.current+=1},children:r("instantAnswer.showNext")})]}),(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:h.url,className:"".concat(c," ").concat(p.link),children:[(0,l.jsxs)("span",{className:a,children:[(0,l.jsx)(se,{className:d,src:"https://www.google.com/s2/favicons?domain=".concat(g[0]),alt:h.name,loading:"lazy"}),(0,l.jsx)("cite",{children:b})]}),(0,l.jsx)("h4",{className:o,style:{margin:0},children:h.name})]})})]}),h.deepLinks&&(0,l.jsx)(Qn,{data:h.deepLinks})]}),(0,l.jsxs)("footer",{className:p.footer,children:[r("instantAnswer.disclaimer"),(0,l.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://forms.gle/WrjFPXwRUW5xwEH16",children:r("dictionary.feedback")})]})]},h.url)};or.propTypes={data:d().object.isRequired,router:d().object.isRequired},or.isWebPageValid=function(e){var t=e.snippet,n=e.url,r=t.toLowerCase();return!nr.find((function(e){return r.match(e)}))&&!rr.find((function(e){return n.match(e)}))};var ar=or,sr=n(91347),lr=n(41423),cr=n(15255),dr=n(43776),ur=n(38799),pr=n(282),xr=n(17812),mr=n(57118),hr=n(96977),fr=n(91366),gr=n(97429),br=n(78230),vr=n(70945),wr=function(e,t){switch(t.type){case"SET":return(0,r.Z)((0,i.Z)((0,r.Z)({},e),{timerRunning:!0,timerFinished:!1}),t.payload);case"RESET":return(0,r.Z)((0,i.Z)((0,r.Z)({},e),{timer:e.initialTimer,timerOnStop:e.initialTimer,displayValue:(0,vr.Nu)(e.initialTimer,"timerInput"),timerRunning:!1}),t.payload);case"UPDATE":return(0,r.Z)({},e,t.payload);case"END":return(0,i.Z)((0,r.Z)({},e),{timerRunning:!1,timerFinished:!0,timer:0,timerOnStop:0,initialTimer:0,displayValue:"00h 00m 00s",inputDigits:[0,0,0,0,0,0]});case"MANUAL_INPUT":return(0,r.Z)((0,i.Z)((0,r.Z)({},e),{timerFinished:!1,inputStandby:!1}),t.payload);case"STOP":return(0,i.Z)((0,r.Z)({},e),{timerRunning:!1,timerOnStop:e.timer});case"INPUT_FOCUS":return(0,i.Z)((0,r.Z)({},e),{displayValue:(0,vr.Nu)((0,vr.fF)(e.displayValue),"timerInput"),inputStandby:!0});case"INPUT_BLUR":return(0,r.Z)((0,i.Z)((0,r.Z)({},e),{inputStandby:!1}),t.payload);case"TOGGLE_SOUND":return(0,i.Z)((0,r.Z)({},e),{withSound:!e.withSound});case"TOGGLE_FULLSCREEN":return(0,i.Z)((0,r.Z)({},e),{fullScreen:!e.fullScreen});default:return e}},yr=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints;e.isDark;return{visuallyHidden:{position:"absolute",height:"1px",width:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",whiteSpace:"nowrap"},formContainer:{padding:"20px 16px","&:fullscreen":(0,g.Z)({display:"flex",flexDirection:"column",justifyContent:"center",background:"#fff","& .MuiInputBase-root":{margin:"0 auto",fontSize:140,color:"#000"},"& .MuiSvgIcon-root":{color:"#999"}},n.down("xs"),{"& .MuiInputBase-root":{fontSize:70}})},timeInput:{maxWidth:"12ch",fontSize:62,color:t.textColor2,pointerEvents:function(e){return e.timerRunning?"none":"auto"},"&:after":{borderBottom:t.textColor2},"&:before":{borderBottom:t.textColor2},"& input":{textAlign:"center",width:"12ch",caretColor:"transparent",opacity:function(e){return e.inputStandby?"0.3":"1"}},"& input:focus":{width:"12ch"}},buttonsContainer:{boxSizing:"border-box",margin:"1.5em -16px 0",padding:"16px 16px 0",borderTop:"1px solid #dfe1e5"},utilityIcons:{float:"right","& button:hover":{background:"transparent"}},progressBar:{borderTop:"3px solid ".concat(t.textColor4),transform:"translateY(-18px)",margin:"0 -16px",width:function(e){return e.timerFinished?"calc(100% + 32px)":"".concat(e.progress,"%")}}}})),jr=function(e){var t=e.timer,n={timer:t,timerOnStop:t,initialTimer:t,timerRunning:!1,displayValue:(0,vr.Nu)(t,"timerRunning"),inputDigits:(0,vr.JA)((0,vr.Nu)(t,"timerInput")),timerFinished:!1,withSound:!0,fullScreen:!1,inputStandby:!1},r=(0,o.Z)((0,k.$)(),1)[0],i=(0,u.useReducer)(wr,n),s=i[0],c=i[1],d=(0,u.useRef)(),p=(0,u.useRef)(),x=function(){p.current.pause(),p.current.currentTime=0},m=yr({progress:(0,vr.Uh)(Number(s.timer),Number(s.initialTimer)),timerRunning:s.timerRunning,timerFinished:s.timerFinished,inputStandby:s.inputStandby}),h=function(e){0===e?(c({type:"END"}),s.withSound&&p.current.play()):c({type:"UPDATE",payload:{timer:e,displayValue:(0,vr.Nu)(e,"timerRunning")}})},f=function(){c({type:"STOP"})},g=function(){c({type:"TOGGLE_SOUND"})},b=function(){c({type:"TOGGLE_FULLSCREEN"}),(0,vr.en)(d.current,s.fullScreen)},v=(0,br.compose)(br.isNaN,parseInt);return s.timerRunning?setTimeout((function(){return h(s.timer-1e3)}),1e3):s.timer!==s.timerOnStop&&h(s.timerOnStop),(0,u.useEffect)((function(){t&&(f(),setTimeout((function(){return c({type:"SET",payload:{timer:t,displayValue:(0,vr.Nu)(t,"timerRunning"),inputDigits:(0,vr.JA)((0,vr.Nu)(t,"timerInput")),initialTimer:t,timerOnStop:t,timerRunning:!1}})}),1e3))}),[t]),(0,l.jsxs)("form",{ref:d,onSubmit:function(e){(0,vr.t)(),p.current.play().then((function(){x()})),e.preventDefault(),s.timerRunning?f():function(){var e=(0,vr.fF)(s.displayValue);e&&c({type:"SET",payload:{timer:e,displayValue:(0,vr.Nu)(e,"timerRunning"),initialTimer:s.timerOnStop>0?s.initialTimer:e}})}(),s.withSound&&s.timerFinished&&x()},onKeyDown:function(e){e.stopPropagation();var t=e.key;if(!("Backspace"!==t&&v(t)||s.timerRunning)){var n=(0,a.Z)(s.inputDigits);if("Backspace"===t)n=[0].concat((0,a.Z)(n.splice(0,n.length-1)));else{if(0!==(n=s.inputStandby?[0,0,0,0,0,0]:n)[0])return;var r=(0,pe.Z)(n).slice(1);n=(0,a.Z)(r).concat([parseInt(t,10)])}var i="".concat(n[0]).concat(n[1],"h ").concat(n[2]).concat(n[3],"m ").concat(n[4]).concat(n[5],"s");
1c({type:"MANUAL_INPUT",payload:{displayValue:i,inputDigits:n}})}},className:m.formContainer,children:[(0,l.jsx)(ur.Z,{onFocus:function(){c({type:"INPUT_FOCUS"})},onBlur:function(){var e=(0,vr.fF)(s.displayValue),t=(0,vr.Nu)(e,"timerRunning");c({type:"INPUT_BLUR",payload:{displayValue:t,initialTimer:e!==s.timerOnStop?e:s.initialTimer,timerOnStop:e!==s.timerOnStop?e:s.timerOnStop}})},value:s.displayValue,type:"text",className:m.timeInput}),(0,l.jsxs)("div",{className:m.buttonsContainer,children:[(0,l.jsx)("div",{className:m.progressBar}),(0,l.jsxs)(pr.Z,{className:"submitButton",variant:"contained",size:"small",type:"submit",disableElevation:!0,children:[s.timerRunning&&r("timer.stop"),!s.timerRunning&&(s.timerFinished?r("timer.ok"):r("timer.start"))]}),(0,l.jsx)(pr.Z,{className:"resetButton",variant:"contained",type:"button",onClick:function(e){e.preventDefault(),x(),s.timer===s.initialTimer?c({type:"END"}):c({type:"RESET"})},disableElevation:!0,children:r("timer.reset")}),(0,l.jsxs)("div",{className:m.utilityIcons,children:[s.withSound&&(0,l.jsx)(xr.Z,{onClick:g,"aria-label":r("timer.toggleSound"),children:(0,l.jsx)(gr.Z,{className:"!text-2xl"})}),!s.withSound&&(0,l.jsx)(xr.Z,{onClick:g,"aria-label":r("timer.toggleSound"),children:(0,l.jsx)(fr.Z,{className:"!text-2xl"})}),!s.fullScreen&&(0,l.jsx)(xr.Z,{onClick:b,"aria-label":r("timer.toggleFullScreen"),children:(0,l.jsx)(mr.Z,{className:"!text-2xl"})}),s.fullScreen&&(0,l.jsx)(xr.Z,{onClick:b,"aria-label":r("timer.toggleFullScreen"),children:(0,l.jsx)(hr.Z,{className:"!text-2xl"})}),(0,l.jsx)("audio",{ref:p,src:"https://assets.oceanhero.today/static/alarm_sound.mp3"})]})]})]})},kr=function(e,t){switch(t.type){case"START":return(0,i.Z)((0,r.Z)({},e),{startedAt:Date.now()-e.startedAt,stopWatchRunning:!0});case"INCREMENT":return(0,r.Z)({},e,t.payload);case"STOP":return(0,i.Z)((0,r.Z)({},e),{startedAt:Date.now()-e.startedAt,stopWatchRunning:!1});case"RESET":return(0,i.Z)((0,r.Z)({},e),{startedAt:0,stopWatchRunning:!1,displayValue:(0,vr.Nu)(0,"stopWatch")});case"TOGGLE_FULLSCREEN":return(0,i.Z)((0,r.Z)({},e),{fullScreen:!e.fullScreen});default:return e}},Sr=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints;return{visuallyHidden:{position:"absolute",height:"1px",width:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",whiteSpace:"nowrap"},formContainer:{padding:"20px 16px","&:fullscreen":(0,g.Z)({display:"flex",flexDirection:"column",justifyContent:"center",padding:0,background:"#fff","& > div":{width:"100%",margin:"0 auto",fontSize:130,color:"#000",textAlign:"center"},"& .MuiSvgIcon-root":{color:"#999"}},n.down("xs"),{"& > div":{fontSize:70}})},valueDisplay:{maxWidth:"12ch",padding:"10px 16px",fontSize:62,color:t.textColor2},buttonsContainer:{boxSizing:"border-box",margin:"1.5em -16px 0",padding:"16px 16px 0",borderTop:"1px solid #dfe1e5"},utilityIcons:{float:"right","& button:hover":{background:"transparent"}}}})),Cr=function(){var e=(0,o.Z)((0,k.$)(),1)[0],t=(0,u.useReducer)(kr,{displayValue:"0s 00",startedAt:0,stopWatchRunning:!1,fullScreen:!1}),n=t[0],r=t[1],i=(0,u.useRef)(),a=Sr(),s=function(){r({type:"TOGGLE_FULLSCREEN"}),(0,vr.en)(i.current,n.fullScreen)};return n.stopWatchRunning&&setTimeout((function(){return e=Date.now()-n.startedAt,void r({type:"INCREMENT",payload:{displayValue:(0,vr.Nu)(e,"stopWatch")}});var e}),50),(0,l.jsxs)("form",{ref:i,onSubmit:function(e){e.preventDefault(),(0,vr.t)(),n.stopWatchRunning?r({type:"STOP"}):r({type:"START"})},className:a.formContainer,children:[(0,l.jsx)("div",{className:a.valueDisplay,children:n.displayValue}),(0,l.jsxs)("div",{className:a.buttonsContainer,children:[(0,l.jsx)(pr.Z,{className:"submitButton",variant:"contained",size:"small",type:"submit",disableElevation:!0,children:n.stopWatchRunning?e("timer.stop"):e("timer.start")}),(0,l.jsx)(pr.Z,{className:"resetButton",variant:"contained",type:"button",onClick:function(e){e.preventDefault(),r({type:"RESET"})},disableElevation:!0,children:e("timer.reset")}),(0,l.jsxs)("div",{className:a.utilityIcons,children:[!n.fullScreen&&(0,l.jsx)(xr.Z,{onClick:s,"aria-label":e("timer.toggleFullScreen"),children:(0,l.jsx)(mr.Z,{className:"!text-2xl"})}),n.fullScreen&&(0,l.jsx)(xr.Z,{onClick:s,"aria-label":e("timer.toggleFullScreen"),children:(0,l.jsx)(hr.Z,{className:"!text-2xl"})})]})]})]})},Nr=(0,w.Z)((function(e){var t=e.colors,n=e.isOcean,r=e.breakpoints;return{visuallyHidden:{position:"absolute",height:"1px",width:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",whiteSpace:"nowrap"},container:(0,g.Z)({width:"calc(100% + 32px)",maxWidth:618,border:n?"none":"1px solid #dfe1e5",borderRadius:8,margin:".75em 0 1.5em",background:t.backgroundColor9,"& .MuiTabs-root":{minHeight:0},"& .MuiTab-labelIcon":{minHeight:"48px",paddingTop:0},"& MuiTouchRipple-root":{display:"none"},"& .MuiTab-wrapper":{flexDirection:"row",fontSize:12,color:t.textColor2,"& > *:first-child":{marginRight:"5px",marginBottom:0}},"& .Mui-selected":{color:t.textColor4},"& .MuiTabs-indicator":{backgroundColor:t.textColor4},"& svg":{color:t.textColor3,fontSize:16},"& button":{height:30,minWidth:64,padding:"0 8px",fontWeight:600,fontSize:12,borderRadius:2},"& .submitButton":{backgroundColor:"#4d90fe",color:"#fff"},"& .resetButton":{backgroundColor:"#fff",border:"1px solid #dfe1e5",color:"#4d90fe",fontWeight:600,fontSize:12,marginLeft:16}},r.down("xs"),{width:"100%",margin:".75em 0"})}})),Zr=function(e){var t=e.data,n=t.mode,r=t.timer,i=Nr(),a=(0,o.Z)((0,k.$)(),1
1)[0],s=(0,u.useState)(n),c=s[0],d=s[1],p=(0,u.useState)(r||0),x=p[0],m=p[1];return(0,u.useEffect)((function(){d(n),m(r)}),[n,r]),(0,le.dD)()?null:(0,l.jsxs)("div",{className:i.container,children:[(0,l.jsxs)(sr.Z,{value:c,variant:"fullWidth",children:[(0,l.jsx)(lr.Z,{value:"timer",onClick:function(){return d("timer")},icon:(0,l.jsx)(cr.Z,{}),label:a("timer.timer")}),(0,l.jsx)(lr.Z,{value:"stopwatch",onClick:function(){return d("stopwatch")},icon:(0,l.jsx)(dr.Z,{}),label:a("timer.stopwatch")})]}),"timer"===c&&(0,l.jsx)(jr,{timer:x}),"stopwatch"===c&&(0,l.jsx)(Cr,{})]})},Rr={WebPages:ue,Map:je,News:We,Images:Ve,Videos:Je,TimeZone:nt,Computation:M()((function(){return Promise.all([n.e(3662),n.e(9834),n.e(1506),n.e(1976)]).then(n.bind(n,43729))}),{loadableGenerated:{webpack:function(){return[43729]}}}),Facts:vt,Weather:gn,RelatedQnA:Dn,Sidebar:W,Timer:Zr,Dictionary:Vn,AdBlock:Fn,InstantAnswer:ar},Tr=function(e,t){var n,r=(0,Qe.dD)(t.answerType),i=e[r];return"computation"!==r||i?i?["webPages"].includes(r)?null===(n=i.value)||void 0===n?void 0:n[t.resultIndex]:i:null:{}},Lr=function(){return null},zr=function(e,t,n,o){var s=t.query,l=s.q,c=s.offset,d=function(e){var t,n,o,s,l;if(!e||!e.rankingResponse)return[];var c=(null===e||void 0===e||null===(t=e.rankingResponse)||void 0===t||null===(n=t.mainline)||void 0===n?void 0:n.items)?(0,a.Z)(e.rankingResponse.mainline.items):[];return(null===e||void 0===e||null===(o=e.rankingResponse)||void 0===o||null===(s=o.sidebar)||void 0===s||null===(l=s.items)||void 0===l?void 0:l.find((function(e){return"RelatedSearches"===e.answerType})))&&!c.find((function(e){return"RelatedSearches"===e.answerType}))&&c.push({answerType:"RelatedSearches",value:{id:"https://www.bingapis.com/api/v7/#RelatedSearches"}}),c.filter((function(e){return!!e.value})).filter((function(e){return!!Rr[e.answerType]})).map((function(t){return{item:t,componentData:t.componentData||Tr(e,t)}})).filter((function(e){return!!e.componentData})).reduce((function(e,t,n,o){var s=t.item,l=t.componentData;if("WebPages"===s.answerType&&l.deepLinks&&o.findIndex((function(e){return!!e.componentData.deepLinks}))<n)return(0,a.Z)(e).concat([{item:s,componentData:(0,i.Z)((0,r.Z)({},l),{deepLinks:null})}]);if(2===n&&"RelatedQnA"===e[0].item.answerType){var c=e.shift();return(0,a.Z)(e).concat([{item:s,componentData:l},c])}return(0,a.Z)(e).concat([{item:s,componentData:l}])}),[]).map((function(e,t){return(0,i.Z)((0,r.Z)({},e),{index:t})}))}(e),u=d.length&&"RelatedSearches"===d[d.length-1].item.answerType?[d.pop()]:[],p=(0,a.Z)(d).concat((0,a.Z)(u));!function(){var t,r,i;if(d.length&&!c&&e)if(!function(e){return!!e.match(new RegExp(/[Cc]alc\b|[Cc]alculator\b|[Cc]aculator\b|[Cc]aclulator\b|[Cc]alutator\b|[Cc]lculator\b|[Cc]alclaulator\b/g))}(l)||e.computation)if(e.map)p.unshift({item:{answerType:"Map",value:{id:"map"}},componentData:e.map});else if(e.weather&&e.weather.daily)p.unshift({item:{answerType:"Weather",value:{id:"weather"}},componentData:e.weather});else if((null===(t=e.dictionary)||void 0===t?void 0:t.dictionary)||"dictionary"===l.toLowerCase())p.unshift({item:{answerType:"Dictionary",value:{id:"dictionary"}},componentData:e.dictionary||{}});else{var o=null===(r=e.webPages)||void 0===r||null===(i=r.value)||void 0===i?void 0:i.find((function(e){return e.url.match("wikipedia.org")}));if(n&&o)p.unshift({item:{answerType:"Sidebar",value:{id:"wikipedia"}},componentData:o});else{var a=(0,vr.UY)(l);a&&p.unshift({item:{answerType:"Timer",value:{id:"timer"}},componentData:a})}}else"Computation"===p[0].answerType?p[0].value="calculator":p.unshift({item:{answerType:"Computation",value:"calculator"},componentData:{}})}(),p.unshift({item:{answerType:"AdBlock",value:{id:"ad-block"}},componentData:{}});var x=p.find((function(e){return"InstantAnswer"===e.item.answerType}));return p.reduce((function(e,t){return x&&("Images"===t.item.answerType||"WebPages"===t.item.answerType&&t.componentData.id===x.componentData.id)?e:(0,a.Z)(e).concat([t])}),[])},Ir=function(e){var t=e.data,n=e.router,r=e.isMobile,i=(e.isAdsReturned,e.q),o=e.sendClickPing;return t?zr(t,n,r).map((function(e){var t,r=e.item,a=e.componentData,s=e.index,c=Rr[r.answerType];if(!c)return null;var d=(null===(t=r.value)||void 0===t?void 0:t.id)||"".concat(r.answerType,"-").concat(s);return(0,l.jsx)(y.SV,{FallbackComponent:Lr,children:(0,l.jsx)(c,{item:r,data:a,index:s,router:n,q:i,sendClickPing:o},i)},d)}
1)).filter(Boolean):[]};Ir.whyDidYouRender=!0,Ir.propTypes={data:d().object,router:d().object.isRequired,isMobile:d().bool.isRequired,isAdsReturned:d().bool.isRequired,sendClickPing:d().func},Ir.defaultProps={data:null};var Dr=Ir,qr=n(95261),Ar=n(7791),Pr=n(15318),Br=(0,w.Z)((function(e){var t=e.isOcean,n=e.isDark;return{productAdItem:{display:"flex",flexDirection:"column",backgroundColor:n?"#303134":t?"rgba(255, 255, 255, 0.07)":"#ffffff",border:"1px solid ".concat(n?"rgba(255, 255, 255, 0.2)":"rgb(218, 220, 224)"),borderRadius:"8px",overflow:"hidden",cursor:"pointer",transition:"box-shadow 0.2s",height:"100%",width:"128px",boxShadow:"none",textDecoration:"none","&:hover":{boxShadow:n||t?"0 2px 8px rgba(0,0,0,0.3)":"0 2px 8px rgba(0,0,0,0.1)"},"@media (max-width: 768px)":{borderRadius:"8px"}},imageContainer:{height:"183px",width:"128px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff",margin:0,overflow:"hidden",position:"relative"},productImage:{height:"100%",width:"100%",objectFit:"contain",margin:"0 auto",display:"block",maxHeight:"100%",maxWidth:"100%"},adBadge:{position:"absolute",top:"6px",left:"6px",backgroundColor:"rgba(0, 0, 0, 0.55)",color:"#ffffff",fontSize:"9px",fontWeight:600,padding:"1px 4px",borderRadius:"2px",zIndex:1,letterSpacing:"0.2px"},detailsContainer:{padding:"12px 8px",paddingBottom:"8px",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},productName:{fontSize:"14px",marginBottom:"2px",color:t||n?"#fff":"#1a0dab",fontWeight:400,textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical"},price:{fontSize:"14px",marginBottom:"4px",color:t?"rgba(255, 255, 255, 0.77)":n?"#bdc1c6":"#545454"},sellerName:{fontSize:"14px",marginBottom:"2px",whiteSpace:"wrap",color:t?"rgba(255, 255, 255, 0.77)":n?"#bdc1c6":"#545454"},lowPrice:{fontSize:"12px",marginTop:"4px",color:t?"rgba(255, 255, 255, 0.6)":n?"#9aa0a6":"#5f6368"}}})),Er=function(e){var t,n=e.ad,r=e.sendClickPing,i=Br();if(!n||!n.offer)return null;var o,a=n.offer,s=a.itemOffered,c=a.seller,d=a.price,u=a.priceCurrencySymbol,p=a.lowPrice,x=a.url,m=a.urlPingSuffix,h=(null===s||void 0===s?void 0:s.name)||"",f=(o=h)?o.length<=20?o:o.substring(0,20)+"...":"",g=(null===s||void 0===s||null===(t=s.image)||void 0===t?void 0:t.contentUrl)||"",b=(null===c||void 0===c?void 0:c.name)||"",v=function(e){return e?"".concat(u||"$").concat(e.toFixed(2)):""};return(0,l.jsxs)("a",{href:x,target:"_blank",rel:"noopener",className:i.productAdItem,onClick:function(){!function(){var e=Number(Ar.Z.getItem("adClickCounter")||0)+1;Ar.Z.setItem("adClickCounter",e);var t=(0,Pr.Nt)();if(t){var n=new URLSearchParams(window.location.search).get("q");(new Image).src="https://p.oceanhero.today/?click_id=".concat(t,"&f=").concat(n,"&p=p5")}}(),r&&m&&r(m)},children:[(0,l.jsxs)("div",{className:i.imageContainer,children:[(0,l.jsx)("span",{className:i.adBadge,children:"Ad"}),g&&(0,l.jsx)("img",{src:g,alt:h,className:i.productImage,loading:"lazy"})]}),(0,l.jsxs)("div",{className:i.detailsContainer,children:[(0,l.jsx)("div",{className:i.productName,title:h,children:f}),d&&(0,l.jsx)("div",{className:i.price,children:v(d)}),b&&(0,l.jsx)("div",{className:i.sellerName,children:b}),p&&p!==d&&(0,l.jsxs)("div",{className:i.lowPrice,children:["Low price: ",v(p)]})]})]})},Fr=n(88995),Wr=function(e,t){var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp("(".concat(n,")"),"gi");return t.split(r).map((function(t){return{text:t,isQuery:t.toLowerCase()===e.toLowerCase()}}))},Or=(0,w.Z)((function(e){var t,n=e.colors,r=e.breakpoints;return{list:(0,g.Z)({display:"grid",gridTemplateColumns:"repeat(2, 1fr)",listStyle:"none",fontSize:"14px",lineHeight:"20px",marginTop:"8px",padding:0},r.down("xs"),{display:"block"}),listElement:(t={"& a, & a:visited":{color:n.textColor9}},(0,g.Z)(t,r.up("sm"),{margin:"3px 0","& .iconWrapper":{display:"none"}}),(0,g.Z)(t,r.down("xs"),{display:"flex",position:"relative",alignItems:"center",boxSizing:"border-box",maxHeight:"none",minHeight:"48px","&:not(:first-of-type)":{borderTop:"1px solid #DFE1E5"},"& b":{fontWeight:"normal !important"},"& a, & a:visited":{color:n.textColor25,paddingLeft:"12px"},"& .iconWrapper":{height:"20px",lineHeight:"20px",width:"20px",margin:"2px",padding:"8px 7px 8px 9px","& svg":{height:"100%",width:"100%",color:n.textColor36}}}),t),sectionTitle:(0,g.Z)({fontSize:"20px",fontWeight:"normal",lineHeight:1.33,margin:"0",padding:"0 0 12px 0",color:n.textColor3},r.down("xs"),{color:n.textColor25,fontWeight:"bold",textTransform:"uppercase",fontSize:"12px",lineHeight:"12px",letterSpacing:"0.3px",paddingTop:"16px",paddingBottom:"8px"})}}
1)),Ur=function(e){return"/web?".concat(new URLSearchParams({q:e}).toString())},Mr=(0,Pr.Nt)(),Hr=function(e){var t=e.data,n=e.q,r=(0,k.$)().t,i=Or(),o=(0,le.dD)()?t.value.slice(0,4):t.value,a=(0,$.useRouter)(),s=function(){var e=(0,f.Z)(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),Mr&&((new Image).src="https://p.oceanhero.today/?click_id=".concat(Mr,"&p=p8&f=trc_related_searches")),a.push(Ur(n));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-8 hidden md:block",children:[(0,l.jsx)("h2",{className:i.sectionTitle,children:r("search.web.relatedSearches.title")}),(0,l.jsx)("div",{className:"grid gap-y-2 gap-x-4 grid-cols-2",children:o.map((function(e){return(0,l.jsx)("div",{onClick:function(t){return s(t,e.text)},children:(0,l.jsx)("div",{className:"h-12 w-[285px] bg-[#f1f3f4] ocean:bg-white/20 dark:bg-white/10 ocean:text-white cursor-pointer group rounded-full flex justify-start items-center px-4",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Fr.Z,{className:"text-gray-400 mx-2 ocean:text-white/80",style:{fontSize:20}}),(0,l.jsx)("span",{className:"ml-4 group-hover:underline text-black ocean:text-white dark:text-white",children:Wr(n,e.displayText).map((function(t,n){return(0,l.jsx)("span",{className:"".concat(t.isQuery?"font-normal":"font-bold"),children:t.text},"".concat(e.text,"-").concat(n))}))})]})})},e.text)}))})]}),(0,l.jsxs)("div",{className:"mb-3 md:hidden bg-white mt-0 ocean:bg-white/20 dark:bg-white/10 ocean:text-white",children:[(0,l.jsx)("h2",{className:"px-4 font-normal text-xl pt-5 pb-2 m-0 dark:text-white",children:r("search.web.relatedSearches.title")}),(0,l.jsx)("div",{className:"flex flex-col px-4",children:o.slice(0,6).map((function(e){return(0,l.jsx)("a",{href:Ur(e.text),className:"first-of-type:border-t-[0px] border-t-[1px] border-solid border-0 border-gray-300 dark:border-white/[0.1]",onClick:function(t){return s(t,e.text)},children:(0,l.jsxs)("div",{className:"py-4 flex items-center justify-start gap-4 ",children:[(0,l.jsx)("div",{className:"flex items-center justify-center p-2 dark:bg-[var(--backgroundColor13)] rounded-full shrink-0 bg-gray-100 w-max",children:(0,l.jsx)(Fr.Z,{className:"text-gray-400 ocean:text-gray-500",style:{fontSize:24}})}),(0,l.jsx)("span",{className:"text-lg dark:text-white line-clamp-1 text-black ocean:text-white",children:e.displayText})]})},e.text)}))})]})]})};Hr.propTypes={data:d().object.isRequired};var _r=Hr,Vr=(0,Pr.Nt)(),$r=function(e){var t=e.data,n=e.page,r=(0,k.$)().t,i=(0,$.useRouter)(),o=i.query.q,a=function(){var e=(0,f.Z)(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),Vr&&((new Image).src="https://p.oceanhero.today/?click_id=".concat(Vr,"&p=p8&f=trc_related_searches")),i.push("/web?".concat(new URLSearchParams({q:n})));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,l.jsxs)("div",{className:"mt-4 hidden relative md:block first:mt-0 border-solid w-full border-[1px] ocean:text-white border-[#dfe1e5] rounded-md dark:border-white/10",style:{to
1p:n>1?"500px":0},children:[(0,l.jsx)("h2",{className:"m-0 px-4 py-3 text-[18px] font-normal border-b-[1px] border-[#dfe1e5] border-solid border-0 dark:text-white dark:border-white/10",children:r("search.web.relatedSearches.title")}),(0,l.jsx)("div",{className:"flex flex-col px-4 py-1",children:t.value.map((function(e){return(0,l.jsxs)("a",{href:"/web?".concat(new URLSearchParams({q:e.displayText})),onClick:function(t){return a(t,e.displayText)},className:"text-black dark:text-white dark:border-white/10 ocean:text-white group flex items-center justify-start border-b-[1px] border-[#dfe1e5] border-solid border-0 py-3 last:border-b-0",children:[(0,l.jsx)(Fr.Z,{className:"text-gray-400 mr-3 ocean:text-gray-100"}),(0,l.jsx)("span",{className:"group-hover:underline",children:Wr(o,e.displayText).map((function(t,n){return(0,l.jsx)("span",{className:"".concat(t.isQuery?"font-normal":"font-bold"),children:t.text},"".concat(e.displayText,"-").concat(n))}))})]},e.displayText)}))})]})},Gr=n(3703),Qr=n(9523),Yr=n(80366),Jr=n(76697),Xr=(0,w.Z)((function(e){var t=e.colors,n=e.breakpoints;return{button:(0,g.Z)({cursor:"pointer",textAlign:"center",whiteSpace:"nowrap",boxSizing:"border-box",outline:"0px",padding:"12px 28px",display:"inline-block",boxShadow:"none",borderRadius:"40px",fontSize:"18px",border:"none",backgroundColor:t.textColor8,color:t.textColor15},n.down("sm"),{padding:"10px 22px",fontSize:"16px"})}})),Kr=n(20640),ei=n.n(Kr),ti="/_next/static/media/seaweed-turtle.b52d38ed.webp",ni="/_next/static/media/seaweed-double.1e649de5.webp",ri=n(67692),ii=n(56608),oi=function(e){var t=e.setIsCollapsed,n=(0,u.useContext)(j.J6)[0],r=Xr(),i=(0,k.$)().t,o=(0,ii.pm)().showToast,a=(0,le.dD)(),s=(0,$.useRouter)(),c=(0,u.useContext)(Jr.uj),d=c.type,p=c.disableNotification,x=c.setShowNotification;return(0,u.useEffect)((function(){var e=function(){var e;("personalization"===d&&"yes"===n.personalizedResults||!(null===(e=window.CookieScript)||void 0===e?void 0:e.instance)||function(){var e=document.getElementById("cookiescript_injected_wrapper");return!!e&&"none"!==e.style.display}())&&x(!1)};return e(),window.addEventListener("CookieScriptLoaded",e),function(){return window.removeEventListener("CookieScriptLoaded",e)}}),[d,n.personalizedResults]),(0,l.jsxs)("div",{style:{gridColumn:2},className:"w-5/6 my-2 mx-auto md:w-auto relative py-5 px-5 sm:px-7 mb-5 md:mt-0 md:mx-0 border-solid border-[1px] rounded-xl border-[#E9E9E9] ocean:border-white/50 dark:border-gray-500 bg-white ocean:bg-white/[.06] dark:bg-transparent ocean:text-white dark:text-white/80 flex flex-col justify-between items-start",children:[(0,l.jsx)(Yr.Z,{className:"absolute top-3 right-3 cursor-pointer dark:text-white ocean:text-white",htmlColor:"#AAAAAA",fontSize:"small",onClick:p}),(0,l.jsx)("h2",{className:"text-[#212121] dark:text-white ocean:text-white w-11/12 sm:w-full text-2xl sm:text-3xl font-normal mt-0 mb-4",children:i("search.web.userNotifications.".concat(d,".title"))}),(0,l.jsx)("p",{className:"z-0 text-[#555555] dark:text-gray-400 ocean:text-white text-sm sm:text-md mt-0 mb-4",children:i("search.web.userNotifications.".concat(d,".description"))}),(0,l.jsxs)("div",{className:"flex gap-4",children:[i("search.web.userNotifications.".concat(d,".btnText"))&&(0,l.jsx)("button",{onClick:"chatbot"===d?function(){t(!1)}:"personalization"===d?function(){var e,t;(null===(e=window.CookieScript)||void 0===e||null===(t=e.instance)||void 0===t?void 0:t.show)?window.CookieScript.instance.show():console.warn("CookieScript instance is not available."),p()}:function(){s.push("https://about.oceanhero.today/how-it-works")},className:r.button,children:i("search.web.userNotifications.".concat(d,".btnText"))}),i("search.web.userNotifications.".concat(d,".shareText"))&&(0,l.jsx)("button",{onClick:function(){ei()((0,ri.Xk)()),o(ii.pC.Success,{title:"Text copied to clipboard, you're ready to share OceanHero! Just paste into a message, email, or text field to share"},4e3)},className:r.button,children:i("search.web.userNotifications.".concat(d,".shareText"))})]}),"personalization"!==d&&(0,l.jsx)("div",{className:"absolute ".concat("chatbot"===d?"bottom-4 right-6":"bottom-0 right-3"),children:(0,l.jsx)("img",{src:"chatbot"===d?Pn:"share"===d||"cleanup"===d?ni:ti,width:a?"chatbot"===d?70:"share"===d?100:120:"chatbot"===d?90:"share"===d?120:150,className:"-mb-1",alt:"Notification Image"})})]})},ai=n(24058),si=n(15995),li={hide:{opacity:0}
1,show:{opacity:1}},ci=function(e){var t=e.mainlineProductAds,n=e.page,o=e.sendClickPing,a=e.isOcean,s=e.isDark,c=(0,u.useRef)(null),d=(0,u.useState)(!1),p=d[0],x=d[1],f=(0,u.useState)(!1),g=f[0],b=f[1],v=function(){var e=c.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;if(!(n>r))return x(!1),void b(!1);x(t>10),b(t<n-r-10)}};(0,u.useEffect)((function(){v();var e=c.current;return e&&(e.addEventListener("scroll",v),window.addEventListener("resize",v)),function(){e&&e.removeEventListener("scroll",v),window.removeEventListener("resize",v)}}),[t]);var w=function(e){var t=c.current;if(t){var n="left"===e?t.scrollLeft-3e3:t.scrollLeft+3e3;t.scrollTo({left:n,behavior:"smooth"})}},y={position:"absolute",top:"50%",transform:"translateY(-50%)",width:"40px",height:"40px",borderRadius:"50%",border:"none",backgroundColor:a||s?"rgba(255, 255, 255, 0.9)":"#fff",boxShadow:"0 4px 12px rgba(0,0,0,0.25)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:10,transition:"all 0.2s ease"},j={color:a||s?"#303134":"#5f6368",fontSize:"24px"},k={position:"absolute",top:"20px",bottom:"0",width:"80px",pointerEvents:"none",zIndex:5},S=function(e){var t=s?"32, 33, 36":"255, 255, 255";return"left"===e?"linear-gradient(to right, rgba(".concat(t,", 1), rgba(").concat(t,", 0))"):"linear-gradient(to left, rgba(".concat(t,", 1), rgba(").concat(t,", 0))")};return(0,l.jsxs)("div",{style:{marginBottom:"30px",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",gridColumn:"2/4"},children:[(0,l.jsx)("div",{style:{fontSize:"14px",fontWeight:400,color:s?"rgba(255, 255, 255, 0.9)":a?"rgba(255, 255, 255, 0.45)":"#55595d",marginBottom:"8px",paddingLeft:"8px",paddingTop:"8px"},children:"Sponsored"}),!a&&p&&(0,l.jsx)("div",{style:(0,i.Z)((0,r.Z)({},k),{left:"0",background:S("left")})}),!a&&g&&(0,l.jsx)("div",{style:(0,i.Z)((0,r.Z)({},k),{right:"0",background:S("right")})}),p&&(0,l.jsx)("button",{onClick:function(){return w("left")},style:(0,i.Z)((0,r.Z)({},y),{left:"8px"}),onMouseEnter:function(e){e.currentTarget.style.backgroundColor=a||s?"#fff":"#f8f9fa",e.currentTarget.style.boxShadow="0 6px 16px rgba(0,0,0,0.3)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=a||s?"rgba(255, 255, 255, 0.9)":"#fff",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.25)"},children:(0,l.jsx)(m.Z,{style:j})}),g&&(0,l.jsx)("button",{onClick:function(){return w("right")},style:(0,i.Z)((0,r.Z)({},y),{right:"8px"}),onMouseEnter:function(e){e.currentTarget.style.backgroundColor=a||s?"#fff":"#f8f9fa",e.currentTarget.style.boxShadow="0 6px 16px rgba(0,0,0,0.3)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=a||s?"rgba(255, 255, 255, 0.9)":"#fff",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.25)"},children:(0,l.jsx)(h.Z,{style:j})}),(0,l.jsxs)("div",{ref:c,id:"ad-mainline-products-".concat(n),style:{display:"flex",overflowX:"auto",overflowY:"hidden",gap:"8px",paddingBottom:"8px",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch",width:"100%"},children:[(0,l.jsx)("style",{children:"\n #ad-mainline-products-".concat(n,"::-webkit-scrollbar {\n display: none;\n }\n ")}),t.map((function(e,t){return(0,l.jsx)("div",{"data-impression-token":e.impressionToken,"data-page":n,style:{flexShrink:0},children:(0,l.jsx)(Er,{ad:e,sendClickPing:o})},"".concat(n,"-mainline-product-").concat(e.id||t))}))]})]})};ci.propTypes={mainlineProductAds:d().array.isRequired,page:d().number.isRequired,sendClickPing:d().func.isRequired,isOcean:d().bool,isDark:d().bool};var di=function(e){var t,n=e.data,r=e.loading,i=e.error,o=e.isSlow,a=e.page,s=e.router,c=e.hasAds,d=s.query.q,u=["Gem","a","d","s"," "].includes(d),p=null===n||void 0===n||null===(t=n.rankingResponse)||void 0===t?void 0:t.mainline;return u||n&&!i&&!p&&!c&&1===a?(0,l.jsx)(Qr.Z,{query:d,type:"web"}):o?(0,l.jsx)(y.Bc,{type:"isSlow"}):r?"":i?(0,l.jsx)(y.Bc,{type:i}):null};di.propTypes={loading:d().bool,error:d().oneOfType([d().string,d().bool]),isSlow:d().bool,data:d().object,page:d().number,router:d().object,hasAds:d().bool},di.defaultProps={loading:!1,error:null,isSlow:!1,data:null,hasAds:!1};var ui=function(e){var t=e.webPages;return t&&t.value.find((function(e){return e.url.match("wikipedia.org")}))},pi=window.innerWidth<768,xi=(0,Pr.Nt)(),mi=(0,u.memo)((function(e){var t,n,c,d=e.setIsCollapsed,m=e.classes,h=e.router,f=e.result,g=(e.loading,e.page),b=e.sendClickPing,v=(0,x.Z)(),w=v.isOcean,y=v.isDark,j=(f||{}).data,k=void 0===j?null:j,S=h.query.q;["Gem","a","d","s"," "].includes(S)&&(k=null);var C=null===k||void 0===k?void 0:k.ads,N=Number(h.query.offset)/Number(h.query.count)+1||1,Z=(0,u.useContext)(Gr.p).loading,R=(0,u.useRef)(null),T=(0,u.useContext)(Jr.uj),L=T.showNotification,z=T.setShowNotification,I=(0,u.useRef)(null),D=(0,u.useRef)(null),q=(0,u.useRef)(null),A=(0,u.useRef)(new Set),P=(0,u.useRef)(!1),B=(null===C||void 0===C?void 0:C.value)&&Array.isArray(C.value)?C.value.filter((function(e){return"Mainline"===e.position&&"Ads/TextAd"===e._type})):[],E=(null===C||void 0===C?void 0:C.value)&&Array.isArray(C.value)?C.value.filter((function(e){return"Mainline"===e.position&&"Ads/ProductAd"===e._type})):[],F=(null===C||void 0===C?void 0:C.value)&&Array.isArray(C.value)?C.value.filter((function(e){return"Bottom"===e.position&&"Ads/TextAd"===e._type})):[],U=(null===C||void 0===C?void 0:C.value)&&Array.isArray(C.value)?C.value.filter((function(e){return"Bottom"===e.position&&"Ads/ProductAd"===e._type})):[],M=new URLSearchParams(window.location.search).get("adStyle")||"default",H=Boolean(null===k||void 0===k?void 0:k.isAFSChannel);return(0,u.useEffect)((function(){var e,t;if(C&&C.impressionFeedbackUrl){var n=C.impressionFeedbackUrl;if(I.current!==n){var r=(null===C||void 0===C||null===(e=C.value)||void 0===e?void 0:e.filter((function(e){return"Mainline"===e.position})))||[],i=(null===C||void 0===C||null===(t=C.value)||void 0===t?void 0:t.filter((function(e){return"Bottom"===e.position})))||[],o=(0,a.Z)(r).concat((0,a.Z)(i));0!==o.length&&(I.current=n,setTimeout((function(){var e=o.map((function(e){var t=function(){var t=document.querySelector('[data-impression-token="'.concat(e.impressionToken,'"]'));if(!t)return!1;var n=t.getBoundingClientRect(),r=n.bottom-n.top,i=window.innerHeight,o=Math.max(n.top,0),a=Math.min(n.bottom,i);return Math.max(0,a-o)/r*100>=50}(),n={impressionToken:e.impressionToken,position:e.position,requireVisibilityFeedback:!t};return e.extensions&&e.extensions.length>0&&(n.extensions=e.extensions.map((function(e){var t={impressionToken:e.impressionToken};return e.siteLinks&&e.siteLinks.length>0&&(t.extensionItems=e.siteLinks.map((function(e){return{impressionToken:e.impressionToken}}))),t}))),n}));(0,ai.L)(C.impressionFeedbackUrl,e)}),300))}}}),[C]),(0,u.useEffect)((function(){if(C&&C.visibilityFeedbackUrl&&!H){q.current!==C.visibilityFeedbackUrl&&(q.current=C.visibilityFeedbackUrl,A.current=ne
1w Set,D.current&&(D.current.disconnect(),D.current=null));var e=new IntersectionObserver((function(e){var t=[];e.forEach((function(e){if(e.isIntersecting){var n=e.target,r=n.getAttribute("data-impression-token"),i=n.getAttribute("data-page");r&&i===String(g)&&!A.current.has(r)&&(A.current.add(r),t.push(r))}})),t.length>0&&C.visibilityFeedbackUrl&&(0,si.i)(C.visibilityFeedbackUrl,t)}),{root:null,rootMargin:"0px",threshold:.5});D.current=e;var t=setTimeout((function(){document.querySelectorAll('[data-impression-token][data-page="'.concat(g,'"]')).forEach((function(t){e.observe(t)}))}),100);return function(){clearTimeout(t),D.current&&D.current.disconnect()}}}),[C,g]),(0,u.useEffect)((function(){localStorage.getItem("mainlineAdsVisible")?localStorage.setItem("mainlineAdsVisible",!1):localStorage.setItem("currentSearchCount",localStorage.getItem("searchCount"))}),[]),(0,u.useEffect)((function(){(B.length>0||E.length>0)&&!localStorage.getItem("mainlineAdsVisible")&&localStorage.setItem("mainlineAdsVisible","true")}),[B,E]),(0,u.useEffect)((function(){if(localStorage.getItem("firstVisit")){var e=localStorage.getItem("firstVisit"),t=(new Date).getTime(),n=(t-e)/864e5;if(n>=30)return localStorage.setItem("firstVisit",t),void localStorage.setItem("notificationDisabled","false");n>=3&&"true"!==localStorage.getItem("notificationDisabled")&&(localStorage.setItem("notificationDisabled","false"),z(!0))}else{var r=(new Date).getTime();localStorage.setItem("firstVisit",r)}}),[]),(0,u.useEffect)((function(){var e,t,n;if(k&&(null===k||void 0===k||null===(e=k.webPages)||void 0===e?void 0:e.totalEstimatedMatches)&&(null===k||void 0===k||null===(t=k.webPages)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.length)&&!(N>4)&&!Z&&k){var r=function(){if(k&&!P.current&&window.innerHeight+window.scrollY+1e3>=document.body.offsetHeight){if(window.removeEventListener("scroll",r),P.current=!0,xi)(new Image).src="https://p.oceanhero.today/?click_id=".concat(xi,"&p=p8&f=trc_infinite_scroll");var e=Object.entries(h.query).filter((function(e){var t=(0,o.Z)(e,2),n=(t[0],t[1]);return"symbol"!==("undefined"===typeof n?"undefined":(0,s.Z)(n))})),t=new URLSearchParams(e),n=Number(t.get("offset"))||0,i=Number(t.get("count"))||10,a=n+i;if(2===a/i+1)if(xi)(new Image).src="https://p.oceanhero.today/?click_id=".concat(xi,"&p=p8&f=trc_on_first_scroll");t.set("offset",String(a)),t.set("count",String(i)),h.replace({pathname:h.pathname,query:Object.fromEntries(t.entries())},void 0,{scroll:!1}).finally((function(){P.current=!1}))}};return window.addEventListener("scroll",r),function(){return window.removeEventListener("scroll",r)}}}),[k]),(0,u.useEffect)((function(){var e;if(H&&"function"===typeof window._googCsa){var t="00688",n=(navigator.language||"en").split("-")[0],i=(0,r.Z)({pubId:"partner-pub-7274752227242058",query:h.query.q||"",styleId:"1199341888",adsafe:"high",resultsPageBaseUrl:window.location.origin+"/web",resultsPageQueryParam:"q",adPage:g,hl:n,relatedSearchTargeting:"query"},{channel:t}),o=(0,Pr.Nt)()||"",s=encodeURIComponent(h.query.q||"");i.clicktrackUrl="".concat(window.location.origin,"/api/afs-click?click_id=").concat(encodeURIComponent(o),"&q=").concat(s);var l=Math.min(700,window.innerWidth-32),c={container:"afscontainer-top-".concat(g),maxTop:4,width:l},d={container:"relatedsearches1",relatedSearches:6,width:l};(e=window)._googCsa.apply(e,["ads",i,c].concat((0,a.Z)(1===g&&window.innerWidth>=1280?[d]:[])))}}),[h.query.q,g,H]),(0,l.jsxs)("div",{className:m.container,ref:R,children:[L&&1===g&&(0,l.jsx)(oi,{setIsCollapsed:d}),H&&(0,l.jsx)("div",{style:{gridColumn:"2",backgroundColor:y?"#202124":w?"rgba(255,255,255,0.05)":"#ffffff"},children:(0,l.jsx)("div",{id:"afscontainer-top-".concat(g),className:"mx-4 md:mx-0",style:{marginBottom:"16px"}})}),!H&&C&&E.length>0&&(0,l.jsx)(ci,{mainlineProductAds:E,page:g,sendClickPing:b,isOcean:w,isDark:y}),(0,l.jsx)("div",{style:{gridColumn:"2/4"},children:!H&&C&&B.length>0&&(0,l.jsx)("div",{id:"ad-mainline-text-".concat(g),style:{},children:B.map((function(e,t){return(0,l.jsxs)("div",{"data-impression-token":e.impressionToken,"data-page":g,children:[(0,l.jsx)("div",{style:{fontSize:"14px",fontWeight:400,color:y?"rgba(255, 255, 255, 0.9)":w?"rgba(255, 255, 255, 0.45)":"#55595d",marginBottom:"8px"},className:"hidden md:block",children:"Sponsored"}),(0,l.jsx)(qr.Z,{ad:e,type:M,sendClickPing:b})]},"".concat(g,"-mainline-text-").concat(e.id||t))}))})}),(0,l.jsx)("div",{className:m.sidebarContainer,children:window.innerWidth>=1280&&k&&(ui(k)||(null===k||void 0===k?void 0:k.relatedSearches)||H)&&(0,l.jsx)("div",{className:m.sidebarContent,children:(0,l.jsx)(W,{data:ui(k),page:g,children:H?1===g&&(0,l.jsx)("div",{id:"relatedsearches1"}):(null===k||void 0===k?void 0:k.relatedSearches)&&(0,l.jsx)($r,{data:null===k||void 0===k?void 0:k.relatedSearches,page:g})})})}),(0,l.jsxs)("div",{style:{gridColumn:2},children:[(0,l.jsx)(di,(0,i.Z)((0,r.Z)({},f),{page:g,router:h,hasAds:B.length>0||E.length>0||F.length>0||U.length>0})),!!k&&(0,l.jsx)(Dr,{router:h,data:k,isMobile:pi,isAdsReturned:B.length>0||E.length>0,sendClickPing:b}),C&&U.length>0&&(0,l.jsxs)("div",{style:{marginBottom:"30px",width:"100%",maxWidth:"100%",overflow:"hidden"},children:[(0,l.jsx)("div",{style:{fontSize:"14px",fontWeight:400,color:y?"rgba(255, 255, 255, 0.9)":w?"rgba(255, 255, 255, 0.45)":"#55595d",marginBottom:"8px",paddingLeft:"8px"},children:"Sponsored"}),(0,l.jsx)("div",{id:"ad-bottom-products-".concat(g),style:(0,r.Z)({display:"flex",overflowX:"auto",overflowY:"hidden",gap:"8px",paddingBottom:"8px",scrollbarWidth:"thin",WebkitOverflowScrolling:"touch",width:"100%"},li.show,k?{}:li.hide),children:U.map((function(e,t){return(0,l.jsx)("div",{"data-impression-token":e.impressionToken,"data-page":g,style:{flexShrink:0},children:(0,l.jsx)(Er,{ad:e,sendClickPing:b})},"".concat(g,"-bottom-product-").concat(e.id||t))}))})]}),C&&F.length>0&&(0,l.jsx)("div",{id:"ad-bottom-text-".concat(g),style:(0,r.Z)({},li.show,k?{}:li.hide),children:F.map((function(e,t){return(0,l.jsxs)("div",{"data-impression-token":e.impressionToken,"data-page":g,children:[(0,l.jsx)("div",{style:{fontSize:"14px",fontWeight:400,color:y?"rgba(255, 255, 255, 0.9)":w?"rgba(255, 255, 255, 0.45)":"#55595d",marginBottom:"8px"},className:"hidden md:block",children:"Sponsored"}),(0,l.jsx)(qr.Z,{ad:e,type:M,sendClickPing:b})]},"".concat(g,"-bottom-text-").concat(e.id||t))}))}),!H&&!!k&&k.relatedSearches&&(0,l.jsx)(_r,{data:k.relatedSearches,q:h.query.q}),k&&!Z&&g===N&&g>4&&(null===k||void 0===k||null===(t=k.webPages)||void 0===t?void 0:t.totalEstimatedMatches)&&(null===k||void 0===k||null===(n=k.webPages)||void 0===n||null===(c=n.value)||void 0===c?void 0:c.length)?(0,l.jsx)(O.Z,{}):"",Z&&g===N&&(0,l.jsx)("div",{className:"flex w-full items-center justify-center py-1",children:(0,l.jsx)(p.IDg,{className:"animate-spin text-3xl text-gray-600 ocean:text-white"})})]})]})}),(function(e,t){return e.result===t.result&&e.classes===t.classes&&e.router.asPath===t.router.asPath&&e.page===t.page}));mi.displayName="WebPage",mi.propTypes={classes:d().object.isRequired,router:d().object.isRequired,result:d().object,setIsCollapsed:d().func,sendClickPing:d().func,page:d().number,loading:d().bool},mi.defaultProps={result:null,page:1,loading:!1};var hi=mi},95261:function(e,t,n){var r=n(85893),i=n(67294),o=n(41120),a=n(7791),s=n(15318),l=(0,o.Z)((function(e){e.colors;var t=e.isOcean,n=e.isDark;e.breakpoints;return{adItem:{marginBottom:"30px",maxWidth:"650px",position:"relative",fontFamily:"arial, sans-serif",background:n?"#1f2123":t?"rgba(255, 255, 255, 0.07)":"#ffffff","@media (max-width: 768px)":{maxWidth:"100vw !important",padding:"12px 16px",margin:"1px 0 10px 0"}},sponsored:{fontSize:"14px",fontWeight:400,color:n?"rgba(255, 255, 255, 0.9)":t?"rgba(255, 255, 255, 0.45)":"#55595d",marginBottom:"8px",display:"none","@media (max-width: 767px)":{display:"block"}},header:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"5px"},faviconWrapper:{width:28,height:28,display:"flex",alignItems:"center",flexShrink:0,borderRadius:"50%",flexDirection:"row",justifyContent:"center",backgroundColor:n?"#303134":t?"rgba(255, 255, 255, 0.14)":"#f1f3f4"},favicon:{width:18,height:18,objectFit:"contain",pointerEvents:"none",verticalAlign:"middle"},domainInfo:{display:"flex",flexDirection:"column",gap:"2px"},domainLine:{display:"flex",alignItems:"center",gap:"6px"},domain:{fontSize:"14px",lineHeight:"20px",color:t?"rgba(255, 255, 255, 0.87)":n?"#e8eaed":"#3C4043",fontWeight:400,display:"flex",alignItems:"center",gap:"4px","& a":{color:"inherit",textDecoration:"none"}},dropdownArrow:{fontSize:"12px",color:"inherit",marginLeft:"-2px"},breadcrumb:{fontSize:"12px",lineHeight:"16px",color:t?"rgba(255, 255, 255, 0.6)":n?"#9aa0a6":"#5f6368"},titleLine:{marginBottom:"3px",marginTop:"6px"},title:{fontSize:"20px",lineHeight:"1.3",color:t||n?"#8ab4f8":"#1a0dab",textDecoration:"none",fontWeight:400,display:"inline-block",cursor:"pointer","&:hover":{textDecoration:"underline"},"&:visited":{color:t||n?"#c58af9":"#681da8"}},descriptionWithBadge:{fontSize:"14px",lineHeight:"1.58",color:t?"rgba(255, 255, 255, 0.77)":n?"#bdc1c6":"#545454",display:"flex",alignItems:"flex-start",ga
1p:"6px",marginBottom:"16px"},adBadge:{display:"inline-flex",alignItems:"center",fontSize:"11px",lineHeight:"14px",color:t?"rgba(255, 255, 255, 0.6)":n?"#9aa0a6":"#70757a",fontWeight:600,border:"1px solid ".concat(t?"rgba(255, 255, 255, 0.3)":n?"rgba(255, 255, 255, 0.2)":"#dadce0"),borderRadius:"3px",padding:"1px 4px",flexShrink:0},descriptionText:{flex:1},siteLinksGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",columnGap:"44px",rowGap:"16px","@media (max-width: 768px)":{gridTemplateColumns:"1fr",columnGap:"0",rowGap:"12px"}},siteLinkItem:{display:"flex",flexDirection:"column",alignItems:"flex-start"},siteLinkTitle:{fontSize:"16px",lineHeight:"1.3",color:t||n?"#8ab4f8":"#1a0dab",textDecoration:"none",fontWeight:400,marginBottom:"2px",cursor:"pointer",display:"block","&:hover":{textDecoration:"underline"},"&:visited":{color:t||n?"#c58af9":"#681da8"}},siteLinkDescription:{"& p":{fontSize:"14px",marginBottom:0,marginTop:4,lineHeight:"1.43",color:t?"rgba(255, 255, 255, 0.77)":n?"#bdc1c6":"#4d5156"}}}}));t.Z=function(e){var t,n,o=e.ad,c=(e.type,e.sendClickPing),d=l();(0,i.useEffect)((function(){localStorage.getItem("mainlineAdsVisible")||localStorage.setItem("mainlineAdsVisible","true")}),[]);var u,p=function(e){!function(){var e=Number(a.Z.getItem("adClickCounter")||0)+1;a.Z.setItem("adClickCounter",e);var t=(0,s.Nt)();if(t){var n=new URLSearchParams(window.location.search).get("q");(new Image).src="https://p.oceanhero.today/?click_id=".concat(t,"&f=").concat(n,"&p=p5")}}(),c&&e&&c(e)},x=o.urlPingSuffix,m=function(e){if(!e)return"";try{return new URL(e.startsWith("http")?e:"https://".concat(e)).hostname.replace("www.","")}catch(t){return e.split("/")[0].replace("www.","")}}(o.displayUrl),h=(u=o.displayUrl)?u.replace("https://","").replace("http://",""):"",f="https://www.google.com/s2/favicons?domain=".concat(m,"&sz=64"),g=null===(t=o.extensions)||void 0===t?void 0:t.find((function(e){return"Ads/SiteLinkExtension"===e._type})),b=(null===g||void 0===g||null===(n=g.siteLinks)||void 0===n?void 0:n.slice(0,4))||[];return(0,r.jsxs)("div",{className:d.adItem,children:[(0,r.jsx)("div",{className:d.sponsored,children:"Sponsored"}),(0,r.jsxs)("div",{className:d.header,children:[(0,r.jsx)("div",{className:d.faviconWrapper,children:(0,r.jsx)("img",{src:f,alt:"",className:d.favicon,onError:function(e){e.currentTarget.style.display="none"}})}),(0,r.jsxs)("div",{className:d.domainInfo,children:[(0,r.jsx)("div",{className:d.domainLine,children:(0,r.jsx)("div",{className:d.domain,children:(0,r.jsx)("a",{href:o.url,target:"_blank",rel:"noopener",children:m})})}),(0,r.jsx)("div",{className:d.breadcrumb,children:h})]})]}),(0,r.jsx)("div",{className:d.titleLine,children:(0,r.jsx)("a",{href:o.url,target:"_blank",rel:"noopener",className:d.title,onClick:function(){return p(x)},children:o.title})}),o.description&&(0,r.jsx)("div",{className:d.descriptionWithBadge,children:(0,r.jsx)("div",{className:d.descriptionText,children:(0,r.jsx)("span",{children:o.description})})}),b.length>0&&(0,r.jsx)("div",{className:d.siteLinksGrid,children:b.map((function(e,t){var n=function(e){return e.linkPingSuffix}(e);return(0,r.jsxs)("div",{className:d.siteLinkItem,children:[(0,r.jsx)("a",{href:e.link,target:"_blank",rel:"noopener",className:d.siteLinkTitle,onClick:function(){return p(n)},children:e.text}),(e.descriptionLine1||e.descriptionLine2)&&(0,r.jsxs)("div",{className:d.siteLinkDescription,children:[(0,r.jsx)("p",{children:e.descriptionLine1}),(0,r.jsx)("p",{children:e.descriptionLine2})]})]},t)}))})]})}},70945:function(e,t,n){n.d(t,{JA:function(){return m},Nu:function(){return p},UY:function(){return u},Uh:function(){return x},en:function(){return h},fF:function(){return d},t:function(){return f}});var r=n(26042),i=n(69396),o=n(10253),a=n(29815),s=n(78230),l=(0,s.unary)(parseInt),c=function(e,t,n){var r=!1;return{h:["h","hou","hour","hours","hrs"],m:["m","min","minute","minutes","mins"],s:["s","sec","secs","second","seconds"],stopwatch:["stopwatch","open stopwatch","show stopwatch","stop watch"],timer:["timer","open timer","show timer"]}[t].forEach((function(t){n?r=r||e.endsWith(t):e===t&&(r=!0)})),r},d=function(e){var t,n=(0,s.unary)(parseInt),r=(0,o.Z)(e.split(" ").map(n),3),i=r[0],l=r[1],c=r[2];return t=(0,o.Z)([i,l,c].reduceRight((function(e,t){return"undefined"===typeof t||Number.isNaN(t)?[0].concat((0,a.Z)(e.filter((0,s.negate)((0,s.compose)(s.isUndefined,Number.isNaN))))):e}),[i,l,c]),3),1e3*(3600*(i=t[0])+60*(l=t[1])+(c=t[2]))},u=function(e){var t=e.toLowerCase();if(c(t,"stopwatch"))return{mode:"stopwatch"};if(c(t,"timer"))return{mode:"timer",timer:3e5};var n=t.split(" ");if(n.includes("timer")){var o=n.filter(l);if(!o.length)return null;var a=o.reduce((function(e,t){var o=n.indexOf(t),a=n[o+1];return c(t,"h","endsWith")||c(a,"h")?(0,i.Z)((0,r.Z)({},e),{h:"".concat(l(t))}):c(t,"m","endsWith")||c(a,"m")?(0,i.Z)((0,r.Z)({},e),{m:"".concat(l(t))}):c(t,"s","endsWith")||c(a,"s")?(0,i.Z)((0,r.Z)({},e),{s:"".concat(l(t))}):e}),{h:"00",m:"00",s:"00"});
1return{mode:"timer",timer:d("".concat(a.h,"h ").concat(a.m,"m ").concat(a.s,"s"))}}return null},p=function(e,t){var n=e,r=n/1e3,i=r/60,o=i/60,a=(0,s.compose)((function(e){return e>0?e<10?"0".concat(e):"".concat(e):null}),Math.floor),l=o&&a(o),c=i&&a(i%60),d=r&&a(r%60),u=n&&a(n%1e3/10);switch(t){case"timerRunning":return"".concat(l?"".concat(l,"h "):"").concat(c?"".concat(c,"m "):"".concat(l?"00m ":"")).concat(d?"".concat(d,"s "):"".concat("00s"));case"stopWatch":return"\n ".concat(l?"".concat(l,"h "):"","\n ").concat(c?"".concat(c,"m "):"","\n ").concat(d?"".concat(d,"s "):"00s","\n ").concat(u?"".concat(u):"00","\n ");default:return"".concat(l?"".concat(l,"h "):"00h ").concat(c?"".concat(c,"m "):"00m ").concat(d?"".concat(d,"s "):"00s")}},x=function(e,t){return 100-Math.floor(e/t*100)||0},m=function(e){return e.split("").map((0,s.unary)(parseInt)).filter((0,s.negate)(Number.isNaN))},h=function(e,t){t?document.exitFullscreen():null===e||void 0===e||e.requestFullscreen()},f=function(){try{var e=new AudioContext,t=e.createConstantSource(),n=e.createGain();n.gain.value=.001,t.connect(n),n.connect(e.destination),t.start()}catch(r){console.error("Could not create silent audio")}}},30546:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893),i=n(51490),o=n(11163),a=n(31567),s=(0,n(15318).Nt)();function l(e){var t=e.scroll,n=void 0!==t&&t,l=(0,o.useRouter)(),c=(0,a.$)().t;return(0,r.jsxs)("div",{className:"w-full justify-center box-border relative items-center flex px-4 md:px-0 bg-white dark:bg-transparent ocean:bg-transparent md:bg-transparent py-4 md:py-0 ",children:[(0,r.jsxs)("button",{onClick:function(){return function(){var e=new URLSearchParams(l.query),t=Number(e.get("offset"))||0,r=Number(e.get("count"))||10,i=t+r;e.set("offset",String(i)),e.set("count",String(r)),s&&((new Image).src="https://p.oceanhero.today/?click_id=".concat(s,"&p=p8&f=trc_load_more")),l.replace({pathname:l.pathname,query:e.toString()},void 0,{scroll:n})}()},className:"w-full md:w-72 py-2 dark:bg-[var(--backgroundColor13)] dark:text-[var(--textColor10)] z-[1] bg-[#f1f3f4] text-sm transition-colors flex border-none gap-2 items-center cursor-pointer justify-center rounded-full hover:bg-[#cdcdcd]",children:[c("search.web.relatedSearches.more"),(0,r.jsx)(i.Z,{className:"text-[#5e5e5e]"})]}),(0,r.jsx)("span",{className:"h-[2px] absolute w-full bg-[#f1f3f4] dark:bg-[var(--backgroundColor13)] ocean:bg-white/50 -z-[0] hidden md:block"})]})}},9523:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(85893);function i(e){var t=e.type,n=e.query;return(0,r.jsxs)("div",{className:"flex ocean:bg-transparent dark:bg-transparent ocean:text-white dark:text-[var(--textColor10)] flex-col items-start justify-start text-sm gap-3 max-w-lg bg-white md:bg-transparent px-4 py-4 -mt-2 md:mt-0",children:[(0,r.jsxs)("span",{children:["Your search - ",(0,r.jsx)("b",{children:n})," - did not match any ",t," results."]}),(0,r.jsx)("span",{children:"Suggestions:"}),(0,r.jsxs)("ul",{className:"pl-4 m-0",children:[(0,r.jsx)("li",{children:"Make sure all words are spelled correctly."}),(0,r.jsx)("li",{children:"Try different keywords."}),(0,r.jsx)("li",{children:"Try more general keywords."}),(0,r.jsx)("li",{children:"Try fewer keywords."})]})]})}},77779:function(e,t,n){var r=n(67294),i={isLeft:!0,isRight:!1},o=function(e,t){var n=t.payload,r=n.scrollLeft<5,i=n.scrollLeft+n.clientWidth>n.scrollWidth-5;return e.isLeft===r&&e.isRight===i?e:{isLeft:r,isRight:i}};t.Z=function(){var e=(0,r.useRef)(null),t=(0,r.useReducer)(o,i),n=t[0],a=t[1],s=(0,r.useCallback)((function(t){t&&(e.current=t,setTimeout((function(){a({payload:t})}),500))}),[]),l=(0,r.useCallback)((function(e){a({payload:e.target})}),[]),c=(0,r.useCallback)((function(t){var n;null===(n=e.current)||void 0===n||n.scrollTo(e.current.scrollLeft+t,0)}),[]);return(0,r.useMemo)((function(){return{ref:s,handleScroll:l,scrollBy:c,state:n}}),[l,s,c,n])}},98055:function(e,t,n){n.d(t,{LU:function(){return l},XF:function(){return a},ZU:function(){return s},dD:function(){return o}});var r=n(29815),i=n(30120),o=function(e){return e[0].toLowerCase()+e.substr(1)},a=function(e){return e.match(/(.+:\/\/)?([^/]+)(\/.*)*/i)[2]},s=function(e){return(e||"").replace(/<[^>]*>?/gm,"")},l=function(e){var t=i.nL.fromISO(e),n=[["hh","hours"],["mm","minutes"],["ss","
1seconds"]].reduce((function(e,n){return t.as(n[1])>1?(0,r.Z)(e).concat([n[0]]):e}),[]).join(":"),o=i.nL.fromISO(e).toFormat(n);return"Invalid Duration"===o?null:1===o.split(":").length?"00:"+o:o}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.