1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6750],{35525:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n,a=s(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let l=function(e){return a.createElement("svg",r({viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.913 1.718L12.956.76 7.391 6.327 1.826.76l-.957.957 6.521 6.52 6.523-6.52z",fill:"#fff"})))}},71739:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n,a=s(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let l=function(e){return a.createElement("svg",r({width:8,height:8,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"M6.859.423l-2.61 2.61L1.577.36l-.955.954 2.673 2.673L.673 6.61l.954.955L4.25 4.942l2.686 2.685.955-.954-2.686-2.686 2.61-2.609-.955-.955z",fill:"#032849"})))}},2176:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n,a=s(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let l=function(e){return a.createElement("svg",r({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.586 20L2.1 11.515l8.485-8.486L12 4.443 5.943 10.5H22v2H5.914L12 18.586 10.586 20z",fill:"#fff"})))}},89895:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n,a=s(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let l=function(e){return a.createElement("svg",r({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.127.004c-1.015.049-1.99.491-2.745 1.245L6.423 4.206c.465-.467 2.19-.146 2.609.273l1.79-1.79c.397-.396.893-.64 1.402-.662a1.63 1.63 0 011.265.487c.401.401.487.868.487 1.187 0 .532-.244 1.062-.662 1.478L10.2 8.311c-.784.783-1.976.847-2.667.156a1.023 1.023 0 00-1.44 0 1.02 1.02 0 000 1.44 3.66 3.66 0 002.608 1.07c1.041 0 2.104-.426 2.92-1.246l3.133-3.112C15.55 5.826 16 4.766 16 3.7c0-.99-.375-1.931-1.07-2.627a3.679 3.679 0 00-2.803-1.07zm-4.828 5.02c-1.041 0-2.121.427-2.939 1.245L1.246 9.38C.45 10.174 0 11.234 0 12.3c0 .99.375 1.931 1.07 2.627a3.68 3.68 0 002.803 1.07c1.015-.049 1.99-.491 2.745-1.245l2.959-2.957c-.468.466-2.19.146-2.609-.273l-1.79 1.79c-.397.396-.893.637-1.402.662a1.629 1.629 0 01-1.265-.487 1.653 1.653 0 01-.487-1.187c0-.532.244-1.062.662-1.478L5.8 7.689c.784-.783 1.976-.844 2.667-.156a1.021 1.021 0 001.44 0 1.02 1.02 0 000-1.44A3.663 3.663 0 007.3 5.023z",fill:"#fff",opacity:.5})))}},33535:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n,a=s(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let l=function(e){return a.createElement("svg",r({width:25,height:25,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.751 21.149l-5.824-5.824a8.149 8.149 0 10-1.6 1.6l5.823 5.825 1.601-1.601zm-6.445-10.73a5.885 5.885 0 11-11.77 0 5.885 5.885 0 0111.77 0z",fill:"#fff"})))}},57966:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,62793,23)),Promise.resolve().then(s.t.bind(s,53462,23)),Promise.resolve().then(s.bind(s,32605)),Promise.resolve().then(s.bind(s,64303)),Promise.resolve().then(s.bind(s,69012)),Promise.resolve().then(s.bind(s,38748)),Promise.resolve().then(s.bind(s,74817)),Promise.resolve().then(s.t.bind(s,66988,23)),Promise.resolve().then(s.t.bind(s,52357,23)),Promise.resolve().then(s.t.bind(s,93488,23)),Promise.resolve().then(s.t.bind(s,987,23)),Promise.resolve().then(s.t.bind(s,444,23)),Promise.resolve().then(s.bind(s,92823)),Promise.resolve().then(s.bind(s,54317)),Promise.resolve().then(s.bind(s,45607
1)),Promise.resolve().then(s.bind(s,47397)),Promise.resolve().then(s.t.bind(s,94817,23)),Promise.resolve().then(s.bind(s,90359)),Promise.resolve().then(s.t.bind(s,35974,23)),Promise.resolve().then(s.t.bind(s,33580,23)),Promise.resolve().then(s.bind(s,72567)),Promise.resolve().then(s.bind(s,62974)),Promise.resolve().then(s.bind(s,30226)),Promise.resolve().then(s.bind(s,21981))},36025:(e,t,s)=>{"use strict";s.d(t,{default:()=>a.a});var n=s(19026),a=s.n(n)},19026:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=s(60744)._(s(44146));function a(e,t){var s;let a={};"function"==typeof e&&(a.loader=e);let r={...a,...t};return(0,n.default)({...r,modules:null==(s=r.loadableGenerated)?void 0:s.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89137:(e,t,s)=>{"use strict";function n(e){let{reason:t,children:s}=e;return s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),s(56309)},44146:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=s(95155),a=s(12115),r=s(89137);function l(e){return{default:e&&"default"in e?e.default:e}}s(89740);let i={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},o=function(e){let t={...i,...e},s=(0,a.lazy)(()=>t.loader().then(l)),o=t.loading;function c(e){let l=o?(0,n.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,c=i?a.Suspense:a.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(s,{...e})]}):(0,n.jsx)(r.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(s,{...e})});return(0,n.jsx)(c,{...i?{fallback:l}:{},children:d})}return c.displayName="LoadableComponent",c}},89740:(e,t,s)=>{"use strict";function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),s(95155),s(47650),s(65163),s(53362)},89794:(e,t,s)=>{"use strict";s.d(t,{K:()=>l}),s(12115);var n=s(70431),a=s.n(n),r=s(95155);let l=e=>{let{error:t=!1,children:s=""}=e;return t?(0,r.jsx)("span",{className:a().error,children:s}):null}},59897:(e,t,s)=>{"use strict";s.d(t,{p:()=>d});var n=s(12115),a=s(51091),r=s(75603),l=s(89794),i=s(58342),o=s.n(i),c=s(95155);let d=n.forwardRef((e,t)=>{let{type:s="text",name:n="",id:i="",ariaLabel:d="",label:u,value:_,onChange:m,onBlur:p,onKeyDown:h,placeholder:y="",required:g=!1,theme:f,error:v=!1,errorMessage:b="",className:w="",wrapperClassName:x=""}=e;return(0,c.jsxs)("div",{className:(0,a.A)(o().input_wrapper,x),children:[u&&(0,c.jsxs)(r.l,{children:[u,g&&(0,c.jsxs)("span",{className:o().required,"aria-hidden":"true",children:[" ","*"]})]}),(0,c.jsx)("input",{type:s,name:n,id:i,"aria-label":d,value:_,onChange:m,onBlur:p,onKeyDown:h,placeholder:y,required:g,className:(0,a.A)(o().input,{[o().dark]:"dark"===f,[o().light]:"light"===f,[o().bordered]:"bordered"===f,[o().input_error]:v},w),ref:t}),b&&(0,c.jsx)(l.K,{error:v,children:b})]})})},75603:(e,t,s)=>{"use strict";s.d(t,{l:()=>i}),s(12115);var n=s(51091),a=s(80238),r=s.n(a),l=s(95155);let i=e=>{let{className:t,children:s,htmlFor:a}=e;return(0,l.jsx)("label",{htmlFor:a,className:(0,n.A)(r().label,t),children:s})}},44393:(e,t,s)=>{"use strict";s.d(t,{D:()=>d}),s(12115);var n=s(51091),a=s(59897),r=s(60706),l=s.n(r),i=s(33535),o=s(29781),c=s(95155);let d=e=>{let{type:t="text",name:s="",id:r="",ariaLabel:d="",value:u,onChange:_,placeholder:m="",theme:p,onClick:h,className:y="",variant:g="",searchRef:f,wrapperClassName:v}=e;return(0,c.jsxs)("div",{className:(0,n.A)(l().wrapper,v),children:[(0,c.jsx)(a.p,{type:t,name:s,id:r,ariaLabel:d,value:u,onChange:_,placeholder:m,theme:p,className:(0,n.A)(l().search_input,y),ref:f}),"search"===g&&(0,c.jsxs)("button",{type:"submit","aria-labelledby":(0,o.Y)(`search-button ${s}`,{lower:!0}),onClick:h,className:l().search_button,children:[(0,c.jsx)(i.A,{}),(0,c.jsx)("span",{id:(0,o.Y)(`search-button ${s}`,{lower:!0}),hidden:!0,children:"Search"})]})]})}},96921:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HeaderSearch:()=>o}),s(12115);var n=s(50376),a=s(21392),r=s.n(a),l=s(44393),i=s(95155);let o=e=>{let{onChange:t,searchQuery:s,searchRef:a,className:o}=e,c=(0,n.useRouter)();return(0,i.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=e.target.search.value;t&&c.push(`/resources/?search=${t}`)},className:o,children:(0,i.jsx)(l.D,{value:s,theme:"dark",onChange:t,name:"search",ariaLabel:"search",placeholder:"Enter Search Here",variant:"search",className:r().search_input,searchRef:a})})}},47397:(e,t,s)=>{"use strict";s.d(t,{LoginModal:()=>B});var n=s(12115),a=s(18620),r=s.n(a),l=s(15361),i=s.n(l),o=s(71739),c=s(17581),d=s(80123),u=s(17316),_=s(51091),m=s(66988),p=s.n(m),h=s(2820),y=s.n(h),g=s(67448),f=s(95155);let v=(0,_.A)(y().button,p()["size-md"],p()["variant-button"],p()["theme-light"],i().googleButton),b=e=>{let{id:t,value:s,onChange:n,inputRef:a,disabled:r=!1,readOnly:l=!1,onRequestChange:o}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("label",{className:i().label,htmlFor:t,children:"Email"}),(0,f.jsxs)("div",{className:l?i().readOnlyEmailRow:void 0,children:[(0,f.jsx)("input",{ref:a,id:t,name:"email",className:i().input,type:"email",autoComplete:"username",value:s,onChange:e=>n(e.target.value),disabled:r,readOnly:l,required:!0}),l&&o&&(0,f.jsx)("button",{type:"button",className:i().changeEmail,onClick:o,disabled:r,children:"Change"})]})]})},w=e=>{let{id:t,value:s,onChange:n,autoComplete:a,inputRef:r,disabled:l=!1,describedBy:o}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("label",{className:i().label,htmlFor:t,children:"Password"}),(0,f.jsx)("input",{ref:r,id:t,name:"password",className:i().input,type:"password",autoComplete:a,"aria-describedby":o,value:s,onChange:e=>n(e.target.value),disabled:l,required:!0})]})},x=e=>{let{idPrefix:t,organizationType:s,organizationTypeNotes:a,onOrganizationTypeChange:r,onOrganizationTypeNotesChange:l,organizationTypeCatalog:o=g.wD,disabled:c=!1}=e,d=`${t}-organization-type`,u=`${t}-organization-type-notes`;return(0,f.jsxs)("fieldset",{className:i().signupProfileGroup,children:[(0,f.jsx)("legend",{className:i().visuallyHidden,children:"Tell us about yourself"}),(0,f.jsx)("label",{className:i().label,htmlFor:d,children:"Which best describes your work?"}),(0,f.jsxs)("select",{id:d,className:i().input,value:s,onChange:e=>r(e.target.value),disabled:c,required:!0,children:[(0,f.jsx)("option",{value:"",children:"Select an option"}),o.groups.map((e,t)=>(0,f.jsxs)(n.Fragment,{children:[t>0&&(0,f.jsx)("hr",{}),e.options.map(e=>(0,f.jsx)("option",{value:e.value,children:e.label},e.value))]},e.key))]}),"other"===s&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("label",{className:i().label,htmlFor:u,children:"Please specify (optional)"}),(0,f.jsx)("input",{id:u,className:i().input,value:a,onChange:e=>l(e.target.value),disabled:c,maxLength:255})]})]})},j=e=>{let{intent:t,onClick:s,disabled:n=!1}=e;return(0,f.jsxs)("button",{type:"button",className:v,onClick:s,disabled:n,"data-auth-intent":t,children:[(0,f.jsxs)("svg",{className:i().googleIcon,viewBox:"0 0 18 18","aria-hidden":"true",focusable:"false",children:[(0,f.jsx)("path",{fill:"#4285F4",d:"M17.64 9.205c0-.638-.057-1.252-.164-1.841H9v3.482h4.844a4.14 4.14 0 0 1-1.797 2.716v2.258h2.909c1.702-1.567 2.684-3.875 2.684-6.615Z"}),(0,f.jsx)("path",{fill:"#34A853",d:"M9 18c2.43 0 4.468-.806 5.956-2.18l-2.909-2.258c-.806.54-1.835.859-3.047.859-2.344 0-4.328-1.585-5.037-3.714H.956v2.332A9 9 0 0 0 9 18Z"}),(0,f.jsx)("path",{fill:"#FBBC05",d:"M3.963 10.707A5.42 5.42 0 0 1 3.681 9c0-.592.102-1.168.282-1.707V4.961H.956A9 9 0 0 0 0 9c0 1.452.347 2.827.956 4.039l3.007-2.332Z"}),(0,f.jsx)("path",{fill:"#EA4335",d:"M9 3.58c1.321 0 2.507.455 3.44 1.346l2.582-2.582C13.464.891 11.427 0 9 0A9 9 0 0 0 .956 4.961l3.007 2.332C4.672 5.165 6.656 3.58 9 3.58Z"})]}),"Continue with Google"]})};var N=s(78272),k=s(4805),C=s(21981),E=s(89792),S=s(36),R=s(15869);let z="Login failed. Check your details and try again",O="Enter your email address first.",A="Enter a valid email address.",T="We couldnât save your profile. Try again",P={download:"Complete this step to continue your download"},L=()=>window.location.href,F=()=>(0,f.jsxs)("p",{className:i().legalStatement,children:["By creating an account, you agree to our"," ",(0,f.jsx)("a",{href:"https://www.climatecentral.org/w
1hat-we-do/legal",target:"_blank",rel:"noopener noreferrer",children:"Terms of Use"})," ","and"," ",(0,f.jsx)("a",{href:"https://www.climatecentral.org/privacy-policy",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]}),D=()=>{let[e,t]=n.useState(!1),s=n.useId();return(0,f.jsxs)("div",{className:i().whyRegister,children:[(0,f.jsx)("button",{type:"button",className:i().whyRegisterToggle,"aria-expanded":e,"aria-controls":s,onClick:()=>t(e=>!e),children:"Why create an account?"}),(0,f.jsx)("div",{id:s,className:`${i().whyRegisterPanel} ${e?i().whyRegisterPanelExpanded:""}`,"aria-hidden":!e,children:(0,f.jsx)("div",{className:i().whyRegisterPanelContent,children:(0,f.jsx)("p",{children:"By registering, you can help us better understand who relies on our climate data and ensure we continue to provide the right resources."})})})]})},M={screen:{name:"entry"},entry:{stage:"email"},email:"",password:"",code:"",resetEmail:"",organizationType:"",organizationTypeNotes:"",pending:!1,googleLaunched:!1,error:null};function q(e,t){switch(t.type){case"reset":return M;case"reopened":return{...e,entry:{stage:"email"}};case"editEmail":return{...e,email:t.value,error:null};case"editPassword":return{...e,password:t.value};case"editCode":return{...e,code:t.value};case"editResetEmail":return{...e,resetEmail:t.value};case"editOrganizationType":return{...e,organizationType:t.value};case"editOrganizationTypeNotes":return{...e,organizationTypeNotes:t.value};case"adoptProfileValues":return{...e,organizationType:t.organizationType,organizationTypeNotes:t.organizationTypeNotes};case"requestStarted":return{...e,pending:!0,error:null};case"requestFailed":return{...e,pending:!1,error:t.error};case"credentialsSubmitted":return{...e,email:t.email,pending:!0,error:null};case"credentialsRejected":return{...e,password:"",pending:!1,error:t.error};case"emailResolved":return{...e,email:t.email,entry:{stage:t.accountExists?"signin":"signup",method:"password",resolvedEmail:!0},pending:!1};case"accountAlreadyExists":return{...e,entry:{stage:"signin",method:"password",resolvedEmail:!0},password:"",pending:!1,error:"An account already exists for this email"};case"changeEmail":return{...e,screen:{name:"entry"},entry:{stage:"email"},password:"",code:"",error:null};case"selectEmailMethod":return{...e,entry:"email"===e.entry.stage?e.entry:{...e.entry,method:t.method},password:"",error:null};case"codeRequestStarted":case"googleStarted":return{...e,password:"",pending:!0,error:null};case"codeRequested":return{...e,screen:{name:"code",contactOnly:t.contactO
1nly},pending:!1};case"codeConfirmFailed":return"code"===e.screen.name?{...e,pending:!1,error:"That code didnât work. Request a new code"}:e;case"openPasswordReset":return{...e,screen:{name:"reset",sent:!1},resetEmail:e.email,password:"",error:null};case"resetEmailSent":return{...e,screen:{name:"reset",sent:!0},pending:!1};case"backToEntry":return{...e,screen:{name:"entry"},password:"",code:"",error:null};case"finishStarted":return{...e,screen:{name:"finish",attempt:t.attempt,phase:"pending"},password:"",code:"",pending:!0,error:null};case"finishFailed":return"finish"===e.screen.name?{...e,screen:{...e.screen,phase:"failed"},pending:!1,error:"Youâre logged in, but your profile didnât load. Try again"}:e;case"finishSucceeded":return"finish"===e.screen.name?{...e,screen:{...e.screen,phase:"succeeded"}}:e;case"profileSaveFailed":return{...e,screen:{name:"entry"},pending:!1,error:T};case"settled":return{...e,pending:!1};case"googleLaunched":return{...e,googleLaunched:!0,pending:!1};case"googleBlocked":return{...e,googleLaunched:!1,pending:!1,error:"Your browser blocked the Google window. Allow pop-ups for this site, then try again"};case"googleFailed":return{...e,googleLaunched:!1,pending:!1,error:z};case"googleDismissed":return{...e,googleLaunched:!1}}}let B=()=>{let{isAuthModalOpen:e,authModalReason:t,isProfilePromptOpen:s,profile:a,isAccountCreationPending:l,accountCreation:_,closeAuthModal:m,updateProfile:p,beginAccountCreation:h,cancelAccountCreation:y,completeAccountCreation:v}=(0,C.As)(),[B,$]=(0,n.useReducer)(q,M),[I,H]=(0,n.useState)(g.wD),[G,W]=(0,n.useState)(""),{screen:Y,entry:U,email:V,password:K,code:J,resetEmail:Q,organizationType:Z,organizationTypeNotes:X}=B,{pending:ee,googleLaunched:et,error:es}=B,en="email"===U.stage?null:U,ea=(0,n.useRef)(null),er=(0,n.useRef)(null),el=(0,n.useRef)(!1),ei=(0,n.useRef)(!1),eo=(0,n.useRef)(null),ec=(0,n.useRef)(null),ed=(0,n.useRef)(Z);ed.current=Z,(0,n.useEffect)(()=>{let e=!0;return N.yK.getOrganizationTypeCatalog().then(t=>{if(!e)return;let s=ed.current;(!s||t.groups.some(e=>e.options.some(e=>e.value===s)))&&H(t)}).catch(()=>void 0),()=>{e=!1}},[]);let eu=!!_;(0,n.useEffect)(()=>{if(W(""),!eu)return;let e=window.setTimeout(()=>{W("Your account has been created"),ec.current?.querySelector("button")?.focus()},0);return()=>window.clearTimeout(e)},[eu]);let e_=()=>({...(0,S.aK)()??{},page:L(),reason:t,auth_flow_variant:"email-first",...a?{gate_status:"authenticated",email_verified:a.email_verified,verification_email_sent:a.verification_email_sent,organization_type:a.organization_type,organization_name:a.organization_name}:{}});(0,n.useEffect)(()=>{if(!s||!a)return;let e=eo.current;if(e){$({type:"adoptProfileValues",organizationType:e.organization_type,organizationTypeNotes:e.organization_type_notes??""});return}$({type:"adoptProfileValues",organizationType:g.ce.includes(a.organization_type)?a.organization_type:"",organizationTypeNotes:a.organization_type_notes??""})},[s,a]);let em=(0,n.useCallback)(()=>{$({type:"reset"}),ei.current=!1,el.current=!1,eo.current=null},[]);(0,n.useEffect)(()=>{if(!e){em();return}$({type:"reopened"})},[e,em]),(0,n.useEffect)(()=>{el.current&&"email"!==U.stage&&(el.current=!1,er.current?.focus())},[U.stage]);let ep=()=>{if((0,R._Z)(L()),(0,R.wX)(),"download"===t&&!_){let e=(0,S.aK)();e?(0,S.K5)({...e,auth_flow_variant:"email-first"}):(0,S.K5)()}em(),m()},eh=()=>{(!ee||_)&&ep()},ey=()=>{ep()},eg=async e=>{let t=eo.current;if(!t)return!1;if(e)return eo.current=null,!1;try{await p({organization_type:t.organization_type,organization_type_notes:t.organization_type_notes}),E.A.capture("profile_completed",{...e_(),organization_type:t.organization_type}),eo.current=null,(0,S.G$)(),em(),v()}catch{$({type:"profileSaveFailed"})}return!0},ef=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"login_completed",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"password";await C.nc.getState().hydrate();let s=C.nc.getState(),n=s.user?.id,a=s.profile?.id;if("authed"!==s.status||!s.profile||"number"!=typeof n&&"string"!=typeof n||String(n)!==String(a))throw Error("Could not verify the authenticated profile");let r=s.profile,l=eo.current,i=s.user?.email,o=!!(l&&("string"!=typeof i||(0,k.e)(i)!==l.email));o&&((0,R.wX)(),eo.current=null,$({type:"adoptProfileValues",organizationType:g.ce.includes(r.organization_type)?r.organization_type:"",organizationTypeNotes:r.organization_type_notes??""}));let c=o?"login_completed":"code"===t?r.created_by_login_code?"signup_completed":"login_completed":e,d={...e_(),method:t,gate_status:"authenticated",...r?{email_verified:r.email_verified,verification_email_sent:r.verification_email_sent,organization_type:r.organization_type,organization_name:r.organization_name}:{}};"code"===t&&r.created_by_login_code&&!o?(E.A.capture("signup_started",d),E.A.capture("signup_completed",d)):"signup_completed"!==c&&E.A.capture(c,d),ei.current=!1,"signup_completed"!==c&&y(),await eg(r.organization_type)||(s.isProfilePromptOpen?$({type:"settled"}):((0,S.G$)(),"signup_completed"===c?(em(),v()):ey()))},ev=async()=>{eo.current=null,$({type:"googleStarted"});try{(0,R.wX)();let e=(0,R.Rq)(L(),e_()),t=await N.yK.startGoogle(e,()=>{(0,R._Z)(L()),$({type:"googleDismissed"})});if("popup-blocked"===t){(0,R._Z)(L()),$({type:"googleBlocked"});return}$({type:"googleLaunched"})}catch{(0,R._Z)(L()),$({type:"googleFailed"})}},eb=async(e,t)=>{$({type:"finishStarted",attempt:{event:e,method:t}}),("signup_completed"===e||"code"===t)&&h();try{await ef(e,t),$({type:"finishSucceeded"})}catch{$({type:"finishFailed"})}},ew=async()=>{"finish"===Y.name&&await eb(Y.attempt.event,Y.attempt.method)},ex=()=>{let e=V.trim();return e&&k.G.test(e)?e:($({type:"requestFailed",error:e?A:O}),ea.current?.focus(),null)},ej=async e=>{e.preventDefault();let t=ex();if(t){$({type:"requestStarted"});try{let e=await N.yK.getAccountStatus(t);if(!e.ok)throw Error("Account status unavailable");el.current=!0,$({type:"emailResolved",email:t,accountExists:e.accountExists})}catch{$({type:"requestFailed",error:"We couldnât continue. Try again"})}}},eN=async e=>{e.preventDefault();let t=ex();if(!t)return;let s=en?.stage==="signup",n="Account creation failed. Check your details and try again";$({type:"credentialsSubmitted",email:t}),(0,R._Z)(L()),(0,R.wX)(),ek(t),ei.current||(E.A.capture("signup"==(s?"signup":"login")?"signup_started":"login_started",{...e_(),method:"password"}),ei.current=!0);try{if(s){(0,R.F$)(t,e_());let e=await N.yK.signupEmail(t,K);if(e?.meta?.is_authenticated){let t=409===e.status;t&&(0,R.wX)(),await eb(t?"login_completed":"signup_completed","password");return}if(e?.status===409&&e.errors?.some(e=>"account_already_exists"===e.code)){(0,R.wX)(),eo.current=null,el.current=!0,ei.current=!1,$({type:"accountAlreadyExists"});return}throw e?.errors?.some(e=>"password"===e.param)&&(n="Choose a less common password with at least 12 characters"),Error("Signup did not authenticate")}(0,R.wX)();let e=await N.yK.loginEmail(t,K);if(!e?.meta?.is_authenticated)throw Error("Login did not authenticate");await eb("login_completed","password")}catch{(0,R.wX)(),$({type:"credentialsRejected",error:s?n:z})}},ek=e=>{eo.current=en?.stage==="signup"?{email:(0,k.e)(e),organization_type:Z,organization_type_notes:"other"===Z?X:null}:null},eC=async()=>{let e=V.trim();if(!e||!k.G.test(e)){$({type:"requestFailed",error:e?A:O}),ea.current?.focus();return}(0,R._Z)(L()),(0,R.wX)(),ek(e),$({type:"codeRequestStarted"});try{let t=await N.yK.requestLoginCode(e),s=t.httpStatus??t.status;if(200!==s&&401!==s)throw Error("Code request rejected");
1$({type:"codeRequested",contactOnly:!1})}catch{$({type:"requestFailed",error:z})}},eE=e=>{(0,R.wX)(),ei.current=!1,$({type:"selectEmailMethod",method:e})},eS=async e=>{e.preventDefault(),$({type:"requestStarted"});try{if(await p({organization_type:Z||null,organization_type_notes:"other"===Z?X:null}),C.nc.getState().isProfilePromptOpen){$({type:"settled"});return}E.A.capture("profile_completed",{...e_(),organization_type:Z||null}),eo.current=null,(0,S.G$)(),em(),l&&v()}catch{$({type:"requestFailed",error:T})}},eR=async e=>{e.preventDefault(),$({type:"requestStarted"});try{let e=await N.yK.confirmLoginCode(J);if(!e?.meta?.is_authenticated)throw Error("Code did not authenticate");await eb(en?.stage==="signup"?"signup_completed":"login_completed","code")}catch{$({type:"codeConfirmFailed"})}},ez=async e=>{e.preventDefault(),$({type:"requestStarted"});try{let e=await N.yK.requestPasswordReset(Q);if("contact_only_use_login_code"===e.errorCode){let e=Q.trim(),t=await N.yK.requestLoginCode(e),s=t.httpStatus??t.status;if(200!==s&&401!==s)throw Error("Code request rejected");$({type:"codeRequested",contactOnly:!0});return}let t=e.httpStatus??e.status;if(t<200||t>=300)throw Error("Password reset rejected");$({type:"resetEmailSent"})}catch{$({type:"requestFailed",error:"We couldnât send the reset email. Try again"})}},eO=()=>{ei.current=!1,$({type:"backToEntry"})},eA="finish"===Y.name&&"signup_completed"===Y.attempt.event,eT=!!(eA&&"pending"===Y.phase&&eo.current),eP=s&&!eT,eL=!!(eP&&a?.created_by_google&&!a.organization_type),eF=eP?P[t??""]:void 0,eD=_?"Your account has been created":eP?eL?"Just one more step":"Tell us about yourself":"finish"===Y.name?eA?"Creating your account":"Finish logging in":"reset"===Y.name?"Reset my password":"entry"===Y.name?"email"===U.stage?"Create a free account or log in":"signup"===U.stage?"Just one more step":"Log In":"Log In",eM=_||eP||"entry"!==Y.name||"download"!==t?void 0:"signup"===U.stage?void 0:"Continue to download",eq=_?.downloadStatus?({running:"Download in progress",complete:"Download complete.",failed:"Download failed. Please try again."})[_.downloadStatus]:null,eB=document.getElementById("main-app")??void 0;return(0,f.jsx)(r(),{isOpen:e,onRequestClose:eh,shouldCloseOnOverlayClick:!ee||!!_,shouldCloseOnEsc:!ee||!!_,style:{overlay:{top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(3, 40, 73, 0.65)",zIndex:100},content:{width:"90%",maxWidth:"460px",maxHeight:"calc(100dvh - 32px)",overflowY:"auto",overscrollBehavior:"contain",top:"50%",left:"50%",right:"auto",bottom:"auto",transform:"translate(-50%, -50%)",borderRadius:"8px",padding:0,border:"none"}},contentLabel:_?eD:eP?"Complete your profile":eD,appElement:eB,ariaHideApp:!!eB,children:(0,f.jsxs)("div",{className:i().modal,children:[(0,f.jsx)("button",{type:"button",className:i().close,onClick:eh,"aria-label":eP?"Close profile form":"Close authentication dialog",disabled:ee&&!_,children:(0,f.jsx)(o.A,{})}),(0,f.jsx)(d.D,{level:"h3",display:"h4",className:i().title,children:eD}),eM&&(0,f.jsx)(u.E,{size:"md",className:i().subtitle,children:eM}),eF&&(0,f.jsx)(u.E,{size:"md",className:i().context,children:eF}),es&&(0,f.jsx)("p",{role:"alert",className:i().error,children:es}),_&&(0,f.jsxs)("div",{className:i().body,ref:ec,children:[(0,f.jsx)("p",{className:i().visuallyHidden,role:"status","aria-live":"polite","aria-atomic":"true",children:G}),eq&&(0,f.jsxs)("div",{role:"status","aria-label":eq,"aria-live":"polite",className:i().downloadStatus,children:[(0,f.jsx)("span",{children:eq}),"running"===_.downloadStatus&&(0,f.jsx)("span",{"data-testid":"download-spinner",className:i().spinner,"aria-hidden":"true"})]}),(0,f.jsx)(c.$,{type:"button",variant:"button",theme:"light",size:"md",label:"Close and continue browsing",className:i().submit,onClick:eh})]}),!_&&eP&&a&&(0,f.jsx)("div",{className:i().body,children:(0,f.jsxs)("form",{className:i().form,onSubmit:eS,children:[(0,f.jsx)(x,{organizationTypeCatalog:I,idPrefix:"profile",organizationType:Z,organizationTypeNotes:X,onOrganizationTypeChange:e=>$({type:"editOrganizationType",value:e}),onOrganizationTypeNotesChange:e=>$({type:"editOrganizationTypeNotes",value:e}),disabled:ee}),(0,f.jsx)(c.$,{type:"submit",variant:"button",theme:"light",size:"md",label:eL?"download"===t?"Create account & download":"Create account":"Continue",className:i().submit,disabled:ee}),a.created_by_google&&(0,f.jsx)(F,{})]})}),!_&&!eP&&"entry"===Y.name&&!en&&(0,f.jsxs)("div",{className:i().body,children:[(0,f.jsx)(j,{intent:"neutral",onClick:ev,disabled:ee||et}),(0,f.jsx)("div",{className:i().divider,children:(0,f.jsx)("span",{children:"or use email"})}),(0,f.jsxs)("form",{className:i().form,onSubmit:ej,children:[(0,f.jsx)(b,{id:"email-first-email",value:V,onChange:e=>$({type:"editEmail",value:e}),inputRef:ea,disabled:ee}),(0,f.jsx)(c.$,{type:"submit",variant:"button",theme:"light",size:"md",label:"Continue",className:i().submit,disabled:ee}),(0,f.jsx)(D,{})]})]}),!_&&!eP&&"entry"===Y.name&&en&&(0,f.jsxs)("div",{className:i().body,children:["signin"===en.stage&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(j,{intent:en.stage,onClick:ev,disabled:ee||et}),(0,f.jsx)("div",{className:i().divider,children:(0,f.jsx)("span",{children:"or use email"})})]}),(0,f.jsxs)("form",{className:i().form,onSubmit:"password"===en.method?eN:e=>{e.preventDefault(),eC()},children:[(0,f.jsx)(b,{id:`email-first-${en.stage}-email`,value:V,onChange:e=>{ei.current=!1,$({type:"editEmail",value:e})},inputRef:ea,readOnly:en.resolvedEmail,onRequestChange:()=>{(0,R.wX)(),ei.current=!1,eo.current=null,$({type:"changeEmail"})},disabled:ee}),"password"===en.method?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(w,{id:`email-first-${en.stage}-password`,autoComplete:"signup"===en.stage?"new-password":"current-password",describedBy:"signup"===en.stage?"email-first-signup-password-requirements":void 0,value:K,onChange:e=>$({type:"editPassword",value:e}),inputRef:er,disabled:ee}),"signup"===en.stage&&(0,f.jsx)("small",{id:"email-first-signup-password-requirements",children:"Choose a password of at least 12 characters"}),"signup"===en.stage?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:i().signupMethodRow,children:[(0,f.jsx)("button",{type:"button",className:i().methodSwitch,onClick:()=>eE("code"),disabled:ee,children:"Send a login code instead"}),(0,f.jsx)("button",{type:"button",className:`${i().methodSwitch} ${i().signupGoogleAlternative}`,onClick:ev,disabled:ee||et,children:"Use Google instead"})]}),(0,f.jsx)(x,{organizationTypeCatalog:I,idPrefix:"email-first-signup",organizationType:Z,organizationTypeNotes:X,onOrganizationTypeChange:e=>$({type:"editOrganizationType",value:e}),onOrganizationTypeNotesChange:e=>$({type:"editOrganizationTypeNotes",value:e}),disabled:ee})]}):(0,f.jsxs)("div",{className:i().recoveryRow,children:[(0,f.jsx)("button",{type:"button",className:i().linkButton,onClick:()=>{$({type:"openPasswordReset"})},disabled:ee,children:"Forgot password?"}),(0,f.jsx)("button",{type:"button",className:`${i().methodSwitch} ${i().recoveryMethodSwitch}`,onClick:()=>eE("code"),disabled:ee,children:"Send a login code instead"})]})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:i().codeMethodRow,children:[(0,f.jsx)("small",{children:"We'll email you a login code"}),(0,f.jsx)("button",{type:"button",className:i().methodSwitch,onClick:()=>eE("password"),disabled:ee,children:"Use a password instead"})]}),"signup"===en.stage&&(0,f.jsx)(x,{organizationTypeCatalog:I,idPrefix:"email-first-signup-code",organizationType:Z,organizationTypeNotes:X,onOrganizationTypeChange:e=>$({type:"editOrganizationType",value:e}),onOrganizationTypeNotesChange:e=>$({type:"editOrganizationTypeNotes",value:e}),disabled:ee})]}),(0,f.jsx)(c.$,{type:"submit",variant:"button",theme:"light",size:"md",label:"co
1de"===en.method?"Email me a login code":"signup"===en.stage?"download"===t?"Create account & download":"Create account":"Log In",className:i().submit,disabled:ee}),"signup"===en.stage&&(0,f.jsx)(F,{})]})]}),!_&&!eP&&"code"===Y.name&&(0,f.jsxs)("div",{className:i().body,children:[Y.contactOnly&&(0,f.jsx)(u.E,{size:"md",className:i().context,children:"This mailing-list address does not have a password yet, so we sent you a login code instead."}),(0,f.jsx)(u.E,{size:"md",className:i().context,children:"Enter the login code from your email"}),(0,f.jsxs)("form",{className:i().form,onSubmit:eR,children:[(0,f.jsx)("label",{className:i().label,htmlFor:"login-code",children:"Code"}),(0,f.jsx)("input",{id:"login-code",className:i().input,type:"text",autoComplete:"one-time-code",value:J,onChange:e=>$({type:"editCode",value:e.target.value}),disabled:ee,required:!0}),(0,f.jsx)(c.$,{type:"submit",variant:"button",theme:"light",size:"md",label:"Verify",className:i().submit,disabled:ee})]}),(0,f.jsx)("button",{type:"button",className:i().linkButton,onClick:eO,disabled:ee,children:"Back"})]}),!_&&!eP&&"reset"===Y.name&&(0,f.jsx)("div",{className:i().body,children:Y.sent?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.E,{size:"md",className:i().context,children:"Check your email for the reset link."}),(0,f.jsx)("button",{type:"button",className:i().linkButton,onClick:eO,children:"Back to log in"})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.E,{size:"md",className:i().context,children:"Enter your email and we'll send you a link to reset your password."}),(0,f.jsxs)("form",{className:i().form,onSubmit:ez,children:[(0,f.jsx)("label",{className:i().label,htmlFor:"reset-email",children:"Email"}),(0,f.jsx)("input",{id:"reset-email",className:i().input,type:"email",autoComplete:"email",value:Q,onChange:e=>$({type:"editResetEmail",value:e.target.value}),disabled:ee,required:!0}),(0,f.jsx)(c.$,{type:"submit",variant:"button",theme:"light",size:"md",label:"Send reset link",className:i().submit,disabled:ee})]}),(0,f.jsx)("button",{type:"button",className:i().linkButton,onClick:eO,disabled:ee,children:"Back"})]})}),!_&&!eP&&"finish"===Y.name&&"succeeded"!==Y.phase&&(0,f.jsx)("div",{className:i().body,children:"pending"===Y.phase?(0,f.jsx)("div",{role:"status","aria-live":"polite",children:(0,f.jsx)(u.E,{size:"md",className:i().context,children:eA?"Finishing your account setupâ¦":"Finishing your loginâ¦"})}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.E,{size:"md",className:i().context,children:"Youâre logged in, but your profile didnât load"}),(0,f.jsx)(c.$,{type:"button",variant:"button",theme:"light",size:"md",label:"Try again",className:i().submit,disabled:ee,onClick:ew})]})})]})})}},90359:(e,t,s)=>{"use strict";s.d(t,{FooterContent:()=>R});var n,a,r,l,i,o,c=s(81269),d=s(12115),u=s(51091),_=s(81993),m=s.n(_);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}var v=s(89895);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}var w=s(91468),x=s(95155);let j={facebook:{label:"Facebook",icon:(0,x.jsx)(function(e){return d.createElement("svg",p({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.117 0H.883A.883.883 0 000 .883v14.234c0 .488.395.883.883.883h7.669V9.812H6.469V7.39h2.083V5.608c0-2.066 1.263-3.191 3.106-3.191.62-.002 1.242.03 1.86.093v2.16h-1.27c-1.004 0-1.2.475-1.2 1.176v1.542h2.4l-.311 2.422h-2.103V16h4.083a.883.883 0 00.883-.883V.883A.883.883 0 0015.117 0z",fill:"#fff",opacity:.5})))},{})},instagram:{label:"Instagram",icon:(0,x.jsx)(function(e){return d.createElement("svg",h({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.702.048C5.555.01 5.827 0 8 0s2.445.01 3.298.048c.852.039 1.433.174 1.942.372.526.204.973.478 1.417.923.445.444.719.89.923 1.417.198.509.333 1.09.372 1.942C15.99 5.555 16 5.827 16 8s-.01 2.445-.048 3.298c-.039.852-.174 1.433-.372 1.942a3.922 3.922 0 01-.923 1.417c-.444.445-.89.719-1.417.923-.509.198-1.09.333-1.942.372C10.445 15.99 10.173 16 8 16s-2.445-.01-3.298-.048c-.852-.039-1.433-.174-1.942-.372a3.922 3.922 0 01-1.417-.923A3.921 3.921 0 01.42 13.24c-.198-.509-.333-1.09-.372-1.942C.01 10.445 0 10.173 0 8s.01-2.445.048-3.298C.087 3.85.222 3.269.42 2.76c.204-.526.478-.973.923-1.417.444-.445.89-.719 1.417-.923C3.269.222 3.85.087 4.702.048zm8.016 1.716c-.282-.11-.705-.24-1.485-.276-.844-.038-1.097-.047-3.233-.047s-2.39.009-3.233.047c-.78.036-1.203.166-1.485.276-.374.145-.64.318-.92.598-.28.28-.453.546-.598.92-.11.282-.24.705-.276 1.485-.038.844-.047 1.097-.047 3.233s.009 2.39.047 3.233c.036.78.166 1.203.276 1.485.145.374.318.64.598.92.28.28.546.453.92.598.282.11.705.24 1.485.276.844.038 1.097.047 3.233.047s2.39-.009 3.233-.047c.78-.036 1.203-.166 1.485-.276.374-.145.64-.318.92-.598.28-.28.453-.546.598-.92.11-.282.24-.705.276-1.485.038-.844.047-1.097.047-3.233s-.009-2.39-.047-3.233c-.036-.78-.166-1.203-.276-1.485a2.479 2.479 0 00-.598-.92 2.478 2.478 0 00-.92-.598zM8 3.892a4.108 4.108 0 100 8.216 4.108 4.108 0 000-8.216zM5.333 8a2.667 2.667 0 105.334 0 2.667 2.667 0 00-5.334 0zm6.937-3.31a.96.96 0 100-1.92.96.96 0 000 1.92z",fill:"#fff",opacity:.5})))},{})},twitter:{label:"X",icon:(0,x.jsx)(function(e){return d.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),r||(r=d.createElement("path",{fill:"#fff",d:"M12.164 1.5h2.203L9.551 7.008l5.668 7.492H10.78L7.305 9.957 3.328 14.5h-2.21l5.155-5.89L.836 1.5h4.55l3.141 4.152zm-.777 11.68h1.222L4.723 2.75H3.41zm0 0",opacity:.5})))},{})},youtube:{label:"YouTube",icon:(0,x.jsx)(v.A,{})},rss:{label:"RSS",icon:(0,x.jsx)(function(e){return d.createElement("svg",b({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0v16h16V0H0zm4.974 13.095a1.47 1.47 0 01-2.08 0 1.455 1.455 0 010-2.072 1.466 1.466 0 012.078.001c.268.268.432.632.433 1.036a1.462 1.462 0 01-.431 1.035zm2.673.444v-.004a5.17 5.17 0 00-1.52-3.67 5.159 5.159 0 00-3.664-1.522V6.228a7.282 7.282 0 015.163 2.146 7.293 7.293 0 012.145 5.165H7.647zm3.771 0c-.003-4.941-4.015-8.96-8.952-8.963V2.462a11.037 11.037 0 017.824 3.25 11.047 11.047 0 013.249 7.827h-2.12z",fill:"#fff",opacity:.5})))},{})},linkedin:{label:"LinkedIn",icon:(0,x.jsx)(function(e){return d.createElement("svg",g({fill:"#fff",opacity:.5,width:16,height:16,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1"},e),l||(l=d.createElement("path",{d:"M20.47 2H3.53a1.45 1.45 0 00-1.47 1.43v17.14A1.45 1.45 0 003.53 22h16.94a1.45 1.45 0 001.47-1.43
1V3.43A1.45 1.45 0 0020.47 2zM8.09 18.74h-3v-9h3zM6.59 8.48a1.56 1.56 0 110-3.12 1.57 1.57 0 110 3.12zm12.32 10.26h-3v-4.83c0-1.21-.43-2-1.52-2A1.65 1.65 0 0012.85 13a2 2 0 00-.1.73v5h-3v-9h3V11a3 3 0 012.71-1.5c2 0 3.45 1.29 3.45 4.06z"})))},{})},bluesky:{label:"Bluesky",icon:(0,x.jsx)(function(e){return d.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"#fff",opacity:.5},e),i||(i=d.createElement("path",{d:"M3.468 1.948C5.303 3.325 7.276 6.118 8 7.616c.725-1.498 2.698-4.29 4.532-5.668C13.855.955 16 .186 16 2.632c0 .489-.28 4.105-.444 4.692-.572 2.04-2.653 2.561-4.504 2.246 3.236.551 4.06 2.375 2.281 4.2-3.376 3.464-4.852-.87-5.23-1.98-.07-.204-.103-.3-.103-.218 0-.081-.033.014-.102.218-.379 1.11-1.855 5.444-5.231 1.98-1.778-1.825-.955-3.65 2.28-4.2-1.85.315-3.932-.205-4.503-2.246C.28 6.737 0 3.12 0 2.632 0 .186 2.145.955 3.468 1.948"})))},{})}},N=e=>{let{type:t,url:s,className:n}=e;return t?(0,x.jsxs)("a",{className:(0,u.A)(m().link,n),href:s,"aria-label":t.charAt(0).toUpperCase()+t.slice(1),target:s&&s.length>0&&"mailto"===s.substring(0,6)?"_self":"_blank",rel:"noreferrer",onClick:e=>(0,w.$)("Social link",e.target.textContent||""),children:[j[t].icon,j[t].label]}):(0,x.jsx)("button",{type:"button",className:n&&n,style:{fontSize:8},disabled:!0,children:"EMPTY"})};var k=s(39411),C=s(95618),E=s(35974),S=s.n(E);let R=e=>{let{columns:t,logo:s,copyrights:n,copyrightsNav:a,facebook:r,instagram:l,rss:i,twitter:o,youtube:_,linkedin:m,bluesky:p}=e,[h,y]=(0,d.useState)(n),g=!!t.items.filter(e=>e.title).length,f=e=>(0,w.$)("Footer",e.target.textContent||"");return(0,d.useEffect)(()=>{y(n.replace(/\b\d{4}\b/,String(new Date().getFullYear())))},[n]),(0,x.jsxs)("div",{className:S().footer_wrapper,children:[s&&(0,x.jsx)("div",{className:S().logo,children:(0,x.jsx)("img",{src:s.url,alt:"Climate Central"})}),(0,x.jsxs)("div",{className:S().columns,children:[t.items.map(e=>(0,x.jsxs)("div",{className:S().links_wrapper,children:[g&&(0,x.jsx)("h4",{className:S().title,children:e.title}),(0,x.jsx)("ul",{children:e.links.items.map(e=>(0,x.jsx)("li",{className:S().element,children:e&&(0,x.jsx)(c.N,{...e,onClick:f,size:"lg",theme:"dark"})},e?.sys?.id))})]},e.sys.id)),(0,x.jsx)("div",{className:(0,u.A)(S().links_wrapper,g&&S().links_wrapper_offset),children:(0,x.jsxs)("ul",{className:S().social_links,children:[l&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"instagram",url:l,className:(0,u.A)(S().social_link)})}),r&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"facebook",url:r,className:(0,u.A)(S().social_link)})}),o&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"twitter",url:o,className:(0,u.A)(S().social_link)})}),_&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"youtube",url:_,className:(0,u.A)(S().social_link)})}),m&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"linkedin",url:m,className:(0,u.A)(S().social_link)})}),p&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"bluesky",url:p,className:(0,u.A)(S().social_link)})}),i&&(0,x.jsx)("li",{children:(0,x.jsx)(N,{type:"rss",url:i,className:(0,u.A)(S().social_link)})})]})})]}),(0,x.jsxs)("div",{className:S().copyrights,children:[(0,x.jsx)("p",{children:h}),(0,x.jsx)("p",{children:"Registered 501(c)(3). EIN: 26-1797336"})]}),(0,x.jsxs)("div",{className:S().copyrights_container,children:[(0,x.jsx)("ul",{className:S().copyrights_links,children:a&&a.items.map(e=>(0,x.jsx)("li",{className:S().copylink,children:(0,x.jsx)(c.N,{...e,size:"sm",theme:"dark",className:S().footer_copyrights_nav,onClick:f})},e?.sys?.id))}),(0,x.jsx)(C.default,{className:S().contentful_logo,href:"https://www.contentful.com/",rel:"nofollow",target:"_blank",children:(0,x.jsx)(k.default,{src:"https://images.ctfassets.net/fo9twyrwpveg/7F5pMEOhJ6Y2WukCa2cYws/398e290725ef2d3b3f0f5a73ae8401d6/PoweredByContentful_DarkBackground.svg",alt:"Powered by Contentful",width:150,height:50})})]})]})}},72567:(e,t,s)=>{"use strict";s.d(t,{Header:()=>es});var n,a,r,l,i,o=s(12115),c=s(51091),d=s(95618),u=s(80312),_=s.n(u),m=s(62974),p=s(71376),h=s(47650),y=s(36025),g=s(64471),f=s.n(g),v=s(2176);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let w=function(e){return o.createElement("svg",b({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{d:"M19 18l-6-6 6-6M11 18l-6-6 6-6",stroke:"#032849",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))};var x=s(81269),j=s(57255),N=s(26229),k=s(31055),C=s(47988),E=s.n(C),S=s(95155);let R=e=>{let{label:t}=e,s=t.trim().toLowerCase();return"tools"!==s&&"products"!==s?null:(0,S.jsx)("p",{role:"note",className:(0,
1c.A)(E().notice,E()[s]),children:"tools"===s?"Free tools, made possible by donor support":"Paid solutions for climate resilience, built on our research"})},z=(0,y.default)(()=>Promise.resolve().then(s.bind(s,96921)).then(e=>e.HeaderSearch),{loadableGenerated:{webpack:()=>[96921]}});function O(e){return"string"==typeof e.label&&"donate"===e.label.toLowerCase()?(0,k.M3)("header"):e.parameters}let A=e=>{let{menu:t,onChange:s}=e,[n,a]=(0,o.useState)(null),[r,l]=(0,o.useState)(null),{isSearchOpen:i,searchQuery:c,isMenuOpen:d,toggleMenu:u}=(0,m.m)(),_=(0,o.useRef)(null),p=()=>{a(null),l(null)};(0,o.useEffect)(()=>{i&&_?.current?.focus()},[i]),(0,o.useEffect)(()=>{d||(a(null),l(null))},[d]);let y=()=>{u(),p()},g=(e,t)=>{"ElementLink"!==e.__typename&&(a(t),l(null))};if(!d&&!i)return null;if(i)return(0,S.jsx)("nav",{className:f().nav,children:(0,S.jsx)("div",{role:"search",className:f().search_wrapper,children:(0,S.jsx)(z,{onChange:s,searchQuery:c,searchRef:_})})});let b=null!==n?t[n]:null,k=b?.__typename==="ElementMegaDropdown"&&null!==r?b.megaMenus.items[r]:null;return(0,h.createPortal)((0,S.jsxs)("div",{className:f().cover,children:[(0,S.jsx)("button",{className:f().backdrop,onClick:y,"aria-label":"close-menu"}),(0,S.jsxs)("div",{className:f().drawer,children:[(0,S.jsxs)("header",{className:f().drawer_header,children:[null!==n&&(0,S.jsxs)("button",{className:f().back_button,onClick:()=>{if(null!==r){l(null);return}a(null)},children:[(0,S.jsx)(v.A,{}),"Back"]}),(0,S.jsxs)("button",{className:f().close_button,onClick:y,"aria-label":"close-menu",children:[(0,S.jsx)("span",{className:f().close_x}),(0,S.jsx)("span",{className:f().close_x})]})]}),(0,S.jsxs)("main",{className:f().drawer_main,children:[null===n&&(0,S.jsx)("div",{className:f().main_menu,children:t.map((e,t)=>"ElementLink"===e.__typename?(0,S.jsx)(x.N,{...e,parameters:O(e),variant:"unstyled",className:f().menu_element,onClick:y},e.sys?.id):(0,S.jsxs)("button",{className:f().menu_element,onClick:()=>g(e,t),children:[e.label,(0,S.jsx)(w,{width:"12",height:"12"})]},e.sys?.id||`menu-${t}`))}),b?.__typename==="ElementDropdown"&&(0,S.jsx)("div",{className:f().secondary_menu,children:b.elementsCollection.items.map(e=>(0,S.jsx)(x.N,{...e,parameters:O(e),variant:"unstyled",className:f().menu_element,onClick:y},e.sys?.id))}),b?.__typename==="ElementMegaDropdown"&&(0,S.jsx)(R,{label:b.label}),b?.__typename==="ElementMegaDropdown"&&null===r&&(0,S.jsx)("div",{className:f().secondary_menu,children:b.megaMenus.items.map((e,t)=>(0,S.jsxs)("button",{className:f().menu_element,onClick:()=>l(t),children:[e.label,(0,S.jsx)(w,{width:"12",height:"12"})]},e.sys.id))}),k&&(0,S.jsxs)("div",{className:f().tertiary_menu,children:[k.viewAllLink&&(0,S.jsx)(x.N,{...k.viewAllLink,variant:"unstyled",className:f().menu_element,onClick:y}),k.elements?.items?.filter(Boolean).map(e=>{let{title:t,description:s,href:n}=function(e){return"GlobalBlogPostPage"===e.__typename?{title:e.title||"",description:e.excerpt||"",href:e.slug?(0,N.w)(e.category||"",e.slug):""}:"ComponentCard"===e.__typename?{title:e.title||e.link?.label||"",description:e.excerpt||"",href:e.link?(0,j.U)(e.link.link||e.link.url||""):""}:{title:e.title||"",description:e.description||"",href:e.slug?(0,j.U)(e.slug):""}}(e);return n?S.jsxs(x.N,{href:n,label:"",variant:"unstyled",className:f().menu_card,onClick:y,children:[S.jsx("span",{className:f().card_title,children:t}),s&&S.jsx("span",{className:f().card_description,children:s})]},e.sys?.id):null})]})]})]})]}),document.body)};var T=s(96921),P=s(25109),L=s.n(P),F=s(18729),D=s(33535),M=s(35525);let q=e=>{let{menu:t,onChange:s,searchQuery:n,showDonateButton:a=!0}=e,r=(0,o.useRef)(null),[l,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(L().search_close),{setSearchQuery:_}=(0,m.m)(),p=(0,o.useRef)(null),[h,y]=(0,o.useState)({}),g=(0,o.useCallback)(e=>{r.current&&r.current.contains(e.target)||i(!1)},[r]);(0,F.p)("mousedown",g);let f=t?.find(e=>"ElementLink"===e.__typename&&"string"==typeof e.label&&"donate"===e.label.toLowerCase()),v=t?.filter(e=>e!==f);return(0,S.jsxs)("div",{className:L().wrapper,children:[(0,S.jsx)("nav",{children:(0,S.jsxs)("ul",{className:(0,
1c.A)({[L().nav_list]:!0,[L().dropdown_disable]:l}),children:[v&&v.map((e,t)=>{switch(e.__typename){case"ElementLink":return(0,S.jsx)("li",{className:L().link,children:(0,S.jsx)(x.N,{...e,variant:"unstyled",theme:"dark",className:L().nav_link})},e.sys?.id);case"ElementDropdown":return(0,S.jsx)("li",{className:L().dropdown_container,children:(0,S.jsxs)("div",{className:L().main_menu_element,role:"button",tabIndex:t,children:[(0,S.jsxs)("span",{className:L().menu_label,children:[e.label,(0,S.jsx)(M.A,{width:"14",className:L().chevron})]}),(0,S.jsx)("div",{className:L().contentful_menu_links,children:e.elementsCollection.items.map(e=>(0,S.jsx)(x.N,{...e,variant:"unstyled",className:L().menu_link_item},e.sys?.id))})]})},e.sys.id);case"ElementMegaDropdown":{let s=e.megaMenus.items,n=h[t]??0;return(0,S.jsx)("li",{className:L().dropdown_container,children:(0,S.jsxs)("div",{className:L().main_menu_element,role:"button",tabIndex:t,children:[(0,S.jsxs)("span",{className:L().menu_label,children:[e.label,(0,S.jsx)(M.A,{width:"14",className:L().chevron})]}),s.length>
10&&(0,S.jsxs)("div",{className:L().mega_menu_area,children:[(0,S.jsx)("aside",{className:L().mega_menu_sidebar,children:s.map((e,s)=>(0,S.jsx)("div",{className:(0,c.A)(L().submenu_element,n===s&&L().submenu_active),role:"button",tabIndex:t+s,onMouseEnter:()=>{y(e=>({...e,[t]:s}))},children:e.label},e.sys.id))}),(0,S.jsxs)("main",{className:L().mega_menu_content,children:[(0,S.jsx)(R,{label:e.label}),s.map((e,t)=>{let s=e.elements?.items?.filter(Boolean)||[];return(0,S.jsxs)("div",{className:(0,c.A)(L().cards_panel,n===t&&L().cards_panel_active),children:[(0,S.jsx)("div",{className:(0,c.A)(L().cards,s.length>3&&L().cards_multi),children:s.map(e=>{let{title:t,description:s}=function(e){return"ComponentCard"===e.__typename?{title:e.title||e.link?.label||"",description:e.excerpt||""}:{title:e.title||"",description:e.excerpt||e.description||""}}(e),n=e.slug||e.link?.link||e.link?.url||"";return n?(0,S.jsxs)(x.N,{href:n,label:"",variant:"unstyled",className:L().card_link,children:[(0,S.jsx)("p",{className:L().card_title,children:t}),(0,S.jsx)("p",{className:L().card_description,children:s})]},e.sys?.id):null})}),e.viewAllLink&&(0,S.jsx)("div",{className:L().see_all,children:(0,S.jsx)(x.N,{...e.viewAllLink,size:"lg",theme:"light",withArrow:!0,variant:"button"})})]},e.sys.id)})]})]})]})},e.sys.id)}default:return null}}),(0,S.jsx)("li",{children:(0,S.jsxs)("button",{type:"button",className:L().button,onClick:()=>{i(!l),l||(u(void 0),setTimeout(()=>p?.current?.focus(),0)),_("")},"aria-labelledby":"open-search-box",children:[(0,S.jsx)(D.A,{height:"24"}),(0,S.jsx)("span",{hidden:!0,id:"open-search-box",children:"Open search box"})]})}),a&&f&&(0,S.jsx)("li",{children:(0,S.jsx)(x.N,{...f,parameters:(0,k.M3)("header"),variant:"unstyled",className:L().donate_button})})]})}),(0,S.jsx)("div",{ref:r,className:(0,c.A)(L().search_container,{[L().is_active]:l}),onTransitionEnd:()=>{l||u(L().search_close)},children:(0,S.jsx)(T.HeaderSearch,{onChange:s,searchQuery:n,searchRef:p,className:d})})]})};function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let $=function(e){return o.createElement("svg",B({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10a4 4 0 100-8 4 4 0 000 8zm0 2c-4.418 0-8 2.686-8 6h16c0-3.314-3.582-6-8-6z",fill:"#fff"})))};var I=s(21981);let H=e=>"string"==typeof e?e.trim():"",G=e=>{let t=H(e?.first_name),s=H(e?.last_name),n=`${t.charAt(0)}${s.charAt(0)}`.trim();if(n)return n.toUpperCase();let a=H(e?.email);return a?a.charAt(0).toUpperCase():"?"},W=e=>H(e?.picture)||null,Y=()=>{let{status:e,user:t,downloadAuthAssignment:s,logout:n,openAuthModal:a}=(0,I.As)(),[r,l]=(0,o.useState)(!1),i=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"===e.key&&l(!1)},t=e=>{i.current&&!i.current.contains(e.target)&&l(!1)};return document.addEventListener("keydown",e),document.addEventListener("pointerdown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("pointerdown",t)}},[r]);let c="authed"===e;if(!c&&s?.treatment!=="email-first")return null;let d=c?W(t):null,u=c?G(t):null,m=c?H(t?.email):"";return(0,S.jsxs)("div",{className:_().auth_control,ref:i,children:[(0,S.jsx)("button",{type:"button",className:c?_().avatar_button:_().avatar_button_anon,"aria-label":"Account menu","aria-expanded":r,onClick:()=>l(e=>!e),children:c?d?(0,S.jsx)("img",{className:_().avatar_image,src:d,alt:""}):u:(0,S.jsx)($,{width:"18","aria-hidden":"true"})}),r&&(0,S.jsx)("div",{className:_().account_menu,children:c?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:_().account_menu_email,children:m}),(0,S.jsx)("button",{type:"button",className:_().account_menu_item,onClick:()=>{l(!1),Promise.resolve(n()).catch(()=>void 0)},children:"Log Out"})]}):(0,S.jsx)("button",{type:"button",className:_().account_menu_item,onClick:()=>{l(!1),a("header")},children:"Log In"})})]})};var U=s(96691);function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let K=function(e){return o.createElement("svg",V({width:57,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=o.createElement("g",{clipPath:"url(#mobile-logo_svg__clip0_1949_7735)"},o.createElement("path",{d:"M19.816 19.462c-1.777 1.49-3.436 2.335-5.924 2.335-4.147 0-7.257-3.394-7.257-7.896v-.075c0-4.458 3.11-7.819 7.257-7.819 2.088 0 3.94.738 5.9 2.37a10.38 10.38 0 014.743-3.996l-.132-.13C21.523 1.415 18.293.151 13.932.151 6.013.152.058 6.067.058 13.901v.074a13.687 13.687 0 003.882 9.703c2.537 2.56 6.013 3.974 9.768 3.974 4.408 0 7.495-1.274 10.527-4.364a10.38 10.38 0 01-4.419-3.826zM42.846.152A14.317 14.317 0 0032.518 4.41c1.945.828 3.591 2.23 4.718 4.017a7.354 7.354 0 015.536-2.414c4.335 0 7.605 3.394 7.605 7.894v.075c0 4.458-3.239 7.821-7.53 7.821a7.423 7.423 0 01-5.6-2.44 10.393 10.393 0 01-4.834 4.083c2.536 2.62 6.177 4.212 10.353 4.212 7.947 0 14.172-6.04 14.172-13.75v-.075c0-7.797-6.061-13.675-14.1-13.675",fill:"#fff"}),o.createElement("path",{d:"M20.444 13.9a8.045 8.045 0 014.973-7.436 8.062 8.062 0 018.779 1.745A8.047 8.047 0 0128.5 21.95a8.06 8.06 0 01-5.696-2.358 8.049 8.049 0 01-2.36-5.691z",fill:"#fff"}),o.createElement("path",{d:"M28.5 21.95a8.058 8.058 0 01-5.696-2.358 8.046 8.046 0 010-11.383A8.059 8.059 0 0128.5 5.852s-3.446 3.822-3.446 8.049c0 4.226 3.446 8.049 3.446 8.049z",fill:"#DCE3ED"}))),l||(l=o.createElement("defs",null,o.createElement("clipPath",{id:"mobile-logo_svg__clip0_1949_7735"},o.createElement("path",{fill:"#fff",d:"M0 0h57v28H0z"})))))},J={src:"/_next/static/media/logo_desktop.f693f34d.png"};function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let Z=function(e){return o.createElement("svg",Q({width:20,height:2,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=o.createElement("path",{stroke:"#fff",strokeWidth:1.5,d:"M0 1.25h20"})))};var X=s(47486),ee=s(50376),et=s(39411);let es=e=>{let{elementsCollection:t,preview:s}=e,n=(0,ee.usePathname)(),{items:a}
1=t,r=a?.find(e=>"ElementLink"===e.__typename&&"string"==typeof e.label&&"donate"===e.label.toLowerCase()),l=!n||"/"===n,i=!!n&&n.startsWith("/donate"),{isMenuOpen:u,toggleMenu:h,isSearchOpen:y,toggleSearch:g,searchQuery:f,setSearchQuery:v}=(0,m.m)(),[b,w]=(0,o.useState)({hasBackground:!l,visible:!0}),j=(0,o.useRef)(0),[N,C]=(0,o.useState)(0),E=(0,o.useRef)(null),R=e=>{v(e.target.value)},z=e=>{e.stopPropagation()},O=()=>{document.documentElement.style.setProperty("--window-inner-height",`${window.innerHeight}px`)},T=(0,X.n)(()=>{if(u)return;let e=window.pageYOffset,t=!1;j.current>e||e<100||u||0===e?t=!0:j.current<e&&e>100&&!u&&(t=!1);let s=e>45||u||y||!l;w({...b,hasBackground:s,visible:t}),j.current=e},150);return(0,o.useEffect)(()=>(O(),window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}),[]),(0,o.useEffect)(()=>(u?(C(window.scrollY),document.documentElement.classList.contains("locked")||(w({...b,hasBackground:!0,visible:!0}),document.documentElement.classList.add("locked"),E?.current?.addEventListener("touchmove",z),E?.current?.addEventListener("pointermove",z))):document.documentElement.classList.contains("locked")&&(document.documentElement.classList.remove("locked"),window.scrollTo(0,N),E?.current?.removeEventListener("touchmove",z),E?.current?.removeEventListener("pointermove",z)),window.addEventListener("scroll",T),()=>{window.removeEventListener("scroll",T)}),[b.visible,b.hasBackground,j,u,y,l]),(0,o.useEffect)(()=>{w({...b,hasBackground:"/"!==n})},[n]),(0,S.jsxs)("header",{className:(0,c.A)(_().header,{[_().header_without_bg]:!b.hasBackground,[_().header_visible]:b.visible,[_().header_hidden]:!b.visible,[_().preview]:s,[_().menu_open]:u}),ref:E,children:[(0,S.jsxs)(p.w,{className:_().header_wrapper,children:[(0,S.jsx)("div",{className:_().logo_container,children:(0,S.jsxs)(d.default,{href:"/",title:"homepage",className:_().logo,children:[(0,S.jsx)(K,{className:_().logo_mobile}),(0,S.jsx)(et.default,{className:_().logo_desktop_icon,src:J.src,fill:!0,alt:"Climate Central"}),(0,S.jsx)(U.default,{className:_().logo_desktop_full})]})}),(0,S.jsxs)("div",{className:_().desktop_right,children:[(0,S.jsx)(q,{menu:a,onChange:R,searchQuery:f,showDonateButton:!i}),!y&&(0,S.jsx)("div",{className:_().auth_control_desktop,children:(0,S.jsx)(Y,{})})]}),(0,S.jsxs)("div",{className:_().mobile_controls,children:[!y&&!i&&r&&(0,S.jsx)(x.N,{...r,parameters:(0,k.M3)("header"),variant:"unstyled",className:_().donate_button}),!y&&(0,S.jsx)(Y,{}),(0,S.jsxs)("button",{"aria-label":"Toggle menu",type:"button",onClick:h,className:(0,c.A)(_().burger,{[_().is_active]:u,[_().is_search_open]:y}),children:[(0,S.jsx)(Z,{className:_().line}),(0,S.jsx)(Z,{className:_().line}),(0,S.jsx)(Z,{className:_().line})]}),(0,S.jsxs)("button",{type:"button",onClick:g,"aria-labelledby":"open-search",className:(0,c.A)(_().toggle_button,{[_().close_button]:y}),children:[y?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{}),(0,S.jsx)("span",{})]}):(0,S.jsx)(D.A,{}),(0,S.jsx)("span",{id:"open-search",hidden:!0,children:y?"Close search box":"Open search box"})]})]})]}),y&&(0,S.jsx)("div",{className:_().mobile_main_nav,children:(0,S.jsx)(p.w,{className:_().mobile_header_container,children:(0,S.jsx)(A,{menu:a,onChange:R})})}),u&&!y&&(0,S.jsx)(A,{menu:a,onChange:R})]})}},52375:(e,t,s)=>{"use strict";s.d(t,{i6:()=>n.i6,mT:()=>n.mT,ty:()=>n.ty,OU:()=>a.ResourcesFiltersContext,En:()=>a.ResourcesFiltersProvider,F2:()=>n.F2,JI:()=>n.JI,Cp:()=>n.Cp,zg:()=>n.zg,aG:()=>n.aG,rj:()=>n.rj,JG:()=>n.JG,Rr:()=>n.Rr,$K:()=>a.supersededFilter});var n=s(45060),a=s(30226);s(25727)},30226:(e,t,s)=>{"use strict";s.r(t),s.d(t,{INITIAL_STATE:()=>i,ResourcesFiltersContext:()=>o,ResourcesFiltersProvider:()=>c,supersededFilter:()=>l});var n=s(12115),a=s(25727),r=s(95155);let l="NOT superseded:true",i={startDate:{timestamp:"",text:""},endDate:{timestamp:"",text:""},appliedFilters:{},facetFilters:[],queryFilters:l,queryFiltersWithoutDate:"",searchTerm:"",resultsCounter:{},includeArchived:!1},o=n.createContext({state:i,dispatch:()=>null}),c=e=>{let{children:t}=e,[s,l]=n.useReducer(a.J,i);return(0,r.jsx)(o.Provider,{value:{state:s,dispatch:l},children:t})}},25727:(e,t,s)=>{"use strict";s.d(t,{J:()=>l});
1var n=s(45060),a=s(52375);let r=e=>{let t="",s="";return e.startDate.timestamp&&e.endDate.timestamp?t=`date:${e.startDate.timestamp} TO ${e.endDate.timestamp}`:e.startDate.timestamp?t=`date > ${e.startDate.timestamp}`:e.endDate.timestamp&&(t=`date < ${e.endDate.timestamp}`),e.appliedFilters[a.aG]?.length&&(s=Array.from(e.appliedFilters[a.aG]).map(e=>{let t=Object.keys(a.i6)[Object.values(a.i6).map(e=>e.toLowerCase()).indexOf(e.toLowerCase())];return`contentType:"${t}"`}).join(" OR ")),e.includeArchived||(t=t.length?t.concat(` AND ${a.$K}`):a.$K),{dateFilters:t,contentType:s}};function l(e,t){switch(t.type){case n.mT.addStartDate:{let{dateFilters:s,contentType:n}=r({...e,startDate:t.payload});return{...e,startDate:t.payload,queryFiltersWithoutDate:n,queryFilters:s?`${s}`:n}}case n.mT.addEndDate:{let{dateFilters:s,contentType:n}=r({...e,endDate:t.payload});return{...e,endDate:t.payload,queryFiltersWithoutDate:n,queryFilters:s?`${s}`:n}}case n.mT.setFilters:return{...e,appliedFilters:{...t.payload}};case n.mT.setQueryFilters:{let{dateFilters:t,contentType:s}=r(e);return{...e,queryFiltersWithoutDate:s,queryFilters:t?`${t}`:s}}case n.mT.resetData:return{startDate:{timestamp:"",text:""},endDate:{timestamp:"",text:""},appliedFilters:{},facetFilters:[],queryFilters:a.$K,queryFiltersWithoutDate:"",searchTerm:"",resultsCounter:{...e.resultsCounter},includeArchived:!1};case n.mT.removeStartDate:return{...e,startDate:{timestamp:"",text:""}};case n.mT.removeEndDate:return{...e,endDate:{timestamp:"",text:""}};case n.mT.setSearchTerm:return{...e,searchTerm:t.payload};case n.mT.setResultsCounter:return{...e,resultsCounter:t.payload};case n.mT.setIncludeArchived:return{...e,includeArchived:t.payload};default:throw Error(`Unhandled action type: ${t.type}`)}}},45060:(e,t,s)=>{"use strict";s.d(t,{Cp:()=>m,F2:()=>u,JG:()=>d,JI:()=>_,Rr:()=>r,aG:()=>c,i6:()=>a,mT:()=>n,rj:()=>o,ty:()=>i,zg:()=>l});let n=function(e){return e.addStartDate="ADD_START_DATE",e.addEndDate="ADD_END_DATE",e.removeStartDate="REMOVE_START_DATE",e.removeEndDate="REMOVE_END_DATE",e.setFilters="SET_FILTERS",e.setQueryFilters="SET_QUERY_FILTERS",e.setSearchTerm="SET_SEARCH_TERM",e.resetData="RESET_DATA",e.setResultsCounter="SET_RESULTS_COUNTER",e.setIncludeArchived="SET_INCLUDE_ARCHIVED",e}({}),a={"Climate Matters":"Climate Matters",News:"News story","Partnership Journalism":"Partnership Journalism",Report:"Report/research brief",Webinar:"Webinar/event",Video:"Video",Toolkit:"Toolkit","Climate Shift Index Alert":"Climate Shift Index Alert","Coastal Risk Finder":"Coastal Risk Finder"},r=["News"],l="Tropical Cyclones",i="resources-tropical-cyclones-enabled",o="Location",c="Type",d="Topic",u="Search for cities & states",_="Search for topics...",m="Type"},62974:(e,t,s)=>{"use strict";s.d(t,{HeaderStateProvider:()=>l,m:()=>i});var n=s(12115),a=s(95155);let r=(0,n.createContext)(void 0),l=e=>{let{children:t}
1=e,[s,l]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[c,d]=(0,n.useState)("");return(0,a.jsx)(r.Provider,{value:{isMenuOpen:s,toggleMenu:function(){l(!s)},isSearchOpen:i,toggleSearch:function(){o(!i),i||d(""),s&&l(!1)},searchQuery:c,setSearchQuery:d},children:t})};function i(){return(0,n.useContext)(r)}},26229:(e,t,s)=>{"use strict";s.d(t,{w:()=>r});var n=s(29781),a=s(2836);let r=(e,t)=>{if((0,a.i)(t))return t;let s=t;return e&&"Site Pages"!==e&&(s=[(0,n.Y)(e,{lower:!0}),t].join("/").replace("//","/")),s&&0!==s.indexOf("/")&&(s=`/${s}`),s}},91468:(e,t,s)=>{"use strict";s.d(t,{$:()=>a});var n=s(89792);let a=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click",a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;window.Analytics?.sendEvent(s,{event_category:e,event_label:t,value:a,...r??{}}),n.A.capture(s,{event_category:e,event_label:t,value:a,...r??{}})}},18729:(e,t,s)=>{"use strict";s.d(t,{p:()=>a});var n=s(12115);let a=(e,t)=>{n.useEffect(()=>(document.addEventListener(e,t),()=>{document.removeEventListener(e,t)}),[t])}},31055:(e,t,s)=>{"use strict";s.d(t,{M3:()=>a,O2:()=>r,Ut:()=>l});let n=["c_src","c_src2"];function a(e){return new URLSearchParams({c_src:"website",c_src2:e}).toString()}function r(e){return`/donate?${a(e)}`}function l(e,t){let s=function(e){let t=new URLSearchParams;return n.forEach(s=>{let n=e?.get(s)?.trim();n&&t.set(s,n)}),t}(t);if(!s.toString())return e;let[a,r]=e.split("#"),[l,i=""]=a.split("?"),o=new URLSearchParams(i);s.forEach((e,t)=>{o.set(t,e)});let c=o.toString();return`${l}${c?`?${c}`:""}${r?`#${r}`:""}`}},29781:(e,t,s)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{lower:s=!1}=t,n=e.trim().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-]/g,"");return s&&(n=n.toLowerCase()),n}s.d(t,{Y:()=>n})},47486:(e,t,s)=>{"use strict";function n(e,t){let s=0,n=null,a=null;return function(){for(var r=arguments.length,l=Array(r),i=0;i<r;i++)l[i]=arguments[i];let o=Date.now(),c=t-(o-s);c<=0||c>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(this,l)):n||(a=l,n=setTimeout(()=>{s=Date.now(),n=null,a&&e.apply(this,a)},c))}}s.d(t,{n:()=>n})},70431:e=>{e.exports={error:"styles_error__KzS_t"}},58342:e=>{e.exports={input_wrapper:"styles_input_wrapper__8SWje",input:"styles_input__RWJid",light:"styles_light__0EYUN",dark:"styles_dark___ZoR5",bordered:"styles_bordered__lohQ5",input_error:"styles_input_error__zi357",required:"styles_required__NH_PX"}},80238:e=>{e.exports={label:"styles_label__yS3El"}},60706:e=>{e.exports={wrapper:"styles_wrapper__ddmJE",search_input:"styles_search_input__56x2u",search_button:"styles_search_button__iWBmY"}},81993:e=>{e.exports={link:"styles_link__AcoP0"}},33580:e=>{e.exports={tableWrapper:"styles_tableWrapper__61R3_",table:"styles_table__hd0or"}},25109:e=>{e.exports={wrapper:"styles_wrapper__ESYo4",nav_list:"styles_nav_list__M0jcL",dropdown_disable:"styles_dropdown_disable__jVCLm",nav_link:"styles_nav_link__1o3DC",main_menu_element:"styles_main_menu_element__iAbD5",chevron:"styles_chevron__eanF8",contentful_menu_links:"styles_contentful_menu_links__uK_0J",mega_menu_area:"styles_mega_menu_area__kc8d9",menu_label:"styles_menu_label__4agEm",menu_link_item:"styles_menu_link_item__qVGGm",mega_menu_sidebar:"styles_mega_menu_sidebar__86lkT",submenu_element:"styles_submenu_element__Fr3Cy",submenu_active:"styles_submenu_active__AFfeI",mega_menu_content:"styles_mega_menu_content__Z7h9Z",cards_panel:"styles_cards_panel__Rq7NG",cards_panel_active:"styles_cards_panel_active__NqlSZ",cards:"styles_cards__kwIkC",cards_multi:"styles_cards_multi__Jd8fn",card_link:"styles_card_link__Mz7RU",card_title:"styles_card_title__1rd91",card_description:"styles_card_description__bKtpI",see_all:"styles_see_all__aJEUm",search_container:"styles_search_container__a0dpQ",is_active:"styles_is_active__ryVd8",search_close:"styles_search_close__oiHFI",button:"styles_button__xtIaP",donate_button:"styles_donate_button__sUBLB"}},21392:e=>{e.exports={search_input:"styles_search_input__F2kK6"}},15361:e=>{e.exports={modal:"styles_modal__4TFAy",close:"styles_close__yBSHk",title:"styles_title__C4A_I",context:"styles_context__MO0UC",downloadStatus:"styles_downloadStatus__gOKGJ",spinner:"styles_spinner__bU9Vf","account-download-spin":"styles_account-download-spin__2STNO",subt
1itle:"styles_subtitle__PiDpy",body:"styles_body__IAUWE",googleButton:"styles_googleButton__vCiq5",googleIcon:"styles_googleIcon__YEQ0U",submit:"styles_submit__ereep",divider:"styles_divider__HQBP8",form:"styles_form__fIYWu",signupProfileGroup:"styles_signupProfileGroup__47YCc",visuallyHidden:"styles_visuallyHidden__DlXWc",label:"styles_label__Srmi6",codeMethodRow:"styles_codeMethodRow__TJLjP",recoveryRow:"styles_recoveryRow__ssYmC",recoveryMethodSwitch:"styles_recoveryMethodSwitch__th4t0",signupMethodRow:"styles_signupMethodRow__cHG83",methodSwitch:"styles_methodSwitch__DAOfA",signupGoogleAlternative:"styles_signupGoogleAlternative__JcKDY",input:"styles_input__R772i",readOnlyEmailRow:"styles_readOnlyEmailRow__lso_B",changeEmail:"styles_changeEmail__9sH4F",legalStatement:"styles_legalStatement__wEBe4",whyRegister:"styles_whyRegister__SCcX_",whyRegisterToggle:"styles_whyRegisterToggle__W9iDQ",whyRegisterPanel:"styles_whyRegisterPanel__qdWQt",whyRegisterPanelExpanded:"styles_whyRegisterPanelExpanded__pAJ4c",whyRegisterPanelContent:"styles_whyRegisterPanelContent__P9_Ny",linkButton:"styles_linkButton__KSKwk",error:"styles_error__ChxLr"}},47988:e=>{e.exports={notice:"MenuSectionNotice_notice__A05J4",tools:"MenuSectionNotice_tools__lPW27",products:"MenuSectionNotice_products__kwODO"}},64471:e=>{e.exports={cover:"styles_cover__W90B4",backdrop:"styles_backdrop__ivwMR",drawer:"styles_drawer__8sVj8",slideIn:"styles_slideIn__C2Rnb",drawer_header:"styles_drawer_header__C88dt",back_button:"styles_back_button__uJwaA",close_button:"styles_close_button__MLIkX",close_x:"styles_close_x__tZ9Rb",drawer_main:"styles_drawer_main__12aff",main_menu:"styles_main_menu__H5d6H",secondary_menu:"styles_secondary_menu__WO1xN",tertiary_menu:"styles_tertiary_menu__AHLIu",menu_element:"styles_menu_element__tIJ8B",fadeSlideIn:"styles_fadeSlideIn__iy_wY",menu_card:"styles_menu_card__I1xJf",card_title:"styles_card_title__sO1uV",card_description:"styles_card_description__nLmHe",nav:"styles_nav__7vaPQ",search_wrapper:"styles_search_wrapper__40SPA"}},94817:e=>{e.exports={prefooter:"styles_prefooter__uTL52",heading:"styles_heading__oY261",wrapper:"styles_wrapper__TTQvu",divider:"styles_divider__1fBUH",supportText_wrapper:"styles_supportText_wrapper__B7arN",newsletterCopy:"styles_newsletterCopy__CsnX_",signupLink:"styles_signupLink__QF3Hw"}},35974:e=>{e.exports={footer:"styles_footer__Ap4e7",section:"styles_section__srWNa",prefooter:"styles_prefooter___6EAw",footer_wrapper:"styles_footer_wrapper__JL_e_",logo:"styles_logo__mvQuZ",columns:"styles_columns__cLqHF",title:"styles_title___a_Qg",links_wrapper:"styles_links_wrapper__z3h5Y",social_links:"styles_social_links__GgHkg",links_wrapper_offset:"styles_links_wrapper_offset__qZ7ll",element:"styles_element__KMkhF",social_link:"styles_social_link__ysmNy",footer_copyrights_nav:"styles_footer_copyrights_nav__yRq7I",copyrights:"styles_copyrights__fLIGv",copyrights_links:"styles_copyrights_links__P1Y7b",copylink:"styles_copylink__Qt6d2",copyrights_container:"styles_copyrights_container__NGAaU",contentful_logo:"styles_contentful_logo__tMTFN"}},80312:e=>{e.exports={header:"styles_header__S7hHf",menu_open:"styles_menu_open__PQLLC",header_without_bg:"styles_header_without_bg__bQHA_",header_visible:"styles_header_visible__3dN5s",header_hidden:"styles_header_hidden__hVaML",preview:"styles_preview__FaLmb",header_wrapper:"styles_header_wrapper__pooD6",search_open:"styles_search_open__3w00y",mobile_header_container:"styles_mobile_header_container__MNfZK",mobile_header_open:"styles_mobile_header_open__9VGRr",logo_container:"styles_logo_container__Om3se",logo:"styles_logo__YUK8g",logo_mobile:"styles_logo_mobile__z_4r_",logo_desktop_icon:"styles_logo_desktop_icon__vG6_b",logo_desktop_full:"styles_logo_desktop_full__WxkaW",mobile_controls:"styles_mobile_controls__QURuU",toggle_button:"styles_toggle_button__wewuI",mobile_main_nav:"styles_mobile_main_nav__iidgA",burger:"styles_burger__CHViT",line:"styles_line__vBssU",link:"styles_link__Tbemn",is_active:"styles_is_active__UW_nq",is_search_open:"styles_is_search_open__pjDSV",close_button:"styles_close_button__Yu0en",donate_button:"styles_donate_button__FYj1R",mobile_header_closed:"styles_mobile_header_closed__b6ktJ",desktop_right:"styles_desktop_right___lgGt",auth_control_desktop:"styles_auth_control_desktop__rH_r9",auth_control:"styles_auth_control__X_2Md",avatar_button:"styles_avatar_button__afDY9",avatar_button_anon:"styles_avatar_button_anon__tPQkP",avatar_image:"styles_avatar_image__BxZvN",account_menu:"styles_account_menu__URnzc",account_menu_email:"styles_account_menu_email__3fFpY",account_menu_item:"styles_account_menu_item__XLPpV"}}},e=>{var t=t=>e(e.s=t);e.O(0,[3812,2462,7566,8110,7442,8229,2793,8242,9411,8254,8620,8323,8255,3039,4636,8441,1075,7358],()=>t(57966)),_N_E=e.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.