try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="21bdc946-788c-47f7-b020-8430a60aa2a0",e._sentryDebugIdIdentifier="sentry-dbid-21bdc946-788c-47f7-b020-8430a60aa2a0")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7036],{20804:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(40751),a=r(14232);class l{async createArticleReaction(e,t,r,n,a,l){let i={allow_auto_responses:!1,article_content_id:r,reaction_index:t};a&&(i.article_channel=a),l&&(i.article_source=l),n&&(i.help_center_id=n);let s={reaction:i,user:this.userCipher};return this.postAlexandriaAPI("/_api/intercom/articles/".concat(e,"/react"),s)}async createMetric(e,t){let r={metrics:[{created_at:Math.round(Date.now()/1e3),id:this.generateUUID(),metadata:t,name:e.toString()}],user:this.userCipher};return this.postAlexandriaAPI("/_api/intercom/record_metrics",r)}generateUUID(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let r=(e+16*Math.random())%16|0;return("x"===t?r:3&r|8).toString(16)})}async postAlexandriaAPI(e,t){let r=new URL(e,window.location.href);await fetch(r.href,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"},method:"POST"})}constructor(e){this.userCipher=e}}class i{createArticleReaction(e,t,r,n){return this.intercom("private:createArticleReaction",e,t,r,n)}createMetric(e,t){return this.intercom("private:createMetric",e,t)}constructor(e){this.intercom=e}}var s=r(49226);function o(){let{sheetUserCipher:e}=(0,a.useContext)(n.R);return()=>(function(e){let{sheetUserCipher:t}=e;return(0,s.W)()?new s.G:t?new l(t):window.Intercom?new i(window.Intercom):void 0})({sheetUserCipher:e})}},40751:(e,t,r)=>{r.d(t,{R:()=>n});let n=(0,r(14232).createContext)({})},42192:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(37876),a=r(94896),l=r(15039),i=r.n(l);function s(e){let{fragments:t}=e;return(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)("span",{className:i()({"font-bold":"highlight"===e.type}),children:e.text},t))})}function o(e){let{activeCard:t,searchResult:r}=e,l=(0,a.U)();return(0,n.jsx)("a",{className:i()("collection-link group/search-card flex overflow-hidden rounded-card border border-solid border-card-border bg-card-bg no-underline shadow-card transition ease-linear hover:border-primary-alpha-60",{"border-primary-alpha-60":t}),href:r.url,children:(0,n.jsx)("div",{className:i()({"p-3 sm:p-5":l,"p-5":!l}),children:(0,n.jsxs)("div",{className:"article__preview intercom-force-break",children:[(0,n.jsx)("div",{className:"t__h3",children:(0,n.jsx)("span",{className:"text-md font-semibold text-body-primary-color group-hover/search-card:text-primary",children:(0,n.jsx)(s,{fragments:r.highlightedTitle})})}),(0,n.jsx)("span",{className:"paper__preview text-body-secondary-color",children:(0,n.jsx)(s,{fragments:r.highlightedSummary})})]})})})}var c=r(14232);let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sr-announcement";(0,c.useEffect)(()=>{if(!e)return;let r=document.getElementById(t);r&&(r.textContent=e)},[e,t])};var u=r(77742);function h(e){let{activeCard:t,searchResults:r,setActiveCard:l,suffix:s,suffixPosition:h="bottom"}=e,x=(0,a.U)(),f=(0,c.useRef)(null),m=(0,u.A)(),b=r?m.formatMessage({id:"search.number_of_results"},{count:r.length}):"";d(b),(0,c.useEffect)(()=>{s&&f.current&&f.current.focus()},[s]);let g=e=>{l&&l(e+1)},p=()=>{l&&l(-1)};return(0,n.jsxs)(n.Fragment,{children:["middle"===h&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:f,tabIndex:-1,role:"status","aria-roledescription":b}),s]}),r&&(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("div",{className:i()("flex flex-col gap-3",{"-mx-3 sm:-mx-5":x}),role:"list",children:r.map((e,r)=>(0,n.jsx)("div",{className:"w-full",tabIndex:-1,onMouseEnter:()=>g(r),onMouseLeave:p,children:(0,n.jsx)(o,{searchResult:e,activeCard:t===r+1})},r))}),"bottom"===h&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{ref:f,tabIndex:-1,role:"status","aria-roledescription":b}),s]})]})]})}},49226:(e,t,r)=>{r.d(t,{G:()=>n,W:()=>a});class n{createArticleReaction(e,t,r){var n;let a={type:"TRACK_REACTION",value:{article_content_id:parseInt(r),article_id:parseInt(e),reaction_index:t}};null==(n=this.mobileHost)||n.handleAction(JSON.stringify(a))}createMetric(e,t){var r,n;let a={type:"METRIC_EVENT",value:{}},l={},i={};for(let e in t){Object.prototype.hasOwnProperty.call(t,e)&&("action"!==(n=e)&&"object"!==n&&"owner"!==n&&"context"!==n&&"place"!==n?i[e]=t[e]:l[e]=t[e])}l.metadata=i,a.value=l,null==(r=this.mobileHost)||r.handleAction(JSON.stringify(a))}constructor(){this.mobileHost=l()}}function a(){return void 0!==l()}function l(){return void 0!==window.AndroidHost?window.AndroidHost:void 0!==window.iOSHost?window.iOSHost:void 0}},57036:(e,t,r)=>{r.d(t,{A:()=>eD});var n=r(37876),a=r(94250),l=r.n(a),i=r(77328),s=r.n(i);function o(e){let{allowIndexing:t,articleId:r,description:a,helpCenterSite:l,localeLinks:i,requestContext:{canonicalUrl:o,isDefaultDomainRequest:c},theme:d,title:u}=e,{defaultLocale:h}=l,x=i.filter(e=>e.available),f=i.find(e=>e.id===h),m=!(l.customDomain&&c),b=t&&l.seoIndexingEnabled&&m;return(0,n.jsxs)(s(),{children:[(0,n.jsx)("title",{children:u}),(0,n.jsx)("meta",{property:"og:title",content:u}),(0,n.jsx)("meta",{name:"twitter:title",content:u}),(0,n.jsx)("meta",{property:"og:description",content:a}),(0,n.jsx)("meta",{name:"twitter:description",content:a}),(0,n.jsx)("meta",{name:"description",content:a}),(0,n.jsx)("meta",{property:"og:type",content:r?"article":"website"}),d.social?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"og:image",content:d.social}),(0,n.jsx)("meta",{property:"twitter:image",content:d.social})]}):null,(0,n.jsx)("meta",{name:"robots",content:b?"all":"noindex, nofollow"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("link",{href:d.favicon||"/educate-favicon-64x64-at-2x.png",rel:"icon"}),o&&(0,n.jsx)("link",{rel:"canonical",href:o}),x.map((e,t)=>(0,n.jsx)("link",{rel:"alternate",href:e.absoluteUrl,hrefLang:e.id},t)),f&&(0,n.jsx)("link",{rel:"alternate",href:f.absoluteUrl,hrefLang:"x-default"})]})}var c=r(40751),d=r(49226),u=r(17619),h=r(15039),x=r.n(h),f=r(14232);function m(e){let{children:t,fullWidth:r}=e;return(0,n.jsx)("div",{className:"z-1 flex shrink-0 grow basis-auto justify-center px-5 sm:px-10",children:(0,n.jsx)("section",{"data-testid":"main-content",id:"main-content",className:x()("max-w-full",{"w-240":!r,"w-full xl:w-3/4":r}),children:t})})}async function b(e){if("tx2p130c"!=e)return;let{default:t}=await r.e(2881).then(r.t.bind(r,60970,23)),n=new t;try{await n.recordPageView(),n.recordOnPageviewEvent(window)}catch(e){console.log("PageView event failed")}}var g=r(45105),p=r.n(g),v=r(99742);function j(e){let{app:t,articleId:r,nonce:a}=e,l=function(e){let{app:t,articleId:r}=e,{user:n}=(0,f.useContext)(c.R),a={app_id:t.id};r&&(a.article_id=r),(null==n?void 0:n.userId)&&(null==n?void 0:n.role)!=="user_role"&&(a.anonymous_id=n.userId);let l=null==t?void 0:t.helpCenterSessionDuration;return l&&(a.session_duration=l),a}({app:t,articleId:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:v.env.NEXT_PUBLIC_INTERCOM_JS_OVERRIDE&&(0,n.jsx)("meta",{id:"IntercomApiEndpointOverride",name:"intercom-js-api-base",content:v.env.NEXT_PUBLIC_INTERCOM_JS_OVERRIDE})}),(0,n.jsx)(p(),{id:"intercomWidget",nonce:a,children:"\n window.intercomSettings = ".concat(JSON.stringify(l),";\n (function(){var w=window;var ic=w.Intercom;if(typeof ic===\"function\"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='").concat(t.messengerUrl,"';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})(); \n ")})]})}var w=r(36587),y=r(89672);let k=e=>{let{linkGroup:t}=e,r=(0,y.Jr)(),a=e=>{r({action:"clicked",metadata:{link_title:e.title,link_url:e.url,object:"footer_link"},name:"educate-footer-link"})};return(0,n.jsxs)("div",{className:"flex w-footer-column flex-col break-words",children:[t.title&&""!==t.title&&(0,n.jsx)("p",{className:"mb-6 text-start font-semibold",children:t.title}),(0,n.jsx)("ul",{"data-testid":"custom-links",className:"p-0",id:"custom-links",children:t.links.map((e,t)=>(0,n.jsx)("li",{className:"mb-4 list-none",children:(0,n.jsx)("a",{target:"_blank",href:e.url,rel:"nofollow noreferrer noopener","data-testid":"footer-custom-link-".concat(t),onClick:()=>a(e),className:"no-underline",children:e.title})},t))})]})};var C=function(e){return e[e.Simple=0]="Simple",e[e.Classic=1]="Classic",e[e.MultiLevel=2]="MultiLevel",e}({});let N=e=>{let{children:t,footerType:r,index:a,onClick:l,url:i}=e;return(0,n.jsx)("li",{className:x()("list-none align-middle",{"mx-2 inline-block":void 0===r}),children:(0,n.jsx)("a",{target:"_blank",href:i,rel:"nofollow noreferrer noopener","data-testid":"footer-social-link-".concat(a),onClick:()=>l(),className:"no-underline",children:t})})},_=e=>{let t,{footerType:r,socialLinks:a}=e,l=(0,y.Jr)(),i=(0,w.s0)(),s=e=>{l({action:"clicked",metadata:{link_title:e.provider,link_url:e.url,object:"footer_button"},name:"educate-footer-link"})};return a.length>0?(t=a.map((e,t)=>(0,n.jsx)(N,{provider:e.provider,url:e.url,index:t,footerType:r,onClick:()=>s(e),children:(0,n.jsx)("img",{src:"".concat(e.iconUrl,"/").concat(i.replace("#","")),alt:"","aria-label":e.url,width:"16",height:"16",loading:"lazy","data-testid":"social-icon-".concat(e.provider)})},t)),(0,n.jsx)("ul",{"data-testid":"social-links",className:x()("flex flex-wrap items-center gap-4 p-0",{"justify-center":r===C.Simple,"justify-start":r===C.Classic,"justify-start sm:justify-end":r===C.MultiLevel}),id:"social-links",children:t})):null};var E=r(8733);let L=()=>(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Intercom"}),(0,n.jsx)("g",{clipPath:"url(#clip0_1870_86937)",children:(0,n.jsx)("path",{d:"M14 0H2C0.895 0 0 0.895 0 2V14C0 15.105 0.895 16 2 16H14C15.105 16 16 15.105 16 14V2C16 0.895 15.105 0 14 0ZM10.133 3.02C10.133 2.727 10.373 2.49 10.667 2.49C10.961 2.49 11.2 2.727 11.2 3.02V10.134C11.2 10.428 10.96 10.667 10.667 10.667C10.372 10.667 10.133 10.427 10.133 10.134V3.02ZM7.467 2.672C7.467 2.375 7.705 2.132 8 2.132C8.294 2.132 8.533 2.375 8.533 2.672V10.484C8.533 10.781 8.293 11.022 8 11.022C7.705 11.022 7.467 10.782 7.467 10.484V2.672ZM4.8 3.022C4.8 2.727 5.04 2.489 5.333 2.489C5.628 2.489 5.867 2.726 5.867 3.019V10.133C5.867 10.427 5.627 10.666 5.333 10.666C5.039 10.666 4.8 10.426 4.8 10.133V3.02V3.022ZM2.133 4.088C2.133 3.792 2.373 3.554 2.667 3.554C2.961 3.554 3.2 3.792 3.2 4.087V8.887C3.2 9.18 2.96 9.419 2.667 9.419C2.372 9.419 2.133 9.179 2.133 8.886V4.086V4.088ZM13.68 12.136C13.598 12.206 11.622 13.866 8 13.866C4.378 13.866 2.402 12.206 2.32 12.136C2.096 11.946 2.07 11.608 2.262 11.384C2.452 11.161 2.789 11.134 3.012 11.324C3.044 11.355 4.808 12.8 8 12.8C11.232 12.8 12.97 11.343 12.986 11.328C13.209 11.138 13.546 11.163 13.738 11.386C13.93 11.61 13.904 11.946 13.68 12.138V12.136ZM13.867 8.886C13.867 9.181 13.627 9.42 13.333 9.42C13.039 9.42 12.8 9.18 12.8 8.887V4.087C12.8 3.791 13.04 3.553 13.333 3.553C13.628 3.553 13.867 3.791 13.867 4.086V8.886Z",className:"fill-current"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1870_86937",children:(0,n.jsx)("rect",{width:"16",height:"16",fill:"none"})})})]});function S(e){let{intercomUrl:t}=e;return(0,n.jsxs)("div",{className:"flex items-center text-sm","data-testid":"intercom-advert-branding",children:[(0,n.jsx)(L,{}),(0,n.jsx)("a",{href:t,className:"pl-2 align-middle no-underline",children:(0,n.jsx)(E.A,{id:"footer.powered_by"})})]})}var M=r(20324);let F=()=>(0,n.jsxs)("svg",{width:"25",height:"12",viewBox:"0 0 25 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"m6.093 -0.068 0.466 -0.003q0.755 -0.003 1.513 -0.002l1.059 -0.002h2.214q1.414 0.002 2.829 -0.007 1.093 -0.005 2.186 -0.002l1.043 -0.003q0.732 -0.002 1.462 0.002l0.429 -0.005c1.709 0.021 2.957 0.697 4.175 1.861 1.395 1.503 1.629 3.018 1.586 5.001 -0.045 0.861 -0.239 1.513 -0.72 2.229l-0.225 0.35c-0.95 1.361 -2.019 2.163 -3.609 2.65a10.028 10.028 0 0 1 -1.634 0.086l-0.466 0.003q-0.755 0.005 -1.509 -0.002l-1.059 0.002q-1.106 0.002 -2.211 -0.003a341.139 341.139 0 0 0 -2.825 0.002H8.614l-1.041 0.002q-0.729 0 -1.457 -0.005l-0.429 0.003c-1.569 -0.02 -2.878 -0.704 -4.022 -1.754C0.457 9.027 -0.097 7.791 -0.074 6.011l0.003 -0.4C-0.042 4.614 0.105 3.839 0.665 3l0.214 -0.345C2.15 0.791 3.873 -0.079 6.093 -0.068",fill:"#0464FF"}),(0,n.jsx)("path",{d:"m7.213 0.968 0.59 0.002 1.854 0.011 1.261 0.005q1.542 0.003 3.083 0.015a222.855 222.855 0 0 1 -1.239 4.813l-0.137 0.514q-0.636 2.339 -1.289 4.673 -1.334 0.038 -2.668 0.056 -0.452 0.007 -0.905 0.02c-2.027 0.057 -3.691 0.013 -5.296 -1.4a5.211 5.211 0 0 1 -1.538 -3.602c0.064 -1.473 0.541 -2.675 1.573 -3.74 1.5 -1.233 2.825 -1.384 4.713 -1.366",fill:"#FBFCFF"}),(0,n.jsx)("path",{d:"M15.666 3.334c0.778 0.051 1.113 0.373 1.635 0.927l0.399 0.418 0.3 0.321c0.729 -0.307 1.137 -0.819 1.65 -1.404 0.35 -0.262 0.35 -0.262 0.809 -0.219l0.375 0.123c0 0.666 0 0.666 -0.364 1.096l-0.47 0.445 -0.468 0.45 -0.366 0.343c0.255 0.613 0.63 0.999 1.104 1.459l0.412 0.404 0.318 0.303 -0.334 0.666c-0.852 -0.105 -1.254 -0.755 -1.797 -1.361 -0.333 -0.339 -0.333 -0.339 -0.704 -0.316 -0.603 0.321 -0.999 0.864 -1.447 1.371 -0.386 0.305 -0.386 0.305 -0.85 0.268l-0.369 -0.129c0.077 -0.78 0.364 -1.106 0.927 -1.635l0.418 -0.4 0.321 -0.298c-0.232 -0.531 -0.5 -0.852 -0.927 -1.239 -0.387 -0.375 -0.559 -0.555 -0.74 -1.073 0 -0.354 0 -0.354 0.166 -0.519",fill:"#F1F7FF"}),(0,n.jsx)("path",{d:"m9.834 3.334 0.834 0.166c-0.069 0.806 -0.455 1.22 -1 1.772l-0.5 0.527 -0.254 0.268c-0.513 0.555 -0.979 1.149 -1.45 1.737 -0.298 0.363 -0.298 0.363 -0.63 0.697 -0.489 0.015 -0.757 -0.1 -1.123 -0.422a30 30 0 0 1 -0.602 -0.628c-0.277 -0.305 -0.277 -0.305 -0.681 -0.555 -0.262 -0.229 -0.262 -0.229 -0.303 -0.675l0.041 -0.386c0.284 -0.13 0.284 -0.13 0.666 -0.166 0.393 0.313 0.393 0.313 0.791 0.74l0.404 0.427 0.307 0.333a8.228 8.228 0 0 0 1.563 -1.541q0.938 -1.172 1.937 -2.291",fill:"#0A61FF"})]});function T(){return(0,n.jsxs)("div",{className:"flex items-center text-sm text-footer-color","data-testid":"intercom-privacy-choices",children:[(0,n.jsx)(F,{}),(0,n.jsx)("button",{id:"ot-sdk-btn",className:"ot-sdk-show-settings cursor-pointer !border-none !bg-transparent !p-0 !pl-2 align-middle !text-sm font-normal leading-none tracking-tight !text-footer-color no-underline md:mt-0","data-i2-child":"text",children:(0,n.jsx)(E.A,{id:"footer.privacy.choice"})})]})}function A(e){var t;let{customizedFooterTextContent:r,disableBranding:a,footerContactDetails:l,footerLinks:i,footerLogo:s,intercomUrl:o,privacyChoice:c,rootUrl:d,showRichTextField:u}=e,h=new M.ReactView,x=u&&r?h.render(r,{skipStyleValidation:!0}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex grow flex-col items-start","data-testid":"multi-level-footer-layout",children:(0,n.jsx)("div",{className:"grid w-full grid-cols-2 gap-14 sm:flex sm:flex-row sm:flex-wrap",children:null==i||null==(t=i.linkGroups)?void 0:t.slice(0,6).map((e,t)=>(0,n.jsx)("div",{className:"",children:(0,n.jsx)(k,{linkGroup:e})},t))})}),(0,n.jsx)("hr",{className:"border-grey-600 my-12 border-t bg-footer-border opacity-20"}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("div",{className:"align-middle text-lg text-footer-color",children:(0,n.jsx)("a",{className:"no-underline",href:d,children:s})}),l&&(0,n.jsx)("div",{className:"mt-6 text-start text-base",children:l}),(0,n.jsx)("div",{className:"mt-10 block sm:hidden",children:(0,n.jsx)(_,{socialLinks:(null==i?void 0:i.socialLinks)||[],footerType:C.MultiLevel})}),!a&&null==x&&(0,n.jsx)("div",{className:"mt-10",children:(0,n.jsx)(S,{intercomUrl:o})})]}),(0,n.jsx)("div",{className:"hidden flex-col items-end sm:flex sm:flex-1 md:max-w-113 md:flex-none",children:(0,n.jsx)(_,{socialLinks:(null==i?void 0:i.socialLinks)||[],footerType:C.MultiLevel})})]}),x&&(0,n.jsx)("div",{className:"mt-6 text-start text-base",children:x}),!a&&x&&(0,n.jsx)("div",{className:"mt-10 flex justify-center",children:(0,n.jsx)(S,{intercomUrl:o})}),c&&(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(T,{})})]})}function R(e){var t;let{customizedFooterTextContent:r,disableBranding:a,footerContactDetails:l,footerLinks:i,footerLogo:s,intercomUrl:o,privacyChoice:c,rootUrl:d,showRichTextField:u}=e,h=new M.ReactView,x=u&&r?h.render(r,{skipStyleValidation:!0}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex flex-col md:flex-row","data-testid":"classic-footer-layout",children:[(0,n.jsxs)("div",{className:"mb-6 me-0 max-w-65 shrink-0 sm:mb-0 sm:me-18 sm:w-auto",children:[(0,n.jsx)("div",{className:"align-middle text-lg text-footer-color",children:(0,n.jsx)("a",{className:"no-underline",href:d,children:s})}),l&&(0,n.jsx)("div",{className:"mt-6 text-start text-base",children:l}),(0,n.jsx)("div",{className:"mt-10",children:(0,n.jsx)(_,{socialLinks:(null==i?void 0:i.socialLinks)||[],footerType:C.Classic})}),!a&&null==x&&(0,n.jsx)("div",{className:"mt-10",children:(0,n.jsx)(S,{intercomUrl:o})})]}),(0,n.jsx)("div",{className:"mt-18 flex grow flex-col md:mt-0 md:items-end",children:(0,n.jsx)("div",{className:"grid grid-cols-2 gap-x-7 gap-y-14 md:flex md:flex-row md:flex-wrap",children:null==i||null==(t=i.linkGroups)?void 0:t.slice(0,4).map((e,t)=>(0,n.jsx)("div",{className:"w-1/2 sm:w-auto",children:(0,n.jsx)(k,{linkGroup:e})},t))})})]}),x&&(0,n.jsx)("div",{className:"mt-6 text-start text-base",children:x}),!a&&x&&(0,n.jsx)("div",{className:"mt-10 flex justify-center",children:(0,n.jsx)(S,{intercomUrl:o})}),c&&(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(T,{})})]})}let I=e=>{let{customLinks:t}=e,r=(0,y.Jr)();if(0===t.length)return null;let a=e=>{r({action:"clicked",metadata:{link_title:e.title,link_url:e.url,object:"footer_link"},name:"educate-footer-link"})};return(0,n.jsx)("ul",{"data-testid":"custom-links",className:"mb-4 p-0",id:"custom-links",children:t.map((e,t)=>(0,n.jsx)("li",{className:"mx-3 inline-block list-none",children:(0,n.jsx)("a",{target:"_blank",href:e.url,rel:"nofollow noreferrer noopener","data-testid":"footer-custom-link-".concat(t),onClick:()=>a(e),className:"no-underline",children:e.title})},t))})};function B(e){var t,r,a;let{customizedFooterTextContent:l,disableBranding:i,footerContactDetails:s,footerLinks:o,footerLogo:c,intercomUrl:d,privacyChoice:u,rootUrl:h,showRichTextField:x}=e,f=(null==o||null==(t=o.custom)?void 0:t.length)||(null==o||null==(r=o.socialLinks)?void 0:r.length)||(null==o||null==(a=o.linkGroups)?void 0:a.length)||!1,m=new M.ReactView,b=x&&l?m.render(l,{skipStyleValidation:!0}):null;return(0,n.jsxs)("div",{className:"text-center","data-testid":"simple-footer-layout",children:[(0,n.jsx)("div",{className:"align-middle text-lg text-footer-color",children:(0,n.jsx)("a",{className:"no-underline",href:h,children:c})}),s&&(0,n.jsx)("div",{className:"mt-3 text-base",children:s}),f&&(0,n.jsxs)("div",{className:"mt-10","data-testid":"simple-footer-links",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-center",children:[(null==o?void 0:o.linkGroups)&&(null==o?void 0:o.linkGroups.slice(0,1).map((e,t)=>(0,n.jsx)("span",{children:(0,n.jsx)(I,{customLinks:e.links})},t))),!(null==o?void 0:o.linkGroups)&&(0,n.jsx)(I,{customLinks:(null==o?void 0:o.custom)||[]})]}),(0,n.jsx)(_,{socialLinks:(null==o?void 0:o.socialLinks)||[],footerType:C.Simple})]}),b&&(0,n.jsx)("div",{className:"mt-3 text-base",children:b}),!i&&(0,n.jsx)("div",{className:"mt-10 flex justify-center",children:(0,n.jsx)(S,{intercomUrl:d})}),u&&(0,n.jsx)("div",{className:"mt-2 flex justify-center",children:(0,n.jsx)(T,{})})]})}let V=e=>{switch(e){case C.MultiLevel:return A;case C.Classic:return R;default:return B}};function U(e){let{theme:t,type:r}=e;return t.footerLogo?(0,n.jsx)("img",{"data-testid":"logo-img",src:t.footerLogo,alt:t.siteName,className:x()("max-h-8 contrast-80",{inline:r==C.Simple})}):(0,n.jsx)("span",{"data-testid":"logo-sitename",children:t.siteName})}function D(e){let{customizedFooterTextContent:t,disableBranding:r,footerContactDetails:a,footerLinks:l,intercomUrl:i,privacyChoice:s,rootUrl:o,theme:c}=e,d=(0,w.W3)("footer"),u=(0,w.$P)(),h=(0,n.jsx)(U,{theme:c,type:null==d?void 0:d.type}),x=(null==l?void 0:l.linkGroups)&&(null==d?void 0:d.type)?V(d.type):B;return(0,n.jsx)("footer",{id:"footer",className:"mt-24 shrink-0 bg-footer-bg px-0 py-12 text-left text-base text-footer-color",children:(0,n.jsx)("div",{className:"shrink-0 grow basis-auto px-5 sm:px-10",children:(0,n.jsx)("div",{className:"mx-auto max-w-240 sm:w-auto",children:(0,n.jsx)("div",{children:(0,n.jsx)(x,{disableBranding:r,footerContactDetails:a,footerLinks:l,footerLogo:h,customizedFooterTextContent:t,intercomUrl:i,rootUrl:o,showRichTextField:u,privacyChoice:s})})})})})}function H(e){let{nonce:t,tagId:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p(),{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(r),nonce:t}),(0,n.jsx)(p(),{nonce:t,id:"google-tag",children:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '".concat(r,"');")})]})}function P(e){let{containerId:t,nonce:r}=e;return(0,n.jsx)(p(),{nonce:r,id:"google-tag-manager",children:"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]');\n n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(t,"');\n ")})}var z=r(77742);function q(){return(0,n.jsxs)("svg",{id:"locale-picker-globe",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8 15C9.39949 15 10.534 11.866 10.534 8C10.534 4.13401 9.39949 1 8 1C6.60051 1 5.466 4.13401 5.466 8C5.466 11.866 6.60051 15 8 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M1.448 5.75989H14.524",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M1.448 10.2402H14.524",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}function O(){return(0,n.jsx)("svg",{id:"locale-picker-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M5 6.5L8.00093 9.5L11 6.50187",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function W(e){let{localeLinks:t}=e,{locale:r}=(0,z.A)(),a=(0,z.A)(),l=(0,y.Jr)(),i=t.find(e=>e.selected),s=(null==i?void 0:i.name)||"",o=async e=>{var n;let a=e.target.value;l({action:"submitted",metadata:{from_language:r,from_url:window.location.href,to_language:null==(n=t.find(e=>e.url===a))?void 0:n.id,to_url:a},name:"educate-language-picker"}),window.location.assign(a)};return(0,n.jsxs)("div",{className:"relative cursor-pointer has-[:focus]:outline",children:[(0,n.jsx)("select",{className:"peer absolute z-10 block h-6 w-full cursor-pointer opacity-0 md:text-base",defaultValue:(null==i?void 0:i.url)||"",onChange:o,"aria-label":a.formatMessage({id:"locale_picker.aria_label"}),id:"language-selector",children:t.map(e=>(0,n.jsx)("option",{value:e.url,className:"text-black",children:e.name},e.id))}),(0,n.jsxs)("div",{className:"mb-10 ml-5 flex items-center gap-1 text-md hover:opacity-80 peer-hover:opacity-80 md:m-0 md:ml-3 md:text-base","aria-hidden":"true",children:[(0,n.jsx)(q,{}),s,(0,n.jsx)(O,{})]})]})}var G=r(42192);function Z(e){let{align:t,justify:r,textAlign:n}=e;return x()({"items-center":"center"===t,"items-end":"end"===t,"items-start":"start"===t,"justify-center":"center"===r,"justify-end":"end"===r,"justify-start":"start"===r,"text-center":"center"===n,"text-end":"end"===n,"text-start":"start"===n})}var J=r(39149),Y=r.n(J),K=r(78094);let Q=()=>{let e=(0,K.i)("finOnHelpCenter"),[t,r]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let e=()=>{r(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e&&!t},X={feedbackGivenText:"",feedbackText:"",id:"",linkedArticles:[],overview:[],title:""};var $=r(94896);let ee=()=>(0,n.jsxs)("svg",{width:"854",height:"81",viewBox:"0 0 854 81",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_46_4333)",children:(0,n.jsx)("rect",{x:"-1336",y:"-115.379",width:"2190",height:"283",fill:"url(#paint0_linear_46_4333)"})}),(0,n.jsx)("g",{clipPath:"url(#clip1_46_4333)",children:(0,n.jsx)("rect",{x:"-1756",y:"-83.3792",width:"2190",height:"283",fill:"url(#paint1_linear_46_4333)"})}),(0,n.jsx)("g",{clipPath:"url(#clip2_46_4333)",children:(0,n.jsx)("rect",{x:"-1964",y:"-51.3792",width:"2190",height:"283",fill:"url(#paint2_linear_46_4333)"})}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear_46_4333",x1:"854",y1:"27.8494",x2:"-641.481",y2:"1045.26",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0.21",stopColor:"#F0F1EF"}),(0,n.jsx)("stop",{offset:"0.49",stopColor:"#E0DEDE"}),(0,n.jsx)("stop",{offset:"0.79",stopColor:"#F0F1EF"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear_46_4333",x1:"434",y1:"59.8494",x2:"-1061.48",y2:"1077.26",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0.21",stopColor:"#F0F1EF"}),(0,n.jsx)("stop",{offset:"0.49",stopColor:"#E0DEDE"}),(0,n.jsx)("stop",{offset:"0.79",stopColor:"#F0F1EF"})]}),(0,n.jsxs)("linearGradient",{id:"paint2_linear_46_4333",x1:"226",y1:"91.8494",x2:"-1269.48",y2:"1109.26",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0.21",stopColor:"#F0F1EF"}),(0,n.jsx)("stop",{offset:"0.49",stopColor:"#E0DEDE"}),(0,n.jsx)("stop",{offset:"0.79",stopColor:"#F0F1EF"})]}),(0,n.jsx)("clipPath",{id:"clip0_46_4333",children:(0,n.jsx)("rect",{y:"0.62085",width:"854",height:"16",rx:"8",fill:"white"})}),(0,n.jsx)("clipPath",{id:"clip1_46_4333",children:(0,n.jsx)("rect",{y:"32.6208",width:"434",height:"16",rx:"8",fill:"white"})}),(0,n.jsx)("clipPath",{id:"clip2_46_4333",children:(0,n.jsx)("rect",{y:"64.6208",width:"226",height:"16",rx:"8",fill:"white"})})]})]}),et=e=>{let{size:t=14}=e;return(0,n.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",className:"fill-inherit",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsxs)("g",{clipPath:"url(#clip0_344_4103)",children:[(0,n.jsx)("rect",{x:"1.12012",y:"1.27979",width:"21.6",height:"21.52",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.88C0 1.28942 1.28942 0 2.88 0H21.12C22.7106 0 24 1.28942 24 2.88V21.12C24 22.7106 22.7106 24 21.12 24H2.88C1.28942 24 0 22.7106 0 21.12V2.88ZM12.04 4C11.4877 4 11.04 4.44771 11.04 5V12.8197C11.04 13.4715 11.5685 14 12.2203 14C12.673 14 13.04 13.633 13.04 13.1803V5C13.04 4.44771 12.5923 4 12.04 4ZM6 5.96C6 5.40771 6.44771 4.96 7 4.96C7.55229 4.96 8 5.40771 8 5.96V12.1403C8 12.593 7.63302 12.96 7.18033 12.96C6.52845 12.96 6 12.4315 6 11.7797V5.96ZM16.08 5.96C16.08 5.40771 16.5277 4.96 17.08 4.96C17.6323 4.96 18.08 5.40771 18.08 5.96V12.1403C18.08 12.593 17.713 12.96 17.2603 12.96C16.6085 12.96 16.08 12.4315 16.08 11.7797V5.96ZM7.94303 16.1249C7.09128 15.9849 6.65418 15.913 6.34778 16.1819C6.07186 16.4241 5.99696 16.9156 6.18048 17.2797C7.39807 19.6954 9.80176 20.8 12.08 20.8C14.3582 20.8 16.7619 19.6954 17.9795 17.2797C18.163 16.9156 18.0882 16.4241 17.8122 16.1819C17.5058 15.913 17.0687 15.9849 16.217 16.1249C15.3574 16.2662 14.0758 16.4769 12.08 16.4769C10.0842 16.4769 8.80256 16.2662 7.94303 16.1249Z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_344_4103",children:(0,n.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"white"})})})]})},er=()=>{let e=(0,y.Jr)();return t=>{let{action:r,metadata:n={},object:a}=t;e({action:r,metadata:{...n,object:a,place:"help_center"},name:"fin-overview"})}},en=e=>{let{feedbackGivenText:t,feedbackText:r}=e,[a,l]=(0,f.useState)(!1),i=er();return r?(0,n.jsx)("div",{className:"fin-feedback mr-auto mt-2 flex items-center gap-2 rounded-full border border-gray-150 p-2 pl-4","data-testid":"fin-feedback",children:a?(0,n.jsx)("span",{className:"text-body-primary-color","data-testid":"fin-feedback-given",children:t}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-body-primary-color",children:r}),(0,n.jsxs)("button",{onClick:()=>{l(!0),i({action:"clicked",object:"fin_positive_feedback"})},"data-testid":"fin-feedback-positive",className:"rounded-full bg-gray-150 pr-2 text-body-primary-color",children:[(0,n.jsx)("span",{className:"h-8 w-8 px-2",children:"\uD83D\uDC4D"}),"Yes"]}),(0,n.jsxs)("button",{onClick:()=>{l(!0),i({action:"clicked",object:"fin_negative_feedback"})},"data-testid":"fin-feedback-negative",className:"rounded-full bg-gray-150 pr-2 text-body-primary-color",children:[(0,n.jsx)("span",{className:"h-8 w-8 px-2",children:"\uD83D\uDC4E"}),"No"]})]})}):null},ea=()=>(0,n.jsxs)("div",{className:"my-10 flex flex-col items-center gap-2 text-center","data-testid":"fin-overview-empty",children:[(0,n.jsx)("div",{className:"fill-gray-150",children:(0,n.jsx)(et,{size:52})}),(0,n.jsx)("span",{className:"m-4 max-w-157 text-body-secondary-color",children:"Sorry, Fin AI wasn't able to answer your question. Try rephrasing it or asking something different"})]});function el(e){let{feedbackGivenText:t,feedbackText:r,initialized:a,loading:l,overview:i}=e,[s,o]=(0,f.useState)(""),c=er();return((0,f.useEffect)(()=>{let e;if(!i&&a){a.current=!1;return}if(null==a?void 0:a.current){let e="";null==i||i.forEach((t,r)=>{0===r||t.text.includes("\n")||(t.text="\n"+t.text),e+=t.text}),o(e);return}a.current=!0,o("");let t=0;return c({action:"viewed",metadata:{action:"animation_started"},object:"fin_overview"}),null==i||i.forEach((e,r)=>{0===r||e.text.includes("\n")||(e.text="\n"+e.text),e.text.split(" ").forEach(e=>{setTimeout(function(){o(t=>t+e+" ")},50*t),t++})}),e=setTimeout(()=>{c({action:"viewed",metadata:{action:"animation_finished"},object:"fin_overview"})},50*t),()=>{e&&clearTimeout(e)}},[i]),l&&!i)?(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden","data-testid":"fin-overview-loading",children:[(0,n.jsx)(ee,{}),(0,n.jsx)("div",{className:"absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-white/50 to-transparent"})]}):(null==i?void 0:i.length)===0?(0,n.jsx)(ea,{"data-testid":"fin-overview-empty"}):(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("div",{className:"bg-secondary-bg overflow-hidden whitespace-pre-wrap text-body-primary-color","data-testid":"fin-overview-content",children:s}),(0,n.jsx)(en,{feedbackText:r,feedbackGivenText:t})]})}let ei=e=>{let{rotate:t=0,size:r=20}=e;return(0,n.jsx)("svg",{className:"fill-inherit",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,style:{transform:"rotate(".concat(t,"deg)")},children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})};function es(e){let{linkedArticles:t}=e,r=er();return t&&t.length>0&&(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)("hr",{}),(0,n.jsx)("div",{className:"flex-col",children:null==t?void 0:t.map((e,t)=>(0,n.jsx)("div",{className:"py-4",tabIndex:-1,children:(0,n.jsxs)("a",{className:"collection-link flex content-center",href:e.url,onClick:()=>r({action:"clicked",metadata:{article_id:e.id},object:"article"}),children:[(0,n.jsx)("span",{className:"text-body-primary-color",children:e.title}),(0,n.jsx)("div",{className:"ml-auto",children:(0,n.jsx)(ei,{rotate:-90})})]})},t))})]})}let eo=e=>{let{loading:t,overviewLength:r,title:a}=e;return t||r?(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)("span",{className:x()("font-semibold",{"mb-2 text-body-primary-color":a,"text-body-secondary-color":!a}),children:t?(0,n.jsx)("div",{className:"relative inline-block overflow-visible whitespace-nowrap",children:(0,n.jsx)("ul",{className:"h-7 overflow-hidden",children:["Thinking...","Searching through sources...","Analyzing..."].map(e=>(0,n.jsx)("li",{className:"relative animate-cycleItems",children:e},e))})}):a})}):null};function ec(e){let{finAnswer:t,handleBlur:r,initialized:a,loading:l}=e,i=(0,$.U)();if(!t&&!l)return null;let s=e=>{e.stopPropagation()};return(0,n.jsxs)("div",{className:"pointer-events-auto overflow-hidden",onFocus:s,onClick:s,onBlur:r,tabIndex:0,children:[(0,n.jsx)("div",{className:x()({"sm:p-5":i}),children:(0,n.jsxs)("div",{className:"intercom-force-break relative",children:[(0,n.jsx)(eo,{loading:l,title:null==t?void 0:t.title,overviewLength:!!(null==t?void 0:t.overview.length)}),(0,n.jsx)(el,{overview:null==t?void 0:t.overview,loading:l,initialized:a,feedbackText:null==t?void 0:t.feedbackText,feedbackGivenText:null==t?void 0:t.feedbackGivenText})]})}),(0,n.jsx)(es,{linkedArticles:null==t?void 0:t.linkedArticles})]})}function ed(e){let{size:t=24}=e;return(0,n.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 10.3013H11C12.6569 10.3013 14 8.95817 14 7.30132C14 5.64447 12.6569 4.30132 11 4.30132H8M2 10.3013L4.66667 12.968M2 10.3013L4.66667 7.63465",stroke:"#646462",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function eu(e){let{activeCard:t,onClick:r,query:a,setActiveCard:i}=e;return(0,n.jsxs)("button",{"data-testid":"ask-fin-card",onMouseEnter:()=>{i(0)},onMouseLeave:()=>{i(-1)},onClick:r,className:"jsx-cd47340bf266d0e "+(x()("ask-fin-card mb-3 flex w-full grow overflow-hidden rounded-card border-2 border-solid border-card-border bg-gray-50 text-left no-underline shadow-card transition ease-linear",{active:t})||""),children:[(0,n.jsxs)("div",{className:"jsx-cd47340bf266d0e flex grow flex-col items-center gap-4 p-5 sm:flex-row sm:gap-5 sm:p-5",children:[(0,n.jsx)(et,{size:28}),(0,n.jsx)("div",{className:"jsx-cd47340bf266d0e intercom-force-break flex w-full max-w-oneColWidth flex-1 flex-col justify-center text-body-primary-color",children:(0,n.jsxs)("div",{className:"jsx-cd47340bf266d0e",children:[(0,n.jsxs)("div",{"data-testid":"collection-name",className:"jsx-cd47340bf266d0e -mt-1 mb-0.5 line-clamp-2 text-md font-semibold leading-normal text-body-primary-color transition ease-linear group-hover/collection-summary:text-primary sm:line-clamp-1",children:['Ask "',a,'"']}),(0,n.jsx)("p",{className:"jsx-cd47340bf266d0e mb-0 mt-0 line-clamp-3 text-md text-body-secondary-color sm:line-clamp-1",children:"Find the answer with Fin AI"})]})}),(0,n.jsx)(ed,{size:16})]}),(0,n.jsx)(l(),{id:"cd47340bf266d0e",children:".ask-fin-card.jsx-cd47340bf266d0e{}.ask-fin-card.jsx-cd47340bf266d0e.jsx-cd47340bf266d0e:hover,.ask-fin-card.jsx-cd47340bf266d0e.jsx-cd47340bf266d0e:active,.ask-fin-card.jsx-cd47340bf266d0e.active.jsx-cd47340bf266d0e{border:2px solid transparent;background-image:-webkit-linear-gradient(#f9fafb,#f9fafb),-webkit-linear-gradient(left,#ffddb3,#cbb0ff,#e66cb1,#fa7938,#ffddb3);background-image:-moz-linear-gradient(#f9fafb,#f9fafb),-moz-linear-gradient(left,#ffddb3,#cbb0ff,#e66cb1,#fa7938,#ffddb3);background-image:-o-linear-gradient(#f9fafb,#f9fafb),-o-linear-gradient(left,#ffddb3,#cbb0ff,#e66cb1,#fa7938,#ffddb3);background-image:linear-gradient(#f9fafb,#f9fafb),linear-gradient(to right,#ffddb3,#cbb0ff,#e66cb1,#fa7938,#ffddb3);-webkit-background-origin:border-box;-moz-background-origin:border-box;-o-background-origin:border-box;background-origin:border-box;background-clip:padding-box,border-box}"})]})}let eh=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[n,a]=(0,f.useState)(!1),l=t=>{let{key:r}=t;r===e&&a(!0)},i=t=>{let{key:r}=t;r===e&&a(!1)};return(0,f.useEffect)(()=>{let e=t.current;if(e&&!r)return e.addEventListener("keydown",l),e.addEventListener("keyup",i),()=>{e.removeEventListener("keydown",l),e.removeEventListener("keyup",i)}},[]),n};function ex(){return(0,n.jsx)("svg",{width:"22",height:"21",viewBox:"0 0 22 21",xmlns:"http://www.w3.org/2000/svg",className:"fill-inherit","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.27485 8.7001C3.27485 5.42781 5.92757 2.7751 9.19985 2.7751C12.4721 2.7751 15.1249 5.42781 15.1249 8.7001C15.1249 11.9724 12.4721 14.6251 9.19985 14.6251C5.92757 14.6251 3.27485 11.9724 3.27485 8.7001ZM9.19985 0.225098C4.51924 0.225098 0.724854 4.01948 0.724854 8.7001C0.724854 13.3807 4.51924 17.1751 9.19985 17.1751C11.0802 17.1751 12.8176 16.5627 14.2234 15.5265L19.0981 20.4013C19.5961 20.8992 20.4033 20.8992 20.9013 20.4013C21.3992 19.9033 21.3992 19.0961 20.9013 18.5981L16.0264 13.7233C17.0625 12.3176 17.6749 10.5804 17.6749 8.7001C17.6749 4.01948 13.8805 0.225098 9.19985 0.225098Z"})})}function ef(e){let{className:t,onClick:r}=e,a=(0,z.A)();return(0,n.jsx)("button",{"data-testid":"search-clear-button",type:"button",onClick:r,tabIndex:0,className:x()("group",t),children:(0,n.jsx)("svg",{className:"absolute inset-y-0 end-0 top-3 cursor-pointer pe-4 group-focus:outline",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 16 16","aria-label":a.formatMessage({id:"search.clear_search"}),children:(0,n.jsx)("path",{d:"M8.018 6.643L5.375 4 4 5.375l2.643 2.643L4 10.643 5.375 12l2.643-2.625L10.625 12 12 10.643 9.357 8.018 12 5.375 10.643 4z"})})})}function em(e,t,r){let[n,a]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{n&&(r&&t&&t.current?t.current.focus():e&&e.current&&e.current.focus(),a(!1))},[n,e,t,r]),{setNeedsFocus:a}}function eb(e){var t;let{backButtonRef:r,inputRef:a,onBlur:l,onChange:i,onFocus:s,query:o,setShowFinAiChip:c,showFinAiChip:d=!1}=e,u=(0,z.A)(),h=null==(t=(0,w.W3)("header"))?void 0:t.style.align,f=Q()?u.formatMessage({id:"search.box_placeholder_fin"}):u.formatMessage({id:"search.box_placeholder"}),m=er(),{setNeedsFocus:b}=em(a,r,d),g="search-input";return(0,n.jsx)("div",{className:x()("flex w-full flex-col",Z({align:h})),children:(0,n.jsxs)("div",{className:"relative flex w-full sm:w-search-bar",children:[(0,n.jsx)("label",{htmlFor:g,className:"sr-only",children:f}),(0,n.jsx)("input",{ref:a,id:g,type:"text",autoComplete:"off",className:"peer w-full rounded-search-bar border border-black-alpha-8 bg-white-alpha-20 p-4 ps-12 font-secondary text-lg text-header-color shadow-search-bar outline-none transition ease-linear placeholder:text-header-color hover:bg-white-alpha-27 hover:shadow-search-bar-hover focus:border-transparent focus:bg-white focus:text-black-10 focus:shadow-search-bar-focused placeholder:focus:text-black-45",placeholder:f,name:"q",value:o,onChange:e=>i(e.target.value),onFocus:s,onBlur:l,onKeyDown:function(e){d&&"Backspace"===e.key&&0===o.length&&c(!1)},"aria-label":f}),(0,n.jsx)("div",{className:x()("absolute inset-y-0 start-0 flex items-center fill-header-color peer-focus-visible:fill-black-45",{"pointer-events-none ps-5":!d,"px-4":d}),children:d?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("button",{className:"flex items-center pr-2",onClick:()=>{m({action:"clicked",object:"fin_back_button"}),c(!1),b(!0)},ref:r,children:(0,n.jsx)(ei,{rotate:90,size:20})})}):(0,n.jsx)(ex,{})}),o.length>0&&(0,n.jsx)("div",{className:"fill-header-color peer-focus-visible:fill-black-45",children:(0,n.jsx)(ef,{onClick:function(){m({action:"clicked",object:"fin_close_button"}),i(""),d&&c(!1),b(!0)}})})]})})}function eg(e){let{rootUrl:t}=e,[r,a]=(0,f.useState)(0),[l,i]=(0,f.useState)(!1),{lastSearchedQuery:s,query:o,searchResults:c,setQuery:d}=function(e){let[t,r]=(0,f.useState)(""),[n,a]=(0,f.useState)(null),[l,i]=(0,f.useState)(null),[s,o]=(0,f.useState)(!1),c=(0,f.useMemo)(()=>Y()(async t=>{try{o(!0);let r=await fetch("".concat(e,"search?q=").concat(t)),n=await r.json();a(n)}catch(e){a([])}finally{o(!1),i(t)}},500),[e]);return(0,f.useEffect)(()=>{let e=new URLSearchParams(location.search).get("q");e&&r(e)},[]),{lastSearchedQuery:l,loading:s,query:t,searchResults:n,setQuery:async function(e){r(e);let t=new URLSearchParams(location.search);0===e.length?t.delete("q"):t.set("q",e);let n=t.toString().length>0?"".concat(location.pathname,"?").concat(t):location.pathname;window.history.replaceState({},"",n),e.length>3?c(e):a(null)}}}(t),{finAnswer:u,loading:h,setFinQuery:m}=function(e){let t=Q(),[r,n]=(0,f.useState)(null),[a,l]=(0,f.useState)(null),[i,s]=(0,f.useState)(null),[o,c]=(0,f.useState)(null),[d,u]=(0,f.useState)(!1),h=(0,f.useMemo)(()=>async t=>{try{if(t===i)return void n(a);s(t),o&&o.abort();let r=new AbortController;c(r),u(!0),n(null);let d=await fetch("".concat(e,"fin?q=").concat(t),{signal:null==r?void 0:r.signal}),h=await d.json();n(h),l(h),u(!1)}catch(e){e instanceof Error&&"AbortError"!==e.name&&(n(X),u(!1))}},[e,o,a]);return{finAnswer:r,loading:d,setFinQuery:async function(e){t&&(e.length>3?h(e):n(null))}}}(t),{handleBlur:b,handleFocus:g,isFocused:p,searchbarRef:v}=function(){let[e,t]=(0,f.useState)(!1),r=(0,f.useRef)(null);return{handleBlur:e=>{var n;let a=e.relatedTarget;(null==(n=r.current)?void 0:n.contains(a))||t(!1)},handleFocus:()=>t(!0),isFocused:e,searchbarRef:r}}(),j=Q(),w=(0,f.useRef)(!1),y=er(),k=p&&o.length>0&&(u||c||j),C=j&&p&&!l,N=(0,f.useRef)(null),_=(0,f.useRef)(null),{setNeedsFocus:L}=em(N,_,l),S=()=>{if(0===r||-1===r)o.length>3&&(y({action:"submitted",object:"fin_card"}),m(o),i(!0),L(!0));else{var e;let t=null==c||null==(e=c[r-1])?void 0:e.url;t&&(window.location.href=t)}},M=eh("ArrowDown",v,!j),F=eh("ArrowUp",v,!j),T=eh("Enter",v,!j);return(0,f.useEffect)(()=>{M&&a(e=>{var t;return e<=(null!=(t=null==c?void 0:c.length)?t:0)-1?e+1:e})},[M]),(0,f.useEffect)(()=>{F&&a(e=>e>0?e-1:e)},[F]),(0,f.useEffect)(()=>{j&&T&&S()},[T,j]),(0,n.jsxs)("div",{ref:v,id:"search-bar",className:"relative w-full",children:[j?(0,n.jsx)(eb,{query:o,onChange:d,onBlur:b,onFocus:g,setQuery:d,showFinAiChip:l,setShowFinAiChip:i,inputRef:N,backButtonRef:_}):(0,n.jsx)("form",{action:t,autoComplete:"off",children:(0,n.jsx)(eb,{query:o,onChange:d,onBlur:b,onFocus:g,setQuery:d,showFinAiChip:l,setShowFinAiChip:i,inputRef:N,backButtonRef:_})}),k&&(0,n.jsx)("div",{className:"absolute z-2 mt-1 flex w-full rounded border border-solid border-body-border bg-body-bg p-7 shadow-2xl","data-testid":"search-popup",children:(0,n.jsxs)("div",{className:x()("w-full"),children:[C&&(0,n.jsx)(eu,{query:o,onClick:S,activeCard:0===r,setActiveCard:a}),(u||h)&&l&&(0,n.jsx)(ec,{finAnswer:u,loading:h,initialized:w,handleBlur:e=>{var t;let r=e.relatedTarget;null!=(t=v.current)&&t.contains(r)||b(e)}}),c&&!l&&(0,n.jsx)(G.A,{activeCard:r,setActiveCard:a,searchResults:c,suffix:s&&s.length>0&&0===c.length&&(0,n.jsx)("div",{className:"z-0 p-5",children:(0,n.jsxs)("div",{className:"pt-0",children:[(0,n.jsx)("span",{className:"text-body-secondary-color",children:(0,n.jsx)(E.A,{id:"search.no_results"})}),(0,n.jsx)("span",{className:"ml-1 font-semibold text-body-secondary-color",children:s})]})}),suffixPosition:"bottom"})]})})]})}function ep(e){let{headerLinks:t}=e;return(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e.url,className:"mx-5 mb-5 text-md no-underline hover:opacity-80 md:mx-3 md:my-0 md:text-base","data-testid":"header-link-".concat(t),children:e.title},t))})}function ev(e){let{headerLinks:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ep,{headerLinks:t})})}let ej=()=>(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"fill-current",children:[(0,n.jsx)("path",{d:"M1.86861 2C1.38889 2 1 2.3806 1 2.85008C1 3.31957 1.38889 3.70017 1.86861 3.70017H14.1314C14.6111 3.70017 15 3.31957 15 2.85008C15 2.3806 14.6111 2 14.1314 2H1.86861Z"}),(0,n.jsx)("path",{d:"M1 8C1 7.53051 1.38889 7.14992 1.86861 7.14992H14.1314C14.6111 7.14992 15 7.53051 15 8C15 8.46949 14.6111 8.85008 14.1314 8.85008H1.86861C1.38889 8.85008 1 8.46949 1 8Z"}),(0,n.jsx)("path",{d:"M1 13.1499C1 12.6804 1.38889 12.2998 1.86861 12.2998H14.1314C14.6111 12.2998 15 12.6804 15 13.1499C15 13.6194 14.6111 14 14.1314 14H1.86861C1.38889 14 1 13.6194 1 13.1499Z"})]}),ew=()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.5097 3.5097C3.84165 3.17776 4.37984 3.17776 4.71178 3.5097L7.99983 6.79775L11.2879 3.5097C11.6198 3.17776 12.158 3.17776 12.49 3.5097C12.8219 3.84165 12.8219 4.37984 12.49 4.71178L9.20191 7.99983L12.49 11.2879C12.8219 11.6198 12.8219 12.158 12.49 12.49C12.158 12.8219 11.6198 12.8219 11.2879 12.49L7.99983 9.20191L4.71178 12.49C4.37984 12.8219 3.84165 12.8219 3.5097 12.49C3.17776 12.158 3.17776 11.6198 3.5097 11.2879L6.79775 7.99983L3.5097 4.71178C3.17776 4.37984 3.17776 3.84165 3.5097 3.5097Z"})});function ey(e){let{children:t}=e,r=(0,z.A)(),[a,l]=(0,f.useState)(!1),i=(0,f.useRef)(null),s=()=>{i.current&&(i.current.classList.add("animate-fadeOut"),setTimeout(()=>{l(!1)},200))};return(0,n.jsxs)("div",{className:"flex items-center md:hidden","data-testid":"small-screen-children",children:[(0,n.jsx)("button",{className:"flex items-center border-none bg-transparent px-1.5",onClick:()=>l(!a),"data-testid":"hamburger-menu-button","aria-label":r.formatMessage({id:"header.menu.open"}),children:(0,n.jsx)(ej,{})}),(0,n.jsx)("div",{ref:i,className:"fixed right-0 top-0 z-50 h-full w-full ".concat(a?"block animate-fadeIn":"hidden"),"data-testid":"hamburger-menu",children:(0,n.jsx)("div",{className:"flex h-full w-full justify-end bg-black bg-opacity-30",onClick:e=>{e.target===e.currentTarget&&s()},children:(0,n.jsxs)("div",{className:"flex h-fit w-full flex-col bg-white opacity-100 sm:h-full sm:w-1/2",children:[(0,n.jsx)("button",{className:"text-body-font flex items-center self-end border-none bg-transparent pr-6 pt-6",onClick:s,"data-testid":"hamburger-menu-close-button","aria-label":r.formatMessage({id:"header.menu.close"}),children:(0,n.jsx)(ew,{})}),(0,n.jsx)("nav",{className:"flex flex-col pl-4 text-black",children:t})]})})})]})}function ek(e){let{children:t}=e;return(0,n.jsx)("nav",{className:"hidden items-center md:flex","data-testid":"large-screen-children",children:t})}function eC(e){let{children:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ey,{children:t}),(0,n.jsx)(ek,{children:t})]})}function eN(e){var t,r;let{appName:a,fullWidth:l,renderHeadline:i,requestContext:s,showSearchBar:o,theme:c}=e,d=null==(t=(0,w.W3)("header"))?void 0:t.style.align,u=null==(r=(0,w.W3)("header"))?void 0:r.style.justify,h=c.headline?c.headline:(0,n.jsx)(E.A,{id:"header.headline",values:{appName:a}});return(0,n.jsx)("section",{className:"relative mx-5 flex h-full w-full flex-col items-center px-5 sm:px-10",children:(0,n.jsxs)("div",{className:x()("flex h-full max-w-full flex-col",{"w-240":!l,"w-full xl:w-3/4":l},Z({justify:u})),"data-testid":"main-header-container",children:[i&&(0,n.jsx)("h1",{className:x()("text-7 mb-6 text-welcome-message font-bold text-header-color",Z({textAlign:d})),children:h}),o&&(0,n.jsx)(eg,{rootUrl:s.rootUrl})]})})}function e_(e){let{children:t,showSearchBar:r}=e;return(0,n.jsx)("section",{className:x()("relative flex w-full flex-col bg-header-subheader-background-color text-header-subheader-font-color",{"pb-6":r}),children:t})}function eE(e){let{children:t,showSearchBar:r}=e;return(0,n.jsx)("section",{className:x()("relative flex w-full flex-col",{"mb-6 pb-6":r}),children:t})}function eL(e){let{fullWidth:t,headerLinks:r,localeLinks:a,requestContext:l,theme:i}=e,s=i.logo?(0,n.jsx)("img",{src:i.logo,height:i.logoHeight,alt:i.siteName}):(0,n.jsx)("span",{"data-testid":"logo-sitename",className:"header__name",children:i.siteName});return(0,n.jsx)("div",{className:x()("header__meta_wrapper flex justify-center px-5 pt-6 leading-none sm:px-10"),children:(0,n.jsxs)("div",{className:x()("flex items-center",{"w-240":!t,"w-full xl:w-3/4":t}),"data-testid":"subheader-container",children:[(0,n.jsx)("div",{className:"mo__body header__site_name",children:(0,n.jsx)("div",{className:"header__logo",children:(0,n.jsx)("a",{href:l.rootUrl,children:s})})}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"flex items-center font-semibold",children:(0,n.jsxs)(eC,{children:[(0,n.jsx)(ev,{headerLinks:r}),(0,n.jsx)(W,{localeLinks:a})]})})})]})})}function eS(e){var t,r,a,i;let{appName:s,fullWidth:o,headerLinks:c,localeLinks:d,renderHeadline:h,requestContext:f,showSearchBar:m,theme:b}=e,g=h&&null!=(i=null==(t=b.customizationOptions.header)?void 0:t.fadeToEdge)&&i,p=(null==(a=(0,w.W3)("header"))||null==(r=a.subheader)?void 0:r.enabled)||!1;return(0,n.jsxs)("header",{id:"header","data-testid":"header",className:"jsx-cf6f0ea00fa5c760 "+(x()("flex flex-col text-header-color",{o__mobile_embedded:f.type===u.Y.MESSENGER_MOBILE_SDK})||""),children:[p&&(0,n.jsx)(e_,{showSearchBar:m,children:(0,n.jsx)(eL,{fullWidth:o,headerLinks:c,localeLinks:d,requestContext:f,theme:b})}),(0,n.jsxs)("div",{className:"jsx-cf6f0ea00fa5c760 "+(x()("relative flex grow flex-col",{"after:absolute after:-bottom-[1px] after:block after:h-[3px] after:w-full after:bg-body-bg after:content-['_']":g&&f.type===u.Y.HELP_CENTER_PREVIEW,"fade-background -mb-36 pb-48":g,"mb-9 bg-header-bg bg-header-image bg-cover bg-center pb-9":!g},{"pt-6":p,"sm:min-h-header":h})||""),children:[(0,n.jsx)("div",{id:"sr-announcement","aria-live":"polite",className:"jsx-cf6f0ea00fa5c760 sr-only"}),(0,n.jsxs)("div",{className:"jsx-cf6f0ea00fa5c760 flex h-full flex-col items-center marker:shrink-0",children:[!p&&(0,n.jsx)(eE,{showSearchBar:m,children:(0,n.jsx)(eL,{fullWidth:o,headerLinks:c,localeLinks:d,requestContext:f,theme:b})}),(0,n.jsx)(eN,{appName:s,fullWidth:o,renderHeadline:h,requestContext:f,showSearchBar:m,theme:b})]})]}),(0,n.jsx)(l(),{id:"cf6f0ea00fa5c760",children:".fade-background.jsx-cf6f0ea00fa5c760{background:-webkit-radial-gradient(50%0%,333.38%100%,rgba(var(--body-bg-rgb),0)0%,rgba(var(--body-bg-rgb),.00925356)11.67%,rgba(var(--body-bg-rgb),.0337355)21.17%,rgba(var(--body-bg-rgb),.0718242)28.85%,rgba(var(--body-bg-rgb),.121898)35.03%,rgba(var(--body-bg-rgb),.182336)40.05%,rgba(var(--body-bg-rgb),.251516)44.25%,rgba(var(--body-bg-rgb),.327818)47.96%,rgba(var(--body-bg-rgb),.409618)51.51%,rgba(var(--body-bg-rgb),.495297)55.23%,rgba(var(--body-bg-rgb),.583232)59.47%,rgba(var(--body-bg-rgb),.671801)64.55%,rgba(var(--body-bg-rgb),.759385)70.81%,rgba(var(--body-bg-rgb),.84436)78.58%,rgba(var(--body-bg-rgb),.9551)88.2%,rgba(var(--body-bg-rgb),1)100%),var(--header-image),var(--header-bg);background:-moz-radial-gradient(50%0%,333.38%100%,rgba(var(--body-bg-rgb),0)0%,rgba(var(--body-bg-rgb),.00925356)11.67%,rgba(var(--body-bg-rgb),.0337355)21.17%,rgba(var(--body-bg-rgb),.0718242)28.85%,rgba(var(--body-bg-rgb),.121898)35.03%,rgba(var(--body-bg-rgb),.182336)40.05%,rgba(var(--body-bg-rgb),.251516)44.25%,rgba(var(--body-bg-rgb),.327818)47.96%,rgba(var(--body-bg-rgb),.409618)51.51%,rgba(var(--body-bg-rgb),.495297)55.23%,rgba(var(--body-bg-rgb),.583232)59.47%,rgba(var(--body-bg-rgb),.671801)64.55%,rgba(var(--body-bg-rgb),.759385)70.81%,rgba(var(--body-bg-rgb),.84436)78.58%,rgba(var(--body-bg-rgb),.9551)88.2%,rgba(var(--body-bg-rgb),1)100%),var(--header-image),var(--header-bg);background:-o-radial-gradient(50%0%,333.38%100%,rgba(var(--body-bg-rgb),0)0%,rgba(var(--body-bg-rgb),.00925356)11.67%,rgba(var(--body-bg-rgb),.0337355)21.17%,rgba(var(--body-bg-rgb),.0718242)28.85%,rgba(var(--body-bg-rgb),.121898)35.03%,rgba(var(--body-bg-rgb),.182336)40.05%,rgba(var(--body-bg-rgb),.251516)44.25%,rgba(var(--body-bg-rgb),.327818)47.96%,rgba(var(--body-bg-rgb),.409618)51.51%,rgba(var(--body-bg-rgb),.495297)55.23%,rgba(var(--body-bg-rgb),.583232)59.47%,rgba(var(--body-bg-rgb),.671801)64.55%,rgba(var(--body-bg-rgb),.759385)70.81%,rgba(var(--body-bg-rgb),.84436)78.58%,rgba(var(--body-bg-rgb),.9551)88.2%,rgba(var(--body-bg-rgb),1)100%),var(--header-image),var(--header-bg);background:radial-gradient(333.38%100%at 50%0%,rgba(var(--body-bg-rgb),0)0%,rgba(var(--body-bg-rgb),.00925356)11.67%,rgba(var(--body-bg-rgb),.0337355)21.17%,rgba(var(--body-bg-rgb),.0718242)28.85%,rgba(var(--body-bg-rgb),.121898)35.03%,rgba(var(--body-bg-rgb),.182336)40.05%,rgba(var(--body-bg-rgb),.251516)44.25%,rgba(var(--body-bg-rgb),.327818)47.96%,rgba(var(--body-bg-rgb),.409618)51.51%,rgba(var(--body-bg-rgb),.495297)55.23%,rgba(var(--body-bg-rgb),.583232)59.47%,rgba(var(--body-bg-rgb),.671801)64.55%,rgba(var(--body-bg-rgb),.759385)70.81%,rgba(var(--body-bg-rgb),.84436)78.58%,rgba(var(--body-bg-rgb),.9551)88.2%,rgba(var(--body-bg-rgb),1)100%),var(--header-image),var(--header-bg);-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-position-x:center}"})]})}let eM=["GTM-WB899HL","GTM-T8RS24SJ"];function eF(e){let{app:t,articleId:r,children:a,fullWidth:l,headerLite:i,helpCenterSite:s,localeLinks:o,requestContext:c,showSearchBar:d,theme:h}=e,{googleAnalyticsTrackingId:g,googleTagManagerId:p}=s,{nonce:v,rootUrl:w}=c,y=c.type===u.Y.HELP_CENTER_PREVIEW;return(0,f.useEffect)(()=>{y||b(t.id)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("main",{className:x()({header__lite:i}),children:[(0,n.jsx)(eS,{appName:t.name,fullWidth:l,localeLinks:o,headerLinks:s.headerLinks,renderHeadline:!i,showSearchBar:d,requestContext:c,theme:h}),(0,n.jsx)(m,{fullWidth:l,children:a}),(0,n.jsx)(D,{disableBranding:s.disableBranding,footerContactDetails:s.footerContactDetails,customizedFooterTextContent:s.customizedFooterTextContent,footerLinks:s.footerLinks,intercomUrl:t.poweredByIntercomUrl,rootUrl:w,theme:h,privacyChoice:!!s.googleTagManagerId&&eM.includes(s.googleTagManagerId)})]}),!y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j,{app:t,articleId:r,nonce:v}),p&&(0,n.jsx)(P,{containerId:p,nonce:v}),g&&(0,n.jsx)(H,{tagId:g,nonce:v})]})]})}function eT(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t={intercomSheet:{meta:{proxy:"send-data-to-messenger"},payload:r,type:e}},window.parent.postMessage(t,"*")}function eA(){let e=document.querySelector(".content");e&&eT("height-change",{height:e.scrollHeight})}function eR(e){let t=document.getElementById(e);if(t)return eT("scroll-to",{offsetTop:t.offsetTop})}function eI(e){let{children:t,className:r}=e;return(0,n.jsx)("main",{className:x()("body__headerless",r),children:(0,n.jsx)(m,{children:t})})}function eB(e){let{app:t,articleId:r,children:a,nonce:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eI,{children:a}),(0,n.jsx)(j,{app:t,articleId:r,nonce:l})]})}function eV(e){let{children:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eI,{className:"body__mobile__headerless",children:t}),(0,n.jsx)(l(),{id:"7ac2be1b8d4a45c4",children:"body{background:white}"})]})}function eU(e){let{app:t,children:r,requestContext:a,requestType:l}=e;if(l===u.Y.CANVASKIT_SHEET)return(0,n.jsx)(eI,{className:"body__sheet",children:r});if(a.academy)return(0,n.jsx)(eI,{className:"py-5",children:r});if(a.headerless)switch(l){case u.Y.HELP_CENTER:return(0,n.jsx)(eB,{app:t,nonce:a.nonce,children:r});case u.Y.MESSENGER:return(0,n.jsx)(eI,{className:"body__messenger__headerless content",children:r});case u.Y.MESSENGER_MOBILE_SDK:return(0,n.jsx)(eV,{children:r})}return(0,n.jsx)(eF,{...e,children:r})}function eD(e){let{allowIndexing:t,children:r,showContentOnly:a,theme:l,...i}=e;(0,f.useEffect)(()=>{let e;(e=new URLSearchParams(window.location.search)).has("sheet")&&window.location===window.parent.location&&!(0,d.W)()&&(e.delete("sheet"),window.location.search=e.toString())},[]);let{app:s,helpCenterSite:h,requestContext:x}=i,{customDomain:m,pathPrefixForCustomDomain:b}=h;!function(e){let{customDomain:t,pathPrefix:r,requestType:n}=e;(0,f.useEffect)(()=>{let e;if(window.self===window.top||n===u.Y.HELP_CENTER)return;eT("alexandria-loaded"),eA(),function(e){let{customDomain:t,pathPrefix:r}=e;Array.prototype.slice.call(document.querySelectorAll("a"),0).forEach(function(e){if(!e.getAttribute("href"))return;let n=e.getAttribute("href"),a=function(e){let{customDomain:t,href:r,locationOrigin:n,pathPrefix:a}=e,l=function(e){let{customDomain:t,href:r,pathPrefix:n}=e;if(!t)return!1;try{let e=new URL(r);if(n&&!e.pathname.startsWith("/".concat(n)))return!1;return e.hostname===t}catch(e){return!1}}({customDomain:t,href:r,pathPrefix:a}),i=r.startsWith(n);return l||i}({customDomain:t,href:n,locationOrigin:window.location.origin,pathPrefix:r}),l="#"===n[0],i=l||a&&!!n.split("#")[1],s=a?n.split("#")[1]:n.slice(1);(i||a)&&e.addEventListener("click",function(t){t.preventDefault(),i&&eR(s),l||eT("link-clicked",{url:e.href})})})}({customDomain:t,pathPrefix:r});let a=function(){clearTimeout(e),e=setTimeout(eA,5)};window.addEventListener("resize",a);let l=document.querySelector(".article");if(!l)return;let i=new ResizeObserver(a);return i.observe(l),()=>i.disconnect()},[]),(0,f.useEffect)(()=>{if(window.self!==window.top&&n!==u.Y.HELP_CENTER){if("complete"===document.readyState){window.location.hash&&eR(window.location.hash.slice(1));return}window.addEventListener("load",function(){eA(),window.location.hash&&eR(window.location.hash.slice(1))})}},[n])}({customDomain:m,pathPrefix:b,requestType:x.type});let{sheetUserCipher:g,type:p}=i.requestContext,v="messenger"===p,j="canvaskit-sheet"===p,w=x.academy,y=(0,z.A)();return(0,n.jsxs)(n.Fragment,{children:[!v&&(0,n.jsx)("a",{href:"#main-content",className:"sr-only font-bold text-header-color focus:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-50","aria-roledescription":y.formatMessage({id:"layout.skip_to_main_content_exit"}),children:(0,n.jsx)(E.A,{id:"layout.skip_to_main_content"})}),(0,n.jsx)(o,{allowIndexing:"help-center"===p&&t,theme:l,...i}),(0,n.jsx)(c.R.Provider,{value:{sheetUserCipher:g,user:i.user},children:!a||v||j||w?(0,n.jsx)(eU,{requestType:p,theme:l,...i,children:r}):(0,n.jsx)(eB,{app:s,nonce:x.nonce,children:r})})]})}},89672:(e,t,r)=>{r.d(t,{Jr:()=>c,M_:()=>d});var n=r(94629),a=r(20804),l=r(49226),i=r(17619),s=r(14232),o=r(77742);function c(){let e=function(){let e=(0,a.V)();return(t,r)=>{let n=e();null==n||n.createMetric(t,r)}}(),{articleChannel:t,articleSource:r,object:l,place:i}=(0,s.useContext)(n.X),{defaultLocale:c,locale:d}=(0,o.A)();return n=>{let{action:a,metadata:s,name:o}=n,u=s.object||l,h=s.place||i;if(!u||!h)return;let x=s.article_source||r,f=s.article_channel||t;e(o,{action:a,current_locale:d,default_locale:c,is_default_locale:c==d,owner:"educate",...s,article_channel:f,article_source:x,object:u,place:h})}}function d(e){return e===i.Y.CANVASKIT_SHEET?"messenger_sheet":(0,l.W)()?"webview":"help_center"}},94629:(e,t,r)=>{r.d(t,{X:()=>n});let n=(0,r(14232).createContext)({})},94896:(e,t,r)=>{r.d(t,{U:()=>l});var n=r(14232),a=r(36587);function l(){var e,t,r,l;let i=(0,n.useContext)(a.Dx);return"floating"===(null!=(l=null==i||null==(r=i.customizationOptions.global)||null==(t=r.componentStyle)||null==(e=t.card)?void 0:e.type)?l:"bordered")}}}]);