(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3059],{7134:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/section-front/[[...slug]]",function(){return n(89816)}])},89816:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return a3},default:function(){return a4}});var r,a,i,s,o=n(85893),l=n(67294),c=n(41762),d=n(87183),u=n(30087),m=n(74116),p=n(59628),h=n(53867),_=n(74943),g=n.n(_),f=n(28551),v=n.n(f),x=n(40281),y=n(77536),j=n(86896),k=n(43593),b=n.n(k),C=n(41664),w=n.n(C),N=n(25215),T=n.n(N),S=n(34093),M=n(8985),I=n(69298),D=n(13519),R=n(30939),P=n(11529),L=n(99464),A=n(59223);let E=e=>{if("number"==typeof e)return e;if("string"==typeof e){let t=e.trim();if("n/a"===t.toLowerCase())return Number.POSITIVE_INFINITY;let n=Number(t.replace(/,/g,""));return Number.isFinite(n)?n:Number.POSITIVE_INFINITY}return Number.POSITIVE_INFINITY},F=e=>{if("string"!=typeof e)return NaN;let t=e.trim().match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i);if(!t)return NaN;let n=parseInt(t[1],10),r=parseInt(t[2],10);return n%=12,"PM"===t[3].toUpperCase()&&(n+=12),60*n+r};function B(e){let{columns:t,rows:n,className:r,sectionHeader:a,sectionUrl:i,subtitle:s,title:c,disclaimer:d}=e,[u,m]=(0,l.useState)(!1),[p,_]=(0,l.useState)({key:null,direction:null});(0,l.useEffect)(()=>{m(!0)},[]);let f=(0,l.useCallback)(e=>{let t=e.id;return"number"==typeof t?t:t?String(t):JSON.stringify(e)},[]),v=(0,l.useCallback)(e=>{let n=t.find(t=>t.key===e);if(n){let e="sort_by_".concat(n.key.toString().toLowerCase().replace(/ /g,"_"));(0,h.uH)("TableSort",e,"click","Market Data")}_(t=>t.key!==e?{key:e,direction:"asc"}:"asc"===t.direction?{key:e,direction:"desc"}:"desc"===t.direction?{key:e,direction:"asc"}:{key:null,direction:null}),(0,L.f)("SectionFrontTableSortClick",{columnName:e})},[t]),x=(0,l.useMemo)(()=>{var e,r,a;if(!u)return n;let{key:i,direction:s}=p;if(!i||!s)return n;let o=t.find(e=>e.key===i),l=null==o?void 0:null===(e=o.options)||void 0===e?void 0:e.columnType,c=null!==(a=null==o?void 0:null===(r=o.options)||void 0===r?void 0:r.backupKey)&&void 0!==a?a:i;return[...n].sort((e,t)=>{let n;let r=e[c],a=t[c];if(null===r)return 1;if(null===a)return -1;if("number"===l)n=E(r)-E(a);else if("time"===l)n=F(r)-F(a);else if("currency"===l){let r=e.id,a=t.id;n=String(r).localeCompare(String(a))}else n="number"==typeof r&&"number"==typeof a?r-a:String(r).localeCompare(String(a));return"asc"===s?n:-n})},[t,u,n,p]);return(0,o.jsxs)("div",{className:T().sectionFrontTable,children:[c&&(0,o.jsx)("div",{className:T().titleContainer,children:(0,o.jsxs)("div",{className:T().titleWrapper,children:[(0,o.jsx)("h2",{className:(0,y.Sh)([T().title,g().coreHeadlineSm]),children:i?(0,o.jsx)(w(),{className:T().sectionLink,href:i,children:(0,o.jsx)(A.oZ,{value:c})}):(0,o.jsx)("span",{children:(0,o.jsx)(A.oZ,{value:c})})})," ",(0,o.jsx)("h5",{className:T().subtitle,children:(0,o.jsx)(A.oZ,{value:s})})]})}),a,(0,o.jsx)("div",{className:T().scroll,children:(0,o.jsxs)(S.Z,{className:(0,y.Sh)([r,T().table]),children:[(0,o.jsx)(I.Z,{className:T().header,children:t.map((e,t)=>{var n;return(0,o.jsx)(M.Z,{column:e,className:0===t?(0,y.RD)([T().stickyCol,(null===(n=e.options)||void 0===n?void 0:n.disableQuickAdd)?T().quickAddAbsent:T().quickAddPresent]):void 0,sortState:p.key===e.key?p.direction:null,onSort:e.allowSorting?()=>v(e.key):void 0,children:(0,o.jsxs)("span",{className:g().coreShortTextXs,children:[(0,o.jsx)(A.oZ,{value:e.title})," "]})},e.key)})}),(0,o.jsx)(D.Z,{children:x.map(e=>(0,o.jsx)(R.Z,{rowData:e,columns:t,className:T().row,children:t.map((t,n)=>{var r;return(0,o.jsx)(P.Z,{rowData:e,column:t,className:0===n?(0,y.RD)([T().stickyCol,(null===(r=t.options)||void 0===r?void 0:r.disableQuickAdd)&&T().quickAddAbsent]):void 0},t.key)})},f(e)))})]})}),d&&(0,o.jsx)("div",{className:T().sectionNote,children:(0,o.jsx)("div",{className:T().tableDisclaimer,children:d})})]})}var V=n(86354),H=n.n(V),W=n(36136),O=n(50797);let U=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"disclaimerWebsiteIsForInfo",defaultMessage:"Learn more about Bloomberg",values:{webUrl:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"https://www.bloomberg.com/professional/products/indices/fx-findings-reference-rates/#overview",children:(0,o.jsx)(O.jU,{id:"bloombergFixingsAndRefere_2",defaultMessage:"Bloomberg Fixings and Reference Rates"})})}})}),z=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"currencyRatesAreRepresent",defaultMessage:"Learn more about Bloomberg",values:{webUrlDisclaimer:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"https://www.bloomberg.com/notices/jp/financial-data/",children:(0,o.jsx)(O.jU,{id:"detailsAndDisclaimer",defaultMessage:"Bloomberg Disclaimer"})})}})}),G=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"disclaimerFxRatesMajorCurrEx",defaultMessage:"Foreign exchange rates of major world currencies. Compare key cross rates and currency exchange rates of U.S. Dollars, Euros, British Pounds, and others."})}),Z=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"disclaimerLearnAboutFixedInc",defaultMessage:"Learn more about Bloomberg",values:{webUrl:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"http://www.bloombergindices.com",children:"bloombergindices.com"})}})}),Y=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:(0,o.jsx)(O.jU,{id:"disclaimerLearnAboutFixedInc",defaultMessage:"Learn more about Bloomberg",values:{webUrl:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"http://www.bloombergindices.com",children:"bloombergindices.com"})}})}),(0,o.jsx)("p",{children:(0,o.jsx)(O.jU,{id:"unlessIndicatedOtherwiseI",defaultMessage:"Learn more about Bloomberg",values:{timeZone:"ET"}})})]}),q=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"unlessIndicatedOtherwiseI",defaultMessage:"Bloomberg Disclaimer"})}),K={currencies:{top:U,bottom:z},"cross-rates":{top:U,bottom:G},"rates-bonds":{top:{"rates-bonds":Z,"bloomberg-fixed-income-indices":Y},bottom:{"bloomberg-fixed-income-indices":q}},"consumer-interest-rates":{top:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"unlessIndicatedOtherwiseI",defaultMessage:"Bloomberg Disclaimer",values:{timeZone:"ET"}})}),bottom:(0,o.jsxs)(o.Fragment,{children:["Source:"," ",(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"http://www.bankrate.com/blm",children:"Bankrate.com"})]})},"fx-fixings":{top:U,bottom:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.jU,{id:"disclaimerWebBfixBisl",defaultMessage:"For general questions and information regarding BFIX email: bfixinquiry@bloomberg.net",values:{bfixEmail:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"mailto:bfixinquiry@bloomberg.net",children:"bfixinquiry@bloomberg.net"}),bfixMethodUrl:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"https://assets.bbhub.io/professional/sites/10/BFIX-Methodology-March-2024.pdf",children:(0,o.jsx)(O.jU,{id:"bfixMethodology",defaultMessage:"BFIX Methodology"})}),benchmarkRegUrl:(0,o.jsx)(W.r,{className:H().disclaimerLink,href:"https://www.bloomberg.com/professional/product/indices/benchmark-regulation-resources/",children:(0,o.jsx)(O.jU,{id:"disclaimerBfixRegPageUrl",defaultMessage:"benchmark regulation resources page"})})}})})}},J=(e,t,n)=>{let r=K[e];if(!r)return null;let a=r[n];return t&&a&&!l.isValidElement(a)&&(a=a[t]),a||null};function X(e){let{sectionFrontName:t,selectedTab:n,variant:r}=e,a=J(t,n,r);if(!a)return null;let i=(0,y.RD)({[H().bottomDisclaimer]:"bottom"===r,[H().topDisclaimer]:"top"===r});return(0,o.jsx)("div",{className:H().sectionNote,children:(0,o.jsx)("div",{className:i,children:a})})}var Q=n(12860),$=n(30310),ee=n(98279),et=n(31361),en=n(70390),er=n(56253),ea=n(6304);n(16677);let ei={"GT10:GOV":"rates-bonds/government-bonds/us","GTGBP10Y:GOV":"rates-bonds/government-bonds/uk","GTDEM10Y:GOV":"rates-bonds/government-bonds/germany","GTJPY10Y:GOV":"rates-bonds/government-bonds/japan","GTAUD10Y:GOV":"rates-bonds/government-bonds/australia"};var es=n(89584);es.go.En,es.go.Ja;var eo=n(50710);let el=l.memo(e=>{let{width:t="80px",height:n="16px"}=e;return(0,o.jsx)("div",{"data-sectionFront-cellState":"loading",style:{width:t,height:n},children:(0,o.jsx)(er.V.Line,{})})});function ec(e,t,n){var r;return null!==(r=e[t])&&void 0!==r?r:n}function ed(e,t){var n,r;let a=null===(n=e.options)||void 0===n?void 0:n.precision;return"number"==typeof a&&a>=0?null===(r=e.options)||void 0===r?void 0:r.precision:t}el.displayName="PlaceholderCell";let eu=(e,t)=>{(0,h.uH)("Watchlist",t,e,"Watchlist")},em=e=>{var t,n,r,a;let{security:i,column:s}=e,l=!!(null!==(a=null===(t=(0,et.useFeatureGate)("watchlist_paywall"))||void 0===t?void 0:t.value)&&void 0!==a&&a),{id:c,name:d,longName:u}=i,m="/quote/".concat(c),{isJapanese:p}=(0,eo.b)();return(0,o.jsxs)("div",{className:b().displayIdContainer,children:[!p&&(0,o.jsx)(Q.Z,{ticker:c,variant:"icon",className:b().quickAdd,trackClick:eu,disabled:!l}),(0,o.jsxs)(w(),{className:b().displayId,href:m,target:"_blank",children:[(0,o.jsx)("div",{className:b().stockId,children:c}),(0,o.jsx)("div",{className:(0,y.RD)([b().stockName,{[b().regionEconomiesName]:null==s?void 0:null===(n=s.options)||void 0===n?void 0:n.showFullTickerName}]),children:(null==s?void 0:null===(r=s.options)||void 0===r?void 0:r.showFullTickerName)?u:d})]})]})},ep=e=>{var t,n;let{security:r}=e,a=!!(null!==(n=null===(t=(0,et.useFeatureGate)("watchlist_paywall"))||void 0===t?void 0:t.value)&&void 0!==n&&n),{id:i,securityName:s,longName:l}=r,c="/quote/".concat(i),d=l||s,{isJapanese:u}=(0,eo.b)();return(0,o.jsxs)("div",{className:b().displayIdContainer,children:[!u&&(0,o.jsx)(Q.Z,{ticker:i,variant:"icon",className:b().quickAdd,disabled:!a}),(0,o.jsxs)(w(),{className:b().displayId,href:c,target:"_blank",children:[(0,o.jsx)("div",{className:b().stockId,children:i}),(0,o.jsx)("div",{className:b().stockName,title:d,children:d})]})]})},eh=(e,t)=>{var n;let r=ed(t,2),a=ec(e,(null===(n=t.options)||void 0===n?void 0:n.backupKey)||t.key),i=(0,ea.Bw)(a,r);return(0,o.jsx)("span",{className:b().stockValue,children:i})},e_=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short"}),eg=new Intl.DateTimeFormat("ja-JP",{year:"numeric",month:"short"}),ef=e=>{let{locale:t,commodityContractDate:n}=e;if(!n)return(0,o.jsx)("span",{children:"N/A"});let r=new Date(n),a=t===es.go.Ja?eg.format(r):e_.format(r);return(0,o.jsxs)("span",{suppressHydrationWarning:!0,children:[" ",a," "]})},ev=(e,t)=>{let n=ec(e,t.key);return(0,o.jsx)($.R,{percentChange:n,priceChange:n,hidePercentChange:!0,variant:ee.$e.refresh2024})},ex=(e,t)=>{let n=ec(e,t.key);return(0,o.jsx)($.R,{percentChange:n,className:"sectionFront",variant:ee.$e.refresh2024})},ey=(e,t)=>{var n,r;let a=ed(t,0),i=ec(e,(null===(n=t.options)||void 0===n?void 0:n.backupKey)||t.key),s=i?i*((null===(r=t.options)||void 0===r?void 0:r.multiplier)||1):i,l=(0,ea.X6)(s,a),c=(0,y.Mg)(-s);return(0,o.jsx)("span",{className:(0,y.RD)([b().yieldValue,{[b().positive]:"positive"===c,[b().negative]:"negative"===c}]),children:l})},ej=(e,t)=>{var n;let r=ed(t,2),a=ec(e,(null===(n=t.options)||void 0===n?void 0:n.backupKey)||t.key),i=(0,ea.Bw)(a,r);return(0,o.jsxs)("span",{className:b().stockValue,children:[i,"%"]})},ek={country:e=>{let{id:t,countryName:n}=e,r=function(e){let t=ei[e]||"";return"/markets/".concat(t)}(t);return r?(0,o.jsx)(w(),{className:b().displayId,href:r,children:(0,o.jsxs)("div",{className:(0,y.RD)([b().stockName,b().entityName]),children:[(0,o.jsx)("span",{children:n}),(0,o.jsx)(en._Q,{})]})}):(0,o.jsx)("span",{className:(0,y.RD)([b().stockName,b().entityName]),children:n})},coupon:eh,commodityContractDate:e=>ef(e),crossRate:eh,crossRateName:e=>(0,o.jsx)("span",{className:(0,y.RD)([b().stockName,b().crossRate]),children:e.name}),currency:e=>{var t,n;let r=!!(null!==(n=null===(t=(0,et.useFeatureGate)("watchlist_paywall"))||void 0===t?void 0:t.value)&&void 0!==n&&n),{id:a}=e,i="/quote/".concat(a),[s]=a.split(":"),l="".concat(s.slice(0,3),"-").concat(s.slice(3,6)),{isJapanese:c}=(0,eo.b)();return(0,o.jsxs)("div",{className:b().currencyIdContainer,children:[!c&&(0,o.jsx)(Q.Z,{ticker:a,variant:"icon",className:b().quickAdd,trackClick:eu,disabled:!r}),(0,o.jsx)(w(),{className:b().displayId,href:i,target:"_blank",children:(0,o.jsx)("div",{className:b().stockName,children:l})})]})},highPrice:eh,id:(e,t)=>(0,o.jsx)(em,{security:e,column:t}),interestRate:e=>{let{securityName:t,thirdPartyUrl:n}=e;return n?(0,o.jsx)(w(),{className:b().displayId,href:n,children:(0,o.jsx)("div",{className:(0,y.RD)([b().stockName,b().entityName,b().consumerInterestRate]),children:t})}):(0,o.jsx)("span",{className:(0,y.RD)([b().stockName,b().entityName,b().consumerInterestRate]),children:t})},interestRatePrice:ej,interestRatePrice1MonthAgo:ej,lastUpdatedTime:e=>(0,o.jsx)("span",{suppressHydrationWarning:!0,className:b().stockTime,children:e.lastUpdatedTime||"--"}),lowPrice:eh,municipalYield:ej,municipalYieldChange1Day:ey,municipalYieldChange1Month:ey,municipalYieldChange1Year:ey,name:e=>(0,o.jsx)("span",{className:(0,y.RD)([b().stockName,g().coreShortTextMd]),children:e.name}),percentChange1Day:ex,price:eh,priceChange1Day:ev,percentChange1Month:ev,percentChange1Year:ex,rate:(e,t)=>{var n;let r=ed(t,2),a=ec(e,(null===(n=t.options)||void 0===n?void 0:n.backupKey)||t.key),i=(0,ea.Bw)(a,r)||"--";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{"data-sectionFront-cellState":"success",className:b().stockValue,children:i}),(0,o.jsx)(el,{})]})},ratePrice:eh,ratePrice1YearAgo:eh,securityName:e=>(0,o.jsx)(ep,{security:e}),yield:(e,t)=>{let n=ed(t,2),r=ec(e,t.key),a=(0,ea.C1)(r,n);return(0,o.jsx)("span",{className:b().stockValue,children:a})},yieldChange1Day:ey,yieldChange1Month:ey,yieldChange1Year:ey},eb=(e,t)=>e.map(e=>{var n,r;return{title:e.title,key:e.key,align:e.align,renderer:ek[e.key],options:{...e.options,disableQuickAdd:(null===(n=e.options)||void 0===n?void 0:n.disableQuickAdd)||!!t},allowSorting:(null===(r=e.options)||void 0===r?void 0:r.disableSorting)!==!0}});var eC=n(53633),ew=n(96521),eN=n.n(ew),eT=n(48523),eS=n(34117),eM=n(95866),eI=n(49681);let eD=(0,l.memo)(eC.P),[eR]=eI.jD;function eP(e){let{onBfixDateChange:t}=e,{isJapanese:n}=(0,eo.b)(),[r,a]=(0,l.useState)(new Date),[i,s]=(0,l.useState)(eR),c=(0,l.useCallback)(e=>{e&&s(e)},[s]),d=(0,l.useCallback)(e=>{e&&a(e)},[a]);(0,l.useEffect)(()=>{t({bfixDateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"09:30:00",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Asia/Shanghai";return(function(e,t,n){let r=(0,eS.Z)(e,"yyyy-MM-dd"),a="".concat(r,"T").concat(t,":00");return(0,eM.Z)(a,n)})(e,t,n).toISOString().replace(".000Z","Z")}(r,i.time,i.timezone)})},[t,r,i]);let u=new Date;return(0,o.jsxs)("div",{className:eN().bfixHeader,children:[(0,o.jsx)("div",{className:eN().wrapper,children:(0,o.jsx)(eD,{className:eN().regionDropdown,onChange:c,inputProps:{autocomplete:"off"},options:eI.jD,size:"small",value:i})}),(0,o.jsx)("div",{className:eN().wrapper,children:(0,o.jsx)(eT.Z,{className:eN().datePicker,label:"",isJapanese:n,maxDate:u,native:!1,value:r.getTime(),onChange:d,variant:"refresh-2025"})})]})}var eL=n(33934),eA=n(8457);async function eE(e,t,n){let r=(0,eA.z)({pathname:"/bazaar/api/section-front/sections",searchParams:{sectionFrontName:e,tabIdentifier:t,locale:n},trailingSlash:!1});try{let e=await fetch(r,{credentials:"same-origin"});if(!e.ok)return null;return e.json()}catch(n){throw(0,L.H)(Error("Error refreshing SectionFront data"),{sectionFront:e,sectionFrontTab:t,errorMsg:JSON.stringify(n)}),n}}let eF=(e,t,n)=>(0,eL.a)({queryKey:["sectionFrontName",e,t,n],queryFn:()=>eE(e,t,n),refetchInterval:eI.ap,enabled:!1});async function eB(e){let t=(0,eA.z)({pathname:"/bazaar/api/section-front/bfix-rates",searchParams:{dateString:e},trailingSlash:!1});try{let e=await fetch(t,{credentials:"same-origin"});if(!e.ok)return null;return e.json()}catch(t){throw(0,L.H)(Error("Error fetching bfix data"),{dateString:e,errorMsg:JSON.stringify(t)}),t}}let eV=e=>(0,eL.a)({queryKey:["bfixRatesData",e],queryFn:()=>e?eB(e):Promise.resolve([]),refetchInterval:eI.ap,enabled:!!e});function eH(){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.x,{className:b().inBodyAd,positionIncrement:1,hideEmptyAd:!0})})}function eW(e){let{sectionFrontPage:t}=e,{sectionFrontTab:n}=t,{isJapanese:r}=(0,eo.b)(),[a,i]=(0,l.useState)(void 0),{locale:s}=(0,j.Z)(),{data:c=[]}=eF(null==t?void 0:t.sectionFrontName,null==n?void 0:n.identifier,s),{data:d=[],status:u}=eV(null==a?void 0:a.bfixDateString),m=(0,l.useMemo)(()=>{let e=(null==c?void 0:c.length)?c:(null==n?void 0:n.sections)||[];return"fx-fixings"===n.identifier&&(null==d?void 0:d.length)?e.map(e=>((null==d?void 0:d.length)&&(e.securities=d),e)):e},[c,null==n?void 0:n.sections,n.identifier,d]),p="fx-fixings"===t.sectionFrontName?(0,o.jsx)(eP,{onBfixDateChange:i}):null,h=(0,y.RD)([b().sectionFront,{[b().loading]:"pending"===u}]);return(0,o.jsxs)("div",{className:h,children:[m.map((e,t)=>{var n;return(0,o.jsxs)("div",{className:b().section,children:[(0,o.jsx)(B,{columns:eb(e.columns,r),rows:e.securities,maxColumnsOnMobile:null!==(n=e.maxColumnsOnMobile)&&void 0!==n?n:3,sectionHeader:p,sectionUrl:e.url,subtitle:e.subtitle,title:e.title,disclaimer:e.disclaimer}),0===t&&(0,o.jsx)(eH,{})]},t)}),(0,o.jsx)(X,{sectionFrontName:t.sectionFrontName,selectedTab:n.identifier,variant:"bottom"})]})}var eO=n(28715),eU=n.n(eO),ez=n(77339),eG=n(78426),eZ=n.n(eG),eY=n(91949),eq=n(7029),eK=n(36993),eJ=n(99533),eX=n.n(eJ),eQ=n(82642);let e$=e=>{let t=e.sort().join(",");return(0,eL.a)({queryKey:["tim-sparkline-bulk",t],queryFn:()=>(0,eQ.q)(e),enabled:e.length>0,staleTime:eI.ap,refetchInterval:eI.ap})},e0=(0,l.createContext)(void 0);e0.displayName="TodayInMarketsContext";let e1=e=>{let{categories:t,children:n}=e,[r,a]=(0,l.useState)(t),[i,s]=(0,l.useState)(t[0]),[c,d]=(0,l.useState)(void 0),u=(0,l.useCallback)(e=>{s(r.find(t=>t.id===e)||r[0])},[r]),m=(0,l.useCallback)(e=>{d(e)},[]),p=(0,l.useCallback)(e=>{a(t=>e.map(e=>{let n=t.find(t=>t.id===e.id);if(!n)return{...e};let r=new Map;return n.dataItems.forEach(e=>r.set(e.id,e)),n.dataItems=e.dataItems.map(e=>{let t=r.get(e.id);return t?{...e,priceMovements:t.priceMovements||[],priceSet:t.priceSet||[]}:{...e}}),{...n}}))},[]),h=(0,l.useCallback)((e,t)=>{if(!(null==t?void 0:t.length))return;let n=new Map;t.forEach(e=>n.set(e.id,e.series)),a(t=>{let r=t.find(t=>t.id===e);return r?(r.dataItems=r.dataItems.map(e=>{let t=n.get(e.id),r=null==t?void 0:t.map(e=>null==e?void 0:e.value);return{...e,priceMovements:t||[],priceSet:r||[]}}),[...t]):t})},[]);return(0,o.jsx)(e0.Provider,{value:{categories:r,selectedCategory:i,activeTicker:c,onCategoryChange:u,updateActiveTicker:m,updateCategories:p,updateCategoryWithSparklineData:h},children:n})};function e8(){let e=(0,l.useContext)(e0);if(!e)throw Error("useTodayInMarkets must be used within TodayInMarketsContextProvider");return e}let e2=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder}),(0,o.jsx)(er.V.Image,{className:eX().todayInMarketsSparklineCardsPlaceholder})]});var e3=n(88345),e4=n.n(e3),e7=n(32689);let e6=e=>{let{placeholder:t,errorMessage:n,onRetryClick:r}=e;return(0,o.jsxs)("div",{className:e4().placeholderWithError,children:[(0,o.jsx)("div",{className:e4().placeholderContainer,children:t}),(0,o.jsx)("div",{className:e4().errorContainer,children:(0,o.jsx)(e7.Z,{text:n,variant:"lineBreak",title:"",actionIcon:(0,o.jsx)(en.hY,{}),actionText:"Retry",onActionClick:r})})]})};var e9=n(94996);let e5=l.memo(eK.l);function te(e){let{enableFocusEvents:t=!1}=e,{activeTicker:n,selectedCategory:r,updateActiveTicker:a,updateCategoryWithSparklineData:i}=e8(),s=(0,O.Q)(),c=(0,e9.Z)(),d=(0,l.useMemo)(()=>r.dataItems.map(e=>e),[r.dataItems]),u=(0,l.useMemo)(()=>d.map(e=>e.id),[d]),{status:m,refetch:p,data:_=[]}=e$(u);(0,l.useEffect)(()=>{i(r.id,_)},[_,r.id,i]);let g=(0,l.useCallback)(e=>{(0,h.uH)("Market_Data","tile_click_tim","click","Market Data"),(0,L.f)("todayInMarketsSparklineClick",{ticker:e.id}),c.open("/quote/".concat(e.id),"_blank")},[]),f=(0,l.useCallback)(e=>{a(e.id)},[a]),v=(0,l.useCallback)(()=>{a(void 0)},[a]);return"pending"===m?(0,o.jsx)(e2,{}):"error"===m?((0,L.H)(Error("TodayInMarkets Sparkline Fetch Error"),{selectedCategory:null==r?void 0:r.id,sparklineTickers:u.join(",")}),(0,o.jsx)(e6,{placeholder:(0,o.jsx)("div",{className:eX().todayInMarketsErrorWrapper,children:(0,o.jsx)(e2,{})}),errorMessage:s({id:"errMarketData",defaultMessage:"There was an error loading market data."}),onRetryClick:()=>p({throwOnError:!0})})):(0,o.jsx)(o.Fragment,{children:d.map((e,r)=>{let a=(0,y.RD)([eX().todayInMarketsSparklineCardContainer,{[eX().active]:t&&e.id===n}]);return(0,o.jsx)("div",{className:a,onClick:()=>g(e),...t&&{onMouseMove:()=>f(e),onMouseLeave:()=>v()},children:(0,o.jsx)(e5,{className:eX().todayInMarketsSparklineCard,currency:e.currency,percentChange:e.percentChange,price:e.price,priceSet:e.priceSet,securityName:e.id,yesterdayPrice:e.yesterdayPrice,directionBy:"percentChange",useGradualFade:!0})},r)})})}function tt(e){let{onChange:t,selectedOption:n}=e,{categories:r}=e8(),a=(0,O.Q)(),i=(0,l.useMemo)(()=>{var e,t;return null!==(t=null===(e=r.find(e=>e.id===n))||void 0===e?void 0:e.label)&&void 0!==t?t:r[0].label},[r]),s=(0,l.useMemo)(()=>r.map(e=>({displayValue:a(e.label),value:e.id})),[r]);return(0,o.jsxs)("div",{className:eZ().dropDownContainer,children:[(0,o.jsx)(eY.K,{selectedItemOverride:{displayValue:a(i),value:n},onSelect:e=>{(null==e?void 0:e.value)&&t(e.value)},options:s,className:(0,y.RD)([eZ().cardsDropdown,g().coreShortTextSm])}),(0,o.jsx)(eq.iR,{shadow:!1,children:(0,o.jsx)(te,{})})]})}var tn=n(11934);function tr(e){let{onChange:t,selectedOption:n}=e,{categories:r}=e8(),a=(0,O.Q)(),i=r.map(e=>e.id),s=(0,l.useCallback)((e,n)=>{if(null===n)return;let r=i[n];null==t||t(r)},[i,t]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tn.mQ,{size:"default",variant:"basic",className:eZ().tabContainer,onTabSwitch:s,children:r.map(e=>(0,o.jsx)(tn.OK,{title:a(e.label),isDefault:n===e.id,className:g().coreShortTextSm,children:" "},e.id))}),(0,o.jsx)("div",{className:eZ().tabSliderContainer,children:(0,o.jsx)(eq.iR,{shadow:!1,children:(0,o.jsx)(te,{})})})]})}function ta(e){let{onChange:t,selectedOption:n}=e,r=(0,O.Q)(),{categories:a}=e8(),i=a.map(e=>e.id),s=(0,l.useCallback)((e,n)=>{if(null===n)return;let r=i[n];null==t||t(r)},[i,t]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tn.mQ,{size:"default",variant:"basic",className:eZ().tabContainer,onTabSwitch:s,children:a.map(e=>(0,o.jsx)(tn.OK,{title:r(e.label),isDefault:n===e.id,children:""},e.id))}),(0,o.jsx)("div",{className:eZ().tabGridContainer,children:(0,o.jsx)(te,{enableFocusEvents:!0})})]})}let ti=new Set(["LB1:IND","RBATCTR:IND"]),ts={stocks:{id:"indices",label:{id:"popularIndices",defaultMessage:"Popular Indices"}},"rates-bonds":{id:"ratesAndBonds",label:{id:"popularRatesAndBonds",defaultMessage:"Popular Rates & Bonds"}},currencies:{id:"currencies",label:{id:"popularCurrencies",defaultMessage:"Popular Currencies"}},commodities:{id:"commodities",label:{id:"popularCommodities",defaultMessage:"Popular Commodities"}},topPerformers:{id:"topPerformers",label:{id:"topPerformers",defaultMessage:"Top Performers"}},underPerformers:{id:"underPerformers",label:{id:"underPerformers",defaultMessage:"Under Performers"}}};function to(e,t){var n;let r=e.flatMap(e=>e.securities||[]).filter(e=>!ti.has(e.id)&&(void 0!==e.highPrice||void 0!==e.lowPrice)).map(e=>{var t;return{id:e.id,currency:null!==(t=e.issuedCurrency)&&void 0!==t?t:"USD",percentChange:e.percentChange1Day,priceChange1Day:e.priceChange1Day,price:e.price,priceSet:[],priceMovements:[],yesterdayPrice:e.previousClosingPriceOneTradingDayAgo,volume:e.volume,highPrice:e.highPrice,lowPrice:e.lowPrice,previousClosingPriceOneTradingDayAgo:e.previousClosingPriceOneTradingDayAgo,volatility:(e.highPrice-e.lowPrice)/e.previousClosingPriceOneTradingDayAgo}}),a=r.sort((e,t)=>t.percentChange-e.percentChange).slice(0,10),i=r.sort((e,t)=>e.percentChange-t.percentChange).slice(0,10),s=r.sort((e,t)=>t.volume-e.volume).slice(0,10);return[{...null!==(n=ts[t])&&void 0!==n?n:ts.stocks,dataItems:s},{...ts.topPerformers,dataItems:a},{...ts.underPerformers,dataItems:i}]}let tl="persistedWrappedWatchlist",tc="isOpenTodayInMarkets";function td(e){let{sectionFrontName:t,sectionFrontTabIdentifier:n}=e,{locale:r}=(0,j.Z)(),{pagePreference:a,updatePagePreference:i}=(0,x.V)(),{breakpoints:{tablet:s,smallDesktop:c,largeDesktop:d}}=(0,l.useContext)(ez.sG),{updateCategories:u,selectedCategory:m,onCategoryChange:p,categories:_}=e8(),{data:g}=eF(t,n,r),f=(0,l.useMemo)(()=>"".concat(t,":").concat("todayInMarketsTab"),[t]),v=(0,l.useMemo)(()=>a[f]||m.id,[a,m.id]);(0,l.useEffect)(()=>{p(v)},[p,v]);let y=(0,l.useCallback)(e=>{var t,n;let r=null!==(n=null===(t=_.find(t=>t.id===e))||void 0===t?void 0:t.label.defaultMessage)&&void 0!==n?n:e,a="".concat(null==r?void 0:r.toLowerCase().replace(/ /g,"_"),"_tim");(0,h.uH)("Market_Data",a,"click","Market Data"),i(f,e),p(e),(0,L.f)("todayInMarketsTabChange",{tabName:r})},[p]);(0,l.useEffect)(()=>{(null==g?void 0:g.length)&&u(to(g,t))},[u,g,t]);let k=(0,l.useMemo)(()=>!s&&!c&&!d,[s,c,d]),b=(0,l.useMemo)(()=>c||d,[c,d]);return k?(0,o.jsx)("div",{className:eZ().todayInMarketsCategoriesContainer,children:(0,o.jsx)(tt,{onChange:y,selectedOption:v})}):b?(0,o.jsx)("div",{className:eZ().todayInMarketsCategoriesContainer,children:(0,o.jsx)(ta,{onChange:y,selectedOption:v})}):(0,o.jsx)("div",{className:eZ().todayInMarketsCategoriesContainer,children:(0,o.jsx)(tr,{onChange:y,selectedOption:v})})}var tu=n(24214),tm=n.n(tu),tp=n(72016),th=n(15509),t_=n(78528);function tg(){let{activeTicker:e,selectedCategory:t,updateActiveTicker:n}=e8(),[r,a]=(0,l.useState)(350),i=(0,l.useRef)(null),{breakpoints:{smallDesktop:s,largeDesktop:c}}=(0,l.useContext)(ez.sG),d=(0,l.useMemo)(()=>!!(s||c),[s,c]),u=(0,l.useMemo)(()=>c?326:s?459:326,[s,c]),m=(0,l.useMemo)(()=>{var e;return(null==t?void 0:null===(e=t.dataItems)||void 0===e?void 0:e.length)?t.dataItems.map(e=>{let t=e.percentChange||0,n=(0,th.xr)(t),r=(0,th.ik)(t);return{...e,severity:n,trend:r,label:e.id,size:1,marketData:{PX_LAST:e.price,CHG_PCT_1D:t,CHG_NET_1D:e.priceChange1Day,CRNCY:e.currency},shares:{number:0}}}):[]},[t]),p=(0,e9.Z)();(0,l.useEffect)(()=>{if(s||c){a(350);return}let e=i.current;if(!e)return;let t=new ResizeObserver(e=>{for(let r of e){var t,n;let e=(null===(n=r.contentBoxSize)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.inlineSize)||r.contentRect.width;if(0===e)return;a(e)}});return t.observe(e),()=>{t.disconnect()}},[s,c]);let _=(0,l.useCallback)(e=>{(0,h.uH)("Market_Data","heatmap_click_tim","click","Market Data"),(0,L.f)("todayInMarketsHeatmapClick",{ticker:e.data.id}),p.open("/quote/".concat(e.data.id),"_blank")},[]),g=(0,l.useCallback)(e=>{(0,h.uH)("Market_Data","heatmap_hover_tim","click","Market Data"),n(e.data.id)},[n]),f=(0,l.useCallback)(e=>{n(void 0)},[n]);return(0,o.jsx)("div",{ref:i,className:tm().todayInMarketsHeatmapContainer,children:(0,o.jsx)(tp.Z,{width:r,height:u,tilesData:m,activeTileLabel:e,onTileClick:_,onTileFocus:g,onTileBlur:f,enableTileFocusEvents:d,renderHoverContent:e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,y.RD)(tm().hoverContent,tm().tickerSymbol),children:e.data.id}),(0,o.jsxs)("div",{className:tm().hoverContent,children:[(0,t_.j)(e.data.currency||"")," ",(0,ea.Bw)(e.data.price)]}),Number.isFinite(e.data.percentChange)&&Number.isFinite(e.data.priceChange1Day)&&(0,o.jsx)("div",{className:tm().hoverContent,children:(0,o.jsx)($.R,{name:"change",className:"pb-0.5",percentChange:e.data.percentChange,priceChange:e.data.priceChange1Day,size:"large",variant:ee.$e.refresh2024})})]})})})}var tf=n(40836);let tv=(0,l.memo)(function(){return(0,o.jsx)("section",{className:eU().placeholderContainer,children:(0,o.jsx)(er.V,{children:(0,o.jsxs)("div",{children:[Array.from(Array(10).keys()).map((e,t)=>(0,o.jsx)("div",{className:eU().placeholderRow,children:(0,o.jsx)(er.V.Line,{})},t)),Array.from(Array(10).keys()).map((e,t)=>(0,o.jsx)("div",{className:(0,y.RD)([eU().placeholderRow,eU().desktopHiddenRow]),children:(0,o.jsx)(er.V.Line,{})},"mobile-tablet-".concat(t)))]})})})});function tx(e){let{sectionFrontName:t,sectionFrontTab:n}=e,{pagePreference:r,updatePagePreference:a}=(0,x.V)(),i=(0,l.useMemo)(()=>{var e;return null===(e=r[tc])||void 0===e||e},[r]),[s,c]=(0,l.useState)(!0),[d,u]=(0,l.useState)(!0),m=(0,tf.O)();(0,l.useEffect)(()=>{(0,h.uH)("Market_Data","tim_surfaces","uiaction","Market Data")},[]);let p=(0,l.useRef)(null),_=(0,l.useMemo)(()=>{var e;return(null===(e=n.sections)||void 0===e?void 0:e.length)?to(n.sections,t):[]},[n,t]),f=(0,l.useCallback)(e=>{p.current&&(clearTimeout(p.current),p.current=null),p.current=setTimeout(()=>{c(e),p.current=null},eI.DN)},[p.current]);(0,l.useEffect)(()=>{u(i),f(i)},[i]);let v=(0,l.useCallback)(()=>{d?(u(!1),(0,h.uH)("Market_Data","hide_tim","click","Market Data"),(0,L.f)("todayInMarketsToggle",{action:"chevron_close"}),a(tc,!1),f(!1)):(c(!0),(0,h.uH)("Market_Data","show_tim","click","Market Data"),(0,L.f)("todayInMarketsToggle",{action:"chevron_open"}),a(tc,!0),requestAnimationFrame(()=>u(!0)))},[d]);(0,l.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]);let j=(0,y.RD)([eU().showHideToggle,{[eU().open]:d,[eU().close]:!d}]),k=(0,y.RD)([eU().sectionWrapper,{[eU().open]:d,[eU().close]:!d}]);return(null==_?void 0:_.length)?(0,o.jsx)(e1,{categories:_,children:(0,o.jsxs)("div",{className:eU().todayInMarkets,children:[(0,o.jsx)("button",{onClick:v,"aria-label":"toggle today in markets",children:(0,o.jsxs)("div",{className:eU().collapsibleContainer,children:[(0,o.jsx)("h2",{className:(0,y.RD)([eU().sectionTitle,g().coreHeadlineSm]),children:(0,o.jsx)(O.jU,{id:"todayInTheMarkets",defaultMessage:"Today in the Markets"})}),(0,o.jsx)("div",{className:j,role:"icon-button",children:(0,o.jsx)("span",{className:eU().chevronIcon,children:(0,o.jsx)(en._M,{})})})]})}),(0,o.jsx)("div",{className:k,children:s&&(0,o.jsx)("div",{className:eU().sectionContainer,children:m?(0,o.jsx)(tv,{}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(td,{sectionFrontName:t,sectionFrontTabIdentifier:null==n?void 0:n.identifier}),(0,o.jsx)(tg,{})]})})})]})}):null}var ty=n(90148),tj=n.n(ty),tk=n(76813),tb=n(46021),tC=n.n(tb),tw=n(44277),tN=n.n(tw);let tT="Watchlist Performance";function tS(e){let{watchlistOptions:t,selectedWatchlistOption:n,onWatchlistChange:r}=e,a="/markets/watchlist?watchlist=".concat(null==n?void 0:n.value),i=e=>{(0,h.uH)("watchlistTabSwitch","dropdown_switch","click","watchlist"),e&&r&&(r(e),(0,L.f)("wrappedWatchlistChange"))},s=()=>{(0,L.f)("wrappedGoToWatchlist")};return(0,o.jsxs)("div",{className:tN().headingContainer,children:[(0,o.jsxs)("div",{className:tN().mobileHeader,children:[(0,o.jsxs)("div",{className:tN().mobileTopRow,children:[(0,o.jsx)("div",{className:tN().headingTitle,children:tT}),(0,o.jsxs)("a",{className:tN().yourWatchlistMobile,href:a,onClick:s,rel:"noopener noreferrer",children:[(0,o.jsx)("span",{className:tN().watchlistWrapText,children:"Go to Watchlist"}),(0,o.jsx)("span",{className:tN().inlineIcon,children:(0,o.jsx)(en._Q,{})})]})]}),(0,o.jsx)(eY.K,{className:tN().watchlistViewDropdown,onSelect:i,selectedItemOverride:n,options:t})]}),(0,o.jsxs)("div",{className:tN().desktopHeader,children:[(0,o.jsxs)("div",{className:tN().desktopHeaderMain,children:[(0,o.jsx)("div",{className:tN().headingTitle,children:tT}),(0,o.jsx)(eY.K,{className:tN().watchlistViewDropdown,onSelect:i,selectedItemOverride:n,options:t})]}),(0,o.jsxs)("a",{className:tN().yourWatchlist,href:a,onClick:s,target:"_blank",rel:"noopener noreferrer",children:["View Your Watchlist",(0,o.jsx)(en._Q,{})]})]})]})}let tM="Watchlist Performance",tI="/markets/watchlist",tD={value:"placeholder_option",displayValue:"Select Watchlist"};function tR(){return(0,o.jsxs)("div",{className:tN().headingContainer,children:[(0,o.jsxs)("div",{className:tN().mobileHeader,children:[(0,o.jsxs)("div",{className:tN().mobileTopRow,children:[(0,o.jsx)("div",{className:tN().headingTitle,children:tM}),(0,o.jsxs)("a",{className:tN().yourWatchlistMobile,href:tI,children:[(0,o.jsx)("span",{className:tN().watchlistWrapText,children:"Go to Watchlist"}),(0,o.jsx)("span",{className:tN().inlineIcon,children:(0,o.jsx)(en._Q,{})})]})]}),(0,o.jsx)("div",{className:tN().watchlistViewDropdown,children:(0,o.jsx)(eY.K,{className:tN().watchlistViewDropdown,selectedItemOverride:tD,options:[],onSelect:()=>{}})})]}),(0,o.jsxs)("div",{className:tN().desktopHeader,children:[(0,o.jsxs)("div",{className:tN().desktopHeaderMain,children:[(0,o.jsx)("div",{className:tN().headingTitle,children:tM}),(0,o.jsx)("div",{className:tN().watchlistViewDropdown,children:(0,o.jsx)(eY.K,{className:tN().watchlistViewDropdown,selectedItemOverride:tD,options:[],onSelect:()=>{}})})]}),(0,o.jsxs)("a",{className:tN().yourWatchlist,href:tI,children:["View Your Watchlist",(0,o.jsx)(en._Q,{})]})]})]})}var tP=n(61362);function tL(e){let{loadingState:t,watchlistOptions:n,selectedWatchlistOption:r,onWatchlistChange:a,onRefresh:i}=e;return t===tP.Vu.LOADING?(0,o.jsx)(tR,{}):t===tP.Vu.FAILED?(0,o.jsx)(e7.Z,{text:tP.tj,variant:"lineBreak",title:"",actionIcon:(0,o.jsx)(en.hY,{}),actionText:"Refresh",onActionClick:i}):(0,o.jsx)(tS,{watchlistOptions:n,selectedWatchlistOption:r,onWatchlistChange:a})}var tA=n(13302),tE=n.n(tA);function tF(){return(0,o.jsx)("div",{className:tE().metricContainerPlaceholder,children:(0,o.jsx)(er.V.Line,{})})}function tB(){return(0,o.jsxs)("div",{className:tE().snapshot,children:[(0,o.jsx)("div",{className:tE().snapshotTitle,children:"Daily Snapshot"}),(0,o.jsxs)("div",{className:tE().snapshotGrid,children:[(0,o.jsxs)("div",{className:tE().snapshotGridRow,children:[(0,o.jsx)(tF,{}),(0,o.jsx)(tF,{})]}),(0,o.jsxs)("div",{className:tE().snapshotGridRow,children:[(0,o.jsx)(tF,{}),(0,o.jsx)(tF,{})]})]})]})}var tV=n(18864),tH=n.n(tV);function tW(){return(0,o.jsx)("div",{className:tH().topMoverPillPlaceholder,children:(0,o.jsx)(er.V.Line,{})})}function tO(){return(0,o.jsxs)("div",{className:tH().topMoversBox,children:[(0,o.jsx)("div",{className:tH().topMoversTitle,children:"Top Movers"}),(0,o.jsx)("div",{className:tH().topMoversGrid,children:Array.from({length:6}).map((e,t)=>(0,o.jsx)(tW,{},t))})]})}var tU=n(83248),tz=n.n(tU);function tG(){return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:tz().performanceChartTitle,children:"Performance Chart"}),(0,o.jsx)("div",{className:tz().performanceChartPlaceholder,children:(0,o.jsx)(er.V.Image,{})})]})}function tZ(){return(0,o.jsxs)("div",{className:tC().mainContent,children:[(0,o.jsxs)("div",{className:tC().snapshotAndMoversSection,children:[(0,o.jsx)("div",{className:tC().snapshotWrapper,children:(0,o.jsx)(tB,{})}),(0,o.jsx)("div",{className:tC().verticalDivider,role:"separator"}),(0,o.jsx)("div",{className:tC().moversSection,children:(0,o.jsx)(tO,{})})]}),(0,o.jsx)("div",{className:tC().horizontalDivider,role:"separator"}),(0,o.jsx)("div",{className:tC().chartSection,children:(0,o.jsx)(tG,{})})]})}var tY=n(83683);let tq="Total Gain / Loss";function tK(e){let{title:t,value:n,percentChange:r,showSign:a=!1}=e;return(0,o.jsxs)("div",{className:tE().metricContainer,children:[(0,o.jsx)("p",{className:tE().metricTitle,children:t}),(0,o.jsx)("span",{className:tE().priceDisplay,children:(0,o.jsxs)("div",{className:tE().watchlistSnapshotMetrics,children:[(0,o.jsxs)("div",{className:tE().metricValueWrapper,children:[a&&n>=0&&(0,o.jsx)("span",{className:tE().price,children:"+"}),(0,o.jsx)(tY.l,{price:n,size:"large",className:tE().metricValue})]}),(r||0!==r)&&(0,o.jsx)($.R,{className:tE().change,name:"change",percentChange:r,size:"large",variant:ee.$e.refresh2024})]})})]})}function tJ(e){let{todayGainLoss:t,totalGainLoss:n,totalValue:r,totalCost:a}=e,{breakpoints:{tablet:i,smallDesktop:s,largeDesktop:c}}=(0,l.useContext)(ez.sG),d=!i&&!s&&!c;return(0,o.jsxs)("div",{className:tE().snapshot,children:[(0,o.jsx)("div",{className:tE().snapshotTitle,children:"Daily Snapshot"}),(0,o.jsxs)("div",{className:tE().snapshotGrid,children:[(0,o.jsxs)("div",{className:tE().snapshotGridRow,children:[(0,o.jsx)(tK,{title:"Today’s Gain / Loss",value:t.value,percentChange:t.percentChange,showSign:!0}),(0,o.jsx)(tK,{title:d?tq:"Value",value:d?n.value:r.value,percentChange:d?n.percentChange:0})]}),(0,o.jsxs)("div",{className:tE().snapshotGridRow,children:[(0,o.jsx)(tK,{title:d?"Value":tq,value:d?r.value:n.value,percentChange:d?0:n.percentChange,showSign:!0}),(0,o.jsx)(tK,{title:"Cost",value:a.value,percentChange:0})]})]})]})}function tX(e){let{movers:t,currency:n,hasLots:r}=e,a=[...t].sort((e,t)=>Math.abs(t.percentChange)-Math.abs(e.percentChange)),i=(0,e9.Z)(),s=(0,l.useCallback)(e=>{(0,h.uH)("Watchlist","top_movers_pill","click","Watchlist"),(0,L.f)("wrappedTopMoverClick",{ticker:e}),i.open("/quote/".concat(e),"_blank","noopener,noreferrer")},[]);return(0,o.jsxs)("div",{className:tH().topMoversBox,children:[(0,o.jsx)("div",{className:tH().topMoversTitle,children:"Top Movers"}),(0,o.jsx)("div",{className:tH().topMoversGrid,children:a.map((e,t)=>{let n=(0,y.RD)([tH().topMoverPill,{[tH().showPositiveSign]:e.value>=0&&r}]);return(0,o.jsx)(ee.EK,{onClick:s,lines:ee.xh.two,percentChange:e.percentChange,price:e.value,size:ee.$u.default,ticker:e.ticker,variant:ee.$e.refresh2024,className:n,currency:e.issuedCurrency,showCurrency:!r},e.ticker)})})]})}var tQ=n(64190),t$=n(7160),t0=n(74773);function t1(e){let{chartData:t,chartCaption:n}=e,[r,a]=(0,l.useState)([]),[i,s]=(0,l.useState)(void 0),c=(0,tf.r)(),d=(0,l.useMemo)(()=>t.map((e,t)=>{var n,r;return{...e,id:String(e.id),color:(0,t0.Dv)(t),countryCode:null!==(n=e.countryCode)&&void 0!==n?n:"",exchangeCode:null!==(r=e.exchangeCode)&&void 0!==r?r:""}}),[t]);(0,l.useEffect)(()=>{a(d.map(e=>({id:e.id,name:e.id,color:e.color,checked:!0})))},[d]);let u=(0,l.useCallback)((e,t)=>{t?(0,h.uH)("quote_add_compare","add-compare","click","Watchlist Performance Module"):(0,h.uH)("quote_remove_compare","remove-compare","click","Watchlist Performance Module"),a(n=>{let r=n.map(n=>n.id===e?{...n,checked:t}:n);return 0===r.filter(e=>e.checked).length?n:r}),(0,L.f)("watchlistWrappedTickerChange",{tickerId:e,isChecked:t})},[]),m=(0,l.useCallback)(e=>{a(t=>t.filter(t=>t.id!==e))},[]),p=(0,l.useMemo)(()=>(0,t0._V)(r,d).map(e=>({...e,id:String(e.id)})),[r,d]),_=1===p.length?"price":"percentage",g=1===p.length;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:tz().performanceChartTitle,children:"Performance Chart"}),(0,o.jsx)(tQ.U,{tickerSnapshots:p,renderMode:_,showGradient:g,pricePrecision:2,enableDragInteraction:!0,handleChartHoverInteraction:s,width:830,height:420,...!c&&{xAxisTickSize:4,yAxisTickSize:4},showPreviousPrice:!0,xAxisInterval:"hour"}),n&&(0,o.jsx)("div",{className:tz().caption,children:"".concat(n)}),(0,o.jsx)("div",{className:tz().legendWrapper,children:(0,o.jsx)(t$.Z,{className:tz().customLegendWrapper,hoveredDataPoint:i,tickerLegendData:r,handleTickerSelectionChange:u,handleTickerRemoval:m})})]})}function t8(){return(0,o.jsx)("div",{className:tC().noTickersViewContainer,children:(0,o.jsx)(e7.Z,{className:tC().noTickersNotification,text:"Add tickers to your watchlist to see your assets’ daily performance.",variant:"lineBreak",title:"",actionText:"Go to Watchlist",onActionClick:()=>{window.location.href="/markets/watchlist"}})})}function t2(e){let{loadingState:t,wrappedWatchlist:n,onRetry:r}=e;if(t===tP.Vu.LOADING)return(0,o.jsx)(tZ,{});if(t===tP.Vu.FAILED)return(0,o.jsx)(e6,{errorMessage:"There was an error loading watchlist wrapped data.",placeholder:(0,o.jsx)(tZ,{}),onRetryClick:r});if(t===tP.Vu.EMPTY)return(0,o.jsx)("div",{children:"No wrapped watchlist data available."});if(t===tP.Vu.COMPLETE){var a,i,s;let e=!!(null==n?void 0:null===(a=n.totalValue)||void 0===a?void 0:a.value)&&!!(null==n?void 0:null===(i=n.totalCost)||void 0===i?void 0:i.value);if(e&&(0,h.uH)("watchlistPresence","user_with_lots","watchlist","uiaction"),!((null!==(s=null==n?void 0:n.topMovers.length)&&void 0!==s?s:0)>0))return(0,o.jsx)(t8,{});if(n)return(0,o.jsxs)("div",{className:tC().mainContent,children:[(0,o.jsxs)("div",{className:tC().snapshotAndMoversSection,children:[(0,o.jsx)("div",{className:tC().snapshotWrapper,children:(0,o.jsx)(tJ,{todayGainLoss:n.todayGainLoss,totalGainLoss:n.totalGainLoss,totalValue:n.totalValue,totalCost:n.totalCost})}),(0,o.jsx)("div",{className:tC().verticalDivider,role:"separator"}),(0,o.jsx)("div",{className:tC().moversSection,children:(0,o.jsx)(tX,{movers:n.topMovers,currency:n.currency,hasLots:e})})]}),(0,o.jsx)("div",{className:tC().horizontalDivider,role:"separator"}),(0,o.jsx)("div",{className:tC().chartSection,children:(0,o.jsx)(t1,{chartData:n.chartData,chartCaption:e?"Performance weighted by your shares":""})})]})}return null}var t3=n(44014),t4=n(25022);let t7=n(48189).ff.getInstance();async function t6(e,t){return await t7.getWrappedWatchlist(e,Number(t))}var t9=n(92950),t5=n(51656);let ne=()=>(0,o.jsxs)("div",{className:tC().bundle,children:[(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Image,{className:tC().bundleImage}),(0,o.jsxs)("div",{className:tC().bundleTickers,children:[(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{})]}),(0,o.jsx)("div",{className:tC().bundleButton,children:(0,o.jsx)(er.V.Line,{})})]}),nt=(0,l.memo)(function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:tC().bundleHeader,children:[(0,o.jsx)("div",{className:tC().subscriberOnly,children:(0,o.jsx)(er.V.Line,{})}),(0,o.jsx)("div",{className:tC().topLiner,children:(0,o.jsx)(er.V.Line,{})}),(0,o.jsx)("div",{className:tC().subLiner,children:(0,o.jsx)(er.V.Line,{})})]}),(0,o.jsxs)("div",{className:tC().bundlesContainer,children:[(0,o.jsx)(ne,{}),(0,o.jsx)(ne,{}),(0,o.jsx)(ne,{})]})]})}),nn=(0,l.memo)(function(){return(0,o.jsx)("section",{className:tC().placeholderContainer,children:(0,o.jsx)(er.V,{children:(0,o.jsx)("div",{children:Array.from(Array(20).keys()).map((e,t)=>(0,o.jsx)("div",{className:tC().placeholderRow,children:(0,o.jsx)(er.V.Line,{})},t))})})})}),nr=e=>{let{useGeneric:t=!0}=e,{session:n}=(0,p.useRegUIClient)(),r=(0,l.useMemo)(()=>!!(null==n?void 0:n.isLoggedIn),[null==n?void 0:n.isLoggedIn]);return t?(0,o.jsx)(nn,{}):r?(0,o.jsxs)("section",{className:tC().placeholderContainer,children:[(0,o.jsx)(tR,{}),(0,o.jsx)(tZ,{})]}):(0,o.jsx)("section",{className:(0,y.RD)([tC().placeholderContainer,tC().bundleContainer]),children:(0,o.jsx)(nt,{})})};function na(e){var t,n,r,a;let{onBgChange:i}=e,[s,c]=(0,l.useState)(tP.Vu.INITIAL),[d,u]=(0,l.useState)(tP.Vu.INITIAL),[m,_]=(0,l.useState)(),[g,f]=(0,l.useState)([]),[v,y]=(0,l.useState)(),j=(0,l.useRef)(!1),{session:k}=(0,p.useRegUIClient)(),b=null!==(r=null==k?void 0:null===(t=k.userInfo)||void 0===t?void 0:t.userId)&&void 0!==r?r:"",{selectedPortfolio:C,upsertPortfolio:w,updateSelectedPortfolio:N}=(0,t4.eP)(),{pagePreference:T,updatePagePreference:S}=(0,x.V)(),M=(0,l.useMemo)(()=>T[tl]||null,[T]),I=!!(null!==(a=null===(n=(0,et.useFeatureGate)("watchlist_paywall"))||void 0===n?void 0:n.value)&&void 0!==a&&a),D=(0,l.useCallback)(e=>{let t=e.value;y(e),S(tl,t),u(tP.Vu.LOADING),t6(b,Number(t)).then(e=>{_(e),u(tP.Vu.COMPLETE)}).catch(e=>{console.error("Failed to fetch wrapped watchlist",e),u(tP.Vu.FAILED),(0,L.H)(Error("Watchlist Wrapped Fetch Failed"),{errorMessage:JSON.stringify(e)})})},[b,t6]),R=(0,l.useCallback)(()=>{v&&(u(tP.Vu.LOADING),t6(b,Number(v.value)).then(e=>{_(e),u(tP.Vu.COMPLETE)}).catch(e=>{console.error("Failed to refresh wrapped watchlist",e),u(tP.Vu.FAILED),(0,L.H)(Error("Watchlist Wrapped Refresh Failed"),{errorMessage:JSON.stringify(e)})}))},[b,v,t6]),P=(0,l.useCallback)(e=>{if(!b){(0,L.H)(Error("Watchlist Wrapped BconnectId is null"));return}c(tP.Vu.LOADING),(0,t3.ue)({bconnectId:b}).then(t=>{let{portInfos:n,port:r}=t.data;N(r);let a=n.map(e=>({value:String(e.id),displayValue:e.name||"Unnamed Watchlist",isDefault:e.isDefault}));f(a);let i=null!=e?e:M,s=(i?a.find(e=>e.value===i):void 0)||a.find(e=>e.isDefault);s&&(y(s),D(s)),c(tP.Vu.COMPLETE)}).catch(e=>{console.error("Portfolio fetch error",e),c(404===e.status?tP.Vu.EMPTY:tP.Vu.FAILED),(0,L.H)(Error("Watchlist Wrapped Portfolio Fetch Error"),{errorMessage:JSON.stringify(e)})})},[b,D,N]);return((0,l.useEffect)(()=>{if((null==k?void 0:k.isRegUIClientLoaded)&&!(null==k?void 0:k.isLoggedIn))return;let e=window.sessionStorage.getItem("createBundleAfterLogin"),t=e?JSON.parse(e):null;(null==t?void 0:t.shouldCreate)?(c(tP.Vu.LOADING),(0,t5.$)(t.bundlePortfolio,b).then(e=>{w(e),c(tP.Vu.COMPLETE);let t=String(e.portInfo.id);S(tl,t),P(t)}).catch(e=>{c(tP.Vu.FAILED),console.error("[BUNDLE] Error Saving",e),(0,L.H)(Error("Watchlist Wrapped Bundle Save Error"),{errorMessage:JSON.stringify(e)})}),window.sessionStorage.removeItem("createBundleAfterLogin")):P()},[null==k?void 0:k.isLoggedIn,null==k?void 0:k.isRegUIClientLoaded]),(0,l.useEffect)(()=>{if(!(null==k?void 0:k.isRegUIClientLoaded))return;let e=!(null==k?void 0:k.isLoggedIn)||s===tP.Vu.EMPTY;null==i||i(e)},[null==k?void 0:k.isRegUIClientLoaded,null==k?void 0:k.isLoggedIn,s,i]),(0,l.useEffect)(()=>{s===tP.Vu.EMPTY&&C&&!j.current&&(j.current=!0,P())},[C,s,P]),(null==k?void 0:k.isRegUIClientLoaded)!==!0||d===tP.Vu.LOADING||s===tP.Vu.LOADING)?(0,o.jsx)(nr,{}):(null==k?void 0:k.isLoggedIn)&&(!I||(null==k?void 0:k.isBBGSubscriber))&&s!==tP.Vu.EMPTY?((0,h.uH)("watchlistPresence","user_with_watchlist","watchlist","uiaction"),(0,o.jsxs)("div",{className:tC().root,children:[(0,o.jsx)(tL,{loadingState:s,watchlistOptions:g,selectedWatchlistOption:v,onWatchlistChange:D,onRefresh:P}),s!==tP.Vu.FAILED&&(0,o.jsx)(t2,{loadingState:d,wrappedWatchlist:m,onRetry:R})]})):((0,h.uH)("watchlistPresence","user_without_watchlist","watchlist","uiaction"),(0,o.jsx)(t9.ZP,{variant:"wrapped"}))}var ni=n(71874);let ns=(0,l.memo)(function(e){let{children:t,placeholder:n,rootMargin:r="200px",onEnterDelay:a=250}=e,[i,s]=(0,l.useState)(!1),c=(0,l.useCallback)(()=>{setTimeout(()=>s(!0),a)},[a]);return(0,o.jsx)(ni.H,{onEnter:c,rootMargin:r,children:i?t:n})});function no(){let[e,t]=(0,l.useState)(!1),n=(0,y.RD)({[tj().bundlesBg]:e});return(0,o.jsx)(tk.j,{className:n,children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(nr,{}),onEnterDelay:0,children:(0,o.jsx)(na,{onBgChange:t})})})}var nl=n(31364),nc=n.n(nl),nd=n(96172);async function nu(e){let t=await fetch("/lineup-next/api/newsletter/".concat(e));if(!t.ok)throw Error("Error when fetching from api/newsletter: ".concat(await t.text()));return await t.json()}let nm=/^.*\.(gif)/,np=/-999x-999/,nh=/<([^<>])+(\/)?>/g,n_=/\s+/g;function ng(e,t){return t?Math.round(e/t):-1}function nf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:19,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return np.test(e)?e.replace(/^http:\/\//,"//").replace(/^\/\//,"https://").replace(/.webp/,".gif"):e.replace(/^http:\/\//,"//").replace(/^\/\//,"https://").replace(/(\/)(-*\d+x-*\d+)(.\w+)$/,"$1".concat(t,"x").concat(n,"$3").concat(r?" ".concat(a?"".concat(a,"x"):"".concat(t,"w")):""))}var nv=n(86281),nx=n.n(nv),ny=n(52644),nj=n.n(ny);function nk(){return(0,o.jsxs)("div",{className:nj().playIcon,"data-component":"play-icon",children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:nj().rightTriangle,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3635 8.99987L6.09082 13.3635L6.09082 4.63623L13.3635 8.99987Z",fill:"white"})}),(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:nj().circle,children:(0,o.jsx)("circle",{cx:"12",cy:"12",r:"11",fill:"black",fillOpacity:"0.3",stroke:"white",strokeWidth:"2"})})]})}let nb=eI.aA,nC=nb/2;function nw(e){var t;let{altFallback:n,aspectRatio:r,contentType:a,image:i,isLazy:s=!0,className:l,desktopMaxWidth:c=nb,mobileMaxWidth:d=nC,showCaption:u=!1}=e,{baseUrl:m="",alt:p,credit:h}=i||{},_={"--aspect-ratio":r&&Number(null==r?void 0:r.toFixed(2))},{mobile:g,desktop:f}=function(e){let{mobileMaxWidth:t,desktopMaxWidth:n,aspectRatio:r,baseUrl:a}=e;if(!nm.test(a))return{mobile:[1,2].map(e=>{let n=t*e,i=ng(n,r);return nf(a,n,i,!0,e)}).join(", "),desktop:[1,2].map(e=>{let t=n*e,i=ng(t,r);return nf(a,t,i,!0,e)}).join(", ")}}({baseUrl:m,desktopMaxWidth:c,mobileMaxWidth:d,aspectRatio:r})||{},v=ng(d,r),x=(t=h||"")?t.replace(/ /gi," "):"";return(0,o.jsxs)("figure",{"data-component":"lazy-image",className:l,children:[(0,o.jsxs)("picture",{className:nx().lazy,style:_,children:["relatedWithPlayIcon"===a&&(0,o.jsx)(nk,{}),(0,o.jsx)("source",{media:"screen and (max-width: 759px)",srcSet:null!=g?g:""}),(0,o.jsx)("source",{media:"screen and (min-width: 759px)",srcSet:null!=f?f:""}),(0,o.jsx)("img",{src:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:19,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return null===(t=nf(e,n,r,a,i))||void 0===t?void 0:t.replace(/.webp/,".jpg")}(m,d,v),"data-component":"image",alt:p||n,loading:s?"lazy":"eager"})]}),u&&!!h&&(0,o.jsx)("figcaption",{className:nx().caption,"data-component":"lazy-image-caption",children:x.replace(nh," ").replace(n_," ").trim()})]})}var nN=n(68098),nT=n.n(nN);let nS=e=>{let t=String(e);return(t=(t=(t=(t=t.replace(/: Markets Wrap/,"")).replace(/\(Audio\)/i,"")).replace(/\(video\)/i,"")).replace(/\(podcasts?\)/i,"")).replace(/\s+/g," ")};function nM(e){let{url:t,children:n,forceLinking:r}=e;return t&&r?(0,o.jsx)("a",{href:t,children:n}):(0,o.jsx)("span",{children:n})}var nI=function(e){let{text:t,url:n,className:r,preamble:a,forceLinking:i,size:s=nd.T6.LARGE}=e;return(0,o.jsx)("div",{className:(0,y.RD)(nT().headline,{[nT().forceLinking]:!!i,[nT().extraLarge]:s===nd.T6.EXTRA_LARGE,[nT().large]:s===nd.T6.LARGE,[nT().small]:s===nd.T6.SMALL,[nT().fullZone]:s===nd.T6.FULL_ZONE,[nT().medium]:s===nd.T6.MEDIUM},r),"data-component":"headline","data-testid":"headline",children:(0,o.jsxs)(nM,{url:n,forceLinking:i,children:[a,nS(t)]})})},nD=n(29238),nR=n(2499),nP=n.n(nR);function nL(e){let{className:t,summary:n="",removeSummaryBottomMargin:r}=e;return(null==n?void 0:n.length)?(0,o.jsx)("section",{className:(0,y.RD)(nP().summary,{[nP().bottomMargin]:!r},t),"data-component":"summary",dangerouslySetInnerHTML:{__html:(0,nD.sanitize)(n)}}):null}let nA=()=>(0,o.jsxs)("section",{className:nc().newsletter,children:[(0,o.jsxs)("div",{className:nc().container,children:[(0,o.jsx)(er.V.Image,{className:nc().image}),(0,o.jsxs)("div",{className:nc().contentContainer,children:[(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{})]})]}),(0,o.jsx)("div",{className:nc().contentContainer,children:(0,o.jsx)(er.V.Line,{})})]});var nE=n(24847),nF=n(71717),nB=n(3631),nV=n(30202),nH=n(98029),nW=n(86971),nO=n.n(nW);let nU=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;async function nz(e){let t="".concat("https://login.bloomberg.com","/api/newsletters/subscription?").concat(new URLSearchParams({email:e}).toString()),n=await fetch(t,{method:"GET",credentials:"include",headers:{Accept:"*/*","Content-Type":"application/json"}});if(!n||!n.ok)throw Error("[newsletter][fetchNewsletterSubscriptions] Request to fetch newsletter subscriptions failed with status ".concat(n.status));try{let{isSubscriber:e,lists:t}=await n.json();return{isSubscriber:!!e,userNewsletterLists:t}}catch(e){throw Error("[newsletter] [fetchNewsletterSubscriptions] Parsing Json failed: ".concat(e))}}var nG=n(83524);let nZ=l.memo(e=>{let{isOpen:t}=e;return(0,o.jsx)(nG.x,{className:nO().toast,open:t,text:(0,o.jsxs)("p",{children:["You're signed up! Check your inbox for confirmation or"," ",(0,o.jsx)("a",{href:"/newsletters",target:"_blank",rel:"noopener",className:"underline",children:"browse all newsletters"}),"."]})})});nZ.displayName="SuccessToast";var nY=n(7438),nq=n(75197);let nK=l.memo(e=>{let{onClick:t,onSubscriberOnlyClick:n,isSignedUp:r,isSubscriberOnly:a,isUserSubscriber:i,isPending:s}=e;return a&&!i?(0,o.jsx)(nY.z,{disabled:s,className:nO().newsletterButton,colorMode:"dark",Icon:(0,o.jsx)(en.HE,{}),iconPosition:"left",onClick:n,version:"phoenix",children:"Subscribe"}):(0,o.jsx)(nq.I,{disabled:s,className:(0,y.RD)(nO().newsletterButton,{[nO().signedUp]:r}),withIcon:!0,onToggle:i?n:t,inactiveText:"Sign Up",activeText:"Signed Up",active:r})});nK.displayName="SuccessToast";let nJ="".concat("https://login.bloomberg.com","/api/newsletters/subscribe"),nX=["US","GB","FR","BR","CA"],nQ=e=>{var t,n;let{id:r,countryCode:a,isSubscriberOnly:i=!1,listId:s}=e,{session:c}=(0,p.useRegUIClient)(),d=(0,nV.NL)(),[u,m]=(0,l.useState)(""),[_,g]=(0,l.useState)(nX.includes(a)),[f,v]=(0,l.useState)(""),[x,j]=(0,l.useState)(!1),k=(null==c?void 0:null===(n=c.userInfo)||void 0===n?void 0:null===(t=n.user)||void 0===t?void 0:t.email)||"",b=null==c?void 0:c.isBBGSubscriber,{data:C}=(0,eL.a)({queryKey:["newsletterSubscriptions",k],queryFn:()=>nz(k),enabled:!!k,staleTime:eI.no});(0,l.useEffect)(()=>{var e;let t=!!s&&(null==C?void 0:null===(e=C.userNewsletterLists)||void 0===e?void 0:e.includes(s));t&&(0,h.uH)("Market_Data","user_signedup_for_markets_daily","uiaction","Market Data"),j(!!t)},[s,C]);let w=(0,nH.D)({mutationFn:e=>{let{email:t,optIn:n}=e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new URL(e);return r.search=new URLSearchParams(t).toString(),fetch(r,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"},credentials:"include"}).then(e=>e.text())}(nJ,{sourcePage:"HUB Page"},{email:t,listId:s,optIn:n})},onSuccess:()=>{var e;j(!0),null===(e=window.dataLayer)||void 0===e||e.push({event:"newsletter_signup",newsletterSignupIds:s}),d.invalidateQueries({queryKey:["newsletterSubscriptions",k]})}}),N=(0,l.useCallback)(()=>{(0,h.uH)("Market_Data","markets_daily_signup","click","Market Data"),v("");let e=k||u;if((0,L.f)("marketsNewsLetterSubscriberClick"),!function(e){let t=0===e.trim().length;return e?[nU.test(e),t]:[!1,t]}(e)[0]){v("Invalid email address, please try again");return}w.mutate({email:e,optIn:_?"true":"false"})},[k,u,_,w]),T=(0,l.useCallback)(()=>{if((0,h.uH)("Market_Data","markets_daily_signup","click","Market Data"),(0,L.f)("marketsNewsLetterSubscriberOnlyClick"),!k||!b){window.open("https://www.bloomberg.com/subscriptions","_blank","noopener,noreferrer");return}N()},[k,b,N]);if(!s)return(0,L.H)(Error("No listId provided for NewsletterForm with id ".concat(r,"."))),null;let S=!x&&!k;return(0,o.jsxs)(o.Fragment,{children:[w.isError&&(0,o.jsx)(nE.Z,{title:"Sorry, something went wrong. Please try again.",text:"Please try again.",variant:"error"}),S&&!i&&(0,o.jsx)(nF.U,{id:"form-for-".concat(r),type:"email",placeholder:"Enter your email",className:(0,y.RD)(nO().email,{[nO().error]:!!f}),onChange:e=>m(e.target.value),helperText:f,error:!!f,size:"small"}),S&&(0,o.jsx)(nB.Kw,{checkboxProps:{id:"privacy-checkbox-".concat(r)},includeTextInHitArea:!0,checked:_,onChange:()=>g(e=>!e),className:nO().checkbox,countryCode:a}),(0,o.jsx)(nK,{onClick:N,onSubscriberOnlyClick:T,isSignedUp:x,isSubscriberOnly:i,isUserSubscriber:b,isPending:w.isPending}),S&&(0,o.jsx)(nB.ue,{countryCode:a,className:nO().disclaimer}),(0,o.jsx)(nZ,{isOpen:w.isSuccess})]})};(r=i||(i={})).Default="card.default",r.Mobile="card.mobile",r.Standalone="card.standalone";let n$=e=>{var t,n;let r=null==e?void 0:null===(t=e.images)||void 0===t?void 0:t.find(e=>{var t;return null==e?void 0:null===(t=e.placement)||void 0===t?void 0:t.includes("card.mobile")}),a=null==e?void 0:null===(n=e.images)||void 0===n?void 0:n.find(e=>{var t;return null==e?void 0:null===(t=e.placement)||void 0===t?void 0:t.includes("card.default")});return r||a};function n0(e){var t;let{id:n,countryCode:r,embedUrl:a=""}=e,{status:i,data:s,refetch:l}=(0,eL.a)({queryKey:["newsletter",a],queryFn:()=>nu(a),enabled:a.length>1});if("pending"===i)return(0,o.jsx)(nA,{});if("error"===i)return(0,o.jsx)("div",{className:nc().newsletter,children:(0,o.jsx)(e6,{errorMessage:"There was an error retrieving newsletter data.",placeholder:(0,o.jsx)(nA,{}),onRetryClick:()=>l({throwOnError:!0})})});let c=n$(s),d=null!==(t=e.title)&&void 0!==t?t:s.title,u=null==s?void 0:s.description,m=null==s?void 0:s.signUpList,p=null==s?void 0:s.sampleUrl,h=(null==s?void 0:s.subscriptionType)==="subscriberOnly";return(0,o.jsxs)("section",{className:nc().newsletter,children:[(0,o.jsxs)("div",{className:nc().container,children:[(0,o.jsx)(nw,{image:c,desktopMaxWidth:141,mobileMaxWidth:96,className:nc().image,aspectRatio:1}),(0,o.jsxs)("div",{className:nc().contentContainer,children:[h&&(0,o.jsx)("p",{className:nc().subscriberOnlyLabel,children:"Subscriber Only"}),d?(0,o.jsx)(nI,{text:d,size:nd.T6.SMALL}):null,(0,o.jsx)(nL,{summary:u,removeSummaryBottomMargin:!0}),p?(0,o.jsx)("a",{target:"_blank",href:null==s?void 0:s.sampleUrl,className:nc().previewButton,children:"Preview"}):null]})]}),(0,o.jsx)(nQ,{countryCode:r,isSubscriberOnly:h,listId:m,id:n})]})}var n1=n(1013),n8=n.n(n1),n2=n(90512),n3=n(31955),n4=n(73935),n7=n(119);let n6="show_topic_picker",n9="Choose up to 12 markets topics to track the latest news.";(a=s||(s={})).topic="Topic",a.country="Country",a.region="Region",a.classification="Classification",a.location="Location";let n5={"private-credit":{name:"Private Credit",tagType:"Topic"},"global-trade":{name:"Trade",tagType:"Topic"},"investment-banking":{name:"Investment Banks",tagType:"Topic"},mergers:{name:"Deals",tagType:"Topic"},inflation:{name:"Inflation",tagType:"Topic"},"artificial-intelligence":{name:"AI",tagType:"Topic"},cryptocurrency:{name:"Crypto",tagType:"Topic"},"monetary-policy":{name:"Monetary Policy",tagType:"Topic"},currency:{name:"Currencies",tagType:"Topic"},"hedge-funds":{name:"Hedge Funds",tagType:"Topic"},"private-equity":{name:"Private Equity",tagType:"Topic"},startups:{name:"Startups",tagType:"Topic"},technology:{name:"Tech",tagType:"Classification"},taxes:{name:"Taxes",tagType:"Topic"},CA:{name:"Canada",tagType:"Country"},"latin-america":{name:"Latin America",tagType:"Location"},Asia:{name:"Asia",tagType:"Region"},Europe:{name:"Europe",tagType:"Region"},GB:{name:"UK",tagType:"Country"},Middleeast:{name:"Middle East",tagType:"Region"},Africa:{name:"Africa",tagType:"Region"},IN:{name:"India",tagType:"Country"},CN:{name:"China",tagType:"Country"},"energy-industry":{name:"Energy",tagType:"Topic"},"property-market":{name:"Property",tagType:"Topic"},automotive:{name:"Automotive",tagType:"Topic"},"aerospace-industry":{name:"Aerospace",tagType:"Topic"},entertainment:{name:"Entertainment",tagType:"Topic"},pharmaceutical:{name:"Pharmaceuticals",tagType:"Topic"}};n5.cryptocurrency,n5.entertainment,n5.retail;let re=[{title:"Recommended",items:{"private-credit":{label:n5["private-credit"].name},"hedge-funds":{label:n5["hedge-funds"].name},mergers:{label:n5.mergers.name},"investment-banking":{label:n5["investment-banking"].name},"private-equity":{label:n5["private-equity"].name},inflation:{label:n5.inflation.name},"global-trade":{label:n5["global-trade"].name},"artificial-intelligence":{label:n5["artificial-intelligence"].name},cryptocurrency:{label:n5.cryptocurrency.name},startups:{label:n5.startups.name},taxes:{label:n5.taxes.name},"monetary-policy":{label:n5["monetary-policy"].name},currency:{label:n5.currency.name}}},{title:"Regions",items:{CN:{label:n5.CN.name},CA:{label:n5.CA.name},"latin-america":{label:n5["latin-america"].name},Europe:{label:n5.Europe.name},GB:{label:n5.GB.name},Asia:{label:n5.Asia.name},Africa:{label:n5.Africa.name},Middleeast:{label:n5.Middleeast.name},IN:{label:n5.IN.name}}},{title:"Sectors",items:{automotive:{label:n5.automotive.name},"energy-industry":{label:n5["energy-industry"].name},pharmaceutical:{label:n5.pharmaceutical.name},"property-market":{label:n5["property-market"].name},entertainment:{label:n5.entertainment.name},"aerospace-industry":{label:n5["aerospace-industry"].name}}}];var rt=n(74386),rn=n.n(rt);let rr=e=>{let{onClick:t}=e;return(0,o.jsx)(nY.z,{appearance:"outline",size:"small",iconPosition:"right",colorMode:"light",className:rn().hideButton,onClick:t,version:"phoenix",children:(0,o.jsx)(en.KW,{})})},ra=l.forwardRef((e,t)=>{let{onClick:n}=e;return(0,o.jsx)(nY.z,{appearance:"outline",size:"small",iconPosition:"right",colorMode:"dark",onClick:n,ref:t,children:(0,o.jsx)(en.KW,{})})});ra.displayName="ShowButton";var ri=n(30686),rs=n(90354);let ro=(e,t)=>{var n,r;return null===(r=window)||void 0===r?void 0:null===(n=r.dataLayer)||void 0===n?void 0:n.push({event:"lineup_module_click",eventCategory:"topic_module",eventAction:e,eventLabel:t})},rl=(e,t,n)=>{var r,a;return null===(a=window)||void 0===a?void 0:null===(r=a.dataLayer)||void 0===r?void 0:r.push({event:"lineup_module_click",eventCategory:"hp_modules_click",eventAction:e,eventLabel:t,storyIndex:n})};var rc=n(96341),rd=n.n(rc),ru=n(76751),rm=n.n(ru);let rp=e=>{let{headlines:t}=e,{markup:n,web:r}=t;return(null==n?void 0:n.web)?n.web:r},rh=e=>{let{headlines:t}=e,n=rp({headlines:t});return rm()(n.replace(/<[^>]*>?/g,""))},r_=["opinion","view","gadfly","bview"],rg=(e,t)=>!!(t&&r_.includes(t)||e&&r_.includes(e)),rf=e=>{var t,n;let{story:r,index:a,topicName:i}=e,{primarySite:s,franchise:l}=r,c=rg(s,l),d={alt:null===(t=r.image)||void 0===t?void 0:t.description,baseUrl:null===(n=r.image)||void 0===n?void 0:n.baseUrl},u=rh({headlines:r.headlines});return(0,o.jsx)("article",{className:rd().listItem,children:(0,o.jsxs)("a",{href:r.url,title:u,className:(0,y.Sh)([rd().listItemContainer,rd().right]),onClick:()=>{rl("topicModule","[".concat(i,"] ").concat(u),a)},children:[(0,o.jsxs)("div",{className:(0,y.Sh)([rd().mainColumn,c?rd().eyeBrowItem:rd().noEyeBrowItem]),children:[c&&(0,o.jsx)("div",{className:rd().opinionEyebrow,children:"Opinion"}),(0,o.jsx)(ri.xv,{color:"gray-1000",fontSize:16,fontWeight:"medium",lineHeight:120,children:u})]}),(0,o.jsx)("div",{className:rd().rightColumn,children:r.image&&(0,o.jsx)(nw,{image:d,aspectRatio:1.5,desktopMaxWidth:150,mobileMaxWidth:150,isLazy:!1,className:rd().topicItemImage})})]})})},rv=l.forwardRef((e,t)=>{let{onClick:n}=e;return(0,o.jsx)("button",{className:rd().followContainer,onClick:n,ref:t,children:(0,o.jsx)("p",{className:rd().text,children:"Follow"})})});rv.displayName="FollowButton";let rx=e=>{let{stories:t,topic:n,numberOfRows:r,rootRef:a,isSignedIn:i,followTopicCallback:s}=e,{client:c}=(0,p.useRegUIClient)(),d=(0,l.useRef)(null),[u,m]=(0,l.useState)(!1),[h,_]=(0,l.useState)("bottom-start"),g=(0,l.useCallback)(()=>{if(!i){if(ro("open","subscribe_tout"),m(!0),!d.current||!(null==a?void 0:a.current))return;let e=d.current.getBoundingClientRect(),t=null==a?void 0:a.current.getBoundingClientRect();_(e.right>t.right-250?"bottom-end":"bottom-start");return}ro("follow","".concat(n.id,"_storypanel")),s(n.id,!0)},[s,n.id,i]),f=(0,l.useCallback)(()=>{ro("close","subscribe_tout"),m(!1)},[]);return(0,o.jsxs)("div",{className:rd().singleTopicStories,children:[(0,o.jsxs)("div",{className:rd().singleTopicPanelHeader,children:[(0,o.jsx)("div",{className:rd().singleTopicName,children:n5[n.id].name}),!n.isFollowedByUser&&(0,o.jsx)(rv,{onClick:g,ref:d})]}),(0,o.jsx)("div",{className:rd().stories,children:(0,o.jsx)(ri.aV,{children:null==t?void 0:t.filter(Boolean).slice(0,r).map((e,t)=>(0,o.jsx)(ri.aV.Item,{children:(0,o.jsx)(rf,{story:e,index:t,topicName:n.name})},e.id||t))})}),u&&c&&(0,o.jsx)(rs.Y,{anchorElementRef:d,client:c,inSource:"homepage-topic-module",onExit:f,placement:h,children:"Sign in to follow topics and surface the content most relevant to you"})]})},ry=e=>{let{numRows:t,itemIdx:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ri.kC,{gap:16,children:[(0,o.jsx)(ri.xv,{asChild:!0,fontSize:16,lineHeight:120,children:(0,o.jsx)(ri.Od,{className:rd().topicsStoriesTextSkeleton,variant:"line",numRows:3,rowGap:6})}),(0,o.jsx)(ri.Od,{variant:"box",width:100,aspectRatio:"3 / 2"})]}),n{let{numberOfRows:t,length:n}=e;return(0,o.jsx)(ri.kC,{gap:16,children:Array.from({length:n}).map((e,n)=>(0,o.jsx)(ri.kC,{direction:"column",asChild:!0,gap:4,children:(0,o.jsxs)(ri.Zb,{className:rd().topicsStoriesCard,children:[(0,o.jsx)(ri.xv,{asChild:!0,fontSize:18,children:(0,o.jsx)(ri.Od,{variant:"line"})}),Array.from({length:t}).map((e,n)=>(0,o.jsx)(ry,{itemIdx:n,numRows:t},n))]})},n))})});rj.displayName="SingleTopicStoriesLoading";var rk=n(60006),rb=n(67397),rC=n.n(rb);let rw=()=>{},rN=(e,t)=>(0,h.uH)("lineup_module_click",t,e,"topic_module");var rT=e=>{let{description:t,label:n,selected:r,itemGroups:a,onClose:i=rw,onSelect:s=rw,onUnselect:c=rw,isSignedIn:d}=e,u=(0,l.useRef)(null),[m,h]=(0,l.useState)(!1),{client:_}=(0,p.useRegUIClient)(),g=(0,l.useMemo)(()=>Object.keys(r).length,[r]),f=(0,l.useCallback)(()=>{i()},[i]),v=(0,l.useCallback)((e,t)=>{if(!d){h(!0),rN("open","subscribe_tout");return}t?c(e):s(e)},[d,s,c]),x=(0,l.useCallback)(()=>{rN("close","subscribe_tout"),h(!1)},[h]);return(0,o.jsxs)("div",{className:rC().tagPicker,ref:u,children:[(0,o.jsxs)("div",{className:rC().headerContainer,children:[(0,o.jsxs)("div",{className:rC().labelContainer,children:[(0,o.jsx)(en.KW,{className:rC().icon}),(0,o.jsx)("span",{className:rC().label,children:n})]}),(0,o.jsx)(rk.h,{className:rC().exit,onClick:f,Icon:(0,o.jsx)(en.n$,{}),version:"phoenix"})]}),(0,o.jsx)("p",{className:rC().description,children:t}),(0,o.jsx)("div",{className:rC().divider}),a.map((e,t)=>{let{title:n,items:i}=e;return(0,o.jsxs)("div",{className:rC().groupContainer,children:[(0,o.jsx)("p",{className:rC().groupTitle,children:n}),(0,o.jsx)("div",{className:rC().tagContainer,children:Object.entries(i).map(e=>{var t;let[n,{label:a}]=e,i=null!==(t=r[n])&&void 0!==t&&t;return(0,o.jsx)("div",{className:i?void 0:rC().unselectedTag,children:(0,o.jsx)(n7.Sp.w,{onClick:()=>v(n,i),text:a,isSelected:i,isDisabled:!i&&g>=12})},n)})}),t{let{type:t,props:n}=e;switch(t){case rS.LoadingTopicCard:return(0,o.jsx)(rj,{numberOfRows:5,length:1});case rS.TopicCard:return(0,o.jsx)(rx,{rootRef:n.rootRef,topic:n.topic,stories:n.stories,followTopicCallback:n.followTopicCallback,numberOfRows:5,isSignedIn:n.isSignedIn})}return null};var rI=n(10097),rD=n(28876);let rR=e=>{var t,n;return("object"==typeof(null==e?void 0:e.args)&&"string"==typeof(null==e?void 0:null===(t=e.args)||void 0===t?void 0:t.exclude)?null==e?void 0:null===(n=e.args)||void 0===n?void 0:n.exclude:"").split(";").map(e=>e.split("|")[1]).filter(Boolean).join(",")},rP=e=>({id:e,name:"",isFollowedByUser:!0}),rL=(e,t)=>e.map(e=>e.id===t.id?t:e),rA=(e,t)=>[t,...e.filter(e=>e.id!==t.id)].splice(0,12),rE=e=>e.reduce((e,t)=>({...e,[t.id]:!0}),{}),rF=e=>e.filter(e=>e.isFollowedByUser),rB=e=>rE(rF(e)),rV=e=>e.map(e=>{let{name:t,assetID:n}=e;return{id:n,name:t,isFollowedByUser:!1}}),rH=e=>e.filter(e=>n5[e.id]),rW=e=>rH(e.map(e=>{let{resource:t}=e;return{name:t.name,id:t.id,isFollowedByUser:!0}})),rO=e=>{let{limit:t}=e;return rD.Z.getRecommendedTPR({resourceTypes:"topic",limit:t})},rU=()=>rD.Z.getUserTopics(),rz=async e=>e?Array.from([...rH(rV(await rO({limit:50}))),...Object.keys(n5).map(e=>({id:e,name:n5[e].name,isFollowedByUser:!1}))].reduce((e,t)=>e.has(t.id)?e:e.set(t.id,t),new Map).values()).slice(0,e):[],rG=e=>{let{refrenceList:t,listToDedupe:n,key:r="id"}=e,a=new Set(t.map(e=>e[r]));return n.filter(e=>!a.has(e[r]))},rZ=async e=>{let{bconnectId:t}=e,n=[];if(t)try{n=await rU().then(rW)}catch(n){let e=Error("[getTopics] - failed to fetch user topics: ".concat(n));(0,L.H)(e,{bconnectId:t}),rI.Z.error(e)}let r=[];try{r=await rz(Math.max(0,8-n.length))}catch(t){let e=Error("[getTopics] - failed to fetch backfilled topics: ".concat(t));(0,L.H)(e),rI.Z.error(e)}let a=rG({refrenceList:n,listToDedupe:r,key:"id"});return n.concat(a).slice(0,20)};var rY=n(21589),rq=n.n(rY),rK=n(76268);async function rJ(e,t){let n=await fetch("/lineup-next/api/topicsStories?".concat((0,rK.stringifyParams)(e)),{signal:t});if(!n.ok)throw Error("Error when fetching from api/topicStories: ".concat(e));return await n.json()}let rX=e=>{let{bconnectId:t,storyIdsToExclude:n,storyLimit:r=5}=e,[a,i]=(0,l.useState)(!0),[s,o]=(0,l.useState)(),[c,d]=(0,l.useState)(),[u,m]=(0,l.useState)([]),[p,h]=(0,l.useState)({});(0,l.useEffect)(()=>{rZ({bconnectId:t}).then(e=>m(e)).catch(e=>o(e))},[t]);let _=(0,l.useMemo)(()=>u.map(e=>e.id),[u]);return(0,l.useEffect)(()=>{if(!u.length)return;let e=new AbortController;return(async()=>{try{let t=await rJ({topicIds:_,storyLimit:r,storyIdsToExclude:n,dedupeEnabled:!0},e.signal);i(!1),h(t)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name){console.log("Fetch aborted - safe to ignore");return}d(e)}})(),()=>{e.abort()}},[n,_]),{topicsError:s,topicsStoriesError:c,isLoading:a,setTopics:m,topics:u,topicsStories:p}},rQ=()=>{var e,t,n;let r=null!==(n=null===(t=(0,p.useRegUIClient)().session)||void 0===t?void 0:null===(e=t.userInfo)||void 0===e?void 0:e.userId)&&void 0!==n?n:"",a=!!r,i=(0,l.useRef)(null),[s,c]=(0,l.useState)(!0),d=n7.lr.useCarouselPaginationControls(),{setControlledPageIndex:u}=d;(0,l.useEffect)(()=>{let e=n3.Z.get(n6);e&&c("true"===e)},[]);let{topicsError:m,topicsStoriesError:h,isLoading:_,setTopics:g,topics:f,topicsStories:v}=rX({bconnectId:r,storyIdsToExclude:""}),x=(0,l.useCallback)(async(e,t)=>{if((0,L.f)("followTopic",{topicId:e}),r){(0,n4.flushSync)(()=>{g(n=>t?rL(n,rP(e)):rA(n,rP(e)))});try{await rD.Z.followTopic({topicId:e})&&ro("follow","".concat(e,"_topicpanel"))}catch(t){console.warn(t),ro("unsuccessful follow","".concat(e,"_topicpanel")),(0,L.H)(Error("[followTopic] - error following topic"),{bconnectId:r,topicId:e}),(0,n4.flushSync)(()=>g(t=>t.map(t=>t.id===e?{...t,isFollowedByUser:!1}:t)))}}},[r,g]),y=(0,l.useCallback)(async e=>{if((0,L.f)("unFollowTopic",{topicId:e}),r){(0,n4.flushSync)(()=>g(t=>t.filter(t=>t.id!==e)));try{await rD.Z.deleteTopic({topicId:e})&&ro("unfollow","".concat(e,"_topicpanel"))}catch(t){console.warn(t),ro("unsuccessful unfollow","".concat(e,"_topicpanel")),(0,n4.flushSync)(()=>g(t=>rA(t,rP(e))))}}},[r,g]),j=(0,l.useCallback)(()=>{ro("toggle_topic_picker","picker_open"),n3.Z.set(n6,"true",{expires:365}),c(!0)},[c]),k=(0,l.useCallback)(()=>{ro("toggle_topic_picker","picker_close"),n3.Z.set(n6,"false",{expires:365}),u(0),c(!1)},[c]),b=(0,l.useMemo)(()=>f.map(e=>v[e.id]?{type:rS.TopicCard,props:{topic:e,stories:v[e.id],rootRef:i,followTopicCallback:x,isSignedIn:a}}:{type:rS.LoadingTopicCard,props:{}}),[f,v,x,a]),C=(0,l.useMemo)(()=>b,[b]);return(m&&console.warn("[UserTopicsStoriesDesktop] An error occurred fetching topics: ".concat(m)),h&&console.warn("[UserTopicsStoriesDesktop] An error occurred fetching topicsStories: ".concat(h)),_)?(0,o.jsx)("div",{className:rq().loadingContainer,children:(0,o.jsx)(rj,{numberOfRows:5,length:3})}):v&&f?(0,o.jsxs)("div",{className:rq().userTopicsStoriesDesktop,ref:i,style:{"--carousel-card-width":"".concat(312,"px")},children:[(0,o.jsxs)("div",{className:rq().header,children:[(0,o.jsx)("h3",{className:rq().title,children:"Market News"}),s?(0,o.jsx)(rr,{onClick:k}):(0,o.jsx)(ra,{onClick:j})]}),(0,o.jsxs)("div",{className:rq().flexContainer,children:[(0,o.jsx)("div",{className:(0,n2.W)(rq().tagPickerContainer,!s&&rq().pickerClosedPicker),children:(0,o.jsx)(rT,{onUnselect:y,onSelect:x,selected:rB(f),label:"Follow Topics",description:n9,itemGroups:re,isSignedIn:a})}),(0,o.jsx)("div",{className:(0,n2.W)(rq().carouselContainer,!s&&rq().pickerClosedCarousel),children:(0,o.jsx)(n7.lr.WithTracking,{IterableComponent:rM,componentPropsList:C,tileProperties:{gap:12,width:300},trackingId:"[lineup]topic_module",paginationProperties:{fullWidth:!0},...d})})]})]}):null};var r$=n(72202),r0=n.n(r$),r1=n(27606),r8=n(62139),r2=n(70264),r3=n.n(r2);let r4=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,l.useState)(e);return(0,l.useMemo)(()=>({showDrawerTopicsPanel:t,setShowDrawerTopicsPanel:n}),[t,n])},r7=e=>{let{drawerTogglePickerHook:t,topics:n,followTopicCallback:r,unfollowTopicCallback:a,onClose:i,isSignedIn:s}=e,[c,d]=(0,l.useState)(!1),u=(0,l.useCallback)(()=>{t.setShowDrawerTopicsPanel(!1),i()},[t]),m=(0,l.useCallback)(e=>{d(!0),r(e.toString())},[r]),p=(0,l.useCallback)(e=>{d(!0),a(e.toString())},[d,a]);(0,l.useEffect)(()=>{t.showDrawerTopicsPanel||d(!1)},[t]);let h=function(e){let t=(0,l.useRef)(null),n=(0,l.useRef)(e);return(0,l.useLayoutEffect)(()=>{n.current=e},[e]),(0,l.useEffect)(()=>{let e=e=>{if(!t.current||!e.target)return;let r=t.current;r&&!r.contains(e.target)&&n.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),t}(u);return(0,o.jsxs)(r1.d,{open:t.showDrawerTopicsPanel,children:[(0,o.jsx)("div",{className:(0,y.RD)([r3().togglePickerDrawerContainer,{[r3().togglePickerDrawerContainerMaxHeight]:!c}]),ref:h,children:(0,o.jsx)(rT,{onClose:u,onUnselect:p,onSelect:m,selected:rB(n),label:"Follow Topics",description:n9,itemGroups:re,isSignedIn:s})}),c?(0,o.jsx)("div",{className:r3().togglePickerFooter,children:(0,o.jsx)(r8.U,{className:r3().doneButton,colorMode:"dark",size:"default",onClick:u,children:"Done"})}):null]})},r6=e=>{var t,n,r;let{autofillData:a}=e,{client:i}=(0,p.useRegUIClient)(),s=null!==(r=null===(n=(0,p.useRegUIClient)().session)||void 0===n?void 0:null===(t=n.userInfo)||void 0===t?void 0:t.userId)&&void 0!==r?r:"",c=!!s,d=(0,l.useRef)(null),[u,m]=(0,l.useState)(!1),h=r4(),{setShowDrawerTopicsPanel:_,showDrawerTopicsPanel:g}=h;(0,l.useEffect)(()=>{document.body.style.overflowY=g?"hidden":"auto"},[g]);let{topicsError:f,topicsStoriesError:v,isLoading:x,setTopics:y,topics:j,topicsStories:k}=rX({bconnectId:s,storyIdsToExclude:a?rR(a):""}),b=(0,l.useCallback)(async(e,t)=>{if((0,L.f)("followTopic",{topicId:e}),s){(0,n4.flushSync)(()=>{y(n=>t?rL(n,rP(e)):rA(n,rP(e)))});try{await rD.Z.followTopic({topicId:e})&&ro("follow","".concat(e,"_topicpanel"))}catch(t){console.warn(t),ro("unsuccessful follow","".concat(e,"_topicpanel")),(0,L.H)(Error("[followTopic] - error following topic"),{bconnectId:s,topicId:e}),(0,n4.flushSync)(()=>y(t=>t.map(t=>t.id===e?{...t,isFollowedByUser:!1}:t)))}}},[s,y]),C=(0,l.useCallback)(async e=>{if((0,L.f)("unFollowTopic",{topicId:e}),s){(0,n4.flushSync)(()=>y(t=>t.filter(t=>t.id!==e)));try{await rD.Z.deleteTopic({topicId:e})&&ro("unfollow","".concat(e,"_topicpanel"))}catch(t){console.warn(t),ro("unsuccessful unfollow","".concat(e,"_topicpanel")),(0,n4.flushSync)(()=>y(t=>rA(t,rP(e))))}}},[s,y]),w=(0,l.useCallback)(()=>{s?(ro("toggle_topic_picker","picker_open"),_(!0)):m(!0)},[_,s]),N=(0,l.useCallback)(()=>{ro("toggle_topic_picker","picker_close"),_(!1)},[_]),T=(0,l.useCallback)(()=>{ro("toggle_topic_picker","picker_close")},[]),S=(0,l.useCallback)(()=>{m(!1)},[m]),M=(0,l.useMemo)(()=>j.map(e=>k[e.id]?{type:rS.TopicCard,props:{topic:e,stories:k[e.id],followTopicCallback:b,isSignedIn:c}}:{type:rS.LoadingTopicCard,props:{}}),[j,k,b,c]);return(f&&console.error("[UserTopicsStoriesMobile] An error occurred fetching topics: ".concat(f)),v&&console.error("[UserTopicsStoriesMobile] An error occurred fetching topicsStories: ".concat(v)),x)?(0,o.jsx)("div",{className:r0().loadingContainer,children:(0,o.jsx)(rj,{numberOfRows:5,length:2})}):k&&j?(0,o.jsxs)("div",{className:r0().userTopicsStoriesMobile,children:[(0,o.jsxs)("div",{className:r0().header,children:[(0,o.jsx)("h3",{className:r0().title,children:"Market News"}),g?(0,o.jsx)(rr,{onClick:N}):(0,o.jsx)(ra,{onClick:w,ref:d}),u&&(0,o.jsx)(rs.Y,{anchorElementRef:d,client:i,inSource:"homepage-topic-module",onExit:S,children:"Sign in to follow topics and surface the content most relevant to you"})]}),(0,o.jsx)("div",{className:r0().mobileCarouselContainer,children:(0,o.jsx)(n7.lr.WithTracking,{IterableComponent:rM,componentPropsList:M,tileProperties:{gap:12,width:300},trackingId:"[lineup]topic_module",disableMouseDragScroll:!0})}),(0,o.jsx)(r7,{drawerTogglePickerHook:h,topics:j,unfollowTopicCallback:C,followTopicCallback:b,onClose:T,isSignedIn:c})]}):null};function r9(){let{breakpoints:{smallDesktop:e,largeDesktop:t}}=(0,l.useContext)(ez.sG);return(0,o.jsx)("div",{className:n8().UserModulesTopicStories,children:(0,o.jsx)("div",{className:n8().topicStoriesContainer,children:e||t?(0,o.jsx)(rQ,{}):(0,o.jsx)(r6,{})})})}var r5=n(72314),ae=n.n(r5);let at=new Set(["currencies","rates-bonds"]);function an(e){let{sectionTab:t,isFirstSection:n}=e,r=(0,l.useCallback)(()=>{(0,h.uH)(t.identifier.toLocaleLowerCase().replace(/\s/g,"_")),(0,L.f)("mktDataPageNavClick",{pageName:t.identifier})},[t.identifier]);return(0,o.jsx)("li",{className:(0,y.RD)(t.hrefPath&&ae().link,n||at.has(t.identifier)?ae().firstLink:null),children:(0,o.jsx)(w(),{href:t.hrefPath,onClick:r,children:(0,o.jsx)(A.oZ,{value:t.title})},t.identifier||t.hrefPath)},t.identifier)}function ar(e){let{sectionFrontName:t,sectionTitle:n,activeTab:r,headerTabs:a}=e;return(0,o.jsxs)("div",{className:ae().sectionFrontNav,children:[(0,o.jsx)("h1",{className:(0,y.RD)([g().articleHeadlineXxl,ae().sectionTitle]),children:(0,o.jsx)(A.oZ,{value:n})}),(0,o.jsx)("hr",{className:ae().separator}),(null==a?void 0:a.length)>0&&(0,o.jsx)("ul",{className:(0,y.RD)([ae().links,g().coreShortTextSm]),children:a.map((e,n)=>r!==e.identifier?(0,o.jsx)(an,{sectionTab:e,sectionFrontName:t,isFirstSection:0===n},e.identifier||e.hrefPath):null)}),(0,o.jsx)(X,{sectionFrontName:t,selectedTab:r,variant:"top"})]})}var aa=n(11465),ai=n(20703),as=n.n(ai),ao=n(36251),al=n(70962),ac=n.n(al),ad=n(94950),au=n.n(ad);let am=()=>(0,o.jsx)("div",{className:au().comparisonChartPlaceholder,children:(0,o.jsx)(er.V.Line,{})}),ap=e=>{let{rows:t=0}=e;return(0,o.jsx)("div",{className:au().legendsPlaceholder,children:Array.from({length:t}).map((e,t)=>(0,o.jsx)(er.V.Line,{},"legend-".concat(t)))})},ah="Asia/Tokyo",a_=new Intl.DateTimeFormat(es.go.Ja,{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:ah}),ag=new Intl.DateTimeFormat(es.go.Ja,{month:"short",day:"2-digit",timeZone:ah}),af=new Intl.DateTimeFormat(es.go.Ja,{year:"numeric",month:"short",day:"2-digit",timeZone:ah});function av(e){let{isLoading:t=!1,isError:n=!1,refetchData:r,tickerChartData:a,selectedTab:i,tickersArr:s,tickerLegends:c,handleTickerRemoval:d,handleTickerSelectionChange:u}=e,[m,p]=(0,l.useState)(void 0),{locale:h}=(0,eo.b)(),_=(0,tf.r)(),{chartWidth:g,legendPlaceholderRows:f}=(0,l.useMemo)(()=>({chartWidth:_?353:618,legendPlaceholderRows:_?s.length:1}),[_,s]),v=1===a.length,x=(0,l.useMemo)(()=>"5Y"===i?"month":"1D"===i?"hour":"day",[i]),y=(0,l.useMemo)(()=>1===a.length?[{...a[0],color:"black"}]:a,[a]),j=(0,l.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(h===es.go.Ja&&n){let n;switch(t){case"hour":n=a_.format(new Date(e));break;case"month":n=af.format(new Date(e));break;default:n=ag.format(new Date(e))}return n}return(0,ao.CX)(e,t,n)},[h]);return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(am,{}),(0,o.jsx)(ap,{rows:f})]}):n?((0,L.H)(Error("CompareBenchmarks fetch error"),{selectedTimeFrame:i,tickers:s.join(",")}),(0,o.jsx)(e6,{errorMessage:"There was an error loading market data.",placeholder:(0,o.jsx)(am,{}),onRetryClick:r})):(0,o.jsxs)("div",{children:[(0,o.jsx)(tQ.U,{tickerSnapshots:y,renderMode:v?"price":"percentage",showGradient:v,pricePrecision:2,enableDragInteraction:!1,xAxisInterval:x,xAxisTickSize:4,yAxisTickSize:4,handleChartHoverInteraction:p,width:g,height:220,formatXAxisLabel:j}),(0,o.jsx)(t$.Z,{className:ac().tickerChartLegend,allowFirstTickerRemoval:!0,enableTickerRemoval:!0,hoveredDataPoint:m,tickerLegendData:c,handleTickerSelectionChange:u,handleTickerRemoval:d})]})}var ax=n(19381),ay=n.n(ax),aj=n(84034);function ak(e){let{disabled:t,onAddTicker:n}=e,{countryCode:r,searchClientURL:a}=(0,x.V)(),i=(0,O.Q)(),s={addComparison:i({id:"addAComparison",defaultMessage:"Add a comparison"}),deleteComparison:i({id:"deleteOneAddComparison",defaultMessage:"Delete one to add a new comparison"})};return(0,o.jsx)("div",{className:ay().searchDropdownContainer,children:(0,o.jsx)(aj.Z,{disabled:t,countryCode:r,searchURL:a,onChange:n,className:g().coreParagraphSm,placeholder:t?s.deleteComparison:s.addComparison})})}var ab=n(29007),aC=n.n(ab);let aw={"1M":"1m","6M":"6m",YTD:"ytd","1Y":"1y","5Y":"5y"};function aN(e){let{selected:t,onChange:n}=e,r=(0,O.Q)(),a=(0,l.useMemo)(()=>eI.V$.map(e=>{var t;let n=r({id:null!==(t=aw[e])&&void 0!==t?t:"",defaultMessage:e});return{type:e,text:n}}),[r]);return(0,o.jsx)(tn.mQ,{className:aC().tabs,size:"small",variant:"gliding",onTabSwitch:n,width:"calc(".concat(100,"% / ").concat(5,")"),children:a.map(e=>{let{type:n,text:r}=e;return(0,o.jsx)(tn.OK,{title:r,isActive:t===n,children:(0,o.jsx)(o.Fragment,{})},n)})})}var aT=n(92138);let aS=e=>e.map((e,t)=>{var n;let{id:r,series:a}=e;return{id:r,priceMovements:null!==(n=a.map(e=>{let{date:t,value:n}=e;return{dateTime:t,value:n}}))&&void 0!==n?n:[],color:(0,t0.Dv)(t)}}),aM=(e,t)=>{let n=e.sort().join(",");return(0,eL.a)({queryKey:["benchmark-comparisons",n,t],queryFn:()=>{var n;return null!==(n=(0,aT.D)(e,t))&&void 0!==n?n:[]},enabled:e.length>0,staleTime:eI.ap,refetchInterval:eI.ap,select:e=>aS(e)})},aI={0:"1M",1:"6M",2:"YTD",3:"1Y",4:"5Y"};function aD(e){let{defaultTickers:t=[]}=e,[n,r]=(0,aa._)("compareBenchmarkChartTabs","1M"),[a,i]=(0,l.useState)(t.reduce((e,t)=>({...e,[t]:!0}),{})),s=(0,l.useMemo)(()=>Object.keys(a),[a]),{data:c=[],status:d,refetch:u}=aM(s,n),{tickerChartData:m,tickerLegends:p}=(0,l.useMemo)(()=>({tickerChartData:c.filter(e=>a[e.id]),tickerLegends:c.map((e,t)=>({id:e.id,name:e.id,color:(0,t0.Dv)(t),checked:!!a[e.id]}))}),[c,a]),_=(0,l.useCallback)((e,t)=>{if(void 0===t)return;let n=aI[t];r(n),(0,L.f)("benchmarkComparisonTimeRangeChange",{timeRange:n})},[r]),f=(0,l.useCallback)((e,t)=>{if(!(null==e?void 0:e.value))return;let n=e.value;(0,h.uH)("quote_add_compare","add-compare-from-db","click","Compare to Benchmarks Module"),(0,h.uH)("quote_add_compared_security",n,"click","Compare to Benchmarks Module"),i(e=>({...e,[n]:!0})),t.setState({inputValue:"",selectedItem:{subText:"",value:"",optionId:""}}),(0,L.f)("benchmarkComparisonAddTicker",{ticker:n})},[i]),v=(0,l.useCallback)((e,t)=>{t?(0,h.uH)("quote_add_compare","add-compare","click","Compare to Benchmarks Module"):(0,h.uH)("quote_remove_compare","remove-compare","click","Compare to Benchmarks Module"),i(n=>({...n,[e]:t}))},[i]),x=(0,l.useCallback)(e=>{(0,h.uH)("quote_remove_compare","remove-compare-from-db","click","Compare to Benchmarks Module"),i(t=>{let{[e]:n,...r}=t;return r}),(0,L.f)("benchmarkComparisonRemoveTicker",{ticker:e})},[i]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,y.RD)([as().sectionTitle,g().coreHeadlineSm]),children:(0,o.jsx)(O.jU,{id:"compareToBenchmarks",defaultMessage:"Compare to Benchmarks"})}),(0,o.jsxs)("div",{className:as().chartContainer,children:[(0,o.jsxs)("div",{className:as().chartControls,children:[(0,o.jsx)(ak,{disabled:s.length>=5,onAddTicker:f}),(0,o.jsx)(aN,{selected:n,onChange:_})]}),(0,o.jsx)(av,{tickerChartData:m,selectedTab:n,isLoading:"pending"===d,isError:"error"===d,refetchData:u,tickerLegends:p,tickersArr:s,handleTickerSelectionChange:v,handleTickerRemoval:x})]})]})}var aR=n(16147),aP=n.n(aR);let aL={stocks:"Stocks",currencies:"Currencies","fx-fixings":"Currencies","cross-rates":"Currencies","rates-bonds":"Bonds","consumer-interest-rates":"Bonds",commodities:"Commodities",energy:"Commodities",regions:"Stocks"},aA=/
  • (.*?)<\/li>/g,aE=async e=>{let t=await fetch("/bazaar/api/markets-wrap/markets-wrap-news");if(!t.ok)return console.error("Failed to fetch Markets Wrap news:",t.status),null;let n=await t.json(),r=function(e,t){let n;let r=function(e){let t=aL[e];return t?new RegExp("

    ".concat(t,"<\\/h3>\\s*
      ([\\s\\S]*?)<\\/ul>")):((0,L.H)(Error("Market Summaries Error: Could not find section identifier"),{sectionIdentifier:e}),null)}(t);if(!r)return[];let a=e.match(r);if(!a||a.length<2)return[];let i=a[1],s=[];for(;null!==(n=aA.exec(i));){let e=(function(e){let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""})(n[1]).trim();s.push(e)}return s}(n.body.text,e);return{...n,updatedAt:new Date(n.updatedAt),mainMoves:r}};var aF=n(64339);let aB=()=>(0,o.jsxs)("section",{className:aP().marketSummaries,children:[(0,o.jsx)("div",{className:aP().sectionTitle,children:"Market Summaries"}),(0,o.jsxs)("div",{className:aP().container,children:[(0,o.jsxs)("div",{className:aP().headerContainer,children:[(0,o.jsx)(er.V.Image,{className:aP().headerImage}),(0,o.jsxs)("div",{className:aP().headerTitle,children:[(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{}),(0,o.jsx)(er.V.Line,{})]})]})]}),aV="".concat("https://".concat("assets.bwbx.io","/s3/bazaar/images"),"/market_summary.png");function aH(e){let{sectionFrontName:t}=e,{data:n,status:r,refetch:a}=(0,eL.a)({queryKey:["marketsWrapNews",t],queryFn:()=>aE(t),staleTime:eI.ap}),i=(0,O.Q)(),s=(0,l.useMemo)(()=>{if(!n)return;let{headline:e,mainMoves:t,thumbnail:r,updatedAt:a,url:i}=n;return{articleUpdatedTime:a?(0,aF.ni)(a):"",headline:e,imageProps:{baseUrl:(null==r?void 0:r.baseUrl)||aV},mainMoves:t,url:i}},[n]),c=(0,l.useCallback)(()=>{(0,h.uH)("Market_Data","market_summaries","click","Market Data"),(0,L.f)("marketSummariesClick")},[]);if("pending"===r)return(0,o.jsx)(aB,{});if("error"===r||!s)return(0,L.H)(Error("Market Summaries Fetch Error")),(0,o.jsx)("div",{className:aP().newsletter,children:(0,o.jsx)(e6,{errorMessage:i({id:"errMarketSummaries",defaultMessage:"There was an error loading Market Summaries."}),placeholder:(0,o.jsx)(aB,{}),onRetryClick:()=>a({throwOnError:!0})})});let{articleUpdatedTime:d,headline:u,imageProps:m,mainMoves:p,url:_}=s;return(0,o.jsxs)("section",{className:aP().marketSummaries,children:[(0,o.jsx)("div",{className:aP().sectionTitle,children:"Market Summaries"}),(0,o.jsxs)("div",{className:aP().container,children:[(0,o.jsxs)("div",{className:aP().headerContainer,children:[(0,o.jsx)(W.r,{href:_,onClick:c,target:"_blank",className:aP().headerImage,children:(0,o.jsx)(nw,{image:m,desktopMaxWidth:72,mobileMaxWidth:72,aspectRatio:1})}),(0,o.jsxs)("div",{className:aP().headerTitle,children:[(0,o.jsxs)("div",{className:aP().title,children:[(0,o.jsx)("span",{children:"Markets Wrap"}),(0,o.jsx)("span",{children:"|"}),(0,o.jsx)("span",{children:d})]}),(0,o.jsx)(W.r,{href:_,onClick:c,target:"_blank",unstyled:!0,children:(0,o.jsx)("div",{className:aP().subTitle,children:u})})]})]}),(0,o.jsx)("div",{className:aP().marketMovesContainer,children:(null==p?void 0:p.length)>0&&(0,o.jsx)("ul",{className:aP().summaryList,children:p.map((e,t)=>(0,o.jsx)("li",{className:aP().summaryItem,children:(0,o.jsx)(W.r,{href:_,target:"_blank",unstyled:!0,onClick:c,children:e})},t))})})]})]})}var aW=n(80505),aO=n(18722),aU=n(16018);function az(e){let{topRail:t,leftRail:n,children:r,className:a}=e;return(0,o.jsxs)(aW.t,{className:a,children:[t&&(0,o.jsx)(aO.b,{variant:"full",children:(0,o.jsx)(aU.Y,{variant:"full",children:t})}),(0,o.jsxs)(aO.b,{variant:"lefty",children:[(0,o.jsx)(aU.Y,{variant:"left",children:n}),(0,o.jsx)(aU.Y,{variant:"right",children:r})]})]})}let aG=()=>{let{breakpoints:{tablet:e,smallDesktop:t,largeDesktop:n}}=(0,l.useContext)(ez.sG),r=(0,l.useMemo)(()=>!e&&!t&&!n,[n,t,e]);return(0,o.jsxs)("div",{className:n8().UserModulesTopicStories,children:[(0,o.jsx)("div",{className:n8().header,children:(0,o.jsx)("h3",{className:n8().title,children:"Market News"})}),(0,o.jsx)("div",{className:n8().topicStoriesContainer,children:r?(0,o.jsx)("div",{className:n8().loadingContainer,children:(0,o.jsx)(rj,{numberOfRows:5,length:2})}):(0,o.jsx)("div",{className:n8().loadingContainer,children:(0,o.jsx)(rj,{numberOfRows:5,length:3})})})]})};var aZ=n(97868),aY=n.n(aZ);let aq=e=>{let{toutContent:t,href:n,onClick:r,buttonText:a=null}=e,i=(0,O.Q)(),s=null!=a?a:i({id:"surveyMsgButton",defaultMessage:"Take Survey"});return(0,o.jsxs)("div",{className:aY().toutContainer,children:[(0,o.jsx)("div",{className:aY().toutContent,children:t}),(0,o.jsx)("a",{href:n,target:"_blank",rel:"noreferrer",children:(0,o.jsx)(nq.I,{withIcon:!1,onToggle:r,inactiveText:s,activeText:s,active:!1})})]})},aK=new Set(["consumer-interest-rates","cross-rates","fx-fixings","bloomberg-fixed-income-indices"]),aJ=new Set(["rates-bonds"]),aX=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:g().coreHeadlineSm,children:(0,o.jsx)(O.jU,{id:"surveyMsgHeader",defaultMessage:"We’re testing something new."})}),(0,o.jsx)("p",{className:g().coreShortTextMd,children:(0,o.jsx)(O.jU,{id:"surveyMsgBody",defaultMessage:"Share your thoughts with us."})})]}),aQ=()=>{(0,h.uH)("survey","survey_market_data_page","click","engagement")};function a$(){return(0,o.jsxs)("div",{className:v().terminalToutContainer,children:[(0,o.jsx)(m.O,{className:v().terminalTout}),(0,o.jsx)(m.O,{className:v().mobileTerminalTout,centerAligned:!0})]})}function a0(e){var t,n;let{sectionFrontName:r,countryCode:a,isJapanese:i}=e,{session:s}=(0,p.useRegUIClient)(),l=null!==(n=null==s?void 0:null===(t=s.userInfo)||void 0===t?void 0:t.userId)&&void 0!==n?n:"";return(0,o.jsxs)("div",{className:v().stickyEnabled,children:[(0,o.jsx)(tk.j,{children:(0,o.jsx)(aD,{defaultTickers:eI.jU})}),(0,o.jsx)(tk.j,{children:(0,o.jsx)(a$,{})}),(0,o.jsx)(tk.j,{children:(0,o.jsx)(d.q,{flexSizeAllowed:!0})}),!i&&(0,o.jsx)(tk.j,{children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(aB,{}),children:(0,o.jsx)(aH,{sectionFrontName:r})})}),!i&&(0,o.jsx)(tk.j,{children:(0,o.jsx)(aq,{toutContent:(0,o.jsx)(aX,{}),href:"https://bmedia.iad1.qualtrics.com/jfe/form/SV_4UEuJ1Zl43gyt02?bconnectId=".concat(l),onClick:aQ})}),!i&&(0,o.jsx)(tk.j,{children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(nA,{}),children:(0,o.jsx)(n0,{id:"markets-daily",countryCode:a,embedUrl:"markets-daily"})})})]})}function a1(e){var t,n;let{sectionFrontName:r,countryCode:a,isJapanese:i}=e,{session:s}=(0,p.useRegUIClient)(),l=null!==(n=null==s?void 0:null===(t=s.userInfo)||void 0===t?void 0:t.userId)&&void 0!==n?n:"";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tk.j,{children:(0,o.jsx)(aD,{defaultTickers:eI.jU})}),(0,o.jsx)(tk.j,{children:(0,o.jsx)(a$,{})}),(0,o.jsx)(tk.j,{children:(0,o.jsx)(u.x,{positionIncrement:2})}),!i&&(0,o.jsx)(tk.j,{children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(aB,{}),children:(0,o.jsx)(aH,{sectionFrontName:r})})}),(0,o.jsx)(tk.j,{children:(0,o.jsx)(aq,{toutContent:(0,o.jsx)(aX,{}),href:"https://bmedia.iad1.qualtrics.com/jfe/form/SV_4UEuJ1Zl43gyt02?bconnectId=".concat(l),onClick:aQ})}),!i&&(0,o.jsx)(tk.j,{children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(nA,{}),children:(0,o.jsx)(n0,{id:"markets-daily",countryCode:a,embedUrl:"markets-daily"})})})]})}function a8(e){let{sectionTitle:t,sectionFrontPage:n}=e,{sectionFrontTab:r,headerTabs:a}=n,{searchClientURL:i="",countryCode:s}=(0,x.V)(),l=(0,tf.r)(),{isJapanese:c}=(0,eo.b)(),d=!aK.has(r.identifier)&&!aJ.has(n.sectionFrontName),u=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ar,{sectionTitle:n.sectionFrontTab.subsectionTitle,activeTab:r.identifier,headerTabs:a,sectionFrontName:n.sectionFrontName}),d&&(0,o.jsx)(tx,{sectionFrontTab:r,sectionFrontName:n.sectionFrontName})]}),m=l&&(0,o.jsx)(a0,{sectionFrontName:n.sectionFrontName,sectionTitle:t,subsectionTitle:n.sectionFrontTab.subsectionTitle,countryCode:s,searchClientURL:i,activeTab:r.identifier,isJapanese:c});return(0,o.jsxs)(az,{className:v().gridLayoutContainer,topRail:u,leftRail:m,children:[(0,o.jsx)(tk.j,{children:(0,o.jsx)(eW,{sectionFrontPage:n})}),!c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(no,{}),(0,o.jsx)(tk.j,{className:v().topicModule,children:(0,o.jsx)(ns,{placeholder:(0,o.jsx)(aG,{}),onEnterDelay:0,children:(0,o.jsx)(r9,{})})})]}),!l&&(0,o.jsx)(a1,{sectionFrontName:n.sectionFrontName,sectionTitle:t,subsectionTitle:n.sectionFrontTab.subsectionTitle,countryCode:s,searchClientURL:i,activeTab:r.identifier,isJapanese:c})]})}var a2=n(52095),a3=!0;function a4(e){let{sectionFront:t}=e,n={...e,fortressOptions:{},analytics:t.sectionFrontTab.analytics,metadata:t.sectionFrontTab.metadata,disablePaywall:!0};return(0,o.jsx)(a2.F,{...n,children:(0,o.jsx)(t4.Qt,{children:(0,o.jsx)(c.j$,{watchlistServiceUrl:"".concat("https://login.bloomberg.com","/watchlist-service"),children:(0,o.jsx)(a8,{sectionTitle:"Markets",sectionFrontPage:t})})})})}},80505:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(65877),s=n.n(i);let o=e=>{let{children:t,className:n,variant:i="lines"}=e,o=(0,a.RD)([s().gridLayout,n,{[s().noLines]:"no-lines"===i}]);return(0,r.jsx)("section",{className:o,"data-variant":i,children:t})}},16018:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(6942),s=n.n(i);let o=e=>{let{columnId:t="zone_column",fillEmptySpace:n=!1,variant:i,className:o,children:l}=e,c=(0,a.RD)([s().zoneColumn,o,{[s().fillEmptySpace]:n}]);return(0,r.jsx)("section",{"data-column-id":t,"data-column-variant":i,"data-component":"zone-column",className:c,children:l})}},18722:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(59998),s=n.n(i);let o=e=>{let{zoneId:t="zone_container",variant:n,className:i,children:o}=e,l=(0,a.RD)([s().zone,i]);return(0,r.jsx)("section",{"data-zone-id":t,"data-zone-variant":n,"data-component":"zone",className:l,children:o})}},76813:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(60467),s=n.n(i);let o=e=>{let{moduleId:t="zone_module",className:n,children:i}=e,o=(0,a.RD)([s().zoneModule,n]);return(0,r.jsx)("div",{"data-column-id":t,"data-component":"zone-module",className:o,children:i})}},72016:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(85893),a=n(67294),i=n(53867),s=n(77536),o=n(8468),l=n.n(o),c=a.memo(function(e){let{tile:t,onClick:n,handleMouseMove:i,handleMouseLeave:o,enableTileFocusEvents:c,activeTileLabel:d}=e,{tileContent:u,tileSecurity:m,tileSeverity:p,tileStyle:h,tileTrend:_,tileType:g}=(0,a.useMemo)(()=>{let{data:e,x:n,y:r,width:a,height:i}=t,{label:s,trend:o,severity:l,content:c}=e,[d,u]=null==s?void 0:s.split(":");return{tileContent:c,tileSecurity:d,tileSeverity:l,tileStyle:{width:a,height:i,top:"".concat(r,"px"),left:"".concat(n>0?n:0,"px"),right:"".concat(n<0?Math.abs(n):0,"px")},tileTrend:o,tileType:u}},[t]),f=(0,a.useMemo)(()=>({onMouseMove:e=>i(e,t),onMouseLeave:e=>o(e,t)}),[i,o,t]),v=(0,s.Sh)([l().tile,l()[_],l()[p],{[l().focusable]:c,[l().active]:d===t.data.label}]);return(0,r.jsxs)("div",{className:v,onClick:()=>null==n?void 0:n(t),style:h,...c&&f,children:[(0,r.jsxs)("div",{className:l().title,children:[m,(0,r.jsxs)("span",{className:l().tickerType,children:[":",g]})]}),u]})});let d=(e,t)=>{let n=e.length;if(0===n)throw Error("Inpupt ".concat(e," is an empty array"));{let r=1/0,a=-1/0,i=0;for(let t=0;ta&&(a=n),i+=n}return Math.max(t**2*a/i**2,i**2/(t**2*r))}},u=(e,t,n)=>{if(0===e.length)return!0;let r=e.concat(t);return d(e,n)>=d(r,n)},m=(e,t)=>{let n;let r=e.length,a=0;for(let t=0;t{let t=e.xOffset,n=e.yOffset;return{x0:t,y0:n,x1:t+e.width,y1:n+e.height}},h=e=>{let{x0:t,y0:n,x1:r,y1:a}=e;return{xOffset:t,yOffset:n,width:r-t,height:a-n}},_=e=>{let{width:t,height:n}=h(e);return Math.min(t,n)},g=(e,t)=>{let{width:n,height:r,xOffset:a,yOffset:i}=h(t),s=e.length,o=0;for(let t=0;t=r){for(let t=0;t{let{width:n,height:r,xOffset:a,yOffset:i}=h(e);if(n>=r){let e=t/r;return p({xOffset:a+e,yOffset:i,width:n-e,height:r})}let s=t/n;return p({xOffset:a,yOffset:i+s,width:n,height:r-s})},v=(e,t,n,r)=>{let a=e,i=t,s=n,o=r;for(;;){let e=a.length;if(0===e){let e=g(i,s);return o.concat(e)}let t=_(s),n=a[0],r=a.slice(1,e);if(u(i,n,t)){let e=i.concat(n);a=r,i=e}else{let e=i.length,t=0;for(let n=0;n(e.x1-e.x0)*(e.y1-e.y0),y=e=>{if(void 0===e.children)return[e];let t=v(m(e.children,x(e)),[],e,[]),n=t.length,r=[];for(let e=0;e{let{x:n,y:r}=e,a=n-t.left>t.right-n?"right":"left",i=r-t.top>t.bottom-r?"bottom":"top",s={transform:"translate3d(0, 0, 0)",maxWidth:200,maxHeight:150};if("left"===a?s.left=n-t.left+5:s.right=t.right-n+5,"top"===i){let e=r-t.top+5;s.top=e+150>t.height?t.height-150:e}else{let e=t.bottom-r+5;s.bottom=e+150>t.height?0:e}return s};function k(e){let{width:t,height:n,tilesData:s,activeTileLabel:o,enableTileFocusEvents:d=!1,onTileClick:u,onTileFocus:m,onTileBlur:p,renderHoverContent:h}=e,_=(0,a.useRef)(null),g=(0,a.useRef)(null),[f,v]=(0,a.useState)({}),[x,k]=(0,a.useState)(null),b=(0,a.useMemo)(()=>s.length?(function(e,t){let n=t.x0,r=t.y0,a=t.x1;return y({x0:n,y0:r,x1:a,y1:t.y1,children:e.map(e=>({value:e.size,tileData:e}))}).map(e=>({x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,data:e.tileData}))})(s,{x0:0,y0:0,x1:t,y1:n}).filter(e=>0!==e.width&&0!==e.height):[],[t,n,s]),C=(0,a.useRef)(h);C.current=h;let w=(0,a.useRef)(m);w.current=m;let N=(0,a.useCallback)((e,t)=>{var n;if(_.current){if(C.current){k(C.current(t));let n=_.current.getBoundingClientRect();v(j({x:e.clientX,y:e.clientY},n))}null===(n=w.current)||void 0===n||n.call(w,t)}},[]),T=(0,a.useCallback)((e,t)=>{(0,i.uH)("chartHover","hover_heatmap","uiaction","Market Data"),(0,i.uH)("chartHover",t.data.label,"uiaction","Market Data"),null==p||p(t),k(null),v({})},[p]);return b.length?(0,r.jsxs)("div",{ref:_,className:l().heatmap,style:{width:t,height:n},children:[x&&(0,r.jsx)("div",{ref:g,className:l().tileHover,style:f,children:x}),b.map((e,t)=>(0,r.jsx)(c,{tile:e,onClick:u,activeTileLabel:o,enableTileFocusEvents:d,handleMouseLeave:T,handleMouseMove:N},t))]}):null}},15509:function(e,t,n){"use strict";n.d(t,{ik:function(){return i},xr:function(){return s}});let r=["low","medium","high"],a=(e,t,n)=>{let a=Math.min(3,r.length),i=(n-t)/a;if(e>=n)return r[a-1];for(let n=1;ne>0?"positive":e<0?"negative":"neutral",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return 0===e?"neutral":a(Math.abs(e),0,t)}},13519:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(85893);function a(e){return(0,r.jsx)("tbody",{className:e.className,children:e.children})}n(67294)},11529:function(e,t,n){"use strict";var r=n(85893),a=n(67294),i=n(77536),s=n(18868),o=n.n(s);t.Z=(0,a.memo)(function(e){let{column:t,className:n,rowData:s}=e,l=t.renderer?t.renderer(s,t):function(e,t){let n=e[t];return"string"==typeof n||"number"==typeof n||a.isValidElement(n)?n:Array.isArray(n)?n.join(", "):"object"==typeof n&&null!==n?JSON.stringify(n):void 0===n?"N/A":null}(s,t.key);return(0,r.jsx)("td",{className:(0,i.Sh)([o().tableCell,t.className,n,"start"===t.align&&o().start,"end"===t.align&&o().end]),children:(0,r.jsx)("span",{className:(0,i.Sh)(["start"===t.align&&o().cellStart,"end"===t.align&&o().cellEnd]),children:l})})})},8985:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),a=n(67294),i=n(77536),s=n(25916),o=n.n(s);function l(e){let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,children:(0,r.jsx)("path",{d:"M12 15.0004L7 10.0254H17L12 15.0004Z",fill:"currentColor"})})}function c(e){let t,n;let{column:s,className:c,sortState:d=null,onSort:u}=e,{align:m="start",allowSorting:p,hidden:h=!1}=s,_=(0,i.RD)([o().column,c,{[o().hiddenColumn]:h,[o().start]:"start"===m,[o().end]:"end"===m,[o().noSort]:!p}]),g=(0,r.jsx)("th",{className:_,scope:"col","aria-sort":"none",children:e.children});switch(d){case"asc":t="ascending";break;case"desc":t="descending";break;default:t="none"}switch(d){case"asc":n=o().sortAsc;break;case"desc":n=o().sortDesc;break;default:n=o().sortNeutral}let f=(0,a.useCallback)(e=>{(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),null==u||u())},[u]);return p&&u?(0,r.jsx)("th",{className:_,scope:"col","aria-sort":t,children:(0,r.jsxs)("button",{type:"button",onClick:u,onKeyDown:f,className:(0,i.RD)([o().sortableColumn,"end"===m&&o().sortableColumnEnd]),children:[(0,r.jsx)("span",{children:e.children}),(0,r.jsx)("span",{className:"sr-only",children:d?", sorted ".concat(t):", not sorted"}),(0,r.jsx)(l,{className:n,"aria-hidden":"true"})]})}):g}},69298:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(72651),s=n.n(i);function o(e){return(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{className:(0,a.RD)(s().tableHeader,e.className),children:e.children})})}},30939:function(e,t,n){"use strict";var r=n(85893),a=n(67294),i=n(77536),s=n(14855),o=n.n(s);t.Z=(0,a.memo)(function(e){return(0,r.jsx)("tr",{className:(0,i.RD)(o().tableRow,e.className),children:e.children})})},34093:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);n(67294);var a=n(77536),i=n(1493),s=n.n(i);function o(e){let{children:t,className:n}=e,i=(0,a.RD)([s().tableWrapper,n]);return(0,r.jsx)("section",{className:i,children:(0,r.jsx)("table",{className:s().tableComponent,children:t})})}},7160:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(85893),a=n(67294),i=n(35436),s=n(60006),o=n(77536),l=n(70390),c=n(22029),d=n.n(c),u=n(99637);function m(e){let{tickerLegend:t,tickerValue:n,valuePostfix:o,enableTickerRemoval:c,handleTickerRemoval:m,handleTickerSelectionChange:p}=e,h=(0,a.useCallback)(e=>{null==p||p(t.id,e.currentTarget.checked)},[p,t.id]),_=(0,a.useCallback)(()=>{null==m||m(t.id)},[m,t.id]);return(0,r.jsxs)("div",{className:d().interactiveTickerPill,title:t.name,children:[(0,r.jsx)(i.X,{name:String(t.id),className:d().tickerPillCheckbox,label:t.name,onChange:h,checked:t.checked,disabled:t.disabled,inputProps:{style:{backgroundColor:t.color,borderColor:t.color}}}),(0,r.jsxs)("div",{className:d().changeWrapper,children:[(0,r.jsxs)("span",{className:d().changeValue,children:[(0,u.ez)(n),o]}),c&&(0,r.jsx)(s.h,{type:"button",size:"tiny",onClick:_,disabled:!m,children:(0,r.jsx)(l.h6,{title:m?"Remove":""})})]})]})}function p(e){let{className:t,tickerLegendData:n,hoveredDataPoint:a,handleTickerSelectionChange:i,handleTickerRemoval:s,enableTickerRemoval:l=!1,allowFirstTickerRemoval:c=!1,applyInteractiveStyles:u=!1}=e,p=n.filter(e=>e.checked).length>1?"%":"",h=e=>!(n.length<=1)&&(c||0!==e);return(0,r.jsx)("div",{className:(0,o.RD)([t,d().tickerChartLegendContainer,{[d().interactive]:u}]),children:null==n?void 0:n.map((e,t)=>(0,r.jsx)(m,{tickerLegend:e,tickerValue:(null==a?void 0:a[e.id])||0,valuePostfix:p,enableTickerRemoval:l,handleTickerSelectionChange:i,handleTickerRemoval:h(t)?s:void 0},e.id))})}},74773:function(e,t,n){"use strict";n.d(t,{$l:function(){return h},Dv:function(){return c},Jx:function(){return u},_V:function(){return p},iP:function(){return l},o:function(){return m}});var r=n(82724),a=n(61362);let{preset:i}=n(64711),s=i.theme.extend.colors,o=["#000",s["chart-blue"],s["chart-orange"],s["chart-purple"],s["chart-sky-blue"],s["chart-red"],s["chart-mustard"],s["chart-pink"],s["chart-green"],s["chart-brown"]],l=["INDU:IND","SPX:IND","CCMP:IND","B500:IND"],c=e=>e>=o.length?s[0]:o[e];async function d(e,t,n,a,i){let s=(0,r.Z)({watchlistId:e.watchlistId,chartType:t}),o="/bazaar/api/watchlist/comparisonChart".concat(decodeURIComponent(s)),l=await fetch(o,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({watchlist:e,chartType:t,compareWatchlists:n,compareTickers:a,isPerformanceChart:i})});return l.ok?l.json():null}function u(e){return(null==e?void 0:e.filter(e=>{var t;return e.comparisonTicker!==a.ao&&(!e.comparisonWatchlistId||null!==(t=e.comparisonWatchlistLots)&&void 0!==t&&!!t.length)}))||[]}async function m(e,t,n){var r;let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Set,s=[],o=u(n);null===(r=t.positions)||void 0===r||r.forEach(e=>{e.lots.forEach(e=>{s.push({lotId:e.lotId,ticker:e.ticker,shares:e.shares.number,buyPrice:e.shares.buyprice,buyDate:e.shares.buydate})})});let l={watchlistId:t.portInfo.id,watchlistName:t.portInfo.name,issuedCurrency:t.portInfo.currency,lots:s},m=o.filter(e=>!!e.comparisonTicker).map(e=>e.comparisonTicker),p=o.filter(e=>!!e.comparisonWatchlistId).map(e=>({watchlistId:e.comparisonWatchlistId,watchlistName:e.comparisonWatchlistName,issuedCurrency:e.comparisonWatchlistCurrency,lots:e.comparisonWatchlistLots})),h=await d(l,e,p,m,a);return null==h||!h.length||h.length<=o.length||h.some(e=>{var t;return!(null===(t=e.priceMovements)||void 0===t?void 0:t.length)})?[]:(i.add(t.portInfo.id.toString()),p.forEach(e=>{i.add(e.watchlistId.toString())}),null==h?void 0:h.map((e,t)=>({...e,name:i.has(e.id.toString())?e.name:e.id.toString(),color:c(t)})))}let p=(e,t)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length))return t||[];let n=new Map;e.forEach(e=>{e.checked&&n.set(e.id,e.color)});let r=(null==t?void 0:t.filter(e=>n.has(e.id.toString())))||[];return r.length>1&&(r=r.map(e=>({...e,priceMovements:e.priceMovements.map(e=>({...e,value:e.normalizedValue||e.value}))}))),r.map(e=>({...e,color:n.get(e.id.toString())}))};function h(e,t,n,r,a){return a?r?{chartWidth:1010,chartHeight:578}:n?{chartWidth:797,chartHeight:456}:e||t?{chartWidth:617,chartHeight:299}:{chartWidth:500,chartHeight:300}:r||n?{chartWidth:402,chartHeight:200}:e||t?{chartWidth:617,chartHeight:299}:{chartWidth:500,chartHeight:300}}},28876:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r,a=n(76268),i=n(34155);let s=a.PersonalizationClient.init({host:i.env.NEXT_PUBLIC_PERSONALIZATION_CLIENT_URL||"https://personalization.bloomberg.com",environment:"production"}),o=a.UserApiClient.init({host:"".concat("https://login.bloomberg.com","/user-api")}),l=null!==(r=n(34155).env.NEXT_PUBLIC_INTERCOM_BASE_URL)&&void 0!==r?r:"",c=a.Intercom.init({apiEndpoints:{getImages:"".concat(l,"/lineup-next/api/daper/images"),getNewsletters:"".concat(l,"/lineup-next/api/daper/newsletters"),getNiCodeStories:"".concat(l,"/lineup-next/api/content-service/stories/ni"),getPersonById:"".concat(l,"/lineup-next/api/daper/people/id"),getSecurities:"".concat(l,"/lineup-next/api/daper/securities"),getStories:"".concat(l,"/article/api/daper/stories"),getStoryById:"".concat(l,"/lineup-next/api/daper/stories/id"),getStoryBySlug:"".concat(l,"/lineup-next/api/daper/stories/slug"),getImagesBulk:"".concat(l,"/article/api/daper/images")}});c.personalizationClient=s,c.userApiClient=o;var d=c},49681:function(e,t,n){"use strict";n.d(t,{Cm:function(){return x},DN:function(){return i},IZ:function(){return p},L0:function(){return v},Oe:function(){return a},Rq:function(){return g},V$:function(){return w},WT:function(){return l},aA:function(){return r},aP:function(){return s},ap:function(){return y},bK:function(){return b},dV:function(){return u},e_:function(){return _},hy:function(){return h},jD:function(){return N},jU:function(){return C},jv:function(){return o},k$:function(){return k},kT:function(){return j},kf:function(){return f},no:function(){return d},s2:function(){return m},yR:function(){return c}});let r=1200,a=1e3,i=500,s=3e3,o=4e3,l=1,c=60,d=300,u=3600,m=86400,p=604800,h=2592e3,_=31536e3,g=6e4,f={id:-1,currency:"USD",isDefault:!1},v="summary",x=["financials","info","members","news","summary"],y=3e5,j=new Set(["CUR","CEF","CEFH","MMF","OEF","ETP"]),k={CEF:"closed_end_fund",CEFH:"hedge_fund",COM:"commodity",CUR:"currency",EQT:"common_stock",ETP:"etf",GOV:"government_bond",IND:"index",INDC:"premium",INDF:"futures",INDN:"rate",INDS:"index",MMF:"money_market_fund",OEF:"open_end_fund",OEFH:"premium"},b={CEF:"Fund",CEFH:"Fund",COM:"Commodity",CUR:"Currency",EQT:"Stock",ETP:"Fund",GOV:"Bond",IND:"Index",INDC:"Index",INDF:"Index",INDN:"Index",INDS:"Index",MMF:"Fund",OEF:"Fund",OEFH:"Fund"},C=["B500:IND","SPX:IND","CCMP:IND"],w=["1M","6M","YTD","1Y","5Y"],N=[{value:"09:30|Asia/Shanghai",timezone:"Asia/Shanghai",time:"09:30",displayValue:"Beijing 9:30 AM"},{value:"11:00|Asia/Singapore",timezone:"Asia/Singapore",time:"11:00",displayValue:"Singapore / Kuala Lumpur 11:00 AM"},{value:"11:30|Asia/Manila",timezone:"Asia/Manila",time:"11:30",displayValue:"Manila 11:30 AM"},{value:"11:00|Asia/Jakarta",timezone:"Asia/Jakarta",time:"11:00",displayValue:"Jakarta / Bangkok 11:00 AM"},{value:"14:00|Asia/Seoul",timezone:"Asia/Seoul",time:"14:00",displayValue:"Seoul 2:00 PM"},{value:"15:00|Asia/Tokyo",timezone:"Asia/Tokyo",time:"15:00",displayValue:"Tokyo 3:00 PM"},{value:"12:00|Asia/Kolkata",timezone:"Asia/Kolkata",time:"12:00",displayValue:"Mumbai 12:00 PM"},{value:"16:00|Europe/London",timezone:"Europe/London",time:"16:00",displayValue:"London 4:00 PM"},{value:"14:00|Europe/Berlin",timezone:"Europe/Berlin",time:"14:00",displayValue:"Frankfurt 2:00 PM"},{value:"12:30|America/New_York",timezone:"America/New_York",time:"12:30",displayValue:"New York 12:30 PM"},{value:"17:00|America/New_York",timezone:"America/New_York",time:"17:00",displayValue:"New York 5:00 PM"},{value:"12:00|America/Toronto",timezone:"America/Toronto",time:"12:00",displayValue:"Ottawa 12:00 PM"}]},50710:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(50797);function a(){let{locale:e}=(0,r.YB)(),t=null==e?void 0:e.startsWith("ja");return{locale:e,isJapanese:t}}},94996:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8457),a=n(11163);function i(){let{locale:e}=(0,a.useRouter)();return{open:(t,n,a)=>{let i=(0,r.z)({pathname:"".concat("en"===e?"/":"/".concat(e,"/")).concat(t)});window.open(i,n,a)}}}},40836:function(e,t,n){"use strict";n.d(t,{O:function(){return s},r:function(){return i}});var r=n(67294),a=n(77339);function i(){let{breakpoints:{smallDesktop:e,largeDesktop:t}}=(0,r.useContext)(a.sG);return(0,r.useMemo)(()=>!0===e||!0===t,[e,t])}function s(){let{breakpoints:{tablet:e,smallDesktop:t,largeDesktop:n}}=(0,r.useContext)(a.sG);return(0,r.useMemo)(()=>null===t&&null===n&&null===e,[t,n,e])}},67710:function(e,t,n){"use strict";function r(e){return"value"in e&&!("open"in e)}function a(e){return"open"in e&&"high"in e&&"low"in e&&"close"in e}n.d(t,{Q$:function(){return a},yL:function(){return r}})},96172:function(e,t,n){"use strict";n.d(t,{Q$:function(){return i.Q$},T6:function(){return a}});var r,a,i=n(67710);(r=a||(a={})).EXTRA_LARGE="extraLarge",r.LARGE="large",r.SMALL="small",r.FULL_ZONE="full",r.MEDIUM="medium"},64339:function(e,t,n){"use strict";n.d(t,{NP:function(){return u},Rm:function(){return c},_G:function(){return d},ni:function(){return o},wO:function(){return a},wX:function(){return l}});var r=n(49681);function a(e,t){return new Date("".concat(e,"T").concat(t,"Z"))}let i=new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"narrow"}),s=new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"long"});function o(e){let t=new Date,n=Math.floor((new Date(e).getTime()-t.getTime())/1e3);for(let{unit:e,seconds:t}of[{unit:"year",seconds:r.e_},{unit:"month",seconds:r.hy},{unit:"week",seconds:r.IZ},{unit:"day",seconds:r.s2},{unit:"hour",seconds:r.dV},{unit:"minute",seconds:r.yR},{unit:"second",seconds:r.WT}]){let r=n/t;if(Math.abs(r)>=1||"second"===e)return function(e,t){switch(t){case"second":case"minute":case"hour":return i.format(Math.round(e),t);case"day":case"week":case"month":case"year":return s.format(Math.round(e),t);default:return"just now"}}(Math.round(r),e)}return"just now"}function l(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})}function c(e){let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return"";let n=t.getUTCFullYear(),r=String(t.getUTCMonth()+1).padStart(2,"0"),a=String(t.getUTCDate()).padStart(2,"0");return"".concat(n,"-").concat(r,"-").concat(a)}function d(){let e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}function u(){let e=new Date,t=new Date(e.getFullYear(),0,1);return(e.getTime()-t.getTime())/864e5}},50797:function(e,t,n){"use strict";n.d(t,{jU:function(){return r.jU},YB:function(){return a},Q:function(){return r.Q}});var r=n(59223);let a=n(87909).Dq},59223:function(e,t,n){"use strict";n.d(t,{oZ:function(){return l},jU:function(){return o},Q:function(){return s}});var r=n(85893),a=n(87909);n(67294);var i=JSON.parse('{"*ratesMayIncludePoints":8184595,"10YearGovernmentBondYield":8184625,"12b1Fee":3348611,"1d":3348616,"1Day":8184621,"1DayPerformance":3272314,"1m":3348617,"1Month":8184622,"1y":3348619,"1Year":8184623,"1YearPrior":8184624,"1YearReturn":3272277,"1Yr":3348639,"1yRtn":3272304,"2DayPerf":3348637,"30DayAvgVolume":3272305,"3MonthReturn":3348595,"3YearReturn":3348596,"52WeekRange":3272280,"52WeekReturn":8184626,"52WkRange":3348641,"5y":3348620,"5YearReturn":3348597,"6m":3348618,"aboutLongname":8184564,"addAComparison":3611690,"addedToWatchlist":3348621,"address":3272315,"addSymbol":8196009,"addToWatchlist":3272286,"africaMiddleEast":8184628,"agriculture":8184629,"americanCurrencies":8184610,"americanStocks":8184630,"americas":8184631,"annual":3272323,"apac":8184627,"argentina":8184632,"argentinaPeso":3272339,"asianIndices":8184634,"asianPacificCurrencies":8184611,"asianPacificStocks":8184635,"asiaPacific":8184633,"asOf":8187726,"assetClassFocus":3348600,"australia":8184636,"australiaDollar":3272340,"australianRatesAndBonds":8184637,"austria":8184638,"autoLoans":8187857,"average52WeekPremium":3348615,"backLoadFee":3348609,"bahrain":8184641,"balanceSheet":3272298,"bangladesh":8184642,"bankOfEnglandRates":8184643,"bankOfJapanRates":8184644,"beforeHereOnTheTerminal":3272272,"belgium":8184645,"bestPerformers":3348625,"bfixBloombergFxFixings":8184640,"bfixRate":8184639,"billions":3272324,"bloombergBestEpsCurrYr":3272307,"bloombergBestPegRatio":3272302,"bloombergBestPERatio":3272301,"bloombergFixedIncomeIndic_2":8184592,"bloombergFixingsAndRefere_2":8184596,"bloombergFixingsAndReference":8184608,"bMarketsAmericas":8193813,"bMarketsApac":8193816,"bMarketsEmea":8193814,"boardMembers":3272319,"bosniaAndHerzegovina":8184646,"botswana":8184647,"brazil":8184648,"brazilReal":3272341,"bulgaria":8184649,"bundYields":8184597,"canada":8184650,"canadaDollar":3272342,"cashFlow":3272299,"change":8184651,"chile":8184652,"chilePeso":3272344,"china":8184653,"chinaYuanRenminbi":3272345,"colombia":8184654,"colombiaPeso":3272346,"commodities":3272267,"companyInfo":8184569,"compare":3272296,"compareToBenchmarks":8184583,"consumerInterestRates":8184612,"context":3717,"contract":8184655,"costaRica":8184656,"costaRicaColon":3272347,"country":8184657,"coupon":8184658,"croatia":8184659,"crossRates":8184660,"crudeOilAndNaturalGas":8184661,"currencies":3272265,"currency":8184662,"currencyRatesAreRepresent":8184606,"current":8184663,"currentMgmtFee":3348612,"customizedIndices":8184664,"cyprus":8184665,"czechRepublic":8184666,"czechRepublicKoruna":3272348,"data":8187723,"dayRange":3272279,"daysToMaturity":3611881,"debtToAssets":3272331,"delayedPriceAsOf":8187727,"deleteOneAddComparison":8187862,"denmark":8184667,"denmarkKrone":3272349,"detailsAndDisclaimer":8184601,"disclaimerEndOfDayCurrency":8184603,"disclaimerFixedIndicesOtc":8184604,"disclaimerFxRatesMajorCurrEx":8187861,"disclaimerLearnAboutFixedInc":8184602,"disclaimerWebsiteIsForBfix":8184605,"disclaimerWebsiteIsForInfo":8184609,"dividend":3272308,"dividendIndicatedGrossYield":3348606,"earningsAnnForPeriodEnd":3272259,"earningsAnnouncementForPe":3272310,"economies":8184669,"emea":8184668,"emergingMarkets":8184670,"emissions":8184613,"energy":8184671,"eps":3272306,"equity":3272311,"errMarketData":8196010,"errMarketSummaries":8196011,"estonia":8184672,"euroMemberCountries":3272350,"europe":8184673,"europeanCentralBankRates":8184675,"europeanEasternAfricanCurr":8184614,"europeanIndices":8184676,"europeanMiddleEastAfricanStocks":8184677,"europeMiddleEastAndAfrica":8184674,"executives":3272318,"expenseRatio":3348613,"federalReserveRates":8184678,"financials":8184566,"financing":3272334,"finland":8184679,"fixedIncome":3272266,"france":8184680,"frontLoadFee":3348608,"fundDetails":8184567,"fundInfo":8184573,"fundManagers":3348607,"fundTopHoldings":3348624,"fundType":3348598,"futureDate":8184681,"futures":8184682,"gainers":3408100,"geographicFocus":3348601,"germanRatesAndBonds":8184683,"germany":8184684,"ghana":8184685,"giltYields":8184598,"globalIndices":8184686,"gold":8184687,"governmentBondYields":8184615,"governmentIndices":8184688,"grains":8184689,"greece":8184690,"hasChangedToANewTickerSym":8184779,"high":8184691,"homeEquity":8184616,"hongKong":8184692,"hongKongDollar":3272352,"httpBloombgDgWsCoreBcomM1":3272274,"hungary":8184693,"hungaryForint":3272353,"iceland":8184694,"inceptionDate":3348604,"incomeStatement":3272297,"index":8184695,"indexInfo":8184574,"india":8184696,"indiaRupee":3272356,"indices":8184697,"indonesia":8184698,"indonesiaRupiah":3272354,"industrialMetals":8184699,"industry":3272313,"inflationLinked":8184700,"investing":3272333,"ireland":8184701,"isInactive":8184780,"isPending":8184781,"isPostponed":8184782,"israel":8184702,"israelShekel":3272355,"isUnlisted":8184783,"italy":8184703,"jamaica":8184704,"japan":8184705,"japaneseRatesAndBonds":8184706,"japanYen":3272357,"jordan":8184707,"kazakhstan":8184708,"kenya":8184709,"kenyaShilling":3272358,"keyStatistics":3272295,"koreaSouthWon":3272359,"kuwait":8184710,"laos":8184711,"last":8184712,"lastDividendOn$0":3348605,"lastDividendReported":3272309,"lastPrice":3348634,"lastPrice_2":3348622,"lastSale":8187728,"latest":3272292,"latvia":8184713,"learnMore":3272273,"lebanon":8184714,"lithuania":8184715,"livestock":8184716,"losers":3408101,"low":8184717,"luxembourg":8184718,"macedonia":8184720,"malaysia":8184721,"malaysiaRinggit":3272362,"malta":8184722,"market":8184565,"marketCap":3272282,"marketClosed":3272288,"marketData":8193818,"marketOpen":3272287,"markets":3272263,"mauritius":8184723,"members":8193324,"membersDown":8193327,"membersUp":8193326,"metals":8184724,"mexico":8184725,"mexicoPeso":3272361,"millions":3272325,"minimizeChart":3272284,"mongolia":8184726,"montenegro":8184727,"moreFromBloomberg":8196642,"morocco":8184728,"moroccoDirham":3272360,"mortgageRates":8184617,"mostPopular":8184577,"mtdReturn":8184719,"municipalBonds":8184599,"name":3348630,"nameCompany":3272321,"nameTitle":3272320,"namibia":8184729,"navOn$date":3348602,"navOnNetassetvaluedate":8184575,"netChange":8184730,"netChg":3348635,"netherlands":8184731,"netIncome":3272327,"news":3272294,"newZealand":8184732,"newZealandDollar":3272364,"nigeria":8184733,"noResults":8193820,"norway":8184734,"norwayKrone":3272363,"objective":3348599,"oman":8184735,"open":3272275,"operating":3272332,"otherPreciousMetals":8184736,"overview":8184737,"pakistan":8184738,"palestine":8184739,"panama":8184740,"pegyRatio":4479326,"pERatio":3272300,"percentChange":8184620,"percentChg":3348636,"percentOfFund":3348633,"peruNuevoSol":3272365,"philippines":8184741,"philippinesPeso":3272366,"phone":3272316,"poland":8184742,"polandZloty":3272367,"popularCommodities":8184588,"popularCurrencies":8184593,"popularIndices":8184585,"popularRatesAndBonds":8184591,"popularSecurities":8184576,"portugal":8184743,"position":3348631,"preciousAndIndustrialMeta":8184618,"premiumDiscount":3348614,"pressReleases":3272293,"prevClose":3272276,"price":8184744,"priceToBookRatio":3348627,"priceToSalesRatio":3348628,"privateCompany":3348642,"profitMargin":3272328,"profitMargins":8184578,"q1":3272335,"q2":3272336,"q3":3272337,"q4":3272338,"qatar":8184745,"quarterly":3272322,"quarterYearMillionsIssued":8184562,"quoteSearch":3272271,"rate":3348638,"rateNationalAverage":8184590,"ratesAndBonds":3272268,"redemptionFee":3348610,"refinedProducts":8184746,"reserveBankOfAustraliaRate":8184747,"revenue":3272326,"russiaRuble":3272368,"saudiArabia":8184748,"savingsRates":8187858,"searchForQuotes":8190636,"sector":3272312,"sectors":3272269,"serbia":8184749,"shareClass":3658219,"sharesOutstanding":3272303,"silver":8184750,"singapore":8184751,"singaporeDollar":3272370,"slovakKoruna":3272371,"slovenia":8184752,"softs":8184753,"source":8184594,"southAfrica":8184754,"southAfricaRand":3272376,"southKorea":8184755,"spain":8184756,"sponsoredBy":3348629,"sriLanka":8184757,"stocks":3272264,"summary":8184579,"surveyMsgBody":8193709,"surveyMsgButton":8193710,"surveyMsgHeader":8193708,"sweden":8184758,"swedenKrona":3272369,"switzerland":8184759,"switzerlandFranc":3272343,"taiwan":8184760,"taiwanNewDollar":3272374,"tanzania":8184761,"thailand":8184762,"thailandBaht":3272372,"tickeridIsPending":8184568,"time":3348640,"timeJstEst":8184600,"today":8184763,"todayInTheMarkets":8184584,"topHoldings":8184580,"topPerformers":8184586,"totalAssets":3272329,"totalAssets$currency$date":3348603,"totalAssetsMTotalassetscu":8184563,"totalLiabilities":3272330,"totalLiablities":8184581,"totalMembers":8193325,"treasuryInflationProtected":8184764,"treasuryYields":8184619,"tunisia":8184765,"turkey":8184766,"turkeyLira":3272373,"uk":8184767,"ukraine":8184769,"underPerformers":8184587,"unitedArabEmirates":8184770,"unitedKingdom":8184771,"unitedKingdomPound":3272351,"unitedKingdomRatesAndBond":8184772,"unitedStates":8184773,"unitedStatesDollar":3272377,"unitedStatesRatesAndBonds":8184774,"units":8184775,"unlessIndicatedOtherwiseI":8184607,"us":8184768,"usAndCanadaIndices":8184589,"value":3348632,"venezuela":8184776,"venezuelaBolivar":3272375,"vietnam":8184777,"viewAll":8184582,"viewFullChart":3272283,"viewLess":3272291,"viewMore":3272290,"volume":3272281,"wasAcquiredBy":8184784,"wasLiquidated":8184785,"watchlist":3272270,"website":3272317,"worstPerformers":3348626,"yield":8184778,"ytd":3272285,"ytdReturn":3272278,"notFound":8196625,"noMembersError":8196626,"noSecurityPageError":8196627,"noSecurityErrorVariation":8196630,"disclaimerWebBfixBisl":8194550,"disclaimerBfixRegPageUrl":8194552,"bfixMethodology":8194551}');let s=(0,a.JJ)(i),o=(0,a.fA)(i),l=e=>{let{value:t}=e;return t?"string"==typeof t?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(o,{id:t.id,defaultMessage:t.defaultMessage}):null}},99637:function(e,t,n){"use strict";n.d(t,{Uj:function(){return d},Yo:function(){return m},_Z:function(){return p},ez:function(){return _},lb:function(){return l},lj:function(){return u},oC:function(){return c},og:function(){return o}});var r=n(49681),a=n(78528);let i=/(\d)(?=(\d{3})+\.)/g,s=/(\d)(?=(?:\d{3})+$)/g;function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return"number"!=typeof e?"":e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"!=typeof e)return e;let r=d(e,t);return n?function(e){if("string"!=typeof e)return e;let t=e.replace(/0+$/,"");return"."===t.slice(-1)?t.slice(0,-1):t}(r):r}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?parseFloat(e):e;return isNaN(n)?"":n>=0?"+".concat(t).concat(e):"".concat(t).concat(String(e))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return"number"!=typeof e?"":h(o(e,t))}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return l(e,r.kT.has(t)?4:2,n)}function m(e){let t="string"==typeof e?parseFloat(e):e;return isNaN(t)?"":t>=0?"+".concat(d(e)):"".concat(d(e))}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("number"!=typeof e)return"";let r=t?(0,a.j)(t):"",i=o(e,n);return"".concat(r).concat(h(i))}function h(e){return"string"!=typeof e?e:e.indexOf(".")>0?e.replace(i,"$1,"):e.replace(s,"$1,")}let _=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=Math.abs(e),r={minimumFractionDigits:t,maximumFractionDigits:t},a="";return(e<0?a="-":e>0&&(a="+"),n>=1e9)?"".concat(a).concat((n/1e9).toLocaleString("en-US",r),"B"):n>=1e6?"".concat(a).concat((n/1e6).toLocaleString("en-US",r),"M"):n>=1e3?"".concat(a).concat((n/1e3).toLocaleString("en-US",r),"K"):"".concat(a).concat(n.toLocaleString("en-US",r))}},78528:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});let r={USD:"$",EUR:"€",GBP:"\xa3",INR:"₹",JPY:"\xa5",AUD:"A$",CAD:"C$",CHF:"CHF",CNY:"\xa5",SEK:"kr",NZD:"NZ$",MXN:"$",SGD:"S$",HKD:"HK$",NOK:"kr",KRW:"₩",TRY:"₺",RUB:"₽",ZAR:"R",BRL:"R$",MYR:"RM",IDR:"Rp",THB:"฿",VND:"₫",PHP:"₱",ILS:"₪",PLN:"zł",HUF:"Ft",CZK:"Kč",DKK:"kr",AED:"د.إ",SAR:"﷼",BGN:"лв",RON:"lei",CLP:"$",COP:"$",ARS:"$",PEN:"S/",PKR:"₨",NGN:"₦",EGP:"\xa3",KES:"KSh"},a=e=>r[null==e?void 0:e.toUpperCase()]||e},6304:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return null==e?"":e.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:t})}function a(e,t){return null==e?"--":"".concat(i(e,t),"%")}function i(e,t){return null==e?"--":e<=0?r(e,t).replace("-","–"):"+".concat(r(e,t))}n.d(t,{Bw:function(){return r},C1:function(){return a},X6:function(){return i}})},16677:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(89584);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.go.En,a=arguments.length>3?arguments[3]:void 0;if(!e)return a;let i=t[n]||t[r.go.En];if(!i)throw Error('getLocalizedValue: missing locale config for locale="'.concat(n,'", key="').concat(e,'"'));return i[e]||a}},82724:function(e,t,n){"use strict";function r(e){if(!e)return"";let t=new URLSearchParams;return Object.keys(e).forEach(n=>{let r=e[n];void 0!==r&&(Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.append(n,String(r)))}),[...t].length?"?".concat(t.toString()):""}n.d(t,{Z:function(){return r}})},42844:function(e,t,n){"use strict";function r(){var e,t;let n=null===(t=document)||void 0===t?void 0:null===(e=t.cookie)||void 0===e?void 0:e.match(/[; ]session_id=([^\\s;]*)/);if(n)return n[1]}n.d(t,{Y:function(){return r}})},94950:function(e){e.exports={chartTypeTabsPlaceholder:"styles_chartTypeTabsPlaceholder__IRwbp",comparisonChartPlaceholder:"styles_comparisonChartPlaceholder___XoCE",legendsPlaceholder:"styles_legendsPlaceholder__JITSw"}},70962:function(e){e.exports={tickerChartLegend:"styles_tickerChartLegend__drs5p"}},19381:function(e){e.exports={searchDropdownContainer:"styles_searchDropdownContainer__03nlH",disabled:"styles_disabled__evCGV"}},29007:function(e){e.exports={tabs:"styles_tabs__M_M0l"}},20703:function(e){e.exports={sectionTitle:"styles_sectionTitle__z1_bK",chartControls:"styles_chartControls__6eNya"}},65877:function(e){e.exports={gridLayout:"styles_gridLayout__OY0B8",noLines:"styles_noLines__UVvQW"}},6942:function(e){e.exports={zoneColumn:"styles_zoneColumn__gYLvQ",fillEmptySpace:"styles_fillEmptySpace__zo1Gb"}},59998:function(e){e.exports={zone:"styles_zone__e_M9W"}},60467:function(e){e.exports={zoneModule:"styles_zoneModule__Pqhmr"}},68098:function(e){e.exports={headline:"styles_headline___7SD4",forceLinking:"styles_forceLinking___b55d",fullZone:"styles_fullZone__3_6Sp",extraLarge:"styles_extraLarge__4l44w",large:"styles_large__ESvpz",medium:"styles_medium__56_vm",small:"styles_small__deSfN",feature:"styles_feature___WSoM"}},8468:function(e){e.exports={heatmap:"styles_heatmap__yHhdz",tile:"styles_tile__J5nKT",neutral:"styles_neutral__C8H_T",low:"styles_low__BuNgU",positive:"styles_positive__Apzxt",medium:"styles_medium__wpus6",high:"styles_high__tK345",negative:"styles_negative___aCvA",focusable:"styles_focusable__nV0ov",active:"styles_active__bv5Pl",title:"styles_title__HViuq",tickerType:"styles_tickerType__kogqy",tileHover:"styles_tileHover__gboX8"}},86281:function(e){e.exports={lazy:"styles_lazy__k0t5z",mobile:"styles_mobile__9XBbZ",desktop:"styles_desktop__Oy5Wk",caption:"styles_caption__716Yq"}},16147:function(e){e.exports={marketSummaries:"styles_marketSummaries__odgxq",sectionTitle:"styles_sectionTitle__xBh4H",container:"styles_container__Kd21t",headerContainer:"styles_headerContainer__dh2fL",headerImage:"styles_headerImage__zD386",headerTitle:"styles_headerTitle__1_JB7",title:"styles_title__RHXX5",subTitle:"styles_subTitle__MyZjJ",marketMovesContainer:"styles_marketMovesContainer__FGOJV",summaryList:"styles_summaryList__7YjIo",summaryItem:"styles_summaryItem__A_Iho"}},31364:function(e){e.exports={newsletter:"styles_newsletter__b2_w9",container:"styles_container__1aH2T",image:"styles_image__RdvRx",contentContainer:"styles_contentContainer__IpAlx",subscriberOnlyLabel:"styles_subscriberOnlyLabel__uSs8k",previewButton:"styles_previewButton__3VzhA"}},86971:function(e){e.exports={email:"styles_email__9Qe36",error:"styles_error__tmqqS",newsletterButton:"styles_newsletterButton__CEMW8",signedUp:"styles_signedUp__lYmee",disclaimer:"styles_disclaimer__uJlou",checkbox:"styles_checkbox___l47z",toast:"styles_toast__dUpdK"}},88345:function(e){e.exports={placeholderWithError:"styles_placeholderWithError___5uKu",placeholderContainer:"styles_placeholderContainer__HlXsF",errorContainer:"styles_errorContainer__nNDR6"}},96521:function(e){e.exports={bfixHeader:"style_bfixHeader__yIaQE",wrapper:"style_wrapper__5Sf27",regionDropdown:"style_regionDropdown__ZGFFu",datePicker:"style_datePicker__dtGBD"}},86354:function(e){e.exports={sectionNote:"style_sectionNote__MOgIu",topDisclaimer:"style_topDisclaimer__CF4R8",bottomDisclaimer:"style_bottomDisclaimer__fD5zi",disclaimerLink:"style_disclaimerLink__YKbac"}},72314:function(e){e.exports={sectionFrontNav:"sectionFrontNav_sectionFrontNav__Y3573",sectionTitle:"sectionFrontNav_sectionTitle__Lpa3S",subsectionTitle:"sectionFrontNav_subsectionTitle__Quoz7",leftColumn:"sectionFrontNav_leftColumn__tpjJ4",rightColumn:"sectionFrontNav_rightColumn__8mDvR",separator:"sectionFrontNav_separator__8fS31",links:"sectionFrontNav_links__RlsP_",link:"sectionFrontNav_link__8SkTn",firstLink:"sectionFrontNav_firstLink__4esQX"}},25215:function(e){e.exports={sectionFrontTable:"style_sectionFrontTable__vch1l",titleContainer:"style_titleContainer__S5ESk",titleWrapper:"style_titleWrapper___1CvM",title:"style_title__nH4Mw",sectionLink:"style_sectionLink__3_7_L",subtitle:"style_subtitle__E5kFp",header:"style_header__VSpHj",stickyCol:"style_stickyCol__8nZn2",quickAddPresent:"style_quickAddPresent___NyXV",quickAddAbsent:"style_quickAddAbsent__CyCiH",headerControls:"style_headerControls__sO6HZ",table:"style_table__SrH5K",scroll:"style_scroll__21Ia4",row:"style_row__rMjqo",headerDots:"style_headerDots__ehPlm",hiddenOnMobile:"style_hiddenOnMobile__Vm2Su",sectionNote:"style_sectionNote__kIVGQ",tableDisclaimer:"style_tableDisclaimer__4H2IH"}},43593:function(e){e.exports={sectionFront:"style_sectionFront__UqNT5",loading:"style_loading__EDCkt",section:"style_section__LjMXv",boxAd:"style_boxAd__9_GYj",inBodyAd:"style_inBodyAd__nAGZe",brokerBoxAd:"style_brokerBoxAd__Jw_Se",displayIdContainer:"style_displayIdContainer__Uz7Gy",displayId:"style_displayId__ZrwVL",currencyIdContainer:"style_currencyIdContainer__ZzZqr",quickAdd:"style_quickAdd__N9GK9",stockId:"style_stockId__blFSc",stockName:"style_stockName__8SqkX",crossRate:"style_crossRate__ctrTo",consumerInterestRate:"style_consumerInterestRate__fEUGF",regionEconomiesName:"style_regionEconomiesName__rKk84",entityName:"style_entityName__seJpN",stockValue:"style_stockValue__fsPwb",stockTime:"style_stockTime__SnJo8",yieldValue:"style_yieldValue__Jk8_0",positive:"style_positive__BTijB",negative:"style_negative__A0TVm"}},28551:function(e){e.exports={gridLayoutContainer:"styles_gridLayoutContainer__6qA_N",stickyEnabled:"styles_stickyEnabled__RJ4og",terminalToutContainer:"styles_terminalToutContainer__nG0tj",terminalTout:"styles_terminalTout__c6q_u",mobileTerminalTout:"styles_mobileTerminalTout__GrCCq",boxAd:"styles_boxAd__jAmUW",marketsSummary:"styles_marketsSummary__emL_a",newsletter:"styles_newsletter__jmRm_",qualtricsSurvey:"styles_qualtricsSurvey__M2UcT",topicModule:"styles_topicModule__yVt_L"}},2499:function(e){e.exports={summary:"styles_summary__FsIh1",bottomMargin:"styles_bottomMargin__Dj9AS"}},97868:function(e){e.exports={toutContainer:"styles_toutContainer__b_aWO",toutContent:"styles_toutContent__KlGt6"}},18868:function(e){e.exports={tableCell:"style_tableCell__1UrwH",start:"style_start__T_7tE",end:"style_end__0XcYw",cellStart:"style_cellStart__Mdz_r",cellEnd:"style_cellEnd__1kY7j"}},25916:function(e){e.exports={column:"style_column__qFboh",sortableColumn:"style_sortableColumn__vJvYp",sortableColumnEnd:"style_sortableColumnEnd__av7Yk",sortNeutral:"style_sortNeutral__gZtto",sortAsc:"style_sortAsc__aN9yo",sortDesc:"style_sortDesc__6WKjy",start:"style_start__L8R9v",end:"style_end__Ug4Cn",noSort:"style_noSort__mBHkd"}},72651:function(e){e.exports={tableHeader:"style_tableHeader__XgkzK"}},14855:function(e){e.exports={tableRow:"style_tableRow__YAQry"}},1493:function(e){e.exports={tableWrapper:"style_tableWrapper__Q1HVo",tableComponent:"style_tableComponent__XG7qI"}},22029:function(e){e.exports={tickerChartLegendContainer:"style_tickerChartLegendContainer__AR7h_",interactive:"style_interactive__xaMl9",interactiveTickerPill:"style_interactiveTickerPill__ikJH_",changeValue:"style_changeValue__5uyMc",changeWrapper:"style_changeWrapper__VBFHf"}},78426:function(e){e.exports={todayInMarketsCategoriesContainer:"styles_todayInMarketsCategoriesContainer__xZl2d",tabContainer:"styles_tabContainer__JgtRf",tabSliderContainer:"styles_tabSliderContainer__UBwk_",tabGridContainer:"styles_tabGridContainer__O_ANW",dropDownContainer:"styles_dropDownContainer__BNAkF",cardsDropdown:"styles_cardsDropdown__cZ31b"}},24214:function(e){e.exports={todayInMarketsHeatmapContainer:"styles_todayInMarketsHeatmapContainer__0HMlJ",hoverContent:"styles_hoverContent__CAUax",tickerName:"styles_tickerName__iHtrK",tickerSymbol:"styles_tickerSymbol__daLQb"}},99533:function(e){e.exports={todayInMarketsSparklineCardsPlaceholder:"styles_todayInMarketsSparklineCardsPlaceholder__vKkWp",todayInMarketsSparklineCardContainer:"styles_todayInMarketsSparklineCardContainer__JsOjO",todayInMarketsSparklineCard:"styles_todayInMarketsSparklineCard__QUoKk",active:"styles_active__pd1BZ",todayInMarketsErrorWrapper:"styles_todayInMarketsErrorWrapper__XKdNx"}},28715:function(e){e.exports={todayInMarkets:"styles_todayInMarkets__tUkBL",collapsibleContainer:"styles_collapsibleContainer__nMBXT",sectionTitle:"styles_sectionTitle__Vr2RB",sectionContainer:"styles_sectionContainer__ZoDks",chevronIcon:"styles_chevronIcon__KjFFY",showHideToggle:"styles_showHideToggle__LYn0n",open:"styles_open__bvfAz",close:"styles_close__Ykt_X",sectionWrapper:"styles_sectionWrapper__5suBa",placeholderContainer:"styles_placeholderContainer__rmBnM",placeholderRow:"styles_placeholderRow__nH6cV",desktopHiddenRow:"styles_desktopHiddenRow__rbD2g"}},70264:function(e){e.exports={togglePickerDrawerContainer:"drawerTogglePicker_togglePickerDrawerContainer__rQs3r",togglePickerDrawerContainerMaxHeight:"drawerTogglePicker_togglePickerDrawerContainerMaxHeight__Pl9hR",togglePickerFooter:"drawerTogglePicker_togglePickerFooter__CVh4F",doneButton:"drawerTogglePicker_doneButton__b_Uns"}},74386:function(e){e.exports={hideButton:"hideButton_hideButton__KYttF"}},96341:function(e){e.exports={topicsStories:"singleTopicStories_topicsStories__YO9tk",topicsStoriesCard:"singleTopicStories_topicsStoriesCard__AE0W6",topicsStoriesTextSkeleton:"singleTopicStories_topicsStoriesTextSkeleton__YgKrr",topicStoryDivider:"singleTopicStories_topicStoryDivider__jxrB1",singleTopicStories:"singleTopicStories_singleTopicStories__ftdnw",singleTopicName:"singleTopicStories_singleTopicName__wNOLU",stories:"singleTopicStories_stories__JZqzU",listItemContainer:"singleTopicStories_listItemContainer__QXWNT",right:"singleTopicStories_right___Xig1",listItem:"singleTopicStories_listItem__QI3t9",rightColumn:"singleTopicStories_rightColumn__EX9js",topicItemImage:"singleTopicStories_topicItemImage__BSXCA",mainColumn:"singleTopicStories_mainColumn__YRHDI",noEyeBrowItem:"singleTopicStories_noEyeBrowItem__vw66U",eyeBrowItem:"singleTopicStories_eyeBrowItem__1fs1_",listLinkText:"singleTopicStories_listLinkText__GkygF",listContent:"singleTopicStories_listContent__24OS_",opinionEyebrow:"singleTopicStories_opinionEyebrow__rneFq",singleTopicPanelHeader:"singleTopicStories_singleTopicPanelHeader__3G2X0",followContainer:"singleTopicStories_followContainer__jIky6",text:"singleTopicStories_text__wd1Rj"}},67397:function(e){e.exports={tagPicker:"tagPicker_tagPicker__YN091",headerContainer:"tagPicker_headerContainer__dacA5",exit:"tagPicker_exit__KhXHY",groupTitle:"tagPicker_groupTitle__33XKt",labelContainer:"tagPicker_labelContainer__X8luV",icon:"tagPicker_icon__JsJJ_",label:"tagPicker_label__XjYRI",description:"tagPicker_description__NgJin",divider:"tagPicker_divider__arV3w",tagContainer:"tagPicker_tagContainer__KTW_t",unselectedTag:"tagPicker_unselectedTag__zBYOS"}},1013:function(e){e.exports={UserModulesTopicStories:"userModulesTopicStories_UserModulesTopicStories__WADxW",leftContentWell:"userModulesTopicStories_leftContentWell__iXHJV",opinionTheme:"userModulesTopicStories_opinionTheme__gB9JU",item:"userModulesTopicStories_item__0abWH",header:"userModulesTopicStories_header__inCAz",title:"userModulesTopicStories_title__Za3_2",loadingContainer:"userModulesTopicStories_loadingContainer__GH8Jm",topicStoriesContainer:"userModulesTopicStories_topicStoriesContainer__ZlZ_B"}},21589:function(e){e.exports={userTopicsStoriesDesktop:"userTopicsStoriesDesktop_userTopicsStoriesDesktop__v8d_Z",title:"userTopicsStoriesDesktop_title__jnZsv",header:"userTopicsStoriesDesktop_header__C7FoG",flexContainer:"userTopicsStoriesDesktop_flexContainer__2GCMi",tagPickerContainer:"userTopicsStoriesDesktop_tagPickerContainer__mLERJ",carouselContainer:"userTopicsStoriesDesktop_carouselContainer__AUjlq",pickerClosedPicker:"userTopicsStoriesDesktop_pickerClosedPicker__91j3l",pickerClosedCarousel:"userTopicsStoriesDesktop_pickerClosedCarousel__mgz8u"}},72202:function(e){e.exports={userTopicsStoriesMobile:"userTopicsStoriesMobile_userTopicsStoriesMobile__1f4Ds",header:"userTopicsStoriesMobile_header__sy58F",title:"userTopicsStoriesMobile_title__szmgV",mobileCarouselContainer:"userTopicsStoriesMobile_mobileCarouselContainer__h26CS"}},46021:function(e){e.exports={root:"watchlistWrapped_root__rfK9H",snapshotAndMoversSection:"watchlistWrapped_snapshotAndMoversSection__FoOtW",mainContent:"watchlistWrapped_mainContent__an8Ev",chartSection:"watchlistWrapped_chartSection__6OxH6",moversSection:"watchlistWrapped_moversSection__eUgLL",verticalDivider:"watchlistWrapped_verticalDivider__TcHq_",horizontalDivider:"watchlistWrapped_horizontalDivider__BM7XE",snapshotWrapper:"watchlistWrapped_snapshotWrapper__A_rC_",noTickersViewContainer:"watchlistWrapped_noTickersViewContainer__QjbdI",noTickersNotification:"watchlistWrapped_noTickersNotification__io6Ac",placeholderContainer:"watchlistWrapped_placeholderContainer__LxcyC",bundleContainer:"watchlistWrapped_bundleContainer__dE543",bundleHeader:"watchlistWrapped_bundleHeader__IKslv",subscriberOnly:"watchlistWrapped_subscriberOnly__sR2zc",topLiner:"watchlistWrapped_topLiner__OotFU",subLiner:"watchlistWrapped_subLiner__1Gn2V",bundlesContainer:"watchlistWrapped_bundlesContainer__xGz7x",bundle:"watchlistWrapped_bundle__sm987",bundleImage:"watchlistWrapped_bundleImage__Cc89x",bundleTickers:"watchlistWrapped_bundleTickers__iw1Ao",bundleButton:"watchlistWrapped_bundleButton__7vTo7",placeholderRow:"watchlistWrapped_placeholderRow__MOXqD"}},90148:function(e){e.exports={bundlesBg:"watchlistWrappedContainer_bundlesBg__ZgQXQ"}},13302:function(e){e.exports={snapshot:"wrappedDailySnapshot_snapshot__ZPOQi",snapshotTitle:"wrappedDailySnapshot_snapshotTitle__tATdh",snapshotContainer:"wrappedDailySnapshot_snapshotContainer__tV4Uj",price:"wrappedDailySnapshot_price__9ckoJ",priceDisplay:"wrappedDailySnapshot_priceDisplay__GKaDA",metricTitle:"wrappedDailySnapshot_metricTitle__H7Tk_",metricContainer:"wrappedDailySnapshot_metricContainer__KlPGm",snapshotGrid:"wrappedDailySnapshot_snapshotGrid__HBvuh",snapshotGridRow:"wrappedDailySnapshot_snapshotGridRow__OqvgN",watchlistSnapshotMetrics:"wrappedDailySnapshot_watchlistSnapshotMetrics__h7vCk",metricValueWrapper:"wrappedDailySnapshot_metricValueWrapper__hLXLR",metricValue:"wrappedDailySnapshot_metricValue__yHeYA",metricContainerPlaceholder:"wrappedDailySnapshot_metricContainerPlaceholder__YczmE"}},44277:function(e){e.exports={headingContainer:"wrappedHeader_headingContainer__YkQQj",headerMain:"wrappedHeader_headerMain__JZtdi",desktopHeader:"wrappedHeader_desktopHeader__ELz8E",desktopHeaderMain:"wrappedHeader_desktopHeaderMain__Buap6",mobileHeader:"wrappedHeader_mobileHeader__L_vo_",mobileTopRow:"wrappedHeader_mobileTopRow__gKjr8",headingTitle:"wrappedHeader_headingTitle__3NP3M",watchlistViewDropdown:"wrappedHeader_watchlistViewDropdown__0qMZx",yourWatchlist:"wrappedHeader_yourWatchlist__tpjBi",yourWatchlistMobile:"wrappedHeader_yourWatchlistMobile__fMI9V",watchlistWrapText:"wrappedHeader_watchlistWrapText__6CqLj",inlineIcon:"wrappedHeader_inlineIcon__MZNrt",headerPlaceholder:"wrappedHeader_headerPlaceholder__9GvRY"}},83248:function(e){e.exports={performanceChartTitle:"wrappedPerformanceChart_performanceChartTitle__7PBDj",performanceChart:"wrappedPerformanceChart_performanceChart__Q9j_V",caption:"wrappedPerformanceChart_caption__VN_0W",legendWrapper:"wrappedPerformanceChart_legendWrapper__XCm35",performanceChartPlaceholder:"wrappedPerformanceChart_performanceChartPlaceholder__v47GX"}},18864:function(e){e.exports={topMoversBox:"wrappedTopMovers_topMoversBox___7pY_",topMoversTitle:"wrappedTopMovers_topMoversTitle__ZGL49",emptyMessage:"wrappedTopMovers_emptyMessage__pXfWg",topMoversGrid:"wrappedTopMovers_topMoversGrid__RJocf",topMoverPill:"wrappedTopMovers_topMoverPill__QOXPw",showPositiveSign:"wrappedTopMovers_showPositiveSign__iYWQ_",topMoverPillPlaceholder:"wrappedTopMovers_topMoverPillPlaceholder__u_9nm"}},52644:function(e){e.exports={playIcon:"PlayIcon_playIcon__M2_nJ",rightTriangle:"PlayIcon_rightTriangle__Ck4px",circle:"PlayIcon_circle__2C_uj"}},43535:function(){},51437:function(){},54675:function(){},52361:function(){},94616:function(){},85811:function(){},62828:function(){}},function(e){e.O(0,[6342,2982,9491,1626,7592,7018,6239,6336,8764,3934,686,3711,9334,1709,4092,8097,7287,8433,1664,2909,1860,2114,9848,2095,8696,2806,2888,9774,179],function(){return e(e.s=7134)}),_N_E=e.O()}]);