!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@e2042cf"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98ff63e9-1085-455d-80b1-fc6f366d2068",e._sentryDebugIdIdentifier="sentry-dbid-98ff63e9-1085-455d-80b1-fc6f366d2068")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["88491"],{27569:function(e,t,r){r.d(t,{A:()=>n});let n={container:"container-IpPqBD",form:"form-M5sC90",sideBySideWrap:"sideBySideWrap-vGXrwP",emailInput:"emailInput-OkIMeB",emailInputOnAccentBackground:"emailInputOnAccentBackground-TfaCGr",emailInputExpectTruncation:"emailInputExpectTruncation-VNj17x",emailInputOnWelcomePage:"emailInputOnWelcomePage-nqc9VK",emailInputWrapper:"emailInputWrapper-QlA86j",emailInputWrapperExpectTruncation:"emailInputWrapperExpectTruncation-w6Fd5V",button:"button-VFSdkv",buttonOnAccentBackground:"buttonOnAccentBackground-vmEt94",disabled:"disabled-AfIHDS",links:"links-EJFIL2"}},60539:function(e,t,r){r.d(t,{A:()=>n});let n={container:"container-jte8en",divider:"divider-Ti4OTa"}},55739:function(e,t,r){r.d(t,{A:()=>n});let n={backdrop:"backdrop-IqiELY",transition:"transition-CrwMKT",from:"from-UFAeOt",to:"to-HQoi62"}},77700:function(e,t,r){r.d(t,{A:()=>n});let n={root:"root-JjzOuP",sm:"sm-NTA_dM",md:"md-t9_OLv",theme_error:"theme_error-iKFnqH",themeError:"theme_error-iKFnqH",thumb:"thumb-OAFcQz",theme_accent:"theme_accent-jLc1V8",themeAccent:"theme_accent-jLc1V8",theme_success:"theme_success-OT7UOf",themeSuccess:"theme_success-OT7UOf",theme_select:"theme_select-ZrBXM7",themeSelect:"theme_select-ZrBXM7"}},84479:function(e,t,r){r.d(t,{A:()=>n});let n={tosCheckbox:"tosCheckbox-XbLWCT"}},43399:function(e,t,r){r.d(t,{_:()=>o});var n=r(4006),i=r(97731),a=r(21673);function o(e){let{className:t,type:r,accentColor:o}=e;return(0,n.FD)(i.A,{name:"ReaderBadgeIcon",className:t,svgParams:{width:22,height:22,viewBox:"0 0 22 22"},fill:"none",stroke:"none",strokeWidth:1,children:[(0,n.Y)("circle",{cx:"11",cy:"11",r:"11",fill:"var(--color-bg-primary)"}),(0,n.Y)("circle",{cx:"11",cy:"11",r:"9",fill:o||a.v}),"subscribed"===r?(0,n.FD)(n.FK,{children:[(0,n.Y)("ellipse",{rx:"2.72196",ry:"2.68806",transform:"matrix(0.707101 -0.707113 0.707101 0.707113 12.926 12.9255)",stroke:"white"}),(0,n.Y)("ellipse",{rx:"2.72196",ry:"2.68806",transform:"matrix(0.707101 -0.707113 0.707101 0.707113 9.07543 9.07503)",stroke:"white"}),(0,n.Y)("ellipse",{rx:"2.68806",ry:"2.72196",transform:"matrix(-0.707101 -0.707113 -0.707101 0.707113 9.05152 12.9494)",stroke:"white"}),(0,n.Y)("ellipse",{rx:"2.68806",ry:"2.72196",transform:"matrix(-0.707101 -0.707113 -0.707101 0.707113 12.95 9.05009)",stroke:"white"})]}):(0,n.FD)(n.FK,{children:[(0,n.Y)("path",{d:"M11.9018 10.3229C11.9018 12.2029 10.3777 13.7269 8.49775 13.7269C6.61777 13.7269 5.09375 12.2029 5.09375 10.3229C5.09375 8.44296 6.61777 6.91894 8.49775 6.91894C10.3777 6.91894 11.9018 8.44296 11.9018 10.3229Z",stroke:"white"}),(0,n.Y)("path",{d:"M12.8178 13.4959C12.8178 15.3759 11.2938 16.8999 9.41377 16.8999C7.5338 16.8999 6.00977 15.3759 6.00977 13.4959C6.00977 11.6159 7.5338 10.0919 9.41377 10.0919C11.2938 10.0919 12.8178 11.6159 12.8178 13.4959Z",stroke:"white"}),(0,n.Y)("path",{d:"M15.9564 13.503C15.9564 15.383 14.4324 16.907 12.5524 16.907C10.6725 16.907 9.14844 15.383 9.14844 13.503C9.14844 11.623 10.6725 10.099 12.5524 10.099C14.4324 10.099 15.9564 11.623 15.9564 13.503Z",stroke:"white"}),(0,n.Y)("path",{d:"M14.4047 8.49824C14.4047 10.3782 12.8807 11.9022 11.0007 11.9022C9.1207 11.9022 7.59668 10.3782 7.59668 8.49824C7.59668 6.61826 9.1207 5.09424 11.0007 5.09424C12.8807 5.09424 14.4047 6.61826 14.4047 8.49824Z",stroke:"white"}),(0,n.Y)("path",{d:"M16.9066 10.3229C16.9066 12.2029 15.3826 13.7269 13.5026 13.7269C11.6227 13.7269 10.0986 12.2029 10.0986 10.3229C10.0986 8.44296 11.6227 6.91894 13.5026 6.91894C15.3826 6.91894 16.9066 8.44296 16.9066 10.3229Z",stroke:"white"})]})]})}},33764:function(e,t,r){r.d(t,{o:()=>f});var n=r(69277),i=r(70408),a=r(32641),o=r(4006),s=r(32485),l=r.n(s),c=r(89490),u=r(39318),d=r(49807);let h={img:"img-OACg1c","object-fit-cover":"object-fit-cover-u4ReeV",objectFitCover:"object-fit-cover-u4ReeV"};function f(e){var{src:t,maxWidth:r,imageSizingCss:s,imageProps:f={},alt:m="",className:p,imageRef:g,ignorePicture:_,objectFit:b,radius:v,useRetinaSizing:y,imageIsFixedWidth:w}=e,k=(0,a._)(e,["src","maxWidth","imageSizingCss","imageProps","alt","className","imageRef","ignorePicture","objectFit","radius","useRetinaSizing","imageIsFixedWidth"]);let C=y?[2*r,3*r]:[],x=Math.max(...C,r),Y=null;Y=s||(w?"".concat(r,"px"):"100vw");let A=e=>(null==f?void 0:f.height)?{height:Math.floor(e/(r/f.height)),aspect:null}:{},z=Array.from(new Set([...u.MYz,r,...C]));z.sort((e,t)=>e-t);let I=z.map(e=>({width:e,src:(0,d.dJ9)(t,e,(0,n._)({},f,A(e)))})).filter(e=>e.width<=x),E=z.map(e=>({width:e,src:(0,d.dJ9)(t,e,(0,i._)((0,n._)({},f,A(e)),{format:"webp"}))})).filter(e=>e.width<=x);return(0,o.FD)("picture",{style:_?{display:"contents"}:void 0,children:[E.length>1?(0,o.Y)("source",{type:"image/webp",srcSet:E.map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "),sizes:Y}):(0,o.Y)("source",{type:"image/webp",srcSet:(0,d.dJ9)(t,r,(0,i._)((0,n._)({},f),{format:"webp"}))}),(0,o.Y)("img",(0,i._)((0,n._)({className:l()(h.img,p,b&&h["object-fit-".concat(b)],(0,c.iF)({radius:v})),src:(0,d.dJ9)(t,r,f),sizes:Y,alt:m,srcSet:I.length>1?I.map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "):void 0,width:r,height:null==f?void 0:f.height},k),{ref:g}))]})}},84605:function(e,t,r){r.d(t,{GO:()=>f,OW:()=>h,Pz:()=>m,wr:()=>p});var n=r(69277),i=r(70408),a=r(4006),o=r(12215),s=r.n(o),l=r(17402),c=r(86500),u=r(96400),d=r(91392);let h=(0,l.createContext)({language:"en",baseLanguage:"en",preferredLanguage:s().get(d.HY.PREFERRED_LANGUAGE),userLocale:void 0,iString:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;nt,iPlural:(e,t,r)=>parseInt(r.toString())>1?t:e,iTemplate:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n4?i-4:0),o=4;ovoid 0,iMarker:e=>e});function f(){return(0,l.useContext)(h)}function m(e){let{children:t,language:r="en",locale:i,preferredLanguage:o}=e,[f,m]=(0,l.useState)(()=>o);(0,l.useEffect)(()=>{f?s().set(d.HY.PREFERRED_LANGUAGE,f):s().remove(d.HY.PREFERRED_LANGUAGE)},[f]);let p=(0,l.useMemo)(()=>{let e=i?"".concat(i.language,"-").concat(i.region):void 0;return(0,n._)({language:r,baseLanguage:r,preferredLanguage:f,userLocale:e,setPreferredLanguage:e=>{(0,c.u4)(c.qY.PREFERRED_LANGUAGE_SET,{from:r,to:e,surface:"writer-signup"}),m(e)}},u.TH.i(r))},[r,f,i]);return(0,a.Y)(h.Provider,{value:p,children:t})}function p(e){let t=(0,l.forwardRef)((t,r)=>{let o=f();return(0,a.Y)(e,(0,i._)((0,n._)({},o,t),{ref:r}))});return t.displayName="withI18NContext(".concat(e.displayName||e.name||"Anonymous",")"),t}h.displayName="I18NContext"},13022:function(e,t,r){r.d(t,{Ay:()=>o,XA:()=>s,y0:()=>a});var n=r(4006),i=r(85478);function a(e){var t;if(!e||"undefined"==typeof window||!(null==(t=window._preloads)?void 0:t.siteConfigs))return null;let r=window._preloads.siteConfigs[e];return void 0===r?null:r}let o=a;function s(e){let{configKey:t,children:r,value:a=!0}=e;return(0,i.mJ)().getConfigFor(t)==a?(0,n.Y)(n.FK,{children:r}):null}},24078:function(e,t,r){r.d(t,{NV:()=>j,V0:()=>F,dm:()=>A,eu:()=>Y,j0:()=>I,mM:()=>S,q5:()=>L,tp:()=>z});var n=r(69277),i=r(70408),a=r(32641),o=r(4006),s=r(32485),l=r.n(s),c=r(17402),u=r(33764),d=r(84605),h=r(31392),f=r(89490),m=r(76977),p=r(1232),g=r(64456),_=r(22602),b=r(75303),v=r(63136),y=r(21398),w=r(39318),k=r(92636),C=r(46058),x=r(13561);function Y(e){var{user:t,photoUrl:r,className:s,size:l=32,alt:c}=e,u=(0,a._)(e,["user","photoUrl","className","size","alt"]);let{photoUrl:d,profileName:h}=R(t,r),f=(0,p.P)(h,c);return(0,o.Y)(I,(0,i._)((0,n._)({},u),{className:s,size:l,children:(0,o.Y)(W,(0,n._)({src:null!=d?d:"",title:h,size:l,alt:f},u))}))}function A(e){var{user:t,photoUrl:r,linkProps:s,noBase:l,className:c,size:u=32,alt:d,ariaLabel:h,utmSource:f}=e,m=(0,a._)(e,["user","photoUrl","linkProps","noBase","className","size","alt","ariaLabel","utmSource"]);let{photoUrl:g,profileUrl:_,profileName:b}=R(t,r,l),v=(0,p.P)(b,d),y=(0,p.C)(b,h);if(_){let e=f?(0,k.yR)(_,{utm_source:f}):_;return(0,o.Y)(N,(0,i._)((0,n._)({linkProps:(0,n._)({href:e},s),className:c,size:u,ariaLabel:y},m),{children:(0,o.Y)(W,(0,n._)({src:null!=g?g:"",title:b,size:u,alt:v},m))}))}return(0,o.Y)(Y,(0,n._)({user:t,photoUrl:r,size:u,alt:v},m))}function z(e){var{user:t,photoUrl:r,linkProps:s,noBase:l,className:c,size:u=32,alt:d,ariaLabel:h,utmSource:f}=e,m=(0,a._)(e,["user","photoUrl","linkProps","noBase","className","size","alt","ariaLabel","utmSource"]);let{photoUrl:g,profileUrl:_,profileName:b}=R(t,r,l),v=(0,p.P)(b,d),y=(0,p.C)(b,h);if(_){let e=f?(0,k.yR)(_,{utm_source:f}):_;return(0,o.Y)(P,(0,i._)((0,n._)({user:t,linkProps:(0,n._)({href:e},s),size:u,className:c,ariaLabel:y},m),{children:(0,o.Y)(W,(0,n._)({src:null!=g?g:"",title:b,size:u,alt:v},m))}))}return(0,o.Y)(Y,(0,n._)({user:t,photoUrl:r,size:u,alt:v},m))}function I(e){let{size:t=32,className:r,disabled:n,radius:i,children:a,title:s,bg:c,ariaLabel:u}=e;return(0,o.Y)(m.pT,{width:t,height:t,bg:null!=c?c:"secondary",className:l()(x.A.container,n&&x.A.disabled,r),style:{"--scale":"".concat(t,"px")},alignItems:"center",justifyContent:"center",outline:"detail",radius:null!=i?i:"full",overflow:"hidden",position:"relative",sizing:"border-box",flex:"auto",title:s,"aria-label":u,children:a})}function E(e){let{size:t=32,className:r,disabled:n,radius:i,children:a,title:s,bg:c}=e;return(0,o.Y)(m.pT,{width:t,height:t,bg:null!=c?c:"secondary",className:l()(x.A.container,n&&x.A.disabled,x.A.interactive,r),style:{"--scale":"".concat(t,"px")},alignItems:"center",justifyContent:"center",outline:"detail",radius:null!=i?i:"full",overflow:"hidden",position:"relative",sizing:"border-box",flex:"auto",title:s,showFocus:!0,animate:!0,pressable:"sm",children:a})}function N(e){var{children:t,title:r,linkProps:s,ariaLabel:l}=e,c=(0,a._)(e,["children","title","linkProps","ariaLabel"]);return(0,o.Y)(b.AE,(0,i._)((0,n._)({},s),{"aria-label":l,children:(0,o.Y)(E,(0,i._)((0,n._)({title:r},c),{children:t}))}))}function P(e){var{user:t,children:s,linkProps:l,ariaLabel:c}=e,u=(0,a._)(e,["user","children","linkProps","ariaLabel"]);let d=(0,o.Y)(N,(0,i._)((0,n._)({linkProps:l,ariaLabel:c},u),{children:s}));return(0,o.Y)(y.Ic,{module:"@/frontend/components/ProfileHoverCard",resolve:e=>e.ProfileHoverCard,onRequest:()=>Promise.all([r.e("43876"),r.e("75058"),r.e("61861"),r.e("85929"),r.e("83988"),r.e("23553"),r.e("97957"),r.e("99795"),r.e("94551"),r.e("7678"),r.e("54636"),r.e("65343"),r.e("96109"),r.e("12241"),r.e("70527"),r.e("8953"),r.e("63149"),r.e("71002")]).then(r.bind(r,27437)),whileLoading:d,subject:(0,n._)({id:0,name:""},t),trigger:d})}function L(e){var{size:t=32}=e,r=(0,a._)(e,["size"]);let{darkMode:s}=(0,h.D2)(),{iString:l}=(0,d.GO)();return(0,o.Y)(I,(0,i._)((0,n._)({},r),{size:t,children:(0,o.Y)(u.o,{src:s?C.cp:w.D09,maxWidth:t,useRetinaSizing:!0,imageIsFixedWidth:!0,draggable:!1,imageProps:{crop:"fill"},alt:l("Avatar")})}))}function W(e){var{src:t,title:r,size:s=32,alt:l,loading:c}=e,d=(0,a._)(e,["src","title","size","alt","loading"]);return(0,o.Y)(I,(0,i._)((0,n._)({title:r},d),{size:s,children:(0,o.Y)(u.o,{src:t,maxWidth:s,useRetinaSizing:!0,imageIsFixedWidth:!0,draggable:!1,imageProps:{crop:"fill",height:s},objectFit:"cover",alt:l,loading:c})}))}function j(e){var{text:t,size:r=32}=e,s=(0,a._)(e,["text","size"]);return(0,o.Y)(I,(0,i._)((0,n._)({},s),{size:r,children:(0,o.Y)(v.EY,{as:"span",font:"text",weight:"semibold",align:"center",className:x.A.text,children:t})}))}function F(e){var t,{icon:r,size:s=32,ariaLabel:l}=e,u=(0,a._)(e,["icon","size","ariaLabel"]);let d=(0,g.j)(r),h=null!=(t=null!=l?l:d)?t:"Icon avatar";return(0,o.Y)(I,(0,i._)((0,n._)({size:s},u),{ariaLabel:h,children:r&&(0,c.cloneElement)(r,{size:s,className:x.A.icon})}))}function S(e){let{size:t=32,className:r}=e;return(0,o.Y)(f.az,{style:{"--scale":"".concat(t,"px")},display:"contents",children:(0,o.Y)(_.O,{width:t,height:t,radius:"full",outline:"detail",flex:"auto",className:r})})}function R(e,t,r){var n,i;let{darkMode:a}=(0,h.D2)();return{photoUrl:t||(0,w.pIF)(e,{darkMode:a}),profileUrl:e&&"object"==typeof(i=e)&&null!==i&&"id"in i?(0,w.gYq)(e,{noBase:r}):void 0,profileName:null!=(n=null==e?void 0:e.name)?n:"User"}}},60322:function(e,t,r){r.d(t,{S:()=>f});var n=r(69277),i=r(70408),a=r(32641),o=r(4006),s=r(87951),l=r(32485),c=r.n(l),u=r(86241),d=r(45773),h=r(94285);function f(e){var{size:t="md",checked:r,theme:l="accent",onChange:f,className:p}=e,g=(0,a._)(e,["size","checked","theme","onChange","className"]);let _=m[t];return(0,o.Y)(s.bL,(0,i._)((0,n._)({checked:r,onCheckedChange:e=>{f(!0===e)},onClick:e=>e.stopPropagation(),className:c()("pencraft",h.A.root,h.A[t],h.A["theme_".concat(l)],p)},g),{children:(0,o.Y)(s.C1,{asChild:!0,forceMount:!0,children:"indeterminate"===r?(0,o.Y)(u.A,{size:_.size,strokeWidth:_.strokeWidth,className:h.A.icon}):(0,o.Y)(d.A,{size:_.size,strokeWidth:_.strokeWidth,className:h.A.icon})})}))}let m={xs:{size:12,strokeWidth:3.5},sm:{size:14,strokeWidth:3},md:{size:18,strokeWidth:2.5}}},76977:function(e,t,r){r.d(t,{I1:()=>d,VP:()=>h,Ye:()=>c,fI:()=>u,ov:()=>f,pT:()=>l});var n=r(69277),i=r(70408),a=r(4006),o=r(17402),s=r(89490);let l=(0,o.forwardRef)(function(e,t){return(0,a.Y)(s.az,(0,i._)((0,n._)({},e),{display:e.display||"flex",ref:t}))}),c=l,u=c,d=(0,o.forwardRef)(function(e,t){return(0,a.Y)(s.az,(0,i._)((0,n._)({},e),{display:e.display||"flex",direction:"column",ref:t}))}),h=d,f=(0,s.yw)({display:"flex",justifyContent:"center",alignItems:"center"})},75303:function(e,t,r){r.d(t,{AE:()=>i.A,I4:()=>a.I4,VP:()=>n.VP,fI:()=>n.fI,iF:()=>a.iF,ov:()=>n.ov});var n=r(1156),i=r(13892),a=r(89490)},66684:function(e,t,r){r.d(t,{A:()=>a});var n=r(66067),i=r.n(n);function a(e){return i().decode(e||"")}},39891:function(e,t,r){r.d(t,{EV:()=>a,d4:()=>o,dJ:()=>i});var n=r(92636);function i(e,t){var r,i;let{quality:s="auto:good",format:l="auto",crop:c="limit",lossy:u=!1,attachment:d=!1,filename:h=null,gravity:f=null,height:m=null,aspect:p=null,backgroundColor:g,version:_=null,smartCrop:b=!1,portraitCrop:v=!1,skipDomainValidation:y=!1,leadingSegments:w=[],trailingSegments:k=[],blurSigma:C=null,bgAuto:x=null,enlarge:Y=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;e.startsWith("/")&&!e.startsWith("//")&&(e=(0,n.Ew)()+e),e=a(e);try{if(new URL(e).hostname.endsWith(".localhost"))return e}catch(e){}if("undefined"!=typeof window&&(null==(i=window)||null==(r=i.location)?void 0:r.hostname)&&["subwit.com","herokuapp.com"].reduce((e,t)=>e||window.location.hostname.endsWith(t),!1)&&(e=e.replace("//substack.com","//".concat(window.location.hostname))),e.startsWith("https://substackcdn.com")||e.startsWith(n.w4))return e;if(e.startsWith("https://d3b3sm9t19x0yd.cloudfront.net"))return e.replace(/^https:\/\/d3b3sm9t19x0yd\.cloudfront\.net/,n.w4);if(e.startsWith("https://res.cloudinary.com"))return e.replace(/^https:\/\/res\.cloudinary\.com\/[^/]+/,n.w4);if(!y&&!e.match(/^https?:\/\/(bucketeer[^/]*\.s3\.amazonaws\.com|(.*\.)?substack\.com|substack\.info|substack-post-media\.s3\.amazonaws\.com|substack-post-media-staging\.s3\.amazonaws\.com|substack-video\.s3\.amazonaws\.com|substack-video-staging\.s3\.amazonaws\.com|substack-staging-pr-\d+\.herokuapp\.com|.*\.ngrok\.io|.*\.subwit\.com|pbs\.twimg\.com|storage\.opensea\.io).*/))return e;if(b&&t&&m){let r=o(e);if(r){let e=t/m,n=r.width/r.height;(e<1&&n>=1||e>=1&&n<1||1===e&&n>=1||1===e&&n<=1)&&Math.abs(e-n)>=.5&&(c="fill",f=null!=f?f:"auto")}}if(b&&(c="fill",f=null!=f?f:"auto"),p&&t&&null==m){if("number"==typeof p)m=Math.round(t/p);else if("string"==typeof p&&p.match(/^(\d+\.?\d*:\d+\.?\d*|\d+\.?\d*)$/))if(p.includes(":")){let[e,r]=p.split(":").map(e=>parseFloat(e));m=Math.round(t*r/e)}else m=Math.round(t/Number(p))}let A=[t&&"w_".concat(t),m&&"h_".concat(m),c&&(t||m)&&"c_".concat(c),l&&"f_".concat(l),s&&"q_".concat(s),"fl_".concat(u?"lossy":"progressive:steep"),f&&"g_".concat(f),d&&"fl_attachment".concat(h?":".concat(h.replace(/,/g,"%252C")):""),x&&"b_auto:".concat(x),g&&"b_rgb:".concat(g),C&&"e_blur:".concat(C),Y&&"$enlarge_!1!"].filter(Boolean).join(","),z=[t&&"w_".concat(t),l&&"f_".concat(l),s&&"q_".concat(s),"fl_".concat(u?"lossy":"progressive:steep"),d&&"fl_attachment".concat(h?":".concat(h.replace(/,/g,"%252C")):""),g&&"b_rgb:".concat(g)].filter(Boolean).join(","),I=[c&&(t||m)&&"c_".concat(c),f&&"g_".concat(f),p?"ar_".concat(p):"ar_1"].filter(Boolean).join(","),E=v?z+"/if_ar_lt_1.0/"+I+"/if_end":[A].filter(Boolean).join(","),N=w.concat([E]).concat(k).join("/"),P="$s_!".concat(function(e){let t=0x811c9dc5;for(let r=0;r>8&255,0x1000193)}let r=t>>>0;return btoa(String.fromCharCode(r>>>24&255,r>>>16&255,r>>>8&255,255&r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"").slice(0,4)}(e),"!");return"".concat(n.w4,"/image/fetch/").concat(P,",").concat(N,"/").concat(encodeURIComponent(e+(_?"".concat(-1!==e.indexOf("?")?"&":"?","version=").concat(_):"")))}function a(e){if(!e)return e;for(let t of[/^https:\/\/substackcdn\.com\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i,/^https:\/\/substackcdn\.net\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i,/^https:\/\/cdn\.substack\.com\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i,/^https:\/\/cdn\.substack\.info\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i,/^https:\/\/d3b3sm9t19x0yd\.cloudfront\.net\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i,/^https:\/\/res\.cloudinary\.com\/hhsslviub\/image\/fetch\/(?:\$[^/]+\/)?[^/]+\/(.+)$/i]){let r=t.exec(e);if(r)try{return decodeURIComponent(r[1])}catch(e){break}}return e}function o(e){let t=e.match(/(\d+)x(\d+)(\.\w+)?$/);return t?{width:+t[1],height:+t[2]}:null}},60639:function(e,t,r){r.d(t,{uV:()=>i});var n=r(99851);class i extends Error{localizeBody(e){let t=this.response.body;if(!t||"object"!=typeof t)return;let r=t=>this._formatKey?e.iString(this._formatKey,...this._formatValues.map(String)):e.iString(t);if("string"==typeof t.error&&t.error&&(t.error=r(t.error)),Array.isArray(t.errors))for(let n of t.errors)"string"==typeof n.msg&&n.msg&&(n.msg=r(n.msg)),"string"==typeof n.msgHTML&&n.msgHTML&&(n.msgHTML=e.iString(n.msgHTML))}constructor(e,t={},r=!1,i=null){var a,o,s,l,c,u,d;let h,f,m=null,p=[],g=e;if("object"==typeof t&&(null==(a=t.values)?void 0:a.length)){m=e,p=t.values;for(let e=0;e