1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2249],{14606:(e,n,t)=>{t.d(n,{_:()=>k,e:()=>L});var r,i=t(76367),o=t(30694),a=t(22514),u=t(91167),l=t(98952),c=t(45159),s=t(3976),d=t(36667),f=t(23912),v=t(35409),h=t(90722),p=t(38659),m=t(14695),b=t(86645),g=t(27579),w=t(54429),y=t(84465),_=t(82728);function x(e){var n;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(n=e.as)?n:S)!==c.Fragment||1===c.Children.count(e.children)}var j=(0,c.createContext)(null);j.displayName="TransitionContext";var E=((r=E||{}).Visible="visible",r.Hidden="hidden",r),C=(0,c.createContext)(null);function P(e){return"children"in e?P(e.children):e.current.filter(function(e){return null!==e.el.current}).filter(function(e){return"visible"===e.state}).length>0}function T(e,n){var t=(0,h.Y)(e),r=(0,c.useRef)([]),i=(0,f.a)(),o=(0,s.L)(),a=(0,d._)(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.mK.Hidden,a=r.current.findIndex(function(n){return n.el===e});-1!==a&&((0,y.Y)(n,{[_.mK.Unmount](){r.current.splice(a,1)},[_.mK.Hidden](){r.current[a].state="hidden"}}),o.microTask(function(){var e;!P(r)&&i.current&&(null==(e=t.current)||e.call(t))}))}),l=(0,d._)(function(e){var n=r.current.find(function(n){return n.el===e});return n?"visible"!==n.state&&(n.state="visible"):r.current.push({el:e,state:"visible"}),function(){return a(e,_.mK.Unmount)}}),v=(0,c.useRef)([]),p=(0,c.useRef)(Promise.resolve()),m=(0,c.useRef)({enter:[],leave:[]}),b=(0,d._)(function(e,t,r){v.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter(function(n){return(0,u._)(n,1)[0]!==e})),null==n||n.chains.current[t].push([e,new Promise(function(e){v.current.push(e)})]),null==n||n.chains.current[t].push([e,new Promise(function(e){Promise.all(m.current[t].map(function(e){var n=(0,u._)(e,2);return n[0],n[1]})).then(function(){return e()})}
1)]),"enter"===t?p.current=p.current.then(function(){return null==n?void 0:n.wait.current}).then(function(){return r(t)}):r(t)}),g=(0,d._)(function(e,n,t){Promise.all(m.current[n].splice(0).map(function(e){var n=(0,u._)(e,2);return n[0],n[1]})).then(function(){var e;null==(e=v.current.shift())||e()}).then(function(){return t(n)})});return(0,c.useMemo)(function(){return{children:r,register:l,unregister:a,onStart:b,onStop:g,wait:p,chains:m}},[l,a,r,b,g,m,p])}C.displayName="NestingContext";var S=c.Fragment,R=_.Ac.RenderStrategy,F=(0,_.FX)(function(e,n){var t=e.show,r=e.appear,s=void 0!==r&&r,f=e.unmount,h=(0,a._)(e,["show","appear","unmount"]),b=(0,c.useRef)(null),w=x(e),y=m.P.apply(void 0,(0,l._)(w?[b,n]:null===n?[]:[n]));(0,p.g)();var E=(0,g.O_)();if(void 0===t&&null!==E&&(t=(E&g.Uw.Open)===g.Uw.Open),void 0===t)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var S=(0,u._)((0,c.useState)(t?"visible":"hidden"),2),F=S[0],k=S[1],L=T(function(){t||k("hidden")}),V=(0,u._)((0,c.useState)(!0),2),N=V[0],G=V[1],O=(0,c.useRef)([t]);(0,v.s)(function(){!1!==N&&O.current[O.current.length-1]!==t&&(O.current.push(t),G(!1))},[O,t]);var A=(0,c.useMemo)(function(){return{show:t,appear:s,initial:N}},[t,s,N]);(0,v.s)(function(){t?k("visible"):P(L)||null===b.current||k("hidden")},[t,L]);var z={unmount:void 0===f||f},H=(0,d._)(function(){var n;N&&G(!1),null==(n=e.beforeEnter)||n.call(e)}),I=(0,d._)(function(){var n;N&&G(!1),null==(n=e.beforeLeave)||n.call(e)}),M=(0,_.Ci)();return c.createElement(C.Provider,{value:L},c.createElement(j.Provider,{value:A},M({ourProps:(0,o._)((0,i._)({},z),{as:c.Fragment,children:c.createElement(U,(0,o._)((0,i._)({ref:y},z,h),{beforeEnter:H,beforeLeave:I}))}),theirProps:{},defaultTag:c.Fragment,features:R,visible:"visible"===F,name:"Transition"})))}),U=(0,_.FX)(function(e,n){var t,r,o=e.transition,s=void 0===o||o,f=e.beforeEnter,h=e.afterEnter,E=e.beforeLeave,F=e.afterLeave,U=e.enter,k=e.enterFrom,L=e.enterTo,V=e.entered,N=e.leave,G=e.leaveFrom,O=e.leaveTo,A=(0,a._)(e,["transition","beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),z=(0,u._)((0,c.useState)(null),2),H=z[0],I=z[1],M=(0,c.useRef)(null),K=x(e),Y=m.P.apply(void 0,(0,l._)(K?[M,n,I]:null===n?[]:[n])),q=null==(t=A.unmount)||t?_.mK.Unmount:_.mK.Hidden,B=function(){var e=(0,c.useContext)(j);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),D=B.show,X=B.appear,Q=B.initial,Z=(0,u._)((0,c.useState)(D?"visible":"hidden"),2),J=Z[0],W=Z[1],$=function(){var e=(0,c.useContext)(C);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),ee=$.register,en=$.unregister;(0,v.s)(function(){return ee(M)},[ee,M]),(0,v.s)(function(){if(q===_.mK.Hidden&&M.current)return D&&"visible"!==J?void W("visible"):(0,y.Y)(J,{hidden:function(){return en(M)},visible:function(){return ee(M)}})},[J,M,ee,en,D,q]);var et=(0,p.g)();(0,v.s)(function(){if(K&&et&&"visible"===J&&null===M.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[M,J,et,K]);var er=Q&&!X,ei=X&&D&&Q,eo=(0,c.useRef)(!1),ea=T(function(){eo.current||(W("hidden"),en(M))},$),eu=(0,d._)(function(e){eo.current=!0,ea.onStart(M,e?"enter":"leave",function(e){"enter"===e?null==f||f():"leave"===e&&(null==E||E())})}),el=(0,d._)(function(e){var n=e?"enter":"leave";eo.current=!1,ea.onStop(M,n,function(e){"enter"===e?null==h||h():"leave"===e&&(null==F||F())}),"leave"!==n||P(ea)||(W("hidden"),en(M))});(0,c.useEffect)(function(){K&&s||(eu(D),el(D))},[D,K,s]);var ec=!(!s||!K||!et||er),es=(0,u._)((0,b.p)(ec,H,D,{start:eu,end:el}),2)[1],ed=(0,_.oE)((0,i._)({ref:Y,className:(null==(r=(0,w.x)(A.className,ei&&U,ei&&k,es.enter&&U,es.enter&&es.closed&&k,es.enter&&!es.closed&&L,es.leave&&N,es.leave&&!es.closed&&G,es.leave&&es.closed&&O,!es.transition&&D&&V))?void 0:r.trim())||void 0},(0,b.B)(es))),ef=0;"visible"===J&&(ef|=g.Uw.Open),"hidden"===J&&(ef|=g.Uw.Closed),es.enter&&(ef|=g.Uw.Opening),es.leave&&(ef|=g.Uw.Closing);var ev=(0,_.Ci)();return c.createElement(C.Provider,{value:ea},c.createElement(g.El,{value:ef},ev({ourProps:ed,theirProps:A,defaultTag:S,features:R,visible:"visible"===J,name:"Transition.Child"})))}),k=(0,_.FX)(function(e,n){var t=null!==(0,c.useContext)(j),r=null!==(0,g.O_)();return c.createElement(c.Fragment,null,!t&&r?c.createElement(F,(0,i._)({ref:n},e)):c.createElement(U,(0,i._)({ref:n},e)))}),L=Object.assign(F,{Child:k,Root:F})},19284:(e,n,t)=>{t.d(n,{sY:()=>v,bE:()=>h,WJ:()=>p});var r=t(60143),i=t(45159),o=t(65596),a=t(62715),u=t(54504),l=t(26748);function c(){var e=(0,a.GV)(function(e){return e.features.hindSight}),n=(0,a.GV)(function(e){return e.settings.viewType}),t=(0,u.mO)(),i=t.hasPremiumExtended,c=t.hasValidatedPremium,s=t.supportPremiumExtended,d=t.supportPremiumSubscription;return!e.enabled||(0,l.lj)(n)||d&&s&&!c||d&&s&&i?null:(0,r.jsx)(o.default,{async:!0,id:"hindsight-script",src:"https://static.solutionshindsight.net/teju-webclient/hindsight-webclient.min.js"})}var s=t(91167),d=t(25668);let f=function(){var e=(0,s._)((0,i.useState)(!1),2),n=e[0],t=e[1],r=(0,a.GV)(function(e){return e.features.hotjar});return(0,i.useEffect)(function(){if((null==r?void 0:r.enabled)&&!n){t(!0);var e,i,o=(e=r.data.id.split(/,/g),i={},e.forEach(function(e){var n=e.split(":");i[n[0]]=parseInt(n[1],10)}),i),a=o.hjid,u=o.hjsv;a&&u&&d.hotjar.initialize({id:a,sv:u})}},[r,n]),null};function v(){return(0,r.jsx)(f,{})}function h(){return(0,r.jsx)(f,{})}function p(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{}),(0,r.jsx)(c,{})]})}},19424:(e,n,t)=>{t.d(n,{A:()=>w});var r=t(60143),i=t(92584),o=t(29722),a=t(45159),u=t(54166),l=t(62715),c=t(98165),s=t(65019),d=t(29228),f=t(64095),v=t(3534),h=t(66877),p=t(86300),m="followTo
1pic";function b(e){(0,f.Pz)((0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"font-semibold",children:"Following ".concat(e).trim()}),(0,r.jsxs)("span",{children:["Manage these anytime in"," ",(0,r.jsx)(s.A,{className:"underline",href:"/manage-topics/",noStyle:!0,children:"Manage Topics"}),"."]})]}),{id:"topic-follow-success"})}function g(){var e=new URL(window.location.href);e.searchParams.delete(m),window.history.replaceState(null,"","".concat(e.pathname).concat(e.search).concat(e.hash))}let w=function(){var e,n,t=(0,l.GV)(function(e){return e.concepts.concept}),s=(0,l.GV)(function(e){return e.features.braze}),w=(0,l.GV)(function(e){return e.conf.mode}),y=(0,l.GV)(function(e){return e.piano.initialized}),_=(0,l.GV)(function(e){return e.piano.user}),x=(0,l.GV)(function(e){return e.piano.hasSubscription}),j=(0,l.GV)(function(e){return e.piano.subscribeButtonHref}),E=(0,l.GV)(function(e){return e.braze.initialized}),C=(0,l.GV)(function(e){return e.page.name}),P=(0,l.GV)(function(e){return e.page.topicUuid}),T=null!=(e=null==t?void 0:t.uuid)?e:P,S=s.enabled?s.data:void 0,R=null==S?void 0:S.topics,F=!!(null==S?void 0:S.topicsRecommendation),U=!!(T&&(null==R?void 0:R.some(function(e){return e.uuid===T}
1))),k=F&&U,L=w===c.G9.EDIT,V=y&&k&&!L&&!!_&&x,N=(0,d.O)(V),G=N.followedUuids,O=N.loaded,A=N.setFollowing,z=!!T&&G.includes(T),H=null!=(n=null==t?void 0:t.name)?n:C,I=(0,a.useCallback)(function(e){var n=null!=j?j:"/subscribe/";(0,f._n)((0,r.jsxs)("span",{children:["You need a paid account to use this feature."," ",(0,r.jsx)("button",{className:"underline hover:opacity-80",onClick:function(){return(0,h.hd)(n,e)},type:"button",children:"View subscription offers"})]}),{closeButtonStyle:"text-amber-500 hover:text-amber-600 focus:ring-amber-500",containerStyle:"bg-amber-50",textColor:"text-amber-900"},{duration:1/0,id:"topic-follow-subscribe"})},[j]),M=(0,a.useCallback)(function(){if(!L&&T){if(z||(0,p.pU)(),!_){var e;return void(0,f.Zu)(((e=new URL(window.location.href)).searchParams.set(m,T),e.href))}if(!x)return void I(h.yh);A(T,!z).then(function(e){e&&!z&&b(H)}).catch(console.error)}},[x,T,L,z,I,A,H,_]),K=(0,a.useRef)(!1),Y=(0,a.useRef)(!1);if((0,a.useEffect)(function(){if(!L&&!K.current&&!Y.current&&T&&(0,f.qz)(m)===T&&y&&_){if(!x){K.current=!0,g(),I(h.md);return}var e,n,t=(0,v.ym)(_.uid);if(E&&t&&(null==(n=window.braze)||null==(e=n.getUser())?void 0:e.getUserId())===t&&O){if(G.includes(T)){K.current=!0,g();return}Y.current=!0,A(T,!0).then(function(e){e&&(K.current=!0,g(),b(H))}).catch(console.error).finally(function(){Y.current=!1})}}},[E,x,T,G,L,O,y,I,A,H,_]),!k||!T)return null;var q=L||V&&!O;return(0,r.jsxs)("button",{"aria-label":"".concat(z?"Unfollow":"Follow"," ").concat(H).trim(),"aria-pressed":z,className:(0,o.A)("flex h-9 w-[118px] shrink-0 items-center justify-center rounded-full py-0.5 font-inter text-sm font-medium leading-5 transition-colors",{"gap-1 border border-gray-300 bg-white px-5 text-gray-900 hover:border-gray-900":!z,"gap-2 bg-gray-800 px-3 text-white hover:opacity-80":z},q&&"cursor-not-allowed opacity-40"),disabled:q,onClick:M,type:"button",children:[(0,r.jsx)(u.y,{icon:z?i.e68:i.QLR}),z?"Following":"Follow"]})}},23912:(e,n,t)=>{t.d(n,{a:()=>o});var r=t(45159),i=t(35409);function o(){var e=(0,r.useRef)(!1);return(0,i.s)(function(){return e.current=!0,function(){e.current=!1}},[]),e}},25668:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0});var r=t(98952),i=t(57029),o=function(){for(var e,n=arguments.length,t=Array(n),i=0;i<n;i++)t[i]=arguments[i];if(!window.hj)throw Error("Hotjar is not initialized");(e=window).hj.apply(e,r._(t))};e.exports={hotjar:{initialize:function(e){var n=e.id,t=e.sv;i({id:n,sv:t,debug:e.debug,nonce:e.nonce})},initialized:function(){var e;return"u">typeof window&&"function"==typeof(null==(e=window)?void 0:e.hj)},identify:function(e,n){o("identify",e,n)},event:function(e){o("event",e)},stateChange:function(e){o("stateChange",e)}}}},57029:e=>{e.exports=function(e){var n,t,r,i,o=e.id,a=e.sv,u=e.debug,l=e.nonce,c=void 0===l?null:l;n=window,t=document,n.hj=n.hj||function(){(n.hj.q=n.hj.q||[]).push(arguments)},n._hjSettings={hjid:o,hjsv:a,hjDebug:void 0!==u&&u},n._scriptPath="https://static.hotjar.com/c/hotjar-"+n._hjSettings.hjid+".js?sv="+n._hjSettings.hjsv,document.querySelector('script[src*="'+n._scriptPath+'"]')||(r=t.getElementsByTagName("head")[0],i=t.createElement("script"),c&&i.setAttribute("nonce",c),i.async=1,i.src=n._scriptPath,r.appendChild(i))}},66877:(e,n,t)=>{t.d(n,{hd:()=>o,md:()=>r,yh:()=>i});var r="cta_modal",i="cta_pill";function o(e,n){var t=new URL(e,window.location.href);t.searchParams.set("perso_source","index"),t.searchParams.set("perso_medium",n),t.searchParams.set("perso_campaign","personalisation"),window.location.href=t.href}},70172:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(60143),i=t(29722);function o(e){var n=e.className,t=e.show,o=e.text;return t&&o?(0,r.jsx)("h1",{className:(0,i.A)("font-inter text-3xl font-bold text-gray-900 md:text-5xl",void 0===n?"mb-4 md:mb-5":n),children:o}):null}},86300:(e,n,t)=>{t.d(n,{CH:()=>v,E2:()=>s,OQ:()=>l,Y$:()=>p,_q:()=>d,fo:()=>f,pU:()=>m,ss:()=>h,y1:()=>c});var r=t(63233),i="carousel",o="for you",a="list";function u(e){(0,r.CI)({data:e,event:"personalisation_interactions"})}function l(){u({action:"impression",category:i})}function c(e){u({action:"click",category:i,label:e,section:o,type:"pill"})}function s(e){c(e)}function d(e){c(e.toLowerCase())}function f(e){var n=e.storyId;u({action:"click",category:i,label:e.title,section:o,story_id:String(n),type:"article"})}function v(){u({action:"click",category:i,label:"Manage Topics",section:o,type:"navigation"})}function h(e){u({action:"click",category:a,label:e,section:"manage topics",type:"remove"})}function p(e){u({action:"click",category:a,label:e,section:"suggested topics",type:"add"})}function m(){u({action:"click",label:"follow",type:"follow_topic"})}},94831:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(22514),i=t(91167),o=t(19927),a=t(45159);let u=a.forwardRef(function(e,n){var t=(0,o._)([e,n]),u=t[0],l=t.slice(1),c=u.title,s=u.titleId,d=(0,r._)(u,["title","titleId"]),f=(0,i._)(l,1)[0];return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":s},d),c?a.createElement("title",{id:s},c):null,a.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.