!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@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60093fee-bcf2-4079-932d-084b308c4aff",e._sentryDebugIdIdentifier="sentry-dbid-60093fee-bcf2-4079-932d-084b308c4aff")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["88491"],{27569:function(e,t,n){n.d(t,{A:()=>r});let r={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,n){n.d(t,{A:()=>r});let r={container:"container-jte8en",divider:"divider-Ti4OTa"}},55739:function(e,t,n){n.d(t,{A:()=>r});let r={backdrop:"backdrop-IqiELY",transition:"transition-CrwMKT",from:"from-UFAeOt",to:"to-HQoi62"}},77700:function(e,t,n){n.d(t,{A:()=>r});let r={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,n){n.d(t,{A:()=>r});let r={tosCheckbox:"tosCheckbox-XbLWCT"}},43399:function(e,t,n){n.d(t,{_:()=>o});var r=n(4006),i=n(97731),a=n(21673);function o(e){let{className:t,type:n,accentColor:o}=e;return(0,r.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,r.Y)("circle",{cx:"11",cy:"11",r:"11",fill:"var(--color-bg-primary)"}),(0,r.Y)("circle",{cx:"11",cy:"11",r:"9",fill:o||a.v}),"subscribed"===n?(0,r.FD)(r.FK,{children:[(0,r.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,r.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,r.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,r.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,r.FD)(r.FK,{children:[(0,r.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,r.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,r.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,r.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,r.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,n){n.d(t,{o:()=>f});var r=n(69277),i=n(70408),a=n(32641),o=n(4006),s=n(32485),l=n.n(s),c=n(89490),u=n(39318),d=n(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:n,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*n,3*n]:[],x=Math.max(...C,n),Y=null;Y=s||(w?"".concat(n,"px"):"100vw");let A=e=>(null==f?void 0:f.height)?{height:Math.floor(e/(n/f.height)),aspect:null}:{},z=Array.from(new Set([...u.MYz,n,...C]));z.sort((e,t)=>e-t);let I=z.map(e=>({width:e,src:(0,d.dJ9)(t,e,(0,r._)({},f,A(e)))})).filter(e=>e.width<=x),E=z.map(e=>({width:e,src:(0,d.dJ9)(t,e,(0,i._)((0,r._)({},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,n,(0,i._)((0,r._)({},f),{format:"webp"}))}),(0,o.Y)("img",(0,i._)((0,r._)({className:l()(h.img,p,b&&h["object-fit-".concat(b)],(0,c.iF)({radius:v})),src:(0,d.dJ9)(t,n,f),sizes:Y,alt:m,srcSet:I.length>1?I.map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "):void 0,width:n,height:null==f?void 0:f.height},k),{ref:g}))]})}},84605:function(e,t,n){n.d(t,{GO:()=>f,OW:()=>h,Pz:()=>m,wr:()=>p});var r=n(69277),i=n(70408),a=n(4006),o=n(12215),s=n.n(o),l=n(17402),c=n(86500),u=n(96400),d=n(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,n=Array(t>1?t-1:0),r=1;rt,iPlural:(e,t,n)=>parseInt(n.toString())>1?t:e,iTemplate:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r4?i-4:0),o=4;ovoid 0,iMarker:e=>e});function f(){return(0,l.useContext)(h)}function m(e){let{children:t,language:n="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,r._)({language:n,baseLanguage:n,preferredLanguage:f,userLocale:e,setPreferredLanguage:e=>{(0,c.u4)(c.qY.PREFERRED_LANGUAGE_SET,{from:n,to:e,surface:"writer-signup"}),m(e)}},u.TH.i(n))},[n,f,i]);return(0,a.Y)(h.Provider,{value:p,children:t})}function p(e){let t=(0,l.forwardRef)((t,n)=>{let o=f();return(0,a.Y)(e,(0,i._)((0,r._)({},o,t),{ref:n}))});return t.displayName="withI18NContext(".concat(e.displayName||e.name||"Anonymous",")"),t}h.displayName="I18NContext"},13022:function(e,t,n){n.d(t,{Ay:()=>o,XA:()=>s,y0:()=>a});var r=n(4006),i=n(85478);function a(e){var t;if(!e||"undefined"==typeof window||!(null==(t=window._preloads)?void 0:t.siteConfigs))return null;let n=window._preloads.siteConfigs[e];return void 0===n?null:n}let o=a;function s(e){let{configKey:t,children:n,value:a=!0}=e;return(0,i.mJ)().getConfigFor(t)==a?(0,r.Y)(r.FK,{children:n}):null}},24078:function(e,t,n){n.d(t,{NV:()=>j,V0:()=>F,dm:()=>A,eu:()=>Y,j0:()=>I,mM:()=>S,q5:()=>L,tp:()=>z});var r=n(69277),i=n(70408),a=n(32641),o=n(4006),s=n(32485),l=n.n(s),c=n(17402),u=n(33764),d=n(84605),h=n(31392),f=n(89490),m=n(76977),p=n(1232),g=n(64456),_=n(22602),b=n(75303),v=n(63136),y=n(21398),w=n(39318),k=n(92636),C=n(46058),x=n(13561);function Y(e){var{user:t,photoUrl:n,className:s,size:l=32,alt:c}=e,u=(0,a._)(e,["user","photoUrl","className","size","alt"]);let{photoUrl:d,profileName:h}=R(t,n),f=(0,p.P)(h,c);return(0,o.Y)(I,(0,i._)((0,r._)({},u),{className:s,size:l,children:(0,o.Y)(W,(0,r._)({src:null!=d?d:"",title:h,size:l,alt:f},u))}))}function A(e){var{user:t,photoUrl:n,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,n,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,r._)({linkProps:(0,r._)({href:e},s),className:c,size:u,ariaLabel:y},m),{children:(0,o.Y)(W,(0,r._)({src:null!=g?g:"",title:b,size:u,alt:v},m))}))}return(0,o.Y)(Y,(0,r._)({user:t,photoUrl:n,size:u,alt:v},m))}function z(e){var{user:t,photoUrl:n,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,n,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,r._)({user:t,linkProps:(0,r._)({href:e},s),size:u,className:c,ariaLabel:y},m),{children:(0,o.Y)(W,(0,r._)({src:null!=g?g:"",title:b,size:u,alt:v},m))}))}return(0,o.Y)(Y,(0,r._)({user:t,photoUrl:n,size:u,alt:v},m))}function I(e){let{size:t=32,className:n,disabled:r,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,r&&x.A.disabled,n),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:n,disabled:r,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,r&&x.A.disabled,x.A.interactive,n),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:n,linkProps:s,ariaLabel:l}=e,c=(0,a._)(e,["children","title","linkProps","ariaLabel"]);return(0,o.Y)(b.AE,(0,i._)((0,r._)({},s),{"aria-label":l,children:(0,o.Y)(E,(0,i._)((0,r._)({title:n},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,r._)({linkProps:l,ariaLabel:c},u),{children:s}));return(0,o.Y)(y.Ic,{module:"@/frontend/components/ProfileHoverCard",resolve:e=>e.ProfileHoverCard,onRequest:()=>Promise.all([n.e("43876"),n.e("75058"),n.e("61861"),n.e("85929"),n.e("36181"),n.e("23553"),n.e("97957"),n.e("99795"),n.e("94551"),n.e("43327"),n.e("1249"),n.e("54636"),n.e("60413"),n.e("96109"),n.e("12241"),n.e("70527"),n.e("51020"),n.e("68189"),n.e("63149"),n.e("51142")]).then(n.bind(n,27437)),whileLoading:d,subject:(0,r._)({id:0,name:""},t),trigger:d})}function L(e){var{size:t=32}=e,n=(0,a._)(e,["size"]);let{darkMode:s}=(0,h.D2)(),{iString:l}=(0,d.GO)();return(0,o.Y)(I,(0,i._)((0,r._)({},n),{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:n,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,r._)({title:n},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:n=32}=e,s=(0,a._)(e,["text","size"]);return(0,o.Y)(I,(0,i._)((0,r._)({},s),{size:n,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:n,size:s=32,ariaLabel:l}=e,u=(0,a._)(e,["icon","size","ariaLabel"]);let d=(0,g.j)(n),h=null!=(t=null!=l?l:d)?t:"Icon avatar";return(0,o.Y)(I,(0,i._)((0,r._)({size:s},u),{ariaLabel:h,children:n&&(0,c.cloneElement)(n,{size:s,className:x.A.icon})}))}function S(e){let{size:t=32,className:n}=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:n})})}function R(e,t,n){var r,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:n}):void 0,profileName:null!=(r=null==e?void 0:e.name)?r:"User"}}},60322:function(e,t,n){n.d(t,{S:()=>f});var r=n(69277),i=n(70408),a=n(32641),o=n(4006),s=n(87951),l=n(32485),c=n.n(l),u=n(86241),d=n(45773),h=n(94285);function f(e){var{size:t="md",checked:n,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,r._)({checked:n,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"===n?(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,n){n.d(t,{I1:()=>d,VP:()=>h,Ye:()=>c,fI:()=>u,ov:()=>f,pT:()=>l});var r=n(69277),i=n(70408),a=n(4006),o=n(17402),s=n(89490);let l=(0,o.forwardRef)(function(e,t){return(0,a.Y)(s.az,(0,i._)((0,r._)({},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,r._)({},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,n){n.d(t,{AE:()=>i.A,I4:()=>a.I4,VP:()=>r.VP,fI:()=>r.fI,iF:()=>a.iF,ov:()=>r.ov});var r=n(1156),i=n(13892),a=n(89490)},66684:function(e,t,n){n.d(t,{A:()=>a});var r=n(66067),i=n.n(r);function a(e){return i().decode(e||"")}},39891:function(e,t,n){n.d(t,{EV:()=>a,d4:()=>o,dJ:()=>i});var r=n(92636);function i(e,t){var n,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,r.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==(n=i.location)?void 0:n.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(r.w4))return e;if(e.startsWith("https://d3b3sm9t19x0yd.cloudfront.net"))return e.replace(/^https:\/\/d3b3sm9t19x0yd\.cloudfront\.net/,r.w4);if(e.startsWith("https://res.cloudinary.com"))return e.replace(/^https:\/\/res\.cloudinary\.com\/[^/]+/,r.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 n=o(e);if(n){let e=t/m,r=n.width/n.height;(e<1&&r>=1||e>=1&&r<1||1===e&&r>=1||1===e&&r<=1)&&Math.abs(e-r)>=.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,n]=p.split(":").map(e=>parseFloat(e));m=Math.round(t*n/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 n=0;n>8&255,0x1000193)}let n=t>>>0;return btoa(String.fromCharCode(n>>>24&255,n>>>16&255,n>>>8&255,255&n)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"").slice(0,4)}(e),"!");return"".concat(r.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 n=t.exec(e);if(n)return decodeURIComponent(n[1])}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,n){n.d(t,{uV:()=>i});var r=n(99851);class i extends Error{localizeBody(e){let t=this.response.body;if(!t||"object"!=typeof t)return;let n=t=>this._formatKey?e.iString(this._formatKey,...this._formatValues.map(String)):e.iString(t);if("string"==typeof t.error&&t.error&&(t.error=n(t.error)),Array.isArray(t.errors))for(let r of t.errors)"string"==typeof r.msg&&r.msg&&(r.msg=n(r.msg)),"string"==typeof r.msgHTML&&r.msgHTML&&(r.msgHTML=e.iString(r.msgHTML))}constructor(e,t={},n=!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