!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]="8d42c2a8-32c1-42ab-bb30-e728c18c8c0d",e._sentryDebugIdIdentifier="sentry-dbid-8d42c2a8-32c1-42ab-bb30-e728c18c8c0d")}catch(e){}}(),(()=>{"use strict";var e,t,n,a,i,r,o,s,l={37749:function(e,t,n){n.d(t,{A:()=>a});let a={chrome:"chrome-_LLvs8",hidden:"hidden-wHbbPQ",spinner:"spinner-Ti9Gdl",left:"left-YVRGou",right:"right-pvXhar",top:"top-deZX1P",bottom:"bottom-D60oFA",middle:"middle-DqhMOs",img:"img-nwpk1x",loading:"loading-UuPN_c"}},34372:function(e,t,n){n.d(t,{A:()=>a});let a={modalTitle:"modalTitle-uFJ1Ep",qrCode:"qrCode-zZoQdZ",appBadge:"appBadge-Vbgl8S",phoneInput:"phoneInput-PdUisS",noGrow:"noGrow-lP58Da"}},50756:function(e,t,n){n.d(t,{A:()=>a});let a={container:"container-D8CZbL","videoContainer-clip":"videoContainer-clip-KcDC9v",videoContainerClip:"videoContainer-clip-KcDC9v",videoContainerWrapper:"videoContainerWrapper-VrqlAM",videoIcon:"videoIcon-JWfwBB",videoContainer:"videoContainer-S7toSI",video:"video-dep_Pc",fullScreenContainer:"fullScreenContainer-oPOI4W","playerContainer-vertical":"playerContainer-vertical-nqZGWC",playerContainerVertical:"playerContainer-vertical-nqZGWC","playerContainer-landscape":"playerContainer-landscape-R9mTfd",playerContainerLandscape:"playerContainer-landscape-R9mTfd","playerContainer-vertical_fit":"playerContainer-vertical_fit-j9atXq",playerContainerVerticalFit:"playerContainer-vertical_fit-j9atXq","videoContainer-vertical_fit":"videoContainer-vertical_fit-ku5xgX",videoContainerVerticalFit:"videoContainer-vertical_fit-ku5xgX","video-vertical_fit":"video-vertical_fit-aJ3XQJ",videoVerticalFit:"video-vertical_fit-aJ3XQJ","playerContainer-vertical_fill":"playerContainer-vertical_fill-As6E90",playerContainerVerticalFill:"playerContainer-vertical_fill-As6E90","videoContainer-vertical_fill":"videoContainer-vertical_fill-pCmPd2",videoContainerVerticalFill:"videoContainer-vertical_fill-pCmPd2","video-vertical_fill":"video-vertical_fill-UOGFke",videoVerticalFill:"video-vertical_fill-UOGFke",videoPlayer:"videoPlayer-ySwQUq",generateClips:"generateClips-qHOZUt",spinner:"spinner-FpLDBB",backDrop:"backDrop-EWGPYa",downloadModal:"downloadModal-SupuMR"}},41301:function(e,t,n){n.d(t,{A:()=>a});let a={tag:"tag-vx6tKM"}},67022:function(e,t,n){n.d(t,{A:()=>a});let a={nativePickerInput:"nativePickerInput-TXPaXi"}},22674:function(e,t,n){n.d(t,{A:()=>a});let a={searchInput:"searchInput-fUS3Nw"}},22949:function(e,t,n){n.d(t,{A:()=>a});let a={content:"content-t9D9VH",tooltipOpen:"tooltipOpen-iE0yGo",tooltipClose:"tooltipClose-ATcY5K"}},95755:function(e,t,n){n.d(t,{A:()=>a});let a={modalBody:"modalBody-yrSvJm",captcha:"captcha-awCBm5"}},36083:function(e,t,n){n.d(t,{A:()=>a});let a={messageBubbleGroup:"messageBubbleGroup-R4lEWb",bubble:"bubble-JnQPTp",isFirst:"isFirst-cID827",isLast:"isLast-YVpa0l",quote:"quote-NJ4bEy",paywallReplyTag:"paywallReplyTag-_3sIGO",outgoing:"outgoing-hqKZeu",forceIncomingTheme:"forceIncomingTheme-fBbXPp",body:"body-obaIpu",author:"author-M_vI8F","reactions-1":"reactions-1-O8o884",reactions1:"reactions-1-O8o884","reactions-2":"reactions-2-NrnldS",reactions2:"reactions-2-NrnldS","reactions-3":"reactions-3-iPVLb0",reactions3:"reactions-3-iPVLb0",youtubeIframe:"youtubeIframe-rlkjkW",highlight:"highlight-u2yyKp","highlight-animation":"highlight-animation-rBjpTz",highlightAnimation:"highlight-animation-rBjpTz",imageGroup:"imageGroup-KAnMHU bubble-JnQPTp",incoming:"incoming-jCFnDy",postImage:"postImage-eO7gd7",b4:"b4-xXB4IY",bubbs:"bubbs-qLKn32",bubb:"bubb-yci1Gp",isLink:"isLink-NGEdg6",linkImage:"linkImage-FDEYzZ",small:"small-PzwGAf",actions:"actions-utvBvN",actionsWrapper:"actionsWrapper-CEt9E2",dots:"dots-_BmXB7",dot:"dot-XjG0Z6",typing:"typing-vNx1zN",flip:"flip-OUTl4B"}},6606:function(e,t,n){n.d(t,{A:()=>a});let a={layout:"layout-Pwsidg"}},16044:function(e,t,n){n.d(t,{A:()=>a});let a={blockContainer:"blockContainer-sGUymL",blockTitleContainer:"blockTitleContainer-_ayaxc",blockTitle:"blockTitle-p5J1JM",blockSubTitle:"blockSubTitle-b49Pjc",inlineContainer:"inlineContainer-pdOZS_",inlineText:"inlineText-mmZJjI"}},9751:function(e,t,n){n.d(t,{b:()=>p});var a=n(74848),i=n(84605);n(6049);var r=n(24078),o=n(35369),s=n(76977),l=n(63136),c=n(49807),d=n(57324),u=n(36092);function p(e){let{pub:t,subdomain:n}=e,{iString:d}=(0,i.GO)();return(0,a.jsxs)(s.I1,{className:u.A.webContainer,alignItems:"center",border:"detail-themed",radius:"md",padding:20,gap:16,as:"a",href:m(n),target:"_blank","data-component-name":"CommunityChatEmbed",children:[(0,a.jsx)(r.eu,{size:64,photoUrl:(0,c.dJ9)(t.author_photo_url)}),(0,a.jsxs)(s.I1,{gap:4,alignItems:"center",children:[(0,a.jsxs)(l.EY.H3,{translated:!0,as:"div",color:"pub-primary-text",children:["Join ",I18N.p(t.author_name),"’s subscriber chat"]}),(0,a.jsx)(l.EY.B4,{translated:!0,color:"pub-secondary-text",children:"Available in the Substack app and on web"})]}),(0,a.jsx)(s.I1,{alignSelf:"stretch",children:(0,a.jsx)(o.$n,{priority:"primary",href:m(n),children:d("Join chat")})})]})}function m(e){return(0,c.xWO)({pubKey:e,utm_source:d.VU.chatEmbed})}},58600:function(e,t,n){n.d(t,{B:()=>m});var a=n(74848),i=n(18993);n(41873),n(6049),n(89490),n(63136),n(39318);var r=n(49807);n(82776);var o=n(86500),s=n(94729),l=n(12501),c=n(44333),d=n(76977),u=n(57324),p=n(91348);function m(e){var t,n,m,h,g;let _,{postId:b}=e,{path:f}=(0,c.zy)();"undefined"!=typeof window&&(_=f.startsWith("/inbox/post/")?Number(f.split("/post/")[1]):"post"in window._preloads?null==(g=window._preloads)||null==(h=g.post)?void 0:h.id:void 0);let{error:A,result:E}=(0,l.st)({pathname:"/api/v1/community/posts/".concat(b),auto:!0,deps:[b]}),y=A instanceof s.fk&&402===A.response.status&&((null==(t=A.body)?void 0:t.status)==="PAID_SUBSCRIPTION_REQUIRED"||(null==(n=A.body)?void 0:n.status)==="FOUNDING_SUBSCRIPTION_REQUIRED"||(null==(m=A.body)?void 0:m.status)==="FREE_SUBSCRIPTION_REQUIRED")?A.body:null;return(0,a.jsx)(d.pT,{as:"a",className:p.A.container,target:"_blank",href:(0,r.sWz)({postId:b,utm_source:u.VU.threadEmbed}),"data-component-name":"CommunityPostEmbed",onClick:()=>(0,o.u4)(o.qY.EMBEDDED_COMMUNITY_POST_CLICKED,{post_id:_,community_post_id:b}),children:y?"FREE_SUBSCRIPTION_REQUIRED"===y.status&&y.communityPost?(0,a.jsx)(i.lS,{author:y.user,communityPost:y.communityPost,surface:"community_post_embed",communityPostEmbedPostId:_,useClientSideRouting:!1,withAttribution:!0,isReadOnly:!0,utmSource:u.VU.threadEmbed}):(0,a.jsx)(i.I8,{author:y.user,audience:"FREE_SUBSCRIPTION_REQUIRED"===y.status?"all_subscribers":"PAID_SUBSCRIPTION_REQUIRED"===y.status?"only_paid":"only_founding"}):A?"Could not load chat message: Click to view":E&&(0,a.jsx)(i.lS,{author:E.user,communityPost:E.communityPost,surface:"community_post_embed",communityPostEmbedPostId:_,utmSource:u.VU.threadEmbed,useClientSideRouting:!1,withAttribution:!0,isReadOnly:!0})})}},18993:function(e,t,n){n.d(t,{Dx:()=>e$,I8:()=>eS,gL:()=>em,lS:()=>ep});var a=n(69277),i=n(70408),r=n(32641),o=n(79785),s=n(74848);n(50172);var l=n(45994),c=n(32485),d=n.n(c),u=n(17582),p=n.n(u),m=n(99609),h=n(40972),g=n(54718),_=n(35404),b=n(82853),f=n(48587),A=n(54687),E=n(98188),y=n(37946),N=n(48686),O=n(16079),v=n(32708),x=n(65892),S=n(87677),w=n(67078),I=n(26683),M=n(73040),C=n(91461),k=n(86404),j=n(66443);n(72880),n(15688);var L=n(82936),R=n(84605),T=n(46275),P=n(46271),D=n(88325),B=n(46660),U=n(86500),G=n(27069),F=n(94729),W=n(72569),Y=n(68349),K=n(24078),H=n(15040),V=n(35369),z=n(17028),q=n(49315),J=n(75303),Z=n(81929),X=n(48965),Q=n(3046),$=n(46647),ee=n(69089),et=n(70486),en=n(42831);n(53457);var ea=n(32848),ei=n(47128),er=n(49807),eo=n(82776),es=n(11993),el=n(45464),ec=n(3898),ed=n(36083);function eu(){let e=(0,o._)(["You are not allowed to post or react to this chat. ",""]);return eu=function(){return e},e}function ep(e){var t,n,a;let{communityPost:i,author:r,pubRole:o,userStatus:c,extras:d,withAttribution:u,flex:p,hideReply:h,isReadOnly:g,onReply:_,onDelete:b,pub:f,truncate:A=!0,surface:E,useClientSideRouting:y,utmSource:N,isPaid:O,isFounding:v}=e,{iString:x}=(0,R.GO)(),S=(0,l.li)(null),w=y?(0,er.e$6)({pubId:i.publication_id,postId:i.id,noBase:!0}):(0,er.sWz)({postId:i.id,utm_source:N}),I=(0,en.d)({entityType:"communityPost",publication:f}),M=(0,L._N)(i.user_id);return(0,s.jsxs)(ek,{pubThemeAccentColor:null!=(a=null==f||null==(t=f.theme)?void 0:t.background_pop_color)?a:null==f?void 0:f.theme_var_background_pop,pubThemePrintOnPopColor:null==f||null==(n=f.theme)?void 0:n.print_on_pop,user:r,pubRole:o,userStatus:c,flex:p,containerRef:S,extras:d,children:[u&&(0,s.jsx)(e4,{text:"From ".concat(r.name,"’s subscriber chat")}),!M&&(0,s.jsx)(Q.Nf,{user:r}),(0,s.jsx)(eg,{actionMenuProps:{communityEntity:i,publicationId:i.publication_id,replyAction:_&&!h&&(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(m.A,{}),disabled:i.is_locked,onClick:_,children:x("Reply")}),onReply:g||h||i.is_locked?void 0:_,onDelete:b,onReport:I,isReadOnly:g,isFlagged:i.reported_by_user},flex:p,children:(0,s.jsx)(em,{communityPost:i,hideReply:h,userBlockStatus:M,isFounding:v,isPaid:O,isReadOnly:g,useClientSideRouting:y,utmSource:N,pub:f,truncate:A,surface:E,author:r})}),!h&&(0,s.jsx)(J.AE,{href:w,children:(0,s.jsx)(e$,{onClick:_,direction:"incoming",commenters:i.recent_commenters,count:i.comment_count,hasUnread:!!(i.most_recent_comment_created_at&&i.user_last_viewed_timestamp&&i.user_last_viewed_timestamp0||x),w=null!=f?f:{type:"posts",id:t.id},{audience:I}=t,{canReply:M,shouldShowToken:C}=e1({audience:I,isFounding:l,isPaid:c,chatPaywallStatus:null==u?void 0:u.paywall_chat}),k=(0,et.wA)(),L=h?(0,er.e$6)({pubId:t.publication_id,postId:t.id,noBase:!0,params:{backAction:N}}):(0,er.sWz)({postId:t.id,utm_source:g}),R=function(e,t){if(!e||!(null==t?void 0:t.url))return e;let n=t.url,a=e.trim();return a.startsWith(n)?a.slice(n.length).trim():a.endsWith(n)?a.slice(0,-n.length).trim():e}(t.body,t.link_metadata),T=e=>{"feed-recommended"!==w.type&&(A?A({id:t.id,reaction:e}):e_(t.id,"posts",k,t.reaction)(e))},P=null!=E?E:t.reaction,B=null!=y?y:t.reactions,U=p&&(p.startsWith("chat_inbox")?"chat_inbox":(0,D.u)(p));return(0,s.jsxs)(eV,{hasFooter:!n,children:[!r&&"media"===t.type&&(v.length>0||x)&&(0,s.jsxs)(ee.e,{context:w,reactions:B,currentReaction:P,onReactionClick:T,isReadOnly:o,children:[x&&(0,s.jsx)(ei.R8,{mediaUpload:x.mediaUpload,composing:!1,maxWidth:400,videoPlayerProps:{surface:U,entityType:"community_post",entityKey:t.id,contentType:"communityPost",primaryEntityKey:m,primaryEntityType:m?"post":void 0}},x.mediaUpload.id),v&&(0,s.jsxs)(z.az,{children:[(0,s.jsx)(j.K,{assets:v.filter(e=>e.url).map(e=>({src:e.url,explicit:e.explicit,width:e.width,height:e.height})),className:d()(el.A.imageGroup,n&&!t.body&&el.A.isLast),maxWidth:400,maxHeight:420,readOnly:o,isContained:!0,outline:O}),C&&!t.body&&(0,s.jsx)(eJ,{className:el.A.right,canReply:!!M,audience:t.audience,style:"media"})]})]}),!r&&t.link_metadata&&(0,s.jsx)(ee.e,{context:w,reactions:B,currentReaction:null!=E?E:t.reaction,onReactionClick:T,setReactions:!!(S&&t.link_metadata),isReadOnly:o,alignSelf:"stretch",children:(0,s.jsx)(Q.ZT,{metadata:t.link_metadata,isFirst:S,direction:"incoming"})}),(t.body||S&&!t.link_metadata)&&(0,s.jsx)(ee.e,{context:w,reactions:B,currentReaction:null!=E?E:t.reaction,onReactionClick:T,setReactions:S&&!t.link_metadata,isReadOnly:o,alignSelf:"stretch",children:R&&(0,s.jsx)(J.AE,{href:L,style:{display:"flex"},children:(0,s.jsx)(eq,{publication:u,communityEntity:(0,i._)((0,a._)({},t),{body:R}),onClick:e=>{!e.defaultPrevented&&b&&b(e)},truncate:_,isPaid:c,isFounding:l,outline:O})})})]})}let eh=e=>{let t=[],n=null;for(let a of e)"image"===a.type?t.push(a):n||(n=a);return{images:t,video:n}};function eg(e){let{children:t,actionMenuProps:n,flex:i="grow"}=e;return(0,s.jsxs)(z.Ye,{alignItems:"start",gap:12,flex:i,children:[(0,s.jsx)(Q.dU,{children:t}),(0,s.jsx)(eR,(0,a._)({},n))]})}let e_=(e,t,n,a)=>async i=>{a===i?n(ef(i,e,t)):n(eb(i,e,t,a))},eb=(e,t,n,a)=>async(i,r)=>{let{iString:o,iTemplate:s}=I18N.i("en");i({type:"".concat(n,"-new_reaction"),payload:{id:t,reaction:e}});let l=await (0,I.YD)(e,t,n);if(l instanceof F.fk){var c,d;(null==(c=l.body)?void 0:c.status)==="PUBLICATION_BAN"?alert(s(eu(),null==(d=l.body)?void 0:d.error)):alert(o("We failed post your reaction. Please try again later."))}else(0,G.v)(l,{message:"Failed to add reaction"});l instanceof Error&&i(a?{type:"".concat(n,"-new_reaction"),payload:{id:t,reaction:a}}:{type:"".concat(n,"-remove_reaction"),payload:{id:t,reaction:e}})},ef=(e,t,n)=>async(a,i)=>{a({type:"".concat(n,"-remove_reaction"),payload:{id:t,reaction:e}}),await (0,I.jx)(e,t,n) instanceof Error&&a({type:"".concat(n,"-new_reaction"),payload:{id:t,reaction:e}})};async function eA(e,t){try{return await fetch("/api/v1/community/posts/".concat(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_locked:t})})}catch(e){return e}}async function eE(e,t){try{return await fetch("/api/v1/community/comments/".concat(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_locked:t})})}catch(e){return e}}async function ey(e,t){try{return await fetch("/api/v1/community/comments/".concat(e,"/publication_bans?ban=").concat(t.toString()),{method:"POST"})}catch(e){return e}}async function eN(e){try{return await (0,F.x6)("/api/v1/community/comments/".concat(e),{method:"DELETE",json:{commentId:e}})}catch(e){return e}}async function eO(e){try{return await (0,F.x6)("/api/v1/community/comments/".concat(e),{method:"GET"})}catch(e){return console.warn(e),e}}async function ev(e){try{return await (0,F.x6)("/api/v1/community/posts/".concat(e),{method:"GET"})}catch(e){return console.warn(e),e}}async function ex(e){try{return await (0,F.x6)("/api/v1/community/posts/".concat(e),{method:"DELETE",json:{postId:e}})}catch(e){return e}}function eS(e){let{author:t,extras:n,showReply:r=!0,analyticsParams:o,commenters:c,count:d,audience:u,paywallInfo:p,onClick:m}=e;return(0,l.vJ)(()=>{var e;o&&(0,U.u4)(U.qY.THREAD_PAYWALL_SCREEN_VIEWED,(0,i._)((0,a._)({},o),{audience:u&&("only_founding"===(e=u)?"founding":"only_paid"===e?"paid":"free")}))},[]),(0,s.jsxs)(ek,{user:t,extras:n,children:[t&&(0,s.jsx)(Q.Nf,{user:t}),(0,s.jsxs)(eV,{children:[p?(0,s.jsx)(e2,{audience:u,paywallInfo:p,onClick:m}):(0,s.jsx)(e0,{audience:u,onClick:m}),r&&(0,s.jsx)(e$,{isLocked:!0,direction:"incoming",commenters:c,count:d,onClick:m})]})]})}function ew(e){return"string"==typeof e.message}function eI(e){let{text:t,rawText:n,specialText:a,mentionMap:i,direction:r="incoming",limit:o=600,linkify:c=!0}=e,{iString:u}=(0,R.GO)(),[p,m]=(0,l.J0)(!1);if(a)return(0,s.jsx)("em",{children:a});if(!t)return(0,s.jsx)(s.Fragment,{});let h=[{characters:t.length,message:t}];n&&i&&(h=function(e,t,n){let a=/\$\{(\d+)\}/g,i=a.exec(e),r=[],o=0;for(;i;){var l,c,d;let u=t[Number(i[1])],p=u.text.slice(1);u?(i.index>o&&r.push({characters:i.index-o,message:e.slice(o,i.index)}),r.push({characters:u.text.length,message:(l=u.user_id,c=p,d=n,(0,s.jsx)(B.P,{id:l,label:c,type:"user",unstyled:"outgoing"===d}))})):r.push({characters:a.lastIndex-o,message:e.slice(o,a.lastIndex)}),o=a.lastIndex,i=a.exec(e)}return ot&&ew(e)){let a=t-n,r={characters:a,message:e.message.slice(0,a)},o={characters:e.characters-a,message:e.message.slice(a)};e=r,i.push(o)}n+=e.characters,a.push(e)}else i.push(e)}return{alwaysShow:a,afterExpansion:i}}(h,o),b=_.length>0;return(0,s.jsxs)(s.Fragment,{children:[g.map(e=>c&&ew(e)?(0,s.jsx)(eM,{children:e.message}):e.message),b&&!p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:" "}),(0,s.jsx)(V.Nm,{resetCss:!0,className:d()(el.A.readMore,el.A[r]),onClick:e=>{e.preventDefault(),m(!0)},children:u("See more")})]}),b&&p&&(0,s.jsx)(s.Fragment,{children:_.map(e=>c&&ew(e)?(0,s.jsx)(eM,{children:e.message}):e.message)})]})}function eM(e){let{children:t}=e;return(0,s.jsx)(p(),{options:{attributes:{rel:"nofollow ugc",onClick:e=>e.stopPropagation()},className:el.A.textLink,format:(e,t)=>"url"===t?(0,es.H)(e,64):e},children:t})}function eC(e){return void 0===e.post_id}function ek(e){var t;let{user:n,children:a,extras:i,flex:r="grow",containerRef:o,id:l,pubRole:c,userStatus:u,pubThemeAccentColor:p,pubThemePrintOnPopColor:m}=e,h=(0,L._N)(null!=(t=null==n?void 0:n.id)?t:0);return(0,s.jsxs)(z.I1,{id:l,flex:r,gap:2,ref:o,className:d()(ec.A.reactionsHoverZone,el.A.avatarContainer),children:[(0,s.jsxs)(z.pT,{alignItems:"end",gap:12,children:[(0,s.jsx)(z.pT,{paddingTop:4,children:h?(0,s.jsx)(ej,{user:n}):n?(0,s.jsx)(e9,{pubThemeAccentColor:p,pubThemePrintOnPopColor:m,user:n,pubRole:c,userStatus:u,size:32}):(0,s.jsx)(eL,{})}),(0,s.jsx)(z.I1,{flex:"grow",gap:2,position:"relative",alignItems:"start",children:a})]}),i&&(0,s.jsxs)(z.pT,{gap:12,children:[(0,s.jsx)(z.az,{width:32}),(0,s.jsx)(z.I1,{flex:"grow",gap:4,children:i})]})]})}function ej(e){let{user:t}=e,n=(0,T.BR)().isOnDestination;return(0,s.jsx)(J.AE,{href:t?(0,er.gYq)(t,{noBase:n}):void 0,children:(0,s.jsx)(eL,{children:(0,s.jsx)(h.A,{size:20,stroke:"var(--color-fg-tertiary)"})})})}let eL=(0,J.I4)({radius:"full",width:32,height:32,bg:"secondary"},J.ov);function eR(e){var{isNew:t}=e,n=(0,r._)(e,["isNew"]);if(t)return null;let{onNewQuote:i,onReply:o,communityEntity:l}=n;return(0,s.jsxs)(z.pT,{alignItems:"center",gap:4,className:el.A.actions,children:[i&&l&&(0,s.jsx)(eP,{onNewQuote:i,communityComment:l}),o&&l&&(0,s.jsx)(eD,{onReply:o}),(0,s.jsx)(q.W1,{trigger:(0,s.jsx)(V.K0,{"aria-label":"Options",size:"sm",priority:"tertiary",children:(0,s.jsx)(g.A,{size:20})}),children:(0,s.jsx)(eT,(0,a._)({},n))})]})}function eT(e){let{communityEntity:t,replyAction:n,onDelete:a,onReport:i,isReadOnly:r,publicationId:o,isBanned:l,isFlagged:c,onNewQuote:d}=e,u=(0,P.Jd)(),{isAuthor:p,publicationUser:m}=(0,ea.NL)(null!=o?o:0),h=(null==m?void 0:m.role)==="community_moderator",g=o&&p,_=t&&u&&t.user_id===u.id,b=t&&!eC(t),f=b&&"parent_id"in t&&null!==t.parent_id,A=_||g||h,E=_||g||h,y=!_&&!c,N=(g||h)&&b&&!_,O=!b&&u&&(null==t?void 0:t.user_id)===u.id;return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eG,{communityEntity:t}),t.body&&(0,s.jsx)(eU,{communityEntity:t}),!r&&d&&b&&(0,s.jsx)(eB,{onNewQuote:d,communityComment:t}),!r&&n,O&&(0,s.jsx)(eW,{communityEntity:t}),(0,s.jsxs)(q.H9,{children:[!r&&!f&&E&&(0,s.jsx)(eF,{communityEntity:t}),!r&&A&&(0,s.jsx)(eH,{communityEntity:t,onDelete:a}),!r&&void 0!==l&&N&&(0,s.jsx)(eK,{communityEntity:t,isBanned:l}),!r&&y&&(0,s.jsx)(eY,{onReport:i,communityEntity:t})]}),(0,s.jsx)(q.NW,{children:(0,s.jsx)(z.pT,{paddingY:4,children:(0,s.jsx)($.D,{conjunction:!0,timestamp:t.created_at})})})]}):null}function eP(e){let{onNewQuote:t,communityComment:n}=e;return(0,s.jsx)(V.K0,{size:"sm",priority:"tertiary","aria-label":"Reply",onClick:()=>{t(n)},children:(0,s.jsx)(m.A,{size:20})})}function eD(e){let{onReply:t}=e;return(0,s.jsx)(V.K0,{size:"sm",priority:"tertiary","aria-label":"Reply",onClick:t,children:(0,s.jsx)(m.A,{size:20})})}function eB(e){let{onNewQuote:t,communityComment:n}=e,{iString:a}=(0,R.GO)();return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(m.A,{}),onClick:()=>{t(n)},children:a("Reply")})}function eU(e){let{communityEntity:t}=e,{iString:n}=(0,R.GO)(),a=(0,X.d)();return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(_.A,{}),onClick:()=>{if(t){let{body:e}=t;(0,Y.lW)(e),a.popToast(()=>(0,s.jsx)(X.y,{text:n("Text copied to clipboard"),Icon:_.A}))}},children:n("Copy text")})}function eG(e){let{communityEntity:t}=e,{iString:n}=(0,R.GO)(),a=(0,W.c)(),{id:i}=t,r=eC(t);return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(b.A,{}),onClick:()=>{let e;if(r)e=(0,er.sWz)({postId:i});else if(t.parent_id){var n;e=(0,er.j5y)({commentId:null!=(n=t.parent_id)?n:i,targetReplyId:t.parent_id?i:void 0,showTarget:!0})}else e=(0,er.sWz)({postId:t.post_id,targetReplyId:t.id,showTarget:!0});a(e)},children:n("Copy link")})}function eF(e){let{communityEntity:t}=e,{iString:n}=(0,R.GO)(),a=(0,et.wA)(),i=(0,X.d)(),{id:r,is_locked:o}=t,l=eC(t),c=async()=>{if(l){let e;a((e=!o,async(t,n)=>{t({type:"posts-lock_replies",payload:{id:r,isLocked:e}});let a=await eA(r,e);a instanceof Error&&(console.warn("error locking post",a),alert("There was an error ".concat(e?"locking":"unlocking"," replies to this post. Please try again later.")),t({type:"posts-lock_replies",payload:{id:r,isLocked:!e}}))}))}else{let e;a((e=!o,async(t,n)=>{t({type:"comments-lock_replies",payload:{id:r,isLocked:e}});let a=await eE(r,e);a instanceof Error&&(console.warn("error locking comment",a),alert("There was an error ".concat(e?"locking":"unlocking"," replies to this comment. Please try again later.")),t({type:"comments-lock_replies",payload:{id:r,isLocked:!e}}))}))}o?i.popToast(()=>(0,s.jsx)(X.y,{text:n("Enabled replies"),Icon:A.A})):i.popToast(()=>(0,s.jsx)(X.y,{text:n("Disabled replies"),Icon:f.A}))};return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(f.A,{}),onClick:c,priority:"destructive",children:o?n("Re-enable replies"):n("Disable replies")})}function eW(e){let{communityEntity:t}=e,n=(0,et.wA)(),a=eC(t),i=async()=>{a&&n({type:"posts-edit_post",payload:{post:t}})};return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(E.A,{}),onClick:i,priority:"primary",children:"Edit"})}function eY(e){let{onReport:t,communityEntity:n}=e,{iString:a}=(0,R.GO)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(y.A,{}),onClick:()=>{t(n.id,"admin"!==n.user_pub_role)},priority:"destructive",children:a("Report")})})}function eK(e){let{communityEntity:t,isBanned:n}=e,{iString:a}=(0,R.GO)(),i=(0,et.wA)(),r=async()=>{if(confirm("Are you sure you want to ban this user?")){let e,{id:a}=t;i((e=!n,async(t,n)=>{t({type:"comments-ban_author",payload:{id:a,ban:e}});let i=await ey(a,e);i instanceof Error&&(console.warn("error toggling ban for comment author",i),alert("There was an error ".concat(e?"banning":"unbanning"," this user. Please try again later.")),t({type:"comments-ban_author",payload:{id:a,ban:!e}}))}))}};return(0,s.jsx)(q.Dr,{leading:n?(0,s.jsx)(N.A,{}):(0,s.jsx)(O.A,{}),onClick:r,priority:"destructive",children:a(n?"Unban":"Ban")})}function eH(e){let{communityEntity:t,onDelete:n}=e,{iString:a}=(0,R.GO)(),i=(0,et.wA)(),r=eC(t),o=async()=>{if(confirm("Are you sure you want to delete this ".concat(r?"thread":"comment","?"))){let{id:e}=t;if(r){let{publication_id:n}=t;i(async(t,a)=>{t({type:"posts-delete_post",payload:{id:e,publication_id:n}});let i=await ex(e);i instanceof Error&&console.warn("error deleting thread",i)})}else{let{post_id:n,parent_id:a}=t;i(async(t,i)=>{t({type:"comments-delete_comment",payload:{id:e,postId:n}});let r=await eN(e);if(r instanceof Error&&console.warn("error deleting comment",r),a){let e=await eO(a);e instanceof Error||t({type:"comments-update_comment",payload:{id:a,comment:e.comment}})}let o=await ev(n);o instanceof Error||t({type:"posts-update_post",payload:{id:n,post:o.communityPost}})})}n&&setTimeout(n,500)}};return(0,s.jsx)(q.Dr,{leading:(0,s.jsx)(v.A,{}),onClick:o,priority:"destructive",children:a("Delete")})}function eV(e){var{hasFooter:t}=e,n=(0,r._)(e,["hasFooter"]);return(0,s.jsx)(z.I1,(0,a._)({className:d()(el.A.bubbleStack,t&&el.A.hasFooter),gap:2,alignItems:"start"},n))}function ez(e){var{isTargeted:t,className:n}=e,i=(0,r._)(e,["isTargeted","className"]);return(0,s.jsx)(z.I1,(0,a._)({className:d()(el.A.bubble,t&&el.A.highlight,n),sizing:"border-box",paddingY:8,paddingX:12,bg:"secondary",minWidth:0,gap:8},i))}function eq(e){let{communityEntity:t,publication:n,isTargeted:a,onClick:i,truncate:r=!0,isPaid:o,isFounding:l,outline:c}=e,{audience:d}=t,{canReply:u,shouldShowToken:p}=e1({audience:d,isFounding:l,isPaid:o,chatPaywallStatus:null==n?void 0:n.paywall_chat}),m=p||t.is_edited,h=t.reactions?Object.keys(t.reactions).length:0;return(0,s.jsxs)(ez,{isTargeted:a,onClick:i,className:ed.A[h>0?"reactions-".concat(h):""],outline:c,children:[(0,s.jsx)(eQ,{communityEntity:t,truncate:r}),m&&(0,s.jsxs)(z.Ye,{justifyContent:"end",gap:2,children:[p&&(0,s.jsx)(eJ,{canReply:!!u,audience:d}),t.is_edited&&(0,s.jsx)(eX,{})]})]})}function eJ(e){let{canReply:t,audience:n,style:a="default",showLabel:i=!0,className:r}=e,o=i?"media"===a?"var(--vibrance-primary)":"var(--color-chat-incoming-fg-primary)":"var(--color-fg-primary)";return(0,s.jsxs)(Z.vw,{className:d()(el.A.paywallReplyTag,"media"===a&&el.A.media,!i&&el.A.iconOnly,r),priority:"secondary",children:[t?(0,s.jsx)(k.A,{size:12,color:o}):(0,s.jsx)(C.A,{size:12,color:o}),i&&(0,s.jsx)(z.EY.B5,{weight:"medium",children:eZ.get(n)})]})}let eZ=new Map([["only_paid","Paid subscribers only"],["only_paid_replies","Paid subscriber replies"],["only_founding","Founding members only"],["only_founding_replies","Founding member replies"]]);function eX(){return(0,s.jsxs)(Z.vw,{className:el.A.paywallReplyTag,priority:"secondary",children:[(0,s.jsx)(x.A,{size:12}),(0,s.jsx)(z.EY.B5,{weight:"medium",children:"Edited"})]})}function eQ(e){var t,n,a,i,r;let{communityEntity:o,truncate:l=!0}=e,c=null,d=eC(o)?"thread":"reply";o.reported_by_user&&(c="You reported this ".concat(d)),"deleted"!==o.status&&o.body||(c="This ".concat(d," is not available"));let u=(0,L._N)(o.user_id);c||"blocking"!==u?c||"blocked"!==u||(c="This person is blocked"):c="This person blocked you";let p=null!=(t=o.raw_body)?t:o.body;return p?eC(o)&&o.link_url&&!o.link_metadata&&(p="".concat(p,"\n\n").concat(o.link_url).trim()):eC(o)?(null==(a=o.media_assets)?void 0:a.length)?c="".concat(o.media_assets.length," ").concat(o.media_assets.length>1?"photos":"photo","."):o.link_url&&(o.link_metadata?c='Link: "'.concat(o.link_metadata.title,'"'):(p=o.link_url,c=null)):(null==(n=o.media_uploads)?void 0:n.length)&&(c="".concat(o.media_uploads.length," ").concat(o.media_uploads.length>1?"photos":"photo",".")),(0,s.jsx)(z.EY.B3,{className:el.A.body,isParagraph:!0,children:(p||c)&&(0,s.jsx)(eI,{text:p,rawText:null!=(i=o.raw_body)?i:"",mentionMap:Array.isArray(o.mentions)?void 0:null!=(r=o.mentions)?r:void 0,specialText:c,limit:l?void 0:9999999})})}function e$(e){let{isLocked:t,count:n=0,commenters:a,hasUnread:i,onClick:r,direction:o,outline:l}=e,{iString:c,iPlural:u}=(0,R.GO)();return(0,s.jsx)(Q.Zh,{isLast:!0,messageDirection:o,onClick:r,cursor:r?"pointer":void 0,height:36,paddingY:4,paddingRight:12,paddingLeft:12,outline:l,children:(0,s.jsxs)(z.pT,{justifyContent:"space-between",alignItems:"center",gap:32,children:[(0,s.jsxs)(z.pT,{alignItems:"center",gap:8,children:[a&&n>0&&(0,s.jsx)(z.pT,{className:el.A.facepile,alignItems:"center",children:a.map(e=>(0,s.jsx)(K.eu,{className:d()(el.A.facepileAvatar,"outgoing"===o&&el.A.outgoing),user:e,size:22}))}),(0,s.jsx)(z.pT,{gap:8,alignItems:"center",children:(0,s.jsx)(z.EY.B3,{as:"span",className:i?el.A.hasUnread:el.A.noUnread,children:0===n?c("Leave a reply"):u("%1 reply","%1 replies",n)})})]}),t?(0,s.jsx)(C.A,{size:14,color:"var(--color-chat-fg-secondary)"}):(0,s.jsx)(S.A,{size:20,stroke:i?"var(--color-chat-reply-active)":"var(--color-chat-fg-secondary)"})]})})}function e0(e){let{audience:t,href:n,onClick:a}=e;return(0,s.jsx)(z.I1,{className:el.A.paywallBubble,as:n?"a":"div",onClick:a,cursor:a?"pointer":void 0,alignSelf:"stretch",alignItems:"center",justifyContent:"center",bg:"secondary",href:n,target:n?"_blank":void 0,children:(0,s.jsxs)(z.pT,{alignItems:"center",gap:4,children:[(0,s.jsx)(w.A,{size:12,stroke:"var(--color-fg-secondary)"}),(0,s.jsx)(z.EY.Meta,{weight:"semibold",children:"only_founding"===t?"FOUNDING MEMBERS ONLY":"only_paid"===t?"PAID SUBSCRIBERS ONLY":"SUBSCRIBERS ONLY"})]})})}function e1(e){let{audience:t,isFounding:n,isPaid:a,chatPaywallStatus:i}=e,r=["only_founding","only_founding_replies"].includes(t);return{canReply:n||"all_subscribers"===t||a&&["only_paid","only_paid_replies"].includes(t),shouldShowToken:i&&("free"===i&&"all_subscribers"!==t||"paid"===i&&r)}}function e2(e){let{paywallInfo:t,audience:n,onClick:a}=e,{mediaAttachments:i}=t,{body:r}=t,o=i[0];return r||o||(r=[,,,,].fill("Blah blah blah blahhhhh blah.").join(" ")),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(z.I1,{position:"relative",children:(0,s.jsx)(j.K,{className:el.A.ImageGrid,assets:[{src:o.thumb_url,width:o.width,height:o.height,explicit:!1}],maxWidth:400,maxHeight:420,readOnly:!0,isContained:!0,children:(0,s.jsx)(e3,{className:el.A.paywallFade,children:(0,s.jsx)(eJ,{canReply:!1,audience:null!=n?n:"only_paid",style:"media",showLabel:!r,className:r?el.A.right:el.A.center})})})}),r&&(0,s.jsxs)(ez,{className:el.A.bubble,onClick:a,children:[(0,s.jsx)(z.EY.B3,{className:el.A.paywallText,isParagraph:!0,children:r}),(0,s.jsx)(e3,{className:d()(el.A.paywallFade,el.A.paywallBlur),children:(0,s.jsx)(z.az,{className:el.A.paywallReplyTagAbsolute,children:(0,s.jsx)(eJ,{canReply:!1,audience:null!=n?n:"only_paid",style:"media"})})})]})]})}let e3=(0,J.I4)({position:"absolute",inset:0,alignItems:"center",justifyContent:"center"},J.VP);function e4(e){let{text:t,isStatic:n}=e;return(0,s.jsx)(z.pT,{paddingX:8,paddingY:4,children:(0,s.jsxs)(z.EY.B5,{color:"secondary",weight:"semibold",children:[(0,s.jsx)(M.A,{strokeWidth:2,height:12,stroke:"#808080",fill:"transparent",isStatic:n})," ",t]})})}function e9(e){let t,{user:n,size:a,pubRole:i,userStatus:r,className:o,disabled:l,pubThemeAccentColor:c,pubThemePrintOnPopColor:d}=e,u=(0,T.BR)().isOnDestination;(0,eo.isAtLeastContributorRole)(null==i?void 0:i.role)?t="author":(null==i?void 0:i.is_founding)?t="founding":(null==i?void 0:i.membership_state)==="subscribed"&&(t="paid");let p=(0,s.jsx)(K.tp,{user:n,size:a,className:o,disabled:l,linkProps:{target:"_blank"},noBase:u});return"author"!==t?(null==r?void 0:r.badge)?(0,s.jsx)(H.Pk,{badge:r.badge,children:p}):p:(0,s.jsx)(H.w4,{tier:t,fgOverride:d,bgOverride:c,children:p})}},26683:function(e,t,n){n.d(t,{LI:()=>M,Sd:()=>I,YD:()=>D,jx:()=>B});var a=n(69277),i=n(70408),r=n(74848),o=n(50172),s=n(17402),l=n(45994),c=n(32485),d=n.n(c),u=n(78649),p=n(29528),m=n(44518),h=n(46271),g=n(94729),_=n(12501),b=n(35369),f=n(17028),A=n(97515),E=n(37598),y=n(57820),N=n(40837),O=n(75303),v=n(63136),x=n(56720),S=n(3898);let w=(0,o.createContext)({isLoading:!1,emojis:{suggestedReactionTypes:[],categories:[],reactionTypes:{}}});function I(e){let{children:t}=e,{user:n}=(0,h.ur)(),{result:a,isLoading:i}=(0,_.st)({pathname:"/api/v1/threads/reactions",method:"GET",cacheTtl:6e5,auto:!!n});return(0,r.jsx)(w.Provider,{value:{emojis:a,isLoading:i},children:t})}function M(e){let{context:t,reactions:n,currentReaction:a,onReactionClick:i,isReadOnly:o,showCounts:s=!0,maxReactions:c,direction:p}=e,m=n&&Object.keys(n).some(e=>n[e]>0),h=(0,l.li)(null),[g,_]=(0,l.J0)(!1),{emojis:b,isLoading:A}=(0,l.NT)(w),y=(0,l.Kr)(()=>n&&(null==b?void 0:b.reactionTypes)?Object.entries(n).sort((e,t)=>{let[n,a]=e,[i,r]=t;return a===r?n.localeCompare(i):r-a}).filter(e=>{let[t,n]=e;return n>0&&b.reactionTypes[t]}).slice(0,3):[],[n,b]);return(null==b?void 0:b.reactionTypes)?(0,r.jsx)(u.Q,{children:(0,r.jsxs)(f.Ye,{onClick:P,className:d()(S.A.reactionsContainer,{[S.A.show]:m||g,[S.A.outgoing]:"outgoing"===p}),children:[y.map(e=>{let[n,o]=e,l=b.reactionTypes[n],c=n===a||l===a,u=(0,r.jsxs)(f.Ye,{className:d()(S.A.reaction,{[S.A.selected]:s&&c}),shadow:"sm",bg:"primary",gap:4,alignItems:"center",justifyContent:"center",paddingX:6,onClick:()=>l&&i&&i(n,l),children:[(0,r.jsx)(v.EY.B4,{font:"emoji",children:l}),s&&(0,r.jsx)(v.EY.Meta,{fontWeight:"bold",color:c?"white":"primary",children:o})]},n);return["feed-recommended","direct-message"].includes(t.type)?u:(0,r.jsx)(x.m_,{text:(0,r.jsx)(j,{context:t,reaction:n}),side:"bottom",children:u},n)}),!o&&(!c||!a)&&(0,r.jsx)(E.A,{trigger:(0,r.jsx)(C,{}),onOpen:()=>_(!0),onClose:()=>_(!1),children:e=>{let{close:t}=e;return(0,r.jsx)(k,{emojis:b,isLoading:A,currentReaction:a,onPick:(e,n)=>{i&&i(e,n),t()},inputRef:h})}})]})}):null}let C=(0,s.Rf)((e,t)=>(0,r.jsx)(b.Nm,(0,i._)((0,a._)({ref:t,resetCss:!0,className:S.A.addReactButton,shadow:"sm",bg:"primary",paddingX:4,alignItems:"center"},e),{children:(0,r.jsx)(p.A,{className:S.A.addReactIcon})})));function k(e){var t;let{emojis:a,isLoading:i,currentReaction:o,onPick:s,inputRef:c}=e,d=(0,l.Kr)(()=>(null==a?void 0:a.reactionTypes)&&!i?Object.keys(a.reactionTypes):[],[null==a?void 0:a.reactionTypes,i]),{result:p,isLoading:h}=(0,_.qK)(()=>n.e("4022").then(n.t.bind(n,70405,19)),[],{auto:!0}),g=(0,l.hb)(e=>[e,...(null==p?void 0:p[e])||[]],[p]),{filteredItems:b,setQuery:E,hasFiltered:O,query:v}=(0,m.S)({items:d,getKeys:g,deps:[d,g]});return(0,r.jsx)(u.Q,{children:(0,r.jsxs)(f.I1,{sizing:"border-box",gap:12,padding:12,minWidth:320,height:400,onClick:P,overflowY:"auto",children:[(0,r.jsx)(N.D,{ref:c,onChange:E}),i||h?(0,r.jsx)(f.I1,{flex:"grow",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(y.y$,{})}):(0,r.jsxs)(r.Fragment,{children:[O&&(b&&b.length>0?(0,r.jsx)(L,{reactions:b,currentReaction:o,onPick:s,emojiMap:a.reactionTypes,title:null}):(0,r.jsx)(A.p,{title:"No results for ".concat(v),description:"Try another search"})),!O&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L,{reactions:a.suggestedReactionTypes,currentReaction:o,onPick:s,emojiMap:a.reactionTypes,title:"Suggested"}),null==(t=a.categories)?void 0:t.map(e=>(0,r.jsx)(L,{reactions:e.reactionTypes,currentReaction:o,onPick:s,emojiMap:a.reactionTypes,title:e.title},e.title))]})]})]})})}function j(e){var t;let{reaction:n,context:a}=e,i=["posts","feed-subscribed"].includes(a.type)?"/api/v1/community/posts/".concat(a.id,"/reactions"):"/api/v1/community/comments/".concat(a.id,"/reactions"),{result:r,isLoading:o}=(0,_.st)({pathname:i,method:"GET",auto:!0});if(o)return"Loading...";let s=(null!=(t=null==r?void 0:r.reactions.filter(e=>e.reaction===n))?t:[]).map(e=>e.user.name),l=s.slice(0,6),c=Math.max(0,s.length-6),d=l.join(", ");return c>0?"".concat(d," + ").concat(c," ").concat(1===c?"other":"others"):d}function L(e){let{reactions:t,currentReaction:n,onPick:a,emojiMap:i,title:o}=e;return(0,r.jsxs)(f.I1,{gap:4,children:[o&&(0,r.jsx)(v.EY.B4,{color:"secondary",children:o}),(0,r.jsx)(f.az,{className:S.A.emojiGrid,gap:2,alignItems:"center",justifyContent:"center",children:null==t?void 0:t.map(e=>(0,r.jsx)(R,{onClick:()=>a(e,i[e]),className:d()(S.A.emojiBox,{[S.A.selected]:e===n}),children:(0,r.jsx)(T,{children:i[e]})},e))})]})}let R=(0,O.I4)({bg:"primary",alignItems:"center",justifyContent:"center",radius:"sm",width:32,height:32,cursor:"pointer"},O.fI),T=(0,O.I4)({fontSize:20,lineHeight:20,color:"primary",fontWeight:"medium",font:"emoji"}),P=e=>{e.stopPropagation(),e.preventDefault()};async function D(e,t,n){try{return await (0,g.x6)("/api/v1/community/".concat(n,"/").concat(t,"/reaction"),{method:"POST",json:{reaction:e}})}catch(e){return e}}async function B(e,t,n){try{return await (0,g.x6)("/api/v1/community/".concat(n,"/").concat(t,"/reaction"),{method:"DELETE",query:{reaction:e}})}catch(e){return e}}},43262:function(e,t,n){n.d(t,{T:()=>p});var a=n(74848),i=n(22492),r=n(96540),o=n(22730),s=n(84605),l=n(44803),c=n(97515),d=n(82286),u=n(18189);function p(e){let{content:t,description:n,source:p="comment"}=e,{iString:m}=(0,s.GO)();return(0,r.useEffect)(()=>{(0,l.u4)(u.q.AGE_GATING_VIEW_SEEN,{source:p,entity_id:t.id})},[p,t.id]),(0,a.jsx)(c.X,{icon:(0,a.jsx)(i.A,{}),title:m("Age-restricted content"),description:n,button:(0,a.jsxs)(d.Xn,{children:[(0,a.jsx)(o.v,{content:t,source:p}),(0,a.jsx)(o.W,{})]}),paddingY:8})}},36066:function(e,t,n){n(74848),n(84824),n(91461)},14537:function(e,t,n){n.d(t,{Dw:()=>o}),n(74848);var a=n(96540),i=n(15734),r=n.n(i);n(27402),n(86500),n(58418),n(35369),n(76977),n(63136),n(82144),n(69715),n(50258),n(22752),n(9979),n(41873),n(66714),n(96430),n(68349),n(89490),n(18540),n(16993),n(57820),n(39318),n(92967),n(36906);let o=e=>{let[t,n]=(0,a.useState)(null),[i,o]=(0,a.useState)(null),[s]=(0,a.useState)(!0),[l,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),p=async()=>{let t=await r().get("/api/v1/video/upload/".concat(e));n(t.body);let{id:a,state:s}=t.body;if(["uploaded","transcoded"].includes(s)&&!i){let{body:{src:e}}=await r().get("/api/v1/video/upload/".concat(a,"/src.json?type=original"));o(e)}},m=async()=>{let{mux_asset:t,mux_preview_asset:n}=(await r().get("/api/v1/video/upload/".concat(e,"/assets"))).body;c(t),u(n)};return(0,a.useEffect)(()=>{p(),m()},[e]),(0,a.useEffect)(()=>{let a=setInterval(()=>{let s=async()=>{let t=await r().get("/api/v1/video/upload/".concat(e)),{id:s,mux_rendition_quality:l,state:c}=t.body;if(n(t.body),l&&clearInterval(a),["uploaded","transcoded"].includes(c)&&!i){let{body:{src:e}}=await r().get("/api/v1/video/upload/".concat(s,"/src.json?type=original"));o(e)}else m()};(null==t?void 0:t.state)==="error"?(console.warn("error creating clip"),clearInterval(a)):(null==t?void 0:t.mux_rendition_quality)?clearInterval(a):s()},5e3);return()=>{clearInterval(a)}},[t]),{mediaUpload:t,loading:s,downloadUrl:i,muxAsset:l,muxPreviewAsset:d}}},69715:function(e,t,n){n.d(t,{Ds:()=>_,Jt:()=>y,LO:()=>p,MC:()=>E,OV:()=>f,_K:()=>g,eD:()=>b,sm:()=>h,z3:()=>m});var a=n(74848),i=n(78659),r=n.n(i);n(11741),n(69843);var o=n(86241),s=n(80697),l=n(96540),c=n(40410);n(86500);var d=n(35369),u=n(76977);let p=5,m=300,h=600,g=60,_=30,b=e=>{let t=r()(e,1,16),n=h-g;return r()(h-(t-1)/15*n,g,h)},f=e=>{for(let t=16;t>=1;t--)if(b(t)>=2*e)return r()(t,1,16);return 1},A=(0,l.createContext)({clipTimes:null,isClipping:!1,setClipEnd:()=>void 0,setClipStart:()=>void 0,setClipTitle:()=>void 0,virtualizedListRef:{current:null},onCancelClipping:()=>void 0,onStartClipping:()=>void 0,clipTitle:null,zoom:0,setZoom:()=>void 0}),E=()=>(0,l.useContext)(A),y=()=>{let{zoom:e,setZoom:t}=E();return(0,a.jsxs)(u.Ye,{gap:12,justifyContent:"center",alignItems:"center",children:[(0,a.jsx)(d.K0,{priority:"secondary-outline",size:"sm",onClick:()=>t(Math.max(1,e-1)),children:(0,a.jsx)(o.A,{size:20})}),(0,a.jsx)(c.A,{min:1,max:16,step:1,value:e,onChange:t}),(0,a.jsx)(d.K0,{priority:"secondary-outline",size:"sm",onClick:()=>t(Math.min(16,e+1)),children:(0,a.jsx)(s.A,{size:20})})]})}},38217:function(e,t,n){n.d(t,{U:()=>N});var a=n(69277),i=n(70408),r=n(74848),o=n(69843),s=n.n(o),l=n(71464),c=n(84934),d=n(96540),u=n(84605),p=n(31651),m=n(31392),h=n(68349),g=n(24078),_=n(89490),b=n(35369),f=n(76977),A=n(23168),E=n(46058),y=n(66246);function N(e){let{user:t,onChangePhoto:n}=e,{iString:o}=(0,u.GO)(),[N,O]=(0,d.useState)(null),[v,x]=(0,d.useState)(null),[{isDragging:S},{openFileDialog:w,getInputProps:I,getDragProps:M}]=(0,A.l)({accept:"image/*",multiple:!1,onFilesAdded:async e=>{let t=e[0];if(t)try{let e=t.file instanceof File?t.file:null;if(!e)return;let a=await (0,h.Sd)(e);if(!a||s()(a.url))return;let i=await (0,p.J)(a.url),r=await (0,h.Sd)(i);if(!r)return;let{url:o,orientation:l}=r;O(null!=l?l:null),o&&(x(o),n({photo_url:o}))}catch(e){console.error("Error processing image:",e)}}}),C=(0,d.useMemo)(()=>({transform:(0,h.FK)(N)}),[N]),{darkMode:k}=(0,m.D2)(),j=v||(0,E.pI)(t,{darkMode:k});return(0,r.jsxs)(_.az,(0,i._)((0,a._)({position:"relative"},M()),{children:[(0,r.jsxs)(b.Nm,{resetCss:!0,onClick:w,"aria-label":o("Edit profile photo"),children:[(0,r.jsxs)(f.ov,{style:C,position:"relative",width:120,height:120,border:"detail",radius:"full",bg:S?"secondary":"primary",overflow:"hidden",children:[j?(0,r.jsx)(g.eu,{photoUrl:j,size:120}):(0,r.jsx)(l.A,{size:24}),S&&(0,r.jsx)(f.ov,{position:"absolute",inset:0,style:{backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,r.jsx)(l.A,{size:24})})]}),(0,r.jsx)("input",(0,a._)({},I()))]}),(0,r.jsx)(_.az,{position:"absolute",className:y.A.button,bg:"primary",radius:"full",children:(0,r.jsx)(b.K0,{rounded:!0,priority:"secondary-outline",onClick:w,"aria-label":o("Edit profile photo"),children:(0,r.jsx)(c.A,{size:18})})})]}))}},78865:function(e,t,n){n.d(t,{gf:()=>A,mA:()=>N,zt:()=>x});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(96540),c=n(21441),d=n(10278),u=n(47811),p=n(89490),m=n(35369),h=n(76977),g=n(44552),_=n(95187),b=n(11510),f=n(71305);function A(e){let{className:t,assets:n,readOnly:o,isRestack:c,isPermalink:u,maxHeight:p=420,onClick:m,onSwipe:A,children:O,parent:x,feedItem:S,commentId:w}=e,I=(0,d.Cu)(n),M=(0,b.Iu)(),C=c?12:u?0:M?64:48,k=c?12:16*!!M,j=C+k,L=(0,l.useRef)(null),R=(0,d.wY)(L,j),T=Math.max(R-20-6,0),P=(0,l.useRef)(!1),D=v(I,p,T),B=x&&""===x.body,[U,G]=(0,l.useState)(null),F=(0,g.h9)(L),W=(0,_.jA)(L,{inset:C,pageSizeAdjust:-.4*(R||0),initialState:{showLeft:!1,showRight:!0}}),{state:{showLeft:Y,showRight:K},handleArrowClick:H}=M?{state:{showLeft:!1,showRight:!1},handleArrowClick:()=>()=>{}}:W;return(0,l.useEffect)(()=>{let e=L.current,t=()=>{!P.current&&(P.current=!0,A&&A())};return null==e||e.addEventListener("scroll",t),()=>null==e?void 0:e.removeEventListener("scroll",t)},[A]),(0,r.jsxs)(h.I1,{className:s()(f.A.imageCarouselContainer,c&&f.A.restack),position:"relative",draggable:!1,paddingTop:B?12:void 0,style:{"--carousel-inset-left":"-".concat(C,"px"),"--carousel-inset-right":"-".concat(k,"px")},children:[(0,r.jsxs)(h.pT,(0,i._)((0,a._)({},F.props),{ref:L,className:s()(f.A.imageCarousel,c&&f.A.restack,t),overflow:"auto",flex:"auto",style:{"--carousel-height":"".concat(D,"px"),"--carousel-gap":"".concat(6,"px")},children:[(0,r.jsx)(E,{width:C}),I.map((e,t)=>{let{src:n,explicit:a,width:i,height:s,id:l}=e;return(0,r.jsx)(y,{asset:n,explicit:a,readOnly:o,width:i,height:s,carouselHeight:D,onClick:o?void 0:e=>{e.preventDefault(),m&&m({attachmentId:l,attachmentType:"image"}),G({index:t})},children:O},n)}),(0,r.jsx)(d.yx,{assets:I,imageViewer:U,setImageViewer:G,readOnly:o,feedItem:S,commentId:w})]})),!M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{direction:"left",visible:Y,onClick:H(-1)}),(0,r.jsx)(N,{direction:"right",visible:K,onClick:H(1)})]})," "]})}function E(e){let{width:t}=e;return(0,r.jsx)(p.az,{as:"span",className:f.A.carouselSpacer,width:t})}function y(e){let{asset:t,explicit:n,onClick:a,readOnly:i,width:o,height:s,carouselHeight:l,children:c}=e,u=l*(o&&s?o/s:1);return(0,r.jsx)(d.Vn,{asset:t,explicit:n,onClick:a,readOnly:i,width:u,height:l,className:f.A.carouselImage,maxWidth:u,children:c})}function N(e){let{direction:t,visible:n,onClick:a}=e;return(0,r.jsx)(h.pT,{position:"absolute",className:s()(f.A.arrowContainer,f.A["".concat(t)]),alignItems:"center",justifyContent:"center",children:(0,r.jsx)(m.Nm,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null==a||a()},resetCss:!0,className:s()(f.A.arrowButton,!n&&f.A.hidden),display:"flex",alignItems:"center",justifyContent:"center","aria-label":"left"===t?"Previous":"Next",children:(0,r.jsx)(c.A,{size:20,className:f.A.arrowIcon})})})}function O(e){return e.filter(e=>"string"!=typeof e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0)}function v(e,t,n){let a=O(e);return 0===a.length?t:Math.min(n/Math.max(...a.map(e=>e.width/e.height)),t)}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:420,a=e.map(u.U8),i=v(a,n,t);return O(a).reduce((e,t)=>e+i*(t.width&&t.height?t.width/t.height:1),0)+6*(a.length-1)}},30796:function(e,t,n){n.d(t,{h:()=>d});var a=n(74848),i=n(32485),r=n.n(i),o=n(96540),s=n(10278),l=n(76977),c=n(71305);function d(e){let{className:t,assets:n,readOnly:i,onClick:d,maxHeight:p=420,children:m,feedItem:h,commentId:g}=e,_=(0,s.Cu)(n),[b,f]=(0,o.useState)(null),A=(0,o.useRef)(null),E=(0,s.wY)(A,0),[y,N]=_;if(!y||!N)return null;let O=y.width&&y.height?y.width/y.height:1,v=N.width&&N.height?N.width/N.height:1,x=O+v,S=E-6,w=Math.min(p,S/x),I=[S*O/x,S*v/x];return(0,a.jsxs)(l.pT,{ref:A,className:r()(c.A.imageDiptych,t),gap:6,overflow:"hidden",children:[_.map((e,t)=>(0,a.jsx)(u,{asset:e.src,explicit:e.explicit,readOnly:i,width:I[t],height:w,index:t,onClick:i?void 0:n=>{n.preventDefault(),d&&d({attachmentId:e.id,attachmentType:"image"}),f({index:t})},children:m},e.src)),!i&&(0,a.jsx)(s.yx,{assets:_,imageViewer:b,setImageViewer:f,readOnly:i,feedItem:h,commentId:g})]})}function u(e){let{asset:t,explicit:n,onClick:i,readOnly:o,width:l=500,height:d,children:u,index:p}=e;return(0,a.jsx)(s.Vn,{asset:t,explicit:n,onClick:i,readOnly:o,width:l,height:d,className:r()(c.A.diptychImage,c.A["index-".concat(p+1)]),children:u})}},21805:function(e,t,n){n.d(t,{i_:()=>y});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(84934),c=n(96540),d=n(52742),u=n(72880),p=n(17028),m=n(76977),h=n(49807),g=n(36008);let _=(e,t)=>1===t?"large":2===t||4===t?"medium":t%3==0?"small":5===t||7===t?e<=2?"small":"medium":e<=5?"small":"medium",b={small:237,medium:360,large:728},f=e=>{let{src:t,size:n,onSelectImage:a,useViewer:i=!1,alt:o}=e;return(0,r.jsx)(u.o,{src:t,alt:o,maxWidth:2*b[n],className:s()(g.A.image,g.A[n],i&&g.A.zoom,(0,p.iF)({pressable:"lg"})),onClick:()=>{i&&a()}})},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=[];for(let i in e){let r=e[i],{height:o=0,width:s=0}=r&&(0,h.d4Y)(r.src)||{},l="(".concat(Number(i)+1," of ").concat(e.length,")"),c={src:r.src,height:o,width:s,alt:"".concat(n," ").concat(l),title:"".concat(t," ").concat(l)};a.push({attrs:c})}return a},E=e=>{let{onEditGallery:t}=e;return(0,r.jsx)(p.mZ,{priority:"primary",onClick:t,className:g.A.edit,children:(0,r.jsx)(l.A,{size:20})})},y=e=>{var t;let{node:n,editor:o,post:l,publication:u,onLike:p}=e,{gallery:h}=n.attrs,b=n.attrs.isEditor||o,{caption:y,alt:N}=null!=h?h:{},O=null!=(t=null==h?void 0:h.images.map((e,t)=>(0,i._)((0,a._)({},e),{idx:t})))?t:[],v="undefined"!=typeof window&&!window.location.pathname.startsWith("/publish"),[x,S]=(0,c.useState)(!1),[w,I]=(0,c.useState)(0),M=1===O.length,C=A(O,y),k=e=>{I(e),S(!0)};if(0===O.length)return null;let j=function e(t){let n=4===t.length?2:3,a=[t.slice(0,n)],i=t.slice(n);return i.length>0&&(a=a.concat(e(i))),a}(O);return(0,r.jsxs)("figure",{className:g.A.gallery,"data-drag-handle":!0,"data-component-name":"ImageGallery",children:[b&&h&&(0,r.jsx)(E,{onEditGallery:()=>{document.dispatchEvent(new Event("editSelectedImageGallery"))}}),(0,r.jsxs)(m.I1,{gap:8,children:[M?(0,r.jsx)(f,{src:O[0].src,alt:N,caption:y,size:_(0,1),onSelectImage:()=>k(0),useViewer:v}):j.map(e=>(0,r.jsx)(m.pT,{className:s()(g.A.imageRow,g.A["length-".concat(e.length)]),gap:8,children:e.map(e=>(0,r.jsx)(f,{src:e.src,alt:N,caption:y,size:_(e.idx,O.length),onSelectImage:()=>k(e.idx),useViewer:v}))})),y&&(0,r.jsx)("figcaption",{className:g.A.imageCaption,children:y})]}),(0,r.jsx)(d.V6,{isOpen:x,modalContent:C,onClose:()=>S(!1),step:w,post:l,publication:u,onLike:p})]})}},12791:function(e,t,n){n.d(t,{W:()=>m});var a=n(74848),i=n(63950),r=n.n(i),o=n(76977);function s(e){let{children:t}=e;return(0,a.jsx)(o.fI,{justifyContent:"center",alignItems:"center",onClick:e=>e.stopPropagation(),paddingBottom:{desktop:12,mobile:0},className:"container-H9iqVx",children:t})}var l=n(50491),c=n(7963);function d(e){let{item:t,comment:n}=e;return(0,a.jsx)(s,{children:(0,a.jsx)(c.t,{children:(0,a.jsx)(l.b,{item:t,comment:n,priority:"primary"})})})}var u=n(17762);function p(e){let{isLoading:t=!1,publication:n,post:i,onLike:r}=e;return(0,a.jsx)(s,{children:(0,a.jsx)(c.t,{children:(0,a.jsx)(u.u,{isLoading:t,publication:n,post:i,onLike:r})})})}function m(e){let{post:t,publication:n,feedItem:i,onLike:o}=e;if(i&&"comment"===i.type)return(0,a.jsx)(d,{item:i,comment:i.comment});if(t&&n){var s,l;return(0,a.jsx)(p,{publication:null!=(s=null==i?void 0:i.publication)?s:n,post:null!=(l=null==i?void 0:i.post)?l:t,onLike:null!=o?o:r()})}return null}},61143:function(e,t,n){n.d(t,{q:()=>I});var a=n(69277),i=n(74848),r=n(32485),o=n.n(r),s=n(93540),l=n(43850),c=n(96540),d=n(23623),u=n(31452),p=n(46271),m=n(94328),h=n(68349),g=n(68410),_=n(89490),b=n(76977),f=n(63136),A=n(68391),E=n(43296),y=n(88218),N=n(59294),O=n(71552),v=n(33333),x=n(49807),S=n(57324),w=n(44812);let I=e=>{var t,n;let{activeLiveStream:r,fromPub:I=!1,listenForViewerCount:M=!0,isFeedItem:C=!1,videoPlayerProps:k,startMuted:j=!1}=e,L=(0,c.useRef)(null),R=(0,c.useRef)(null),[T,P]=(0,c.useState)(!C);(0,A.C4)({videoPlayerRef:L,showPaywall:!1,disable:T}),(0,c.useEffect)(()=>{if(T){let e=()=>{P(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}},[T]),(0,c.useEffect)(()=>{var e;let t=null==(e=L.current)?void 0:e.player,n=()=>{t&&t.duration&&t.duration>1&&!isNaN(t.duration)&&(t.currentTime=t.duration-1),t&&(t.playbackRate=1)};return t&&t.addEventListener("play",n),()=>{null==t||t.removeEventListener("play",n)}},[L.current]);let D=(0,N.AC)(R),[B,U]=(0,c.useState)(r.liveStreamInformation.currentViewerCount),[G,F]=(0,c.useState)(!1),{isMobile:W}=(0,g.sM)(),Y=(0,p.Qg)().autoPlayVideo,[K,H]=(0,c.useState)(!1);(0,c.useEffect)(()=>{let e;return K&&(e=setTimeout(()=>{H(!1)},4e3)),()=>{clearTimeout(e)}},[K]);let V=(0,E.XW)();(0,c.useEffect)(()=>{if(M)return null==V?void 0:V.listen({[(0,v.sl)({streamId:r.liveStream.id})]:e=>{var t,n;let{data:a}=e;(null==a||null==(t=a.message)?void 0:t.type)==="live-stream:viewer-count-updated"&&U(a.message.current_viewer_count),(null==a||null==(n=a.message)?void 0:n.type)==="live-stream:ended"&&F(!0)}})},[V,M]);let z=r.liveStreamInformation.isExplicit||"active"!==r.liveStream.status;return G?null:(0,i.jsxs)(b.pT,{position:"relative",overflow:"hidden",radius:"sm",ref:R,className:w.A.liveStreamContainer,onClick:e=>{if(e.stopPropagation(),"active"===r.liveStream.status){let e=(0,h.rr)()?(0,x.Xrv)({liveStreamId:r.liveStream.id,utm_campaign:S._9.substackProfile,params:(0,a._)({utm_medium:S.Jn.web},I&&{fromPub:I})}):(0,x.UUj)({noBase:!0,liveStreamId:r.liveStream.id,params:(0,a._)({utm_campaign:S._9.substackProfile,utm_medium:S.Jn.web},I&&{fromPub:I})});(0,h.rr)()?document.location.href=e:(0,h.V2)(e)}else H(!0)},cursor:"pointer",children:[z?(0,i.jsxs)(i.Fragment,{children:[r.liveStreamInformation.isExplicit&&(0,i.jsx)(_.az,{position:"absolute",inset:0,zIndex:1,children:(0,i.jsxs)(b.I1,{className:w.A.liveStreamExplicitLabel,alignItems:"center",justifyContent:"center",gap:4,children:[(0,i.jsx)(s.A,{stroke:"white",size:24}),(0,i.jsx)(f.EY.B5,{color:"white",textAlign:"center",translated:!0,children:"May contain sensitive content"})]})}),(0,i.jsx)("img",{className:o()(w.A.liveStreamThumbnail,r.liveStreamInformation.isExplicit&&w.A.explicit),src:r.liveStreamInformation.desktopThumbnailGifUrl,alt:"Live stream thumbnail"})]}):(0,i.jsx)(u.N,(0,a._)({className:w.A.liveStreamVideoPlayer,ref:L,liveStreamId:r.liveStream.id,noKeyboardShortcuts:!0,noControls:!0,autoPlay:Y,pub:r.pub||null,mediaUpload:{id:"ls-".concat(r.liveStream.id),width:1920,height:1080},noJoin:!0,thumbnailUrl:r.liveStreamInformation.desktopThumbnailPhotoUrl,isLive:!0,disableClickToPlayPause:!0,renderPlayButton:C?()=>(0,i.jsx)(y.ro,{isPlaying:!1,size:W?40:56}):void 0,startMuted:j},k),!0),"active"===r.liveStream.status&&(0,i.jsxs)(b.Ye,{gap:8,className:w.A.viewerCountContainer,children:[(0,i.jsx)(m.LM,{}),(0,i.jsx)(m.u8,{viewerCount:B})]}),K&&(0,i.jsx)(b.Ye,{className:w.A.endedMessage,children:(0,i.jsxs)(b.I1,{className:w.A.endedMessageContent,padding:12,radius:"md",alignItems:"center",justifyContent:"center",gap:4,children:[(0,i.jsx)(l.A,{size:24,stroke:"white"}),(0,i.jsx)(f.EY.B3,{color:"white",children:"Live video has ended"})]})}),(0,i.jsx)("div",{className:w.A.backDrop}),(0,i.jsxs)(b.Ye,{position:"absolute",style:{left:0,right:0,bottom:0,width:"100%",pointerEvents:"none"},direction:"row-reverse",alignItems:"end",children:[!z&&(0,i.jsx)(_.az,{padding:12,onClick:e=>{e.stopPropagation()},style:{pointerEvents:"auto"},children:(0,i.jsx)(O.A,{hideVolumeBar:!0,disableShortcuts:!1,disableTooltips:!1,isFocused:D,mediaRef:L})}),(0,i.jsx)(d.a,{children:(0,i.jsx)(b.I1,{className:w.A.liveStreamTitle,gap:4*!C,padding:C?12:16,style:{pointerEvents:"none"},children:C?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.EY.B3,{weight:"semibold",color:"vibrance-primary",children:r.liveStream.title}),(0,i.jsx)(f.EY.B4,{color:"vibrance-secondary",children:null==(t=r.pub)?void 0:t.name})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.EY.H4,{color:"vibrance-primary",children:r.liveStream.title}),(0,i.jsx)(f.EY.B3,{color:"vibrance-secondary",children:null==(n=r.pub)?void 0:n.name})]})})})]})]})}},79909:function(e,t,n){n.d(t,{O:()=>u});var a=n(69277),i=n(70408),r=n(74848),o=n(85902),s=n(74322),l=n(64595),c=n(74894),d=n(39318);function u(e){var t;let n,{badge:u,title:m,socialTitle:h,searchDescription:g,description:_,themeColor:b,coverImage:f,image:A,twitterImage:E,seoProps:y,isLargeImage:N=!1,imageWidth:O,imageHeight:v,isPodcast:x=!1,isVideo:S=!1,slug:w,pub:I,post:M,siteName:C,publishedTime:k,meta:j=[],siteConfigs:L={}}=e;if(!(0,s.P)())return null;let R=!!I&&I.invite_only,T=!!M&&"everyone"===M.audience,P=!R&&T,D=P&&L.twitter_player_card_enabled,B=(null==I?void 0:I.subdomain)&&p.includes(I.subdomain)&&P;if(x&&I&&M){let e=(0,c.M$)(I,M);e&&(A=(0,d.dJ9)(e,1200,{height:600,smartCrop:!0,format:"jpg"}),N=!0)}if(A){n="summary",N&&(n="summary_large_image");let e=S&&B;(x&&D||e)&&(n="player")}let U=y&&Object.entries(y).filter(e=>{let[t,n]=e;return n}).map(e=>{let[t]=e;return t}).join(", "),G=M?(0,l.ih)({postId:M.id}):[],F=M?(0,l.M$)({postId:M.id}):null,W=g||_;return(0,r.jsxs)(o.mg,(0,i._)((0,a._)({},u?{titleTemplate:"(".concat(u,") %s")}:{}),{children:[j.map(e=>"name"in e?(0,r.jsx)("meta",{name:e.name,content:e.content},e.name):(0,r.jsx)("meta",{property:e.property,content:e.content},e.property)),(0,r.jsx)("meta",{property:"og:type",content:"article"}),G.map(e=>{let{name:t,content:n}=e;return(0,r.jsx)("meta",{name:t,content:n},t)}),F&&(0,r.jsx)("script",{type:"application/ld+json",children:JSON.stringify(F)}),m&&[(0,r.jsx)("title",{children:m}),(0,r.jsx)("meta",{property:"og:title",content:h||m}),(0,r.jsx)("meta",{name:"twitter:title",content:h||m})],"string"==typeof W&&(0,r.jsx)("meta",{name:"description",content:W}),"string"==typeof _&&[(0,r.jsx)("meta",{property:"og:description",content:_},"og:description"),(0,r.jsx)("meta",{name:"twitter:description",content:_},"twitter:description")],b&&(0,r.jsx)("meta",{name:"theme-color",content:b}),A&&[(0,r.jsx)("meta",{property:"og:image",content:L.use_og_image_as_twitter_image_for_post_previews&&null!=f?f:A},"og:image"),(0,r.jsx)("meta",{name:"twitter:image",content:L.use_og_image_as_twitter_image_for_post_previews?null!=f?f:A:null!=(t=null!=E?E:A)?t:f},"twitter:image"),(0,r.jsx)("meta",{name:"twitter:card",content:n},"twitter:card"),O&&(0,r.jsx)("meta",{property:"og:image:width",content:String(O)},"og:image:width"),v&&(0,r.jsx)("meta",{property:"og:image:height",content:String(v)},"og:image:height")],U&&(0,r.jsx)("meta",{name:"robots",content:U}),(null==I?void 0:I.explicit)&&(0,r.jsx)("meta",{name:"rating",content:"adult"}),I&&x&&D&&[(0,r.jsx)("meta",{name:"twitter:player",content:"".concat((0,d.$_T)(I),"/embed/podcast/").concat(w,"?autoplay=1")},"twitter:player"),(0,r.jsx)("meta",{name:"twitter:player:width",content:"1"},"twitter:player:width"),(0,r.jsx)("meta",{name:"twitter:player:height",content:"1"},"twitter:player:height"),(0,r.jsx)("meta",{name:"twitter:text:player_width",content:"1"},"twitter:text:player_width"),(0,r.jsx)("meta",{name:"twitter:text:player_height",content:"1"},"twitter:text:player_height")],S&&B&&[(0,r.jsx)("meta",{name:"twitter:player",content:"".concat((0,d.$_T)(I),"/embed/video/").concat(w,"?autoplay=1")}),(0,r.jsx)("meta",{name:"twitter:player:width",content:"16"}),(0,r.jsx)("meta",{name:"twitter:player:height",content:"9"}),(0,r.jsx)("meta",{name:"twitter:text:player_width",content:"16"}),(0,r.jsx)("meta",{name:"twitter:text:player_height",content:"9"})],C&&(0,r.jsx)("meta",{property:"og:site_name",content:C}),k&&(0,r.jsx)("meta",{property:"og:published_time",content:String(k)})]}))}let p=["pinespodcast","test1"]},42496:function(e,t,n){n.d(t,{Eg:()=>b,Ai:()=>_});var a=n(74848);n(32485);var i=n(27775),r=n(96540);n(69715),n(87564),n(83126),n(49031),n(34581),n(70357),n(38685),n(22752),n(9979);var o=n(84605);n(40691),n(86500),n(17186),n(68349),n(35369);var s=n(60322),l=n(76977),c=n(49315),d=n(43145),u=n(63136),p=n(65842);n(48965);var m=n(87370),h=n(68601),g=n(92967);let _=e=>{let{initialTime:t,onChange:n,maxTime:i}=e,{iString:c}=(0,o.GO)(),[m,h]=(0,r.useState)(!0),[_,b]=(0,r.useState)(!0),[f,A]=(0,r.useState)((0,g.kq)(null!=t?t:0));return(0,a.jsxs)(l.Ye,{gap:12,alignItems:"center",paddingX:8,paddingY:4,children:[(0,a.jsx)(d.T6,{children:(0,a.jsx)(s.S,{size:"sm",checked:m,onChange:()=>h(!m)})}),(0,a.jsx)(u.EY.B4,{weight:"medium",color:"primary",children:c("Start at")}),(0,a.jsx)(p.ks,{className:"textInput-kYr7wC",value:f,error:!_,onChange:e=>{var t;let a,r;return t=e.currentTarget.value,a=(0,g.i)(t),r=(0,g.wG)(t),void(a&&(!i||r<=i)?(n((0,g.wG)(t)),b(!0)):(n(null),b(!1)),A(t))},placeholder:"0:00"})]})};function b(e){let{url:t,onShare:n}=e,{iString:r}=(0,o.GO)(),s=(0,m.$)();return(0,a.jsx)(c.Dr,{leading:(0,a.jsx)(i.A,{}),onClick:()=>{s.open({linkAttachmentUrl:t,source:"share_post"}),null==n||n()},onMouseEnter:h.M,children:r("Send as message")})}},13950:function(e,t,n){n.d(t,{DH:()=>c,xF:()=>u});var a=n(74848),i=n(32485),r=n.n(i),o=n(96540),s=n(10996),l=n(6045);function c(e){let{prefix:t,children:n}=e;if(t){let e="header"===t?l.A.headerTheme:"footer"===t?l.A.footerTheme:l.A.footerSecondaryTheme;return(0,a.jsx)(d.Provider,{value:t,children:(0,a.jsx)("div",{className:r()(l.A.pubTheme,e),children:n})})}return(0,a.jsx)(s.NP,{theme:l.A.pubTheme,children:n})}let d=(0,o.createContext)(null);function u(){let e=(0,o.useContext)(d);return{onOpen:o.useCallback(()=>{let t=document.getElementById("menu-portal");if(!t||!e)return;let n="header"===e?l.A.headerTheme:"footer"===e?l.A.footerTheme:l.A.footerSecondaryTheme;t.className=r()(l.A.pubTheme,n)},[e]),onClose:o.useCallback(()=>{let e=document.getElementById("menu-portal");e&&(e.className="")},[])}}},39968:function(e,t,n){n.d(t,{Z:()=>x});var a=n(69277),i=n(70408),r=n(32641),o=n(79785),s=n(74848),l=n(69715),c=n(9979),d=n(77851),u=n(84605),p=n(10398),m=n(42509),h=n(2675),g=n(84211),_=n(96540),b=n(86500),f=n(17186),A=n(68349),E=n(57324),y=n(76977),N=n(16993),O=n(75303);function v(){let e=(0,o._)(["Share this ",""]);return v=function(){return e},e}let x=e=>{var{isOpen:t,onClose:n,shareUrl:o,post:u,pub:p,profile:m,comments:h,commentId:g,medium:O="web",utm_campaign:v,referral_token:x,position:I,clippingAllowed:M}=e,C=(0,r._)(e,["isOpen","onClose","shareUrl","post","pub","profile","comments","commentId","medium","utm_campaign","referral_token","position","clippingAllowed"]);let{handleClose:k,internalUtmCampaign:j}=(e=>{var{isOpen:t,onClose:n,shareUrl:i,post:o,pub:s,profile:l,comments:d,commentId:u,medium:p,utm_campaign:m}=e,h=(0,r._)(e,["isOpen","onClose","shareUrl","post","pub","profile","comments","commentId","medium","utm_campaign"]);let[g,y]=(0,_.useState)(null);return(0,_.useEffect)(()=>{t&&(async()=>{let e={title:(0,c.ZE)({post:o,pub:s,profile:l}),url:i||(0,c.x5)("direct",(0,a._)({medium:p,post:o,pub:s,profile:l,comments:d,commentId:u,utm_campaign:m},h))};if((0,A.rr)()&&navigator.share&&navigator.canShare&&navigator.canShare(e))try{return await navigator.share(e),(0,b.u4)(b.qY.NATIVE_SHARE_SUCCESS,{medium:p||"web",post_id:o?o.id:null,utm_campaign:g||m||"default"}),(0,f.X3)("".concat(null==s?void 0:s.subdomain," shared"),!0),n(),!0}catch(e){if("AbortError"===e.name)return n(),!0;(0,b.u4)(b.qY.NATIVE_SHARE_FAILED,{errorName:e.name,errorMessage:e.message})}return!1})().then(e=>{e||(0,b.u4)(b.qY.SHARE_DIALOG_OPENED,{medium:p||"web",post_id:o?o.id:null,utm_campaign:g||m||E._9.default})})},[t]),{handleClose:()=>{y(null),n()},internalUtmCampaign:g,setInternalUtmCampaign:y}})((0,a._)({isOpen:t,onClose:n,shareUrl:o,post:u,pub:p,profile:m,comments:h,commentId:g,medium:O,utm_campaign:v,referral_token:x},C)),{onStartClipping:L}=(0,l.MC)(),R="post_share_dropdown",T=h&&g&&h.find(e=>e.id===g),P=T?"comment":p&&!u?"publication":u?"post":m?"profile":void 0;return(0,s.jsxs)(N.aF,{isOpen:t,onClose:k,children:[(0,s.jsx)(S,{type:P,onClose:k}),(0,s.jsx)(N.cw,{children:(0,s.jsxs)(y.VP,{gap:20,children:[(0,s.jsx)(w,{type:P,pub:p,post:u,profile:m,comment:T,shareUrl:o}),(0,s.jsx)(d.k,(0,i._)((0,a._)({utm_campaign:null!=j?j:v,medium:O,post:u,pub:p},C),{shareName:(0,c.ZE)({post:u,pub:p,profile:m}),handleOnClipClick:()=>{(0,b.u4)(b.qY.MEDIA_CLIP_BUTTON_CLICKED,{button:"create",source:"post share dropdown",surface:R}),(0,b.u4)(b.qY.VIDEO_CLIP_BUTTON_CLICKED,{post_id:null==u?void 0:u.id,source:I,type:null==u?void 0:u.type,surface:R}),L({source:"post-share-dropdown",title:null}),n()},showClipping:!!M,disableClipping:!M,shareUrl:null!=o?o:(0,c.x5)(null,{medium:O,post:u,pub:p,profile:m,comments:h,commentId:g,utm_campaign:v,referral_token:x})}))]})})]})};function S(e){let{type:t,onClose:n}=e,{iString:a,iTemplate:i}=(0,u.GO)(),r="publication"===t?"Substack":t;return(0,s.jsx)(N.rQ,{title:r?i(v(),r):a("Share"),onClose:n})}let w=e=>{let{type:t,pub:n,post:a,profile:i,comment:r,shareUrl:o}=e;return(0,s.jsxs)(I,{shareUrl:o,children:["comment"==t&&r&&(0,s.jsx)(p.Hr,{comment:r,readOnly:!0}),"post"==t&&a&&n&&(0,s.jsx)(h.Sp,{post:a,publication:n,readOnly:!0}),"publication"==t&&n&&(0,s.jsx)(g.S,{publication:n,readOnly:!0}),"profile"==t&&i&&(0,s.jsx)(m.i,{url:o,readOnly:!0,title:i.name,host:"substack.com",image:i.photo_url}),void 0==t&&(0,s.jsx)(m.i,{url:o,readOnly:!0})]})},I=e=>{let{shareUrl:t,children:n}=e,{handleCopyLink:a}=(0,c._m)();return(0,s.jsx)(O.AE,{onClick:()=>a({shareUrl:null!=t?t:"#"}),href:null!=t?t:"#",children:n})}},77851:function(e,t,n){n.d(t,{k:()=>j});var a=n(69277),i=n(74848),r=n(45773),o=n(54718),s=n(93164),l=n(16858),c=n(87564),d=n(83126),u=n(49031),p=n(63892),m=n(34581),h=n(61039),g=n(3110),_=n(36135),b=n(23571),f=n(70357),A=n(38685),E=n(42496),y=n(9979),N=n(84605),O=n(40691),v=n(46271),x=n(86500),S=n(35369),w=n(76977),I=n(49315),M=n(57324);let C={size:20,stroke:"var(--color-fg-primary)"},k={size:64};function j(e){let t=(0,v.Jd)(),{openModal:n,closeModal:j}=(0,O.hS)(),{iString:L}=(0,N.GO)(),{handleCopyLink:R,justCopied:T}=(0,y._m)();return(0,i.jsxs)(w.Ye,{justifyContent:"space-between",gap:12,children:[(0,i.jsx)(S.fv,(0,a._)({onClick:()=>R((0,a._)({},e)),icon:T?(0,i.jsx)(r.A,(0,a._)({},C)):(0,i.jsx)(h.A,(0,a._)({},C)),label:L(T?"Copied":"Copy link")},k)),(0,i.jsx)(S.fv,(0,a._)({onClick:()=>(0,y.aE)((0,a._)({},e)),icon:(0,i.jsx)(u.A,(0,a._)({},C)),label:L("Facebook")},k)),(0,i.jsx)(S.fv,(0,a._)({onClick:()=>(0,y.Et)((0,a._)({},e)),icon:(0,i.jsx)(g.A,(0,a._)({},C)),label:L("Email")},k)),(0,i.jsx)(S.fv,(0,a._)({onClick:()=>(0,y.HT)((0,a._)({},e)),icon:(0,i.jsx)(f.A,(0,a._)({},C)),label:L("Notes")},k)),(0,i.jsxs)(I.W1,{trigger:(0,i.jsx)(S.fv,(0,a._)({label:L("More"),icon:(0,i.jsx)(o.A,(0,a._)({},C))},k)),onOpen:()=>{(0,x.u4)(x.qY.SHARE_DIALOG_MORE_OPTION_CLICKED,{medium:e.medium||"web",post_id:e.post?e.post.id:null,utm_campaign:e.utm_campaign||M._9.default})},children:[(0,i.jsx)(I.Dr,{onClick:()=>(0,y.PB)((0,a._)({},e)),leading:(0,i.jsx)(d.A,{}),children:L("Bluesky")}),(0,i.jsx)(I.Dr,{onClick:()=>(0,y.NH)((0,a._)({},e)),leading:(0,i.jsx)(A.A,{}),children:L("X (Twitter)")}),(0,i.jsx)(I.Dr,{onClick:()=>(0,y.Uy)((0,a._)({},e)),leading:(0,i.jsx)(m.A,{}),children:L("LinkedIn")}),(0,i.jsx)(I.Dr,{onClick:()=>(0,y.sx)((0,a._)({},e)),leading:(0,i.jsx)(b.A,{}),children:L("Reddit")}),(0,i.jsx)(I.Dr,{onClick:()=>(0,y.QY)((0,a._)({},e)),leading:(0,i.jsx)(_.A,{}),children:L("Pinterest")}),(0,i.jsx)(I.Dr,{onClick:()=>(0,y.Bg)((0,a._)({},e)),leading:(0,i.jsx)(p.A,{}),children:L("Hacker News")}),(0,i.jsxs)(I.H9,{children:[t&&(0,i.jsx)(E.Eg,{url:e.shareUrl,onShare:()=>{var t;(0,x.u4)(x.qY.SHARE_LINK_CLICKED,{name:"direct_message",post_id:null==(t=e.post)?void 0:t.id,source:"share_post"})}}),(0,i.jsx)(I.Dr,{leading:(0,i.jsx)(s.A,{}),onClick:()=>{var t;n({children:(0,i.jsx)(c.k,{post:e.post,pub:null!=(t=e.pub)?t:void 0,onClose:j}),width:540})},children:L("Embed")})]}),e.showClipping&&(0,i.jsx)(I.H9,{children:(0,i.jsx)(w.I1,{paddingX:8,paddingTop:4,paddingBottom:8,children:(0,i.jsx)(S.$n,{leading:(0,i.jsx)(l.A,{size:16}),disabled:e.disableClipping,priority:"primary",onClick:e.handleOnClipClick,children:L("Create clip")})})})]})]})}},51419:function(e,t,n){n.d(t,{WJ:()=>l,eG:()=>c});var a=n(74848),i=n(96540);let r={name:null,version:null,major:null},o={chrome:130,firefox:130,safari:16,edge:130},s=(0,i.createContext)({browser:r,isSupported:!0,webviewPlatform:null});function l(e){let{browser:t=r,webviewPlatform:n=null,children:l}=e,c=(0,i.useMemo)(()=>{let{name:e,version:a,major:i}=t,r=!0,s=o[null==e?void 0:e.toLowerCase()];return e&&s&&(r=!!(a&&i&&Number(i)>=s)),{browser:t,isSupported:r,webviewPlatform:n}},[t,n]);return(0,a.jsx)(s.Provider,{value:c,children:l})}function c(){return(0,i.useContext)(s)}},38898:function(e,t,n){n.d(t,{H5:()=>_,NK:()=>g,lW:()=>h});var a=n(74848),i=n(32485),r=n.n(i),o=n(78659),s=n.n(o),l=n(96540),c=n(69715),d=n(76977),u=n(57820),p=n(92967),m=n(47961);let h=e=>{let{videoElement:t,start:n,setStart:i,end:r,setEnd:o,storyboard:s,maxDuration:p,minDuration:h,maxTimelineDuration:g=360,minTimelineDuration:_=360,looping:f,zoom:A,setZoom:E}=e,[y,N]=(0,l.useState)(!1),[O,v]=(0,l.useState)(0),[x,S]=(0,l.useState)(Math.max(0,n-c._K)),[w,I]=(0,l.useState)(0),[M,C]=(0,l.useState)(0),k=(0,l.useRef)(0),[j,L]=(0,l.useState)({isDragging:!1,element:void 0});return(0,l.useEffect)(()=>{let e=()=>{if(t){v(t.duration);let e=[360,t.duration];g&&e.push(g),I(Math.min(...e))}};return t&&t.addEventListener("loadedmetadata",e),(null==t?void 0:t.duration)&&e(),()=>{t&&t.removeEventListener("loadedmetadata",e)}},[g,t]),(0,l.useEffect)(()=>{let e=()=>{t&&C(t.currentTime)};if(t)return t.addEventListener("timeupdate",e),()=>{t.removeEventListener("timeupdate",e)}},[t]),(0,l.useEffect)(()=>{if(!y)return;let e=Math.abs(M-k.current);if(k.current=M,e<1){f&&t&&!j.isDragging&&(M>r||Mw||M{if(!O||j.isDragging)return;if(n>x&&r{if(!y)return;let e=w-x,t=(0,c.eD)(A),a=isNaN(e)||eO&&(s=Math.max(0,(l=O)-t)),g&&l-s>g||_&&l-s<_||(I(l),S(s))},[A,g,_,O,y]),(0,a.jsx)("div",{className:m.A.timeline,children:O>0?(0,a.jsx)(b,{startTimeline:x,setStartTimeline:S,endTimeline:w,setEndTimeline:I,startPosition:n,setStartPosition:e=>{h&&e+h>=r?i(r-h):p&&e+p<=r?i(r-p):i(e)},endPosition:r,setEndPosition:e=>{h&&e-h<=n?o(n+h):p&&e-p>=n?o(n+p):o(e)},setPosition:(e,t)=>{i(e),o(t)},playerPosition:M,setPlayback:e=>{t&&(t.currentTime=e)},duration:O,onDragging:e=>{L(e)},storyboard:s}):(0,a.jsx)(d.Ye,{alignItems:"center",justifyContent:"center",children:(0,a.jsx)(u.y$,{})})})},g=e=>{let{storyboard:t,imageUrl:n,x:i,y:r,displayWidth:o,displayHeight:s,className:l}=e,c=(i?i/t.tile_width:0)*o,d=(r?r/t.tile_height:0)*s,u={width:"".concat(o,"px"),height:"".concat(s,"px"),backgroundImage:"url(".concat(n,")"),backgroundPosition:"-".concat(c,"px -").concat(d,"px"),backgroundSize:"500%"};return(0,a.jsx)("div",{className:l,style:u})};function _(e,t){return e.reduce((e,n)=>Math.abs(n.start-t){let{startTimeline:t,setStartTimeline:n,endTimeline:i,setEndTimeline:o,startPosition:c,setStartPosition:u,endPosition:h,setEndPosition:b,setPosition:E,playerPosition:y,setPlayback:N,duration:O,storyboard:v,onDragging:x}=e,S=(0,l.useRef)(null),w=(0,l.useRef)(null),I=(0,l.useRef)(h-c),M=(0,l.useRef)(null),[C,k]=(0,l.useState)({isDragging:!1,element:void 0}),j=i-t,L=(0,l.useMemo)(()=>h-c,[h,c]),R=c-t,T=h-t,P=y-t,D=t<1,B=1>Math.abs(i-O),U=(0,l.useMemo)(()=>R/j*100,[j,R]),G=(0,l.useMemo)(()=>T/j*100,[T,j]),F=(0,l.useMemo)(()=>P/j*100,[P,j]),W="linear-gradient(to right, \n rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) calc(".concat(U,"% - 6px), \n rgba(0,0,0,0) calc(").concat(U,"% - 6px), rgba(0,0,0,0) calc(").concat(G,"% + 6px), \n rgba(0,0,0,0.5) calc(").concat(G,"% + 6px), rgba(0,0,0,0.5) 100%)"),Y=(0,l.useCallback)(e=>{u(Math.max(0,e/100*j+t))},[j,u,t]),K=(0,l.useCallback)(e=>{b(Math.min(O,e/100*j+t))},[O,j,b,t]);(0,l.useEffect)(()=>{x(C)},[C]);let H=e=>{e.preventDefault(),e.stopPropagation()},V=()=>{setTimeout(()=>{k({isDragging:!1,element:void 0})},300),w.current=null,M.current=null,document.removeEventListener("selectstart",H),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",V),document.removeEventListener("pointerup",V)},z=e=>{if(null===w.current)return;let a=e.clientX-w.current;if(k({isDragging:!0,element:"interval"}),!S.current)return;let r=a/S.current.getBoundingClientRect().width*j,s=c+r,l=s+I.current;M.current?s<0?(E(0,I.current),n(0)):l>O?(E(O-I.current,O),o(O)):E(s,l):t-r>0&&i-r<=O&&(n(Math.max(0,t-r)),o(Math.min(O,i-r)))};return(0,a.jsx)("div",{className:m.A.railContainer,children:(0,a.jsxs)("div",{className:m.A.rail,ref:S,onMouseDown:e=>{if(!S.current)return;document.addEventListener("selectstart",H),w.current=e.clientX,I.current=h-c;let t=S.current.getBoundingClientRect().left,n=(e.clientX-t)/S.current.getBoundingClientRect().width*100;M.current=n>=U&&n<=G,document.addEventListener("mousemove",z),document.addEventListener("mouseup",V),document.addEventListener("pointerup",V)},onClick:e=>{if(e.stopPropagation(),e.preventDefault(),C.isDragging||!S.current)return;w.current=e.clientX,I.current=h-c;let n=S.current.getBoundingClientRect().left,a=(e.clientX-n)/S.current.getBoundingClientRect().width*100,i=a>=U&&a<=G,r=t+a/100*j;if(i)N(r);else{let e=s()(r,0,O-I.current),t=e+I.current;E(e,t)}},children:[(()=>{var e,n;if(!v)return null;let r=null!=(n=null==S||null==(e=S.current)?void 0:e.getBoundingClientRect().width)?n:0;if(0===r)return null;let o=(function(e,t,n){let a=[],i=Math.floor(e/n)*n,r=Math.ceil(t/n)*n;for(let e=i;e<=r;e+=n)a.push(e);return a})(t,i,j/r*(60*(v.tile_width/v.tile_height))).map(e=>({time:e,tile:_(v.tiles,e)}));return(0,a.jsx)(d.Ye,{className:m.A.storyboard,children:o.map((e,n)=>{let{time:i,tile:r}=e,o=(i-t)/j*100;return(0,a.jsx)("div",{style:{position:"absolute",left:"calc(".concat(o,"% + 6px)")},children:(0,a.jsx)(g,{storyboard:v,imageUrl:v.url,displayHeight:60,displayWidth:v.tile_width/v.tile_height*60,x:r.x,y:r.y},"".concat(r.x,"-").concat(r.y,"-").concat(n))})})})})(),(0,a.jsx)("div",{className:m.A.nonSelectable,style:{background:W,position:"absolute",top:0,bottom:0,left:0,right:0}}),(0,a.jsxs)("div",{className:r()(m.A.handles,m.A.nonSelectable),children:[(0,a.jsx)("div",{className:m.A.selection,style:{left:"calc(".concat(U,"% - 6px)"),width:"calc(".concat(G-U,"% + 12px)")}}),!D&&(0,a.jsx)("div",{className:m.A.selectionFadeLeft}),!B&&(0,a.jsx)("div",{className:m.A.selectionFadeRight})]}),(0,a.jsx)(A,{divRef:S,startTimeline:t,railDuration:i-t,active:!C.isDragging}),(0,a.jsxs)("div",{className:m.A.handles,children:[(0,a.jsx)(f,{className:"".concat(m.A.draggable," ").concat(m.A.draggableLeft),railRef:S,label:(0,p.kq)(null!=L?L:0,!0),position:U,maxPosition:G,setPosition:Y,isDragging:"start"===C.element,setIsDragging:e=>e?k({isDragging:!0,element:"start"}):k({isDragging:!1,element:void 0})}),(0,a.jsx)(f,{className:"".concat(m.A.draggable," ").concat(m.A.draggableRight),railRef:S,label:(0,p.kq)(null!=L?L:0,!0),position:G,minPosition:U,setPosition:K,isDragging:"end"===C.element,setIsDragging:e=>e?k({isDragging:!0,element:"end"}):k({isDragging:!1,element:void 0})}),(0,a.jsx)(f,{className:m.A.playback,railRef:S,label:(0,p.kq)(L,!0),position:F,isDragging:C.isDragging,disabled:!0})]})]})})};m.A.lgTick,m.A.lgTick,m.A.smTick,m.A.smTick;let f=e=>{let{railRef:t,position:n,disabled:i,setPosition:r,label:o,maxPosition:s,minPosition:c,className:d,onDragStart:u,onDragEnd:p,showIcon:h=!0,setIsDragging:g}=e,_=(0,l.useRef)(null),[b,f]=(0,l.useState)(!1),A=e=>{e.preventDefault(),e.stopPropagation()},E=()=>{setTimeout(()=>{null==g||g(!1)},0),f(!1),document.removeEventListener("selectstart",A),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",E),document.removeEventListener("pointerup",E),p&&p()},y=e=>{if(null==g||g(!0),!t.current||!_.current)return;let n=t.current.getBoundingClientRect().left,a=t.current.getBoundingClientRect().width,i=(e.clientX-n)/a*100;r&&(void 0!==s&&void 0!==c?r(Math.min(s,Math.max(c,i))):void 0!==s?r(Math.min(s,i)):void 0!==c?r(Math.max(c,i)):r(i))};return(0,a.jsxs)("div",{className:d,ref:_,style:{left:"".concat(n,"%")},onMouseDown:e=>{!i&&(null==g||g(!1),e.stopPropagation(),f(!0),document.addEventListener("selectstart",A),document.addEventListener("mousemove",y),document.addEventListener("mouseup",E),document.addEventListener("pointerup",E),u&&u())},children:[h&&(0,a.jsx)("div",{className:m.A.handle}),(0,a.jsx)("div",{className:"".concat(m.A.tooltip," ").concat(b?m.A.visible:m.A.hidden," ").concat(m.A.nonSelectable),children:o})]})},A=e=>{let{divRef:t,startTimeline:n,railDuration:i,active:o}=e,[s,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(!1),h=e=>{if(t.current){let a=t.current.getBoundingClientRect(),{left:r,width:o}=a,s=e.clientX-r;c({x:e.clientX-a.left,time:n+s/o*100/100*i})}},g=()=>u(!0),_=()=>u(!1);return((0,l.useEffect)(()=>(t.current&&(t.current.addEventListener("mousemove",h),t.current.addEventListener("mouseenter",g),t.current.addEventListener("mouseleave",_)),()=>{t.current&&(t.current.removeEventListener("mousemove",h),t.current.removeEventListener("mouseenter",g),t.current.removeEventListener("mouseleave",_))}),[n,i]),o&&s&&d)?(0,a.jsxs)("div",{className:r()(m.A.shadowContainer,m.A.nonSelectable),style:{left:s.x},children:[(0,a.jsx)("div",{className:m.A.shadow}),(0,a.jsx)("div",{className:r()(m.A.tooltip,m.A.mouseTracker),children:(0,p.kq)(s.time,!0)})]}):null}},16784:function(e,t,n){n.d(t,{p:()=>S});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(48309),d=n(96540),u=n(15734),p=n.n(u),m=n(69715),h=n(20138),g=n(27402),_=n(89845),b=n(84605),f=n(36874),A=n(86500),E=n(68349),y=n(35369),N=n(76977),O=n(48965),v=n(39318),x=n(7315);let S=e=>{var t;let{postId:n,visible:s,videoPlayerRef:c,surface:u}=e,p=(0,r._)(e,["postId","visible","videoPlayerRef","surface"]),{onCancelClipping:h}=(0,m.MC)(),[_,b]=(0,d.useState)(!1),[y,O]=(0,d.useState)(),v=()=>{if(s){var t,a,i,r;null==(a=c.current)||null==(t=a.player)||t.pause(),(0,A.u4)(A.qY.VIDEO_CLIP_CREATE_MODAL_CLOSED,{post_id:null!=n?n:null==(i=e.post)?void 0:i.id,surface:u}),p.hideBottomControls||(0,A.u4)(A.qY.MEDIA_CLIP_CREATE_MODAL_CLOSED,{video_upload_id:p.videoUpload.id,post_id:null!=n?n:null==(r=e.post)?void 0:r.id,is_post_editor:!1,surface:u})}h()},S=async e=>{var t,n;O({id:(0,E.QT)(),created_at:new Date,media_upload_id:p.videoUpload.id,title:null!=(n=null==(t=p.post)?void 0:t.slug)?n:"",start_time:e.start,duration:e.duration,source:"user",assets:[],user_id:null,description:""}),b(!0)};return((0,g.A)(e.containerRef,v),s)?(0,o.jsxs)(N.Ye,{className:l()(x.A.videoTrimmerSlider,{[x.A.videoTrimmerSliderVisible]:s}),children:[(0,o.jsx)(w,(0,i._)((0,a._)({},p),{videoPlayerRef:c,onCancel:v,onSubmit:S,surface:u})),y&&(0,o.jsx)(f.e,{videoUpload:p.videoUpload,transcription:null==(t=p.videoUpload.extractedAudio)?void 0:t.transcription,isOpen:_,onClose:()=>{b(!1),h()},clip:y,useDownloadsCenter:!0,surface:u})]}):null},w=e=>{let{hideBottomControls:t,isInline:n,videoPlayerRef:a,videoUpload:i,post:r,pub:s,onCancel:l,onSubmit:u,surface:g}=e,f=(0,O.d)(),E=(0,h.lY)(),{iString:N}=(0,b.GO)();(0,d.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);let x=async e=>{var t,n;(0,A.u4)(A.qY.VIDEO_CLIP_CREATE_BUTTON_CLICKED,{post_id:null==r?void 0:r.id,media_upload_id:null==r||null==(t=r.videoUpload)?void 0:t.id,start_time:e.start,end_time:e.start+e.duration,surface:g}),a&&setTimeout(()=>{var e,t;return null==(t=a.current)||null==(e=t.player)?void 0:e.pause()},100);try{let t=await p().post("/api/v1/video/assets/".concat(null==i?void 0:i.id,"/clips")).send(e);return E.addMediaUpload({mediaUpload:t.body.mediaUpload,thumbnailUrl:(0,v.Pzx)(i),title:null!=(n=null==r?void 0:r.title)?n:N("Download"),source:"user"}),l(),e}catch(e){console.error(e),f.popToast(()=>(0,o.jsx)(O.y,{text:N("Error creating clip")}))}};return(0,o.jsx)(_.A,{hideBottomControls:t,isInline:n,videoPlayerRef:a,videoUpload:i,post:r,pub:s,onSubmit:null!=u?u:x,onSubmitLabel:e=>(0,o.jsx)(y.$n,{leading:(0,o.jsx)(c.A,{size:20}),onClick:e,children:N("Create clip")}),minClipDuration:m.LO,maxClipDuration:m.z3,minTimelineDuration:m._K,maxTimelineDuration:m.sm,surface:g})}},47963:function(e,t,n){n.d(t,{El:()=>C,V3:()=>j,gF:()=>k,hj:()=>R});var a=n(69277),i=n(70408),r=n(79785),o=n(74848),s=n(96540),l=n(80682),c=n(72880),d=n(84605),u=n(46271),p=n(86500),m=n(94729),h=n(31392),g=n(12501),_=n(22057),b=n(35369),f=n(18540),A=n(76977),E=n(20500),y=n(91609),N=n(16993),O=n(63136),v=n(11510),x=n(39318),S=n(82776),w=n(34372);function I(){let e=(0,r._)(["Accept ","'s gift in the Substack app"]);return I=function(){return e},e}function M(){let e=(0,r._)(["We sent a link to download the Substack app to ","."]);return M=function(){return e},e}function C(){let{utm_campaign:e,utm_source:t,utm_content:n,abTestingId:a,overrideCTA:i,overrideTitle:r,subTitle:l,openUrl:c,giftCard:d,pub:u,facepileUsers:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,g]=(0,s.useState)(!1),_=(0,s.useCallback)(()=>{g(!0),(0,p.u4)(p.qY.APP_INSTALL_MODAL_OPENED,{utm_campaign:e,utm_source:t,utm_content:n})},[e,t,n]),b=(0,s.useCallback)(()=>{g(!1)},[]);return{open:_,modal:(0,o.jsx)(L,{isOpen:h,onClose:b,utm_campaign:e,utm_source:t,utm_content:n,abTestingId:a,overrideCTA:i,overrideTitle:r,subTitle:l,openUrl:c,width:d?450:void 0,giftCard:d,pub:u,facepileUsers:m})}}function k(e){let{utm_campaign:t,utm_source:n,utm_content:a,hideEmailPrompt:i=!1,abTestingId:r,suggestedEmail:s,size:l,padding:c=32,openUrl:d,onSend:u}=e,p=(0,v.Iu)(),m=(0,h.D2)();return p?(0,o.jsx)(A.VP,{padding:c,children:(0,o.jsx)(j,{utm_campaign:t,utm_source:n,darkMode:m.darkMode})}):(0,o.jsxs)(A.VP,{gap:20,padding:c,children:[(0,o.jsx)(A.ov,{children:(0,o.jsx)(A.pT,{className:w.A.qrCode,padding:8,overflow:"hidden",radius:"lg",bg:"white",outline:"detail",shadow:"lg",animate:!0,cursor:"pointer",children:(0,o.jsx)(R,{size:l,utm_campaign:t,utm_source:n,utm_content:a,abTestingId:r,openUrl:d})})}),!i&&(0,o.jsx)(f.v,{}),!i&&(0,o.jsx)(T,{suggestedEmail:s,onSend:u})]})}function j(e){let{utm_campaign:t,utm_source:n,darkMode:a=!1}=e;return(0,o.jsxs)(A.pT,{gap:16,justifyContent:"center",children:[(0,o.jsx)("a",{className:w.A.appBadge,href:(0,x.cxW)({utm_campaign:t,utm_source:n}),onClick:()=>{(0,p.u4)(p.qY.APP_STORE_LINK_CLICKED,{source:"app_install_upsell",app_store:"ios",utm_campaign:t,utm_source:n})},children:(0,o.jsx)("img",{src:(0,x.dJ9)(a?"/img/app_page/app-store-white.png":"/img/app_page/app-store.png",320),height:48})}),(0,o.jsx)("a",{className:w.A.appBadge,href:(0,x.zw3)({utm_campaign:t,utm_source:n}),onClick:()=>{(0,p.u4)(p.qY.APP_STORE_LINK_CLICKED,{source:"app_install_upsell",app_store:"android",utm_campaign:t,utm_source:n})},children:(0,o.jsx)("img",{src:(0,x.dJ9)(a?"/img/app_page/google-play-white.png":"/img/app_page/google-play.png",320),height:48})})]})}function L(e){var t;let{isOpen:n,onClose:r,utm_campaign:c,utm_content:u,utm_source:p,abTestingId:m,overrideTitle:h,subTitle:g,openUrl:b,width:f,facepileUsers:E,showMobileClose:y,giftCard:O,pub:w}=e,{iString:M,iTemplate:C}=(0,d.GO)(),j=(0,v.Iu)(),[L,R]=(0,s.useState)(""),T=(0,s.useCallback)(e=>{R(e)},[]),D=(0,s.useCallback)(()=>{R(""),r()},[r]),B=!!O&&!!w,U=(null==O||null==(t=O.gifter)?void 0:t.name)?"Split Zone Duo"===O.gifter.name?"SZD":(0,S.guessFirstName)(O.gifter.name):"",G=h||(B?U?C(I(),U):M("Accept this gift in the Substack app"):M("Download the Substack app"));return(0,o.jsxs)(N.aF,{isOpen:n,onClose:r,width:f||360,children:[(0,o.jsx)(N.rQ,{title:G,description:g,onClose:!j||y?r:void 0,showDivider:!0}),L?(0,o.jsx)(P,{sentEmail:L,closeModal:D}):(0,o.jsxs)(A.I1,{alignItems:"stretch",paddingTop:32*!!j,children:[B?(0,o.jsx)(A.pT,{justifyContent:"center",alignItems:"center",paddingTop:{desktop:20,mobile:0},children:(0,o.jsx)(l.N,(0,i._)((0,a._)({},O),{pub:w}))}):(null==E?void 0:E.length)?(0,o.jsx)(A.pT,{justifyContent:"center",alignItems:"center",padding:{mobile:8},children:(0,o.jsx)(_.Z,{users:E,max:3,size:48})}):j?(0,o.jsx)(A.pT,{justifyContent:"center",alignItems:"center",children:(0,o.jsx)("img",{src:(0,x.dJ9)("/img/substack-app-icon.png"),height:64,width:64})}):null,(0,o.jsx)(k,{utm_campaign:c,utm_source:p,utm_content:u,abTestingId:m,openUrl:b,size:142,onSend:T})]})]})}function R(e){let{utm_campaign:t,utm_source:a,utm_content:i,abTestingId:r,size:l=240,width:c,height:d,openUrl:u}=e,p=(0,s.useRef)(null),m=(0,x.wHz)({utm_campaign:t,utm_source:a,utm_content:i,abti:r}),h=function(e,t){let{result:a}=(0,g.qK)(()=>n.e("4592").then(n.t.bind(n,97283,23)),[],{auto:!0}),i=null==a?void 0:a.default;return(0,s.useMemo)(()=>i&&"undefined"!=typeof window?new i(e(window)):null,[i,...t])}(e=>{let t=e.devicePixelRatio,n=getComputedStyle(document.body),a="rgb(".concat(n.getPropertyValue("--color-primitive-black-rgb"),")");return{width:(null!=c?c:l)*t,height:(null!=d?d:l)*t,type:"canvas",data:u||m,dotsOptions:{color:a,type:"dots"},backgroundOptions:{color:"rgb(".concat(n.getPropertyValue("--color-primitive-white-rgb"),")")},cornersSquareOptions:{color:a,type:"extra-rounded"},cornersDotOptions:{color:a,type:"dot"},qrOptions:{errorCorrectionLevel:"L"}}},[c,d,u]);return(0,s.useEffect)(()=>{let{current:e}=p;if(!e||!h||!h._canvas)return;let t=h._canvas;return t.style.width="".concat(null!=c?c:l,"px"),t.style.height="".concat(null!=d?d:l,"px"),e.style.width="".concat(null!=c?c:l,"px"),e.style.height="".concat(null!=d?d:l,"px"),e.appendChild(t),()=>{e.removeChild(t)}},[h,c,d]),(0,o.jsx)("div",{ref:p})}function T(e){let{suggestedEmail:t,onSend:n}=e,{iString:a}=(0,d.GO)(),i=(0,u.Jd)(),[r,l]=(0,s.useState)((null==i?void 0:i.email)||t||""),[c,p]=(0,s.useState)(!1),[h,g]=(0,s.useState)(null);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(A.I1,{gap:8,children:[(0,o.jsx)(y.x,{type:"email",placeholder:a("Your email"),placement:"end",priority:"primary",value:r,onChange:e=>l(e.currentTarget.value),button:(0,o.jsx)(b.$n,{loading:c,onClick:async()=>{p(!0);try{await (0,m.x6)("/api/v1/send_app_download_link",{method:"POST",json:{email:r}}),g(null),p(!1),n&&n(r)}catch(e){g("Something went wrong")}},children:a("Send link")})}),h&&(0,o.jsx)(E.yn,{align:"center",children:h})]})})}let P=e=>{let{sentEmail:t,closeModal:n}=e,{iString:a,iTemplate:i}=(0,d.GO)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.cw,{children:(0,o.jsxs)(A.I1,{gap:20,justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(c.o,{src:"/img/cohorts/local_news/plane.png",maxWidth:64}),(0,o.jsxs)(A.I1,{gap:4,justifyContent:"center",alignItems:"center",children:[(0,o.jsx)(O.EY.B2,{weight:"semibold",textAlign:"center",children:a("Check your email")}),(0,o.jsx)(O.EY.B3,{color:"secondary",align:"center",children:i(M(),t||"your email")})]})]})}),(0,o.jsx)(N.jl,{alignButtons:"stretch",primaryButton:(0,o.jsx)(b.$n,{priority:"secondary",onClick:n,children:a("Done")})})]})}},38893:function(e,t,n){n.d(t,{$g:()=>h});var a=n(74848),i=n(4963),r=n(14506),o=n(48617),s=n(99070),l=n(79559),c=n(84605),d=n(89490),u=n(63136),p=n(82286),m=n(53076);function h(e){let{label:t,src:n,duration:d,downloadable:m,autoPlay:h,post:b,pub:f,mediaUpload:A,trackingProps:E}=e,{iString:y}=(0,c.GO)();return(0,a.jsx)(s.A,{src:n,duration:d,autoPlay:h,post:b,pub:f,metricsPost:b,feature:"Embed audio",mediaUpload:A,trackingProps:null!=E?E:{},render:e=>{let{currentTime:s,isPlaying:c,progress:h,progressBarRef:b,progressBarOnMouseDown:f,remainingTime:A,playbackRate:E,setPlaybackRate:N,togglePlayback:O}=e;return(0,a.jsxs)(_,{"aria-label":y("Audio embed player"),role:"region","data-component-name":"AudioEmbedPlayer",children:[(0,a.jsx)(r.e,{isPlaying:c,onClick:O}),(0,a.jsxs)(g,{children:[t&&(0,a.jsx)(u.EY.B4,{weight:"medium",color:"secondary",children:t}),(0,a.jsx)(l.b,{currentTime:s,remainingTime:A,containerRef:b,progress:h,onMouseDown:f})]}),(0,a.jsxs)(p.Xn,{children:[m&&(0,a.jsx)(i.Y,{src:n}),d&&d>600&&(0,a.jsx)(o.x,{onSetPlaybackRate:N,playbackRate:E})]})]})}})}let g=(0,d.I4)({display:"flex",flex:"grow",direction:"column",gap:6}),_=(0,d.I4)({display:"flex",flex:"grow",radius:"sm",bg:"primary",userSelect:"none",sizing:"border-box",alignItems:"center",gap:12,padding:12,border:"detail",className:m.A.embed})},99070:function(e,t,n){n.d(t,{A:()=>j});var a=n(99851),i=n(69277),r=n(70408),o=n(74848),s=n(32485),l=n.n(s),c=n(69843),d=n.n(c),u=n(96540),p=n(68414),m=n(60235),h=n(77290),g=n(95931),_=n(46129),b=n(73164),f=n(84605),A=n(13505),E=n(86500),y=n(74894),N=n(17186),O=n(68349),v=n(35369),x=n(56458),S=n(39318),w=n(82776),I=n(57324);let M="AudioPlayer.playbackRate",C={utm_source:I.VU.twitter,utm_medium:I.Jn.social,utm_campaign:I._9.twitterEmbed};class k extends u.Component{shouldComponentUpdate(e){return this.props.currentPlaybackRate!==e.currentPlaybackRate||this.props.setPlaybackRate!==e.setPlaybackRate}render(){let{currentPlaybackRate:e,setPlaybackRate:t}=this.props;return(0,o.jsxs)("select",{className:"audio-player-playback-rate",dir:"rtl",onInput:e=>t(Number(e.target.value)),children:[(0,o.jsx)("option",{value:"1",selected:1===e,children:"1x"}),(0,o.jsx)("option",{value:"1.25",selected:1.25===e,children:"1.25x"}),(0,o.jsx)("option",{value:"1.5",selected:1.5===e,children:"1.5x"}),(0,o.jsx)("option",{value:"1.75",selected:1.75===e,children:"1.75x"}),(0,o.jsx)("option",{value:"2",selected:2===e,children:"2x"})]})}}class j extends u.Component{componentDidMount(){var e;null===O.dO||void 0===O.dO||O.dO.on("play",this._onGlobalPlay),document.body&&(document.body.addEventListener("mousemove",this._onMouseMove,!1),document.body.addEventListener("touchmove",this._onTouchMove,{passive:!1})),window.addEventListener("mouseup",this._onDragEnd,!0),window.addEventListener("touchend",this._onDragEnd,!0),window.addEventListener("touchcancel",this._onDragEnd,!0),this.player&&(this.player.volume=1,this.player.playbackRate=this.state.playbackRate,this.player.addEventListener("canplay",this._onCanPlay),this.player.addEventListener("play",this._onPlay),this.player.addEventListener("pause",this._onPause),this.player.addEventListener("ended",this.onEnded),this.player.addEventListener("timeupdate",this._onTimeUpdate),this.player.addEventListener("ratechange",this._onRateChange),this.player.addEventListener("waiting",this._onWaiting),this.player.addEventListener("playing",this._onPlaying),this.player.addEventListener("seeked",this.onSeeked)),this.progressBar.current&&this.progressBar.current.addEventListener("touchstart",this._onTouchStart,{passive:!0}),this.onTimeUpdate();let t=null==(e=this.player)?void 0:e.duration;!this.props.onGetDuration||d()(t)||isNaN(Number(t))||this.props.onGetDuration(t),(0,O.NN)((0,S.dJ9)("/img/audio-player-pause.png",96))}componentWillUnmount(){this.lastTimeUpdate=null,null===O.dO||void 0===O.dO||O.dO.off("play",this._onGlobalPlay),document.body&&(document.body.removeEventListener("mousemove",this._onMouseMove,!1),document.body.removeEventListener("touchmove",this._onTouchMove,!1)),window.removeEventListener("mouseup",this._onDragEnd,!0),window.removeEventListener("touchend",this._onDragEnd,!0),window.removeEventListener("touchcancel",this._onDragEnd,!0),this.player&&(this.player.removeEventListener("canplay",this._onCanPlay),this.player.removeEventListener("play",this._onPlay),this.player.removeEventListener("pause",this._onPause),this.player.removeEventListener("ended",this.onEnded),this.player.removeEventListener("timeupdate",this._onTimeUpdate),this.player.removeEventListener("ratechange",this._onRateChange),this.player.removeEventListener("waiting",this._onWaiting),this.player.removeEventListener("playing",this._onPlaying)),this.progressBar.current&&this.progressBar.current.removeEventListener("touchstart",this._onTouchStart)}componentDidUpdate(e,t){if(this.state.playing||"number"!=typeof this.state.waiting||"number"==typeof t.waiting||this.track(E.qY.AUDIO_BUFFERING_STARTED),!this.state.playing||t.playing||this.state.waiting||"number"!=typeof t.waiting||this.track(E.qY.AUDIO_BUFFERING_COMPLETED,{buffering_duration:Date.now()-t.waiting}),this.state.playing&&Math.floor(this.state.currentTime)!==Math.floor(t.currentTime)&&Math.floor(this.state.currentTime)%5==0){var n;if(this.trackMedia(E.qY.MEDIA_PLAYBACK_CONTINUED),(null==(n=this.props.metricsPost)?void 0:n.id)&&this.state.duration&&!this.props.feature){let e=Math.min(Math.max(0,this.state.currentTime/this.state.duration),1);(0,A.AG)(this.props.metricsPost.id,"audio",e)}}if(!this.state.playing&&t.playing&&this.player&&this.player.ended&&(this.props.onFinishAudio&&this.props.onFinishAudio(),this.trackMedia(E.qY.MEDIA_PLAYBACK_COMPLETED)),this.props.updateOnEveryFrame&&this.state.playing&&!t.playing){let e=()=>{this.onTimeUpdate(),this.loopId=requestAnimationFrame(e)};this.loopId=requestAnimationFrame(e)}this.props.updateOnEveryFrame&&!this.state.playing&&t.playing&&(d()(this.loopId)||cancelAnimationFrame(this.loopId)),this.progressBar.current&&(this.progressBar.current.removeEventListener("touchstart",this._onTouchStart),this.progressBar.current.addEventListener("touchstart",this._onTouchStart,{passive:!0}))}onCanPlay(){this.props.onGetDuration&&this.player&&this.props.onGetDuration(this.player.duration),this.onTimeUpdate()}onPlay(){null===O.dO||void 0===O.dO||O.dO.emit("play",this),this.setState({playing:!0}),this.lastTimeUpdate=Date.now(),this.trackMedia(E.qY.MEDIA_PLAYBACK_STARTED)}onPause(){var e;this.lastTimeUpdate=null,this.setState({playing:!1,waiting:!1}),(null==(e=this.player)?void 0:e.ended)||this.trackMedia(E.qY.MEDIA_PLAYBACK_PAUSED)}onTimeUpdate(){if(!this.player||!isFinite(this.player.duration))return;if(this.player.currentTime>this.player.duration){this.player.currentTime=this.player.duration;return}let e=Date.now();if(this.state.playing&&null!==this.lastTimeUpdate){let t=(e-this.lastTimeUpdate)/1e3;t>0&&t<1&&(this._accumulatedDurationPlayed=(this._accumulatedDurationPlayed||0)+t,this._accumulatedDurationPlayed>=1&&(this.setState(e=>({durationPlayed:e.durationPlayed+this._accumulatedDurationPlayed})),this._accumulatedDurationPlayed=0))}this.lastTimeUpdate=e,this.state.duration!==this.player.duration||this.state.currentTime!==this.player.currentTime?(this.setState({duration:this.player.duration||this.props.duration,currentTime:this.player.currentTime,waiting:!1}),this.props.onTimeUpdate&&this.props.onTimeUpdate({duration:Math.max(this.state.duration||0,this.player.duration||this.props.duration||0),currentTime:this.player.currentTime})):this.setState({waiting:!1})}onRateChange(){this.player&&this.state.playbackRate!==this.player.playbackRate&&this.setState({playbackRate:this.player.playbackRate})}onWaiting(){this.lastTimeUpdate=null,this.setState({waiting:Date.now()})}onPlaying(){this.lastTimeUpdate=Date.now(),this.setState({playing:!0,waiting:!1})}onMouseDown(e){this.onDragStart(e.clientX)}onMouseMove(e){this.onDragMove(e.clientX)}onTouchStart(e){e.touches&&e.touches[0]&&this.onDragStart(e.touches[0].pageX)}onTouchMove(e){"number"==typeof this.state.dragTime&&e.preventDefault(),e.touches&&e.touches[0]&&this.onDragMove(e.touches[0].pageX)}onDragStart(e){"number"!=typeof this.state.dragTime&&this.setDragTime(e)}onDragMove(e){"number"==typeof this.state.dragTime&&this.setDragTime(e)}onDragEnd(){this.clearDragTime()}onGlobalPlay(e){if(this!==e&&this.player&&!this.player.paused){let t=e.player;t instanceof HTMLVideoElement&&t.muted||(this.track(E.qY.CLICKED_PAUSE_BUTTON,{implicit:!0,feature:this.props.feature}),this.player.pause())}}async togglePlayback(){let{iString:e}=this.context;if(this.player)if(this.player.paused){this.track(E.qY.CLICKED_PLAY_BUTTON,{feature:this.props.feature});try{await this.player.play()}catch(t){if("NotSupportedError"===t.name)alert(e("Failed to play this media: it may not be supported by this browser."));else throw t}}else this.track(E.qY.CLICKED_PAUSE_BUTTON,{feature:this.props.feature}),await this.player.pause()}skipBack(){if(this.player){let e=Math.max(0,this.state.currentTime-15);this.player.currentTime=e}}skipForward(){if(this.player){var e;let t=Math.min(null!=(e=this.state.duration)?e:0,this.state.currentTime+30);this.player.currentTime=t}}setDragTime(e){if(!this.props.src||!this.state.duration||!this.player||!this.progressBar.current||!document.body||!document.body.getBoundingClientRect)return;let t=document.body.getBoundingClientRect(),n=this.progressBar.current.getBoundingClientRect(),a=n.left-t.left,i=n.right,r=(Math.max(a,Math.min(i,e))-a)/(i-a)*this.state.duration;this.isDragTimeCloseToCurrentTime(r)&&(r=this.state.currentTime),this.setState({dragTime:r})}clearDragTime(){if("number"!=typeof this.state.dragTime)return;let e=this.state.dragTime;this.isDragTimeCloseToCurrentTime(e)?this.setState({dragTime:null}):(this.setState({currentTime:e,dragTime:null,lastDragClearedAt:performance.now()}),this.player&&(this.player.currentTime=e))}isDragTimeCloseToCurrentTime(e){let t;return!this.props.preventSnappingToCurrentTime&&"number"==typeof this.state.currentTime&&(t=!d()(this.state.duration)&&this.state.duration<10?0:!d()(this.state.duration)&&this.state.duration<30?3:5,Math.abs(this.state.currentTime-e)1&&void 0!==arguments[1]?arguments[1]:{},n=this.props.metricsPost;n&&(0,E.u4)(e,Object.assign({post_id:n.id,publication_id:n.publication_id,is_podcast_free_preview:(0,x.XP)(n),current_time:this.state.currentTime?Math.floor(this.state.currentTime):0,duration:this.state.duration?Math.floor(this.state.duration):0,playback_rate:this.state.playbackRate},t))}trackMedia(e){var t,n,a,o,s;let{pub:l,mediaUpload:c,src:d,trackingProps:{feedItemTrackingParameters:u,surface:p,contentType:m,primaryEntityKey:h,primaryEntityType:g}={}}=this.props,{entityKey:_,entityType:b}=this.getEntityKeyAndType();(0,E.u4)(e,(0,r._)((0,i._)({},u),{media_type:"audio",video_upload_id:null!=(n=null==c?void 0:c.id)?n:"unknown",src_video_upload_id:c&&"src_media_upload_id"in c?c.src_media_upload_id:void 0,surface:p,content_type:m,primary_entity_key:String(null!=(a=null!=h?h:_)?a:"unknown"),primary_entity_type:null!=g?g:b,entity_key:String(_),entity_type:b,publication_id:null==l?void 0:l.id,display:"inline",muted:null==(t=this.player)?void 0:t.muted,captions_enabled:null,autoplay:!1,is_preview:!1,current_time:Math.floor(null!=(o=this.state.currentTime)?o:0),duration:Math.floor(null!=(s=this.state.duration)?s:0),duration_played:Math.floor(this.state.durationPlayed),duration_played_id:this.state.durationPlayedId,src:d}))}render(){let{addToPodcastLink:e,autoPlay:t,isFancy:n,isPaywalled:a,post:i,pub:r,render:s,showCTAs:l,skipPreloading:c,src:d}=this.props,{iString:u}=this.context;if(s){let{dragTime:e,duration:n,currentTime:i,playbackRate:r}=this.state,l="number"==typeof e?e:i;return(0,o.jsxs)(o.Fragment,{children:[s({isPaywalled:a,progress:n?("number"==typeof e?e:i)/n:0,currentTime:n?(0,w.secondsToHHMMSS)(l):"--:--",dragTime:"number"==typeof e?(0,w.secondsToHHMMSS)(e):null,duration:n,remainingTime:n?"-".concat((0,w.secondsToHHMMSS)(n-Math.min(l,n))):"--:--",isPlaying:this.state.playing,playbackRate:r,progressBarOnMouseDown:e=>{this.onMouseDown(e)},progressBarRef:this.progressBar,setPlaybackRate:e=>{this.setPlaybackRate(e)},skipBack:()=>{this.skipBack()},skipForward:()=>{this.skipForward()},togglePlayback:()=>{this.togglePlayback()}}),d&&!a&&(0,o.jsx)("audio",{ref:this.assignPlayer,src:d,autoPlay:t,preload:c?"none":"auto",children:u("Audio playback is not supported on your browser. Please upgrade.")})]})}return n?this.renderFancy({src:d,autoPlay:t,pub:r,post:i,showCTAs:l}):this.renderOriginal({src:d,autoPlay:t,pub:r,addToPodcastLink:e})}renderFancy(e){var t,n;let{src:a,autoPlay:s,pub:l,post:c,showCTAs:d}=e,{iString:u}=this.context,p=(0,y.M$)(l,c);return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"audio-player-wrapper-fancy",children:(0,o.jsxs)("div",{className:"audio-player",children:[(0,o.jsx)("div",{className:"audio-player-substack-logo audio-player-clickable",onClick:this.openEpisodePage,children:(0,o.jsx)(b.A,{color:"#F8F8F8"})}),(0,o.jsx)("div",{className:"audio-player-hero-image-container audio-player-clickable",onClick:this.openEpisodePage,children:p&&(0,o.jsx)("img",{className:"audio-player-hero-image audio-player-clickable",src:(0,S.dJ9)(p,500,{height:500,crop:"fill"}),onClick:this.openEpisodePage})}),(0,o.jsx)("div",{className:"audio-player-title audio-player-clickable",onClick:this.openEpisodePage,children:null!=(t=null==c?void 0:c.title)?t:""}),(0,o.jsx)("div",{className:"audio-player-subtitle audio-player-clickable",onClick:this.openEpisodePage,children:null!=(n=null==c?void 0:c.subtitle)?n:""}),a&&(0,o.jsx)("audio",{"data-testid":"audio-element",ref:this.assignPlayer,src:a,autoPlay:s,children:u("Audio playback is not supported on your browser. Please upgrade.")}),this.renderProgressFancy(this.props,this.state),this.renderButtonsFancy(this.props,this.state),d&&(0,o.jsxs)("div",{className:"btn-group",children:[(0,o.jsx)(v.$n,{priority:"secondary",newTab:!0,onClick:this.openEpisodePage,children:u("View post")}),(0,o.jsx)(v.$n,{priority:"primary",href:l?this.maybeAppendIframeVisitId((0,S.eV6)(l,(0,r._)((0,i._)({},C),{simple:!0,next:(0,S.wu9)(l,c)}))):void 0,newTab:!0,children:(0,w.getSubscribeText)(l)})]})]})})})}renderOriginal(e){let{src:t,autoPlay:n,pub:a,addToPodcastLink:i}=e,{iString:r}=this.context;return(0,o.jsxs)("div",{className:"audio-player-wrapper",children:[(0,o.jsxs)("div",{className:"audio-player",children:[t&&(0,o.jsx)("audio",{ref:this.assignPlayer,src:t,autoPlay:n,children:r("Audio playback is not supported on your browser. Please upgrade.")}),this.renderButtons(this.props,this.state),this.renderProgress(this.props,this.state)]}),i&&a&&!a.hide_podcast_feed_link&&(0,o.jsx)("div",{className:"audio-player-add-to-podcast-link",children:(0,o.jsx)("a",{href:i,target:"_blank",rel:"noopener",children:r("Listen in podcast app")})})]})}renderButtonsFancy(e,t){let{playing:n,waiting:a}=t;return(0,o.jsxs)("div",{className:"audio-player-buttons",children:[(0,o.jsx)("button",{className:"audio-player-backward","aria-pressed":"false",onClick:()=>this.skipBack(),children:(0,o.jsx)(m.A,{className:"skip-icon"})}),(0,o.jsx)("button",{className:l()("audio-player-play",{pause:"playing",waiting:a}),"aria-pressed":"false",onClick:()=>this.togglePlayback(),children:n?(0,o.jsx)(g.A,{className:"playback-icon pause",fill:"#1C110B"}):(0,o.jsx)(_.A,{className:"playback-icon play",fill:"#1C110B"})}),(0,o.jsx)("button",{className:"audio-player-forward","aria-pressed":"false",onClick:()=>this.skipForward(),children:(0,o.jsx)(h.A,{className:"skip-icon"})})]})}renderButtons(e,t){let{src:n,href:a,isStatic:i}=e,{playing:r,waiting:s,playbackRate:l}=t;return(0,o.jsxs)("div",{className:"audio-player-buttons",children:[(0,o.jsx)("table",{className:"custom",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"audio-player-buttons-spacing",children:"\xa0"}),(0,o.jsx)("td",{className:"audio-player-backward",children:(0,o.jsx)("a",{role:"button",className:"button",tabIndex:0,"aria-pressed":"false",href:a||"javascript:void(0)",onClick:()=>this.skipBack(),children:(0,o.jsx)(m.A,{className:"skip-icon",fill:"#3c3c3c",height:30,isStatic:i})})}),(0,o.jsx)("td",{className:"audio-player-play ".concat(r?"pause":""," ").concat(s?"waiting":""),children:(0,o.jsx)("a",{className:"button",role:"button",tabIndex:0,"aria-pressed":"false",href:a||"javascript:void(0)",onClick:()=>this.togglePlayback(),children:(0,o.jsx)("img",{src:(0,S.dJ9)(r?"/img/audio-player-pause.png":"/img/audio-player-play.png",96)})})}),(0,o.jsx)("td",{className:"audio-player-forward",children:(0,o.jsx)("a",{role:"button",className:"button",tabIndex:0,"aria-pressed":"false",href:a||"javascript:void(0)",onClick:()=>this.skipForward(),children:(0,o.jsx)(h.A,{className:"skip-icon",fill:"#3c3c3c",height:30,isStatic:i})})}),(0,o.jsx)("td",{className:"audio-player-buttons-spacing",children:"\xa0"})]})}),n&&(0,o.jsx)(k,{currentPlaybackRate:l,setPlaybackRate:this.setPlaybackRate})]})}renderProgress(e,t){let{duration:n,currentTime:a,dragTime:i}=t;return(0,o.jsx)("div",{className:"audio-player-progress",children:(0,o.jsx)("table",{className:"custom",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"audio-player-progress-past",children:n?(0,w.secondsToHHMMSS)(a):"--:--"}),(0,o.jsxs)("td",{ref:this.progressBar,className:"audio-player-progress-bar",onMouseDown:e=>this.onMouseDown(e),children:[(0,o.jsx)("div",{className:"audio-player-progress-bar-track"}),(0,o.jsx)("div",{className:"audio-player-progress-bar-filled",style:{width:"".concat(n?100*("number"==typeof i?i:a)/n:0,"%")}}),(0,o.jsx)("div",{className:"audio-player-progress-bar-current",style:{left:"".concat(n?100*a/n:0,"%")}}),(0,o.jsx)("div",{className:"audio-player-progress-bar-button",style:{left:"".concat(n?100*("number"==typeof i?i:a)/n:0,"%")}}),"number"==typeof i&&(0,o.jsx)("div",{className:"audio-player-progress-bar-popup",style:{left:"".concat(n?100*i/n:0,"%")},children:(0,w.secondsToHHMMSS)(i)})]}),(0,o.jsx)("td",{className:"audio-player-progress-left",children:n?"-".concat((0,w.secondsToHHMMSS)(n-Math.min(a,n))):"--:--"})]})})})}renderProgressFancy(e,t){let{duration:n,currentTime:a,dragTime:i,lastDragClearedAt:r}=t,s="number"==typeof i,c=!!r&&performance.now()-r<50;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"audio-player-progress",children:(0,o.jsxs)("div",{ref:this.progressBar,className:"audio-player-progress-bar",onMouseDown:e=>this.onMouseDown(e),children:[(0,o.jsx)("div",{className:"audio-player-progress-bar-track"}),(0,o.jsx)("div",{className:"audio-player-progress-bar-filled",style:{width:"".concat(n?100*(s?i:a)/n:0,"%")}}),(0,o.jsx)("div",{className:l()("audio-player-progress-bar-current",{"audio-player-progress-bar-current-placeholder":s,"audio-player-progress-bar-current-disable-animations":c}),style:{left:"".concat(n?100*a/n:0,"%")}}),s&&(0,o.jsx)("div",{className:"audio-player-progress-bar-current audio-player-progress-bar-current-dragging",style:{left:"".concat(n?100*i/n:0,"%")}}),s&&(0,o.jsx)("div",{className:"audio-player-progress-bar-popup",style:{left:"".concat(n?100*i/n:0,"%")},children:(0,w.secondsToHHMMSS)(i)})]})}),(0,o.jsxs)("div",{className:"audio-player-time-wrapper",children:[(0,o.jsx)("div",{className:"audio-player-progress-past",children:n?(0,w.secondsToHHMMSS)(a):"--:--"}),(0,o.jsx)("div",{className:"audio-player-progress-left",children:n?"-".concat((0,w.secondsToHHMMSS)(n-Math.min(a,n))):"--:--"})]})]})}constructor(e,t){super(e,t),(0,a._)(this,"player",void 0),(0,a._)(this,"progressBar",(0,u.createRef)()),(0,a._)(this,"loopId",void 0),(0,a._)(this,"isShowingCaptionsElsewhere",!1),(0,a._)(this,"lastTimeUpdate",null),(0,a._)(this,"_accumulatedDurationPlayed",0),(0,a._)(this,"_onGlobalPlay",void 0),(0,a._)(this,"_onMouseMove",void 0),(0,a._)(this,"_onTouchStart",void 0),(0,a._)(this,"_onTouchMove",void 0),(0,a._)(this,"_onDragEnd",void 0),(0,a._)(this,"_onCanPlay",void 0),(0,a._)(this,"_onPlay",void 0),(0,a._)(this,"_onPause",void 0),(0,a._)(this,"_onTimeUpdate",void 0),(0,a._)(this,"_onRateChange",void 0),(0,a._)(this,"_onWaiting",void 0),(0,a._)(this,"_onPlaying",void 0),(0,a._)(this,"assignPlayer",e=>{this.player=e}),(0,a._)(this,"onEnded",()=>{this.lastTimeUpdate=null,this.setState({playing:!1,waiting:!1}),this.trackMedia(E.qY.MEDIA_PLAYBACK_PAUSED)}),(0,a._)(this,"onSeeked",()=>{this.lastTimeUpdate=Date.now(),this.trackMedia(E.qY.MEDIA_SEEKED)}),(0,a._)(this,"setPlaybackRate",e=>{this.state.playbackRate!==e&&(this.player&&(this.player.playbackRate=e),this.setState({playbackRate:e}),(0,N.X3)(M,e))}),(0,a._)(this,"getEntityKeyAndType",()=>{var e,t;let{trackingProps:n,metricsPost:a,post:i,mediaUpload:r}=this.props;if((null==n?void 0:n.entityKey)&&"unknown"!==n.entityKey)return{entityKey:n.entityKey,entityType:n.entityType};let o=null!=(t=null!=(e=null==a?void 0:a.id)?e:null==i?void 0:i.id)?t:r&&"post_id"in r?r.post_id:void 0;return o?{entityKey:String(o),entityType:"post"}:{entityKey:void 0,entityType:void 0}}),(0,a._)(this,"maybeAppendIframeVisitId",e=>{let t=(0,E.TM)(),n=t?t.id:null;return n&&(e=(0,S.oRR)(e,{src_iid:n})),e}),(0,a._)(this,"openEpisodePage",()=>{if(!this.props.post)return;let e=this.props.post.canonical_url;e=this.maybeAppendIframeVisitId(e),e=(0,S.oRR)(e,C),(0,O.V2)(e,{newTab:!0})}),this._onGlobalPlay=this.onGlobalPlay.bind(this),this._onMouseMove=this.onMouseMove.bind(this),this._onTouchStart=this.onTouchStart.bind(this),this._onTouchMove=this.onTouchMove.bind(this),this._onDragEnd=this.onDragEnd.bind(this),this._onCanPlay=this.onCanPlay.bind(this),this._onPlay=this.onPlay.bind(this),this._onPause=this.onPause.bind(this),this._onTimeUpdate=this.onTimeUpdate.bind(this),this._onRateChange=this.onRateChange.bind(this),this._onWaiting=this.onWaiting.bind(this),this._onPlaying=this.onPlaying.bind(this),this.state={playbackRate:e.playbackRate||(0,N.xm)(M,1),currentTime:0,waiting:!0,duration:e.duration||void 0,lastDragClearedAt:null,durationPlayed:0,durationPlayedId:(0,p.v4)()}}}(0,a._)(j,"contextType",f.OW)},42250:function(e,t,n){n.d(t,{A:()=>s});var a=n(99851),i=n(74848),r=n(96540);let o=!1;"undefined"!=typeof window&&(window.__captchaOnloadCallback=function(){if(o&&Array.isArray(o)){let e=o;for(let t of(o=!0,e))t()}});class s extends r.Component{async componentDidMount(){await new Promise(e=>{if(!0===o)e();else if(!1===o){var t;let n,a;o=[e],n=document.getElementsByTagName("script")[0],(a=document.createElement("script")).type="text/javascript",a.async=!0,a.defer=!0,a.src="proxy.php?url=https://www.google.com/recaptcha/api.js?render=explicit&onload=__captchaOnloadCallback",null==n||null==(t=n.parentNode)||t.insertBefore(a,n)}else o.push(e)}),this.captchaId=window.grecaptcha.render(this.base,{sitekey:window._preloads.captcha_site_key,size:"compact"})}getResponse(){var e;return null==(e=window.grecaptcha)?void 0:e.getResponse(this.captchaId)}render(){let{className:e}=this.props;return(0,i.jsx)("div",{className:e})}constructor(...e){super(...e),(0,a._)(this,"captchaId",void 0)}}},8337:function(e,t,n){n.d(t,{E:()=>d,w:()=>p});var a=n(69277),i=n(70408),r=n(74848),o=n(96540),s=n(25006),l=n(46271),c=n(94729);function d(){let e=(0,l.Jd)(),t=(0,s.df)(),n=p(),a=u(e);return m({user:e,pub:t,tokens:n,loading:a}),(0,o.useEffect)(()=>()=>{"undefined"!=typeof window&&window.duet&&window.duet.hide()},[]),(0,r.jsx)("span",{id:"decagon-widget-loader"})}let u=e=>{let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if("undefined"!=typeof window&&!window.duet){n(!0);let t=document.createElement("script");t.setAttribute("id","decagon-snippet"),t.setAttribute("src","https://decagon.ai/loaders/substack.js"),t.onload=()=>{var t,a;null==(t=window.duet)||t.setUserId(null==e?void 0:e.id),null==(a=window.duet)||a.hide(),n(!1)},document.body.appendChild(t)}},[e]),t},p=()=>{let[e,t]=(0,o.useState)(""),[n,a]=(0,o.useState)(null),i=(0,l.ur)(),r=async()=>{if(i.user)try{let[e,n]=await Promise.all([(0,c.x6)("/api/v1/decagon_user_token",{method:"GET"}),(0,c.x6)("/api/v1/decagon_signature_token",{method:"GET"})]);t(e),a({signature:n.signature,epoch:n.epoch})}catch(e){console.error("Error fetching authentication tokens for Decagon:",e)}};return(0,o.useEffect)(()=>{r();let e=setInterval(r,162e4);return()=>clearInterval(e)},[]),{apiToken:e,signatureToken:n}},m=e=>{let{user:t,pub:n,tokens:r,loading:s}=e;(0,o.useEffect)(()=>{var e,o,l,c,d;if((null==(e=window.duet)?void 0:e.setMetadata)&&!s){let e,s,u,p;try{let t=document.createElement("div");t.style.fontSize="initial",e=window.getComputedStyle(t).fontSize,u=null==(o=window.screen)?void 0:o.width,s=null==(l=window.screen)?void 0:l.height,p=null==(d=window.screen)||null==(c=d.orientation)?void 0:c.type}catch(t){e="failed to get font size",u="failed to get screen width",s="failed to get screen height",p="failed to get screen orientation"}window.duet.setMetadata((0,i._)((0,a._)({email:null==t?void 0:t.email,url:window.location.href,subdomain:null==n?void 0:n.subdomain},r.apiToken&&{token:r.apiToken}),{windowWidth:window.innerWidth,windowHeight:window.innerHeight,windowFontSize:e,windowDevicePixelRatio:window.devicePixelRatio,windowScreenWidth:u,windowScreenHeight:s,windowScreenOrientation:p})),r.signatureToken&&window.duet.setUserIdAuth(r.signatureToken.signature,r.signatureToken.epoch)}},[t,n,r,s])}},86938:function(e,t,n){n.d(t,{w:()=>m});var a=n(74848),i=n(32485),r=n.n(i),o=n(48635),s=n(22752),l=n(25006),c=n(46271);n(6049);var d=n(76977),u=n(63136),p=n(20004);let m=e=>{var t;let{disableLinks:n,href:i,includeUfi:m=!1,paddingBottom:h=0,paddingTop:g=0,post:_}=e,b=(0,c.Jd)(),f=(0,l.df)();return(0,a.jsxs)(d.Ye,{alignItems:"center",gap:16,paddingBottom:h,paddingTop:g,children:[m&&f&&b&&_&&(0,a.jsxs)(d.Ye,{className:"post-ufi",gap:8,children:[(0,a.jsx)(s.wR,{post:_,pub:f,user:b}),(0,a.jsx)(s.hy,{post:_,pub:f}),(0,a.jsx)(s.if,{labelStyle:"cta",post:_,pub:f,user:b,variant:"button"})]}),(0,a.jsx)(u.EY.B4,{align:"center",as:"a",className:r()({[null!=(t=p.A.disableLink)?t:""]:n}),href:i,weight:"medium",children:(0,a.jsxs)(d.Ye,{alignItems:"center",className:p.A.link,gap:8,children:[(0,a.jsx)(u.EY.B4,{as:"span",color:"accent",size:14,weight:"semibold",children:"Read full story"}),(0,a.jsx)(o.A,{size:16})]})})]})}},74019:function(e,t,n){n.d(t,{W:()=>p});var a=n(74848),i=n(32485),r=n.n(i),o=n(38305);n(6049);var s=n(68349),l=n(76977),c=n(63136),d=n(49807),u=n(20004);let p=e=>{let{bylines:t,date:n,disableLinks:i}=e;return(0,a.jsxs)(l.Ye,{alignItems:"center",gap:4,children:[(null==t?void 0:t.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.EY.Meta,{className:r()({[u.A.disableLink]:i}),color:"pub-secondary-text",children:(0,a.jsx)(o.K,{array:t||[],formatter:e=>{let{id:t,name:n}=e;return(0,a.jsx)("a",{className:u.A.inheritColor,href:(0,d.rfn)(t,n),children:n})},limit:3})}),(0,a.jsx)(c.EY,{color:"pub-secondary-text",children:"\xb7"})]}):null,(0,a.jsx)(c.EY.Meta,{color:"pub-secondary-text",children:(0,s.Wy)(n)})]})}},43327:function(e,t,n){n.d(t,{vV:()=>I});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(45773),c=n(96540),d=n(12018),u=n(86938),p=n(74019),m=n(72880),h=n(41873),g=n(84605),_=n(85478),b=n(15113);n(6049);var f=n(12501),A=n(68349),E=n(89490),y=n(76977),N=n(57820),O=n(81203),v=n(63136),x=n(39318),S=n(20004);function w(e){let{postId:t,fallbackSizeLgProps:n}=e,{iString:o}=(0,g.GO)(),[d,u]=(0,c.useState)(!1),{result:p,isLoading:m}=(0,f.st)({pathname:"/api/v1/posts/by-id/".concat(t),deps:[t],auto:!0});if(m)return(0,r.jsx)(y.pT,{alignItems:"center",bg:"tertiary",className:S.A.videoEmbedPlaceholder,justifyContent:"center",radius:"md",children:(0,r.jsx)(N.y$,{flex:"grow"})});let _=null==p?void 0:p.post,w=null==p?void 0:p.publication,M=null==_?void 0:_.videoUpload;if(!_||!w||!M)return console.warn("VideoPostEmbed: missing data, falling back to legacy render"),(0,r.jsx)(I,(0,i._)((0,a._)({},n),{forceLegacyRender:!0}));let C=_.canonical_url,k=e=>{e.stopPropagation(),e.preventDefault(),(0,A.lW)(C),u(!0),setTimeout(()=>u(!1),3e3)};return(0,r.jsx)(E.az,{className:S.A.videoEmbed,position:"relative",children:(0,r.jsx)(h.A,{mediaUpload:M,post:_,pub:w,renderOverlay:e=>{var t;let{isPlaying:n,getCurrentTimeInSeconds:a}=e;return(0,r.jsxs)(y.Ye,{className:s()(S.A.videoOverlay,{[null!=(t=S.A.alwaysVisible)?t:""]:!n}),justifyContent:"space-between",padding:16,pointerEvents:"auto",position:"absolute",top:0,children:[(0,r.jsxs)(y.Ye,{alignItems:"center",flex:"grow",gap:12,paddingRight:12,children:[(0,r.jsx)(O.Nq,{pub:w,radius:"full",size:32}),(0,r.jsx)("a",{className:S.A.titleLink,href:C,rel:"noopener",target:"_blank",onClick:()=>{let e=a(),t=(0,x.oRR)(C,{t:e});(0,A.V2)(t,{newTab:!0})},children:(0,r.jsx)(v.EY,{clamp:2,color:"white",decoration:"hover-underline",weight:"medium",children:_.title})})]}),(0,r.jsxs)(y.I1,{alignItems:"end",gap:0,hover:!0,position:"relative",onClick:k,children:[(0,r.jsx)(E.az,{paddingRight:16,children:d?(0,r.jsx)(l.A,{stroke:"white"}):(0,r.jsx)(b.qY,{stroke:"white"})}),(0,r.jsx)(v.EY,{color:"white",size:14,wrap:"nowrap",children:d?o("Copied to clipboard"):o("Copy link")})]})]})},stopPropagation:!0})})}let I=e=>{var t,n,a;let{disableLinks:i,isEditingCaption:o,post:l,caption:c,onEditCaption:h,onSaveCaption:g,onCancelCaption:b,forceLegacyRender:f}=e,{publishedBylines:A,title:N,canonical_url:O,post_date:x,section_name:I,cover_image:M,cover_image_alt:C}=l,{getConfigFor:k}=(0,_.mJ)();return!f&&k("use_enhanced_video_embed_player")?(0,r.jsx)(w,{fallbackSizeLgProps:e,postId:l.id}):(0,r.jsxs)(y.I1,{children:[I&&(0,r.jsx)("a",{className:s()({[null!=(t=S.A.disableLink)?t:""]:i}),href:O,rel:"noopener",target:"_blank",children:(0,r.jsx)(v.EY.Meta,{color:"pub-primary-text",paddingBottom:8,children:I})}),(0,r.jsx)("a",{className:s()({[null!=(n=S.A.disableLink)?n:""]:i}),href:O,rel:"noopener",target:"_blank",children:(0,r.jsx)(v.EY.H2,{color:"pub-primary-text",children:N})}),(0,r.jsx)(p.W,{bylines:A,date:x,disableLinks:i}),M&&(0,r.jsx)(E.az,{paddingTop:24,children:(0,r.jsx)("a",{className:s()({[null!=(a=S.A.disableLink)?a:""]:i}),href:O,rel:"noopener",target:"_blank",children:(0,r.jsx)(m.o,{alt:null!=C?C:N,className:S.A.fullWidth,imageProps:{height:Math.round(650),smartCrop:!0},maxWidth:1300,src:M})})}),(0,r.jsx)(y.pT,{flex:"grow",paddingTop:16,children:o&&g&&b?(0,r.jsx)(d.y,{initialCaption:c,onCancel:b,onSave:g}):(0,r.jsx)("p",{className:S.A.caption,dangerouslySetInnerHTML:{__html:c},onClick:h||void 0})}),(0,r.jsx)(u.w,{disableLinks:i,href:O,includeUfi:!1,post:l})]})}},47663:function(e,t,n){n.d(t,{T:()=>g});var a=n(74848),i=n(32485),r=n.n(i),o=n(12018),s=n(86938),l=n(74019);n(43327);var c=n(72880),d=n(89490),u=n(76977),p=n(63136),m=n(11510),h=n(20004);let g=e=>{var t,n,i;let{caption:g,disableLinks:_,post:b,isEditingCaption:f,onEditCaption:A,onSaveCaption:E,onCancelCaption:y}=e,{publishedBylines:N,title:O,canonical_url:v,post_date:x,section_name:S,cover_image:w,cover_image_alt:I}=b,M=(0,m.Iu)();return(0,a.jsxs)(u.I1,{children:[S&&(0,a.jsx)("a",{className:r()({[null!=(t=h.A.disableLink)?t:""]:_}),href:v,rel:"noopener",target:"_blank",children:(0,a.jsx)(p.EY.Meta,{color:"pub-primary-text",paddingBottom:8,children:S})}),(0,a.jsx)("a",{className:r()({[null!=(n=h.A.disableLink)?n:""]:_}),href:v,rel:"noopener",target:"_blank",children:(0,a.jsx)(p.EY.H2,{color:"pub-primary-text",children:O})}),(0,a.jsx)(l.W,{bylines:N,date:x,disableLinks:_}),(0,a.jsxs)(u.pT,{direction:{mobile:"column",desktop:"row"},gap:16,paddingTop:16,children:[w&&(0,a.jsx)(d.az,{style:{width:M?"unset":140},children:(0,a.jsx)("a",{className:r()({[null!=(i=h.A.disableLink)?i:""]:_}),href:v,rel:"noopener",target:"_blank",children:(0,a.jsx)(c.o,{alt:null!=I?I:O,className:M?h.A.fullWidth:h.A.mdSquare,imageProps:{height:Math.round(M?1300:280),smartCrop:!0},maxWidth:M?1300:280,src:w})})}),(0,a.jsxs)(u.I1,{flex:"grow",children:[f&&E&&y?(0,a.jsx)(o.y,{initialCaption:g,onCancel:y,onSave:E}):(0,a.jsx)("p",{className:h.A.caption,dangerouslySetInnerHTML:{__html:g},onClick:null!=A?A:void 0}),(0,a.jsx)(s.w,{disableLinks:_,href:v,post:b})]})]})]})}},12988:function(e,t,n){n.d(t,{w:()=>m});var a=n(74848),i=n(32485),r=n.n(i),o=n(86938),s=n(74019),l=n(72880);n(6049);var c=n(89490),d=n(76977),u=n(63136),p=n(20004);let m=e=>{var t;let{post:n,disableLinks:i}=e,{publishedBylines:m,title:h,canonical_url:g,post_date:_,cover_image:b,cover_image_alt:f}=n;return(0,a.jsx)("a",{className:r()({[null!=(t=p.A.disableLink)?t:""]:i}),href:g,rel:"noopener",target:"_blank",children:(0,a.jsxs)(d.Ye,{gap:16,children:[b&&(0,a.jsx)(c.az,{style:{width:70,height:70},children:(0,a.jsx)(l.o,{alt:null!=f?f:h,className:p.A.smSquare,imageProps:{height:Math.round(140),smartCrop:!0},maxWidth:140,src:b})}),(0,a.jsxs)(d.I1,{children:[(0,a.jsx)(u.EY.H4,{color:"pub-primary-text",children:h}),(0,a.jsx)(s.W,{bylines:m,date:_,disableLinks:i}),(0,a.jsx)(o.w,{disableLinks:i,href:g,includeUfi:!1,post:n})]})]})})}},18999:function(e,t,n){n.d(t,{u:()=>O});var a=n(74848),i=n(32485),r=n.n(i),o=n(80964),s=n(87332),l=n(69308),c=n(92919),d=n(65892),u=n(96540),p=n(81704),m=n(13950),h=n(72880),g=n(93513);n(6049);var _=n(35369),b=n(76977),f=n(49315),A=n(16993),E=n(63136),y=n(31933),N=n(96473);let O=e=>{let{title:t,postIds:n,showCount:i,posts:O,pub:v,isEditor:x,updateAttributes:S,align:w}=e,[I,M]=(0,u.useState)(O||[]),[C,k]=(0,u.useState)(!O&&!x),[j,L]=(0,u.useState)(!1),[R,T]=(0,u.useState)(t),[P,D]=(0,u.useState)(!1),[B,U]=(0,u.useState)(null),[G,F]=(0,u.useState)(0),[W,Y]=(0,u.useState)(!1),[K,H]=(0,u.useState)(""),V=(0,u.useRef)(null),z=e=>{if(null===B)return;let t=[...I];Be.id)}),D(!1),U(null),Q()},{searchQuery:q,searchResults:J,isSearching:Z,handleSearch:X,clearSearch:Q,getLatestPostsByTag:$,fetchAvailableTags:ee,availableTags:et}=(0,p.E)({pubId:v.id,onSelectPost:z});(0,u.useEffect)(()=>{let e=!1;return(async()=>{if(!O||(null==n?void 0:n.length)===0||x&&0===I.length&&!(null==n?void 0:n.length)){x||k(!0);try{let t=await (0,y.tZ)((null==n?void 0:n.length)>0?n:void 0);if(e)return;let a=t.slice(0,i);M(a),S&&S({posts:a,postIds:a.map(e=>e.id)})}catch(t){e||console.error("Error fetching posts:",t)}finally{e||k(!1)}}})(),()=>{e=!0}},[n,i,O,S,x,I.length]),(0,u.useEffect)(()=>{j&&V.current&&(V.current.focus(),V.current.select())},[j]);let en=()=>{S&&S({title:R}),L(!1)},ea=I.slice(0,i),ei=async(e,t)=>{let n=await $(e);if(n.length>0){let e=n.slice(0,i);M(e),S&&S({title:t,posts:e,postIds:e.map(e=>e.id)}),T(t)}Y(!1),H("")},er=async()=>{await ee(),Y(!0),H("")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"the-free-press-theme",children:(0,a.jsx)(m.DH,{children:(0,a.jsxs)("div",{className:r()(N.A.fpRecircBlock,x?N.A.editor:"","left"===w&&N.A.alignLeft,"right"===w&&N.A.alignRight),"data-component-name":"FpRecircBlock",children:[(0,a.jsxs)(b.pT,{justifyContent:"space-between",alignItems:"center",style:{marginBottom:24},className:N.A.header,children:[j&&x?(0,a.jsx)("input",{ref:V,type:"text",value:R,onChange:e=>T(e.target.value),onBlur:en,onKeyDown:e=>{"Enter"===e.key&&en(),"Escape"===e.key&&(T(t),L(!1))},className:N.A.titleInput}):(0,a.jsx)("div",{className:r()(N.A.sectionTitle,x?N.A.editable:""),onClick:x?()=>L(!0):void 0,children:(0,a.jsx)(g.T,{preset:"body",children:(0,a.jsx)("span",{style:{fontWeight:700},children:t})})}),x&&(0,a.jsxs)(f.W1,{trigger:(0,a.jsx)(_.K0,{size:"sm",priority:"tertiary",className:N.A.settingsButton,children:(0,a.jsx)(o.A,{})}),children:[(0,a.jsxs)(f.H9,{title:"Count",isFirst:!0,children:[(0,a.jsx)(f.Dr,{onClick:()=>null==S?void 0:S({showCount:3}),priority:3===i?"accent":"secondary",children:"Show 3 stories"}),(0,a.jsx)(f.Dr,{onClick:()=>null==S?void 0:S({showCount:4}),priority:4===i?"accent":"secondary",children:"Show 4 stories"})]}),(0,a.jsx)(f.H9,{title:"Populate",children:(0,a.jsx)(f.Dr,{onClick:()=>er(),priority:"secondary",children:"Populate by tag"})}),(0,a.jsxs)(f.H9,{title:"Alignment",children:[(0,a.jsx)(f.Dr,{onClick:()=>null==S?void 0:S({align:null}),priority:w?"secondary":"accent",leading:(0,a.jsx)(s.A,{}),children:"Center"}),(0,a.jsx)(f.Dr,{onClick:()=>null==S?void 0:S({align:"left"}),priority:"left"===w?"accent":"secondary",leading:(0,a.jsx)(l.A,{}),children:"Float left"}),(0,a.jsx)(f.Dr,{onClick:()=>null==S?void 0:S({align:"right"}),priority:"right"===w?"accent":"secondary",leading:(0,a.jsx)(c.A,{}),children:"Float right"})]})]})]}),C&&!x?(0,a.jsx)("div",{className:N.A.loading,children:"Loading posts..."}):(0,a.jsx)(a.Fragment,{children:ea.length>0&&(0,a.jsx)(b.pT,{direction:"column",gap:16,children:ea.map((e,t)=>(0,a.jsx)("div",{className:N.A.postWrapper,children:(0,a.jsxs)("a",{href:x?"#":e.canonical_url,className:N.A.postCard,onClick:x?e=>e.preventDefault():void 0,children:[(0,a.jsxs)(b.pT,{gap:12,children:[(0,a.jsx)("div",{className:N.A.imageWrapper,children:e.cover_image?(0,a.jsx)(h.o,{className:N.A.postImage,imageIsFixedWidth:!0,maxWidth:300,src:e.cover_image,useRetinaSizing:!0}):(0,a.jsx)("div",{className:N.A.imagePlaceholder})}),(0,a.jsxs)(b.pT,{direction:"column",justifyContent:"center",gap:8,className:N.A.postContent,children:[(0,a.jsx)(g.T,{preset:"lg-preview-byline",className:N.A.postTitle,children:e.title}),e.author_names&&e.author_names.length>0&&(0,a.jsx)(g.T,{preset:"detail-small",color:"accent",className:N.A.postAuthor,children:e.author_names.join(", ")})]})]}),x&&(0,a.jsx)("div",{className:N.A.editButtonContainer,children:(0,a.jsx)(_.K0,{priority:"primary-mono",size:"sm",onClick:e=>{e.preventDefault(),e.stopPropagation(),U(t),D(!0),F(0),Q()},children:(0,a.jsx)(d.A,{size:16})})})]})},"post-".concat(e.id)))})})]})})}),(0,a.jsx)(A.aF,{isOpen:P,onClose:()=>{D(!1),U(null),Q()},className:N.A.modalContainer,children:(0,a.jsx)("div",{className:"the-free-press-theme",children:(0,a.jsx)(m.DH,{children:(0,a.jsxs)("div",{className:N.A.searchModal,children:[(0,a.jsx)("div",{className:N.A.searchModalTitle,children:"Search Posts"}),(0,a.jsx)("input",{type:"text",placeholder:"Search posts...",value:q,onChange:e=>{X(e.target.value),F(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),F(e=>Math.min(e+1,J.length-1))):"ArrowUp"===e.key?(e.preventDefault(),F(e=>Math.max(e-1,0))):"Enter"===e.key&&J.length>0&&J[G]&&(e.preventDefault(),z(J[G]))},className:N.A.searchModalInput,autoFocus:!0}),(0,a.jsxs)("div",{className:N.A.searchModalResults,children:[Z&&(0,a.jsx)("div",{className:N.A.loading,children:(0,a.jsx)(E.EY,{color:"secondary",children:"Searching..."})}),!Z&&J.map((e,t)=>(0,a.jsx)("div",{className:r()(N.A.postWrapper,t===G&&N.A.selected),onClick:()=>z(e),role:"option","aria-selected":t===G,children:(0,a.jsx)("a",{href:"#",className:N.A.postCard,onClick:e=>e.preventDefault(),children:(0,a.jsxs)(b.pT,{gap:12,children:[(0,a.jsx)("div",{className:N.A.imageWrapper,children:e.cover_image?(0,a.jsx)(h.o,{className:N.A.postImage,imageIsFixedWidth:!0,maxWidth:300,src:e.cover_image,useRetinaSizing:!0}):(0,a.jsx)("div",{className:N.A.imagePlaceholder})}),(0,a.jsxs)(b.pT,{direction:"column",justifyContent:"center",gap:8,className:N.A.postContent,children:[(0,a.jsx)(g.T,{preset:"lg-preview-byline",className:N.A.postTitle,children:e.title}),e.author_names&&e.author_names.length>0&&(0,a.jsx)(g.T,{preset:"detail-small",color:"accent",className:N.A.postAuthor,children:e.author_names.join(", ")})]})]})})},e.id)),!Z&&q&&0===J.length&&(0,a.jsx)("div",{className:N.A.noResults,children:(0,a.jsx)(E.EY,{color:"secondary",children:"No posts found"})})]})]})})})}),(0,a.jsx)(A.aF,{isOpen:W,onClose:()=>{Y(!1),H("")},className:N.A.modalContainer,children:(0,a.jsx)("div",{className:"the-free-press-theme",children:(0,a.jsx)(m.DH,{children:(0,a.jsxs)("div",{className:N.A.searchModal,children:[(0,a.jsx)("div",{className:N.A.searchModalTitle,children:"Select Tag"}),(0,a.jsx)("input",{type:"text",placeholder:"Search tags...",value:K,onChange:e=>H(e.target.value),className:N.A.searchModalInput,autoFocus:!0}),(0,a.jsxs)("div",{className:N.A.searchModalResults,style:{maxHeight:"400px",overflowY:"auto"},children:[0===et.length?(0,a.jsx)("div",{className:N.A.loading,children:(0,a.jsx)(E.EY,{color:"secondary",children:"No tags available"})}):et.filter(e=>e.name.toLowerCase().includes(K.toLowerCase())||e.slug.toLowerCase().includes(K.toLowerCase())).map(e=>(0,a.jsx)("div",{className:N.A.postWrapper,onClick:()=>ei(e.id,e.name),role:"option",style:{cursor:"pointer",padding:"12px"},children:(0,a.jsx)(E.EY,{children:e.name})},e.id)),0===et.filter(e=>e.name.toLowerCase().includes(K.toLowerCase())||e.slug.toLowerCase().includes(K.toLowerCase())).length&&K&&(0,a.jsx)("div",{className:N.A.noResults,children:(0,a.jsx)(E.EY,{color:"secondary",children:"No matching tags found"})})]})]})})})})]})}},64998:function(e,t,n){n.d(t,{Uf:()=>k,sP:()=>j});var a=n(79785),i=n(74848),r=n(32485),o=n.n(r),s=n(82853),l=n(98188),c=n(96540),d=n(18203),u=n(48329),p=n(39232),m=n(15469),h=n(39469),g=n(31245),_=n(60294),b=n(49386),f=n(66710),A=n(17744),E=n(84605),y=n(25006),N=n(46271);n(6049);var O=n(68349),v=n(76977),x=n(63136),S=n(48965),w=n(16291),I=n(4016),M=n(39318);function C(){let e=(0,a._)(["Option ",""]);return C=function(){return e},e}let k=(e,t)=>{let{iTemplate:n}=I18N.i(t);return n(C(),e+1)},j=e=>{var t,n;let{id:a,isEditor:r,post:C,isVersionView:j}=e,{iString:L,language:R}=(0,E.GO)(),T=(0,y.df)(),P=(0,S.d)(),D=(0,A.m)(),B=(0,I.lu)({pub:T}),U=(0,N.Jd)()||{},[G,F]=(0,c.useState)(!1),[W,Y]=(0,c.useState)(!1),[K,H]=(0,c.useState)(!1),V=(0,c.useCallback)(()=>{F(!1)},[]),{error:z,loading:q,poll:J,savePoll:Z,voteForOption:X}=(0,g.j)({isEditor:r,isVersionView:!!j,pollId:a,post:C,onFinishSaving:V}),Q=!!(null==J?void 0:J.is_published),$=J&&J.published_at&&(0,w.A)(J.published_at).add(J.expiry,"hour"),ee=(0,w.A)(),et=!!Q&&!!$&&$.isBefore(ee),en=$?$.diff(ee,"hour"):0,ea=r&&((null==J?void 0:J.post_type)!=="adhoc_email"||!Q),ei=!!J&&J.options.some(e=>e.my_vote),er=(null==J?void 0:J.audience)==="only_paid"?!!U.is_subscribed:!!(U.is_free_subscribed||D),eo=!ei&&Q&&!et&&er&&(!r||(null==J?void 0:J.post_type)==="adhoc_email"),es=r?null:"".concat((0,M.wu9)(T,C),"#poll-").concat(a),el=ea?Array(Math.max(2,(null==J||null==(t=J.options)?void 0:t.length)||0)).fill("").map((e,t)=>{var n,a,i;return J&&(null==(n=J.options)?void 0:n.length)>t?null!=(i=null==(a=J.options[t])?void 0:a.label)?i:"":k(t,R)}):null==J||null==(n=J.options)?void 0:n.map(e=>e.label),ec=(0,c.useCallback)(async e=>{if(!r&&!et&&Q){if(!er)return void H(!0);await X(e)}},[er,r,et,Q,X]);return null===z||J?(0,i.jsxs)(v.I1,{className:o()("poll-wrapper poll-web",{"poll-wrapper--thefp":B}),"data-component-name":"Poll",gap:24,children:[es&&(0,i.jsx)("div",{className:"poll-anchor-target",id:"poll-".concat(a),children:(0,i.jsx)("div",{className:"poll-anchor-copy-button",onClick:e=>{var t;(null==(t=location)?void 0:t.href)&&(e.preventDefault(),(0,O.lW)(es),P.popToast(()=>(0,i.jsx)(S.y,{Icon:s.A,text:L("Copied link to clipboard")})))},children:(0,i.jsx)("a",{href:es,children:(0,i.jsx)(s.A,{size:20})})})}),ea&&J&&(0,i.jsx)(d.z,{isOpen:G,isPublished:Q,poll:J,shouldShowAudiencePicker:"adhoc_email"!==J.post_type,onClose:()=>{F(!1)},onSave:Z}),!r&&J&&T&&(0,i.jsx)(p.u,{audience:J.audience,isOpen:K,pollId:J.id,post:C,pub:T,user:U,onClose:()=>H(!1)}),q?(0,i.jsx)(v.I1,{alignItems:"center",gap:8,justifyContent:"center",paddingY:48,children:(0,i.jsx)(x.EY.Meta,{translated:!0,children:"Loading..."})}):(0,i.jsxs)(i.Fragment,{children:[ea&&(0,i.jsx)("button",{className:"poll-edit",disabled:q,onClick:()=>{F(!0)},children:(0,i.jsx)(l.A,{height:20})}),B?(0,i.jsx)(_.D,{poll:J}):(0,i.jsx)(u.f,{poll:J}),null!==z&&(0,i.jsx)("div",{className:"poll-error",children:z}),(0,i.jsx)(v.I1,{className:o()("poll-options",{"no-margins":!Q}),gap:B?16:12,children:el&&el.map((e,t)=>{var n,a,r,o,s,l;return B?(0,i.jsx)(f.H,{currentVotes:(null==J||null==(n=J.options[t])?void 0:n.votes)||0,hasVoted:ei,id:(null==J||null==(a=J.options[t])?void 0:a.id)||null,index:t,myVote:(null==J||null==(r=J.options[t])?void 0:r.my_vote)||!1,showVotes:ei||et||!!(U.is_contributor||U.is_admin||U.is_author)&&W,text:e,totalVotes:(null==J?void 0:J.total_votes)||0,onVote:ec}):(0,i.jsx)(h.h,{canVote:eo,currentVotes:(null==J||null==(o=J.options[t])?void 0:o.votes)||0,id:(null==J||null==(s=J.options[t])?void 0:s.id)||null,myVote:(null==J||null==(l=J.options[t])?void 0:l.my_vote)||!1,showVotes:ei||et||!!(U.is_contributor||U.is_admin||U.is_author)&&W,text:e,totalVotes:(null==J?void 0:J.total_votes)||0,onVote:ec})})}),Q&&J&&(B?(0,i.jsx)(b.h,{hasVoted:ei,poll:J,user:U}):(0,i.jsx)(m.r,{hasVoted:ei,isExpired:et,poll:J,remainingHours:en,showResults:W,user:U,onToggleShowResults:()=>{Y(!W)}}))]})]}):(0,i.jsx)("div",{className:"poll-wrapper poll-web",children:(0,i.jsx)("div",{className:"poll-error",children:z})})}},34206:function(e,t,n){n.d(t,{Ay:()=>E});var a=n(99851),i=n(69277),r=n(70408),o=n(32641),s=n(74848),l=n(32485),c=n.n(l),d=n(96540),u=n(84565),p=n(86500),m=n(94729),h=n(63136),g=n(82776);class _ extends d.Component{componentDidMount(){!this.props.disabled&&(this.props.element&&this.props.element.mount(this.elementContainer),this.props.addressElement&&this.props.addressElement.mount(this.addressContainer))}componentDidUpdate(e){this.props.disabled||(this.props.element&&!e.element&&this.props.element.mount(this.elementContainer),this.props.addressElement&&!e.addressElement&&this.props.addressElement.mount(this.addressContainer))}componentWillUnmount(){try{this.props.element&&this.props.element.unmount(this.elementContainer),this.props.addressElement&&this.props.addressElement.unmount(this.addressContainer)}catch(e){}}render(){let{className:e,element:t,isPaymentElement:n,addressElement:a,disabled:i}=this.props;return t||n?(0,s.jsxs)("div",{className:c()("fancy-stripe",e,{"payment-element":n}),children:[a&&(0,s.jsx)("div",{ref:this.assignAddressContainer,style:{paddingBottom:"24px"}}),(0,s.jsx)("div",{ref:this.assignElementContainer}),i&&(0,s.jsx)(h.EY.B4,{translated:!0,color:"error",children:"This type of purchase is currently unavailable in your region."})]}):null}constructor(...e){super(...e),(0,a._)(this,"elementContainer",void 0),(0,a._)(this,"addressContainer",void 0),(0,a._)(this,"assignElementContainer",e=>{this.elementContainer=e}),(0,a._)(this,"assignAddressContainer",e=>{this.addressContainer=e})}}class b extends d.Component{async componentDidMount(){let e=!1;if(this.state.paymentRequest){try{let t=await this.state.paymentRequest.canMakePayment();t&&t.applePay&&(e=!0)}catch(e){console.error(e)}(0,p.u4)(p.qY.APPLE_PAY_SETUP_FINISHED,{success:e})}if(await this.setState({canMount:e}),e){if(this.button||await new Promise(e=>setTimeout(e,0)),!this.state.stripeButton)return void console.error("stripeButton not ready");if(this.state.stripeButton.mount(this.button),!this.state.paymentRequest)return void console.error("paymentRequest not ready");this.state.paymentRequest.on("token",e=>this.onTokenReceived(e)),this.state.paymentRequest.update({currency:this.props.plan.currency,total:this.getPaymentTotal()})}else this.props.onVisibilityChanged&&this.props.onVisibilityChanged(!1)}componentDidUpdate(e){let t=!1;for(let i of["pub","plan","quantity","coupon","notRecurring","variableAmount"]){var n,a;if(e[i]!==this.props[i]||"coupon"===i&&e[i]&&(null==(n=e[i])?void 0:n.loading)&&(!this.props[i]||!(null==(a=this.props[i])?void 0:a.loading))){t=!0;break}}t&&this.state.paymentRequest&&this.state.paymentRequest.update({currency:this.props.plan.currency,total:this.getPaymentTotal()})}componentWillUnmount(){if(this.state.paymentRequest&&this.state.paymentRequest.off("token"),this.state.stripeButton)try{this.state.stripeButton.unmount(this.button)}catch(e){}}async onTokenReceived(e){(0,p.u4)(p.qY.APPLE_PAY_ATTEMPED);try{if(!this.props.onSuccess)return void console.error("No onSuccess handler for Apple Pay");await this.props.onSuccess({email:e.payerEmail,name:e.payerName,stripe_token:e.token}),e.complete("success"),(0,p.u4)(p.qY.APPLE_PAY_SUCCEEDED)}catch(t){console.error("Apple Pay submission failed:",e,t),e.complete("fail"),(0,p.u4)(p.qY.APPLE_PAY_FAILED,{reason:t.message})}}getPaymentTotal(){var e,t,n,a;let i,{pub:r,plan:o,quantity:s,coupon:l,notRecurring:c,variableAmount:d}=this.props,u=0,p=Math.max(0,("trial_period_days"in o?o.trial_period_days:null)||0,l&&!l.error&&!l.loading&&l.trial_period_days||0,r.trial_end_override&&Math.ceil((r.trial_end_override-Date.now()/1e3)/60/60/24));c&&(p=0);let m=("metadata"in o&&(null==(e=o.metadata)?void 0:e.founding)?null!=(t=d||o.amount)?t:0:null!=(n=o.amount)?n:0)*(s||1),h=m;return l&&!l.error&&!l.loading&&(l.percent_off?h=Math.round(h*(1-(l.percent_off_precise||l.percent_off)/100)):l.amount_off&&(h=Math.max(0,h-l.amount_off)),h<=0&&(h=m,"once"===l.duration?"year"===o.interval?u+=12*o.interval_count:u+=o.interval_count:"repeating"===l.duration&&(u+=null!=(a=l.duration_in_months)?a:0))),c?i="one-time":(i="".concat(this.props.plan.interval,"ly"),this.props.quantity>1&&(i+=" per person"),u?(p>15&&(u+=Math.floor(p/30)),i+=" with ".concat(u,"-month trial")):p&&(i+=" with ".concat(p,"-day trial"))),{label:i,amount:h}}render(){var e;let{children:t,className:n,error:a}=this.props,{canMount:i}=null!=(e=this.state)?e:{};return void 0===i||i||"undefined"==typeof window?(0,s.jsxs)("div",{className:"apple-pay-parent-container",children:[i?(0,s.jsx)("div",{className:"apple-pay-element ".concat(n||""),ref:this.assignButton}):(0,s.jsx)("p",{className:"apple-pay-loader ".concat(n||""),children:"Loading…"}),a&&(0,s.jsx)("div",{className:"error",children:a}),t]}):null}constructor(e,t){if(super(e,t),(0,a._)(this,"button",void 0),(0,a._)(this,"assignButton",e=>{this.button=e}),e.stripe&&e.pub.stripe_country){(0,p.u4)(p.qY.APPLE_PAY_SETUP_STARTED);try{const t=e.stripe.paymentRequest({country:this.props.pub.stripe_country,currency:this.props.plan.currency,total:this.getPaymentTotal(),requestPayerName:!0,requestPayerEmail:!0}),n=e.stripe.elements().create("paymentRequestButton",{paymentRequest:t});this.state={paymentRequest:t,stripeButton:n}}catch(e){console.error(e),(0,p.u4)(p.qY.APPLE_PAY_SETUP_FINISHED,{success:!1})}}}}class f extends d.Component{render(){let e=this.props,{children:t,ref:n,defaultValue:a}=e,r=(0,o._)(e,["children","ref","defaultValue"]);return this.state,(0,s.jsxs)("div",{className:"fancy-input",children:[(0,s.jsx)("input",(0,i._)({ref:this.assignInput,defaultValue:a},r)),t]})}blur(){this._input&&this._input.blur()}constructor(...e){super(...e),(0,a._)(this,"_input",void 0),(0,a._)(this,"assignInput",e=>{this._input=e})}}class A extends d.Component{getInputs(){let e=[];if(this.base)for(let t of Array.from(this.base.getElementsByTagName("*")))["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("name")&&"g-recaptcha-response"!==t.id&&e.push(t);return e}resetErrors(){this.setState({_paramErrors:{},_otherErrors:[]})}clear(){for(let e of(this.resetErrors(),this.getInputs()))e.blur&&e.blur(),"checkbox"===e.type?e.checked=!1:"select"===e.type?e.selectedIndex=-1:"radio"===e.type?e.checked=!1:"target"in e&&e.target?e.target.value="":e.value=""}handleStripeChange(e){let{error:t}=e;t?this.setState({_stripeError:t.message}):this.setState({_stripeError:null})}componentDidMount(){this._mountTime=new Date,this._stripeCardOrPaymentElement&&this._stripeCardOrPaymentElement.addEventListener("change",e=>this.handleStripeChange(e))}componentDidUpdate(e){let{country:t,currency:n,email:a,name:r,pub:o,stripeClientSecret:s,stripeElementAppearance:l,themeVariables:c,useStripePaymentElement:d,enableLink:u}=this.props;if(d){var p,m;if(e.useStripePaymentElement||(null==(p=this._stripeCardOrPaymentElement)||p.destroy(),this._stripeCardOrPaymentElement=null),s!==e.stripeClientSecret)if(s){this.setState({loading:!0});let e=this.props.isPlatformCustomer?this._stripe:this._connectedStripe;if(!e)return void console.error("Stripe instance not available in componentDidUpdate");({elements:this._stripeElements,addressElement:this._stripeAddressElement,paymentElement:this._stripeCardOrPaymentElement}=function(e,t){let{withAddressElement:n=!1,currency:a,email:r,name:o,country:s,stripeElementAppearance:l={},themeVariables:{color_theme_accent:c,color_theme_bg_contrast_1:d,print_on_pop:u,print_on_web_bg_color:p,print_secondary_on_web_bg_color:m}={},enableLink:h=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},g={clientSecret:t,currency:a,appearance:(0,i._)({theme:"flat",variables:{borderRadius:"8px",colorBackground:d||void 0,colorPrimary:c||"rgb(255, 103, 25)",accessibleColorOnColorPrimary:u||void 0,colorText:p||void 0,colorTextPlaceholder:m||void 0,colorTextSecondary:m||void 0}},l),locale:window._preloads&&window._preloads.language||"auto"},_=e.elements(g);return{elements:_,addressElement:n?_.create("address",{mode:"billing",defaultValues:{name:o,address:{country:s}}}):void 0,paymentElement:_.create("payment",{layout:{type:"tabs",defaultCollapsed:!1},defaultValues:{billingDetails:{email:r,name:o,address:{country:s}}},wallets:{link:h?"auto":"never"},terms:{card:"never",applePay:"never",googlePay:"never"}})}}(e,s,{withAddressElement:(null==o?void 0:o.stripe_country)==="IN",currency:n,email:a,name:null!=r?r:void 0,country:t,stripeElementAppearance:l,themeVariables:c,enableLink:u})),this.setState({loading:!1})}else e.stripeClientSecret&&(null==(m=this._stripeCardOrPaymentElement)||m.destroy(),this._stripeCardOrPaymentElement=null)}}componentWillUnmount(){this._stripeCardOrPaymentElement&&this._stripeCardOrPaymentElement.destroy()}onInputBlur(e){this.props.analyticsName&&this._mountTime&&new Date().getTime()-this._mountTime.getTime()>1e3&&e.target&&e.target.value&&!e.target._blurTracked&&((0,p.u4)("".concat(this.props.analyticsName," Input Filled"),{name:e.target.name}),e.target._blurTracked=!0)}async onPaymentRequestAttempt(e){let t=await this.handleSubmitAsync(null,e);if(t)throw t}handleSubmit(e){e&&e.preventDefault(),this.handleSubmitAsync(e).catch(e=>{console.error(e)})}async handleSubmitAsync(e){let t,n,a,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.preventDefault(),this.props.analyticsName&&(0,p.u4)("".concat(this.props.analyticsName," Submit Pressed")),this.props.loading||this.state.loading||this.props.disableSubmit)return;this.resetErrors(),this.setState({loading:!0});let o=null;if(this.stripeElement&&!r.stripe_token&&!this.props.useStripePaymentElement){let{token:e=null,error:t}=this._stripe?await this._stripe.createToken(this._stripeCardOrPaymentElement):{error:{message:""}};if(e)o=e;else{this.setState({loading:!1,_stripeError:t&&t.message}),this.props.analyticsName&&(console.log("error",t),(0,p.u4)("".concat(this.props.analyticsName," Missing Payment"),{type:t&&t.type,code:t&&t.code,decline_code:t&&t.decline_code,reason:t&&t.message}));return}}if(this.stripeElement&&this.props.useStripePaymentElement){var s,l,c,d=this;if(t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=d.props.isPlatformCustomer?d._stripe:d._connectedStripe;return t?d._stripeElements?t.confirmSetup({elements:d._stripeElements,redirect:"if_required",confirmParams:e}):void console.error("Stripe elements not available"):void console.error("Stripe instance not available")},!this.props.performSubmit){let{setupIntent:e}=await t();if(!e)return void this.setState({loading:!1});n=e.payment_method}}let u={};for(let e of this.getInputs())if(e.blur&&e.blur(),"checkbox"==e.type)u[e.name]=!!e.checked;else if("radio"==e.type)e.checked&&(u[e.name]=e.value);else if("select"===e.type){let t=e.options[e.selectedIndex];t?u[e.name]=t.value:console.error("No selected option in select element")}else u[e.name]=e.value;if(Object.keys(r).forEach(e=>{!u[e]&&r[e]&&(u[e]=r[e])}),o?u.stripe_token=o:n&&(u.paymentMethodId=n),this.props.prepareData)try{let t=await this.props.prepareData(u,e);t&&(u=t)}catch(e){throw this.setState({loading:!1}),e}this.props.onChangeLoadingState&&this.props.onChangeLoadingState(!0);try{this.props.performSubmit?a=this.props.useStripePaymentElement?await this.props.performSubmit(u,{confirmSetup:t}):await this.props.performSubmit(u):this.props.action?a=this.props.method&&"get"===this.props.method?{body:await (0,m.x6)(this.props.action,{query:u,method:this.props.method})}:{body:await (0,m.x6)(this.props.action,{json:u,method:this.props.method||"POST"})}:this.props.onSubmit&&this.props.onSubmit(u)}catch(t){let e=t.response&&t.response.body instanceof ReadableStream;t.response&&t.body&&e?t.response={body:t.body,status:null==(l=t.response)?void 0:l.status}:t.response&&t.body&&!t.response.body&&(t.response.body=t.body),i=t}if((null==a||null==(s=a.body)?void 0:s.confirmPaymentUrl)&&a.body.clientSecret&&this._connectedStripe){(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_STARTED);let e=await this._connectedStripe.confirmCardPayment(a.body.clientSecret);if(e.error){(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_FAILED,{error:null==(c=e.error)?void 0:c.message});let t={error:e.error.message||"Failed to confirm payment"};i={response:{body:t,text:JSON.stringify(t)}}}else(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_SUCCEEDED)}if(this.setState({loading:!1}),this.props.onChangeLoadingState&&this.props.onChangeLoadingState(!1),i){if(this.processErrors(i.response),this.props.onError&&this.props.onError(i,u),!i.response)throw i}else this.props.onSuccess&&this.props.onSuccess(a,u);return i}processErrors(e){let t={},n=[];if(e&&e.body&&e.body.errors){let a=this.getInputs();e.body.errors.forEach(e=>{!0!==this.props.noInlineErrors&&e.param&&a.filter(t=>t.getAttribute("name")===e.param).length>0?t[e.param]?(console.log("Discarding repeated error"),console.log(e)):t[e.param]=e:n.push(e)})}else e&&e.body&&"string"==typeof e.body.error?n.push({msg:e.body.error}):n.push({msg:"Something went wrong"});this.setState({_paramErrors:t,_otherErrors:n}),this.props.analyticsName&&(0,p.u4)("".concat(this.props.analyticsName," Error"),{paramErrors:JSON.stringify(t),otherErrors:JSON.stringify(n)})}render(){var e;let t=this.props,n=null!=(e=this.state)?e:{},a=t.autoLock&&n.loading||t.loading,o=!1,l=!1,u=t.getConfigFor("disable_card_element_in_europe")&&!t.useStripePaymentElement&&t.pub&&g.EEA_COUNTRIES.includes(t.pub.stripe_country)&&(!t.currency||"eur"===t.currency),p=e=>{let m=[];return d.Children.toArray(e).forEach(e=>{if(!e)return null;if("object"==typeof e&&(e.type===f||"input"===e.type||"textarea"===e.type||"select"===e.type)&&e.props&&"name"in e.props&&e.props.name){let t=e.props.name;if(m.push((0,d.cloneElement)(e,{disabled:a||"disabled"in e.props&&e.props.disabled,onChange:t=>{let n=e.props&&"onChange"in e.props&&e.props.onChange||e.props&&"onInput"in e.props&&e.props.onInput;n&&"function"==typeof n&&n(t),this.props.onChange&&this.props.onChange(t)},onInput:t=>{e.props&&"onInput"in e.props&&e.props.onInput&&"function"==typeof e.props.onInput&&e.props.onInput(t),this.props.onInput&&this.props.onInput(t)},onBlur:t=>{this.onInputBlur(t),e.props&&"onBlur"in e.props&&e.props.onBlur&&"function"==typeof e.props.onBlur&&e.props.onBlur(t)}})),n._paramErrors[null!=t?t:"undefined"]&&!a){let e=n._paramErrors[null!=t?t:"undefined"];if(!e)return void console.error("No error for",t);e.msgHTML?m.push((0,s.jsx)("div",(0,r._)((0,i._)({className:"error"},t&&{name:t}),{dangerouslySetInnerHTML:{__html:e.msgHTML}}))):m.push((0,s.jsx)("div",(0,r._)((0,i._)({className:"error"},t&&{name:t}),{children:e.msg||"Invalid"})))}}else if("object"==typeof e&&e.props&&"type"in e.props&&"submit"===e.props.type)m.push((0,d.cloneElement)(e,{disabled:a||"disabled"in e.props&&e.props.disabled,loading:a||"loading"in e.props&&e.props.loading,onClick:t=>{e.props&&"onClick"in e.props&&e.props.onClick&&"function"==typeof e.props.onClick&&!1!==e.props.onClick(t)&&this.handleSubmit(t)}}));else if("object"==typeof e&&e.props&&"id"in e.props&&"error-container"===e.props.id){if(n._otherErrors&&!a){let t=n._otherErrors.map(e=>e.msgHTML?(0,s.jsx)("div",{className:"error other-error",dangerouslySetInnerHTML:{__html:e.msgHTML}}):(0,s.jsx)("div",{className:"error other-error",children:e.msg})).concat(e.props&&e.props.children?d.Children.toArray(e.props.children):[]);m.push((0,d.cloneElement)(e,{},t))}}else if("object"==typeof e&&"type"in e&&e.type===_){if(o)throw Error("Can only handle one stripe element");o=!0,m.push((0,d.cloneElement)(e,{ref:t=>{e.props&&e.props.ref&&e.props.ref(t),this.stripeElement=t},element:this._stripeCardOrPaymentElement,isPaymentElement:this.props.useStripePaymentElement,addressElement:this._stripeAddressElement,disabled:u})),!n._stripeError&&this._stripeCardOrPaymentElement||a||"undefined"==typeof window||m.push((0,s.jsx)("div",{className:c()("error",t.stripeErrorClassName),role:"alert",children:n._stripeError||"Stripe payments not loaded. Are there blocked scripts?"}))}else if("object"==typeof e&&"type"in e&&e.type===b){if(l)throw Error("Can only handle one stripe payment request button");l=!0,m.push((0,d.cloneElement)(e,{ref:t=>{e.props&&e.props.ref&&e.props.ref(t),this.stripePaymentRequestButton=t},stripe:this._stripe,onSuccess:t=>(e.props&&"onSuccess"in e.props&&e.props.onSuccess&&"function"==typeof e.props.onSuccess&&e.props.onSuccess(t),this.onPaymentRequestAttempt(t))}))}else"object"==typeof e&&"props"in e&&e.props&&e.props.children?m.push((0,d.cloneElement)(e,{},p(e.props.children))):m.push(e)}),m};return(0,s.jsx)("form",(0,r._)((0,i._)({className:"form ".concat(t.className||""),action:t.noJsAction||t.action,method:t.method&&["get","post"].includes(t.method.toLowerCase())&&t.method.toLowerCase()||"post",autoComplete:t.autoComplete,onSubmit:e=>this.handleSubmit(e),noValidate:!0},t.enctype&&{enctype:t.enctype},t.id&&{id:t.id}),{children:p(t.children)}))}constructor(e,t){super(e,t),(0,a._)(this,"_stripe",void 0),(0,a._)(this,"_connectedStripe",void 0),(0,a._)(this,"_stripeCardOrPaymentElement",void 0),(0,a._)(this,"_mountTime",void 0),(0,a._)(this,"_stripeElements",void 0),(0,a._)(this,"_stripeAddressElement",void 0),(0,a._)(this,"stripeElement",void 0),(0,a._)(this,"stripePaymentRequestButton",void 0),this.state={_paramErrors:{},_otherErrors:[],_stripeError:null,loading:!1},this.props.stripe_publishable_key&&(this._stripe=function(e,t){if("undefined"==typeof window||void 0===window.Stripe)return null;let n={};return t&&t.stripe_user_id?g.NO_PLATFORM_CUSTOMER_CLONE_COUNTRIES.includes(t.stripe_country)&&(n.stripeAccount=t.stripe_user_id):console.warn("No publication passed for Stripe connection"),window.Stripe(e,n)}(this.props.stripe_publishable_key,this.props.pub),this._stripe)&&(this.props.useStripePaymentElement||(this._stripeCardOrPaymentElement=this._stripe.elements({locale:window._preloads&&window._preloads.language||"auto"}).create("card",{style:{base:{fontSize:"14px",lineHeight:"40px",fontFamily:'-apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'}},disableLink:!0})),this._connectedStripe=function(e,t){if("undefined"==typeof window||void 0===window.Stripe||!(null==t?void 0:t.stripe_user_id))return null;let n={stripeAccount:t.stripe_user_id};return window.Stripe(e,n)}(this.props.stripe_publishable_key,this.props.pub))}}let E=(0,u.yq)(A)},17515:function(e,t,n){n.d(t,{A:()=>s});var a=n(99851),i=n(96540),r=n(86500),o=n(68349);class s extends i.Component{componentWillUnmount(){this.state.uploading&&this.cancelUpload()}acceptsFile(e){return(this.props.accepts||this.accepts||"*").split(",").map(e=>new RegExp(e.trim().replace(/\./g,"\\.").replace(/\*/g,".*"))).reduce((t,n)=>t||n.test(e.type),!1)}uploadFile(e,t){let{urls:n=null,method:a="POST",rehost:i=!1,fileUrl:r=null,path:o=null,withCredentials:s=!0,useFormData:l=!0,mediaUpload:c=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var d,u=this;if(this.state.uploading)return;if(!window.FormData||!window.XMLHttpRequest)return void alert("Your browser does not support uploading files!");if(e&&!this.acceptsFile(e))return void alert("Please select a valid file");let p=n||this.props.urls||this.urls,m=[];if(!l&&this.chunkSize>0)for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:0,i=new XMLHttpRequest;if(i.upload&&i.upload.addEventListener("progress",e=>u.onProgress(e),!1),i.addEventListener("load",t=>{c&&u.onPartUploadCompleted(c,i,e),u.uploadNextFile(t)},!1),i.addEventListener("error",t=>{console.error("failed to upload",t),n<10?(console.warn("retrying attempt=".concat(n+1),t),setTimeout(()=>{let t=g(e,n+1);u.setState({uploading:t,uploadingXhrs:[...u.state.uploadingXhrs.slice(0,-1),t]})},1e3*Math.pow(2,n))):u.onError(t)},!1),i.addEventListener("abort",e=>u.onAbort(e),!1),i.withCredentials=s,c&&u.onPartUploadStarted(c,i,e),i.open(a,p[e],!0),l){let n=new FormData;if(m[e]&&n.append(u.fileName||"file",m[e]),t)for(let e of Object.keys(t))n.append(e,t[e]);i.send(n)}else if(m[e]){var r,o;(null==(r=m[e])?void 0:r.type)&&i.setRequestHeader("Content-Type",null==(o=m[e])?void 0:o.type),i.send(m[e])}return i};for(let e=0;et.part_number===e+1);if(null==t?void 0:t.etag){console.warn("already uploaded part ".concat(e+1));continue}}h.push(()=>g(e))}if(h.length)return this.resetUpload(h,i,r,o,c),h;this.onComplete()}uploadNextFile(e){let{uploadingXhrs:t,uploadingXhrGenerators:n}=this.state;if(t&&n&&t.length0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;arguments.length>4&&arguments[4];let i=null,r=null==e?void 0:e[0];r?i=r():e=null,clearInterval(this.state.percentCompleteInterval),this.setState({uploading:i,uploadingXhrs:i?[i]:null,uploadingXhrGenerators:e,startedAt:new Date().getTime(),percentComplete:null,percentCompleteInterval:null,estimatedTimeLeft:null,estimatedTimeLeftAt:null,rehost:t,fileUrl:n,path:a})}startPercentCompleteInterval(){this.setState({uploadedAt:new Date().getTime(),percentCompleteInterval:window.setInterval(()=>this.onPercentCompleteInterval(),100)})}onPercentCompleteInterval(){if(!this.state.uploading)return;let e=this.state.uploadedAt-this.state.startedAt,t=e*(1/this.fudgeFactor-1),n=e+t,a=Date.now()-this.state.startedAt;a=5e3&&e&&e<1){let a=Date.now()-this.state.startedAt,i=a/e-a;i>=6e4&&(this.state.estimatedTimeLeft&&this.state.estimatedTimeLeft=1&&this.startPercentCompleteInterval()}}async onComplete(e){var t,n;let a,i=this.state.uploading&&this.state.uploading.status;if(!i||i<200||i>=400)return void this.onError();let r=null!=(n=null==(t=this.state.uploading)?void 0:t.responseText)?n:"";try{a=JSON.parse(r)}catch(e){console.error("Failed to parse response:",e)}this.resetUpload(),this.props.onUpload&&this.props.onUpload(a,r)}onError(e,t){let n=t||(0,o.I5)(this.state.uploading);alert(n),this.resetUpload(),this.props.onError&&this.props.onError(Error(n))}onAbort(e){this.resetUpload(),this.props.onAbort&&this.props.onAbort()}render(){return this.props,this.state,console.error("should be implemented by subclass"),null}constructor(e,t){super(e,t),(0,a._)(this,"fudgeFactor",.8),(0,a._)(this,"accepts",null),(0,a._)(this,"chunkSize",null),(0,a._)(this,"fileName",""),(0,a._)(this,"urls",[]),(0,a._)(this,"onPartUploadStarted",async(e,t,n)=>{(0,r.u4)(r.qY.MEDIA_UPLOAD_PART_STARTED,{media_upload_id:e.id,post_id:e.post_id,part_number:n})}),(0,a._)(this,"onPartUploadCompleted",async(e,t,n)=>{(0,r.u4)(r.qY.MEDIA_UPLOAD_PART_COMPLETED,{media_upload_id:e.id,post_id:e.post_id,part_number:n})}),this.state={uploading:null,uploadingXhrGenerators:[],uploadingXhrs:[],existingEtags:[],startedAt:null,uploadedAt:null,percentComplete:null,percentCompleteInterval:null,estimatedTimeLeft:null,estimatedTimeLeftAt:null,rehost:null,fileUrl:null,path:null}}}},97432:function(e,t,n){n.d(t,{A:()=>M});var a=n(99851),i=n(69277),r=n(70408),o=n(79785),s=n(74848),l=n(32485),c=n.n(l),d=n(96540),u=n(34206),p=n(84605),m=n(99520),h=n(86500),g=n(1683),_=n(68349),b=n(35369),f=n(85329),A=n(63136),E=n(21398),y=n(40659),N=n(39318),O=n(41086),v=n(80856),x=n(82776),S=n(57324),w=n(27569);function I(){let e=(0,o._)(["Confirmation required: we sent an email to ",". Click the link there to finish subscribing."]);return I=function(){return e},e}class M extends d.Component{getSavedEmail(){return this.props.user&&this.props.user.email||null}getPrefilledEmail(){return this.props.email||this.props.freeSignupEmail||this.getSavedEmail()}async componentDidMount(){let{autoFocus:e,disabled:t}=this.props;if(this.getPrefilledEmail())this.emailInput.value=this.getPrefilledEmail();else if(e&&!(this.getPrefilledEmail()||t)&&!(0,_.rr)()){var a;null==(a=this.emailInput)||a.focus()}n.e("837").then(n.bind(n,24548)).then(e=>{this.setState({fetchSuggestion:e.fetchSuggestion})})}onLoadingState(e){this.setState({loading:e,requires_confirmation:!1})}onError(e){var t;(null==(t=e.response)?void 0:t.status)===425&&this.setState({requires_confirmation:!0}),this.props.onError&&this.props.onError(e)}render(){var e,t,a,r,o,l,d;let{children:p,className:m,disabled:h,allowEmptyInput:I,expectTruncation:M,isWelcomePageColor:C,loginRedirect:k,next:j,onAccentBackground:L,pub:R,referralCode:T,showLogin:P,showTerms:D,source:B,submitButtonText:U,useSubscribeLink:G,useGenericEndpoint:F,additionalPubIds:W,user:Y,utm_campaign:K,onPrepareData:H,promptClassName:V,inputWrapperClassName:z,inputClassName:q,subscribeButtonClassName:J,subscribeToSpecificSectionIds:Z,endpointOverride:X,separateInputAndSubmitButton:Q,placeholder:$}=this.props,{loading:ee,requires_confirmation:et,currentEmail:en}=null!=(d=this.state)?d:{},ea="treatment_bold_fade"===B,ei=(null==(a=(0,O.y)("referring_pub_ids"))||null==(t=a.split)||null==(e=t.call(a,","))?void 0:e[0])||void 0,er=(null==(l=(0,O.y)("referring_pub_ids"))||null==(o=l.split)||null==(r=o.call(l,","))?void 0:r.slice(1))||void 0,eo=this.getPrefilledEmail(),{iString:es,language:el}=this.context;if(Z&&(W||F))throw Error("Specific section subscriptions only supported on /api/v1/free");let ec=!X&&!W;return(0,s.jsxs)("div",{className:c()(m,w.A.container),children:[(0,s.jsx)(y.HM.Consumer,{children:e=>{var t,n,a,r,o,l,d;let{getSessionAttribution:m}=e;return(0,s.jsxs)(u.Ay,{ref:this.assignForm,className:w.A.form,noInlineErrors:!0,action:X||(W?(0,N.yRP)("/api/v1/bulk_signup"):F?(0,N.yRP)("/api/v1/reader/signup/pub"):(0,N.yRP)("/api/v1/free")),noJsAction:X||(W?(0,N.yRP)("/api/v1/bulk_signup",{nojs:!0}):F?(0,N.yRP)("/api/v1/reader/signup/pub",{nojs:!0}):(0,N.yRP)("/api/v1/free",{nojs:!0})),prepareData:async e=>{if(et&&(e.resend_confirmation=!0),"string"==typeof e.publications&&(e.publications=JSON.parse(e.publications)),"undefined"!=typeof window&&ec){let t=await m();e=(0,i._)({},t,e)}return H&&await H(e),e},onChangeLoadingState:this.onLoadingState.bind(this),onError:e=>this.onError(e),onSuccess:e=>this.onSuccess(e),typoFound:e=>this.setState({emailSuggestion:e}),disableSubmit:G,analyticsName:"Free Email Form",children:[(0,s.jsx)("input",{type:"hidden",name:"first_url",value:g.R9}),(0,s.jsx)("input",{type:"hidden",name:"first_referrer",value:g.b7}),(0,s.jsx)("input",{type:"hidden",name:"current_url",value:g.AT}),(0,s.jsx)("input",{type:"hidden",name:"current_referrer",value:g.uC}),(0,s.jsx)("input",{type:"hidden",name:"first_session_url",value:g.K0}),(0,s.jsx)("input",{type:"hidden",name:"first_session_referrer",value:g.OG}),(0,s.jsx)("input",{type:"hidden",name:"referral_code",value:T}),(0,s.jsx)("input",{type:"hidden",name:"source",value:B}),(0,s.jsx)("input",{type:"hidden",name:"referring_pub_id",value:ei}),(0,s.jsx)("input",{type:"hidden",name:"additional_referring_pub_ids",value:null==er?void 0:er.join(",")}),j&&(0,s.jsx)("input",{type:"hidden",name:"redirect",value:j}),Z&&(0,s.jsx)("input",{type:"hidden",name:"specific_section_ids",value:Z}),Z&&(0,s.jsx)("input",{type:"hidden",name:"section_and_root",value:"true"}),!W&&F&&(0,s.jsx)("input",{type:"hidden",name:"publication_id",value:R.id}),W&&(0,s.jsx)("input",{type:"hidden",name:"publications",value:JSON.stringify(W.concat(R.id))}),(0,s.jsxs)("div",{className:c()(V,{[w.A.sideBySideWrap]:!Q}),children:[!!eo&&(0,_.o7)(),(0,s.jsx)("div",{className:c()(z,w.A.emailInputWrapper,{[null!=(a=w.A.emailInputWrapperExpectTruncation)?a:"undefined"]:M}),children:(0,s.jsx)(f.j,{className:c()(q,"pencraft",w.A.emailInput,{[null!=(r=w.A.emailInputOnAccentBackground)?r:"undefined"]:L,[null!=(o=w.A.emailInputExpectTruncation)?o:"undefined"]:M,[null!=(l=w.A.emailInputOnWelcomePage)?l:"undefined"]:C}),onChange:this.handleEmailChange,onInput:this.handleEmailChange,ref:this.assignEmailInput,name:ea?"email-pop":"email",readOnly:!!(this.getSavedEmail()||ee||h),disabled:!!(ee||h),placeholder:null!=$?$:es("Type your email..."),value:en||eo||null})}),(0,s.jsx)(b.Nm,{resetCss:!0,className:c()(J,"rightButton primary subscribe-btn",w.A.button,{pop:ea,[null!=(d=w.A.buttonOnAccentBackground)?d:"undefined"]:L}),type:"submit",disabled:!!(ee||h||!I&&!(null==(n=this.emailInput)||null==(t=n.value)?void 0:t.trim())),onClick:()=>{G&&(location.href=(0,N.eV6)(R,(0,i._)({addBase:!0,user:Y,utm_source:S.VU.substack,utm_medium:S.Jn.web,utm_campaign:K,next:j},(en||eo)&&{email:en||eo})))},children:(0,s.jsx)("span",{className:"button-text ".concat(ea?"pop":""),children:U||(0,x.getSubscribeText)(R,{language:el})})})]}),et?(0,s.jsx)("div",{children:(0,s.jsxs)(A.EY,{translated:!0,className:"error other-error",children:["This email address is not confirmed yet.",(0,s.jsx)("br",{}),(0,s.jsx)("a",{href:"javascript:void(0)",onClick:()=>{if(this.form)return this.form.handleSubmit()},children:"Click here"})," ","to resend the confirmation email."]})}):(0,s.jsx)("div",{id:"error-container"}),P||D||p?(0,s.jsxs)("div",{className:c()("subtle-help-text below-input",w.A.links),children:[P&&(this.getSavedEmail()?(0,s.jsx)("a",{className:"login-button",href:(0,N.bgT)({for_pub:R.subdomain}),"data-native":!0,children:es("Not you?")}):(0,s.jsx)("a",{className:"login-button",href:(0,N.a7q)({for_pub:R.subdomain,redirect:k}),"data-native":!0,children:es("Login")})),D&&[(0,s.jsx)("a",{className:"legal",href:(0,v._)({pub:R}),target:"_blank","data-native":!0,children:es("Privacy")}),(0,s.jsx)("a",{className:"legal",href:(0,v.Ru)({pub:R}),target:"_blank","data-native":!0,children:es("Terms")}),(0,s.jsx)("a",{className:"legal",href:(0,v.iQ)(),target:"_blank","data-native":!0,children:es("Information collection notice")})],p]}):null]})}}),(0,s.jsx)(E.Ic,{onRequest:()=>n.e("8911").then(n.bind(n,56130)),resolve:e=>e.EmailTypoHandler,module:"@/frontend/login/typo_handler/EmailTypoHandler",emailSuggestions:this.state.emailSuggestions,currentEmail:this.state.currentEmail,onAccept:this.onAcceptSuggestion})]})}constructor(e){super(e),(0,a._)(this,"emailInput",void 0),(0,a._)(this,"form",void 0),(0,a._)(this,"assignEmailInput",e=>{this.emailInput=e}),(0,a._)(this,"assignForm",e=>{this.form=e}),(0,a._)(this,"handleEmailChange",()=>{var e,t,n;let a=null==(e=this.emailInput)?void 0:e.value;!a||(this.setState({currentEmail:a}),this.state.emailSuggestions&&this.state.emailSuggestions.hasOwnProperty(a)||null==(t=(n=this.state).fetchSuggestion)||t.call(n,a).then(e=>{let[t,n]=e;this.setState({emailSuggestions:(0,r._)((0,i._)({},this.state.emailSuggestions),{[null!=t?t:"undefined"]:null!=n?n:""})})}))}),(0,a._)(this,"_onSuccess",async e=>{let{iTemplate:t}=this.context;(!0===e.body.is_new_subscriber||!1===e.body.prompt_to_login&&!0===e.body.didSignup)&&h.$5(),(Array.isArray(e.body)&&e.body.every(e=>e.requires_confirmation)||e.body.requires_confirmation)&&(this.props.onConfirmationRequired?await this.props.onConfirmationRequired(e):alert(t(I(),e.body.email))),this.props.freeSignupEmail&&this.props.freeSignupEmail!==e.body.email&&(0,m.E)({freeSignupEmail:e.body.email}),this.props.onSuccess&&await this.props.onSuccess(e)}),(0,a._)(this,"onSuccess",async e=>{"undefined"!=typeof window&&window.campaign&&(0,O.y)("referralCode")?window.campaign.identify({email:e.body.email},()=>this._onSuccess(e)):await this._onSuccess(e)}),(0,a._)(this,"onAcceptSuggestion",e=>{this.emailInput&&(this.emailInput.value=null!=e?e:"",this.form.handleSubmit(null,!0))}),this.state={emailSuggestions:{}}}}(0,a._)(M,"contextType",p.OW)},70090:function(e,t,n){n.d(t,{A:()=>i});var a=n(96540);let i=e=>{let[t,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let t=()=>{e&&n(e.currentTime)};if(e)return e.addEventListener("timeupdate",t),()=>{e.removeEventListener("timeupdate",t)}},[e]),t}},92825:function(e,t,n){n.d(t,{f:()=>S,S:()=>x});var a=n(74848),i=n(96540),r=n(89490),o=n(63136);function s(e){let{pub:t}=e,n=t.hero_text,i=t.rankingDetailFreeSubscriberCount;return n||i?(0,a.jsxs)(l,{children:[n&&(0,a.jsx)(o.EY.B4,{clamp:3,children:n}),i&&(0,a.jsx)(o.EY.B4,{color:"secondary",children:i})]}):null}let l=(0,r.I4)({display:"flex",direction:"column",gap:2});var c=n(84605),d=n(46271),u=n(35369),p=n(85050),m=n(39318),h=n(57324);function g(e){let{pub:t,isContributor:n,isSubscribed:i,utmSource:r}=e,{iString:o}=(0,c.GO)(),s=(0,d.Jd)(),l=(0,p.s)({surface:"profile"}),g=(0,m.eV6)(t,{user:s,addBase:!0,utm_source:r||h.VU.pubHoverCard,utm_medium:h.Jn.web,utm_campaign:h._9.profilePage});return n?null:(0,a.jsx)(_,{children:i?(0,a.jsx)(u.$n,{priority:"secondary-outline",href:g,size:"sm",children:o("Subscribed")}):(0,a.jsx)(u.$n,{priority:"primary",href:g,onClick:l(t),size:"sm",children:o("Subscribe")})})}let _=(0,r.I4)({display:"flex",direction:"column",paddingTop:4});var b=n(81203);function f(e){var t;let{pub:n}=e,i=(0,m.fOI)(n),r=n.name||"",s=null!=(t=n.subdomain)?t:"";return(0,a.jsxs)(A,{children:[(0,a.jsxs)(E,{children:[(0,a.jsx)(o.EY.B2,{weight:"medium",children:(0,a.jsx)(o.Yq,{href:i,children:r})}),(0,a.jsx)(o.EY.B4,{color:"secondary",children:(0,a.jsx)(o.Yq,{href:i,children:s})})]}),(0,a.jsx)(b.wg,{pub:n,size:48})]})}let A=(0,r.I4)({display:"flex",direction:"row",gap:12}),E=(0,r.I4)({display:"flex",direction:"column",flex:"grow",gap:2});var y=n(57820);function N(){return(0,a.jsx)(S,{children:(0,a.jsx)(y.y$,{flex:"grow",padding:40})})}var O=n(86500),v=n(76528);function x(e){var t;let{pubId:n,utmSource:r,trackOnShow:o}=e,{data:l}=(0,v.OU)("/api/v1/publication/public/".concat(n),{shouldRevalidate:!1});return((0,i.useEffect)(()=>{o&&l&&(0,O.u4)(O.qY.PUBLICATION_HOVER_CARD_SHOWN,{publication_id:n})},[o,null==l||null==(t=l.pub)?void 0:t.id]),l)?(0,a.jsxs)(S,{children:[(0,a.jsx)(f,{pub:l.pub}),(0,a.jsx)(s,{pub:l.pub}),(0,a.jsx)(g,{isContributor:l.isContributor,isSubscribed:l.isSubscribed,pub:l.pub,utmSource:r})]}):(0,a.jsx)(N,{})}let S=(0,r.I4)({display:"flex",direction:"column",sizing:"border-box",width:320,gap:12,padding:12})},21441:function(e,t,n){n.d(t,{A:()=>l});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(97731);let l=e=>{var{size:t=24,className:n}=e,l=(0,r._)(e,["size","className"]);return(0,o.jsx)(s.A,(0,i._)((0,a._)({},l),{name:"ChevronRightCircleIcon",svgParams:{viewBox:"0 0 24 24"},stroke:"none",width:t,height:t,className:n,children:(0,o.jsx)("path",{d:"M24 12C24 18.553 18.5648 24 12 24C5.44707 24 0 18.553 0 12C0 5.4353 5.4353 0 11.9883 0C18.553 0 24 5.4353 24 12ZM9.22355 6.02354C8.84708 6.37648 8.83531 6.97649 9.21178 7.32943L14.2 12.0117L9.21178 16.7059C8.84708 17.0471 8.84708 17.6353 9.21178 18.0118C9.5412 18.3177 10.1765 18.2942 10.5177 17.9647L15.5647 13.2118C16.2471 12.5765 16.2588 11.4589 15.5647 10.8118L10.5177 6.07061C10.1412 5.71766 9.57649 5.68237 9.22355 6.02354Z"})}))}},32999:function(e,t,n){n.d(t,{A:()=>l});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(97731);let l=e=>{var{size:t=24,color:n="var(--color-utility-white)",className:l}=e,c=(0,r._)(e,["size","color","className"]);return(0,o.jsx)(s.A,(0,i._)((0,a._)({},c),{name:"EyeIconFilled",svgParams:{viewBox:"0 0 24 24"},stroke:"none",width:t,height:t,fill:n,className:l,children:(0,o.jsx)("path",{d:"M11.869 18.1925C17.6987 18.1925 21.7307 13.4687 21.7307 11.9962C21.7307 10.5163 17.6914 5.7998 11.869 5.7998C6.11209 5.7998 2 10.5163 2 11.9962C2 13.4687 6.11209 18.1925 11.869 18.1925ZM11.869 16.0566C9.59825 16.0566 7.79331 14.2123 7.79331 11.9962C7.79331 9.72174 9.59825 7.93573 11.869 7.93573C14.1179 7.93573 15.9374 9.72174 15.9374 11.9962C15.9374 14.2123 14.1179 16.0566 11.869 16.0566ZM11.869 13.4614C12.6769 13.4614 13.3464 12.7981 13.3464 11.9962C13.3464 11.187 12.6769 10.5236 11.869 10.5236C11.0538 10.5236 10.3843 11.187 10.3843 11.9962C10.3843 12.7981 11.0538 13.4614 11.869 13.4614Z"})}))}},20297:function(e,t,n){n(74848),n(97731)},89839:function(e,t,n){n(74848),n(97731)},18325:function(e,t,n){n.d(t,{A:()=>l});var a=n(69277),i=n(70408),r=n(74848),o=n(54687),s=n(97731);let l=e=>(0,r.jsx)(s.A,(0,i._)((0,a._)({},e),{name:"LucideComments",svgParams:{height:24,width:24,fill:"#000000",strokeWidth:0},children:(0,r.jsx)(o.A,{height:24,stroke:e.stroke,fill:e.fill,strokeWidth:e.strokeWidth})}))},43427:function(e,t,n){n.d(t,{A:()=>l});var a=n(69277),i=n(70408),r=n(74848),o=n(23345),s=n(97731);let l=e=>(0,r.jsx)(s.A,(0,i._)((0,a._)({},e),{name:"LucideHeart",svgParams:{height:24,width:24,fill:"#000000",strokeWidth:0},children:(0,r.jsx)(o.A,{height:24,stroke:e.stroke,fill:e.fill,strokeWidth:e.strokeWidth})}))},14394:function(e,t,n){n(74848),n(97731)},78330:function(e,t,n){n(74848),n(97731)},15074:function(e,t,n){n(74848),n(97731)},26184:function(e,t,n){n(74848),n(97731)},70735:function(e,t,n){n(74848),n(97731)},84713:function(e,t,n){n(74848),n(97731)},24142:function(e,t,n){n(74848),n(97731)},84824:function(e,t,n){n(74848),n(97731)},60145:function(e,t,n){n.d(t,{A:()=>s});var a=n(69277),i=n(70408),r=n(74848),o=n(97731);let s=e=>(0,r.jsx)(o.A,(0,i._)((0,a._)({},e),{name:"NoteForwardIcon",svgParams:{height:24,width:24,stroke:e.stroke,strokeWidth:e.strokeWidth},children:(0,r.jsx)("path",{d:"M21 3V8M21 8H16M21 8L18 5.29962C16.7056 4.14183 15.1038 3.38328 13.3879 3.11547C11.6719 2.84766 9.9152 3.08203 8.32951 3.79031C6.74382 4.49858 5.39691 5.65051 4.45125 7.10715C3.5056 8.5638 3.00158 10.2629 3 11.9996M3 21V16M3 16H8M3 16L6 18.7C7.29445 19.8578 8.89623 20.6163 10.6121 20.8841C12.3281 21.152 14.0848 20.9176 15.6705 20.2093C17.2562 19.501 18.6031 18.3491 19.5487 16.8925C20.4944 15.4358 20.9984 13.7367 21 12",strokeLinecap:"round","stroke-linejoin":"round"})}))},77450:function(e,t,n){n(74848),n(97731)},92918:function(e,t,n){n(74848),n(97731)},71900:function(e,t,n){n(74848),n(97731)},9599:function(e,t,n){n(74848),n(97731)},2538:function(e,t,n){n(74848),n(97731)},37767:function(e,t,n){n.d(t,{A:()=>s});var a=n(69277),i=n(70408),r=n(32641),o=n(74848);let s=e=>{var{children:t,href:n,onClick:s,newTab:l}=e,c=(0,r._)(e,["children","href","onClick","newTab"]);return(0,o.jsx)("a",(0,i._)((0,a._)({role:"button",tabIndex:0,href:null!=n?n:"javascript:void(0)"},l&&{target:"_blank",rel:"noopener noreferrer"},s&&{onClick:e=>{e.stopPropagation(),s(e)}},c),{children:t}))}},17048:function(e,t,n){n.d(t,{_F:()=>b,Ay:()=>g});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(15734),c=n.n(l),d=n(27437),u=n(84777),p=n(95899),m=n(49807);let h="mention-pnpTE1",g=e=>{let{id:t,type:n,name:a,url:i,photo_url:o,uuid:l,mentionText:c,isStatic:g=!1,isEditorContext:_=!1}=e;return g?(0,r.jsx)("span",{className:s()(h,"mentionStatic-liMklk"),"data-component-name":"MentionStatic",children:(0,r.jsx)("a",{href:(0,m.bzS)(n,t,a,i),children:a||"Substack user"})}):"user"===n?(0,r.jsx)(p.HW,{children:(0,r.jsx)(d.ProfileHoverCard,{subject:{id:t,name:a||"Substack user",photo_url:o},utmSource:"mention",trigger:(0,r.jsx)("a",{className:h,href:_?void 0:(0,m.bzS)(n,t,a,i),target:"_blank",rel:"noopener","data-attrs":JSON.stringify({name:a,id:t,type:n,url:i,photo_url:o,uuid:l}),onClick:e=>e.stopPropagation(),"data-component-name":"MentionUser",children:null!=c?c:a})})}):"pub"===n?(0,r.jsx)(u.m,{pubId:t,utmSource:"mention",trigger:(0,r.jsx)("a",{className:h,href:i,target:"_blank",rel:"noopener","data-attrs":JSON.stringify({name:a,id:t,type:n,url:_?void 0:(0,m.bzS)(n,t,a,i),uuid:l}),onClick:e=>e.stopPropagation(),"data-component-name":"MentionPub",children:null!=c?c:a})}):(0,r.jsx)("a",{className:h,target:"_blank",rel:"noopener",href:(0,m.bzS)(n,t,a,i),"data-attrs":JSON.stringify({name:a,id:t,type:n,url:i,photo_url:o,uuid:l}),"data-component-name":"Mention",children:null!=c?c:a})},_={},b=async function(e){let{pathname:t="/api/v1/posts/mention"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_[e])return _[e];let{profiles:n,publications:r}=(await c().get(t).query({query:e})).body,o=new Map;return n&&n.length&&o.set("Writers",n.map(e=>(0,i._)((0,a._)({},e),{type:"user"}))),r&&r.length&&o.set("Publications",null==r?void 0:r.map(e=>(0,i._)((0,a._)({},e),{type:"pub",url:(0,m.Bte)({subdomain:e.subdomain}),photo_url:e.logo_url}))),_[e]=o,o}},9472:function(e,t,n){n.d(t,{g:()=>i});var a=n(74848);let i=e=>(0,a.jsx)("div",{className:"file-embed-wrapper-editor",children:(0,a.jsx)("div",{className:"file-embed-aligner",children:(0,a.jsx)("div",{className:"file-embed-container placeholder",children:(0,a.jsx)(r,{})})})}),r=()=>(0,a.jsxs)("div",{className:"embed-loader-container",children:[(0,a.jsx)("div",{className:"embed-loader"}),(0,a.jsx)("div",{className:"embed-loader-text",children:"Loading..."})]})},97683:function(e,t,n){n(74848),n(96540),n(15734),n(37767),n(22752),n(68349),n(35369),n(76977),n(67211),n(84270),n(16993),n(48965),n(84605),n(86500),n(94729),n(13022),n(28528),n(7761),n(49315),n(52145),n(16291),n(4016),n(39318),n(49807),n(82776)},22752:function(e,t,n){n.d(t,{N9:()=>B,if:()=>H,ib:()=>Y,E0:()=>W,wR:()=>z,hy:()=>q});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(36119),d=n.n(c);n(7350);var u=n(57157),p=n(47796),m=n(72170),h=n(96540);n(15734),n(36066),n(14537),n(27437),n(20297),n(89839);var g=n(18325),_=n(43427);n(14394),n(78330),n(15074),n(60145),n(63558),n(26184),n(43510),n(70735),n(97683),n(42496),n(8853),n(71900),n(9599),n(2538);var b=n(84605),f=n(86500);n(68349),n(24078),n(89490);var A=n(35369);n(16993),n(84843),n(81203),n(46453);var E=n(11510),y=n(39318),N=n(55136);n(8149),n(48535),n(76977),n(67211),n(20500),n(76171),n(94996),n(63136),n(11587),n(65842);var O=n(48965);n(16291),n(56262);var v=n(39968),x=n(94794);n(53989);var S=n(85478);n(98747);var w=n(46271);n(6049);var I=n(94729),M=n(12501),C=n(98920);n(49315),n(57820);var k=n(75303);n(21356);var j=n(83447);(0,k.I4)({height:20,width:20,radius:"xs",overflow:"hidden",border:"detail"}),(0,k.I4)({position:"relative",overflow:"hidden",radius:"md",outline:"detail",bg:"secondary"}),(0,k.I4)({position:"relative",overflow:"hidden",radius:"md",outline:"detail",className:j.A.transparent}),n(5180),n(83629),n(77103),n(28916);var L=n(98111);n(19601);var R=n(49807),T=n(82776),P=n(57324);function D(e,t){if("button"===e&&"verbose"===t)return 16;if("button"===e)return 20;if("tabs"===e)return 24;if("compressed"===e)return 14;if("large-on-dark"===e)return 20;return 0}function B(){return async function(e,t){let{tabId:n,restacking_user_id:a,media_clip_id:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};await (0,I.x6)("/api/v1/post/".concat(e,"/reaction"),t?{method:"POST",json:{reaction:"❤",surface:"reader",tabId:n,restacking_user_id:a,media_clip_id:i}}:{method:"DELETE",json:{tabId:n,media_clip_id:i}})}}function U(e){let{post:t,pub:n,user:a,variant:i,labelStyle:r,onChange:s,isStatic:l,isDisabled:c,postReactionToken:u,onOpenUpsellModal:p}=e,{iString:m}=(0,b.GO)(),h=d()(Object.values((null==t?void 0:t.reactions)||{})),g="count"===r?(0,T.numberToString)(h||0):"cta"===r?"Like":null;return(0,o.jsx)(F,{post:t,pub:n,user:a,onChange:s,isStatic:l,variant:i,postReactionToken:u,onOpenUpsellModal:p,children:e=>{let{isLiked:t,handleLike:n}=e;return(0,o.jsx)(V,{variant:i,state:t?"liked":void 0,icon:(0,o.jsx)(_.A,{className:"icon",height:D(i),strokeWidth:2}),onClick:c?()=>{}:n,noLabel:"none"===r,isDisabled:c,ariaLabel:m("Like")+("count"===r?" (".concat((0,T.numberToString)(h||0),")"):""),ariaPressed:t,children:g})}})}function G(e){var t;let n=d()(Object.values((null==(t=e.post)?void 0:t.reactions)||{}));return(0,o.jsx)(U,(0,i._)((0,a._)({},e),{labelStyle:n>0?"count":"none"}))}function F(e){let{post:t,pub:n,user:a,onChange:i,isStatic:r,children:s,variant:c,postReactionToken:d,onOpenUpsellModal:u}=e,[p,m]=(0,h.useState)(!1),{isLiked:g,toggle:_}=function(e){let{post:t,user:n,surface:a,onChange:i,postReactionToken:r}=e,o=!!(null==t?void 0:t.reaction),s=(0,x.aZ)(),l=(0,M.st)({pathname:(0,R.yRP)(s?"/api/v1/cross-post/".concat(null==t?void 0:t.id,"/reaction"):"/api/v1/post/".concat(null==t?void 0:t.id,"/reaction"),{token:r}),method:"POST",deps:[null==t?void 0:t.id]});return{isLiked:o,toggle:async()=>{var e;if(l.isLoading)return"error";if(!n)return"unauthorized";let{reaction:r,reactions:o,reactor_names:s}=(0,N.Qw)(n,t);t.reaction=null!=r&&r,t.reactions=o,t.reactor_names=null!=s?s:[],null==i||i({post:t});let c=await l.refetch(r?{method:"POST",json:{reaction:"❤",surface:a}}:{method:"DELETE"}),d=null==c||null==(e=c.response)?void 0:e.status;if(d){let{reaction:e,reactions:a,reactor_names:r}=(0,N.Qw)(n,t);t.reaction=null!=e&&e,t.reactions=a,t.reactor_names=null!=r?r:[],null==i||i({post:t})}return 401===d?"unauthorized":d?"error":r?"liked":"unliked"}}}({post:t,user:a,onChange:i,postReactionToken:d}),[b,A]=(0,h.useState)(!1),E=(0,h.useCallback)(async e=>{var n;if(null==e||null==(n=e.stopPropagation)||n.call(e),(0,f.u4)(f.qY.POST_UFI_BUTTON_CLICKED,{type:"like",post_id:t.id}),void 0!==u){u(),null==e||e.preventDefault();return}"unauthorized"===await _()&&A(!0)},[_,u,t.id]);return(0,o.jsxs)("div",{className:l()("like-button-container","post-ufi-button","style-".concat(c),g&&"state-liked"),children:[s({isLiked:g,handleLike:E}),(0,o.jsx)(C.Z,{isStatic:r,displaySignInModal:b,onCloseSignInModal:()=>A(!1),entry:"post-preview-restack"}),!r&&(0,o.jsx)(v.Z,{isOpen:p,medium:"web",pub:n,user:a,post:t,onClose:()=>m(!1)})]})}async function W(e,t,n){let{surface:a}=n;await (0,I.x6)("/api/v1/posts/saved",{method:t?"POST":"DELETE",json:{post_id:e}}),(0,f.u4)(f.qY.POST_SAVED,{post_id:e,surface:a,is_saved:t})}function Y(){let e=(0,O.d)(),{iString:t}=(0,b.GO)();return n=>{n?e.popToast(()=>(0,o.jsx)(O.y,{text:t("Post saved"),Icon:u.A,cta:t("View now"),href:(0,y.c8C)()})):e.popToast(()=>(0,o.jsx)(O.y,{text:t("Post unsaved"),Icon:p.A}))}}function K(e){let t,{variant:n,count:i,labelStyle:r,post:s,pub:l,isStatic:c,onClick:d,isDisabled:u,onOpenUpsellModal:p}=e,{iString:m}=(0,b.GO)(),h=(0,E.Iu)(),_=(0,w.Jd)(),{getConfigFor:A}=(0,S.mJ)(),N=c&&A("publication_has_own_app"),O=(null!=i?i:0)>0,v=void 0!==p&&!_&&h;return t=(null==s?void 0:s.comment_url_override)?s.comment_url_override:N?L.T.HALF_MAGIC_COMMENTS_URL:c?"".concat(L.T.HALF_MAGIC_COMMENTS_URL,"&utm_source=").concat(P.VU.substack,"&utm_medium=").concat(P.Jn.email):!h||(null==_?void 0:_.is_contributor)?(0,y.wu9)(l,s,{comments:!0}):(0,y.XV8)(l.subdomain,s.slug,{params:(0,a._)({comments:!0,utm_source:P.VU.post,utm_medium:P.Jn.web},v&&O&&{show_app_upsell:"comment"})}),(0,o.jsxs)(V,{variant:n,icon:(0,o.jsx)(g.A,{className:"icon",height:D(n),strokeWidth:2}),href:u?void 0:t,onClick:u?()=>{}:e=>{if((0,f.u4)(f.qY.POST_UFI_BUTTON_CLICKED,{type:"comment",post_id:s.id}),v&&!O){p(),e.preventDefault();return}d?d(e):(null==e||e.preventDefault(),window.location.href=t)},noLabel:"none"===r,className:"post-ufi-comment-button",isDisabled:u,ariaLabel:m("cta"===r?"Comment":"View comments"+" (".concat((0,T.numberToString)(i||0),")")),children:["cta"===r&&m("Comment"),"count"===r&&(0,T.numberToString)(i||0)]})}function H(e){let t,{post:n,user:a,pub:i,variant:r,labelStyle:s,isStatic:c,onChange:d,position:u}=e,[p,g]=(0,h.useState)(!1),_=(0,h.useCallback)(()=>{(0,f.u4)(f.qY.POST_SHARE_BUTTON_CLICKED,{position:u,post_id:n.id}),g(!0)},[]),{iString:A}=(0,b.GO)();t=n.share_url_override?n.share_url_override:c?n?L.T.SHARE_URL:L.T.SHARE_PUB_URL:"javascript:void(0)";let E="none"===s;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(V,{variant:r,icon:E?(0,o.jsx)(m.A,{className:"icon",height:D(r),strokeWidth:2}):null,onClick:_,href:t,noLabel:"none"===s,className:l()(!E&&"no-icon"),children:"cta"===s&&A("Share")}),!c&&(0,o.jsx)(v.Z,{isOpen:p,medium:"web",pub:i,user:a,post:n,onChange:d,onClose:()=>g(!1)})]})}let V=(0,h.forwardRef)((e,t)=>{var{icon:n,children:s,state:c,variant:d,onClick:u,href:p,noLabel:m,verboseLabel:h,noBorder:g,className:_,isDisabled:b,iconPosition:f="left",title:E,ariaLabel:y,ariaPressed:N}=e,O=(0,r._)(e,["icon","children","state","variant","onClick","href","noLabel","verboseLabel","noBorder","className","isDisabled","iconPosition","title","ariaLabel","ariaPressed"]);return(0,o.jsxs)(A.Nm,(0,i._)((0,a._)({},O),{ref:t,className:l()("post-ufi-button","style-".concat(d),_,c?"state-".concat(c):void 0,b?"state-disabled":void 0,s&&!m?"has-label":"no-label",g?"no-border":"with-border",h?"verbose-label":""),title:E,href:p,onClick:e=>{u&&(e.stopPropagation(),u(e))},"aria-label":null!=y?y:E,"aria-pressed":N,children:["left"===f&&n,!m&&s&&(0,o.jsx)("div",{className:"label",children:s}),"right"===f&&n]}))}),z=e=>{let{pub:t,post:n,user:a,onChange:i,postReactionToken:r,onOpenUpsellModal:s}=e;return(0,S.mJ)().getConfigFor("like_posts_enabled")&&t.community_enabled?(0,o.jsx)(G,{variant:"button",post:n,pub:t,user:a,onChange:i,postReactionToken:r,onOpenUpsellModal:s}):null},q=e=>{let{pub:t,post:n,onClick:a,onOpenUpsellModal:i}=e,r=(0,T.showCommentsOnPost)({publication:t,post:n}),{comment_count:s}=n;return r?(0,o.jsx)(K,{post:n,pub:t,labelStyle:s>0?"count":"none",variant:"button",count:s,onClick:a,onOpenUpsellModal:i}):null}},5109:function(e,t,n){n.d(t,{dx:()=>R});var a=n(79785),i=n(74848),r=n(32485),o=n.n(r),s=n(69843),l=n.n(s),c=n(96540),d=n(38217),u=n(52820),p=n(84605),m=n(92905),h=n(86500),g=n(94729),_=n(12501),b=n(35369),f=n(33727),A=n(60322),E=n(85329),y=n(76977),N=n(20500),O=n(76171);n(16993);var v=n(81203),x=n(94996),S=n(63136),w=n(11587),I=n(65842),M=n(55247),C=n(96400);n(39318);var k=n(46058),j=n(16722);function L(){let e=(0,a._)([""," on Substack"]);return L=function(){return e},e}let R=(0,u.WR)((0,p.wr)(function(e){let{className:t,user:n,numVisibleSubscriptions:a,numSubscriptions:r,freeSignup:s,freeSignupEmail:u,needsPhoto:p,optionalPhoto:R,showHandle:T=!0,token:P,text:D,onSuccess:B,prepareData:U,pageTitle:G,primaryEligiblePublications:F,isPostInvite:W,complete:Y,profileExists:K,onSkip:H,onEditReadVisibility:V,barebones:z,onEditRecommendations:q,numRecommendationsToMake:J,noSubscribeCta:Z,style:X,iString:Q,iPlural:$,iTemplate:ee,showSocialHandle:et,pub:en,autoSubmit:ea,onAutoSubmitFailed:ei}=e,[er,eo]=(0,c.useState)(null),[es,el]=(0,c.useState)(null),[ec,ed]=(0,c.useState)(null),[eu,ep]=(0,c.useState)(n&&n.is_magic?n.email:null),[em,eh]=(0,c.useState)("instagram"),[eg,e_]=(0,c.useState)(!!W&&!(null==n?void 0:n.has_publication)),[eb,ef]=(0,c.useState)(void 0),[eA,eE]=(0,c.useState)(!1),[ey,eN]=(0,c.useState)(!1),[eO,ev]=(0,c.useState)(!1),[ex,eS]=(0,c.useState)(void 0),[ew,eI]=(0,c.useState)(!!W||!!K),[eM,eC]=(0,c.useState)(!0),[ek,ej]=(0,c.useState)(!1),eL=(0,c.useRef)(null),eR=(0,c.useRef)(!1),{isLoading:eT,error:eP,refetch:eD,clearError:eB}=(0,_.st)({pathname:"/api/v1/user/profile",method:"PUT",auto:!1,deps:[]}),{trackInputFilled:eU,trackSubmitPressed:eG,trackError:eF}=(0,m.a)("Signup Profile Form"),eW=eb||(0,k.w3)(n,{}),eY=er||n&&n.name||"",eK=es||(null==n?void 0:n.handle)||"",eH="string"==typeof ec?ec:n&&n.bio||"",eV=()=>n&&!n.is_magic&&n.name&&(!p||n.photo_url),ez=async(e,t)=>{try{let n=await (0,g.x6)("/api/v1/publication/suggestion"),a=t||ee(L(),e);await (0,g.x6)("/api/v1/publication",{method:"post",json:{name:e,subdomain:n.subdomain,hero_text:a,tos:!0}})}catch(e){(0,h.u4)(h.qY.DEFAULT_PUBLICATION_CREATION_FAILED),console.warn("couldn't set up a default publication",e)}},eq=async()=>{let e=eu||u;if(!ek&&e){ej(!0);try{await (0,g.x6)("/api/v1/email-login",{method:"post",json:{email:e,redirect:document.location.href}}),eN(!0)}catch(e){console.error("Failed send login email:",e)}ej(!1)}},eJ=async e=>{if(null==e||e.preventDefault(),eG(),eB(),!eL.current)return;let t=Object.fromEntries(new FormData(eL.current).entries());U&&U(t,e);let n=await eD({json:t});if(n instanceof Error){var a;eF(n),ea&&!eA&&(eE(!0),null==ei||ei()),eN(!1),n instanceof g.fk&&(null==(a=n.response)?void 0:a.status)===401&&eq()}else{if(n.emailConfirmationRequired)return void ev(!0);eg&&await ez(eY,eH),B({body:n},t)}};(0,c.useEffect)(()=>{ea&&!eR.current&&(eR.current=!0,eV()?eJ():null==ei||ei())},[]);let eZ="string"==typeof G||null===G?G:Q(eV()?"Update your profile":"Create your profile"),eX=(!n||n.is_magic)&&!u&&!W,eQ=!K&&!!q&&!l()(J)&&J>0,e$=W&&F&&(null==n?void 0:n.has_publication)&&F.length>1,e0="number"==typeof a&&!l()(r)&&r>0&&V,e1=!Z&&!(n&&(n.is_subscribed||n.is_free_subscribed)||s),e2=W&&!(null==n?void 0:n.has_publication),e3=eT||ek;return(0,i.jsxs)("div",{className:o()("profile-updater",t),style:X,children:[eZ&&(0,i.jsx)(S.EY.H4,{align:"left",paddingBottom:20,children:eZ}),(eW||p||R)&&(0,i.jsx)(y.fI,{flex:"grow",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(d.U,{user:{photo_url:eb||(null==n?void 0:n.photo_url)||null},onChangePhoto:e=>{let{photo_url:t}=e;return ef(t)}})}),(0,i.jsxs)("form",{ref:eL,className:"form",onSubmit:eJ,noValidate:!0,children:[(0,i.jsxs)(y.VP,{gap:20,children:[(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.sb,{htmlFor:"name",children:Q("Name")}),en?(0,i.jsx)("input",{type:"hidden",name:"pub_id",value:en.id}):null,(0,i.jsx)(I.ks,{autoFocus:!0,className:"profile-name",placeholder:Q("Type your name..."),name:"name",id:"name",value:eY,disabled:e3,onInput:e=>{eo(e.currentTarget.value)},onBlur:eU})]}),eX&&(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.sb,{htmlFor:"email",children:Q("Email")}),(0,i.jsx)(E.j,{placeholder:Q("Enter your email address..."),name:"email",value:null!=eu?eu:void 0,disabled:e3,onInput:e=>{ep(e.currentTarget.value)}})]}),T&&(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.JU,{htmlFor:"handle",children:Q("Handle")}),(0,i.jsx)(I.ks,{className:"profile-name",placeholder:Q("Type your handle..."),name:"handle",id:"handle",value:eK,disabled:e3,onInput:e=>{el(e.currentTarget.value)}})]}),!z&&(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.JU,{htmlFor:"bio",children:Q("Bio")}),(0,i.jsx)(w.T,{placeholder:Q("Say something about yourself..."),name:"bio",id:"bio",value:eH,disabled:e3,onInput:e=>{ed(e.currentTarget.value)}}),W&&(0,i.jsx)(N.EE,{align:"left",children:Q("Tip: this will be shown at the bottom of your guest post")})]}),W&&(0,i.jsx)("input",{type:"hidden",name:"needs_bio",value:"true"}),et&&(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.Sy,{htmlFor:"social",hint:Q("Optional"),children:Q("Where else can you be found?")}),(0,i.jsxs)(y.fI,{gap:8,wrap:"wrap",children:[(0,i.jsx)(y.fI,{flex:"grow",minWidth:200,children:(0,i.jsxs)(x.I,{flex:"grow",name:"social",value:em,disabled:e3,onChange:e=>{eh(e.currentTarget.value)},children:[(0,i.jsx)(x.K,{children:Q("Select a social network")}),(0,i.jsx)("option",{value:"twitter",children:Q("Twitter")}),(0,i.jsx)("option",{value:"instagram",children:Q("Instagram")}),(0,i.jsx)("option",{value:"tiktok",children:Q("Tiktok")}),(0,i.jsx)("option",{value:"linkedin",children:Q("LinkedIn")}),(0,i.jsx)("option",{value:"youtube",children:Q("Youtube")})]})}),(0,i.jsx)(y.fI,{flex:"grow",minWidth:200,children:(0,i.jsx)(I.ks,{flex:"grow",placeholder:Q("@yourhandle"),name:"socialHandle",value:ex,disabled:e3,onInput:e=>{eS(e.currentTarget.value)}})})]})]}),e$&&(0,i.jsxs)(I.A0,{children:[(0,i.jsx)(O.JU,{children:Q("Publication to display")}),(0,i.jsx)(f.Z,{padding:12,gap:12,children:F.map((e,t)=>{var n,a;return(0,i.jsx)(O.JU,{htmlFor:"primary-radio-".concat(e.id),children:(0,i.jsxs)(y.fI,{gap:12,alignItems:"center",children:[(0,i.jsx)("input",{id:"primary-radio-".concat(e.id),type:"radio",name:"primary_publication_user_id",value:e.id,defaultChecked:0===t,disabled:e3}),(0,i.jsx)(v.Nq,{pub:e.publication,size:24}),(0,i.jsx)(S.EY.B3,{as:"span",children:null!=(a=null==(n=e.publication)?void 0:n.name)?a:""})]})},e.id)})})]}),e1&&(0,i.jsxs)(y.Ye,{as:"label",className:j.A.checkbox,gap:8,children:[(0,i.jsx)(A.S,{size:"sm",name:"free_signup",defaultChecked:!0,checked:eM,onChange:e=>eC(e)}),(0,i.jsx)(S.EY.B3,{as:"span",children:Q("Subscribe to the newsletter")})]}),e2&&(0,i.jsxs)(y.Ye,{as:"label",className:j.A.checkbox,gap:8,children:[(0,i.jsx)(A.S,{name:"create_publication",id:"create-publication-checkbox",checked:eg,onChange:e=>{e_(e)}}),(0,i.jsx)(S.EY.B3,{as:"span",children:Q("Create a Substack publication for me")})]}),(0,i.jsx)("input",{type:"hidden",name:"confirmation_redirect_pathname",value:document.location.pathname}),(0,i.jsx)("input",{type:"hidden",name:"photo_url",value:null!=eW?eW:void 0}),(0,i.jsx)("input",{type:"hidden",name:"user_id",value:(null==n?void 0:n.id)||""}),(0,i.jsx)("input",{type:"hidden",name:"needs_photo",value:!!p}),(0,i.jsx)("input",{type:"hidden",name:"token",value:P}),Y&&(0,i.jsx)("input",{type:"hidden",name:"complete",value:!0}),(0,i.jsxs)("div",{children:[eP&&!ey&&(0,i.jsx)("div",{className:"error other-error",children:(()=>{if(!eP)return null;if(eP instanceof g.fk){var e,t,n,a;return(null==(n=eP.body)||null==(t=n.errors)||null==(e=t[0])?void 0:e.msg)||(null==(a=eP.body)?void 0:a.error)||"Something went wrong"}return"Something went wrong"})()}),ey&&(0,i.jsxs)(S.EY,{as:"div",translated:!0,className:"error other-error",children:["If you have an account with us, we've sent an email to ",(0,i.jsx)("b",{children:C.TH.p(null!=eu?eu:"")})," with a link that you can use to sign in."]}),eO&&(0,i.jsx)("div",{className:"error other-error",children:Q("We have sent you a confirmation email. Please check your inbox before continuing.")})]}),e0&&(0,i.jsxs)(S.EY.B3,{as:"span",children:[(0,i.jsx)(S.Yq,{cursor:"pointer",decoration:"underline",onClick:V,children:$("1 subscription","%1 subscriptions",a)})," ",Q("will be displayed on your profile.")]}),eQ&&(0,i.jsxs)(S.EY.B3,{as:"span",children:[(0,i.jsx)(S.Yq,{cursor:"pointer",decoration:"underline",onClick:q,children:$("1 recommendation","%1 recommendations",J)})," ",Q("will be made on your publication.")]})]}),(0,i.jsxs)(y.VP,{gap:8,children:[!n&&(0,i.jsx)(y.VP,{className:j.A.tosCheckboxContainer,paddingBottom:12,children:(0,i.jsx)(M.U,{checked:ew,onCheckboxChange:e=>eI(e),style:{display:"flex"}})}),(0,i.jsx)(b.$n,{priority:"primary",disabled:!n&&!ew||e3,loading:e3,type:"submit",children:D||Q("Save")}),H&&(0,i.jsx)(b.$n,{priority:"secondary",onClick:H||(()=>{}),disabled:e3,children:Q("Skip")})]})]})]})}))},55136:function(e,t,n){n.d(t,{Qw:()=>w});var a=n(99851),i=n(69277),r=n(74848),o=n(32485),s=n.n(o),l=n(36119),c=n.n(l),d=n(96540),u=n(15734),p=n.n(u),m=n(97432),h=n(43427),g=n(84605),_=n(70145),b=n(99520),f=n(86500),A=n(68349),E=n(76977),y=n(16993),N=n(81203),O=n(63136),v=n(98111),x=n(39318),S=n(82776);let w=(e,t)=>I(e,t,!t.reaction),I=(e,t,n)=>{let a="reaction"in t?t.reaction:void 0,{reactions:r={"❤":0},reactor_names:o=[]}=t;if(r=(0,i._)({},r),o=[...o],n&&!a){let t=r[a="❤"];r[a]=t?t+1:1,e&&e.is_public_admin&&o.push(e.name||"author")}else!n&&a&&(r["❤"]=r["❤"]?r["❤"]-1:0,e&&e.is_public_admin&&(o=o.filter(t=>t!==(e.name||"author"))),a=null);return{reaction:a,reactions:r,reactor_names:o}};class M extends d.Component{notifyParent(e){var t;let{reaction:n,reactions:a,reactor_names:r}=e,o=(0,i._)({},this.props.post),s=this.props.comment&&(0,i._)({},this.props.comment);(t=s||o).reaction=n,t.reactions=a,t.reactor_names=r,this.props.onChange&&this.props.onChange({post:o,comment:s})}reactionRejected(e){(0,f.u4)(f.qY.REACTION_REJECTED,{comment_id:this.props.comment&&this.props.comment.id,post_id:this.props.post&&this.props.post.id,reason:"Not logged in",unreact:!e}),this.setState({includeModal:!0,modalOpen:!0})}render(){let e,{className:t,user:n,pub:a,comment:i,height:o,isStatic:l,post:d,buttonStyle:u,hideReactionCount:p,countInParenthesesStyle:m,iString:g}=this.props,_=i||d,b=null==_?void 0:_.reaction,f=(null==_?void 0:_.reactions)||{},A=c()(Object.values(f));return e=d&&d.reaction_url_override?d.reaction_url_override:l?v.T.REACTION_URL:"javascript:void(0)",(0,r.jsxs)(O.EY,{as:"span",decoration:"hover-underline",color:b?"error":"pub-secondary-text",className:t,children:[this.props.render?this.props.render({liked:b,numReactions:A>0?(0,S.numberToString)(A):null,onClick:e=>{this.react(e)}}):(0,r.jsx)("a",{href:e,className:s()("like-button",{button:u,"post-meta-button":u,liked:b}),onClick:e=>this.react(e),children:(0,r.jsxs)(E.pT,{gap:6,alignItems:"center",className:t,children:[l?(0,r.jsx)(h.A,{ampProps:{layout:"fixed"},isStatic:!0,height:o,stroke:"var(--color-fg-secondary-themed)",fill:"transparent"}):(0,r.jsxs)(E.pT,{className:"reaction-container",children:[(0,r.jsx)(h.A,{className:"animation"}),!b&&(0,r.jsx)(h.A,{strokeWidth:2,height:o,fill:"transparent",stroke:"var(--color-fg-secondary-themed)"}),b&&(0,r.jsx)(h.A,{height:o,strokeWidth:2})]}),m?(0,r.jsxs)(O.EY.Meta,{color:b?"error":"pub-secondary-text",className:"like-count",children:[g(b?"Liked":"Like"),!p&&A>0?" (".concat((0,S.numberToString)(A),")"):""]}):!p&&A>0?(0,r.jsx)("span",{className:"like-count",children:(0,S.numberToString)(A)}):u?(0,r.jsx)("span",{className:"like-count",children:g("Like")}):null]})}),!l&&this.state.includeModal&&(0,r.jsx)(C,{isOpen:this.state.modalOpen,user:n,pub:a,comment:i,react:this.react,onClose:()=>this.setState({modalOpen:!1})})]})}constructor(...e){super(...e),(0,a._)(this,"state",{includeModal:!1,modalOpen:!1}),(0,a._)(this,"react",async e=>{if(this.props.commentActionsOverride){null==e||e.preventDefault(),null==e||e.stopPropagation(),this.props.commentActionsOverride();return}if(this.props.isStatic)return;e&&(e.preventDefault(),e.stopPropagation());let t=this.props.comment||this.props.post;if(!t)return void console.warn("LikeButton: no subject");let n=!t.reaction;if(this.props.onReactedChange&&this.props.onReactedChange(n),this.props.noSelfUpdate)return;let a=await (0,A.vL)(this,"locked",async(e,t)=>{var a,i;let r,o,s=t.comment||t.post;if(!s)return void console.warn("LikeButton: no subject");let l=(a=!!t.comment,i=t.token,o=(0,x.yRP)("/api/v1/".concat(a?"comment":"post","/").concat(s.id,"/reaction"),{token:i}),n?p().post(o).send({reaction:"❤"}):p().delete(o));t.oauthAccessToken&&l.set("Authorization","Bearer ".concat(t.oauthAccessToken));let{reaction:c,reactions:d,reactor_names:u}=w(t.user,s);this.notifyParent({reactions:d,reaction:c,reactor_names:u});try{await l}catch(e){r=e,this.notifyParent(s)}return{error:r,reaction:c}});return a&&a.error&&(a.error.response&&401===a.error.response.statusCode?await this.reactionRejected(a.reaction):alert((0,A.uX)(a.error))),!!a&&!a.error})}}function C(e){let{comment:t,pub:n,user:a,isOpen:i,onClose:o,react:s}=e,{iString:l}=(0,g.GO)();return(0,r.jsxs)(y.aF,{isOpen:i,onClose:o,children:[(0,r.jsx)(y.rQ,{title:l(t?"Subscribe to like this comment":"Subscribe to like this post"),alignItems:"center",onClose:o,icon:(0,r.jsx)(N.Nq,{pub:n,size:48})}),(0,r.jsx)(y.cw,{children:(0,r.jsx)(m.A,{user:a,pub:n,showLogin:!0,showTerms:!0,source:"like_button",onSuccess:async e=>{let t=e&&e.body&&e.body.email;e&&e.body&&e.body.prompt_to_login||!await s()?window.location.href=(0,x.a7q)({for_pub:n.subdomain,email:t}):((0,b.E)({freeSignup:!0,freeSignupEmail:t}),o())}})})]})}(0,g.wr)((0,_.ct)(M))},35769:function(e,t,n){n.d(t,{P:()=>h});var a=n(74848),i=n(96540),r=n(15734),o=n.n(r),s=n(18468),l=n(84605);n(6049);var c=n(76977),d=n(81203),u=n(63136),p=n(47851),m=n(39318);let h=e=>{let{tierNumber:t,rewardDescription:n,numReferralsRequired:r,pub:h}=e,[g,_]=(0,i.useState)([]),b=async()=>{let{body:e}=await o().get("/api/v1/reader_referrals/tiers");_(e.tiers)},{iString:f}=(0,l.GO)();if((0,i.useEffect)(()=>{b()},[]),!t||!h.id)return(0,a.jsx)("div",{"data-component-name":"ReferralsTierCardError"});let A=g[t-1],E=A?"custom"===A.reward_type?A.reward_description:f(p.mn[A.reward_type]):n,y=A?A.num_referrals_required:r;return y?(0,a.jsxs)(c.I1,{"data-component-name":"ReferralsTierCard",className:"milestone-tier-card",justifyContent:"start",border:"detail-themed",radius:"md",padding:20,gap:16,children:[(0,a.jsx)("div",{className:"tier-stars-container",children:Array(t).fill(0).map((e,t)=>(0,a.jsx)(s.A,{width:20,height:20,strokeWidth:2,stroke:h.theme_var_background_pop||"#FF6719",fill:h.theme_var_background_pop||"#FF6719"},t))}),(0,a.jsxs)(c.I1,{gap:4,children:[(0,a.jsx)(u.EY.H4,{children:E}),(0,a.jsxs)(u.EY.Meta,{translated:!0,children:["Tier ",I18N.p(t)," reward - ",I18N.p(y)," Referrals"]})]}),(0,a.jsxs)(c.Ye,{alignItems:"center",children:[(0,a.jsx)(d.Nq,{pub:h,size:24}),(0,a.jsx)(u.EY.Meta,{color:"primary",as:"a",href:(0,m.$_T)(h),decoration:"none",weight:"bold",children:h.name})]})]}):(0,a.jsx)("div",{"data-component-name":"ReferralsTierCardError"})}},5294:function(e,t,n){n(74848),n(96540),n(84605),n(68349),n(35369),n(76977),n(16993),n(19832),n(84843),n(94996),n(63136),n(11587),n(48965);var a=n(52711),i=n(23246);let r=a.Ik({name:a.Yj().meta({title:"Name",description:"The name of the content policy"}),description:a.Yj().min(1).max(1e3).meta({title:"Description",description:"A short description of the policy"}),category:a.k5(i.Z5).meta({title:"Category",description:"The category of the content policy"}),violation_examples:a.YO(a.Yj().min(1).max(500)).meta({title:"Violation Examples",description:"Examples of content that violate the policy"}),non_violation_examples:a.YO(a.Yj().min(1).max(500)).meta({title:"Non-Violation Examples",description:"Examples of content that do not violate the policy"})}),o=a.Ik({content_policies:a.YO(r).meta({title:"Specifications",description:"Each of the policies below will be included in LLM prompts to help guide the model when evaluating content."})});a.Ik({main:o.meta({description:"Warning! Updates to this config will be applied in production immediately."}),test:o.meta({description:"Test changes to the content policies before applying them to the main config."})}).meta({$id:"moderation-config/content_policies/v2",title:"Content Policies",description:"The content policies to include in LLM prompts"})},94090:function(e,t,n){n.d(t,{a2:()=>g,uc:()=>h});var a=n(69277),i=n(74848),r=n(37946),o=n(96540);n(5294);var s=n(84605),l=n(46271),c=n(27332),d=n(94729),u=n(49315),p=n(82776);let m=(0,o.createContext)(()=>void 0);function h(){return(0,o.useContext)(m)}function g(e){let{comment:t,publication:n,post:o,item:m}=e,g=(0,l.Jd)(),_=h(),{iString:b}=(0,s.GO)();return t&&(0,p.canReportComment)(g,t)?(0,i.jsx)(u.Dr,{leading:(0,i.jsx)(r.A,{}),priority:"destructive",onClick:()=>{let e=!!t.publication_id;_({pub:null!=n?n:void 0,canReportToAdmins:e,onSubmit:async n=>{let{reportCategory:i,details:r,reportedToSubstack:o}=n;await (0,d.x6)("/api/v1/comment/".concat(t.id,"/report"),{method:"POST",json:(0,a._)({details:r,reportCategory:i,reportedToSubstack:o},e?{publication_id:t.publication_id}:{})})}})},children:b("Report")}):o&&n&&m&&"context"in m&&c.j6.includes(m.context.type)?(0,i.jsx)(u.Dr,{leading:(0,i.jsx)(r.A,{}),priority:"destructive",onClick:()=>{_({pub:n,canReportToAdmins:!1,onSubmit:async e=>{let{reportCategory:t,details:a}=e;await (0,d.x6)("/api/v1/publications/".concat(n.id,"/posts/").concat(o.id,"/report"),{method:"POST",json:{details:a,reportCategory:t}})}})},children:b("Report")}):null}},9979:function(e,t,n){n.d(t,{Bg:()=>N,Et:()=>S,HT:()=>w,NH:()=>A,PB:()=>v,QY:()=>O,Uy:()=>E,ZE:()=>M,_m:()=>x,aE:()=>I,sx:()=>y,x5:()=>C});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(96540),l=n(84605),c=n(86500),d=n(48531),u=n(17186),p=n(68349),m=n(48965),h=n(39318),g=n(70189),_=n(82776),b=n(57324);function f(e,t,n,r){let{shareUrl:o,post:s,pub:l,selectionId:d,utm_campaign:p,utm_medium:m,event:h=c.qY.SHARE_LINK_CLICKED,trackParams:g={}}=n,{openInNewTab:_=!1}=null!=r?r:{};(0,c.u4)(h,(0,a._)((0,i._)((0,a._)({name:e,post_id:s?s.id:null},d?{selection_id:d}:{}),{source:p,utm_medium:m}),g));let b=t(o);b&&"string"==typeof b&&(_||b.startsWith("http")?window.open(b,"_blank"):document.location.href=b),(0,u.X3)("".concat(null==l?void 0:l.subdomain," shared"),!0)}function A(e){let{pub:t,post:n,sharingSelfPub:a,shareName:i}=e,r=(null==t?void 0:t.twitter_screen_name)||t&&_.twitterScreenNames[t.subdomain],o=i;t&&a?o="I just started a Substack! You can subscribe to it here":(t&&!n&&(o="Subscribe to ".concat(o)),r&&(!n||t&&(!n.publishedBylines.length||n.publishedBylines.some(e=>e.id===t.author_id)))&&(o+=", by @".concat(r))),f("twitter",e=>(0,h.gKg)({url:e,text:o}),e)}function E(e){f("linkedin",e=>(0,h.yRP)("https://www.linkedin.com/sharing/share-offsite/",{url:e}),e)}function y(e){f("reddit",t=>(0,h.yRP)("https://www.reddit.com/submit/",{url:t,title:e.shareName}),e)}function N(e){f("hackernews",t=>(0,h.yRP)("https://news.ycombinator.com/submitlink",{url:t,title:e.shareName}),e)}function O(e){f("pinterest",t=>(0,h.yRP)("https://www.pinterest.com/pin/create/button",{u:t,description:e.shareName}),e)}function v(e){f("bluesky",t=>(0,h.man)({text:"".concat(e.shareName,"\n").concat(t)}),e)}function x(e){let t=(0,m.d)(),{iString:n}=(0,l.GO)(),{justCopied:a,markCopied:i}=(0,d.N)(),r=null!=e?e:n("Copied link to clipboard");return{handleCopyLink:(0,s.useCallback)(e=>{f("copy",e=>((0,p.lW)(e),!1),e),t.popToast(()=>(0,o.jsx)(m.y,{text:r})),i()},[r,t,i]),justCopied:a}}function S(e){f("email",t=>(0,h.yRP)("mailto:",{subject:e.shareName,body:t}),e)}function w(e){var{openInNewTab:t}=e;f("notes",e=>(0,h.yRP)((0,g.XX)({message:e})),(0,r._)(e,["openInNewTab"]),{openInNewTab:t})}function I(e){f("facebook",e=>(0,h.yRP)("https://www.facebook.com/sharer/sharer.php",{u:e}),e)}function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{post:t,pub:n,profile:a}=e;return t?t.title:n?n.name:a?"".concat(a.name," on Substack"):document.title}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pub:n,post:i,clip:r,comments:o,commentId:s,selectionId:l,profile:c,user:d,utm_campaign:u,medium:p,referral_token:m,useCustomDomainOverOpen:g,params:f}=t,A=(0,a._)({r:(null==d?void 0:d.id)?(0,_.userReferralKey)(d):m,selection:l,utm_campaign:u||(i?"post":c?"profile":n?"pub":r?"clip":"unknown"),utm_medium:p||b.Jn.web,utm_source:e},{comments:null!=o&&!!o.length||void 0,commentId:s},r?{clipId:r.id}:{},f);return(null==n?void 0:n.subdomain)&&(null==i?void 0:i.slug)&&!r?(0,h.XV8)(n.subdomain,i.slug,{params:A,hostOverride:g&&n.custom_domain?(0,h.$_T)(n):null}):(0,h.yRP)("".concat(i?(0,h.wu9)(n,i,{comments:!!(null==o?void 0:o.length),commentId:s,clipId:null==r?void 0:r.id}):n?"".concat(n.base_url,"/"):"undefined"!=typeof window?window.location.href.split("?")[0]:""),A)}},54515:function(e,t,n){n.d(t,{eF:()=>f});var a=n(74848),i=n(32485),r=n.n(i),o=n(97213),s=n(56778),l=n(44909),c=n(46271);n(6049);var d=n(63136),u=n(56720);n(4016);var p=n(82455),m=n(39318),h=n(49807),g=n(12135),_=n(8242);let b=async(e,t)=>{try{await fetch("/api/v1/sponsorship-campaigns/".concat(e,"/track-post-view"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:t})})}catch(e){console.error("Failed to track sponsorship campaign post view:",e)}},f=e=>{var t;let{campaign:n,pub:i,isEditor:o,dataAttrs:s,post:l}=e;return(0,a.jsx)("div",{className:r()("sponsorship-campaign-embed",{"sponsorship-campaign-embed-structured":"structured"===n.campaign_type,[null!=(t=_.A.editorBorder)?t:""]:o}),dataAttrs:s,children:"structured"===n.campaign_type?(0,a.jsx)(A,{campaign:n,pub:i,isEditor:o,post:l}):(0,a.jsx)(E,{campaign:n,pub:i,isEditor:o,post:l})})},A=e=>{var t,n,i;let{campaign:r,pub:p,isEditor:g,post:f}=e,A=(0,c.Jd)(),{scrollContainerRef:E}=(0,l.o)(),y=(0,a.jsxs)("a",{className:"sponsorshipCampaignContainer",href:g?"#":(0,m.qCG)({campaignId:r.id,medium:"web",pubId:null!=(t=null==p?void 0:p.id)?t:0,userId:null==A?void 0:A.id,postId:null==f?void 0:f.id,referrer:"undefined"!=typeof window?window.location.href:void 0}),children:[r.short_text&&(0,a.jsx)("span",{className:"sponsorshipCampaignPresentedBy",children:r.short_text}),r.image_url&&(0,a.jsx)("div",{className:"sponsorshipCampaignImageContainer",children:(0,a.jsx)("img",{alt:null!=(n=r.image_alt_text)?n:"",className:"sponsorshipCampaignImage",src:(0,h.dJ9)(r.image_url,300)})})]});return g?(0,a.jsxs)("div",{className:_.A.editorWrapper,children:[(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:(0,a.jsxs)(d.EY.Digit,{as:"div",color:"secondary",className:_.A.editorHelperText,children:["paid"===r.exclude_audience_minimum?"Sponsorship Campaign (Free Only)":"Sponsorship Campaign",r.description&&(0,a.jsx)(u.m_,{text:r.description,children:(0,a.jsx)(o.A,{size:14})}),p&&(0,a.jsxs)(a.Fragment,{children:[" - ",(0,a.jsx)("a",{href:(0,m.sTG)({campaignId:r.id,pub:p}),children:"Edit"})]})]})}),y]}):(0,a.jsx)(s.A,{parent:null!=(i=null==E?void 0:E.current)?i:void 0,onFirstVisible:()=>b(r.id,null==f?void 0:f.id),children:y})},E=e=>{var t;let{campaign:n,pub:i,isEditor:r,post:h}=e,f=(0,c.Jd)(),{scrollContainerRef:A}=(0,l.o)();if(!i)return null;let E=g.toHtml(n.doc_content,!1,{pubId:i.id}),y=r?E:(e=>{let{html:t,campaign:n,pub:a,userId:i,medium:r,postId:o}=e;return t.replace(/href="proxy.php?url=([^"]*)"/g,(e,t)=>{var s;let l=(0,m.qCG)({campaignId:n.id,medium:r,pubId:null!=(s=null==a?void 0:a.id)?s:0,userId:i,url:t,postId:o,referrer:"undefined"!=typeof window?window.location.href:void 0});return'href="proxy.php?url='.concat(l,'"')})})({html:(0,p.W)(E,{pub:i,user:f}),campaign:n,pub:i,userId:String(null==f?void 0:f.id),medium:"web",postId:null==h?void 0:h.id}),N=(0,a.jsx)("div",{className:"sponsorshipCampaignDocContentWrapper",dangerouslySetInnerHTML:{__html:y}});return r?(0,a.jsxs)("div",{className:_.A.editorWrapper,children:[(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:(0,a.jsxs)(d.EY.Digit,{color:"secondary",className:_.A.editorHelperText,children:["paid"===n.exclude_audience_minimum?"Sponsorship Campaign (Free Only)":"Sponsorship Campaign",n.description&&(0,a.jsx)(u.m_,{text:n.description,children:(0,a.jsx)(o.A,{size:14})}),i&&(0,a.jsxs)(a.Fragment,{children:[" - ",(0,a.jsx)("a",{href:(0,m.sTG)({campaignId:n.id,pub:i}),children:"Edit"})]})]})}),N]}):(0,a.jsx)(s.A,{parent:null!=(t=null==A?void 0:A.current)?t:void 0,onFirstVisible:()=>b(n.id,null==h?void 0:h.id),children:N})}},93513:function(e,t,n){n.d(t,{T:()=>c});var a=n(69277),i=n(32641),r=n(32485),o=n.n(r),s=n(96540),l=n(16389);let c=e=>{let{align:t,as:n="div",children:r,clamp:c,className:d,color:u="primary",innerRef:p,preset:m,whiteSpace:h,wrap:g}=e,_=(0,i._)(e,["align","as","children","clamp","className","color","innerRef","preset","whiteSpace","wrap"]),b=o()(d,l.A.container,l.A["preset-".concat(m)],l.A["color-".concat(u)],t&&l.A["align-".concat(t)],c&&l.A.clamp,c&&l.A["clamp-".concat(c)],g&&l.A["wrap-".concat(g)],h&&l.A["white-space-".concat(h)]);return(0,s.createElement)(n,(0,a._)({className:b,ref:p},_),r)}},41873:function(e,t,n){n.d(t,{A:()=>S});var a=n(99851),i=n(69277),r=n(70408),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(68414),u=n(59307),p=n(13505),m=n(86500),h=n(13022),g=n(17186),_=n(68349),b=n(89490),f=n(35369),A=n(88218),E=n(91392),y=n(39318),N=n(9036),O=n(82776),v=n(18012);let x={hls:"application/x-mpegURL",mp4:"video/mp4"};class S extends c.Component{componentDidMount(){if(this._initHlsjs(),null===_.dO||void 0===_.dO||_.dO.on("play",this.onGlobalPlay),"undefined"!=typeof window&&(document.addEventListener("keydown",this.onGlobalKeyDown,!1),window.addEventListener("beforeunload",this.onBeforeUnload,!1)),this.player&&(this.player.volume=1,this.player.addEventListener("loadedmetadata",this.onLoadedMetadata),this.player.addEventListener("loadeddata",this.onLoadedData),this.player.addEventListener("canplay",this.onCanPlay),this.player.addEventListener("play",this.onPlay),this.player.addEventListener("pause",this.onPause),this.player.addEventListener("ended",this.onEnded),this.player.addEventListener("timeupdate",this.onTimeUpdate),this.player.addEventListener("waiting",this.onWaiting),this.player.addEventListener("playing",this.onPlaying),this.player.addEventListener("contextmenu",this.onContextMenu),this.player.addEventListener("click",this.onUserInteraction),this.player.addEventListener("mouseover",this.onUserInteraction),this.player.addEventListener("mousedown",this.onUserInteraction),this.player.addEventListener("touchstart",this.onUserInteraction),this.player.addEventListener("seeked",this.onSeeked)),this.onTimeUpdate(),window&&window._preloads.mux_env_key&&!(window._preloads.disabledCookies||[]).includes(E.HY.MUX_DATA)){let{entityType:e}=this.getEntityKeyAndType();n.e("5505").then(n.t.bind(n,21624,23)).then(t=>{var n;let a=t.default||t;a.monitor(this.player,{Hls:this.hlsModule,hlsjs:this.hls,debug:!1,data:{env_key:window._preloads.mux_env_key,player_name:null!=(n=this.props.surface)?n:"substack",player_init_time:a.utils.now(),video_id:this.props.mediaUpload.id,video_stream_type:e}})})}}componentWillUnmount(){this.setPlaybackRestoreLocation(),this.lastTimeUpdate=null,null===_.dO||void 0===_.dO||_.dO.off("play",this.onGlobalPlay),"undefined"!=typeof window&&(document.removeEventListener("keydown",this.onGlobalKeyDown,!1),window.removeEventListener("beforeunload",this.onBeforeUnload,!1)),this.player&&(this.player.removeEventListener("loadedmetadata",this.onLoadedMetadata),this.player.removeEventListener("loadeddata",this.onLoadedData),this.player.removeEventListener("canplay",this.onCanPlay),this.player.removeEventListener("play",this.onPlay),this.player.removeEventListener("pause",this.onPause),this.player.removeEventListener("ended",this.onEnded),this.player.removeEventListener("timeupdate",this.onTimeUpdate),this.player.removeEventListener("waiting",this.onWaiting),this.player.removeEventListener("playing",this.onPlaying),this.player.removeEventListener("contextmenu",this.onContextMenu),this.player.removeEventListener("click",this.onUserInteraction),this.player.removeEventListener("mouseover",this.onUserInteraction),this.player.removeEventListener("mousedown",this.onUserInteraction),this.player.removeEventListener("touchstart",this.onUserInteraction)),this.onVideoReachEnd({resetTime:!1,triggerCallback:!1,track:!1}),null!=this.hls&&this.hls.destroy()}componentDidUpdate(e,t){var n,a,r;if((this.props.noPreview!==e.noPreview||this.props.noControls!==e.noControls||this.props.noKeyboardShortcuts!==e.noKeyboardShortcuts||this.props.mediaUpload.id!==e.mediaUpload.id)&&(this._initHlsjs(),this.resetDurationTracking()),!this.state.playing&&"number"==typeof this.state.waiting&&"number"!=typeof t.waiting){let{useHLSJS:e,browserCanPlayHLS:t,HLSerrored:n}=this.state;this.track(m.qY.VIDEO_BUFFERING_STARTED,{use_hlsjs:e,browser_can_play_hls:t,hls_errored:n})}if(!this.state.playing||t.playing||this.state.waiting||"number"!=typeof t.waiting||this.track(m.qY.VIDEO_BUFFERING_COMPLETED,{buffering_duration:Date.now()-t.waiting}),this.state.playing&&!(null==(n=this.player)?void 0:n.ended)&&Math.floor(this.state.currentTime)!==Math.floor(t.currentTime)&&Math.floor(this.state.currentTime)%5==0&&(this.trackMedia(m.qY.MEDIA_PLAYBACK_CONTINUED),this.props.mediaUpload.post_id&&this.state.duration&&(!this.props.surface||"post"===this.props.surface)&&(!this.props.videoType||"post"===this.props.videoType)&&!this.props.isClip)){let e=Math.min(Math.max(0,this.state.currentTime/this.state.duration),1);(0,p.AG)(this.props.mediaUpload.post_id,"video",e)}if(!this.state.playing&&t.playing&&(null==(a=this.player)?void 0:a.ended)&&this.trackMedia(m.qY.MEDIA_PLAYBACK_COMPLETED),this.props.mediaUpload.id&&(0,h.Ay)("use_preloaded_player_sources")&&(this.props.mediaUpload.id!==e.mediaUpload.id||!(null==(r=Object.keys(this.state.sources))?void 0:r.length))){let e=async e=>fetch((0,y.oRR)("/api/v1/video/upload/".concat(this.props.mediaUpload.id,"/src.json"),{type:e})).then(e=>e.json()).then(t=>({[e]:t.src}));Promise.all(["hls"].map(t=>e(t))).then(e=>{let t=e.reduce((e,t)=>(0,i._)({},e,t),{});this.setState({sources:t})})}}getPlaybackLocationKey(){return"".concat("video:playback_location:").concat(this.props.mediaUpload.id)}shouldShowNativeVideoControls(){let{noControls:e,noPreview:t}=this.props,{previewHidden:n,showControls:a}=this.state;return a&&!e&&!(!t&&!n)}getPlaybackRestoreLocation(){if(this.playbackEnabled()&&this.props.restorePlaybackLocation&&this.props.mediaUpload.duration&&this.props.mediaUpload.duration>240){let e=(0,g.xm)(this.getPlaybackLocationKey());if((null==e?void 0:e.currentTime)>5&&null!==this.props.duration&&void 0!==this.props.duration&&this.props.duration-e.currentTime>60){let t=3*(Date.now()-e.watchedAt>60),n=Math.max(0,e.currentTime-t);if(n)return n}}return null}setPlaybackRestoreLocation(){var e;this.playbackEnabled()&&(null==(e=this.player)?void 0:e.currentTime)&&(0,g.X3)(this.getPlaybackLocationKey(),{currentTime:this.player.currentTime,watchedAt:Date.now()})}onPreviewClick(e){var t,n,a,i,r;if(this.props.disableClickToPlayPause)return;let o=!(0,_.nr)()||!this.shouldShowNativeVideoControls();if((this.props.stopPropagation||o)&&(e.preventDefault(),e.stopPropagation()),null==(t=this.player)||t.setAttribute("data-user-changed-playback","true"),this.state.previewHidden){o&&((null==(n=this.player)?void 0:n.paused)?this.player.play():null==(a=this.player)||a.pause());return}if(!this.href()){if(!this.playbackEnabled())return void this.onClickNonPlayableVideo();this.state.attemptingToPlay?(this.lastTimeUpdate=null,this.setState({attemptingToPlay:!1,autoPlay:!1}),null==(i=this.player)||i.pause(),this.previewHiddingTimeout&&clearTimeout(this.previewHiddingTimeout)):(this.setState({attemptingToPlay:!0}),null==(r=this.player)||r.play(),this.previewHiddingTimeout=window.setTimeout(()=>this.setState({previewHidden:!0}),3e3))}}track(e){var t,n,a,i;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.props.communityPostEmbedPostId||this.props.mediaUpload.post_id,s=this.props.mediaUpload.user_id;(0,m.u4)(e,Object.assign({post_id:o,video_user_id:s,community_post_id:this.props.communityPostId,media_upload_id:this.props.mediaUpload.id,live_stream_id:this.props.liveStreamId,current_time:this.state.currentTime?Math.floor(this.state.currentTime):0,duration:this.state.duration?Math.floor(this.state.duration):0,is_clip:null!=(n=this.props.isClip)&&n,surface:this.props.surface,is_preview:null!=(a=this.props.usePreview)&&a,muted:null!=(i=null==(t=this.player)?void 0:t.muted)&&i,video_type:this.props.videoType,display:(0,_.aS)()?"fullscreen":document.pictureInPictureElement?"pip":"inline"},r))}trackMedia(e){var t,n,a,o,s,l,c,d;let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mediaUpload:p,videoType:h,surface:g,primaryEntityKey:b,primaryEntityType:f,contentType:A,feedItemTrackingParameters:E}=this.props,y=null!=A?A:h?null!=(a=({communityCommentReply:"communityComment","video-embed":"embed"})[h])?a:h:"unknown",{entityKey:N,entityType:O}=this.getEntityKeyAndType(),v=Array.from(null!=(o=null==(t=this.player)?void 0:t.textTracks)?o:[]),x=v.length>0,S=this.isShowingCaptionsElsewhere||v.some(e=>["subtitles","captions"].includes(e.kind)&&"showing"===e.mode);(0,m.u4)(e,(0,i._)((0,r._)((0,i._)({},E),{media_type:"video",video_upload_id:p.id,src_video_upload_id:p.src_media_upload_id,content_type:y,primary_entity_key:String(null!=b?b:N),primary_entity_type:null!=f?f:O,entity_key:String(N),entity_type:O,publication_id:p.publication_id,surface:g,display:(0,_.aS)()?"fullscreen":document.pictureInPictureElement?"pip":"inline",muted:null!=(s=null==(n=this.player)?void 0:n.muted)&&s,captions_enabled:x?S:null,autoplay:this.state.autoPlay&&!this.state.failedAutoplay,is_preview:null!=(l=this.props.usePreview)&&l,current_time:Math.floor(null!=(c=this.state.currentTime)?c:0),duration:Math.floor(null!=(d=this.state.duration)?d:0),duration_played:Math.floor(this.state.durationPlayed),duration_played_id:this.state.durationPlayedId}),u))}render(){var e;let t=this.props,n=null!=(e=this.state)?e:{},{height:a,width:i}=(0,O.videoPlayerDimensions)(t.mediaUpload,{isStatic:!1}),r=l()("video-player",{"video-player-clip":t.isClipping,"video-player-with-background":!t.omitBackgroundColor},t.videoPlayerClassName);return(0,o.jsx)(w,{className:l()(t.className,{"with-preview":!n.previewHidden,"full-width":i>=960,"video-player-wrapper-clip":t.isClipping,"video-player-with-background":!t.omitBackgroundColor}),linkClassName:r,href:this.href(),width:i,height:a,onClick:this.onPreviewClick,style:t.style,liveStreamId:t.liveStreamId,children:this.renderPlayer(this.props,this.state)})}renderPlayer(e,t){let{hidePlayButton:n,mediaUpload:a,noPreview:i,renderPlayButton:r,renderOverlay:s,startMuted:l,videoClassName:d,liveStreamId:p,loop:m,thumbnailUrl:g,noPictureInPicture:b=!1}=e,{autoPlay:E,attemptingToPlay:N,previewHidden:O,useHLSJS:S,browserCanPlayHLS:w,HLSerrored:C,failedAutoplay:k,playing:j}=t,L=!this.playbackEnabled(),R=this.getBaseVideoSrc(),T=[];T=p?["hls"]:w?["hls","mp4"]:S?[]:(0,_.m0)()?["hls","mp4"]:C?["mp4"]:["hls","mp4"];let P=(0,_.rr)(),D=!!(0,h.Ay)("use_preloaded_player_sources")&&P,B=E&&!k&&this.playbackEnabled(),U=g||"".concat((0,y.H10)(a),"?refresh=").concat(a.updated_at),G=this.shouldShowNativeVideoControls();return[this.playbackEnabled()&&"undefined"!=typeof window&&(0,o.jsx)("video",{ref:this.assignPlayer,controls:G,controlsList:"nodownload",autoPlay:B,poster:U,muted:l,loop:m,className:d,playsInline:P,disablePictureInPicture:b,crossOrigin:"anonymous",children:D?Object.entries(this.state.sources).map((e,t)=>{let[n,a]=e;return(0,o.jsx)("source",{src:a,type:x[n],onError:t===Object.keys(this.state.sources).length-1?this.onAllSourcesFailed:void 0},"".concat(n,"_").concat(t))}):T.map((e,t)=>(0,o.jsx)("source",{src:(0,y.oRR)(R,{type:e}),type:x[e],onError:t===T.length-1?this.onAllSourcesFailed:void 0},"".concat(e,"_").concat(t)))}),s&&(0,o.jsx)("div",{className:v.A.previewOverlay,children:s({isPlaying:j,getCurrentTimeInSeconds:()=>this.state.currentTime})}),!i&&!O&&!n&&(0,o.jsxs)(c.Fragment,{children:[L&&(0,o.jsx)(I,{mediaUpload:a,thumbnailUrl:U}),!r&&(0,o.jsx)(M,{children:this.cta()?(0,o.jsx)(f.Bj,{href:this.href(),loading:N&&this.playbackEnabled(),"aria-label":"play",leading:(0,o.jsx)(u.A,{height:16,width:16,style:{stroke:"none",fill:"white"}}),children:this.cta()}):(0,o.jsx)(A.ro,{isPlaying:!1,href:this.href(),size:72,loading:N&&this.playbackEnabled()})}),r&&(0,o.jsx)(M,{children:r()})]})]}isChromeWithBrokenNativeHLS(){var e;if("undefined"==typeof navigator)return!1;let t=null==(e=navigator.userAgentData)?void 0:e.brands;if(!t)return!1;let n=t.find(e=>"Google Chrome"===e.brand);return n&&parseInt(n.version)>=141}_initHlsjs(){let e=!!(this.player&&this.player.canPlayType("application/vnd.apple.mpegurl"));if(e&&!(0,_.m0)()&&!this.isChromeWithBrokenNativeHLS()){this.setState({browserCanPlayHLS:e}),this.autoPlayVideo();return}n.e("9234").then(n.bind(n,40137)).then(e=>{this._initHlsjsWrapped(e.default)})}autoPlayVideo(){if(this.state.autoPlay&&this.player){let e=new IntersectionObserver(t=>{t.forEach(t=>{if(e.unobserve(t.target),t.isIntersecting&&this.player){var n;this.player.muted=null!=(n=this.props.startMuted)&&n,this.player.play().catch(e=>{console.error("Unable to autoplay prior to user interaction with the dom.",e),this.setState({failedAutoplay:!0,attemptingToPlay:!1}),this.player&&(this.player.muted=!0,this.player.play().then(()=>{var e,t;null==(e=(t=this.props).onAutoplayMuted)||e.call(t)}).catch(e=>{console.error("Unable to autoplay prior to user interaction with the dom when muted.",e),this.setState({failedAutoplay:!0,attemptingToPlay:!1})}))})}})},{threshold:.5});e.observe(this.player)}}_initHlsjsWrapped(e){let t=this,n=e.isSupported();if(!e.isSupported()){this.setState({useHLSJS:n}),this.autoPlayVideo();return}null!=this.hls&&this.hls.destroy();let a=new e((0,i._)({enableWorker:!1},{}));null!=this.player&&a.attachMedia(this.player);let r=this.getBaseVideoSrc("hls");a.on(e.Events.MEDIA_ATTACHED,()=>{a.loadSource(r),a.on(e.Events.MANIFEST_PARSED,()=>{this.autoPlayVideo()})}),a.on(e.Events.ERROR,function(n,i){if(i.fatal)switch(i.type){case e.ErrorTypes.NETWORK_ERROR:var r;t.setState({useHLSJS:!1}),null==(r=t.hls)||r.destroy(),a.startLoad();break;case e.ErrorTypes.MEDIA_ERROR:a.recoverMediaError();break;default:this._initHlsjs()}}),this.hls=a,this.hlsModule=e}constructor(e,t){var n,o;super(e,t),n=this,(0,a._)(this,"player",null),(0,a._)(this,"previewHiddingTimeout",null),(0,a._)(this,"lastTimeUpdate",null),(0,a._)(this,"_accumulatedDurationPlayed",0),(0,a._)(this,"containerRef",(0,c.createRef)()),(0,a._)(this,"isShowingCaptionsElsewhere",!1),(0,a._)(this,"assignPlayer",e=>{this.player=e}),(0,a._)(this,"resetDurationTracking",()=>{this.lastTimeUpdate=null,this.setState({durationPlayed:0,durationPlayedId:(0,d.v4)()})}),(0,a._)(this,"onLoadedMetadata",()=>{this.state.playbackRestoreLocation&&(this.player&&(this.player.currentTime=this.state.playbackRestoreLocation),this.previewHiddingTimeout=window.setTimeout(()=>this.setState({playbackRestoreLocation:null,previewHidden:!0}),3e3))}),(0,a._)(this,"onLoadedData",()=>{this.state.playbackRestoreLocation&&(this.previewHiddingTimeout&&clearTimeout(this.previewHiddingTimeout),this.setState({playbackRestoreLocation:null,previewHidden:!0}))}),(0,a._)(this,"onCanPlay",()=>{this.onTimeUpdate()}),(0,a._)(this,"onPlay",()=>{null===_.dO||void 0===_.dO||_.dO.emit("play",this),this.setState({playing:!0}),this.lastTimeUpdate=Date.now(),this.trackMedia(m.qY.MEDIA_PLAYBACK_STARTED)}),(0,a._)(this,"onPause",()=>{var e;this.setPlaybackRestoreLocation(),this.lastTimeUpdate=null,this.setState({playing:!1,waiting:!1,previewHidden:!this.props.showPreviewWhenPaused&&this.state.previewHidden}),(null==(e=this.player)?void 0:e.ended)||this.trackMedia(m.qY.MEDIA_PLAYBACK_PAUSED),this.player&&this.player.currentTime>this.player.duration-.1&&this.onVideoReachEnd()}),(0,a._)(this,"onEnded",()=>{this.lastTimeUpdate=null,this.setState({playing:!1,waiting:!1,previewHidden:!this.props.showPreviewWhenPaused&&this.state.previewHidden}),this.trackMedia(m.qY.MEDIA_PLAYBACK_PAUSED),this.onVideoReachEnd()}),(0,a._)(this,"onTimeUpdate",()=>{if(!this.player||!isFinite(this.player.duration))return;let e=this.player.currentTime,t=Date.now();if(this.state.playing&&null!==this.lastTimeUpdate){let e=(t-this.lastTimeUpdate)/1e3;e>0&&e<1&&(this._accumulatedDurationPlayed=(this._accumulatedDurationPlayed||0)+e,this._accumulatedDurationPlayed>=1&&(this.setState(e=>({durationPlayed:e.durationPlayed+this._accumulatedDurationPlayed})),this._accumulatedDurationPlayed=0))}this.lastTimeUpdate=t,(this.props.duration||this.state.duration===this.player.duration)&&this.state.currentTime===e?this.setState({waiting:!1}):this.setState({duration:this.props.duration||this.player.duration,currentTime:e,waiting:!1})}),(0,a._)(this,"onWaiting",()=>{this.lastTimeUpdate=null,this.setState({waiting:Date.now()})}),(0,a._)(this,"onPlaying",()=>{this.previewHiddingTimeout&&clearTimeout(this.previewHiddingTimeout),this.lastTimeUpdate=Date.now(),this.setState({playing:!0,waiting:!1,previewHidden:!0,attemptingToPlay:!1,autoPlay:!1,hasPlayed:!0})}),(0,a._)(this,"onSeeked",()=>{this.lastTimeUpdate=Date.now(),this.trackMedia(m.qY.MEDIA_SEEKED)}),(0,a._)(this,"onVideoReachEnd",function(){let{resetTime:e=!0,triggerCallback:t=!0,track:a=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.lastTimeUpdate=null,n.player&&!n.player.paused&&n.player.pause(),n.state.previewHidden&&n.setState({previewHidden:!1,attemptingToPlay:!1,hasReachedEnd:!0}),e&&n.player&&!(0,_.gI)()&&!n.props.doNotResetOnEnd&&(n.player.currentTime=0),(0,_.Eh)(),(0,_.wp)(),n.props.onFinishVideo&&t&&n.props.onFinishVideo(),a&&n.trackMedia(m.qY.MEDIA_PLAYBACK_COMPLETED)}),(0,a._)(this,"onContextMenu",e=>{e.preventDefault()}),(0,a._)(this,"onUserInteraction",()=>{this.state.showControls||this.setState({showControls:!0})}),(0,a._)(this,"onAllSourcesFailed",()=>{var e,t;console.info("Failed to load all video sources, falling back to preview image"),this.setState((0,r._)((0,i._)({},this.props.liveStreamId?{}:{previewHidden:!1,attemptingToPlay:!1,autoPlay:!1}),{allSourcesFailed:!0})),null==(e=(t=this.props).onPlaybackFailed)||e.call(t)}),(0,a._)(this,"onBeforeUnload",()=>{this.setPlaybackRestoreLocation(),this.state.previewHidden&&this.setState({previewHidden:!1,attemptingToPlay:!1}),this.player&&!this.player.paused&&this.player.pause()}),(0,a._)(this,"onGlobalPlay",e=>{this!==e&&this.player&&!this.player.paused&&this.player.pause()}),(0,a._)(this,"onGlobalKeyDown",e=>{var t;this.props.noKeyboardShortcuts||e.metaKey||e.altKey||e.ctrlKey||document.activeElement!==document.body||!this.player||(!((null!=(t=null===_.dO||void 0===_.dO?void 0:_.dO.listenerCount("play"))?t:0)>1)||!this.player.paused)&&("f"===e.key?(0,_.aS)()?(0,_.Eh)()&&e.preventDefault():((0,_.gK)(this.player)&&e.preventDefault(),this.player.paused&&this.player.play()):" "!==e.key||(0,_.aS)()?"ArrowRight"===e.key?this.player.currentTime+5>this.player.duration?this.onVideoReachEnd():(this.player.currentTime+=5,this.state.previewHidden||this.setState({previewHidden:!0,attemptingToPlay:!1})):"ArrowLeft"===e.key&&(this.player.currentTime-=5):(e.preventDefault(),this.player.paused?this.player.play():this.player.pause()))}),(0,a._)(this,"getEntityKeyAndType",()=>{let{mediaUpload:e,communityPostId:t,entityKey:n,entityType:a}=this.props;return n?{entityKey:n,entityType:a}:t?{entityKey:t,entityType:"community_post"}:e.post_id?{entityKey:String(e.post_id),entityType:"post"}:{entityKey:n,entityType:a}}),(0,a._)(this,"getBaseVideoSrc",e=>{var t;let n={token:this.props.reaction_token,override_publication_id:null==(t=this.props.pub)?void 0:t.id,preview:this.props.usePreview};return e&&(n.type=e),(0,y.oRR)("/api/v1/video/upload/".concat(this.props.mediaUpload.id,"/src"),n)}),(0,a._)(this,"hls",null),(0,a._)(this,"hlsModule",void 0),(0,a._)(this,"cta",()=>""),(0,a._)(this,"href",()=>this.props.href),(0,a._)(this,"playbackEnabled",()=>!0),(0,a._)(this,"onClickNonPlayableVideo",()=>{});const s="undefined"!=typeof window?(0,N.m)(window.location.href):{};let l=null;s.timestamp?l=parseInt(s.timestamp):s.t&&(l=parseInt(s.t));const u=null!==l&&!isNaN(l);u||(0,_.qm)("timestamp");const p=u?l:this.getPlaybackRestoreLocation();this.state={playbackRestoreLocation:p,currentTime:0,waiting:!0,duration:null!=(o=e.mediaUpload.duration)?o:null,autoPlay:e.autoPlay,playing:!1,attemptingToPlay:e.autoPlay,previewHidden:null!==p&&p>0,showControls:!1,hasPlayed:!1,hasReachedEnd:!1,browserCanPlayHLS:!1,useHLSJS:!0,HLSerrored:!1,allSourcesFailed:!1,failedAutoplay:!1,sources:{},durationPlayed:0,durationPlayedId:(0,d.v4)()},this.onPreviewClick=this.onPreviewClick.bind(this)}}function w(e){let{className:t,linkClassName:n,width:a,height:i,href:r,onClick:s,children:c,style:d,liveStreamId:u}=e,p={paddingBottom:"".concat(Math.min(u?56.25:60,100*i/a).toFixed(4),"%")};return(0,o.jsx)("div",{className:l()(t,"video-player-wrapper",a>=960&&"full-width"),onClick:s,role:"region","aria-label":"Video player",style:d,children:(0,o.jsx)(r?"a":"div",{className:l()("video-player",n),href:r,style:p,children:c})})}function I(e){let{mediaUpload:t,thumbnailUrl:n,testId:a,isStatic:i}=e;return(0,o.jsx)("img",{className:"video-player-preview",width:550,src:n||(0,y.Pzx)(t,{isStatic:i}),"data-component-name":"VideoPlayer-PreviewImg","data-testid":a})}let M=(0,b.I4)({position:"absolute",className:l()(v.A.buttonContainer,"video-player-button")})},35276:function(e,t,n){n.d(t,{W:()=>s});var a=n(74848),i=n(33727),r=n(76977),o=n(63136);let s=e=>{let{children:t,className:n,title:i,subscript:o,subtitle:s}=e,p=i||s;return(0,a.jsxs)(a.Fragment,{children:[p&&(0,a.jsxs)(r.VP,{gap:12,children:[i&&(0,a.jsx)(l,{children:i}),s&&(0,a.jsx)(c,{children:s})]}),(0,a.jsx)(u,{className:n,children:t}),o&&(0,a.jsx)(d,{children:o})]})};function l(e){let{children:t}=e;return(0,a.jsx)(o.EY.H2,{weight:"bold",textAlign:"center",children:t})}function c(e){let{children:t}=e;return(0,a.jsx)(o.EY.B3,{color:"secondary",textAlign:"center",children:t})}function d(e){let{children:t}=e;return(0,a.jsx)(o.EY.B3,{color:"secondary",textAlign:"center",children:t})}function u(e){let{children:t,className:n}=e;return(0,a.jsx)(i.Z,{padding:24,shadow:"xs",className:n,children:t})}},69324:function(e,t,n){n.d(t,{Ku:()=>u,yl:()=>m});var a=n(74848),i=n(83673),r=n.n(i),o=n(6411),s=n.n(o),l=n(96540),c=n(12501),d=n(21398);function u(){return(0,l.useContext)(p)}let p=(0,l.createContext)({open:()=>void 0,isOpen:!1});function m(e){let{children:t,load:i,useLocalNavigation:o}=e,[u,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(!1),_=(0,c.st)({pathname:"/api/v1/search/suggestions_v2",auto:h,deps:[h]}),b=_.result?r()([_.result.featuredTopic,..._.result.suggestedSearches]):[];(0,l.useEffect)(()=>{if(!i)return;let e=e=>{e.preventDefault(),m(!0),g(!0)};return s().bind(["/","command+k"],e),()=>{s().unbind(["/",e]),s().unbind(["command+k",e])}},[i]);let f=(0,l.useMemo)(()=>({open:()=>{i&&(m(!0),g(!0))},isOpen:u}),[i,u]);return i?(0,a.jsxs)(p.Provider,{value:f,children:[t,(0,a.jsx)(d.Ic,{module:"@/frontend/substack/GlobalSearch",resolve:e=>e.GlobalSearch,onRequest:()=>Promise.all([n.e("3975"),n.e("4667")]).then(n.bind(n,88737)),isOpen:u,onClose:()=>m(!1),useLocalNavigation:o,suggestedSearches:b})]}):(0,a.jsx)(a.Fragment,{children:t})}},44909:function(e,t,n){n.d(t,{o:()=>r}),n(74848);var a=n(96540);let i=(0,a.createContext)({scrollContainerRef:null});function r(){return(0,a.useContext)(i)}i.displayName="PostScrollContainerContext"},99145:function(e,t,n){n.d(t,{BR:()=>c});var a=n(74848),i=n(6411),r=n.n(i),o=n(96540),s=n(21398);let l=(0,o.createContext)({open:()=>void 0});function c(e){let{children:t,load:i,pub:c,enableShortcuts:d=!0}=e,[u,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(),[b,f]=(0,o.useState)();(0,o.useEffect)(()=>{if(!i||!c)return;let e=()=>p(!0);if(d)return r().bind(["/","command+k"],e),()=>{r().unbind(["/"],e),r().unbind(["command+k"],e)}},[]);let A=(0,o.useMemo)(()=>({open:e=>{h(!!(null==e?void 0:e.postsOnly)),_(()=>null==e?void 0:e.onSelectResult),f(()=>null==e?void 0:e.onClose),p(!0)}}),[]);return i&&c?(0,a.jsxs)(l.Provider,{value:A,children:[t,(0,a.jsx)(s.Ic,{module:"@/frontend/substack/search/PublicationSearch",resolve:e=>e.PublicationSearch,isOpen:u,postsOnly:m,pub:c,onClose:()=>{null==b||b(),p(!1)},onRequest:()=>Promise.all([n.e("3975"),n.e("7758")]).then(n.bind(n,43288)),onSelectResult:g})]}):(0,a.jsx)(a.Fragment,{children:t})}},82936:function(e,t,n){n.d(t,{Hv:()=>E,_N:()=>A,bd:()=>y,hU:()=>O});var a=n(79785),i=n(74848),r=n(63122),o=n(40972),s=n(96540),l=n(84605),c=n(46271),d=n(94729);n(12501);var u=n(68349),p=n(49315),m=n(48965);function h(){let e=(0,a._)([""," muted"]);return h=function(){return e},e}function g(){let e=(0,a._)([""," unmuted"]);return g=function(){return e},e}function _(){let e=(0,a._)([""," blocked"]);return _=function(){return e},e}function b(){let e=(0,a._)([""," unblocked"]);return b=function(){return e},e}let f=(0,s.createContext)({result:{mutes:[],blocks:[],blocked:[]},refetch:async()=>null,isBlockingUser:()=>!1,isMutedByUser:()=>!1,isBlockedByUser:()=>!1});function A(e){let{isBlockingUser:t,isBlockedByUser:n}=(0,s.useContext)(f);return e?n(e)?"blocking":t(e)?"blocked":null:null}function E(e){let{isBlockingUser:t,isBlockedByUser:n,isMutedByUser:a}=(0,s.useContext)(f);return e?a(e)?"muting":n(e)?"blocking":t(e)?"blocked":null:null}function y(e,t){let{surface:n,noteId:a,onClick:A}=t,{iString:y,iTemplate:N}=(0,l.GO)(),O=(0,c.Jd)(),v=!!(O&&e&&O.id!==e.id),x=(0,s.useContext)(f),S=E(null==e?void 0:e.id),w=(0,m.d)(),I=async()=>{if(e){try{await (0,d.x6)("/api/v1/blocks/".concat(e.id),{method:"POST",json:{type:"mute",surface:n,noteId:a}})}catch(e){w.popToast(()=>(0,i.jsx)(m.y,{text:(0,u.uX)(e)}));return}x.refetch(),w.popToast(()=>(0,i.jsx)(m.y,{text:N(h(),e.name||"User"),Icon:r.A})),null==A||A("mute")}},M=async()=>{if(e){try{await (0,d.x6)("/api/v1/blocks/".concat(e.id),{method:"DELETE",query:{surface:n,noteId:a}})}catch(e){w.popToast(()=>(0,i.jsx)(m.y,{text:(0,u.uX)(e)}));return}x.refetch(),w.popToast(()=>(0,i.jsx)(m.y,{text:N(g(),e.name||"User"),Icon:r.A})),null==A||A("unmute")}},C=async()=>{if(e){try{await (0,d.x6)("/api/v1/blocks/".concat(e.id),{method:"POST",json:{type:"block",surface:n,noteId:a}})}catch(e){w.popToast(()=>(0,i.jsx)(m.y,{text:(0,u.uX)(e)}));return}x.refetch(),w.popToast(()=>(0,i.jsx)(m.y,{text:N(_(),e.name||"User"),Icon:o.A})),null==A||A("block")}},k=async()=>{if(e){try{await (0,d.x6)("/api/v1/blocks/".concat(e.id),{method:"DELETE",query:{surface:n,noteId:a}})}catch(e){w.popToast(()=>(0,i.jsx)(m.y,{text:(0,u.uX)(e)}));return}x.refetch(),w.popToast(()=>(0,i.jsx)(m.y,{text:N(b(),e.name||"User"),Icon:o.A})),null==A||A("unblock")}},j=[];return v&&("blocking"!==S&&j.push((0,i.jsx)(p.Dr,{leading:(0,i.jsx)(r.A,{}),priority:"destructive",onClick:"muting"===S?M:I,children:y("muting"===S?"Unmute":"Mute")})),j.push((0,i.jsx)(p.Dr,{leading:(0,i.jsx)(o.A,{}),priority:"destructive",onClick:"blocking"===S?k:C,children:y("blocking"===S?"Unblock":"Block")}))),j}f.displayName="UserBlockContext";let N=(0,s.createContext)(!1);function O(){return(0,s.useContext)(N)}N.displayName="MuteFreeZone"},94794:function(e,t,n){n.d(t,{aZ:()=>r}),n(74848);var a=n(96540);let i=(0,a.createContext)(null);function r(){return(0,a.useContext)(i)}i.displayName="CrossPostContext"},52820:function(e,t,n){n.d(t,{EL:()=>b,Kd:()=>h,S$:()=>A,WR:()=>y,Wk:()=>E});var a,i=n(69277),r=n(70408),o=n(74848),s=n(44383),l=n.n(s),c=n(96540),d=n(99520),u=n(94729),p=n(98149);let m={variantOverrides:{},experimentFeatures:{},experimentExposures:{}};function h(){return"undefined"!=typeof window&&(0,i._)({variantOverrides:{},experimentFeatures:{},experimentExposures:{}},l()(window._preloads,["variantOverrides","experimentFeatures","experimentExposures","pubIdOverride"]))||m}let g=h(),_="undefined"!=typeof window?null==(a=window._preloads)?void 0:a.siteConfigs:{},b=(e,t)=>{let n=t=>{if(!t||!e)return null;let n=e[t];return void 0===n?null:n},a=e=>{if(!e)return null;let a=n(e);if((0,p.rc)(a))return{intendedVariant:a,shouldLog:!1};if(t.variantOverrides&&e in t.variantOverrides)return{intendedVariant:t.variantOverrides[e],shouldLog:!1};let i=t.experimentExposures||{};if(i[e])return{intendedVariant:i[e],shouldLog:!1};let r=t.experimentFeatures||{};return r[e]?{intendedVariant:r[e],shouldLog:!0}:null},i=async(e,t,n)=>{if("undefined"!=typeof window){window._preloads.experimentExposures=window._preloads.experimentExposures||{};let a=window._preloads.experimentExposures;a[e]=t;try{await (0,u.x6)("/api/v1/experiment_exposure",{json:{experiment_name:e,variant_name:t,ignore_downsampling:!!n},method:"post"})}catch(t){delete a[e]}}};return{getExperimentVariant:e=>{let t=a(e);return t?t.intendedVariant:null},exposeExperiment:async function(e){let{ignoreDownsampling:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{intendedVariant:n,shouldLog:r}=a(e)||{};return!!r&&(await i(e,n,!!t),!0)},getExposedVariant:e=>{if(!e)return null;let a=n(e);if((0,p.rc)(a))return a;if(t.variantOverrides&&e in t.variantOverrides)return t.variantOverrides[e];let i=t.experimentExposures||{};return i[e]?i[e]:null},refreshExperimentVariants:async function(){let e,{ignoreDownsampling:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t&&(e=new URLSearchParams({ignore_downsampling:"true"}));let n=await (0,u.x6)("/api/v1/experiment_features",{method:"get",query:e});(null==n?void 0:n.features)&&(0,d.E)({experimentFeatures:n.features})}}},f=(0,c.createContext)(b(_,g));function A(e){let{siteConfigs:t={},experimentInfo:n,children:a}=e,i=n||g,r=(0,c.useMemo)(()=>b(t,i),[t,...Object.values(i)]);return(0,o.jsx)(f.Provider,{value:r,children:a})}function E(){return(0,c.useContext)(f)}f.displayName="ExperimentsContext";let y=e=>{let t=(0,c.forwardRef)((t,n)=>{let a=E();return(0,o.jsx)(e,(0,r._)((0,i._)({},a,t),{ref:n}))});return t.displayName="withExperimentsContext(".concat(e.displayName||e.name||"Anonymous",")"),t}},84565:function(e,t,n){n.d(t,{Ke:()=>h,NQ:()=>_,sV:()=>g,yq:()=>b});var a,i,r=n(69277),o=n(70408),s=n(74848),l=n(96540),c=n(52820),d=n(85478);let u=(0,c.Kd)(),p="undefined"!=typeof window&&null!=(i=null==(a=window._preloads)?void 0:a.siteConfigs)?i:{},m=(e,t)=>(0,r._)({},(0,c.EL)(e,t),(0,d.UE)(e)),h=(0,l.createContext)(m(p,u));function g(e){let{siteConfigs:t={},experimentInfo:n,children:a}=e,i=n||u,r=(0,l.useMemo)(()=>m(t,i),[t,...Object.values(i)]);return(0,s.jsx)(h.Provider,{value:r,children:a})}function _(){return(0,l.useContext)(h)}h.displayName="ExperimentsAndSiteConfigContext";let b=e=>{let t=(0,l.forwardRef)((t,n)=>{let a=_();return(0,s.jsx)(e,(0,o._)((0,r._)({},a,t),{ref:n}))});return t.displayName="withExperimentsAndSiteConfigContext(".concat(e.displayName||e.name||"Anonymous",")"),t}},58050:function(e,t,n){n.d(t,{A:()=>M,cC:()=>C,km:()=>k,tg:()=>I,uy:()=>w});var a=n(69277),i=n(79785),r=n(74848),o=n(91648),s=n.n(o),l=n(74242),c=n(31062),d=n(96540),u=n(25250),p=n(82936),m=n(84605),h=n(46271),g=n(72026),_=n(6547),b=n(94729),f=n(76528),A=n(68349),E=n(49315),y=n(48965),N=n(46453),O=n(50963);function v(){let e=(0,i._)(["Followed ",""]);return v=function(){return e},e}function x(){let e=(0,i._)(["Unfollowed ",""]);return x=function(){return e},e}function S(e){let t=(0,h.Jd)();return(0,f.OU)("/api/v1/feed/following",(0,a._)({auto:!!t},e))}function w(){let{mutate:e}=(0,u.iX)();return function(){for(var t=arguments.length,n=Array(t),a=0;a{if(e){if(!i&&o)return void(d?d():o.open());p(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return a?[...t,e.id]:s()(t,e.id)},{revalidate:!1});try{await (0,b.x6)("/api/v1/feed/".concat(e.id,"/follow"),{method:a?"POST":"DELETE",json:{surface:t,noteId:n}}),_.popToast(()=>(0,r.jsx)(y.y,{Icon:a?l.A:c.A,text:a?w(v(),f):w(x(),f),cta:E("Undo"),onAccept:()=>M(!a)}))}catch(e){_.popToast(()=>(0,r.jsx)(y.y,{text:(0,A.uX)(e)}));return}}};return{isFollowing:u,toggle:()=>M(!u),isLoaded:!!g}}function k(e,t,n){let{isFollowing:a,toggle:i}=C(e,t,n),[r,o]=(0,d.useState)(!1);return{isFollowing:a,buttonProps:{onClick:()=>{i(),a||o(!0)},onMouseLeave:()=>o(!1)}}}},51440:function(e,t,n){n.d(t,{PC:()=>s});var a=n(32641),i=n(74848),r=n(96540);let o=(0,r.createContext)({country:"US"});function s(e){var{children:t}=e,n=(0,a._)(e,["children"]);let s=(0,r.useMemo)(()=>n,Object.values(n));return(0,i.jsx)(o.Provider,{value:s,children:t})}o.displayName="LocaleContext"},97640:function(e,t,n){n.d(t,{Vd:()=>g,_b:()=>m});var a=n(74848),i=n(96540),r=n(79909),o=n(25006),s=n(94729),l=n(59922),c=n(12501),d=n(82772),u=n(68349),p=n(4016);function m(e){let{defaultState:t,shouldLoad:n=!0,shouldPoll:i=!1,activityToken:r,children:o}=e;return(0,a.jsx)(_,{defaultState:null==t?void 0:t.activity,shouldLoad:n,shouldPoll:i,activityToken:r,children:o})}let h=(0,i.createContext)({lastViewedAt:null,activityUnreadCount:0,activityUnreadAtMax:!1,refetch:async()=>!0,markAllAsRead:async()=>{},hasLoadedOnce:!1});function g(){return(0,i.useContext)(h)}function _(e){let{defaultState:t,shouldLoad:n=!0,shouldPoll:m=!1,activityToken:g,children:_}=e,b=(0,c.st)({pathname:"/api/v1/activity/unread",deps:[],auto:n,initialResult:t,query:{token:g}}),f=(0,o.df)(),A=!!f&&(0,p.lu)({pub:f}),E=!(0,d.ov)()&&!A,y=async()=>{let e=await (0,s.x6)("/api/v1/activity/unread",{method:"post",json:{after:new Date().toISOString(),token:g}});b.setResult(e)};(0,l.A)(async()=>{if(m&&n&&(0,u.Tf)()){var e;let t=(null==(e=b.result)?void 0:e.count)||0,n=await b.refetch();if(t!==(!(n instanceof Error)&&n.count||0))return!0}},6e4);let N=null!=b.result?b.result.count:0;return(0,i.useEffect)(()=>{try{var e,t;null==(e=(t=navigator).setAppBadge)||e.call(t,N)}catch(e){console.warn(e)}},[N]),(0,a.jsxs)(h.Provider,{value:{lastViewedAt:null!=b.result?b.result.lastViewedAt:null,activityUnreadCount:N,activityUnreadAtMax:null!=b.result&&b.result.max,refetch:b.refetch,markAllAsRead:y,hasLoadedOnce:b.hasLoadedOnce},children:[(0,a.jsx)(r.O,{badge:E?N:void 0}),_]})}h.displayName="NotificationsContext"},13505:function(e,t,n){n.d(t,{AG:()=>u,kL:()=>d});var a=n(74848),i=n(96540),r=n(86500),o=n(55762),s=n(68349);let l={1:30,2:20,3:10},c=(0,i.createContext)({startInterval:()=>void 0,stopInterval:()=>void 0,trackInterval:()=>void 0,getCurrentUuid:()=>""});function d(e){let{children:t}=e,n=(0,i.useRef)(null),d=(0,i.useRef)(null),p=(0,i.useRef)({top:0,bottom:0}),m=(0,i.useRef)(null),h=(0,i.useCallback)(()=>{if(m.current){let{uuid:e,postId:t,containerElementRef:n,elementIsStatic:a,phase:i,count:s}=m.current;if(i&&i>3)return void g();if(s&&s>=l[i])return void b();m.current.count=s+1;let c=(null==n?void 0:n.current)?(0,o.k)(n.current,null!=a&&a):p.current,h=c.top.toFixed(2),_=c.bottom.toFixed(2);(0,r.u4)(r.qY.POST_PINGBACK_SEEN,{tracker_uuid:e,post_id:t,top_scroll_percentage:h,bottom_scroll_percentage:_,phase:i,count:s+1}),d.current!==h&&(d.current=h,t&&u(t,"read",c.top/100))}},[]),g=(0,i.useCallback)(()=>{n.current&&(clearInterval(n.current),n.current=null)},[]),_=()=>{var e,t;return 10**(null!=(t=null==(e=m.current)?void 0:e.phase)?t:1)*1e3},b=()=>{g(),m.current&&(m.current.phase+=1,m.current.count=0),n.current=setInterval(h,_())},f=(0,i.useCallback)(e=>{var t;let{postId:a,containerElementRef:i,elementIsStatic:r,phase:o=1,count:l=0}=e;"undefined"!=typeof window&&a&&i&&((null==(t=m.current)?void 0:t.postId)!==a&&(m.current={uuid:(0,s.QT)(),postId:a,containerElementRef:i,elementIsStatic:r,phase:o,count:l}),g(),n.current=setInterval(h,_()))},[h,g]),A=(0,i.useCallback)(()=>{var e;return(null==(e=m.current)?void 0:e.uuid)||""},[]);return(0,i.useEffect)(()=>{let e=()=>{var e,t,n,a,i,r,o;document.hidden?(h(),g()):(null==(e=m.current)?void 0:e.postId)&&(null==(t=m.current)?void 0:t.containerElementRef)&&f({postId:null==(n=m.current)?void 0:n.postId,containerElementRef:null==(a=m.current)?void 0:a.containerElementRef,elementIsStatic:null==(i=m.current)?void 0:i.elementIsStatic,phase:null==(r=m.current)?void 0:r.phase,count:null==(o=m.current)?void 0:o.count})};return document.addEventListener("visibilitychange",e),()=>{h(),m.current=null,g(),document.removeEventListener("visibilitychange",e)}},[f,g]),(0,i.useEffect)(()=>{let e=e=>{var t,n,a,i,r;let s=null==(n=m.current)||null==(t=n.containerElementRef)?void 0:t.current,l=null==(a=m.current)?void 0:a.elementIsStatic;!s||e.target!==s||(null==(r=m.current)||null==(i=r.containerElementRef)?void 0:i.current)&&(p.current=(0,o.k)(s,null!=l&&l))};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[f,g]),(0,a.jsx)(c.Provider,{value:{startInterval:f,stopInterval:g,trackInterval:h,getCurrentUuid:A},children:t})}function u(e,t,n){var a;"undefined"!=typeof window&&(null==(a=window._preloads)?void 0:a.user)&&!window._preloads.user.is_magic&&fetch("/api/v1/posts/".concat(e,"/progress?type=").concat(t,"&progress=").concat(n),{method:"POST"}).catch(e=>{console.error("Failed to mark video progress:",e)})}c.displayName="PostPingbackTrackerContext"},95899:function(e,t,n){n.d(t,{HW:()=>o});var a=n(74848),i=n(96540);n(46271),n(94729),n(58278),n(82776);let r=(0,i.createContext)({viewerProfile:{profile:null,loading:!1},setViewerProfile:()=>void 0,profiles:new Map,setProfile:()=>void 0});function o(e){let{value:t,handle:n,children:o}=e,[s,l]=(0,i.useState)({profile:null,loading:!1}),[c,d]=(0,i.useState)(new Map(t?[[n||t.id,{profile:t,loading:!1}]]:[])),u={viewerProfile:s,setViewerProfile:(0,i.useCallback)((e,t)=>{l(n=>n.profile===e&&n.loading===t?n:{profile:e,loading:t})},[]),profiles:c,setProfile:(0,i.useCallback)((e,t,n)=>{d(a=>{var i,r;if((null==(i=a.get(e))?void 0:i.profile)===t&&(null==(r=a.get(e))?void 0:r.loading)===n)return a;let o=new Map(a);return o.set(e,{profile:t,loading:n}),o})},[])};return(0,a.jsx)(r.Provider,{value:u,children:o})}r.displayName="ProfileContext"},25006:function(e,t,n){n.d(t,{df:()=>l,pP:()=>s}),n(74848);var a,i,r=n(96540);let o="undefined"!=typeof window&&null!=(i=null==(a=window._preloads)?void 0:a.pub)?i:null,s=(0,r.createContext)(o);function l(){return(0,r.useContext)(s)}s.displayName="PubContext"},53989:function(e,t,n){n.d(t,{Fm:()=>p,Pu:()=>m});var a,i,r=n(69277),o=n(74848),s=n(96540),l=n(94729);let c="undefined"!=typeof window&&null!=(i=null==(a=window._preloads)?void 0:a.publicationSettings)?i:{};function d(e){return t=>{if(!t||!e)return null;let n=e[t];return void 0===n?null:n}}let u=(0,s.createContext)({getSettingFor:d(c),changeSetting:()=>Promise.resolve(void 0),preloadedPubSettings:c});function p(e){let{settings:t={},children:n}=e,[a,i]=(0,s.useState)(t),c=async e=>{i((0,r._)({},a,e));try{await (0,l.x6)("/api/v1/publication_settings",{method:"PUT",json:e})}catch(e){console.error(e)}},p=(0,s.useMemo)(()=>({getSettingFor:d(a),changeSetting:c,preloadedPubSettings:a}),[a]);return(0,o.jsx)(u.Provider,{value:p,children:n})}function m(){return(0,s.useContext)(u)}u.displayName="PublicationSettingsContext"},85478:function(e,t,n){n.d(t,{UE:()=>l,W8:()=>c,eE:()=>d,mJ:()=>u});var a,i,r=n(74848),o=n(96540);let s="undefined"!=typeof window&&null!=(i=null==(a=window._preloads)?void 0:a.siteConfigs)?i:{},l=e=>({allConfigs:e,getConfigFor:t=>{if(!t||!e)return null;let n=e[t];return void 0===n?null:n}}),c=(0,o.createContext)(l(s));function d(e){let{siteConfigs:t={},children:n}=e,a=(0,o.useMemo)(()=>l(t),[t]);return(0,r.jsx)(c.Provider,{value:a,children:n})}function u(){return(0,o.useContext)(c)}c.displayName="SiteConfigsContext"},98747:function(e,t,n){n.d(t,{wX:()=>o});var a=n(74848),i=n(96540);let r=(0,i.createContext)({hasThemedBackground:!1});function o(e){let{value:t,children:n}=e,o=(0,i.useMemo)(()=>t,Object.values(t));return(0,a.jsx)(r.Provider,{value:o,children:n})}r.displayName="ThemeContext"},90827:function(e,t,n){n.d(t,{P:()=>u,X:()=>d});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(96540),l=n(35369),c=n(56720);let d=(0,s.forwardRef)((e,t)=>{var{onClick:n,children:s,disabled:c=!1,size:d="md"}=e,u=(0,r._)(e,["onClick","children","disabled","size"]);return(0,o.jsx)(l.mZ,(0,i._)((0,a._)({},u),{ref:t,rounded:!0,onClick:n,disabled:c,size:d,children:s}))}),u=e=>{let{label:t,children:n}=e;return(0,o.jsx)(c.m_,{text:null!=t?t:"",side:"left",disabled:!t,children:n})}},37575:function(e,t,n){n.d(t,{H2:()=>T,_R:()=>R});var a=n(69277),i=n(86500);n(68349);var r=n(98111),o=n(46754),s=n(82776),l=n(38474),c=n(26116),d=n(39729),u=n(42985),p=n(79431),m=n(45595),h=n(70679),g=n(97966),_=n(70084),b=n(37859),f=n(31611);n(12135);var A=n(17768),E=n(82979),y=n(58097),N=n(30131),O=n(41298),v=n(60440),x=n(41758),S=n(75594),w=n(84262),I=n(14304),M=n(13625);n(55714);var C=n(39248),k=n(82528);let j=async(e,t)=>{var n;if(!e)throw Error("No URL provided");return"undefined"!=typeof window&&(null==(n=window._preloads.siteConfigs)?void 0:n.enable_polymarket_post_embeds)&&(0,o.QE)(e)?(0,v.hI)(e,t):(0,x.i1)(e,t)},L=[[f.NT,f.h$],[N.FR,N.yJ],[M.hq,M.GW],[A.Ys,A.VM],[k.NO,k.Sw],[C.ou,C.zd],[w.mc,w.Xs],[m.RD,m.oM],[p.Bp,p.so],[u.XB,u.w1],[S.AF,S.d1],[c.ez,c.lQ],[E.Rj,E.gE],[b.SU,b.Z7],[g.iO,g.Xs],[_.oI,_.t2],[l.q_,l.TM],[y.Hh,y.Wc],[h.t7,h.eZ],[O.sF,O.DI],[e=>{var t;if(!e)return null;if("undefined"!=typeof window&&(null==(t=window._preloads.siteConfigs)?void 0:t.enable_polymarket_post_embeds)){let t=(0,o.QE)(e);if(t)return t}return(0,x.J7)(e)},j],[function(){for(var e=arguments.length,t=Array(e),n=0;ne===r.T.FIRST_NOTE_EMBED,u.x7]],R=(e,t,n)=>{if(t.nodes.augmentation_placeholder)for(let[i]of L){let r=i(e,(0,a._)({customSchema:t},n));if(r){let e=t.nodes.augmentation_placeholder.create({request_id:(0,s.randomString)(),url:r});return[r,e]}}return[null,null]},T=async(e,t,n,r)=>{let o,s,{request_id:l,url:c}=e.attrs;try{for(let[t,s]of L)if(t(e.attrs.url,(0,a._)({customSchema:n},r))&&((0,i.u4)(i.qY.EMBED_URL_ATTEMPTED,{url:c,source:"paste"}),o=await s(c,{customSchema:n}),(0,i.u4)(i.qY.EMBED_URL_SUCCEEDED,{url:c,source:"paste"}),o))break}catch(t){(0,i.u4)(i.qY.EMBED_URL_FAILED,{url:c,source:"paste"}),console.error("Failed to process augmentation placeholder:",e.attrs,t),400<=t.status&&t.status<600&&(s=t)}if(s){let a=(0,M.hq)(e.attrs.url);if(setTimeout(()=>{P(l,t,n,(e,t,i)=>{a&&n.marks.link&&e.replaceRangeWith(t,t+i.nodeSize,n.text(i.attrs.url,[n.marks.link.create({title:i.attrs.url,href:i.attrs.url})])),e.delete(t,t+i.nodeSize)})},0),!a)throw s}else o?setTimeout(()=>{P(l,t,n,(e,t,n)=>{o&&e.setNodeMarkup(t,o.type,o.attrs,n.marks)})},0):setTimeout(()=>{P(l,t,n,(e,t,a)=>{e.replaceRangeWith(t,t+a.nodeSize,n.text(a.attrs.url))})},0)},P=(e,t,n,a)=>{let i=!1,r=t.state.tr;return t.state.doc.descendants((t,o)=>{t.type===n.nodes.augmentation_placeholder&&t.attrs.request_id===e&&!1!==a(r,o,t)&&(i=!0)}),i&&t.dispatch(r),i}},62891:function(e,t,n){n.d(t,{gJ:()=>r}),n(74848),n(32485);var a=n(96540);n(89490),n(10996),n(48965);let i=(0,a.createContext)({initialTab:"settings",isDrawerOpen:()=>!1,openDrawerId:null,setInitialTab:()=>void 0,setIsDrawerOpen:()=>void 0,setPreventChange:()=>void 0});function r(){return(0,a.useContext)(i)}},35974:function(e,t,n){n.d(t,{c:()=>i});var a=n(87166);"undefined"!=typeof navigator&&/Mac/.test(navigator.platform);let i=e=>(t,n,i)=>{if(n){var r,o,s;if(!e.marks.link)return console.warn("link mark not found in schema"),!1;(0,a.S)(e.marks.link,{scrollParent:".editor-scroll",language:"undefined"!=typeof window?null==(s=window)||null==(o=s._preloads)||null==(r=o.publication)?void 0:r.language:void 0}).spec.run(t,n,i)}return!0}},32526:function(e,t,n){n.d(t,{A_:()=>p,Lz:()=>l,PN:()=>m,Rh:()=>g,cz:()=>b,dG:()=>_,yb:()=>h});var a=n(99851),i=n(43712),r=n(86500),o=n(68349),s=n(39318);class l extends i.Dr{static fromMenuItem(e,t){let{spec:n}=e;return new l(n,t)}constructor(e,t){super(e);const n=this.spec.run;this.spec.run=(e,a,i,o)=>((0,r.u4)(r.qY.EDITOR_MENU_ICON_CLICKED,{button:t||this.spec.label||this.spec.title}),n.call(this,e,a,i,o))}}let c="ProseMirror-prompt",d="".concat(c,"-visible");class u{read(e){return e.value}validate(e){return(e=this.clean(e))||!this.options.required?this.options.validate&&this.options.validate(e):"Required field"}clean(e){return this.options.clean?this.options.clean(e):e}constructor(e){(0,a._)(this,"options",void 0),this.options=e}}class p extends u{render(){let e=document.createElement("input");return e.type="text",e.placeholder=this.options.label,e.value=this.options.value||"",e.className=this.options.className||"",e.autocomplete="off",e}}class m extends p{constructor(e,t,n="en"){const{iString:a}=I18N.i(n);super({label:a("Enter URL..."),className:"url-input",value:t||e&&e.mark.attrs.href||"",required:!0,clean:e=>{let t;return e?(t=e.trim()).startsWith("http")||t.startsWith("mailto")||/^%%.*%%$/.test(t)?t:"http://".concat(t):""},validate:e=>{if(!/^%%.*%%$/.test(e)){if(e.startsWith("".concat((0,s.$_T)(),"/publish/post/"))&&alert(a("This is a link to a post draft. Readers will not be able to access this page.")),e.length>1900)return a("Link is too long");try{let t=new URL(e);if(["http:","https:","mailto:"].includes(t.protocol))return}catch(e){}return e.startsWith("http")?a("Invalid URL"):a("Invalid URL. Try using http://")}}})}}function h(e,t){let{from:n,$from:a,to:i,empty:r}=e.selection;return r?!!t.isInSet(e.storedMarks||a.marks()):e.doc.rangeHasMark(n,i,t)}function g(e){if(_(e))return;let{iString:t}=I18N.i(e.language||"en"),n="".concat(c,"-").concat(e.parentClass),a=e.root||document.body,i=e.scrollParent&&document.querySelector&&document.querySelector(e.scrollParent)||function e(t){return null==t?null:t.scrollHeight>t.clientHeight?t:e(t.parentElement)}(a)||window,r=a.appendChild(document.createElement("div"));r.classList.add(c),e.className&&r.classList.add(e.className),r.id=n,(0,o.iQ)(document.body,d);let s=e=>{r.contains(e.target)||p()},l=()=>{if(e.position)e.position(r,m);else{var t,n;let a=e.parentClass&&(null==(t=(n=document).querySelector)?void 0:t.call(n,".".concat(e.parentClass)));if(a){let t=a.getBoundingClientRect();r.style.top="".concat(t.bottom+(e.offsetTop||0),"px"),r.style.left="".concat(t.left+(e.offsetLeft||0),"px")}else{let t=r.getBoundingClientRect();r.style.top="".concat((window.innerHeight-t.height)/2+(e.offsetTop||0),"px"),r.style.left="".concat((window.innerWidth-t.width)/2+(e.offsetLeft||0),"px")}}},u=t=>{var n;t&&t.preventDefault();let a=function(e,t){let n={},a=0;for(let i in e){let r=e[i],o=t[a++];if(!r){console.warn("field missing for name",i);continue}let s=r.read(o),l=r.validate(s);if(l){if(!o){console.warn("missing domField, cannot reportInvalid");continue}return function(e,t){let n=e.parentNode;if(!n)return;let a=n.appendChild(document.createElement("div"));a.style.left="".concat(e.offsetLeft+e.offsetWidth+2,"px"),a.style.top="".concat(e.offsetTop-5,"px"),a.className="ProseMirror-invalid",a.textContent=t,setTimeout(()=>n.removeChild(a),1500)}(o,l),null}n[i]=r.clean(s)}return n}(null!=(n=e.fields)?n:{},h);a&&p(a)},p=t=>{(0,o.vy)(document.body,d),window.removeEventListener("mousedown",s),window.removeEventListener("resize",l,!1),i.removeEventListener("scroll",l,!1),r.parentNode&&r.parentNode.removeChild(r),t?(e.onSubmit&&e.onSubmit(t),e.callback&&e.callback(t)):e.onCancel&&e.onCancel(),e.onClose&&e.onClose()};setTimeout(()=>window.addEventListener("mousedown",s),50),window.addEventListener("resize",l,!1),i.addEventListener("scroll",l,!1);let m=r.appendChild(document.createElement("span"));m.className="head";let h=[],g=0;for(let t in e.fields){var b;g++;let n=null==(b=e.fields[t])?void 0:b.render();if(!n){console.warn("missing field for name",t);continue}n.tabIndex=g,h.push(n)}let f=r.appendChild(document.createElement("form"));if(e.title&&(f.appendChild(document.createElement("h5")).textContent=e.title),h.forEach(e=>{f.appendChild(document.createElement("div")).appendChild(e)}),!e.no_buttons){let n=document.createElement("button");n.type="submit",n.className="".concat(c,"-submit"),n.textContent=e.submitText||"OK",n.addEventListener("click",u);let a=document.createElement("button");a.type="button",a.className="".concat(c,"-cancel"),a.textContent=t("Cancel"),a.addEventListener("click",()=>p());let i=f.appendChild(document.createElement("div"));i.className="".concat(c,"-buttons"),i.appendChild(n),i.appendChild(document.createTextNode(" ")),i.appendChild(a)}if(e.footer&&f.appendChild(e.footer),e.openseaEmbedFooter&&f.appendChild(e.openseaEmbedFooter),l(),f.addEventListener("submit",u),e.onInput&&f.addEventListener("input",t=>{var n;null==(n=e.onInput)||n.call(e,t,r)}),f.addEventListener("keydown",e=>{if(27==e.keyCode)e.preventDefault(),p();else if(13!=e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey){if(9==e.keyCode&&(window.setTimeout(()=>{r.contains(document.activeElement)||p()},500),h.length>1)){for(let a=0;a0){let e=f.elements[0];for(let t of Array.from(f.elements))if(!t.value&&["INPUT","TEXTAREA"].includes(t.nodeName)){e=t;break}e.focus()}}function _(e){let t="".concat(c,"-").concat(e.parentClass),n=document.getElementById(t);if(n){let e;if(n.querySelector&&(e=n.querySelector(".".concat(c,"-cancel"))),e)e.click();else{var a;null==(a=n.parentNode)||a.removeChild(n),(0,o.vy)(document.body,d)}return!0}}function b(e,t){let n=e.selection.$from;for(let e=n.depth;e>=0;e--){let a=n.index(e);if(n.node(e).canReplaceWith(a,a,t))return!0}return!1}},79994:function(e,t,n){n.d(t,{X:()=>r}),n(74848),n(33031);var a=n(96540);n(15734),n(85478),n(84810),n(76528);let i=(0,a.createContext)({existingClips:[],mediaClipsRequest:null,isTranscribing:!1,podcastUpload:null,setExistingClips:()=>void 0,setIsTranscribing:()=>void 0,setMediaClipsRequest:()=>void 0,setTranscription:()=>void 0,setUploadProgress:()=>void 0,syncClips:()=>Promise.resolve(),transcription:null,transcriptionGenerated:!1,uploadProgress:null,transcodeProgress:null,setTranscodeProgress:()=>void 0,nonStandardInputReasons:{},uploadState:"no-upload",videoUpload:null,onVideoTranscodeUpdate:()=>Promise.resolve(),postMediaComposition:null,setPostMediaComposition:()=>void 0,updatingActivePostMediaComposition:!1,setUpdatingActivePostMediaComposition:()=>void 0,fetchPostMediaComposition:()=>Promise.resolve()}),r=()=>(0,a.useContext)(i)},84810:function(e,t,n){n.d(t,{L:()=>s});var a=n(69277),i=n(70408),r=n(96540),o=n(62891);let s=()=>{let{initialTab:e,isDrawerOpen:t,setInitialTab:n,setIsDrawerOpen:s,setPreventChange:l}=(0,o.gJ)(),c=(0,r.useCallback)(e=>{s((0,i._)((0,a._)({},e),{drawerId:"podcast"}))},[s]);return{initialTab:e,isPodcastDrawerOpen:t("podcast"),setInitialTab:n,setIsPodcastDrawerOpen:c,setPreventChange:e=>l({preventChange:e,preventChangeMessage:"Please wait until the upload is finished before closing the drawer"})}}},35552:function(e,t,n){n.d(t,{A:()=>u});var a=n(74848),i=n(32485),r=n.n(i),o=n(69843),s=n.n(o),l=n(96540),c=n(84605);n(35369),n(33727),n(48535),n(76977);var d=n(94996);n(16291);let u=e=>{let{className:t,pubName:n,pubHasPodcast:i,sections:o,onChange:u,showRoot:p,currentValue:m}=e,{iString:h}=(0,c.GO)(),g=(0,l.useMemo)(()=>o.filter(e=>e.is_live),[o]),_=(0,l.useMemo)(()=>{let e={value:-1,label:h("Choose a section...")},t=g.map(e=>({value:e.id,label:e.name,hasPodcast:e.is_podcast}));return p?[e,{value:"root",label:n,hasPodcast:i},...t]:[e,...t]},[g,n,p]);return((0,l.useEffect)(()=>{2!==_.length||s()(_[1])||m===(_[1].value&&Number(_[1].value))||u(_[1].value&&"root"!==_[1].value?Number(_[1].value):null)},[m,_,u]),2!==_.length||s()(_[1]))?(0,a.jsx)(d.I,{className:r()("post-section-selector",t),name:"section",onChange:e=>{let{value:t}=e.currentTarget;u(t&&"root"!==t?Number(t):null)},value:m||(p?"root":void 0),"data-testid":"section-selector",children:_.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}):(0,a.jsx)("h5",{className:"post-section-selector",children:_[1].label})}},9129:function(e,t,n){n.d(t,{e4:()=>a}),n(68349);let a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAY4AAAB0BAMAAABgVMiEAAAAMFBMVEX////7+/vt7e3o6Ojm5ubn5+fu7u709PTs7Oz39/f19fX29vby8vLx8fHz8/Pw8PCxY+A8AAAAoklEQVR4AWJgVHYZ+sBIgEE0vXzog7JAhrZZq4Y+WJnB4A5o5w5oAAYBGAi6mcKpQgIaClhCBklz7+AM/Gjo5+Dg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODgeO7g4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4OD4Zse3dmVXfIST0/B1vh0UtMKbNF7rAAAAAElFTkSuQmCC"},82203:function(e,t,n){n.d(t,{K:()=>d});var a=n(74848),i=n(32485),r=n.n(i),o=n(95977),s=n(41232),l=n(39891),c=n(87300);function d(e){let{src:t,size:n,framed:i,alt:d}=e;return(0,a.jsx)(o.A,{className:r()(s.A.avatar,c.A.avatar,i&&c.A.framed),src:(0,l.dJ)(t),alt:d,style:{width:n,height:n,minWidth:n,minHeight:n,objectFit:"cover",margin:0,display:"inline",borderRadius:"50%"},width:n,height:n})}},6049:function(e,t,n){n(74848),n(50172),n(32485),n(83673),n(38305),n(95977),n(773),n(57051),n(56305),n(35465),n(81203);var a=n(24216);n(56458),n(4016),n(39318),n(82776),n(87300),n(84685),n(82203),(0,a.a)("email-text-button","a"),(0,a.a)("email-text-b4 email-text-secondary","div")},47811:function(e,t,n){n.d(t,{Yw:()=>eJ,U8:()=>e$,wR:()=>eX,ti:()=>eq});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(96540),c=n(78649),d=n(52742),u=n(84605),p=n(78479),m=n(50491),h=n(56804),g=n(24078),_=n(89490),b=n(35369),f=n(76977),A=n(19008),E=n(82439),y=n(57820),N=n(81203),O=n(63136),v=n(83629),x=n(7963),S=n(39318),w=n(49807);function I(e){let{attachments:t,fullscreenAttachmentIndex:n,onClose:a,item:i,onAttachmentClick:o,onSavePostClick:s,onQuoteThemeChange:l}=e,{iString:c}=(0,u.GO)();return(0,r.jsxs)(A.h,{isOpen:null!==n,onClose:a,children:[(0,r.jsx)(E.l,{title:c("Attachment viewer")}),(0,r.jsx)(M,{attachments:t,currentIndex:null!=n?n:0,onClose:a,item:i,onAttachmentClick:o,onSavePostClick:s,onQuoteThemeChange:l})]})}function M(e){let{attachments:t,currentIndex:n,onClose:o,item:s,onAttachmentClick:c,onSavePostClick:u,onQuoteThemeChange:h}=e,[g,_]=(0,l.useState)(n),b=(0,l.useCallback)(()=>{g>0&&_(g-1)},[g]),A=(0,l.useCallback)(()=>{g{let e=e=>{["ArrowRight","ArrowDown"].includes(e.key)?(A(),e.stopPropagation()):["ArrowLeft","ArrowUp"].includes(e.key)&&(b(),e.stopPropagation())};return window.addEventListener("keydown",e,{capture:!0}),()=>window.removeEventListener("keydown",e,{capture:!0})},[A,b]);let E=t[g];if(!E)return null;let{slide:y,footer:N}=function(e){let{attachment:t,onClose:n,onAttachmentClick:o,onSavePostClick:s,onQuoteThemeChange:l}=e;if("image"===t.type)return{slide:(0,r.jsx)(R,{src:t.imageUrl,onClose:n}),footer:null};if("post"===t.type&&t.postImageSelection)return{slide:(0,r.jsx)(R,{src:t.postImageSelection.img_src,onClose:n}),footer:(0,r.jsx)(k,{attachment:t,onClose:n})};if("post"===t.type&&t.postSelection){var c;return{slide:(0,r.jsx)(f.ov,{position:"absolute",inset:0,className:"cardContainer-YqjIIa",onClick:n,children:(0,r.jsx)(f.VP,{className:"card-vQncqW",children:(0,r.jsx)(p.DP,{attachment:(0,i._)((0,a._)({},t),{postSelection:null!=(c=t.postSelection)?c:void 0}),onClick:o,onSavePostClick:s,onThemeChange:l,lineClamp:"disabled"})})}),footer:(0,r.jsx)(k,{attachment:t,onClose:n})}}return"post"===t.type&&t.post.cover_image?{slide:(0,r.jsx)(R,{src:t.post.cover_image,onClose:n}),footer:(0,r.jsx)(k,{attachment:t,onClose:n})}:"publication"===t.type?{slide:(0,r.jsx)(P,{attachment:t}),footer:(0,r.jsx)(L,{attachment:t})}:"user"===t.type?{slide:(0,r.jsx)(T,{attachment:t}),footer:(0,r.jsx)(j,{attachment:t})}:{slide:null,footer:null}}({attachment:E,onClose:o,onAttachmentClick:c,onSavePostClick:u,onQuoteThemeChange:h});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.fI,{position:"absolute",className:"topBar-xFw7MX",alignItems:"center",children:(0,r.jsx)(d.Jn,{onClick:o})}),g>0&&(0,r.jsx)(d.U1,{onClick:b,className:"prevButton-PxIUis"}),g{n(),v.Z&&(0,h.o)(e,i)}})}function j(e){let{attachment:t}=e,{iString:n}=(0,u.GO)(),{user:a}=t,i=(0,S.gYq)({id:a.id,name:a.name,handle:a.handle});return(0,r.jsx)(C,{label:n("Profile"),name:a.name||n("Substack user"),href:i,buttonLabel:n("View")})}function L(e){let{attachment:t}=e,{iString:n}=(0,u.GO)(),{publication:a}=t;return(0,r.jsx)(C,{label:n("Publication"),name:a.name,href:(0,S.fOI)(a),buttonLabel:n("View")})}function R(e){let{src:t,onClose:n}=e,[a,i]=(0,l.useState)(!0);return(0,r.jsxs)(f.ov,{position:"absolute",inset:0,pointerEvents:"none",children:[(0,r.jsx)(_.az,{as:"img",className:s()("img-fzTP_y",a&&"loading-Ahe5Du"),onLoad:()=>i(!1),onClick:n,src:(0,S.dJ9)(t,void 0,{quality:"auto:good"}),animate:!0}),a&&(0,r.jsx)(y.y$,{className:"spinner-yMsech",theme:"media"})]})}function T(e){let{attachment:t}=e,{user:n}=t;return(0,r.jsx)(f.ov,{position:"absolute",inset:0,className:"userSlide-eF6pz7",children:(0,r.jsx)(g.dm,{user:n,size:240,radius:"full",className:"userAvatar-reb0o7"})})}function P(e){var t;let{attachment:n}=e,{publication:a}=n,i=null!=(t=a.theme_var_cover_bg_color)?t:"black";return(0,r.jsx)(f.ov,{position:"absolute",inset:0,style:{background:i},children:(0,r.jsx)(N.wg,{pub:a,href:(0,S.fOI)(a),size:240,radius:"md",className:"pubAvatar-yEMP7y"})})}var D=n(78865),B=n(10278),U=n(72880),G=n(2675),F=n(84211),W=n(22858),Y=n(58050),K=n(46271),H=n(99662),V=n(65915),z=n(44307);function q(e){let{attachment:t,readOnly:n,onClick:a,noteId:i}=e,{user:o}=t,{iString:s}=(0,u.GO)(),l=o.primaryPublication,c=o.name||s("Substack user");return(0,r.jsx)(Z,{readOnly:n,onClick:a,user:o,children:(0,r.jsxs)(f.VP,{gap:12,padding:12,children:[(0,r.jsxs)(f.fI,{gap:12,alignItems:"start",children:[(0,r.jsxs)(f.VP,{gap:8,minWidth:0,flex:"grow",children:[(0,r.jsxs)(f.VP,{children:[(0,r.jsx)(O.EY.B2,{color:"primary",weight:"medium",ellipsis:!0,nowrap:!0,children:c}),o.handle&&(0,r.jsxs)(O.EY.B4,{color:"secondary",ellipsis:!0,nowrap:!0,children:["@",o.handle]})]}),o.bio&&(0,r.jsx)(O.EY.B4,{color:"primary",clamp:3,children:o.bio})]}),(0,r.jsx)(g.eu,{user:o,size:72,radius:"full"})]}),l&&(0,r.jsx)(f.fI,{children:(0,r.jsx)(V.v,{leading:(0,r.jsx)(N.Nq,{pub:l,size:20,radius:"full"}),href:(0,S.fOI)(l),newTab:!0,onClick:e=>{e.stopPropagation(),null==a||a()},children:l.name})}),o.subscriberCountString&&(0,r.jsx)(O.EY.B4,{color:"secondary",children:o.subscriberCountString}),!n&&(0,r.jsx)(X,{user:o,noteId:i,onClick:a})]})})}function J(e){let{attachment:t,readOnly:n,onClick:a,noteId:i}=e,{user:o}=t,{iString:s}=(0,u.GO)(),l=o.primaryPublication,c=o.name||s("Substack user");return(0,r.jsx)(Z,{readOnly:n,onClick:a,user:o,fillHeight:!0,children:(0,r.jsxs)(f.VP,{flex:"grow",justifyContent:"space-between",padding:16,children:[(0,r.jsxs)(f.VP,{gap:12,padding:12,children:[(0,r.jsxs)(f.fI,{gap:12,alignItems:"end",children:[(0,r.jsxs)(f.VP,{gap:2,minWidth:0,flex:"grow",children:[(0,r.jsx)(O.EY.B2,{color:"primary",weight:"bold",ellipsis:!0,nowrap:!0,children:c}),l&&(0,r.jsx)(O.EY.B4,{color:"secondary",ellipsis:!0,nowrap:!0,children:l.name})]}),(0,r.jsx)(g.eu,{user:o,size:72,radius:"full"})]}),o.bio&&(0,r.jsx)(O.EY.B3,{color:"primary",clamp:3,children:o.bio}),o.subscriberCountString&&(0,r.jsx)(O.EY.B4,{color:"secondary",children:o.subscriberCountString})]}),!n&&(0,r.jsx)(f.VP,{paddingTop:0,children:(0,r.jsx)(X,{user:o,noteId:i,onClick:a})})]})})}let Z=e=>{let{readOnly:t,onClick:n,user:a,children:i,fillHeight:o}=e,s=(0,S.gYq)({id:a.id,name:a.name,handle:a.handle});return(0,r.jsx)(c.Q,{children:(0,r.jsx)(f.VP,{as:t?"div":"a",className:z.A.postAttachment,position:"relative",bg:"primary",radius:"md",target:(0,H.y)()?"_blank":void 0,rel:(0,H.y)()?"noopener noreferrer":void 0,minWidth:0,onClick:n,href:t?void 0:s,draggable:!1,showFocus:!0,animate:!0,flex:o?"grow":void 0,children:i})})};function X(e){let{user:t,noteId:n,onClick:o}=e,{iString:s}=(0,u.GO)(),l=(0,K.Jd)(),{isFollowing:c,buttonProps:d}=(0,Y.km)(t,"user-attachment",n);if((null==l?void 0:l.id)===t.id){let e=(0,S.gYq)({id:t.id,name:t.name,handle:t.handle});return(0,r.jsx)(b.$n,{size:"md",priority:"secondary-outline",width:"100%",href:e,onClick:e=>{e.stopPropagation(),null==o||o()},children:s("View profile")})}return(0,r.jsx)(b.$n,(0,i._)((0,a._)({size:"md",priority:c?"secondary":"primary",width:"100%"},d),{onClick:e=>{e.preventDefault(),e.stopPropagation(),null==o||o(),d.onClick()},children:s(c?"Following":"Follow")}))}var Q=n(44552),$=n(95187),ee=n(11510);let et="restack-LLIvUc",en="clickableImage-LnSopa",ea="galleryImage-TXbIjO";function ei(e){if(["image","publication","user"].includes(e.type))return!0;if("post"===e.type){var t;return e.postImageSelection||e.postSelection||(null==(t=e.post)?void 0:t.cover_image)}return!1}function er(e){let{attachments:t,readOnly:n,isRestack:o,isPermalink:c,onSwipe:d,onAttachmentClick:u,onSavePostClick:m,onQuoteThemeChange:h,item:g}=e,_=(0,ee.Iu)(),[b,A]=(0,l.useState)(null),E=o?12:c?0:_?64:48,y=o?12:16*!!_,N=E+y,O=(0,l.useRef)(null),v=(0,B.wY)(O,N),x=(0,l.useRef)(!1),S=(0,Q.h9)(O),w=(0,$.jA)(O,{inset:E,pageSizeAdjust:-(v-300),initialState:{showLeft:!1,showRight:!0}}),{state:{showLeft:M,showRight:C}}=_?{state:{showLeft:!1,showRight:!1}}:w,k=e=>{if(!_)return w.handleArrowClick(e)};return(0,l.useEffect)(()=>{let e=O.current,t=()=>{!x.current&&(x.current=!0,d&&d())};return null==e||e.addEventListener("scroll",t),()=>null==e?void 0:e.removeEventListener("scroll",t)},[d]),(0,r.jsxs)(f.I1,{className:s()("carouselContainer-VV9siU",o&&et),paddingTop:12,position:"relative",draggable:!1,style:{"--carousel-inset-left":"-".concat(E,"px"),"--carousel-inset-right":"-".concat(y,"px")},children:[(0,r.jsxs)(f.pT,(0,i._)((0,a._)({},S.props),{ref:O,className:s()("carousel-zT0s3f",o&&et),overflow:"auto",flex:"auto",style:{"--carousel-height":"300px","--carousel-gap":"8px","--carousel-item-width":"300px"},children:[(0,r.jsx)(eo,{width:E}),t.map((e,t)=>(0,r.jsx)("div",{className:"carouselItem-UMO8CL",children:function(e){let{attachment:t,readOnly:n,isRestack:o,isPermalink:s,onAttachmentClick:l,onSavePostClick:c,onQuoteThemeChange:d,item:u,onOpenViewer:m}=e,h=e=>{e.preventDefault(),m()};if("image"===t.type)return(0,r.jsx)("div",{onClick:h,className:en,children:(0,r.jsx)(U.o,{src:t.imageUrl,maxWidth:800,className:ea})});if("post"===t.type&&t.postImageSelection)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{onClick:h,className:en,children:(0,r.jsx)(U.o,{src:t.postImageSelection.img_src,maxWidth:800,className:ea})}),(0,r.jsx)(W.L,{post:t.post,publication:t.publication,readOnly:n,onClick:l,className:"restackTag-iW9vmD"})]});if("post"===t.type&&t.postSelection){var g;return(0,r.jsx)(p.DP,{attachment:(0,i._)((0,a._)({},t),{postSelection:null!=(g=t.postSelection)?g:void 0}),readOnly:n,onClick:l,onSavePostClick:c,onThemeChange:d,isPermalink:s,isRestack:o,lineClamp:6,fillHeight:!0})}return"post"===t.type&&t.post&&t.publication?(0,r.jsx)(G.Sp,{post:t.post,publication:t.publication,readOnly:n,onClick:l,onSavePostClick:c,item:null!=u?u:void 0,fillHeight:!0}):"publication"===t.type?(0,r.jsx)(F.S,{publication:t.publication,readOnly:n,onClick:l,fillHeight:!0}):"user"===t.type?(0,r.jsx)(J,{attachment:t,readOnly:n,onClick:l,noteId:null==u?void 0:u.entity_key}):null}({attachment:e,readOnly:n,isRestack:o,isPermalink:c,onAttachmentClick:u,onSavePostClick:m,onQuoteThemeChange:h,item:g,onOpenViewer:()=>A(t)})},e.id))]})),(0,r.jsx)(I,{attachments:t,fullscreenAttachmentIndex:b,onClose:()=>A(null),item:g,onAttachmentClick:u,onSavePostClick:m,onQuoteThemeChange:h}),!_&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.mA,{direction:"left",visible:M,onClick:k(-1)}),(0,r.jsx)(D.mA,{direction:"right",visible:C,onClick:k(1)})]})]})}function eo(e){let{width:t}=e;return(0,r.jsx)(_.az,{as:"span",className:"carouselSpacer-WMmZtI",width:t})}var es=n(66443),el=n(85478),ec=n(27749);function ed(e){let{country:t,type:n,id:a}=e,{iString:i}=(0,u.GO)(),o="https://embed.music.apple.com/".concat(t,"/").concat(n,"/").concat(a,"?theme=auto&app=music");return(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.appleMusic,children:(0,r.jsx)(eu,{src:o,height:"song"===n?"175":"450",frameBorder:0,allow:"encrypted-media *",title:i("Apple Music player"),sandbox:"allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"})})}let eu=(0,_.I4)({border:"unset",bg:"black",flex:"grow",radius:"md"},"iframe"),ep=["album","playlist","song","artist","station"];var em=n(10398),eh=n(42509),eg=n(61143),e_=n(68349),eb=n(91563),ef=n(47128),eA=n(74171),eE=n(57324);function ey(e){let{activeLiveStream:t,onAttachmentClick:n,maxWidth:a,videoPlayerProps:i,feedItem:o}=e,s=(0,e_.rr)(),c=(0,l.useRef)(null),d=(0,ef.wF)(c,a);if("scheduled"===t.liveStream.status)return(0,r.jsx)(eb.S,{liveStream:t,post:null,feedItem:o});let u=eA.mc/eA.ld,p={};if(s){let e=null!=d?d:ef.PH;p={width:"".concat(e,"px"),height:"".concat(e/u,"px")}}else{let e=null!=d?d:ef.di;p={width:"".concat(e,"px"),height:"".concat(e/u,"px")}}return(0,r.jsx)(f.I1,{width:"100%",ref:c,onClick:()=>{null==n||n({attachmentType:"live_stream",attachmentId:t.liveStream.id.toString()});let e=s?(0,w.Xrv)({liveStreamId:t.liveStream.id,utm_campaign:eE._9.substackProfile,params:{utm_medium:eE.Jn.web,appStoreRedirect:!!s}}):(0,w.UUj)({noBase:!0,liveStreamId:t.liveStream.id,params:{utm_campaign:eE._9.substackProfile,utm_medium:eE.Jn.web}});s?document.location.href=e:(0,e_.V2)(e)},children:(0,r.jsx)(f.I1,{style:p,radius:"md",overflow:"hidden",position:"relative",className:z.A.videoPlayerContainer,children:(0,r.jsx)(eg.q,{activeLiveStream:t,listenForViewerCount:!1,isFeedItem:!0,videoPlayerProps:i,startMuted:!0})})})}var eN=n(504),eO=n(50129);function ev(e){let{attachment:t,readOnly:n,isRestack:a,onAttachmentClick:i,utm_content:o}=e,s=["you-blocked","you-muted"].includes(t.reason)&&!!t.hidden_attachment,[d,p]=(0,l.useState)(!1),{iString:m}=(0,u.GO)();return d&&t.hidden_attachment?(0,r.jsx)(eX,{attachment:t.hidden_attachment,readOnly:n,isRestack:a,onAttachmentClick:i,utm_content:o}):(0,r.jsx)(c.Q,{children:(0,r.jsxs)(f.pT,{bg:"primary",border:"detail",justifyContent:s?"space-between":"center",alignItems:"center",radius:"md",padding:16,children:[(0,r.jsx)(O.EY.B4,{color:"secondary",align:"center",children:"you-blocked"===t.reason?"This note is from someone you blocked.":"you-muted"===t.reason?"This note is from someone you muted.":"This attachment is not available."}),s&&(0,r.jsx)(b.Nm,{resetCss:!0,onClick:()=>{var e;(0,eN.qx)(t.id,t.reason,{noteId:null==(e=t.hidden_attachment)?void 0:e.id}),p(!0)},children:(0,r.jsx)(O.EY,{weight:"bold",size:14,color:"secondary",children:m("Show")})})]})})}var ex=n(23584),eS=n(76316),ew=n(56778),eI=n(86500),eM=n(60509);function eC(e){let{fullEmbedUrl:t,eventSlug:n,marketSlug:a,profileName:i,itemEntityKey:o,isGraphMode:s,isComposing:c,originalUrl:d,onUrlChange:p}=e,{iString:m}=(0,u.GO)(),h=(0,l.useRef)(null),[g,_]=(0,l.useState)(120),b=t;if(o){let e=new URL(t);e.searchParams.set("itemEntityKey",o),b=e.toString()}(0,l.useEffect)(()=>{let e=e=>{h.current&&e.source===h.current.contentWindow&&e.data.iframeHeight&&"number"==typeof e.data.iframeHeight&&_(e.data.iframeHeight)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[]);let A=(0,r.jsxs)(f.I1,{gap:8,children:[(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.polymarket,minWidth:200,children:(0,r.jsx)(ek,{ref:h,src:b,height:g,frameBorder:0,allow:"clipboard-write; encrypted-media; fullscreen; picture-in-picture",title:m("Polymarket embed"),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"})}),c&&!i&&p&&(0,r.jsx)(ej,{isGraphMode:null!=s&&s,onToggle:()=>{if(d&&p)try{let e=s?"snapshot":"trend",t=new URL(d,"https://polymarket.com");"snapshot"===e?t.searchParams.delete("graphMode"):t.searchParams.set("graphMode","true"),(0,eI.u4)(eI.qY.POLYMARKET_VIEW_TYPE_SELECTED,{view_type:e,event_slug:n,item_entity_key:o}),p(t.toString())}catch(e){console.error("Failed to toggle graph mode:",e)}}})]});return n||i?(0,r.jsx)(ew.A,{onFirstVisible:()=>{(0,eM.E)({eventSlug:n,marketSlug:a,profileName:i,itemEntityKey:o})},children:A}):A}let ek=(0,_.I4)({border:"unset",bg:"white",flex:"grow",radius:"md",width:"100%"},"iframe");function ej(e){let{isGraphMode:t,onToggle:n}=e,{iString:a}=(0,u.GO)();return(0,r.jsxs)(f.pT,{gap:4,alignItems:"center",paddingLeft:12,as:"button",onClick:n,style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[(0,r.jsx)(eS.A,{style:{color:"var(--color-fg-secondary)"},size:16}),(0,r.jsx)(O.EY.Meta,{weight:"semibold",color:"secondary",children:a(t?"Switch to snapshot view":"Switch to trend view")})]})}function eL(e){let{url:t,type:n}=e,{iString:a}=(0,u.GO)(),i=encodeURIComponent(t);return(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.soundcloud,children:(0,r.jsx)(eR,{src:"https://w.soundcloud.com/player/?url=".concat(i,"&color=%23ff6719&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false&visual=true"),height:"track"===n?"166":"300",frameBorder:0,scrolling:"no",title:a("Soundcloud player"),allow:"clipboard-write; encrypted-media; fullscreen; picture-in-picture",sandbox:"allow-scripts allow-same-origin"})})}let eR=(0,_.I4)({border:"unset",bg:"black",flex:"grow",radius:"md"},"iframe");function eT(e){let{embedType:t,resourceId:n}=e,{iString:a}=(0,u.GO)();if(!n)return null;let i="https://open.spotify.com/embed/".concat(t,"/").concat(n);return(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.spotify,children:(0,r.jsx)(eP,{src:i,height:"playlist"===t||"album"===t?"352":"152",frameBorder:0,allow:"clipboard-write; encrypted-media; fullscreen; picture-in-picture",title:a("Spotify player"),sandbox:"allow-scripts allow-same-origin"})})}let eP=(0,_.I4)({border:"unset",bg:"black",flex:"grow",radius:"md"},"iframe"),eD=["track","playlist","show","episode","artist","album"];function eB(e){let{videoId:t}=e;return(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.tiktok,children:(0,r.jsx)(eU,{src:"https://www.tiktok.com/player/v1/".concat(t,"?").concat("volume_control=0&loop=1×tamp=0&closed_caption=0&play_button=1&fullscreen_button=0"),frameBorder:0})})}let eU=(0,_.I4)({className:z.A.tiktokIframe,border:"unset",bg:"black",flex:"grow",radius:"md"},"iframe");function eG(e){let{videoId:t}=e;return(0,r.jsx)(f.pT,{radius:"md",outline:"detail",overflow:"hidden",className:z.A.youtube,children:(0,r.jsx)(eF,{src:"https://www.youtube.com/embed/".concat(t),frameBorder:0})})}let eF=(0,_.I4)({className:z.A.youtubeIframe,border:"unset",bg:"black",flex:"grow"},"iframe");var eW=n(88325),eY=n(94328),eK=n(3046),eH=n(88218),eV=n(46754),ez=n(75914);function eq(e){let{parent:t,item:n,attachments:a,readOnly:i,isDm:o,isRestack:s,isPermalink:l,isComposing:c,onQuoteThemeChange:d,onAttachmentClick:u,onSavePostClick:p,onAttachmentUrlChange:m,utm_content:h,commentId:g}=e,_=(0,ec.PK)(),{getConfigFor:b}=(0,el.mJ)(),f=b("galleried_feed_attachments")?a.filter(e=>ei(e)):[],A=f.length>1,E=a.filter(e=>!A&&"image"===e.type),y=a.filter(e=>"video"===e.type),N=a.filter(e=>"video"!==e.type&&"image"!==e.type&&!(A&&ei(e)));return(0,r.jsxs)(r.Fragment,{children:[A&&(0,r.jsx)(er,{attachments:f,readOnly:i,isRestack:s,isPermalink:l,isDm:o,isComposing:c,onSwipe:()=>{n&&(0,eN.fP)(n,_)},onAttachmentClick:u,onSavePostClick:p,onQuoteThemeChange:d,onAttachmentUrlChange:m,utm_content:h,item:(null==n?void 0:n.type)==="comment"?n:null}),E.length>0&&(0,r.jsx)(B.xn,{parent:t,readOnly:i||(0,H.y)(),assets:E.map(e=>e$(e)),onClick:u,onSwipe:()=>{n&&(0,eN.fP)(n,_)},isRestack:s,isPermalink:l,isDm:o,feedItem:n,commentId:g}),y.map(e=>{var a;return(0,r.jsx)(ef.R8,{mediaUpload:e.mediaUpload,composing:null!=c&&c,videoPlayerProps:{surface:(0,eW.u)(_),entityType:"comment",entityKey:null!=(a=null==t?void 0:t.id)?a:"unknown",contentType:"comment",feedItemTrackingParameters:null==n?void 0:n.trackingParameters}},e.mediaUpload.id)}),N.map(e=>(0,r.jsx)(eX,{parent:t,attachment:e,readOnly:i,isDm:o,isRestack:s,isPermalink:l,isComposing:c,onAttachmentClick:u,onSavePostClick:p,onQuoteThemeChange:d,onAttachmentUrlChange:m,utm_content:h,compactIfPossible:E.length>0||y.length>0||A||N.length>1,item:null!=n?n:void 0}))]})}function eJ(e){let{attachments:t}=e;if(0===t.length)return null;let n=t.filter(e=>"image"===e.type),a=t.filter(e=>"video"===e.type);return(0,r.jsxs)(r.Fragment,{children:[n.length>0&&(0,r.jsx)(es._,{assets:n.map(e=>e$(e))}),a.map(e=>(0,r.jsx)(eZ,{mediaUpload:e.mediaUpload}))]})}function eZ(e){let{mediaUpload:t}=e,n=(0,S.Pzx)(t);return(0,r.jsxs)(f.pT,{width:72,height:72,radius:"md",overflow:"hidden",sizing:"border-box",border:"detail",position:"relative",alignItems:"center",justifyContent:"center",flex:"auto",children:[(0,r.jsx)(U.o,{src:n,maxWidth:72,useRetinaSizing:!0,imageIsFixedWidth:!0,imageProps:{height:72,smartCrop:!0},className:z.A.videoThumbnailImage}),(0,r.jsx)(eH.ro,{isPlaying:!1,size:40})]})}function eX(e){var t,n,o,s,l,c,d,u,m;let{parent:h,attachment:g,readOnly:_,isRestack:b,isDm:f,isPermalink:A,isComposing:E,onAttachmentClick:y,onSavePostClick:N,onQuoteThemeChange:O,onAttachmentUrlChange:v,utm_content:x,compactIfPossible:w,item:I}=e,M=(0,ec.PK)(),C=y?e=>{y((0,i._)((0,a._)({},e),{attachmentId:String(g.id),attachmentType:g.type}))}:void 0;if((0,eO._d)(g))return(0,r.jsx)(ev,{attachment:g,readOnly:_,isRestack:b,onAttachmentClick:C,utm_content:x});if("live_stream"===g.type)return(0,r.jsx)(ey,{activeLiveStream:g.active_live_stream,onAttachmentClick:C,maxWidth:ef.di,feedItem:null!=I?I:null,videoPlayerProps:{surface:(0,eW.u)(M),entityType:"comment",entityKey:null!=(t=null==h?void 0:h.id)?t:"unknown",contentType:"comment",feedItemTrackingParameters:null==I?void 0:I.trackingParameters}});if("link"===g.type){let{linkMetadata:e}=g,t=(0,eK.Ac)(e.url),n=(0,eK.b5)(e.url);if(t)return(0,r.jsx)(eG,{videoId:t});if(n)return(0,r.jsx)(eB,{videoId:n});let i=function(e){if(!e)return null;try{let t=new URL(e);if(!["spotify.com","www.spotify.com","open.spotify.com","play.spotify.com","embed.spotify.com"].includes(t.host))return null;let n=t.pathname.split("/").filter(Boolean);if(n.length<2)return null;let[a,i]=n;if(!eD.includes(a))return null;return{embedType:a,resourceId:i}}catch(e){return null}}(e.url);if(i)return(0,r.jsx)(eT,{embedType:i.embedType,resourceId:i.resourceId});let o=(0,eV.RP)(e.url);if(o)return(0,r.jsx)(eC,{fullEmbedUrl:o.fullEmbedUrl,eventSlug:o.eventSlug,marketSlug:o.marketSlug,profileName:o.profileName,itemEntityKey:null==I?void 0:I.entity_key,isGraphMode:o.isGraphMode,isComposing:E,originalUrl:e.url,onUrlChange:v});let s=function(e){if(!e)return null;try{let t=new URL(e);if(!["music.apple.com","www.music.apple.com"].includes(t.host))return null;let n=t.pathname.split("/").filter(Boolean);if(n.length<3)return null;let[a,i,...r]=n,o=r[r.length-1];if(!a||!i||!o)return null;if("album"===i&&t.searchParams.has("i")){let e=t.searchParams.get("i");if(e)return{country:a,type:"song",id:e}}if(!ep.includes(i))return null;return{country:a,type:i,id:o}}catch(e){return null}}(e.url);if(s)return(0,r.jsx)(ed,{country:s.country,type:s.type,id:s.id});let l=function(e){if(!e)return null;try{let t=new URL(e);if(!["soundcloud.com","www.soundcloud.com","m.soundcloud.com"].includes(t.host))return null;let n=t.pathname.split("/").filter(Boolean);if(n.length<2)return null;let a="track";return n.includes("sets")?a="set":n.length>=2&&(a="track"),{url:e,type:a}}catch(e){return null}}(e.url);return l?(0,r.jsx)(eL,{url:l.url,type:l.type}):(0,r.jsx)(eh.i,(0,a._)({readOnly:_,onClick:C},g.linkMetadata))}if("comment"===g.type)return(0,r.jsx)(em.Hr,{parent:h,readOnly:_,publication:null!=(n=g.publication)?n:void 0,comment:g.comment,onAttachmentClick:C,utm_content:x,isDm:f,isPermalink:A,commentId:g.comment.id});if("poll"===g.type)return(0,r.jsx)(ex.j,{attachment:g,readOnly:_,onAttachmentClick:C},g.id);if("post"===g.type&&g.postSelection)return(0,r.jsx)(p.DP,{readOnly:_,attachment:(0,i._)((0,a._)({},g),{postSelection:null!=(o=g.postSelection)?o:void 0}),onClick:C,onSavePostClick:N,onThemeChange:O,isPermalink:A,isComposing:E,isRestack:b});if("post"===g.type&&g.postImageSelection)return(0,r.jsx)(W.h,{parent:h,item:I,attachment:g,onClick:C,readOnly:_,isRestack:b,isPermalink:A,isDm:f});if("post"===g.type){let e=I&&(0,ez.tL)(I,g)&&"post"===I.type?(null==(s=I.mediaClip)?void 0:s.clip_info)||(null==(l=g.mediaClip)?void 0:l.clip_info):(null==(c=g.mediaClip)?void 0:c.clip_info)||g.clipInfo,t=g.post.videoUpload;return e&&t?(0,r.jsx)(ef.R8,{tag:(0,r.jsx)(eY.b_,{pub:g.publication,post:g.post,onViewEpisodeClick:C}),mediaUpload:t,composing:!1,videoPlayerProps:{surface:(0,eW.u)(M)}},g.id):(0,r.jsx)(G.Sp,{clipInfo:e,readOnly:_,publication:g.publication,post:g.post,onClick:C,onSavePostClick:N,compact:w,item:I},g.id)}return"publication"===g.type?w?(0,r.jsx)(eh.i,{readOnly:_,onClick:C,title:g.publication.name,host:(0,S.EWE)(g.publication),image:null!=(d=g.publication.logo_url)?d:void 0,url:(0,S.fOI)(g.publication)}):(0,r.jsx)(F.S,{publication:g.publication,readOnly:_,onClick:C}):"user"===g.type?w?(0,r.jsx)(eh.i,{readOnly:_,onClick:C,title:g.user.name,host:g.user.handle?"@".concat(g.user.handle):void 0,image:null!=(u=g.user.photo_url)?u:void 0,url:(0,S.gYq)(g.user)}):(0,r.jsx)(q,{attachment:g,readOnly:_,onClick:C,noteId:null==I?void 0:I.entity_key}):"video"===g.type?(0,r.jsx)(ef.R8,{mediaUpload:g.mediaUpload,composing:!1,videoPlayerProps:{surface:(0,eW.u)(M),entityType:"comment",entityKey:null!=(m=null==h?void 0:h.id)?m:"unknown",contentType:"comment"}},g.mediaUpload.id):(0,r.jsx)(eQ,{attachment:g})}function eQ(e){let{}=e;return(0,r.jsx)(f.pT,{})}function e$(e){return{id:e.id,src:e.imageUrl,explicit:e.explicit,width:e.imageWidth,height:e.imageHeight}}},10398:function(e,t,n){n.d(t,{Hr:()=>w});var a=n(69277),i=n(70408),r=n(79785),o=n(74848),s=n(78649),l=n(84605),c=n(47811),d=n(89607),u=n(98518),p=n(81992),m=n(27332),h=n(25859),g=n(60897),_=n(99662),b=n(24078),f=n(76977),A=n(63136),E=n(83629),y=n(83357),N=n(49095),O=n(49807),v=n(57324),x=n(44307);function S(){let e=(0,r._)(["This content is only visible to paid subscribers of ",""]);return S=function(){return e},e}function w(e){let{parent:t,comment:n,publication:a,readOnly:i,onAttachmentClick:r,utm_content:l,isDm:c,isPermalink:d,commentId:u}=e,p=(0,y.g)({onClick:()=>null==r?void 0:r({commentId:String(n.id)}),href:i?void 0:(0,O.Zgx)(n,{noBase:E.Z}),state:{showBack:!0}});return(0,o.jsx)(s.Q,{children:(0,o.jsx)(I,{readOnly:i,linkProps:p,isEmbed:_.y,children:(0,o.jsx)(M,{parent:t,comment:n,publication:a,readOnly:i,onAttachmentClick:r,utm_content:l,isDm:c,isPermalink:d,commentId:u})})})}function I(e){let{children:t,readOnly:n,linkProps:r,isEmbed:s}=e;return(0,o.jsx)(f.I1,(0,i._)((0,a._)({as:n?"div":"a",bg:"primary",border:"detail",radius:"md",padding:12,gap:8,target:s()?"_blank":void 0,draggable:!1},r),{showFocus:!0,animate:!0,className:x.A.commentContainer,children:t}))}function M(e){var t,n,a,i;let{parent:r,comment:s,publication:l,readOnly:c,onAttachmentClick:d,utm_content:u,isDm:p,isPermalink:m,commentId:h}=e,{truncatedBodyJson:_}=(0,g.A)(s,{truncationProfile:"small"}),b=null!=(i=s.user)?i:s.user_id?{id:s.user_id,name:null!=(t=s.name)?t:"",photo_url:s.photo_url,bestseller_tier:null!=(n=s.user_bestseller_tier)?n:void 0,status:null!=(a=s.userStatus)?a:null}:null;return(0,o.jsxs)(o.Fragment,{children:[b&&(0,o.jsx)(C,{commentUser:b,comment:s,readOnly:c,utm_content:u}),(0,o.jsx)(k,{parent:r,comment:s,publication:l,truncatedBodyJson:_,isDm:p,onAttachmentClick:d,utm_content:u,readOnly:c,isPermalink:m,commentId:h})]})}function C(e){let{commentUser:t,comment:n,readOnly:a,utm_content:i}=e;return t?(0,o.jsxs)(f.pT,{gap:8,alignItems:"center",justifyContent:"start",children:[(0,o.jsx)(y.N,{href:(0,O.gYq)(t,{noBase:E.Z,utm_content:v.fL.substackFeedItem,utm_source:null!=i?i:void 0}),target:(0,_.y)()?"_blank":void 0,showBack:!0,radius:"full",showFocus:!0,animate:!0,children:(0,o.jsx)(b.eu,{size:20,user:t})}),(0,o.jsx)(A.EY.B4,{weight:"medium",color:"primary",children:a?t.name:(0,o.jsxs)(f.pT,{gap:8,direction:"row",justifyContent:"space-between",children:[(0,o.jsx)(h.yp,{user:t,utm_source:v.VU.substackFeedItem,utm_content:i,children:t.name}),(null==t?void 0:t.bestseller_tier)!=null&&(0,o.jsx)(N.UserStatusSymbols,{tier:t.bestseller_tier,userId:t.id,size:"xs"})]})}),(0,o.jsx)(A.EY.B4,{as:"span",color:"secondary",children:(0,o.jsx)(m.Iz,{timestamp:n.date,comment:n})})]}):null}function k(e){var t,n,a,i,r,s;let{parent:c,comment:d,publication:u,truncatedBodyJson:p,isDm:m,isPermalink:h,readOnly:g,onAttachmentClick:_,utm_content:b,commentId:f}=e,{iString:A,iTemplate:E}=(0,l.GO)(),y=null!=(s=null==u?void 0:u.name)?s:A("this publication"),N=E(S(),y),O=null==c||null==(t=c.attachments)?void 0:t.some(e=>"image"===e.type||"video"===e.type),v=null==(n=d.attachments)?void 0:n.some(e=>"image"===e.type||"video"===e.type),x=null==(a=d.attachments)?void 0:a.some(e=>"image"!==e.type&&"video"!==e.type&&"live_stream"!==e.type),w=null==(i=d.attachments)?void 0:i.some(e=>"post"===e.type&&(e.postSelection||e.postImageSelection)),I=null==(r=d.attachments)?void 0:r.some(e=>"poll"===e.type);return O||v&&x||x&&!w&&!I?(0,o.jsx)(j,{comment:d,truncatedBodyJson:p,hiddenText:N,onAttachmentClick:_,utm_content:b}):(0,o.jsx)(L,{comment:d,truncatedBodyJson:p,hiddenText:N,onAttachmentClick:_,utm_content:b,readOnly:g,isDm:m,isPermalink:h,commentId:f})}function j(e){var t,n;let{comment:a,truncatedBodyJson:i,hiddenText:r,onAttachmentClick:s,utm_content:l}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(f.pT,{gap:8,direction:"row",flex:"grow",justifyContent:"space-between",children:[(0,o.jsxs)(f.I1,{gap:4,children:[(0,o.jsx)(d.T,{content:i,isHidden:a.hidden,hiddenText:r,attachedLinks:(0,u.MT)(a)}),(0,o.jsx)(p.ot,{attachments:null!=(t=a.attachments)?t:[],onAttachmentClick:s,utm_content:l})]}),(0,o.jsx)(c.Yw,{attachments:null!=(n=a.attachments)?n:[]})]})})}function L(e){var t;let{comment:n,truncatedBodyJson:a,hiddenText:i,onAttachmentClick:r,utm_content:s,readOnly:l,isDm:p,isPermalink:m,commentId:h}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.T,{content:a,isHidden:n.hidden,hiddenText:i,attachedLinks:(0,u.MT)(n)}),(0,o.jsx)(c.ti,{attachments:null!=(t=n.attachments)?t:[],onAttachmentClick:r,utm_content:s,isRestack:!0,readOnly:l,isDm:p,isPermalink:m,commentId:h})]})}},31354:function(e,t,n){n.d(t,{O:()=>s,j:()=>o});var a=n(74848),i=n(96540);let r=(0,i.createContext)({});function o(e){let{entityKey:t,children:n}=e;return(0,a.jsx)(r.Provider,{value:{entityKey:t},children:n})}function s(){return(0,i.useContext)(r).entityKey}},77405:function(e,t,n){n.d(t,{s:()=>eN,J:()=>ev});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32708),l=n(82853),c=n(42691),d=n(49436),u=n(48309),p=n(84934),m=n(70010),h=n(93540),g=n(80964),_=n(54718),b=n(47796),f=n(57157),A=n(96540),E=n(22752),y=n(94090),N=n(82936),O=n(58050),v=n(84605),x=n(40691),S=n(85478),w=n(46271),I=n(27749),M=n(32485),C=n.n(M),k=n(45773),j=n(78834),L=n(70511),R=n(78649),T=n(72880),P=n(93355),D=n(86500),B=n(12501),U=n(17028),G=n(62870),F=n(66303),W=n(92563),Y=n(29682),K=n(39318),H=n(49807),V=n(98949);let z={header:"header-LkrdOr",footer:"footer-EnTWMp",swatchContainer:"swatchContainer-aa9QGg",checkIconContainer:"checkIconContainer-OhnBup"};function q(e){var t,n,a,i,r,s;let{comment:l,imageShareAsset:c,aspectRatio:d}=e,{width:u,height:p}=(0,W.S8)(d),{img:m,imgDownload:h,shareData:g,useNativeShare:_}=(0,P.Y)({shareTitle:"A note from ".concat(l.name),shareText:l.body,shareUrl:(0,H.M$q)("c-".concat(l.id)),imageUrl:null!=(t=null==c?void 0:c.composed_url)?t:"",imageDownloadUrl:null!=(r=null!=(i=(0,K.tbS)({noteId:"c-".concat(l.id),variant:null!=(n=null==c?void 0:c.variant)?n:"orange",type:"composed",aspectRatio:null!=(a=null==c?void 0:c.aspectRatio)?a:"stories"}))?i:null==c?void 0:c.composed_url)?r:"",imageUrlSameOrigin:null!=(s=null==c?void 0:c.composed_url)?s:""});async function b(){if((0,D.u4)(D.qY.NOTE_IMAGE_ASSET_DOWNLOADED,{comment_id:l.id,aspect_ratio:null==c?void 0:c.aspectRatio,source:"note-image-asset",interaction:"click"}),g)try{await navigator.share(g)}catch(e){}}return(0,o.jsx)(G.Cs,{onClick:b,href:_?void 0:h,children:(0,o.jsxs)(G.OK,{size:p,aspectRatio:u/p,children:[!(0,V.Fr)()&&m&&(0,o.jsx)(G.lh,{onClick:b,width:u}),(0,o.jsx)(G.BB,{img:m})]})})}function J(e){var t,n,a;let{comment:i}=e,[r,s]=(0,A.useState)("stories"),[l,c]=(0,A.useState)("orange"),d=((e,t)=>{let{result:n,error:a}=(0,B.st)({pathname:"/api/v1/note/assets/c-".concat(e.id),query:{aspectRatio:t},deps:[e.id,t],auto:!0});return(0,A.useMemo)(()=>a?[]:n,[n,a])})(i,r),u=null==d?void 0:d.find(e=>e.aspectRatio===r&&e.variant===l),p=null!=(a=null==(n=i.attachments)||null==(t=n.find(e=>"image"===e.type))?void 0:t.imageUrl)?a:i.photo_url;return(0,o.jsx)(R.Q,{children:(0,o.jsxs)(Q,{children:[(0,o.jsx)(U.az,{className:z.header,children:(0,o.jsx)($,{aspectRatio:r,setAspectRatio:s})}),(0,o.jsx)(U.Ye,{justifyContent:"center",padding:12,children:(0,o.jsx)(q,{aspectRatio:r,comment:i,imageShareAsset:u})}),(0,o.jsx)(Z,{selectedVariant:l,setSelectedVariant:c,photoUrl:p})]})})}function Z(e){let{selectedVariant:t,setSelectedVariant:n,photoUrl:a}=e;return(0,o.jsx)(U.fI,{gap:8,justifyContent:"center",children:Y.ix.map(e=>(0,o.jsx)(X,{variant:e,setSelectedVariant:n,isSelected:t===e,photoUrl:a},e))})}function X(e){let{variant:t,setSelectedVariant:n,isSelected:r,photoUrl:s}=e,l=(0,F.kE)({variant:t,width:32,height:32,backgroundImageSrc:s});return(0,o.jsxs)(U.az,{width:32,height:32,radius:"sm",cursor:"pointer",overflow:"hidden",sizing:"border-box",position:"relative",onClick:function(){n(t)},className:C()(z.swatchContainer,r&&z.selected),children:[(0,o.jsx)(U.az,{className:z.checkIconContainer,children:r&&(0,o.jsx)(k.A,{size:24})}),"css"===l.type?(0,o.jsx)(U.az,{height:32,width:32,sizing:"border-box",style:l.style}):(0,o.jsx)(T.o,{src:l.src,maxWidth:32,imageProps:(0,i._)((0,a._)({},l.imgProps),{height:32})})]})}let Q=(0,U.I4)({display:"flex",direction:"column",alignItems:"center",overflow:"hidden",paddingBottom:20});function $(e){let{aspectRatio:t,setAspectRatio:n}=e;return(0,o.jsx)(U.fI,{gap:8,borderBottom:"detail",padding:16,justifyContent:"center",children:Y.yo.map(e=>(0,o.jsx)(U.$n,{size:"sm",priority:t===e?"primary-mono":"secondary",onClick:()=>n(e),leading:"grid"===e?(0,o.jsx)(j.A,{size:20}):(0,o.jsx)(L.A,{size:20}),children:"grid"===e?"Grid":"Stories"},e))})}var ee=n(75840),et=n(94729),en=n(68349),ea=n(35369),ei=n(76977),er=n(49315),eo=n(19832),es=n(51177),el=n(48965),ec=n(52145),ed=n(504),eu=n(5180),ep=n(83629),em=n(46453),eh=n(2481),eg=n(16291),e_=n(56262),eb=n(70189),ef=n(82776),eA=n(57324),eE=n(44307);let ey=e=>{let{item:t,parentItem:n}=e;if(!t.comment&&!t.post)return null;let a=null;if("post"in t&&("post"===t.type||(null==n?void 0:n.type)==="post_reply"))a=t.post.id;else if((null==n?void 0:n.type)==="note_reply"){var i;let e=null==(i=t.parentComments[0])?void 0:i.id;e&&(a=e)}else a=t.comment.id;return a?{id:a,type:"post"in t&&("post"===t.type||(null==n?void 0:n.type)==="post_reply")?"post":"comment"}:null};function eN(e){var t,n,a,i,r,b,f;let{publication:E,post:M,comment:C,item:k,parentItem:j,allowHide:L=!1,size:R="sm"}=e,T=(0,el.d)(),{getConfigFor:P}=(0,S.mJ)(),U=(0,I.PK)(),G=(0,ee.T)(),F=(0,eu.wA)(),W=(0,eu.Ro)(),{iString:Y}=(0,v.GO)(),[K,V]=(0,A.useState)(!1),[z,q]=(0,A.useState)(!1),Z=(0,w.Jd)(),{openModal:X}=(0,x.hS)(),Q=null!=(b=null==C||null==(t=C.ancestor_path)?void 0:t.split(".").filter(Boolean).map(Number).map(e=>W.comments.get(e)))?b:[],$=C?(0,e_.getCommentAuthor)(C):E&&M?(0,e_.getPostAuthor)(E,M):{id:0,name:"void"},em=k&&"entity_key"in k?k.entity_key:void 0,eN=(0,N.bd)($,{surface:U,noteId:em,onClick(e){k&&(0,ed.Qb)(k,U,e,{tabId:G})}}),ev=(0,y.a2)({comment:C,publication:E,post:M,item:k}),ex=(0,O.A)($,U,em),eS=(0,B.st)({pathname:"/api/v1/comment/".concat(null!=(f=null==C?void 0:C.id)?f:0),method:"DELETE",json:{publication_id:null==E?void 0:E.id}}),ew=async()=>{if(!C||(V(!1),eS.isLoading))return;let e=await eS.refetch();e instanceof Error?alert((0,en.uX)(e)):(T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Note deleted"),Icon:s.A})),F({type:"comment_delete",payload:{publication:null!=E?E:void 0,post:null!=M?M:void 0,comment:C}}))},eI=(0,eh.NP)(),eM=async()=>{C&&eI.open({editComment:C,tabId:G,surface:U,editingUserId:null==Z?void 0:Z.id})},eC=k&&"post"===k.type&&k.mediaClip?k.mediaClip:void 0,ek=async(e,t)=>{await (0,et.x6)("/api/v1/comment/".concat(e.id,"/juice"),{method:"POST",json:{times_to_show:t}}),T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Juiced"),Icon:c.A})),q(!1)},ej=async(e,t)=>{let n,a=ey({item:e,parentItem:j});if(!a)return;switch(t){case"1hour":n=1;break;case"8hours":n=8;break;case"24hours":n=24}let i=n?{expires_at:(0,eg.A)().add(n,"hour").toISOString()}:{},{id:r,type:s}=a;await (0,et.x6)("/api/v1/notification_settings/".concat(s,"/").concat(r,"/mute"),{method:"POST",json:i}),F({type:"item_pause_notifications",payload:{entityKey:e.entity_key}}),T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Paused"),Icon:d.A}))},eL=async e=>{let t=ey({item:e,parentItem:j});if(!t)return;let{id:n,type:a}=t;await (0,et.x6)("/api/v1/notification_settings/".concat(a,"/").concat(n,"/mute"),{method:"DELETE"}),F({type:"item_unpause_notifications",payload:{entityKey:e.entity_key}}),T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Unpaused"),Icon:d.A}))},eR=async()=>{try{if(!C)return void T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Error starting workflow: comment not found")}));let{workflowId:e}=await (0,et.x6)("/api/v1/comment/".concat(C.id,"/workflow"),{method:"POST",json:{}});T.popToast(()=>(0,o.jsx)(el.y,{text:"Workflow started with id ".concat(e)}))}catch(e){T.popToast(()=>(0,o.jsx)(el.y,{text:"Error starting workflow: ".concat(e)}))}},eT=(0,B.st)({pathname:"/api/v1/video/assets/clips/".concat(null==eC?void 0:eC.id),method:"DELETE"}),eP=async()=>{if(!eC||eT.isLoading)return;let e=await eT.refetch();e instanceof Error?alert((0,en.uX)(e)):(T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Clip deleted"),Icon:s.A})),F({type:"clip_delete",payload:{mediaClip:eC,author:$}}))},eD=L&&k&&"entity_key"in k&&Z&&Z.id!==$.id,eB=Z&&Z.id===$.id,eU=Z&&!!(null==k||null==(n=k.post)?void 0:n.publishedBylines.find(e=>e.id===Z.id)),eG=Z&&(null==j?void 0:j.type)==="note_reply"&&(null==k||null==(a=k.parentComments[0])?void 0:a.user_id)===Z.id,eF=(eB||eU||eG)&&(null==k?void 0:k.type)&&["comment","post"].includes(k.type),eW=[(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(l.A,{}),onClick:()=>{let e={r:(0,ef.userReferralKey)(Z),utm_source:eA.VU.notesShareAction,utm_medium:eA.Jn.web},t=C?(0,H.Zgx)(C,{urlParams:e}):M?(0,H.q$n)(E,M,{mediaClip:eC,urlParams:e}):null;(0,en.lW)(t),T.popToast(()=>(0,o.jsx)(el.y,{text:Y("Copied link to clipboard"),Icon:l.A})),(0,D.u4)(D.qY.FEED_ITEM_SHARE_LINK_CLICKED,{type:"copy",shared_post_id:null==M?void 0:M.id,shared_comment_id:null==C?void 0:C.id})},children:Y("Copy link")}),!C&&M&&(0,o.jsx)(eO,{post:M}),...ex,C?(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(u.A,{}),onClick:()=>{X({children:(0,o.jsx)(J,{comment:C}),width:540})},children:Y("Save as image")}):null].filter(Boolean),eY=[(0,ef.canEditComment)(Z,C)&&(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(p.A,{}),onClick:eM,children:Y("Edit")}),C&&((null==Z?void 0:Z.is_global_admin)||(null==Z?void 0:Z.id)===C.user_id||P("show_note_stats_for_all_notes")||(0,ef.canManageCommentAsPrimaryUser)(Z,C))?(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(m.A,{}),href:(0,eb.Kg)(C,{noBase:ep.Z}),"data-native":!0,children:Y("View stats")}):null].filter(Boolean),eK=(null==k?void 0:k.type)&&["comment","post"].includes(k.type)&&W.mutedFeedItems.has(k.entity_key),eH=[eD&&(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(h.A,{}),onClick:async()=>{try{F({type:"item_hide",payload:{entityKey:k.entity_key}}),await (0,et.x6)("/api/v1/note/".concat(k.entity_key,"/hide"),{method:"POST",json:{tabId:G,surface:U}})}catch(e){T.popToast(()=>(0,o.jsx)(el.y,{text:(0,en.uX)(e)}))}},children:(Z.is_admin||Z.is_contributor)&&"post-page-restacks-list"===U?Y("Hide note from post"):Y("Hide note")}),eF&&(eK?(0,o.jsx)(ec.MI,{onClick:()=>eL(k),customLabel:Y("Unpause notifications")}):(0,o.jsx)(ec.DE,{onMute:e=>ej(k,e),customLabel:Y("Pause notifications")})),(null==Z?void 0:Z.is_global_admin)&&C&&(null==(r=C.attachments)||null==(i=r[0])?void 0:i.type)==="video"?(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(g.A,{}),priority:"secondary",onClick:eR,children:Y("Run workflow")}):null].filter(Boolean),eV=[...eN,ev,(0,ef.canDeleteComment)(Z,C,{pub:null!=E?E:void 0,parentComments:Q})&&(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(s.A,{}),priority:"destructive",onClick:()=>V(!0),children:Y("Delete")}),eC&&eB&&(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(s.A,{}),priority:"destructive",onClick:eP,children:Y("Delete this clip")}),(null==Z?void 0:Z.is_global_admin)&&C?(0,o.jsx)(er.Dr,{leading:(0,o.jsx)(c.A,{}),priority:"destructive",onClick:async()=>{q(!0)},children:Y("Juice")}):null].filter(Boolean),ez=[0!==eW.length&&eW,0!==eY.length&&(0,o.jsx)(er.H9,{children:eY}),0!==eH.length&&(0,o.jsx)(er.H9,{children:eH}),0!==eV.length&&(0,o.jsx)(er.H9,{children:eV})];return 0===ez.length?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ei.ov,{className:eE.A.moreButtonContainer,children:(0,o.jsx)(er.W1,{trigger:(0,o.jsx)(ea.K0,{priority:"quaternary",size:R,className:eE.A.moreButton,"aria-label":Y("More options"),children:(0,o.jsx)(_.A,{size:16})}),onOpen:()=>{k&&(0,ed.Qb)(k,U,"menu",{tabId:G})},children:ez})}),(0,o.jsx)(eo.m,{isOpen:K,title:Y("Delete note"),description:Y("Are you sure you want to permanently delete this note? This action cannot be undone."),primaryButton:(0,o.jsx)(ea.$n,{priority:"destructive",onClick:ew,children:Y("Delete")}),secondaryButton:(0,o.jsx)(ea.$n,{priority:"secondary",onClick:()=>V(!1),children:Y("Cancel")}),onClose:()=>V(!1)}),(null==Z?void 0:Z.is_global_admin)&&(0,o.jsx)(eo.m,{isOpen:z,title:Y("Juice note"),description:Y("How many additional impressions would you like this note to receive? 100 impressions equals roughly 1-3 likes."),primaryButton:(0,o.jsxs)(es.t7,{priority:"secondary-outline",size:"md",children:[(0,o.jsx)(es.gm,{onClick:async()=>{await ek(C,100)},children:"100"}),(0,o.jsx)(es.gm,{onClick:async()=>{await ek(C,500)},children:"500"}),(0,o.jsx)(es.gm,{onClick:async()=>{await ek(C,1e3)},children:"1000"})]}),secondaryButton:(0,o.jsx)(ei.pT,{flex:"grow",children:(0,o.jsx)(ea.$n,{priority:"secondary",onClick:()=>q(!1),children:Y("Cancel")})}),onClose:()=>q(!1)})]})}function eO(e){var{post:t}=e,n=(0,r._)(e,["post"]);let s=(0,w.Jd)(),{requireLogin:l}=(0,em.eE)(),c=ev(t),{iContext:d}=(0,v.GO)();return(0,o.jsx)(er.Dr,(0,i._)((0,a._)({leading:t.is_saved?(0,o.jsx)(b.A,{}):(0,o.jsx)(f.A,{}),onClick:()=>s?c():null==l?void 0:l({redirectOverride:(0,H.wu9)(null,t,{urlParams:{triggerSave:!0}})})},n),{children:t.is_saved?d("Unbookmark a post previously saved for later reading","Unsave"):d("Bookmark a post to read later","Save")}))}function ev(e){let t=(0,eu.wA)(),n=(0,E.ib)();return()=>{let a=e.id,i=!e.is_saved;(0,E.E0)(a,i,{surface:"reader"}),n(i),t({type:"post_save",payload:{postId:a,isSaved:i}})}}},53906:function(e,t,n){n.d(t,{q:()=>b});var a=n(69277),i=n(74848),r=n(96540),o=n(8853),s=n(84565),l=n(86500),c=n(82772),d=n(89490),u=n(18540),p=n(63136),m=n(2548),h=n(49807),g=n(77505);function _(e){let{topic:t,useRecentSearch:n}=e,{query:a,title:r,photoUrl:o}=t,s=(0,h.k5Q)({query:a,utm_source:"trending-topics",fromSuggestedSearch:!0,searching:n?"recent":"top"});return(0,i.jsxs)(m.I1,{position:"relative",height:220,className:g.A.featuredTopicContainer,style:{backgroundImage:"url(".concat(o,")")},radius:"md",justifyContent:"end",as:"a",href:s,children:[(0,i.jsx)("div",{className:g.A.featuredTopicGradient}),(0,i.jsx)(p.EY.H4,{zIndex:1,weight:"heavy",padding:16,color:"white",children:r})]})}function b(e){let{item:t}=e,{getExperimentVariant:n}=(0,s.NQ)(),a="treatment"===n("web_suggested_search_route_recent_search");return(0,i.jsxs)(m.I1,{gap:16,paddingBottom:16,children:[t.featuredTopic&&(0,i.jsx)(_,{topic:t.featuredTopic,useRecentSearch:a}),(0,i.jsx)(m.I1,{gap:12,paddingX:16,children:t.suggestedSearches.map((e,t)=>(0,i.jsxs)(r.Fragment,{children:[0!==t&&(0,i.jsx)(u.c,{}),(0,i.jsx)(f,{topic:e,surface:"explore",padding:0,useRecentSearch:a})]},e.query))})]})}function f(e){let{topic:t,trackingParameters:n,surface:s,useRecentSearch:u,padding:_=8}=e,{query:b,description_parts:f,photoUrl:A}=t,E=(0,r.useRef)(null),y=(0,h.k5Q)({query:b,utm_source:"trending-topics",fromSuggestedSearch:!0,searching:u?"recent":"top"});return(0,c.S8)(E,()=>{(0,l.u4)(l.qY.TRENDING_TOPIC_SEEN,{trending_topic_id:t.id,query:t.query,surface:s,is_hero:!1})}),(0,i.jsxs)(m.Ye,{className:g.A.trendingTopic,ref:E,as:"a",alignItems:"center",gap:12,radius:"md",padding:_,href:y,onClick:()=>(0,l.u4)(l.qY.FEED_MODULE_ITEM_CLICKED,(0,a._)({module:"trending_topics",clicked_element:t.query,trending_topic_id:t.id,surface:s},n)),children:[(0,i.jsx)(d.az,{flex:"grow",minWidth:0,children:f.map((e,t)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.EY.B3,{as:"span",weight:0===t?"medium":void 0,color:0===t?"primary":"secondary",children:e})," "]}))}),A&&(0,i.jsx)(d.az,{display:"flex",flex:"auto",outline:"detail",radius:"sm",overflow:"hidden",userSelect:"none",children:(0,i.jsx)(o.c,{src:A,draggable:!1,width:"explore"===s?56:48,height:"explore"===s?56:48})})]})}},27332:function(e,t,n){n.d(t,{GZ:()=>V,Iz:()=>G,LY:()=>j,X6:()=>K,j6:()=>C,jS:()=>L,l8:()=>R});var a=n(69277),i=n(70408),r=n(74848),o=n(75107);n(58050);var s=n(84605),l=n(85478),c=n(46271);n(98518);var d=n(27749),u=n(22879),p=n(80520),m=n(77405),h=n(25859),g=n(58292),_=n(89490),b=n(35369),f=n(76977),A=n(49315),E=n(63136),y=n(504),N=n(83629),O=n(85050),v=n(16884),x=n(49095),S=n(16291),w=n(75914),I=n(49807),M=n(57324);let C=["post_like","post_restack","comment_like"],k=["search","note-related","profile","publication","permalink"];function j(e){let{author:t,post:n,comment:a,onClick:i,utm_content:o,publication:s,item:h,allowHide:g=!1,timestamp:_,hideSubscribeCta:b,onDismiss:A}=e,E=(0,d.PK)(),y=_||(null==a?void 0:a.date)||(null==n?void 0:n.post_date),N=(0,c.Jd)(),O=N&&A&&t.id!==N.id&&((null==h?void 0:h.type)==="post"||(null==h?void 0:h.type)==="comment"),v=k.includes(E),x=!!(0,l.mJ)().getConfigFor("feed_item_source_debug_mode"),S=x&&h&&"trackingParameters"in h,I=!b&&t&&h&&!v;return(0,r.jsxs)(K,{children:[(0,r.jsxs)(H,{children:[(0,r.jsx)(T,{user:t,onClick:i,utm_content:o}),y&&(0,r.jsx)(G,{timestamp:y,comment:a}),x&&h&&(0,r.jsx)(F,{item:h,showEntityKey:!0,showDebugDot:null!=S&&S})]}),I&&(0,r.jsx)(P,{author:t,item:h,comment:null!=a?a:void 0,post:null!=n?n:void 0,publication:null!=s?s:void 0}),h&&(0,w.tL)(h,a)&&"post"===h.type&&n&&s&&(0,r.jsx)(p.N,{item:h,pub:s,post:n}),(0,r.jsxs)(f.pT,{maxHeight:20,gap:6,alignItems:"center",children:[(0,r.jsx)(m.s,{publication:s,post:n,comment:a,item:h,allowHide:g}),O&&(0,r.jsx)(u.R,{onDismiss:A,item:h})]})]})}function L(e){let{user:t,setTargetUser:n,eligibleTargetUsers:a,targetUser:i}=e;return(0,r.jsx)(K,{children:(0,r.jsx)(H,{children:(0,r.jsx)(A.W1,{trigger:(0,r.jsx)(b.$n,{priority:"quaternary",size:"sm",color:"primary",trailing:(0,r.jsx)(o.A,{size:16}),children:(0,r.jsx)(R,{user:null!=i?i:t})}),children:a.map(e=>(0,r.jsx)(A.Dr,{onClick:()=>{e.id===t.id?n(null):n(e)},children:e.name},e.id))})})})}function R(e){let{user:t}=e;return(0,r.jsx)(K,{children:(0,r.jsxs)(H,{children:[(0,r.jsx)(E.EY,{as:"span",weight:"medium",children:t.name}),(0,r.jsx)(x.UserStatusSymbols,{status:t.status,userId:t.id,size:"xs"})]})})}function T(e){let{user:t,onClick:n,utm_content:a}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(E.EY.B3,{as:"span",weight:"medium",children:[(0,r.jsx)(h.yp,{user:t,onClick:n,utm_source:M.VU.substackFeedItem,utm_content:a,children:t.name})," ",(0,r.jsx)(x.UserStatusSymbols,{tier:t.bestseller_tier,status:t.status,userId:t.id,inline:!0,size:"xs"})]})})}function P(e){let{author:t,comment:n,post:a,item:i,permalink:o,publication:s}=e,{finalPublication:l,isSubscribed:c,showCta:d,handleClick:u,currentUser:p}=V({targetUser:t,item:i,comment:n,post:a,publication:s});return(!p||p.id!==t.id)&&l&&d?(0,r.jsx)(o?B:D,{isSubscribed:c,onClick:u}):null}function D(e){let{isSubscribed:t,onClick:n}=e,{iString:a}=(0,s.GO)();return(0,r.jsx)(b.$n,{priority:t?"quaternary":"tertiary-accent",size:"xs",onClick:n,children:a(t?"Subscribed":"Subscribe")})}function B(e){let{isSubscribed:t,onClick:n}=e,{iString:a}=(0,s.GO)();return(0,r.jsx)(b.$n,{priority:t?"quaternary":"primary",size:"sm",onClick:n,children:a(t?"Subscribed":"Subscribe")})}let U=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"});function G(e){let{timestamp:t,comment:n,post:a,publication:i}=e;return(0,r.jsx)(h.Yq,{href:n?(0,I.Zgx)(n,{noBase:N.Z}):a?(0,I.q$n)(i,a):void 0,color:"secondary",title:U.format((0,S.A)(t).toDate()),children:(0,r.jsx)(g.iE,{timestamp:t})})}function F(e){let{item:t,showEntityKey:n,showDebugDot:a}=e;return(0,r.jsxs)(f.pT,{flex:"grow",gap:4,alignItems:"center",justifyContent:"end",children:[n&&(0,r.jsx)(W,{item:t}),a&&(0,r.jsx)(Y,{item:t})]})}function W(e){let{item:t}=e;return"entity_key"in t?(0,r.jsx)(E.EY.B4,{as:"span",color:"secondary",children:t.entity_key}):null}function Y(e){var t;let n,a,{item:i}=e,{iString:o}=(0,s.GO)(),l=null==(t=i.trackingParameters)?void 0:t.item_source;return l?"model"===l?(n="accent-green",a="Model"):l.includes("db")?(n="accent-blue",a="DB"):l.includes("new-user")?(n="accent-purple",a="New user"):l.includes("trending")?(n="accent-red",a="Trending"):(n="tertiary",a="Other"):(n="accent-yellow",a="No source info"),(0,r.jsx)("span",{children:(0,r.jsx)(_.az,{height:8,width:8,radius:"full",bg:n,color:"secondary",title:o(a)})})}let K=(0,_.I4)((0,i._)((0,a._)({},E.nS),{display:"flex",minWidth:0,gap:8,alignItems:"center",height:20}));(0,_.I4)((0,i._)((0,a._)({},E.nS),{display:"flex",minWidth:0,gap:12,alignItems:"center"}));let H=(0,_.I4)({display:"flex",flex:"grow",minWidth:0,gap:8,alignItems:"center"});function V(e){var t,n;let{targetUser:a,item:i,comment:r,post:o,publication:s}=e,l=(0,c.Jd)(),u=(0,d.PK)(),p=r?"comment":o?"post":void 0,m=null!=(n=null!=(t=null==r?void 0:r.id)?t:null==o?void 0:o.id)?n:0,h=p?(0,I.Vvu)(m,p):void 0,g=null!=s?s:null==a?void 0:a.primary_publication,_=(0,O.s)({surface:"substack-feed-item"})(g),b=(0,v.Zm)({user:a,publicationId:null==g?void 0:g.id,publicationName:null==g?void 0:g.name,subscriptionSource:"substack-feed-item",sourceNoteId:h});return{finalPublication:g,isSubscribed:b.isSubscribed,showCta:b.showCta,handleClick:e=>{i&&(0,y.Qb)(i,u,"subscribe"),!l&&g?_(e):b.isSubscribed?b.unsubscribe(e):b.subscribe(e)},currentUser:l}}},46660:function(e,t,n){n.d(t,{P:()=>m});var a=n(74848),i=n(32485),r=n.n(i),o=n(27437),s=n(84777),l=n(46271),c=n(28700);let d="mention-LUD0tW",u="self-ZrvJW0",p="unstyled-ydOSZ0";function m(e){let{id:t,label:n,type:i,url:r,unstyled:o}=e;return(0,a.jsx)("span",{className:"node-substack_mention",children:"pub"===i?(0,a.jsx)(g,{id:t,url:r,label:n,unstyled:o}):(0,a.jsx)(h,{id:t,label:n,unstyled:o})})}function h(e){let{id:t,label:n,unstyled:i}=e,s=(0,l.Jd)(),m=s&&s.id===t;return(0,a.jsx)(o.ProfileHoverCard,{subject:{id:t,name:n},trigger:(0,a.jsx)("a",{className:r()(d,m&&u,i&&p),href:(0,c.rf)(t,n),children:n})})}function g(e){let{id:t,url:n,label:i,unstyled:o}=e,c=(0,l.Jd)(),m=c&&c.id===t;return(0,a.jsx)(s.m,{pubId:t,trigger:(0,a.jsx)("a",{className:r()(d,m&&u,o&&p),href:n,children:i})})}},78479:function(e,t,n){n.d(t,{DP:()=>C,_3:()=>J});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(83673),c=n.n(l),d=n(69308),u=n(87332),p=n(96540),m=n(38305),h=n(96790),g=n(2675),_=n(39520),b=n(62076),f=n(56804),A=n(89490),E=n(76977),y=n(63136),N=n(83629),O=n(72104),v=n(95951),x=n(18947),S=n(82776),w=n(26620);let I={name:"DarkMuted",alignment:"left"},M=(0,p.createContext)({preferredTheme:I,setPreferredTheme:()=>{}});function C(e){var t,n,o;let{attachment:s,readOnly:l,onClick:c,onSavePostClick:d,onThemeChange:u,isPermalink:m,isComposing:h,isRestack:g,noRadius:_,lineClamp:b="dynamic",fillHeight:f}=e,{preferredTheme:A,setPreferredTheme:y}=J(),{postSelection:N,post:v,publication:x,postSelectionTheme:S}=s,[M,C]=(0,p.useState)(null!=S?S:h?A:I),L=N.text.length<100,R=null!=(t=v.coverImagePalette)?t:null,T=e=>{let{name:t,alignment:n}=e,a={name:null!=t?t:M.name,alignment:null!=n?n:M.alignment};y(a),C(a),null==u||u(a)},G=q(M.name,{size:{width:520},palette:R,coverImage:null!=(n=v.cover_image)?n:void 0}),F=Object.keys(O.D.image).includes(M.name),W=Object.keys(O.D.basic).includes(M.name),Y="blurredImage"===M.name,K="tintedImageVibrant"===M.name||"tintedImageMuted"===M.name,H=W?"1.0":.6;return(0,r.jsxs)(E.I1,{gap:4,paddingTop:g?4:void 0,flex:f?"grow":void 0,children:[(0,r.jsx)(k,{readOnly:l,onClick:c,publication:x,post:v,postSelection:N,className:W?"":w.A.themed,isRestack:g,noRadius:_,fillHeight:f,children:(0,r.jsx)(j,{text:N.text,isShort:L,isImage:F,isBasic:W,publication:x,post:v,onSavePostClick:d,palette:R,alignment:M.alignment,isPermalink:m,isComposing:h,isRestack:g,lineClamp:b,fillHeight:f,children:F?K?(0,r.jsx)(B,{style:G||void 0,palette:R,themeName:M.name}):(0,r.jsx)(D,{style:G||void 0,className:Y?w.A.blurred:void 0}):(0,r.jsx)(P,{style:(0,i._)((0,a._)({},G),{"--backdrop-opacity":"".concat(H)})})})}),h&&(0,r.jsx)(U,{palette:R,onColorSelect:e=>T({name:e}),onAlignmentSelect:e=>T({alignment:e}),selectedColorKey:M.name,coverImage:null!=(o=v.cover_image)?o:void 0,alignment:M.alignment})]})}function k(e){let{readOnly:t,onClick:n,publication:a,post:i,postSelection:o,children:l,className:c,isRestack:d,noRadius:u,fillHeight:p}=e,m=t?void 0:(0,x.wu)(a,i,{feedViewer:!1,urlParams:{selection:o.id}});return(0,r.jsx)(E.I1,{className:s()(w.A.container,c),as:t?"div":"a",position:"relative",onClick:e=>{n&&n(),N.Z&&!t&&(0,f.o)(e,(0,x.wu)(a,i,{noBase:!0,feedViewer:!0,urlParams:{selection:o.id}}))},href:m,draggable:!1,showFocus:!0,animate:!0,radius:u?void 0:d?"sm":"md",overflow:"hidden",flex:p?"grow":void 0,children:l})}function j(e){let{text:t,isShort:n,isImage:a,isBasic:i,palette:o,publication:l,post:c,onSavePostClick:d,alignment:u,children:p,isPermalink:m,isComposing:h,isRestack:g,lineClamp:_,fillHeight:b}=e;return(0,r.jsxs)(E.I1,{padding:20,zIndex:1,className:s()(w.A.header,m&&w.A.permalink,g&&w.A.restack),justifyContent:"space-between",gap:24,flex:b?"grow":void 0,children:[p,(0,r.jsx)(R,{text:t,isShort:n,isImage:a,isVibrant:!i,alignment:u,lineClamp:_}),(0,r.jsx)(T,{publication:l,post:c,onSavePostClick:d,isVibrant:!i,palette:o,isComposing:h})]})}let L=[{minLines:12,truncateTo:8},{minLines:16,truncateTo:12}];function R(e){let{text:t,isShort:n,isImage:a,isVibrant:i,alignment:o="left",lineClamp:l}=e,[c,d]=(0,p.useState)(!1),u="dynamic"===l&&!c,{truncatedText:m,measureRef:g,lineCount:b}=(0,_.L)({text:t,truncationRules:u?L:[],ellipsesText:"... See more"}),f=t!==m&&!c,N=s()(w.A.text,n&&w.A.short,a&&w.A.imageText,4===l&&w.A["lineClamp-4"],6===l&&w.A["lineClamp-6"]);return(0,r.jsxs)(E.I1,{gap:12,justifyContent:"center"===o?"center":"start",alignItems:"center"===o?"center":"start",flex:"grow",children:[(0,r.jsx)(h.A,{color:i?"var(--color-utility-white)":"var(--color-fg-tertiary)"}),(0,r.jsxs)(A.az,{position:"relative",children:[(0,r.jsx)(y.EY,{font:"serif",color:i?"vibrance-primary":"primary",className:N,align:o,children:f?(0,r.jsxs)(r.Fragment,{children:[(0,S.formatEllipsis)(m,"... "),(0,r.jsx)(y.EY,{translated:!0,as:"span",font:"serif",color:i?"vibrance-secondary":"secondary",weight:"medium",cursor:"pointer",onClick:e=>{b&&b<=16&&(e.preventDefault(),e.stopPropagation(),d(!0))},children:"See more"})]}):t}),u&&(0,r.jsx)("div",{ref:g,className:N,style:{visibility:"hidden",position:"absolute",width:"100%",fontFamily:"var(--font-family-serif)",textAlign:"center"===o?"center":"left"}})]})]})}function T(e){var t;let{publication:n,post:a,palette:i,onSavePostClick:o,isVibrant:s,isComposing:l}=e,c=0===(t=a).publishedBylines.length?null:(0,r.jsx)(m.K,{array:t.publishedBylines,limit:3,formatter:e=>e.name}),d=null!=c?c:n.name;return(0,r.jsxs)(E.Ye,{gap:8,alignItems:"center",minWidth:0,height:20,children:[(0,r.jsx)(y.EY.B4,{weight:"regular",color:s?"vibrance-secondary":"secondary",ellipsis:!0,nowrap:!0,flex:"grow",decoration:"hover-underline",children:d}),!l&&o&&(0,r.jsx)(g.xr,{post:a,palette:i&&s?i:null,onSavePostClick:o,className:w.A.saveButton})]})}function P(e){let{style:t,className:n,children:a}=e;return(0,r.jsx)(A.az,{style:t,className:s()(w.A.backdrop,n),children:a})}function D(e){let{style:t,className:n}=e;return(0,r.jsx)(P,{className:w.A.faded,children:(0,r.jsx)(A.az,{style:t,className:s()(w.A.imageBackdrop,n)})})}function B(e){let{style:t,className:n,palette:a,themeName:i}=e,o=(0,g.Uo)(a||null,"tintedImageVibrant"===i?"DarkVibrant":"DarkMuted");return(0,r.jsxs)(P,{className:w.A.faded,children:[(0,r.jsx)(A.az,{style:t,className:s()(w.A.imageBackdrop,w.A.tinted,n)}),(0,r.jsx)(A.az,{style:o,className:w.A.tint})]})}function U(e){let{palette:t,selectedColorKey:n,coverImage:a,alignment:i,onColorSelect:o,onAlignmentSelect:s}=e;return(0,r.jsxs)(E.Ye,{justifyContent:"space-between",alignItems:"center",bg:"primary",cursor:"default",onClick:e=>e.stopPropagation(),gap:20,paddingTop:8,paddingBottom:16,height:28,children:[(0,r.jsx)(G,{palette:t,onColorSelect:o,selectedColorKey:n,coverImage:a}),(0,r.jsx)(F,{alignment:i,onAlignmentSelect:s})]})}function G(e){let{palette:t,onColorSelect:n,selectedColorKey:a,coverImage:i}=e,o=(0,O.k)({coverImage:i,palette:null!=t?t:void 0}),s=c()(o.map(e=>{let n=q(e,{size:{width:26,height:28},palette:t,coverImage:i});return n?{key:e,style:n}:null}));return(0,r.jsx)(W,{children:s.map(e=>{let{key:i,style:o}=e;return(0,r.jsx)(Y,{swatchKey:i,style:o,isSelected:a===i,onClick:e=>{e.preventDefault(),e.stopPropagation(),n(i)},palette:t})})})}function F(e){let{alignment:t,onAlignmentSelect:n}=e,a=v.zr;return(0,r.jsx)(W,{children:a.map(e=>(0,r.jsx)(V,{alignment:e,onClick:()=>n(e),isSelected:t===e}))})}function W(e){let{children:t}=e;return(0,r.jsx)(E.Ye,{gap:8,className:w.A.swatchesContainer,children:t})}function Y(e){let{swatchKey:t,style:n,palette:a,isSelected:i,onClick:o}=e;return t in O.D.image?(0,r.jsx)(K,{swatchKey:t,style:n,onClick:o,isSelected:i,palette:a}):(0,r.jsx)(H,{swatchKey:t,style:n,onClick:o,isSelected:i})}function K(e){let{swatchKey:t,style:n,onClick:a,isSelected:i,palette:o}=e,l="blurredImage"===t,c="tintedImageVibrant"===t||"tintedImageMuted"===t,d=(0,g.Uo)(o||null,"tintedImageVibrant"===t?"DarkVibrant":"DarkMuted");return(0,r.jsxs)(z,{isSelected:i,children:[(0,r.jsx)(A.az,{onClick:a,width:28,height:28,title:t,flex:"auto",className:s()(w.A.swatch,i&&w.A.selected,l&&w.A.blurred,c&&w.A.tinted),style:n},t),c&&(0,r.jsx)(A.az,{style:d,className:w.A.tint})]})}function H(e){var t;let{swatchKey:n,style:a,onClick:i,isSelected:o}=e;return(0,r.jsx)(z,{isSelected:o,children:(0,r.jsx)(A.az,{onClick:i,width:28,height:28,title:(t=n,"Theme ".concat(t)),style:a},n)})}function V(e){var t;let{alignment:n,onClick:a,isSelected:i}=e,o=i?"var(--color-fg-primary)":"var(--color-fg-secondary)";return(0,r.jsx)(z,{isSelected:i,className:w.A.alignmentSwatchContainer,children:(0,r.jsx)(E.pT,{onClick:a,title:(t=n,"Align ".concat(t)),children:"left"===n?(0,r.jsx)(d.A,{stroke:o,size:16}):(0,r.jsx)(u.A,{stroke:o,size:16})},n)})}function z(e){let{isSelected:t,children:n,className:a}=e;return(0,r.jsx)(E.pT,{width:28,height:28,radius:"sm",outline:"detail",flex:"auto",cursor:"pointer",overflow:"hidden",sizing:"border-box",position:"relative",alignItems:"center",justifyContent:"center",animate:!0,className:s()(w.A.swatchContainer,t&&w.A.selected,a),tabIndex:0,children:n})}function q(e,t){let{size:n,palette:a,coverImage:i}=t;if(e in O.D.basic)return{background:O.D.basic[e]};if(e in O.D.custom)return{background:"linear-gradient(180deg, ".concat(O.D.custom[e],", ").concat(O.D.custom[e],"), var(--color-dark-bg-primary)")};if(e in O.D.image){if(!i)return;return{backgroundImage:(0,b.k)(i,n),backgroundSize:"cover",backgroundPosition:"center"}}return(0,g.Uo)(a||null,e)}function J(){let e=(0,p.useContext)(M);if(!e)throw Error("useQuotePreferences must be used within QuotePreferencesProvider");return e}},75840:function(e,t,n){n.d(t,{P:()=>i,T:()=>r});var a=n(96540);let i=(0,a.createContext)(void 0);function r(){return(0,a.useContext)(i)}},16267:function(e,t,n){n.d(t,{c:()=>r});var a=n(74848),i=n(44307);function r(e){let{children:t}=e;return(0,a.jsx)("div",{className:i.A.variables,children:t})}},94328:function(e,t,n){n.d(t,{LM:()=>b,b_:()=>A,u8:()=>f});var a=n(74848),i=n(87677),r=n(96540),o=n(32999),s=n(84605),l=n(27749),c=n(2675),d=n(67024),u=n(75840),p=n(68349),m=n(75303),h=n(81929),g=n(504),_=n(8791);let b=()=>{let{iString:e}=(0,s.GO)();return(0,a.jsx)(h.vw,{theme:"error",priority:"primary",className:_.A.livePill,children:e("LIVE")})},f=e=>{let{viewerCount:t,onClick:n}=e;return(0,a.jsx)(h.Jq,{priority:"primary",leading:(0,a.jsx)(o.A,{size:18}),onClick:n,children:(0,d.q)(t)})},A=e=>{let{item:t,pub:n,post:o,onViewEpisodeClick:d}=e,{iString:m}=(0,s.GO)(),_=(0,c.vZ)({post:o,publication:n,urlParams:{autoPlay:"true"}}),b=(0,l.PK)(),f=(0,r.useContext)(u.P);return(0,a.jsx)(h.Jq,{priority:"primary",onClick:e=>{null===p.dO||void 0===p.dO||p.dO.emit("play",{}),t&&(0,g.Qb)(t,b,"watch_full_episode",{tabId:f}),null==d||d(),_(e)},trailing:(0,a.jsx)(i.A,{size:16}),children:m("View full episode")})};(0,m.I4)({display:"flex",direction:"row",gap:8,alignItems:"center",className:_.A.viewerCountContainer})},27749:function(e,t,n){n.d(t,{LH:()=>o,PK:()=>s});var a=n(74848),i=n(96540);n(78479),n(5180),n(68391),n(46453),n(2481),n(62088);let r=(0,i.createContext)("feed");function o(e){let{surface:t,children:n}=e;return(0,a.jsx)(r.Provider,{value:t,children:n})}function s(){return(0,i.useContext)(r)}},3228:function(e,t,n){n.d(t,{k:()=>h});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(96540),l=n(30193),c=n(97044),d=n(84605),u=n(46357),p=n(82959),m=n(85013);let h=(0,s.forwardRef)((e,t)=>{var{count:n,className:s,onClick:h,disabled:g,replyRequirement:_,priority:b="secondary"}=e,f=(0,r._)(e,["count","className","onClick","disabled","replyRequirement","priority"]);let{iString:A}=(0,d.GO)(),E=(0,p.kS)(b);return(0,o.jsx)(u.V,(0,i._)((0,a._)({priority:b,className:s,onClick:h,count:n,disabled:g,tooltip:function(e){let{iString:t}=(0,d.GO)();return"paid_subscriber"===e?t("Only paid subscribers can reply."):"free_subscriber"===e?t("Only subscribers can reply."):void 0}(_),"aria-label":A("Comment"),ref:t},f),{children:_?(0,o.jsx)(c.A,{size:E,className:m.A.lockedIcon}):(0,o.jsx)(l.A,{size:E})}))})},48226:function(e,t,n){n.d(t,{c:()=>g});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(84605),u=n(46357),p=n(83269),m=n(71836),h=n(54409);let g=(0,c.forwardRef)((e,t)=>{var{count:n,className:s,onClick:c,active:g,disabled:_,priority:b="secondary"}=e,f=(0,r._)(e,["count","className","onClick","active","disabled","priority"]);let{iString:A}=(0,d.GO)(),[E,y]=(0,p.a)(c);return(0,o.jsx)(u.V,(0,i._)((0,a._)({priority:b,className:l()(s,g&&h.A.active),onClick:y,count:n,disabled:_,"aria-label":A("Like"),ref:t},f),{children:(0,o.jsx)(m.S,{isLiked:null!=g&&g,clickedOnce:E,priority:b})}))})},82634:function(e,t,n){n.d(t,{Q:()=>h});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(84605),u=n(46357),p=n(68838),m=n(90095);let h=(0,c.forwardRef)((e,t)=>{var{count:n,className:s,onClick:c,active:h,disabled:g,priority:_="secondary"}=e,b=(0,r._)(e,["count","className","onClick","active","disabled","priority"]);let{iString:f}=(0,d.GO)();return(0,o.jsx)(u.V,(0,i._)((0,a._)({priority:_,className:l()(s,h&&m.A.active),onClick:c,count:n,disabled:g,"aria-label":f("Restack"),ref:t},b),{children:(0,o.jsx)(p.U,{isRestacked:null!=h&&h,priority:_})}))})},52347:function(e,t,n){n.d(t,{H:()=>d});var a=n(74848),i=n(46271),r=n(75840),o=n(82634),s=n(49315),l=n(46453),c=n(28916);function d(e){let{pub:t,post:n,comment:d,feedItem:u,onOpen:p,onRestack:m,disabled:h,surface:g,priority:_}=e,b=(0,i.Jd)(),f=(0,r.T)(),{requireLogin:A}=(0,l.eE)(),{canRestack:E,isRestacked:y,restacks:N,menuItems:O,nuxModal:v}=(0,c.I)({pub:t,post:n,comment:d,feedItem:u,onRestack:m,tabId:f,surface:g});return b?(0,a.jsxs)(a.Fragment,{children:[v,(0,a.jsx)(s.W1,{trigger:(0,a.jsx)(o.Q,{count:N,active:y,disabled:h||!E,priority:_}),onOpen:()=>null==p?void 0:p(y),children:O})]}):(0,a.jsx)(o.Q,{count:N,active:y,onClick:()=>null==A?void 0:A(),priority:_})}},99978:function(e,t,n){n.d(t,{w:()=>p});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(96540),l=n(85059),c=n(84605),d=n(46357),u=n(82959);let p=(0,s.forwardRef)((e,t)=>{var{count:n,className:s,onClick:p,disabled:m,priority:h="secondary"}=e,g=(0,r._)(e,["count","className","onClick","disabled","priority"]);let{iString:_}=(0,c.GO)(),b=(0,u.kS)(h);return(0,o.jsx)(d.V,(0,i._)((0,a._)({className:s,onClick:p,count:n,disabled:m,"aria-label":_("Share"),ref:t,priority:h},g),{children:(0,o.jsx)(l.A,{size:b})}))})},86998:function(e,t,n){n.d(t,{Qk:()=>o,St:()=>r,um:()=>i});var a=n(96540);function i(e){let{fileType:t}=e;return t.startsWith("image/")}function r(e){let{fileType:t}=e;return t.startsWith("video/")}function o(e){let t=function(e){let{onAddFiles:t,acceptFile:n}=e,i=(0,a.useRef)(),r=(0,a.useRef)(),[o,s]=(0,a.useState)(!1),l=e=>Array.from(e.items).filter(e=>"file"===e.kind&&n({fileType:e.type})),c=e=>l(e).length>0,d=e=>{let{current:t}=r;t&&t===e.target&&(r.current=void 0,s(!1))};return{isDragging:o,props:{onDragEnter:e=>{let{current:t}=i,{target:n}=e;t&&n&&n instanceof HTMLElement&&(t===n||t.contains(n))&&e.dataTransfer&&(c(e.dataTransfer)||0===e.dataTransfer.items.length)&&(e.preventDefault(),r.current=n,s(!0))},onDragOver:e=>{r.current&&e.preventDefault()},onDragLeave:d,onDragEnd:d,onDrop:e=>{e instanceof globalThis.DragEvent&&!e.defaultPrevented&&e.dataTransfer&&c(e.dataTransfer)&&0!==l(e.dataTransfer).length&&(e.preventDefault(),t(Array.from(e.dataTransfer.files)),s(!1),r.current=void 0)},ref:i}}}(e),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let{props:{onDragEnter:e,onDragOver:a,onDragLeave:i,onDragEnd:r,onDrop:o}}=t,s=document.body;t.props.ref.current=s;let l={dragenter:t=>{n.current||(n.current=!0,e(t))},dragover:a,dragleave:e=>{n.current&&(e.clientX<=0||e.clientX>=window.innerWidth||e.clientY<=0||e.clientY>=window.innerHeight)&&(n.current=!1,i(e))},dragend:e=>{n.current&&(n.current=!1,r(e))},drop:e=>{n.current&&(n.current=!1,o(e))}};for(let[e,t]of Object.entries(l))s.addEventListener(e,t);return()=>{for(let[e,t]of Object.entries(l))s.removeEventListener(e,t)}},[]),t}},43294:function(e,t,n){n.d(t,{X:()=>i});var a=n(96540);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,a.useRef)(e);return(0,a.useEffect)(()=>{var e;null==(e=t.current)||e.focus()},[]),t}},92905:function(e,t,n){n.d(t,{a:()=>r});var a=n(96540),i=n(86500);function r(e){let t=(0,a.useRef)(Date.now()),n=(0,a.useRef)(new Set),r=(0,a.useCallback)(a=>{if(!e)return;let r=a.currentTarget,o=r.name;!r.value||n.current.has(o)||Date.now()-t.current<1e3||(n.current.add(o),(0,i.u4)("".concat(e," Input Filled"),{name:o}))},[e]);return{trackInputFilled:r,trackSubmitPressed:(0,a.useCallback)(()=>{e&&(0,i.u4)("".concat(e," Submit Pressed"))},[e]),trackError:(0,a.useCallback)(t=>{if(!e)return;let n="Something went wrong";if(t instanceof Error){var a,r;n=(null==(a=t.body)?void 0:a.errors)?JSON.stringify(t.body.errors):(null==(r=t.body)?void 0:r.error)?t.body.error:t.message}(0,i.u4)("".concat(e," Error"),{error:n})},[e])}}},83137:function(e,t,n){n.d(t,{U:()=>o});var a=n(7350),i=n.n(a),r=n(96540);let o=e=>{let{idleAfter:t=3e3,element:n}=e,[a,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e,a=null!=n?n:window,r=()=>{o(!0)},s=i()(()=>{o(!1),clearTimeout(e),e=setTimeout(r,t)},500),l=()=>{document.hidden||s()};return e=setTimeout(r,t),a.addEventListener("mousemove",s),a.addEventListener("mousedown",s),a.addEventListener("resize",s),a.addEventListener("keydown",s),a.addEventListener("touchstart",s),a.addEventListener("wheel",s),n||document.addEventListener("visibilitychange",l),()=>{a.removeEventListener("mousemove",s),a.removeEventListener("mousedown",s),a.removeEventListener("resize",s),a.removeEventListener("keydown",s),a.removeEventListener("touchstart",s),a.removeEventListener("wheel",s),n||document.removeEventListener("visibilitychange",l),clearTimeout(e)}},[n,t]),{isIdle:a}}},26289:function(e,t,n){n.d(t,{By:()=>r,sY:()=>o,yr:()=>i});var a=n(96540);let i=e=>{var t,n;let i=null==e||null==(t=e.current)?void 0:t.player,[r,o]=(0,a.useState)("number"==typeof(null==i?void 0:i.currentTime)?i.currentTime:0),[s,l]=(0,a.useState)(!!i&&!i.paused);return(0,a.useEffect)(()=>{var t;let n=null==(t=e.current)?void 0:t.player;if(n){let e=e=>{"number"==typeof e.target.currentTime&&o(e.target.currentTime)},t=()=>l(!0),a=()=>l(!1),i=()=>l(!1);return n.addEventListener("timeupdate",e),n.addEventListener("play",t),n.addEventListener("pause",a),n.addEventListener("ended",i),n.paused||s||l(!0),()=>{n.removeEventListener("timeupdate",e),n.removeEventListener("play",t),n.removeEventListener("pause",a),n.removeEventListener("ended",i)}}},[null==e||null==(n=e.current)?void 0:n.player]),{currentTime:r,isPlaying:s}},r=e=>o(e.current),o=e=>{let t=null==e?void 0:e.player,[n,i]=(0,a.useState)(!!t&&!t.paused);return(0,a.useEffect)(()=>{let t=null==e?void 0:e.player;if(t){let e=()=>i(!0),a=()=>i(!1),r=()=>i(!1);return t.addEventListener("play",e),t.addEventListener("pause",a),t.addEventListener("ended",r),t.paused||n||i(!0),()=>{t.removeEventListener("play",e),t.removeEventListener("pause",a),t.removeEventListener("ended",r)}}},[null==e?void 0:e.player]),n}},93355:function(e,t,n){n.d(t,{Y:()=>s});var a=n(96540),i=n(95641),r=n(68349),o=n(98949);function s(e){let[t,n]=(0,a.useState)(""),[s,l]=(0,a.useState)(""),[c,d]=(0,a.useState)({}),[u,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{(0,o.Fr)()&&navigator.share&&navigator.canShare(c)&&p(!0)},[c]),(0,a.useEffect)(()=>{!async function(){n("");let t=e.imageUrl;if((0,r.NN)(e.imageUrl,()=>{n(t),l(e.imageDownloadUrl)}),(0,o.Fr)()){var a,i;let n=await fetch(e.imageUrlSameOrigin||t),r=["instagram","instagram-stories"].includes(null!=(a=e.shareApp)?a:"");d({title:r?void 0:e.shareTitle,text:r?void 0:null!=(i=e.shareText)?i:void 0,files:[new File([await n.blob()],"image.png",{type:"image/png"})],url:r?void 0:e.shareUrl})}}()},[e.imageDownloadUrl,e.imageUrl,e.shareApp,e.shareText,e.shareTitle,e.shareUrl]);let{refetch:m}=(0,i.E)({method:"post",pathname:"/api/v1/press_kit/notification",body:{title:e.shareText,imageUrl:e.imageUrl,shareApp:e.shareApp},deps:[e.shareText,e.imageUrl,e.shareApp]});return{img:t,imgDownload:s,sendPushNotification:(0,a.useCallback)(async()=>{let e=await m();return!(e instanceof Error)&&e.success},[m]),shareData:c,useNativeShare:u}}},25757:function(e,t,n){n.d(t,{$5:()=>l,tj:()=>c});var a=n(53928),i=n(66565),r=n(44803),o=n(82260),s=n(39318);function l(e){var t,n;let l,c,d,u=(0,i.zj)();u.properties.is_free_subscribed||e||(u.properties.is_free_subscribed=!0,l=(0,i.zj)(),(0,i.BU)("sign_up"),(0,i.b8)("event",{ec:"Signup",ea:"Signup Success"}),(0,i.e$)("conversion",(null==l?void 0:l.adwordsAccountId)&&(null==l?void 0:l.adwordsEventSendTo)?{send_to:"".concat(l.adwordsAccountId,"/").concat("Yo9oCMOM1MYDEKuN5pYB")}:{}),(c=(0,i.wJ)())&&(new Image().src="proxy.php?url=https://www.facebook.com/tr?id=".concat(c,"&ev=CompleteRegistration")),(0,o.F)("signup"),"undefined"!=typeof window&&window.PARSELY&&window.PARSELY.loaded&&window.PARSELY.conversions&&window.PARSELY.conversions.trackNewsletterSignup&&window.PARSELY.conversions.trackNewsletterSignup("Newsletter Sign Up"),"bankless"===(null!=(n=null==(d="undefined"!=typeof window?null==(t=window._preloads)?void 0:t.pub:void 0)?void 0:d.subdomain)?n:null)&&(window.history.replaceState({},document.title,(0,s.oRR)({plan:"free"})),(0,r.MY)()),(0,a.G1)())}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.e$)("Publication Created",e)}n(82776)},86500:function(e,t,n){n.d(t,{$5:()=>a.$5,Bu:()=>o.T,TM:()=>r.TM,e$:()=>i.e$,fN:()=>r.fN,qY:()=>r.qY,tj:()=>a.tj,u4:()=>r.u4});var a=n(25757),i=n(66565),r=n(44803),o=n(43880)},44803:function(e,t,n){n.d(t,{MY:()=>j,TM:()=>I,fN:()=>C,j6:()=>x,qY:()=>E,u4:()=>M});var a,i,r=n(69277),o=n(72343),s=n(53928),l=n(4392),c=n(66565),d=n(7354),u=n(13022),p=n(82260),m=n(68349),h=n(40659);n(16291);var g=n(18189),_=n(39318),b=n(41086),f=n(94402),A=n(82776);let E=g.q,y="undefined"!=typeof window,N=!!(y&&window.navigator&&window.navigator.sendBeacon),O=!(0,m.lT)()&&N,v=new d.W({batchOptions:O?{maxBatchSize:8,maxBatchDataSize:1e4}:void 0,send:function(e,t){y&&(O&&t&&e.push(R(e,t)),new Image().src=(0,_.yRP)(O?"/api/v1/firehose/batch":"/api/v1/firehose",{_:new Date().getTime(),d:e.join(",")}))},beacon:function(e,t){if(!y)return;e.push(R(e,"beacon",t));let n=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon("/api/v1/firehose/batch",n)}}),x=()=>{y&&O&&(window.addEventListener("beforeunload",e=>{v.sendBeacon(e)}),window.addEventListener("pagehide",e=>{v.sendBeacon(e)}),document.addEventListener("visibilitychange",e=>{"hidden"===document.visibilityState&&v.sendBeacon(e)}),setInterval(()=>{v.intervalFlush()},6e4))},S=y&&window!=window.top&&(0,f.G)(m.QT),w="browser";function I(){return S}function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n;if(["development","test"].includes((n="production",void 0!==n)?n:"")&&!e)throw Error("`undefined` event passed to FRONTEND track call");T(e,Object.assign({},t))}catch(e){try{window.Sentry&&window.Sentry.captureException(e)}catch(t){console.error("Failed to track event",e)}}}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};M(E.PUBLICATION_VISITED,(0,r._)({visited_publication_id:e.id,visited_publication_subdomain:e.subdomain,source:t},n,(0,A.extractEventAttributionDataFromRecord)((0,h.cf)())))}y&&(navigator.standalone||(null==(a=(i=window).matchMedia)?void 0:a.call(i,"(display-mode: standalone)").matches))&&(w="standalone");let k=()=>document.location.pathname.startsWith("/p/");function j(){var e,t,n,a,i,r,o;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document||document.location.pathname.startsWith("/embed")&&y&&(null==(n=window)||null==(t=n._preloads)||null==(e=t.pub)?void 0:e.embed_tracking_disabled))return;T(E.PAGES,Object.assign(function(){let e={};if(y){let t=window._preloads&&"post"in window._preloads&&window._preloads.post,n=window.location&&/^\/p\/([^\/]+)/.exec(window.location.pathname),a=window.location&&/\/p-(\d+)/.exec(window.location.pathname);if(n&&n[1]){let a=n[1];t&&t.slug===a&&(e.post_id=t.id,e.post_audience=t.audience,e.post_type=t.type),e.post_slug=a}else a&&a[1]&&(e.post_id=parseInt(a[1]))}return e}(),l));let d=(0,c.wJ)();if(d&&(new Image().src="proxy.php?url=https://www.facebook.com/tr?id=".concat(d,"&ev=PageView")),(0,p.F)("pageview"),(0,c.b8)("pageview"),(0,c.BU)("page_view"),y&&!k()&&(0,s.Mz)({path:document.location.pathname,title:document.title,sections:"",authors:""}),y&&window.PARSELY&&window.PARSELY.loaded&&window.PARSELY.beacon&&window.PARSELY.beacon.trackPageView){let e={url:document.location.origin+document.location.pathname+document.location.search,urlref:document.referrer||"",js:1,data:{}};if((0,u.Ay)("add_section_and_tag_metadata")){let t,n,s;if(k()&&(n=(null==(t=window._preloads)||null==(a=t.post)?void 0:a.id)&&(null==t?void 0:t.pub),s=!!(null==t||null==(i=t.post)?void 0:i.slug)&&(null==t||null==(r=t.post)?void 0:r.slug)===document.location.pathname.split("/")[document.location.pathname.split("/").length-1],!(n&&k())||!s))return;if(k()){let t=window._preloads;e.data={audience:(o=null==t?void 0:t.user)?o.is_subscribed?"Paid subs":o.is_free_subscribed?"Free subs":"Anonymous":"Anonymous"}}}window.PARSELY.beacon.trackPageView(e)}}function L(e){var t,n,a,i,r,s,c,d,u;let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=null;try{h=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}let g={event:e,timestamp:new Date().toISOString(),properties:Object.assign({browserSessionId:l.O,iframeVisitId:S,r:(0,b.y)("r"),magicUserId:"undefined"!=typeof window&&(null==(a=window)||null==(n=a._preloads)||null==(t=n.user)?void 0:t.is_magic)?window._preloads.user.id:void 0},p),context:{client_type:"web",displayMode:w,page:{referrer:document.referrer,title:document.title,url:document.location.href,height:null!=(s="undefined"!=typeof window&&window.innerHeight)?s:0,width:null!=(c="undefined"!=typeof window&&window.innerWidth)?c:0},campaign:(0,o.tm)(),timezone:h,screen:{height:null!=(d="undefined"!=typeof window&&(null==(i=window.screen)?void 0:i.height))?d:0,width:null!=(u="undefined"!=typeof window&&(null==(r=window.screen)?void 0:r.width))?u:0}}};return(0,m.Cw)(JSON.stringify(g))}function R(e,t,n){let a=e.length,i=e.map(e=>e.length).reduce((e,t)=>e+t,0);return L(E.FIREHOSE_BATCH_SENT,{dataSize:i,batchSize:a,batchType:t,eventType:null==n?void 0:n.type})}function T(e){var t,n,a;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||"undefined"==typeof document)return;let r=L(e,i);v.add(r),(null==(a=window)||null==(n=a._preloads)||null==(t=n.user)?void 0:t.is_global_admin)&&console.log("EVENT: ".concat(e),i)}},53594:function(e,t,n){function a(e,t){return e&&"rgba(".concat(e.join(","),",").concat(t,")")}n.d(t,{Vu:()=>o,iL:()=>a,ou:()=>i,p4:()=>r});let i=e=>{var t,n,i,r;let{palette:o,defaultColor:s="var(--color-dark-bg-primary)",bgColor:l="var(--color-dark-bg-primary)"}=e;if(!o&&!s)return null;let c=null!=(i=a(null==o||null==(t=o.Muted)?void 0:t.rgb,.75))?i:s,d=null!=(r=a(null==o||null==(n=o.DarkMuted)?void 0:n.rgb,.75))?r:s;return{background:"linear-gradient(180deg, ".concat(c,", ").concat(d,"), ").concat(l)}},r=e=>{var t,n;let{palette:i,colorKey:r="DarkMuted",defaultColor:o="var(--color-dark-bg-secondary)",bgColor:s="var(--color-dark-bg-secondary)"}=e;if(!i&&!o)return null;let l=null!=(n=a(null==i||null==(t=i[r])?void 0:t.rgb,.75))?n:o;return{background:"linear-gradient(180deg, ".concat(l,", ").concat(l,"), ").concat(s)}},o=e=>{var t,n,i,r,o,s;let{palette:l,defaultColor:c="var(--color-dark-bg-primary)",bgColor:d="var(--color-dark-bg-primary)"}=e;if(!l&&!c)return null;let u=null!=(r=a(null==l||null==(t=l.Muted)?void 0:t.rgb,.75))?r:c,p=null!=(o=a(null==l||null==(n=l.DarkMuted)?void 0:n.rgb,.75))?o:c,m=null!=(s=a(null==l||null==(i=l.DarkVibrant)?void 0:i.rgb,.75))?s:c;return{background:"linear-gradient(135deg, ".concat(u,", ").concat(p,", ").concat(m,"), ").concat(d),backgroundSize:"400% 400%"}}},45378:function(e,t,n){n.d(t,{i:()=>a});async function a(e,t){let{editImage:a}=await Promise.all([n.e("397"),n.e("7363")]).then(n.bind(n,57998));return a(e,t)}},94729:function(e,t,n){n.d(t,{Qd:()=>c,fk:()=>l,x6:()=>s});var a=n(99851),i=n(69277),r=n(32641),o=n(68349);async function s(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,i._)({cache:"no-cache"},n),{query:o,json:s}=a,c=(0,r._)(a,["query","json"]),d=e;if(o){let t=(o instanceof URLSearchParams?o:new URLSearchParams(Object.entries(o).reduce((e,t)=>{let[n,a]=t;return void 0!==a&&(Array.isArray(a)?a.forEach(t=>{void 0!==t&&e.push(["".concat(n,"[]"),t])}):e.push([n,a])),e},[]))).toString();t&&(-1!==e.indexOf("?")?d+="&".concat(t):d+="?".concat(t))}s&&(c.body=JSON.stringify(s),c.headers instanceof Headers||(c.headers=new Headers(c.headers)),c.headers.set("Content-Type","application/json")),c.method&&(c.method=c.method.toUpperCase());let u=await fetch(d,c);if(!u.ok){let e;try{e=await u.json()}catch(t){e={}}throw new l(u,e)}return(null==(t=u.headers.get("Content-Type"))?void 0:t.startsWith("application/json"))?u.json():u.text()}class l extends Error{getMessage(e){return(0,o.LJ)(this.body,e)}constructor(e,t){const n=URL.parse?URL.parse(e.url):null;super("".concat(e.status,": ").concat(e.statusText)),(0,a._)(this,"response",void 0),(0,a._)(this,"body",void 0),(0,a._)(this,"url",void 0),this.response=e,this.body=t,this.name="FetchError",this.url=n}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Something went wrong.";return e instanceof l?e.getMessage():t}},64595:function(e,t,n){n.d(t,{M$:()=>r,ih:()=>i}),n(18947);let a={0x21a8fd4:{metaTags:[{name:"citation_title",content:"A primer on causal emergence"},{name:"citation_author",content:"Hoel, Erik"},{name:"citation_publication_date",content:"2021/04/18"},{name:"citation_pdf_url",content:"https://www.theintrinsicperspective.com/p/a-primer-on-causal-emergence/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.theintrinsicperspective.com/p/a-primer-on-causal-emergence"},{name:"citation_fulltext_html_url",content:"https://www.theintrinsicperspective.com/p/a-primer-on-causal-emergence"},{name:"citation_doi",content:"10.32388/substack.h238d0"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-2970-0057"},{name:"citation_keywords",content:"causal emergence; philosophy of science; reductionism; information theory; complex systems; neuroscience"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"A primer on causal emergence",author:[{"@type":"Person",name:"Erik Hoel"}],datePublished:"2021-04-18",inLanguage:"en",url:"https://www.theintrinsicperspective.com/p/a-primer-on-causal-emergence",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.h238d0"},sameAs:["https://doi.org/10.32388/substack.h238d0"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"causal emergence; philosophy of science; reductionism; information theory; complex systems; neuroscience",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.theintrinsicperspective.com/p/a-primer-on-causal-emergence/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.h238d0",postFilePdfKey:"6ee6b23b-f4a3-4eae-85ed-d0f2b1c7e3f5.pdf"},0x82be992:{metaTags:[{name:"citation_journal_title",content:"The Intrinsic Perspective"},{name:"citation_title",content:'Ambitious theories of consciousness are not "scientific misinformation": In defense of Integrated Information Theory'},{name:"citation_author",content:"Erik Hoel"},{name:"citation_author_orcid",content:"0000-0002-2970-0057"},{name:"citation_publication_date",content:"2023/09/17"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x8903874:{metaTags:[{name:"citation_journal_title",content:"DWI Journal"},{name:"citation_title",content:"The Need for Standardization of Exhaled Volume in Breath Alcohol Testing: Technical Note"},{name:"citation_author",content:"Aaron Olson"},{name:"citation_author_orcid",content:"0000-0003-1896-4556"},{name:"citation_publication_date",content:"2024/04/17"},{name:"citation_fulltext_html_url",content:"https://www.dwijournal.org/p/the-need-for-standardization-of-exhaled"},{name:"citation_doi",content:"10.61874/dwij/mgqj9294"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x86c552d:{metaTags:[{name:"citation_journal_title",content:"DWI Journal"},{name:"citation_title",content:"The Need for National Standards in Breath Alcohol Testing"},{name:"citation_author",content:"Matthew Malhiot"},{name:"citation_publication_date",content:"2024/02/06"},{name:"citation_doi",content:"10.61874/dwij/XAWQ1863"},{name:"citation_fulltext_html_url",content:"https://www.dwijournal.org/p/need-for-national-standards-in-breath-alcohol"},{name:"citation_pdf_url",content:"https://www.dwijournal.org/api/v1/file/fdb14175-1a48-4422-807d-bef9abe791bb.pdf"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x32c4f94:{metaTags:[{name:"citation_journal_title",content:"Experimental History"},{name:"citation_title",content:"Pop Culture Has Become an Oligopoly: A cartel of superstars has conquered culture. How did it happen, and what should we do about it?"},{name:"citation_author",content:"Adam Mastroianni"},{name:"citation_author_orcid",content:"0000-0003-1684-3064"},{name:"citation_publication_date",content:"2022/05/02"},{name:"citation_fulltext_html_url",content:"https://www.experimental-history.com/p/pop-culture-has-become-an-oligopoly"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x561aa41:{metaTags:[{name:"citation_journal_title",content:"Experimental History"},{name:"citation_title",content:"The rise and fall of peer review: Why the greatest scientific experiment in history failed, and why that's a great thing"},{name:"citation_author",content:"Adam Mastroianni"},{name:"citation_author_orcid",content:"0000-0003-1684-3064"},{name:"citation_publication_date",content:"2022/12/13"},{name:"citation_fulltext_html_url",content:"https://www.experimental-history.com/p/the-rise-and-fall-of-peer-review"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x2bc63fe:{metaTags:[{name:"citation_title",content:"Post-competition Perils: Hyperphagia, Adipose Overshoot, & Dysphoria"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/02/07"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/post-competition-perils-hyperphagia/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/post-competition-perils-hyperphagia"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/post-competition-perils-hyperphagia"},{name:"citation_doi",content:"10.32388/substack.qpqzzi"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"hyperphagia; adipose tissue; bodybuilding; metabolic adaptation; weight regulation; hypothalamic function"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Post-competition Perils: Hyperphagia, Adipose Overshoot, & Dysphoria",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-02-07",inLanguage:"en",url:"https://www.jdhaltigan.com/p/post-competition-perils-hyperphagia",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.qpqzzi"},sameAs:["https://doi.org/10.32388/substack.qpqzzi"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"hyperphagia; adipose tissue; bodybuilding; metabolic adaptation; weight regulation; hypothalamic function",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/post-competition-perils-hyperphagia/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.qpqzzi",postFilePdfKey:"fad86da2-723c-46bc-afb4-a18c7e0a0e0a.pdf"},0x3e5e560:{metaTags:[{name:"citation_title",content:"On the Internalizing & Cluster B, Chthonian Crisis of the Current Moment"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2022/08/04"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/on-the-internalizing-and-cluster/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/on-the-internalizing-and-cluster"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/on-the-internalizing-and-cluster"},{name:"citation_doi",content:"10.32388/substack.u28tjq"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"personality disorders; cluster b; internalizing disorders; mental health; psychopathology; cultural analysis"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"On the Internalizing & Cluster B, Chthonian Crisis of the Current Moment",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2022-08-04",inLanguage:"en",url:"https://www.jdhaltigan.com/p/on-the-internalizing-and-cluster",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.u28tjq"},sameAs:["https://doi.org/10.32388/substack.u28tjq"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"personality disorders; cluster b; internalizing disorders; mental health; psychopathology; cultural analysis",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/on-the-internalizing-and-cluster/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.u28tjq",postFilePdfKey:"13df0943-55a2-4ccf-846f-f1b8c08dc687.pdf"},0x77a40f8:{metaTags:[{name:"citation_journal_title",content:"Critical Metascience"},{name:"citation_title",content:"The Preregistration Prescriptiveness Trade-Off and Unknown Unknowns in Science: Comments on Van Drimmelen (2023)"},{name:"citation_author",content:"Mark Rubin"},{name:"citation_author_orcid",content:"0000-0002-6483-8561"},{name:"citation_publication_date",content:"2023/06/06"},{name:"citation_doi",content:"10.31222/osf.io/3t7pc"},{name:"citation_fulltext_html_url",content:"https://markrubin.substack.com/p/the-preregistration-prescriptiveness"},{name:"citation_pdf_url",content:"https://osf.io/preprints/metaarxiv/3t7pc"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x7876179:{metaTags:[{name:"citation_journal_title",content:"Critical Metascience"},{name:"citation_title",content:"What's Special About Metascience?: Comments on Romero (2023)"},{name:"citation_author",content:"Mark Rubin"},{name:"citation_author_orcid",content:"0000-0002-6483-8561"},{name:"citation_publication_date",content:"2023/06/13"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x843c93f:{metaTags:[{name:"citation_journal_title",content:"Critical Metascience"},{name:"citation_title",content:"Type I Error Rates are Not Usually Inflated"},{name:"citation_author",content:"Mark Rubin"},{name:"citation_author_orcid",content:"0000-0002-6483-8561"},{name:"citation_publication_date",content:"2024/01/11"},{name:"citation_fulltext_html_url",content:"https://markrubin.substack.com/p/type-i-error-rate-inflation"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x636cfcb:{metaTags:[{name:"citation_journal_title",content:"After Babel"},{name:"citation_title",content:"Social Media is a Major Cause of the Mental Illness Epidemic in Teen Girls. Here’s the Evidence.: Journalists should stop saying that the evidence is just correlational"},{name:"citation_author",content:"Jonathan Haidt"},{name:"citation_author_orcid",content:"0000-0002-4598-8775"},{name:"citation_publication_date",content:"2023/02/22"},{name:"citation_fulltext_html_url",content:"https://www.afterbabel.com/p/social-media-mental-illness-epidemic"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x88c4c7d:{metaTags:[{name:"citation_journal_title",content:"After Babel"},{name:"citation_title",content:"Yes, Social Media Really Is a Cause of the Epidemic of Teenage Mental Illness: Two major problems with a review in Nature"},{name:"citation_author",content:"Jon Haidt"},{name:"citation_publication_date",content:"2024/04/09"},{name:"citation_author_orcid",content:"0000-0002-4598-8775"},{name:"citation_fulltext_html_url",content:"https://www.afterbabel.com/p/phone-based-childhood-cause-epidemic"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x48f729c:{metaTags:[{name:"citation_journal_title",content:"Unsafe Science"},{name:"citation_title",content:'"Driving" "Minoritized" Students Out of Stem? How Not to Infer Cause from Correlation: Wooden Stake Point'},{name:"citation_author",content:"Lee Jussim"},{name:"citation_publication_date",content:"2022/10/05"},{name:"citation_fulltext_html_url",content:"https://unsafescience.substack.com/p/driving-minoritized-students-out"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x88868f9:{metaTags:[{name:"citation_journal_title",content:"The Stark Way"},{name:"citation_title",content:"Free will: lost causes: Without free will can there be freedom?"},{name:"citation_author",content:"Jamie Freestone"},{name:"citation_publication_date",content:"2024"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x8ad25eb:{metaTags:[{name:"citation_journal_title",content:"The Stark Way"},{name:"citation_title",content:"Free will; lost causes: Without free will can there be freedom?"},{name:"citation_author",content:"Jamie Freestone"},{name:"citation_publication_date",content:"2024"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x8957c80:{metaTags:[{name:"citation_journal_title",content:"After Babel"},{name:"citation_title",content:"The Great Deterioration of Local Community And The Loss of The Play-Based Childhood"},{name:"citation_author",content:"Zach Rausch"},{name:"citation_publication_date",content:"2024/06/10"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x8b461e0:{metaTags:[{name:"citation_journal_title",content:"The Multilevel Mailer"},{name:"citation_title",content:"The Politics of the Psyche Part 1: The heuristic power of a cultural psychology for understanding our present-day macrosocial identity crisis and political schizophrenia"},{name:"citation_author",content:"J.D. Haltigan"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_publication_date",content:"2024"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x8d9031a:{metaTags:[{name:"citation_journal_title",content:"critical metascience"},{name:"citation_title",content:"Preregistration, Severity, and Deviations: Preregistration does not improve the transparent evaluation of severity in Popper’s philosophy of science or when deviations are allowed"},{name:"citation_author",content:"Mark Rubin"},{name:"citation_author_orcid",content:"0000-0002-6483-8561"},{name:"citation_publication_date",content:"2024"}],ldJson:null,doiUrl:null,postFilePdfKey:null},0x1dd8cd2:{metaTags:[{name:"citation_title",content:"Open Science and Its Enemies"},{name:"citation_author",content:"Munger, Kevin"},{name:"citation_publication_date",content:"2025/06/02"},{name:"citation_pdf_url",content:"https://kevinmunger.substack.com/p/open-science-and-its-enemies/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://kevinmunger.substack.com/p/open-science-and-its-enemies"},{name:"citation_fulltext_html_url",content:"https://kevinmunger.substack.com/p/open-science-and-its-enemies"},{name:"citation_doi",content:"10.32388/substack.6hb3ae"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4399-5250"},{name:"citation_keywords",content:"open science; replication crisis; scientific reproducibility; executive order; science policy; science reform"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Open Science and Its Enemies",author:[{"@type":"Person",name:"Kevin Munger"}],datePublished:"2025-06-02",inLanguage:"en",url:"https://kevinmunger.substack.com/p/open-science-and-its-enemies",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.6hb3ae"},sameAs:["https://doi.org/10.32388/substack.6hb3ae"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"open science; replication crisis; scientific reproducibility; executive order; science policy; science reform",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://kevinmunger.substack.com/p/open-science-and-its-enemies/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.6hb3ae",postFilePdfKey:"0d051a83-a93d-4035-ba97-0d4e93c3c598.pdf"},71504e3:{metaTags:[{name:"citation_title",content:"Everyone Knows That Water Is Wet"},{name:"citation_author",content:"Munger, Kevin"},{name:"citation_publication_date",content:"2023/04/13"},{name:"citation_pdf_url",content:"https://kevinmunger.substack.com/p/everyone-knows-that-water-is-wet/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://kevinmunger.substack.com/p/everyone-knows-that-water-is-wet"},{name:"citation_fulltext_html_url",content:"https://kevinmunger.substack.com/p/everyone-knows-that-water-is-wet"},{name:"citation_doi",content:"10.32388/substack.idbst4"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4399-5250"},{name:"citation_keywords",content:"epistemology; common knowledge; social knowledge; information transmission; belief formation; social cognition"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Everyone Knows That Water Is Wet",author:[{"@type":"Person",name:"Kevin Munger"}],datePublished:"2023-04-13",inLanguage:"en",url:"https://kevinmunger.substack.com/p/everyone-knows-that-water-is-wet",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.idbst4"},sameAs:["https://doi.org/10.32388/substack.idbst4"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"epistemology; common knowledge; social knowledge; information transmission; belief formation; social cognition",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://kevinmunger.substack.com/p/everyone-knows-that-water-is-wet/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.idbst4",postFilePdfKey:"b4d42862-887e-44ea-a0c7-602785fb27e0.pdf"},0x52a3fe3:{metaTags:[{name:"citation_title",content:"The Implementation of Diversity, Equity and Inclusion in Academia"},{name:"citation_author",content:"Jussim, Lee"},{name:"citation_author",content:"Honeycutt, Nate"},{name:"citation_publication_date",content:"2022/11/27"},{name:"citation_pdf_url",content:"https://unsafescience.substack.com/p/the-implementation-of-diversity-equity/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://unsafescience.substack.com/p/the-implementation-of-diversity-equity"},{name:"citation_fulltext_html_url",content:"https://unsafescience.substack.com/p/the-implementation-of-diversity-equity"},{name:"citation_doi",content:"10.32388/substack.f82j0n"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_keywords",content:"diversity equity inclusion; higher education; academic policy; institutional change; dei initiatives; university administration"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The Implementation of Diversity, Equity and Inclusion in Academia",author:[{"@type":"Person",name:"Lee Jussim"},{"@type":"Person",name:"Nate Honeycutt"}],datePublished:"2022-11-27",inLanguage:"en",url:"https://unsafescience.substack.com/p/the-implementation-of-diversity-equity",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.f82j0n"},sameAs:["https://doi.org/10.32388/substack.f82j0n"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"diversity equity inclusion; higher education; academic policy; institutional change; dei initiatives; university administration",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://unsafescience.substack.com/p/the-implementation-of-diversity-equity/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.f82j0n",postFilePdfKey:"3647df40-f63a-423e-a060-3c42eee75a4f.pdf"},0x744767f:{metaTags:[{name:"citation_title",content:"The Bates Motel World We Are Living In"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/05/23"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/the-bates-motel-world-we-are-living/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/the-bates-motel-world-we-are-living"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/the-bates-motel-world-we-are-living"},{name:"citation_doi",content:"10.32388/substack.mhmuv1"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"cultural psychology; progressivism; interpersonal dynamics; media analysis; social pathology; political psychology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The Bates Motel World We Are Living In",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-05-23",inLanguage:"en",url:"https://www.jdhaltigan.com/p/the-bates-motel-world-we-are-living",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.mhmuv1"},sameAs:["https://doi.org/10.32388/substack.mhmuv1"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"cultural psychology; progressivism; interpersonal dynamics; media analysis; social pathology; political psychology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/the-bates-motel-world-we-are-living/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.mhmuv1",postFilePdfKey:"0621c1e7-d246-4ff5-8c2f-a013974d9810.pdf"},0x7ae3472:{metaTags:[{name:"citation_title",content:"So What Are 'Trait Systemization' and 'Trait Empathisation' and Why Does it Matter for the Institutional Dysfunction and Chaos We Are Living Through?"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/06/27"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/so-what-are-trait-systemization-and/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/so-what-are-trait-systemization-and"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/so-what-are-trait-systemization-and"},{name:"citation_doi",content:"10.32388/substack.n3hha8"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"trait systemization; trait empathisation; institutional dysfunction; cognitive styles; autism spectrum; cultural revolution"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"So What Are 'Trait Systemization' and 'Trait Empathisation' and Why Does it Matter for the Institutional Dysfunction and Chaos We Are Living Through?",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-06-27",inLanguage:"en",url:"https://www.jdhaltigan.com/p/so-what-are-trait-systemization-and",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.n3hha8"},sameAs:["https://doi.org/10.32388/substack.n3hha8"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"trait systemization; trait empathisation; institutional dysfunction; cognitive styles; autism spectrum; cultural revolution",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/so-what-are-trait-systemization-and/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.n3hha8",postFilePdfKey:"240d0a3b-2a2f-4081-a539-29db74225993.pdf"},0x8138a96:{metaTags:[{name:"citation_title",content:"Neuroscience is pre-paradigmatic. Consciousness is why"},{name:"citation_author",content:"Hoel, Erik"},{name:"citation_publication_date",content:"2024/01/09"},{name:"citation_pdf_url",content:"https://www.theintrinsicperspective.com/p/neuroscience-is-pre-paradigmatic/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.theintrinsicperspective.com/p/neuroscience-is-pre-paradigmatic"},{name:"citation_fulltext_html_url",content:"https://www.theintrinsicperspective.com/p/neuroscience-is-pre-paradigmatic"},{name:"citation_doi",content:"10.32388/substack.2mwu0v"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-2970-0057"},{name:"citation_keywords",content:"neuroscience; consciousness; scientific paradigms; philosophy of mind; kuhnian paradigm; brain science"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Neuroscience is pre-paradigmatic. Consciousness is why",author:[{"@type":"Person",name:"Erik Hoel"}],datePublished:"2024-01-09",inLanguage:"en",url:"https://www.theintrinsicperspective.com/p/neuroscience-is-pre-paradigmatic",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.2mwu0v"},sameAs:["https://doi.org/10.32388/substack.2mwu0v"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"neuroscience; consciousness; scientific paradigms; philosophy of mind; kuhnian paradigm; brain science",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.theintrinsicperspective.com/p/neuroscience-is-pre-paradigmatic/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.2mwu0v",postFilePdfKey:"9ea76397-0210-472c-a1b2-bc0d3a5505a6.pdf"},0x823f361:{metaTags:[{name:"citation_title",content:"Radical Progressive Capture of Pittsburgh Social Policy"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/09/10"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/radical-progressive-capture-of-pittsburgh/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/radical-progressive-capture-of-pittsburgh"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/radical-progressive-capture-of-pittsburgh"},{name:"citation_doi",content:"10.32388/substack.jny60y"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"social policy; progressivism; urban politics; institutional capture; pittsburgh; policy analysis"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Radical Progressive Capture of Pittsburgh Social Policy",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-09-10",inLanguage:"en",url:"https://www.jdhaltigan.com/p/radical-progressive-capture-of-pittsburgh",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.jny60y"},sameAs:["https://doi.org/10.32388/substack.jny60y"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"social policy; progressivism; urban politics; institutional capture; pittsburgh; policy analysis",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/radical-progressive-capture-of-pittsburgh/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.jny60y",postFilePdfKey:"1bec68ae-352d-4273-9372-e8d8a87907ac.pdf"},0x848a66e:{metaTags:[{name:"citation_title",content:"A Recent Commentary in Addiction Research & Theory on Stigma"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/11/21"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/a-recent-commentary-in-addiction/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/a-recent-commentary-in-addiction"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/a-recent-commentary-in-addiction"},{name:"citation_doi",content:"10.32388/substack.uqkmmd"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"addiction; stigmatization; substance use disorders; mental health stigma; psychiatry; public health"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"A Recent Commentary in Addiction Research & Theory on Stigma",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-11-21",inLanguage:"en",url:"https://www.jdhaltigan.com/p/a-recent-commentary-in-addiction",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.uqkmmd"},sameAs:["https://doi.org/10.32388/substack.uqkmmd"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"addiction; stigmatization; substance use disorders; mental health stigma; psychiatry; public health",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/a-recent-commentary-in-addiction/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.uqkmmd",postFilePdfKey:"0e88b507-4281-474b-a5f2-2f654e473e4a.pdf"},0x8554b87:{metaTags:[{name:"citation_title",content:"The Caricature of Love"},{name:"citation_author",content:"Haltigan, J.D."},{name:"citation_publication_date",content:"2023/12/31"},{name:"citation_pdf_url",content:"https://www.jdhaltigan.com/p/the-caricature-of-love/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.jdhaltigan.com/p/the-caricature-of-love"},{name:"citation_fulltext_html_url",content:"https://www.jdhaltigan.com/p/the-caricature-of-love"},{name:"citation_doi",content:"10.32388/substack.9hhkz0"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4729-6219"},{name:"citation_keywords",content:"hervey cleckley; psychopathy; pathological sexuality; psychiatry history; mask of sanity; sexual pathology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The Caricature of Love",author:[{"@type":"Person",name:"J.D. Haltigan"}],datePublished:"2023-12-31",inLanguage:"en",url:"https://www.jdhaltigan.com/p/the-caricature-of-love",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.9hhkz0"},sameAs:["https://doi.org/10.32388/substack.9hhkz0"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"hervey cleckley; psychopathy; pathological sexuality; psychiatry history; mask of sanity; sexual pathology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.jdhaltigan.com/p/the-caricature-of-love/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.9hhkz0",postFilePdfKey:"2cc8fe12-6d07-4651-ba3f-bee18c138fce.pdf"},0x8b6034e:{metaTags:[{name:"citation_title",content:"Does Social Media Cause Anything?"},{name:"citation_author",content:"Munger, Kevin"},{name:"citation_publication_date",content:"2024/07/03"},{name:"citation_pdf_url",content:"https://kevinmunger.substack.com/p/does-social-media-cause-anything/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://kevinmunger.substack.com/p/does-social-media-cause-anything"},{name:"citation_fulltext_html_url",content:"https://kevinmunger.substack.com/p/does-social-media-cause-anything"},{name:"citation_doi",content:"10.32388/substack.8gjhei"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4399-5250"},{name:"citation_keywords",content:"social media effects; causal inference; media research; platform effects; digital communication; research methodology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Does Social Media Cause Anything?",author:[{"@type":"Person",name:"Kevin Munger"}],datePublished:"2024-07-03",inLanguage:"en",url:"https://kevinmunger.substack.com/p/does-social-media-cause-anything",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.8gjhei"},sameAs:["https://doi.org/10.32388/substack.8gjhei"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"social media effects; causal inference; media research; platform effects; digital communication; research methodology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://kevinmunger.substack.com/p/does-social-media-cause-anything/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.8gjhei",postFilePdfKey:"b19b74d7-c718-467f-a841-4ba9402aab9b.pdf"},0x8da4352:{metaTags:[{name:"citation_title",content:"Debunking Popular Psychology Myths: Revising The Bystander Effect"},{name:"citation_author",content:"Packer, Dominic"},{name:"citation_author",content:"Bavel, Jay Van"},{name:"citation_publication_date",content:"2024/09/05"},{name:"citation_pdf_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths"},{name:"citation_fulltext_html_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths"},{name:"citation_doi",content:"10.32388/substack.75tb2h"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0001-8420-6548"},{name:"citation_keywords",content:"bystander effect; kitty genovese; prosocial behavior; psychology myths; helping behavior; social psychology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Debunking Popular Psychology Myths: Revising The Bystander Effect",author:[{"@type":"Person",name:"Dominic Packer"},{"@type":"Person",name:"Jay Van Bavel"}],datePublished:"2024-09-05",inLanguage:"en",url:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.75tb2h"},sameAs:["https://doi.org/10.32388/substack.75tb2h"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"bystander effect; kitty genovese; prosocial behavior; psychology myths; helping behavior; social psychology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.75tb2h",postFilePdfKey:"830907b1-8d5c-4d3e-aaeb-b091e55fda67.pdf"},0x8f0b299:{metaTags:[{name:"citation_title",content:'"Unelected Bureaucrats" Are More Accountable Than You Think'},{name:"citation_author",content:"Moynihan, Don"},{name:"citation_author",content:"Kettl, Donald"},{name:"citation_publication_date",content:"2024/10/25"},{name:"citation_pdf_url",content:"https://donmoynihan.substack.com/p/unelected-bureaucrats-are-more-accountable/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://donmoynihan.substack.com/p/unelected-bureaucrats-are-more-accountable"},{name:"citation_fulltext_html_url",content:"https://donmoynihan.substack.com/p/unelected-bureaucrats-are-more-accountable"},{name:"citation_doi",content:"10.32388/substack.9rh079"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4097-6908"},{name:"citation_keywords",content:"bureaucracy; public administration; government accountability; democratic governance; administrative state; civil service"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:'"Unelected Bureaucrats" Are More Accountable Than You Think',author:[{"@type":"Person",name:"Don Moynihan"},{"@type":"Person",name:"Donald Kettl"}],datePublished:"2024-10-25",inLanguage:"en",url:"https://donmoynihan.substack.com/p/unelected-bureaucrats-are-more-accountable",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.9rh079"},sameAs:["https://doi.org/10.32388/substack.9rh079"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"bureaucracy; public administration; government accountability; democratic governance; administrative state; civil service",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://donmoynihan.substack.com/p/unelected-bureaucrats-are-more-accountable/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.9rh079",postFilePdfKey:"758445f0-c4aa-4273-ab33-f68bcda3209f.pdf"},0x8f44b5d:{metaTags:[{name:"citation_title",content:"Debunking Popular Psychology Myths: Why Most People Misunderstand Groupthink"},{name:"citation_author",content:"Packer, Dominic"},{name:"citation_author",content:"Bavel, Jay Van"},{name:"citation_publication_date",content:"2024/10/15"},{name:"citation_pdf_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths-9c5/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths-9c5"},{name:"citation_fulltext_html_url",content:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths-9c5"},{name:"citation_doi",content:"10.32388/substack.bjuq39"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0001-8420-6548"},{name:"citation_keywords",content:"groupthink; bay of pigs; decision making; psychology myths; group dynamics; organizational psychology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Debunking Popular Psychology Myths: Why Most People Misunderstand Groupthink",author:[{"@type":"Person",name:"Dominic Packer"},{"@type":"Person",name:"Jay Van Bavel"}],datePublished:"2024-10-15",inLanguage:"en",url:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths-9c5",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.bjuq39"},sameAs:["https://doi.org/10.32388/substack.bjuq39"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"groupthink; bay of pigs; decision making; psychology myths; group dynamics; organizational psychology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.powerofusnewsletter.com/p/debunking-popular-psychology-myths-9c5/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.bjuq39",postFilePdfKey:"4562264d-cf76-4991-9652-6370c9b03c61.pdf"},0x96458fb:{metaTags:[{name:"citation_title",content:"Is Rishi Sunak English?"},{name:"citation_author",content:"Kaufmann, Eric"},{name:"citation_publication_date",content:"2025/02/21"},{name:"citation_pdf_url",content:"https://erickaufmann.substack.com/p/is-rishi-sunak-english/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://erickaufmann.substack.com/p/is-rishi-sunak-english"},{name:"citation_fulltext_html_url",content:"https://erickaufmann.substack.com/p/is-rishi-sunak-english"},{name:"citation_doi",content:"10.32388/substack.43bmpg"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4812-4542"},{name:"citation_keywords",content:"national identity; ethnicity; english identity; immigration; multiculturalism; british politics"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Is Rishi Sunak English?",author:[{"@type":"Person",name:"Eric Kaufmann"}],datePublished:"2025-02-21",inLanguage:"en",url:"https://erickaufmann.substack.com/p/is-rishi-sunak-english",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.43bmpg"},sameAs:["https://doi.org/10.32388/substack.43bmpg"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"national identity; ethnicity; english identity; immigration; multiculturalism; british politics",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://erickaufmann.substack.com/p/is-rishi-sunak-english/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.43bmpg",postFilePdfKey:"938a3d18-ebdd-45e2-90f6-92dd751eb08c.pdf"},0x992bf0f:{metaTags:[{name:"citation_title",content:"Expanding the “Cradle of Humankind”"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2025/08/30"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/geographic-outliers/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/geographic-outliers"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/geographic-outliers"},{name:"citation_doi",content:"10.32388/substack.jylwnd"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"human origins; paleoanthropology; hominin fossils; cradle of humankind; african evolution; fossil sites"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Expanding the “Cradle of Humankind”",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2025-08-30",inLanguage:"en",url:"https://www.johnhawks.net/p/geographic-outliers",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.jylwnd"},sameAs:["https://doi.org/10.32388/substack.jylwnd"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"human origins; paleoanthropology; hominin fossils; cradle of humankind; african evolution; fossil sites",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/geographic-outliers/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.jylwnd",postFilePdfKey:"36a163c4-e571-4735-8983-964bda96578b.pdf"},0x992bf56:{metaTags:[{name:"citation_title",content:"Guide to Australopithecus species"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2023/09/20"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/guide-to-australopithecus-species/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/guide-to-australopithecus-species"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/guide-to-australopithecus-species"},{name:"citation_doi",content:"10.32388/substack.20lmse"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"australopithecus; human evolution; hominin taxonomy; fossil record; early hominins; paleoanthropology"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Guide to Australopithecus species",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2023-09-20",inLanguage:"en",url:"https://www.johnhawks.net/p/guide-to-australopithecus-species",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.20lmse"},sameAs:["https://doi.org/10.32388/substack.20lmse"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"australopithecus; human evolution; hominin taxonomy; fossil record; early hominins; paleoanthropology",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/guide-to-australopithecus-species/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.20lmse",postFilePdfKey:"609bdc37-c065-44df-9ad7-3249aa43867f.pdf"},0x992bfb7:{metaTags:[{name:"citation_title",content:"A look at the fossil skull from Steinheim"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2025/01/06"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/a-look-at-the-fossil-skull-from-steinheim/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/a-look-at-the-fossil-skull-from-steinheim"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/a-look-at-the-fossil-skull-from-steinheim"},{name:"citation_doi",content:"10.32388/substack.qvyy2r"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"steinheim skull; human evolution; middle pleistocene; neandertal origins; fossil hominins; germany"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"A look at the fossil skull from Steinheim",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2025-01-06",inLanguage:"en",url:"https://www.johnhawks.net/p/a-look-at-the-fossil-skull-from-steinheim",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.qvyy2r"},sameAs:["https://doi.org/10.32388/substack.qvyy2r"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"steinheim skull; human evolution; middle pleistocene; neandertal origins; fossil hominins; germany",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/a-look-at-the-fossil-skull-from-steinheim/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.qvyy2r",postFilePdfKey:"ebe441d9-d3f4-4a8f-ae65-524cc7eeabd0.pdf"},0x992bfc6:{metaTags:[{name:"citation_title",content:"The circumstances of the Taung discovery"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2025/02/14"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/the-circumstances-of-the-taung-discovery/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/the-circumstances-of-the-taung-discovery"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/the-circumstances-of-the-taung-discovery"},{name:"citation_doi",content:"10.32388/substack.2ky19o"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"taung child; raymond dart; australopithecus africanus; fossil discovery; human origins; south africa"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The circumstances of the Taung discovery",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2025-02-14",inLanguage:"en",url:"https://www.johnhawks.net/p/the-circumstances-of-the-taung-discovery",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.2ky19o"},sameAs:["https://doi.org/10.32388/substack.2ky19o"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"taung child; raymond dart; australopithecus africanus; fossil discovery; human origins; south africa",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/the-circumstances-of-the-taung-discovery/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.2ky19o",postFilePdfKey:"9d0bce3f-0bfb-47d3-9d19-53490566373d.pdf"},0x99b98b8:{metaTags:[{name:"citation_title",content:"Trumpian Amoralism Cannot Defeat Woke Moralism"},{name:"citation_author",content:"Kaufmann, Eric"},{name:"citation_publication_date",content:"2025/04/14"},{name:"citation_pdf_url",content:"https://erickaufmann.substack.com/p/trumpian-amoralism-cannot-defeat/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://erickaufmann.substack.com/p/trumpian-amoralism-cannot-defeat"},{name:"citation_fulltext_html_url",content:"https://erickaufmann.substack.com/p/trumpian-amoralism-cannot-defeat"},{name:"citation_doi",content:"10.32388/substack.2l9iwq"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4812-4542"},{name:"citation_keywords",content:"political morality; woke culture; trump administration; ethical institutions; cultural politics; nietzscheanism"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Trumpian Amoralism Cannot Defeat Woke Moralism",author:[{"@type":"Person",name:"Eric Kaufmann"}],datePublished:"2025-04-14",inLanguage:"en",url:"https://erickaufmann.substack.com/p/trumpian-amoralism-cannot-defeat",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.2l9iwq"},sameAs:["https://doi.org/10.32388/substack.2l9iwq"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"political morality; woke culture; trump administration; ethical institutions; cultural politics; nietzscheanism",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://erickaufmann.substack.com/p/trumpian-amoralism-cannot-defeat/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.2l9iwq",postFilePdfKey:"cfde7d67-3ed3-4db3-90ba-ceda1d01c701.pdf"},0x9b93837:{metaTags:[{name:"citation_title",content:"What DOGE gets wrong about tech and government"},{name:"citation_author",content:"Moynihan, Don"},{name:"citation_publication_date",content:"2025/05/17"},{name:"citation_pdf_url",content:"https://donmoynihan.substack.com/p/what-doge-gets-wrong-about-tech-and/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://donmoynihan.substack.com/p/what-doge-gets-wrong-about-tech-and"},{name:"citation_fulltext_html_url",content:"https://donmoynihan.substack.com/p/what-doge-gets-wrong-about-tech-and"},{name:"citation_doi",content:"10.32388/substack.yq1lnq"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4097-6908"},{name:"citation_keywords",content:"government technology; doge initiative; public sector innovation; federal bureaucracy; tech policy; government reform"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"What DOGE gets wrong about tech and government",author:[{"@type":"Person",name:"Don Moynihan"}],datePublished:"2025-05-17",inLanguage:"en",url:"https://donmoynihan.substack.com/p/what-doge-gets-wrong-about-tech-and",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.yq1lnq"},sameAs:["https://doi.org/10.32388/substack.yq1lnq"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"government technology; doge initiative; public sector innovation; federal bureaucracy; tech policy; government reform",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://donmoynihan.substack.com/p/what-doge-gets-wrong-about-tech-and/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.yq1lnq",postFilePdfKey:"2358bb47-e77b-4cfe-957c-fa7b7f7c4b4e.pdf"},0x9c1fc59:{metaTags:[{name:"citation_title",content:"Post-Progressivism"},{name:"citation_author",content:"Kaufmann, Eric"},{name:"citation_publication_date",content:"2025/05/16"},{name:"citation_pdf_url",content:"https://erickaufmann.substack.com/p/post-progressivism/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://erickaufmann.substack.com/p/post-progressivism"},{name:"citation_fulltext_html_url",content:"https://erickaufmann.substack.com/p/post-progressivism"},{name:"citation_doi",content:"10.32388/substack.7s53rz"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4812-4542"},{name:"citation_keywords",content:"cultural shift; progressivism decline; social change; political realignment; left liberalism; vibe shift"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Post-Progressivism",author:[{"@type":"Person",name:"Eric Kaufmann"}],datePublished:"2025-05-16",inLanguage:"en",url:"https://erickaufmann.substack.com/p/post-progressivism",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.7s53rz"},sameAs:["https://doi.org/10.32388/substack.7s53rz"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"cultural shift; progressivism decline; social change; political realignment; left liberalism; vibe shift",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://erickaufmann.substack.com/p/post-progressivism/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.7s53rz",postFilePdfKey:"efa39d8a-9429-4fd9-80b5-cd714263cecf.pdf"},0x9ecc6ba:{metaTags:[{name:"citation_title",content:"The humanity of a new Denisovan"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2025/06/22"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/the-humanity-of-a-new-denisovan/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/the-humanity-of-a-new-denisovan"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/the-humanity-of-a-new-denisovan"},{name:"citation_doi",content:"10.32388/substack.c306dh"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"denisovans; harbin skull; ancient dna; human evolution; archaic hominins; mitochondrial dna"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The humanity of a new Denisovan",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2025-06-22",inLanguage:"en",url:"https://www.johnhawks.net/p/the-humanity-of-a-new-denisovan",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.c306dh"},sameAs:["https://doi.org/10.32388/substack.c306dh"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"denisovans; harbin skull; ancient dna; human evolution; archaic hominins; mitochondrial dna",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/the-humanity-of-a-new-denisovan/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.c306dh",postFilePdfKey:"20f4b9e5-e34e-4dff-8ed2-62748acdc7a5.pdf"},0x9fd5144:{metaTags:[{name:"citation_title",content:"Metascience Manqu\xe8"},{name:"citation_author",content:"Munger, Kevin"},{name:"citation_publication_date",content:"2025/07/17"},{name:"citation_pdf_url",content:"https://kevinmunger.substack.com/p/metascience-manque/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://kevinmunger.substack.com/p/metascience-manque"},{name:"citation_fulltext_html_url",content:"https://kevinmunger.substack.com/p/metascience-manque"},{name:"citation_doi",content:"10.32388/substack.ws0wk1"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4399-5250"},{name:"citation_keywords",content:"metascience; research methodology; social science reform; temporal validity; quantitative description; science studies"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Metascience Manqu\xe8",author:[{"@type":"Person",name:"Kevin Munger"}],datePublished:"2025-07-17",inLanguage:"en",url:"https://kevinmunger.substack.com/p/metascience-manque",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.ws0wk1"},sameAs:["https://doi.org/10.32388/substack.ws0wk1"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"metascience; research methodology; social science reform; temporal validity; quantitative description; science studies",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://kevinmunger.substack.com/p/metascience-manque/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.ws0wk1",postFilePdfKey:"2e4e662d-b37c-4582-9fb3-7995fa46fc5f.pdf"},0x9fe283e:{metaTags:[{name:"citation_title",content:"Human origins science in 1925: the good, the bad, and the fake"},{name:"citation_author",content:"Hawks, John"},{name:"citation_publication_date",content:"2025/07/13"},{name:"citation_pdf_url",content:"https://www.johnhawks.net/p/human-origins-science-in-1925-the/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.johnhawks.net/p/human-origins-science-in-1925-the"},{name:"citation_fulltext_html_url",content:"https://www.johnhawks.net/p/human-origins-science-in-1925-the"},{name:"citation_doi",content:"10.32388/substack.db0jru"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3187-3755"},{name:"citation_keywords",content:"scopes trial; history of science; human evolution; 1925; paleoanthropology history; evolution debate"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Human origins science in 1925: the good, the bad, and the fake",author:[{"@type":"Person",name:"John Hawks"}],datePublished:"2025-07-13",inLanguage:"en",url:"https://www.johnhawks.net/p/human-origins-science-in-1925-the",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.db0jru"},sameAs:["https://doi.org/10.32388/substack.db0jru"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"scopes trial; history of science; human evolution; 1925; paleoanthropology history; evolution debate",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.johnhawks.net/p/human-origins-science-in-1925-the/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.db0jru",postFilePdfKey:"24da59cc-88f3-457d-9cb7-ec52e61e69cd.pdf"},0xa14c13d:{metaTags:[{name:"citation_title",content:"The authoritarian checklist"},{name:"citation_author",content:"Moynihan, Don"},{name:"citation_publication_date",content:"2025/08/28"},{name:"citation_pdf_url",content:"https://donmoynihan.substack.com/p/the-authoritarian-checklist/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://donmoynihan.substack.com/p/the-authoritarian-checklist"},{name:"citation_fulltext_html_url",content:"https://donmoynihan.substack.com/p/the-authoritarian-checklist"},{name:"citation_doi",content:"10.32388/substack.k1go8x"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-4097-6908"},{name:"citation_keywords",content:"authoritarianism; democratic backsliding; american democracy; trump administration; political institutions; democratic erosion"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"The authoritarian checklist",author:[{"@type":"Person",name:"Don Moynihan"}],datePublished:"2025-08-28",inLanguage:"en",url:"https://donmoynihan.substack.com/p/the-authoritarian-checklist",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.k1go8x"},sameAs:["https://doi.org/10.32388/substack.k1go8x"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"authoritarianism; democratic backsliding; american democracy; trump administration; political institutions; democratic erosion",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://donmoynihan.substack.com/p/the-authoritarian-checklist/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.k1go8x",postFilePdfKey:"5125019b-8ede-4b97-b1c4-48628ef4e2d7.pdf"},0xa1ba4c9:{metaTags:[{name:"citation_title",content:"More Evidence of Biases Against Men than Against Women in Faculty Hiring"},{name:"citation_author",content:"Jussim, Lee"},{name:"citation_publication_date",content:"2025/07/30"},{name:"citation_pdf_url",content:"https://unsafescience.substack.com/p/more-evidence-of-biases-against-men/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://unsafescience.substack.com/p/more-evidence-of-biases-against-men"},{name:"citation_fulltext_html_url",content:"https://unsafescience.substack.com/p/more-evidence-of-biases-against-men"},{name:"citation_doi",content:"10.32388/substack.m3l02i"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_keywords",content:"gender bias; academic hiring; faculty recruitment; sex discrimination; higher education; replication study"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"More Evidence of Biases Against Men than Against Women in Faculty Hiring",author:[{"@type":"Person",name:"Lee Jussim"}],datePublished:"2025-07-30",inLanguage:"en",url:"https://unsafescience.substack.com/p/more-evidence-of-biases-against-men",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.m3l02i"},sameAs:["https://doi.org/10.32388/substack.m3l02i"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"gender bias; academic hiring; faculty recruitment; sex discrimination; higher education; replication study",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://unsafescience.substack.com/p/more-evidence-of-biases-against-men/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.m3l02i",postFilePdfKey:"d091f714-692d-49bf-9bea-23487a3d3707.pdf"},0xa3ed136:{metaTags:[{name:"citation_title",content:"Against Treating Chatbots as Conscious"},{name:"citation_author",content:"Hoel, Erik"},{name:"citation_publication_date",content:"2025/09/24"},{name:"citation_pdf_url",content:"https://www.theintrinsicperspective.com/p/against-treating-chatbots-as-conscious/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://www.theintrinsicperspective.com/p/against-treating-chatbots-as-conscious"},{name:"citation_fulltext_html_url",content:"https://www.theintrinsicperspective.com/p/against-treating-chatbots-as-conscious"},{name:"citation_doi",content:"10.32388/substack.uww0mv"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-2970-0057"},{name:"citation_keywords",content:"artificial intelligence; ai consciousness; chatbots; philosophy of mind; ai psychosis; machine consciousness"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Against Treating Chatbots as Conscious",author:[{"@type":"Person",name:"Erik Hoel"}],datePublished:"2025-09-24",inLanguage:"en",url:"https://www.theintrinsicperspective.com/p/against-treating-chatbots-as-conscious",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.uww0mv"},sameAs:["https://doi.org/10.32388/substack.uww0mv"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"artificial intelligence; ai consciousness; chatbots; philosophy of mind; ai psychosis; machine consciousness",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://www.theintrinsicperspective.com/p/against-treating-chatbots-as-conscious/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.uww0mv",postFilePdfKey:"3254ecd7-b981-4d28-9aa9-53b15caf1045.pdf"},0xa400ed1:{metaTags:[{name:"citation_title",content:"Experiments as Performance Art"},{name:"citation_author",content:"Munger, Kevin"},{name:"citation_publication_date",content:"2025/09/15"},{name:"citation_pdf_url",content:"https://kevinmunger.substack.com/p/experiments-as-performance-art/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://kevinmunger.substack.com/p/experiments-as-performance-art"},{name:"citation_fulltext_html_url",content:"https://kevinmunger.substack.com/p/experiments-as-performance-art"},{name:"citation_doi",content:"10.32388/substack.atbae1"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4399-5250"},{name:"citation_keywords",content:"experimental methods; credibility revolution; causal inference; social science methodology; research design; observational studies"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Experiments as Performance Art",author:[{"@type":"Person",name:"Kevin Munger"}],datePublished:"2025-09-15",inLanguage:"en",url:"https://kevinmunger.substack.com/p/experiments-as-performance-art",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.atbae1"},sameAs:["https://doi.org/10.32388/substack.atbae1"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"experimental methods; credibility revolution; causal inference; social science methodology; research design; observational studies",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://kevinmunger.substack.com/p/experiments-as-performance-art/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.atbae1",postFilePdfKey:"d75f15bb-6df2-4dfe-8128-2fa719737659.pdf"},0xa833045:{metaTags:[{name:"citation_title",content:"Research on Microaggressions and Their Impacts Assesses Neither Microaggressions nor Their Impacts"},{name:"citation_author",content:"Jussim, Lee"},{name:"citation_publication_date",content:"2025/10/16"},{name:"citation_pdf_url",content:"https://unsafescience.substack.com/p/research-on-microaggressions-and/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://unsafescience.substack.com/p/research-on-microaggressions-and"},{name:"citation_fulltext_html_url",content:"https://unsafescience.substack.com/p/research-on-microaggressions-and"},{name:"citation_doi",content:"10.32388/substack.peycas"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_keywords",content:"microaggressions; research critique; psychotherapy; measurement validity; social psychology; methodological criticism"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Research on Microaggressions and Their Impacts Assesses Neither Microaggressions nor Their Impacts",author:[{"@type":"Person",name:"Lee Jussim"}],datePublished:"2025-10-16",inLanguage:"en",url:"https://unsafescience.substack.com/p/research-on-microaggressions-and",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.peycas"},sameAs:["https://doi.org/10.32388/substack.peycas"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"microaggressions; research critique; psychotherapy; measurement validity; social psychology; methodological criticism",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://unsafescience.substack.com/p/research-on-microaggressions-and/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.peycas",postFilePdfKey:"59ff11e4-ade2-40fd-8104-1d03262980f6.pdf"},0xa839bfd:{metaTags:[{name:"citation_title",content:"Yes, Trans is in Decline among Young Educated Americans"},{name:"citation_author",content:"Kaufmann, Eric"},{name:"citation_publication_date",content:"2025/10/17"},{name:"citation_pdf_url",content:"https://erickaufmann.substack.com/p/yes-trans-is-in-decline-among-young/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://erickaufmann.substack.com/p/yes-trans-is-in-decline-among-young"},{name:"citation_fulltext_html_url",content:"https://erickaufmann.substack.com/p/yes-trans-is-in-decline-among-young"},{name:"citation_doi",content:"10.32388/substack.gq6iy7"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0002-4812-4542"},{name:"citation_keywords",content:"transgender identification; gender identity; youth demographics; cultural trends; social contagion; survey research"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Yes, Trans is in Decline among Young Educated Americans",author:[{"@type":"Person",name:"Eric Kaufmann"}],datePublished:"2025-10-17",inLanguage:"en",url:"https://erickaufmann.substack.com/p/yes-trans-is-in-decline-among-young",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.gq6iy7"},sameAs:["https://doi.org/10.32388/substack.gq6iy7"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"transgender identification; gender identity; youth demographics; cultural trends; social contagion; survey research",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://erickaufmann.substack.com/p/yes-trans-is-in-decline-among-young/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.gq6iy7",postFilePdfKey:"4a1e165a-d224-48e4-9d1a-03ed71c42227.pdf"},0xa8615a3:{metaTags:[{name:"citation_title",content:"New Anxieties: The Fear of Being Cancelled"},{name:"citation_author",content:"McKay, Dean"},{name:"citation_publication_date",content:"2025/10/19"},{name:"citation_pdf_url",content:"https://opentherapyinstitute.substack.com/p/new-anxieties-the-fear-of-being-cancelled/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://opentherapyinstitute.substack.com/p/new-anxieties-the-fear-of-being-cancelled"},{name:"citation_fulltext_html_url",content:"https://opentherapyinstitute.substack.com/p/new-anxieties-the-fear-of-being-cancelled"},{name:"citation_doi",content:"10.32388/substack.h17589"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-1158-5043"},{name:"citation_keywords",content:"cancel culture; social anxiety; political polarization; self-censorship; mental health; social media"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"New Anxieties: The Fear of Being Cancelled",author:[{"@type":"Person",name:"Dean McKay"}],datePublished:"2025-10-19",inLanguage:"en",url:"https://opentherapyinstitute.substack.com/p/new-anxieties-the-fear-of-being-cancelled",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.h17589"},sameAs:["https://doi.org/10.32388/substack.h17589"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"cancel culture; social anxiety; political polarization; self-censorship; mental health; social media",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://opentherapyinstitute.substack.com/p/new-anxieties-the-fear-of-being-cancelled/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.h17589",postFilePdfKey:"ca4ec969-39df-415b-a5bc-e8f6fcd38848.pdf"},0xaa1e79a:{metaTags:[{name:"citation_title",content:"Navigating Political Polarization with Individuals, Couples and Families"},{name:"citation_author",content:"Chamberlain, Linda"},{name:"citation_author",content:"McCown, William"},{name:"citation_publication_date",content:"2025/11/09"},{name:"citation_pdf_url",content:"https://opentherapyinstitute.substack.com/p/navigating-political-polarization/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://opentherapyinstitute.substack.com/p/navigating-political-polarization"},{name:"citation_fulltext_html_url",content:"https://opentherapyinstitute.substack.com/p/navigating-political-polarization"},{name:"citation_doi",content:"10.32388/substack.q514vp"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_keywords",content:"political polarization; couples therapy; family therapy; partisanship; therapeutic practice; relationship conflict"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Navigating Political Polarization with Individuals, Couples and Families",author:[{"@type":"Person",name:"Linda Chamberlain"},{"@type":"Person",name:"William McCown"}],datePublished:"2025-11-09",inLanguage:"en",url:"https://opentherapyinstitute.substack.com/p/navigating-political-polarization",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.q514vp"},sameAs:["https://doi.org/10.32388/substack.q514vp"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"political polarization; couples therapy; family therapy; partisanship; therapeutic practice; relationship conflict",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://opentherapyinstitute.substack.com/p/navigating-political-polarization/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.q514vp",postFilePdfKey:"9d4da7b4-3d83-49f5-8d64-62548fd3e3b7.pdf"},0xaa30464:{metaTags:[{name:"citation_title",content:"How much protein should you eat?"},{name:"citation_author",content:"Rochussen, Adam"},{name:"citation_publication_date",content:"2025/11/21"},{name:"citation_pdf_url",content:"https://rochussen.substack.com/p/how-much-protein-should-you-eat/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://rochussen.substack.com/p/how-much-protein-should-you-eat"},{name:"citation_fulltext_html_url",content:"https://rochussen.substack.com/p/how-much-protein-should-you-eat"},{name:"citation_doi",content:"10.32388/substack.o72c0z"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0001-9439-1206"},{name:"citation_keywords",content:"protein intake; nutrition science; dietary recommendations; macronutrients; health guidelines; diet optimization"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"How much protein should you eat?",author:[{"@type":"Person",name:"Adam Rochussen"}],datePublished:"2025-11-21",inLanguage:"en",url:"https://rochussen.substack.com/p/how-much-protein-should-you-eat",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.o72c0z"},sameAs:["https://doi.org/10.32388/substack.o72c0z"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"protein intake; nutrition science; dietary recommendations; macronutrients; health guidelines; diet optimization",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://rochussen.substack.com/p/how-much-protein-should-you-eat/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.o72c0z",postFilePdfKey:"0bb04a89-6e5a-4f1e-87ca-b5a6ef055692.pdf"},0xaabd2bc:{metaTags:[{name:"citation_title",content:"Biases Against Men in Couples Therapy"},{name:"citation_author",content:"Alam, Nafees"},{name:"citation_publication_date",content:"2025/11/16"},{name:"citation_pdf_url",content:"https://opentherapyinstitute.substack.com/p/biases-against-men-in-couples-therapy/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://opentherapyinstitute.substack.com/p/biases-against-men-in-couples-therapy"},{name:"citation_fulltext_html_url",content:"https://opentherapyinstitute.substack.com/p/biases-against-men-in-couples-therapy"},{name:"citation_doi",content:"10.32388/substack.p9y3xx"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_author_orcid",content:"0000-0003-3354-3362"},{name:"citation_keywords",content:"couples therapy; gender bias; masculinity; therapeutic bias; men mental health; relationship therapy"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Biases Against Men in Couples Therapy",author:[{"@type":"Person",name:"Nafees Alam"}],datePublished:"2025-11-16",inLanguage:"en",url:"https://opentherapyinstitute.substack.com/p/biases-against-men-in-couples-therapy",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.p9y3xx"},sameAs:["https://doi.org/10.32388/substack.p9y3xx"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"couples therapy; gender bias; masculinity; therapeutic bias; men mental health; relationship therapy",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://opentherapyinstitute.substack.com/p/biases-against-men-in-couples-therapy/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.p9y3xx",postFilePdfKey:"ae32efc4-5a5f-4ec2-b4df-6a1103e55652.pdf"},0xabf9bbf:{metaTags:[{name:"citation_title",content:"Treating Patients Impacted by Anti-White Racial Aggression"},{name:"citation_author",content:"Zyl, Jaco van"},{name:"citation_publication_date",content:"2025/11/30"},{name:"citation_pdf_url",content:"https://opentherapyinstitute.substack.com/p/treating-patients-impacted-by-anti/citation.pdf"},{name:"citation_language",content:"en"},{name:"citation_abstract_html_url",content:"https://opentherapyinstitute.substack.com/p/treating-patients-impacted-by-anti"},{name:"citation_fulltext_html_url",content:"https://opentherapyinstitute.substack.com/p/treating-patients-impacted-by-anti"},{name:"citation_doi",content:"10.32388/substack.6d8zv0"},{name:"citation_journal_title",content:"Substack"},{name:"citation_publisher",content:"Qeios"},{name:"citation_keywords",content:"racial discrimination; clinical practice; mental health treatment; racial aggression; therapeutic intervention; patient care"}],ldJson:{"@context":"https://schema.org","@type":"ScholarlyArticle",headline:"Treating Patients Impacted by Anti-White Racial Aggression",author:[{"@type":"Person",name:"Jaco van Zyl"}],datePublished:"2025-11-30",inLanguage:"en",url:"https://opentherapyinstitute.substack.com/p/treating-patients-impacted-by-anti",identifier:{"@type":"PropertyValue",propertyID:"DOI",value:"10.32388/substack.6d8zv0"},sameAs:["https://doi.org/10.32388/substack.6d8zv0"],isPartOf:{"@type":"Periodical",name:"Substack",publisher:{"@type":"Organization",name:"Qeios"}},keywords:"racial discrimination; clinical practice; mental health treatment; racial aggression; therapeutic intervention; patient care",encoding:{"@type":"MediaObject",fileFormat:"application/pdf",contentUrl:"https://opentherapyinstitute.substack.com/p/treating-patients-impacted-by-anti/citation.pdf"}},doiUrl:"https://doi.org/10.32388/substack.6d8zv0",postFilePdfKey:"c1b885da-508e-41db-a2f8-739e9b9a6bd2.pdf"}};function i(e){var t;let{postId:n}=e;return(null==(t=a[n])?void 0:t.metaTags)||[]}function r(e){var t;let{postId:n}=e;return(null==(t=a[n])?void 0:t.ldJson)||null}},48531:function(e,t,n){n.d(t,{N:()=>r}),n(74848);var a=n(96540);n(68349),n(48965);var i=n(56007);function r(){let[e,t]=(0,a.useState)(!1),n=(0,a.useRef)(null);return(0,a.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{justCopied:e,markCopied:(0,a.useCallback)(()=>{t(!0),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(!1),i.bn)},[])}}},31392:function(e,t,n){n.d(t,{D2:()=>r,Ut:()=>i}),n(99851);var a=n(96540);function i(){let[e,t]=(0,a.useState)(()=>{if("undefined"!=typeof window){let e=localStorage.getItem("colorScheme"),t="dark"===e?"dark":"light"===e?"light":null;return t||(t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),t}return"light"});return(0,a.useEffect)(()=>{let e=e=>{t(e.scheme)};return window.addEventListener("substackcolorschemechange",e),()=>{window.removeEventListener("substackcolorschemechange",e)}},[]),e}function r(){let[e,t]=(0,a.useState)(()=>"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches);return(0,a.useEffect)(()=>{let e=e=>{t(e.matches)},n=window.matchMedia("(prefers-color-scheme: dark)");return n.addEventListener("change",e),()=>{n.removeEventListener("change",e)}},[]),{darkMode:e}}Event},58418:function(e,t,n){n.d(t,{A:()=>l});var a=n(96540),i=n(86500),r=n(17186),o=n(16291);let s=()=>{};function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,[l,d]=(0,a.useState)(!!e&&c(e,t,o));return((0,a.useEffect)(()=>{e&&d(c(e,t,o));let n=()=>{d(!0)};if(e){document.addEventListener("dismiss: ".concat(e),n,!1);let t=(0,r.xm)("".concat(e,"-seen-count"))||0;(!o||t{document.removeEventListener("dismiss: ".concat(e),n)}},[e]),e)?[l,()=>{n(),(0,i.u4)(i.qY.DASHBOARD_ACTION_BOX_DISMISSED,{key:e});let t=new Date;(0,r.X3)(e,t.toString()),d(!0);let a=new Event("dismiss: ".concat(e));document.dispatchEvent(a)}]:[!0,s]}function c(e,t,n){let a="undefined"==typeof window?new Date().toString():(0,r.xm)(e),i="undefined"==typeof window?0:(0,r.xm)("".concat(e,"-seen-count")),s=a||n&&i>=n;return s&&t?(0,o.A)(a).add(t,"second").isAfterNow():!!(a||s)}},74894:function(e,t,n){function a(e,t){var n;return null!=(n=(null==t?void 0:t.cover_image)||(null==t?void 0:t.podcast_art_url)||(null==e?void 0:e.podcast_art_url))?n:null}n.d(t,{M$:()=>a}),n(83673),n(94729),n(46009)},55762:function(e,t,n){n.d(t,{k:()=>a});let a=(e,t)=>{var n,a,i,r;let{scrollTop:o,scrollHeight:s,clientHeight:l}=t?{scrollTop:document.documentElement.scrollTop||document.body.scrollTop,scrollHeight:null!=(n=null==e?void 0:e.scrollHeight)?n:0,clientHeight:window.innerHeight}:{scrollTop:null!=(a=null==e?void 0:e.scrollTop)?a:0,scrollHeight:null!=(i=null==e?void 0:e.scrollHeight)?i:0,clientHeight:null!=(r=null==e?void 0:e.clientHeight)?r:0};return s&&l?s===l?{top:0,bottom:100}:{top:Math.min(100,o/(s-l)*100),bottom:Math.min(100,(o+l)/s*100)}:{top:0,bottom:0}}},17186:function(e,t,n){n.d(t,{X3:()=>o,f4:()=>s,xm:()=>r});var a=n(87369),i=n.n(a);let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"undefined"!=typeof window?i().get(e,t):t},o=(e,t)=>{if("undefined"!=typeof window)return i().set(e,t)},s=e=>{if("undefined"!=typeof window)return i().remove(e)}},76528:function(e,t,n){n.d(t,{AA:()=>l,OU:()=>s});var a=n(69277),i=n(32641),r=n(25250),o=n(94729);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var{deps:s,auto:l=!0,massage:c=async e=>e,shouldRevalidate:d=!0}=t,u=(0,i._)(t,["deps","auto","massage","shouldRevalidate"]);return(0,r.Ay)(l?s?[...s,e]:e:null,()=>(0,o.x6)(e,u).then(c),(0,a._)({},d?null:{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1},n))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var{deps:n}=t,a=(0,i._)(t,["deps"]);(0,r.uv)(n?[...n,e]:e,()=>(0,o.x6)(e,a))}},93946:function(e,t,n){n.d(t,{Mv:()=>o,nr:()=>s}),n(74848);var a=n(96540),i=n(40961),r=n(84605);n(67734),n(82776);let o=(e,t)=>{var n,o,s;let l="undefined"!=typeof window&&null!=(s=null==(o=window._preloads)||null==(n=o.pub)?void 0:n.language)?s:"en";(0,i.render)((0,a.createElement)(r.Pz,{language:l,children:e}),t)};async function s(e){let{timeout:t=5e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("video");n.volume=0;let a=!1,i=Promise.race([new Promise(e=>{n.onloadedmetadata=()=>{n.onloadedmetadata=null,n.duration===1/0?(n.currentTime=Number.MAX_SAFE_INTEGER,n.ontimeupdate=()=>{n.ontimeupdate=null,a=!0,e(n.duration),n.currentTime=0}):e(n.duration)},n.onerror=t=>{a=!0;let n=null;"string"==typeof t?n=t:t.target&&"error"in t.target&&(n=t.target.error),e({is_error:!0,err:n})}}),new Promise(e=>{setTimeout(()=>{a||e({is_error:!0,err:Error("Blob duration fetching timed out")})},t)})]);try{n.src="proxy.php?url=string"==typeof e||"string"==typeof e?e:window.URL.createObjectURL(e)}catch(e){return{is_error:!0,err:e}}return i}},68349:function(e,t,n){n.d(t,{Cw:()=>e_,EW:()=>B,Eh:()=>ew,FK:()=>ep,FY:()=>eN,Gr:()=>ec,Hm:()=>U,I5:()=>Y,LJ:()=>K,NN:()=>D,P7:()=>eR,Q2:()=>$,QT:()=>eO,Sd:()=>eu,TJ:()=>eM,Tf:()=>es,Uj:()=>R,V2:()=>ef,Wy:()=>eT,YK:()=>ed,aS:()=>ex,cH:()=>el,cX:()=>X,dO:()=>L,gI:()=>Z,gK:()=>eS,gm:()=>q,iQ:()=>ei,jL:()=>eh,lT:()=>z,lW:()=>et,m0:()=>J,mp:()=>eg,nr:()=>Q,o7:()=>H,qm:()=>ev,qr:()=>eE,rr:()=>V,sg:()=>T,uX:()=>F,vL:()=>ey,vy:()=>er,wp:()=>eI,zY:()=>P,zs:()=>W});var a=n(69277),i=n(79785),r=n(74848),o=n(99862),s=n(72343),l=n(14242);n(74894);var c=n(16291),d=n(96400);n(35884);var u=n(39318),p=n(41086),m=n(9036),h=n(98949),g=n(82776);function _(){let e=(0,i._)(["","% off first month"]);return _=function(){return e},e}function b(){let e=(0,i._)(["","% off first year"]);return b=function(){return e},e}function f(){let e=(0,i._)(["","% off first week"]);return f=function(){return e},e}function A(){let e=(0,i._)(["","% off first day"]);return A=function(){return e},e}function E(){let e=(0,i._)(["","% off first payment"]);return E=function(){return e},e}function y(){let e=(0,i._)(["","% off forever"]);return y=function(){return e},e}function N(){let e=(0,i._)([""," off first month"]);return N=function(){return e},e}function O(){let e=(0,i._)([""," off first year"]);return O=function(){return e},e}function v(){let e=(0,i._)([""," off first week"]);return v=function(){return e},e}function x(){let e=(0,i._)([""," off first day"]);return x=function(){return e},e}function S(){let e=(0,i._)([""," off first payment"]);return S=function(){return e},e}function w(){let e=(0,i._)([""," off forever"]);return w=function(){return e},e}function I(){let e=(0,i._)([" at ",""]);return I=function(){return e},e}function M(){let e=(0,i._)([" at ",""]);return M=function(){return e},e}function C(){let e=(0,i._)([" at ",""]);return C=function(){return e},e}function k(){let e=(0,i._)([" at ",""]);return k=function(){return e},e}let j="undefined"==typeof window||!window.addEventListener;j||window.addEventListener("load",()=>{j=!0},!1),"undefined"!=typeof window&&window._preloads;let L="undefined"!=typeof window?new l.A:null,R=e=>{j?e():window.addEventListener("load",e,!1)},T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,a=null;return function(){null!==a&&clearTimeout(a),"undefined"!=typeof window&&(a=window.setTimeout(()=>e.apply(n,arguments),t))}},P=function(e,t){var n,a,i,r,o,s;let l,{language:c="en"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{iTemplate:u,iPlural:p}=d.TH.i(c);if(e&&!e.loading&&!e.error){if(e.trial_period_days)l=p("1 day free trial","%1 day free trial",e.trial_period_days);else if(e.extra_seats)l=p("an additional seat","%1 additional seats",e.extra_seats);else if(e.percent_off)if("once"===e.duration)if(t)switch(t.interval){case"month":l=u(_(),Math.round(e.percent_off_precise||e.percent_off));break;case"year":l=u(b(),Math.round(e.percent_off_precise||e.percent_off));break;case"week":l=u(f(),Math.round(e.percent_off_precise||e.percent_off));break;case"day":l=u(A(),Math.round(e.percent_off_precise||e.percent_off))}else l=u(E(),Math.round(e.percent_off_precise||e.percent_off));else l="repeating"===e.duration?null===e.duration_in_months||e.duration_in_months%12==0?p("%2% off for 1 year","%2% off for %1 years",(null!=(n=e.duration_in_months)?n:0)/12,"".concat(Math.round(e.percent_off_precise||e.percent_off))):p("%2% off for 1 month","%2% off for %1 months",e.duration_in_months,"".concat(Math.round(e.percent_off_precise||e.percent_off))):u(y(),Math.round(e.percent_off_precise||e.percent_off));else if(e.amount_off)if("once"===e.duration)if(t)switch(t.interval){case"month":l=u(N(),(0,g.centsToPriceString)(e.amount_off,t.currency));break;case"year":l=u(O(),(0,g.centsToPriceString)(e.amount_off,t.currency));break;case"week":l=u(v(),(0,g.centsToPriceString)(e.amount_off,t.currency));break;case"day":l=u(x(),(0,g.centsToPriceString)(e.amount_off,t.currency))}else{let n=(0,g.centsToPriceString)(e.amount_off,null!=(a=null==t?void 0:t.currency)?a:"");l=u(S(),n)}else if("repeating"===e.duration)if(null===e.duration_in_months||e.duration_in_months%12==0){let n=(0,g.centsToPriceString)(e.amount_off,null!=(i=null==t?void 0:t.currency)?i:"");l=p("%2 off for 1 year","%2 off for %1 years",(null!=(r=e.duration_in_months)?r:0)/12,n)}else{let n=(0,g.centsToPriceString)(e.amount_off,null!=(o=null==t?void 0:t.currency)?o:"");l=p("%2 off for 1 month","%2 off for %1 months",e.duration_in_months,n)}else{let n=(0,g.centsToPriceString)(e.amount_off,null!=(s=null==t?void 0:t.currency)?s:"");l=u(w(),n)}return l}},D=function(e,t){let n=new Image;n.onload=()=>{n.onload=n.onerror=null,t&&t(n)},n.onerror=n.onload,n.src=e},B=e=>{let t=document.createElement("a");return t.href=e,(t.hostname||"").replace(/\.localhost$/,"")},U=e=>{let t=document.createElement("a");return t.href=e,t.pathname||""},G=e=>{let t=document.createElement("a");return t.href=e,(t.pathname||"")+(t.search||"")+(t.hash||"")},F=(e,t)=>{var n;return K((null==e?void 0:e.body)||(null==e||null==(n=e.response)?void 0:n.body),t)},W=e=>{var t,n,a;let i=(null==e?void 0:e.body)||(null==e||null==(t=e.response)?void 0:t.body);return i&&i.error?{msg:i.error}:i&&i.errors&&i.errors.length>0?{html:null==(n=i.errors[i.errors.length-1])?void 0:n.msgHTML,msg:null==(a=i.errors[i.errors.length-1])?void 0:a.msg}:void 0},Y=(e,t)=>{let n;try{n=e?JSON.parse(e&&e.responseText):e}catch(e){}return K(n,t)},K=(e,t)=>{if(t=t||"Something went wrong",e&&e.error)return e.error;if(e&&e.errors&&e.errors.length>0){var n;return(null==(n=e.errors[e.errors.length-1])?void 0:n.msg)||t}return t},H=function(){return[(0,r.jsx)("input",{type:"email",name:"fake_email",placeholder:"email",style:{position:"absolute",top:-1e4,left:-1e4},"aria-hidden":"true",tabIndex:-1}),(0,r.jsx)("input",{type:"password",name:"fake_password",placeholder:"password",style:{position:"absolute",top:-1e4,left:-1e4},"aria-hidden":"true",tabIndex:-1})]},V=function(){if("undefined"!=typeof navigator||"undefined"!=typeof window){let e=navigator.userAgent||navigator.vendor||window.opera;if(e&&(0,h.fJ)(e,{checkFirst4:!0}))return!0}return!1},z=()=>"undefined"!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/(MSIE|Trident)/i.test(window.navigator.userAgent),q=()=>"undefined"!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/Firefox/i.test(window.navigator.userAgent),J=()=>"undefined"!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/Android/i.test(window.navigator.userAgent),Z=()=>!!ee(),X=e=>{if("undefined"==typeof window||e||(e=window.navigator),!e)return!1;let t=e;return t.userAgentData&&t.userAgentData.platform?/macOS/.test(t.userAgentData.platform):/Mac/.test(e.platform)},Q=()=>!!navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();return e?"⌘":"^"},ee=()=>"undefined"==typeof window?null:(0,h.UN)(),et=e=>{if("undefined"!=typeof window&&e){if(navigator.clipboard&&navigator.clipboard.writeText)return void navigator.clipboard.writeText(e).catch(()=>{en(e)});en(e)}},en=e=>{var t,n,a;let i;(t=window,n=document,a=navigator,{copy:e=>{let r,o;(i=n.createElement("textArea")).value=e,n.body.appendChild(i),a.userAgent.match(/ipad|iphone/i)?((r=n.createRange()).selectNodeContents(i),(o=t.getSelection()).removeAllRanges(),o.addRange(r),i.setSelectionRange(0,999999)):i.select(),n.execCommand("copy"),n.body.removeChild(i)}}).copy(e);let r=t=>{t&&t.clipboardData?(t.clipboardData.setData("text/plain",e),t.preventDefault()):window.clipboardData&&window.clipboardData.setData("Text",e)};ee()||window.addEventListener("copy",r),setTimeout(()=>{try{let t=document.createElement("input");t.style="position: absolute; top: 0; right: 0; height: 1px; width: 1px;",document.documentElement.appendChild(t),t.value=e,t.contentEditable="true",t.readOnly=!1;let n=document.createRange();n.selectNodeContents(t);let a=window.getSelection();null==a||a.removeAllRanges(),null==a||a.addRange(n),t.setSelectionRange(0,999999),document.execCommand("copy"),document.documentElement.removeChild(t)}catch(e){}window.removeEventListener("copy",r)},0)},ea=function(e){let t="undefined"!=typeof window&&window.location.hash?decodeURIComponent(window.location.hash.slice(1)):null;if(!t)return;let n=document.getElementById(t);n&&("number"!=typeof e&&(e=-122),document.documentElement.scrollTop=Math.max(0,((e,t)=>{let n="offset".concat((0,g.toTitleCase)(t)),a=0;for(;e&&e!==document.body;)a+=e[n],e="offsetParent"in e&&e.offsetParent||e.parentNode;return a})(n,"top")+e))},ei=(e,t)=>{e.className+=" ".concat(t)},er=(e,t)=>{e&&(e.className=e.className.replace(RegExp("\\b".concat(t,"\\b"),"g"),"").trim())},eo=()=>{let e,t;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(e="visibilitychange",t="hidden"):void 0!==document.msHidden?(e="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(e="webkitvisibilitychange",t="webkitHidden")),{visibilityChange:e,hidden:t}},es=()=>{let{hidden:e}=eo();return!e||!document[e]},el=e=>{let{visibilityChange:t}=eo();t&&document.addEventListener(t,e,!1)},ec=e=>{let{visibilityChange:t}=eo();t&&document.removeEventListener(t,e,!1)},ed=e=>new Promise((t,n)=>{if(!window.FileReader)return void n(TypeError("File reader API not found"));let a=new FileReader;a.onerror=n,a.onload=()=>{t(a.result)},a.readAsDataURL(e)}),eu=async e=>{let t,n;if(e){try{t=await ed(e)}catch(e){console.error("Failed to get data URL from file:",e),alert(e.message);return}try{n=await new Promise((t,n)=>{if(!window.FileReader)return void n(TypeError("File reader API not found"));if(!window.DataView)return void n(TypeError("DataView API not found"));let a=new FileReader;a.onerror=n,a.onload=()=>{let e=new DataView(a.result);if(65496!=e.getUint16(0,!1))return t(-2);let n=e.byteLength,i=2;for(;i=e.getUint16(i+2,!1))return t(-1);let n=e.getUint16(i,!1);if(i+=2,65505==n){if(0x45786966!=e.getUint32(i+=2,!1))return t(-1);let n=18761==e.getUint16(i+=6,!1);i+=e.getUint32(i+4,n);let a=e.getUint16(i,n);i+=2;for(let r=0;r{switch(e){case 2:return"rotateY(180deg)";case 3:return"rotateZ(-180deg)";case 4:return"rotateZ(-180deg) rotateY(180deg)";case 5:return"rotateZ(-90deg) rotateY(180deg)";case 6:return"rotateZ(90deg)";case 7:return"rotateZ(90deg) rotateY(180deg)";case 8:return"rotateZ(-90deg)";default:return""}},em=function(){let{redirect:e,email:t,justTrying:n,with_password:a=!1,useOriginalUrl:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"string"!=typeof e&&(e=(0,u.RY1)({useOriginalUrl:i})),(0,u.yRP)("/account/login",{redirect:e||"",email:t||"",with_password:a?"1":"",justTrying:n||""})},eh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};document.location.href=em(e)},eg=()=>{document.location.href=(0,u.tFi)()},e_=e=>{let t,n,a,i,r,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",c="",d=0;for(e=eb(e);d>2,r=(3&t)<<4|n>>4,o=(15&n)<<2|a>>6,s=63&a,isNaN(n)?o=s=64:isNaN(a)&&(s=64),c=c+l.charAt(i)+l.charAt(r)+l.charAt(o)+l.charAt(s);return c},eb=e=>{let t="";for(let n=0;n127&&a<2048?t+=String.fromCharCode(a>>6|192):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128)),t+=String.fromCharCode(63&a|128))}return t},ef=function(e){let{event:t=null,local_navigation:n=!0,replace:i=!1,newTab:r=!1,state:l,campaign:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.preventDefault(),!e||"string"!=typeof e)return;try{let t=new URL(e);if(!["http:","https:","substack:"].includes(t.protocol))return}catch(e){}if(e.startsWith("#")&&n){if(window.location.hash!==e){var d;i&&(null==(d=window.history)?void 0:d.replaceState)?window.history.replaceState(null!=l?l:window.history.state,null,e):window.location.hash=e}ea();return}if(n&&B(e)&&B(e)!==B(window.location.href)&&(n=!1),!n&&c&&(e=(0,s.P)(e,c)),r||t&&("metaKey"in t&&t.metaKey||"ctrlKey"in t&&t.ctrlKey))return void window.open(e,"_blank");let u=history.state;if(n){if(c&&(0,s.x4)((0,a._)({},c)),"react-router"===window.__SUBSTACK_ROUTER_TYPE__)return void window.__reactRouterNavigate(G(e),{replace:i,state:l});if((0,o.route)(G(e),i)){void 0!==l?history.replaceState(l,""):i&&void 0!==u&&history.replaceState(u,""),setTimeout(()=>ea(),0);return}}window.location.href=e},eA=(e,t)=>new Promise(n=>{e.setState(t,n)}),eE=(e,t)=>new Promise((n,a)=>{let i=async function(){for(var i=arguments.length,r=Array(i),o=0;o3&&void 0!==arguments[3]?arguments[3]:{};return"function"==typeof t&&(n=t,t="lock"),await eE(e,async function(i){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;st=>{let n=(0,m.m)(document.location.href),i=(0,p.y)("message");if(i){delete n.message;let e="".concat((0,u.yRP)(document.location.pathname,n)).concat(document.location.hash);window&&window.history&&window.history.replaceState({},document.title,e)}return(0,r.jsx)(e,(0,a._)({message:i},t))},eO=()=>{let e=window.crypto||window.msCrypto;if("function"==typeof(null==e?void 0:e.randomUUID))return e.randomUUID();if(e)return"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,t=>(Number(t)^e.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16));let t=new Date().getTime(),n="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let a=16*Math.random();return t>0?(a=(t+a)%16|0,t=Math.floor(t/16)):(a=(n+a)%16|0,n=Math.floor(n/16)),("x"===e?a:3&a|8).toString(16)})},ev=function(e){var t;let{stripHash:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof window&&(null==(t=window.history)?void 0:t.replaceState)){let t=(0,m.m)(window.location.href);if(Array.isArray(e))for(let n of e)delete t[n];else delete t[e];let a="".concat((0,u.yRP)(window.location.pathname,t)).concat(n?"":window.location.hash);window.history.replaceState(window.history.state,document.title,a)}},ex=()=>"undefined"!=typeof window&&(void 0!==document.webkitCurrentFullScreenElement?null!==document.webkitCurrentFullScreenElement:void 0!==document.fullscreenElement&&null!==document.fullscreenElement),eS=e=>"undefined"!=typeof window&&(e.requestFullScreen?(e.requestFullScreen(),!0):e.webkitRequestFullScreen?(e.webkitRequestFullScreen(),!0):!!e.mozRequestFullScreen&&(e.mozRequestFullScreen(),!0)),ew=()=>{if(!ex())return!1;if(document.exitFullscreen)return document.exitFullscreen(),!0;if(document.webkitExitFullscreen)document.webkitExitFullscreen();else if(document.mozCancelFullScreen)return document.mozCancelFullScreen(),!0;else if(document.msExitFullscreen)return document.msExitFullscreen(),!0;return!1},eI=()=>"undefined"!=typeof window&&!!document.pictureInPictureElement&&!!document.exitPictureInPicture&&(document.exitPictureInPicture(),!0),eM=e=>{let t=document.createElement("a");document.body.appendChild(t),t.href=e,t.target="_blank",t.click(),document.body.removeChild(t)},eC=new Intl.DateTimeFormat(void 0,{timeStyle:"short"}),ek=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),ej=new Intl.DateTimeFormat(void 0,{dateStyle:"long"}),eL=new Intl.DateTimeFormat(void 0,{dateStyle:"long"});function eR(e,t){return new Intl.DateTimeFormat(t,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(e)}let eT=function(e){let{includeTime:t,language:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,c.A)(e).locale(n||"en"),i=(0,c.A)(),{iTemplate:r}=d.TH.i(n);return a.isBefore(i.startOf("year"))?ej.format(a.toDate())+(t?r(I(),eC.format(a.toDate())):""):a.isBefore(i.startOf("day"))?ek.format(a.toDate())+(t?r(M(),eC.format(a.toDate())):""):a.isAfter(i.endOf("year"))?eL.format(a.toDate())+(t?r(C(),eC.format(a.toDate())):""):a.isAfter(i.endOf("day"))?ek.format(a.toDate())+(t?r(k(),eC.format(a.toDate())):""):eC.format(a.toDate())}},34771:function(e,t,n){n.d(t,{a7:()=>_});var a=n(74848),i=n(32485),r=n.n(i),o=n(47963),s=n(86500),l=n(56804),c=n(76977),d=n(63136),u=n(39318),p=n(98949),m=n(57324);let h=m._9.appMarketing,g=m.fL.signInPage;function _(e){let{abTestingId:t}=e,n=(0,p.aR)()?"ios":(0,p.m0)()?"android":"desktop",i="desktop"===n?180:120;return(0,a.jsx)(c.pT,{padding:20,paddingTop:32,alignItems:"center",justifyContent:"center",children:(0,a.jsxs)(c.Ye,{radius:"lg",border:"detail",className:r()("signInAppUpsell-v2qe5g",{"isDesktop-gGuBzo":"desktop"===n}),paddingX:20,paddingTop:20,gap:20,shadow:"lg",cursor:"pointer",onClick:e=>{(0,s.u4)(s.qY.SIGN_IN_APP_UPSELL_CLICKED,{position:"sign-in-page"}),(0,l.o)(e,(0,u.wHz)({utm_campaign:h,utm_content:g,utm_source:m.VU.upsell}),{native:!0,newTab:!0})},children:[(0,a.jsxs)(c.I1,{justifyContent:"space-between",flex:"grow",paddingBottom:20,gap:8,children:[(0,a.jsxs)(c.I1,{gap:8,children:[(0,a.jsx)(d.EY.H3,{weight:"heavy",children:"Stay signed in"}),(0,a.jsx)(d.EY.B4,{color:"secondary",children:"Download the Substack app for ".concat("ios"===n?"iOS":"android"===n?"Android":"Android or iOS")})]}),"desktop"===n?(0,a.jsx)(b,{abTestingId:t}):(0,a.jsx)(A,{type:n})]}),(0,a.jsx)(c.pT,{alignItems:"end",children:(0,a.jsx)("img",{style:{maxWidth:i},src:(0,u.dJ9)("/img/app_page/highlight-6-ios-v2.png",2*i)})})]})})}function b(e){let{abTestingId:t}=e;return(0,a.jsxs)(c.I1,{gap:16,alignItems:"center",children:[(0,a.jsx)(f,{abTestingId:t}),(0,a.jsxs)(c.Ye,{gap:8,children:[(0,a.jsx)(A,{type:"ios"}),(0,a.jsx)(A,{type:"android"})]})]})}function f(e){let{abTestingId:t}=e;return(0,a.jsx)(c.pT,{border:"detail",radius:"lg",className:"qrContainer-I8AYt6",children:(0,a.jsx)(c.pT,{className:"qrCode-xsX_9k",padding:8,children:(0,a.jsx)(o.hj,{abTestingId:t,width:160,height:160,utm_campaign:h,utm_content:g,utm_source:m.VU.qr})})})}function A(e){let{type:t}=e;return(0,a.jsx)(c.pT,{style:{minWidth:135},radius:"sm",overflowX:"hidden",overflowY:"hidden",className:"appDownloadButton-l8ORmM",as:"a",href:(0,u.wHz)({utm_campaign:h,utm_content:g,utm_source:m.VU.badge,force:"android"===t?"android":"ios"}),onClick:e=>e.stopPropagation(),children:(0,a.jsx)("img",{className:"app-upsell",src:(0,u.dJ9)("android"===t?"/img/app_page/google-play.png":"/img/app_page/app-store.png",320),height:40})})}},38093:function(e,t,n){n.d(t,{Q:()=>f,Z:()=>b});var a=n(69277),i=n(74848),r=n(32485),o=n.n(r),s=n(42216),l=n(96540),c=n(84605),d=n(94729),u=n(89490),p=n(8149),m=n(76977),h=n(20500),g=n(63136),_=n(24311);function b(e){let{email:t,redirect:n,forPub:r,islandMagicSignin:o,onIsAttemptingLoginChange:c}=e,[u,m]=(0,l.useState)(""),[h,g]=(0,l.useState)(!1),[_,b]=(0,l.useState)(!1),[f,O]=(0,l.useState)(!1),v=async()=>{g(!0),c&&c(!0);try{let[e]=await Promise.all([(0,d.x6)("/api/v1/email-otp-login/complete",{method:"POST",json:{code:u,email:t,redirect:n,for_pub:r,island_magic_signin:o}}),new Promise(e=>setTimeout(e,250))]);window.location.href=e.redirect}catch(e){e instanceof d.fk&&"login_guard_challenge"===e.body.type&&O(!0),g(!1),c&&c(!1),b(!0),m("")}};return t?(0,i.jsxs)(y,{children:[(0,i.jsx)(s.wE,{autoFocus:!0,maxLength:6,pattern:s.UO,onChange:e=>{m(e),e.length&&b(!1)},onComplete:v,value:u,render:e=>{let{slots:t}=e;return(0,i.jsx)(N,{children:t.map((e,t)=>(0,i.jsx)(A,(0,a._)({disabled:h},e),t))})}}),(0,i.jsx)(p.N,{open:!!_,children:(0,i.jsx)(E,{suspiciousLogin:f})})]}):null}function f(e){let{onComplete:t,error:n,isLoading:r}=e,[o,d]=(0,l.useState)(""),{iString:u}=(0,c.GO)();return(0,i.jsxs)(y,{children:[(0,i.jsx)(s.wE,{autoFocus:!0,maxLength:6,pattern:s.UO,onChange:e=>{d(e)},onComplete:e=>{r||t(e)},value:o,disabled:r,render:e=>{let{slots:t}=e;return(0,i.jsx)(N,{children:t.map((e,t)=>(0,i.jsx)(A,(0,a._)({disabled:r},e),t))})}}),n&&(0,i.jsx)(h.yn,{style:{textAlign:"center"},children:u("You entered an incorrect code. Please try again.")})]})}function A(e){let{char:t,isActive:n,disabled:a}=e;return(0,i.jsx)(m.fI,{justifyContent:"center",alignItems:"center",width:36,height:40,className:o()(_.A.input,n&&_.A.focus,a&&_.A.disabled),children:(0,i.jsx)(g.EY.B2,{textAlign:"center",children:t||""})})}function E(e){let{suspiciousLogin:t}=e,{iString:n}=(0,c.GO)(),a=n(t?"Please check your email for instructions to complete signing in.":"You entered an incorrect code. Please try again.");return(0,i.jsx)(h.yn,{style:{textAlign:"center"},children:a})}let y=(0,u.I4)({display:"flex",direction:"column",alignItems:"center",gap:8}),N=(0,u.I4)({display:"flex",direction:"row",justifyContent:"center",alignItems:"center",gap:8})},79531:function(e,t,n){n(4016),n(86898)},68410:function(e,t,n){n.d(t,{sM:()=>o});var a=n(96540),i=n(17988);n(15734),n(79531);var r=n(98949);let o=()=>{let e,t=(0,r.Fr)(),n=(0,i.useMediaQuery)({query:"only screen and (max-width: 1024px)"}),o=(0,i.useMediaQuery)({query:"only screen and (max-width: 768px)"}),s=(0,i.useMediaQuery)({query:"only screen and (max-width: 1779px)"}),l=(0,i.useMediaQuery)({query:"(orientation: landscape)"});e="undefined"==typeof window?t?"mobile":"desktop":o?"mobile":n?"tablet":"desktop";let c="undefined"==typeof window?!t:!s;return(0,a.useMemo)(()=>({breakpoint:e,isMobile:"mobile"===e,isMobileLandscape:t&&l,isTablet:"tablet"===e,isDesktop:"desktop"===e,isWideScreen:c}),[e,l,t,c])}},28528:function(e,t,n){n.d(t,{XL:()=>d,np:()=>u});var a=n(69277),i=n(70408),r=n(74848),o=n(69843),s=n.n(o),l=n(96540);let c=(0,l.createContext)({authorPagesEnabled:!1,cropGravity:"center",disableInteractive:!1,hideUfi:!1,highlightByline:!1,linkToComments:!1,pub:null,modifiedPosts:{},showPinForPostIds:new Set,user:null,onChangePost:()=>void 0,onUnpinPost:()=>void 0}),d=e=>{let{actionsClassName:t,authorPagesEnabled:n,children:o,cropGravity:d,disableInteractive:u,hideUfi:p,highlightByline:m,linkToComments:h,postPreviewUrl:g,pub:_,showPinForPostIds:b,showSectionOrTag:f,user:A,utm:E,onClickPost:y,onToggleMenu:N,onUnpinPost:O}=e,v=(0,l.useContext)(c),[x,S]=(0,l.useState)({}),w=(0,l.useCallback)(e=>{let{post:t}=e;S(e=>(0,i._)((0,a._)({},e),{[t.id]:t}))},[]);return(0,r.jsx)(c.Provider,{value:(0,i._)((0,a._)({},v,s()(t)?null:{actionsClassName:t},s()(n)?null:{authorPagesEnabled:n},s()(d)?null:{cropGravity:d},s()(u)?null:{disableInteractive:u},s()(p)?null:{hideUfi:p},s()(m)?null:{highlightByline:m},s()(h)?null:{linkToComments:h},s()(g)?null:{postPreviewUrl:g},s()(_)?null:{pub:_},s()(b)?null:{showPinForPostIds:b},s()(f)?null:{showSectionOrTag:f},s()(A)?null:{user:A},s()(E)?null:{utm:E},s()(y)?null:{onClickPost:y},s()(N)?null:{onToggleMenu:N},s()(O)?null:{onUnpinPost:O}),{modifiedPosts:x,onChangePost:w}),children:o})},u=()=>{let e=(0,l.useContext)(c);if(!e.pub)throw Error("No pub provided to PostPreviewContext");return e}},91694:function(e,t,n){n.d(t,{A:()=>d});var a=n(74848),i=n(32485),r=n.n(i),o=n(96540),s=n(59294),l=n(39318),c=n(40345);let d=e=>{let{post:t,containerRef:n,aspectRatio:i,size:d="small",alwaysShow:u=!1,className:p}=e,[m]=(0,s.TR)(n),[h,g]=(0,o.useState)(!1),_=(0,l.Cv_)({post:t,height:"large"===d?480:320});return _&&(m||u)?(0,a.jsx)("div",{className:r()(c.A.gifPreview,{[c.A.visible]:h},p),children:(0,a.jsx)("img",{className:c.A.image,src:_,style:{aspectRatio:"".concat(i)},onLoad:()=>g(!0)})}):null}},7761:function(e,t,n){n(74848),n(96540)},98920:function(e,t,n){n.d(t,{Z:()=>d});var a=n(69277),i=n(70408),r=n(74848),o=n(46271),s=n(41842),l=n(97307),c=n(62088);let d=e=>{let{displaySignInModal:t,onCloseSignInModal:n,isStatic:d,entry:u}=e,p=(0,l.n)(),{user:m,setUser:h}=(0,o.ur)();if(d)return null;let g=()=>{p.open({skipRedirectOnExit:!0})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.M9,{isOpen:!!t,onCancel:n,onSignup:()=>{n(),g()},onSuccess:()=>{document.location.reload()},onUserCreated:e=>{n(),h(e),g()}}),(0,r.jsx)(s.K,(0,i._)((0,a._)({},p.modalProps),{entry:u||"post-preview",onAfterClose:()=>{m&&document.location.reload()}}))]})}},47885:function(e,t,n){n.d(t,{Y:()=>s});var a=n(74848),i=n(76977),r=n(63136),o=n(82776);let s=e=>{let{duration:t,icon:n,position:s="bottom-left",previewDuration:l}=e;return(0,a.jsxs)(i.Ye,{alignItems:"center",bg:"glass-inverted-medium",gap:6,paddingX:8,paddingY:2,position:"absolute",radius:"sm",style:"bottom-left"===s?{left:8,bottom:8}:{right:8,bottom:8},children:[n,(0,a.jsx)(r.EY.Meta,{color:"white",lineHeight:20,children:l?"".concat((0,o.secondsToHHMMSS)(l)," / ").concat((0,o.secondsToHHMMSS)(null!=t?t:0)):(0,o.secondsToHHMMSS)(null!=t?t:0)})]})}},88553:function(e,t,n){n.d(t,{U:()=>r});var a=n(39318),i=n(18947);let r=e=>{let{linkToComments:t,post:n,pub:r,utm:o}=e;return t?(0,i.wu)(r,n,{comments:!0,urlParams:{utm:o}}):"video"===n.type?(0,a.oRR)(n.canonical_url,{autoPlay:!0,utm:o}):o?(0,a.yRP)(n.canonical_url,{utm:o}):n.canonical_url}},51131:function(e,t,n){n.d(t,{l:()=>u});var a=n(74848),i=n(84605);n(6049);var r=n(68349),o=n(24078),s=n(35369),l=n(76977),c=n(63136),d=n(2890);let u=e=>{let{avatarUrl:t,name:n,url:u}=e,{iString:p}=(0,i.GO)();return(0,a.jsxs)(l.pT,{direction:{mobile:"column",desktop:"row"},radius:"md",padding:24,alignItems:"center",className:d.A.container,justifyContent:"space-between","data-component-name":"MeetingEmbed",children:[(0,a.jsxs)(l.Ye,{className:d.A.header,gap:16,paddingBottom:{mobile:20,desktop:0},children:[(0,a.jsx)(o.eu,{photoUrl:t,size:40}),(0,a.jsxs)("div",{children:[(0,a.jsxs)(c.EY.H4,{translated:!0,paddingBottom:4,color:"pub-primary-text",children:["Book a meeting with ",I18N.p(n)]}),(0,a.jsx)(c.EY.B4,{translated:!0,color:"pub-secondary-text",children:"Schedule a meeting"})]})]}),(0,a.jsx)(s.$n,{className:d.A.cta,priority:"primary",onClick:()=>{(0,r.V2)(u,{newTab:!0})},children:p("Book meeting")})]})}},15040:function(e,t,n){n.d(t,{Ex:()=>f,Ff:()=>M,Pk:()=>w,w4:()=>x});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(14701),d=n(14647),u=n(20713),p=n(76977),m=n(81203),h=n(63136),g=n(49095),_=n(6986),b=n(62614);let f=e=>{let t;var{content:n,children:i}=e,s=(0,r._)(e,["content","children"]);return t=n?"number"==typeof n?(0,o.jsx)(O,(0,a._)({number:n},s)):"string"==typeof n?(0,o.jsx)(N,(0,a._)({text:n},s)):(0,o.jsx)(v,(0,a._)({icon:n},s)):(0,o.jsx)(y,(0,a._)({},s)),(0,o.jsx)(A,{badge:t,children:i})},A=e=>{let{children:t,badge:n}=e;return(0,o.jsxs)(p.pT,{position:"relative",className:_.A.container,children:[t,n]})},E=e=>{let{priority:t="primary",theme:n="accent",placement:a="top-right",shape:i="circle",radius:r="full",className:s,children:c,style:d}=e;return(0,o.jsx)(p.pT,{alignItems:"center",justifyContent:"center",position:"absolute",userSelect:"none",sizing:"border-box",radius:r,className:l()(_.A.badge,_.A["placement_".concat(a)],_.A["shape_".concat(i)],b.A["theme_".concat(n)],b.A["priority_".concat(t)],s),style:d,children:c})},y=e=>{var{className:t}=e,n=(0,r._)(e,["className"]);return(0,o.jsx)(E,(0,i._)((0,a._)({},n),{className:l()(_.A.dot,t)}))},N=e=>{var{text:t,className:n}=e,s=(0,r._)(e,["text","className"]);let c=1===t.length;return(0,o.jsx)(E,(0,i._)((0,a._)({},s),{className:l()(_.A.text,c&&_.A.singleElement,n),children:(0,o.jsx)(h.EY.Meta,{as:"span",color:"inherit",children:t})}))},O=e=>{var{number:t,className:n}=e,s=(0,r._)(e,["number","className"]);let c=1===t.toString().length;return(0,o.jsx)(E,(0,i._)((0,a._)({},s),{className:l()(_.A.text,c&&_.A.singleElement,n),children:(0,o.jsx)(h.EY.Meta,{as:"span",color:"inherit",children:t})}))},v=e=>{var{icon:t,fillIcon:n,className:s,style:c}=e,d=(0,r._)(e,["icon","fillIcon","className","style"]);return(0,o.jsx)(E,(0,i._)((0,a._)({},d),{className:l()(_.A.singleElement,n&&_.A.fillIcon,s),style:c,children:t}))},x=e=>{var{children:t,placement:n="bottom-right"}=e,i=(0,r._)(e,["children","placement"]);let s=(0,o.jsx)(S,(0,a._)({placement:n},i));return(0,o.jsx)(A,{badge:s,children:t})},S=e=>{var{tier:t,fgOverride:n,bgOverride:i}=e,s=(0,r._)(e,["tier","fgOverride","bgOverride"]);return"author"===t?(0,o.jsx)(v,(0,a._)({theme:"accent",fillIcon:!0,icon:(0,o.jsx)(u.A,{size:12}),style:(0,a._)({},i&&{"--color-tag-bg":i}||{},n&&{"--color-tag-fg":n}||{})},s)):"founding"===t?(0,o.jsx)(v,(0,a._)({theme:"default",priority:"secondary",icon:(0,o.jsx)(c.A,{size:12})},s)):"paid"===t?(0,o.jsx)(v,(0,a._)({theme:"default",priority:"secondary",icon:(0,o.jsx)(d.A,{size:12})},s)):null},w=e=>{var{children:t}=e,n=(0,r._)(e,["children"]);return(0,o.jsx)(A,{badge:(0,o.jsx)(I,(0,a._)({},n)),children:t})},I=e=>{var{badge:t,placement:n="bottom-right",className:s}=e,c=(0,r._)(e,["badge","placement","className"]);return(0,o.jsx)(E,(0,i._)((0,a._)({},c),{placement:n,className:l()(_.A.singleElement,_.A.empty,s),children:(0,o.jsx)(g.UserBadge,{userBadge:t,size:"sm"})}))},M=e=>{var{pub:t,children:n,placement:i="bottom-right"}=e,s=(0,r._)(e,["pub","children","placement"]);let l=(0,o.jsx)(C,(0,a._)({pub:t,placement:i},s));return t?(0,o.jsx)(A,{badge:l,children:n}):(0,o.jsx)(o.Fragment,{children:n})},C=e=>{var{pub:t,className:n}=e,s=(0,r._)(e,["pub","className"]);return(0,o.jsx)(E,(0,i._)((0,a._)({},s),{radius:"xs",className:l()(_.A.singleElement,_.A.empty,n),children:(0,o.jsx)(m.Nq,{pub:t,size:16,radius:"xs"})}))}},48535:function(e,t,n){n(74848),n(32485),n(96540),n(79661),n(21863),n(67022)},82100:function(e,t,n){n.d(t,{Q:()=>l});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(33727);function l(e){var{isDragging:t,dragProps:n,children:l}=e,c=(0,r._)(e,["isDragging","dragProps","children"]);return(0,o.jsx)(s.Z,(0,i._)((0,a._)({outline:"none",border:"detail",borderStyle:t?"solid":"dashed",bg:t?"primary-hover":"primary",animate:!0,pressable:"lg"},n,c),{children:l}))}},85329:function(e,t,n){n.d(t,{j:()=>l});var a=n(69277),i=n(70408),r=n(74848),o=n(96540),s=n(79661);let l=(0,o.forwardRef)((e,t)=>(0,r.jsx)(s.pd,(0,i._)((0,a._)({},e),{ref:t,type:"email"})))},79661:function(e,t,n){n.d(t,{A0:()=>h,N:()=>b,RB:()=>g,pd:()=>m,uk:()=>_});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(76977),u=n(63136),p=n(24311);let m=(0,c.forwardRef)((e,t)=>{var{className:n,type:s,error:c=!1,leading:u,trailing:m,flex:h="auto",unstyled:g=!1}=e,b=(0,r._)(e,["className","type","error","leading","trailing","flex","unstyled"]);return(0,o.jsxs)(d.fI,{position:"relative",flex:h,minWidth:0,children:[(0,o.jsx)("input",(0,i._)((0,a._)({},b),{type:s,className:l()(n,p.A.input,p.A.inputText,c&&p.A.error,b.disabled&&p.A.disabled,b.readOnly&&p.A.readOnly,null!=u&&p.A.leading,null!=m&&p.A.trailing,g&&p.A.unstyled),onKeyDown:e=>{var t;e.stopPropagation(),null==(t=b.onKeyDown)||t.call(b,e)},"aria-invalid":c||void 0,ref:t})),u&&(0,o.jsx)(_,{position:"leading",children:u}),m&&(0,o.jsx)(_,{position:"trailing",pointerEvents:"auto",children:m})]})}),h=e=>{var{className:t,children:n}=e,s=(0,r._)(e,["className","children"]);return(0,o.jsx)(d.I1,(0,i._)((0,a._)({gap:8,className:t},s),{children:n}))},g=e=>{let{text:t,decoration:n,color:a="secondary"}=e;return(0,o.jsx)(u.EY,{decoration:n,as:"span",color:a,weight:"regular",className:p.A.inputText,ellipsis:!0,children:t})},_=e=>{let{children:t,position:n,size:a="md",className:i,onClick:r,onMouseDown:s,pointerEvents:c="none",disabled:u=!1}=e;return(0,o.jsx)(d.pT,{className:l()(p.A.wrapper,p.A["position_".concat(n)],p.A["size_".concat(a)],u&&p.A.disabled,i),pointerEvents:c,onClick:r,onMouseDown:s,children:t})};function b(e){let t=(0,c.useRef)(null);return{innerRef:t,combinedRef:n=>{t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}}}},76171:function(e,t,n){n.d(t,{JU:()=>m,Sy:()=>g,sb:()=>h});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(75159),l=n(32485),c=n.n(l),d=n(96540),u=n(76977),p=n(63136);n(56720),n(81440);let m=(0,d.forwardRef)((e,t)=>{var{className:n,children:l,htmlFor:d}=e,u=(0,r._)(e,["className","children","htmlFor"]);return(0,o.jsx)(s.b,{asChild:!0,htmlFor:d,children:(0,o.jsx)(p.EY.B4,(0,i._)((0,a._)({as:"label",weight:"medium",color:"primary",ref:t,cursor:"inherit",className:c()("pencraft",n)},u),{children:l}))})}),h=(0,d.forwardRef)((e,t)=>{var{className:n,children:s}=e,l=(0,r._)(e,["className","children"]);return(0,o.jsx)(m,(0,i._)((0,a._)({ref:t,className:n},l),{children:(0,o.jsxs)(u.Ye,{gap:4,alignItems:"center",children:[s,(0,o.jsx)(b,{})]})}))}),g=(0,d.forwardRef)((e,t)=>{var{className:n,children:s,hint:l}=e,c=(0,r._)(e,["className","children","hint"]);return(0,o.jsx)(m,(0,i._)((0,a._)({ref:t,className:n},c),{children:(0,o.jsxs)(u.Ye,{gap:4,justifyContent:"space-between",children:[s,(0,o.jsx)(_,{text:l})]})}))}),_=e=>{let{text:t}=e;return(0,o.jsx)(p.EY,{color:"secondary",weight:"regular",children:t})},b=()=>(0,o.jsx)(p.EY,{as:"span",color:"error",children:"*"})},43145:function(e,t,n){n.d(t,{Dr:()=>A,T6:()=>N});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(76041),l=n(32485),c=n.n(l),d=n(96540),u=n(89490),p=n(35369),m=n(17028),h=n(33397),g=n(88206),_=n(63136),b=n(11510),f=n(76722);let A=(0,d.forwardRef)((e,t)=>{var n,{priority:l="primary",className:u,description:_,leading:A,trailing:O,children:v,href:x,download:S,disabled:w,onClick:I,native:M}=e,C=(0,r._)(e,["priority","className","description","leading","trailing","children","href","download","disabled","onClick","native"]);let k=(0,b.Iu)(),{close:j,useMobileBottomSheet:L}=(0,h.K)(),R=x?"a":p.Nm,T=(0,o.jsxs)(R,(0,i._)((0,a._)({},C),{className:c()(f.A.item,f.A["priority_".concat(l)],k&&f.A.mobile,_&&f.A.withDescription,u),"data-disabled":w||void 0,resetCss:!0,onClick:e=>{!w&&(I&&I(e),e.defaultPrevented||null==j||j())},href:w?"javascript:void(0)":x,download:S,"data-native":null!=(n="data-native"in C?C["data-native"]:null)?n:M?"true":void 0,ref:t,children:[A&&(0,o.jsx)(N,{children:(0,d.cloneElement)(A,{size:g.gy})}),_?(0,o.jsxs)(m.VP,{flex:"grow",children:[(0,o.jsx)(E,{priority:l,children:v}),(0,o.jsx)(y,{children:_})]}):(0,o.jsx)(E,{priority:l,children:v}),O&&(0,o.jsx)(N,{children:(0,d.cloneElement)(O,{size:g.gy})})]}));return L?T:(0,o.jsx)(s.q7,{asChild:!0,disabled:w,children:T})});function E(e){let{priority:t,children:n}=e;return(0,o.jsx)(_.EY.B4,{color:"destructive"===t?"error":"accent"===t?"accent":t,weight:"medium",align:"left",flex:"grow",children:n})}function y(e){let{children:t}=e;return(0,o.jsx)(_.EY.B4,{color:"secondary",align:"left",children:t})}(0,u.I4)({width:g.gy,height:g.gy});let N=(0,u.I4)({display:"flex",flex:"auto",width:24,height:24,alignItems:"center",justifyContent:"center"})},12601:function(e,t,n){n.d(t,{jl:()=>d});var a=n(69277),i=n(74848),r=n(96540),o=n(89490),s=n(63136),l=n(54754),c=n(11510);let d=e=>{let{primaryButton:t,secondaryButton:n,tertiaryButton:a,buttonDivider:o,caption:s,showDivider:d,direction:p="row",alignButtons:m="end"}=e,h=(0,c.Iu)(),A="stretch"===m,v="column"===p||A||h,x=!!n||!!t||!!a,S=A?E:r.Fragment,w=[a,n,t].filter(Boolean).map(e=>(0,i.jsx)(S,{children:e}));return(0,i.jsxs)(d?v?f:b:v?_:g,{"data-modal-role":"footer",children:[s&&(0,i.jsx)(u,{caption:s,textAlign:v?"center":"left"}),x&&(0,i.jsx)(v?A?O:N:y,{children:o?(0,i.jsx)(l.r,{separator:o,children:w}):w})]})},u=e=>{let{caption:t,textAlign:n="left"}=e;return(0,i.jsx)(v,{children:(0,i.jsx)(s.EY.B4,{as:"span",color:"secondary",textAlign:n,children:t})})},p={display:"flex",direction:"row",gap:12,paddingX:20,paddingBottom:20,alignItems:"center"},m={paddingTop:16,paddingBottom:16,borderTop:"detail"},h={direction:"column-reverse",alignItems:"stretch",gap:16},g=(0,o.I4)((0,a._)({},p)),_=(0,o.I4)((0,a._)({},p,h)),b=(0,o.I4)((0,a._)({},p,m)),f=(0,o.I4)((0,a._)({},p,m,h)),A={display:"flex",direction:"row",alignItems:"center",justifyContent:"end",flex:"grow",gap:12},E=(0,o.I4)({display:"flex",direction:"column",flex:"grow"}),y=(0,o.I4)((0,a._)({},A)),N=(0,o.I4)((0,a._)({},A,{direction:"column-reverse",alignItems:"stretch"})),O=(0,o.I4)((0,a._)({},A,{alignItems:"stretch"})),v=(0,o.I4)({display:"flex",direction:"column"})},84843:function(e,t,n){n.d(t,{Io:()=>f,Ud:()=>x,qx:()=>v,rQ:()=>b});var a=n(69277),i=n(74848),r=n(81768),o=n(32485),s=n.n(o),l=n(60250),c=n(48697),d=n(23623),u=n(73164),p=n(89490),m=n(35369),h=n(76977),g=n(63136),_=n(74084);function b(e){let t,n,{title:a,description:r,icon:o,showDivider:s=!1,alignItems:l="start",isInsideDialog:c=!0,onBack:d,onClose:u}=e;return"center"===l?(t=s?L:k,n=P):(t=s?j:C,n=T),(0,i.jsxs)(t,{"data-modal-role":"header",children:[d&&(0,i.jsx)(y,{onBack:d}),o,(0,i.jsxs)(n,{children:[a&&(0,i.jsx)(A,{text:a,isInsideDialog:c}),r&&(0,i.jsx)(E,{text:r,isInsideDialog:c})]}),u&&(0,i.jsx)(N,{onClose:u})]})}function f(e){let{onBack:t,onClose:n,image:a}=e;return(0,i.jsxs)(C,{children:[a,t&&(0,i.jsx)(y,{onBack:t}),n&&(0,i.jsx)(O,{onClose:n})]})}function A(e){let{text:t,isInsideDialog:n}=e;return n?(0,i.jsx)(r.hE,{asChild:!0,children:(0,i.jsx)(g.EY.H2,{weight:"semibold",color:"primary",size:17,lineHeight:24,children:t})}):(0,i.jsx)(g.EY.H2,{weight:"semibold",color:"primary",size:17,lineHeight:24,children:t})}function E(e){let{text:t,isInsideDialog:n}=e,a=n?r.VY:"span";return(0,i.jsx)(a,{asChild:!0,children:(0,i.jsx)(g.EY.B3,{color:"secondary",as:"span",children:t})})}function y(e){let{onBack:t}=e;return(0,i.jsx)(m.K0,{priority:"quaternary",size:"sm",title:"Back",onClick:t,"aria-label":"back",position:"absolute",className:_.A.backButton,"data-modal-role":"back-button",children:(0,i.jsx)(l.A,{size:20})})}function N(e){let{onClose:t,position:n="absolute"}=e;return(0,i.jsx)(m.K0,{priority:"quaternary",size:"sm",title:"Close",onClick:t,"aria-label":"close",position:n,className:s()(_.A.closeButton,_.A[n]),children:(0,i.jsx)(c.A,{size:20})})}function O(e){let{onClose:t}=e;return(0,i.jsx)(d.a,{children:(0,i.jsx)(r.bm,{asChild:!0,children:(0,i.jsx)(m.mZ,{priority:"secondary",size:"sm",title:"Close",onClick:t,"aria-label":"close",position:"absolute",className:_.A.imageCloseButton,children:(0,i.jsx)(c.A,{size:20})})})})}function v(e){let{icon:t,bg:n}=e;return(0,i.jsx)(S,{bg:n,children:t})}function x(){return(0,i.jsx)(S,{bg:"accent-orange",children:(0,i.jsx)(u.A,{height:20})})}function S(e){let{children:t,bg:n="secondary"}=e;return(0,i.jsx)(h.fI,{display:"flex",flex:"auto",width:48,height:48,bg:n,radius:"sm",alignItems:"center",justifyContent:"center",outline:"detail",children:t})}let w={display:"flex",direction:"column",gap:16,paddingX:20,paddingTop:20,position:"relative"},I={paddingTop:16,paddingBottom:16,borderBottom:"detail"},M={alignItems:"center"},C=(0,p.I4)((0,a._)({},w)),k=(0,p.I4)((0,a._)({},w,M)),j=(0,p.I4)((0,a._)({},w,I)),L=(0,p.I4)((0,a._)({},w,I,M)),R={display:"flex",direction:"column",gap:4},T=(0,p.I4)((0,a._)({},R)),P=(0,p.I4)((0,a._)({},R,{alignItems:"center",textAlign:"center"}))},99116:function(e,t,n){n.d(t,{y:()=>m});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(93540),l=n(3160),c=n(96540),d=n(84605),u=n(79661),p=n(48625);let m=(0,c.forwardRef)((e,t)=>{var{disabled:n}=e,m=(0,r._)(e,["disabled"]);let{iString:h}=(0,d.GO)(),[g,_]=(0,c.useState)(!1);return(0,o.jsx)(u.pd,(0,i._)((0,a._)({},m),{ref:t,disabled:n,type:g?"text":"password",trailing:(0,o.jsx)(p.f,{size:"xs",priority:"quaternary","aria-label":h(g?"Hide password":"Show password"),pressed:g,onPressedChange:_,disabled:n,onMouseDown:e=>e.preventDefault(),children:e=>{let{pressed:t}=e;return t?(0,o.jsx)(s.A,{size:16}):(0,o.jsx)(l.A,{size:16})}})}))})},21863:function(e,t,n){n.d(t,{J:()=>r});var a=n(74848);n(96540);var i=n(76977);function r(e){let{inputRef:t,icon:n}=e;return(0,a.jsx)(i.ov,{as:"span",bg:"primary","aria-hidden":"true",cursor:"pointer",tabIndex:-1,onClick:e=>{let{current:n}=t;if(n){var a;e.preventDefault(),e.stopPropagation(),n.focus(),null==(a=n.showPicker)||a.call(n)}},onMouseDown:e=>e.preventDefault(),children:n})}},48292:function(e,t,n){n.d(t,{hl:()=>c});var a=n(69277),i=n(74848),r=n(43543),o=n(96540),s=n(96390),l=n(53168);let c=(0,o.forwardRef)((e,t)=>{let{children:n,side:o,align:c,style:d,onOpenAutoFocus:u=e=>e.preventDefault(),onCloseAutoFocus:p=e=>e.preventDefault(),onPointerDownOutside:m,onPointerDown:h}=e,g=(0,a._)({zIndex:l.iC,"--shift":"".concat(8,"px"),"--scale":"".concat(.975)},d);return(0,i.jsx)(r.UC,{ref:t,side:o,align:c,sideOffset:8,collisionPadding:8,className:"content-yrIzQJ",style:g,onOpenAutoFocus:u,onCloseAutoFocus:p,onPointerDownOutside:m,onPointerDown:h,children:(0,i.jsx)(s.Q,{children:n})})})},96390:function(e,t,n){n.d(t,{Q:()=>u});var a=n(69277),i=n(32641),r=n(74848),o=n(32485),s=n.n(o),l=n(76977),c=n(10996),d=n(74653);function u(e){var{className:t}=e,n=(0,i._)(e,["className"]);return(0,r.jsx)(c.e$,{children:(0,r.jsx)(l.VP,(0,a._)({className:s()(d.A.panel,t),bg:"elevated",shadow:"md",border:"detail",radius:"sm",sizing:"border-box",gap:2,zIndex:1},n))})}},51177:function(e,t,n){n.d(t,{gm:()=>h,t7:()=>m});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540);n(82519),n(84605);var d=n(35369),u=n(76977);n(49315),n(48625);var p=n(5370);let m=e=>{var{priority:t="secondary-outline",size:n="md"}=e,i=(0,r._)(e,["priority","size"]);"secondary-outline"===t&&(t="tertiary");let s="tertiary"===t;return(0,o.jsx)(g.Provider,{value:{priority:t,size:n},children:(0,o.jsx)(u.fI,(0,a._)({radius:"sm"===n?"xs":"sm",className:l()(p.A.group,s&&p.A.outlined)},i))})},h=(0,c.forwardRef)((e,t)=>{var{className:n}=e,s=(0,r._)(e,["className"]);let{priority:u,size:m}=(0,c.useContext)(g);return(0,o.jsx)(d.$n,(0,i._)((0,a._)({priority:u,size:m,className:l()(p.A.segment,n)},s),{ref:t}))}),g=(0,c.createContext)({priority:"primary",size:"md"})},81929:function(e,t,n){n.d(t,{Jq:()=>f,Oi:()=>g,vw:()=>b});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(89490),u=n(35369),p=n(76977),m=n(63136);n(67140);var h=n(62614);let g={size:14,strokeWidth:2.5},_={display:"flex",height:20,paddingX:6,paddingY:2,gap:4,font:"text",fontSize:11,fontWeight:"medium",alignItems:"center"},b=(0,c.forwardRef)((e,t)=>{var{className:n,theme:s="default",priority:c="secondary",leading:m,trailing:g,children:b,fillIcon:f,radius:A="xs",onClick:E,href:y}=e,N=(0,r._)(e,["className","theme","priority","leading","trailing","children","fillIcon","radius","onClick","href"]);let O=void 0!==E||void 0!==y;return(0,o.jsxs)(u.Nm,(0,i._)((0,a._)({},_,N),{className:l()(n,function(e){let{theme:t="default",priority:n="secondary",clickable:r,radius:o="xs"}=e;return l()(h.A.tag,h.A["theme_".concat(t)],h.A["priority_".concat(n)],r&&h.A.clickable,(0,d.iF)((0,i._)((0,a._)({},_),{cursor:r?"pointer":"inherit",radius:o})))}({theme:s,priority:c,clickable:O,radius:A})),onClick:E,href:y,ref:t,tabIndex:O?0:-1,children:[m&&(0,o.jsx)(p.pT,{className:l()(h.A.leading,f&&h.A.fillIcon),alignItems:"center",children:m}),b,g&&(0,o.jsx)(p.pT,{className:l()(h.A.trailing,f&&h.A.fillIcon),alignItems:"center",children:g})]}))}),f=(0,c.forwardRef)((e,t)=>{var{className:n,priority:s="primary",leading:c,trailing:d,children:g,fillIcon:b,radius:f="xs",onClick:A,href:E,title:y}=e,N=(0,r._)(e,["className","priority","leading","trailing","children","fillIcon","radius","onClick","href","title"]);let O=void 0!==A||void 0!==E;return(0,o.jsxs)(u.Nm,(0,i._)((0,a._)((0,i._)((0,a._)({},N),{className:l()(n,h.A.tag,h.A.media,h.A["priority_".concat(s)],O&&h.A.clickable),onClick:A,href:E,ref:t,radius:f,cursor:O?"pointer":"inherit",tabIndex:O?0:-1,minWidth:0,title:null!=y?y:void 0}),_),{children:[c&&(0,o.jsx)(p.pT,{className:l()(h.A.leading,b&&h.A.fillIcon),alignItems:"center",children:c}),(0,o.jsx)(m.EY,{ellipsis:!0,children:g}),d&&(0,o.jsx)(p.pT,{className:l()(h.A.trailing,b&&h.A.fillIcon),alignItems:"center",children:d})]}))});f.displayName="MediaTag"},63136:function(e,t,n){n.d(t,{EY:()=>h,KQ:()=>g,Yq:()=>M,nS:()=>O});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(96540),d=n(84605),u=n(11747),p=n(89490),m=n(24675);let h=e=>{var{className:t,align:n,size:s,weight:c,transform:h}=e,g=(0,r._)(e,["className","align","size","weight","transform"]);g=(0,i._)((0,a._)({},g),{textAlign:null!=n?n:g.textAlign,textTransform:null!=h?h:g.textTransform,fontSize:null!=s?s:g.fontSize,fontWeight:null!=c?c:g.fontWeight});let{iString:_,language:b}=(0,d.GO)(),f=g.children;if(g.translated&&"en"!==b){let e=[],t=[],n=(0,u.oI)(g.children,e,t),a=_(n,...t);if(a&&a!==n)try{f=(0,u.HP)(a,e)}catch(e){console.log("Could not translate ".concat(n),e)}}return(0,o.jsx)(p.az,(0,i._)((0,a._)({className:l()(m.A.reset,t)},g),{children:f}))},g=e=>(0,o.jsx)(h,(0,a._)({as:"span"},e));function _(e){var{className:t,displayName:n}=e,s=(0,r._)(e,["className","displayName"]);let d=(0,c.forwardRef)((e,n)=>{var{className:c}=e,d=(0,r._)(e,["className"]);return(0,o.jsx)(h,(0,i._)((0,a._)({},s,d),{ref:n,className:l()(t,c)}))});return d.displayName=n,d}let b=_({as:"h1",font:"display",size:36,weight:"bold",lineHeight:44}),f=_({as:"h2",font:"display",size:30,lineHeight:36,weight:"bold"}),A=_({as:"h3",font:"display",size:24,lineHeight:28,weight:"bold"}),E=_({as:"h4",font:"display",size:20,lineHeight:24,weight:"bold"}),y=_({font:"text",size:19,lineHeight:26,weight:"regular"}),N=_({font:"text",fontSize:17,lineHeight:24,fontWeight:"regular"}),O={font:"text",fontSize:15,lineHeight:20,fontWeight:"regular"},v=_(O),x=_({font:"text",fontSize:13,lineHeight:20,fontWeight:"regular"}),S=_({font:"text",size:11,lineHeight:20,weight:"regular"}),w=_((0,i._)((0,a._)({},{font:"meta",fontSize:11,lineHeight:20,fontWeight:"medium",textTransform:"uppercase",color:"secondary"}),{className:m.A.meta})),I=_({font:"digit",size:12,lineHeight:20,weight:"bold",transform:"uppercase",className:m.A.digit}),M=_({as:"a",decoration:"hover-underline"});_({as:"span"});let C=_({font:"text",color:"primary",className:m.A.marketingBody}),k=_({as:"h1",weight:"regular",className:m.A.marketingHeading1}),j=_({as:"h2",weight:"medium",className:m.A.marketingHeading2}),L=_({as:"h3",weight:"medium",className:m.A.marketingHeading3}),R=_({as:"h4",weight:"medium",className:m.A.marketingHeading4}),T=_({as:"h5",weight:"bold",className:m.A.marketingHeading5}),P=_({as:"h4",weight:"regular",textAlign:"center",className:m.A.marketingQuote}),D=_({as:"h4",size:30,weight:"regular",className:m.A.marketingSubtitle});h.H1=b,h.H2=f,h.H3=A,h.H4=E,h.B1=y,h.B2=N,h.B3=v,h.B4=x,h.B5=S,h.Meta=w,h.Digit=I,h.MarketingBody=C,h.MarketingHeading1=k,h.MarketingHeading2=j,h.MarketingHeading3=L,h.MarketingHeading4=R,h.MarketingHeading5=T,h.MarketingQuote=P,h.MarketingSubtitle=D},92028:function(e,t,n){n(74848),n(32485),n(96540),n(35369),n(78340)},56007:function(e,t,n){n.d(t,{bn:()=>s,dj:()=>d,tE:()=>c});var a=n(74848),i=n(28001),r=n(96540),o=n(58526);let s=5e3,l=(0,r.createContext)({popToast:()=>{throw Error("Popping toast requires a ToastProvider.")},addOffset:()=>{}});function c(e){let{children:t}=e,[n,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(0),p=(0,r.useRef)(0);return(0,a.jsx)(i.Kq,{duration:s,swipeThreshold:20,swipeDirection:"down",children:(0,a.jsxs)(l.Provider,{value:{popToast:(e,t)=>{let{dedupeKey:n}=null!=t?t:{},a="toast-".concat(p.current++),i=e(),o=r.cloneElement(i,{key:a,onOpenChange:e=>{e||setTimeout(()=>{c(e=>e.filter(e=>e.id!==a))},200)}});c(e=>[...n?e.filter(e=>e.dedupeKey!==n):e,{id:a,element:o,dedupeKey:n}])},addOffset:e=>{u(Math.min(d+e,0))}},children:[t,n.map(e=>e.element),(0,a.jsx)(o.U,{offset:d})]})})}function d(){return(0,r.useContext)(l)}},49978:function(e,t,n){n.d(t,{c:()=>h});var a=n(74848),i=n(96540),r=n(23623),o=n(78649),s=n(72880),l=n(89490),c=n(76977),d=n(63136),u=n(56720),p=n(53168);let m={title:"title-V6r8cy",imageContainer:"imageContainer-UzIosZ",endcapContainer:"endcapContainer-E0pGpX"};function h(e){let{leading:t,trailing:n,text:l,title:c,imageUrl:u,children:p}=e,h=l&&!c&&!u;return(0,a.jsx)(r.a,{children:(0,a.jsx)(o.Q,{children:(0,a.jsx)(A,{children:(0,a.jsxs)(g,{textOnly:!!h,children:[u&&(0,a.jsx)(f,{children:(0,a.jsx)(s.o,{src:u,maxWidth:296,useRetinaSizing:!0,imageIsFixedWidth:!0})}),(0,a.jsxs)(b,{hasTitle:!!c,children:[t&&(0,a.jsx)(_,{children:t}),(0,a.jsxs)(E,{children:[c&&(0,a.jsx)(d.EY.B4,{weight:"medium",color:"primary",className:m.title,children:c}),(0,a.jsx)(d.EY.B4,{color:"primary",opacity:80,lineHeight:16,children:"string"==typeof l?l.split("\n").map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[t>0&&(0,a.jsx)("br",{}),e]},t)):l}),p]}),n&&(0,a.jsx)(_,{children:n})]})]})})})})}function g(e){let{textOnly:t,children:n}=e;return(0,a.jsx)(c.VP,{alignItems:"center",paddingY:t?6:12,paddingX:t?8:12,gap:8,children:n})}function _(e){let{children:t}=e;return(0,a.jsx)(c.fI,{alignItems:"center",justifyContent:"center",className:m.endcapContainer,flex:"auto",gap:8,children:t})}function b(e){let{hasTitle:t,children:n}=e;return(0,a.jsx)(c.fI,{alignItems:t?"start":"center",gap:8,children:n})}function f(e){let{children:t}=e;return(0,a.jsx)(c.VP,{border:"detail",radius:"sm",className:m.imageContainer,overflow:"hidden",children:t})}function A(e){let{children:t}=e;return(0,a.jsx)(l.az,{className:m.content,style:{maxWidth:u.Sr,zIndex:p.QW,"--offset":"".concat(u.k6,"px")},radius:"sm",shadow:"md",border:"detail",bg:"primary",children:t})}let E=(0,l.I4)({display:"flex",direction:"column",gap:2})},3011:function(e,t,n){n.d(t,{B:()=>c,a:()=>l});var a=n(74848),i=n(38146),r=n(96540),o=n(56720);let s=(0,r.createContext)(!1);function l(){return(0,r.useContext)(s)}function c(e){let{children:t}=e;return(0,a.jsx)(i.Kq,{delayDuration:o.fN,skipDelayDuration:300,children:(0,a.jsx)(s.Provider,{value:!0,children:t})})}},17028:function(e,t,n){n.d(t,{$n:()=>a.$n,EY:()=>o.EY,I1:()=>r.I1,I4:()=>i.I4,K0:()=>a.K0,Nm:()=>a.Nm,VP:()=>r.VP,Ye:()=>r.Ye,Yq:()=>o.Yq,az:()=>i.az,cG:()=>s.c,fI:()=>r.fI,iC:()=>l.iC,iF:()=>i.iF,mZ:()=>a.mZ,nS:()=>o.nS,ov:()=>r.ov,pT:()=>r.pT,vj:()=>s.v,yw:()=>i.yw});var a=n(35369),i=n(89490),r=n(76977),o=n(63136);n(92028);var s=n(18540),l=n(53168)},86465:function(e,t,n){n(74848),n(20500)},9760:function(e,t,n){n(74848),n(32485),n(96540),n(76977),n(56720),n(86465),n(20500),n(63136)},84270:function(e,t,n){n(74848),n(9760),n(94996)},23168:function(e,t,n){n.d(t,{l:()=>s,z:()=>l});var a=n(69277),i=n(70408),r=n(96540),o=n(84605);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{maxFiles:t=1/0,maxSize:n=1/0,accept:s="*",multiple:c=!1,initialFiles:d=[],onFilesChange:u,onFilesAdded:p}=e,{iString:m}=(0,o.GO)(),[h,g]=(0,r.useState)({files:d.map(e=>({file:e,id:e.id,preview:e.url})),isDragging:!1,errors:[]}),_=(0,r.useRef)(null),b=(0,r.useCallback)(e=>{if(e instanceof File){if(e.size>n)return'File "'.concat(e.name,'" exceeds the maximum size of ').concat(l(n),".")}else if(e.size>n)return'File "'.concat(e.name,'" exceeds the maximum size of ').concat(l(n),".");if("*"!==s){let t=s.split(",").map(e=>e.trim()),n=e instanceof File?e.type||"":e.type,a=(e instanceof File,e.name),i=a.lastIndexOf("."),r=i>0?a.substring(i):"";if(!t.some(e=>{if(e.startsWith("."))return r.toLowerCase()===e.toLowerCase();if(e.endsWith("/*")){let t=e.split("/")[0];return n.startsWith("".concat(t,"/"))}return n===e}))return'File "'.concat((e instanceof File,e.name),'" is not an accepted file type.')}return null},[s,n]),f=(0,r.useCallback)(e=>e instanceof File?URL.createObjectURL(e):e.url,[]),A=(0,r.useCallback)(e=>e instanceof File?"".concat(e.name,"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)):e.id,[]),E=(0,r.useCallback)(()=>{g(e=>{e.files.forEach(e=>{e.preview&&e.file instanceof File&&e.file.type.startsWith("image/")&&URL.revokeObjectURL(e.preview)}),_.current&&(_.current.value="");let t=(0,i._)((0,a._)({},e),{files:[],errors:[]});return null==u||u(t.files),t})},[u]),y=(0,r.useCallback)(e=>{if(!e||0===e.length)return;let r=Array.from(e),o=[];if(g(e=>(0,i._)((0,a._)({},e),{errors:[]})),c||E(),c&&t!==1/0&&h.files.length+r.length>t){o.push("You can only upload a maximum of ".concat(t," files.")),g(e=>(0,i._)((0,a._)({},e),{errors:o}));return}let s=[];r.forEach(e=>{if(c&&h.files.some(t=>t.file.name===e.name&&t.file.size===e.size))return;if(e.size>n)return void o.push(c?"Some files exceed the maximum size of ".concat(l(n),"."):"File exceeds the maximum size of ".concat(l(n),"."));let t=b(e);t?o.push(t):s.push({file:e,id:A(e),preview:f(e)})}),s.length>0?(null==p||p(s),g(e=>{let t=c?[...e.files,...s]:s;return null==u||u(t),(0,i._)((0,a._)({},e),{files:t,errors:o})})):o.length>0&&g(e=>(0,i._)((0,a._)({},e),{errors:o})),_.current&&(_.current.value="")},[h.files.length,t,c,n,b,f,A,E,u,p]),N=(0,r.useCallback)(e=>{void 0!==e&&g(t=>{let n=t.files.find(t=>t.id===e);n&&n.preview&&n.file instanceof File&&n.file.type.startsWith("image/")&&URL.revokeObjectURL(n.preview);let r=t.files.filter(t=>t.id!==e);return null==u||u(r),(0,i._)((0,a._)({},t),{files:r,errors:[]})})},[u]),O=(0,r.useCallback)(()=>{g(e=>(0,i._)((0,a._)({},e),{errors:[]}))},[]),v=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),g(e=>(0,i._)((0,a._)({},e),{isDragging:!0}))},[]),x=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.relatedTarget&&e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget)||g(e=>(0,i._)((0,a._)({},e),{isDragging:!1}))},[]),S=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),w=(0,r.useCallback)(e=>{var t,n;if(e.preventDefault(),e.stopPropagation(),g(e=>(0,i._)((0,a._)({},e),{isDragging:!1})),(null==(t=_.current)||!t.disabled)&&(null==(n=e.dataTransfer)?void 0:n.files)&&e.dataTransfer.files.length>0)if(c)y(e.dataTransfer.files);else{let t=e.dataTransfer.files[0];t&&y([t])}},[y,c]),I=(0,r.useCallback)(e=>{e.currentTarget.files&&e.currentTarget.files.length>0&&y(e.currentTarget.files)},[y]),M=(0,r.useCallback)(()=>{_.current&&_.current.click()},[]),C=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i._)((0,a._)({},e),{type:"file",onChange:I,accept:e.accept||s,multiple:void 0!==e.multiple?e.multiple:c,ref:_,className:"sr-only","aria-label":m("Upload file"),tabIndex:-1})},[s,c,I]),k=(0,r.useCallback)(()=>({onDragEnter:v,onDragLeave:x,onDragOver:S,onDrop:w}),[v,x,S,w]);return[h,{addFiles:y,removeFile:N,clearFiles:E,clearErrors:O,handleDragEnter:v,handleDragLeave:x,handleDragOver:S,handleDrop:w,handleFileChange:I,openFileDialog:M,getInputProps:C,getDragProps:k}]},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";let n=Math.floor(Math.log(e)/Math.log(1024));return Number.parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]||"Bytes")}},30192:function(e,t,n){n.d(t,{j:()=>d});var a=n(74848),i=n(61133),r=n(96540),o=n(75313),s=n(49365),l=n(53168),c=n(39957);function d(e){let{trigger:t,children:n,onOpen:d,onClose:u,onFetch:p,disabled:m,side:h,align:g,loading:_}=e,[b,f]=(0,r.useState)(!1),A=(0,r.useRef)(!1);(0,r.useEffect)(()=>{b&&!A.current&&p&&(A.current=!0,p())},[b,p]);let E={zIndex:l.iC,"--shift":"".concat(o.k,"px"),"--scale":"".concat(o.R)};return m||!n?(0,a.jsx)(a.Fragment,{children:t}):(0,a.jsxs)(i.bL,{openDelay:o.A1,closeDelay:o.TJ,open:b,onOpenChange:e=>{f(e),e?null==d||d():null==u||u()},children:[(0,a.jsx)(i.l9,{asChild:!0,children:(0,a.jsx)("span",{style:{minWidth:"0"},children:t})}),(0,a.jsx)(i.ZL,{children:(0,a.jsx)(i.UC,{side:h,align:g,sideOffset:o.k,collisionPadding:o.k,className:c.A.content,style:E,children:!_&&(0,a.jsx)(s.d,{children:"function"==typeof n?n({close:()=>f(!1)}):n})})})]})}},1156:function(e,t,n){n.d(t,{VP:()=>r,fI:()=>i,ov:()=>o});var a=n(89490);let i=(0,a.I4)({display:"flex"}),r=(0,a.I4)({display:"flex",direction:"column"}),o=(0,a.I4)({display:"flex",justifyContent:"center",alignItems:"center"})},52298:function(e,t,n){n(74848),n(35369)},21356:function(e,t,n){n(74848),n(96540),n(84605);var a=n(17028);n(44552),n(52298),n(71518),n(95187);var i=n(7743);(0,a.I4)({display:"flex",direction:"column",position:"relative",bg:"primary",radius:"sm",minWidth:0,overflow:"hidden",outline:"detail"}),(0,a.I4)({display:"flex",direction:"column",flex:"grow"}),(0,a.I4)({position:"absolute",height:32,radius:"xs",bg:"secondary",sizing:"border-box",className:i.A.highlight}),(0,a.I4)({display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24})},71518:function(e,t,n){n.d(t,{x:()=>r});var a=n(38221),i=n.n(a);function r(e){let{parentRef:t,highlightRef:n}=e,a=()=>{let e=n.current,a=t.current;if(!a||!e)return;let i=a.querySelector('[data-state="active"]');if(!i)return;let r=i.getBoundingClientRect(),o=a.getBoundingClientRect(),s=parseInt(window.getComputedStyle(a).paddingLeft),l=r.left-o.left-s+a.scrollLeft;requestAnimationFrame(()=>{e.style.setProperty("--highlight-width","".concat(r.width,"px")),e.style.setProperty("--highlight-x","".concat(l,"px"))})};a();let r=t.current,o=new ResizeObserver(i()(a,200));return r&&(o.observe(r),r.addEventListener("scroll",a,{passive:!0})),()=>{o.disconnect(),r&&r.removeEventListener("scroll",a)}}},67140:function(e,t,n){n.d(t,{V:()=>s});var a=n(69843),i=n.n(a),r=n(82776);let o=["currency","currency-truncated","dollar","dollar-truncated"],s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=i()(e)||!isFinite(e)||0===e&&"duration-countdown"!==t,c=o.includes(t),d=e?c&&a?e/100:e:0,u=1>Math.abs(d),p=.01>Math.abs(d);if(l)return"-";switch(t){case"number":return new Intl.NumberFormat(s,{maximumFractionDigits:2,maximumSignificantDigits:u?2:void 0}).format(d);case"percent":return new Intl.NumberFormat(s,{style:"percent",maximumFractionDigits:2,maximumSignificantDigits:p?2:void 0}).format(d);case"dollar":return new Intl.NumberFormat(s,{style:"currency",currency:"USD",minimumFractionDigits:2*!!u,maximumFractionDigits:2}).format(d);case"currency":{let t=new Intl.NumberFormat(s,{style:"currency",currency:n,minimumFractionDigits:2*!!u,maximumFractionDigits:2});return a?(0,r.centsToPriceString)(e,n):t.format(d)}case"number-truncated":return new Intl.NumberFormat(s,{notation:"compact",compactDisplay:"short",maximumSignificantDigits:u?2:3}).format(d).toUpperCase();case"dollar-truncated":return new Intl.NumberFormat(s,{style:"currency",currency:"USD",notation:"compact",compactDisplay:"short",minimumFractionDigits:u?2:void 0,maximumFractionDigits:2,maximumSignificantDigits:u?void 0:3}).format(d).toUpperCase();case"currency-truncated":return new Intl.NumberFormat(s,{style:"currency",currency:n,notation:"compact",compactDisplay:"short",minimumFractionDigits:u?2:void 0,maximumFractionDigits:2,maximumSignificantDigits:u?void 0:3}).format(d).toUpperCase();case"duration-countdown":{let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),a=Math.floor(t%3600/60),i=new Intl.NumberFormat(s,{minimumIntegerDigits:2,useGrouping:!1});return"".concat(i.format(n),":").concat(i.format(a),":").concat(i.format(t%60))}case"duration":{let t=e<0,n=t?Math.ceil(e/1e3):Math.floor(e/1e3),a=t?Math.ceil(n/3600):Math.floor(n/3600),i=t?Math.ceil(n%3600/60):Math.floor(n%3600/60),r=n%60,o=new Intl.NumberFormat(s,{style:"unit",unit:"hour",unitDisplay:"narrow"}),l=new Intl.NumberFormat(s,{style:"unit",unit:"minute",unitDisplay:"narrow"}),c=new Intl.NumberFormat(s,{style:"unit",unit:"second",unitDisplay:"narrow"});if(Math.abs(a)>0)return"".concat(o.format(a).toUpperCase(),"\n ").concat(Math.abs(i)>0?" ".concat(l.format(i).toUpperCase()):"","\n ").concat(Math.abs(r)>0?" ".concat(c.format(r).toUpperCase()):"");if(Math.abs(i)>0)return"".concat(l.format(i).toUpperCase(),"\n ").concat(Math.abs(r)>0?" ".concat(c.format(r).toUpperCase()):"");return"".concat(c.format(r).toUpperCase())}default:return"-"}}},82286:function(e,t,n){n.d(t,{Nw:()=>d,Xn:()=>u,z7:()=>p});var a=n(74848),i=n(32485),r=n.n(i);n(84605),n(35369),n(33727),n(97515);var o=n(76977),s=n(57820),l=n(75303);n(63136);var c=n(65259);function d(e){let{className:t,children:n,gap:i=24}=e;return(0,a.jsx)(o.VP,{className:r()(c.A.container,c.A.wizard,t),gap:i,padding:20,children:n})}function u(e){let{children:t,flex:n}=e;return(0,a.jsx)(o.fI,{gap:8,alignItems:"center",flex:n,children:t})}function p(){return(0,a.jsx)(o.ov,{padding:72,children:(0,a.jsx)(s.y$,{})})}(0,l.I4)({display:"flex",direction:"column",gap:16}),(0,l.I4)({display:"flex",direction:{desktop:"row",mobile:"column"},gap:12,alignItems:{desktop:"center",mobile:"stretch"},justifyContent:{desktop:"space-between",mobile:void 0}}),(0,l.I4)({display:"flex",direction:"column",minHeight:280}),(0,l.I4)({display:"flex",direction:"column",gap:32}),(0,l.I4)({display:"flex",direction:"row",gap:12,alignItems:"center",justifyContent:"space-between",wrap:"wrap"}),(0,l.I4)({display:"flex",wrap:"wrap",direction:"row",gap:12,alignItems:"center"})},62870:function(e,t,n){n.d(t,{BB:()=>h,Cs:()=>_,OK:()=>f,lh:()=>b});var a=n(74848),i=n(32485),r=n.n(i),o=n(48309),s=n(96540),l=n(84605);n(86500);var c=n(35369),d=n(76977),u=n(57820),p=n(75303);n(39318),n(49807);var m=n(84759);let h=(0,s.forwardRef)((e,t)=>{let{img:n}=e,[i,o]=(0,s.useState)(!1);return n?(0,a.jsxs)(a.Fragment,{children:[!i&&(0,a.jsx)(g,{}),(0,a.jsx)("img",{src:n,className:r()(m.A.image,i&&m.A.loaded),ref:t,onLoad:()=>o(!0),style:{display:i?"block":"none"}})]}):(0,a.jsx)(g,{})});function g(){return(0,a.jsx)(d.VP,{alignItems:"center",justifyContent:"center",bg:"secondary",className:r()(m.A.image,m.A.loading),children:(0,a.jsx)(u.y$,{})})}function _(e){let{children:t,onClick:n,href:i}=e,{iString:o}=(0,l.GO)();return(0,a.jsx)(p.AE,{onClick:n,href:i,"aria-label":o("Download image"),download:!0,className:r()(m.A.link),target:"_blank",rel:"noreferrer",children:t})}function b(e){let{onClick:t,width:n,className:i}=e,{iString:s}=(0,l.GO)();return(0,a.jsx)(d.VP,{style:{width:n},className:r()(m.A.overlay,i),animate:!0,position:"absolute",inset:0,alignItems:"center",justifyContent:"end",paddingBottom:12,children:(0,a.jsx)(c.$n,{className:m.A.downloadButton,priority:"primary-mono",size:"sm",leading:(0,a.jsx)(o.A,{size:20}),onClick:e=>{e.stopPropagation(),t()},children:s("Download")})})}function f(e){let{children:t,size:n=300,aspectRatio:i=1}=e;return(0,a.jsx)(d.VP,{className:m.A.imageContainer,flex:"auto",position:"relative",cursor:"grab",style:{"--image-max-size":"".concat(n,"px"),"--aspect-ratio":i},children:t})}},95187:function(e,t,n){n.d(t,{Z6:()=>g,jA:()=>h,p_:()=>_});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(60250),d=n(87677),u=n(96540),p=n(17028),m=n(64224);let h=function(e){let{inset:t=0,pageSizeAdjust:n=0,initialState:r,scrollFullPage:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[s,l]=(0,u.useState)(r||{showLeft:!1,showRight:!1});return(0,u.useEffect)(()=>{let{current:n}=e;if(n){let e=()=>{l(e=>{let r=e;!r.showLeft&&n.scrollLeft>t?r=(0,i._)((0,a._)({},e),{showLeft:!0}):r.showLeft&&n.scrollLeft<=t&&(r=(0,i._)((0,a._)({},e),{showLeft:!1}));let o=n.scrollWidth-n.offsetWidth-4-t;return!r.showRight&&n.scrollLeft=o&&(r=(0,i._)((0,a._)({},e),{showRight:!1})),r})};return n.addEventListener("scroll",e),setTimeout(()=>{e()},50),()=>{n.removeEventListener("scroll",e)}}},[]),{state:s,handleArrowClick:t=>()=>{let{current:a}=e;a&&a.scrollBy({left:t*(o?a.offsetWidth:a.offsetWidth/2-n),behavior:"smooth"})}}};function g(e){var{className:t,scrollRef:n}=e,s=(0,r._)(e,["className","scrollRef"]);return(0,o.jsx)(p.pT,(0,i._)((0,a._)({},s),{className:l()(m.A.scrollBox,t),ref:n,overflowX:"auto",scrollBar:"hidden",minWidth:0,onTouchStart:e=>{let{pageX:t}=e;void 0===t||t>10&&tp,g:()=>m});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(99862),l=n(96540),c=n(72343),d=n(99662),u=n(89490);let p=(0,l.forwardRef)((e,t)=>{var{href:n,onClick:s,campaign:l,replace:c,state:d,showBack:p}=e,h=(0,r._)(e,["href","onClick","campaign","replace","state","showBack"]);let g=m({href:n,onClick:s,campaign:l,replace:c,state:d=p?(0,i._)((0,a._)({},d),{showBack:!0}):d});return(0,o.jsx)(u.az,(0,a._)((0,i._)((0,a._)({as:"a"},h),{ref:t}),g))});function m(e){let{onClick:t,href:n,campaign:i,replace:r,state:o}=e,l=!1;if(n&&!(0,d.y)()){let e;try{e=new URL(n)}catch(t){try{e=new URL("".concat(document.location.origin).concat(n))}catch(e){}}if(e)if((l=e.origin!==document.location.origin)||i)l&&i&&(n=(0,c.P)(n,i));else{let t=new URLSearchParams,a={};for(let[n,i]of e.searchParams)n.startsWith("utm_")?"utm_campaign"===n?a.name=i:a[n.replace(/^utm_/,"")]=i:t.append(n,i);i=a;let r=t.toString();n="".concat(e.pathname).concat(r?"?".concat(r):"").concat(e.hash)}}return{href:n,onClick:e=>{if(null==t||t(e),!l&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey&&n&&!(0,d.y)()){if(e.defaultPrevented)return void e.stopPropagation();(0,c.x4)((0,a._)({},i)),e.preventDefault(),e.stopPropagation(),(0,s.route)(n,r),o&&history.replaceState(o,"")}}}}},2481:function(e,t,n){n.d(t,{L6:()=>v,NP:()=>O,wG:()=>N});var a=n(69277),i=n(70408),r=n(32641),o=n(74848);n(32485);var s=n(96540);n(78649);var l=n(84605),c=n(46271);n(86998);var d=n(98920);n(24078),n(35369),n(76977);var u=n(16993);n(63136);var p=n(2824),m=(n(81870),n(5180)),h=n(21398);n(46453),n(11510);var g=n(16884),_=n(70515),b=n(57423);function f(e){var t,c,{isOpen:d}=e,p=(0,r._)(e,["isOpen"]);let{iString:m}=(0,l.GO)(),g=(0,s.useRef)(()=>p.onClose());return(0,o.jsxs)(u.aF,{className:b.A.composerModal,isOpen:d,onClose:()=>g.current(),fullscreenMobile:!0,width:600,children:[(0,o.jsx)(u.lR,{title:m("New note")}),(0,o.jsx)(h.Ic,(0,i._)((0,a._)({},p),{requestCloseRef:g,module:"../feed/NoteComposer",resolve:e=>e.NoteComposer,onRequest:()=>Promise.all([n.e("3585"),n.e("417"),n.e("3775")]).then(n.bind(n,94123)),whileLoading:(0,o.jsx)("div",{style:{height:336}})}),null!=(c=null==(t=p.editComment)?void 0:t.id)?c:"new")]})}let A={isOpen:!1,firstComment:void 0,pendingFirstComment:void 0};function E(e){return!e.isOpen&&!!e.pendingFirstComment}let y=(0,s.createContext)({state:A,open:async()=>{throw Error("Not implemented")}});function N(e){var t,r,l;let{children:g}=e,_=(0,c.Jd)(),b=!(null==_?void 0:_.name),N=(0,m.wA)(),[O,x]=(0,s.useState)(A),[S,w]=(0,s.useState)(!1),{feedItem:I}=O,M=v(I),C=(null==I?void 0:I.type)==="comment"?null!=(r=null==(t=I.parentComments)?void 0:t[0])?r:I.comment:null;(0,s.useEffect)(()=>{_&&Promise.all([n.e("3585"),n.e("417"),n.e("3775")]).then(n.bind(n,94123))},[_]),(0,s.useEffect)(()=>{O.isOpen&&n.e("2679").then(n.bind(n,15722))},[O.isOpen]),(0,s.useEffect)(()=>{O.isOpen&&b&&w(!0)},[b,O.isOpen]),(0,s.useEffect)(()=>{E(O)&&x(e=>E(e)?(0,i._)((0,a._)({},e),{firstComment:e.pendingFirstComment,pendingFirstComment:void 0}):e)},[O.isOpen,O.pendingFirstComment]);let k=(0,s.useMemo)(()=>({state:O,open:e=>new Promise((t,n)=>{x((0,i._)((0,a._)({},A,e),{isOpen:!0,resolve:t,reject:n}))})}),[O]),j=function(){var e,t,n;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;null==(t=document.activeElement)||null==(e=t.blur)||e.call(t),(null==r?void 0:r.skipOnDismiss)||null==(n=O.onDismiss)||n.call(O),x((0,a._)({},A,i))};return(0,o.jsxs)(y.Provider,{value:k,children:[g,b?(0,o.jsx)(d.Z,{displaySignInModal:S,onCloseSignInModal:()=>{w(!1),x((0,i._)((0,a._)({},O),{isOpen:!1}))},isStatic:!1,entry:"composer-new-post"}):M?(0,o.jsx)(p.a,{isOpen:O.isOpen,onClose:()=>j(),requirement:M,writerId:null!=(l=null==C?void 0:C.user_id)?l:0}):(0,o.jsx)(f,(0,i._)((0,a._)({},O),{isOpen:O.isOpen,onClose:()=>j(),onSuccess:e=>{var t,n;e.isFirstFeedCommentByUser&&"share_center"!==O.surface?j({pendingFirstComment:e}):j(),O.editComment?N({type:"edit_comment",payload:{comment:e}}):N({type:"new_comment",payload:{comment:e,skipFeedInsertion:!!(O.restackUrl||"draft"===e.status)}}),null==(t=O.onCompose)||t.call(O,e),null==(n=O.resolve)||n.call(O,e)},onError:O.reject})),(0,o.jsx)(u.aF,{isOpen:!!O.firstComment,width:500,children:O.firstComment&&(0,o.jsx)(h.Ic,{module:"@/frontend/feed/NuxModal",resolve:e=>e.FeedNuxShareFirstNote,onRequest:()=>n.e("2679").then(n.bind(n,15722)),onClose:()=>j({},{skipOnDismiss:!0}),comment:O.firstComment})})]})}function O(){return(0,s.useContext)(y)}function v(e){var t,n;let a=(0,c.Jd)(),i=null==e?void 0:e.post,r=(null==e?void 0:e.type)=="comment"?null!=(n=null==(t=e.parentComments)?void 0:t[0])?n:e.comment:null,{user_id:o}=null!=r?r:{},{reply_minimum_role:s}=null!=r?r:{},l=(0,g.GQ)(null!=o?o:0);if(null==s&&(null==i?void 0:i.write_comment_permissions)==="only_paid"&&(s="paid_subscriber"),!o||!s||(null==e?void 0:e.canReply)||r&&a&&(0,_.fP)(r,a.id))return null;if(s){if("free_subscriber"===s&&(!l||!["free_subscription","subscribed"].includes(l)))return"free_subscriber";if("paid_subscriber"===s&&"subscribed"!==l)return"paid_subscriber"}return null}},2548:function(e,t,n){n.d(t,{I1:()=>u.I1,IE:()=>y,Qe:()=>b,Ye:()=>u.Ye,dt:()=>f,jA:()=>p.jA,p2:()=>E});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s);n(96540),n(17988);var c=n(56804),d=n(68349),u=n(76977);n(63136);var p=n(95187),m=n(24216);n(28379),n(11510);var h=n(49807),g=n(57324),_=n(50321);function b(e){var{children:t,className:n,href:s,newTab:d,onClick:p,noAnchor:m,native:b,utmCampaign:f,utmSource:A,isSelected:E}=e,y=(0,r._)(e,["children","className","href","newTab","onClick","noAnchor","native","utmCampaign","utmSource","isSelected"]);let N="undefined"!=typeof location?location.pathname:"",O=m||null==s?"div":"a",v=s&&(0,h.yRP)(s,{utm_source:A||N,utm_medium:g.Jn.reader2,utm_campaign:f});return(0,o.jsx)(u.pT,(0,i._)((0,a._)({as:O,className:l()(_.A.linkRowA,n,(v||p)&&null==E&&_.A.isClickable,E&&_.A.isSelected,null!=E&&_.A.isSelectable),"data-selected":E,href:v,target:d?"_blank":void 0,onClick:e=>{p&&p(e),!e.defaultPrevented&&m&&v&&(0,c.o)(e,v,{native:b,newTab:d})},showFocus:!0,animate:!0},y),{children:t}))}function f(e){let{error:t}=e;return(0,o.jsx)(A,{children:(0,d.uX)(t)})}(0,m.a)("reader2-page-top"),(0,m.a)(_.A.pageTopFixed),(0,m.a)("reader2-page-body"),(0,m.a)(_.A.pageStack),(0,m.a)("reader2-page-center"),(0,m.a)("reader2-modal-title-text"),(0,m.a)("reader2-column"),(0,m.a)("reader2-text-h3 reader2-section-title"),(0,m.a)("reader2-text-h4"),(0,m.a)("reader2-item-title"),(0,m.a)("reader2-item-meta");let A=(0,m.a)("reader2-form-error");(0,m.a)("reader2-subtitle"),(0,m.a)("reader2-separator","hr"),(0,m.a)("reader2-page-section withTitle"),(0,m.a)("reader2-row reader2-split-row");let E=(0,m.a)(l()(_.A.hoverLink,"pencraft"),"a");function y(e){return(0,o.jsx)(E,(0,a._)({target:"_blank"},e))}},64127:function(e,t,n){n.d(t,{JZ:()=>O,PJ:()=>N,g:()=>v,gz:()=>S,tH:()=>x,yg:()=>y});var a=n(74848),i=n(82853),r=n(93164),o=n(27775),s=n(87564),l=n(83126),c=n(49031),d=n(70357),u=n(38685),p=n(84605),m=n(40691),h=n(35369),g=n(49315),_=n(87370),b=n(78526),f=n(2481),A=n(39318),E=n(49807);let y=e=>{let{variant:t,url:n,onLinkClicked:i}=e,{iString:r}=(0,p.GO)(),o=()=>{window.open((0,E.yRP)("https://www.facebook.com/sharer/sharer.php",{u:n}),"_blank"),null==i||i("facebook")};return"icon"===t?(0,a.jsx)(h.K0,{priority:"secondary-outline",onClick:o,children:(0,a.jsx)(c.A,{size:20})}):(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(c.A,{}),onClick:o,children:r("Share to Facebook")})},N=e=>{let{variant:t,url:n,twitterText:i,onLinkClicked:r}=e,{iString:o}=(0,p.GO)(),s=()=>{window.open((0,A.gKg)({url:n,text:i||""}),"_blank"),null==r||r("twitter")};return"icon"===t?(0,a.jsx)(h.K0,{priority:"secondary-outline",onClick:s,children:(0,a.jsx)(u.A,{size:20})}):(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(u.A,{}),onClick:s,children:o("Share to X")})},O=e=>{let{variant:t,url:n,twitterText:i,onLinkClicked:r}=e,{iString:o}=(0,p.GO)(),s=()=>{window.open((0,A.man)({text:i?"".concat(i,"\n").concat(n):null!=n?n:""}),"_blank"),null==r||r("bluesky")};return"icon"===t?(0,a.jsx)(h.K0,{priority:"secondary-outline",onClick:s,children:(0,a.jsx)(l.A,{size:20})}):(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(l.A,{}),onClick:s,children:o("Share to Bluesky")})},v=e=>{let{variant:t,url:n,onLinkClicked:r}=e,{iString:o}=(0,p.GO)(),s=(0,b.L)(),l=()=>{n&&(s(n),null==r||r("copy"))};return"icon"===t?(0,a.jsx)(h.K0,{priority:"secondary-outline",onClick:l,children:(0,a.jsx)(i.A,{height:20})}):(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(i.A,{}),onClick:l,children:o("Copy link")})},x=e=>{let{variant:t,url:n,onLinkClicked:i}=e,{iString:r}=(0,p.GO)(),o=(0,f.NP)(),s=()=>{o.open({restackUrl:n||""}),null==i||i("notes")};return"icon"===t?(0,a.jsx)(h.K0,{priority:"secondary-outline",onClick:s,children:(0,a.jsx)(d.A,{size:20})}):(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(d.A,{}),onClick:s,children:r("Share to Notes")})};function S(e){let t=y(e),n=O(e),i=N(e),l=v(e),c=x(e),d=(e=>{let{onLinkClicked:t,comment:n}=e,{iString:i}=(0,p.GO)(),{openModal:o,closeModal:l}=(0,m.hS)();return n?(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(r.A,{}),onClick:()=>{null==t||t("embed"),o({children:(0,a.jsx)(s.k,{comment:n||void 0,onClose:l}),width:540})},children:i("Embed note")}):null})(e),u=function(e){let{url:t,onLinkClicked:n}=e,{iString:i}=(0,p.GO)(),r=(0,_.$)();return(0,a.jsx)(g.Dr,{leading:(0,a.jsx)(o.A,{}),onClick:()=>{r.open({linkAttachmentUrl:null!=t?t:void 0,source:"share_post"}),null==n||n("chat")},children:i("Send as message")})}(e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(g.H9,{isFirst:!0,children:[l,u]}),(0,a.jsxs)(g.H9,{children:[c,t,n,i]}),(0,a.jsx)(g.H9,{children:d})]})}},50630:function(e,t,n){n.d(t,{W:()=>o,r:()=>s});var a=n(74848),i=n(96540);let r=(0,i.createContext)(null);function o(e){let{children:t}=e,[n,o]=(0,i.useState)("email"),[s,l]=(0,i.useState)(""),[c,d]=(0,i.useState)(!1),[u,p]=(0,i.useState)(null);return(0,a.jsx)(r.Provider,{value:{mode:n,email:s,verificationCodeEnabled:c,onboardingRedirect:u,setMode:e=>{"magic-link"!==e&&d(!1),o(e)},setEmail:l,setVerificationCodeEnabled:d,setOnboardingRedirect:p},children:t})}function s(){let e=(0,i.useContext)(r);if(!e)throw Error("useSignIn must be used within an SignInProvider");return e}},83842:function(e,t,n){n.d(t,{j:()=>_});var a=n(79785),i=n(74848),r=n(43954),o=n(84605),s=n(59922),l=n(38093),c=n(17028),d=n(16993),u=n(84843),p=n(50630),m=n(62088);function h(){let e=(0,a._)(["We've sent an email to ",". Click the magic link or enter the code below:"]);return h=function(){return e},e}function g(){let e=(0,a._)(["We've sent an email to ",". Click the magic link inside to continue."]);return g=function(){return e},e}let _=e=>{let{noCloseButton:t,noExit:n,onCancel:a,onSuccess:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{noCloseButton:!t||n,onCancel:a}),(0,i.jsx)(f,{onSuccess:r}),(0,i.jsx)(A,{})]})},b=e=>{let{noCloseButton:t,onCancel:n}=e,{iString:a,iTemplate:s}=(0,o.GO)(),{verificationCodeEnabled:l,email:c}=(0,p.r)();return(0,i.jsx)(u.rQ,{title:a("Check your email to continue"),onClose:t?void 0:n,icon:(0,i.jsx)(u.qx,{icon:(0,i.jsx)(r.A,{size:20})}),alignItems:"center",description:s(l?h():g(),null!=c?c:"your email address")})};function f(e){let{onSuccess:t}=e,{verificationCodeEnabled:n,email:a,onboardingRedirect:r}=(0,p.r)();return(0,s.A)(()=>{fetch("/api/v1/am_i_logged_in").then(async e=>{(await e.json()).loggedIn&&t()})},5e3),n?(0,i.jsx)(d.cw,{children:(0,i.jsx)(l.Z,{email:a,redirect:r||document.location.href})}):(0,i.jsx)(d.q1,{})}let A=()=>{let{iString:e}=(0,o.GO)(),{setMode:t}=(0,p.r)();return(0,i.jsx)(m.dt,{children:(0,i.jsxs)(i.Fragment,{children:[e("Didn't get the email? "),(0,i.jsx)(c.Yq,{color:"substack",decoration:"hover-underline",onClick:()=>t("email"),cursor:"pointer",children:e("Try again")})]})})}},23358:function(e,t,n){n.d(t,{_:()=>_});var a=n(74848),i=n(84605),r=n(43294),o=n(94729),s=n(12501),l=n(68349),c=n(17028),d=n(85329),u=n(20500),p=n(16993),m=n(50630),h=n(62088),g=n(95755);let _=e=>{let{overrideTitle:t,noCloseButton:n,onCancel:i,onSignup:r,onUserCreated:o,redirectOverride:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.$P,{overrideTitle:t,noCloseButton:n,onCancel:i,onSignup:r}),(0,a.jsx)(b,{onUserCreated:o,redirectOverride:s})]})};function b(e){let{onUserCreated:t,redirectOverride:n}=e,{iString:h}=(0,i.GO)(),{setMode:_,setEmail:b,setVerificationCodeEnabled:f,setOnboardingRedirect:A,email:E}=(0,m.r)(),y=(0,r.X)(),N=(0,s.st)({pathname:"/api/v1/email-login",method:"POST"});return(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),N.isLoading)return;let a=e.currentTarget.email.value;N.refetch({json:{email:a,redirect:n||location.pathname,can_create_user:!0}}).then(e=>{if(!(e instanceof o.fk)){if(!(e instanceof Error)&&"optional"===e.verification_code){f(!0),b(a),A(e.onboarding_redirect||null),_("magic-link");return}if(!(e instanceof Error)&&e.user){if(t)return void t(e.user);window.location.reload()}b(a),_("magic-link")}})},children:[(0,a.jsx)(p.cw,{className:g.A.modalBody,children:(0,a.jsxs)(c.VP,{gap:16,children:[(0,a.jsx)(d.j,{name:"email",placeholder:h("Your email"),autoComplete:"email",ref:y,autoFocus:!0,defaultValue:E}),N.error&&(0,a.jsx)(u.yn,{children:(0,l.uX)(N.error)})]})}),(0,a.jsx)(p.jl,{direction:"column",primaryButton:(0,a.jsx)(c.$n,{priority:"primary",type:"submit",loading:N.isLoading,children:h("Continue")}),secondaryButton:(0,a.jsx)(c.$n,{priority:"secondary-outline",onClick:()=>{var e;b((null==(e=y.current)?void 0:e.value)||""),_("password")},children:h("Sign in with password")}),buttonDivider:(0,a.jsx)(c.vj,{})})]})}},82804:function(e,t,n){n.d(t,{Q:()=>h});var a=n(74848),i=n(67078),r=n(84605),o=n(94729),s=n(12501),l=n(38093),c=n(17028),d=n(16993),u=n(84843),p=n(50630),m=n(62088);let h=e=>{let{onSuccess:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(_,{onSuccess:t}),(0,a.jsx)(b,{})]})},g=()=>{let{iString:e}=(0,r.GO)();return(0,a.jsx)(u.rQ,{title:e("Enter the code from your authenticator app"),description:e("This helps us make sure it's really you."),icon:(0,a.jsx)(u.qx,{icon:(0,a.jsx)(i.A,{size:20})}),alignItems:"center"})};function _(e){let{onSuccess:t}=e,n=(0,s.st)({pathname:"/api/v1/mfa-login",method:"Post"});return(0,a.jsx)(d.cw,{children:(0,a.jsx)(c.VP,{gap:16,children:(0,a.jsx)(l.Q,{onComplete:e=>{n.isLoading||n.refetch({json:{code:e}}).then(e=>{e instanceof o.fk||t()})},error:n.error,isLoading:n.isLoading})})})}let b=()=>{let{iString:e}=(0,r.GO)(),{setMode:t}=(0,p.r)();return(0,a.jsx)(m.dt,{children:(0,a.jsxs)(a.Fragment,{children:[e("Made a mistake? "),(0,a.jsx)(c.Yq,{color:"substack",decoration:"hover-underline",onClick:()=>t("email"),cursor:"pointer",children:e("Start over")})]})})}},23191:function(e,t,n){n.d(t,{d:()=>A});var a=n(74848),i=n(96540),r=n(42250),o=n(84605),s=n(43294),l=n(94729),c=n(12501),d=n(68349),u=n(17028),p=n(85329),m=n(20500),h=n(16993),g=n(99116),_=n(50630),b=n(62088),f=n(95755);let A=e=>{let{overrideTitle:t,noCloseButton:n,noExit:i,onCancel:r,onSignup:o,onSuccess:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.$P,{overrideTitle:t,noCloseButton:n||i,onCancel:r,onSignup:o}),(0,a.jsx)(E,{onSuccess:s})]})};function E(e){let{onSuccess:t}=e,{iString:n}=(0,o.GO)(),{email:b,setEmail:A,setMode:E}=(0,_.r)(),y=(0,c.st)({pathname:"/api/v1/login",method:"post"}),N=(0,i.useRef)(),O=(0,s.X)(),v=(0,s.X)(),x=async e=>{if(e.preventDefault(),y.isLoading)return;let n=Object.fromEntries(Array.from(e.currentTarget.elements).filter(e=>e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement).map(e=>[e.name,e.value]));N.current&&(n.captcha_response=N.current.getResponse());let a=await y.refetch({json:n});a instanceof Error||(a.mfa_required?E("mfa"):t())};return(0,a.jsxs)(a.Fragment,{children:[y.error instanceof l.fk&&401===y.error.response.status&&(0,a.jsx)(r.A,{ref:N}),(0,a.jsxs)("form",{onSubmit:x,children:[(0,a.jsx)(h.cw,{className:f.A.modalBody,children:(0,a.jsxs)(u.VP,{gap:8,children:[(0,a.jsx)(p.j,{name:"email",placeholder:n("Your email"),autoComplete:"email",ref:v,defaultValue:b,autoFocus:!0}),(0,a.jsx)(g.y,{name:"password",placeholder:n("Your password"),ref:O}),y.error&&(0,a.jsx)(m.yn,{children:(0,d.uX)(y.error)})]})}),(0,a.jsx)(h.jl,{direction:"column",primaryButton:(0,a.jsx)(u.$n,{priority:"primary",type:"submit",loading:y.isLoading,children:n("Continue")}),secondaryButton:(0,a.jsx)(u.$n,{priority:"secondary-outline",onClick:()=>{var e;A((null==(e=v.current)?void 0:e.value)||""),E("email")},children:n("Sign in with email")}),buttonDivider:(0,a.jsx)(u.vj,{})})]})]})}},43296:function(e,t,n){n.d(t,{XW:()=>r}),n(74848);var a=n(96540);n(94729);let i=(0,a.createContext)(null);function r(){return(0,a.useContext)(i)}},3046:function(e,t,n){n.d(t,{Ac:()=>M,Nf:()=>v,T_:()=>L,XK:()=>D,Xx:()=>S,YX:()=>P,ZT:()=>I,Zh:()=>w,b5:()=>C,dU:()=>x});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(14792),d=n.n(c);n(83673);var u=n(82853);n(18993);var p=n(8853),m=n(38685);n(66443),n(94090);var h=n(72880);n(82936),n(84605);var g=n(46275);n(10398),n(94729),n(24078),n(15040);var _=n(17028),b=n(97515);n(49315);var f=n(22602),A=n(81203),E=n(75303);n(92028),n(48965),n(89955),n(46647),n(87782),n(80351),n(69089),n(70486),n(42831),n(47128),n(16291),n(39318);var y=n(49807);n(82776);var N=n(69706),O=n(36083);function v(e){var t;let{user:n}=e,a=(0,g.BR)().isOnDestination;return(0,o.jsx)(_.az,{paddingX:12,children:(0,o.jsx)(_.EY.B4,{as:"a",color:"secondary",decoration:"hover-underline",href:(0,y.gYq)(n,{noBase:a}),target:"_blank",children:null!=(t=n.name)?t:"Substack user"})})}let x=(0,_.I4)({className:O.A.messageBubbleGroup,position:"relative",gap:2},E.VP);function S(e){let{direction:t,isLink:n,backgroundColor:a,isAuthorContributor:i}=e,r="incoming"===t&&i,s="".concat(a,"1A");return(0,o.jsxs)("svg",{viewBox:"0 0 16 13",className:l()(O.A.bubbs,O.A[t],n&&O.A.isLink,i&&O.A.author),style:r?{fill:s}:{},children:[(0,o.jsx)("circle",{cx:"5",cy:"5",r:"5",className:O.A.bubb}),(0,o.jsx)("circle",{cx:"13.5",cy:"10.5",r:"2.5",className:O.A.bubb}),r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("circle",{cx:"5",cy:"5",r:"5",fill:s}),(0,o.jsx)("circle",{cx:"13.5",cy:"10.5",r:"2.5",fill:s})]})]})}function w(e){var{messageDirection:t,isFirst:n=!1,isLast:s=!1,forceTheme:c,pubThemeAccentColor:u,isAuthorContributor:p,className:m}=e,h=(0,r._)(e,["messageDirection","isFirst","isLast","forceTheme","pubThemeAccentColor","isAuthorContributor","className"]);let g="incoming"===t&&p,b=g&&u;return(0,o.jsx)(_.fI,(0,i._)((0,a._)({},h),{className:l()(O.A.bubble,O.A[t],n&&O.A.isFirst,s&&O.A.isLast,c&&O.A["force".concat(d()(c),"Theme")],g&&O.A.author,m),style:{"--color-chat-author-bg-overlay":b?"".concat(u,"1A"):"oklch(from var(--color-bg-accent-themed) l c h / 0.1)"}}))}function I(e){let{metadata:t,publication:n,direction:a,isFirst:i,isLast:r}=e,s=M(t.url);return s?(0,o.jsx)(w,{messageDirection:a,isFirst:i,isLast:r,maxWidth:400,forceTheme:"incoming",outline:"detail",children:(0,o.jsx)(k,{videoId:s})}):(0,o.jsx)(w,{as:"a",href:t.url,target:"_blank",rel:"nofollow noopener ugc",messageDirection:a,isFirst:i,isLast:r,maxWidth:400,forceTheme:"incoming",outline:"detail",children:!function(e){let{metadata:t}=e;if(!t.image)return!1;let n=(0,y.d4Y)(t.image);return!!n&&(n.width<401||n.height<401)}({metadata:t})?(0,o.jsx)(R,{publication:n,metadata:t}):(0,o.jsx)(L,{metadata:t})})}function M(e){try{let n=new URL(e);if("youtube.com"===n.hostname||"www.youtube.com"===n.hostname){let e=n.searchParams.get("v");if("/watch"===n.pathname&&e)return e;let a=n.pathname.match(/\/(?:embed|v|shorts|live)\/([^\s\/]+)/);if(a){var t;return null!=(t=a[1])?t:null}}else if("youtu.be"===n.hostname){let e=n.pathname.slice(1);if(e)return e}}catch(e){console.error("Error parsing URL:",e)}return null}function C(e){try{var t,n;let a=new URL(e);if(a.pathname.startsWith("/player/v1/"))return null!=(t=a.pathname.split("/").pop())?t:null;if(a.pathname.includes("/video/")){let e=a.pathname.split("/"),t=e.indexOf("video")+1;if(tc,MI:()=>d});var a=n(74848),i=n(38376),r=n(49436),o=n(84605);n(94729),n(35369);var s=n(49315);n(48965),n(36319),n(70486),n(16291);var l=n(35407);function c(e){let{onMute:t,customLabel:n}=e,{iString:r}=(0,o.GO)();return(0,a.jsx)(s.Dr,{leading:(0,a.jsx)(i.A,{className:l.A.muteIcon}),onClick:e=>{e.preventDefault(),e.stopPropagation(),t("indefinitely")},children:n||r("Mute")})}function d(e){let{onClick:t,customLabel:n}=e,{iString:i}=(0,o.GO)();return(0,a.jsx)(s.Dr,{leading:(0,a.jsx)(r.A,{className:l.A.muteIcon}),onClick:e=>{e.preventDefault(),t()},children:n||i("Unmute")})}},87782:function(e,t,n){n(74848),n(76977),n(63136),n(35407)},69089:function(e,t,n){n.d(t,{e:()=>c});var a=n(69277),i=n(32641),r=n(74848),o=n(26683),s=n(17028),l=n(3898);function c(e){var{children:t,setReactions:n=!0,alignSelf:s}=e,l=(0,i._)(e,["children","setReactions","alignSelf"]);return n?(0,r.jsxs)(d,{position:"relative",alignSelf:s,children:[t,(0,r.jsx)(o.LI,(0,a._)({},l))]}):(0,r.jsx)(r.Fragment,{children:t})}let d=(0,s.yw)({display:"flex",className:l.A.reactionsHoverZone})},62488:function(e,t,n){n(96540)},15144:function(e,t,n){n(94729)},80351:function(e,t,n){n(94729)},36319:function(e,t,n){var a=n(69277),i=n(70408);n(74848),n(83673),n(63375),n(50014),n(96540),n(25250),n(46271),n(96467),n(94729),n(44333),n(68349),n(15144),n(70486),n(62488),n(26606),n(69911),n(11510),n(43296),n(16291),(0,i._)((0,a._)({},{isLoading:!1,hasMore:!1,error:null}),{isLoading:!0})},70486:function(e,t,n){n.d(t,{wA:()=>o});var a=n(96540);n(76528);let i={user:null,inbox:{threadList:[],threads:new Map,filter:"all",resources:{all:{isLoading:!0,hasMore:!1},people:{isLoading:!0,hasMore:!1}}},users:new Map,profiles:new Map,communityPosts:new Map,communityComments:new Map,chats:new Map,comments:new Map,replies:new Map,conversations:new Map,publications:new Map,notes:new Map,editingPost:null},r=(0,a.createContext)(()=>Promise.resolve());function o(){return(0,a.useContext)(r)}(0,a.createContext)(i)},26606:function(e,t,n){n(94729)},69911:function(e,t,n){n(68090)},68391:function(e,t,n){n.d(t,{C4:()=>r}),n(74848);var a=n(96540);n(46271);let i=(0,a.createContext)({registerVideo:()=>void 0,unregisterVideo:()=>void 0,updatePaywallState:()=>void 0}),r=e=>{let{disable:t,showPaywall:n,videoPlayerRef:r}=e,{registerVideo:o,unregisterVideo:s,updatePaywallState:l}=(0,a.useContext)(i);(0,a.useEffect)(()=>{if(r.current&&!t)return o(r),()=>{s(r)}},[t,o,s,r]),(0,a.useEffect)(()=>{l({showPaywall:n,videoPlayerRef:r})},[n,l,r])}},504:function(e,t,n){n.d(t,{KY:()=>O,Q$:()=>c,Qb:()=>u,Si:()=>A,aK:()=>E,fP:()=>p,n5:()=>g,qx:()=>N,rX:()=>f,tR:()=>d});var a=n(69277),i=n(70408),r=n(62193),o=n.n(r),s=n(27749),l=n(86500);function c(e,t){var n;let{extraEventProps:a={},tabId:i,primaryItem:r,isLoggedIn:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="trackingParameters"in e&&"item_entity_key"in e.trackingParameters?null==(n=e.trackingParameters)?void 0:n.item_entity_key:null;s&&o&&fetch("/api/v1/reader/feed/".concat(s,"/seen"),{method:"POST"}),b("seen",e,t,{extraEventProps:a,tabId:i,primaryItem:r})}function d(e,t,n){let{extraEventProps:r={},tabId:o,primaryItem:s}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};b("seen_for_duration",e,t,{extraEventProps:(0,i._)((0,a._)({},r),{timeVisible:n}),tabId:o,primaryItem:s})}function u(e,t,n){let{extraEventProps:r={},tabId:o,primaryItem:s}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};b("clicked",e,t,{extraEventProps:(0,i._)((0,a._)({clicked_element:n},r),{tabId:o,primaryItem:s})})}function p(e,t){let{extraEventProps:n={},tabId:r,primaryItem:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b("swiped",e,t,{extraEventProps:(0,i._)((0,a._)({},n),{tabId:r,primaryItem:o})})}function m(e){var t,n,a,i,r,o,s,l,c,d,u,p,m,h,g;let _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{primaryItem:b}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{item_primary_entity_key:b&&"entity_key"in b?b.entity_key:"entity_key"in e?e.entity_key:"",item_entity_key:"entity_key"in e?e.entity_key:"",item_type:e.type,item_content_user_id:"comment"in e?e.comment&&e.comment.user_id?e.comment.user_id:0:"post"in e?null!=(m=null==(n=e.post.publishedBylines)||null==(t=n[0])?void 0:t.id)?m:e.publication.author_id:0,item_content_timestamp:"comment"in e&&(null==(a=e.comment)?void 0:a.date)?new Date(e.comment.date).toISOString():"post"in e&&(null==(i=e.post)?void 0:i.post_date)?new Date(e.post.post_date).toISOString():"community_post"in e&&(null==(r=e.community_post)?void 0:r.created_at)?new Date(e.community_post.created_at).toISOString():null,item_context_type:"context"in e?e.context.type:"",item_context_type_bucket:"context"in e&&null!=(h=e.context.typeBucket)?h:"",item_context_timestamp:new Date("context"in e?e.context.timestamp:new Date).toISOString(),item_context_user_id:"context"in e?null==(o=e.context.users[0])?void 0:o.id:void 0,item_context_user_ids:"context"in e&&(null!=(g=null==(s=e.context.users)?void 0:s.length)?g:0)>0?e.context.users.map(e=>{let{id:t}=e;return t}):[],item_publication_id:"publication"in e?null==(l=e.publication)?void 0:l.id:void 0,item_post_id:null==(c=e.post)?void 0:c.id,item_comment_id:null==(d=e.comment)?void 0:d.id,item_can_reply:!("canReply"in e)||e.canReply,item_source:"frontend",item_model_rank:null,item_model_score:null,tab_id:null!=_?_:void 0,item_module_id:"id"in e?e.id:void 0,followed_user_count:0,subscribed_publication_count:0,is_following:!1,is_explicitly_subscribed:!1,trending_topic_id:"trendingTopic"in e?null==(u=e.trendingTopic)?void 0:u.id:void 0,trending_topic_query:"trendingTopic"in e?null==(p=e.trendingTopic)?void 0:p.query:void 0}}function h(e,t){let{primaryItem:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"comment"===e.type||"post"===e.type||"featuredCollection"===e.type||"featuredPublication"===e.type?o()(e.trackingParameters)?m(e,t,{primaryItem:n}):e.trackingParameters:m(e,t,{primaryItem:n})}function g(e){let{primaryItem:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i._)((0,a._)({},e),{trackingParameters:m(e,null,{primaryItem:t})})}n(40659),n(82776);let _=new Map([["featuredCollection","featured_collection"],["featuredPublication","featured_publication"]]);function b(e,t,n){let{extraEventProps:i={},tabId:r,primaryItem:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=h(t,null!=r?r:null,{primaryItem:o}),c=_.get(t.type);(0,l.u4)("seen"===e?l.qY.FEED_ITEM_SEEN:"seen_for_duration"===e?l.qY.FEED_ITEM_SEEN_FOR_DURATION:"swiped"===e?l.qY.FEED_ITEM_SWIPED:l.qY.FEED_ITEM_CLICKED,(0,a._)({surface:n,tabId:r,module:c},s,i))}function f(e,t,n){let{extraEventProps:i={},tabId:r,primaryItem:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=h(t,null!=r?r:null,{primaryItem:o}),c=_.get(t.type);(0,l.u4)("seen"===e?l.qY.FEED_MODULE_ITEM_SEEN:l.qY.FEED_MODULE_ITEM_CLICKED,(0,a._)({surface:n,tabId:r,module:c},s,i))}function A(e,t){let{extraEventProps:n={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y("seen",e,t,{extraEventProps:n})}function E(e,t,n){let{extraEventProps:i={}}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};y("clicked",e,t,{extraEventProps:(0,a._)({clicked_element:n},i)})}function y(e,t,n){var i,r,o;let{extraEventProps:s={}}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,l.u4)("seen"===e?l.qY.FEED_USER_SUGGESTION_SEEN:l.qY.FEED_USER_SUGGESTION_CLICKED,(0,a._)({suggested_user_id:t.user.id,suggested_publication_id:null!=(r=null==(i=t.publication)?void 0:i.id)?r:null,suggestion_source:null!=(o=t.source)?o:null,surface:n},t.trackingParameters,s))}function N(e,t){let{tabId:n,noteId:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,l.u4)(l.qY.FEED_HIDDEN_ATTACHMENT_SHOWN,{attachmentId:e,reason:t,tabId:n,noteId:a})}function O(e){let{props:t,isModuleItem:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,s.PK)(),r=n?f:b;return n=>{r("clicked",e,i,{extraEventProps:(0,a._)({clicked_element:n},t)})}}},5180:function(e,t,n){n.d(t,{Ro:()=>N,_0:()=>y,et:()=>b,l$:()=>O,tO:()=>E,wA:()=>f});var a=n(69277),i=n(70408),r=n(83673),o=n.n(r),s=n(2404),l=n.n(s),c=n(96540),d=n(96467),u=n(12501),p=n(68349),m=n(504),h=n(16291),g=n(70189),_=n(49807);let b=(0,c.createContext)({dispatch:()=>Promise.resolve()});function f(){return(0,c.useContext)(b).dispatch}let A={isSigningIn:!1,signInNoExit:!1,pages:[],readingQueue:[],posts:new Map,mediaClipsAsPosts:new Map,publications:new Map,referringPubByPostId:{},comments:new Map,inboxItems:new Map,hiddenItems:[],publicationSettings:new Map,publicationRecommendations:new Map,feedItemStats:new Map,activeLiveStreams:[],mutedFeedItems:new Set},E=(0,c.createContext)(A);function y(){let{initialData:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.K)(v,e,e=>{let{feedItem:t,readingQueue:n,initialPost:a}=e,i=A;return t&&(i=w(i,t)),n&&(i=C(i,n)),a&&(i=M(i,{posts:[a.post],publications:o()([a.publication,a.referringPub]),publicationSettings:new Map([[a.publication.id,a.publicationSettings]]),recommendationsByPubId:a.referringRecommendation?new Map([[a.referringRecommendation.recommended_publication_id,a.referringRecommendation]]):void 0})),i})}function N(){return(0,c.useContext)(E)}function O(e){let t=N();return!!e&&"entity_key"in e&&t.hiddenItems.includes(e.entity_key)}function v(e,t){var n,r,o,s,c,d,b,f,E,y,N;switch(t.type){case"sign_in":return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,isSigningIn:t.payload.isSigningIn,signInNoExit:null!=(n=t.payload.signInNoExit)&&n});case"page_load":{let{result:n}=t.payload;return(0,i._)((0,a._)({},S(e,n.items)),{lastDispatchType:t.type,pages:(0,u.VL)(e.pages,t)})}case"post_load":{let{post:n,publication:a}=t.payload;return M(e,{posts:[n],publications:[a]})}case"post_like":{let{postId:n,mediaClipId:a,isLiked:i}=t.payload,r=a?e.mediaClipsAsPosts.get(a):e.posts.get(n);return I(e,t.type,n,(b=r,{reaction:null!=(f=i)?f:!b.reaction,reactions:{"❤":((null==(E=b.reactions)?void 0:E["❤"])||0)+(f?1:-1)}}),a)}case"post_restack":{let{postId:n,mediaClipId:a,isRestacked:i}=t.payload,r=a?e.mediaClipsAsPosts.get(a):e.posts.get(n);return r?I(e,t.type,n,(y=r,{restacked:N=i,restacks:(y.restacks||0)+(N?1:-1)}),a):e}case"post_delete":{let{publication:n,post:r}=t.payload,o=new Map(e.posts),s=new Map(e.mediaClipsAsPosts);r.media_clip_id&&s.delete(r.media_clip_id),o.delete(r.id);let l=new Map([...e.comments].filter(e=>{let[t,n]=e;return n.post_id!==r.id}));return[(0,_.kGL)(r.id,{noBase:!0}),(0,_.q$n)(n,r,{noBase:!0})].includes(window.location.pathname)&&(0,p.V2)("/",{replace:!0}),(0,i._)((0,a._)({},e),{lastDispatchType:t.type,posts:o,mediaClipsAsPosts:s,comments:l,pages:e.pages.map(e=>(0,i._)((0,a._)({},e),{result:e.result?(0,i._)((0,a._)({},e.result),{items:e.result.items.filter(e=>{var t;return(null==(t=e.post)?void 0:t.id)!==r.id})}):e.result}))})}case"post_save":{let{postId:n,isSaved:a}=t.payload,i=e.posts.get(n),r=null==a?!(null==i?void 0:i.is_saved):a;return i?I(e,t.type,n,{is_saved:r}):e}case"comment_like":{let{commentId:n,isLiked:o}=t.payload,s=e.comments.get(n);if(!s)return e;return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,comments:k(e.comments,n,(0,i._)((0,a._)({},s),{reaction:o?"❤":void 0,reactions:(0,i._)((0,a._)({},s.reactions),{"❤":((null==(r=s.reactions)?void 0:r["❤"])||0)+(o?1:-1)}),reaction_count:(s.reaction_count||0)+(o?1:-1)}))})}case"comment_restack":{let{commentId:n,isRestacked:r}=t.payload,o=e.comments.get(n);return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,comments:o?k(e.comments,n,(0,i._)((0,a._)({},o),{restacked:r,restacks:(o.restacks||0)+(r?1:-1)})):e.comments})}case"comment_delete":{let{comment:n}=t.payload,r=new Map(e.posts),o=new Map(e.mediaClipsAsPosts),s=new Map([...e.comments].filter(e=>{let[t,a]=e;return a.id!==n.id&&!new RegExp("(^|.)".concat(n.id,"(.|$)")).test(a.ancestor_path)})),l=r.get(n.post_id),c=n.media_clip_id?o.get(n.media_clip_id):null,d=n.ancestor_path&&s.get(Number(n.ancestor_path.split(".").pop()));return d?s.set(d.id,(0,i._)((0,a._)({},d),{children_count:(d.children_count||1)-1,children:(d.children||[]).filter(e=>e.id!==n.id)})):(l||c)&&(l&&r.set(l.id,(0,i._)((0,a._)({},l),{child_comment_count:(l.child_comment_count||1)-1})),c&&o.set(n.media_clip_id,(0,i._)((0,a._)({},c),{child_comment_count:(c.child_comment_count||1)-1}))),[(0,_.Zgx)(n,{noBase:!0})].includes(window.location.pathname)&&(0,p.V2)("/",{replace:!0}),(0,i._)((0,a._)({},e),{lastDispatchType:t.type,posts:r,mediaClipsAsPosts:o,comments:s,pages:e.pages.map(e=>(0,i._)((0,a._)({},e),{result:e.result?(0,i._)((0,a._)({},e.result),{items:e.result.items.filter(e=>{var t;return(null==(t=e.comment)?void 0:t.id)!==n.id&&!(e.parentComments||[]).filter(Boolean).map(e=>e.id).includes(n.id)})}):e.result}))})}case"clip_delete":{let{mediaClip:n,author:r}=t.payload;return[(0,g.w1)(n,r,{noBase:!0})].includes(window.location.pathname)&&(0,p.V2)("/",{replace:!0}),(0,i._)((0,a._)({},e),{lastDispatchType:t.type,pages:e.pages.map(e=>(0,i._)((0,a._)({},e),{result:e.result?(0,i._)((0,a._)({},e.result),{items:e.result.items.filter(e=>{var t;return"post"!==e.type||(null==(t=e.mediaClip)?void 0:t.id)!==n.id})}):e.result}))})}case"new_post":return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,publications:new Map([...e.publications].concat([[t.payload.publication.id,t.payload.publication]])),posts:new Map([...e.posts].concat([[t.payload.post.id,t.payload.post]])),pages:[{error:null,isLoading:!1,result:{items:[{type:"post",entity_key:(0,g.pi)(t.payload.post.id),publication:t.payload.publication,post:t.payload.post,context:t.payload.context||{}}]}},...e.pages]});case"new_comment":{let{comment:n,skipFeedInsertion:r}=t.payload,l=new Map(e.posts),c=new Map(e.mediaClipsAsPosts),d=l.get(n.post_id),u=n.media_clip_id?c.get(n.media_clip_id):null;d&&l.set(d.id,(0,i._)((0,a._)({},d),{child_comment_count:(d.child_comment_count||0)+1})),u&&c.set(n.media_clip_id,(0,i._)((0,a._)({},u),{child_comment_count:(u.child_comment_count||0)+1}));let p=new Map(e.comments);p.set(n.id,n);let h=((null==(o=n.ancestor_path)?void 0:o.split("."))||[]).map(Number).filter(Boolean).map(e=>p.get(e)||null),_=null!=(s=h[h.length-1])?s:null;_&&p.set(_.id,(0,i._)((0,a._)({},_),{children_count:(_.children_count||0)+1,children:[n].concat(_.children||[])}));let b=!!n.ancestor_path,f=e.pages;return b||r||(f=[{error:null,isLoading:!1,result:{items:[(0,m.n5)({type:"comment",entity_key:(0,g.a5)(n.id),comment:n,parentComments:h,publication:null,post:null,canReply:!0,context:{type:"comment",timestamp:new Date().toISOString(),users:[],fallbackReason:"",fallbackUrl:null}})]}},...e.pages]),(0,i._)((0,a._)({},e),{lastDispatchType:t.type,posts:l,mediaClipsAsPosts:c,comments:p,pages:f})}case"edit_comment":{let{comment:n}=t.payload,r=new Map(e.comments);return r.set(n.id,n),(0,i._)((0,a._)({},e),{lastDispatchType:t.type,comments:r})}case"comments_load":{let{comments:n}=t.payload,r=[],o=n.slice();for(;o.length>0;){let e=o.pop();r.push(e),o.push(...e.children||[])}return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,comments:new Map([...e.comments].concat(r.map(e=>[e.id,e])))})}case"item_load":{let{item:n}=t.payload;return(0,i._)((0,a._)({},w(e,n)),{lastDispatchType:t.type})}case"items_load":{let{items:n}=t.payload;return(0,i._)((0,a._)({},S(e,n)),{lastDispatchType:t.type})}case"new_feed_items":{let n=[...e.pages];if(t.payload.insertLocation){let e={error:null,isLoading:!1,result:{items:t.payload.feedItems}};"prepend"===t.payload.insertLocation?n.unshift(e):"append"===t.payload.insertLocation&&n.push(e)}return(0,i._)((0,a._)({},S(x(e,10),t.payload.feedItems)),{lastDispatchType:t.type,pages:n})}case"items_cull":{let t=null==(d=e.pages.find(e=>{var t;return null==(t=e.result)?void 0:t.originalCursorTimestamp}))||null==(c=d.result)?void 0:c.originalCursorTimestamp;if(t&&(0,h.A)(t).isBefore((0,h.A)().subtract(10,"minutes")))return A;return x(e,10)}case"inbox_load":return C(e,t.payload);case"active_live_streams_load":if(l()(e.activeLiveStreams,t.payload))return e;return(0,i._)((0,a._)({},e),{activeLiveStreams:t.payload.filter(e=>(0,h.A)(e.liveStream.started_streaming_at).isBefore((0,h.A)().subtract(1,"minute")))});case"inbox_item_archive":{let{contentKey:n,isArchived:r}=t.payload,o=e.inboxItems.get(n);return(0,i._)((0,a._)({},e),{inboxItems:k(e.inboxItems,n,(0,i._)((0,a._)({},o),{archived_at:r?new Date().toISOString():null}))})}case"item_hide":{let{entityKey:n}=t.payload;return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,hiddenItems:[...e.hiddenItems,n]})}case"item_unhide":{let{entityKey:n}=t.payload;return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,hiddenItems:e.hiddenItems.filter(e=>e!==n)})}case"item_dismiss":{let{entityKey:n}=t.payload;return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,pages:e.pages.map(e=>(0,i._)((0,a._)({},e),{result:e.result?(0,i._)((0,a._)({},e.result),{items:e.result.items.filter(e=>"entity_key"in e&&e.entity_key!==n)}):e.result}))})}case"update_paused_notifications":{let n=new Set([...e.mutedFeedItems,...t.payload.map(e=>e.entity_key)]);return(0,i._)((0,a._)({},e),{mutedFeedItems:n})}case"item_pause_notifications":{let{entityKey:n}=t.payload,r=new Set(e.mutedFeedItems);return r.add(n),(0,i._)((0,a._)({},e),{mutedFeedItems:r})}case"item_unpause_notifications":{let{entityKey:n}=t.payload,r=new Set(e.mutedFeedItems);return r.delete(n),(0,i._)((0,a._)({},e),{mutedFeedItems:r})}}return(0,i._)((0,a._)({},e),{lastDispatchType:t.type,pages:(0,u.VL)(e.pages,t)})}function x(e,t){let n,r=0,o=[];for(let a of e.pages){var s;let e=null==(s=a.result)?void 0:s.items;if(!e||a.error||a.isLoading)break;for(let t of(n=a,e))o.push(t),r++;if(r>t)break}if(!(null==n?void 0:n.result))return e;let l=(0,i._)((0,a._)({},n),{result:(0,i._)((0,a._)({},n.result),{items:o})});return(0,i._)((0,a._)({},e),{pages:[l]})}function S(e,t){let n=new Map(e.publications),r=new Map(e.posts),o=new Map(e.mediaClipsAsPosts),s=new Map(e.comments),l=new Set(e.mutedFeedItems);for(let e of t){if("publication"in e&&e.publication&&n.set(e.publication.id,e.publication),"post"in e){let{post:t,mediaClip:n}=e;n?o.set(n.id,t):t&&r.set(t.id,t),e.isMuted&&l.add(e.entity_key)}if("comment"in e){let{comment:t}=e;if(t&&(s.set(t.id,t),t.attachments)){for(let e of t.attachments)if("post"===e.type){var c;(null==(c=e.mediaClip)?void 0:c.id)?o.set(e.mediaClip.id,e.post):r.set(e.post.id,e.post),n.set(e.publication.id,e.publication)}}e.isMuted&&l.add(e.entity_key)}if("parentComments"in e)for(let t of e.parentComments)t&&s.set(t.id,t)}return(0,i._)((0,a._)({},e),{publications:n,posts:r,mediaClipsAsPosts:o,comments:s,mutedFeedItems:l})}function w(e,t){var n;return(0,i._)((0,a._)({},e),{posts:t.post&&!t.mediaClip?k(e.posts,t.post.id,t.post):e.posts,mediaClipsAsPosts:t.post&&t.mediaClip?k(e.mediaClipsAsPosts,t.mediaClip.id,t.post):e.mediaClipsAsPosts,publications:t.publication?k(e.publications,t.publication.id,t.publication):e.publications,comments:new Map([...e.comments].concat([t.comment,...null!=(n=t.parentComments)?n:[]].filter(Boolean).map(e=>[e.id,e]))),feedItemStats:t.feedItemStats&&t.feedItemStats.entity_key?k(e.feedItemStats,t.feedItemStats.entity_key,t.feedItemStats):e.feedItemStats,mutedFeedItems:new Set(t.entity_key&&t.isMuted?[t.entity_key]:void 0)})}function I(e,t,n,r,o){let s=new Map(e.posts),l=new Map(e.mediaClipsAsPosts),c=o?l.get(o):s.get(n);return c&&(o?l.set(o,(0,a._)({},c,r)):s.set(c.id,(0,a._)({},c,r))),(0,i._)((0,a._)({},e),{lastDispatchType:t,posts:s,mediaClipsAsPosts:l})}function M(e,t){let{posts:n,publications:r,publicationSettings:o,recommendationsByPubId:s}=t,l=new Map(e.posts);for(let e of n)l.set(e.id,(0,a._)({},l.get(e.id),e));let c=new Map(e.publications);for(let e of r)c.set(e.id,(0,a._)({},c.get(e.id),e));let d=new Map([...e.publicationSettings.entries(),...o?o.entries():[]]),u=new Map([...e.publicationRecommendations.entries(),...s?s.entries():[]]);return(0,i._)((0,a._)({},e),{posts:l,publications:c,publicationSettings:d,publicationRecommendations:u})}function C(e,t){return(0,i._)((0,a._)({},M(e,t)),{readingQueue:t.inboxItems.map(e=>e.content_key),inboxItems:new Map([...e.inboxItems].concat(t.inboxItems.map(e=>[e.content_key,e]))),referringPubByPostId:(0,a._)({},e.referringPubByPostId,t.referringPubByPostId)})}function k(e,t,n){let a=new Map(e);return a.set(t,n),a}},22230:function(e,t,n){n.d(t,{$:()=>o,X:()=>s});var a=n(22752),i=n(68349),r=n(5180);function o(e){let{tabId:t,restacking_user_id:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,r.wA)(),s=(0,a.N9)();return async(e,a,r)=>{o({type:"post_like",payload:{postId:e,isLiked:a}}),r&&o({type:"post_like",payload:{postId:e,isLiked:a,mediaClipId:r}});try{return await s(e,a,{tabId:t,restacking_user_id:n,media_clip_id:r}),!0}catch(t){return o({type:"post_like",payload:{postId:e,isLiked:!a}}),r&&o({type:"post_like",payload:{postId:e,isLiked:!a,mediaClipId:r}}),alert((0,i.uX)(t)),!1}}}function s(e){var t;return null!=(t=e.reactions["❤"])?t:0}},91563:function(e,t,n){n.d(t,{S:()=>E});var a=n(74848),i=n(96540),r=n(23623),o=n(61143),s=n(84605),l=n(94729),c=n(56804),d=n(68349),u=n(89490),p=n(35369),m=n(76977),h=n(63136),g=n(504),_=n(38992),b=n(16291),f=n(49807),A=n(21354);function E(e){var t;let{liveStream:n,post:E,feedItem:N}=e,{iString:O}=(0,s.GO)(),{liveStream:v}=(0,_.u)({liveStream:n}),[x,S]=(0,i.useState)((0,b.A)(null==v?void 0:v.liveStream.scheduled_at).valueOf()-Date.now()),[w,I]=(0,i.useState)((0,b.A)(null==v?void 0:v.liveStream.scheduled_at).isAfter((0,b.A)().add(15,"minutes")));if((0,i.useEffect)(()=>{(null==v?void 0:v.liveStream.scheduled_at)&&I((0,b.A)(v.liveStream.scheduled_at).isAfter((0,b.A)().add(15,"minutes")))},[v]),(0,i.useEffect)(()=>{(null==v?void 0:v.liveStream.scheduled_at)&&S((0,b.A)(v.liveStream.scheduled_at).valueOf()-Date.now());let e=setInterval(()=>{S((0,b.A)(null==v?void 0:v.liveStream.scheduled_at).valueOf()-Date.now())},1e3);return()=>clearInterval(e)},[v]),!(null==v?void 0:v.liveStream.id))return null;if((null==v?void 0:v.liveStream.status)==="active")return(0,a.jsx)(o.q,{activeLiveStream:v,isFeedItem:!0,listenForViewerCount:!1,startMuted:!0});let M=Math.max(x/1e3,0),C=Math.floor(M/60/60/24),k=Math.floor(M/60/60%24),j=Math.floor(M/60%60),L=String(C).padStart(2,"0"),R=String(k).padStart(2,"0"),T=String(j).padStart(2,"0"),P=String(Math.floor(M%60)).padStart(2,"0"),D=(0,f.Xrv)({liveStreamId:null==v?void 0:v.liveStream.id});return(0,a.jsx)(r.a,{children:(0,a.jsxs)(u.az,{as:"a",onClick:e=>{N&&((0,g.Qb)(N,"permalink","attachment",{extraEventProps:{live_stream_id:null==v?void 0:v.liveStream.id,post_id:null==E?void 0:E.id}}),(0,c.o)(e,D))},href:(0,f.Xrv)({liveStreamId:null==v?void 0:v.liveStream.id}),radius:"md",overflow:"hidden",children:[(0,a.jsx)(m.pT,{gap:12,padding:12,alignItems:"center",justifyContent:"space-between",bg:"black",children:w?(0,a.jsx)(m.pT,{className:A.A.countdownTimer,justifyContent:"center",alignItems:"center",children:(0,a.jsxs)(m.pT,{children:[C>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{value:L,unit:"DAYS"}),(0,a.jsx)(m.pT,{height:40,width:20,alignItems:"end",justifyContent:"center",children:(0,a.jsx)(h.EY.B4,{color:"white",fontSize:30,lineHeight:30,children:":"})})]}):null,(0,a.jsx)(y,{value:R,unit:"HR"}),(0,a.jsx)(m.pT,{height:40,width:20,alignItems:"end",justifyContent:"center",children:(0,a.jsx)(h.EY.B4,{color:"white",fontSize:30,lineHeight:30,children:":"})}),(0,a.jsx)(y,{value:T,unit:"MIN"}),0===C?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.pT,{height:40,width:20,alignItems:"end",justifyContent:"center",children:(0,a.jsx)(h.EY.B4,{color:"white",fontSize:30,lineHeight:30,children:":"})}),(0,a.jsx)(y,{value:P,unit:"SEC"})]}):null]})}):(0,a.jsxs)(m.I1,{className:A.A.countdownTimer,justifyContent:"center",alignItems:"center",gap:4,children:[(0,a.jsxs)(m.pT,{children:[(0,a.jsx)(y,{value:T}),(0,a.jsx)(m.pT,{height:40,width:20,alignItems:"end",justifyContent:"center",children:(0,a.jsx)(h.EY.B4,{color:"white",fontSize:30,lineHeight:30,children:":"})}),(0,a.jsx)(y,{value:P})]}),(0,a.jsx)(h.EY.B4,{color:"vibrance-secondary",transform:"uppercase",children:O("Starting soon...")})]})}),(0,a.jsxs)(m.pT,{gap:12,padding:12,alignItems:"center",justifyContent:"space-between",bg:"secondary",borderTop:"detail",children:[(0,a.jsxs)(m.I1,{gap:4,children:[(0,a.jsx)(h.EY.B4,{color:"vibrance-secondary",children:null==v||null==(t=v.liveStream.user)?void 0:t.name}),(0,a.jsx)(h.EY.B4,{weight:"bold",color:"white",children:null==v?void 0:v.liveStream.title})]}),(0,a.jsx)(p.$n,{priority:"primary",onClick:async e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),N&&(0,g.Qb)(N,"permalink","add_to_calendar",{extraEventProps:{live_stream_id:null==v?void 0:v.liveStream.id,post_id:null==E?void 0:E.id}});try{await (0,l.x6)("/api/v1/live_stream/".concat(null==v?void 0:v.liveStream.id,"/rsvp"),{method:"PUT"})}catch(e){console.error(e)}(0,d.V2)((0,f.Xrv)({liveStreamId:null==v?void 0:v.liveStream.id}),{local_navigation:!1})},children:w?"Interested":"Join now"})]})]})})}let y=e=>{let{value:t,unit:n}=e;return(0,a.jsxs)(m.I1,{alignItems:"center",gap:4,children:[(0,a.jsx)(m.I1,{justifyContent:"end",alignItems:"center",height:40,children:(0,a.jsx)(h.EY.B4,{font:"digit",fontSize:30,lineHeight:30,color:"white",children:t})}),n&&(0,a.jsx)(h.EY.B4,{color:"vibrance-secondary",children:n})]})}},46453:function(e,t,n){n.d(t,{Dx:()=>i,eE:()=>o,t2:()=>r});var a=n(96540);let i=(0,a.createContext)({setChildOptions:()=>{},isLoading:!1,subscriptions:[],publicationUsers:[],onPageScroll:()=>void 0,setPinTitle:()=>void 0,setDrawer:()=>null,checkFocus:()=>!1,requireLogin:null,isExpanded:!1});function r(e){let{shouldShowGetAppPill:t=!0,style:n,alwaysPinTitle:i,backAction:r,onRefresh:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=o();return(0,a.useLayoutEffect)(()=>{var a;null==(a=l.setChildOptions)||a.call(l,{title:e,style:n,alwaysPinTitle:i,backAction:r,shouldShowGetAppPill:t,onRefresh:s})},[l,e,n,r,t,s]),(0,a.useLayoutEffect)(()=>{var e;null==(e=l.setPinTitle)||e.call(l,!1)},[]),l}function o(){return(0,a.useContext)(i)}},41842:function(e,t,n){n.d(t,{K:()=>c});var a=n(69277),i=n(32641),r=n(74848),o=n(16993),s=n(48239),l=n(18194);function c(e){var{isOpen:t,pub:n=null,profile:c=null,skipRedirectOnExit:d=!1}=e,u=(0,i._)(e,["isOpen","pub","profile","skipRedirectOnExit"]);let{stepConfig:p,contextValue:m,handleOpen:h,handleClose:g}=(0,l.F)((0,a._)({isPage:!1,isOpen:t,pub:n,profile:c,skipRedirectOnExit:d},u));return(0,r.jsx)(o.aF,{fullscreenMobile:!0,isOpen:t,onOpen:h,onClose:g,width:500,disableCloseOnBackdropClick:!0,children:(0,r.jsx)(s.Xf,{value:m,children:(0,r.jsx)(r.Fragment,{children:p.render()})})})}},19718:function(e,t,n){n.d(t,{V:()=>s});var a=n(74848),i=n(96540),r=n(60322),o=n(76977);let s=(0,i.forwardRef)((e,t)=>{let{selected:n,onChange:i,checkboxName:s,children:l}=e;return(0,a.jsxs)(o.fI,{ref:t,as:"label",hover:!0,pressable:"lg",cursor:"pointer",userSelect:"none",alignItems:"start",paddingY:12,justifyContent:"space-between",gap:12,children:[l,(0,a.jsx)(r.S,{name:s,checked:n,onChange:i,size:"sm"})]})})},97307:function(e,t,n){n.d(t,{n:()=>d});var a=n(69277),i=n(96540),r=n(52820),o=n(46271),s=n(68349),l=n(78979),c=n(92636);function d(){let{user:e}=(0,o.ur)(),{getExperimentVariant:t,exposeExperiment:n}=(0,r.Wk)(),[d,u]=(0,i.useState)(!1),[p,m]=(0,i.useState)({}),h=!e&&(0,c.Sg)()&&"undefined"!=typeof window&&"/onboarding"!==window.location.pathname,g=t("reader_onboarding_modal_v2_vs_page"),_=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h&&(n("reader_onboarding_modal_v2_vs_page"),"treatment"===g)?(0,s.V2)("/onboarding"):(m(e),u(!0))},[h,n,g]),b=(0,i.useCallback)((t,n)=>{m({pub:t,profile:n,initialStep:e?l.dn.CATEGORIES:l.dn.PUB_SIGNUP}),u(!0)},[e]),f=(0,i.useCallback)(e=>{m({pub:e,profile:null,initialStep:l.dn.PUB_SIGNUP}),u(!0)},[]),A=(0,i.useCallback)(()=>{u(!1),m({})},[]);return{modalProps:(0,i.useMemo)(()=>(0,a._)({isOpen:d,onClose:A},p),[d,A,p]),open:_,openForPub:b,openToPubSignup:f,close:A}}},77103:function(e,t,n){n(74848),n(36944),n(96540),n(77148),n(50431)},13064:function(e,t,n){n.d(t,{M:()=>l});var a=n(74848),i=n(3228),r=n(48226),o=n(82634),s=n(99978);function l(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.c,{disabled:!1,priority:"primary"}),(0,a.jsx)(i.k,{disabled:!1,priority:"primary"}),(0,a.jsx)(o.Q,{disabled:!1,priority:"primary"}),(0,a.jsx)(s.w,{disabled:!1,priority:"primary"})]})}},98722:function(e,t,n){n.d(t,{V:()=>i});var a=n(96540);function i(e,t){let[n,i]=(0,a.useState)(()=>!!(null==e?void 0:e.reaction)),[r,o]=(0,a.useState)(()=>{var t;return null!=(t=null==e?void 0:e.reactions["❤"])?t:0});(0,a.useEffect)(()=>{if(e){var t;i(!!e.reaction),o(null!=(t=e.reactions["❤"])?t:0)}},[e]);let s=(0,a.useCallback)(()=>{if(!e)return;let a=!n;i(a),o(e=>e+(a?1:-1)),t(e.id,a)},[t,e,n]);return{isLiked:n,likeCount:r,handleLike:s}}},40306:function(e,t,n){n.d(t,{T:()=>o});var a=n(69277),i=n(70408),r=n(96540);function o(e){let[t,n]=(0,r.useState)(()=>!!(null==e?void 0:e.restacked)),[o,s]=(0,r.useState)(()=>{var t;return null!=(t=null==e?void 0:e.restacks)?t:0});return(0,r.useEffect)(()=>{if(e){var t;n(!!e.restacked),s(null!=(t=e.restacks)?t:0)}},[null==e?void 0:e.id]),{handleRestack:(0,r.useCallback)(e=>{n(t=>t!==e?(s(t=>t+(e?1:-1)),e):t)},[]),postWithRestackState:(0,r.useMemo)(()=>e?(0,i._)((0,a._)({},e),{restacked:t,restacks:o}):null,[e,t,o])}}},85050:function(e,t,n){n.d(t,{s:()=>o}),n(96540);var a=n(46271),i=n(86500),r=n(46453);function o(e){let{surface:t}=e,n=(0,a.Jd)(),{onboardingModal:o}=(0,r.eE)();return(e,a)=>r=>{if(!e)return void console.warn("No publication provided to usePubOnboardingHandler handler");if(!n){if(!o)return;r.preventDefault(),a?o.openForPub(e,a):o.openToPubSignup(e);return}(0,i.fN)(e,t)}}},28916:function(e,t,n){n.d(t,{I:()=>x});var a=n(69277),i=n(74848),r=n(15977),o=n(50180),s=n(96540),l=n(95043),c=n(84605),d=n(46271),u=n(12501),p=n(68349),m=n(35369),h=n(76977),g=n(49315),_=n(16993),b=n(63136),f=n(48965),A=n(5180),E=n(2481),y=n(90554),N=n(70189),O=n(18947),v=n(49807);function x(e){var t,n;let m,h,b,{pub:x,post:w,comment:I,feedItem:M,onRestack:C,tabId:k,surface:j,renderWithoutUser:L=!1}=e,R=(0,d.Jd)(),T=(0,f.d)(),P=(!!R||L)&&!(null==x?void 0:x.hide_post_restacks)&&!(null==x?void 0:x.invite_only),D=!!(null==(t=I||w)?void 0:t.restacked),B=(null==(n=I||w)?void 0:n.restacks)||0,U=(0,A.wA)(),G=(0,E.NP)(),[F,W]=(0,s.useState)(!1),Y=(0,u.st)({pathname:"/api/v1/restack/feed"}),{iString:K}=(0,c.GO)(),{nuxModal:H,showRestackNux:V}=(m=function(e){let{entityType:t}=e,[n,a]=(0,s.useState)(!1),r=()=>{a(!1)};return{open:()=>{a(!0)},element:(0,i.jsx)(_.aF,{isOpen:n,onClose:r,children:(0,i.jsx)(S,{onClose:r,entityType:t})})}}({entityType:I&&!I.post_id?"note":I?"comment":"post"}),h=(0,u.st)({pathname:"/api/v1/feed/has-restacked",auto:!1,cacheTtl:1/0}),b=async()=>{var e;let t=null!=(e=h.result)?e:await h.refetch();t instanceof Error||(null==t?void 0:t.hasRestacked)!==!1||(m.open(),h.setResult({hasRestacked:!0}))},{nuxModal:m.element,showRestackNux:b}),z=async()=>{var e,t;if(!R)return void W(!0);null==C||C(!0);let n=await Y.refetch({method:"POST",json:{postId:I?null:null==w?void 0:w.id,commentId:(null==I?void 0:I.id)||null,mediaClipId:(null==M?void 0:M.type)==="post"?null==(e=M.mediaClip)?void 0:e.id:void 0,tabId:k,surface:j}});if(n instanceof Error){null==C||C(!1),alert((0,p.uX)(n));return}if(T.popToast(()=>(0,i.jsx)(f.y,{text:n.comment?K("Note restacked"):K("Post restacked"),Icon:r.A,cta:K("View now"),href:(0,N.oT)()})),n.comment)U({type:"comment_restack",payload:{commentId:n.comment.id,isRestacked:!0}});else{U({type:"post_restack",payload:{postId:n.post.id,isRestacked:!0}});let e=(null==M?void 0:M.type)==="post"?null==(t=M.mediaClip)?void 0:t.id:void 0;e&&U({type:"post_restack",payload:{postId:n.post.id,mediaClipId:e,isRestacked:!0}})}V()},q=async()=>{var e,t;null==C||C(!1);let n=await Y.refetch({method:"DELETE",json:{postId:I?null:null==w?void 0:w.id,commentId:(null==I?void 0:I.id)||null,mediaClipId:(null==M?void 0:M.type)==="post"?null==(e=M.mediaClip)?void 0:e.id:void 0,tabId:k}});if(n instanceof Error){null==C||C(!0),alert((0,p.uX)(n));return}if(T.popToast(()=>(0,i.jsx)(f.y,{text:K("Restack undone"),Icon:o.A})),I)U({type:"comment_restack",payload:{commentId:I.id,isRestacked:!1}});else if(w){U({type:"post_restack",payload:{postId:w.id,isRestacked:!1}});let e=(null==M?void 0:M.type)==="post"?null==(t=M.mediaClip)?void 0:t.id:void 0;e&&U({type:"post_restack",payload:{postId:w.id,mediaClipId:e,isRestacked:!1}})}},J=async()=>{if(!R)return void W(!0);try{var e;await G.open((0,a._)({feedItem:M,restackUrl:I?(0,O.XB)(w,I,x):(0,v.wu9)(x,w),tabId:k,surface:j},(null==M?void 0:M.type)==="post"&&{mediaClipId:null==(e=M.mediaClip)?void 0:e.id})),V()}catch(e){}};return(0,y.y)({name:"restack-comment",action:()=>{P&&J()}}),{canRestack:P,isRestacked:D,restacks:B,nuxModal:H,loggedOutRestackAttempt:F,menuItems:[D?(0,i.jsx)(g.Dr,{leading:(0,i.jsx)(o.A,{}),onClick:q,children:K("Undo restack")}):(0,i.jsx)(g.Dr,{leading:(0,i.jsx)(r.A,{}),onClick:z,children:K("Restack")}),(0,i.jsx)(g.Dr,{leading:(0,i.jsx)(l.A,{}),onClick:J,children:K("Restack with a note")})]}}function S(e){let{onClose:t,entityType:n}=e,{iString:a}=(0,c.GO)();return(0,i.jsxs)(h.I1,{paddingX:16,children:[(0,i.jsx)(h.pT,{justifyContent:"center",paddingTop:32,paddingBottom:24,children:(0,i.jsx)(r.A,{size:40,stroke:"var(--color-fg-primary)"})}),(0,i.jsxs)(h.I1,{gap:12,children:[(0,i.jsxs)(b.EY.H3,{align:"center",children:["comment"===n&&a("You restacked a comment"),"note"===n&&a("You restacked a note"),"post"===n&&a("You restacked a post")]}),(0,i.jsxs)(b.EY.B3,{color:"secondary",align:"center",children:["comment"===n&&a("Restack comments that inspire you to share them with more people."),"note"===n&&a("Restack notes that inspire you to share them with more people."),"post"===n&&a("Restack posts that inspire you to share them with more people.")," ",a("Subscribers can see your restacks in the Notes tab and on your profile.")]})]}),(0,i.jsxs)(h.I1,{paddingBottom:16,paddingTop:20,gap:8,children:[(0,i.jsx)(m.$n,{priority:"primary",href:(0,N.oT)(),children:a("View now")}),(0,i.jsx)(m.$n,{priority:"secondary-outline",onClick:t,children:a("OK")})]})]})}},90554:function(e,t,n){n.d(t,{y:()=>i});var a=n(96540);function i(e){let{name:t,action:n}=e;(0,a.useEffect)(()=>{if("undefined"==typeof window)return;let e=new URL(window.location.href);if(e.searchParams.get("action")===t){n();let t=e.searchParams;t.delete("action"),window.history.replaceState({},"","".concat(e.origin).concat(e.pathname,"?").concat(t))}},[])}},45846:function(e,t,n){n.d(t,{SC:()=>s,uo:()=>l});var a=n(74848),i=n(96540),r=n(35369),o=n(19832);function s(){let[e,t]=(0,i.useState)(null);return{confirm:()=>new Promise((n,a)=>{e&&a(Error("Already confirming.")),t({resolve:n,reject:a})}),isConfirming:!!e,handleConfirm:n=>{t(null),null==e||e.resolve(n)},handleCancel:n=>{t(null),null==e||e.resolve(n)}}}function l(e){let{title:t,body:n,cancelLabel:i="Cancel",confirmLabel:s="Confirm",modal:l}=e;return(0,a.jsx)(o.m,{isOpen:l.isConfirming,onClose:()=>l.handleCancel(!1),title:t,description:n,primaryButton:(0,a.jsx)(r.$n,{priority:"destructive",onClick:()=>l.handleConfirm(!0),children:s}),secondaryButton:(0,a.jsx)(r.$n,{priority:"secondary",onClick:()=>l.handleCancel(!1),children:i})})}},53457:function(e,t,n){n(76528)},16884:function(e,t,n){n.d(t,{GQ:()=>b,Zm:()=>_});var a=n(69277),i=n(74848),r=n(96540),o=n(58050),s=n(46271),l=n(94729),c=n(1683),d=n(48965),u=n(32848),p=n(40659),m=n(96301),h=n(49807),g=n(82776);function _(e){var t,n,a;let{publicationId:l,publication:c,publicationName:p,user:m,allowSecondaryPublications:h=!0,subscriptionSource:_,sourceNoteId:b}=e;l=null!=(a=null!=(n=null==c?void 0:c.id)?n:l)?a:null==m||null==(t=m.primary_publication)?void 0:t.id;let y=(0,s.Jd)(),N=(0,d.d)(),O=(0,o.uy)(),v=(0,u.n7)(),[x,S]=(0,r.useState)(!1),w=!!l&&function(e,t,n){if(!e||!t||!n.hasLoadedOnce||!n.result)return!1;let a=n.result.subscriptionMap.get(t);if(a&&"unsubscribed"!==a.membership_state)return!0;let i=n.result.publicationUserMap.get(t);return!!(i&&(0,g.isAtLeastContributorRole)(i.role))}(y,l,v)||function(e,t,n){let{allowSecondaryPublications:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||!t||!n.hasLoadedOnce||!n.result)return!1;let{subscriptions:i,publicationUsers:r}=n.result;if(a){for(let e of i)if("unsubscribed"!==e.membership_state&&f(t.id,e.publication_id,n))return!0;for(let e of r)if((0,g.isAtLeastContributorRole)(e.role)&&f(t.id,e.publication_id,n))return!0}return!1}(y,m,v,{allowSecondaryPublications:h}),[I,M]=(0,r.useState)(null),C=v.isLoading||!!I,k=async e=>{var t;if(e&&(e.preventDefault(),e.stopPropagation()),C||w)return;M("subscribing");let n=await A(l,_,{publication:c,user:y,sourceNoteId:b}),a="Subscribed to ".concat(l?null!=(t=null!=p?p:null==c?void 0:c.name)?t:"publication":m?m.name:"profile");if(n.didAction){if(S(!0),N.popToast(()=>(0,i.jsx)(d.y,{text:a})),y&&l)try{await v.refetchPublication(l)}catch(e){console.error("Failed to reload subscriptions:",e)}m&&O(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.includes(m.id)?e:[m.id,...e]},{revalidate:!1})}else n.errorMessage&&N.popToast(()=>{var e;return(0,i.jsx)(d.y,{text:null!=(e=n.errorMessage)?e:""})});M(null)},j=async e=>{var t;if(e&&(e.preventDefault(),e.stopPropagation()),C||!w)return;M("unsubscribing");let n=await E(l,_),a="Unsubscribed from ".concat(l?null!=(t=null!=p?p:null==c?void 0:c.name)?t:"publication":m?m.name:"profile");if(n.didAction){if(S(!1),N.popToast(()=>(0,i.jsx)(d.y,{text:a})),y&&l)try{await v.refetchPublication(l)}catch(e){console.error("Failed to reload subscriptions:",e)}else if(y)try{await v.refetch()}catch(e){console.error("Failed to reload subscriptions:",e)}}else n.errorMessage&&N.popToast(()=>{var e;return(0,i.jsx)(d.y,{text:null!=(e=n.errorMessage)?e:""})});M(null)},L=w&&!I||"subscribing"===I;return{showCta:!!l&&(!y||v.hasLoadedOnce)&&!(y&&y.id===(null==m?void 0:m.id))&&(!w||x||"unsubscribing"===I),isSubscribed:L,hasPublication:!!l,subscribe:k,unsubscribe:j,toggle:L?j:k}}function b(e){let t=(0,u.n7)(),n=(0,s.Jd)();if((null==n?void 0:n.id)===e)return"subscribed";let{result:a}=t;if(!a)return null;let{subscriptions:i,publicationUsers:r}=a;for(let n of r)if((0,g.isAtLeastContributorRole)(n.role)&&f(e,n.publication_id,t))return"subscribed";let o=null;for(let n of i)if(f(e,n.publication_id,t)){var l;o=null!=(l=(0,m.cE)(n.membership_state,o)?n.membership_state:o)?l:null}return o}function f(e,t,n){if(n.isLoading||!n.result)return!1;let a=n.result.publicationMap.get(t);if(a){if(a.author_id===e)return!0;for(let t of a.contributors)if(t.user_id===e)return!0}return!1}async function A(e,t){let n,{publication:i,user:r,sourceNoteId:o,openPubInNewTabAfterSubscription:s=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=(0,p.cf)(),u=!1;if(r)try{(await (0,l.x6)("/api/v1/reader/signup/pub",{method:"POST",json:(0,a._)({publication_id:e,email:r.email,source:t,noWelcomeEmail:!0,sourceNoteId:o,first_url:c.R9,first_referrer:c.b7,first_session_url:c.K0,first_session_referrer:c.OG,current_url:c.AT,current_referrer:c.uC},d)})).requires_confirmation?n="Check your email to confirm subscription":u=!0}catch(e){console.error(e),n="Failed to subscribe"}else if(!r){if(!i)try{i=await (0,l.x6)("/api/v1/reader/publication/".concat(e))}catch(e){console.error(e)}if(i&&s){let e=(0,h.eV6)(i,{addBase:!0,user:null!=r?r:void 0});window.open(e,"_blank")}}return{didAction:u,errorMessage:n}}async function E(e,t){let n,a=!1;try{await (0,l.x6)("/api/v1/subscription/email",{method:"POST",json:{publication_id:e,email_disabled:!0,disable_all:!0,receive_podcast_emails:!1,source:t}}),a=!0}catch(e){console.error(e),n="Failed to unsubscribe"}return{didAction:a,errorMessage:n}}},32848:function(e,t,n){n.d(t,{C8:()=>g,NL:()=>b,Of:()=>m,n7:()=>_});var a=n(69277),i=n(70408),r=n(32641),o=n(50014),s=n.n(o),l=n(96540),c=n(94729),d=n(38704),u=n(82776);let p={hasLoadedOnce:!1,publications:[],subscriptions:[],publicationUsers:[],publicationMap:new Map,subscriptionMap:new Map,publicationUserMap:new Map,publicationsWithPledges:[]};function m(e){let{isLoggedIn:t}=e,[n,r]=(0,l.useState)((0,i._)((0,a._)({},p),{hasLoadedOnce:!t})),o=e=>{r(t=>{let n=s()([...t.publications,...e.publications],e=>e.id),a=s()([...t.subscriptions,...e.subscriptions],e=>e.publication_id),i=s()([...t.publicationUsers,...e.publicationUsers],e=>e.publication_id);return{hasLoadedOnce:!0,publications:n,subscriptions:a,publicationUsers:i,publicationMap:new Map(n.map(e=>[e.id,e])),subscriptionMap:new Map(a.map(e=>[e.publication_id,e])),publicationUserMap:new Map(i.map(e=>[e.publication_id,e])),publicationsWithPledges:[...t.publicationsWithPledges,...e.publicationsWithPledges]}})};(0,l.useEffect)(()=>{if("serviceWorker"in navigator){let e=async e=>{var t;if((null==(t=e.data)?void 0:t.type)==="subscriptions-update"){let{payload:t}=e.data;t.ok&&o(t.json)}};return navigator.serviceWorker.addEventListener("message",e),()=>{navigator.serviceWorker.removeEventListener("message",e)}}},[]),(0,l.useEffect)(()=>{t&&(async()=>{try{for await(let e of f("/api/v1/subscriptions/page",{getPageInit(e,t){let n=null==e?void 0:e.nextCursor;return n?(0,i._)((0,a._)({},t),{query:(0,i._)((0,a._)({},t.query),{cursor:n})}):null}}))o(e)}catch(e){console.warn(e)}})()},[t]);let u=(e,t)=>{let{subscription:n,publicationUser:o}=t;r(t=>{var r,s,l;let c;return t=n?(0,i._)((0,a._)({},t),{subscriptions:t.subscriptions.map(e=>e.publication_id===n.publication_id?n:e),subscriptionMap:(0,d.Jb)(t.subscriptionMap,e,n)}):h(t,e),t=o?(0,i._)((0,a._)({},t),{publicationUsers:(r=t.publicationUsers,s=t=>t.publication_id===e,l=o,(c=(r=r.slice()).findIndex(s))>=0?r[c]=l:r.push(l),r),publicationUserMap:(0,d.Jb)(t.publicationUserMap,e,o)}):(0,i._)((0,a._)({},t),{publicationUsers:t.publicationUsers.filter(t=>t.publication_id!==e),publicationUserMap:(0,d.QT)(t.publicationUserMap,e)})})},m=async e=>{try{let t=await (0,c.x6)("/api/v1/subscription/".concat(e));u(e,t)}catch(t){t instanceof c.fk&&(404===t.response.status?r(t=>h(t,e)):console.error(t))}};return{result:n,isLoading:!1,hasLoadedOnce:n.hasLoadedOnce,refetch:async()=>n,refetchPublication:m,updatePublication:u,removeByPubId:e=>r(t=>h(t,e)),updateSubscriptions:e=>{r(t=>(0,i._)((0,a._)({},t),{subscriptions:e,subscriptionMap:new Map(e.map(e=>[e.publication_id,e]))}))}}}function h(e,t){let n=e.subscriptions.filter(e=>e.publication_id!==t);return(0,i._)((0,a._)({},e),{subscriptions:n,subscriptionMap:new Map(n.map(e=>[e.publication_id,e]))})}let g=(0,l.createContext)({result:null,isLoading:!1,hasLoadedOnce:!1,refetch:()=>Promise.resolve(p),refetchPublication:()=>Promise.resolve(),updatePublication(){},removeByPubId:()=>{},updateSubscriptions:()=>{}});function _(){return(0,l.useContext)(g)}function b(e){let{subscription:t,publicationUser:n,is_pledged:a}=function(e){var t;let{subscriptionMap:n,publicationUserMap:a,publicationsWithPledges:i}=null!=(t=_().result)?t:{subscriptionMap:new Map,publicationUserMap:new Map,publicationsWithPledges:[]};return{subscription:n.get(e),publicationUser:a.get(e),is_pledged:!!(null==i?void 0:i.includes(e))}}(e),i=(null==t?void 0:t.membership_state)==="free_signup",r=(null==t?void 0:t.membership_state)==="subscribed",o=!!(null==t?void 0:t.is_founding),s=!!(n&&(0,u.isAtLeastContributorRole)(n.role));return{subscription:t,publicationUser:n,isFreeSubscribed:i,isPaid:r,isSubscribed:i||r||s,isAuthor:s,isFounding:o,isPledged:a}}async function*f(e,t){var{getPageInit:n}=t,a=(0,r._)(t,["getPageInit"]);let i=await (0,c.x6)(e,a);yield i;let o=n(i,a);for(;null!=o;)i=await (0,c.x6)(e,o),yield i,o=n(i,a)}},53448:function(e,t,n){function a(e){if(0===e)return"PT0M";if(e>=1440){let t=Math.floor(e/1440);return"P".concat(t,"D")}if(e>=60){let t=Math.floor(e/60),n=e%60;return n>0?"PT".concat(t,"H").concat(n,"M"):"PT".concat(t,"H")}return"PT".concat(e,"M")}function i(e){let t=e.trim();if(!t)return t;let n=t.match(/^(\d+)\s*-\s*(\d+)$/),a=t.match(/^(\d+)$/);if(n&&n[1]&&n[2]){let e=Number.parseInt(n[1]),t=Number.parseInt(n[2]);if(!Number.isNaN(e)&&!Number.isNaN(t))return{"@type":"QuantitativeValue",minValue:e,maxValue:t,unitText:"servings"}}else if(a&&a[1]){let e=Number.parseInt(a[1]);if(!Number.isNaN(e))return{"@type":"QuantitativeValue",value:e,unitText:"servings"}}return t}n.d(t,{BB:()=>p,J9:()=>o,Xn:()=>a,fb:()=>l,jQ:()=>i,rU:()=>d});let r="\xbd⅓⅔\xbc\xbe⅕⅖⅗⅘⅙⅚⅐⅛⅜⅝⅞";function o(e){return e.replace(/^(Step\s*\d+[:.]?\s*)/i,"").replace(/^(\d+[.)]\s*)/,"").trim()}RegExp("^(\\d+\\s+\\d+/\\d+|"+"\\d+\\s+[".concat(r,"]|")+"\\d+(?:-\\d+)?(?:/\\d+)?(?:\\.\\d+)?[".concat(r,"]?|")+"[".concat(r,"]")+")\\s+(.+)$");let s={DiabeticDiet:"Diabetic",GlutenFreeDiet:"Gluten free",HalalDiet:"Halal",HinduDiet:"Hindu",KosherDiet:"Kosher",LowCalorieDiet:"Low calorie",LowFatDiet:"Low fat",LowLactoseDiet:"Low lactose",LowSaltDiet:"Low salt",VeganDiet:"Vegan",VegetarianDiet:"Vegetarian"};function l(){return Object.entries(s).map(e=>{let[t,n]=e;return{value:t,label:n}})}let c={african:"African",american:"American",argentinian:"Argentinian",balkan:"Balkan",brazilian:"Brazilian",british:"British",cajun:"Cajun",caribbean:"Caribbean",central_european:"Central European",chinese:"Chinese",creole:"Creole",cuban:"Cuban",ethiopian:"Ethiopian",filipino:"Filipino",french:"French",fusion:"Fusion",georgian:"Georgian",german:"German",greek:"Greek",hawaiian:"Hawaiian",indian:"Indian",indonesian:"Indonesian",irish:"Irish",italian:"Italian",japanese:"Japanese",korean:"Korean",lebanese:"Lebanese",malaysian:"Malaysian",mediterranean:"Mediterranean",mexican:"Mexican",middle_eastern:"Middle Eastern",moroccan:"Moroccan",nepalese:"Nepalese",nigerian:"Nigerian",pakistani:"Pakistani",persian:"Persian",peruvian:"Peruvian",polish:"Polish",portuguese:"Portuguese",russian:"Russian",scandinavian:"Scandinavian",soul_food:"Soul Food",south_african:"South African",spanish:"Spanish",tex_mex:"Tex-Mex",thai:"Thai",turkish:"Turkish",vegan:"Vegan",vegetarian:"Vegetarian",vietnamese:"Vietnamese"};function d(){return Object.entries(c).map(e=>{let[t,n]=e;return{value:t,label:n}})}let u={appetizer:"Appetizer",baked_good:"Baked good",beverage:"Beverage",beef:"Beef",bread:"Bread",breakfast:"Breakfast",brunch:"Brunch",cake:"Cake",casserole:"Casserole",cocktail:"Cocktail",cookie:"Cookie",curry:"Curry",dinner:"Dinner",dip:"Dip",dessert:"Dessert",entree:"Entr\xe9e",frozen_dessert:"Frozen dessert",grill:"Grill",lunch:"Lunch",main_course:"Main course",mocktail:"Mocktail",noodle_dish:"Noodle dish",pasta:"Pasta",pastry:"Pastry",pie:"Pie",pizza:"Pizza",pork:"Pork",poultry:"Poultry",pressure_cooker:"Pressure cooker",pudding:"Pudding",rice_dish:"Rice dish",roast:"Roast",salad:"Salad",sandwich:"Sandwich",seafood:"Seafood",side_dish:"Side dish",slow_cooker:"Slow cooker",smoothie:"Smoothie",snack:"Snack",soup:"Soup",stew:"Stew",stir_fry:"Stir-fry",vegan_main:"Vegan main",vegetarian_main:"Vegetarian main",wrap:"Wrap"};function p(){return Object.entries(u).map(e=>{let[t,n]=e;return{value:t,label:n}})}},47639:function(e,t,n){n.d(t,{U:()=>x});var a=n(69277),i=n(70408),r=n(74848),o=n(32485),s=n.n(o),l=n(96540),c=n(77849),d=n(69715),u=n(41873),p=n(16784),m=n(84605),h=n(83137),g=n(68410),_=n(89490),b=n(68391),f=n(88218),A=n(59294),E=n(31790),y=n(8734),N=n(66877),O=n(56262);let v={"preview-label-container":"preview-label-container-Y88jiD",previewLabelContainer:"preview-label-container-Y88jiD","live-stream-tag-container":"live-stream-tag-container-MWmvAX",liveStreamTagContainer:"live-stream-tag-container-MWmvAX","media-clip-tag-container":"media-clip-tag-container-FbCpZr",mediaClipTagContainer:"media-clip-tag-container-FbCpZr",videoContainer:"videoContainer-wF4DEO",videoContainerRadiusMd:"videoContainerRadiusMd-oj4q3P",videoContainerRadiusSm:"videoContainerRadiusSm-CKqgqE",overflow:"overflow-ns9Lj9",notesVideoContainer:"notesVideoContainer-XgGhEY"},x=e=>{var t,n,o,x,S,w,I,M,C,k;let{borderRadius:j="md",clipInfo:L,disableAutoPlay:R=!1,forceAutoPlay:T=!1,isFreeSubscribed:P,isSubscribed:D,mediaUpload:B,post:U,pub:G,renderPaywall:F,startMuted:W,variant:Y="notes",videoPlayerRef:K,videoType:H="post",entityKey:V,entityType:z,primaryEntityType:q,primaryEntityKey:J,surface:Z,contentType:X,feedItemTrackingParameters:Q,onFinishVideo:$}=e,{isClipping:ee}=(0,d.MC)(),{iString:et}=(0,m.GO)(),{isMobile:en}=(0,g.sM)(),[ea,ei]=(0,l.useState)(!1),er=(0,O.isPaidAudience)(U.audience)&&!D,eo=(null!=(n=B.preview_duration)?n:0)>0,es=er&&(!eo||ea),el=!1;if(L&&eo&&er){let e=null!=(o=B.preview_start)?o:0,t=e+(null!=(x=B.preview_duration)?x:0),n=L.startTime,a=n+L.duration;el=nt}(0,b.C4)({videoPlayerRef:K,showPaywall:es,disable:R});let ec=(0,l.useRef)(null),[ed,eu]=(0,l.useState)(!1),{isIdle:ep}=(0,h.U)({idleAfter:2e3,element:ec.current}),em=(0,c.V)(),eh=(0,A.AC)(ec),eg=()=>{var e;(null==(e=K.current)?void 0:e.player)&&(ei(!1),K.current.player.currentTime=0,K.current.player.play())},e_={mediaRef:K,pub:G,post:U,mediaUpload:B,podcastUpload:null==B?void 0:B.extractedAudio,isActive:null!=(S=ed||!ep||ee)&&S,isFocused:eh,handle:em,hasPaywall:er,hideNextVideoButton:!0,showPaywall:es,onShareMenuOpen:()=>eu(!0),onShareMenuClose:()=>eu(!1),disableShortcuts:!0,size:"notes"===Y?"sm":"md",hideSettings:!!L,hidePip:!!L};return(0,r.jsx)(_.az,{ref:ec,position:"relative",onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,r.jsxs)(c.m,{handle:em,className:v.fullScreenContainer,children:[(0,r.jsxs)("div",{className:s()(v.videoContainer,{[null!=(w=v.overflow)?w:""]:ee,[null!=(I=v.notesVideoContainer)?I:""]:"notes"===Y,[null!=(M=v.inboxVideoContainer)?M:""]:"inbox"===Y,[null!=(C=v.videoContainerRadiusMd)?C:""]:"md"===j,[null!=(k=v.videoContainerRadiusSm)?k:""]:"sm"===j}),children:[(0,r.jsx)(u.A,{ref:K,doNotResetOnEnd:!0,hidePlayButton:es,mediaUpload:B,noControls:!0,noKeyboardShortcuts:!0,post:U,pub:G,startMuted:W,onFinishVideo:()=>{ei(!0),null==$||$()},renderPlayButton:()=>(0,r.jsx)(f.ro,{isPlaying:!1,size:en?40:56}),isClipping:ee,videoType:H,usePreview:er&&eo,videoPlayerClassName:v.videoPlayer,autoPlay:T&&!es,entityKey:V,entityType:z,primaryEntityKey:J,primaryEntityType:q,surface:Z,contentType:X,feedItemTrackingParameters:Q}),L&&!L.isAutoSelected?(0,r.jsx)(N.rN,(0,i._)((0,a._)({},e_),{startTime:L.startTime,duration:L.duration})):(0,r.jsx)(N.Jf,(0,a._)({},e_))]}),(null==(t=K.current)?void 0:t.player)&&"post"===H&&(0,r.jsx)(p.p,{visible:ee,videoPlayerRef:K,containerRef:ec,videoUpload:B,post:U,surface:"notes_video_player"}),eo&&!es&&!D&&(0,r.jsx)("div",{className:v["preview-label-container"],children:(0,r.jsx)(y.d,{children:et("Preview")})}),es&&(F?F({onRestart:eo&&!el?eg:void 0}):(0,r.jsx)(E.v,{post:U,pub:G,isFreeSubscribed:P,isPaidClip:el,medium:"video",variant:"dialog",onRestart:eo&&!el?eg:void 0}))]})})}},27747:function(e,t,n){n.d(t,{KQ:()=>w});var a=n(69277),i=n(74848),r=n(32485),o=n.n(r),s=n(96540),l=n(99070),c=n(23623),d=n(84605),u=n(68410),p=n(89490),m=n(76977),h=n(28734),g=n(56371),_=n(88218),b=n(69825),f=n(31790),A=n(8734),E=n(60649),y=n(7755),N=n(56458),O=n(4016),v=n(56262),x=n(92967),S=n(91867);let w=e=>{let{isFreeSubscribed:t,isSubscribed:n,isTesting:a,post:r,pub:o,section:l,variant:c,reaction_token:d,trackingProps:u}=e,[p,m]=(0,s.useState)(!1),h=(0,s.useRef)(null),g=!n&&(0,v.isPaidAudience)(r.audience);if(!r.podcastUpload)return null;let _=(0,O.zM)({post:r}),b=r.podcastUpload.is_free_preview,A=!_&&g&&(p||!b&&"notes-embed"!==c)&&!(0,N.Ed)({post:r});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M,{audioFileUrl:r.podcast_url,audioPlayerRef:h,metricsPost:r,hidePreviewUI:_,paywallComponent:A?(0,i.jsx)(f.v,{inlineIcon:"notes-embed"===c,isFreeSubscribed:t,post:r,pub:o,medium:"audio",variant:"overlay",onRestart:b?()=>{var e;(null==(e=h.current)?void 0:e.player)&&(m(!1),h.current.player.currentTime=0,h.current.player.play())}:void 0,magicToken:d}):void 0,podcastDuration:r.podcast_duration,podcastUpload:r.podcastUpload,post:r,postId:r.id,postTitle:r.title,pub:o,section:l,showPaidLabel:g&&!b,user:null,variant:c,onFinishAudio:()=>{m(!0)},useBlur:!0,trackingProps:u}),a&&(0,i.jsx)("button",{onClick:()=>{m(!0)},children:"finish audio"})]})},I={"episode-page":400,editor:320,"notes-embed":128,"notes-full":250},M=e=>{var t,n,r;let{audioFileUrl:s,audioPlayerRef:f,explicitHeight:N,explicitPodcastUrl:O,feedUrl:v,hasFreePodcastUrlSet:w,hidePreviewUI:M,hideUfi:C,isPrivateFeed:k,isServingFreePodcastUrl:j,metricsPost:L,postId:R,postTitle:T,podcastDuration:P,pub:D,podcastUpload:B,radius:U,section:G,showPaidLabel:F,podcastPreviewUpload:W,post:Y,ufiComponent:K,editComponent:H,paywallComponent:V,variant:z,user:q,onFinishAudio:J,useBlur:Z,trackingProps:X}=e,{isMobile:Q}=(0,u.sM)(),{iString:$}=(0,d.GO)(),ee=G?null!=(t=G.podcastPalette)?t:null:null!=(n=D.podcastPalette)?n:null,{title:et,backgroundUrl:en,artUrl:ea}=(0,y.ed)({pub:D,podcastUpload:B,section:G,thumbnailInfo:(null==B?void 0:B.full_podcast_info)&&R?{post_id:R,media_upload_id:B.full_podcast_info.media_upload_id,thumbnail_id:B.full_podcast_info.thumbnail_id}:null}),ei=null!=N?N:I[z],er="notes-embed"===z,eo=Q||er,es=!!V,el=Z||ea===en,ec=!!H,ed=(null==B?void 0:B.is_free_preview)||W;return(0,i.jsx)(l.A,{ref:f,duration:P,metricsPost:L,preventSnappingToCurrentTime:!0,pub:D,skipPreloading:j,src:s,updateOnEveryFrame:P<300,onFinishAudio:J,mediaUpload:null!=B?B:void 0,trackingProps:(0,a._)({contentType:"post",entityType:"post",entityKey:null!=(r=null==Y?void 0:Y.id)?r:"unknown",surface:"editor"===z?"editor":"post"},X),render:e=>{var t;let{currentTime:n,dragTime:a,isPlaying:r,playbackRate:l,progress:d,progressBarRef:u,progressBarOnMouseDown:f,remainingTime:y,setPlaybackRate:N,skipBack:I,skipForward:L,togglePlayback:R}=e;return(0,i.jsx)(c.a,{children:(0,i.jsxs)(p.az,{position:"relative",style:{minHeight:Q?Math.min(200,ei):ei},children:[(0,i.jsx)(h._,{backgroundUrl:er?null:en,blurAmount:er?40:120,isBlurred:el,palette:ee,radius:U}),(0,i.jsxs)(m.I1,{position:"absolute",inset:0,justifyContent:eo?"space-between":void 0,children:[(0,i.jsxs)(m.Ye,{alignItems:"stretch",flex:eo?void 0:"grow",justifyContent:"space-between",children:[(!eo||!es)&&(0,i.jsx)(p.az,{padding:eo||"notes-full"===z?16:24,paddingBottom:"notes-embed"===z?0:void 0,overflow:"hidden",flex:"grow",children:(0,i.jsx)(g.P,{isDisabled:es,explicitPodcastUrl:O,pub:D,post:Y,postTitle:T,section:G,showUpgradeButton:j,showTitle:et,variant:"notes-embed"===z?"notes-embed":Q||"notes-full"===z?"mini":"regular"})}),!eo&&!es&&!C&&K&&(0,i.jsx)(m.Ye,{alignItems:"center",paddingX:24,children:K}),null!=H?H:null]}),!es&&"notes-embed"!==z&&(0,i.jsx)(m.I1,{paddingX:16,position:eo?void 0:"absolute",className:o()({[S.A.controlsCentered]:!eo}),children:(0,i.jsx)(b.w,{audioFileUrl:s,feedUrl:v,isPlaying:null!=r&&r,isPrivateFeed:!!k,playbackRate:l,sectionId:G?G.id:null,user:q,onChangePlaybackRate:N,onSkipBack:I,onSkipForward:L,onTogglePlayback:R})}),(!eo||!es)&&(0,i.jsxs)(m.Ye,{className:o()(S.A.track),alignItems:"center",gap:16,opacity:es?20:void 0,padding:eo||"notes-full"===z?16:24,paddingTop:"notes-embed"===z?8:void 0,pointerEvents:es?"none":void 0,onClick:e=>{F||(e.stopPropagation(),e.preventDefault())},children:[ed&&ec&&W&&(0,i.jsx)(A.d,{children:(0,x.kq)(null!=(t=W.duration)?t:0)}),ed&&!M&&!ec&&(0,i.jsx)(A.d,{children:$("Preview")}),F&&(0,i.jsx)(A.d,{children:$("Paid")}),w&&(0,i.jsx)(A.d,{children:$("Free url set")}),(0,i.jsx)(E.v,{containerRef:u,currentTime:n,dragTime:a,hideStartingTimestamp:Q,progress:d,remainingTime:y,onMouseDown:f}),"notes-embed"===z&&(0,i.jsx)(_.gD,{isPlaying:null!=r&&r,size:40,onTogglePlayback:R})]})]}),V]})})}})}},31790:function(e,t,n){n.d(t,{v:()=>V});var a=n(79785),i=n(74848),r=n(32485),o=n.n(r),s=n(67078),l=n(59492),c=n(81143),d=n(96540),u=n(15734),p=n.n(u),m=n(47963),h=n(86404),g=n(84605),_=n(53989),b=n(46271),f=n(86500),A=n(53928),E=n(68349),y=n(68410),N=n(24078),O=n(35369),v=n(76977),x=n(63136),S=n(48965),w=n(56458),I=n(39318),M=n(57324),C=n(19171);function k(){let e=(0,a._)(["Available now for iOS and Android"]);return k=function(){return e},e}function j(){let e=(0,a._)(["Continue watching this video for free in the Substack app"]);return j=function(){return e},e}function L(){let e=(0,a._)(["Continue watching this video for free, courtesy of ","."]);return L=function(){return e},e}function R(){let e=(0,a._)(["Continue listening for free in the Substack app"]);return R=function(){return e},e}function T(){let e=(0,a._)(["Continue listening for free, courtesy of ","."]);return T=function(){return e},e}function P(){let e=(0,a._)(["Watch this video for free in the Substack app"]);return P=function(){return e},e}function D(){let e=(0,a._)(["Watch this video for free, courtesy of ","."]);return D=function(){return e},e}function B(){let e=(0,a._)(["Listen to this episode for free in the Substack app"]);return B=function(){return e},e}function U(){let e=(0,a._)(["Listen to this episode for free, courtesy of ","."]);return U=function(){return e},e}function G(){let e=(0,a._)([""," episode"]);return G=function(){return e},e}function F(){let e=(0,a._)(["The full episode is only available to "," subscribers"]);return F=function(){return e},e}function W(){let e=(0,a._)(["The full episode is only available to paid subscribers of ",""]);return W=function(){return e},e}function Y(){let e=(0,a._)([""," clip"]);return Y=function(){return e},e}function K(){let e=(0,a._)(["This clip is only available to "," subscribers"]);return K=function(){return e},e}function H(){let e=(0,a._)(["This clip is only available to paid subscribers of ",""]);return H=function(){return e},e}let V=e=>{var t,n,a,r,u,h,V,q;let{disableButtons:J,medium:Z,inlineIcon:X,isFreeSubscribed:Q,isPaidClip:$,post:ee,pub:et,variant:en,onRestart:ea,magicToken:ei}=e,{iString:er,iTemplate:eo}=(0,g.GO)(),{isMobile:es}=(0,y.sM)(),[el,ec]=(0,d.useState)(!1),{getSettingFor:ed}=(0,_.Pu)(),eu=(0,b.Jd)(),{popToast:ep}=(0,S.d)(),em=!!(ed("paywall_unlock_tokens")&&"only_paid"===ee.audience&&ee.teaser_post_eligible)&&!(null==eu?void 0:eu.is_subscribed)&&Q&&!(null==eu?void 0:eu.has_redeemed_post_unlock_token),eh=null==eu?void 0:eu.reader_installed_at,{modal:eg,open:e_}=(0,m.El)({utm_campaign:M._9.paywallPostUnlockPrompt,utm_source:M.VU.substack,overrideCTA:null!=(t=eh&&er("Open in app"))?t:void 0,overrideTitle:eh?er("Unlock your free post in the Substack app"):er("Get the free Substack app to unlock this post"),subTitle:eo(k()),openUrl:null!=(n=eh&&(0,I.XV8)(et.subdomain,ee.slug))?n:void 0}),eb=(0,d.useCallback)(async()=>{(0,f.u4)(f.qY.PAYWALL_UNLOCK_CTA_CLICKED,{post_id:ee.id,publication_id:et.id,medium:Z,source:"shows_media_paywall"});try{if(await p().post("/api/v1/post_unlock_token").send({post_id:ee.id,token:ei}),es){let e=eh?(0,I.XV8)(et.subdomain,ee.slug,{redirect:"app-store",params:{utm_campaign:M._9.paywallPostUnlockPrompt,utm_source:M.VU.paywall,utm_medium:Z}}):(0,I.wHz)({utm_campaign:M._9.paywallPostUnlockPrompt,utm_source:M.VU.paywall,utm_medium:Z});(0,E.V2)(e)}else e_()}catch(e){ep(()=>(0,i.jsx)(S.y,{text:er("Teaser posts are not currently available for this content")}))}},[ee.id,ee.slug,et.id,et.subdomain,Z,ei,eh,e_,ep,er,es]),ef=!!ea,eA=null!=(a=(0,w.m4)(et))?a:"Founding Member",eE=em?ea?"video"===Z?es?eo(j()):eo(L(),et.author_name||et.name):es?eo(R()):eo(T(),et.author_name||et.name):"video"===Z?es?eo(P()):eo(D(),et.author_name||et.name):es?eo(B()):eo(U(),et.author_name||et.name):"founding"===ee.audience?eo(G(),eA):er("Paid episode"),ey="founding"===ee.audience?eo(F(),eA):eo(W(),et.name);2309160===et.id?(eE=er("Watch the film"),ey="Subscribe or purchase as a 1-month rental to continue."):$&&(eE="founding"===ee.audience?eo(Y(),eA):er("Paid clip"),ey="founding"===ee.audience?eo(K(),eA):eo(H(),et.name));let eN="video"===Z?er("Subscribe to watch"):er("Subscribe to listen"),eO=em?er("Claim my free episode"):"video"===Z?er("Upgrade to watch"):er("Upgrade to listen"),ev=em?()=>{eb()}:()=>{(0,E.V2)((0,I.my9)(et,{simple:!0,next:document.location.href,utm_source:M.VU.showsPaywall,utm_medium:M.Jn.web,utm_content:ee.id}),{local_navigation:!1})},ex=Q?eO:eN;return(0,d.useEffect)(()=>{(0,f.u4)(f.qY.FREE_PREVIEW_PAYWALL_SHOWN,{post_id:ee.id,medium:Z}),(0,A.jN)(A.ti.TRACK_PAYWALL_SHOWN)},[ee.id,Z]),(0,d.useEffect)(()=>{ef&&setTimeout(()=>{ec(!0)},10)},[ef]),(0,i.jsxs)(v.Ye,{className:o()({[null!=(r=C.A["container--dialog"])?r:""]:"dialog"===en,[null!=(u=C.A["container--overlay"])?u:""]:"overlay"===en,[null!=(h=C.A["container--animated"])?h:""]:ef,[null!=(V=C.A["container--animated-in"])?V:""]:el}),inset:0,justifyContent:"center",alignItems:"center",position:"absolute",onClick:e=>{e.stopPropagation(),e.preventDefault()},"data-testid":"paywall",children:[eg,"dialog"===en?(0,i.jsx)(z,{showUnlockPrompt:em,description:ey,headerText:eE,post:ee,pub:et,primaryCta:ex,primaryCtaClick:ev,onRestart:ea}):(0,i.jsxs)(v.I1,{alignItems:"center",gap:es?12:16,paddingX:24,children:[(0,i.jsxs)(v.I1,{alignItems:"center",className:C.A["content-top"],gap:es?12:16,children:[!X&&(em?(0,i.jsx)(N.eu,{photoUrl:null!=(q=et.author_photo_url)?q:void 0,size:64}):(0,i.jsx)(v.Ye,{className:C.A["icon-container"],alignItems:"center",color:"white",justifyContent:"center",radius:"sm",children:(0,i.jsx)(s.A,{size:es?16:24})})),(0,i.jsxs)(v.I1,{alignItems:"center",gap:4*!es,children:[(0,i.jsxs)(v.Ye,{alignItems:"center",gap:8,children:[X&&(0,i.jsx)(v.Ye,{className:C.A.inlineIconContainer,alignItems:"center",justifyContent:"center",radius:"sm",children:(0,i.jsx)(s.A,{size:16})}),(0,i.jsx)(x.EY.B3,{as:"h3",color:"white",weight:"semibold",fontSize:em?20:15,textAlign:"center",children:eE})]}),!em&&(0,i.jsx)(x.EY.B4,{color:"white",opacity:80,align:"center",children:ey})]})]}),(0,i.jsxs)(v.Ye,{className:C.A["content-bottom"],gap:16,children:[ea&&(0,i.jsx)(O.$n,{className:C.A["restart-button"],disabled:J,priority:"secondary-outline",onClick:()=>{(0,f.u4)(f.qY.FREE_PREVIEW_PAYWALL_RESTART_BUTTON_CLICKED,{post_id:ee.id}),ea()},children:(0,i.jsxs)(v.Ye,{alignItems:"center",gap:12,children:[(0,i.jsx)(l.A,{size:16}),er("Restart")]})}),(0,i.jsxs)(O.$n,{priority:"primary",onClick:ev,disabled:J,children:[em&&(0,i.jsx)(c.A,{className:"icon",size:20,stroke:"#fff",fill:"none",strokeWidth:2}),ex]})]})]})]})},z=e=>{var t;let{description:n,headerText:a,post:r,pub:o,primaryCtaClick:l,primaryCta:c,onRestart:d,showUnlockPrompt:u}=e,{iString:p}=(0,g.GO)();return(0,i.jsxs)(v.I1,{bg:"glass-inverted-medium",padding:16,gap:16,radius:"md",maxWidth:320,children:[(0,i.jsxs)(v.I1,{gap:4,alignItems:"center",children:[u&&(0,i.jsx)(N.eu,{photoUrl:null!=(t=o.author_photo_url)?t:void 0,size:64}),(0,i.jsxs)(v.Ye,{alignItems:"center",color:"white",gap:8,children:[!u&&(0,i.jsx)(s.A,{size:16}),(0,i.jsx)(x.EY.B2,{as:"h3",color:"white",weight:"semibold",textAlign:u?"center":"left",children:a})]}),!u&&(0,i.jsx)(x.EY.B4,{color:"white",opacity:80,align:"center",children:n})]}),(0,i.jsxs)(v.I1,{gap:8,children:[d&&(0,i.jsx)(O.$n,{priority:"primary-mono",onClick:()=>{(0,f.u4)(f.qY.FREE_PREVIEW_PAYWALL_RESTART_BUTTON_CLICKED,{post_id:r.id}),d()},children:p("Replay")}),(0,i.jsxs)(O.$n,{onClick:l,priority:"secondary",children:[u&&(0,i.jsx)(h.A,{size:18,className:C.A.icon}),c]})]})]})}},8734:function(e,t,n){n.d(t,{d:()=>o});var a=n(74848),i=n(76977),r=n(63136);let o=e=>{let{children:t,avoidBackgroundBlur:n}=e;return(0,a.jsx)(i.Ye,{alignItems:"center",bg:n?void 0:"glass-inverted-medium",color:"white",gap:6,height:24,paddingX:8,radius:"sm","data-testid":"audio-player-preview-label",style:n?{background:"var(--color-light-fg-primary)"}:void 0,children:(0,a.jsx)(r.EY.B5,{weight:"medium",color:"white",children:t})})}},59294:function(e,t,n){n.d(t,{AC:()=>c,Hc:()=>l,TR:()=>o,_N:()=>s}),n(83673),n(11741),n(63375);var a=n(96540),i=n(15734),r=n.n(i);n(39318);let o=e=>{let[t,n]=(0,a.useState)(!1),i=()=>{n(!0)},r=()=>{n(!1)};return(0,a.useEffect)(()=>{let t=e.current;if(t)return t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",r),()=>{t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",r)}},[e]),[t]},s=(e,t,n)=>{(0,a.useEffect)(()=>{let a=e.toLocaleLowerCase(),i=e=>{if(!n)return;e.preventDefault();let i=e.key.toLocaleLowerCase();if(i===a||e.ctrlKey&&"ctrl+shift+".concat(i)===a||e.ctrlKey&&"ctrl+".concat(i)===a||e.shiftKey&&"shift+".concat(i)===a)return void t()};return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}},[e,t,n])},l=e=>{let[t,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let t=async e=>{let{body:{src:t}}=await r().get("/api/v1/video/upload/".concat(e,"/storyboard"));n((await r().get(t)).body)};(null==e?void 0:e.id)&&t(e.id)},[e]),t},c=e=>{let[t,n]=(0,a.useState)(!1),i=e=>{n(e)},r=t=>{e.current&&e.current.contains(t.target)?i(!0):i(!1)};return(0,a.useEffect)(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}),[]),t}},7755:function(e,t,n){n.d(t,{Pi:()=>c,ed:()=>l,fU:()=>d});var a=n(69277),i=n(70408);n(83673),n(38970),n(36233),n(86500),n(68349),n(56458);var r=n(46009);n(56262);var o=n(39318),s=n(49807);let l=e=>{let{pub:t,podcastUpload:n,section:l,thumbnailInfo:c,useSection:d}=e;if(d){let e=l?(0,s.Dor)(t,{section:l}):(0,s.$_T)(t);return l?{artUrl:l.logo_url,backgroundUrl:l.cover_photo_url,description:l.description,paidArtUrl:null,title:l.name,url:e}:{artUrl:t.logo_url,backgroundUrl:t.cover_photo_url,description:null,paidArtUrl:null,title:t.name,url:e}}let{title:u,description:p,artUrl:m,paidEpisodeArtUrl:h}=l&&!d?(0,r.lL)({pub:t,section:l}):(0,r.j_)({pub:t}),g=l?(0,s.Dor)(t,{section:l}):(0,s.$_T)(t),_=m;if(n&&c&&c.thumbnail_id>1){let e=(0,o.Pzx)((0,i._)((0,a._)({},n),{id:c.media_upload_id,post_id:c.post_id,thumbnail_id:c.thumbnail_id}));e&&(_=e)}else if(n&&n.thumbnail_id>1){let e=(0,o.Pzx)(n);e&&(_=e)}return{artUrl:m,backgroundUrl:_,description:p,paidArtUrl:null!=h?h:null,title:u,url:g}},c="https://support.substack.com/hc/en-us/articles/4519588148244-How-do-I-listen-to-episodes-on-my-podcast-app-",d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=(null==t?void 0:t.decimals)===1,a=Math.floor(e/3600),i=Math.floor(e%3600/60),r=Math.floor(e%60),o=a?"".concat(a,":").concat(i<10?"0":"").concat(i,":").concat(r<10?"0":"").concat(r):"".concat(i,":").concat(r<10?"0":"").concat(r);if(n){let t=Math.round(e%1*10);return"".concat(o,".").concat(t)}return o}},59537:function(e,t,n){n.d(t,{A:()=>d});var a=n(69277),i=n(70408),r=n(32641),o=n(74848),s=n(32485),l=n.n(s),c=n(35369);let d=e=>{var{children:t,className:n}=e,s=(0,r._)(e,["children","className"]);return(0,o.jsx)(c.Nm,(0,i._)((0,a._)({resetCss:!0,className:l()("playerButton-qCsqQJ",n)},s),{children:t}))}},66877:function(e,t,n){n.d(t,{Vi:()=>eH,Jf:()=>eY,rN:()=>eK});var a=n(74848),i=n(96540),r=n(69715),o=n(86500),s=n(68410),l=n(76977),c=n(69277),d=n(70408),u=n(32485),p=n.n(u),m=n(55732),h=n(70090);let g="highlight-word-YsKp8Q",_=new m.WebVTTParser,b=e=>{var t,n,r;let o,{videoEle:s,mediaUpload:l,handle:u,subtitles:m,showCaptions:b,withHighlight:f,size:A="md",captionsStyle:E}=e,[y,N]=(0,i.useState)([]),[O,v]=(0,i.useState)({segment:null,wordIndex:-1}),{segment:x,wordIndex:S}=O,w=(0,h.A)(s);return((0,i.useEffect)(()=>{if(s){let e=s.currentTime,t=y.find(t=>e>=t.start&&e<=t.end),n=null!=t?t:null;if(!f)return void v({wordIndex:-1,segment:n});if(n){let t=-1;for(let a=0;a=i.start&&e<=i.end){t=a;break}if(e{var e,t,n,a;let i=(null!=(n=null==l||null==(e=l.transcription)?void 0:e.signed_captions)?n:[]).find(e=>e.language===m);(null==i?void 0:i.original)?(null==l||null==(t=l.transcription)?void 0:t.cdn_url)&&fetch(null==l||null==(a=l.transcription)?void 0:a.cdn_url).then(e=>e.json()).then(e=>{N(e.map(e=>(0,d._)((0,c._)({},e),{words:e.words?e.words:[]})))}).catch(e=>console.error("Error fetching transcription:",e)):(null==i?void 0:i.url)&&fetch(i.url).then(e=>e.text()).then(e=>{N(_.parse(e,"metadata").cues.map(e=>({text:e.text,start:e.startTime,end:e.endTime,words:[]})))}).catch(e=>console.error("Error fetching transcription:",e))},[l,m,b]),b&&y.length&&x)?(0,a.jsx)("div",{className:p()("container-zAxsTa",{"container-full-screen-mK397L":u.active,"captions-small-CavdhE":"sm"===A}),style:E,children:x&&(0,a.jsx)("div",{className:p()("text-Mt4veX",{"text-full-screen-BX6VEN":u.active,"text-small-boKa5D":"sm"===A}),children:(null==x||null==(t=x.words)?void 0:t.length)?(0,a.jsx)("div",{children:null==x?void 0:x.words.map((e,t)=>(0,a.jsx)("span",{className:p()({[g]:t<=S&&f||!f}),children:e.word.startsWith(" ")?e.word:" ".concat(e.word)},t))}):(0,a.jsx)("span",{className:g,children:(o=(null!=(n=null==x?void 0:x.text)?n:"").match(/]+>(.*?)(<\/v>|$)/))?null==(r=o[1])?void 0:r.replace(/<\/v>$/,""):""})})}):null};var f=n(55069),A=n(96421),E=n(84605),y=n(68940),N=n(56720),O=n(59294),v=n(59537);let x=e=>{let{showCaptions:t,setShowCaptions:n,isFocused:r,disabled:o,disableShortcuts:s,disableTooltips:l=!1}=e,{iString:c}=(0,E.GO)(),d=e=>{n({showCaptions:e,userInitiated:!0}),e?localStorage.setItem("video_player:show_captions","true"):localStorage.removeItem("video_player:show_captions")};return(0,i.useEffect)(()=>{let e="true"===localStorage.getItem("video_player:show_captions");t!==e&&n({showCaptions:e,userInitiated:!1})},[]),(0,O._N)("c",()=>d(!t),r&&!s),(0,a.jsx)(N.m_,{disabled:l,text:c("Closed captions / subtitles"),trailing:s?void 0:(0,a.jsx)(y.u,{children:"C"}),children:(0,a.jsx)(v.A,{onClick:()=>d(!t),disabled:o,children:t?(0,a.jsx)(f.A,{}):(0,a.jsx)(A.A,{})})})};var S=n(46845),w=n(77079);let I=e=>{let{disableShortcuts:t=!1,disableTooltips:n=!1,handle:i,isFocused:r}=e,o=()=>{i.active?i.exit():i.enter()};return(0,O._N)("f",o,r&&!t),(0,a.jsx)(N.m_,{disabled:n,text:i.active?"Exit full screen":"Full screen",trailing:t?void 0:(0,a.jsx)(y.u,{children:"F"}),children:(0,a.jsx)(v.A,{onClick:o,children:i.active?(0,a.jsx)(S.A,{size:18}):(0,a.jsx)(w.A,{size:18})})})};var M=n(87677),C=n(48858),k=n(15734),j=n.n(k),L=n(72880),R=n(68349),T=n(88553),P=n(89490),D=n(63136),B=n(82776);let U=e=>{var t,n,r,s;let{pub:c,postId:d,isFocused:u,disableShortcuts:p=!1}=e,[m,h]=(0,i.useState)(!1),[g,_]=(0,i.useState)(null),b=e=>{if(!g||!c)return;(0,o.u4)(o.qY.VIDEO_NEXT_VIDEO_BUTTON_CLICKED,{postId:g.id,pubId:c.id});let t=(0,T.U)({linkToComments:!1,post:g,pub:c,utm:"next-episode"});(0,R.V2)(t,{event:e})};(0,i.useEffect)(()=>{(async()=>{var e,t,n;let a=await j().get("/api/v1/recent_posts").query({episodes_only:!0}),i=(null!=(t=a.body)?t:[]).findIndex(e=>e.id===d);_(null!=(n=null==(e=a.body)?void 0:e[i+1])?n:void 0)})()},[]),(0,O._N)("shift+n",()=>b(),u&&!p);let f=(null==g?void 0:g.cover_image)||(null==g?void 0:g.podcast_episode_image_url);return(0,a.jsxs)("div",{style:{position:"relative"},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[m&&f&&(0,a.jsxs)(l.I1,{position:"absolute",className:"container-djeVTw",children:[(0,a.jsxs)(l.I1,{bg:"glass-inverted-medium",radius:"sm",style:{cursor:"pointer"},paddingY:8,paddingX:12,gap:4,onClick:b,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[(0,a.jsxs)(l.Ye,{gap:16,children:[(0,a.jsxs)(l.I1,{gap:2,flex:"grow",children:[(0,a.jsx)(D.EY.Meta,{color:"white",opacity:80,children:"Next Up"}),(0,a.jsx)(D.EY.B4,{color:"white",children:g.title})]}),(0,a.jsx)(l.Ye,{alignItems:"center",children:(0,a.jsx)(M.A,{stroke:"white",size:24})})]}),(0,a.jsxs)("div",{style:{position:"relative"},children:[(0,a.jsx)(L.o,{className:"fullWidth-KNhzK0",src:f,alt:g.title,maxWidth:200,imageProps:{height:112.5,smartCrop:!0},radius:"sm"}),(0,a.jsx)(l.Ye,{className:"thumbnail-duration-CaP985",bg:"glass-inverted-medium",position:"absolute",radius:"sm",children:(0,a.jsx)(D.EY.Meta,{color:"white",lineHeight:20,children:(0,B.secondsToHHMMSS)(null!=(s=null!=(r=null==(t=g.videoUpload)?void 0:t.duration)?r:null==(n=g.podcastUpload)?void 0:n.duration)?s:0)})})]})]}),(0,a.jsx)(P.az,{className:"space-NQlvsK"})]}),(0,a.jsx)(v.A,{disabled:!g,children:(0,a.jsx)(C.A,{size:18,fill:"white",onClick:b})})]})};var G=n(91743);let F=e=>{let{disableShortcuts:t,disableTooltips:n,isFocused:r,mediaRef:o}=e,[s,l]=(0,i.useState)(!1),c=async()=>{if(o.current)try{document.pictureInPictureElement?await document.exitPictureInPicture():o.current.player&&"requestPictureInPicture"in o.current.player&&await o.current.player.requestPictureInPicture()}catch(e){console.error("Failed to toggle PiP mode:",e)}};return(0,i.useEffect)(()=>{let e=()=>l(!0),t=()=>l(!1);if(o.current){var n,a;null==(n=o.current.player)||n.addEventListener("enterpictureinpicture",e),null==(a=o.current.player)||a.addEventListener("leavepictureinpicture",t)}return()=>{if(o.current){var n,a;null==(n=o.current.player)||n.removeEventListener("enterpictureinpicture",e),null==(a=o.current.player)||a.removeEventListener("leavepictureinpicture",t)}}},[o]),(0,O._N)("i",c,r&&!t),(0,a.jsx)(N.m_,{disabled:n,text:"Picture-in-picture",trailing:t?void 0:(0,a.jsx)(y.u,{children:"I"}),children:(0,a.jsx)(v.A,{onClick:c,children:(0,a.jsx)(G.A,{size:18})})})};var W=n(7755);let Y=e=>{let{startTime:t,mediaRef:n}=e,[r,o]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e,t=()=>{var a;(null==(a=n.current)?void 0:a.player)&&(o(n.current.player.currentTime),e=requestAnimationFrame(t))};return n.current&&(e=requestAnimationFrame(t)),()=>{cancelAnimationFrame(e)}},[n]),(0,a.jsx)(D.EY.Digit,{size:14,color:"white",children:t?r-t<0?null:(0,W.fU)(r-t):(0,W.fU)(r)})},K=e=>{var t;let{duration:n,mediaRef:r}=e,o=null==r||null==(t=r.current)?void 0:t.player,[s,l]=(0,i.useState)(null!=n?n:(null==o?void 0:o.duration)?o.duration:0);return(0,i.useEffect)(()=>{let e=()=>{var e;(null==r||null==(e=r.current)?void 0:e.player)&&!isNaN(r.current.player.duration)&&l(r.current.player.duration)};if(null==r?void 0:r.current){var t,n;null==(n=r.current)||null==(t=n.player)||t.addEventListener("durationchange",e)}return e(),()=>{if(null==r?void 0:r.current){var t,n;null==(n=r.current)||null==(t=n.player)||t.removeEventListener("durationchange",e)}}},[o]),(0,a.jsx)(D.EY.Digit,{size:14,color:"white",children:(0,W.fU)(s)})},H=e=>{let{startTime:t,duration:n,mediaRef:i}=e;return(0,a.jsxs)(l.Ye,{justifyContent:"center",alignItems:"center",gap:4,children:[(0,a.jsx)(Y,{mediaRef:i,startTime:t}),(0,a.jsx)(D.EY.Digit,{size:14,color:"white",children:"/"}),(0,a.jsx)(K,{duration:n})]})},V=e=>{let{duration:t,mediaRef:n}=e;return(0,a.jsxs)(l.Ye,{justifyContent:"center",alignItems:"center",gap:4,children:[(0,a.jsx)(Y,{startTime:null,mediaRef:n}),(0,a.jsx)(D.EY.Digit,{size:14,color:"white",children:"/"}),(0,a.jsx)(K,{duration:t,mediaRef:n})]})};var z=n(7611),q=n(85731),J=n(26289);let Z=e=>{let{mediaRef:t,isFocused:n,disableShortcuts:i,disableTooltips:r=!1}=e,o=(0,J.By)(t),s=e=>{var n,a,i,r;null==e||e.preventDefault(),null==e||e.stopPropagation(),o?null==(a=t.current)||null==(n=a.player)||n.pause():null==(r=t.current)||null==(i=r.player)||i.play()};return(0,O._N)("k",s,n&&!i),(0,O._N)(" ",s,n&&!i),(0,a.jsx)(N.m_,{disabled:r,text:o?"Pause":"Play",trailing:i?void 0:(0,a.jsx)(y.u,{children:"K"}),children:(0,a.jsx)(v.A,{onClick:s,children:o?(0,a.jsx)(z.A,{fill:"white",size:18}):(0,a.jsx)(q.A,{fill:"white",size:18})})})};var X=n(3213);let Q=e=>{let{disableTooltips:t=!1,isSettingsOpen:n,setIsSettingsOpen:i}=e,{iString:r}=(0,E.GO)();return n?(0,a.jsx)(v.A,{children:(0,a.jsx)(X.A,{size:18,onClick:()=>i(!n)})}):(0,a.jsx)(N.m_,{disabled:t,text:r("Settings"),children:(0,a.jsx)(v.A,{children:(0,a.jsx)(X.A,{size:18,onClick:()=>i(!n)})})})};var $=n(45773),ee=n(44202),et=n(91378),en=n(72170),ea=n(27402),ei=n(9979),er=n(78526);let eo={seetingsMenu:"seetingsMenu-zc8kI3",menuItem:"menuItem-Z86vY3"},es=e=>{let{mediaRef:t,dismiss:n}=e;return(0,a.jsx)(l.I1,{gap:4,flex:"grow",children:[.25,.5,.75,1,1.25,1.5,1.75,2].map(e=>{var i,r;return(0,a.jsxs)(l.Ye,{className:eo.menuItem,padding:8,justifyContent:"space-between",alignItems:"center",onClick:()=>{var a;(null==(a=t.current)?void 0:a.player)&&(t.current.player.playbackRate=e,localStorage.setItem("video_player:playbackRate",e.toString())),n()},children:[(0,a.jsxs)(D.EY.B4,{font:"text",size:12,lineHeight:16,weight:"regular",color:"white",children:[e,"\xd7"]}),e===(null==(r=t.current)||null==(i=r.player)?void 0:i.playbackRate)&&(0,a.jsx)($.A,{size:16,stroke:"white"})]})})})},el={en:"English",es:"Spanish",it:"Italian",de:"German",pt:"Portuguese",fr:"French"},ec=e=>{let{options:t=[],subtitles:n,setSubtitles:i,dismiss:r}=e;return(0,a.jsx)(l.I1,{gap:4,flex:"grow",children:[null,...t].map(e=>{var t;return(0,a.jsxs)(l.Ye,{className:eo.menuItem,paddingY:8,paddingX:16,justifyContent:"space-between",alignItems:"center",onClick:()=>{i(e),localStorage.setItem("video_player:subtitles",e||""),r()},children:[(0,a.jsx)(D.EY.B4,{font:"text",size:12,lineHeight:16,weight:"regular",color:"white",children:null!=(t=el[null!=e?e:""])?t:"None"}),n===e&&(0,a.jsx)($.A,{size:16,stroke:"white"})]})})})},ed=e=>{let{title:t,icon:n,selection:i,onClick:r}=e;return(0,a.jsxs)(l.Ye,{className:eo.menuItem,padding:8,justifyContent:"space-between",alignItems:"center",onClick:r,children:[(0,a.jsxs)(l.Ye,{gap:8,alignItems:"center",children:[n,(0,a.jsx)(D.EY.B4,{color:"white",font:"text",size:12,lineHeight:16,weight:"regular",children:t})]}),(0,a.jsx)(l.Ye,{children:(0,a.jsx)(D.EY.B4,{color:"white",font:"text",size:12,lineHeight:16,weight:"regular",children:i})})]})},eu=e=>{var t,n,r;let{hideSharePostAtCurrentTime:s,mediaRef:d,post:u,pub:m,podcastUpload:g,subtitles:_,setSubtitles:b,setIsSettingsOpen:f}=e,{iString:A}=(0,E.GO)(),[y,N]=(0,i.useState)(!1),[O,v]=(0,i.useState)(!1),x=(0,i.createRef)(),S=(0,h.A)(null==(t=d.current)?void 0:t.player),w=(0,er.L)(),[I,M]=(0,i.useState)([]);return(0,i.useEffect)(()=>{b(localStorage.getItem("video_player:subtitles")||null)},[]),(0,i.useEffect)(()=>{var e,t;if(null==g||null==(e=g.transcription)?void 0:e.signed_captions){let e=(null!=(t=g.transcription.signed_captions)?t:[]).map(e=>e.language);M(e),_&&!e.includes(_)&&b(null)}},[g,_]),(0,i.useEffect)(()=>{var e,t;let n=parseFloat(localStorage.getItem("video_player:playbackRate")||"1"),a=()=>{var e;(null==(e=d.current)?void 0:e.player)&&(d.current.player.playbackRate=n)};return(null==(e=d.current)?void 0:e.player)&&(null==(t=d.current.player)||t.addEventListener("loadedmetadata",a)),()=>{if(d.current){var e;null==(e=d.current.player)||e.removeEventListener("loadedmetadata",a)}}},[d]),(0,ea.A)(x,()=>{N(!1),v(!1),f(!1)}),(0,a.jsxs)(l.I1,{paddingY:8,ref:x,gap:4,flex:"grow",className:p()(eo.seetingsMenu,{[eo.slideOut]:y}),children:[y&&(0,a.jsx)(es,{mediaRef:d,dismiss:()=>N(!1)}),O&&(0,a.jsx)(ec,{options:I,subtitles:_,setSubtitles:b,dismiss:()=>v(!1)}),!y&&!O&&(0,a.jsxs)(l.I1,{gap:4,flex:"grow",children:[(0,a.jsx)(ed,{title:A("Playback speed"),icon:(0,a.jsx)(ee.A,{size:16,stroke:"white"}),onClick:()=>N(!0),selection:(0,a.jsxs)(a.Fragment,{children:[null==(r=d.current)||null==(n=r.player)?void 0:n.playbackRate,"\xd7"]})}),I.length>0&&(0,a.jsx)(ed,{title:A("Subtitles"),icon:(0,a.jsx)(et.A,{size:16,stroke:"white"}),onClick:()=>v(!0),selection:el[null!=_?_:""]}),u&&m&&(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(ed,{title:A("Share post"),icon:(0,a.jsx)(en.A,{size:16,stroke:"white"}),onClick:()=>{u&&m&&(w((0,ei.x5)(null,{post:u,pub:m,useCustomDomainOverOpen:!0})),(0,o.u4)(o.qY.SHARE_LINK_CLICKED,{name:"copy",source:"player",post_id:u.id}))}}),!s&&(0,a.jsx)(ed,{title:A("Share post at current time"),icon:(0,a.jsx)(en.A,{size:16,stroke:"white"}),onClick:()=>{if(!u||!m)return;let e=S?{timestamp:S.toFixed(1)}:{};w((0,ei.x5)(null,{post:u,pub:m,useCustomDomainOverOpen:!0,params:e})),(0,o.u4)(o.qY.SHARE_LINK_CLICKED,(0,c._)({name:"copy",source:"player",post_id:u.id},e))}})]})]})]})};var ep=n(78659),em=n.n(ep),eh=n(16858),eg=n(92967);let e_=e=>{let{clipDuration:t,isMinimized:n,onClick:i}=e;return n?(0,a.jsx)(eb,{onClick:i}):(0,a.jsxs)(l.Ye,{alignItems:"center",bg:"glass-inverted-thick",gap:6,padding:6,paddingRight:8,radius:"full",onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),i()},children:[(0,a.jsx)("div",{className:"iconContainer-RgovDu",children:(0,a.jsx)(eh.A,{size:12,stroke:"white"})}),(0,a.jsx)(D.EY.Meta,{color:"white",children:(0,eg.kq)(t)})]})},eb=e=>{let{onClick:t}=e;return(0,a.jsx)("div",{className:"iconContainerMarker-qBRnT3",onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),t()},children:(0,a.jsx)(eh.A,{size:12,stroke:"white"})})};var ef=n(83673),eA=n.n(ef),eE=n(48309),ey=n(70357),eN=n(42496),eO=n(35369),ev=n(18540),ex=n(49315),eS=n(64127),ew=n(70189);function eI(e){var t,n,s,l;let{duration:d,pub:u,post:p,trigger:m,timestamp:h,onShareMenuOpen:g,onShareMenuClose:_,size:b}=e,[f,A]=(0,i.useState)(h),{onStartClipping:y}=(0,r.MC)(),N=f&&d,O="post",v=N?{t:f.toFixed(1),d:d.toFixed(1)}:f?{timestamp:f.toFixed(1)}:{};(0,i.useEffect)(()=>{A(h)},[h]);let x=(0,ei.x5)(null,{post:p,pub:null!=u?u:void 0,useCustomDomainOverOpen:!0,params:v}),{iString:S}=(0,E.GO)(),w={variant:"menu",url:x,onLinkClicked:e=>{(0,o.u4)(o.qY.SHARE_LINK_CLICKED,(0,c._)({is_clip:N,type:e,post_id:null==p?void 0:p.id},v)),(0,o.u4)(o.qY.MEDIA_CLIP_BUTTON_CLICKED,{button:"share_to_".concat(e),source:"playback timeline",surface:O})}},I=(0,eS.yg)(w),M=(0,eS.JZ)(w),C=(0,eS.PJ)(w),k=(0,eS.g)(w),j=eM(w),L=eA()([k,"sm"!==b?(0,a.jsx)(ex.Dr,{leading:(0,a.jsx)(eE.A,{}),onClick:()=>{(0,o.u4)(o.qY.SHARE_LINK_CLICKED,(0,c._)({is_clip:N,type:"download_clip",post_id:null==p?void 0:p.id},v)),(0,o.u4)(o.qY.MEDIA_CLIP_BUTTON_CLICKED,{button:"create",source:"playback timeline",surface:O}),y({source:"video-timeline",title:null})},children:S("Download clip")}):null,(0,a.jsx)(eN.Eg,{url:w.url,onShare:()=>{var e;null==(e=w.onLinkClicked)||e.call(w,"chat")}}),(0,a.jsx)(ev.c,{paddingX:8}),j,I,M,C]);return(0,a.jsxs)(ex.W1,{trigger:m,"aria-label":S("Share"),onOpen:g,onClose:_,children:[L,!N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ev.c,{}),(0,a.jsx)(eN.Ai,{initialTime:null!=f?f:0,onChange:A,maxTime:null!=(l=null!=(s=null==p||null==(t=p.videoUpload)?void 0:t.duration)?s:null==p||null==(n=p.podcastUpload)?void 0:n.duration)?l:null})]})]})}let eM=e=>{let{variant:t,url:n,onLinkClicked:i}=e,{iString:r}=(0,E.GO)(),o=()=>{(0,R.V2)((0,ew.XX)({message:null!=n?n:""}),{newTab:!0}),null==i||i("notes")};return"icon"===t?(0,a.jsx)(eO.K0,{onClick:o,children:(0,a.jsx)(ey.A,{})}):(0,a.jsx)(ex.Dr,{leading:(0,a.jsx)(ey.A,{}),onClick:o,children:r("Share to Notes")})};var eC=n(38898);let ek=e=>{var t;let{children:n,showTooltip:i,size:r,setIsHovering:o,storyboard:s,videoTime:c}=e,d="sm"===r?75:100,u=null!=(t=null==s?void 0:s.tiles)?t:[],m=u.length?(0,eC.H5)(u,c):null;return(0,a.jsxs)(l.I1,{bg:i?"glass-inverted-medium":void 0,radius:"sm"===r?"xs":"sm",padding:8*("sm"!==r),gap:4,opacity:100*!!i,children:[(0,a.jsx)(l.Ye,{justifyContent:"center",alignItems:"center",onMouseEnter:()=>o(!1),children:(0,a.jsx)("div",{style:{position:"relative"},children:s&&m&&(0,a.jsx)(eC.NK,{storyboard:s,imageUrl:s.url,displayHeight:d,displayWidth:s.tile_width/s.tile_height*d,x:m.x,y:m.y,className:p()("timelineThumbnail-sJc0Xj",{"timelineThumbnailSmall-FCvVQ9":"sm"===r})})})}),n]})},ej={container:"container-S0aAZ3",track:"track-FYojQC",trackClippedPlayed:"trackClippedPlayed-cnYlGh",trackClippedUnplayed:"trackClippedUnplayed-km4zul",trackFilled:"trackFilled-gbOxAX",trackExpanded:"trackExpanded-_EdObk"},eL=e=>{let{clipTimes:t,duration:n,isHovering:r,isPlayingClippedSegment:s,post:c,pub:d,progress:u,setIsHovering:m,storyboard:h,onClickBubble:g,onPause:_,onShareMenuOpen:b,onShareMenuClose:f}=e,{iString:A}=(0,E.GO)(),[y,N]=(0,i.useState)(!1),[O,v]=(0,i.useState)(!0),x=!s&&u>t.start/n*100,S=!s&&u>t.end/n*100;return(0,i.useEffect)(()=>{(0,o.u4)(o.qY.MEDIA_CLIP_SEEN,{start_time:t.start,duration:t.end-t.start})},[t.end,t.start]),(0,a.jsxs)("div",{className:ej.container,children:[(0,a.jsx)("div",{className:p()(ej.track,ej.trackUnclipped,{[ej.trackFilled]:x,[ej.trackExpanded]:x&&r}),style:{left:0,width:"calc(".concat(t.start/n*100,"% - 2px)")}}),(0,a.jsx)("div",{className:p()(ej.track,{[ej.trackClippedUnplayed]:s,[ej.trackFilled]:S,[ej.trackExpanded]:S&&r}),style:{left:"".concat(t.start/n*100,"%"),width:"".concat((t.end-t.start)/n*100,"%")}}),(0,a.jsx)("div",{className:p()(ej.track),style:{right:0,width:"calc(".concat((1-t.end/n)*100,"% - 2px)")}}),s?(0,a.jsx)("div",{className:p()(ej.track,ej.trackClippedPlayed,{[ej.trackExpanded]:r}),style:{left:"".concat(t.start/n*100,"%"),width:"".concat(u-t.start/n*100,"%")}}):u{N(!0)},onMouseLeave:()=>{O&&(v(!0),N(!1))},children:[y&&(0,a.jsx)(ek,{setIsHovering:m,showTooltip:O,size:"md",storyboard:h,videoTime:t.start,children:(0,a.jsx)(eI,{onShareMenuOpen:()=>{v(!1),null==b||b(),(0,o.u4)(o.qY.POST_SHARE_BUTTON_CLICKED,{position:"video_timeline",post_id:null==c?void 0:c.id})},onShareMenuClose:()=>{v(!0),null==f||f()},timestamp:t.start,duration:t.end-t.start,pub:d,post:c,size:"md",trigger:(0,a.jsx)("div",{onMouseDown:e=>e.stopPropagation(),children:O&&(0,a.jsxs)(l.Ye,{cursor:"pointer",gap:8,flex:"grow",paddingY:4,onClick:_,justifyContent:"center",children:[(0,a.jsx)(en.A,{stroke:"white",size:20}),(0,a.jsx)(D.EY.B4,{color:"white",weight:"semibold",children:A("Share clip")})]})})})}),(0,a.jsx)(e_,{clipDuration:t.end-t.start,isMinimized:!s,onClick:g})]})]})},eR=e=>{var t;let{disableSharing:n,mediaRef:s,mediaUpload:c,post:d,pub:u,size:m,startTime:h=0,endTime:g,onShareMenuOpen:_,onShareMenuClose:b}=e,{iString:f}=(0,E.GO)(),{isClipping:A}=(0,r.MC)(),{currentTime:y}=(0,J.yr)(s),{clipTimes:N}=(()=>{let[e]=(0,i.useState)((()=>{if("undefined"==typeof window)return null;let e=new URLSearchParams(window.location.search),t=e.get("t"),n=e.get("d");if(!t||!n)return null;let a=parseInt(t),i=parseInt(n);if(isNaN(a)||isNaN(i)){let e;return(e=new URL(window.location.href)).searchParams.delete("t"),e.searchParams.delete("d"),window.history.replaceState({},"",e.toString()),null}return{start:a,end:a+em()(i,r.LO,r.z3)}})());return{clipTimes:e}})(),v=!!(N&&y>=N.start&&y<=N.end),[x,S]=(0,i.useState)(!0),[w,I]=(0,i.useState)(null),[M,C]=(0,i.useState)(0),[k,j]=(0,i.useState)(!1),[L,R]=(0,i.useState)(!1),[T,P]=(0,i.useState)(0),[B,U]=(0,i.useState)(0),[G,F]=(0,i.useState)(0),[Y,K]=(0,i.useState)(0),H=(0,i.useRef)(null),V=(0,i.useRef)(null),z=(0,i.useRef)(null),q=(0,O.Hc)(c),Z=(g||T)-h,X=(0,i.useCallback)(()=>{var e;if(null==(e=s.current)?void 0:e.player){let e=s.current.player;C(em()(e.currentTime-h,0,null!=Z?Z:e.duration-h)/(null!=Z?Z:e.duration)*100),g&&e.currentTime>=g&&(e.currentTime=h,e.pause())}H.current=requestAnimationFrame(X)},[s,h,Z,g]),Q=(0,i.useCallback)(e=>{var t;if(z.current&&(null==(t=s.current)?void 0:t.player)){let t=z.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;s.current.player.currentTime=em()(h+n*Z,0,T),C(100*n)}},[s,h,T,Z]),$=(0,i.useCallback)(e=>{Q(e)},[Q]),ee=(0,i.useCallback)(e=>{k&&e.preventDefault()},[k]),et=(0,i.useCallback)(()=>{j(!1),document.removeEventListener("mousemove",$),document.removeEventListener("selectstart",ee)},[$,ee]),ea=(0,i.useCallback)(e=>{e.preventDefault(),j(!0),Q(e),document.addEventListener("mousemove",$),document.addEventListener("mouseup",et),document.addEventListener("selectstart",ee)},[Q,$,et,ee]),ei=()=>{Math.abs(B-Y)>.1?(K(e=>e+(B-e)*.1),V.current=window.requestAnimationFrame(ei)):(K(B),V.current&&window.cancelAnimationFrame(V.current))};(0,i.useEffect)(()=>(H.current=window.requestAnimationFrame(X),()=>{null!==H.current&&window.cancelAnimationFrame(H.current),null!==V.current&&window.cancelAnimationFrame(V.current)}),[X]),(0,i.useEffect)(()=>{let e=()=>{var e;(null==(e=s.current)?void 0:e.player)&&!isNaN(s.current.player.duration)&&P(s.current.player.duration)};if(s.current){var t;null==(t=s.current.player)||t.addEventListener("durationchange",e)}return e(),()=>{if(s.current){var t;null==(t=s.current.player)||t.removeEventListener("durationchange",e)}}},[null==(t=s.current)?void 0:t.player]);let er=w?w/Z*100:B*Z/100;return(0,a.jsxs)(l.Ye,{ref:z,onMouseDown:ea,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),onClick:et,onMouseMove:e=>{var t,n,a,i;let{x:r,width:o}=null!=(a=null==(t=z.current)?void 0:t.getBoundingClientRect())?a:{x:0,width:0};U((e.clientX-r)/o*100);let s=q?q.tile_width/q.tile_height*100:100,l=((null!=s?s:0)+10)/2/(null!=(i=null==(n=z.current)?void 0:n.getBoundingClientRect().width)?i:1)*100,c=w?w/Z*100:null;F(em()(null!=c?c:B,l,100-l)),V.current||ei()},flex:"grow",position:"relative",className:"timelineContainer-QAunx2",cursor:"pointer",children:[N&&T&&d&&u&&!A?(0,a.jsx)(eL,{clipTimes:N,duration:T,isHovering:L,isPlayingClippedSegment:null!=v&&v,post:d,pub:u,progress:M,setIsHovering:R,storyboard:q,onClickBubble:()=>{var e,t,n;(null==(e=s.current)?void 0:e.player)&&N&&(s.current.player.currentTime=N.start,s.current.player.paused&&(null==(t=(n=s.current.player).play)||t.call(n)))},onPause:()=>{var e,t,n;(null==(e=s.current)?void 0:e.player)&&(null==(t=(n=s.current.player).pause)||t.call(n))},onShareMenuOpen:_,onShareMenuClose:b}):(0,a.jsxs)("div",{className:"timeline-nCVBQY",children:[L&&(0,a.jsx)("div",{className:"timelineHover-G7eFow",style:{width:"".concat(B,"%"),height:"100%"}}),(0,a.jsx)("div",{className:p()("progress-K0IenH",{"progressHover-Cm9xTr":L&&!N}),style:{width:"".concat(M,"%"),height:"100%"}})]}),!A&&!n&&!N&&d&&u&&b&&_&&(0,a.jsx)(l.I1,{position:"absolute",className:"thumbnailContainer-vAgzNA",style:{position:"absolute",left:"".concat(G,"%"),opacity:+!!L,pointerEvents:L?"auto":"none"},children:(0,a.jsx)(ek,{setIsHovering:R,showTooltip:x,size:null!=m?m:"md",storyboard:q,videoTime:er,children:"sm"!==m&&(0,a.jsx)(eI,{onShareMenuOpen:()=>{S(!1),null==_||_(),(0,o.u4)(o.qY.POST_SHARE_BUTTON_CLICKED,{position:"video_timeline",post_id:null==d?void 0:d.id})},onShareMenuClose:()=>{S(!0),I(null),null==b||b()},timestamp:w,pub:u,post:d,size:m,trigger:(0,a.jsx)(l.Ye,{children:x&&(0,a.jsxs)(l.Ye,{cursor:"pointer",gap:8,flex:"grow",paddingY:4,onClick:()=>{var e,t,n,a;(null==(t=s.current)||null==(e=t.player)?void 0:e.paused)||null==(a=s.current)||null==(n=a.player)||n.pause(),I(er)},justifyContent:"center",children:[(0,a.jsx)(en.A,{stroke:"white",size:20}),(0,a.jsxs)(D.EY.B4,{color:"white",weight:"semibold",children:[f("Share from "),(0,W.fU)(er)]})]})})})})})]})};var eT=n(80827);let eP=e=>{let{isFocused:t,disabled:n,disableShortcuts:i,disableTooltips:r=!1,onToggleShowTranscript:o}=e,{iString:s}=(0,E.GO)();return(0,O._N)("t",o,t&&!i),(0,a.jsx)(N.m_,{disabled:r,text:s("Transcripts"),trailing:i?void 0:(0,a.jsx)(y.u,{children:"T"}),children:(0,a.jsx)(v.A,{onClick:o,disabled:n,children:(0,a.jsx)(eT.A,{size:18})})})};var eD=n(71552);let eB="bottomControlsContainer-kx5Iet",eU="bottomInnerControlsContainer-nA_qdP",eG="backDrop-OMzeTr",eF="captionsContainer-sSAb5L",eW="topOverlaysContainer-xo1FwD",eY=e=>{var t,n,c,d;let{autoPlayMuted:u,forLiveStream:p=!1,disableSharing:m=!1,disableShortcuts:h=!1,disableTooltips:g=!1,disableCaptions:_=!1,duration:f,handle:A,hasPaywall:E=!1,hasTranscript:y=!1,hideNextVideoButton:N=!1,hidePip:O=!1,hideCaptions:v=!1,hideSettings:S=!1,isActive:w,isAudio:M=!1,isFocused:C,mediaRef:k,mediaUpload:j,podcastUpload:L,post:R,pub:T,showPaywall:P,showTranscript:D,size:B="md",onShareMenuClose:G,onShareMenuOpen:W,onToggleShowTranscript:Y,onBlur:K,hoverOptions:H}=e,{transition:z=.5,transitionDelay:q=.1}=null!=H?H:{},{isClipping:J}=(0,r.MC)(),{isMobile:X}=(0,s.sM)(),$=w&&!P,ee=(0,i.useRef)(null),[et,en]=(0,i.useState)(!1),[ea,ei]=(0,i.useState)(!1),[er,eo]=(0,i.useState)(null),es=e=>{let{current:t}=k;t&&(t.isShowingCaptionsElsewhere=e),ei(e)};(0,i.useEffect)(()=>{(J||u)&&el({showCaptions:!0,userInitiated:!1})},[J,u]);let el=e=>{let{showCaptions:t,userInitiated:n}=e;es(t),t&&(null==ec?void 0:ec.length)&&ec[0]&&(eo(ec[0].language),n&&(0,o.u4)(o.qY.VIDEO_CLOSED_CAPTIONS_BUTTON_CLICKED,{language:ec[0].language}))};(0,i.useEffect)(()=>{$||en(!1)},[$]);let ec=null!=(c=null==L||null==(t=L.transcription)?void 0:t.signed_captions)?c:[],ed=!!(null==L||null==(n=L.transcription)?void 0:n.approved_at);return(0,a.jsxs)("div",{ref:ee,style:{zIndex:J?10:+!!et},onBlur:K,children:[(null==A?void 0:A.active)?(0,a.jsx)("div",{className:eW,style:{opacity:+!!$,transform:$||X?"translateY(0)":"translateY(-20%)"},children:(0,a.jsxs)(l.Ye,{justifyContent:"space-between",paddingBottom:32,children:[(0,a.jsx)(l.Ye,{padding:16}),(0,a.jsx)(l.Ye,{padding:16})]})}):null,(0,a.jsx)("div",{}),!p&&(0,a.jsx)("div",{className:"settingsControlsContainer-V3A25d",style:{opacity:et&&$?1:0,pointerEvents:et?"auto":"none"},children:(0,a.jsxs)(l.I1,{children:[(0,a.jsx)(l.Ye,{className:"settingsControlsBox-svKH2p",children:(0,a.jsx)(eu,{hideSharePostAtCurrentTime:M,mediaRef:k,post:R,pub:T,podcastUpload:L,subtitles:er,setSubtitles:e=>{eo(e),!e&&ea?es(!1):e&&!ea&&es(!0)},setIsSettingsOpen:en})}),(0,a.jsx)("div",{style:{height:"60px"}})]})}),(0,a.jsxs)("div",{className:eB,style:{transform:$||X?"translateY(0)":"translateY(40px)",transition:"transform ".concat(z,"s ease"),transitionDelay:"".concat(q,"s")},children:[(0,a.jsx)("div",{className:eG,style:{opacity:+!!$}}),(0,a.jsxs)(l.I1,{flex:"grow",gap:8,paddingY:4,children:[k.current&&L&&!E&&A&&j&&!_&&(0,a.jsx)("div",{className:eF,children:(0,a.jsx)(b,{handle:A,mediaUpload:L,showCaptions:ea,size:B,subtitles:er,videoEle:null!=(d=k.current.player)?d:null,withHighlight:J})}),(0,a.jsx)("div",{className:eU,style:{opacity:+!!$,transition:void 0!=z?"opacity ".concat(z,"s ease"):"opacity 0.5s ease"},children:(0,a.jsxs)(l.I1,{flex:"grow",children:[!p&&(0,a.jsx)(l.Ye,{flex:"grow",paddingBottom:4,children:(0,a.jsx)(eR,{disableSharing:M||m,mediaRef:k,mediaUpload:j,post:R,pub:T,size:B,onShareMenuClose:G,onShareMenuOpen:W})}),(0,a.jsxs)(l.Ye,{paddingX:4,children:[(0,a.jsxs)(l.pT,{gap:8,alignItems:"center",children:[!p&&(0,a.jsx)(Z,{disableShortcuts:h,disableTooltips:g,isFocused:C,mediaRef:k}),!N&&(null==j?void 0:j.post_id)&&(0,a.jsx)(U,{disableShortcuts:h,isFocused:C,postId:j.post_id,pub:T}),(0,a.jsx)(eD.A,{disableShortcuts:h,disableTooltips:g,isFocused:C,mediaRef:k}),!p&&(0,a.jsx)(V,{duration:M&&null!=f?f:null,mediaRef:k})]}),(0,a.jsx)(l.pT,{flex:"grow"}),(0,a.jsxs)(l.pT,{gap:8,alignItems:"center",children:[!M&&Y&&!p&&(0,a.jsx)(eP,{disableShortcuts:h,disableTooltips:g,disabled:E||!y,isFocused:C,showTranscript:null!=D&&D,onToggleShowTranscript:Y}),!M&&!v&&!p&&(0,a.jsx)(x,{disableShortcuts:h,disableTooltips:g,disabled:!ed||E,isFocused:C,setShowCaptions:el,showCaptions:ea}),!M&&!O&&(0,a.jsx)(F,{disableShortcuts:h,disableTooltips:g,isFocused:C,mediaRef:k}),!M&&A&&(0,a.jsx)(I,{disableShortcuts:h,disableTooltips:g,handle:A,isFocused:C}),!p&&!S&&(0,a.jsx)(Q,{disableTooltips:g,isSettingsOpen:et,setIsSettingsOpen:en})]})]})]})})]})]})]})},eK=e=>{var t,n,r,c,d,u;let{mediaRef:p,mediaUpload:m,handle:h,isActive:g,pub:_,size:f="sm",startTime:A,duration:E,useCaptions:y=!1,captionsStyle:N,hoverOptions:O,onBlur:v}=e,{transition:S=.5,transitionDelay:w=.1}=null!=O?O:{},{isMobile:M}=(0,s.sM)(),C=(0,i.useRef)(null),[k,j]=(0,i.useState)(!1),[L,R]=(0,i.useState)(null),T=null!=(d=null==m||null==(n=m.extractedAudio)||null==(t=n.transcription)?void 0:t.signed_captions)?d:[],P=!!(null==m||null==(c=m.extractedAudio)||null==(r=c.transcription)?void 0:r.approved_at);return(0,i.useEffect)(()=>{let e=()=>{var e;(null==(e=p.current)?void 0:e.player)&&!isNaN(p.current.player.duration)&&(p.current.player.currentTime=A)};if(p.current){var t;null==(t=p.current.player)||t.addEventListener("durationchange",e)}return()=>{if(p.current){var t;null==(t=p.current.player)||t.removeEventListener("durationchange",e)}}},[p]),(0,a.jsxs)("div",{ref:C,onBlur:v,children:[(null==h?void 0:h.active)?(0,a.jsx)("div",{className:eW,style:{opacity:+!!g,transform:g||M?"translateY(0)":"translateY(-20%)"},children:(0,a.jsxs)(l.Ye,{justifyContent:"space-between",paddingBottom:32,children:[(0,a.jsx)(l.Ye,{padding:16}),(0,a.jsx)(l.Ye,{padding:16})]})}):null,p.current&&(null==m?void 0:m.extractedAudio)&&h&&y&&(0,a.jsx)("div",{className:eF,style:{bottom:0},children:(0,a.jsx)(b,{handle:h,mediaUpload:m.extractedAudio,showCaptions:k,size:f,subtitles:L,videoEle:null!=(u=p.current.player)?u:null,captionsStyle:N,withHighlight:!0})}),(0,a.jsxs)("div",{className:eB,style:{transform:g||M?"translateY(0)":"translateY(40px)",transition:void 0!=S?"transform ".concat(S,"s ease"):"transform 0.5s ease",transitionDelay:void 0!=w?"".concat(w,"s"):"0.1s"},children:[(0,a.jsx)("div",{className:eG,style:{opacity:+!!g}}),(0,a.jsx)(l.I1,{flex:"grow",gap:8,paddingY:4,children:(0,a.jsx)("div",{className:eU,style:{opacity:+!!g,transition:void 0!=S?"opacity ".concat(S,"s ease"):"opacity 0.5s ease"},children:(0,a.jsxs)(l.I1,{flex:"grow",children:[(0,a.jsx)(l.Ye,{flex:"grow",paddingBottom:4,children:(0,a.jsx)(eR,{disableSharing:!0,mediaRef:p,mediaUpload:m,post:void 0,pub:_,size:"sm",startTime:A,endTime:E?A+E:void 0})}),(0,a.jsxs)(l.Ye,{paddingX:4,children:[(0,a.jsxs)(l.pT,{gap:8,alignItems:"center",children:[(0,a.jsx)(Z,{disableShortcuts:!0,disableTooltips:!0,isFocused:!1,mediaRef:p}),(0,a.jsx)(eD.A,{disableShortcuts:!0,disableTooltips:!0,isFocused:!1,mediaRef:p}),(0,a.jsx)(H,{startTime:A,duration:null!=E?E:null,mediaRef:p})]}),(0,a.jsx)(l.pT,{flex:"grow"}),(0,a.jsx)(x,{disableShortcuts:!0,disableTooltips:!0,disabled:!P,setShowCaptions:e=>{let{showCaptions:t,userInitiated:n}=e;j(t),t&&(null==T?void 0:T.length)&&T[0]&&(R(T[0].language),n&&(0,o.u4)(o.qY.VIDEO_CLOSED_CAPTIONS_BUTTON_CLICKED,{language:T[0].language}))},showCaptions:k,isFocused:!1}),h&&(0,a.jsx)(I,{disableShortcuts:!0,disableTooltips:!0,handle:h,isFocused:!1})]})]})})})]})]})},eH=e=>{let{mediaRef:t,mediaUpload:n,isActive:r,pub:o,startTime:c,duration:d,hoverOptions:u,onBlur:p}=e,{transition:m=.5,transitionDelay:h=.1}=null!=u?u:{},{isMobile:g}=(0,s.sM)(),_=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=()=>{var e;(null==(e=t.current)?void 0:e.player)&&!isNaN(t.current.player.duration)&&(t.current.player.currentTime=c)};if(t.current){var n;null==(n=t.current.player)||n.addEventListener("durationchange",e)}return()=>{if(t.current){var n;null==(n=t.current.player)||n.removeEventListener("durationchange",e)}}},[t]),(0,a.jsx)("div",{ref:_,onBlur:p,children:(0,a.jsxs)("div",{className:eB,style:{transform:r||g?"translateY(0)":"translateY(40px)",transition:"transform ".concat(m,"s ease"),transitionDelay:"".concat(h,"s")},children:[(0,a.jsx)("div",{className:eG,style:{opacity:+!!r}}),(0,a.jsx)(l.I1,{flex:"grow",gap:8,paddingY:4,children:(0,a.jsx)("div",{className:eU,style:{opacity:+!!r,transition:void 0!=m?"opacity ".concat(m,"s ease"):"opacity 0.5s ease"},children:(0,a.jsxs)(l.I1,{flex:"grow",children:[(0,a.jsx)(l.Ye,{flex:"grow",paddingBottom:4,children:(0,a.jsx)(eR,{disableSharing:!0,mediaRef:t,mediaUpload:n,post:void 0,pub:o,size:"sm",startTime:c,endTime:d?c+d:void 0})}),(0,a.jsxs)(l.Ye,{paddingX:4,children:[(0,a.jsxs)(l.pT,{gap:8,alignItems:"center",children:[(0,a.jsx)(Z,{disableShortcuts:!0,disableTooltips:!0,isFocused:!1,mediaRef:t}),(0,a.jsx)(eD.A,{disableShortcuts:!0,disableTooltips:!0,isFocused:!1,mediaRef:t}),(0,a.jsx)(H,{startTime:c,duration:null!=d?d:null,mediaRef:t})]}),(0,a.jsx)(l.pT,{flex:"grow"})]})]})})})]})})}},71552:function(e,t,n){n.d(t,{A:()=>b});var a=n(74848),i=n(78659),r=n.n(i),o=n(63122),s=n(55584),l=n(72985),c=n(25027),d=n(96540),u=n(68410),p=n(76977),m=n(68940),h=n(56720),g=n(59294),_=n(59537);let b=e=>{let{mediaRef:t,isFocused:n,disableShortcuts:i,disableTooltips:b=!1,hideVolumeBar:f=!1}=e,{isMobile:A}=(0,u.sM)(),[E,y]=(0,d.useState)(0),[N,O]=(0,d.useState)(!1),[v,x]=(0,d.useState)(!1),S=(0,d.useRef)(null),w=e=>{let n=0;if(S.current){var a;let i=S.current.getBoundingClientRect(),o=(e.clientX-i.left)/i.width;y(n=r()(o,0,1)),localStorage.setItem("video_player:volume",n.toString()),(null==(a=t.current)?void 0:a.player)&&(t.current.player.volume=n)}N&&n>0&&k()},I=e=>{x(!0),w(e)},M=()=>{x(!1),document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",M),document.removeEventListener("selectstart",C)},C=e=>{v&&e.preventDefault()};(0,d.useEffect)(()=>{var e,n,a,i,o,s;let l=parseFloat(null!=(i=localStorage.getItem("video_player:volume"))?i:"");if(O(null!=(o=null==(n=t.current)||null==(e=n.player)?void 0:e.muted)&&o),isNaN(l))(null==(a=t.current)?void 0:a.player)&&y(t.current.player.volume);else{let e=r()(l,0,1);y(e),(null==(s=t.current)?void 0:s.player)&&(t.current.player.volume=e)}return()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",M),document.removeEventListener("selectstart",C)}},[]);let k=()=>{var e;(null==(e=t.current)?void 0:e.player)&&(t.current.player.muted=!N)},j=()=>{var e;(null==(e=t.current)?void 0:e.player)&&O(t.current.player.muted)};return(0,d.useEffect)(()=>{var e;return(null==(e=t.current)?void 0:e.player)&&t.current.player.addEventListener("volumechange",j),()=>{var e;(null==(e=t.current)?void 0:e.player)&&t.current.player.removeEventListener("volumechange",j)}},[]),(0,g._N)("m",k,n&&!i),(0,a.jsxs)(p.Ye,{className:"mainContainer-_32N5B",justifyContent:"center",alignItems:"center",position:"relative",children:[(0,a.jsx)(h.m_,{disabled:b,text:N?"Unmute":"Mute",trailing:i?void 0:(0,a.jsx)(m.u,{children:"M"}),children:(0,a.jsx)(_.A,{onClick:k,children:N?(0,a.jsx)(o.A,{size:18}):E>.6||A?(0,a.jsx)(s.A,{size:18}):E>.3?(0,a.jsx)(l.A,{size:18}):(0,a.jsx)(c.A,{size:18})})}),!A&&!f&&(0,a.jsx)(p.Ye,{className:"volumeBarContainer-AVLNVa",justifyContent:"center",alignItems:"center",onMouseDown:e=>{e.preventDefault(),x(!0),w(e),document.addEventListener("mousemove",I),document.addEventListener("mouseup",M),document.addEventListener("selectstart",C)},children:(0,a.jsx)("div",{className:"volumeBar-N1rUCF",ref:S,children:(0,a.jsx)("div",{className:"volumeLevel-VDMLnw",style:{width:"".concat(100*E,"%")}})})})]})}},55247:function(e,t,n){n.d(t,{U:()=>m});var a=n(69277),i=n(70408),r=n(74848),o=n(56778),s=n(86500),l=n(60322),c=n(76977),d=n(63136),u=n(18189),p=n(80856);let m=e=>{let{includeCheckbox:t=!0,onCheckboxChange:n=()=>{},checked:m=!1,addSubscribePreamble:h=!1,addSignupPreamble:g=!1,addPublisherPreamble:_=!1,fontWeight:b="regular",size:f="regular",color:A="primary",textAlign:E="left",style:y,pub:N}=e,O=null==N?void 0:N.has_custom_tos,v=null==N?void 0:N.has_custom_privacy,x=null;return O&&v?x=(0,r.jsxs)(r.Fragment,{children:["the publisher's"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p.Ru)({pub:N}),target:"_blank",style:{textDecoration:"underline"},children:"Terms of Service"})," ","and"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p._)({pub:N}),target:"_blank",style:{textDecoration:"underline"},children:"Privacy Policy"}),","," "]}):O?x=(0,r.jsxs)(r.Fragment,{children:["the publisher's"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p.Ru)({pub:N}),target:"_blank",style:{textDecoration:"underline"},children:"Terms of Service"}),","," "]}):v&&(x=(0,r.jsxs)(r.Fragment,{children:["the publisher's"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p._)({pub:N}),target:"_blank",style:{textDecoration:"underline"},children:"Privacy Policy"}),","," "]})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{onVisible:()=>{(0,s.u4)(u.q.TERMS_OF_SERVICE_SEEN,{withCheckbox:t,initialCheckboxValue:m})}}),(0,r.jsxs)(c.Ye,{as:"label",alignItems:"center",justifyContent:"center",gap:12,style:y,className:"tosCheckbox-XbLWCT",children:[t&&(0,r.jsx)(l.S,{checked:m,onChange:e=>{(0,s.u4)(u.q.TERMS_OF_SERVICE_CHECKBOX_CLICKED,{checkboxValue:e}),n(e)},size:"sm"}),(0,r.jsxs)(d.EY.B4,(0,i._)((0,a._)({color:A,textAlign:E,fontWeight:b},"small"===f?{size:11,lineHeight:16}:{}),{children:[_?"By creating a publication, ":h?"By subscribing, ":g?"By creating an account, ":"",t?"I":"you"," agree ",x,_?(0,r.jsxs)(r.Fragment,{children:["Substack's"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p._4)(),target:"_blank",style:{textDecoration:"underline"},children:"Publisher Agreement"})]}):(0,r.jsxs)(r.Fragment,{children:["Substack's"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p.lk)(),target:"_blank",style:{textDecoration:"underline"},children:"Terms of Use"})]}),", and acknowledge its"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p.iQ)(),target:"_blank",style:{textDecoration:"underline"},children:"Information Collection Notice"})," ","and"," ",(0,r.jsx)(d.EY,{as:"a",href:(0,p.gB)(),target:"_blank",style:{textDecoration:"underline"},children:"Privacy Policy"}),"."]}))]})]})}},1510:function(e,t,n){var a=n(74848),i=n(73970),r=n(69277),o=n(96540);let s=(0,o.createContext)({});s.displayName="WWWContext";let l=e=>{let t=t=>{let n=(0,o.useContext)(s);return(0,a.jsx)(e,(0,r._)({},n,t))};return t.displayName="withWWWContext(".concat(e.name||e.displayName||"Anonymous",")"),t},c=()=>(0,o.useContext)(s);var d=n(25158),u=n(79785),p=n(15734),m=n.n(p),h=n(84605),g=n(92905),_=n(94729),b=n(12501),f=n(68349),A=n(35369),E=n(76977),y=n(63136),N=n(39318);function O(){let e=(0,u._)(["Transfer account to ","?"]);return O=function(){return e},e}function v(){let e=(0,u._)(["An account under "," already exists. Do you want to transfer your subscriptions and publications to it? You will be signed out, and will need to sign in again as ","."]);return v=function(){return e},e}let x=(0,h.wr)(function(e){let{user:t,successRedirect:n,iString:i,iTemplate:r}=e,[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(""),[u,p]=(0,o.useState)(!1),[h,x]=(0,o.useState)(!1),[S,w]=(0,o.useState)(null),{isLoading:I,refetch:M}=(0,b.st)({pathname:"/api/v1/user/email",method:"PUT",auto:!1,deps:[]}),{trackInputFilled:C,trackSubmitPressed:k,trackError:j}=(0,g.a)("Change Email Form");if((0,o.useEffect)(()=>{t||(window.location.href=(0,N.a7q)({}))},[]),!t)return null;let L=async()=>{if(!u){p(!0);try{await m().post("/api/v1/user/transfer").send({email:s}),window.location.href=(0,N.a7q)({redirect:(0,N.tFi)()})}catch(e){alert("WARNING! Transfer failed, there may be non-obvious discrepancies even if it appeared to work: ".concat((0,f.uX)(e)))}p(!1)}},R=async e=>{e.preventDefault(),k(),w(null);let t=await M({json:{email:s,email_doublecheck:c}});if(t instanceof Error){var a,i,r,o,l;(j(t),t instanceof _.fk&&(null==(a=t.response)?void 0:a.status)===403&&x(!0),t instanceof _.fk)?w((null==(o=t.body)||null==(r=o.errors)||null==(i=r[0])?void 0:i.msg)||(null==(l=t.body)?void 0:l.error)||"Something went wrong"):w("Something went wrong");return}n()};return(0,a.jsx)("div",{id:"change-email-settings",className:"page account-settings",children:(0,a.jsx)("div",{className:"container",children:h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{children:r(O(),s)}),(0,a.jsx)("p",{children:r(v(),s,s)}),(0,a.jsxs)("p",{children:["This change is ",(0,a.jsx)("b",{children:"irreversible"}),"."]}),(0,a.jsxs)(E.Ye,{alignItems:"center",gap:12,justifyContent:"end",paddingTop:32,children:[(0,a.jsx)(A.$n,{priority:"destructive",onClick:()=>L(),disabled:u,children:i("Transfer Account")}),(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>x(!1),disabled:u,children:i("Cancel")})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{children:i("Change your email address")}),(0,a.jsxs)("p",{children:[(0,a.jsx)("b",{children:i("This will change the email address on all of your Substack subscriptions.")})," ",i("You may want to do this for these reasons:"),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:i("You signed up for one or more subscriptions with the wrong email address.")}),(0,a.jsx)("li",{children:i("You want to transfer your existing subscriptions to a different Substack user.")})]})]}),(0,a.jsxs)(y.EY,{as:"p",translated:!0,children:["This action is ",(0,a.jsx)("b",{children:"irreversible"}),", so be certain you want to transfer before submitting."]}),(0,a.jsxs)("form",{className:"form",onSubmit:R,children:[(0,a.jsx)("input",{type:"email",name:"email",onInput:e=>l(e.target.value),onBlur:C,value:s,placeholder:(null==t?void 0:t.email)||"",disabled:I}),(0,a.jsx)("input",{type:"email",name:"email_doublecheck",onInput:e=>d(e.target.value),onBlur:C,value:c,placeholder:i("Confirm your email address"),disabled:I}),S&&(0,a.jsx)("div",{className:"error",children:S}),(0,a.jsxs)(E.Ye,{alignItems:"center",gap:12,justifyContent:"end",paddingTop:32,children:[(0,a.jsx)(A.$n,{priority:"destructive",type:"submit",disabled:!s||!c||s!==c||I,loading:I,children:i("Change Email")}),(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>history.back(),children:i("Cancel")})]})]})]})})})});var S=n(46453),w=n(32485),I=n.n(w),M=n(86500);n(24777);var C=n(24216),k=n(2548);function j(e){let{title:t,description:n}=e;return(0,a.jsxs)(k.I1,{flex:"grow",children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",children:t}),n&&(0,a.jsx)(y.EY.B4,{color:"secondary",children:n})]})}function L(e){let{className:t,isHighlighted:n,children:i,onClick:r,padding:o=8}=e;return(0,a.jsx)(k.Ye,{justifyContent:"space-between",alignItems:"center",padding:o,gap:12,radius:"sm",className:I()(t,n&&"highlight-sol3h_"),onClick:r,cursor:r?"pointer":void 0,children:i})}(0,C.a)("reader2-settings-box reader2-page-stack");var R=n(70408),T=n(83673),P=n.n(T),D=n(37946),B=n(16993),U=n(84843),G=n(80856);function F(){let e=(0,u._)(["To permanently delete ",', please type your email address ("','") into the space below.']);return F=function(){return e},e}function W(e){let t,{user:n,publicationUsers:i,subscriptions:r,confirmedLogin:s}=e,{iString:l,iTemplate:c}=(0,h.GO)(),[d,u]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1),g=P()(i.map(e=>e.publication)),f=(0,b.st)({pathname:"/api/v1/user",method:"DELETE"}),O=async()=>{(prompt(c(F(),n.email,n.email))||"").trim().toLowerCase()!==n.email.trim().toLowerCase()||await f.refetch() instanceof _.fk||(window.location.href="proxy.php?url=/")},v=f.error,x=[];if(v instanceof _.fk){let e=v.body;(null==e?void 0:e.errorType)==="ACTIVE_PAID_SUBS"?(t="ACTIVE_PAID_SUBS",x=g.filter(e=>v.body.publication_ids.includes(e.id))):(null==e?void 0:e.errorType)==="PAUSED_SUBS"&&(t="PAUSED_SUBS",x=g.filter(e=>v.body.publication_ids.includes(e.id)))}else t="OTHER";return(0,a.jsxs)(a.Fragment,{children:[d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j,{title:l("Delete your account"),description:(0,a.jsxs)(a.Fragment,{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,a.jsx)("a",{href:(0,G.gB)(),"data-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,a.jsx)(A.$n,{priority:"destructive",onClick:()=>m(!0),children:l("Delete account")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j,{title:l("Delete your account"),description:l("Permanently delete your account and information")}),(0,a.jsx)(A.$n,{priority:"destructive",onClick:()=>u(!0),disabled:!s,children:l("Delete account")})]}),f.error?(0,a.jsxs)(B.aF,{isOpen:p,onClose:()=>m(!1),children:[(0,a.jsx)(U.rQ,{onClose:()=>m(!1),title:l("ACTIVE_PAID_SUBS"===t?"Your publication has active paid subscriptions":"PAUSED_SUBS"===t?"Your publication has paused subscriptions":"Something went wrong"),icon:(0,a.jsx)(U.qx,{bg:"accent-red",icon:(0,a.jsx)(D.A,{stroke:"var(--color-semantic-error-fg-primary)"})}),description:(0,a.jsx)(E.VP,{gap:8,children:"OTHER"===t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY,{children:l("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,a.jsx)(y.EY,{children:l("If that doesn't help, please reach out to us: support@substack.com")})]}):(0,a.jsxs)(a.Fragment,{children:[l("You're listed as the author of at least one publication that still has active or paused paid subscriptions."),x.length>1&&(0,a.jsx)(E.VP,{gap:4,paddingLeft:20,children:x.map(e=>(0,a.jsx)(Y,{href:(0,N.muC)(e,{addBase:!0,section:"ACTIVE_PAID_SUBS"===t?"danger-zone":"payments-settings"}),children:e.name}))}),(0,a.jsx)(y.EY,{children:l("Please cancel these paid subscriptions from your publication's settings page and try again after a few minutes.")})]})})}),(0,a.jsx)(B.q1,{}),1===x.length&&x[0]&&(0,a.jsx)(B.jl,{alignButtons:"stretch",primaryButton:(0,a.jsx)(A.$n,{priority:"secondary",href:(0,N.muC)(x[0],{addBase:!0,section:"ACTIVE_PAID_SUBS"===t?"danger-zone":"payments-settings"}),children:l("Go to publication settings")})})]}):p&&(0,a.jsxs)(B.aF,{isOpen:p,onClose:()=>m(!1),children:[(0,a.jsx)(U.rQ,{title:l("Delete my Substack account"),description:(0,a.jsxs)(a.Fragment,{children:[l("This will delete all your data, cancel all your subscriptions, and permanently erase all your information."),(0,a.jsx)(y.KQ,{weight:"bold",children:l("You cannot undo this action.")})]}),icon:(0,a.jsx)(U.qx,{bg:"accent-red",icon:(0,a.jsx)(D.A,{stroke:"var(--color-semantic-error-fg-primary)"})}),onClose:()=>m(!1)}),(0,a.jsx)(B.cw,{children:(0,a.jsx)(y.EY.B3,{color:"secondary",children:(0,a.jsxs)(E.VP,{gap:20,children:[g.length&&(0,a.jsxs)(a.Fragment,{children:[l("The following publications will be deleted:"),(0,a.jsx)(E.VP,{gap:4,paddingLeft:20,children:g.map(e=>[(0,a.jsx)(Y,{href:(0,N.$_T)(e),children:e.name})])})]}),r.length>0&&(0,a.jsxs)(a.Fragment,{children:[l("The following subscriptions will be cancelled:"),(0,a.jsxs)(E.VP,{gap:4,paddingLeft:20,children:[r.slice(0,10).map(e=>(0,a.jsx)(Y,{href:(0,N.$_T)(e.publication),children:e.publication.name})),r.length>10&&(0,a.jsxs)(y.Yq,{href:(0,N.tFi)(),target:"_blank",rel:"noopener",decoration:"hover-underline",children:["+",r.length-10," ",l("more")]})]})]})]})})}),(0,a.jsx)(B.q1,{}),(0,a.jsx)(B.jl,{direction:"column",primaryButton:(0,a.jsx)(A.$n,{priority:"destructive",onClick:O,loading:f.isLoading,children:l("Delete my account")}),secondaryButton:(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>m(!1),disabled:f.isLoading,children:l("Cancel")})})]})]})}function Y(e){return(0,a.jsx)(y.Yq,(0,R._)((0,r._)({},e),{target:"_blank",rel:"noopener",decoration:"hover-underline"}))}function K(e){let{user:t}=e,{subscriptions:n,publicationUsers:i}=(0,S.t2)("Settings"),r=new Set([...(null!=i?i:[]).map(e=>{let{publication_id:t}=e;return t})]),o=(null!=n?n:[]).filter(e=>!r.has(e.publication_id));return(0,a.jsx)("div",{className:"delete-account-page",children:(0,a.jsx)("div",{className:"delete-account-container",children:(0,a.jsx)(L,{children:(0,a.jsx)(W,{user:t,publicationUsers:null!=i?i:[],subscriptions:o,confirmedLogin:!0})})})})}var H=n(65842);function V(e){let{questions:t}=e,{iString:n}=(0,h.GO)(),[i,r]=(0,o.useState)(t.map(e=>({question:e||"",value:""}))),s=(0,o.useCallback)((e,t)=>{r(i.map((n,a)=>a===t?{question:n.question,value:e}:n))},[i,r]),l=(0,b.st)({pathname:"/api/v1/mfa-recover",method:"POST"}),c=async e=>{var t,n,a;e.preventDefault(),await l.refetch({json:{answer_one:null==(t=i[0])?void 0:t.value,answer_two:null==(n=i[1])?void 0:n.value,answer_three:null==(a=i[2])?void 0:a.value}}) instanceof Error||(0,f.jL)({redirect:(0,N.tFi)()})},d=["one","two","three"];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY,{translated:!0,children:"Please answer your security questions below to recover your account."}),(0,a.jsx)("hr",{}),(0,a.jsxs)(E.I1,{as:"form",gap:24,paddingY:12,onSubmit:c,children:[i.map((e,t)=>{let{question:i,value:r}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY.H4,{children:i}),(0,a.jsx)(H.ks,{name:"answer_".concat(d[t]),placeholder:n("Type your answer here..."),value:r,onChange:e=>s(e.currentTarget.value,t),required:!0,autoFocus:0===t,autoComplete:"off",disabled:l.isLoading})]})}),l.error&&(0,a.jsx)(k.dt,{error:l.error}),(0,a.jsx)(E.Ye,{justifyContent:"end",children:(0,a.jsx)(A.$n,{priority:"primary",type:"submit",disabled:l.isLoading,children:n("Reset")})})]})]})}var z=n(93540),q=n(3160),J=n(79909),Z=n(85329),X=n(20500),Q=n(79661),$=n(76171),ee=n(41086);let et="form-MBPB6J";function en(e){let{email:t,title:n}=e,[i,r]=(0,o.useState)(!1),[s,l]=(0,o.useState)(t),[c,d]=(0,o.useState)(null),{iString:u}=(0,h.GO)(),{isLoading:p,refetch:m}=(0,b.st)({pathname:"/api/v1/forgot",method:"POST",auto:!1,deps:[]}),{trackInputFilled:f,trackSubmitPressed:N,trackError:O}=(0,g.a)("Forgot Password Form"),v=async e=>{e.preventDefault(),N(),d(null);let t=await m({json:{email:s,redirect:(0,ee.y)("redirect")||"",for_pub:(0,ee.y)("for_pub")||""}});if(t instanceof Error){if(O(t),t instanceof _.fk){var n,a,i,o;d((null==(i=t.body)||null==(a=i.errors)||null==(n=a[0])?void 0:n.msg)||(null==(o=t.body)?void 0:o.error)||"Something went wrong")}else d("Something went wrong");return}r(!0)};return(0,a.jsxs)("div",{className:"page typography login-page",children:[(0,a.jsx)(J.O,{title:"".concat(n||u("Forgot Password")," | Substack")}),(0,a.jsx)("div",{className:"container",children:(0,a.jsx)(E.VP,{gap:12,children:i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY.H1,{children:n||u("Check your email")}),(0,a.jsxs)(y.EY.B2,{translated:!0,as:"span",children:["If you have a Substack account, we've sent an email to ",(0,a.jsx)("b",{children:I18N.p(s)})," with a link that you can use to set a password. If you don't see this email within a few minutes, check your spam folder."]}),(0,a.jsx)(y.EY.B2,{children:(0,a.jsx)(y.Yq,{decoration:"underline",onClick:()=>r(!1),children:u("Try again")})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY.H1,{children:n||u("Set a new password")}),(0,a.jsx)("form",{onSubmit:v,className:et,children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsxs)(H.A0,{children:[(0,a.jsx)($.JU,{children:u("Your email address")}),(0,a.jsx)(Z.j,{name:"email",placeholder:u("email@example.com"),value:s,onInput:e=>l(e.currentTarget.value),onBlur:f,disabled:p})]}),(0,a.jsx)(A.$n,{priority:"primary",type:"submit",loading:p,disabled:p,children:u("Send email")}),c&&(0,a.jsx)("div",{className:"error",children:c})]})})]})})})]})}function ea(e){let{token:t}=e,n="/sign-in";(0,ee.y)("redirect")&&(n=(0,N.yRP)(n,{for_pub:(0,ee.y)("for_pub"),redirect:(0,ee.y)("redirect")}));let{iString:i}=(0,h.GO)(),r=(0,N.yRP)("/account/forgot",{for_pub:(0,ee.y)("for_pub"),redirect:(0,ee.y)("redirect")}),[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(""),[u,p]=(0,o.useState)(!1),[m,O]=(0,o.useState)(null),{isLoading:v,refetch:x}=(0,b.st)({pathname:"/api/v1/reset",method:"POST",auto:!1,deps:[]}),{trackInputFilled:S,trackSubmitPressed:w,trackError:I}=(0,g.a)("Reset Password Form"),M=s.length>=8,C=M&&s===c,k=()=>{u?p(!1):p(!0)},j=async e=>{e.preventDefault(),w(),O(null);let a=await x({json:{password:s,passwordConfirmation:c,token:t}});if(a instanceof Error){if(I(a),a instanceof _.fk){var i,r,o,l;O((null==(o=a.body)||null==(r=o.errors)||null==(i=r[0])?void 0:i.msg)||(null==(l=a.body)?void 0:l.error)||"Something went wrong")}else O("Something went wrong");return}(0,f.V2)(n,{local_navigation:!1})};return(0,a.jsxs)("div",{className:"page typography set-password-page",children:[(0,a.jsx)(J.O,{title:"".concat(i("Reset Password")," | Substack")}),t?(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsx)(y.EY.H1,{children:i("Set a new password")}),(0,a.jsx)("form",{onSubmit:j,className:et,children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsxs)(H.A0,{children:[(0,a.jsx)($.JU,{children:i("New password")}),(0,a.jsx)(Q.pd,{type:u?"text":"password",name:"password",value:s,onInput:e=>l(e.currentTarget.value),onBlur:S,placeholder:"",disabled:v,trailing:(0,a.jsx)(A.K0,{size:"xs",priority:"quaternary",onClick:()=>k(),children:u?(0,a.jsx)(q.A,{size:20}):(0,a.jsx)(z.A,{size:20})})}),(0,a.jsx)(X.EE,{color:M?"success":"secondary",children:i(M?"✓ At least 8 characters":"At least 8 characters")})]}),(0,a.jsxs)(H.A0,{children:[(0,a.jsx)($.JU,{children:i("Confirm password")}),(0,a.jsx)(Q.pd,{type:u?"text":"password",name:"passwordConfirmation",value:c,onInput:e=>d(e.currentTarget.value),onBlur:S,placeholder:"",disabled:v,trailing:(0,a.jsx)(A.K0,{size:"xs",priority:"quaternary",onClick:()=>k(),children:u?(0,a.jsx)(q.A,{size:20}):(0,a.jsx)(z.A,{size:20})})}),(0,a.jsx)(X.EE,{color:C?"success":"secondary",children:i(C?"✓ Passwords must match":"Passwords must match")})]}),(0,a.jsx)(A.$n,{priority:"primary",type:"submit",disabled:!(M&&C)||v,loading:v,children:i("Set password")}),m&&(0,a.jsx)("div",{className:"error",children:m})]})})]})}):(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsx)(y.EY.H1,{children:i("Invalid Password Link")}),(0,a.jsx)(y.EY.B2,{children:i("The link you've used to set your password was invalid.")}),(0,a.jsxs)(y.EY.B2,{translated:!0,children:["Try the link that was sent to you again or"," ",(0,a.jsx)(y.Yq,{decoration:"underline",href:r,children:"request another link"})," ","if it still doesn't work."]})]})})]})}var ei=n(44333);let er=(0,f.FY)(e=>{let{message:t}=e,n=(0,ei.lq)();return(0,o.useEffect)(()=>{t||n("/")},[t,n]),(0,a.jsxs)("div",{className:"container page account-settings",children:[t&&(0,a.jsx)("div",{className:"message success",children:t}),"Visit your ",(0,a.jsx)("a",{href:(0,N.nqe)(),children:"account page"})," to update these settings any time."]})});function eo(e){let{user:t,destination:n,postId:i}=e;return(0,a.jsxs)("div",{className:"page typography signup-page",path:"/flagged",children:[(0,a.jsx)(J.O,{title:"Flagged as TOS violation"}),(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("h2",{children:"Link Not Available"}),(0,a.jsxs)("p",{children:["The page you are attempting to access is unavailable."," ",(0,a.jsx)("a",{href:"".concat((0,N.$_T)()),"data-native":!0,children:"Click here"})," ","to view some more great writing."]}),(0,a.jsx)("p",{children:(0,a.jsx)("a",{href:(0,N.$_T)(),className:"button primary",children:"Go to substack.com"})}),!!(null==t?void 0:t.is_global_admin)&&(0,a.jsxs)("p",{children:["JUST FOR ADMINS:"," ",(0,a.jsx)("a",{className:"dangerous-redirect-link",href:n,onClick:()=>(0,M.u4)(M.qY.EMAIL_LINK_INTERSTITIAL_CLICKED,{destination:n,postId:i}),children:n})]})]})]})}var es=n(85478),el=n(17230),ec=n(47963),ed=n(72880),eu=n(31825),ep=n(89490);let em=e=>{let{backgroundColors:t,coverImageUrl:n,title:i,author:r,description:o,logoUrl:s,url:l}=e;return(0,a.jsx)("a",{href:l,className:"link-yK9SLE",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsxs)(E.I1,{radius:"md",overflow:"hidden",children:[(0,a.jsx)(ed.o,{className:"coverImage-QDwPRb",src:n,maxWidth:560}),(0,a.jsxs)(E.I1,{position:"relative",padding:16,paddingTop:40,flex:"grow",children:[(0,a.jsx)(ep.az,{className:"logoBackground-qEbqJp",position:"absolute",inset:0,style:s?{backgroundImage:"url(".concat((0,N.dJ9)(s),")"),zIndex:-2}:void 0}),(0,a.jsx)(ep.az,{position:"absolute",inset:0,style:{WebkitBackdropFilter:"blur(40px) brightness(0.85)",backdropFilter:"blur(40px) brightness(0.85)",background:"linear-gradient(180deg, rgba(".concat(t[0],",0.75), rgba(").concat(t[1],", 0.75)), var(--color-dark-bg-primary)"),zIndex:-1}}),(0,a.jsx)(ed.o,{className:"logo-F2l4AC",src:s,maxWidth:100}),(0,a.jsxs)(E.I1,{gap:24,position:"relative",flex:"grow",children:[(0,a.jsxs)(E.I1,{flex:"grow",alignItems:"start",textAlign:"left",className:"stack-Wj_MYv",children:[r&&(0,a.jsxs)(y.EY.Meta,{color:"white",opacity:60,children:["by ",r]}),(0,a.jsx)(y.EY.H4,{color:"white",clamp:1,children:i}),(0,a.jsx)(y.EY.B4,{color:"white",clamp:2,children:o})]}),(0,a.jsx)(E.I1,{children:(0,a.jsx)(E.Ye,{bg:"glass-thick",radius:"sm",paddingY:8,paddingX:16,gap:8,alignItems:"center",justifyContent:"center",children:(0,a.jsx)(y.EY.B4,{weight:"semibold",children:"Subscribe"})})})]})]})]})})};var eh=n(98949),eg=n(57324);let e_={aboutImage:"aboutImage-Ow1NSj","s-stack":"s-stack-wWazT6",sStack:"s-stack-wWazT6","s-stack-medium":"s-stack-medium-GP3irM",sStackMedium:"s-stack-medium-GP3irM","s-stack-small":"s-stack-small-u62DaG",sStackSmall:"s-stack-small-u62DaG","s-stack-large":"s-stack-large-JK8fyY",sStackLarge:"s-stack-large-JK8fyY","s-stack-xl":"s-stack-xl-lqBl8g",sStackXl:"s-stack-xl-lqBl8g",aboutHero:"aboutHero-lZByAF","page-width":"page-width-RMqSxc",pageWidth:"page-width-RMqSxc","app-badges":"app-badges-UZ0Zlq",appBadges:"app-badges-UZ0Zlq","app-badge":"app-badge-uPvDMM",appBadge:"app-badge-uPvDMM","s-grid-item":"s-grid-item-EDwaOz",sGridItem:"s-grid-item-EDwaOz","about-wrapper-connect":"about-wrapper-connect-Yg9DQ7",aboutWrapperConnect:"about-wrapper-connect-Yg9DQ7",h1:"h1-RX2QXz","s-grid-mobile-reverse":"s-grid-mobile-reverse-KMN81F",sGridMobileReverse:"s-grid-mobile-reverse-KMN81F","about-testimonials":"about-testimonials-xeAwJx",aboutTestimonials:"about-testimonials-xeAwJx","quote-wrapper":"quote-wrapper-pUvNlG",quoteWrapper:"quote-wrapper-pUvNlG","quote-avatar":"quote-avatar-tmC9mi",quoteAvatar:"quote-avatar-tmC9mi","quote-content":"quote-content-LLLUAq",quoteContent:"quote-content-LLLUAq","quote-source-name":"quote-source-name-ZiUNKG",quoteSourceName:"quote-source-name-ZiUNKG","quote-subscribe":"quote-subscribe-OGpqFs",quoteSubscribe:"quote-subscribe-OGpqFs","quote-source-pub":"quote-source-pub-jItea0",quoteSourcePub:"quote-source-pub-jItea0","quote-chrome":"quote-chrome-_BliDx",quoteChrome:"quote-chrome-_BliDx","quote-chrome-left":"quote-chrome-left-FgvV_l",quoteChromeLeft:"quote-chrome-left-FgvV_l","quote-chrome-center":"quote-chrome-center-SjdLmu",quoteChromeCenter:"quote-chrome-center-SjdLmu","quote-chrome-right":"quote-chrome-right-LOidXC",quoteChromeRight:"quote-chrome-right-LOidXC","about-model":"about-model-oJ6pT0",aboutModel:"about-model-oJ6pT0","model-showcase":"model-showcase-dqEvXQ",modelShowcase:"model-showcase-dqEvXQ","top-left":"top-left-XGDSpV",topLeft:"top-left-XGDSpV","top-right":"top-right-gJNoTm",topRight:"top-right-gJNoTm","bottom-left":"bottom-left-NsdFdZ",bottomLeft:"bottom-left-NsdFdZ","bottom-right":"bottom-right-AIUpge",bottomRight:"bottom-right-AIUpge","model-grid":"model-grid-gLqeQP",modelGrid:"model-grid-gLqeQP","about-showcase":"about-showcase-fnnnEZ",aboutShowcase:"about-showcase-fnnnEZ","showcase-marquee":"showcase-marquee-W7Ofb7",showcaseMarquee:"showcase-marquee-W7Ofb7","marquee-content":"marquee-content-eA8Ckp",marqueeContent:"marquee-content-eA8Ckp",scroll:"scroll-r8wRM_","marquee-reverse":"marquee-reverse-cUYJ0M",marqueeReverse:"marquee-reverse-cUYJ0M","section-inner":"section-inner-MIxhDy",sectionInner:"section-inner-MIxhDy","about-purpose":"about-purpose-iHBmDa",aboutPurpose:"about-purpose-iHBmDa","purpose-outer":"purpose-outer-rbxGQ6",purposeOuter:"purpose-outer-rbxGQ6","purpose-link":"purpose-link-pO5kao",purposeLink:"purpose-link-pO5kao","purpose-content-wrapper":"purpose-content-wrapper-pmQqFb",purposeContentWrapper:"purpose-content-wrapper-pmQqFb","purpose-heading":"purpose-heading-UGZeeo",purposeHeading:"purpose-heading-UGZeeo","purpose-content":"purpose-content-jzC2NH",purposeContent:"purpose-content-jzC2NH","purpose-image":"purpose-image-_fBtsH",purposeImage:"purpose-image-_fBtsH","press-outer":"press-outer-TwAwfo",pressOuter:"press-outer-TwAwfo","press-grid":"press-grid-F55Ofh",pressGrid:"press-grid-F55Ofh","press-quote":"press-quote-Q91mZR",pressQuote:"press-quote-Q91mZR","app-section":"app-section-RH_Cyz",appSection:"app-section-RH_Cyz","s-card-app":"s-card-app-drf_ym",sCardApp:"s-card-app-drf_ym","s-card-img":"s-card-img-mdsTWE",sCardImg:"s-card-img-mdsTWE","s-card-login":"s-card-login-v8A9GY",sCardLogin:"s-card-login-v8A9GY","s-card-h3":"s-card-h3-mBOWtN",sCardH3:"s-card-h3-mBOWtN","s-card-button":"s-card-button-lK6_JC",sCardButton:"s-card-button-lK6_JC","card-app-badges":"card-app-badges-Q_slWG",cardAppBadges:"card-app-badges-Q_slWG","card-app-badge":"card-app-badge-qXRKG7",cardAppBadge:"card-app-badge-qXRKG7"},eb={hero:"hero-znM2Dw","hero--short":"hero--short-GHyq7v",heroShort:"hero--short-GHyq7v","hero--green":"hero--green-GH8z9m",heroGreen:"hero--green-GH8z9m","hero--wash":"hero--wash-jWgP_V",heroWash:"hero--wash-jWgP_V",heroText:"heroText-A3YdjC",isDark:"isDark-s31Pzf",heroInnerRow:"heroInnerRow-rmeSbv",heroImg:"heroImg-Tbgevl",secondaryButton:"secondaryButton-lkQmoU"},ef=()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fill:"#FF6719",d:"M17.031 9.697a.9.9 0 0 1-.08.374.95.95 0 0 1-.213.322l-4.804 4.79q-.293.293-.66.293a.9.9 0 0 1-.666-.256.87.87 0 0 1-.256-.638q0-.204.08-.373.08-.168.205-.293l1.656-1.67 2.556-2.336.358.571-2.695.154H3.921q-.432 0-.696-.257a.92.92 0 0 1-.264-.68q0-.418.264-.675.264-.263.696-.263h8.591l2.695.146-.358.579-2.556-2.337-1.656-1.677a1 1 0 0 1-.205-.293.86.86 0 0 1-.08-.373q0-.381.256-.638a.9.9 0 0 1 .666-.256.8.8 0 0 1 .345.08q.175.074.33.228L16.738 9a.9.9 0 0 1 .212.323.9.9 0 0 1 .08.373"})}),eA=[{logo:'',quote:"Why is everyone suddenly on Substack?",url:"https://www.newsweek.com/why-everyone-suddenly-substack-2039011"},{logo:'',quote:"The New Substack Universe",url:"https://nymag.com/intelligencer/article/the-new-substack-universe.html"},{logo:'',quote:"The Loosening of American News Anchors",url:"https://www.nytimes.com/2025/03/31/business/media/tv-news-anchors-substack.html"},{logo:' ',quote:"Substack boosts video capabilities amid potential TikTok ban",url:"https://www.cnbc.com/2025/02/23/substack-boosts-video-capabilities-amid-potential-tiktok-ban.html"},{logo:'',quote:"To escape the algorithm, fashion girls are shopping via Substack",url:"https://www.voguebusiness.com/story/consumers/to-escape-the-algorithm-fashion-girls-are-shopping-via-substack"},{logo:'',quote:"In the streaming era, Substack helps indie rockers pay the bills. Can it last?",url:"https://www.theguardian.com/music/2022/aug/18/in-the-streaming-era-substack-helps-indie-rockers-pay-the-bills-can-it-last"}],eE=()=>(0,a.jsx)(a.Fragment,{children:eA.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:I()(e_["press-logo"]),dangerouslySetInnerHTML:{__html:e.logo}}),(0,a.jsxs)(y.EY.MarketingHeading4,{className:I()(e_["press-quote"]),children:["“",e.quote,"”"]}),(0,a.jsxs)("a",{href:e.url,children:["Read More ",(0,a.jsx)(ef,{})]})]}))});function ey(e){let{openInstallDialog:t,text:n}=e,i={utm_campaign:eg._9.appMarketing},r=(0,N.zw3)(i),o=(0,N.cxW)(i),{iString:s}=(0,h.GO)();return(0,eh.m0)()||(0,eh.aR)()?(0,a.jsx)(A.$n,{localNavigation:!1,href:(0,eh.m0)()?r:o,size:"md",children:n||s("Get the Substack app")}):(0,a.jsx)(A.$n,{size:"md",onClick:t,children:n||s("Get the Substack App")})}let eN=["aaronparnas","whattocook","georgesaunders","jameelajamil","jamespatterson","jessicareedkraus","jimacosta","joannagoddard","joesjournal","kareem","leandramcohen","mirandajuly","natesilver","pamelaanderson","pattismith","seanspicer","tinabrown","wishbonekitchen","ottolenghi","yourrichbff"],eO={aaronparnas:"The Parnas Perspective",whattocook:"What To Cook When You Don’t Feel Like Cooking",georgesaunders:"Story Club",jameelajamil:"A Low Desire To Please",jamespatterson:"Hungry Dogs",jessicareedkraus:"House Inhabit",jimacosta:"The Jim Acosta Show",joannagoddard:"Big Salad",joesjournal:"Joe’s Journal",kareem:"Kareem Abdul-Jabbar",leandramcohen:"The Cereal Aisle",mirandajuly:"Miranda July",natesilver:"Silver Bulletin",pamelaanderson:"The Open Journal",pattismith:"Patti Smith",seanspicer:"Sean Spicer",tinabrown:"Fresh Hell",wishbonekitchen:"The Group Chat",ottolenghi:"Ottolenghi",yourrichbff:"enRICHed"},ev={aaronparnas:"Aaron Parnas",whattocook:"Caroline Chambers",georgesaunders:"George Saunders",jameelajamil:"Jameela Jamil",jamespatterson:"James Patterson",jessicareedkraus:"Jessica Reed Kraus",jimacosta:"Jim Acosta",joannagoddard:"Joanna Goddard",joesjournal:"Joseph Gordon Levitt",kareem:"Kareem Abdul-Jabbar",leandramcohen:"Leandra Medine Cohen",mirandajuly:"Miranda July",natesilver:"Nate Silver",pamelaanderson:"Pamela Anderson",pattismith:"Patti Smith",seanspicer:"Sean Spicer",tinabrown:"Tina Brown",wishbonekitchen:"Wishbone Kitchen",ottolenghi:"Yotam Ottolenghi",yourrichbff:"Your Rich BFF"},ex={aaronparnas:"Attorney and political commentator breaking down U.S. and global news with clarity and urgency.",whattocook:"Recipe developer and food writer known for family-friendly, flavor-packed meals that anyone can cook.",georgesaunders:"Booker Prize-winning author sharing exclusive stories, writing advice, and deep dives into craft and character.",jameelajamil:"Actress and activist writing about media, wellness, mental health, and public discourse with radical honesty.",jamespatterson:"Bestselling author bringing original fiction and behind-the-scenes insights directly to his readers.",jessicareedkraus:"Narrative deep dives into the worlds of politics, celebrity, and internet culture—told with a sharp eye, skeptical mind, and unapologetically personal voice.",jimacosta:"Veteran journalist and CNN anchor offering behind-the-scenes analysis and unfiltered takes on U.S. politics.",joannagoddard:"Beloved lifestyle writer and founder of Cup of Jo, sharing personal essays, culture picks, and community conversation.",joesjournal:"Actor and founder of HitRecord sharing creative experiments, personal reflections, and conversations with fellow artists.",kareem:"NBA legend and award-winning author writing about sports, politics, history, and American culture.",leandramcohen:"Fashion writer and humorist exploring style, motherhood, and identity with signature wit and candor.",mirandajuly:"Artist, writer, and filmmaker sharing unfiltered, improvisational work across mediums, alongside a vibrant community chat.",natesilver:"Data-driven takes on politics, polling, and the media from the founder of FiveThirtyEight.",pamelaanderson:"Actress and activist sharing deeply personal writing, reflections, and updates on her creative work.",pattismith:"Iconic musician and poet chronicling life on tour, creativity, and behind-the-scenes reflections.",seanspicer:"Inside-the-room political commentary and conservative analysis from the former White House press secretary.",tinabrown:"Legendary editor and media powerhouse offering sharp commentary on culture, power, and politics.",wishbonekitchen:"Private chef and viral food creator serving up approachable, seasonal recipes and life updates from the kitchen.",ottolenghi:"Renowned chef and author offering exclusive recipes, stories, and test kitchen insights each week.",yourrichbff:"Former Wall Street trader turning finance into fun, with sharp, accessible money advice for everyday life."},eS={aaronparnas:["169, 149, 87","56, 74, 90"],whattocook:["134, 157, 196","44, 66, 108"],georgesaunders:["119, 128, 121","68, 85, 70"],jameelajamil:["169, 93, 96","79, 60, 41"],jamespatterson:["111, 164, 118","62, 108, 83"],jessicareedkraus:["148, 141, 140","141, 37, 12"],jimacosta:["120, 124, 136","95, 85, 61"],joannagoddard:["144, 172, 197","24, 78, 129"],joesjournal:["140, 77, 89","109, 76, 92"],kareem:["127, 114, 138","60, 36, 68"],leandramcohen:["173, 108, 84","68, 49, 47"],mirandajuly:["162, 126, 104","76, 44, 44"],natesilver:["4, 152, 40","7, 148, 37"],pamelaanderson:["148, 153, 134","107, 107, 46"],pattismith:["149, 132, 124","63, 62, 60"],seanspicer:["164, 116, 92","79, 60, 52"],tinabrown:["140, 13, 12","140, 13, 12"],wishbonekitchen:["137, 96, 16","137, 96, 16"],ottolenghi:["196, 124, 140","149, 4, 17"],yourrichbff:["109, 162, 92","95, 90, 53"]},ew={aaronparnas:"https://aaronparnas.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),whattocook:"https://whattocook.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),georgesaunders:"https://georgesaunders.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jameelajamil:"https://jameelajamil.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jamespatterson:"https://jamespatterson.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jessicareedkraus:"https://jessicareedkraus.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jimacosta:"https://jimacosta.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),joannagoddard:"https://joannagoddard.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),joesjournal:"https://journal.hitrecord.org/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),kareem:"https://kareem.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),leandramcohen:"https://leandramcohen.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),mirandajuly:"https://mirandajuly.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),natesilver:"https://www.natesilver.net/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),pamelaanderson:"https://pamelaanderson.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),pattismith:"https://pattismith.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),seanspicer:"https://www.seanspicer.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),tinabrown:"https://tinabrown.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),wishbonekitchen:"https://wishbonekitchen.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),ottolenghi:"https://ottolenghi.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),yourrichbff:"https://yourrichbff.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about)},eI=e=>{let{reverse:t=!1}=e,n=t?eN.slice(0,Math.round(eN.length/2)).map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(em,{author:ev[e],coverImageUrl:"/img/about_page/".concat(e,"-cover.jpg"),description:ex[e],logoUrl:"/img/about_page/".concat(e,"-logo.jpg"),title:eO[e],backgroundColors:eS[e],url:ew[e]})})):eN.slice(Math.round(eN.length/2)).map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(em,{author:ev[e],coverImageUrl:"/img/about_page/".concat(e,"-cover.jpg"),description:ex[e],logoUrl:"/img/about_page/".concat(e,"-logo.jpg"),title:eO[e],backgroundColors:eS[e],url:ew[e]})}));return(0,a.jsxs)("div",{className:I()(!0===t?e_["marquee-reverse"]:"",e_["showcase-marquee"]),children:[(0,a.jsx)("ul",{className:I()(e_["marquee-content"]),children:n}),(0,a.jsx)("ul",{className:I()(e_["marquee-content"]),"aria-hidden":"true",children:n})]})},eM=l(()=>{let{iString:e}=(0,h.GO)();(0,o.useEffect)(()=>{(0,M.u4)(M.qY.ABOUT_PAGE_VISITED)},[]);let{open:t,modal:n}=(0,ec.El)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appPage}),i=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.about}),r=(0,N.a7q)(),s=e("Start a Substack");return(0,a.jsxs)("div",{children:[(0,a.jsx)(E.pT,{as:"section",className:I()(e_.aboutHero),children:(0,a.jsxs)(E.pT,{className:I()(e_["page-width"]),direction:{desktop:"row",mobile:"column"},gap:48,children:[(0,a.jsxs)(E.I1,{alignItems:"start",justifyContent:"center",className:I()(e_["s-grid-item"],e_["s-stack"]),children:[(0,a.jsx)(y.EY.MarketingHeading1,{className:I()(e_.display),translated:!0,children:"Substack is the home for great culture"}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Substack is a new media app that connects you with the creators, ideas, and communities you care about most. Here, you can discover world-class video, podcasts, and writing from a diverse set of creators who cover politics, pop culture, food, philosophy, tech, travel, and so much more."}),(0,a.jsxs)(E.pT,{direction:{mobile:"column",desktop:"row"},gap:12,children:[(0,a.jsx)(ey,{openInstallDialog:t}),(0,a.jsx)(A.$n,{size:"md",priority:"secondary-outline",href:i,onClick:()=>(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:i}),localNavigation:!1,children:s})]}),(0,a.jsxs)("div",{className:I()(e_["app-badges"]),children:[(0,a.jsx)("a",{className:I()(e_["app-badge"]),href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_content:"about_page"}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"about_page",app_store:"ios"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/app-store-white.png?v=1",238),height:40,width:134,loading:"lazy"})}),(0,a.jsx)("a",{className:I()(e_["app-badge"]),href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_content:"about_page"}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"about_page",app_store:"android"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/google-play-white.png",238),height:40,width:134,loading:"lazy"})})]})]}),(0,a.jsx)(E.I1,{className:I()(e_["s-grid-item"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/hero-showcase-1.png"),maxWidth:1972,imageProps:{height:1930}})})]})}),(0,a.jsxs)("div",{className:I()(e_["about-wrapper-connect"]),children:[(0,a.jsx)(E.pT,{as:"section",direction:{desktop:"row",mobile:"column"},alignItems:"center",gap:48,justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.Ye,{gap:24,direction:{desktop:"row",mobile:"column"},alignItems:"center",style:{paddingInline:"1rem",maxWidth:1400,marginInline:"auto"},children:[(0,a.jsx)(E.I1,{children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/connect-showcase-1c.png"),maxWidth:2776,imageProps:{height:3108},style:{maxWidth:"100%",height:"auto"}})}),(0,a.jsxs)(E.I1,{className:I()(e_["s-stack"]),alignItems:"start",children:[(0,a.jsx)(y.EY.MarketingHeading2,{className:I()(e_.h1),translated:!0,children:"Discover the best work"}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"On Substack, you can easily explore the wide range of work across the platform. The Notes feed is a space to see what people are sharing and thinking about in real time. It's designed for discovery, conversation, and connection."}),(0,a.jsx)(ey,{openInstallDialog:t,text:e("Start exploring in the app")})]})]})}),(0,a.jsx)(E.pT,{as:"section",direction:{desktop:"row",mobile:"column"},alignItems:"center",gap:48,justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.Ye,{gap:24,direction:{desktop:"row",mobile:"column"},alignItems:"center",style:{paddingInline:"1rem",maxWidth:1400,marginInline:"auto"},children:[(0,a.jsxs)(E.I1,{className:I()(e_["s-stack"]),alignItems:"start",children:[(0,a.jsx)(y.EY.MarketingHeading3,{className:I()(e_.h1),translated:!0,children:"A more direct, meaningful connection"}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Live video lets you engage with your favorite writers and creators in real-time—whether it’s a collaborative conversation, breaking news reaction, or behind-the-scenes update."}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Chat offers a private space for deeper discussions between creators and their communities, fostering more authentic connection and conversation."}),(0,a.jsx)(ey,{openInstallDialog:t,text:e("Join the conversation in the app")})]}),(0,a.jsx)(E.I1,{className:I()(e_["s-grid-mobile-reverse"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/connect-showcase-2a.png"),maxWidth:2776,imageProps:{height:3108},style:{maxWidth:"100%",height:"auto"}})})]})})]}),(0,a.jsx)("section",{className:I()(e_["about-testimonials"]),children:(0,a.jsx)("div",{className:I()(e_["page-width"]),children:(0,a.jsxs)("div",{className:I()(e_["quote-wrapper"],e_["s-stack"],e_["s-stack-large"]),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/testimonial-avatar.png"),maxWidth:186,imageProps:{height:186},className:I()(e_["quote-avatar"])}),(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_["quote-content"]),children:"“The Hung Up chat feels like the roped-off VIP section of a nightclub, or the group chat of all the kids who got cellphones early. It’s a rapid-fire conversation of memes, hot takes, unpopular opinions, ruthless inside jokes, and earned (and sometimes unearned) shade. It’s my favorite part of running my newsletter. There’s no better low-effort, high-reward way to engage with all my readers.”"}),(0,a.jsxs)("div",{className:I()(e_["quote-source"]),children:[(0,a.jsx)("p",{className:I()(e_["quote-source-name"]),children:"—Hunter Harris"}),(0,a.jsx)("p",{className:I()(e_["quote-source-pub"]),children:"Hung Up"}),(0,a.jsx)(A.$n,{size:"md",href:"https://hunterharris.substack.com/",localNavigation:!1,className:I()(e_["quote-subscribe"]),children:"Subscribe"})]}),(0,a.jsxs)("div",{className:I()(e_["quote-chrome"]),children:[(0,a.jsx)("div",{className:I()(e_["quote-chrome-left"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/testimonial-chat-1a.png"),maxWidth:269,imageProps:{height:374}})}),(0,a.jsx)("div",{className:I()(e_["quote-chrome-center"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/testimonial-hunter-harris.png"),maxWidth:466,imageProps:{height:528}})}),(0,a.jsx)("div",{className:I()(e_["quote-chrome-right"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/testimonial-chat-2a.png"),maxWidth:269,imageProps:{height:395}})})]})]})})}),(0,a.jsx)("section",{className:I()(e_["about-model"]),children:(0,a.jsxs)("div",{className:I()(e_["model-grid"]),children:[(0,a.jsxs)("div",{className:I()(e_["page-width"],e_["page-width-narrow"]),children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_.h1),translated:!0,children:"A model that makes quality work possible"}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"When subscribers pay writers and creators directly, they can focus on doing the work they care about most. A few hundred paid subscribers can support a livelihood. A few thousand makes it lucrative."}),(0,a.jsx)(A.$n,{href:"https://open.substack.com/pub/on/p/2million",priority:"primary",style:{marginBlock:"1.5rem",marginInline:"auto"},children:e("Learn more about the Subscription Model")})]}),(0,a.jsx)("div",{className:I()(e_["model-showcase"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/model-showcase.png"),maxWidth:538,imageProps:{height:748}})}),(0,a.jsx)("div",{className:I()(e_["top-left"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/model-thumbnail-1a.png"),maxWidth:494,imageProps:{height:460}})}),(0,a.jsx)("div",{className:I()(e_["top-right"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/model-thumbnail-2a.png"),maxWidth:492,imageProps:{height:602}})}),(0,a.jsx)("div",{className:I()(e_["bottom-left"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/model-thumbnail-3a.png"),maxWidth:456,imageProps:{height:682}})}),(0,a.jsx)("div",{className:I()(e_["bottom-right"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/model-thumbnail-4a.png"),maxWidth:558,imageProps:{height:322}})})]})}),(0,a.jsxs)("section",{className:I()(e_["about-showcase"]),children:[(0,a.jsx)(eI,{reverse:!1}),(0,a.jsxs)("div",{className:I()(e_["section-inner"]),children:[(0,a.jsx)("h6",{className:I()(e_.h1),children:e("Independent voices on Substack")}),(0,a.jsx)(y.EY.MarketingBody,{style:{marginBlockEnd:"1rem"},translated:!0,children:"Here are just a few of the many people you can subscribe to"}),(0,a.jsx)(A.$n,{href:"/explore",priority:"primary",localNavigation:!1,style:{marginInline:"auto"},children:e("Discover even more voices")})]}),(0,a.jsx)(eI,{reverse:!0})]}),(0,a.jsxs)("section",{className:I()(e_["about-purpose"]),children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_.h1),translated:!0,children:"Why Writers and Creators Choose Substack"}),(0,a.jsxs)("div",{className:I()(e_["purpose-outer"]),children:[(0,a.jsx)("div",{className:I()(e_["purpose-image"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/purpose-bullet-1a.png"),maxWidth:289,imageProps:{height:220}})}),(0,a.jsxs)("div",{className:"purpose-content-wrapper",children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_["purpose-heading"]),translated:!0,children:"Control"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["purpose-content"]),translated:!0,children:"Substack puts creators in charge. With a subscription-based model, you can focus on serving your audience—not chasing clicks or appeasing advertisers. You decide what to publish, when to publish, and how to engage. You set the rules for your community and foster the kind of space you want to create. Substack takes a hands-off approach to moderation and supports community-led standards, giving you the tools to shape the conversation on your own terms."})]}),(0,a.jsxs)("a",{href:"/get-started",className:I()(e_["purpose-link"]),children:[e("How to start a Substack"),(0,a.jsx)(ef,{})]})]}),(0,a.jsxs)("div",{className:I()(e_["purpose-outer"]),children:[(0,a.jsx)("div",{className:I()(e_["purpose-image"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/purpose-bullet-2a.png"),maxWidth:289,imageProps:{height:220}})}),(0,a.jsxs)("div",{className:"purpose-content-wrapper",children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_["purpose-heading"]),translated:!0,children:"Aligned Incentives"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["purpose-content"]),translated:!0,children:"Substack only makes money when creators do. On average, 86% of subscription revenue goes directly to publishers, with the rest covering our revenue share and Stripe’s payment processing fees. This model aligns our success with yours—and to date, subscribers have paid out hundreds of millions of dollars to writers and creators."})]}),(0,a.jsxs)("a",{href:"/going-paid",className:I()(e_["purpose-link"]),children:[e("Estimate your earnings"),(0,a.jsx)(ef,{})]})]}),(0,a.jsxs)("div",{className:I()(e_["purpose-outer"]),children:[(0,a.jsx)("div",{className:I()(e_["purpose-image"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/purpose-bullet-3a.png"),maxWidth:289,imageProps:{height:220}})}),(0,a.jsxs)("div",{className:"purpose-content-wrapper",children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_["purpose-heading"]),translated:!0,children:"Growth"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["purpose-content"]),translated:!0,children:"Substack’s network is one of the most powerful engines for audience growth in independent media. More than 50% of all subscriptions and 30% of paid subscriptions originate from within the platform. With tens of millions of people actively watching, listening, and reading on Substack each week, discovery is built into the product—making it easier for every publication to find its audience."})]}),(0,a.jsxs)("a",{href:"/growthfeatures",className:I()(e_["purpose-link"]),children:[e("Grow your publication"),(0,a.jsx)(ef,{})]})]}),(0,a.jsxs)("div",{className:I()(e_["purpose-outer"]),children:[(0,a.jsx)("div",{className:I()(e_["purpose-image"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page/purpose-bullet-4a.png"),maxWidth:289,imageProps:{height:220}})}),(0,a.jsxs)("div",{className:"purpose-content-wrapper",children:[(0,a.jsx)(y.EY.MarketingHeading5,{className:I()(e_["purpose-heading"]),translated:!0,children:"Ownership"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["purpose-content"]),translated:!0,children:"Publishers own their content and relationship with their subscribers. If you ever want to leave the platform you can easily export your posts and subscriber emails and take them with you."})]}),(0,a.jsxs)("a",{href:"/switch",className:I()(e_["purpose-link"]),children:[e("Switch to Substack"),(0,a.jsx)(ef,{})]})]})]}),(0,a.jsx)("section",{className:I()(e_["press-outer"]),children:(0,a.jsx)("div",{className:I()(e_["press-grid"]),children:(0,a.jsx)(eE,{})})}),(0,a.jsx)(E.pT,{as:"section",className:I()(eb["hero--green"],eb.isDark,e_["app-section"]),direction:{desktop:"row",mobile:"column"},alignItems:"center",justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsx)(E.I1,{className:eb.heroInnerRow,justifyContent:"center",alignItems:"center",gap:32,style:{maxWidth:620},children:(0,a.jsxs)("div",{className:I()(e_["s-card"],e_["s-card-app"],e_["s-stack"]),children:[(0,a.jsx)(ed.o,{style:{marginInline:"auto"},src:(0,N.dJ9)("/img/substack-app-icon.png"),maxWidth:60,imageProps:{height:60}}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["s-card-h3"]),children:"The app for independent voices"}),(0,a.jsx)(eu.z,{className:I()(e_["s-card-button"]),size:"md",href:i,children:"Get started"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(e_["s-card-login"]),children:(0,a.jsxs)("small",{children:["Already have an account? ",(0,a.jsx)("a",{href:r,children:"Log in"})]})}),(0,a.jsxs)("div",{className:I()(e_["card-app-badges"]),children:[(0,a.jsx)("a",{className:I()(e_["card-app-badge"]),href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_content:"about_page"}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"about_page",app_store:"ios"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/app-store-white.png?v=1",238),height:40,width:134,loading:"lazy"})}),(0,a.jsx)("a",{className:I()(e_["card-app-badge"]),href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_content:"about_page"}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"about_page",app_store:"android"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/google-play-white.png",238),height:40,width:134,loading:"lazy"})})]})]})})}),n]})});var eC=n(21013),ek=n.n(eC),ej=n(48635);let eL={"outerContainer--bg-wash":"outerContainer--bg-wash-aqEigC",outerContainerBgWash:"outerContainer--bg-wash-aqEigC","outerContainer--bg-green":"outerContainer--bg-green-6reE7N",outerContainerBgGreen:"outerContainer--bg-green-6reE7N",innerContainer:"innerContainer-xVeehe","innerContainer--medium":"innerContainer--medium-Rrrpqj",innerContainerMedium:"innerContainer--medium-Rrrpqj","innerContainer--wide":"innerContainer--wide-iCgogJ",innerContainerWide:"innerContainer--wide-iCgogJ",heading:"heading-dT9IpG",headingWide:"headingWide-Z4dKkZ"},eR=e=>{let{backgroundColor:t,children:n,contentWidth:i="medium",paddingY:r={desktop:120,mobile:80},title:o,titleGap:s=40}=e;return(0,a.jsx)("section",{className:I()(t&&eL["outerContainer--bg-".concat(t)]),children:(0,a.jsx)("div",{className:I()(eL.innerContainer,eL["innerContainer--".concat(i)]),children:(0,a.jsxs)(E.I1,{gap:s,paddingY:r,children:[o&&(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",align:"center",className:I()(eL.heading,{[eL.headingWide]:"wide"===i}),children:o})}),n]})})})},eT={question:"question-YcMVMp",answer:"answer-C96XAT"},eP=e=>{let{backgroundColor:t,title:n,children:i,narrowTitleGap:r=!1}=e;return(0,a.jsx)(eR,{backgroundColor:t,title:n,titleGap:r?24:80,children:(0,a.jsx)(E.I1,{gap:80,justifyContent:"start",children:i})})},eD=e=>{let{question:t,answer:n}=e;return(0,a.jsxs)(E.pT,{className:eT.faq,direction:{desktop:"row",mobile:"column"},gap:{desktop:20,mobile:12},children:[(0,a.jsx)(y.EY.MarketingHeading3,{className:eT.question,weight:"regular",children:t}),(0,a.jsx)("div",{className:eT.answer,children:(0,a.jsx)(y.EY.MarketingBody,{children:n})})]},t)},eB={home:"home-sHDZiD",writerList:"writerList-_Brzf3",writerListBox:"writerListBox-YA_7VK",see_who_button:"see_who_button-wwlB9_",seeWhoButton:"see_who_button-wwlB9_",readingExperiencesImage:"readingExperiencesImage-a696q3",accordion:"accordion-p2Aea0",readingExperience:"readingExperience-Lu71zm",expanded:"expanded-rezlqJ",accordionItemContent:"accordionItemContent-UASLa6",expandCollapseButton:"expandCollapseButton-i7VFrE",readingExperienceHeaderButton:"readingExperienceHeaderButton-NMnxNW",horizontalDivider:"horizontalDivider-pvoteG",customHeaderText:"customHeaderText-VREOmX",coverImage:"coverImage-iwl6Dd",logoImg:"logoImg-BMqvTg",agreeTo:"agreeTo-AUxp6c",headerCta:"headerCta-K7Anhk",headerSecondaryCta:"headerSecondaryCta-_Fvby6"},eU=e=>{let{name:t,subtext:n,link:i}=e;return(0,a.jsx)("a",{href:i,target:"_blank",rel:"noopener",children:(0,a.jsxs)(E.I1,{gap:4,children:[(0,a.jsx)(y.EY.B1,{color:"substack",weight:"light",children:(0,a.jsx)("u",{children:t})}),(0,a.jsx)(y.EY.B3,{weight:"medium",children:n})]})})},eG=e=>{let{quote:t,from:n,linkToPub:i,subtext:r}=e;return(0,a.jsxs)(E.I1,{style:{maxWidth:460,width:"100%"},gap:24,children:[(0,a.jsx)(y.EY.MarketingBody,{children:t}),(0,a.jsx)(eU,{name:n,subtext:r,link:i})]})},eF=()=>{let{iString:e}=(0,h.GO)(),t=[{quote:e("The deeper I get into my career as an author, the more the urge to write feels like part of the very fibre of my being. I want to not be on social media, battling algorithms and acting as an aftercare manager for a distracted perception of my work in the midst of a blizzard of meaningless noise. Substack instantly gave me hope that I might be able to make the change I’d been desiring so much. Almost ten months down the line, I’ve not regretted it one bit."),from:"Tom Cox",linkToPub:"https://tomcox.substack.com/",subtext:e("Over 13,000 subscribers")},{quote:e("I have never before written for such an engaged and present audience, and it’s been kind of a revelation. I have always been suspicious of people who say they “enjoy” writing . . . but I enjoy writing this newsletter?"),from:"Mason Currey",linkToPub:"https://masoncurrey.substack.com/",subtext:e("Over 17,000 subscribers")},{quote:e("Start a Substack. Best thing I ever did. No more living in fear that the next layoffs will hit you. No more dealing with terrible corporate people who have no idea what doing something creative for a living is like."),from:"Molly Knight",linkToPub:"https://mollyknight.substack.com/",subtext:e("Thousands of paid subscribers")},{quote:e("My Substack began as a way for me to break free of the tumultuous and layoff-prone world of media and to start something of my very own, complete with full editorial freedom. Since then, what began as a simple newsletter has grown into a full-fledged community of readers and fellow writers alike. Thanks to the company's ever-updating list of writer-focused products, I've connected with a much larger audience than I'd have otherwise been able to reach on my own."),from:"Parker Molloy",linkToPub:"https://www.readtpa.com/",subtext:e("Over 29,000 subscribers")},{quote:e("My Substack has been up and running for a year now, and it’s been one of the best decisions I've made. I’ve been able to develop my skills, connect with a community of readers, and most importantly, it’s given me the financial freedom to focus on what I love doing."),from:"Tara Henley",linkToPub:"https://read.lukeburgis.com/",subtext:e("Over 11,000 subscribers")}];return(0,a.jsx)(E.I1,{gap:{desktop:80,mobile:48},alignItems:"start",justifyContent:"center",children:ek()(t,2).map(e=>(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:24,mobile:48},children:[(0,a.jsx)(eG,(0,r._)({},e[0])),e[1]&&(0,a.jsx)(eG,(0,r._)({},e[1]))]}))})},eW=e=>{let{title:t,imgSource:n,url:i}=e;return(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:8,mobile:32},children:[(0,a.jsx)(E.pT,{children:(0,a.jsx)("img",{src:(0,N.dJ9)(n),className:e_.pressCardImage,loading:"lazy"})}),(0,a.jsxs)(E.I1,{gap:24,style:{maxWidth:665,width:"100%",marginLeft:"auto"},children:[(0,a.jsx)(y.EY.MarketingHeading2,{children:t}),(0,a.jsx)("a",{className:e_.link,href:i,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,weight:"semibold",color:"substack",children:"Read more"}),(0,a.jsx)(ej.A,{})]})})]})]})},eY=()=>{let{iString:e}=(0,h.GO)(),t=[{title:e("Substack vs. The Giants"),imgSource:"/img/about_page_2/press/freethink.png",url:"https://www.freethink.com/series/challengers/substack"},{title:e('"My Own Little Fiefdom": Why Some Famous Novelists Are All About Substack'),imgSource:"/img/about_page_2/press/esquire.png",url:"https://www.esquire.com/entertainment/books/a39369153/novelists-on-substack-trend/"},{title:e("From me to your inbox: 33 of the best Substack newsletters"),imgSource:"/img/about_page_2/press/guardian.png",url:"https://www.theguardian.com/culture/2023/sep/10/inbox-33-substack-newsletters-culture-to-read-blogging"},{title:e("‘I make more money from my Substack column than I ever have from any media column I’ve ever written’ – how the publishing platform disrupted the industry"),imgSource:"/img/about_page_2/press/irish_independent.png",url:"https://www.independent.ie/life/i-make-more-money-from-my-substack-column-than-i-ever-have-from-any-media-column-ive-ever-written-how-the-publishing-platform-disrupted-the-industry/a1418076556.html"},{title:e("Is Substack the future of media?"),imgSource:"/img/about_page_2/press/new_statesman.png",url:"https://www.newstatesman.com/politics/media/2023/05/substack-future-media"},{title:e("The Writer Changing How London Thinks About Its Food"),imgSource:"/img/about_page_2/press/newyorker.png",url:"https://www.newyorker.com/news/letter-from-the-uk/the-writer-changing-how-london-thinks-about-its-food"},{title:e("Kareem Abdul-Jabbar speaks his truth on Substack."),imgSource:"/img/about_page_2/press/cbs.png",url:"https://www.cbsnews.com/news/kareem-abdul-jabbar-social-critic-on-substack/"},{title:e("The Women's Magazines of 2023 Are in a Facebook Group and Your Inbox"),imgSource:"/img/about_page_2/press/nytimes.png",url:"https://www.nytimes.com/2023/08/05/business/womens-magazines-facebook-social-media.html"}];return(0,a.jsx)(E.pT,{as:"section",className:e_.heroWash,paddingY:{desktop:120,mobile:48},paddingX:20,direction:"column",justifyContent:"center",alignItems:"center",children:(0,a.jsxs)(E.I1,{gap:80,style:{maxWidth:960,width:"100%"},children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",translated:!0,children:"In the press"}),t.map(e=>(0,a.jsx)(eW,(0,r._)({},e)))]})})},eK=e=>{let{title:t,body:n,imgSource:i,imageFirst:r=!1,link:o}=e;return(0,a.jsxs)(E.pT,{gap:{desktop:64,mobile:32},alignItems:"center",direction:{desktop:r?"row":"row-reverse",mobile:"column"},children:[(0,a.jsx)(E.I1,{children:(0,a.jsx)("img",{src:(0,N.dJ9)(i,800),className:e_.howSubstackWorksImage,loading:"lazy"})}),(0,a.jsxs)(E.I1,{gap:{desktop:32,mobile:24},className:e_.howSubstackWorksCardWrapper,children:[(0,a.jsx)(y.EY.MarketingHeading3,{className:e_.sectionHeader,children:t}),(0,a.jsx)(y.EY.MarketingBody,{children:n}),o&&(0,a.jsx)("a",{className:e_.link,href:o.url,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:o.text}),(0,a.jsx)(ej.A,{})]})})]})]})};var eH=n(50174),eV=n(73164);function ez(e){let{pageTitle:t,showNav:n=!0,showAvailableOn:i=!0,utm_source_prefix:r="app",primaryUpsell:o,secondaryUpsell:s,scrollDown:l}=e;return(0,a.jsx)("div",{className:"app-page",children:(0,a.jsxs)("div",{className:"app-marketing-header",children:[(0,a.jsx)("div",{className:I()("photo-background","unified-home")}),(0,a.jsx)("div",{className:"background-overlay"}),n&&(0,a.jsx)("div",{className:"app-top-nav",children:(0,a.jsx)("a",{className:"home-link",href:(0,N.$_T)(),children:(0,a.jsx)(eV.A,{width:30,height:30,color:"#fff"})})}),(0,a.jsxs)("div",{className:"app-header-center",children:[(0,a.jsx)("h1",{className:"app-page-title",children:t}),i&&(0,a.jsxs)("span",{className:"app-page-subtitle",children:["Available on"," ",(0,a.jsx)("a",{href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_source:"".concat(r,"-deck-appstore-button")}),onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_video",app_store:"ios"})},children:"iOS"})," ","and"," ",(0,a.jsx)("a",{href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_source:"".concat(r,"-deck-appstore-button")}),onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_video",app_store:"android"})},children:"Android"})]}),(0,a.jsx)("div",{className:"header-buttons",children:(0,a.jsxs)(E.Ye,{gap:12,direction:{desktop:"row",mobile:"column"},children:[o,s]})})]}),l&&(0,a.jsx)("div",{onClick:l,children:(0,a.jsx)(eH.A,{className:"caret-down-icon",size:32,fill:"none"})})]})})}function eq(e){let{className:t,openInstallDialog:n,utm_source:i,children:r}=e,o={utm_campaign:eg._9.appMarketing,utm_source:i},s=(0,N.zw3)(o),l=(0,N.cxW)(o);return(0,eh.m0)()||(0,eh.aR)()?(0,a.jsx)("a",{className:t,href:(0,eh.m0)()?s:l,children:r}):(0,a.jsx)("a",{className:I()("app-link",t),onClick:n,children:r})}function eJ(e){let{img:t,title:n,text:i,imgPlacement:r,openAppInstallModal:o,utm_source:s}=e,l="right"===r,c=(0,a.jsx)(ed.o,{className:"highlight-image",src:(0,N.dJ9)(t),imageProps:{quality:"auto:best",height:2e3},maxWidth:1e3,loading:"lazy"}),d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{children:n}),(0,a.jsx)("p",{children:i}),(0,a.jsxs)(eq,{openInstallDialog:o,utm_source:s,children:["Get the app"," ",(0,a.jsx)(ej.A,{className:"get-arrow",size:20,stroke:"var(--color-accent-fg-orange)",strokeWidth:2})]})]});return(0,a.jsxs)("div",{className:I()("persuader",!l&&"reversed"),children:[(0,a.jsx)("div",{className:I()("left-part",l?"text-part":"image-part"),children:l?d:c}),(0,a.jsx)("div",{className:I()("right-part",l?"image-part":"text-part"),children:l?c:d})]})}var eZ=n(17988),eX=n(91023);let eQ="page-Q0EyBu",e$="glassWrap-yFfW_Y",e0="highlightImage-mZqR8w",e1=eg._9.appMarketing,e2=eg.VU.appPage;function e3(e){let{abTestingId:t}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(J.O,{title:"Get the Substack app",description:"The best reading and listening experience."}),(0,eh.Fr)()?(0,a.jsx)(e9,{}):(0,a.jsx)(e4,{abTestingId:t})]})}function e4(e){let{abTestingId:t}=e,n=(0,eZ.useMediaQuery)({maxWidth:940});return(0,a.jsxs)(E.Ye,{flex:"fill",className:eQ,children:[(0,a.jsx)(J.O,{title:"Get the Substack app",description:"The best reading and listening experience."}),(0,a.jsx)("div",{className:"appTopNav-bUQRr9",children:(0,a.jsx)("a",{href:(0,N.$_T)(),children:(0,a.jsx)(eV.A,{width:30,height:30})})}),(0,a.jsxs)(E.Ye,{flex:"fill",alignItems:"stretch",justifyContent:"center",children:[(0,a.jsx)(E.I1,{className:"pageLeftSide-JsUPsx",alignItems:"center",justifyContent:"center",paddingX:24,children:(0,a.jsxs)(E.I1,{gap:32,children:[(0,a.jsxs)(E.I1,{gap:8,alignItems:"center",justifyContent:"center",flex:"grow",children:[(0,a.jsx)(y.EY.H1,{weight:"heavy",children:"Get the Substack app"}),(0,a.jsxs)(E.I1,{alignItems:"center",justifyContent:"center",children:[(0,a.jsx)(y.EY.B2,{color:"secondary",children:"The best reading and listening experience."}),(0,a.jsx)(y.EY.B2,{color:"secondary",children:"No ads. No spam."})]})]}),(0,a.jsx)(E.pT,{border:"detail",radius:"lg",className:"qrContainer-DToTAS",paddingTop:24,padding:16,children:(0,a.jsx)(ec.gF,{utm_campaign:e1,utm_source:e2,abTestingId:t})})]})}),!n&&(0,a.jsxs)(E.pT,{className:"pageRightSide-uJRvOI",justifyContent:"center",alignItems:"center",paddingX:24,children:[(0,a.jsx)(eX.A,{className:"noodles-V4XQPl"}),(0,a.jsxs)(E.pT,{className:"imageContainer-HHJeBv",flex:"grow",children:[(0,a.jsx)(E.pT,{className:I()(e$,"belowImg-GlzhlT"),padding:8,children:(0,a.jsx)(ed.o,{className:I()(e0),src:(0,N.dJ9)("/img/app_page/demo-screen-01-light.jpg"),maxWidth:560,loading:"lazy"})}),(0,a.jsx)(E.pT,{className:I()(e$,"aboveImg-WFd5uW"),padding:8,children:(0,a.jsx)(ed.o,{className:I()(e0),src:(0,N.dJ9)("/img/app_page/demo-screen-02-light.jpg"),maxWidth:560,loading:"lazy"})})]})]})]})]})}function e9(){return(0,a.jsx)(E.I1,{flex:"fill",className:eQ,justifyContent:"center",alignItems:"center",paddingX:12,children:(0,a.jsxs)(E.I1,{justifyContent:"center",alignItems:"center",gap:32,children:[(0,a.jsx)(E.pT,{radius:"md",shadow:"lg",justifyContent:"center",alignItems:"center",className:"mobileSubstackIconContainer-Oos258",children:(0,a.jsx)(eV.A,{width:32,height:32})}),(0,a.jsxs)(E.I1,{gap:8,alignItems:"center",children:[(0,a.jsx)(y.EY.H1,{align:"center",weight:"heavy",children:"Get the Substack app"}),(0,a.jsx)(y.EY.B2,{color:"secondary",align:"center",children:"The best reading and listening experience. No ads. No spam."})]}),(0,a.jsx)(ec.V3,{utm_campaign:e1,utm_source:e2})]})})}var e8=n(46271),e7=n(13022),e5=n(51203),e6=n(20347),te=n(3849),tt=n(32641),tn=n(78263),ta=n(92962),ti=n(24675);let tr=(0,o.forwardRef)((e,t)=>{var{className:n}=e,i=(0,tt._)(e,["className"]);return(0,a.jsx)(ep.az,{position:"relative",overflow:"auto",className:n,children:(0,a.jsx)("table",(0,R._)((0,r._)({ref:t},i),{className:I()(ta.A.table,"pencraft",n)}))})});tr.displayName="Table";let to=(0,o.forwardRef)((e,t)=>{var n=(0,e6._)({},(0,te._)(e));return(0,a.jsx)("thead",(0,r._)({ref:t,className:I()(ta.A.thead,tm(n))},n))});to.displayName="TableHeader";let ts=(0,o.forwardRef)((e,t)=>{var n=(0,e6._)({},(0,te._)(e));return(0,a.jsx)("tbody",(0,R._)((0,r._)({},n),{ref:t,className:ta.A.tbody}))});ts.displayName="TableBody",(0,o.forwardRef)((e,t)=>{var n=(0,e6._)({},(0,te._)(e));return(0,a.jsx)("tfoot",(0,R._)((0,r._)({ref:t},n),{className:ta.A.tfoot}))}).displayName="TableFooter";let tl=(0,o.forwardRef)((e,t)=>{var{borderbottom:n="detail"}=e,i=(0,tt._)(e,["borderbottom"]);return(0,a.jsx)("tr",(0,r._)({ref:t,className:I()(ta.A.tr,tm((0,r._)({borderbottom:n},i)))},i))});tl.displayName="TableRow";let tc=(0,o.forwardRef)((e,t)=>{var{className:n}=e,i=(0,tt._)(e,["className"]);return(0,a.jsx)("th",(0,r._)({ref:t,className:I()(ta.A.th,tp(i),n)},i))});tc.displayName="TableHeaderCell";let td=(0,o.forwardRef)((e,t)=>{var{className:n}=e,i=(0,tt._)(e,["className"]);return(0,a.jsx)("td",(0,r._)({ref:t,className:I()(ta.A.td,tp(i),n)},i))});td.displayName="TableCell",(0,o.forwardRef)((e,t)=>{var n=(0,e6._)({},(0,te._)(e));return(0,a.jsx)("caption",(0,R._)((0,r._)({ref:t},n),{className:ta.A.caption}))}).displayName="TableCaption",(0,ep.I4)({display:"flex",flex:"auto",justifyContent:"center",alignItems:"center",width:16,height:16});let tu=(0,ep.I4)({display:"flex",direction:"column",border:"detail",radius:"sm",overflow:"hidden"});function tp(e){return I()(e.align&&ti.A["align-".concat(e.align)],e.weight&&ti.A["weight-".concat(e.weight)],e.color&&ti.A["color-".concat(e.color)],e.ellipsis&&ti.A.ellipsis,e.maxWidth&&(0,ep.iF)({maxWidth:e.maxWidth}),e.minWidth&&(0,ep.iF)({minWidth:e.minWidth}),e.justifyContent&&(0,ep.iF)({display:"flex",justifyContent:e.justifyContent}),e.cursor&&(0,ep.iF)({cursor:e.cursor}),e.borderleft&&ta.A["border-left-".concat(e.borderleft)],e.borderright&&ta.A["border-right-".concat(e.borderright)],e.position&&ta.A["position-".concat(e.position)])}function tm(e){return I()(e.borderbottom&&ta.A["border-bottom-".concat(e.borderbottom)],e.borderleft&&ta.A["border-left-".concat(e.borderleft)],e.borderright&&ta.A["border-right-".concat(e.borderright)],e.bg&&tn.A["bg-".concat(e.bg)],e.cursor&&tn.A["cursor-".concat(e.cursor)])}var th=n(81929),tg=n(16291);function t_(e){let{appeals:t}=e,{iString:n}=(0,h.GO)();return(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsx)(y.EY.H3,{children:n("Appeal history")}),(0,a.jsx)(tu,{children:(0,a.jsxs)(tr,{children:[(0,a.jsx)(to,{children:(0,a.jsxs)(tl,{bg:"primary-hover",children:[(0,a.jsx)(tc,{children:n("Status")}),(0,a.jsx)(tc,{children:n("Date")})]})}),(0,a.jsx)(ts,{children:0===t.length?(0,a.jsx)(tl,{children:(0,a.jsx)(td,{colSpan:2,children:(0,a.jsx)(y.EY,{color:"secondary",children:n("No appeals yet")})})}):t.map(e=>{let t;return(0,a.jsxs)(tl,{borderbottom:"detail",children:[(0,a.jsx)(td,{children:(e=>{switch(e){case"rejected":return(0,a.jsx)(th.vw,{theme:"error",children:n("Rejected")});case"under_review":return(0,a.jsx)(th.vw,{theme:"warn",children:n("Under Review")});case"approved":return(0,a.jsx)(th.vw,{theme:"success",children:n("Approved")});default:return null}})(e.status)}),(0,a.jsx)(td,{children:(0,a.jsx)(y.EY,{children:(t=e.created_at,(0,tg.A)(t).format("MMM D, YYYY"))})})]},"".concat(e.status,"-").concat(e.created_at))})})]})}),t.length>0&&(0,a.jsxs)(y.EY.B4,{color:"secondary",children:[n("Showing")," 1 – ",t.length," ",n("of")," ",t.length," ",n("results")]})]})}var tb=n(11510),tf=n(3140),tA=n(590),tE=n(8149);let ty="icon-cSosiy",tN=e=>{let{question:t,answer:n,startExpanded:i=!1,className:r,answerClassName:s}=e,[l,c]=(0,o.useState)(i);return(0,a.jsxs)(E.I1,{className:I()(r,"container-jcZ5pc"),paddingY:32,borderBottom:"detail",onClick:()=>{c(!l)},children:[(0,a.jsxs)(E.Ye,{alignItems:"start",gap:16,justifyContent:"space-between",children:[(0,a.jsx)(y.EY.B3,{color:"primary",weight:"semibold",children:t}),l?(0,a.jsx)(tf.A,{className:ty}):(0,a.jsx)(tA.A,{className:ty})]}),(0,a.jsx)(tE.N,{open:l,children:(0,a.jsx)(E.Ye,{paddingTop:16,className:I()(s,"answer-cilEbU"),onClick:e=>{e.stopPropagation()},children:(0,a.jsx)(y.EY.B3,{color:"secondary",children:"string"==typeof n?(0,a.jsx)("p",{children:n}):n})})})]})},tO="image-l8HzWl",tv="narrowImage-PsI4FM",tx=e=>{let{title:t,children:n,backgroundColor:i,gap:r={desktop:0,mobile:80},paddingY:o,contentWidth:s="wide",titleGap:l={desktop:40,mobile:80}}=e;return(0,a.jsx)(eR,{title:t,titleGap:l,contentWidth:s,backgroundColor:i,paddingY:o,children:(0,a.jsx)(E.I1,{className:"benefitsSectionInner-eMyfJy",gap:r,children:n})})},tS=e=>{let{title:t,subtitle:n,body:i,link:r,image:o,maxWidth:s,narrowImage:l,isImageOnRight:c=!1}=e;return(0,a.jsxs)(E.pT,{className:I()("benefit-OHlNCn",{"readableWidth-nt5I_p":c}),direction:{desktop:"row",mobile:c?"column-reverse":"column"},justifyContent:{desktop:c?"space-between":"center",mobile:"start"},gap:{desktop:20,mobile:24},alignItems:"center",style:{maxWidth:s},children:[!c&&(0,a.jsx)("img",{className:I()(tO,l?tv:null),src:(0,N.dJ9)(o.path,o.width)}),(0,a.jsxs)(E.I1,{className:"text-kDX02V",gap:24,children:[(0,a.jsxs)(E.I1,{gap:{desktop:16,mobile:12},children:["string"==typeof t?(0,a.jsx)(y.EY.MarketingHeading2,{weight:"regular",children:t}):t,n&&(0,a.jsx)(y.EY.MarketingSubtitle,{children:n})]}),"string"==typeof i?(0,a.jsx)(y.EY.MarketingBody,{children:i}):i,r&&(0,a.jsx)("a",{href:r.url,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:r.text}),(0,a.jsx)(ej.A,{})]})})]}),c&&(0,a.jsx)("img",{className:I()(tO,l?tv:null),src:(0,N.dJ9)(o.path,o.width)})]})},tw={bookstackImage:"bookstackImage-Ise02R",collapsibleQuestion:"collapsibleQuestion-ycLb8k",collapsibleQuestionAnswer:"collapsibleQuestionAnswer-u8Psq4",bookImage:"bookImage-kOO4Og",postImage:"postImage-Li93RD",speechBubbleImage:"speechBubbleImage-uA8of8",size28:"size28-rNChqz",divider:"divider-xx97Dp",footer:"footer-WIilAH",substackPostImageTitle:"substackPostImageTitle-ylNJsB",stepsContainer:"stepsContainer-PPEVxY",button:"button-HBX5bF",avatar:"avatar-F0j0Fg",authorImage:"authorImage-IddtaG",border:"border-CeypGV",link:"link-ncrIGh"},tI=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.book}),tM=e=>{let{name:t,subtext:n,link:i}=e;return(0,a.jsx)("a",{className:tw.link,href:i,target:"_blank",rel:"noopener",children:(0,a.jsxs)(E.I1,{children:[(0,a.jsx)(y.EY.MarketingHeading4,{color:"substack",weight:"regular",children:(0,a.jsx)("u",{children:t})}),(0,a.jsx)(y.EY.B3,{weight:"regular",children:n})]})})},tC=e=>{let{title:t,imageUrl:n,url:i}=e;return(0,a.jsx)("a",{className:tw.link,href:i,target:"_blank",rel:"noopener",children:(0,a.jsxs)(E.I1,{className:tw.substackPostImageTitle,justifyContent:"space-between",gap:20,children:[(0,a.jsxs)(E.I1,{gap:16,children:[(0,a.jsx)("img",{className:tw.postImage,src:(0,N.dJ9)(n,342)}),(0,a.jsx)(y.EY.B3,{weight:"semibold",children:t})]}),(0,a.jsxs)(E.Ye,{alignItems:"center",gap:4,children:[(0,a.jsx)(y.EY.B3,{color:"substack",weight:"semibold",children:"Read more"}),(0,a.jsx)(ej.A,{size:24,stroke:"var(--color-accent-fg-orange)"})]})]})})};var tk=n(43241);let tj=e=>{let{backgroundColor:t,title:n,body:i,leftBasis:o,bodyMaxWidth:s,primaryAction:l,secondaryAction:c,image:d,height:u="regular"}=e,p="green"===t;return(0,a.jsx)(E.pT,{as:"section",className:I()(eb.hero,eb["hero--".concat(t)],p&&eb.isDark,"short"===u&&eb["hero--short"]),padding:20,direction:{desktop:"row",mobile:"column"},alignItems:{desktop:"center",mobile:"start"},justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.pT,{className:eb.heroInnerRow,direction:{desktop:"row",mobile:"column"},justifyContent:{desktop:"center",mobile:"start"},alignItems:"center",gap:32,style:{maxWidth:1156},children:[(0,a.jsxs)(E.I1,{className:I()(eb.heroText),gap:32,style:{flexBasis:o},children:[(0,a.jsx)(y.EY.MarketingHeading1,{color:p?"white":void 0,children:n}),(0,a.jsx)(y.EY.MarketingBody,{color:p?"white":void 0,style:{maxWidth:s},children:i}),(0,a.jsxs)(E.pT,{gap:12,direction:{desktop:"row",mobile:"column"},children:[(0,a.jsx)(A.$n,(0,R._)((0,r._)({size:"lg"},l.buttonProps),{children:l.text})),c&&(0,a.jsx)(A.$n,(0,R._)((0,r._)({size:"lg",priority:"secondary",className:eb.secondaryButton},c.buttonProps),{children:c.text}))]})]}),(0,a.jsx)("img",{src:(0,N.dJ9)(d.path,d.width),className:eb.heroImg,style:{flexBasis:o?1124-o:void 0}})]})})},tL=e=>{let{backgroundColor:t,quote:n,author:i,authorImage:o,action:s,quoteIncludesPunctuation:l}=e;return(0,a.jsx)(eR,{contentWidth:"medium",backgroundColor:t,children:(0,a.jsxs)(E.I1,{gap:32,alignItems:"center",children:[(0,a.jsx)(tR,{quote:n,author:i,authorImage:o,quoteIncludesPunctuation:l}),s&&(0,a.jsx)(A.$n,(0,R._)((0,r._)({size:"lg"},s.buttonProps),{children:s.text}))]})})},tR=e=>{let{quote:t,author:n,authorImage:i,quoteIncludesPunctuation:r}=e;return(0,a.jsxs)(E.I1,{gap:32,alignItems:"center",children:[(0,a.jsxs)(y.EY.MarketingQuote,{children:[!r&&"“",t,!r&&"”"]}),i?(0,a.jsxs)(E.pT,{direction:"row",alignItems:"center",gap:12,children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)(i),maxWidth:50,imageProps:{height:50},style:{borderRadius:50}}),(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",children:n})]}):(0,a.jsxs)(y.EY.MarketingBody,{weight:"semibold",children:["– ",n]})]})},tT=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.bulletin}),tP=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.bulletin});var tD=n(17582),tB=n.n(tD);let tU={major:"Product Release",minor:"Minor Update",patch:"Bugfix"},tG=e=>{let{change:t}=e;return(0,a.jsxs)("div",{className:"change-item",children:[(0,a.jsxs)("div",{className:"change-head",children:[(0,a.jsx)("span",{className:"change-type",children:tU[t.type]}),(0,a.jsx)("span",{className:"change-time",children:(0,tg.A)(t.made_public_on).fromNow()})]}),(0,a.jsx)(tB(),{children:(0,a.jsx)("div",{children:t.summary})})]},t.id)},tF=e=>{let{publicChanges:t}=e;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(J.O,{title:"Changelog",description:"Recent product changes"}),(0,a.jsx)("div",{className:"www-about-page page",children:(0,a.jsxs)("div",{className:"about-hero",children:[(0,a.jsx)("h1",{children:"Recent changes"}),(0,a.jsxs)("p",{children:["This is a running list of notable product changes happening at Substack. For other announcements and company posts, check out our ",(0,a.jsx)("a",{href:"https://on.substack.com/",children:"blog"}),"."]})]})}),(0,a.jsx)("div",{className:"www-about-page page top-border no-pad",children:(0,a.jsx)("div",{className:"changelog",children:t.map(e=>(0,a.jsx)(tG,{change:e}))})}),(0,a.jsx)("div",{className:"www-about-page page top-border",children:(0,a.jsxs)("div",{className:"join-team",children:[(0,a.jsx)("h2",{children:"Join our team"}),(0,a.jsx)("p",{children:"Founded in 2017, Substack is based in San Francisco and backed by Andreessen Horowitz, Y Combinator, Fifty Years, and other great investors. We're building a better business model for writing."}),(0,a.jsxs)("p",{children:["Want to know more? See our ",(0,a.jsx)("a",{href:"/jobs?utm_source=".concat(eg.VU.about),children:"jobs page"}),"."]})]})})]})},tW=e=>{let{children:t,borderTop:n,borderBottom:i=!0}=e;return(0,a.jsx)("div",{className:I()("container-sA0f9x",{"containerBorderTop-AVqCAF":n,"containerBorderBottom-KQl_LA":i}),children:(0,a.jsx)(E.I1,{alignItems:"center",children:t})})},tY=e=>{let{pubName:t,pubLogoUrl:n,description:i,pubUrl:r,cohortName:o,small:s}=e;return(0,a.jsx)("div",{className:I()("cohort-example",s?"example-small":"example-big"),children:r?(0,a.jsxs)("a",{href:"".concat(r,"/?utm_source=").concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(o),target:"_blank",onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:o,link_type:"example"})},rel:"noopener",children:[n&&(0,a.jsx)("img",{src:n,alt:"",className:"cohort-example-pub-logo"}),(0,a.jsx)("div",{className:"cohort-example-pub-name",children:t}),(0,a.jsx)("div",{className:"cohort-example-description",children:i})]}):(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)("img",{src:n,alt:"",className:"cohort-example-pub-logo"}),(0,a.jsx)("div",{className:"cohort-example-pub-name",children:t}),(0,a.jsx)("div",{className:"cohort-example-description",children:i})]})})},tK=e=>{let{title:t,imageUrl:n,description:i,caseStudyUrl:r,cohortName:o}=e;return(0,a.jsx)("div",{className:"case-study",children:(0,a.jsxs)("a",{href:"".concat(r,"/?utm_source=").concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(o),target:"_blank",onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:o,link_type:"case study"})},rel:"noopener",children:[(0,a.jsx)("img",{src:n,alt:"",className:"case-study-image"}),(0,a.jsx)("div",{className:"case-study-title",children:t}),(0,a.jsx)("div",{className:"case-study-description",children:i})]})})},tH=e=>{let{header:t,subtitle:n,imageUrl:i,signupUrl:r,cohortName:o,heroImageSize:s}=e;return(0,a.jsx)("div",{className:"cohort-hero",children:(0,a.jsxs)("div",{className:"cohort-hero-content",children:[(0,a.jsx)("img",{className:"cohort-hero-image",src:i,alt:"finance-illustration",style:{maxWidth:null!=s?s:"620px"}}),(0,a.jsx)("div",{className:"cohort-hero-header",children:t}),(0,a.jsx)("div",{className:"cohort-hero-subtitle",children:n}),(0,a.jsx)("a",{className:"button big-button primary",href:r,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:o,link_type:"get started"})},children:"Get started"})]})})},tV=e=>{let{testimonial:t,authorName:n,publicationUrl:i,publicationName:r,cohortName:o}=e;return(0,a.jsx)(tW,{children:(0,a.jsxs)("div",{className:"cohort-testimonial-content",children:[(0,a.jsx)("div",{className:"cohort-testimonial-text",children:t}),(0,a.jsxs)("div",{className:"author-name-minimal",children:["–"," ",n,r?(0,a.jsxs)(a.Fragment,{children:[", ",(0,a.jsx)("a",{href:"".concat(i,"/?utm_source=").concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(o),target:"_blank",onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:o,link_type:"testimonial"})},rel:"noopener",children:r})]}):null]})]})})},tz=e=>{let{testimonial:t,authorName:n,publicationName:i,signupUrl:r,publicationUrl:o,cohortName:s,buttonCopy:l}=e,{iString:c}=(0,h.GO)();return(0,a.jsx)(tW,{children:(0,a.jsxs)("div",{className:"cohort-testimonial-content",children:[(0,a.jsx)("div",{className:"cohort-testimonial-text",children:t}),(0,a.jsxs)("div",{className:"author-name-minimal",children:["–"," ",n,i?(0,a.jsxs)(a.Fragment,{children:[", ",(0,a.jsx)("a",{href:"".concat(o,"/?utm_source=").concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(s),target:"_blank",onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:s,link_type:"testimonial"})},rel:"noopener",children:i})]}):null]}),r?(0,a.jsx)("a",{className:"button big-button primary",href:r,style:{height:"48px",lineHeight:"28px",borderRadius:"4px",marginTop:"40px"},onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:s,link_type:"testimonial"})},children:null!=l?l:c("Get started")}):null]})})},tq=e=>{let{imageUrl:t,title:n,subtitle:i,isImageLeft:r=!1,small:o=!1,maxWidth:s,belowTheFold:l}=e;return(0,a.jsxs)("div",{className:r?"cohort-big-benefits-section cohort-big-benefits-section-left":"cohort-big-benefits-section",children:[s?(0,a.jsx)(ed.o,{src:t,alt:"illustration-shopping-cart",className:"cohort-big-benefits-section-image",maxWidth:s,loading:l?"lazy":void 0}):(0,a.jsx)("img",{src:t,alt:"illustration-shopping-cart",className:"cohort-big-benefits-section-image",loading:l?"lazy":void 0}),(0,a.jsxs)("div",{className:o?"cohort-big-benefits-section-text-container-small":"cohort-big-benefits-section-text-container",children:[(0,a.jsx)("div",{className:"cohort-big-benefits-section-title",children:n}),(0,a.jsx)("div",{className:"cohort-big-benefits-section-subtitle",children:i})]})]})},tJ=e=>{let{title:t,subtitle:n,action:i,image:r}=e;return(0,a.jsx)("div",{className:"blogger-hero",children:(0,a.jsxs)("div",{className:"blogger-hero-content",children:[(0,a.jsx)("div",{className:"blogger-hero-header",children:t}),(0,a.jsx)("div",{className:"blogger-hero-subtitle",children:n}),i&&(0,a.jsx)("a",{className:"button big-button primary",href:i.buttonProps.href,style:{height:"48px",lineHeight:"28px",borderRadius:"4px",marginBottom:"64px"},"data-native":!0,onClick:i.buttonProps.onClick,children:i.text}),r&&(0,a.jsx)("img",{className:"blogger-hero-image",src:(0,N.dJ9)(r.path,r.width),alt:r.altText,style:{maxWidth:.5*r.width}})]})})},tZ=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.bloggers}),tX="bloggers",tQ=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for bloggers",description:"Bloggers come to Substack to do their best writing and build thriving subscription businesses."}),(0,a.jsx)(tJ,{title:"The home for great blogging.",subtitle:"Bloggers come to Substack to do their best writing and build thriving subscription businesses.",action:{text:"Get started",buttonProps:{href:tZ,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:tX,link_type:"get started"})}}},image:{path:"/img/cohorts/bloggers/blogger-hero.png",width:1240,altText:"blogger illustration"}}),(0,a.jsx)(tV,{testimonial:"“Moving to Substack was a boon to my writing productivity. I don’t have to think about anything except writing and that is how I like it.”",authorName:"Kevin Rapp",publicationName:"Full of Krapp",publicationUrl:"https://fullofkrapp.substack.com",cohortName:tX}),(0,a.jsx)("div",{className:"cohort-substack-benefits",children:(0,a.jsxs)("div",{className:"cohort-substack-benefits-content",children:[(0,a.jsxs)("div",{className:"benefits-text-container",children:[(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"A blog – but with email."}),(0,a.jsx)("div",{className:"benefit-description",children:"Substack’s simple system lets you publish to the web and email, so you can find new readers and always reach your existing audience."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Subscription publishing made simple."}),(0,a.jsx)("div",{className:"benefit-description",children:"Choose which posts you publish as free or only for paid subscribers. Zero tech knowledge required. We take care of everything except the hard part (the writing itself)."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Switching to Substack takes less than 5 minutes."}),(0,a.jsxs)("div",{className:"benefit-description",children:[(0,a.jsx)("a",{href:"/switch?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.bloggers),children:"Import your content and mailing lists"})," from Beehiiv, WordPress, Medium, Tumblr, MailChimp, TinyLetter, Ghost, and even some custom web pages."]})]})]}),(0,a.jsx)("img",{src:"/img/cohorts/bloggers/blogger-feathers.png",alt:"benefits-illustration",className:"benefit-image"})]})}),(0,a.jsx)(tz,{testimonial:"“As long as I've been on the internet, I feel like I've never had [this] kind of one-to-one relationship with someone who is reading my work.”",authorName:"Hunter Harris",publicationName:"Hung Up",publicationUrl:"https://hunterharris.substack.com",signupUrl:tZ,cohortName:tX}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Great bloggers are on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"From food and faith to politics and economics, Substack is the new home for the world's best bloggers."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Alicia Kennedy",pubLogoUrl:"/img/cohorts/bloggers/alicia.png",description:"Alicia Kennedy has been covering Puerto Rico’s culinary scene and foodways since 2015. As of 2021, more than 10,000 people have signed up to read her Substack.",pubUrl:"https://www.aliciakennedy.news",cohortName:tX}),(0,a.jsx)(tY,{pubName:"Matt Yglesias",pubLogoUrl:"/img/cohorts/bloggers/yglesias.png",description:"Matthew Yglesias, co-founder of Vox, started Slow Boring on Substack in 2020. Slow Boring counts more than 9,000 paying subscribers, generating more than $70,000 a month.",pubUrl:"https://www.slowboring.com",cohortName:tX})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Ijeoma Oluo",pubLogoUrl:"/img/cohorts/bloggers/ijeoma.png",description:"Ijeoma Oluo is a former blogger and the author of #1 New York Times Bestseller So You Want to Talk About Race. On Substack, she shares writing tips and a behind-the-scenes look at her process.",pubUrl:"https://ijeomaoluo.substack.com",cohortName:tX}),(0,a.jsx)(tY,{pubName:"Jenny Rosenstrach",pubLogoUrl:"/img/cohorts/bloggers/jenny.png",description:"Jenny Rosenstrach has written Dinner: A Love Story for more than a decade. She moved her blog and its 1,500-post archive to Substack in January 2021.",pubUrl:"https://dinneralovestory.substack.com",cohortName:tX})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Courtney Martin",pubLogoUrl:"/img/cohorts/bloggers/courtney.png",description:'Courtney had a weekly column at the On Being Project, and transferred her readers to Substack in 2019. She was “amazed at the response" from readers eager to fund her.',pubUrl:"https://courtney.substack.com",cohortName:tX}),(0,a.jsx)(tY,{pubName:"Judd Legum",pubLogoUrl:"/img/cohorts/bloggers/legum.png",description:"Judd Legum, founder of political blog ThinkProgress, launched Popular Information on Substack in July 2018. Popular Information now has more than 100,000 signups.",pubUrl:"https://popular.info",cohortName:tX})]})]})}),(0,a.jsx)(tV,{testimonial:"“In 2020, Substack became the standard of the independent journalism industry. Not to move would be to capitulate to deliberate obsolescence”",authorName:"David Warsh",publicationName:"Economic Principals",publicationUrl:"https://davidwarsh.substack.com",cohortName:tX}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsx)("div",{className:"case-study-section-header-container",children:(0,a.jsx)("div",{className:"case-study-section-header",children:"Turn your blog into a media business on Substack."})}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tK,{title:"A growth masterclass with Judd Legum of Popular Information",imageUrl:"/img/cohorts/bloggers/legum-cs.png",description:"Judd Legum of Popular Information shares tips on how to grow a Substack publication",caseStudyUrl:"https://on.substack.com/p/a-growth-masterclass-with-judd-legum",cohortName:tX}),(0,a.jsx)(tK,{title:"How Courtney Martin launched and grew The Examined Family",imageUrl:"/img/cohorts/bloggers/martin-cs.png",description:"Courtney Martin shares her insights on launching a paid newsletter on Substack",caseStudyUrl:"https://on.substack.com/p/going-paid-the-examined-family",cohortName:tX}),(0,a.jsx)(tK,{title:"How my Substack newsletter helped me bounce back from a broken car",imageUrl:"/img/cohorts/bloggers/gino-cs.png",description:"Gino Sorcinelli tells his story of becoming a music journalist",caseStudyUrl:"https://on.substack.com/p/how-my-substack-newsletter-helped",cohortName:tX})]})]})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Move your blog to Substack today."}),(0,a.jsxs)("div",{className:"final-section-subtitle",children:["“I've never seen such a Cambrian explosion of good writing!” – Noah Smith, ",(0,a.jsx)("a",{href:"https://noahpinion.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.bloggers),target:"_blank",children:"Noahpinion"})]}),(0,a.jsx)("a",{className:"button big-button primary",href:tZ,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:"Get started"})]})})]})}),t$=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.comicBookCreators}),t0="comic-book-creators",t1=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for Comic Book Creators",description:"Comic book creators come to Substack to do their best work, and to earn a living through a direct relationship with their fans."}),(0,a.jsx)(tH,{header:"The home for great comic book creators.",subtitle:"Comic book creators come to Substack to do their best work, and to earn a living through a direct relationship with their fans.",imageUrl:"/img/cohorts/comic_book_creators/comics-hero.png",signupUrl:t$,cohortName:t0,heroImageSize:"680px"}),(0,a.jsx)(tV,{testimonial:"“Substack is literally making the biggest investment in creator-owned comics in the history of the medium, all so that creators like me can take control of our own careers and make fans the best content yet.”",authorName:"Scott Snyder",publicationName:"Our Best Jackett",publicationUrl:"https://bestjackettpress.substack.com",cohortName:t0}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Great comic book creators are on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"The world's top comic book creators are on Substack building thriving independent businesses."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Copper Bottle by Saladin Ahmed",pubLogoUrl:"/img/cohorts/comic_book_creators/ahmed.png",description:"Eisner Award-winning writer Saladin Ahmed, the author of Throne of the Crescent Moon, publishes The Copper Bottle on Substack.",pubUrl:"https://www.copperbottle.net",cohortName:t0}),(0,a.jsx)(tY,{pubName:"In the Telling by Molly Knox Ostertag",pubLogoUrl:"/img/cohorts/comic_book_creators/ostertag.png",description:"Ignatz- and Prism Award-winning graphic novelist Molly Ostertag, author of Witch Boy and Girl from the Sea, publishes In The Telling on Substack.",pubUrl:"https://ostertag.substack.com",cohortName:t0})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Empire of the Tiny Onion",pubLogoUrl:"/img/cohorts/comic_book_creators/tynion.png",description:"James Tynion IV, until now the lead writer on Batman, publishes The Empire of the Tiny Onion, sharing bits of scripts and pitches.",pubUrl:"https://jamestynioniv.substack.com",cohortName:t0}),(0,a.jsx)(tY,{pubName:"Our Best Jackett by Scott Snyder",pubLogoUrl:"/img/cohorts/comic_book_creators/snyder.png",description:"Multiple Eisner Award winner Scott Snyder (author of Voodoo Heart, and writer of Batman, Wytches, and American Vampire) writes Our Best Jackett.",pubUrl:"https://bestjackettpress.substack.com",cohortName:t0})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"3 Worlds 3 Moons",pubLogoUrl:"/img/cohorts/comic_book_creators/3w3m.png",description:"A conceptual, cyclical universe brought to life by renowned Marvel writer Jonathan Hickman, along with Al Ewing, Tini Howard, and Ram V.",pubUrl:"https://3w3m.substack.com",cohortName:t0}),(0,a.jsx)(tY,{pubName:"Stupid Fresh Mess",pubLogoUrl:"/img/cohorts/comic_book_creators/young.png",description:"Skottie Young, best known for his work on various Marvel characters, offers subscribers the first look at his upcoming comics, illustrated prose, and children’s books.",pubUrl:"https://skottieyoung.substack.com",cohortName:t0})]})]})}),(0,a.jsx)(tz,{testimonial:"“There is nobody you need to get permission from to do what you want to do. Make the books you most want to make, the books you think should exist, the ones that it has driven you crazy that nobody is making.”",authorName:"James Tynion",publicationName:"The Empire of the Tiny Onion",publicationUrl:"https://jamestynioniv.substack.com",signupUrl:t$,cohortName:t0}),(0,a.jsx)("div",{className:"cohort-substack-benefits",children:(0,a.jsxs)("div",{className:"cohort-substack-benefits-content",children:[(0,a.jsxs)("div",{className:"benefits-text-container",children:[(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Distribution made simple."}),(0,a.jsx)("div",{className:"benefit-description",children:"It’s easy to publish comics big and small on Substack. Share new stories through email and on your Substack website, with a seamless integration into Panels."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Own all your content."}),(0,a.jsx)("div",{className:"benefit-description",children:"Creators retain all rights on the work they publish, including the rights to republish material elsewhere, and media rights. Substack takes no cut of any potential movie or TV adaptations."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Get paid to do what you love."}),(0,a.jsx)("div",{className:"benefit-description",children:"Build your audience on Substack, or bring them over. When you're ready, you can add paid subscriptions and keep 90% of the revenue. Top writers on Substack make millions of dollars a year."})]})]}),(0,a.jsx)("img",{src:"/img/cohorts/benefits-illustration.png",alt:"benefits-illustration",className:"benefit-image"})]})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Start your Substack now."}),(0,a.jsx)("div",{className:"final-section-subtitle",children:"It takes less than a minute to get started."}),(0,a.jsx)("a",{className:"button big-button primary",href:t$,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:t0,link_type:"get started"})},children:"Get started"})]})})]})});var t2=n(45773),t3=n(48697);let t4="cell-V2LF7W",t9="cellCenter-LcQsvK",t8=e=>{let{features:t,subjects:n,maxWidth:i}=e;return(0,a.jsx)("div",{style:{maxWidth:i},className:"container-nCcosq",children:(0,a.jsxs)("table",{className:"table-nK9Ykb",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:I()(t4,"boldedCell-ucZlIo"),children:"Features"}),n.map(e=>(0,a.jsx)("th",{className:I()(t4,t9),children:e.label},e.label))]})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsxs)("tr",{className:t4,children:[(0,a.jsx)("td",{className:t4,children:e}),n.map(e=>(0,a.jsx)("td",{className:I()(t4,t9,{"fadedCell-SqrdQI":!e.hasFeatures[t],"cellTextContent-KVg051":"string"==typeof e.hasFeatures[t]}),children:"string"==typeof e.hasFeatures[t]?e.hasFeatures[t]:e.hasFeatures[t]?(0,a.jsx)(t2.A,{size:16}):(0,a.jsx)(t3.A,{size:16})},e.label))]},e))})]})})},t7=e=>{let{title:t,body:n,action:i,align:r="center",maxWidth:o,paddingBottom:s}=e;return(0,a.jsxs)(E.I1,{className:"container-Hgsh2O",paddingBottom:s,alignItems:{desktop:"left"===r?"start":"center",mobile:"center"},style:{textAlign:r,maxWidth:o},children:[(0,a.jsx)("h3",{className:"title-FTslvX",children:t}),(0,a.jsx)("p",{className:"body-p10bn3",children:n}),i&&(0,a.jsx)("a",{className:I()("button big-button primary","action-IYySiX"),style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},href:i.buttonProps.href,onClick:i.buttonProps.onClick,"data-native":!0,children:i.text})]})},t5=e=>{let{title:t,body:n,action:i,features:r,subjects:o}=e;return(0,a.jsx)(tW,{children:(0,a.jsxs)(E.pT,{gap:40,justifyContent:"space-between",direction:{desktop:"row",mobile:"column"},style:{width:"100%",maxWidth:1124},children:[(0,a.jsx)(E.pT,{paddingTop:{desktop:20,mobile:0},paddingBottom:{desktop:0,mobile:20},children:(0,a.jsx)(t7,{align:"left",maxWidth:408,title:t,body:n,action:i})}),(0,a.jsx)(t8,{maxWidth:612,features:r,subjects:o})]})})},t6=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.finance}),ne="finance",nt=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for Investing and Business Writers",description:"From micro to macro, fiat to crypto, and longs to shorts, Substack is home to some of the best finance and business writing on the internet."}),(0,a.jsx)(tH,{header:"The home for great investing and business writers, podcasters and creators.",subtitle:"Finance and investing writers and creators come to Substack to publish their best work and build thriving subscription businesses.",imageUrl:(0,N.dJ9)("/img/cohorts/finance/finance-hero.png",1240),signupUrl:t6,cohortName:ne}),(0,a.jsx)(tV,{testimonial:"“Substack not only offers the average investor unprecedented direct access to the world’s top money experts, it enables those experts to deliver much more ‘financially nutritious’ content that better informs their readers’ investment decision-making.”",authorName:"Adam Taggart",publicationName:"Adam Taggart’s Thoughtful Money",publicationUrl:"https://adamtaggart.substack.com/",cohortName:ne}),(0,a.jsx)("div",{className:"cohort-substack-benefits",children:(0,a.jsxs)("div",{className:"cohort-substack-benefits-content",children:[(0,a.jsxs)("div",{className:"benefits-text-container",children:[(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Subscription publishing made simple."}),(0,a.jsx)("div",{className:"benefit-description",children:"Choose which posts you publish as free or only for paid subscribers. Zero tech knowledge required. We take care of everything except the hard part (the writing itself)."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Grow your audience."}),(0,a.jsxs)("div",{className:"benefit-description",children:["Marketing isn’t all on your shoulders. The Substack network, anchored by"," ",(0,a.jsx)("a",{href:"http://substack.com/app",target:"_blank",children:"the app"})," ","and ",(0,a.jsx)("a",{href:"https://on.substack.com/p/recommendations",children:"recommendations"}),", now accounts for more than 50% of all subscriptions and 30% of paid subscriptions on the platform."]})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"True independence."}),(0,a.jsx)("div",{className:"benefit-description",children:"Own all your content. Own your subscriber list. Build a community. Keep 90% of the revenue. With full editorial control and no gatekeepers, you can do the work you most believe in."})]})]}),(0,a.jsx)("img",{src:"/img/cohorts/benefits-illustration.png",alt:"benefits-illustration",className:"benefit-image"})]})}),(0,a.jsx)(tz,{testimonial:"“A month after launching a Substack, I can confidently say I should've pursued this opportunity a few years ago (better late than never). If you have ANY interest in going down this road, do yourself a favor”",authorName:"Alex Morris",publicationName:"The Science of Hitting",publicationUrl:"https://thescienceofhitting.substack.com",signupUrl:t6,cohortName:ne}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"The best conversations in finance are happening on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"From micro to macro, fiat to crypto, and longs to shorts, Substack is home to some of the best finance and business writing on the internet."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Lund Loop",pubLogoUrl:"/img/cohorts/finance/lund-loop.png",description:"Brian Lund’s weekly newsletter provides market commentary, technical overviews of charts, and breakdowns of trade setup, entry, and management.",pubUrl:"https://thelundloop.substack.com",cohortName:ne}),(0,a.jsx)(tY,{pubName:"The Pomp Letter",pubLogoUrl:"/img/cohorts/finance/pomp-letter.png",description:"Anthony Pompliano’s audience includes some of the most legendary investors on Wall Street. The Pomp Letter is for those interested in learning about Bitcoin, finance, and technology.",pubUrl:"https://pomp.substack.com",cohortName:ne})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Bear Cave",pubLogoUrl:"/img/cohorts/finance/bear-cave.png",description:"One year after starting The Bear Cave without a pre-existing audience, Edwin Dorsey was earning more than $300,000 a year on Substack.",pubUrl:"https://thebearcave.substack.com",cohortName:ne}),(0,a.jsx)(tY,{pubName:"Asian Century Stocks",pubLogoUrl:"/img/cohorts/finance/asian-century.png",description:"Michael Fritzell came to Substack without an existing newsletter following in 2020 to write fundamental equity analyses. In a year, he grew his newsletter to a substantial paid audience.",pubUrl:"https://www.asiancenturystocks.com",cohortName:ne})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Overshoot",pubLogoUrl:"/img/cohorts/finance/overshoot.png",description:"Matthew C. Klein’s newsletter provides data-driven deep dives into global trade and financial flows. Within a few weeks of his launch, he had hundreds of paying subscribers.",pubUrl:"https://theovershoot.co",cohortName:ne}),(0,a.jsx)(tY,{pubName:"Capital Account",pubLogoUrl:"/img/cohorts/finance/capital-account.png",description:"Jesse Westbrook and Robert Schmidt, two ex-Bloomberg News reporters who have spent 20 years covering financial regulation in Washington, write a daily trade publication for finance executives and government officials.",pubUrl:"https://www.capitolaccountdc.com",cohortName:ne})]})]})}),(0,a.jsx)(tV,{testimonial:"“I can still remember standing in the kitchen in March 2020 and watching the first $1.00 I made come through, from sharing my own research. Was a crazy feeling. A year later and it’s now my full-time ‘job’.”",authorName:"Conor Mac",publicationName:"Investment Talk",publicationUrl:"https://investmenttalk.substack.com",cohortName:ne}),(0,a.jsx)(t5,{title:"Building a new economic engine for culture.",body:"We make subscription publishing simple. Start your Substack at breakfast; start bringing in revenue by lunchtime.",action:{text:"Create your Substack",buttonProps:{href:t6,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:ne,link_type:"create your substack"})}}},features:["Editorial freedom","Easy to set up","Quick and easy to monetize","You own your content and rights","You own your subscriber list","Support helpdesk for your customers","Platform’s cut of revenue","Network effects","Cashtag integration"],subjects:[{label:"Seeking Alpha",hasFeatures:[!1,!0,!0,!1,!1,!0,"25%",!1,!0]},{label:"Blog",hasFeatures:[!0,!1,!1,!0,!0,!1,"Varies","Varies",!1]},{label:"Substack",hasFeatures:[!0,!0,!0,!0,!0,!0,"10%",!0,!0]}]}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsx)("div",{className:"case-study-section-header-container",children:(0,a.jsx)("div",{className:"case-study-section-header",children:"It’s simple to start a media business on Substack."})}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tK,{title:"How Michael Fritzell quit his finance job to write full-time on Substack",imageUrl:"/img/cohorts/finance/michael-fritzell.png",description:"Michael Fritzell offers insights on how he converts free readers to paying subscribers, and his thoughtful approach to content strategy. Before coming to Substack, Michael worked researching investments in East and Southeast Asia.",caseStudyUrl:"https://on.substack.com/p/grow-series-11-michael-fritzell",cohortName:ne}),(0,a.jsx)(tK,{title:"How Edwin Dorsey of The Bear Cave transitioned to paid subscriptions",imageUrl:"/img/cohorts/finance/edwin.png",description:"Edwin Dorsey, publisher of The Bear Cave, shares tips on how to convert readers into paid subscribers.",caseStudyUrl:"https://on.substack.com/p/going-paid-the-bear-cave",cohortName:ne}),(0,a.jsx)(tK,{title:"Petition on growing a newsletter, anonymously, without an existing audience",imageUrl:"/img/cohorts/finance/petition.png",description:"The authors of the anonymous newsletter Petition share their insights on starting without an existing audience.",caseStudyUrl:"https://library.substack.com/p/how-petition-grew-their-newsletter",cohortName:ne})]})]})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Start your Substack now."}),(0,a.jsxs)("div",{className:"final-section-subtitle",children:["“Substack changed my life.” - Lenny Rachitsky,"," ",(0,a.jsx)("a",{href:"https://www.lennysnewsletter.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.finance),target:"_blank",children:"Lenny’s Newsletter"})]}),(0,a.jsx)("a",{className:"button big-button primary",href:t6,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"finance",link_type:"get started"})},children:"Get started"})]})}),(0,a.jsxs)(tW,{borderTop:!0,borderBottom:!1,children:[(0,a.jsx)(t7,{maxWidth:600,title:"Finance Writer FAQ",body:"Frequently asked questions about getting started with publishing about finance, investing, economics, business, and crypto on Substack.",paddingBottom:56}),(0,a.jsx)(tN,{question:"What exactly is Substack? How does it work?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"Substack is a subscription network for independent writers, podcasters, and video creators to set up a free or paid publication and earn money from subscriptions."}),(0,a.jsx)("p",{children:"A Substack publication functions like a blog, but with email. Publishers can deliver posts to the web, app, and email simultaneously, so you can find new potential subscribers while always reaching your existing audience. Meanwhile, your publication page on the web and within the app acts as a traditional blog would—a permanent online archive of all your posts. These posts can include podcasts, audio clips, video, file embeds, and more. Publishers choose whether to add a paywall to their posts or to make them free for all readers."})]})}),(0,a.jsx)(tN,{question:"How will subscribers get my work?",answer:"For each post, you can choose who will receive it (free subscribers, paid subscribers, or everyone) and whether or not it will be sent by email. Subscribers get your posts directly in their email, on your publication site, and/or in Substack’s app. available to download for free on iOS and Android devices. We make it easy for new people to sign up for your mailing list when they visit your publication site."}),(0,a.jsx)(tN,{question:"How often do I have to post?",answer:"There are no set expectations or requirements for posting frequency; you can do whatever you want. Writers and creators on Substack are typically most successful when they post regularly and consistently. Many of the top Substacks post twice a week. But, others may choose to post monthly, or even only when they have something to say."}),(0,a.jsx)(tN,{question:"How much does Substack cost to use?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"By default, Substack is free to use. We don’t make money unless you do."}),(0,a.jsx)("p",{children:"If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like tech development and customer support. When you turn on paid, Substack’s platform fee is 10%, and the credit-card payment processor, Stripe, also takes a fee, of 2.9% plus 30 cents per transaction."})]})}),(0,a.jsx)(tN,{question:"Do I have to make my publication paid?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["No, you don’t have to make your publication paid. You’re welcome to keep your posts free. Many publishers who take this route often turn on"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/11463706473108-What-are-Substack-Pledges",target:"_blank",children:"Pledges"}),", a tool for your audience to show you they believe your work is valuable. This feature allows your subscribers to pledge to become a paid subscriber if and when you turn on paid subscriptions."]}),(0,a.jsx)("p",{children:"Turning on paid subscriptions enables a paywall, but it’s always up to you who each individual post goes out to. With each post you publish, you choose whether to send it to “Everyone”, “Paid subscribers only”, or “Free subscribers only.” Most publications with paid turned on publish a mix of free and paid posts."})]})}),(0,a.jsx)(tN,{question:"Can I turn on paid but still have all my posts be available to everybody?",answer:"Yes, you can turn on paid subscriptions and still publish all your posts free to everybody. Those who use this model typically invite their most dedicated fans to pay for subscriptions as a way of supporting their work, but then don’t restrict any content to paying subscribers only."}),(0,a.jsx)(tN,{question:"What’s the lowest subscription fee I can charge?",answer:"The minimum amount you can charge (for US-dollar Stripe accounts) is $5 per month and $30 per year."}),(0,a.jsx)(tN,{question:"Do I own what I publish on Substack?",answer:"You will always own your content, your email list, and your payment relationships with your subscribers. You are completely independent and do not work for Substack. Each publication gets its own RSS feed, and we make it easy to import and export your content, list, and payments to and from other platforms."}),(0,a.jsx)(tN,{question:"I have a question or problem that’s not answered here!",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["Answers to most frequently-asked questions about Substack can be found on our"," ",(0,a.jsx)("a",{href:"https://support.substack.com/",children:"Support center"}),"."]}),(0,a.jsxs)("p",{children:["You can also subscribe to ",(0,a.jsx)("a",{href:"http://on.substack.com",children:"On Substack"})," for advice, inspiration, community events, and product news for investing and business writers, or visit our"," ",(0,a.jsx)("a",{href:"https://substack.com/resources",children:"Resource hub"}),"."]})]})})]})]})}),nn=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.foodWriters}),na="food_writers",ni=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for Food Writers",description:"Food and drink writers come to Substack to do their best work and to earn a living through a direct relationship with their readers."}),(0,a.jsx)(tJ,{title:"The home for great food writing.",subtitle:"'Food and drink writers come to Substack to do their best work and to earn a living through a direct relationship with their readers.'",action:{text:"Get started",buttonProps:{href:nn,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:na,link_type:"get started"})}}},image:{path:"/img/cohorts/food_writers/food-hero.png",width:1480,altText:"food illustration"}}),(0,a.jsx)(tV,{testimonial:"“Nothing I have ever done in media prior to simply publishing myself has had as big an impact on my profile and my bank account.”",authorName:"Alicia Kennedy",publicationName:"Desk of Alicia Kennedy",publicationUrl:"https://www.aliciakennedy.news",cohortName:na}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content",children:[(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/cohorts/local_news/plane.png",title:"Food publishing made simple.",subtitle:"Share essays, recipes, restaurant reviews, and photographs with our easy-to-use tools. Include audio memos or a podcast alongside your writing. Zero tech knowledge required."}),(0,a.jsx)(tq,{imageUrl:"/img/going_paid/bridge.png",title:"A direct relationship with readers.",subtitle:"Algorithms shouldn’t decide who sees your work. On Substack, writers control the relationship with their readers. Comments and community threads encourage a sense of community amongst supporters."}),(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/going_paid/cat.png",title:"A better model than advertising.",subtitle:"No one likes seeing advertisements. Ditch ads in favor of subscriptions. A few hundred paid subscribers can support a livelihood. A few thousand makes it lucrative."})]})}),(0,a.jsx)(tz,{testimonial:"“Substack allowed me to continue being a writer. It gave me back my career, and I got to be the writer that I wanted to be.”",authorName:"Emily Nunn",publicationName:"The Department of Salad",publicationUrl:"https://eatsomesalad.substack.com",signupUrl:nn,cohortName:na}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Food & Drink writing is thriving on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"Whether you’re writing about rare Cuban cocktails or the science behind bread making, Substack is the place to build a successful subscription publication."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Vittles",pubLogoUrl:"/img/cohorts/food_writers/vittles.png",description:"When journalist Jonathan Nunn was furloughed from his job, he launched Vittles from his home in London. The fast-growing food newsletter is written by paid contributors, and addresses class commentary and cultural criticism.",pubUrl:"https://vittles.substack.com",cohortName:na}),(0,a.jsx)(tY,{pubName:"What to Cook When You Don’t Feel Like Cooking",pubLogoUrl:"/img/cohorts/food_writers/cook.png",description:"In early December 2020, Caroline Chambers took a rejected cookbook proposal and turned it into a paid newsletter. Today she has more than 3,000 paying subscribers.",pubUrl:"https://whattocook.substack.com",cohortName:na})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The The Bittman Project",pubLogoUrl:"/img/cohorts/food_writers/bittman.png",description:"Food journalist Mark Bittman was a New York Times columnist for two decades and is on the faculty of Columbia University. The Bittman Project includes “reported pieces, profiles, interviews, and rants about what’s broken in the food world.”",pubUrl:"https://www.bittmanproject.com",cohortName:na}),(0,a.jsx)(tY,{pubName:"Your Favorite Prof",pubLogoUrl:"/img/cohorts/food_writers/prof.png",description:"Dr. Marcia Chatelain, the Pulitzer Prize-winning author behind Franchise: The Golden Arches in Black America, started a Substack to continue the conversation about fast food history.",pubUrl:"https://yourfavoriteprof.substack.com",cohortName:na})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Not Drinking Poison",pubLogoUrl:"/img/cohorts/food_writers/poison.png",description:"British-American wine writer Aaron Ayscough publishes natural wines reviews, as well as feature stories, vigneron interviews, and contributions from his friends throughout the natural wine community.",pubUrl:"https://notdrinkingpoison.substack.com",cohortName:na}),(0,a.jsx)(tY,{pubName:"Wordloaf",pubLogoUrl:"/img/cohorts/food_writers/wordloaf.png",description:"Editor, bread baking instructor, and organic chemist Andrew Janjigian writes a weekly newsletter with bread recipes, tips and more for hundreds of paying subscribers.",pubUrl:"https://wordloaf.substack.com",cohortName:na})]})]})}),(0,a.jsx)(tV,{testimonial:"“I get to go way, way more granular and esoteric—I don’t think most mainstream publications care about cover reveals or [cook]book deals...but I get to include whatever I want in the newsletter.”",authorName:"Paula Forbes",publicationName:"Stained Page News",publicationUrl:"https://www.stainedpagenews.com",cohortName:na}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsx)("div",{className:"case-study-section-container",children:(0,a.jsx)("div",{className:"case-study-section-header",children:"Build your food writing media business on Substack."})}),(0,a.jsxs)("div",{className:"case-studies-row",children:[(0,a.jsx)(tK,{title:"An interview with Paula Forbes of Stained Page News",imageUrl:"/img/cohorts/food_writers/paula.png",description:"Paula Forbes shares how she went from writing for Eater to launching a newsletter about a very focused topic: cookbooks",caseStudyUrl:"https://on.substack.com/p/substack-podcast-021-cookbooks-with",cohortName:na}),(0,a.jsx)(tK,{title:"How a rejected cookbook proposal became a thriving reader-supported Substack",imageUrl:"/img/cohorts/food_writers/chambers.png",description:"Caroline Chambers, who writes What to Cook When You Don’t Feel Like Cooking, shares insights on how she grew Substack to 3,000 paying subscribers",caseStudyUrl:"https://on.substack.com/p/grow-series-1",cohortName:na}),(0,a.jsx)(tK,{title:"How Abigail Koffler grew her email list from scratch",imageUrl:"/img/cohorts/food_writers/koffler.png",description:"Abigail Koffler, who writes This Needs Hot Sauce, discusses how she connects with her readers, and how that community-building has contributed to her growth.",caseStudyUrl:"https://on.substack.com/p/how-abigail-koffler-grew-her-email",cohortName:na})]})]})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Move to Substack today."}),(0,a.jsx)("div",{className:"final-section-subtitle",children:"Switching to Substack takes less than 5 minutes."}),(0,a.jsx)("a",{className:"button big-button primary",href:nn,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:"Get started"})]})})]})}),nr=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.foodWriters}),no="local_news",ns=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for local news",description:"Local news reporters are building healthy, sustainable businesses on Substack."}),(0,a.jsx)(tJ,{title:"A business model for local news that works.",subtitle:"Local news reporters are building healthy, sustainable businesses on Substack.",action:{text:"Get started",buttonProps:{href:nr,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:no,link_type:"get started"})}}},image:{path:"/img/cohorts/local_news/local-news-hero.png",width:1600,altText:"local news illustration"}}),(0,a.jsx)(tV,{testimonial:"“Substack reliably makes the hard stuff easy, so I can focus on connecting local communities every morning.”",authorName:"Michael MacLeod",publicationName:"The Edinburgh Minute",publicationUrl:"https://edinburghminute.substack.com/",cohortName:no}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content",children:[(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/cohorts/local_news/plane.png",title:"Start a publication with no overhead.",subtitle:"It’s free to sign up and start publishing. Cover a beat with zero startup expenses, and no tech or design costs."}),(0,a.jsx)(tq,{imageUrl:"/img/going_paid/flag.png",title:"Prioritize your audience, not advertisers.",subtitle:"The subscription model guarantees editorial independence. Reporters need to be loyal only to their audience and can focus on quality more than inundation."}),(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/cohorts/local_news/coin.png",title:"Get paid to do what you love.",subtitle:"When you're ready, you can add paid subscriptions and keep 90% of the revenue. Top reporters are building teams and earning six figures on Substack each year."})]})}),(0,a.jsx)(tz,{testimonial:"“It's a lot of work, but it's extremely rewarding. I feel like I'm doing the best work of my career, and I'm having the most fun of my career, undoubtedly.”",authorName:"Tony Mecia",publicationName:"The Charlotte Ledger",publicationUrl:"https://charlotteledger.substack.com",signupUrl:nr,cohortName:no}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Local news reporters are thriving on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"Local news publications from all over the world are on Substack."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Charlotte Ledger",pubLogoUrl:"/img/cohorts/local_news/ledger.png",description:"Tony Mecia, a Charlotte native, had only 300 Twitter followers and a paper rolodex of local newsmakers when he started publishing on Substack. Today, he’s on pace for $175,000 in annual revenue.",pubUrl:"https://charlotteledger.substack.com",cohortName:no}),(0,a.jsx)(tY,{pubName:"City Hall Watcher",pubLogoUrl:"/img/cohorts/local_news/watcher.png",description:"Matt Elliott covers Toronto politics. In two years, he reached 900 paying subscribers. Substack replaces money he used to make selling one-off stories to other outlets — money he is happy to have, since it’s more consistent.",pubUrl:"https://graphicmatt.substack.com",cohortName:no})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Edinburgh Minute",pubLogoUrl:"/img/cohorts/local_news/edinburgh-minute.png",description:"Michael MacLeod covers the Scottish capital via this daily curation of news and events for more than 20,000 subscribers. He’s now launched The London Minute also, and inspired many more publishers to launch similar Substacks covering their communities.",pubUrl:"https://edinburghminute.substack.com/",cohortName:no}),(0,a.jsx)(tY,{pubName:"Paulic\xe9ia",pubLogoUrl:"/img/cohorts/local_news/pauli.png",description:"Ga\xeda Passarelli decided to leave her job as the editor of BuzzFeed Brasil to start Paulic\xe9ia and write about the people who work to create culture in S\xe3o Paulo.",pubUrl:"https://pauliceia.substack.com",cohortName:no})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Importantville",pubLogoUrl:"/img/cohorts/local_news/importantville.png",description:"Adam Wren has covered Indiana politics on Substack since 2018. His audience includes local lobbyists as well as national reporters who want to keep tabs on what’s happening in his home state.",pubUrl:"https://importantville.substack.com",cohortName:no}),(0,a.jsx)(tY,{pubName:"The Line",pubLogoUrl:"/img/cohorts/local_news/line.png",description:"Jen Gerson started The Line, an independent collection of Canadian newspaper and magazine writers, on Substack to be free from corporate media structures and turn a publication that she “can’t make anywhere else” into a reality.",pubUrl:"https://theline.substack.com",cohortName:no})]})]})}),(0,a.jsx)(tV,{testimonial:"“The technology now exists to permit people like me to build a relationship with readers unmediated by existing corporate media structures.”",authorName:"Jen Gerson",publicationName:"The Line",publicationUrl:"https://theline.substack.com",cohortName:no}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Start your local news publication now."}),(0,a.jsx)("div",{className:"final-section-subtitle",children:"It takes only a minute and zero overhead to get started."}),(0,a.jsx)("a",{className:"button big-button primary",href:nr,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:"Get started"})]})})]})});var nl=n(63749);let nc=l(e=>{let{title:t,author:n,art:i,length:r,postUrl:o}=e;return(0,a.jsxs)("a",{href:o,target:"_blank",className:"podcast-player",children:[(0,a.jsx)("img",{src:i,className:"podcast-player-art"}),(0,a.jsxs)("div",{className:"podcast-player-content",children:[(0,a.jsx)("div",{className:"podcast-player-title",children:t}),(0,a.jsx)("div",{className:"podcast-player-author",children:n}),(0,a.jsxs)("div",{className:"podcast-player-action-bar",children:[(0,a.jsx)(nl.A,{className:"podcast-player-play",height:40,stroke:"#666"}),(0,a.jsx)("div",{className:"podcast-player-bar"}),(0,a.jsx)("div",{className:"podcast-player-bar-filled"}),(0,a.jsx)("div",{className:"podcast-player-length",children:r})]})]})]})}),nd=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.podcasters}),nu="podcasters",np=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack for podcasts",description:"Substack offers the simplest way to get started with audio, and the best place to grow a business around it."}),(0,a.jsx)(tJ,{title:"Your podcast. Bigger and better.",subtitle:"Substack makes it simple to start a subscription podcast. You can distribute to Apple and Spotify, build a home for your community, and grow your audience right here.",action:{text:"Get started",buttonProps:{href:nd,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:nu,link_type:"get started"})}}},image:{path:"/img/cohorts/podcasters/podcasts-hero.png",width:1480,altText:"podcaster illustration"}}),(0,a.jsx)(tV,{testimonial:"“We moved to Substack because the platform enables us to develop Pack Your Knives into more than a weekly podcast, expand our offerings beyond the weekly recap, and build a community hub for all things Top Chef.”",authorName:"Kevin Arnovitz",publicationName:"Pack Your Knives",publicationUrl:"https://www.packyourknives.com",cohortName:nu}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content",children:[(0,a.jsx)(tq,{imageUrl:"/img/cohorts/podcasters/cart.png",title:"More than a podcast.",subtitle:"Each podcast episode can become a bigger, richer experience by adding supporting multimedia material around it—writing, images, transcripts, or bonus audio and video content."}),(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/cohorts/podcasters/papercup.png",title:"A direct relationship with listeners.",subtitle:"On Substack, you’re not podcasting into a void. Email subscriptions create direct relationships with listeners. Comments and community threads connect subscribers."}),(0,a.jsx)(tq,{imageUrl:"/img/going_paid/cat.png",title:"Monetize through devotion.",subtitle:"Share free episodes broadly via email, web, in the Substack app, or via RSS feed to all major podcast players—and add extra perks for paying subscribers all in one place."})]})}),(0,a.jsx)(tz,{testimonial:"“Adding my podcast to Burnt Toast has been such an important way to build my community and make my work more accessible to a wider audience… Since I launched my podcast, my total list has grown by 30 percent and my paid subscribers have nearly doubled.”",authorName:"Virginia Sole-Smith",publicationName:"Burnt Toast",publicationUrl:"https://virginiasolesmith.substack.com/s/the-burnt-toast-podcast",signupUrl:nd,cohortName:nu}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Great podcasters are on Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"From food and culture to politics and crypto, Substack is a home for podcasts by both seasoned hosts and new talent."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Fifth Column",pubLogoUrl:"/img/cohorts/podcasters/fifth-column.png",description:"Media veterans Kmele Foster, Michael Moynihan, and Matt Welch decided to bring their weekly show from Patreon to Substack in spring 2022 in order ensure they own their content, IP, mailing list, and payment information.",pubUrl:"https://wethefifth.substack.com",cohortName:nu}),(0,a.jsx)(tY,{pubName:"Virginia Sole-Smith",pubLogoUrl:"/img/cohorts/podcasters/burnt-toast.png",description:"Virginia Sole-Smith launched a podcast on Substack to complement her weekly essay on parenting through diet culture and fatphobia, along with monthly Q&A episodes for paid subscribers.",pubUrl:"https://virginiasolesmith.substack.com",cohortName:nu})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"MartyrMade",pubLogoUrl:"/img/cohorts/podcasters/martyr-made.png",description:"Researcher and writer Darryl Cooper created The MartyrMade podcast, a hit podcast covering “tragic and epic” stories from the past.",pubUrl:"https://martyrmade.substack.com",cohortName:nu}),(0,a.jsx)(tY,{pubName:"Eric Newcomer",pubLogoUrl:"/img/cohorts/podcasters/eric-newcomer.png",description:"As part of his deeply reported Substack publication about Silicon Valley, Eric Newcomer hosts a weekly podcast called Dead Cat. The podcast has thousands of listeners per episode.",pubUrl:"https://www.newcomer.co",cohortName:nu})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Andrew Sullivan",pubLogoUrl:"/img/cohorts/podcasters/andrew-sullivan.png",description:"Andrew Sullivan added a podcast to his publication, The Weekly Dish, to deepen the relationship with his subscribers, and calls the medium “the perfect complement to writing.”",pubUrl:"https://andrewsullivan.substack.com",cohortName:nu}),(0,a.jsx)(tY,{pubName:"Glenn Loury",pubLogoUrl:"/img/cohorts/podcasters/glenn-loury.png",description:"Writer and academic Glenn Loury has published a podcast and YouTube show for 13 years. He moved the show to Substack in 2021.",pubUrl:"https://glennloury.substack.com",cohortName:nu})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Ethan Strauss",pubLogoUrl:"/img/cohorts/podcasters/house-of-strauss.png",description:"Longtime NBA writer Ethan Strauss moved his beloved House of Strauss podcast to Substack. In addition to podcast episodes and written pieces, Ethan narrates articles for paying subscribers.",pubUrl:"https://houseofstrauss.substack.com",cohortName:nu}),(0,a.jsx)(tY,{pubName:"David Roberts (Volts)",pubLogoUrl:"/img/cohorts/podcasters/volts.png",description:"As David Roberts transitioned from blogging into professional journalism, his audience transformed from loyal followers to “random people who happen to see your headline drift past on social media.” On Substack, so that a community of readers support his writing and podcast directly, “with no advertisements or institutions in between.”",pubUrl:"https://www.volts.wtf",cohortName:nu})]})]})}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"podcasts-examples-header",children:"The easy way to get started with audio."}),(0,a.jsx)("div",{className:"podcasts-examples-subtitle",children:"No need for long episodes, hefty edits, or expensive equipment. Keep it simple and record audio directly in the Substack editor. "}),(0,a.jsx)("a",{className:"button big-button primary",href:nd,style:{height:"48px",lineHeight:"28px",borderRadius:"4px",marginBottom:"88px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:nu,link_type:"get started"})},children:"Get started"}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsxs)("div",{className:"podcast-use-example",children:[(0,a.jsx)(nc,{title:"A Message",author:"Patti Smith",postUrl:"https://pattismith.substack.com/p/a-message#play",art:"/img/cohorts/podcasters/patti.png",length:"1:46"}),(0,a.jsx)("div",{className:"podcast-use-example-title",children:"Share personal messages with voice"}),(0,a.jsx)("div",{className:"podcast-use-example-subtitle",children:"Musician, author, and poet Patti Smith regularly sends audio clips to subscribers, reflecting on travels and even singing."})]}),(0,a.jsxs)("div",{className:"podcast-use-example",children:[(0,a.jsx)(nc,{title:"Entrepreneurship is contagious",author:"Matt Clancy",postUrl:"https://mattsclancy.substack.com/p/entrepreneurship-is-contagious#play",art:"/img/cohorts/podcasters/clancy.png",length:"17:35"}),(0,a.jsx)("div",{className:"podcast-use-example-title",children:"Start a lightweight podcast"}),(0,a.jsx)("div",{className:"podcast-use-example-subtitle",children:"Matt Clancy, an economist at Iowa State, publishes written research alongside a spoken exploration of his learnings."})]})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsxs)("div",{className:"podcast-use-example",children:[(0,a.jsx)(nc,{title:"Hild of Whitby",author:"Florence H. R. Scott",art:"/img/cohorts/podcasters/florence.png",length:"9:01",postUrl:"https://florencehrs.substack.com/p/hild-of-whitby-politician-religious#play"}),(0,a.jsx)("div",{className:"podcast-use-example-title",children:"Read posts aloud"}),(0,a.jsx)("div",{className:"podcast-use-example-subtitle",children:"Florence H. R. Scott, a historian from Leeds, UK brings written posts to life by reading them in their own voice."})]}),(0,a.jsxs)("div",{className:"podcast-use-example",children:[(0,a.jsx)(nc,{title:"Friday night mini-pod recap",author:"Ariel Helwani",postUrl:"https://arielhelwani.substack.com/p/friday-night-mini-pod-recap-ray-cooper#play",art:"/img/cohorts/podcasters/ariel.png",length:"9:21"}),(0,a.jsx)("div",{className:"podcast-use-example-title",children:"Live dispatches from behind the scenes"}),(0,a.jsx)("div",{className:"podcast-use-example-subtitle",children:"Ariel Helwani narrates the latest news and shares his thoughts on big fights as they are happening."})]})]})]})}),(0,a.jsx)(tV,{testimonial:"“I loved using the audio feature. It was a real raw way to get my thoughts on that night's fights out fast and in a digestible format to the audience, and it couldn't have been easier. The feedback I got for it was great.”",authorName:"Ariel Helwani",publicationName:"Helwani Nose",publicationUrl:"https://arielhelwani.substack.com",cohortName:nu}),(0,a.jsx)(t5,{title:"Substack is for podcasters.",body:"Substack is the only podcasting host where free listeners can convert to paid subscribers in one space, and truly own their relationship with their subscribers.",action:{text:"Create your Substack",buttonProps:{href:nd,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:nu,link_type:"create your substack"})}}},features:["Free & paid episodes","Own your subscriber list","Own your payment stream","Rich newsletter, video tools","Comments and threads","Analytics","Audio editing","Ad tools","Custom domain"],subjects:[{label:"Anchor.fm",hasFeatures:[!0,!1,!1,!1,!1,!0,!0,!0,!1]},{label:"Simplecast",hasFeatures:[!1,!1,!1,!1,!1,!0,!1,!0,!0]},{label:"Patreon",hasFeatures:[!1,!0,!1,!0,!0,!1,!1,!1,!1]},{label:"Substack",hasFeatures:[!0,!0,!0,!0,!0,!0,!1,!1,!0]}]}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Start your podcast now."}),(0,a.jsx)("div",{className:"final-section-subtitle",children:"Start your podcast on Substack or import past episodes in less than five minutes."}),(0,a.jsx)("a",{className:"button big-button primary",href:nd,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:"Get started"})]})}),(0,a.jsxs)(tW,{borderTop:!0,borderBottom:!1,children:[(0,a.jsx)(t7,{maxWidth:600,title:"Podcasting questions answered.",body:(0,a.jsxs)(a.Fragment,{children:["If you’re interested in"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360037462092-How-do-I-create-and-publish-a-podcast-",children:"starting a new podcast"})," ","or"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360037830571-How-do-I-move-my-podcast-to-Substack-",children:"migrating a podcast"})," ","from another hosting platform to Substack, here are some answers to common podcasting questions."]}),paddingBottom:56}),(0,a.jsx)(tN,{question:"How do I set up a podcast on Substack?",answer:(0,a.jsxs)("p",{children:["We created a step-by-step guide"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/how-to-use-substack-for-podcasts",children:"here"}),"."]})}),(0,a.jsx)(tN,{question:"How much does it cost to host my podcast on Substack?",answer:"It’s free to host and distribute podcasts via Substack. Podcasters who turn on paid subscriptions keep 90% of their revenue, minus credit card fees."}),(0,a.jsx)(tN,{question:"Will I keep the email addresses for my podcast listeners?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"You will always own your subscribers’ email addresses and be able to export them at any time, if you wish. When a new person subscribes from the Substack app or the Substack website, you’ll get their email address."}),(0,a.jsx)("p",{children:"If you distribute your podcast through other hosting platforms, there will be a distinction between people who listen on those podcasting apps and people who subscribe directly to your Substack."})]})}),(0,a.jsx)(tN,{question:"How can subscribers listen to podcasts hosted on Substack?",answer:(0,a.jsxs)("p",{children:["You can listen from your email, in the"," ",(0,a.jsx)("a",{href:"https://substack.com/app?no_redirect=true",children:"Substack app"}),", or on the web, as well as register your podcast to be distributed (via RSS feed) to Spotify, Apple Podcasts, Overcast, Pocket Casts, and more. You can find more information on how to distribute your podcast to other platforms"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360038462911-How-do-I-distribute-my-podcast-to-apps",children:"here"}),"."]})}),(0,a.jsx)(tN,{question:"How do free and paid subscriptions work with podcasts?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"Free subscribers get all free episodes in their podcast feed. They do not see any paid or paywalled content in their feed."}),(0,a.jsxs)("p",{children:["Paying subscribers can listen seamlessly in the Substack iOS app, or will receive a private RSS feed that they can"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/4519588148244-How-do-I-listen-to-episodes-on-my-podcast-app-",children:"enter into an alternative podcast player"})," ","of their choice. This link is included in their welcome email and is accessible on the Substack episode page."]})]})}),(0,a.jsx)(tN,{question:"How can I interact with my listener community on Substack?",answer:(0,a.jsxs)("p",{children:["On Substack, podcasting can transform from a one-way megaphone into more of a conversation. Podcasters can invite listeners to weigh in on episodes directly through"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/new-podcast-episode-page",children:"comments on each episode page"})," and"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/new-on-substack-build-your-community",children:"Chat threads"}),", or not. You’re in control."]})}),(0,a.jsx)(tN,{question:"I have a question or problem that’s not answered here!",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["Answers to podcasters’ and writers’ most frequently-asked questions about Substack can be found on our"," ",(0,a.jsx)("a",{href:"https://support.substack.com",children:"Support center"}),"."]}),(0,a.jsxs)("p",{children:["You can also subscribe to ",(0,a.jsx)("a",{href:"https://on.substack.com/",children:"On Substack"})," for advice, inspiration, community events, and product news, and visit our"," ",(0,a.jsx)("a",{href:"https://substack.com/resources",children:"Resource hub"})," for guidance and case studies on how to succeed on Substack."]})]})})]})]})}),nm=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.communityPrograms}),nh="community_programs",ng=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack community and programs",description:"A comprehensive support structure for independent writers."}),(0,a.jsx)(tJ,{title:"A comprehensive support structure for independent writers.",subtitle:"We offer writers an ecosystem in which they can do their best work. When writers have the right support and infrastructure to maximize their talents, everything else falls into place.",action:{text:"Start writing",buttonProps:{href:nm,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:nh,link_type:"get started"})}}}}),(0,a.jsx)(tV,{testimonial:"“I have never felt this supported for my work ever.”",authorName:"Pranjal Saxena",publicationName:"Chitti",publicationUrl:"https://pranjalsaxena.substack.com",cohortName:nh}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsxs)("div",{className:"case-study-section-header-container",children:[(0,a.jsx)("div",{className:"case-study-section-header",children:"Access to a community of peers."}),(0,a.jsx)("div",{className:"case-study-section-subheader",children:"Independence loves company. We bring Substack writers together so they can help each other, collaborate, and learn together."})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tK,{title:"Writer stories",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/stories.png",712),description:"We publish interviews and stories that help writers get to know who else is writing on Substack.",caseStudyUrl:"https://on.substack.com/s/stories",cohortName:nh}),(0,a.jsx)(tK,{title:"Substack Go",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/go.png",712),description:"The support system writers need to build momentum. Participating writers set a foundation for publishing regularly alongside peers.",caseStudyUrl:"https://substack.com/go",cohortName:nh}),(0,a.jsx)(tK,{title:"Events for writers",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/events.png",712),description:"Join fellow writers and members of the Substack team for events that connect writers, and help them navigate the publishing journey.",caseStudyUrl:"https://substack.com/events",cohortName:nh})]})]})}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsxs)("div",{className:"case-study-section-header-container",children:[(0,a.jsx)("div",{className:"case-study-section-header",children:"Special assistance for independent writers."}),(0,a.jsx)("div",{className:"case-study-section-subheader",children:"We’re recreating some of the support structures that are otherwise disappearing from the media landscape."})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tK,{title:"Tech support",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/support.png",712),description:"Our world-class customer service team takes care of both writers and their readers on Substack, offering both tech and billing assistance.",caseStudyUrl:"https://support.substack.com/hc/en-us",cohortName:nh}),(0,a.jsx)(tK,{title:"Resources in your inbox",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/inbox.png",712),description:"Publishing best practices from fellow writers that will help you develop a successful paid publication. ",caseStudyUrl:"https://on.substack.com/s/resources",cohortName:nh}),(0,a.jsx)(tK,{title:"Legal support",imageUrl:(0,N.dJ9)("/img/cohorts/community_programs/legal.png",712),description:"The Substack Defender program provides advice to writers who face legal uncertainty or pressure because of their work.",caseStudyUrl:"https://pages.substack.com/defender/",cohortName:nh})]})]})}),(0,a.jsx)(tV,{testimonial:"“One of the underrated features of Substack is that it has a support staff that deals with most technical and billing issues. People who run their subscription newsletters through other platforms say having to do their own customer service is a nightmare.”",authorName:"Simon Owens",publicationName:"Simon Owens Media Newsletter",publicationUrl:"https://simonowens.substack.com",cohortName:nh}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Join the Substack writer community."}),(0,a.jsxs)("div",{className:"final-section-subtitle",children:["“I've never seen such a Cambrian explosion of good writing!” – Noah Smith, ",(0,a.jsx)("a",{href:"https://noahpinion.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(nh),target:"_blank",children:"Noahpinion"})]}),(0,a.jsx)("a",{className:"button big-button primary",href:nm,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:{cohortName:nh},link_type:"get started"})},children:"Get started"})]})})]})});function n_(e){let{token:t}=e;return(0,a.jsx)("div",{className:"container complete-mobile-signin",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:"Sign in to Substack"}),(0,a.jsx)("p",{children:"Click the button below to finish signing in on the Substack mobile app."}),(0,a.jsx)("p",{children:(0,a.jsx)("a",{className:"button primary",href:(0,N.Q5N)(t),children:"Open Substack app"})})]})})}let nb=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Contact Substack",description:"Questions? Here's how you can get in touch with us."}),(0,a.jsx)("div",{className:"contact-hero",children:(0,a.jsxs)("div",{className:"contact-hero-content",children:[(0,a.jsx)("div",{className:"contact-hero-header",children:"Contact Substack."}),(0,a.jsx)("div",{className:"contact-hero-subtitle",children:"Questions? Here's how you can get in touch with us."}),(0,a.jsxs)("div",{className:"contact-info",children:[(0,a.jsx)("strong",{children:"If you're a writer interested in starting an independent publication on Substack: "}),"visit ",(0,a.jsx)("a",{href:"/going-paid",children:"substack.com/going-paid"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"If you're interested in becoming a member of our growing team: "}),"visit ",(0,a.jsx)("a",{href:"/jobs",children:"substack.com/jobs"})," to see career opportunities",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"For FAQs and walkthroughs: "}),"visit ",(0,a.jsx)("a",{href:"https://support.substack.com/",children:"support.substack.com"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"For reporting a violation of Substack's Terms of Use: "}),(0,a.jsx)("a",{href:"mailto:tos@substackinc.com",children:"tos@substackinc.com"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"For press inquiries and requests: "}),(0,a.jsx)("a",{href:"mailto:press@substackinc.com",children:"press@substackinc.com"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"We also handle subscribers' support questions on behalf of writers, so feel free to reach out to us:"," ",(0,a.jsx)("a",{href:"/support",onClick:e=>{e.preventDefault(),window.location.href="proxy.php?url=/support"},children:"substack.com/support"})]})]})})]})}),nf="sectionContainer-n_7mgu",nA="sectionRow-A3aJ4m",nE="sectionMedia-Yg0xS9",ny="darkButton-rYx5nQ",nN="creatorCardMetaItem-ELMmky",nO="creatorCardMetaStrong-aum0qI",nv="/img/sponsorships-marketing/creator-zeteo.png",nx="/img/sponsorships-marketing/creator-feedme.png";function nS(e){let{num:t}=e;return(0,a.jsx)("span",{className:"sectionNumber-NI150Z",children:t})}function nw(e){let{text:t}=e;return(0,a.jsxs)(E.fI,{gap:12,className:"bulletPoint-_4bqmw",children:[(0,a.jsx)("div",{className:"bulletIcon-gQtzjK",children:(0,a.jsx)(t2.A,{size:20,stroke:"#c4644a",strokeWidth:1.5})}),(0,a.jsx)("span",{className:"bulletText-tK_28k",children:t})]})}function nI(e){let{label:t,href:n}=e;return n?(0,a.jsx)("a",{href:n,className:ny,children:t}):(0,a.jsx)("button",{className:ny,children:t})}function nM(e){let{value:t,label:n}=e;return(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)("span",{className:"statValue-NjGTyC",children:t}),(0,a.jsx)("span",{className:"statLabel-iMQe3k",children:n})]})}function nC(e){let{num:t,title:n,description:i,bullets:r,ctaLabel:o}=e;return(0,a.jsxs)(E.VP,{gap:24,className:"sectionText-YdP9Mt",children:[(0,a.jsx)(nS,{num:t}),(0,a.jsx)("h2",{className:"sectionTitle-fwO8yG",children:n}),(0,a.jsx)("p",{className:"sectionDescription-hero8P",children:i}),(0,a.jsx)(E.VP,{gap:16,children:r.map(e=>(0,a.jsx)(nw,{text:e},e))}),(0,a.jsx)("div",{children:(0,a.jsx)(nI,{label:o,href:"/creator-agency-signup"})})]})}function nk(e){let{avatar:t,name:n,publication:i,quote:r,stats:o,bgColor:s="#f8f6f1"}=e;return(0,a.jsxs)(E.VP,{gap:24,className:"testimonialCard-IygNFX",style:{backgroundColor:s},children:[(0,a.jsxs)(E.fI,{gap:16,className:"testimonialCardHeader-SphNbm",children:[(0,a.jsx)("img",{src:t,alt:n,className:"testimonialCardAvatar-ubK6oy"}),(0,a.jsxs)(E.VP,{gap:2,children:[(0,a.jsx)("span",{className:"testimonialCardName-cYH50E",children:n}),(0,a.jsx)("span",{className:"testimonialCardPub-rROfhp",children:i})]})]}),(0,a.jsx)("p",{className:"testimonialCardQuote-qjSqKw",children:r}),(0,a.jsx)(E.fI,{gap:32,className:"testimonialCardStats-R3UvzT",children:o.map(e=>(0,a.jsx)(nM,{value:e.value,label:e.label},e.label))})]})}function nj(){return(0,a.jsxs)("div",{className:"newsletterPreview-riotGw",children:[(0,a.jsxs)(E.fI,{gap:8,className:"newsletterHeader-dLEP4O",children:[(0,a.jsx)("img",{src:"/img/sponsorships-marketing/creator-lenny.png",alt:"",className:"newsletterAvatar-lq0BIK"}),(0,a.jsxs)(E.VP,{children:[(0,a.jsx)("span",{className:"newsletterAuthor-bWqZ9C",children:"Lenny Rachitsky"}),(0,a.jsx)("span",{className:"newsletterPub-IKOVDs",children:"Lenny's Newsletter"})]})]}),(0,a.jsxs)(E.VP,{gap:12,className:"newsletterContent-iiKXLc",children:[(0,a.jsx)("h4",{className:"newsletterTitle-uNfqMH",children:"How to run your first product roadmap meeting"}),(0,a.jsx)("p",{className:"newsletterBody-DLdOyp",children:"Running an effective roadmap meeting is one of the most important skills for any PM. Here's the framework I used at Airbnb..."}),(0,a.jsxs)(E.fI,{gap:12,className:"sponsoredBanner-YtKr0z",children:[(0,a.jsx)("div",{className:"sponsoredIcon-L9GNaL",children:(0,a.jsx)("span",{className:"sponsoredEmoji-EeyPro",children:"\uD83D\uDD13"})}),(0,a.jsxs)(E.VP,{gap:2,children:[(0,a.jsx)("span",{className:"sponsoredTitle-BrPbih",children:"This post is free for everyone"}),(0,a.jsx)("span",{className:"sponsoredBy-a8ioYI",children:"Unlocked by Notion — tools for product teams"})]})]})]})]})}function nL(){return(0,a.jsx)("div",{className:"eventPhotos-UeLSgT",children:(0,a.jsx)("img",{src:"/img/sponsorships-marketing/event-brooklyn-grange.jpg",alt:"Brooklyn Grange event",className:"eventPhotoInset-L7vtNB"})})}function nR(){return(0,a.jsxs)(E.VP,{gap:24,className:"darkQuoteCard-DbUqGU",children:[(0,a.jsx)("p",{className:"darkQuoteText-sEwCMw",children:'"We didn\'t want to buy ads. We wanted to support the writers our customers already trust."'}),(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)("span",{className:"darkQuoteName-jcQIwB",children:"Sarah Chen"}),(0,a.jsx)("span",{className:"darkQuoteTitle-nCAciH",children:"VP Marketing, Athletic Greens"})]})]})}let nT=[{slug:"https://www.readfeedme.com/",name:"Emily Sundberg",publication:"Feed Me",description:"Decodes what America is eating before it shows up on your feed, your menu, or your competitor's roadmap.",image:nx,subscribers:"1.2M subscribers",cadence:"Daily cadence"},{slug:"lenny",name:"Lenny Rachitsky",publication:"Lenny's Newsletter",description:"A masterclass from the world's best product and growth leaders, distilled into practical, immediately usable playbooks...",image:"/img/sponsorships-marketing/creator-lenny.png",subscribers:"1.2M subscribers",cadence:"Weekly cadence"},{slug:"zeteo",name:"Mehdi Hasan",publication:"Zeteo",description:"Zeteo is a new media organization that seeks to answer the questions that really matter, while always striving for the truth.",image:nv,subscribers:"520K subscribers",cadence:"Daily cadence"},{slug:"whattocook",name:"Caroline Chambers",publication:"What to Cook When You Don't Feel like Cooking",description:"Caroline is a best-selling cookbook author and recipe developer making creative, low-fuss meals for busy home cooks.",image:"/img/sponsorships-marketing/creator-caroline-chambers.png",subscribers:"1.2M subscribers",cadence:"Weekly cadence"},{slug:"natesilver",name:"Nate Silver",publication:"Silver Bulletin",description:"Data-driven essays and analysis on elections, media, sports, poker, and other topics.",image:"/img/sponsorships-marketing/creator-nate-silver.png",subscribers:"1.2M subscribers",cadence:"Daily cadence"},{slug:"https://www.readfeedme.com/",name:"Emily Sundberg",publication:"Feed Me",description:"Decodes what America is eating before it shows up on your feed, your menu, or your competitor's roadmap.",image:nx,subscribers:"1.2M subscribers",cadence:"Daily cadence"}];function nP(e){let{card:t}=e,n=t.slug.startsWith("http")?t.slug:"https://".concat(t.slug,".substack.com");return(0,a.jsxs)("a",{href:n,className:"creatorCard-AbXy2P",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:"creatorCardImage-cOUGZi",children:(0,a.jsx)("img",{src:t.image,alt:t.name,className:"creatorCardImg-j1neol"})}),(0,a.jsxs)(E.VP,{gap:2,className:"creatorCardContent-UwmuNW",children:[(0,a.jsx)("h3",{className:"creatorCardName-Q2iXQL",children:t.name}),(0,a.jsx)("span",{className:"creatorCardPub-R1Qeid",children:t.publication}),(0,a.jsx)("p",{className:"creatorCardDesc-Vqomuy",children:t.description}),(0,a.jsxs)(E.fI,{gap:24,className:"creatorCardMeta-R054Sa",children:[(0,a.jsxs)("span",{className:nN,children:[(0,a.jsx)("strong",{className:nO,children:t.subscribers.split(" ")[0]})," ",t.subscribers.split(" ").slice(1).join(" ")]}),(0,a.jsxs)("span",{className:nN,children:[(0,a.jsx)("strong",{className:nO,children:t.cadence.split(" ")[0]})," ",t.cadence.split(" ").slice(1).join(" ")]})]})]})]})}let nD=["Explore","U.S. Politics","Technology","Culture","Business","Science"];function nB(){return(0,a.jsx)(E.fI,{gap:8,className:"categoryTabs-v1m7QA",children:nD.map((e,t)=>(0,a.jsx)("button",{className:"".concat("categoryTab-EIQNX_"," ").concat(0===t?"categoryTabActive-uHkZ0S":""),children:e},e))})}function nU(e){let{label:t}=e;return(0,a.jsx)("button",{className:"filterPill-JVEnIq",children:(0,a.jsx)("span",{className:"filterPillText-mTrtgK",children:t})})}function nG(){return(0,o.useEffect)(()=>{window.scrollTo(0,0)},[]),(0,a.jsxs)("div",{className:"page-hfsW_N",children:[(0,a.jsxs)("div",{className:"hero-DQcUkM",children:[(0,a.jsx)("h1",{className:"heroTitle-Bj2WQi",children:"Partnership opportunities"}),(0,a.jsx)("p",{className:"heroDescription-PDC5tM",children:"Explore our partnership formats. Tell us what you're interested in, and we'll match you with the right creators for your goals."})]}),(0,a.jsx)("section",{className:"section1-rr4OH0",children:(0,a.jsx)("div",{className:nf,children:(0,a.jsxs)(E.fI,{gap:96,className:nA,children:[(0,a.jsx)(nC,{num:"01",title:"Sponsored content",description:"Native newsletter posts, embedded placements, or creator-read podcast spots. Your message delivered in a voice readers already trust.",bullets:["Integrated naturally into regular content","Written or recorded in the creator's voice","Full reporting on reach and engagement"],ctaLabel:"Request info"}),(0,a.jsxs)(E.VP,{gap:24,className:nE,children:[(0,a.jsx)(nk,{avatar:"/img/sponsorships-marketing/creator-lenny.png",name:"Lenny Rachitsky",publication:"Lenny's Newsletter",quote:"Sponsors become part of the conversation, not an interruption. My readers engage because they trust my recommendations.",stats:[{value:"1.2M",label:"subscribers"},{value:"58%",label:"open rate"}]}),(0,a.jsx)(nj,{})]})]})})}),(0,a.jsx)("section",{className:"section2-qLdGN3",children:(0,a.jsx)("div",{className:nf,children:(0,a.jsxs)(E.fI,{gap:96,className:nA,children:[(0,a.jsxs)(E.VP,{gap:24,className:nE,children:[(0,a.jsx)(nk,{avatar:"/img/sponsorships-marketing/creator-feedme.png",name:"Emily Sundberg",publication:"Feed Me",quote:"Our dinner series sells out in minutes. Sponsors get to be part of something my readers genuinely look forward to.",stats:[{value:"200+",label:"attendees per event"},{value:"94%",label:"would attend again"}],bgColor:"#ffffff"}),(0,a.jsx)(nL,{})]}),(0,a.jsx)(nC,{num:"02",title:"Events & experiences",description:"Connect with communities in real life. Sponsor creator-hosted events, dinners, meetups, or co-create programming together.",bullets:["High-touch engagement with dedicated audiences","Brand visibility across promotion and event","Options from intimate dinners to large conferences"],ctaLabel:"Start a campaign"})]})})}),(0,a.jsx)("section",{className:"section3-pdNbi_",children:(0,a.jsx)("div",{className:nf,children:(0,a.jsxs)(E.fI,{gap:96,className:nA,children:[(0,a.jsx)(nC,{num:"03",title:"Syndication & licensing",description:"Bring trusted voices to your own platforms. License creator content for your channels, apps, or owned media properties.",bullets:["Exclusive or non-exclusive licensing options","Established voices add credibility to your content","Flexible terms tailored to your use case"],ctaLabel:"Start a campaign"}),(0,a.jsx)("div",{className:nE,children:(0,a.jsx)(nk,{avatar:nv,name:"Mehdi Hasan",publication:"Zeteo",quote:"Syndication lets brands leverage the trust I've built without me having to create something new. It's efficient for everyone.",stats:[{value:"520K",label:"subscribers"},{value:"5+",label:"syndication partners"}]})})]})})}),(0,a.jsx)("section",{className:"section4-C4PeIS",children:(0,a.jsx)("div",{className:nf,children:(0,a.jsxs)(E.fI,{gap:96,className:nA,children:[(0,a.jsx)("div",{className:nE,children:(0,a.jsx)(nR,{})}),(0,a.jsx)(nC,{num:"04",title:"Custom programs",description:"Something bigger in mind? We'll design a bespoke partnership that fits your specific goals—multi-creator campaigns, branded content series, or entirely new formats.",bullets:["Dedicated strategy and creative support","Cross-creator campaigns for broader reach","Formats tailored to your brand and audience"],ctaLabel:"Start a campaign"})]})})}),(0,a.jsx)("section",{className:"bottomCta-rN8Kr6",children:(0,a.jsxs)(E.VP,{gap:16,className:"bottomCtaContent-ULeqSv",children:[(0,a.jsx)("h2",{className:"bottomCtaTitle-FpB_UI",children:"Not sure which format is right for you?"}),(0,a.jsx)("p",{className:"bottomCtaDescription-YnUrxb",children:"Tell us about your goals and we'll recommend the best approach."}),(0,a.jsx)("a",{href:"/creator-agency-signup",className:"bottomCtaButton-PvxdSl",children:"Let's talk"})]})}),(0,a.jsx)("section",{className:"creatorsSection-CTf5LL",children:(0,a.jsxs)(E.VP,{gap:48,className:"creatorsContent-VCcv3P",children:[(0,a.jsx)("h2",{className:"creatorsTitle-o7WLhG",children:"Meet the creators shaping culture"}),(0,a.jsx)(nB,{}),(0,a.jsx)("div",{className:"creatorsGrid-cYOze_",children:nT.map((e,t)=>(0,a.jsx)(nP,{card:e},"".concat(e.name,"-").concat(t)))}),(0,a.jsx)("button",{className:"seeMoreButton-itxdiw",children:"See more"})]})}),(0,a.jsxs)("section",{className:"campaignPrompt-Iq4jXR",children:[(0,a.jsxs)(E.VP,{gap:24,className:"campaignPromptHeader-Lb8y5G",children:[(0,a.jsx)("h2",{className:"campaignPromptTitle-qIGYEm",children:"What do you want to create together?"}),(0,a.jsx)("p",{className:"campaignPromptDescription-EHR7ce",children:"Describe your campaign and we'll find writers whose communities align."})]}),(0,a.jsxs)("div",{className:"campaignBox-r7mqya",children:[(0,a.jsx)("div",{className:"campaignTextareaWrapper-QIuUYh",children:(0,a.jsx)("textarea",{placeholder:"Describe your ideal campaign...",className:"campaignTextarea-YerYaM"})}),(0,a.jsxs)(E.fI,{className:"campaignFooter-GfgzVi",children:[(0,a.jsxs)(E.fI,{gap:12,className:"campaignFilters-vObXue",children:[(0,a.jsx)(nU,{label:"Budget range"}),(0,a.jsx)(nU,{label:"Category"}),(0,a.jsx)(nU,{label:"Audience size"})]}),(0,a.jsxs)("a",{href:"/creator-agency-signup",className:"campaignSubmit-bJ_uSH",children:[(0,a.jsx)("span",{className:"campaignSubmitText-YAyTId",children:"Find creators"}),(0,a.jsx)(ej.A,{size:16,stroke:"white",strokeWidth:1.5})]})]})]})]})]})}let nF={page:"page-Ep_xZM",navbar:"navbar-Pok72j",navbarScrolled:"navbarScrolled-1z0n7S",navbarContent:"navbarContent-AI_JDx",navbarLinks:"navbarLinks-pQaCX5",navbarButton:"navbarButton-cqWBes",buttonPrimary:"buttonPrimary-Z0nqha",buttonSecondary:"buttonSecondary-s2cqHM",hero:"hero-uLjPf7",heroBg:"heroBg-aGDjMM",heroBgAnimated:"heroBgAnimated-Ip3ocW",heroFadeIn:"heroFadeIn-nbr7oy",heroBgImage:"heroBgImage-H9NYe9",heroBgOverlay:"heroBgOverlay-fiDInR",heroContent:"heroContent-JzwRtn",heroTextContainer:"heroTextContainer-DWCe7c",heroTitle:"heroTitle-NhV8oB",heroText1:"heroText1-Hb2ODh",heroText2:"heroText2-itJmGb",fadeSlideUp:"fadeSlideUp-AZERJY",heroSubtitle:"heroSubtitle-CVfMYA",valueProp:"valueProp-fG9cdN",valuePropContent:"valuePropContent-POQ6S2",valuePropHeading:"valuePropHeading-dcpdpk",valuePropEmphasis:"valuePropEmphasis-X5wBRU",featuredCreators:"featuredCreators-leXcYR",noiseOverlay:"noiseOverlay-btRd3J",featuredHeader:"featuredHeader-b67MDO",featuredTitle:"featuredTitle-VpQehX",scrollButton:"scrollButton-pKOce3",scrollButtonLeft:"scrollButtonLeft-QpxPCm",scrollButtonDisabled:"scrollButtonDisabled-dalzbj",scrollContainer:"scrollContainer-Cwrkcf",fadeRight:"fadeRight-MSMybh",fadeLeft:"fadeLeft-wsXu4U",scrollWrapper:"scrollWrapper-xJU0nR",creatorGrid:"creatorGrid-RN2o33",visible:"visible-igwhgE",floatSlow:"floatSlow-LzBik5",floatMed:"floatMed-YUB_hY",creatorCard:"creatorCard-VHWsUu",creatorImage:"creatorImage-uC7Kz_",creatorCardGradient:"creatorCardGradient-gBObty",creatorCardTag:"creatorCardTag-uu6EXq",categoryTag:"categoryTag-RfVmpN",categoryTagText:"categoryTagText-IZb9lS",creatorCardInfo:"creatorCardInfo-HJfG2c",creatorName:"creatorName-cISSSc",creatorPublication:"creatorPublication-SfXO3R",subscriberCount:"subscriberCount-SQK2pN",subscriberCountNumber:"subscriberCountNumber-eA3x1l",subscriberCountLabel:"subscriberCountLabel-ifXb68",waysToPartner:"waysToPartner-XlU8Dq",waysToPartnerContent:"waysToPartnerContent-RweRer",waysToPartnerHeader:"waysToPartnerHeader-hM9_Ki",waysToPartnerTitle:"waysToPartnerTitle-gv4K34",waysToPartnerSubtitle:"waysToPartnerSubtitle-YWs24U",cardsContainer:"cardsContainer-2iYKcG",cardsWrapper:"cardsWrapper-DV9wYJ",partnerCard:"partnerCard-Equq3z",partnerCardLight:"partnerCardLight-GNThcK",partnerCardDark:"partnerCardDark-bjmNoC",partnerCardBg:"partnerCardBg-tUfouh",partnerCardContent:"partnerCardContent-nipGzc",partnerCardTitle:"partnerCardTitle-vVOxgW",partnerCardDescription:"partnerCardDescription-h_iDfr",testimonial:"testimonial-inhvxO",testimonialContent:"testimonialContent-fov0FG",testimonialLabel:"testimonialLabel-iPXuVw",testimonialQuote:"testimonialQuote-MBBfx5",testimonialText:"testimonialText-tHg6fL",testimonialAttribution:"testimonialAttribution-OSWvAo",testimonialAvatar:"testimonialAvatar-l9r0iE",testimonialName:"testimonialName-OV78gH",testimonialTitle:"testimonialTitle-mcBpkS",logoBar:"logoBar-lw7lmy",logoBarFadeLeft:"logoBarFadeLeft-t_umbr",logoBarFadeRight:"logoBarFadeRight-Wgy9nU",logoBarTrack:"logoBarTrack-GHq9tz",marqueeTrack:"marqueeTrack-S77m0e",marquee:"marquee-cnV6wt",marqueeSet:"marqueeSet-bl44tN",logoItem:"logoItem-vBKEuG",logoImage:"logoImage-TR6VY_",ctaFooter:"ctaFooter-fG7XpC",ctaGlow:"ctaGlow-PDqbhK",ctaContent:"ctaContent-ysTx_h",ctaHeading:"ctaHeading-VJLhXx",ctaText1:"ctaText1-uXXUjd",ctaText2:"ctaText2-nuE8Aa",ctaButtonContainer:"ctaButtonContainer-jqT04m",scrollReveal:"scrollReveal-oRcHQh",testimonialSection:"testimonialSection-lyP7KO",testimonialAuthor:"testimonialAuthor-NJZa9k",ctaSubheading:"ctaSubheading-N4gRRb",waysToPartnerHeading:"waysToPartnerHeading-s1Pafx"},nW=[{name:"Mehdi Hasan",publication:"Zeteo",subscribers:"1.2M",category:"Politics",image:"/img/sponsorships-marketing/creator-zeteo.png",url:"https://zeteo.substack.com",topOffset:40,float:"float-slow"},{name:"Lenny Rachitsky",publication:"Lenny's Newsletter",subscribers:"1.2M",category:"Technology",image:"/img/sponsorships-marketing/creator-lenny.png",url:"https://www.lennysnewsletter.com",topOffset:0,float:"float-med"},{name:"Emily Sundberg",publication:"Feed Me",subscribers:"1.2M",category:"Culture",image:"/img/sponsorships-marketing/creator-feedme.png",url:"https://feedme.substack.com",topOffset:60,float:"float-slow"},{name:"Caroline Chambers",publication:"What to Cook",subscribers:"800K",category:"Food",image:"/img/sponsorships-marketing/creator-caroline-chambers.png",url:"https://whattocook.substack.com",topOffset:20,float:"float-med"},{name:"Nate Silver",publication:"Silver Bulletin",subscribers:"500K",category:"Data",image:"/img/sponsorships-marketing/creator-nate-silver.png",url:"https://www.natesilver.net",topOffset:50,float:"float-slow"}],nY=[{title:"Sponsored Content",description:"Reach readers through content on Substack—in newsletter posts or creator-read podcast spots.",variant:"light",width:320,height:420},{title:"Events & experiences",description:"Connect with communities in real life. Sponsor creator events or co-host programming together.",variant:"dark",width:380,height:380,image:"/img/sponsorships-marketing/events-bg.jpg"},{title:"Syndication",description:"Bring trusted voices to your platforms. License creator content for your own channels.",variant:"light",width:300,height:320,topOffset:60},{title:"Custom programs",description:"Something bigger in mind? Let's design a bespoke partnership that fits your goals.",variant:"dark",width:480,height:340,image:"/img/sponsorships-marketing/custom-bg.jpg"}],nK=[{src:"/img/sponsorships-marketing/logo-1.png",width:249,height:55},{src:"/img/sponsorships-marketing/logo-3.png",width:164,height:55},{src:"/img/sponsorships-marketing/canvalogo.png",width:108,height:37},{src:"/img/sponsorships-marketing/logo-5.png",width:162,height:45},{src:"/img/sponsorships-marketing/logo-6.png",width:144,height:39}];function nH(){let e=(0,o.useRef)(null),t=(0,o.useCallback)(t=>{e.current=t},[]);return(0,o.useEffect)(()=>{let t=e.current;if(!t)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){nF.visible&&t.classList.add(nF.visible);return}let n=new IntersectionObserver(e=>{let t=e[0];(null==t?void 0:t.isIntersecting)&&t.target&&nF.visible&&(t.target.classList.add(nF.visible),n.unobserve(t.target))},{threshold:.15,rootMargin:"0px 0px -40px 0px"});return n.observe(t),()=>n.disconnect()},[]),t}let nV=()=>(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5 12H19M19 12L13 6M19 12L13 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function nz(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),(0,a.jsxs)("section",{className:nF.hero,children:[(0,a.jsxs)("div",{className:"".concat(nF.heroBg," ").concat(e?nF.heroBgAnimated:""),children:[(0,a.jsx)("img",{src:"/img/sponsorships-marketing/hero-bg.png",alt:"",className:nF.heroBgImage}),(0,a.jsx)("div",{className:nF.heroBgOverlay})]}),(0,a.jsx)(E.VP,{className:nF.heroContent,children:(0,a.jsxs)(E.VP,{gap:40,className:nF.heroTextContainer,children:[(0,a.jsxs)("h1",{className:nF.heroTitle,children:[(0,a.jsx)("span",{className:nF.heroText1,children:"Invest in"}),(0,a.jsx)("span",{className:nF.heroText2,children:"culture"})]}),(0,a.jsx)("p",{className:nF.heroSubtitle,children:"The most influential voices in media are building communities on Substack."})]})})]})}function nq(){let e=nH();return(0,a.jsx)("section",{className:nF.valueProp,children:(0,a.jsx)("div",{ref:e,className:"".concat(nF.scrollReveal," ").concat(nF.valuePropContent),children:(0,a.jsxs)("h2",{className:nF.valuePropHeading,children:["These creators don't have audiences. They have ",(0,a.jsx)("span",{className:nF.valuePropEmphasis,children:"communities"}),"—paying readers who show up because they believe in the work."]})})})}function nJ(e){let{label:t}=e;return(0,a.jsx)("div",{className:nF.categoryTag,children:(0,a.jsx)("span",{className:nF.categoryTagText,children:t})})}function nZ(e){let{count:t}=e;return(0,a.jsxs)(E.fI,{gap:4,className:nF.subscriberCount,children:[(0,a.jsx)("span",{className:nF.subscriberCountNumber,children:t}),(0,a.jsx)("span",{className:nF.subscriberCountLabel,children:"Subscribers"})]})}function nX(){let e=nH(),t=(0,o.useRef)(null),[n,i]=(0,o.useState)(!1),[r,s]=(0,o.useState)(!0),l=(0,o.useCallback)(()=>{let e=t.current;e&&(i(e.scrollLeft>10),s(e.scrollLeft{let e=t.current;if(e)return l(),e.addEventListener("scroll",l,{passive:!0}),()=>e.removeEventListener("scroll",l)},[l]);let c=e=>{let n=t.current;n&&n.scrollBy({left:"right"===e?460:-460,behavior:"smooth"})};return(0,a.jsxs)("section",{className:nF.featuredCreators,children:[(0,a.jsxs)("svg",{className:nF.noiseOverlay,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("filter",{id:"grain",children:(0,a.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.7",numOctaves:"4",stitchTiles:"stitch"})}),(0,a.jsx)("rect",{width:"100%",height:"100%",filter:"url(#grain)"})]}),(0,a.jsxs)(E.fI,{className:nF.featuredHeader,children:[(0,a.jsx)("h2",{className:nF.featuredTitle,children:"Featured creators"}),(0,a.jsxs)(E.fI,{gap:8,children:[(0,a.jsx)("button",{onClick:()=>c("left"),className:"".concat(nF.scrollButton," ").concat(nF.scrollButtonLeft," ").concat(n?"":nF.scrollButtonDisabled),disabled:!n,children:(0,a.jsx)(nV,{})}),(0,a.jsx)("button",{onClick:()=>c("right"),className:"".concat(nF.scrollButton," ").concat(r?"":nF.scrollButtonDisabled),disabled:!r,children:(0,a.jsx)(nV,{})})]})]}),(0,a.jsxs)("div",{className:nF.scrollContainer,children:[r&&(0,a.jsx)("div",{className:nF.fadeRight}),n&&(0,a.jsx)("div",{className:nF.fadeLeft}),(0,a.jsx)("div",{ref:t,className:nF.scrollWrapper,children:(0,a.jsx)("div",{ref:e,className:"".concat(nF.creatorGrid," ").concat(nF.scrollReveal),children:nW.map(e=>(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"".concat(nF[e.float]),style:{marginTop:e.topOffset},children:(0,a.jsxs)("div",{className:nF.creatorCard,children:[(0,a.jsx)("img",{src:e.image,alt:e.name,className:nF.creatorImage}),(0,a.jsx)("div",{className:nF.creatorCardGradient}),(0,a.jsx)("div",{className:nF.creatorCardTag,children:(0,a.jsx)(nJ,{label:e.category})}),(0,a.jsxs)(E.VP,{gap:8,className:nF.creatorCardInfo,children:[(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)("span",{className:nF.creatorName,children:e.name}),(0,a.jsx)("span",{className:nF.creatorPublication,children:e.publication})]}),(0,a.jsx)(nZ,{count:e.subscribers})]})]})},e.name))})})]})]})}function nQ(){let e=nH();return(0,a.jsx)("section",{className:nF.waysToPartner,children:(0,a.jsxs)("div",{ref:e,className:"".concat(nF.scrollReveal," ").concat(nF.waysToPartnerContent),children:[(0,a.jsxs)(E.fI,{className:nF.waysToPartnerHeader,children:[(0,a.jsx)("h2",{className:nF.waysToPartnerTitle,children:"Ways to partner"}),(0,a.jsxs)("p",{className:nF.waysToPartnerSubtitle,children:["From native content to live experiences—find the right",(0,a.jsx)("br",{}),"format to connect with communities that matter."]})]}),(0,a.jsx)("div",{className:nF.cardsContainer,children:(0,a.jsx)("div",{className:nF.cardsWrapper,children:nY.map((e,t)=>{let n="dark"===e.variant;return(0,a.jsxs)("a",{href:"/creator-agency-opportunities",className:"".concat(nF.partnerCard," ").concat(n?nF.partnerCardDark:nF.partnerCardLight),style:{left:"".concat([0,22.165,48.194,69.072][t],"%"),top:"".concat((32+(e.topOffset||0))/516*100,"%"),width:"".concat([20.619,24.484,19.33,30.928][t],"%"),height:"".concat(e.height/516*100,"%")},children:[e.image&&(0,a.jsx)("div",{className:nF.partnerCardBg,style:{backgroundImage:"url('".concat(e.image,"')")}}),(0,a.jsxs)(E.VP,{className:nF.partnerCardContent,children:[(0,a.jsx)("h3",{className:nF.partnerCardTitle,children:e.title}),(0,a.jsx)("p",{className:nF.partnerCardDescription,children:e.description})]})]},e.title)})})})]})})}function n$(){let e=nH();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{className:nF.testimonial,children:(0,a.jsx)("div",{ref:e,className:"".concat(nF.scrollReveal," ").concat(nF.testimonialContent),children:(0,a.jsxs)(E.VP,{gap:20,children:[(0,a.jsx)("span",{className:nF.testimonialLabel,children:"From our partners"}),(0,a.jsx)("blockquote",{className:nF.testimonialQuote,children:(0,a.jsx)("p",{className:nF.testimonialText,children:'"We didn\'t want to buy ads. We wanted to support the writers our customers already trust. The response was incredible—people thanked us by name."'})}),(0,a.jsxs)(E.fI,{gap:16,className:nF.testimonialAttribution,justifyContent:"center",children:[(0,a.jsx)("img",{src:"/img/sponsorships-marketing/testimonial-avatar.jpg",alt:"Sarah Chen",className:nF.testimonialAvatar}),(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)("span",{className:nF.testimonialName,children:"Sarah Chen"}),(0,a.jsx)("span",{className:nF.testimonialTitle,children:"VP Marketing, Notion"})]})]})]})})}),(0,a.jsxs)("section",{className:nF.logoBar,children:[(0,a.jsx)("div",{className:nF.logoBarFadeLeft}),(0,a.jsx)("div",{className:nF.logoBarFadeRight}),(0,a.jsx)("div",{className:nF.logoBarTrack,children:(0,a.jsx)("div",{className:nF.marqueeTrack,children:[0,1].map(e=>(0,a.jsx)(E.fI,{gap:64,className:nF.marqueeSet,children:nK.map((t,n)=>(0,a.jsx)("div",{className:nF.logoItem,style:{width:t.width,height:t.height},children:(0,a.jsx)("img",{src:t.src,alt:"",className:nF.logoImage})},"".concat(e,"-").concat(n)))},e))})})]})]})}function n0(){let e=nH();return(0,a.jsxs)("section",{className:nF.ctaFooter,children:[(0,a.jsx)("div",{className:nF.ctaGlow}),(0,a.jsx)("div",{ref:e,className:"".concat(nF.scrollReveal," ").concat(nF.ctaContent),children:(0,a.jsxs)(E.VP,{gap:32,children:[(0,a.jsxs)("h2",{className:nF.ctaHeading,children:[(0,a.jsx)("span",{className:nF.ctaText1,children:"The best sponsorships don't interrupt culture—"}),(0,a.jsx)("span",{className:nF.ctaText2,children:"they fund it."})]}),(0,a.jsx)("div",{className:nF.ctaButtonContainer,children:(0,a.jsx)(A.$n,{href:"/creator-agency-signup",priority:"primary",children:"Become a sponsor"})})]})})]})}function n1(){return(0,o.useEffect)(()=>{window.scrollTo(0,0)},[]),(0,a.jsxs)("div",{className:nF.page,children:[(0,a.jsx)(nz,{}),(0,a.jsx)(nq,{}),(0,a.jsx)(nX,{}),(0,a.jsx)(nQ,{}),(0,a.jsx)(n$,{}),(0,a.jsx)(n0,{})]})}let n2="pageHeading-AfkQzx",n3="sectionLabelWrapper-S95sFg",n4="sectionLabel-ry9aqb",n9="input-g2xZP1",n8="legalLink-FwxIK6";function n7(){let[e,t]=(0,o.useState)(""),[n,i]=(0,o.useState)(""),[r,s]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),[p,m]=(0,o.useState)(!1),[h,g]=(0,o.useState)("idle");(0,o.useEffect)(()=>{window.scrollTo(0,0)},[]);let _=(0,o.useCallback)(e=>{let t=e.currentTarget;t.style.height="auto",t.style.height="".concat(Math.min(t.scrollHeight,240),"px")},[]),b=async a=>{if(a.preventDefault(),!p){m(!0),g("idle");try{(await fetch("/api/v1/sponsorship/creator-agency-inquiry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:e,lastName:n,email:r,company:l,campaignGoals:d})})).ok?(g("success"),t(""),i(""),s(""),c(""),u("")):g("error")}catch(e){console.error("Failed to submit form:",e),g("error")}finally{m(!1)}}};return(0,a.jsxs)(ep.az,{className:"page-PVd9q5",children:[(0,a.jsxs)("div",{className:"leftPanel-c1bDaz",children:[(0,a.jsx)("img",{src:"/img/sponsorships-marketing/signup-hero.png",alt:"",className:"heroImage-svz671"}),(0,a.jsx)("div",{className:"imageGradient-AsLwxY"}),(0,a.jsxs)(E.VP,{gap:24,className:"testimonialOverlay-slEobj",children:[(0,a.jsx)("blockquote",{className:"testimonialQuote-OIXmdX",children:(0,a.jsx)("p",{className:"testimonialText-NwUYU9",children:'"The engagement we see from Substack readers is unlike any other channel. These are people who actually read."'})}),(0,a.jsxs)(E.fI,{gap:16,className:"testimonialAttribution-DlWkVT",children:[(0,a.jsx)("img",{src:"/img/sponsorships-marketing/testimonial-avatar.jpg",alt:"Sarah Chen",className:"testimonialAvatar-MvIgs5"}),(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)("span",{className:"testimonialName-DJpn95",children:"Sarah Chen"}),(0,a.jsx)("span",{className:"testimonialTitle-J4sEkQ",children:"VP Marketing, Notion"})]})]})]})]}),(0,a.jsx)("div",{className:"rightPanel-eljw5I",children:(0,a.jsx)(E.VP,{gap:32,className:"formContainer-LAXlV2",children:"success"===h?(0,a.jsxs)(E.VP,{gap:24,children:[(0,a.jsx)("h1",{className:n2,children:"Thank you!"}),(0,a.jsx)("p",{className:"confirmationText-fum4PK",children:"We've received your request and will be in touch soon to discuss partnership opportunities."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:n2,children:"Request an invitation"}),(0,a.jsxs)("form",{onSubmit:b,className:"form-BIAFea",children:[(0,a.jsxs)(E.VP,{gap:16,children:[(0,a.jsx)("div",{className:n3,children:(0,a.jsx)("span",{className:n4,children:"Your details"})}),(0,a.jsxs)(E.VP,{gap:16,children:[(0,a.jsxs)(E.fI,{gap:12,children:[(0,a.jsx)("input",{type:"text",placeholder:"First name",className:"".concat(n9," ").concat("inputFirstName-D_6nq4"),value:e,onChange:e=>{var n;return t((null==(n=e.currentTarget)?void 0:n.value)||"")},required:!0}),(0,a.jsx)("input",{type:"text",placeholder:"Last name",className:"".concat(n9," ").concat("inputFlex-CXBvzg"),value:n,onChange:e=>{var t;return i((null==(t=e.currentTarget)?void 0:t.value)||"")},required:!0})]}),(0,a.jsx)("input",{type:"email",placeholder:"Email",className:n9,value:r,onChange:e=>{var t;return s((null==(t=e.currentTarget)?void 0:t.value)||"")},required:!0}),(0,a.jsx)("input",{type:"text",placeholder:"Company",className:n9,value:l,onChange:e=>{var t;return c((null==(t=e.currentTarget)?void 0:t.value)||"")},required:!0})]})]}),(0,a.jsxs)(E.VP,{gap:20,className:"campaignSection-qbg731",children:[(0,a.jsx)("div",{className:n3,children:(0,a.jsx)("span",{className:n4,children:"Your campaign goals"})}),(0,a.jsxs)(E.VP,{gap:8,children:[(0,a.jsx)("textarea",{placeholder:"Tell us about your brand, who you're trying to reach, and what success looks like for you.",onInput:_,className:"textarea-QxxtDf",value:d,onChange:e=>{var t;return u((null==(t=e.currentTarget)?void 0:t.value)||"")}}),(0,a.jsx)("span",{className:"helperText-fwWzfL",children:"We work with brands of all sizes across consumer, technology, and culture."})]})]}),(0,a.jsxs)(E.VP,{children:[(0,a.jsx)("button",{type:"submit",className:"submitButton-p2ytSi",disabled:p,children:p?"Submitting...":"Submit request"}),"error"===h&&(0,a.jsx)("p",{className:"errorMessage-aNUBCH",children:"Something went wrong. Please try again."}),(0,a.jsxs)("p",{className:"legalText-RjObDN",children:["By submitting, you agree to our"," ",(0,a.jsx)("a",{href:"/tos",className:n8,children:"Terms"})," ","and"," ",(0,a.jsx)("a",{href:"/privacy",className:n8,children:"Privacy Policy"}),"."]})]})]})]})})})]})}var n5=n(42877),n6=n.n(n5),ae=n(6498),at=n.n(ae),an=n(76528);let aa=e=>{let{title:t,meta:n,description:i,image:r,link:o}=e;return(0,a.jsxs)("div",{className:"recurring-container",children:[(0,a.jsx)("img",{src:r,alt:"",className:"recurring-img"}),(0,a.jsx)("div",{className:"recurring-header",children:t}),(0,a.jsx)("div",{className:"recurring-meta",children:n}),(0,a.jsx)("div",{className:"recurring-description",children:i}),(0,a.jsx)("a",{className:"button big-button primary",href:o,style:{height:"44px",lineHeight:"24px",borderRadius:"4px"},children:"Join"})]})},ai=e=>{let{title:t,event_date:n,event_time:i,cta:r,description:o,link:s,substack_hosted:l}=e;return(0,a.jsxs)("div",{className:"event-item",children:[(0,a.jsxs)("div",{className:"event-item-content",children:[(0,a.jsxs)("div",{className:"event-item-title",children:[t," ",l&&(0,a.jsx)(E.pT,{alignItems:"center",paddingLeft:4,children:(0,a.jsx)(th.vw,{priority:"secondary",children:"HOSTED BY SUBSTACK"})})]}),(0,a.jsx)("div",{className:"event-item-date",children:(0,tg.A)(n).format("MMMM D, YYYY")}),(0,a.jsx)("div",{className:"event-item-date",children:i}),(0,a.jsx)("div",{className:"event-item-description",children:o})]}),(0,a.jsx)("a",{className:"button big-button primary",href:s,style:{height:"44px",lineHeight:"24px",borderRadius:"4px",marginLeft:"12px"},children:r||"Join"})]})},ar=l(()=>{var e;let{data:t,error:n}=(0,an.OU)("/api/v1/substack_events"),i=null!=(e=null==t?void 0:t.events)?e:[],[o,s]=at()(i,e=>(0,tg.A)(new Date(e.event_date)).add(1,"day").toDate()>=new Date);return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack - Events",description:"Substack events connect writers to help one another develop and celebrate milestones."}),(0,a.jsx)("div",{className:"events-hero",children:(0,a.jsxs)("div",{className:"events-hero-content",children:[(0,a.jsx)("img",{className:"events-hero-image",src:(0,N.dJ9)("/img/cohorts/events/events-hero.png",854),alt:"events-illustration"}),(0,a.jsx)("div",{className:"events-hero-header",children:"Writer events"}),(0,a.jsx)("div",{className:"events-hero-subtitle",children:"Being independent shouldn’t mean being alone. The Substack team, as well as your fellow writers, are hosting events to connect the writer community as they develop publications and celebrate milestones."})]})}),(0,a.jsx)("div",{className:"events-section",children:(0,a.jsxs)("div",{className:"events-section-content",children:[(0,a.jsx)("div",{className:"events-header",children:"Recurring events"}),(0,a.jsxs)("div",{className:"recurring-events",children:[(0,a.jsx)(aa,{image:(0,N.dJ9)("/img/cohorts/events/clock-event.png",182),title:"Writer office hours",meta:"Weekly on Thursdays at 10 a.m. PT / 1 p.m. ET",description:"Each week for one hour, the writer community and the Substack team gather together in a discussion thread to share knowledge and answer questions.",link:"https://lu.ma/office-hours"}),(0,a.jsx)(aa,{image:(0,N.dJ9)("/img/cohorts/events/papercup-sm.png",182),title:"Shoutout Thread",meta:"First Thursday of every month",description:"The monthly discussion thread is a chance to share what we’ve been reading and inspired by on Substack plus meet fellow writers.",link:"https://lu.ma/shoutout"})]}),o.length>1&&(0,a.jsx)("div",{className:"events-header",children:"Upcoming events"}),!n&&(0,a.jsx)(a.Fragment,{children:n6()(o,e=>(0,tg.A)(e.event_date),["asc"]).map(e=>(0,a.jsx)(ai,(0,r._)({},e)))})]})})]})});var ao=n(80697),as=n(49045),al=n(22602),ac=n(57820),ad=n(81203),au=n(21398),ap=n(16884),am=JSON.parse('{"qT":[{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[114.25,22.2],[114.12,22.28],[114.2,22.29],[114.25,22.2]]],[[[113.9,22.2],[113.83,22.23],[114.05,22.34],[113.9,22.2]]],[[[114.22,22.47],[114.03,22.51],[114.22,22.55],[114.22,22.47]]]]},"properties":{"NAME":"Hong Kong","scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Hong Kong","SOV_A3":"HK","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Hong Kong","ADM0_A3":"HK","GEOU_DIF":0,"GEOUNIT":"Hong Kong","GU_A3":"HK","SU_DIF":0,"SUBUNIT":"Hong Kong","SU_A3":"HK","BRK_DIFF":0,"NAME_LONG":"Hong Kong","BRK_A3":"HK","BRK_NAME":"Hong Kong","BRK_GROUP":null,"ABBREV":"HK","POSTAL":"HK","FORMAL_EN":"Hong Kong","FORMAL_FR":null,"NAME_CIAWF":"Hong Kong","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Hong Kong","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":8,"MAPCOLOR13":7,"POP_EST":34124811,"POP_RANK":15,"GDP_MD_EST":64080,"POP_YEAR":2017,"LASTCENSUS":1979,"GDP_YEAR":2016,"ECONOMY":"","INCOME_GRP":"","WIKIPEDIA":-99,"FIPS_10_":"HK","ISO_A2":"HK","ISO_A3":"HK","ISO_A3_EH":"HK","ISO_N3":"004","UN_A3":"004","WB_A2":"HK","WB_A3":"HK","WOE_ID":23424739,"WOE_ID_EH":23424739,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"HK","ADM0_A3_US":"HK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[113.819733,22.155686,114.421921,22.546093],"id":"HK"},{"type":"Feature","id":"SG","properties":{"NAME":"Singapore","scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Singapore","SOV_A3":"SG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Singapore","ADM0_A3":"SG","GEOU_DIF":0,"GEOUNIT":"Singapore","GU_A3":"SG","SU_DIF":0,"SUBUNIT":"Singapore","SU_A3":"SG","BRK_DIFF":0,"NAME_LONG":"Singapore","BRK_A3":"SG","BRK_NAME":"Singapore","BRK_GROUP":null,"ABBREV":"SG","POSTAL":"AF","FORMAL_EN":"Singapore","FORMAL_FR":null,"NAME_CIAWF":"Singapore","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Singapore","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":8,"MAPCOLOR13":7,"POP_EST":34124811,"POP_RANK":15,"GDP_MD_EST":64080,"POP_YEAR":2017,"LASTCENSUS":1979,"GDP_YEAR":2016,"ECONOMY":"","INCOME_GRP":"","WIKIPEDIA":-99,"FIPS_10_":"SG","ISO_A2":"SG","ISO_A3":"SG","ISO_A3_EH":"SG","ISO_N3":"004","UN_A3":"004","WB_A2":"SG","WB_A3":"SG","WOE_ID":23424739,"WOE_ID_EH":23424739,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SG","ADM0_A3_US":"SG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[103.627167,1.260579,104.044647,1.451413],"geometry":{"type":"Polygon","coordinates":[[[103.60313415527344,1.26675774823251],[103.61755371093749,1.3244212231757635],[103.65325927734375,1.3896342476555246],[103.66630554199219,1.4143460858068593],[103.67179870605467,1.4294476354255539],[103.68278503417969,1.439057660807751],[103.69583129882812,1.4438626583311722],[103.72055053710938,1.4589640128389818],[103.73771667480469,1.4582775898253464],[103.75419616699219,1.4493540716333067],[103.7603759765625,1.4500404973607948],[103.80363464355467,1.4788701887242242],[103.8269805908203,1.4754381021049132],[103.86680603027342,1.4582775898253464],[103.8922119140625,1.4321933610794366],[103.89701843261717,1.4287612034988086],[103.91555786132812,1.4267019064882447],[103.93478393554688,1.4321933610794366],[103.96018981933592,1.4218968729661605],[103.985595703125,1.4246426076343077],[104.00070190429688,1.4212104387885494],[104.02130126953125,1.4397440896459617],[104.04396057128906,1.445921939876798],[104.08721923828125,1.4246426076343077],[104.09477233886719,1.3971851147344805],[104.08103942871094,1.3573711816421556],[104.12704467773438,1.290097884072079],[104.12704467773438,1.2777413679950957],[103.98216247558594,1.2537146393239096],[103.81256103515625,1.1754546449158993],[103.73634338378906,1.1301452152248344],[103.65394592285156,1.1905576261723045],[103.56536865234375,1.1960495988987414],[103.60313415527344,1.26675774823251]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Afghanistan","SOV_A3":"AFG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Afghanistan","ADM0_A3":"AFG","GEOU_DIF":0,"GEOUNIT":"Afghanistan","GU_A3":"AFG","SU_DIF":0,"SUBUNIT":"Afghanistan","SU_A3":"AFG","BRK_DIFF":0,"NAME":"Afghanistan","NAME_LONG":"Afghanistan","BRK_A3":"AFG","BRK_NAME":"Afghanistan","BRK_GROUP":null,"ABBREV":"Afg.","POSTAL":"AF","FORMAL_EN":"Islamic State of Afghanistan","FORMAL_FR":null,"NAME_CIAWF":"Afghanistan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Afghanistan","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":8,"MAPCOLOR13":7,"POP_EST":34124811,"POP_RANK":15,"GDP_MD_EST":64080,"POP_YEAR":2017,"LASTCENSUS":1979,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"AF","ISO_A2":"AF","ISO_A3":"AFG","ISO_A3_EH":"AFG","ISO_N3":"004","UN_A3":"004","WB_A2":"AF","WB_A3":"AFG","WOE_ID":23424739,"WOE_ID_EH":23424739,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"AFG","ADM0_A3_US":"AFG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[60.52843,29.318572,75.158028,38.486282],"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[62.230651,35.270664],[62.984662,35.404041],[63.193538,35.857166],[63.982896,36.007957],[64.546479,36.312073],[64.746105,37.111818],[65.588948,37.305217],[65.745631,37.661164],[66.217385,37.39379],[66.518607,37.362784],[67.075782,37.356144],[67.83,37.144994],[68.135562,37.023115],[68.859446,37.344336],[69.196273,37.151144],[69.518785,37.608997],[70.116578,37.588223],[70.270574,37.735165],[70.376304,38.138396],[70.806821,38.486282],[71.348131,38.258905],[71.239404,37.953265],[71.541918,37.905774],[71.448693,37.065645],[71.844638,36.738171],[72.193041,36.948288],[72.63689,37.047558],[73.260056,37.495257],[73.948696,37.421566],[74.980002,37.41999],[75.158028,37.133031],[74.575893,37.020841],[74.067552,36.836176],[72.920025,36.720007],[71.846292,36.509942],[71.262348,36.074388],[71.498768,35.650563],[71.613076,35.153203],[71.115019,34.733126],[71.156773,34.348911],[70.881803,33.988856],[69.930543,34.02012],[70.323594,33.358533],[69.687147,33.105499],[69.262522,32.501944],[69.317764,31.901412],[68.926677,31.620189],[68.556932,31.71331],[67.792689,31.58293],[67.683394,31.303154],[66.938891,31.304911],[66.381458,30.738899],[66.346473,29.887943],[65.046862,29.472181],[64.350419,29.560031],[64.148002,29.340819],[63.550261,29.468331],[62.549857,29.318572],[60.874248,29.829239],[61.781222,30.73585],[61.699314,31.379506],[60.941945,31.548075],[60.863655,32.18292],[60.536078,32.981269],[60.9637,33.528832],[60.52843,33.676446],[60.803193,34.404102],[61.210817,35.650072]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Angola","SOV_A3":"AGO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Angola","ADM0_A3":"AGO","GEOU_DIF":0,"GEOUNIT":"Angola","GU_A3":"AGO","SU_DIF":0,"SUBUNIT":"Angola","SU_A3":"AGO","BRK_DIFF":0,"NAME":"Angola","NAME_LONG":"Angola","BRK_A3":"AGO","BRK_NAME":"Angola","BRK_GROUP":null,"ABBREV":"Ang.","POSTAL":"AO","FORMAL_EN":"People\'s Republic of Angola","FORMAL_FR":null,"NAME_CIAWF":"Angola","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Angola","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":6,"MAPCOLOR13":1,"POP_EST":29310273,"POP_RANK":15,"GDP_MD_EST":189000,"POP_YEAR":2017,"LASTCENSUS":1970,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"AO","ISO_A2":"AO","ISO_A3":"AGO","ISO_A3_EH":"AGO","ISO_N3":"024","UN_A3":"024","WB_A2":"AO","WB_A3":"AGO","WOE_ID":23424745,"WOE_ID_EH":23424745,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"AGO","ADM0_A3_US":"AGO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[11.640096,-17.930636,24.079905,-4.438023],"geometry":{"type":"MultiPolygon","coordinates":[[[[23.904154,-11.722282],[24.079905,-12.191297],[23.930922,-12.565848],[24.016137,-12.911046],[21.933886,-12.898437],[21.887843,-16.08031],[22.562478,-16.898451],[23.215048,-17.523116],[21.377176,-17.930636],[18.956187,-17.789095],[18.263309,-17.309951],[14.209707,-17.353101],[14.058501,-17.423381],[13.462362,-16.971212],[12.814081,-16.941343],[12.215461,-17.111668],[11.734199,-17.301889],[11.640096,-16.673142],[11.778537,-15.793816],[12.123581,-14.878316],[12.175619,-14.449144],[12.500095,-13.5477],[12.738479,-13.137906],[13.312914,-12.48363],[13.633721,-12.038645],[13.738728,-11.297863],[13.686379,-10.731076],[13.387328,-10.373578],[13.120988,-9.766897],[12.87537,-9.166934],[12.929061,-8.959091],[13.236433,-8.562629],[12.93304,-7.596539],[12.728298,-6.927122],[12.227347,-6.294448],[12.322432,-6.100092],[12.735171,-5.965682],[13.024869,-5.984389],[13.375597,-5.864241],[16.326528,-5.87747],[16.57318,-6.622645],[16.860191,-7.222298],[17.089996,-7.545689],[17.47297,-8.068551],[18.134222,-7.987678],[18.464176,-7.847014],[19.016752,-7.988246],[19.166613,-7.738184],[19.417502,-7.155429],[20.037723,-7.116361],[20.091622,-6.94309],[20.601823,-6.939318],[20.514748,-7.299606],[21.728111,-7.290872],[21.746456,-7.920085],[21.949131,-8.305901],[21.801801,-8.908707],[21.875182,-9.523708],[22.208753,-9.894796],[22.155268,-11.084801],[22.402798,-10.993075],[22.837345,-11.017622],[23.456791,-10.867863],[23.912215,-10.926826],[24.017894,-11.237298],[23.904154,-11.722282]]],[[[12.182337,-5.789931],[11.914963,-5.037987],[12.318608,-4.60623],[12.62076,-4.438023],[12.995517,-4.781103],[12.631612,-4.991271],[12.468004,-5.248362],[12.436688,-5.684304],[12.182337,-5.789931]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Albania","SOV_A3":"ALB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Albania","ADM0_A3":"ALB","GEOU_DIF":0,"GEOUNIT":"Albania","GU_A3":"ALB","SU_DIF":0,"SUBUNIT":"Albania","SU_A3":"ALB","BRK_DIFF":0,"NAME":"Albania","NAME_LONG":"Albania","BRK_A3":"ALB","BRK_NAME":"Albania","BRK_GROUP":null,"ABBREV":"Alb.","POSTAL":"AL","FORMAL_EN":"Republic of Albania","FORMAL_FR":null,"NAME_CIAWF":"Albania","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Albania","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":6,"POP_EST":3047987,"POP_RANK":12,"GDP_MD_EST":33900,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"AL","ISO_A2":"AL","ISO_A3":"ALB","ISO_A3_EH":"ALB","ISO_N3":"008","UN_A3":"008","WB_A2":"AL","WB_A3":"ALB","WOE_ID":23424742,"WOE_ID_EH":23424742,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ALB","ADM0_A3_US":"ALB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[19.304486,39.624998,21.02004,42.688247],"geometry":{"type":"Polygon","coordinates":[[[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.371768,41.877551],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855409],[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"United Arab Emirates","SOV_A3":"ARE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"United Arab Emirates","ADM0_A3":"ARE","GEOU_DIF":0,"GEOUNIT":"United Arab Emirates","GU_A3":"ARE","SU_DIF":0,"SUBUNIT":"United Arab Emirates","SU_A3":"ARE","BRK_DIFF":0,"NAME":"United Arab Emirates","NAME_LONG":"United Arab Emirates","BRK_A3":"ARE","BRK_NAME":"United Arab Emirates","BRK_GROUP":null,"ABBREV":"U.A.E.","POSTAL":"AE","FORMAL_EN":"United Arab Emirates","FORMAL_FR":null,"NAME_CIAWF":"United Arab Emirates","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"United Arab Emirates","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":3,"POP_EST":6072475,"POP_RANK":13,"GDP_MD_EST":667200,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"AE","ISO_A2":"AE","ISO_A3":"ARE","ISO_A3_EH":"ARE","ISO_N3":"784","UN_A3":"784","WB_A2":"AE","WB_A3":"ARE","WOE_ID":23424738,"WOE_ID_EH":23424738,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ARE","ADM0_A3_US":"ARE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":20,"LONG_LEN":20,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[51.579519,22.496948,56.396847,26.055464],"geometry":{"type":"Polygon","coordinates":[[[51.579519,24.245497],[51.757441,24.294073],[51.794389,24.019826],[52.577081,24.177439],[53.404007,24.151317],[54.008001,24.121758],[54.693024,24.797892],[55.439025,25.439145],[56.070821,26.055464],[56.261042,25.714606],[56.396847,24.924732],[55.886233,24.920831],[55.804119,24.269604],[55.981214,24.130543],[55.528632,23.933604],[55.525841,23.524869],[55.234489,23.110993],[55.208341,22.70833],[55.006803,22.496948],[52.000733,23.001154],[51.617708,24.014219],[51.579519,24.245497]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Argentina","SOV_A3":"ARG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Argentina","ADM0_A3":"ARG","GEOU_DIF":0,"GEOUNIT":"Argentina","GU_A3":"ARG","SU_DIF":0,"SUBUNIT":"Argentina","SU_A3":"ARG","BRK_DIFF":0,"NAME":"Argentina","NAME_LONG":"Argentina","BRK_A3":"ARG","BRK_NAME":"Argentina","BRK_GROUP":null,"ABBREV":"Arg.","POSTAL":"AR","FORMAL_EN":"Argentine Republic","FORMAL_FR":null,"NAME_CIAWF":"Argentina","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Argentina","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":13,"POP_EST":44293293,"POP_RANK":15,"GDP_MD_EST":879400,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"AR","ISO_A2":"AR","ISO_A3":"ARG","ISO_A3_EH":"ARG","ISO_N3":"032","UN_A3":"032","WB_A2":"AR","WB_A3":"ARG","WOE_ID":23424747,"WOE_ID_EH":23424747,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ARG","ADM0_A3_US":"ARG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[-73.415436,-55.25,-53.628349,-21.83231],"geometry":{"type":"MultiPolygon","coordinates":[[[[-66.95992,-54.89681],[-67.56244,-54.87001],[-68.63335,-54.8695],[-68.63401,-52.63637],[-68.25,-53.1],[-67.75,-53.85],[-66.45,-54.45],[-65.05,-54.7],[-65.5,-55.2],[-66.45,-55.25],[-66.95992,-54.89681]]],[[[-68.571545,-52.299444],[-69.498362,-52.142761],[-71.914804,-52.009022],[-72.329404,-51.425956],[-72.309974,-50.67701],[-72.975747,-50.74145],[-73.328051,-50.378785],[-73.415436,-49.318436],[-72.648247,-48.878618],[-72.331161,-48.244238],[-72.447355,-47.738533],[-71.917258,-46.884838],[-71.552009,-45.560733],[-71.659316,-44.973689],[-71.222779,-44.784243],[-71.329801,-44.407522],[-71.793623,-44.207172],[-71.464056,-43.787611],[-71.915424,-43.408565],[-72.148898,-42.254888],[-71.746804,-42.051386],[-71.915734,-40.832339],[-71.680761,-39.808164],[-71.413517,-38.916022],[-70.814664,-38.552995],[-71.118625,-37.576827],[-71.121881,-36.658124],[-70.364769,-36.005089],[-70.388049,-35.169688],[-69.817309,-34.193571],[-69.814777,-33.273886],[-70.074399,-33.09121],[-70.535069,-31.36501],[-69.919008,-30.336339],[-70.01355,-29.367923],[-69.65613,-28.459141],[-69.001235,-27.521214],[-68.295542,-26.89934],[-68.5948,-26.506909],[-68.386001,-26.185016],[-68.417653,-24.518555],[-67.328443,-24.025303],[-66.985234,-22.986349],[-67.106674,-22.735925],[-66.273339,-21.83231],[-64.964892,-22.075862],[-64.377021,-22.798091],[-63.986838,-21.993644],[-62.846468,-22.034985],[-62.685057,-22.249029],[-60.846565,-23.880713],[-60.028966,-24.032796],[-58.807128,-24.771459],[-57.777217,-25.16234],[-57.63366,-25.603657],[-58.618174,-27.123719],[-57.60976,-27.395899],[-56.486702,-27.548499],[-55.695846,-27.387837],[-54.788795,-26.621786],[-54.625291,-25.739255],[-54.13005,-25.547639],[-53.628349,-26.124865],[-53.648735,-26.923473],[-54.490725,-27.474757],[-55.162286,-27.881915],[-56.2909,-28.852761],[-57.625133,-30.216295],[-57.874937,-31.016556],[-58.14244,-32.044504],[-58.132648,-33.040567],[-58.349611,-33.263189],[-58.427074,-33.909454],[-58.495442,-34.43149],[-57.22583,-35.288027],[-57.362359,-35.97739],[-56.737487,-36.413126],[-56.788285,-36.901572],[-57.749157,-38.183871],[-59.231857,-38.72022],[-61.237445,-38.928425],[-62.335957,-38.827707],[-62.125763,-39.424105],[-62.330531,-40.172586],[-62.145994,-40.676897],[-62.745803,-41.028761],[-63.770495,-41.166789],[-64.73209,-40.802677],[-65.118035,-41.064315],[-64.978561,-42.058001],[-64.303408,-42.359016],[-63.755948,-42.043687],[-63.458059,-42.563138],[-64.378804,-42.873558],[-65.181804,-43.495381],[-65.328823,-44.501366],[-65.565269,-45.036786],[-66.509966,-45.039628],[-67.293794,-45.551896],[-67.580546,-46.301773],[-66.597066,-47.033925],[-65.641027,-47.236135],[-65.985088,-48.133289],[-67.166179,-48.697337],[-67.816088,-49.869669],[-68.728745,-50.264218],[-69.138539,-50.73251],[-68.815561,-51.771104],[-68.149995,-52.349983],[-68.571545,-52.299444]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Armenia","SOV_A3":"ARM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Armenia","ADM0_A3":"ARM","GEOU_DIF":0,"GEOUNIT":"Armenia","GU_A3":"ARM","SU_DIF":0,"SUBUNIT":"Armenia","SU_A3":"ARM","BRK_DIFF":0,"NAME":"Armenia","NAME_LONG":"Armenia","BRK_A3":"ARM","BRK_NAME":"Armenia","BRK_GROUP":null,"ABBREV":"Arm.","POSTAL":"ARM","FORMAL_EN":"Republic of Armenia","FORMAL_FR":null,"NAME_CIAWF":"Armenia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Armenia","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":2,"MAPCOLOR13":10,"POP_EST":3045191,"POP_RANK":12,"GDP_MD_EST":26300,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"AM","ISO_A2":"AM","ISO_A3":"ARM","ISO_A3_EH":"ARM","ISO_N3":"051","UN_A3":"051","WB_A2":"AM","WB_A3":"ARM","WOE_ID":23424743,"WOE_ID_EH":23424743,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ARM","ADM0_A3_US":"ARM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[43.582746,38.741201,46.50572,41.248129],"geometry":{"type":"Polygon","coordinates":[[[43.582746,41.092143],[44.97248,41.248129],[45.179496,40.985354],[45.560351,40.81229],[45.359175,40.561504],[45.891907,40.218476],[45.610012,39.899994],[46.034534,39.628021],[46.483499,39.464155],[46.50572,38.770605],[46.143623,38.741201],[45.735379,39.319719],[45.739978,39.473999],[45.298145,39.471751],[45.001987,39.740004],[44.79399,39.713003],[44.400009,40.005],[43.656436,40.253564],[43.752658,40.740201],[43.582746,41.092143]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Antarctica","SOV_A3":"ATA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Indeterminate","ADMIN":"Antarctica","ADM0_A3":"ATA","GEOU_DIF":0,"GEOUNIT":"Antarctica","GU_A3":"ATA","SU_DIF":0,"SUBUNIT":"Antarctica","SU_A3":"ATA","BRK_DIFF":0,"NAME":"Antarctica","NAME_LONG":"Antarctica","BRK_A3":"ATA","BRK_NAME":"Antarctica","BRK_GROUP":null,"ABBREV":"Ant.","POSTAL":"AQ","FORMAL_EN":null,"FORMAL_FR":null,"NAME_CIAWF":null,"NOTE_ADM0":null,"NOTE_BRK":"Multiple claims held in abeyance","NAME_SORT":"Antarctica","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":1,"MAPCOLOR13":-99,"POP_EST":4050,"POP_RANK":4,"GDP_MD_EST":810,"POP_YEAR":2013,"LASTCENSUS":-99,"GDP_YEAR":2013,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"AY","ISO_A2":"AQ","ISO_A3":"ATA","ISO_A3_EH":"ATA","ISO_N3":"010","UN_A3":"-099","WB_A2":"-99","WB_A3":"-99","WOE_ID":28289409,"WOE_ID_EH":28289409,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ATA","ADM0_A3_US":"ATA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Antarctica","REGION_UN":"Antarctica","SUBREGION":"Antarctica","REGION_WB":"Antarctica","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-180,-90,180,-63.27066],"geometry":{"type":"MultiPolygon","coordinates":[[[[-59.572095,-80.040179],[-59.865849,-80.549657],[-60.159656,-81.000327],[-62.255393,-80.863178],[-64.488125,-80.921934],[-65.741666,-80.588827],[-65.741666,-80.549657],[-66.290031,-80.255773],[-64.037688,-80.294944],[-61.883246,-80.39287],[-61.138976,-79.981371],[-60.610119,-79.628679],[-59.572095,-80.040179]]],[[[-159.208184,-79.497059],[-161.127601,-79.634209],[-162.439847,-79.281465],[-163.027408,-78.928774],[-163.066604,-78.869966],[-163.712896,-78.595667],[-163.712896,-78.595667],[-163.105801,-78.223338],[-161.245113,-78.380176],[-160.246208,-78.693645],[-159.482405,-79.046338],[-159.208184,-79.497059]]],[[[-45.154758,-78.04707],[-43.920828,-78.478103],[-43.48995,-79.08556],[-43.372438,-79.516645],[-43.333267,-80.026123],[-44.880537,-80.339644],[-46.506174,-80.594357],[-48.386421,-80.829485],[-50.482107,-81.025442],[-52.851988,-80.966685],[-54.164259,-80.633528],[-53.987991,-80.222028],[-51.853134,-79.94773],[-50.991326,-79.614623],[-50.364595,-79.183487],[-49.914131,-78.811209],[-49.306959,-78.458569],[-48.660616,-78.047018],[-48.660616,-78.047019],[-48.151396,-78.04707],[-46.662857,-77.831476],[-45.154758,-78.04707]]],[[[-121.211511,-73.50099],[-119.918851,-73.657725],[-118.724143,-73.481353],[-119.292119,-73.834097],[-120.232217,-74.08881],[-121.62283,-74.010468],[-122.621735,-73.657778],[-122.621735,-73.657777],[-122.406245,-73.324619],[-121.211511,-73.50099]]],[[[-125.559566,-73.481353],[-124.031882,-73.873268],[-124.619469,-73.834097],[-125.912181,-73.736118],[-127.28313,-73.461769],[-127.28313,-73.461768],[-126.558472,-73.246226],[-125.559566,-73.481353]]],[[[-98.98155,-71.933334],[-97.884743,-72.070535],[-96.787937,-71.952971],[-96.20035,-72.521205],[-96.983765,-72.442864],[-98.198083,-72.482035],[-99.432013,-72.442864],[-100.783455,-72.50162],[-101.801868,-72.305663],[-102.330725,-71.894164],[-102.330725,-71.894164],[-101.703967,-71.717792],[-100.430919,-71.854993],[-98.98155,-71.933334]]],[[[-68.451346,-70.955823],[-68.333834,-71.406493],[-68.510128,-71.798407],[-68.784297,-72.170736],[-69.959471,-72.307885],[-71.075889,-72.503842],[-72.388134,-72.484257],[-71.8985,-72.092343],[-73.073622,-72.229492],[-74.19004,-72.366693],[-74.953895,-72.072757],[-75.012625,-71.661258],[-73.915819,-71.269345],[-73.915819,-71.269344],[-73.230331,-71.15178],[-72.074717,-71.190951],[-71.780962,-70.681473],[-71.72218,-70.309196],[-71.741791,-69.505782],[-71.173815,-69.035475],[-70.253252,-68.87874],[-69.724447,-69.251017],[-69.489422,-69.623346],[-69.058518,-70.074016],[-68.725541,-70.505153],[-68.451346,-70.955823]]],[[[-58.614143,-64.152467],[-59.045073,-64.36801],[-59.789342,-64.211223],[-60.611928,-64.309202],[-61.297416,-64.54433],[-62.0221,-64.799094],[-62.51176,-65.09303],[-62.648858,-65.484942],[-62.590128,-65.857219],[-62.120079,-66.190326],[-62.805567,-66.425505],[-63.74569,-66.503847],[-64.294106,-66.837004],[-64.881693,-67.150474],[-65.508425,-67.58161],[-65.665082,-67.953887],[-65.312545,-68.365335],[-64.783715,-68.678908],[-63.961103,-68.913984],[-63.1973,-69.227556],[-62.785955,-69.619419],[-62.570516,-69.991747],[-62.276736,-70.383661],[-61.806661,-70.716768],[-61.512906,-71.089045],[-61.375809,-72.010074],[-61.081977,-72.382351],[-61.003661,-72.774265],[-60.690269,-73.166179],[-60.827367,-73.695242],[-61.375809,-74.106742],[-61.96337,-74.439848],[-63.295201,-74.576997],[-63.74569,-74.92974],[-64.352836,-75.262847],[-65.860987,-75.635124],[-67.192818,-75.79191],[-68.446282,-76.007452],[-69.797724,-76.222995],[-70.600724,-76.634494],[-72.206776,-76.673665],[-73.969536,-76.634494],[-75.555977,-76.712887],[-77.24037,-76.712887],[-76.926979,-77.104802],[-75.399294,-77.28107],[-74.282876,-77.55542],[-73.656119,-77.908112],[-74.772536,-78.221633],[-76.4961,-78.123654],[-77.925858,-78.378419],[-77.984666,-78.789918],[-78.023785,-79.181833],[-76.848637,-79.514939],[-76.633224,-79.887216],[-75.360097,-80.259545],[-73.244852,-80.416331],[-71.442946,-80.69063],[-70.013163,-81.004151],[-68.191646,-81.317672],[-65.704279,-81.474458],[-63.25603,-81.748757],[-61.552026,-82.042692],[-59.691416,-82.37585],[-58.712121,-82.846106],[-58.222487,-83.218434],[-57.008117,-82.865691],[-55.362894,-82.571755],[-53.619771,-82.258235],[-51.543644,-82.003521],[-49.76135,-81.729171],[-47.273931,-81.709586],[-44.825708,-81.846735],[-42.808363,-82.081915],[-42.16202,-81.65083],[-40.771433,-81.356894],[-38.244818,-81.337309],[-36.26667,-81.121715],[-34.386397,-80.906172],[-32.310296,-80.769023],[-30.097098,-80.592651],[-28.549802,-80.337938],[-29.254901,-79.985195],[-29.685805,-79.632503],[-29.685805,-79.260226],[-31.624808,-79.299397],[-33.681324,-79.456132],[-35.639912,-79.456132],[-35.914107,-79.083855],[-35.77701,-78.339248],[-35.326546,-78.123654],[-33.896763,-77.888526],[-32.212369,-77.65345],[-30.998051,-77.359515],[-29.783732,-77.065579],[-28.882779,-76.673665],[-27.511752,-76.497345],[-26.160336,-76.360144],[-25.474822,-76.281803],[-23.927552,-76.24258],[-22.458598,-76.105431],[-21.224694,-75.909474],[-20.010375,-75.674346],[-18.913543,-75.439218],[-17.522982,-75.125698],[-16.641589,-74.79254],[-15.701491,-74.498604],[-15.40771,-74.106742],[-16.46532,-73.871614],[-16.112784,-73.460114],[-15.446855,-73.146542],[-14.408805,-72.950585],[-13.311973,-72.715457],[-12.293508,-72.401936],[-11.510067,-72.010074],[-11.020433,-71.539767],[-10.295774,-71.265416],[-9.101015,-71.324224],[-8.611381,-71.65733],[-7.416622,-71.696501],[-7.377451,-71.324224],[-6.868232,-70.93231],[-5.790985,-71.030289],[-5.536375,-71.402617],[-4.341667,-71.461373],[-3.048981,-71.285053],[-1.795492,-71.167438],[-0.659489,-71.226246],[-0.228637,-71.637745],[0.868195,-71.304639],[1.886686,-71.128267],[3.022638,-70.991118],[4.139055,-70.853917],[5.157546,-70.618789],[6.273912,-70.462055],[7.13572,-70.246512],[7.742866,-69.893769],[8.48711,-70.148534],[9.525135,-70.011333],[10.249845,-70.48164],[10.817821,-70.834332],[11.953824,-70.638375],[12.404287,-70.246512],[13.422778,-69.972162],[14.734998,-70.030918],[15.126757,-70.403247],[15.949342,-70.030918],[17.026589,-69.913354],[18.201711,-69.874183],[19.259373,-69.893769],[20.375739,-70.011333],[21.452985,-70.07014],[21.923034,-70.403247],[22.569403,-70.697182],[23.666184,-70.520811],[24.841357,-70.48164],[25.977309,-70.48164],[27.093726,-70.462055],[28.09258,-70.324854],[29.150242,-70.20729],[30.031583,-69.93294],[30.971733,-69.75662],[31.990172,-69.658641],[32.754053,-69.384291],[33.302443,-68.835642],[33.870419,-68.502588],[34.908495,-68.659271],[35.300202,-69.012014],[36.16201,-69.247142],[37.200035,-69.168748],[37.905108,-69.52144],[38.649404,-69.776205],[39.667894,-69.541077],[40.020431,-69.109941],[40.921358,-68.933621],[41.959434,-68.600514],[42.938702,-68.463313],[44.113876,-68.267408],[44.897291,-68.051866],[45.719928,-67.816738],[46.503343,-67.601196],[47.44344,-67.718759],[48.344419,-67.366068],[48.990736,-67.091718],[49.930885,-67.111303],[50.753471,-66.876175],[50.949325,-66.523484],[51.791547,-66.249133],[52.614133,-66.053176],[53.613038,-65.89639],[54.53355,-65.818049],[55.414943,-65.876805],[56.355041,-65.974783],[57.158093,-66.249133],[57.255968,-66.680218],[58.137361,-67.013324],[58.744508,-67.287675],[59.939318,-67.405239],[60.605221,-67.679589],[61.427806,-67.953887],[62.387489,-68.012695],[63.19049,-67.816738],[64.052349,-67.405239],[64.992447,-67.620729],[65.971715,-67.738345],[66.911864,-67.855909],[67.891133,-67.934302],[68.890038,-67.934302],[69.712624,-68.972791],[69.673453,-69.227556],[69.555941,-69.678226],[68.596258,-69.93294],[67.81274,-70.305268],[67.949889,-70.697182],[69.066307,-70.677545],[68.929157,-71.069459],[68.419989,-71.441788],[67.949889,-71.853287],[68.71377,-72.166808],[69.869307,-72.264787],[71.024895,-72.088415],[71.573285,-71.696501],[71.906288,-71.324224],[72.454627,-71.010703],[73.08141,-70.716768],[73.33602,-70.364024],[73.864877,-69.874183],[74.491557,-69.776205],[75.62756,-69.737034],[76.626465,-69.619419],[77.644904,-69.462684],[78.134539,-69.07077],[78.428371,-68.698441],[79.113859,-68.326216],[80.093127,-68.071503],[80.93535,-67.875546],[81.483792,-67.542388],[82.051767,-67.366068],[82.776426,-67.209282],[83.775331,-67.30726],[84.676206,-67.209282],[85.655527,-67.091718],[86.752359,-67.150474],[87.477017,-66.876175],[87.986289,-66.209911],[88.358411,-66.484261],[88.828408,-66.954568],[89.67063,-67.150474],[90.630365,-67.228867],[91.5901,-67.111303],[92.608539,-67.189696],[93.548637,-67.209282],[94.17542,-67.111303],[95.017591,-67.170111],[95.781472,-67.385653],[96.682399,-67.248504],[97.759646,-67.248504],[98.68021,-67.111303],[99.718182,-67.248504],[100.384188,-66.915346],[100.893356,-66.58224],[101.578896,-66.30789],[102.832411,-65.563284],[103.478676,-65.700485],[104.242557,-65.974783],[104.90846,-66.327527],[106.181561,-66.934931],[107.160881,-66.954568],[108.081393,-66.954568],[109.15864,-66.837004],[110.235835,-66.699804],[111.058472,-66.425505],[111.74396,-66.13157],[112.860378,-66.092347],[113.604673,-65.876805],[114.388088,-66.072762],[114.897308,-66.386283],[115.602381,-66.699804],[116.699161,-66.660633],[117.384701,-66.915346],[118.57946,-67.170111],[119.832924,-67.268089],[120.871,-67.189696],[121.654415,-66.876175],[122.320369,-66.562654],[123.221296,-66.484261],[124.122274,-66.621462],[125.160247,-66.719389],[126.100396,-66.562654],[127.001427,-66.562654],[127.882768,-66.660633],[128.80328,-66.758611],[129.704259,-66.58224],[130.781454,-66.425505],[131.799945,-66.386283],[132.935896,-66.386283],[133.85646,-66.288304],[134.757387,-66.209963],[135.031582,-65.72007],[135.070753,-65.308571],[135.697485,-65.582869],[135.873805,-66.033591],[136.206705,-66.44509],[136.618049,-66.778197],[137.460271,-66.954568],[138.596223,-66.895761],[139.908442,-66.876175],[140.809421,-66.817367],[142.121692,-66.817367],[143.061842,-66.797782],[144.374061,-66.837004],[145.490427,-66.915346],[146.195552,-67.228867],[145.999699,-67.601196],[146.646067,-67.895131],[147.723263,-68.130259],[148.839629,-68.385024],[150.132314,-68.561292],[151.483705,-68.71813],[152.502247,-68.874813],[153.638199,-68.894502],[154.284567,-68.561292],[155.165857,-68.835642],[155.92979,-69.149215],[156.811132,-69.384291],[158.025528,-69.482269],[159.181013,-69.599833],[159.670699,-69.991747],[160.80665,-70.226875],[161.570479,-70.579618],[162.686897,-70.736353],[163.842434,-70.716768],[164.919681,-70.775524],[166.11444,-70.755938],[167.309095,-70.834332],[168.425616,-70.971481],[169.463589,-71.20666],[170.501665,-71.402617],[171.20679,-71.696501],[171.089227,-72.088415],[170.560422,-72.441159],[170.109958,-72.891829],[169.75737,-73.24452],[169.287321,-73.65602],[167.975101,-73.812806],[167.387489,-74.165498],[166.094803,-74.38104],[165.644391,-74.772954],[164.958851,-75.145283],[164.234193,-75.458804],[163.822797,-75.870303],[163.568239,-76.24258],[163.47026,-76.693302],[163.489897,-77.065579],[164.057873,-77.457442],[164.273363,-77.82977],[164.743464,-78.182514],[166.604126,-78.319611],[166.995781,-78.750748],[165.193876,-78.907483],[163.666217,-79.123025],[161.766385,-79.162248],[160.924162,-79.730482],[160.747894,-80.200737],[160.316964,-80.573066],[159.788211,-80.945395],[161.120016,-81.278501],[161.629287,-81.690001],[162.490992,-82.062278],[163.705336,-82.395435],[165.095949,-82.708956],[166.604126,-83.022477],[168.895665,-83.335998],[169.404782,-83.825891],[172.283934,-84.041433],[172.477049,-84.117914],[173.224083,-84.41371],[175.985672,-84.158997],[178.277212,-84.472518],[180,-84.71338],[180,-90],[-180,-90],[-180,-84.71338],[-179.942499,-84.721443],[-179.058677,-84.139412],[-177.256772,-84.452933],[-177.140807,-84.417941],[-176.084673,-84.099259],[-175.947235,-84.110449],[-175.829882,-84.117914],[-174.382503,-84.534323],[-173.116559,-84.117914],[-172.889106,-84.061019],[-169.951223,-83.884647],[-168.999989,-84.117914],[-168.530199,-84.23739],[-167.022099,-84.570497],[-164.182144,-84.82521],[-161.929775,-85.138731],[-158.07138,-85.37391],[-155.192253,-85.09956],[-150.942099,-85.295517],[-148.533073,-85.609038],[-145.888918,-85.315102],[-143.107718,-85.040752],[-142.892279,-84.570497],[-146.829068,-84.531274],[-150.060732,-84.296146],[-150.902928,-83.904232],[-153.586201,-83.68869],[-153.409907,-83.23802],[-153.037759,-82.82652],[-152.665637,-82.454192],[-152.861517,-82.042692],[-154.526299,-81.768394],[-155.29018,-81.41565],[-156.83745,-81.102129],[-154.408787,-81.160937],[-152.097662,-81.004151],[-150.648293,-81.337309],[-148.865998,-81.043373],[-147.22075,-80.671045],[-146.417749,-80.337938],[-146.770286,-79.926439],[-148.062947,-79.652089],[-149.531901,-79.358205],[-151.588416,-79.299397],[-153.390322,-79.162248],[-155.329376,-79.064269],[-155.975668,-78.69194],[-157.268302,-78.378419],[-158.051768,-78.025676],[-158.365134,-76.889207],[-157.875474,-76.987238],[-156.974573,-77.300759],[-155.329376,-77.202728],[-153.742832,-77.065579],[-152.920247,-77.496664],[-151.33378,-77.398737],[-150.00195,-77.183143],[-148.748486,-76.908845],[-147.612483,-76.575738],[-146.104409,-76.47776],[-146.143528,-76.105431],[-146.496091,-75.733154],[-146.20231,-75.380411],[-144.909624,-75.204039],[-144.322037,-75.537197],[-142.794353,-75.34124],[-141.638764,-75.086475],[-140.209007,-75.06689],[-138.85759,-74.968911],[-137.5062,-74.733783],[-136.428901,-74.518241],[-135.214583,-74.302699],[-134.431194,-74.361455],[-133.745654,-74.439848],[-132.257168,-74.302699],[-130.925311,-74.479019],[-129.554284,-74.459433],[-128.242038,-74.322284],[-126.890622,-74.420263],[-125.402082,-74.518241],[-124.011496,-74.479019],[-122.562152,-74.498604],[-121.073613,-74.518241],[-119.70256,-74.479019],[-118.684145,-74.185083],[-117.469801,-74.028348],[-116.216312,-74.243891],[-115.021552,-74.067519],[-113.944331,-73.714828],[-113.297988,-74.028348],[-112.945452,-74.38104],[-112.299083,-74.714198],[-111.261059,-74.420263],[-110.066325,-74.79254],[-108.714909,-74.910103],[-107.559346,-75.184454],[-106.149148,-75.125698],[-104.876074,-74.949326],[-103.367949,-74.988497],[-102.016507,-75.125698],[-100.645531,-75.302018],[-100.1167,-74.870933],[-100.763043,-74.537826],[-101.252703,-74.185083],[-102.545337,-74.106742],[-103.113313,-73.734413],[-103.328752,-73.362084],[-103.681289,-72.61753],[-102.917485,-72.754679],[-101.60524,-72.813436],[-100.312528,-72.754679],[-99.13738,-72.911414],[-98.118889,-73.20535],[-97.688037,-73.558041],[-96.336595,-73.616849],[-95.043961,-73.4797],[-93.672907,-73.283743],[-92.439003,-73.166179],[-91.420564,-73.401307],[-90.088733,-73.322914],[-89.226951,-72.558722],[-88.423951,-73.009393],[-87.268337,-73.185764],[-86.014822,-73.087786],[-85.192236,-73.4797],[-83.879991,-73.518871],[-82.665646,-73.636434],[-81.470913,-73.851977],[-80.687447,-73.4797],[-80.295791,-73.126956],[-79.296886,-73.518871],[-77.925858,-73.420892],[-76.907367,-73.636434],[-76.221879,-73.969541],[-74.890049,-73.871614],[-73.852024,-73.65602],[-72.833533,-73.401307],[-71.619215,-73.264157],[-70.209042,-73.146542],[-68.935916,-73.009393],[-67.956622,-72.79385],[-67.369061,-72.480329],[-67.134036,-72.049244],[-67.251548,-71.637745],[-67.56494,-71.245831],[-67.917477,-70.853917],[-68.230843,-70.462055],[-68.485452,-70.109311],[-68.544209,-69.717397],[-68.446282,-69.325535],[-67.976233,-68.953206],[-67.5845,-68.541707],[-67.427843,-68.149844],[-67.62367,-67.718759],[-67.741183,-67.326845],[-67.251548,-66.876175],[-66.703184,-66.58224],[-66.056815,-66.209963],[-65.371327,-65.89639],[-64.568276,-65.602506],[-64.176542,-65.171423],[-63.628152,-64.897073],[-63.001394,-64.642308],[-62.041686,-64.583552],[-61.414928,-64.270031],[-60.709855,-64.074074],[-59.887269,-63.95651],[-59.162585,-63.701745],[-58.594557,-63.388224],[-57.811143,-63.27066],[-57.223582,-63.525425],[-57.59573,-63.858532],[-58.614143,-64.152467]]]]}},{"type":"Feature","properties":{"scalerank":3,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"France","SOV_A3":"FR1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Dependency","ADMIN":"French Southern and Antarctic Lands","ADM0_A3":"ATF","GEOU_DIF":0,"GEOUNIT":"French Southern and Antarctic Lands","GU_A3":"ATF","SU_DIF":0,"SUBUNIT":"French Southern and Antarctic Lands","SU_A3":"ATF","BRK_DIFF":0,"NAME":"Fr. S. Antarctic Lands","NAME_LONG":"French Southern and Antarctic Lands","BRK_A3":"ATF","BRK_NAME":"Fr. S. and Antarctic Lands","BRK_GROUP":null,"ABBREV":"Fr. S.A.L.","POSTAL":"TF","FORMAL_EN":"Territory of the French Southern and Antarctic Lands","FORMAL_FR":null,"NAME_CIAWF":null,"NOTE_ADM0":"Fr.","NOTE_BRK":null,"NAME_SORT":"French Southern and Antarctic Lands","NAME_ALT":null,"MAPCOLOR7":7,"MAPCOLOR8":5,"MAPCOLOR9":9,"MAPCOLOR13":11,"POP_EST":140,"POP_RANK":1,"GDP_MD_EST":16,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"FS","ISO_A2":"TF","ISO_A3":"ATF","ISO_A3_EH":"ATF","ISO_N3":"260","UN_A3":"-099","WB_A2":"-99","WB_A3":"-99","WOE_ID":28289406,"WOE_ID_EH":28289406,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ATF","ADM0_A3_US":"ATF","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Seven seas (open ocean)","REGION_UN":"Seven seas (open ocean)","SUBREGION":"Seven seas (open ocean)","REGION_WB":"Sub-Saharan Africa","NAME_LEN":22,"LONG_LEN":35,"ABBREV_LEN":10,"TINY":2,"HOMEPART":-99,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[68.72,-49.775,70.56,-48.625],"geometry":{"type":"Polygon","coordinates":[[[68.935,-48.625],[69.58,-48.94],[70.525,-49.065],[70.56,-49.255],[70.28,-49.71],[68.745,-49.775],[68.72,-49.2425],[68.8675,-48.83],[68.935,-48.625]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Australia","SOV_A3":"AU1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Australia","ADM0_A3":"AUS","GEOU_DIF":0,"GEOUNIT":"Australia","GU_A3":"AUS","SU_DIF":0,"SUBUNIT":"Australia","SU_A3":"AUS","BRK_DIFF":0,"NAME":"Australia","NAME_LONG":"Australia","BRK_A3":"AUS","BRK_NAME":"Australia","BRK_GROUP":null,"ABBREV":"Auz.","POSTAL":"AU","FORMAL_EN":"Commonwealth of Australia","FORMAL_FR":null,"NAME_CIAWF":"Australia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Australia","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":7,"POP_EST":23232413,"POP_RANK":15,"GDP_MD_EST":1189000,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"AS","ISO_A2":"AU","ISO_A3":"AUS","ISO_A3_EH":"AUS","ISO_N3":"036","UN_A3":"036","WB_A2":"AU","WB_A3":"AUS","WOE_ID":-90,"WOE_ID_EH":23424748,"WOE_NOTE":"Includes Ashmore and Cartier Islands (23424749) and Coral Sea Islands (23424790).","ADM0_A3_IS":"AUS","ADM0_A3_US":"AUS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Australia and New Zealand","REGION_WB":"East Asia & Pacific","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.7},"bbox":[113.338953,-43.634597,153.569469,-10.668186],"geometry":{"type":"MultiPolygon","coordinates":[[[[145.397978,-40.792549],[146.364121,-41.137695],[146.908584,-41.000546],[147.689259,-40.808258],[148.289068,-40.875438],[148.359865,-42.062445],[148.017301,-42.407024],[147.914052,-43.211522],[147.564564,-42.937689],[146.870343,-43.634597],[146.663327,-43.580854],[146.048378,-43.549745],[145.43193,-42.693776],[145.29509,-42.03361],[144.718071,-41.162552],[144.743755,-40.703975],[145.397978,-40.792549]]],[[[143.561811,-13.763656],[143.922099,-14.548311],[144.563714,-14.171176],[144.894908,-14.594458],[145.374724,-14.984976],[145.271991,-15.428205],[145.48526,-16.285672],[145.637033,-16.784918],[145.888904,-16.906926],[146.160309,-17.761655],[146.063674,-18.280073],[146.387478,-18.958274],[147.471082,-19.480723],[148.177602,-19.955939],[148.848414,-20.39121],[148.717465,-20.633469],[149.28942,-21.260511],[149.678337,-22.342512],[150.077382,-22.122784],[150.482939,-22.556142],[150.727265,-22.402405],[150.899554,-23.462237],[151.609175,-24.076256],[152.07354,-24.457887],[152.855197,-25.267501],[153.136162,-26.071173],[153.161949,-26.641319],[153.092909,-27.2603],[153.569469,-28.110067],[153.512108,-28.995077],[153.339095,-29.458202],[153.069241,-30.35024],[153.089602,-30.923642],[152.891578,-31.640446],[152.450002,-32.550003],[151.709117,-33.041342],[151.343972,-33.816023],[151.010555,-34.31036],[150.714139,-35.17346],[150.32822,-35.671879],[150.075212,-36.420206],[149.946124,-37.109052],[149.997284,-37.425261],[149.423882,-37.772681],[148.304622,-37.809061],[147.381733,-38.219217],[146.922123,-38.606532],[146.317922,-39.035757],[145.489652,-38.593768],[144.876976,-38.417448],[145.032212,-37.896188],[144.485682,-38.085324],[143.609974,-38.809465],[142.745427,-38.538268],[142.17833,-38.380034],[141.606582,-38.308514],[140.638579,-38.019333],[139.992158,-37.402936],[139.806588,-36.643603],[139.574148,-36.138362],[139.082808,-35.732754],[138.120748,-35.612296],[138.449462,-35.127261],[138.207564,-34.384723],[137.71917,-35.076825],[136.829406,-35.260535],[137.352371,-34.707339],[137.503886,-34.130268],[137.890116,-33.640479],[137.810328,-32.900007],[136.996837,-33.752771],[136.372069,-34.094766],[135.989043,-34.890118],[135.208213,-34.47867],[135.239218,-33.947953],[134.613417,-33.222778],[134.085904,-32.848072],[134.273903,-32.617234],[132.990777,-32.011224],[132.288081,-31.982647],[131.326331,-31.495803],[129.535794,-31.590423],[128.240938,-31.948489],[127.102867,-32.282267],[126.148714,-32.215966],[125.088623,-32.728751],[124.221648,-32.959487],[124.028947,-33.483847],[123.659667,-33.890179],[122.811036,-33.914467],[122.183064,-34.003402],[121.299191,-33.821036],[120.580268,-33.930177],[119.893695,-33.976065],[119.298899,-34.509366],[119.007341,-34.464149],[118.505718,-34.746819],[118.024972,-35.064733],[117.295507,-35.025459],[116.625109,-35.025097],[115.564347,-34.386428],[115.026809,-34.196517],[115.048616,-33.623425],[115.545123,-33.487258],[115.714674,-33.259572],[115.679379,-32.900369],[115.801645,-32.205062],[115.689611,-31.612437],[115.160909,-30.601594],[114.997043,-30.030725],[115.040038,-29.461095],[114.641974,-28.810231],[114.616498,-28.516399],[114.173579,-28.118077],[114.048884,-27.334765],[113.477498,-26.543134],[113.338953,-26.116545],[113.778358,-26.549025],[113.440962,-25.621278],[113.936901,-25.911235],[114.232852,-26.298446],[114.216161,-25.786281],[113.721255,-24.998939],[113.625344,-24.683971],[113.393523,-24.384764],[113.502044,-23.80635],[113.706993,-23.560215],[113.843418,-23.059987],[113.736552,-22.475475],[114.149756,-21.755881],[114.225307,-22.517488],[114.647762,-21.82952],[115.460167,-21.495173],[115.947373,-21.068688],[116.711615,-20.701682],[117.166316,-20.623599],[117.441545,-20.746899],[118.229559,-20.374208],[118.836085,-20.263311],[118.987807,-20.044203],[119.252494,-19.952942],[119.805225,-19.976506],[120.85622,-19.683708],[121.399856,-19.239756],[121.655138,-18.705318],[122.241665,-18.197649],[122.286624,-17.798603],[122.312772,-17.254967],[123.012574,-16.4052],[123.433789,-17.268558],[123.859345,-17.069035],[123.503242,-16.596506],[123.817073,-16.111316],[124.258287,-16.327944],[124.379726,-15.56706],[124.926153,-15.0751],[125.167275,-14.680396],[125.670087,-14.51007],[125.685796,-14.230656],[126.125149,-14.347341],[126.142823,-14.095987],[126.582589,-13.952791],[127.065867,-13.817968],[127.804633,-14.276906],[128.35969,-14.86917],[128.985543,-14.875991],[129.621473,-14.969784],[129.4096,-14.42067],[129.888641,-13.618703],[130.339466,-13.357376],[130.183506,-13.10752],[130.617795,-12.536392],[131.223495,-12.183649],[131.735091,-12.302453],[132.575298,-12.114041],[132.557212,-11.603012],[131.824698,-11.273782],[132.357224,-11.128519],[133.019561,-11.376411],[133.550846,-11.786515],[134.393068,-12.042365],[134.678632,-11.941183],[135.298491,-12.248606],[135.882693,-11.962267],[136.258381,-12.049342],[136.492475,-11.857209],[136.95162,-12.351959],[136.685125,-12.887223],[136.305407,-13.29123],[135.961758,-13.324509],[136.077617,-13.724278],[135.783836,-14.223989],[135.428664,-14.715432],[135.500184,-14.997741],[136.295175,-15.550265],[137.06536,-15.870762],[137.580471,-16.215082],[138.303217,-16.807604],[138.585164,-16.806622],[139.108543,-17.062679],[139.260575,-17.371601],[140.215245,-17.710805],[140.875463,-17.369069],[141.07111,-16.832047],[141.274095,-16.38887],[141.398222,-15.840532],[141.702183,-15.044921],[141.56338,-14.561333],[141.63552,-14.270395],[141.519869,-13.698078],[141.65092,-12.944688],[141.842691,-12.741548],[141.68699,-12.407614],[141.928629,-11.877466],[142.118488,-11.328042],[142.143706,-11.042737],[142.51526,-10.668186],[142.79731,-11.157355],[142.866763,-11.784707],[143.115947,-11.90563],[143.158632,-12.325656],[143.522124,-12.834358],[143.597158,-13.400422],[143.561811,-13.763656]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Austria","SOV_A3":"AUT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Austria","ADM0_A3":"AUT","GEOU_DIF":0,"GEOUNIT":"Austria","GU_A3":"AUT","SU_DIF":0,"SUBUNIT":"Austria","SU_A3":"AUT","BRK_DIFF":0,"NAME":"Austria","NAME_LONG":"Austria","BRK_A3":"AUT","BRK_NAME":"Austria","BRK_GROUP":null,"ABBREV":"Aust.","POSTAL":"A","FORMAL_EN":"Republic of Austria","FORMAL_FR":null,"NAME_CIAWF":"Austria","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Austria","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":4,"POP_EST":8754413,"POP_RANK":13,"GDP_MD_EST":416600,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"AU","ISO_A2":"AT","ISO_A3":"AUT","ISO_A3_EH":"AUT","ISO_N3":"040","UN_A3":"040","WB_A2":"AT","WB_A3":"AUT","WOE_ID":23424750,"WOE_ID_EH":23424750,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"AUT","ADM0_A3_US":"AUT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[9.47997,46.431817,16.979667,49.039074],"geometry":{"type":"Polygon","coordinates":[[[16.979667,48.123497],[16.903754,47.714866],[16.340584,47.712902],[16.534268,47.496171],[16.202298,46.852386],[16.011664,46.683611],[15.137092,46.658703],[14.632472,46.431817],[13.806475,46.509306],[12.376485,46.767559],[12.153088,47.115393],[11.164828,46.941579],[11.048556,46.751359],[10.442701,46.893546],[9.932448,46.920728],[9.47997,47.10281],[9.632932,47.347601],[9.594226,47.525058],[9.896068,47.580197],[10.402084,47.302488],[10.544504,47.566399],[11.426414,47.523766],[12.141357,47.703083],[12.62076,47.672388],[12.932627,47.467646],[13.025851,47.637584],[12.884103,48.289146],[13.243357,48.416115],[13.595946,48.877172],[14.338898,48.555305],[14.901447,48.964402],[15.253416,49.039074],[16.029647,48.733899],[16.499283,48.785808],[16.960288,48.596982],[16.879983,48.470013],[16.979667,48.123497]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Azerbaijan","SOV_A3":"AZE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Azerbaijan","ADM0_A3":"AZE","GEOU_DIF":0,"GEOUNIT":"Azerbaijan","GU_A3":"AZE","SU_DIF":0,"SUBUNIT":"Azerbaijan","SU_A3":"AZE","BRK_DIFF":0,"NAME":"Azerbaijan","NAME_LONG":"Azerbaijan","BRK_A3":"AZE","BRK_NAME":"Azerbaijan","BRK_GROUP":null,"ABBREV":"Aze.","POSTAL":"AZ","FORMAL_EN":"Republic of Azerbaijan","FORMAL_FR":null,"NAME_CIAWF":"Azerbaijan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Azerbaijan","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":6,"MAPCOLOR9":5,"MAPCOLOR13":8,"POP_EST":9961396,"POP_RANK":13,"GDP_MD_EST":167900,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"AJ","ISO_A2":"AZ","ISO_A3":"AZE","ISO_A3_EH":"AZE","ISO_N3":"031","UN_A3":"031","WB_A2":"AZ","WB_A3":"AZE","WOE_ID":23424741,"WOE_ID_EH":23424741,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"AZE","ADM0_A3_US":"AZE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[44.79399,38.270378,50.392821,41.860675],"geometry":{"type":"MultiPolygon","coordinates":[[[[46.50572,38.770605],[46.483499,39.464155],[46.034534,39.628021],[45.610012,39.899994],[45.891907,40.218476],[45.359175,40.561504],[45.560351,40.81229],[45.179496,40.985354],[44.97248,41.248129],[45.217426,41.411452],[45.962601,41.123873],[46.501637,41.064445],[46.637908,41.181673],[46.145432,41.722802],[46.404951,41.860675],[46.686071,41.827137],[47.373315,41.219732],[47.815666,41.151416],[47.987283,41.405819],[48.584353,41.808869],[49.110264,41.282287],[49.618915,40.572924],[50.08483,40.526157],[50.392821,40.256561],[49.569202,40.176101],[49.395259,39.399482],[49.223228,39.049219],[48.856532,38.815486],[48.883249,38.320245],[48.634375,38.270378],[48.010744,38.794015],[48.355529,39.288765],[48.060095,39.582235],[47.685079,39.508364],[46.50572,38.770605]]],[[[44.79399,39.713003],[45.001987,39.740004],[45.298145,39.471751],[45.739978,39.473999],[45.735379,39.319719],[46.143623,38.741201],[45.457722,38.874139],[44.952688,39.335765],[44.79399,39.713003]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Burundi","SOV_A3":"BDI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Burundi","ADM0_A3":"BDI","GEOU_DIF":0,"GEOUNIT":"Burundi","GU_A3":"BDI","SU_DIF":0,"SUBUNIT":"Burundi","SU_A3":"BDI","BRK_DIFF":0,"NAME":"Burundi","NAME_LONG":"Burundi","BRK_A3":"BDI","BRK_NAME":"Burundi","BRK_GROUP":null,"ABBREV":"Bur.","POSTAL":"BI","FORMAL_EN":"Republic of Burundi","FORMAL_FR":null,"NAME_CIAWF":"Burundi","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Burundi","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":8,"POP_EST":11466756,"POP_RANK":14,"GDP_MD_EST":7892,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"BY","ISO_A2":"BI","ISO_A3":"BDI","ISO_A3_EH":"BDI","ISO_N3":"108","UN_A3":"108","WB_A2":"BI","WB_A3":"BDI","WOE_ID":23424774,"WOE_ID_EH":23424774,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BDI","ADM0_A3_US":"BDI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[29.024926,-4.499983,30.75224,-2.348487],"geometry":{"type":"Polygon","coordinates":[[[29.339998,-4.499983],[29.276384,-3.293907],[29.024926,-2.839258],[29.632176,-2.917858],[29.938359,-2.348487],[30.469674,-2.413855],[30.52766,-2.80762],[30.74301,-3.03431],[30.75224,-3.35931],[30.50554,-3.56858],[30.11632,-4.09012],[29.753512,-4.452389],[29.339998,-4.499983]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Belgium","SOV_A3":"BEL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Belgium","ADM0_A3":"BEL","GEOU_DIF":0,"GEOUNIT":"Belgium","GU_A3":"BEL","SU_DIF":0,"SUBUNIT":"Belgium","SU_A3":"BEL","BRK_DIFF":0,"NAME":"Belgium","NAME_LONG":"Belgium","BRK_A3":"BEL","BRK_NAME":"Belgium","BRK_GROUP":null,"ABBREV":"Belg.","POSTAL":"B","FORMAL_EN":"Kingdom of Belgium","FORMAL_FR":null,"NAME_CIAWF":"Belgium","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Belgium","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":1,"MAPCOLOR13":8,"POP_EST":11491346,"POP_RANK":14,"GDP_MD_EST":508600,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"BE","ISO_A2":"BE","ISO_A3":"BEL","ISO_A3_EH":"BEL","ISO_N3":"056","UN_A3":"056","WB_A2":"BE","WB_A3":"BEL","WOE_ID":23424757,"WOE_ID_EH":23424757,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BEL","ADM0_A3_US":"BEL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[2.513573,49.529484,6.156658,51.475024],"geometry":{"type":"Polygon","coordinates":[[[4.047071,51.267259],[4.973991,51.475024],[5.606976,51.037298],[6.156658,50.803721],[6.043073,50.128052],[5.782417,50.090328],[5.674052,49.529484],[4.799222,49.985373],[4.286023,49.907497],[3.588184,50.378992],[3.123252,50.780363],[2.658422,50.796848],[2.513573,51.148506],[3.314971,51.345781],[3.315011,51.345777],[3.314971,51.345755],[4.047071,51.267259]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Benin","SOV_A3":"BEN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Benin","ADM0_A3":"BEN","GEOU_DIF":0,"GEOUNIT":"Benin","GU_A3":"BEN","SU_DIF":0,"SUBUNIT":"Benin","SU_A3":"BEN","BRK_DIFF":0,"NAME":"Benin","NAME_LONG":"Benin","BRK_A3":"BEN","BRK_NAME":"Benin","BRK_GROUP":null,"ABBREV":"Benin","POSTAL":"BJ","FORMAL_EN":"Republic of Benin","FORMAL_FR":null,"NAME_CIAWF":"Benin","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Benin","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":12,"POP_EST":11038805,"POP_RANK":14,"GDP_MD_EST":24310,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"BN","ISO_A2":"BJ","ISO_A3":"BEN","ISO_A3_EH":"BEN","ISO_N3":"204","UN_A3":"204","WB_A2":"BJ","WB_A3":"BEN","WOE_ID":23424764,"WOE_ID_EH":23424764,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BEN","ADM0_A3_US":"BEN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[0.772336,6.142158,3.797112,12.235636],"geometry":{"type":"Polygon","coordinates":[[[2.691702,6.258817],[1.865241,6.142158],[1.618951,6.832038],[1.664478,9.12859],[1.463043,9.334624],[1.425061,9.825395],[1.077795,10.175607],[0.772336,10.470808],[0.899563,10.997339],[1.24347,11.110511],[1.447178,11.547719],[1.935986,11.64115],[2.154474,11.94015],[2.490164,12.233052],[2.848643,12.235636],[3.61118,11.660167],[3.572216,11.327939],[3.797112,10.734746],[3.60007,10.332186],[3.705438,10.06321],[3.220352,9.444153],[2.912308,9.137608],[2.723793,8.506845],[2.749063,7.870734],[2.691702,6.258817]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Burkina Faso","SOV_A3":"BFA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Burkina Faso","ADM0_A3":"BFA","GEOU_DIF":0,"GEOUNIT":"Burkina Faso","GU_A3":"BFA","SU_DIF":0,"SUBUNIT":"Burkina Faso","SU_A3":"BFA","BRK_DIFF":0,"NAME":"Burkina Faso","NAME_LONG":"Burkina Faso","BRK_A3":"BFA","BRK_NAME":"Burkina Faso","BRK_GROUP":null,"ABBREV":"B.F.","POSTAL":"BF","FORMAL_EN":"Burkina Faso","FORMAL_FR":null,"NAME_CIAWF":"Burkina Faso","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Burkina Faso","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":1,"MAPCOLOR9":5,"MAPCOLOR13":11,"POP_EST":20107509,"POP_RANK":15,"GDP_MD_EST":32990,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"UV","ISO_A2":"BF","ISO_A3":"BFA","ISO_A3_EH":"BFA","ISO_N3":"854","UN_A3":"854","WB_A2":"BF","WB_A3":"BFA","WOE_ID":23424978,"WOE_ID_EH":23424978,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BFA","ADM0_A3_US":"BFA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":12,"LONG_LEN":12,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-5.470565,9.610835,2.177108,15.116158],"geometry":{"type":"Polygon","coordinates":[[[2.154474,11.94015],[1.935986,11.64115],[1.447178,11.547719],[1.24347,11.110511],[0.899563,10.997339],[0.023803,11.018682],[-0.438702,11.098341],[-0.761576,10.93693],[-1.203358,11.009819],[-2.940409,10.96269],[-2.963896,10.395335],[-2.827496,9.642461],[-3.511899,9.900326],[-3.980449,9.862344],[-4.330247,9.610835],[-4.779884,9.821985],[-4.954653,10.152714],[-5.404342,10.370737],[-5.470565,10.95127],[-5.197843,11.375146],[-5.220942,11.713859],[-4.427166,12.542646],[-4.280405,13.228444],[-4.006391,13.472485],[-3.522803,13.337662],[-3.103707,13.541267],[-2.967694,13.79815],[-2.191825,14.246418],[-2.001035,14.559008],[-1.066363,14.973815],[-0.515854,15.116158],[-0.266257,14.924309],[0.374892,14.928908],[0.295646,14.444235],[0.429928,13.988733],[0.993046,13.33575],[1.024103,12.851826],[2.177108,12.625018],[2.154474,11.94015]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Bangladesh","SOV_A3":"BGD","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Bangladesh","ADM0_A3":"BGD","GEOU_DIF":0,"GEOUNIT":"Bangladesh","GU_A3":"BGD","SU_DIF":0,"SUBUNIT":"Bangladesh","SU_A3":"BGD","BRK_DIFF":0,"NAME":"Bangladesh","NAME_LONG":"Bangladesh","BRK_A3":"BGD","BRK_NAME":"Bangladesh","BRK_GROUP":null,"ABBREV":"Bang.","POSTAL":"BD","FORMAL_EN":"People\'s Republic of Bangladesh","FORMAL_FR":null,"NAME_CIAWF":"Bangladesh","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bangladesh","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":4,"MAPCOLOR9":7,"MAPCOLOR13":7,"POP_EST":157826578,"POP_RANK":17,"GDP_MD_EST":628400,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"BG","ISO_A2":"BD","ISO_A3":"BGD","ISO_A3_EH":"BGD","ISO_N3":"050","UN_A3":"050","WB_A2":"BD","WB_A3":"BGD","WOE_ID":23424759,"WOE_ID_EH":23424759,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BGD","ADM0_A3_US":"BGD","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[88.084422,20.670883,92.672721,26.446526],"geometry":{"type":"Polygon","coordinates":[[[92.672721,22.041239],[92.652257,21.324048],[92.303234,21.475485],[92.368554,20.670883],[92.082886,21.192195],[92.025215,21.70157],[91.834891,22.182936],[91.417087,22.765019],[90.496006,22.805017],[90.586957,22.392794],[90.272971,21.836368],[89.847467,22.039146],[89.70205,21.857116],[89.418863,21.966179],[89.031961,22.055708],[88.876312,22.879146],[88.52977,23.631142],[88.69994,24.233715],[88.084422,24.501657],[88.306373,24.866079],[88.931554,25.238692],[88.209789,25.768066],[88.563049,26.446526],[89.355094,26.014407],[89.832481,25.965082],[89.920693,25.26975],[90.872211,25.132601],[91.799596,25.147432],[92.376202,24.976693],[91.915093,24.130414],[91.46773,24.072639],[91.158963,23.503527],[91.706475,22.985264],[91.869928,23.624346],[92.146035,23.627499],[92.672721,22.041239]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Bulgaria","SOV_A3":"BGR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Bulgaria","ADM0_A3":"BGR","GEOU_DIF":0,"GEOUNIT":"Bulgaria","GU_A3":"BGR","SU_DIF":0,"SUBUNIT":"Bulgaria","SU_A3":"BGR","BRK_DIFF":0,"NAME":"Bulgaria","NAME_LONG":"Bulgaria","BRK_A3":"BGR","BRK_NAME":"Bulgaria","BRK_GROUP":null,"ABBREV":"Bulg.","POSTAL":"BG","FORMAL_EN":"Republic of Bulgaria","FORMAL_FR":null,"NAME_CIAWF":"Bulgaria","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bulgaria","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":1,"MAPCOLOR13":8,"POP_EST":7101510,"POP_RANK":13,"GDP_MD_EST":143100,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"BU","ISO_A2":"BG","ISO_A3":"BGR","ISO_A3_EH":"BGR","ISO_N3":"100","UN_A3":"100","WB_A2":"BG","WB_A3":"BGR","WOE_ID":23424771,"WOE_ID_EH":23424771,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BGR","ADM0_A3_US":"BGR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[22.380526,41.234486,28.558081,44.234923],"geometry":{"type":"Polygon","coordinates":[[[22.65715,44.234923],[22.944832,43.823785],[23.332302,43.897011],[24.100679,43.741051],[25.569272,43.688445],[26.065159,43.943494],[27.2424,44.175986],[27.970107,43.812468],[28.558081,43.707462],[28.039095,43.293172],[27.673898,42.577892],[27.99672,42.007359],[27.135739,42.141485],[26.117042,41.826905],[26.106138,41.328899],[25.197201,41.234486],[24.492645,41.583896],[23.692074,41.309081],[22.952377,41.337994],[22.881374,41.999297],[22.380526,42.32026],[22.545012,42.461362],[22.436595,42.580321],[22.604801,42.898519],[22.986019,43.211161],[22.500157,43.642814],[22.410446,44.008063],[22.65715,44.234923]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"The Bahamas","SOV_A3":"BHS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"The Bahamas","ADM0_A3":"BHS","GEOU_DIF":0,"GEOUNIT":"The Bahamas","GU_A3":"BHS","SU_DIF":0,"SUBUNIT":"The Bahamas","SU_A3":"BHS","BRK_DIFF":0,"NAME":"Bahamas","NAME_LONG":"Bahamas","BRK_A3":"BHS","BRK_NAME":"Bahamas","BRK_GROUP":null,"ABBREV":"Bhs.","POSTAL":"BS","FORMAL_EN":"Commonwealth of the Bahamas","FORMAL_FR":null,"NAME_CIAWF":"Bahamas, The","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bahamas, The","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":1,"MAPCOLOR9":2,"MAPCOLOR13":5,"POP_EST":329988,"POP_RANK":10,"GDP_MD_EST":9066,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"BF","ISO_A2":"BS","ISO_A3":"BHS","ISO_A3_EH":"BHS","ISO_N3":"044","UN_A3":"044","WB_A2":"BS","WB_A3":"BHS","WOE_ID":23424758,"WOE_ID_EH":23424758,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BHS","ADM0_A3_US":"BHS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-78.98,23.71,-77,27.04],"geometry":{"type":"MultiPolygon","coordinates":[[[[-77.53466,23.75975],[-77.78,23.71],[-78.03405,24.28615],[-78.40848,24.57564],[-78.19087,25.2103],[-77.89,25.17],[-77.54,24.34],[-77.53466,23.75975]]],[[[-77.82,26.58],[-78.91,26.42],[-78.98,26.79],[-78.51,26.87],[-77.85,26.84],[-77.82,26.58]]],[[[-77,26.59],[-77.17255,25.87918],[-77.35641,26.00735],[-77.34,26.53],[-77.78802,26.92516],[-77.79,27.04],[-77,26.59]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Bosnia and Herzegovina","SOV_A3":"BIH","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Bosnia and Herzegovina","ADM0_A3":"BIH","GEOU_DIF":0,"GEOUNIT":"Bosnia and Herzegovina","GU_A3":"BIH","SU_DIF":0,"SUBUNIT":"Bosnia and Herzegovina","SU_A3":"BIH","BRK_DIFF":0,"NAME":"Bosnia and Herz.","NAME_LONG":"Bosnia and Herzegovina","BRK_A3":"BIH","BRK_NAME":"Bosnia and Herz.","BRK_GROUP":null,"ABBREV":"B.H.","POSTAL":"BiH","FORMAL_EN":"Bosnia and Herzegovina","FORMAL_FR":null,"NAME_CIAWF":"Bosnia and Herzegovina","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bosnia and Herzegovina","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":1,"MAPCOLOR9":1,"MAPCOLOR13":2,"POP_EST":3856181,"POP_RANK":12,"GDP_MD_EST":42530,"POP_YEAR":2017,"LASTCENSUS":1991,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"BK","ISO_A2":"BA","ISO_A3":"BIH","ISO_A3_EH":"BIH","ISO_N3":"070","UN_A3":"070","WB_A2":"BA","WB_A3":"BIH","WOE_ID":23424761,"WOE_ID_EH":23424761,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BIH","ADM0_A3_US":"BIH","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":16,"LONG_LEN":22,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[15.750026,42.65,19.59976,45.233777],"geometry":{"type":"Polygon","coordinates":[[[19.36803,44.863],[19.11761,44.42307],[19.59976,44.03847],[19.454,43.5681],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674922,43.028563],[17.297373,43.446341],[16.916156,43.667722],[16.456443,44.04124],[16.23966,44.351143],[15.750026,44.818712],[15.959367,45.233777],[16.318157,45.004127],[16.534939,45.211608],[17.002146,45.233777],[17.861783,45.06774],[18.553214,45.08159],[19.005485,44.860234],[19.00548,44.86023],[19.36803,44.863]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Belarus","SOV_A3":"BLR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Belarus","ADM0_A3":"BLR","GEOU_DIF":0,"GEOUNIT":"Belarus","GU_A3":"BLR","SU_DIF":0,"SUBUNIT":"Belarus","SU_A3":"BLR","BRK_DIFF":0,"NAME":"Belarus","NAME_LONG":"Belarus","BRK_A3":"BLR","BRK_NAME":"Belarus","BRK_GROUP":null,"ABBREV":"Bela.","POSTAL":"BY","FORMAL_EN":"Republic of Belarus","FORMAL_FR":null,"NAME_CIAWF":"Belarus","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Belarus","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":1,"MAPCOLOR9":5,"MAPCOLOR13":11,"POP_EST":9549747,"POP_RANK":13,"GDP_MD_EST":165400,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"BO","ISO_A2":"BY","ISO_A3":"BLR","ISO_A3_EH":"BLR","ISO_N3":"112","UN_A3":"112","WB_A2":"BY","WB_A3":"BLR","WOE_ID":23424765,"WOE_ID_EH":23424765,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BLR","ADM0_A3_US":"BLR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[23.199494,51.319503,32.693643,56.16913],"geometry":{"type":"Polygon","coordinates":[[[23.484128,53.912498],[24.450684,53.905702],[25.536354,54.282423],[25.768433,54.846963],[26.588279,55.167176],[26.494331,55.615107],[27.10246,55.783314],[28.176709,56.16913],[29.229513,55.918344],[29.371572,55.670091],[29.896294,55.789463],[30.873909,55.550976],[30.971836,55.081548],[30.757534,54.811771],[31.384472,54.157056],[31.791424,53.974639],[31.731273,53.794029],[32.405599,53.618045],[32.693643,53.351421],[32.304519,53.132726],[31.49764,53.16743],[31.305201,53.073996],[31.540018,52.742052],[31.78597,52.10168],[31.785992,52.101678],[30.927549,52.042353],[30.619454,51.822806],[30.555117,51.319503],[30.157364,51.416138],[29.254938,51.368234],[28.992835,51.602044],[28.617613,51.427714],[28.241615,51.572227],[27.454066,51.592303],[26.337959,51.832289],[25.327788,51.910656],[24.553106,51.888461],[24.005078,51.617444],[23.527071,51.578454],[23.508002,52.023647],[23.199494,52.486977],[23.799199,52.691099],[23.804935,53.089731],[23.527536,53.470122],[23.484128,53.912498]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Belize","SOV_A3":"BLZ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Belize","ADM0_A3":"BLZ","GEOU_DIF":0,"GEOUNIT":"Belize","GU_A3":"BLZ","SU_DIF":0,"SUBUNIT":"Belize","SU_A3":"BLZ","BRK_DIFF":0,"NAME":"Belize","NAME_LONG":"Belize","BRK_A3":"BLZ","BRK_NAME":"Belize","BRK_GROUP":null,"ABBREV":"Belize","POSTAL":"BZ","FORMAL_EN":"Belize","FORMAL_FR":null,"NAME_CIAWF":"Belize","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Belize","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":5,"MAPCOLOR13":7,"POP_EST":360346,"POP_RANK":10,"GDP_MD_EST":3088,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"BH","ISO_A2":"BZ","ISO_A3":"BLZ","ISO_A3_EH":"BLZ","ISO_N3":"084","UN_A3":"084","WB_A2":"BZ","WB_A3":"BLZ","WOE_ID":23424760,"WOE_ID_EH":23424760,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BLZ","ADM0_A3_US":"BLZ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[-89.229122,15.886938,-88.106813,18.499982],"geometry":{"type":"Polygon","coordinates":[[[-89.14308,17.808319],[-89.150909,17.955468],[-89.029857,18.001511],[-88.848344,17.883198],[-88.490123,18.486831],[-88.300031,18.499982],[-88.296336,18.353273],[-88.106813,18.348674],[-88.123479,18.076675],[-88.285355,17.644143],[-88.197867,17.489475],[-88.302641,17.131694],[-88.239518,17.036066],[-88.355428,16.530774],[-88.551825,16.265467],[-88.732434,16.233635],[-88.930613,15.887273],[-89.229122,15.886938],[-89.150806,17.015577],[-89.14308,17.808319]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Bolivia","SOV_A3":"BOL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Bolivia","ADM0_A3":"BOL","GEOU_DIF":0,"GEOUNIT":"Bolivia","GU_A3":"BOL","SU_DIF":0,"SUBUNIT":"Bolivia","SU_A3":"BOL","BRK_DIFF":0,"NAME":"Bolivia","NAME_LONG":"Bolivia","BRK_A3":"BOL","BRK_NAME":"Bolivia","BRK_GROUP":null,"ABBREV":"Bolivia","POSTAL":"BO","FORMAL_EN":"Plurinational State of Bolivia","FORMAL_FR":null,"NAME_CIAWF":"Bolivia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bolivia","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":5,"MAPCOLOR9":2,"MAPCOLOR13":3,"POP_EST":11138234,"POP_RANK":14,"GDP_MD_EST":78350,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"BL","ISO_A2":"BO","ISO_A3":"BOL","ISO_A3_EH":"BOL","ISO_N3":"068","UN_A3":"068","WB_A2":"BO","WB_A3":"BOL","WOE_ID":23424762,"WOE_ID_EH":23424762,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BOL","ADM0_A3_US":"BOL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7.5},"bbox":[-69.590424,-22.872919,-57.498371,-9.761988],"geometry":{"type":"Polygon","coordinates":[[[-62.685057,-22.249029],[-62.846468,-22.034985],[-63.986838,-21.993644],[-64.377021,-22.798091],[-64.964892,-22.075862],[-66.273339,-21.83231],[-67.106674,-22.735925],[-67.82818,-22.872919],[-68.219913,-21.494347],[-68.757167,-20.372658],[-68.442225,-19.405068],[-68.966818,-18.981683],[-69.100247,-18.260125],[-69.590424,-17.580012],[-68.959635,-16.500698],[-69.389764,-15.660129],[-69.160347,-15.323974],[-69.339535,-14.953195],[-68.948887,-14.453639],[-68.929224,-13.602684],[-68.88008,-12.899729],[-68.66508,-12.5613],[-69.529678,-10.951734],[-68.786158,-11.03638],[-68.271254,-11.014521],[-68.048192,-10.712059],[-67.173801,-10.306812],[-66.646908,-9.931331],[-65.338435,-9.761988],[-65.444837,-10.511451],[-65.321899,-10.895872],[-65.402281,-11.56627],[-64.316353,-12.461978],[-63.196499,-12.627033],[-62.80306,-13.000653],[-62.127081,-13.198781],[-61.713204,-13.489202],[-61.084121,-13.479384],[-60.503304,-13.775955],[-60.459198,-14.354007],[-60.264326,-14.645979],[-60.251149,-15.077219],[-60.542966,-15.09391],[-60.15839,-16.258284],[-58.24122,-16.299573],[-58.388058,-16.877109],[-58.280804,-17.27171],[-57.734558,-17.552468],[-57.498371,-18.174188],[-57.676009,-18.96184],[-57.949997,-19.400004],[-57.853802,-19.969995],[-58.166392,-20.176701],[-58.183471,-19.868399],[-59.115042,-19.356906],[-60.043565,-19.342747],[-61.786326,-19.633737],[-62.265961,-20.513735],[-62.291179,-21.051635],[-62.685057,-22.249029]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Brazil","SOV_A3":"BRA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Brazil","ADM0_A3":"BRA","GEOU_DIF":0,"GEOUNIT":"Brazil","GU_A3":"BRA","SU_DIF":0,"SUBUNIT":"Brazil","SU_A3":"BRA","BRK_DIFF":0,"NAME":"Brazil","NAME_LONG":"Brazil","BRK_A3":"BRA","BRK_NAME":"Brazil","BRK_GROUP":null,"ABBREV":"Brazil","POSTAL":"BR","FORMAL_EN":"Federative Republic of Brazil","FORMAL_FR":null,"NAME_CIAWF":"Brazil","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Brazil","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":5,"MAPCOLOR13":7,"POP_EST":207353391,"POP_RANK":17,"GDP_MD_EST":3081000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"3. Emerging region:BRIC","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"BR","ISO_A2":"BR","ISO_A3":"BRA","ISO_A3_EH":"BRA","ISO_N3":"076","UN_A3":"076","WB_A2":"BR","WB_A3":"BRA","WOE_ID":23424768,"WOE_ID_EH":23424768,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BRA","ADM0_A3_US":"BRA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.7},"bbox":[-73.987235,-33.768378,-34.729993,5.244486],"geometry":{"type":"Polygon","coordinates":[[[-57.625133,-30.216295],[-56.2909,-28.852761],[-55.162286,-27.881915],[-54.490725,-27.474757],[-53.648735,-26.923473],[-53.628349,-26.124865],[-54.13005,-25.547639],[-54.625291,-25.739255],[-54.428946,-25.162185],[-54.293476,-24.5708],[-54.29296,-24.021014],[-54.652834,-23.839578],[-55.027902,-24.001274],[-55.400747,-23.956935],[-55.517639,-23.571998],[-55.610683,-22.655619],[-55.797958,-22.35693],[-56.473317,-22.0863],[-56.88151,-22.282154],[-57.937156,-22.090176],[-57.870674,-20.732688],[-58.166392,-20.176701],[-57.853802,-19.969995],[-57.949997,-19.400004],[-57.676009,-18.96184],[-57.498371,-18.174188],[-57.734558,-17.552468],[-58.280804,-17.27171],[-58.388058,-16.877109],[-58.24122,-16.299573],[-60.15839,-16.258284],[-60.542966,-15.09391],[-60.251149,-15.077219],[-60.264326,-14.645979],[-60.459198,-14.354007],[-60.503304,-13.775955],[-61.084121,-13.479384],[-61.713204,-13.489202],[-62.127081,-13.198781],[-62.80306,-13.000653],[-63.196499,-12.627033],[-64.316353,-12.461978],[-65.402281,-11.56627],[-65.321899,-10.895872],[-65.444837,-10.511451],[-65.338435,-9.761988],[-66.646908,-9.931331],[-67.173801,-10.306812],[-68.048192,-10.712059],[-68.271254,-11.014521],[-68.786158,-11.03638],[-69.529678,-10.951734],[-70.093752,-11.123972],[-70.548686,-11.009147],[-70.481894,-9.490118],[-71.302412,-10.079436],[-72.184891,-10.053598],[-72.563033,-9.520194],[-73.226713,-9.462213],[-73.015383,-9.032833],[-73.571059,-8.424447],[-73.987235,-7.52383],[-73.723401,-7.340999],[-73.724487,-6.918595],[-73.120027,-6.629931],[-73.219711,-6.089189],[-72.964507,-5.741251],[-72.891928,-5.274561],[-71.748406,-4.593983],[-70.928843,-4.401591],[-70.794769,-4.251265],[-69.893635,-4.298187],[-69.444102,-1.556287],[-69.420486,-1.122619],[-69.577065,-0.549992],[-70.020656,-0.185156],[-70.015566,0.541414],[-69.452396,0.706159],[-69.252434,0.602651],[-69.218638,0.985677],[-69.804597,1.089081],[-69.816973,1.714805],[-67.868565,1.692455],[-67.53781,2.037163],[-67.259998,1.719999],[-67.065048,1.130112],[-66.876326,1.253361],[-66.325765,0.724452],[-65.548267,0.789254],[-65.354713,1.095282],[-64.611012,1.328731],[-64.199306,1.492855],[-64.083085,1.916369],[-63.368788,2.2009],[-63.422867,2.411068],[-64.269999,2.497006],[-64.408828,3.126786],[-64.368494,3.79721],[-64.816064,4.056445],[-64.628659,4.148481],[-63.888343,4.02053],[-63.093198,3.770571],[-62.804533,4.006965],[-62.08543,4.162124],[-60.966893,4.536468],[-60.601179,4.918098],[-60.733574,5.200277],[-60.213683,5.244486],[-59.980959,5.014061],[-60.111002,4.574967],[-59.767406,4.423503],[-59.53804,3.958803],[-59.815413,3.606499],[-59.974525,2.755233],[-59.718546,2.24963],[-59.646044,1.786894],[-59.030862,1.317698],[-58.540013,1.268088],[-58.429477,1.463942],[-58.11345,1.507195],[-57.660971,1.682585],[-57.335823,1.948538],[-56.782704,1.863711],[-56.539386,1.899523],[-55.995698,1.817667],[-55.9056,2.021996],[-56.073342,2.220795],[-55.973322,2.510364],[-55.569755,2.421506],[-55.097587,2.523748],[-54.524754,2.311849],[-54.088063,2.105557],[-53.778521,2.376703],[-53.554839,2.334897],[-53.418465,2.053389],[-52.939657,2.124858],[-52.556425,2.504705],[-52.249338,3.241094],[-51.657797,4.156232],[-51.317146,4.203491],[-51.069771,3.650398],[-50.508875,1.901564],[-49.974076,1.736483],[-49.947101,1.04619],[-50.699251,0.222984],[-50.388211,-0.078445],[-48.620567,-0.235489],[-48.584497,-1.237805],[-47.824956,-0.581618],[-46.566584,-0.941028],[-44.905703,-1.55174],[-44.417619,-2.13775],[-44.581589,-2.691308],[-43.418791,-2.38311],[-41.472657,-2.912018],[-39.978665,-2.873054],[-38.500383,-3.700652],[-37.223252,-4.820946],[-36.452937,-5.109404],[-35.597796,-5.149504],[-35.235389,-5.464937],[-34.89603,-6.738193],[-34.729993,-7.343221],[-35.128212,-8.996401],[-35.636967,-9.649282],[-37.046519,-11.040721],[-37.683612,-12.171195],[-38.423877,-13.038119],[-38.673887,-13.057652],[-38.953276,-13.79337],[-38.882298,-15.667054],[-39.161092,-17.208407],[-39.267339,-17.867746],[-39.583521,-18.262296],[-39.760823,-19.599113],[-40.774741,-20.904512],[-40.944756,-21.937317],[-41.754164,-22.370676],[-41.988284,-22.97007],[-43.074704,-22.967693],[-44.647812,-23.351959],[-45.352136,-23.796842],[-46.472093,-24.088969],[-47.648972,-24.885199],[-48.495458,-25.877025],[-48.641005,-26.623698],[-48.474736,-27.175912],[-48.66152,-28.186135],[-48.888457,-28.674115],[-49.587329,-29.224469],[-50.696874,-30.984465],[-51.576226,-31.777698],[-52.256081,-32.24537],[-52.7121,-33.196578],[-53.373662,-33.768378],[-53.650544,-33.202004],[-53.209589,-32.727666],[-53.787952,-32.047243],[-54.572452,-31.494511],[-55.60151,-30.853879],[-55.973245,-30.883076],[-56.976026,-30.109686],[-57.625133,-30.216295]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Brunei","SOV_A3":"BRN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Brunei","ADM0_A3":"BRN","GEOU_DIF":0,"GEOUNIT":"Brunei","GU_A3":"BRN","SU_DIF":0,"SUBUNIT":"Brunei","SU_A3":"BRN","BRK_DIFF":0,"NAME":"Brunei","NAME_LONG":"Brunei Darussalam","BRK_A3":"BRN","BRK_NAME":"Brunei","BRK_GROUP":null,"ABBREV":"Brunei","POSTAL":"BN","FORMAL_EN":"Negara Brunei Darussalam","FORMAL_FR":null,"NAME_CIAWF":"Brunei","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Brunei","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":6,"MAPCOLOR9":6,"MAPCOLOR13":12,"POP_EST":443593,"POP_RANK":10,"GDP_MD_EST":33730,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"BX","ISO_A2":"BN","ISO_A3":"BRN","ISO_A3_EH":"BRN","ISO_N3":"096","UN_A3":"096","WB_A2":"BN","WB_A3":"BRN","WOE_ID":23424773,"WOE_ID_EH":23424773,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BRN","ADM0_A3_US":"BRN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":6,"LONG_LEN":17,"ABBREV_LEN":6,"TINY":2,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[114.204017,4.007637,115.45071,5.44773],"geometry":{"type":"Polygon","coordinates":[[[114.204017,4.525874],[114.599961,4.900011],[115.45071,5.44773],[115.4057,4.955228],[115.347461,4.316636],[114.869557,4.348314],[114.659596,4.007637],[114.204017,4.525874]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Bhutan","SOV_A3":"BTN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Bhutan","ADM0_A3":"BTN","GEOU_DIF":0,"GEOUNIT":"Bhutan","GU_A3":"BTN","SU_DIF":0,"SUBUNIT":"Bhutan","SU_A3":"BTN","BRK_DIFF":0,"NAME":"Bhutan","NAME_LONG":"Bhutan","BRK_A3":"BTN","BRK_NAME":"Bhutan","BRK_GROUP":null,"ABBREV":"Bhutan","POSTAL":"BT","FORMAL_EN":"Kingdom of Bhutan","FORMAL_FR":null,"NAME_CIAWF":"Bhutan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Bhutan","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":1,"MAPCOLOR13":8,"POP_EST":758288,"POP_RANK":11,"GDP_MD_EST":6432,"POP_YEAR":2017,"LASTCENSUS":2005,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"BT","ISO_A2":"BT","ISO_A3":"BTN","ISO_A3_EH":"BTN","ISO_N3":"064","UN_A3":"064","WB_A2":"BT","WB_A3":"BTN","WOE_ID":23424770,"WOE_ID_EH":23424770,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BTN","ADM0_A3_US":"BTN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[88.814248,26.719403,92.103712,28.296439],"geometry":{"type":"Polygon","coordinates":[[[91.696657,27.771742],[92.103712,27.452614],[92.033484,26.83831],[91.217513,26.808648],[90.373275,26.875724],[89.744528,26.719403],[88.835643,27.098966],[88.814248,27.299316],[89.47581,28.042759],[90.015829,28.296439],[90.730514,28.064954],[91.258854,28.040614],[91.696657,27.771742]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Botswana","SOV_A3":"BWA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Botswana","ADM0_A3":"BWA","GEOU_DIF":0,"GEOUNIT":"Botswana","GU_A3":"BWA","SU_DIF":0,"SUBUNIT":"Botswana","SU_A3":"BWA","BRK_DIFF":0,"NAME":"Botswana","NAME_LONG":"Botswana","BRK_A3":"BWA","BRK_NAME":"Botswana","BRK_GROUP":null,"ABBREV":"Bwa.","POSTAL":"BW","FORMAL_EN":"Republic of Botswana","FORMAL_FR":null,"NAME_CIAWF":"Botswana","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Botswana","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":5,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":2214858,"POP_RANK":12,"GDP_MD_EST":35900,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"BC","ISO_A2":"BW","ISO_A3":"BWA","ISO_A3_EH":"BWA","ISO_N3":"072","UN_A3":"072","WB_A2":"BW","WB_A3":"BWA","WOE_ID":23424755,"WOE_ID_EH":23424755,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"BWA","ADM0_A3_US":"BWA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Southern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[19.895458,-26.828543,29.432188,-17.661816],"geometry":{"type":"Polygon","coordinates":[[[29.432188,-22.091313],[28.017236,-22.827754],[27.11941,-23.574323],[26.786407,-24.240691],[26.485753,-24.616327],[25.941652,-24.696373],[25.765849,-25.174845],[25.664666,-25.486816],[25.025171,-25.71967],[24.211267,-25.670216],[23.73357,-25.390129],[23.312097,-25.26869],[22.824271,-25.500459],[22.579532,-25.979448],[22.105969,-26.280256],[21.605896,-26.726534],[20.889609,-26.828543],[20.66647,-26.477453],[20.758609,-25.868136],[20.165726,-24.917962],[19.895768,-24.76779],[19.895458,-21.849157],[20.881134,-21.814327],[20.910641,-18.252219],[21.65504,-18.219146],[23.196858,-17.869038],[23.579006,-18.281261],[24.217365,-17.889347],[24.520705,-17.887125],[25.084443,-17.661816],[25.264226,-17.73654],[25.649163,-18.536026],[25.850391,-18.714413],[26.164791,-19.293086],[27.296505,-20.39152],[27.724747,-20.499059],[27.727228,-20.851802],[28.02137,-21.485975],[28.794656,-21.639454],[29.432188,-22.091313]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Central African Republic","SOV_A3":"CAF","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Central African Republic","ADM0_A3":"CAF","GEOU_DIF":0,"GEOUNIT":"Central African Republic","GU_A3":"CAF","SU_DIF":0,"SUBUNIT":"Central African Republic","SU_A3":"CAF","BRK_DIFF":0,"NAME":"Central African Rep.","NAME_LONG":"Central African Republic","BRK_A3":"CAF","BRK_NAME":"Central African Rep.","BRK_GROUP":null,"ABBREV":"C.A.R.","POSTAL":"CF","FORMAL_EN":"Central African Republic","FORMAL_FR":null,"NAME_CIAWF":"Central African Republic","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Central African Republic","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":6,"MAPCOLOR13":9,"POP_EST":5625118,"POP_RANK":13,"GDP_MD_EST":3206,"POP_YEAR":2017,"LASTCENSUS":2003,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"CT","ISO_A2":"CF","ISO_A3":"CAF","ISO_A3_EH":"CAF","ISO_N3":"140","UN_A3":"140","WB_A2":"CF","WB_A3":"CAF","WOE_ID":23424792,"WOE_ID_EH":23424792,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CAF","ADM0_A3_US":"CAF","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":20,"LONG_LEN":24,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[14.459407,2.26764,27.374226,11.142395],"geometry":{"type":"Polygon","coordinates":[[[15.27946,7.421925],[16.106232,7.497088],[16.290562,7.754307],[16.456185,7.734774],[16.705988,7.508328],[17.96493,7.890914],[18.389555,8.281304],[18.911022,8.630895],[18.81201,8.982915],[19.094008,9.074847],[20.059685,9.012706],[21.000868,9.475985],[21.723822,10.567056],[22.231129,10.971889],[22.864165,11.142395],[22.977544,10.714463],[23.554304,10.089255],[23.55725,9.681218],[23.394779,9.265068],[23.459013,8.954286],[23.805813,8.666319],[24.567369,8.229188],[25.114932,7.825104],[25.124131,7.500085],[25.796648,6.979316],[26.213418,6.546603],[26.465909,5.946717],[27.213409,5.550953],[27.374226,5.233944],[27.044065,5.127853],[26.402761,5.150875],[25.650455,5.256088],[25.278798,5.170408],[25.128833,4.927245],[24.805029,4.897247],[24.410531,5.108784],[23.297214,4.609693],[22.84148,4.710126],[22.704124,4.633051],[22.405124,4.02916],[21.659123,4.224342],[20.927591,4.322786],[20.290679,4.691678],[19.467784,5.031528],[18.932312,4.709506],[18.542982,4.201785],[18.453065,3.504386],[17.8099,3.560196],[17.133042,3.728197],[16.537058,3.198255],[16.012852,2.26764],[15.907381,2.557389],[15.862732,3.013537],[15.405396,3.335301],[15.03622,3.851367],[14.950953,4.210389],[14.478372,4.732605],[14.558936,5.030598],[14.459407,5.451761],[14.53656,6.226959],[14.776545,6.408498],[15.27946,7.421925]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Canada","SOV_A3":"CAN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Canada","ADM0_A3":"CAN","GEOU_DIF":0,"GEOUNIT":"Canada","GU_A3":"CAN","SU_DIF":0,"SUBUNIT":"Canada","SU_A3":"CAN","BRK_DIFF":0,"NAME":"Canada","NAME_LONG":"Canada","BRK_A3":"CAN","BRK_NAME":"Canada","BRK_GROUP":null,"ABBREV":"Can.","POSTAL":"CA","FORMAL_EN":"Canada","FORMAL_FR":null,"NAME_CIAWF":"Canada","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Canada","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":35623680,"POP_RANK":15,"GDP_MD_EST":1674000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"CA","ISO_A2":"CA","ISO_A3":"CAN","ISO_A3_EH":"CAN","ISO_N3":"124","UN_A3":"124","WB_A2":"CA","WB_A3":"CAN","WOE_ID":23424775,"WOE_ID_EH":23424775,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CAN","ADM0_A3_US":"CAN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Northern America","REGION_WB":"North America","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.7},"bbox":[-140.99778,41.675105,-52.648099,83.23324],"geometry":{"type":"MultiPolygon","coordinates":[[[[-63.6645,46.55001],[-62.9393,46.41587],[-62.01208,46.44314],[-62.50391,46.03339],[-62.87433,45.96818],[-64.1428,46.39265],[-64.39261,46.72747],[-64.01486,47.03601],[-63.6645,46.55001]]],[[[-61.806305,49.10506],[-62.29318,49.08717],[-63.58926,49.40069],[-64.51912,49.87304],[-64.17322,49.95718],[-62.85829,49.70641],[-61.835585,49.28855],[-61.806305,49.10506]]],[[[-123.510002,48.510011],[-124.012891,48.370846],[-125.655013,48.825005],[-125.954994,49.179996],[-126.850004,49.53],[-127.029993,49.814996],[-128.059336,49.994959],[-128.444584,50.539138],[-128.358414,50.770648],[-127.308581,50.552574],[-126.695001,50.400903],[-125.755007,50.295018],[-125.415002,49.950001],[-124.920768,49.475275],[-123.922509,49.062484],[-123.510002,48.510011]]],[[[-56.134036,50.68701],[-56.795882,49.812309],[-56.143105,50.150117],[-55.471492,49.935815],[-55.822401,49.587129],[-54.935143,49.313011],[-54.473775,49.556691],[-53.476549,49.249139],[-53.786014,48.516781],[-53.086134,48.687804],[-52.958648,48.157164],[-52.648099,47.535548],[-53.069158,46.655499],[-53.521456,46.618292],[-54.178936,46.807066],[-53.961869,47.625207],[-54.240482,47.752279],[-55.400773,46.884994],[-55.997481,46.91972],[-55.291219,47.389562],[-56.250799,47.632545],[-57.325229,47.572807],[-59.266015,47.603348],[-59.419494,47.899454],[-58.796586,48.251525],[-59.231625,48.523188],[-58.391805,49.125581],[-57.35869,50.718274],[-56.73865,51.287438],[-55.870977,51.632094],[-55.406974,51.588273],[-55.600218,51.317075],[-56.134036,50.68701]]],[[[-133.180004,54.169975],[-132.710008,54.040009],[-131.74999,54.120004],[-132.04948,52.984621],[-131.179043,52.180433],[-131.57783,52.182371],[-132.180428,52.639707],[-132.549992,53.100015],[-133.054611,53.411469],[-133.239664,53.85108],[-133.180004,54.169975]]],[[[-79.26582,62.158675],[-79.65752,61.63308],[-80.09956,61.7181],[-80.36215,62.01649],[-80.315395,62.085565],[-79.92939,62.3856],[-79.52002,62.36371],[-79.26582,62.158675]]],[[[-81.89825,62.7108],[-83.06857,62.15922],[-83.77462,62.18231],[-83.99367,62.4528],[-83.25048,62.91409],[-81.87699,62.90458],[-81.89825,62.7108]]],[[[-85.161308,65.657285],[-84.975764,65.217518],[-84.464012,65.371772],[-83.882626,65.109618],[-82.787577,64.766693],[-81.642014,64.455136],[-81.55344,63.979609],[-80.817361,64.057486],[-80.103451,63.725981],[-80.99102,63.411246],[-82.547178,63.651722],[-83.108798,64.101876],[-84.100417,63.569712],[-85.523405,63.052379],[-85.866769,63.637253],[-87.221983,63.541238],[-86.35276,64.035833],[-86.224886,64.822917],[-85.883848,65.738778],[-85.161308,65.657285]]],[[[-75.86588,67.14886],[-76.98687,67.09873],[-77.2364,67.58809],[-76.81166,68.14856],[-75.89521,68.28721],[-75.1145,68.01036],[-75.10333,67.58202],[-75.21597,67.44425],[-75.86588,67.14886]]],[[[-95.647681,69.10769],[-96.269521,68.75704],[-97.617401,69.06003],[-98.431801,68.9507],[-99.797401,69.40003],[-98.917401,69.71003],[-98.218261,70.14354],[-97.157401,69.86003],[-96.557401,69.68003],[-96.257401,69.49003],[-95.647681,69.10769]]],[[[-68.23444,47.35486],[-68.905,47.185],[-69.237216,47.447781],[-69.99997,46.69307],[-70.305,45.915],[-70.66,45.46],[-71.08482,45.30524],[-71.405,45.255],[-71.50506,45.0082],[-73.34783,45.00738],[-74.867,45.00048],[-75.31821,44.81645],[-76.375,44.09631],[-76.5,44.018459],[-76.820034,43.628784],[-77.737885,43.629056],[-78.72028,43.625089],[-79.171674,43.466339],[-79.01,43.27],[-78.92,42.965],[-78.939362,42.863611],[-80.247448,42.3662],[-81.277747,42.209026],[-82.439278,41.675105],[-82.690089,41.675105],[-83.02981,41.832796],[-83.142,41.975681],[-83.12,42.08],[-82.9,42.43],[-82.43,42.98],[-82.137642,43.571088],[-82.337763,44.44],[-82.550925,45.347517],[-83.592851,45.816894],[-83.469551,45.994686],[-83.616131,46.116927],[-83.890765,46.116927],[-84.091851,46.275419],[-84.14212,46.512226],[-84.3367,46.40877],[-84.6049,46.4396],[-84.543749,46.538684],[-84.779238,46.637102],[-84.87608,46.900083],[-85.652363,47.220219],[-86.461991,47.553338],[-87.439793,47.94],[-88.378114,48.302918],[-89.272917,48.019808],[-89.6,48.01],[-90.83,48.27],[-91.64,48.14],[-92.61,48.45],[-93.63087,48.60926],[-94.32914,48.67074],[-94.64,48.84],[-94.81758,49.38905],[-95.15609,49.38425],[-95.15907,49],[-97.22872,49.0007],[-100.65,49],[-104.04826,48.99986],[-107.05,49],[-110.05,49],[-113,49],[-116.04818,49],[-117.03121,49],[-120,49],[-122.84,49],[-122.97421,49.002538],[-124.91024,49.98456],[-125.62461,50.41656],[-127.43561,50.83061],[-127.99276,51.71583],[-127.85032,52.32961],[-129.12979,52.75538],[-129.30523,53.56159],[-130.51497,54.28757],[-130.536109,54.802754],[-130.53611,54.80278],[-129.98,55.285],[-130.00778,55.91583],[-131.70781,56.55212],[-132.73042,57.69289],[-133.35556,58.41028],[-134.27111,58.86111],[-134.945,59.27056],[-135.47583,59.78778],[-136.47972,59.46389],[-137.4525,58.905],[-138.34089,59.56211],[-139.039,60],[-140.013,60.27682],[-140.99778,60.30639],[-140.9925,66.00003],[-140.986,69.712],[-140.985988,69.711998],[-139.12052,69.47102],[-137.54636,68.99002],[-136.50358,68.89804],[-135.62576,69.31512],[-134.41464,69.62743],[-132.92925,69.50534],[-131.43136,69.94451],[-129.79471,70.19369],[-129.10773,69.77927],[-128.36156,70.01286],[-128.13817,70.48384],[-127.44712,70.37721],[-125.75632,69.48058],[-124.42483,70.1584],[-124.28968,69.39969],[-123.06108,69.56372],[-122.6835,69.85553],[-121.47226,69.79778],[-119.94288,69.37786],[-117.60268,69.01128],[-116.22643,68.84151],[-115.2469,68.90591],[-113.89794,68.3989],[-115.30489,67.90261],[-113.49727,67.68815],[-110.798,67.80612],[-109.94619,67.98104],[-108.8802,67.38144],[-107.79239,67.88736],[-108.81299,68.31164],[-108.16721,68.65392],[-106.95,68.7],[-106.15,68.8],[-105.34282,68.56122],[-104.33791,68.018],[-103.22115,68.09775],[-101.45433,67.64689],[-99.90195,67.80566],[-98.4432,67.78165],[-98.5586,68.40394],[-97.66948,68.57864],[-96.11991,68.23939],[-96.12588,67.29338],[-95.48943,68.0907],[-94.685,68.06383],[-94.23282,69.06903],[-95.30408,69.68571],[-96.47131,70.08976],[-96.39115,71.19482],[-95.2088,71.92053],[-93.88997,71.76015],[-92.87818,71.31869],[-91.51964,70.19129],[-92.40692,69.69997],[-90.5471,69.49766],[-90.55151,68.47499],[-89.21515,69.25873],[-88.01966,68.61508],[-88.31749,67.87338],[-87.35017,67.19872],[-86.30607,67.92146],[-85.57664,68.78456],[-85.52197,69.88211],[-84.10081,69.80539],[-82.62258,69.65826],[-81.28043,69.16202],[-81.2202,68.66567],[-81.96436,68.13253],[-81.25928,67.59716],[-81.38653,67.11078],[-83.34456,66.41154],[-84.73542,66.2573],[-85.76943,66.55833],[-86.0676,66.05625],[-87.03143,65.21297],[-87.32324,64.77563],[-88.48296,64.09897],[-89.91444,64.03273],[-90.70398,63.61017],[-90.77004,62.96021],[-91.93342,62.83508],[-93.15698,62.02469],[-94.24153,60.89865],[-94.62931,60.11021],[-94.6846,58.94882],[-93.21502,58.78212],[-92.76462,57.84571],[-92.29703,57.08709],[-90.89769,57.28468],[-89.03953,56.85172],[-88.03978,56.47162],[-87.32421,55.99914],[-86.07121,55.72383],[-85.01181,55.3026],[-83.36055,55.24489],[-82.27285,55.14832],[-82.4362,54.28227],[-82.12502,53.27703],[-81.40075,52.15788],[-79.91289,51.20842],[-79.14301,51.53393],[-78.60191,52.56208],[-79.12421,54.14145],[-79.82958,54.66772],[-78.22874,55.13645],[-77.0956,55.83741],[-76.54137,56.53423],[-76.62319,57.20263],[-77.30226,58.05209],[-78.51688,58.80458],[-77.33676,59.85261],[-77.77272,60.75788],[-78.10687,62.31964],[-77.41067,62.55053],[-75.69621,62.2784],[-74.6682,62.18111],[-73.83988,62.4438],[-72.90853,62.10507],[-71.67708,61.52535],[-71.37369,61.13717],[-69.59042,61.06141],[-69.62033,60.22125],[-69.2879,58.95736],[-68.37455,58.80106],[-67.64976,58.21206],[-66.20178,58.76731],[-65.24517,59.87071],[-64.58352,60.33558],[-63.80475,59.4426],[-62.50236,58.16708],[-61.39655,56.96745],[-61.79866,56.33945],[-60.46853,55.77548],[-59.56962,55.20407],[-57.97508,54.94549],[-57.3332,54.6265],[-56.93689,53.78032],[-56.15811,53.64749],[-55.75632,53.27036],[-55.68338,52.14664],[-56.40916,51.7707],[-57.12691,51.41972],[-58.77482,51.0643],[-60.03309,50.24277],[-61.72366,50.08046],[-63.86251,50.29099],[-65.36331,50.2982],[-66.39905,50.22897],[-67.23631,49.51156],[-68.51114,49.06836],[-69.95362,47.74488],[-71.10458,46.82171],[-70.25522,46.98606],[-68.65,48.3],[-66.55243,49.1331],[-65.05626,49.23278],[-64.17099,48.74248],[-65.11545,48.07085],[-64.79854,46.99297],[-64.47219,46.23849],[-63.17329,45.73902],[-61.52072,45.88377],[-60.51815,47.00793],[-60.4486,46.28264],[-59.80287,45.9204],[-61.03988,45.26525],[-63.25471,44.67014],[-64.24656,44.26553],[-65.36406,43.54523],[-66.1234,43.61867],[-66.16173,44.46512],[-64.42549,45.29204],[-66.02605,45.25931],[-67.13741,45.13753],[-67.79134,45.70281],[-67.79046,47.06636],[-68.23444,47.35486]]],[[[-114.16717,73.12145],[-114.66634,72.65277],[-112.44102,72.9554],[-111.05039,72.4504],[-109.92035,72.96113],[-109.00654,72.63335],[-108.18835,71.65089],[-107.68599,72.06548],[-108.39639,73.08953],[-107.51645,73.23598],[-106.52259,73.07601],[-105.40246,72.67259],[-104.77484,71.6984],[-104.46476,70.99297],[-102.78537,70.49776],[-100.98078,70.02432],[-101.08929,69.58447],[-102.73116,69.50402],[-102.09329,69.11962],[-102.43024,68.75282],[-104.24,68.91],[-105.96,69.18],[-107.12254,69.11922],[-109,68.78],[-111.534149,68.630059],[-113.3132,68.53554],[-113.85496,69.00744],[-115.22,69.28],[-116.10794,69.16821],[-117.34,69.96],[-116.67473,70.06655],[-115.13112,70.2373],[-113.72141,70.19237],[-112.4161,70.36638],[-114.35,70.6],[-116.48684,70.52045],[-117.9048,70.54056],[-118.43238,70.9092],[-116.11311,71.30918],[-117.65568,71.2952],[-119.40199,71.55859],[-118.56267,72.30785],[-117.86642,72.70594],[-115.18909,73.31459],[-114.16717,73.12145]]],[[[-104.5,73.42],[-105.38,72.76],[-106.94,73.46],[-106.6,73.6],[-105.26,73.64],[-104.5,73.42]]],[[[-76.34,73.102685],[-76.251404,72.826385],[-77.314438,72.855545],[-78.39167,72.876656],[-79.486252,72.742203],[-79.775833,72.802902],[-80.876099,73.333183],[-80.833885,73.693184],[-80.353058,73.75972],[-78.064438,73.651932],[-76.34,73.102685]]],[[[-86.562179,73.157447],[-85.774371,72.534126],[-84.850112,73.340278],[-82.31559,73.750951],[-80.600088,72.716544],[-80.748942,72.061907],[-78.770639,72.352173],[-77.824624,72.749617],[-75.605845,72.243678],[-74.228616,71.767144],[-74.099141,71.33084],[-72.242226,71.556925],[-71.200015,70.920013],[-68.786054,70.525024],[-67.91497,70.121948],[-66.969033,69.186087],[-68.805123,68.720198],[-66.449866,68.067163],[-64.862314,67.847539],[-63.424934,66.928473],[-61.851981,66.862121],[-62.163177,66.160251],[-63.918444,64.998669],[-65.14886,65.426033],[-66.721219,66.388041],[-68.015016,66.262726],[-68.141287,65.689789],[-67.089646,65.108455],[-65.73208,64.648406],[-65.320168,64.382737],[-64.669406,63.392927],[-65.013804,62.674185],[-66.275045,62.945099],[-68.783186,63.74567],[-67.369681,62.883966],[-66.328297,62.280075],[-66.165568,61.930897],[-68.877367,62.330149],[-71.023437,62.910708],[-72.235379,63.397836],[-71.886278,63.679989],[-73.378306,64.193963],[-74.834419,64.679076],[-74.818503,64.389093],[-77.70998,64.229542],[-78.555949,64.572906],[-77.897281,65.309192],[-76.018274,65.326969],[-73.959795,65.454765],[-74.293883,65.811771],[-73.944912,66.310578],[-72.651167,67.284576],[-72.92606,67.726926],[-73.311618,68.069437],[-74.843307,68.554627],[-76.869101,68.894736],[-76.228649,69.147769],[-77.28737,69.76954],[-78.168634,69.826488],[-78.957242,70.16688],[-79.492455,69.871808],[-81.305471,69.743185],[-84.944706,69.966634],[-87.060003,70.260001],[-88.681713,70.410741],[-89.51342,70.762038],[-88.467721,71.218186],[-89.888151,71.222552],[-90.20516,72.235074],[-89.436577,73.129464],[-88.408242,73.537889],[-85.826151,73.803816],[-86.562179,73.157447]]],[[[-100.35642,73.84389],[-99.16387,73.63339],[-97.38,73.76],[-97.12,73.47],[-98.05359,72.99052],[-96.54,72.56],[-96.72,71.66],[-98.35966,71.27285],[-99.32286,71.35639],[-100.01482,71.73827],[-102.5,72.51],[-102.48,72.83],[-100.43836,72.70588],[-101.54,73.36],[-100.35642,73.84389]]],[[[-93.196296,72.771992],[-94.269047,72.024596],[-95.409856,72.061881],[-96.033745,72.940277],[-96.018268,73.43743],[-95.495793,73.862417],[-94.503658,74.134907],[-92.420012,74.100025],[-90.509793,73.856732],[-92.003965,72.966244],[-93.196296,72.771992]]],[[[-120.46,71.383602],[-123.09219,70.90164],[-123.62,71.34],[-125.928949,71.868688],[-125.5,72.292261],[-124.80729,73.02256],[-123.94,73.68],[-124.91775,74.29275],[-121.53788,74.44893],[-120.10978,74.24135],[-117.55564,74.18577],[-116.58442,73.89607],[-115.51081,73.47519],[-116.76794,73.22292],[-119.22,72.52],[-120.46,71.82],[-120.46,71.383602]]],[[[-93.612756,74.979997],[-94.156909,74.592347],[-95.608681,74.666864],[-96.820932,74.927623],[-96.288587,75.377828],[-94.85082,75.647218],[-93.977747,75.29649],[-93.612756,74.979997]]],[[[-98.5,76.72],[-97.735585,76.25656],[-97.704415,75.74344],[-98.16,75],[-99.80874,74.89744],[-100.88366,75.05736],[-100.86292,75.64075],[-102.50209,75.5638],[-102.56552,76.3366],[-101.48973,76.30537],[-99.98349,76.64634],[-98.57699,76.58859],[-98.5,76.72]]],[[[-108.21141,76.20168],[-107.81943,75.84552],[-106.92893,76.01282],[-105.881,75.9694],[-105.70498,75.47951],[-106.31347,75.00527],[-109.7,74.85],[-112.22307,74.41696],[-113.74381,74.39427],[-113.87135,74.72029],[-111.79421,75.1625],[-116.31221,75.04343],[-117.7104,75.2222],[-116.34602,76.19903],[-115.40487,76.47887],[-112.59056,76.14134],[-110.81422,75.54919],[-109.0671,75.47321],[-110.49726,76.42982],[-109.5811,76.79417],[-108.54859,76.67832],[-108.21141,76.20168]]],[[[-94.684086,77.097878],[-93.573921,76.776296],[-91.605023,76.778518],[-90.741846,76.449597],[-90.969661,76.074013],[-89.822238,75.847774],[-89.187083,75.610166],[-87.838276,75.566189],[-86.379192,75.482421],[-84.789625,75.699204],[-82.753445,75.784315],[-81.128531,75.713983],[-80.057511,75.336849],[-79.833933,74.923127],[-80.457771,74.657304],[-81.948843,74.442459],[-83.228894,74.564028],[-86.097452,74.410032],[-88.15035,74.392307],[-89.764722,74.515555],[-92.422441,74.837758],[-92.768285,75.38682],[-92.889906,75.882655],[-93.893824,76.319244],[-95.962457,76.441381],[-97.121379,76.751078],[-96.745123,77.161389],[-94.684086,77.097878]]],[[[-116.198587,77.645287],[-116.335813,76.876962],[-117.106051,76.530032],[-118.040412,76.481172],[-119.899318,76.053213],[-121.499995,75.900019],[-122.854924,76.116543],[-122.854925,76.116543],[-121.157535,76.864508],[-119.103939,77.51222],[-117.570131,77.498319],[-116.198587,77.645287]]],[[[-93.840003,77.519997],[-94.295608,77.491343],[-96.169654,77.555111],[-96.436304,77.834629],[-94.422577,77.820005],[-93.720656,77.634331],[-93.840003,77.519997]]],[[[-110.186938,77.697015],[-112.051191,77.409229],[-113.534279,77.732207],[-112.724587,78.05105],[-111.264443,78.152956],[-109.854452,77.996325],[-110.186938,77.697015]]],[[[-109.663146,78.601973],[-110.881314,78.40692],[-112.542091,78.407902],[-112.525891,78.550555],[-111.50001,78.849994],[-110.963661,78.804441],[-109.663146,78.601973]]],[[[-95.830295,78.056941],[-97.309843,77.850597],[-98.124289,78.082857],[-98.552868,78.458105],[-98.631984,78.87193],[-97.337231,78.831984],[-96.754399,78.765813],[-95.559278,78.418315],[-95.830295,78.056941]]],[[[-100.060192,78.324754],[-99.670939,77.907545],[-101.30394,78.018985],[-102.949809,78.343229],[-105.176133,78.380332],[-104.210429,78.67742],[-105.41958,78.918336],[-105.492289,79.301594],[-103.529282,79.165349],[-100.825158,78.800462],[-100.060192,78.324754]]],[[[-87.02,79.66],[-85.81435,79.3369],[-87.18756,79.0393],[-89.03535,78.28723],[-90.80436,78.21533],[-92.87669,78.34333],[-93.95116,78.75099],[-93.93574,79.11373],[-93.14524,79.3801],[-94.974,79.37248],[-96.07614,79.70502],[-96.70972,80.15777],[-96.01644,80.60233],[-95.32345,80.90729],[-94.29843,80.97727],[-94.73542,81.20646],[-92.40984,81.25739],[-91.13289,80.72345],[-89.45,80.509322],[-87.81,80.32],[-87.02,79.66]]],[[[-68.5,83.106322],[-65.82735,83.02801],[-63.68,82.9],[-61.85,82.6286],[-61.89388,82.36165],[-64.334,81.92775],[-66.75342,81.72527],[-67.65755,81.50141],[-65.48031,81.50657],[-67.84,80.9],[-69.4697,80.61683],[-71.18,79.8],[-73.2428,79.63415],[-73.88,79.430162],[-76.90773,79.32309],[-75.52924,79.19766],[-76.22046,79.01907],[-75.39345,78.52581],[-76.34354,78.18296],[-77.88851,77.89991],[-78.36269,77.50859],[-79.75951,77.20968],[-79.61965,76.98336],[-77.91089,77.022045],[-77.88911,76.777955],[-80.56125,76.17812],[-83.17439,76.45403],[-86.11184,76.29901],[-87.6,76.42],[-89.49068,76.47239],[-89.6161,76.95213],[-87.76739,77.17833],[-88.26,77.9],[-87.65,77.970222],[-84.97634,77.53873],[-86.34,78.18],[-87.96192,78.37181],[-87.15198,78.75867],[-85.37868,78.9969],[-85.09495,79.34543],[-86.50734,79.73624],[-86.93179,80.25145],[-84.19844,80.20836],[-83.408696,80.1],[-81.84823,80.46442],[-84.1,80.58],[-87.59895,80.51627],[-89.36663,80.85569],[-90.2,81.26],[-91.36786,81.5531],[-91.58702,81.89429],[-90.1,82.085],[-88.93227,82.11751],[-86.97024,82.27961],[-85.5,82.652273],[-84.260005,82.6],[-83.18,82.32],[-82.42,82.86],[-81.1,83.02],[-79.30664,83.13056],[-76.25,83.172059],[-75.71878,83.06404],[-72.83153,83.23324],[-70.665765,83.169781],[-68.5,83.106322]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Switzerland","SOV_A3":"CHE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Switzerland","ADM0_A3":"CHE","GEOU_DIF":0,"GEOUNIT":"Switzerland","GU_A3":"CHE","SU_DIF":0,"SUBUNIT":"Switzerland","SU_A3":"CHE","BRK_DIFF":0,"NAME":"Switzerland","NAME_LONG":"Switzerland","BRK_A3":"CHE","BRK_NAME":"Switzerland","BRK_GROUP":null,"ABBREV":"Switz.","POSTAL":"CH","FORMAL_EN":"Swiss Confederation","FORMAL_FR":null,"NAME_CIAWF":"Switzerland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Switzerland","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":2,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":8236303,"POP_RANK":13,"GDP_MD_EST":496300,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"SZ","ISO_A2":"CH","ISO_A3":"CHE","ISO_A3_EH":"CHE","ISO_N3":"756","UN_A3":"756","WB_A2":"CH","WB_A3":"CHE","WOE_ID":23424957,"WOE_ID_EH":23424957,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CHE","ADM0_A3_US":"CHE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[6.022609,45.776948,10.442701,47.830828],"geometry":{"type":"Polygon","coordinates":[[[9.594226,47.525058],[9.632932,47.347601],[9.47997,47.10281],[9.932448,46.920728],[10.442701,46.893546],[10.363378,46.483571],[9.922837,46.314899],[9.182882,46.440215],[8.966306,46.036932],[8.489952,46.005151],[8.31663,46.163642],[7.755992,45.82449],[7.273851,45.776948],[6.843593,45.991147],[6.5001,46.429673],[6.022609,46.27299],[6.037389,46.725779],[6.768714,47.287708],[6.736571,47.541801],[7.192202,47.449766],[7.466759,47.620582],[8.317301,47.61358],[8.522612,47.830828],[9.594226,47.525058]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Chile","SOV_A3":"CHL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Chile","ADM0_A3":"CHL","GEOU_DIF":0,"GEOUNIT":"Chile","GU_A3":"CHL","SU_DIF":0,"SUBUNIT":"Chile","SU_A3":"CHL","BRK_DIFF":0,"NAME":"Chile","NAME_LONG":"Chile","BRK_A3":"CHL","BRK_NAME":"Chile","BRK_GROUP":null,"ABBREV":"Chile","POSTAL":"CL","FORMAL_EN":"Republic of Chile","FORMAL_FR":null,"NAME_CIAWF":"Chile","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Chile","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":1,"MAPCOLOR9":5,"MAPCOLOR13":9,"POP_EST":17789267,"POP_RANK":14,"GDP_MD_EST":436100,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"CI","ISO_A2":"CL","ISO_A3":"CHL","ISO_A3_EH":"CHL","ISO_N3":"152","UN_A3":"152","WB_A2":"CL","WB_A3":"CHL","WOE_ID":23424782,"WOE_ID_EH":23424782,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CHL","ADM0_A3_US":"CHL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[-75.644395,-55.61183,-66.95992,-17.580012],"geometry":{"type":"MultiPolygon","coordinates":[[[[-68.63401,-52.63637],[-68.63335,-54.8695],[-67.56244,-54.87001],[-66.95992,-54.89681],[-67.29103,-55.30124],[-68.14863,-55.61183],[-68.639991,-55.580018],[-69.2321,-55.49906],[-69.95809,-55.19843],[-71.00568,-55.05383],[-72.2639,-54.49514],[-73.2852,-53.95752],[-74.66253,-52.83749],[-73.8381,-53.04743],[-72.43418,-53.7154],[-71.10773,-54.07433],[-70.59178,-53.61583],[-70.26748,-52.93123],[-69.34565,-52.5183],[-68.63401,-52.63637]]],[[[-67.106674,-22.735925],[-66.985234,-22.986349],[-67.328443,-24.025303],[-68.417653,-24.518555],[-68.386001,-26.185016],[-68.5948,-26.506909],[-68.295542,-26.89934],[-69.001235,-27.521214],[-69.65613,-28.459141],[-70.01355,-29.367923],[-69.919008,-30.336339],[-70.535069,-31.36501],[-70.074399,-33.09121],[-69.814777,-33.273886],[-69.817309,-34.193571],[-70.388049,-35.169688],[-70.364769,-36.005089],[-71.121881,-36.658124],[-71.118625,-37.576827],[-70.814664,-38.552995],[-71.413517,-38.916022],[-71.680761,-39.808164],[-71.915734,-40.832339],[-71.746804,-42.051386],[-72.148898,-42.254888],[-71.915424,-43.408565],[-71.464056,-43.787611],[-71.793623,-44.207172],[-71.329801,-44.407522],[-71.222779,-44.784243],[-71.659316,-44.973689],[-71.552009,-45.560733],[-71.917258,-46.884838],[-72.447355,-47.738533],[-72.331161,-48.244238],[-72.648247,-48.878618],[-73.415436,-49.318436],[-73.328051,-50.378785],[-72.975747,-50.74145],[-72.309974,-50.67701],[-72.329404,-51.425956],[-71.914804,-52.009022],[-69.498362,-52.142761],[-68.571545,-52.299444],[-69.461284,-52.291951],[-69.94278,-52.537931],[-70.845102,-52.899201],[-71.006332,-53.833252],[-71.429795,-53.856455],[-72.557943,-53.53141],[-73.702757,-52.835069],[-73.702757,-52.83507],[-74.946763,-52.262754],[-75.260026,-51.629355],[-74.976632,-51.043396],[-75.479754,-50.378372],[-75.608015,-48.673773],[-75.18277,-47.711919],[-74.126581,-46.939253],[-75.644395,-46.647643],[-74.692154,-45.763976],[-74.351709,-44.103044],[-73.240356,-44.454961],[-72.717804,-42.383356],[-73.3889,-42.117532],[-73.701336,-43.365776],[-74.331943,-43.224958],[-74.017957,-41.794813],[-73.677099,-39.942213],[-73.217593,-39.258689],[-73.505559,-38.282883],[-73.588061,-37.156285],[-73.166717,-37.12378],[-72.553137,-35.50884],[-71.861732,-33.909093],[-71.43845,-32.418899],[-71.668721,-30.920645],[-71.370083,-30.095682],[-71.489894,-28.861442],[-70.905124,-27.64038],[-70.724954,-25.705924],[-70.403966,-23.628997],[-70.091246,-21.393319],[-70.16442,-19.756468],[-70.372572,-18.347975],[-69.858444,-18.092694],[-69.590424,-17.580012],[-69.100247,-18.260125],[-68.966818,-18.981683],[-68.442225,-19.405068],[-68.757167,-20.372658],[-68.219913,-21.494347],[-67.82818,-22.872919],[-67.106674,-22.735925]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"China","SOV_A3":"CH1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"China","ADM0_A3":"CHN","GEOU_DIF":0,"GEOUNIT":"China","GU_A3":"CHN","SU_DIF":0,"SUBUNIT":"China","SU_A3":"CHN","BRK_DIFF":0,"NAME":"China","NAME_LONG":"China","BRK_A3":"CHN","BRK_NAME":"China","BRK_GROUP":null,"ABBREV":"China","POSTAL":"CN","FORMAL_EN":"People\'s Republic of China","FORMAL_FR":null,"NAME_CIAWF":"China","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"China","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":3,"POP_EST":1379302771,"POP_RANK":18,"GDP_MD_EST":21140000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"3. Emerging region:BRIC","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"CH","ISO_A2":"CN","ISO_A3":"CHN","ISO_A3_EH":"CHN","ISO_N3":"156","UN_A3":"156","WB_A2":"CN","WB_A3":"CHN","WOE_ID":23424781,"WOE_ID_EH":23424781,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CHN","ADM0_A3_US":"CHN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.7},"bbox":[73.675379,18.197701,135.026311,53.4588],"geometry":{"type":"MultiPolygon","coordinates":[[[[75.158028,37.133031],[74.980002,37.41999],[74.829986,37.990007],[74.864816,38.378846],[74.257514,38.606507],[73.928852,38.505815],[73.675379,39.431237],[73.960013,39.660008],[73.822244,39.893973],[74.776862,40.366425],[75.467828,40.562072],[76.526368,40.427946],[76.904484,41.066486],[78.187197,41.185316],[78.543661,41.582243],[80.11943,42.123941],[80.25999,42.349999],[80.18015,42.920068],[80.866206,43.180362],[79.966106,44.917517],[81.947071,45.317027],[82.458926,45.53965],[83.180484,47.330031],[85.16429,47.000956],[85.720484,47.452969],[85.768233,48.455751],[86.598776,48.549182],[87.35997,49.214981],[87.751264,49.297198],[88.013832,48.599463],[88.854298,48.069082],[90.280826,47.693549],[90.970809,46.888146],[90.585768,45.719716],[90.94554,45.286073],[92.133891,45.115076],[93.480734,44.975472],[94.688929,44.352332],[95.306875,44.241331],[95.762455,43.319449],[96.349396,42.725635],[97.451757,42.74889],[99.515817,42.524691],[100.845866,42.663804],[101.83304,42.514873],[103.312278,41.907468],[104.522282,41.908347],[104.964994,41.59741],[106.129316,42.134328],[107.744773,42.481516],[109.243596,42.519446],[110.412103,42.871234],[111.129682,43.406834],[111.829588,43.743118],[111.667737,44.073176],[111.348377,44.457442],[111.873306,45.102079],[112.436062,45.011646],[113.463907,44.808893],[114.460332,45.339817],[115.985096,45.727235],[116.717868,46.388202],[117.421701,46.672733],[118.874326,46.805412],[119.66327,46.69268],[119.772824,47.048059],[118.866574,47.74706],[118.064143,48.06673],[117.295507,47.697709],[116.308953,47.85341],[115.742837,47.726545],[115.485282,48.135383],[116.191802,49.134598],[116.678801,49.888531],[117.879244,49.510983],[119.288461,50.142883],[119.27939,50.58292],[120.18208,51.64355],[120.7382,51.96411],[120.725789,52.516226],[120.177089,52.753886],[121.003085,53.251401],[122.245748,53.431726],[123.57147,53.4588],[125.068211,53.161045],[125.946349,52.792799],[126.564399,51.784255],[126.939157,51.353894],[127.287456,50.739797],[127.6574,49.76027],[129.397818,49.4406],[130.582293,48.729687],[130.98726,47.79013],[132.50669,47.78896],[133.373596,48.183442],[135.026311,48.47823],[134.50081,47.57845],[134.11235,47.21248],[133.769644,46.116927],[133.09712,45.14409],[131.883454,45.321162],[131.02519,44.96796],[131.288555,44.11152],[131.144688,42.92999],[130.633866,42.903015],[130.64,42.395024],[129.994267,42.985387],[129.596669,42.424982],[128.052215,41.994285],[128.208433,41.466772],[127.343783,41.503152],[126.869083,41.816569],[126.182045,41.107336],[125.079942,40.569824],[124.265625,39.928493],[122.86757,39.637788],[122.131388,39.170452],[121.054554,38.897471],[121.585995,39.360854],[121.376757,39.750261],[122.168595,40.422443],[121.640359,40.94639],[120.768629,40.593388],[119.639602,39.898056],[119.023464,39.252333],[118.042749,39.204274],[117.532702,38.737636],[118.059699,38.061476],[118.87815,37.897325],[118.911636,37.448464],[119.702802,37.156389],[120.823457,37.870428],[121.711259,37.481123],[122.357937,37.454484],[122.519995,36.930614],[121.104164,36.651329],[120.637009,36.11144],[119.664562,35.609791],[119.151208,34.909859],[120.227525,34.360332],[120.620369,33.376723],[121.229014,32.460319],[121.908146,31.692174],[121.891919,30.949352],[121.264257,30.676267],[121.503519,30.142915],[122.092114,29.83252],[121.938428,29.018022],[121.684439,28.225513],[121.125661,28.135673],[120.395473,27.053207],[119.585497,25.740781],[118.656871,24.547391],[117.281606,23.624501],[115.890735,22.782873],[114.763827,22.668074],[114.152547,22.22376],[113.80678,22.54834],[113.241078,22.051367],[111.843592,21.550494],[110.785466,21.397144],[110.444039,20.341033],[109.889861,20.282457],[109.627655,21.008227],[109.864488,21.395051],[108.522813,21.715212],[108.05018,21.55238],[107.04342,21.811899],[106.567273,22.218205],[106.725403,22.794268],[105.811247,22.976892],[105.329209,23.352063],[104.476858,22.81915],[103.504515,22.703757],[102.706992,22.708795],[102.170436,22.464753],[101.652018,22.318199],[101.80312,21.174367],[101.270026,21.201652],[101.180005,21.436573],[101.150033,21.849984],[100.416538,21.558839],[99.983489,21.742937],[99.240899,22.118314],[99.531992,22.949039],[98.898749,23.142722],[98.660262,24.063286],[97.60472,23.897405],[97.724609,25.083637],[98.671838,25.918703],[98.712094,26.743536],[98.68269,27.508812],[98.246231,27.747221],[97.911988,28.335945],[97.327114,28.261583],[96.248833,28.411031],[96.586591,28.83098],[96.117679,29.452802],[95.404802,29.031717],[94.56599,29.277438],[93.413348,28.640629],[92.503119,27.896876],[91.696657,27.771742],[91.258854,28.040614],[90.730514,28.064954],[90.015829,28.296439],[89.47581,28.042759],[88.814248,27.299316],[88.730326,28.086865],[88.120441,27.876542],[86.954517,27.974262],[85.82332,28.203576],[85.011638,28.642774],[84.23458,28.839894],[83.898993,29.320226],[83.337115,29.463732],[82.327513,30.115268],[81.525804,30.422717],[81.111256,30.183481],[79.721367,30.882715],[78.738894,31.515906],[78.458446,32.618164],[79.176129,32.48378],[79.208892,32.994395],[78.811086,33.506198],[78.912269,34.321936],[77.837451,35.49401],[76.192848,35.898403],[75.896897,36.666806],[75.158028,37.133031]]],[[[110.339188,18.678395],[109.47521,18.197701],[108.655208,18.507682],[108.626217,19.367888],[109.119056,19.821039],[110.211599,20.101254],[110.786551,20.077534],[111.010051,19.69593],[110.570647,19.255879],[110.339188,18.678395]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Ivory Coast","SOV_A3":"CIV","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ivory Coast","ADM0_A3":"CIV","GEOU_DIF":0,"GEOUNIT":"Ivory Coast","GU_A3":"CIV","SU_DIF":0,"SUBUNIT":"Ivory Coast","SU_A3":"CIV","BRK_DIFF":0,"NAME":"C\xf4te d\'Ivoire","NAME_LONG":"C\xf4te d\'Ivoire","BRK_A3":"CIV","BRK_NAME":"C\xf4te d\'Ivoire","BRK_GROUP":null,"ABBREV":"I.C.","POSTAL":"CI","FORMAL_EN":"Republic of Ivory Coast","FORMAL_FR":"Republic of Cote D\'Ivoire","NAME_CIAWF":"Cote D\'ivoire","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"C\xf4te d\'Ivoire","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":6,"MAPCOLOR9":3,"MAPCOLOR13":3,"POP_EST":24184810,"POP_RANK":15,"GDP_MD_EST":87120,"POP_YEAR":2017,"LASTCENSUS":1998,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"IV","ISO_A2":"CI","ISO_A3":"CIV","ISO_A3_EH":"CIV","ISO_N3":"384","UN_A3":"384","WB_A2":"CI","WB_A3":"CIV","WOE_ID":23424854,"WOE_ID_EH":23424854,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CIV","ADM0_A3_US":"CIV","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":13,"LONG_LEN":13,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-8.60288,4.338288,-2.56219,10.524061],"geometry":{"type":"Polygon","coordinates":[[[-5.404342,10.370737],[-4.954653,10.152714],[-4.779884,9.821985],[-4.330247,9.610835],[-3.980449,9.862344],[-3.511899,9.900326],[-2.827496,9.642461],[-2.56219,8.219628],[-2.983585,7.379705],[-3.24437,6.250472],[-2.810701,5.389051],[-2.856125,4.994476],[-3.311084,4.984296],[-4.00882,5.179813],[-4.649917,5.168264],[-5.834496,4.993701],[-6.528769,4.705088],[-7.518941,4.338288],[-7.712159,4.364566],[-7.635368,5.188159],[-7.539715,5.313345],[-7.570153,5.707352],[-7.993693,6.12619],[-8.311348,6.193033],[-8.60288,6.467564],[-8.385452,6.911801],[-8.485446,7.395208],[-8.439298,7.686043],[-8.280703,7.68718],[-8.221792,8.123329],[-8.299049,8.316444],[-8.203499,8.455453],[-7.8321,8.575704],[-8.079114,9.376224],[-8.309616,9.789532],[-8.229337,10.12902],[-8.029944,10.206535],[-7.89959,10.297382],[-7.622759,10.147236],[-6.850507,10.138994],[-6.666461,10.430811],[-6.493965,10.411303],[-6.205223,10.524061],[-6.050452,10.096361],[-5.816926,10.222555],[-5.404342,10.370737]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Cameroon","SOV_A3":"CMR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Cameroon","ADM0_A3":"CMR","GEOU_DIF":0,"GEOUNIT":"Cameroon","GU_A3":"CMR","SU_DIF":0,"SUBUNIT":"Cameroon","SU_A3":"CMR","BRK_DIFF":0,"NAME":"Cameroon","NAME_LONG":"Cameroon","BRK_A3":"CMR","BRK_NAME":"Cameroon","BRK_GROUP":null,"ABBREV":"Cam.","POSTAL":"CM","FORMAL_EN":"Republic of Cameroon","FORMAL_FR":null,"NAME_CIAWF":"Cameroon","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Cameroon","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":3,"POP_EST":24994885,"POP_RANK":15,"GDP_MD_EST":77240,"POP_YEAR":2017,"LASTCENSUS":2005,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"CM","ISO_A2":"CM","ISO_A3":"CMR","ISO_A3_EH":"CMR","ISO_N3":"120","UN_A3":"120","WB_A2":"CM","WB_A3":"CMR","WOE_ID":23424785,"WOE_ID_EH":23424785,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CMR","ADM0_A3_US":"CMR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[8.488816,1.727673,16.012852,12.859396],"geometry":{"type":"Polygon","coordinates":[[[15.27946,7.421925],[14.776545,6.408498],[14.53656,6.226959],[14.459407,5.451761],[14.558936,5.030598],[14.478372,4.732605],[14.950953,4.210389],[15.03622,3.851367],[15.405396,3.335301],[15.862732,3.013537],[15.907381,2.557389],[16.012852,2.26764],[15.940919,1.727673],[15.146342,1.964015],[14.337813,2.227875],[13.075822,2.267097],[12.951334,2.321616],[12.35938,2.192812],[11.751665,2.326758],[11.276449,2.261051],[9.649158,2.283866],[9.795196,3.073404],[9.404367,3.734527],[8.948116,3.904129],[8.744924,4.352215],[8.488816,4.495617],[8.500288,4.771983],[8.757533,5.479666],[9.233163,6.444491],[9.522706,6.453482],[10.118277,7.03877],[10.497375,7.055358],[11.058788,6.644427],[11.745774,6.981383],[11.839309,7.397042],[12.063946,7.799808],[12.218872,8.305824],[12.753672,8.717763],[12.955468,9.417772],[13.1676,9.640626],[13.308676,10.160362],[13.57295,10.798566],[14.415379,11.572369],[14.468192,11.904752],[14.577178,12.085361],[14.181336,12.483657],[14.213531,12.802035],[14.495787,12.859396],[14.89336,12.21905],[14.960152,11.555574],[14.923565,10.891325],[15.467873,9.982337],[14.909354,9.992129],[14.627201,9.920919],[14.171466,10.021378],[13.954218,9.549495],[14.544467,8.965861],[14.979996,8.796104],[15.120866,8.38215],[15.436092,7.692812],[15.27946,7.421925]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Democratic Republic of the Congo","SOV_A3":"COD","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Democratic Republic of the Congo","ADM0_A3":"COD","GEOU_DIF":0,"GEOUNIT":"Democratic Republic of the Congo","GU_A3":"COD","SU_DIF":0,"SUBUNIT":"Democratic Republic of the Congo","SU_A3":"COD","BRK_DIFF":0,"NAME":"Dem. Rep. Congo","NAME_LONG":"Democratic Republic of the Congo","BRK_A3":"COD","BRK_NAME":"Democratic Republic of the Congo","BRK_GROUP":null,"ABBREV":"D.R.C.","POSTAL":"DRC","FORMAL_EN":"Democratic Republic of the Congo","FORMAL_FR":null,"NAME_CIAWF":"Congo, Democratic Republic of the","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Congo, Dem. Rep.","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":7,"POP_EST":83301151,"POP_RANK":16,"GDP_MD_EST":66010,"POP_YEAR":2017,"LASTCENSUS":1984,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"CG","ISO_A2":"CD","ISO_A3":"COD","ISO_A3_EH":"COD","ISO_N3":"180","UN_A3":"180","WB_A2":"ZR","WB_A3":"ZAR","WOE_ID":23424780,"WOE_ID_EH":23424780,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"COD","ADM0_A3_US":"COD","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":15,"LONG_LEN":32,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[12.182337,-13.257227,31.174149,5.256088],"geometry":{"type":"Polygon","coordinates":[[[23.912215,-10.926826],[23.456791,-10.867863],[22.837345,-11.017622],[22.402798,-10.993075],[22.155268,-11.084801],[22.208753,-9.894796],[21.875182,-9.523708],[21.801801,-8.908707],[21.949131,-8.305901],[21.746456,-7.920085],[21.728111,-7.290872],[20.514748,-7.299606],[20.601823,-6.939318],[20.091622,-6.94309],[20.037723,-7.116361],[19.417502,-7.155429],[19.166613,-7.738184],[19.016752,-7.988246],[18.464176,-7.847014],[18.134222,-7.987678],[17.47297,-8.068551],[17.089996,-7.545689],[16.860191,-7.222298],[16.57318,-6.622645],[16.326528,-5.87747],[13.375597,-5.864241],[13.024869,-5.984389],[12.735171,-5.965682],[12.322432,-6.100092],[12.182337,-5.789931],[12.436688,-5.684304],[12.468004,-5.248362],[12.631612,-4.991271],[12.995517,-4.781103],[13.25824,-4.882957],[13.600235,-4.500138],[14.144956,-4.510009],[14.209035,-4.793092],[14.582604,-4.970239],[15.170992,-4.343507],[15.75354,-3.855165],[16.00629,-3.535133],[15.972803,-2.712392],[16.407092,-1.740927],[16.865307,-1.225816],[17.523716,-0.74383],[17.638645,-0.424832],[17.663553,-0.058084],[17.82654,0.288923],[17.774192,0.855659],[17.898835,1.741832],[18.094276,2.365722],[18.393792,2.900443],[18.453065,3.504386],[18.542982,4.201785],[18.932312,4.709506],[19.467784,5.031528],[20.290679,4.691678],[20.927591,4.322786],[21.659123,4.224342],[22.405124,4.02916],[22.704124,4.633051],[22.84148,4.710126],[23.297214,4.609693],[24.410531,5.108784],[24.805029,4.897247],[25.128833,4.927245],[25.278798,5.170408],[25.650455,5.256088],[26.402761,5.150875],[27.044065,5.127853],[27.374226,5.233944],[27.979977,4.408413],[28.428994,4.287155],[28.696678,4.455077],[29.159078,4.389267],[29.715995,4.600805],[29.9535,4.173699],[30.833852,3.509172],[30.83386,3.509166],[30.773347,2.339883],[31.174149,2.204465],[30.85267,1.849396],[30.468508,1.583805],[30.086154,1.062313],[29.875779,0.59738],[29.819503,-0.20531],[29.587838,-0.587406],[29.579466,-1.341313],[29.291887,-1.620056],[29.254835,-2.21511],[29.117479,-2.292211],[29.024926,-2.839258],[29.276384,-3.293907],[29.339998,-4.499983],[29.519987,-5.419979],[29.419993,-5.939999],[29.620032,-6.520015],[30.199997,-7.079981],[30.740015,-8.340007],[30.74001,-8.340006],[30.346086,-8.238257],[29.002912,-8.407032],[28.734867,-8.526559],[28.449871,-9.164918],[28.673682,-9.605925],[28.49607,-10.789884],[28.372253,-11.793647],[28.642417,-11.971569],[29.341548,-12.360744],[29.616001,-12.178895],[29.699614,-13.257227],[28.934286,-13.248958],[28.523562,-12.698604],[28.155109,-12.272481],[27.388799,-12.132747],[27.16442,-11.608748],[26.553088,-11.92444],[25.75231,-11.784965],[25.418118,-11.330936],[24.78317,-11.238694],[24.314516,-11.262826],[24.257155,-10.951993],[23.912215,-10.926826]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Republic of the Congo","SOV_A3":"COG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Republic of the Congo","ADM0_A3":"COG","GEOU_DIF":0,"GEOUNIT":"Republic of the Congo","GU_A3":"COG","SU_DIF":0,"SUBUNIT":"Republic of the Congo","SU_A3":"COG","BRK_DIFF":0,"NAME":"Congo","NAME_LONG":"Republic of the Congo","BRK_A3":"COG","BRK_NAME":"Republic of the Congo","BRK_GROUP":null,"ABBREV":"Rep. Congo","POSTAL":"CG","FORMAL_EN":"Republic of the Congo","FORMAL_FR":null,"NAME_CIAWF":"Congo, Republic of the","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Congo, Rep.","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":10,"POP_EST":4954674,"POP_RANK":12,"GDP_MD_EST":30270,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"CF","ISO_A2":"CG","ISO_A3":"COG","ISO_A3_EH":"COG","ISO_N3":"178","UN_A3":"178","WB_A2":"CG","WB_A3":"COG","WOE_ID":23424779,"WOE_ID_EH":23424779,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"COG","ADM0_A3_US":"COG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":21,"ABBREV_LEN":10,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[11.093773,-5.037987,18.453065,3.728197],"geometry":{"type":"Polygon","coordinates":[[[12.995517,-4.781103],[12.62076,-4.438023],[12.318608,-4.60623],[11.914963,-5.037987],[11.093773,-3.978827],[11.855122,-3.426871],[11.478039,-2.765619],[11.820964,-2.514161],[12.495703,-2.391688],[12.575284,-1.948511],[13.109619,-2.42874],[13.992407,-2.470805],[14.29921,-1.998276],[14.425456,-1.333407],[14.316418,-0.552627],[13.843321,0.038758],[14.276266,1.19693],[14.026669,1.395677],[13.282631,1.314184],[13.003114,1.830896],[13.075822,2.267097],[14.337813,2.227875],[15.146342,1.964015],[15.940919,1.727673],[16.012852,2.26764],[16.537058,3.198255],[17.133042,3.728197],[17.8099,3.560196],[18.453065,3.504386],[18.393792,2.900443],[18.094276,2.365722],[17.898835,1.741832],[17.774192,0.855659],[17.82654,0.288923],[17.663553,-0.058084],[17.638645,-0.424832],[17.523716,-0.74383],[16.865307,-1.225816],[16.407092,-1.740927],[15.972803,-2.712392],[16.00629,-3.535133],[15.75354,-3.855165],[15.170992,-4.343507],[14.582604,-4.970239],[14.209035,-4.793092],[14.144956,-4.510009],[13.600235,-4.500138],[13.25824,-4.882957],[12.995517,-4.781103]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Colombia","SOV_A3":"COL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Colombia","ADM0_A3":"COL","GEOU_DIF":0,"GEOUNIT":"Colombia","GU_A3":"COL","SU_DIF":0,"SUBUNIT":"Colombia","SU_A3":"COL","BRK_DIFF":0,"NAME":"Colombia","NAME_LONG":"Colombia","BRK_A3":"COL","BRK_NAME":"Colombia","BRK_GROUP":null,"ABBREV":"Col.","POSTAL":"CO","FORMAL_EN":"Republic of Colombia","FORMAL_FR":null,"NAME_CIAWF":"Colombia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Colombia","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":1,"POP_EST":47698524,"POP_RANK":15,"GDP_MD_EST":688000,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"CO","ISO_A2":"CO","ISO_A3":"COL","ISO_A3_EH":"COL","ISO_N3":"170","UN_A3":"170","WB_A2":"CO","WB_A3":"COL","WOE_ID":23424787,"WOE_ID_EH":23424787,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"COL","ADM0_A3_US":"COL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[-78.990935,-4.298187,-66.876326,12.437303],"geometry":{"type":"Polygon","coordinates":[[[-66.876326,1.253361],[-67.065048,1.130112],[-67.259998,1.719999],[-67.53781,2.037163],[-67.868565,1.692455],[-69.816973,1.714805],[-69.804597,1.089081],[-69.218638,0.985677],[-69.252434,0.602651],[-69.452396,0.706159],[-70.015566,0.541414],[-70.020656,-0.185156],[-69.577065,-0.549992],[-69.420486,-1.122619],[-69.444102,-1.556287],[-69.893635,-4.298187],[-70.394044,-3.766591],[-70.692682,-3.742872],[-70.047709,-2.725156],[-70.813476,-2.256865],[-71.413646,-2.342802],[-71.774761,-2.16979],[-72.325787,-2.434218],[-73.070392,-2.308954],[-73.659504,-1.260491],[-74.122395,-1.002833],[-74.441601,-0.53082],[-75.106625,-0.057205],[-75.373223,-0.152032],[-75.801466,0.084801],[-76.292314,0.416047],[-76.57638,0.256936],[-77.424984,0.395687],[-77.668613,0.825893],[-77.855061,0.809925],[-78.855259,1.380924],[-78.990935,1.69137],[-78.617831,1.766404],[-78.662118,2.267355],[-78.42761,2.629556],[-77.931543,2.696606],[-77.510431,3.325017],[-77.12769,3.849636],[-77.496272,4.087606],[-77.307601,4.667984],[-77.533221,5.582812],[-77.318815,5.845354],[-77.476661,6.691116],[-77.881571,7.223771],[-77.753414,7.70984],[-77.431108,7.638061],[-77.242566,7.935278],[-77.474723,8.524286],[-77.353361,8.670505],[-76.836674,8.638749],[-76.086384,9.336821],[-75.6746,9.443248],[-75.664704,9.774003],[-75.480426,10.61899],[-74.906895,11.083045],[-74.276753,11.102036],[-74.197223,11.310473],[-73.414764,11.227015],[-72.627835,11.731972],[-72.238195,11.95555],[-71.75409,12.437303],[-71.399822,12.376041],[-71.137461,12.112982],[-71.331584,11.776284],[-71.973922,11.608672],[-72.227575,11.108702],[-72.614658,10.821975],[-72.905286,10.450344],[-73.027604,9.73677],[-73.304952,9.152],[-72.78873,9.085027],[-72.660495,8.625288],[-72.439862,8.405275],[-72.360901,8.002638],[-72.479679,7.632506],[-72.444487,7.423785],[-72.198352,7.340431],[-71.960176,6.991615],[-70.674234,7.087785],[-70.093313,6.960376],[-69.38948,6.099861],[-68.985319,6.206805],[-68.265052,6.153268],[-67.695087,6.267318],[-67.34144,6.095468],[-67.521532,5.55687],[-67.744697,5.221129],[-67.823012,4.503937],[-67.621836,3.839482],[-67.337564,3.542342],[-67.303173,3.318454],[-67.809938,2.820655],[-67.447092,2.600281],[-67.181294,2.250638],[-66.876326,1.253361]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Costa Rica","SOV_A3":"CRI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Costa Rica","ADM0_A3":"CRI","GEOU_DIF":0,"GEOUNIT":"Costa Rica","GU_A3":"CRI","SU_DIF":0,"SUBUNIT":"Costa Rica","SU_A3":"CRI","BRK_DIFF":0,"NAME":"Costa Rica","NAME_LONG":"Costa Rica","BRK_A3":"CRI","BRK_NAME":"Costa Rica","BRK_GROUP":null,"ABBREV":"C.R.","POSTAL":"CR","FORMAL_EN":"Republic of Costa Rica","FORMAL_FR":null,"NAME_CIAWF":"Costa Rica","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Costa Rica","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":4,"MAPCOLOR13":2,"POP_EST":4930258,"POP_RANK":12,"GDP_MD_EST":79260,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"CS","ISO_A2":"CR","ISO_A3":"CRI","ISO_A3_EH":"CRI","ISO_N3":"188","UN_A3":"188","WB_A2":"CR","WB_A3":"CRI","WOE_ID":23424791,"WOE_ID_EH":23424791,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CRI","ADM0_A3_US":"CRI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-85.941725,8.225028,-82.546196,11.217119],"geometry":{"type":"Polygon","coordinates":[[[-82.965783,8.225028],[-83.508437,8.446927],[-83.711474,8.656836],[-83.596313,8.830443],[-83.632642,9.051386],[-83.909886,9.290803],[-84.303402,9.487354],[-84.647644,9.615537],[-84.713351,9.908052],[-84.97566,10.086723],[-84.911375,9.795992],[-85.110923,9.55704],[-85.339488,9.834542],[-85.660787,9.933347],[-85.797445,10.134886],[-85.791709,10.439337],[-85.659314,10.754331],[-85.941725,10.895278],[-85.71254,11.088445],[-85.561852,11.217119],[-84.903003,10.952303],[-84.673069,11.082657],[-84.355931,10.999226],[-84.190179,10.79345],[-83.895054,10.726839],[-83.655612,10.938764],[-83.40232,10.395438],[-83.015677,9.992982],[-82.546196,9.566135],[-82.932891,9.476812],[-82.927155,9.07433],[-82.719183,8.925709],[-82.868657,8.807266],[-82.829771,8.626295],[-82.913176,8.423517],[-82.965783,8.225028]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Cuba","SOV_A3":"CUB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Cuba","ADM0_A3":"CUB","GEOU_DIF":0,"GEOUNIT":"Cuba","GU_A3":"CUB","SU_DIF":0,"SUBUNIT":"Cuba","SU_A3":"CUB","BRK_DIFF":0,"NAME":"Cuba","NAME_LONG":"Cuba","BRK_A3":"CUB","BRK_NAME":"Cuba","BRK_GROUP":null,"ABBREV":"Cuba","POSTAL":"CU","FORMAL_EN":"Republic of Cuba","FORMAL_FR":null,"NAME_CIAWF":"Cuba","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Cuba","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":3,"MAPCOLOR13":4,"POP_EST":11147407,"POP_RANK":14,"GDP_MD_EST":132900,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"CU","ISO_A2":"CU","ISO_A3":"CUB","ISO_A3_EH":"CUB","ISO_N3":"192","UN_A3":"192","WB_A2":"CU","WB_A3":"CUB","WOE_ID":23424793,"WOE_ID_EH":23424793,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CUB","ADM0_A3_US":"CUB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-84.974911,19.855481,-74.178025,23.188611],"geometry":{"type":"Polygon","coordinates":[[[-82.268151,23.188611],[-81.404457,23.117271],[-80.618769,23.10598],[-79.679524,22.765303],[-79.281486,22.399202],[-78.347434,22.512166],[-77.993296,22.277194],[-77.146422,21.657851],[-76.523825,21.20682],[-76.19462,21.220565],[-75.598222,21.016624],[-75.67106,20.735091],[-74.933896,20.693905],[-74.178025,20.284628],[-74.296648,20.050379],[-74.961595,19.923435],[-75.63468,19.873774],[-76.323656,19.952891],[-77.755481,19.855481],[-77.085108,20.413354],[-77.492655,20.673105],[-78.137292,20.739949],[-78.482827,21.028613],[-78.719867,21.598114],[-79.285,21.559175],[-80.217475,21.827324],[-80.517535,22.037079],[-81.820943,22.192057],[-82.169992,22.387109],[-81.795002,22.636965],[-82.775898,22.68815],[-83.494459,22.168518],[-83.9088,22.154565],[-84.052151,21.910575],[-84.54703,21.801228],[-84.974911,21.896028],[-84.447062,22.20495],[-84.230357,22.565755],[-83.77824,22.788118],[-83.267548,22.983042],[-82.510436,23.078747],[-82.268151,23.188611]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Northern Cyprus","SOV_A3":"CYN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Northern Cyprus","ADM0_A3":"CYN","GEOU_DIF":0,"GEOUNIT":"Northern Cyprus","GU_A3":"CYN","SU_DIF":0,"SUBUNIT":"Northern Cyprus","SU_A3":"CYN","BRK_DIFF":1,"NAME":"N. Cyprus","NAME_LONG":"Northern Cyprus","BRK_A3":"B20","BRK_NAME":"N. Cyprus","BRK_GROUP":null,"ABBREV":"N. Cy.","POSTAL":"CN","FORMAL_EN":"Turkish Republic of Northern Cyprus","FORMAL_FR":null,"NAME_CIAWF":null,"NOTE_ADM0":"Self admin.","NOTE_BRK":"Self admin.; Claimed by Cyprus","NAME_SORT":"Cyprus, Northern","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":4,"MAPCOLOR13":8,"POP_EST":265100,"POP_RANK":10,"GDP_MD_EST":3600,"POP_YEAR":2013,"LASTCENSUS":-99,"GDP_YEAR":2013,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"CN","ISO_A3":"-99","ISO_A3_EH":"-99","ISO_N3":"-99","UN_A3":"-099","WB_A2":"CYN","WB_A3":"-99","WOE_ID":-90,"WOE_ID_EH":23424995,"WOE_NOTE":"WOE lists as subunit of united Cyprus","ADM0_A3_IS":"CYP","ADM0_A3_US":"CYP","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":9,"LONG_LEN":15,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":6,"MAX_LABEL":10},"bbox":[32.73178,35.000345,34.576474,35.671596],"geometry":{"type":"Polygon","coordinates":[[[32.73178,35.140026],[32.802474,35.145504],[32.946961,35.386703],[33.667227,35.373216],[34.576474,35.671596],[33.900804,35.245756],[33.973617,35.058506],[33.86644,35.093595],[33.675392,35.017863],[33.525685,35.038688],[33.475817,35.000345],[33.455922,35.101424],[33.383833,35.162712],[33.190977,35.173125],[32.919572,35.087833],[32.73178,35.140026]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Cyprus","SOV_A3":"CYP","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Cyprus","ADM0_A3":"CYP","GEOU_DIF":0,"GEOUNIT":"Cyprus","GU_A3":"CYP","SU_DIF":0,"SUBUNIT":"Cyprus","SU_A3":"CYP","BRK_DIFF":0,"NAME":"Cyprus","NAME_LONG":"Cyprus","BRK_A3":"CYP","BRK_NAME":"Cyprus","BRK_GROUP":null,"ABBREV":"Cyp.","POSTAL":"CY","FORMAL_EN":"Republic of Cyprus","FORMAL_FR":null,"NAME_CIAWF":"Cyprus","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Cyprus","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":7,"POP_EST":1221549,"POP_RANK":12,"GDP_MD_EST":29260,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"CY","ISO_A2":"CY","ISO_A3":"CYP","ISO_A3_EH":"CYP","ISO_N3":"196","UN_A3":"196","WB_A2":"CY","WB_A3":"CYP","WOE_ID":-90,"WOE_ID_EH":23424994,"WOE_NOTE":"WOE lists as subunit of united Cyprus","ADM0_A3_IS":"CYP","ADM0_A3_US":"CYP","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[32.256667,34.571869,34.004881,35.173125],"geometry":{"type":"Polygon","coordinates":[[[32.73178,35.140026],[32.919572,35.087833],[33.190977,35.173125],[33.383833,35.162712],[33.455922,35.101424],[33.475817,35.000345],[33.525685,35.038688],[33.675392,35.017863],[33.86644,35.093595],[33.973617,35.058506],[34.004881,34.978098],[32.979827,34.571869],[32.490296,34.701655],[32.256667,35.103232],[32.73178,35.140026]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Czechia","SOV_A3":"CZE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Czechia","ADM0_A3":"CZE","GEOU_DIF":0,"GEOUNIT":"Czechia","GU_A3":"CZE","SU_DIF":0,"SUBUNIT":"Czechia","SU_A3":"CZE","BRK_DIFF":0,"NAME":"Czechia","NAME_LONG":"Czech Republic","BRK_A3":"CZE","BRK_NAME":"Czechia","BRK_GROUP":null,"ABBREV":"Cz.","POSTAL":"CZ","FORMAL_EN":"Czech Republic","FORMAL_FR":"la R\xe9publique tch\xe8que","NAME_CIAWF":"Czechia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Czechia","NAME_ALT":"Česko","MAPCOLOR7":1,"MAPCOLOR8":1,"MAPCOLOR9":2,"MAPCOLOR13":6,"POP_EST":10674723,"POP_RANK":14,"GDP_MD_EST":350900,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"EZ","ISO_A2":"CZ","ISO_A3":"CZE","ISO_A3_EH":"CZE","ISO_N3":"203","UN_A3":"203","WB_A2":"CZ","WB_A3":"CZE","WOE_ID":23424810,"WOE_ID_EH":23424810,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"CZE","ADM0_A3_US":"CZE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":14,"ABBREV_LEN":3,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[12.240111,48.555305,18.853144,51.117268],"geometry":{"type":"Polygon","coordinates":[[[16.960288,48.596982],[16.499283,48.785808],[16.029647,48.733899],[15.253416,49.039074],[14.901447,48.964402],[14.338898,48.555305],[13.595946,48.877172],[13.031329,49.307068],[12.521024,49.547415],[12.415191,49.969121],[12.240111,50.266338],[12.966837,50.484076],[13.338132,50.733234],[14.056228,50.926918],[14.307013,51.117268],[14.570718,51.002339],[15.016996,51.106674],[15.490972,50.78473],[16.238627,50.697733],[16.176253,50.422607],[16.719476,50.215747],[16.868769,50.473974],[17.554567,50.362146],[17.649445,50.049038],[18.392914,49.988629],[18.853144,49.49623],[18.554971,49.495015],[18.399994,49.315001],[18.170498,49.271515],[18.104973,49.043983],[17.913512,48.996493],[17.886485,48.903475],[17.545007,48.800019],[17.101985,48.816969],[16.960288,48.596982]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Germany","SOV_A3":"DEU","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Germany","ADM0_A3":"DEU","GEOU_DIF":0,"GEOUNIT":"Germany","GU_A3":"DEU","SU_DIF":0,"SUBUNIT":"Germany","SU_A3":"DEU","BRK_DIFF":0,"NAME":"Germany","NAME_LONG":"Germany","BRK_A3":"DEU","BRK_NAME":"Germany","BRK_GROUP":null,"ABBREV":"Ger.","POSTAL":"D","FORMAL_EN":"Federal Republic of Germany","FORMAL_FR":null,"NAME_CIAWF":"Germany","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Germany","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":5,"MAPCOLOR9":5,"MAPCOLOR13":1,"POP_EST":80594017,"POP_RANK":16,"GDP_MD_EST":3979000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"GM","ISO_A2":"DE","ISO_A3":"DEU","ISO_A3_EH":"DEU","ISO_N3":"276","UN_A3":"276","WB_A2":"DE","WB_A3":"DEU","WOE_ID":23424829,"WOE_ID_EH":23424829,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"DEU","ADM0_A3_US":"DEU","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[5.988658,47.302488,15.016996,54.983104],"geometry":{"type":"Polygon","coordinates":[[[13.595946,48.877172],[13.243357,48.416115],[12.884103,48.289146],[13.025851,47.637584],[12.932627,47.467646],[12.62076,47.672388],[12.141357,47.703083],[11.426414,47.523766],[10.544504,47.566399],[10.402084,47.302488],[9.896068,47.580197],[9.594226,47.525058],[8.522612,47.830828],[8.317301,47.61358],[7.466759,47.620582],[7.593676,48.333019],[8.099279,49.017784],[6.65823,49.201958],[6.18632,49.463803],[6.242751,49.902226],[6.043073,50.128052],[6.156658,50.803721],[5.988658,51.851616],[6.589397,51.852029],[6.84287,52.22844],[7.092053,53.144043],[6.90514,53.482162],[7.100425,53.693932],[7.936239,53.748296],[8.121706,53.527792],[8.800734,54.020786],[8.572118,54.395646],[8.526229,54.962744],[9.282049,54.830865],[9.921906,54.983104],[9.93958,54.596642],[10.950112,54.363607],[10.939467,54.008693],[11.956252,54.196486],[12.51844,54.470371],[13.647467,54.075511],[14.119686,53.757029],[14.353315,53.248171],[14.074521,52.981263],[14.4376,52.62485],[14.685026,52.089947],[14.607098,51.745188],[15.016996,51.106674],[14.570718,51.002339],[14.307013,51.117268],[14.056228,50.926918],[13.338132,50.733234],[12.966837,50.484076],[12.240111,50.266338],[12.415191,49.969121],[12.521024,49.547415],[13.031329,49.307068],[13.595946,48.877172]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Djibouti","SOV_A3":"DJI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Djibouti","ADM0_A3":"DJI","GEOU_DIF":0,"GEOUNIT":"Djibouti","GU_A3":"DJI","SU_DIF":0,"SUBUNIT":"Djibouti","SU_A3":"DJI","BRK_DIFF":0,"NAME":"Djibouti","NAME_LONG":"Djibouti","BRK_A3":"DJI","BRK_NAME":"Djibouti","BRK_GROUP":null,"ABBREV":"Dji.","POSTAL":"DJ","FORMAL_EN":"Republic of Djibouti","FORMAL_FR":null,"NAME_CIAWF":"Djibouti","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Djibouti","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":4,"MAPCOLOR13":8,"POP_EST":865267,"POP_RANK":11,"GDP_MD_EST":3345,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"DJ","ISO_A2":"DJ","ISO_A3":"DJI","ISO_A3_EH":"DJI","ISO_N3":"262","UN_A3":"262","WB_A2":"DJ","WB_A3":"DJI","WOE_ID":23424797,"WOE_ID_EH":23424797,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"DJI","ADM0_A3_US":"DJI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[41.66176,10.926879,43.317852,12.699639],"geometry":{"type":"Polygon","coordinates":[[[43.081226,12.699639],[43.317852,12.390148],[43.286381,11.974928],[42.715874,11.735641],[43.145305,11.46204],[42.776852,10.926879],[42.55493,11.10511],[42.31414,11.0342],[41.75557,11.05091],[41.73959,11.35511],[41.66176,11.6312],[42,12.1],[42.35156,12.54223],[42.779642,12.455416],[43.081226,12.699639]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Denmark","SOV_A3":"DN1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Denmark","ADM0_A3":"DNK","GEOU_DIF":0,"GEOUNIT":"Denmark","GU_A3":"DNK","SU_DIF":0,"SUBUNIT":"Denmark","SU_A3":"DNK","BRK_DIFF":0,"NAME":"Denmark","NAME_LONG":"Denmark","BRK_A3":"DNK","BRK_NAME":"Denmark","BRK_GROUP":null,"ABBREV":"Den.","POSTAL":"DK","FORMAL_EN":"Kingdom of Denmark","FORMAL_FR":null,"NAME_CIAWF":"Denmark","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Denmark","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":12,"POP_EST":5605948,"POP_RANK":13,"GDP_MD_EST":264800,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"DA","ISO_A2":"DK","ISO_A3":"DNK","ISO_A3_EH":"DNK","ISO_N3":"208","UN_A3":"208","WB_A2":"DK","WB_A3":"DNK","WOE_ID":23424796,"WOE_ID_EH":23424796,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"DNK","ADM0_A3_US":"DNK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[8.089977,54.800015,12.690006,57.730017],"geometry":{"type":"MultiPolygon","coordinates":[[[[9.921906,54.983104],[9.282049,54.830865],[8.526229,54.962744],[8.120311,55.517723],[8.089977,56.540012],[8.256582,56.809969],[8.543438,57.110003],[9.424469,57.172066],[9.775559,57.447941],[10.580006,57.730017],[10.546106,57.215733],[10.25,56.890016],[10.369993,56.609982],[10.912182,56.458621],[10.667804,56.081383],[10.369993,56.190007],[9.649985,55.469999],[9.921906,54.983104]]],[[[12.690006,55.609991],[12.089991,54.800015],[11.043543,55.364864],[10.903914,55.779955],[12.370904,56.111407],[12.690006,55.609991]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Dominican Republic","SOV_A3":"DOM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Dominican Republic","ADM0_A3":"DOM","GEOU_DIF":0,"GEOUNIT":"Dominican Republic","GU_A3":"DOM","SU_DIF":0,"SUBUNIT":"Dominican Republic","SU_A3":"DOM","BRK_DIFF":0,"NAME":"Dominican Rep.","NAME_LONG":"Dominican Republic","BRK_A3":"DOM","BRK_NAME":"Dominican Rep.","BRK_GROUP":null,"ABBREV":"Dom. Rep.","POSTAL":"DO","FORMAL_EN":"Dominican Republic","FORMAL_FR":null,"NAME_CIAWF":"Dominican Republic","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Dominican Republic","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":7,"POP_EST":10734247,"POP_RANK":14,"GDP_MD_EST":161900,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"DR","ISO_A2":"DO","ISO_A3":"DOM","ISO_A3_EH":"DOM","ISO_N3":"214","UN_A3":"214","WB_A2":"DO","WB_A3":"DOM","WOE_ID":23424800,"WOE_ID_EH":23424800,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"DOM","ADM0_A3_US":"DOM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":14,"LONG_LEN":18,"ABBREV_LEN":9,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[-71.945112,17.598564,-68.317943,19.884911],"geometry":{"type":"Polygon","coordinates":[[[-71.712361,19.714456],[-71.587304,19.884911],[-70.806706,19.880286],[-70.214365,19.622885],[-69.950815,19.648],[-69.76925,19.293267],[-69.222126,19.313214],[-69.254346,19.015196],[-68.809412,18.979074],[-68.317943,18.612198],[-68.689316,18.205142],[-69.164946,18.422648],[-69.623988,18.380713],[-69.952934,18.428307],[-70.133233,18.245915],[-70.517137,18.184291],[-70.669298,18.426886],[-70.99995,18.283329],[-71.40021,17.598564],[-71.657662,17.757573],[-71.708305,18.044997],[-71.687738,18.31666],[-71.945112,18.6169],[-71.701303,18.785417],[-71.624873,19.169838],[-71.712361,19.714456]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Algeria","SOV_A3":"DZA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Algeria","ADM0_A3":"DZA","GEOU_DIF":0,"GEOUNIT":"Algeria","GU_A3":"DZA","SU_DIF":0,"SUBUNIT":"Algeria","SU_A3":"DZA","BRK_DIFF":0,"NAME":"Algeria","NAME_LONG":"Algeria","BRK_A3":"DZA","BRK_NAME":"Algeria","BRK_GROUP":null,"ABBREV":"Alg.","POSTAL":"DZ","FORMAL_EN":"People\'s Democratic Republic of Algeria","FORMAL_FR":null,"NAME_CIAWF":"Algeria","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Algeria","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":1,"MAPCOLOR9":6,"MAPCOLOR13":3,"POP_EST":40969443,"POP_RANK":15,"GDP_MD_EST":609400,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"AG","ISO_A2":"DZ","ISO_A3":"DZA","ISO_A3_EH":"DZA","ISO_N3":"012","UN_A3":"012","WB_A2":"DZ","WB_A3":"DZA","WOE_ID":23424740,"WOE_ID_EH":23424740,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"DZA","ADM0_A3_US":"DZA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[-8.6844,19.057364,11.999506,37.118381],"geometry":{"type":"Polygon","coordinates":[[[4.267419,19.155265],[3.158133,19.057364],[3.146661,19.693579],[2.683588,19.85623],[2.060991,20.142233],[1.823228,20.610809],[-1.550055,22.792666],[-4.923337,24.974574],[-8.6844,27.395744],[-8.665124,27.589479],[-8.66559,27.656426],[-8.674116,28.841289],[-7.059228,29.579228],[-6.060632,29.7317],[-5.242129,30.000443],[-4.859646,30.501188],[-3.690441,30.896952],[-3.647498,31.637294],[-3.06898,31.724498],[-2.616605,32.094346],[-1.307899,32.262889],[-1.124551,32.651522],[-1.388049,32.864015],[-1.733455,33.919713],[-1.792986,34.527919],[-2.169914,35.168396],[-1.208603,35.714849],[-0.127454,35.888662],[0.503877,36.301273],[1.466919,36.605647],[3.161699,36.783905],[4.815758,36.865037],[5.32012,36.716519],[6.26182,37.110655],[7.330385,37.118381],[7.737078,36.885708],[8.420964,36.946427],[8.217824,36.433177],[8.376368,35.479876],[8.140981,34.655146],[7.524482,34.097376],[7.612642,33.344115],[8.430473,32.748337],[8.439103,32.506285],[9.055603,32.102692],[9.48214,30.307556],[9.805634,29.424638],[9.859998,28.95999],[9.683885,28.144174],[9.756128,27.688259],[9.629056,27.140953],[9.716286,26.512206],[9.319411,26.094325],[9.910693,25.365455],[9.948261,24.936954],[10.303847,24.379313],[10.771364,24.562532],[11.560669,24.097909],[11.999506,23.471668],[8.572893,21.565661],[5.677566,19.601207],[4.267419,19.155265]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Ecuador","SOV_A3":"ECU","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ecuador","ADM0_A3":"ECU","GEOU_DIF":0,"GEOUNIT":"Ecuador","GU_A3":"ECU","SU_DIF":0,"SUBUNIT":"Ecuador","SU_A3":"ECU","BRK_DIFF":0,"NAME":"Ecuador","NAME_LONG":"Ecuador","BRK_A3":"ECU","BRK_NAME":"Ecuador","BRK_GROUP":null,"ABBREV":"Ecu.","POSTAL":"EC","FORMAL_EN":"Republic of Ecuador","FORMAL_FR":null,"NAME_CIAWF":"Ecuador","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Ecuador","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":5,"MAPCOLOR9":2,"MAPCOLOR13":12,"POP_EST":16290913,"POP_RANK":14,"GDP_MD_EST":182400,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"EC","ISO_A2":"EC","ISO_A3":"ECU","ISO_A3_EH":"ECU","ISO_N3":"218","UN_A3":"218","WB_A2":"EC","WB_A3":"ECU","WOE_ID":23424801,"WOE_ID_EH":23424801,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ECU","ADM0_A3_US":"ECU","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-80.967765,-4.959129,-75.233723,1.380924],"geometry":{"type":"Polygon","coordinates":[[[-78.855259,1.380924],[-77.855061,0.809925],[-77.668613,0.825893],[-77.424984,0.395687],[-76.57638,0.256936],[-76.292314,0.416047],[-75.801466,0.084801],[-75.373223,-0.152032],[-75.233723,-0.911417],[-75.544996,-1.56161],[-76.635394,-2.608678],[-77.837905,-3.003021],[-78.450684,-3.873097],[-78.639897,-4.547784],[-79.205289,-4.959129],[-79.624979,-4.454198],[-80.028908,-4.346091],[-80.442242,-4.425724],[-80.469295,-4.059287],[-80.184015,-3.821162],[-80.302561,-3.404856],[-79.770293,-2.657512],[-79.986559,-2.220794],[-80.368784,-2.685159],[-80.967765,-2.246943],[-80.764806,-1.965048],[-80.933659,-1.057455],[-80.58337,-0.906663],[-80.399325,-0.283703],[-80.020898,0.36034],[-80.09061,0.768429],[-79.542762,0.982938],[-78.855259,1.380924]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Egypt","SOV_A3":"EGY","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Egypt","ADM0_A3":"EGY","GEOU_DIF":0,"GEOUNIT":"Egypt","GU_A3":"EGY","SU_DIF":0,"SUBUNIT":"Egypt","SU_A3":"EGY","BRK_DIFF":0,"NAME":"Egypt","NAME_LONG":"Egypt","BRK_A3":"EGY","BRK_NAME":"Egypt","BRK_GROUP":null,"ABBREV":"Egypt","POSTAL":"EG","FORMAL_EN":"Arab Republic of Egypt","FORMAL_FR":null,"NAME_CIAWF":"Egypt","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Egypt, Arab Rep.","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":6,"MAPCOLOR9":7,"MAPCOLOR13":2,"POP_EST":97041072,"POP_RANK":16,"GDP_MD_EST":1105000,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"EG","ISO_A2":"EG","ISO_A3":"EGY","ISO_A3_EH":"EGY","ISO_N3":"818","UN_A3":"818","WB_A2":"EG","WB_A3":"EGY","WOE_ID":23424802,"WOE_ID_EH":23424802,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"EGY","ADM0_A3_US":"EGY","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[24.70007,22,36.86623,31.58568],"geometry":{"type":"Polygon","coordinates":[[[36.86623,22],[32.9,22],[29.02,22],[25,22],[25,25.6825],[25,29.238655],[24.70007,30.04419],[24.95762,30.6616],[24.80287,31.08929],[25.16482,31.56915],[26.49533,31.58568],[27.45762,31.32126],[28.45048,31.02577],[28.91353,30.87005],[29.68342,31.18686],[30.09503,31.4734],[30.97693,31.55586],[31.68796,31.4296],[31.96041,30.9336],[32.19247,31.26034],[32.99392,31.02407],[33.7734,30.96746],[34.265435,31.219357],[34.26544,31.21936],[34.823243,29.761081],[34.9226,29.50133],[34.64174,29.09942],[34.42655,28.34399],[34.15451,27.8233],[33.92136,27.6487],[33.58811,27.97136],[33.13676,28.41765],[32.42323,29.85108],[32.32046,29.76043],[32.73482,28.70523],[33.34876,27.69989],[34.10455,26.14227],[34.47387,25.59856],[34.79507,25.03375],[35.69241,23.92671],[35.49372,23.75237],[35.52598,23.10244],[36.69069,22.20485],[36.86623,22]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Eritrea","SOV_A3":"ERI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Eritrea","ADM0_A3":"ERI","GEOU_DIF":0,"GEOUNIT":"Eritrea","GU_A3":"ERI","SU_DIF":0,"SUBUNIT":"Eritrea","SU_A3":"ERI","BRK_DIFF":0,"NAME":"Eritrea","NAME_LONG":"Eritrea","BRK_A3":"ERI","BRK_NAME":"Eritrea","BRK_GROUP":null,"ABBREV":"Erit.","POSTAL":"ER","FORMAL_EN":"State of Eritrea","FORMAL_FR":null,"NAME_CIAWF":"Eritrea","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Eritrea","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":2,"MAPCOLOR13":12,"POP_EST":5918919,"POP_RANK":13,"GDP_MD_EST":9169,"POP_YEAR":2017,"LASTCENSUS":1984,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"ER","ISO_A2":"ER","ISO_A3":"ERI","ISO_A3_EH":"ERI","ISO_N3":"232","UN_A3":"232","WB_A2":"ER","WB_A3":"ERI","WOE_ID":23424806,"WOE_ID_EH":23424806,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ERI","ADM0_A3_US":"ERI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[36.32322,12.455416,43.081226,17.998307],"geometry":{"type":"Polygon","coordinates":[[[43.081226,12.699639],[42.779642,12.455416],[42.35156,12.54223],[42.00975,12.86582],[41.59856,13.45209],[41.1552,13.77333],[40.8966,14.11864],[40.02625,14.51959],[39.34061,14.53155],[39.0994,14.74064],[38.51295,14.50547],[37.90607,14.95943],[37.59377,14.2131],[36.42951,14.42211],[36.32322,14.82249],[36.75389,16.29186],[36.85253,16.95655],[37.16747,17.26314],[37.904,17.42754],[38.41009,17.998307],[38.990623,16.840626],[39.26611,15.922723],[39.814294,15.435647],[41.179275,14.49108],[41.734952,13.921037],[42.276831,13.343992],[42.589576,13.000421],[43.081226,12.699639]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Spain","SOV_A3":"ESP","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Spain","ADM0_A3":"ESP","GEOU_DIF":0,"GEOUNIT":"Spain","GU_A3":"ESP","SU_DIF":0,"SUBUNIT":"Spain","SU_A3":"ESP","BRK_DIFF":0,"NAME":"Spain","NAME_LONG":"Spain","BRK_A3":"ESP","BRK_NAME":"Spain","BRK_GROUP":null,"ABBREV":"Sp.","POSTAL":"E","FORMAL_EN":"Kingdom of Spain","FORMAL_FR":null,"NAME_CIAWF":"Spain","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Spain","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":5,"MAPCOLOR13":5,"POP_EST":48958159,"POP_RANK":15,"GDP_MD_EST":1690000,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"SP","ISO_A2":"ES","ISO_A3":"ESP","ISO_A3_EH":"ESP","ISO_N3":"724","UN_A3":"724","WB_A2":"ES","WB_A3":"ESP","WOE_ID":23424950,"WOE_ID_EH":23424950,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ESP","ADM0_A3_US":"ESP","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":3,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[-9.392884,35.94685,3.039484,43.748338],"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.984433,42.592775],[-9.392884,43.026625],[-7.97819,43.748338],[-6.754492,43.567909],[-5.411886,43.57424],[-4.347843,43.403449],[-3.517532,43.455901],[-1.901351,43.422802],[-1.502771,43.034014],[0.338047,42.579546],[0.701591,42.795734],[1.826793,42.343385],[2.985999,42.473015],[3.039484,41.89212],[2.091842,41.226089],[0.810525,41.014732],[0.721331,40.678318],[0.106692,40.123934],[-0.278711,39.309978],[0.111291,38.738514],[-0.467124,38.292366],[-0.683389,37.642354],[-1.438382,37.443064],[-2.146453,36.674144],[-3.415781,36.6589],[-4.368901,36.677839],[-4.995219,36.324708],[-5.37716,35.94685],[-5.866432,36.029817],[-6.236694,36.367677],[-6.520191,36.942913],[-7.453726,37.097788],[-7.537105,37.428904],[-7.166508,37.803894],[-7.029281,38.075764],[-7.374092,38.373059],[-7.098037,39.030073],[-7.498632,39.629571],[-7.066592,39.711892],[-7.026413,40.184524],[-6.86402,40.330872],[-6.851127,41.111083],[-6.389088,41.381815],[-6.668606,41.883387],[-7.251309,41.918346],[-7.422513,41.792075],[-8.013175,41.790886],[-8.263857,42.280469],[-8.671946,42.134689],[-9.034818,41.880571]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Estonia","SOV_A3":"EST","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Estonia","ADM0_A3":"EST","GEOU_DIF":0,"GEOUNIT":"Estonia","GU_A3":"EST","SU_DIF":0,"SUBUNIT":"Estonia","SU_A3":"EST","BRK_DIFF":0,"NAME":"Estonia","NAME_LONG":"Estonia","BRK_A3":"EST","BRK_NAME":"Estonia","BRK_GROUP":null,"ABBREV":"Est.","POSTAL":"EST","FORMAL_EN":"Republic of Estonia","FORMAL_FR":null,"NAME_CIAWF":"Estonia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Estonia","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":1,"MAPCOLOR13":10,"POP_EST":1251581,"POP_RANK":12,"GDP_MD_EST":38700,"POP_YEAR":2017,"LASTCENSUS":2000,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"EN","ISO_A2":"EE","ISO_A3":"EST","ISO_A3_EH":"EST","ISO_N3":"233","UN_A3":"233","WB_A2":"EE","WB_A3":"EST","WOE_ID":23424805,"WOE_ID_EH":23424805,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"EST","ADM0_A3_US":"EST","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[23.339795,57.474528,28.131699,59.61109],"geometry":{"type":"Polygon","coordinates":[[[24.312863,57.793424],[24.428928,58.383413],[24.061198,58.257375],[23.42656,58.612753],[23.339795,59.18724],[24.604214,59.465854],[25.864189,59.61109],[26.949136,59.445803],[27.981114,59.475388],[27.981127,59.475373],[27.98112,59.47537],[28.131699,59.300825],[27.42015,58.72457],[27.716686,57.791899],[27.288185,57.474528],[26.463532,57.476389],[25.60281,57.847529],[25.164594,57.970157],[24.312863,57.793424]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Ethiopia","SOV_A3":"ETH","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ethiopia","ADM0_A3":"ETH","GEOU_DIF":0,"GEOUNIT":"Ethiopia","GU_A3":"ETH","SU_DIF":0,"SUBUNIT":"Ethiopia","SU_A3":"ETH","BRK_DIFF":0,"NAME":"Ethiopia","NAME_LONG":"Ethiopia","BRK_A3":"ETH","BRK_NAME":"Ethiopia","BRK_GROUP":null,"ABBREV":"Eth.","POSTAL":"ET","FORMAL_EN":"Federal Democratic Republic of Ethiopia","FORMAL_FR":null,"NAME_CIAWF":"Ethiopia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Ethiopia","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":13,"POP_EST":105350020,"POP_RANK":17,"GDP_MD_EST":174700,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"ET","ISO_A2":"ET","ISO_A3":"ETH","ISO_A3_EH":"ETH","ISO_N3":"231","UN_A3":"231","WB_A2":"ET","WB_A3":"ETH","WOE_ID":23424808,"WOE_ID_EH":23424808,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ETH","ADM0_A3_US":"ETH","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[32.95418,3.42206,47.78942,14.95943],"geometry":{"type":"Polygon","coordinates":[[[42.35156,12.54223],[42,12.1],[41.66176,11.6312],[41.73959,11.35511],[41.75557,11.05091],[42.31414,11.0342],[42.55493,11.10511],[42.776852,10.926879],[42.55876,10.57258],[42.92812,10.02194],[43.29699,9.54048],[43.67875,9.18358],[46.94834,7.99688],[47.78942,8.003],[44.9636,5.00162],[43.66087,4.95755],[42.76967,4.25259],[42.12861,4.23413],[41.855083,3.918912],[41.1718,3.91909],[40.76848,4.25702],[39.85494,3.83879],[39.559384,3.42206],[38.89251,3.50074],[38.67114,3.61607],[38.43697,3.58851],[38.120915,3.598605],[36.855093,4.447864],[36.159079,4.447864],[35.817448,4.776966],[35.817448,5.338232],[35.298007,5.506],[34.70702,6.59422],[34.25032,6.82607],[34.0751,7.22595],[33.56829,7.71334],[32.95418,7.78497],[33.2948,8.35458],[33.8255,8.37916],[33.97498,8.68456],[33.96162,9.58358],[34.25745,10.63009],[34.73115,10.91017],[34.83163,11.31896],[35.26049,12.08286],[35.86363,12.57828],[36.27022,13.56333],[36.42951,14.42211],[37.59377,14.2131],[37.90607,14.95943],[38.51295,14.50547],[39.0994,14.74064],[39.34061,14.53155],[40.02625,14.51959],[40.8966,14.11864],[41.1552,13.77333],[41.59856,13.45209],[42.00975,12.86582],[42.35156,12.54223]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Finland","SOV_A3":"FI1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Finland","ADM0_A3":"FIN","GEOU_DIF":0,"GEOUNIT":"Finland","GU_A3":"FIN","SU_DIF":0,"SUBUNIT":"Finland","SU_A3":"FIN","BRK_DIFF":0,"NAME":"Finland","NAME_LONG":"Finland","BRK_A3":"FIN","BRK_NAME":"Finland","BRK_GROUP":null,"ABBREV":"Fin.","POSTAL":"FIN","FORMAL_EN":"Republic of Finland","FORMAL_FR":null,"NAME_CIAWF":"Finland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Finland","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":4,"MAPCOLOR13":6,"POP_EST":5491218,"POP_RANK":13,"GDP_MD_EST":224137,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"FI","ISO_A2":"FI","ISO_A3":"FIN","ISO_A3_EH":"FIN","ISO_N3":"246","UN_A3":"246","WB_A2":"FI","WB_A3":"FIN","WOE_ID":23424812,"WOE_ID_EH":23424812,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"FIN","ADM0_A3_US":"FIN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[20.645593,59.846373,31.516092,70.164193],"geometry":{"type":"Polygon","coordinates":[[[23.903379,66.006927],[23.56588,66.396051],[23.539473,67.936009],[21.978535,68.616846],[20.645593,69.106247],[21.244936,69.370443],[22.356238,68.841741],[23.66205,68.891247],[24.735679,68.649557],[25.689213,69.092114],[26.179622,69.825299],[27.732292,70.164193],[29.015573,69.766491],[28.59193,69.064777],[28.445944,68.364613],[29.977426,67.698297],[29.054589,66.944286],[30.21765,65.80598],[29.54443,64.948672],[30.444685,64.204453],[30.035872,63.552814],[31.516092,62.867687],[31.139991,62.357693],[30.211107,61.780028],[28.07,60.50352],[28.070002,60.503519],[28.069998,60.503517],[26.255173,60.423961],[24.496624,60.057316],[22.869695,59.846373],[22.290764,60.391921],[21.322244,60.72017],[21.544866,61.705329],[21.059211,62.607393],[21.536029,63.189735],[22.442744,63.81781],[24.730512,64.902344],[25.398068,65.111427],[25.294043,65.534346],[23.903379,66.006927]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Fiji","SOV_A3":"FJI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Fiji","ADM0_A3":"FJI","GEOU_DIF":0,"GEOUNIT":"Fiji","GU_A3":"FJI","SU_DIF":0,"SUBUNIT":"Fiji","SU_A3":"FJI","BRK_DIFF":0,"NAME":"Fiji","NAME_LONG":"Fiji","BRK_A3":"FJI","BRK_NAME":"Fiji","BRK_GROUP":null,"ABBREV":"Fiji","POSTAL":"FJ","FORMAL_EN":"Republic of Fiji","FORMAL_FR":null,"NAME_CIAWF":"Fiji","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Fiji","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":1,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":920938,"POP_RANK":11,"GDP_MD_EST":8374,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"FJ","ISO_A2":"FJ","ISO_A3":"FJI","ISO_A3_EH":"FJI","ISO_N3":"242","UN_A3":"242","WB_A2":"FJ","WB_A3":"FJI","WOE_ID":23424813,"WOE_ID_EH":23424813,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"FJI","ADM0_A3_US":"FJI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Melanesia","REGION_WB":"East Asia & Pacific","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-180,-18.28799,180,-16.020882],"geometry":{"type":"MultiPolygon","coordinates":[[[[178.3736,-17.33992],[178.71806,-17.62846],[178.55271,-18.15059],[177.93266,-18.28799],[177.38146,-18.16432],[177.28504,-17.72465],[177.67087,-17.38114],[178.12557,-17.50481],[178.3736,-17.33992]]],[[[179.364143,-16.801354],[178.725059,-17.012042],[178.596839,-16.63915],[179.096609,-16.433984],[179.413509,-16.379054],[180,-16.067133],[180,-16.555217],[179.364143,-16.801354]]],[[[-179.917369,-16.501783],[-180,-16.555217],[-180,-16.067133],[-179.79332,-16.020882],[-179.917369,-16.501783]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"United Kingdom","SOV_A3":"GB1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Dependency","ADMIN":"Falkland Islands","ADM0_A3":"FLK","GEOU_DIF":0,"GEOUNIT":"Falkland Islands","GU_A3":"FLK","SU_DIF":0,"SUBUNIT":"Falkland Islands","SU_A3":"FLK","BRK_DIFF":1,"NAME":"Falkland Is.","NAME_LONG":"Falkland Islands","BRK_A3":"B12","BRK_NAME":"Falkland Is.","BRK_GROUP":null,"ABBREV":"Flk. Is.","POSTAL":"FK","FORMAL_EN":"Falkland Islands","FORMAL_FR":null,"NAME_CIAWF":"Falkland Islands (Islas Malvinas)","NOTE_ADM0":"U.K.","NOTE_BRK":"Admin. by U.K.; Claimed by Argentina","NAME_SORT":"Falkland Islands","NAME_ALT":"Islas Malvinas","MAPCOLOR7":6,"MAPCOLOR8":6,"MAPCOLOR9":6,"MAPCOLOR13":3,"POP_EST":2931,"POP_RANK":4,"GDP_MD_EST":281.8,"POP_YEAR":2014,"LASTCENSUS":-99,"GDP_YEAR":2012,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"FK","ISO_A2":"FK","ISO_A3":"FLK","ISO_A3_EH":"FLK","ISO_N3":"238","UN_A3":"238","WB_A2":"FK","WB_A3":"-99","WOE_ID":23424814,"WOE_ID_EH":23424814,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"FLK","ADM0_A3_US":"FLK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":12,"LONG_LEN":16,"ABBREV_LEN":8,"TINY":-99,"HOMEPART":-99,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9},"bbox":[-61.2,-52.3,-57.75,-51.1],"geometry":{"type":"Polygon","coordinates":[[[-61.2,-51.85],[-60,-51.25],[-59.15,-51.5],[-58.55,-51.1],[-57.75,-51.55],[-58.05,-51.9],[-59.4,-52.2],[-59.85,-51.85],[-60.7,-52.3],[-61.2,-51.85]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"France","SOV_A3":"FR1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"France","ADM0_A3":"FRA","GEOU_DIF":0,"GEOUNIT":"France","GU_A3":"FRA","SU_DIF":0,"SUBUNIT":"France","SU_A3":"FRA","BRK_DIFF":0,"NAME":"France","NAME_LONG":"France","BRK_A3":"FRA","BRK_NAME":"France","BRK_GROUP":null,"ABBREV":"Fr.","POSTAL":"F","FORMAL_EN":"French Republic","FORMAL_FR":null,"NAME_CIAWF":"France","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"France","NAME_ALT":null,"MAPCOLOR7":7,"MAPCOLOR8":5,"MAPCOLOR9":9,"MAPCOLOR13":11,"POP_EST":67106161,"POP_RANK":16,"GDP_MD_EST":2699000,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"FR","ISO_A2":"FR","ISO_A3":"-99","ISO_A3_EH":"-99","ISO_N3":"250","UN_A3":"250","WB_A2":"FR","WB_A3":"FRA","WOE_ID":-90,"WOE_ID_EH":23424819,"WOE_NOTE":"Includes only Metropolitan France (including Corsica)","ADM0_A3_IS":"FRA","ADM0_A3_US":"FRA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":3,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[-54.524754,2.053389,9.560016,51.148506],"geometry":{"type":"MultiPolygon","coordinates":[[[[2.513573,51.148506],[2.658422,50.796848],[3.123252,50.780363],[3.588184,50.378992],[4.286023,49.907497],[4.799222,49.985373],[5.674052,49.529484],[5.897759,49.442667],[6.18632,49.463803],[6.65823,49.201958],[8.099279,49.017784],[7.593676,48.333019],[7.466759,47.620582],[7.192202,47.449766],[6.736571,47.541801],[6.768714,47.287708],[6.037389,46.725779],[6.022609,46.27299],[6.5001,46.429673],[6.843593,45.991147],[6.802355,45.70858],[7.096652,45.333099],[6.749955,45.028518],[7.007562,44.254767],[7.549596,44.127901],[7.435185,43.693845],[6.529245,43.128892],[4.556963,43.399651],[3.100411,43.075201],[2.985999,42.473015],[1.826793,42.343385],[0.701591,42.795734],[0.338047,42.579546],[-1.502771,43.034014],[-1.901351,43.422802],[-1.384225,44.02261],[-1.193798,46.014918],[-2.225724,47.064363],[-2.963276,47.570327],[-4.491555,47.954954],[-4.59235,48.68416],[-3.295814,48.901692],[-1.616511,48.644421],[-1.933494,49.776342],[-0.989469,49.347376],[1.338761,50.127173],[1.639001,50.946606],[2.513573,51.148506]]],[[[-51.657797,4.156232],[-52.249338,3.241094],[-52.556425,2.504705],[-52.939657,2.124858],[-53.418465,2.053389],[-53.554839,2.334897],[-53.778521,2.376703],[-54.088063,2.105557],[-54.524754,2.311849],[-54.27123,2.738748],[-54.184284,3.194172],[-54.011504,3.62257],[-54.399542,4.212611],[-54.478633,4.896756],[-53.958045,5.756548],[-53.618453,5.646529],[-52.882141,5.409851],[-51.823343,4.565768],[-51.657797,4.156232]]],[[[9.560016,42.152492],[9.229752,41.380007],[8.775723,41.583612],[8.544213,42.256517],[8.746009,42.628122],[9.390001,43.009985],[9.560016,42.152492]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Gabon","SOV_A3":"GAB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Gabon","ADM0_A3":"GAB","GEOU_DIF":0,"GEOUNIT":"Gabon","GU_A3":"GAB","SU_DIF":0,"SUBUNIT":"Gabon","SU_A3":"GAB","BRK_DIFF":0,"NAME":"Gabon","NAME_LONG":"Gabon","BRK_A3":"GAB","BRK_NAME":"Gabon","BRK_GROUP":null,"ABBREV":"Gabon","POSTAL":"GA","FORMAL_EN":"Gabonese Republic","FORMAL_FR":null,"NAME_CIAWF":"Gabon","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Gabon","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":5,"POP_EST":1772255,"POP_RANK":12,"GDP_MD_EST":35980,"POP_YEAR":2017,"LASTCENSUS":2003,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"GB","ISO_A2":"GA","ISO_A3":"GAB","ISO_A3_EH":"GAB","ISO_N3":"266","UN_A3":"266","WB_A2":"GA","WB_A3":"GAB","WOE_ID":23424822,"WOE_ID_EH":23424822,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GAB","ADM0_A3_US":"GAB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":3,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[8.797996,-3.978827,14.425456,2.326758],"geometry":{"type":"Polygon","coordinates":[[[11.276449,2.261051],[11.751665,2.326758],[12.35938,2.192812],[12.951334,2.321616],[13.075822,2.267097],[13.003114,1.830896],[13.282631,1.314184],[14.026669,1.395677],[14.276266,1.19693],[13.843321,0.038758],[14.316418,-0.552627],[14.425456,-1.333407],[14.29921,-1.998276],[13.992407,-2.470805],[13.109619,-2.42874],[12.575284,-1.948511],[12.495703,-2.391688],[11.820964,-2.514161],[11.478039,-2.765619],[11.855122,-3.426871],[11.093773,-3.978827],[10.066135,-2.969483],[9.405245,-2.144313],[8.797996,-1.111301],[8.830087,-0.779074],[9.04842,-0.459351],[9.291351,0.268666],[9.492889,1.01012],[9.830284,1.067894],[11.285079,1.057662],[11.276449,2.261051]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"United Kingdom","SOV_A3":"GB1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"United Kingdom","ADM0_A3":"GBR","GEOU_DIF":0,"GEOUNIT":"United Kingdom","GU_A3":"GBR","SU_DIF":0,"SUBUNIT":"United Kingdom","SU_A3":"GBR","BRK_DIFF":0,"NAME":"United Kingdom","NAME_LONG":"United Kingdom","BRK_A3":"GBR","BRK_NAME":"United Kingdom","BRK_GROUP":null,"ABBREV":"U.K.","POSTAL":"GB","FORMAL_EN":"United Kingdom of Great Britain and Northern Ireland","FORMAL_FR":null,"NAME_CIAWF":"United Kingdom","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"United Kingdom","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":6,"MAPCOLOR9":6,"MAPCOLOR13":3,"POP_EST":64769452,"POP_RANK":16,"GDP_MD_EST":2788000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"UK","ISO_A2":"GB","ISO_A3":"GBR","ISO_A3_EH":"GBR","ISO_N3":"826","UN_A3":"826","WB_A2":"GB","WB_A3":"GBR","WOE_ID":-90,"WOE_ID_EH":23424975,"WOE_NOTE":"Eh ID includes Channel Islands and Isle of Man. UK constituent countries of England (24554868), Wales (12578049), Scotland (12578048), and Northern Ireland (20070563).","ADM0_A3_IS":"GBR","ADM0_A3_US":"GBR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":14,"LONG_LEN":14,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[-7.572168,49.96,1.681531,58.635],"geometry":{"type":"MultiPolygon","coordinates":[[[[-6.197885,53.867565],[-6.95373,54.073702],[-7.572168,54.059956],[-7.366031,54.595841],[-7.572168,55.131622],[-6.733847,55.17286],[-5.661949,54.554603],[-6.197885,53.867565]]],[[[-3.005005,58.635],[-4.073828,57.553025],[-3.055002,57.690019],[-1.959281,57.6848],[-2.219988,56.870017],[-3.119003,55.973793],[-2.085009,55.909998],[-2.005676,55.804903],[-1.114991,54.624986],[-0.430485,54.464376],[0.184981,53.325014],[0.469977,52.929999],[1.681531,52.73952],[1.559988,52.099998],[1.050562,51.806761],[1.449865,51.289428],[0.550334,50.765739],[-0.787517,50.774989],[-2.489998,50.500019],[-2.956274,50.69688],[-3.617448,50.228356],[-4.542508,50.341837],[-5.245023,49.96],[-5.776567,50.159678],[-4.30999,51.210001],[-3.414851,51.426009],[-3.422719,51.426848],[-4.984367,51.593466],[-5.267296,51.9914],[-4.222347,52.301356],[-4.770013,52.840005],[-4.579999,53.495004],[-3.093831,53.404547],[-3.09208,53.404441],[-2.945009,53.985],[-3.614701,54.600937],[-3.630005,54.615013],[-4.844169,54.790971],[-5.082527,55.061601],[-4.719112,55.508473],[-5.047981,55.783986],[-5.586398,55.311146],[-5.644999,56.275015],[-6.149981,56.78501],[-5.786825,57.818848],[-5.009999,58.630013],[-4.211495,58.550845],[-3.005005,58.635]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Georgia","SOV_A3":"GEO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Georgia","ADM0_A3":"GEO","GEOU_DIF":0,"GEOUNIT":"Georgia","GU_A3":"GEO","SU_DIF":0,"SUBUNIT":"Georgia","SU_A3":"GEO","BRK_DIFF":0,"NAME":"Georgia","NAME_LONG":"Georgia","BRK_A3":"GEO","BRK_NAME":"Georgia","BRK_GROUP":null,"ABBREV":"Geo.","POSTAL":"GE","FORMAL_EN":"Georgia","FORMAL_FR":null,"NAME_CIAWF":"Georgia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Georgia","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":2,"POP_EST":4926330,"POP_RANK":12,"GDP_MD_EST":37270,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"GG","ISO_A2":"GE","ISO_A3":"GEO","ISO_A3_EH":"GEO","ISO_N3":"268","UN_A3":"268","WB_A2":"GE","WB_A3":"GEO","WOE_ID":23424823,"WOE_ID_EH":23424823,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GEO","ADM0_A3_US":"GEO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[39.955009,41.064445,46.637908,43.553104],"geometry":{"type":"Polygon","coordinates":[[[44.97248,41.248129],[43.582746,41.092143],[42.619549,41.583173],[41.554084,41.535656],[41.703171,41.962943],[41.45347,42.645123],[40.875469,43.013628],[40.321394,43.128634],[39.955009,43.434998],[40.076965,43.553104],[40.92219,43.38215],[42.3944,43.2203],[43.75599,42.74083],[43.93121,42.55496],[44.537623,42.711993],[45.470279,42.502781],[45.7764,42.09244],[46.404951,41.860675],[46.145432,41.722802],[46.637908,41.181673],[46.501637,41.064445],[45.962601,41.123873],[45.217426,41.411452],[44.97248,41.248129]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Ghana","SOV_A3":"GHA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ghana","ADM0_A3":"GHA","GEOU_DIF":0,"GEOUNIT":"Ghana","GU_A3":"GHA","SU_DIF":0,"SUBUNIT":"Ghana","SU_A3":"GHA","BRK_DIFF":0,"NAME":"Ghana","NAME_LONG":"Ghana","BRK_A3":"GHA","BRK_NAME":"Ghana","BRK_GROUP":null,"ABBREV":"Ghana","POSTAL":"GH","FORMAL_EN":"Republic of Ghana","FORMAL_FR":null,"NAME_CIAWF":"Ghana","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Ghana","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":1,"MAPCOLOR13":4,"POP_EST":27499924,"POP_RANK":15,"GDP_MD_EST":120800,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"GH","ISO_A2":"GH","ISO_A3":"GHA","ISO_A3_EH":"GHA","ISO_N3":"288","UN_A3":"288","WB_A2":"GH","WB_A3":"GHA","WOE_ID":23424824,"WOE_ID_EH":23424824,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GHA","ADM0_A3_US":"GHA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-3.24437,4.710462,1.060122,11.098341],"geometry":{"type":"Polygon","coordinates":[[[-2.827496,9.642461],[-2.963896,10.395335],[-2.940409,10.96269],[-1.203358,11.009819],[-0.761576,10.93693],[-0.438702,11.098341],[0.023803,11.018682],[-0.049785,10.706918],[0.36758,10.191213],[0.365901,9.465004],[0.461192,8.677223],[0.712029,8.312465],[0.490957,7.411744],[0.570384,6.914359],[0.836931,6.279979],[1.060122,5.928837],[-0.507638,5.343473],[-1.063625,5.000548],[-1.964707,4.710462],[-2.856125,4.994476],[-2.810701,5.389051],[-3.24437,6.250472],[-2.983585,7.379705],[-2.56219,8.219628],[-2.827496,9.642461]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Guinea","SOV_A3":"GIN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Guinea","ADM0_A3":"GIN","GEOU_DIF":0,"GEOUNIT":"Guinea","GU_A3":"GIN","SU_DIF":0,"SUBUNIT":"Guinea","SU_A3":"GIN","BRK_DIFF":0,"NAME":"Guinea","NAME_LONG":"Guinea","BRK_A3":"GIN","BRK_NAME":"Guinea","BRK_GROUP":null,"ABBREV":"Gin.","POSTAL":"GN","FORMAL_EN":"Republic of Guinea","FORMAL_FR":null,"NAME_CIAWF":"Guinea","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Guinea","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":7,"MAPCOLOR13":2,"POP_EST":12413867,"POP_RANK":14,"GDP_MD_EST":16080,"POP_YEAR":2017,"LASTCENSUS":1996,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"GV","ISO_A2":"GN","ISO_A3":"GIN","ISO_A3_EH":"GIN","ISO_N3":"324","UN_A3":"324","WB_A2":"GN","WB_A3":"GIN","WOE_ID":23424835,"WOE_ID_EH":23424835,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GIN","ADM0_A3_US":"GIN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-15.130311,7.309037,-7.8321,12.586183],"geometry":{"type":"Polygon","coordinates":[[[-8.029944,10.206535],[-8.229337,10.12902],[-8.309616,9.789532],[-8.079114,9.376224],[-7.8321,8.575704],[-8.203499,8.455453],[-8.299049,8.316444],[-8.221792,8.123329],[-8.280703,7.68718],[-8.439298,7.686043],[-8.722124,7.711674],[-8.926065,7.309037],[-9.208786,7.313921],[-9.403348,7.526905],[-9.33728,7.928534],[-9.755342,8.541055],[-10.016567,8.428504],[-10.230094,8.406206],[-10.505477,8.348896],[-10.494315,8.715541],[-10.65477,8.977178],[-10.622395,9.26791],[-10.839152,9.688246],[-11.117481,10.045873],[-11.917277,10.046984],[-12.150338,9.858572],[-12.425929,9.835834],[-12.596719,9.620188],[-12.711958,9.342712],[-13.24655,8.903049],[-13.685154,9.494744],[-14.074045,9.886167],[-14.330076,10.01572],[-14.579699,10.214467],[-14.693232,10.656301],[-14.839554,10.876572],[-15.130311,11.040412],[-14.685687,11.527824],[-14.382192,11.509272],[-14.121406,11.677117],[-13.9008,11.678719],[-13.743161,11.811269],[-13.828272,12.142644],[-13.718744,12.247186],[-13.700476,12.586183],[-13.217818,12.575874],[-12.499051,12.33209],[-12.278599,12.35444],[-12.203565,12.465648],[-11.658301,12.386583],[-11.513943,12.442988],[-11.456169,12.076834],[-11.297574,12.077971],[-11.036556,12.211245],[-10.87083,12.177887],[-10.593224,11.923975],[-10.165214,11.844084],[-9.890993,12.060479],[-9.567912,12.194243],[-9.327616,12.334286],[-9.127474,12.30806],[-8.905265,12.088358],[-8.786099,11.812561],[-8.376305,11.393646],[-8.581305,11.136246],[-8.620321,10.810891],[-8.407311,10.909257],[-8.282357,10.792597],[-8.335377,10.494812],[-8.029944,10.206535]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Gambia","SOV_A3":"GMB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Gambia","ADM0_A3":"GMB","GEOU_DIF":0,"GEOUNIT":"Gambia","GU_A3":"GMB","SU_DIF":0,"SUBUNIT":"Gambia","SU_A3":"GMB","BRK_DIFF":0,"NAME":"Gambia","NAME_LONG":"The Gambia","BRK_A3":"GMB","BRK_NAME":"Gambia","BRK_GROUP":null,"ABBREV":"Gambia","POSTAL":"GM","FORMAL_EN":"Republic of the Gambia","FORMAL_FR":null,"NAME_CIAWF":"Gambia, The","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Gambia, The","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":8,"POP_EST":2051363,"POP_RANK":12,"GDP_MD_EST":3387,"POP_YEAR":2017,"LASTCENSUS":2003,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"GA","ISO_A2":"GM","ISO_A3":"GMB","ISO_A3_EH":"GMB","ISO_N3":"270","UN_A3":"270","WB_A2":"GM","WB_A3":"GMB","WOE_ID":23424821,"WOE_ID_EH":23424821,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GMB","ADM0_A3_US":"GMB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":10,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[-16.841525,13.130284,-13.844963,13.876492],"geometry":{"type":"Polygon","coordinates":[[[-16.841525,13.151394],[-16.713729,13.594959],[-15.624596,13.623587],[-15.39877,13.860369],[-15.081735,13.876492],[-14.687031,13.630357],[-14.376714,13.62568],[-14.046992,13.794068],[-13.844963,13.505042],[-14.277702,13.280585],[-14.712197,13.298207],[-15.141163,13.509512],[-15.511813,13.27857],[-15.691001,13.270353],[-15.931296,13.130284],[-16.841525,13.151394]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Guinea-Bissau","SOV_A3":"GNB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Guinea-Bissau","ADM0_A3":"GNB","GEOU_DIF":0,"GEOUNIT":"Guinea-Bissau","GU_A3":"GNB","SU_DIF":0,"SUBUNIT":"Guinea-Bissau","SU_A3":"GNB","BRK_DIFF":0,"NAME":"Guinea-Bissau","NAME_LONG":"Guinea-Bissau","BRK_A3":"GNB","BRK_NAME":"Guinea-Bissau","BRK_GROUP":null,"ABBREV":"GnB.","POSTAL":"GW","FORMAL_EN":"Republic of Guinea-Bissau","FORMAL_FR":null,"NAME_CIAWF":"Guinea-Bissau","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Guinea-Bissau","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":3,"MAPCOLOR13":4,"POP_EST":1792338,"POP_RANK":12,"GDP_MD_EST":2851,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"PU","ISO_A2":"GW","ISO_A3":"GNB","ISO_A3_EH":"GNB","ISO_N3":"624","UN_A3":"624","WB_A2":"GW","WB_A3":"GNB","WOE_ID":23424929,"WOE_ID_EH":23424929,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GNB","ADM0_A3_US":"GNB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":13,"LONG_LEN":13,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[-16.677452,11.040412,-13.700476,12.62817],"geometry":{"type":"Polygon","coordinates":[[[-13.700476,12.586183],[-13.718744,12.247186],[-13.828272,12.142644],[-13.743161,11.811269],[-13.9008,11.678719],[-14.121406,11.677117],[-14.382192,11.509272],[-14.685687,11.527824],[-15.130311,11.040412],[-15.66418,11.458474],[-16.085214,11.524594],[-16.314787,11.806515],[-16.308947,11.958702],[-16.613838,12.170911],[-16.677452,12.384852],[-16.147717,12.547762],[-15.816574,12.515567],[-15.548477,12.62817],[-13.700476,12.586183]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Equatorial Guinea","SOV_A3":"GNQ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Equatorial Guinea","ADM0_A3":"GNQ","GEOU_DIF":0,"GEOUNIT":"Equatorial Guinea","GU_A3":"GNQ","SU_DIF":0,"SUBUNIT":"Equatorial Guinea","SU_A3":"GNQ","BRK_DIFF":0,"NAME":"Eq. Guinea","NAME_LONG":"Equatorial Guinea","BRK_A3":"GNQ","BRK_NAME":"Eq. Guinea","BRK_GROUP":null,"ABBREV":"Eq. G.","POSTAL":"GQ","FORMAL_EN":"Republic of Equatorial Guinea","FORMAL_FR":null,"NAME_CIAWF":"Equatorial Guinea","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Equatorial Guinea","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":4,"MAPCOLOR13":8,"POP_EST":778358,"POP_RANK":11,"GDP_MD_EST":31770,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"EK","ISO_A2":"GQ","ISO_A3":"GNQ","ISO_A3_EH":"GNQ","ISO_N3":"226","UN_A3":"226","WB_A2":"GQ","WB_A3":"GNQ","WOE_ID":23424804,"WOE_ID_EH":23424804,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GNQ","ADM0_A3_US":"GNQ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":10,"LONG_LEN":17,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[9.305613,1.01012,11.285079,2.283866],"geometry":{"type":"Polygon","coordinates":[[[9.649158,2.283866],[11.276449,2.261051],[11.285079,1.057662],[9.830284,1.067894],[9.492889,1.01012],[9.305613,1.160911],[9.649158,2.283866]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Greece","SOV_A3":"GRC","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Greece","ADM0_A3":"GRC","GEOU_DIF":0,"GEOUNIT":"Greece","GU_A3":"GRC","SU_DIF":0,"SUBUNIT":"Greece","SU_A3":"GRC","BRK_DIFF":0,"NAME":"Greece","NAME_LONG":"Greece","BRK_A3":"GRC","BRK_NAME":"Greece","BRK_GROUP":null,"ABBREV":"Greece","POSTAL":"GR","FORMAL_EN":"Hellenic Republic","FORMAL_FR":null,"NAME_CIAWF":"Greece","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Greece","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":9,"POP_EST":10768477,"POP_RANK":14,"GDP_MD_EST":290500,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"GR","ISO_A2":"GR","ISO_A3":"GRC","ISO_A3_EH":"GRC","ISO_N3":"300","UN_A3":"300","WB_A2":"GR","WB_A3":"GRC","WOE_ID":23424833,"WOE_ID_EH":23424833,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GRC","ADM0_A3_US":"GRC","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[20.150016,34.919988,26.604196,41.826905],"geometry":{"type":"MultiPolygon","coordinates":[[[[20.150016,39.624998],[20.615,40.110007],[20.674997,40.435],[20.99999,40.580004],[21.02004,40.842727],[21.674161,40.931275],[22.055378,41.149866],[22.597308,41.130487],[22.76177,41.3048],[22.952377,41.337994],[23.692074,41.309081],[24.492645,41.583896],[25.197201,41.234486],[26.106138,41.328899],[26.117042,41.826905],[26.604196,41.562115],[26.294602,40.936261],[26.056942,40.824123],[25.447677,40.852545],[24.925848,40.947062],[23.714811,40.687129],[24.407999,40.124993],[23.899968,39.962006],[23.342999,39.960998],[22.813988,40.476005],[22.626299,40.256561],[22.849748,39.659311],[23.350027,39.190011],[22.973099,38.970903],[23.530016,38.510001],[24.025025,38.219993],[24.040011,37.655015],[23.115003,37.920011],[23.409972,37.409991],[22.774972,37.30501],[23.154225,36.422506],[22.490028,36.41],[21.670026,36.844986],[21.295011,37.644989],[21.120034,38.310323],[20.730032,38.769985],[20.217712,39.340235],[20.150016,39.624998]]],[[[23.69998,35.705004],[24.246665,35.368022],[25.025015,35.424996],[25.769208,35.354018],[25.745023,35.179998],[26.290003,35.29999],[26.164998,35.004995],[24.724982,34.919988],[24.735007,35.084991],[23.514978,35.279992],[23.69998,35.705004]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Denmark","SOV_A3":"DN1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Greenland","ADM0_A3":"GRL","GEOU_DIF":0,"GEOUNIT":"Greenland","GU_A3":"GRL","SU_DIF":0,"SUBUNIT":"Greenland","SU_A3":"GRL","BRK_DIFF":0,"NAME":"Greenland","NAME_LONG":"Greenland","BRK_A3":"GRL","BRK_NAME":"Greenland","BRK_GROUP":null,"ABBREV":"Grlnd.","POSTAL":"GL","FORMAL_EN":"Greenland","FORMAL_FR":null,"NAME_CIAWF":"Greenland","NOTE_ADM0":"Den.","NOTE_BRK":null,"NAME_SORT":"Greenland","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":12,"POP_EST":57713,"POP_RANK":8,"GDP_MD_EST":2173,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2015,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"GL","ISO_A2":"GL","ISO_A3":"GRL","ISO_A3_EH":"GRL","ISO_N3":"304","UN_A3":"304","WB_A2":"GL","WB_A3":"GRL","WOE_ID":23424828,"WOE_ID_EH":23424828,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GRL","ADM0_A3_US":"GRL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Northern America","REGION_WB":"Europe & Central Asia","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":-99,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[-73.297,60.03676,-12.20855,83.64513],"geometry":{"type":"Polygon","coordinates":[[[-46.76379,82.62796],[-43.40644,83.22516],[-39.89753,83.18018],[-38.62214,83.54905],[-35.08787,83.64513],[-27.10046,83.51966],[-20.84539,82.72669],[-22.69182,82.34165],[-26.51753,82.29765],[-31.9,82.2],[-31.39646,82.02154],[-27.85666,82.13178],[-24.84448,81.78697],[-22.90328,82.09317],[-22.07175,81.73449],[-23.16961,81.15271],[-20.62363,81.52462],[-15.76818,81.91245],[-12.77018,81.71885],[-12.20855,81.29154],[-16.28533,80.58004],[-16.85,80.35],[-20.04624,80.17708],[-17.73035,80.12912],[-18.9,79.4],[-19.70499,78.75128],[-19.67353,77.63859],[-18.47285,76.98565],[-20.03503,76.94434],[-21.67944,76.62795],[-19.83407,76.09808],[-19.59896,75.24838],[-20.66818,75.15585],[-19.37281,74.29561],[-21.59422,74.22382],[-20.43454,73.81713],[-20.76234,73.46436],[-22.17221,73.30955],[-23.56593,73.30663],[-22.31311,72.62928],[-22.29954,72.18409],[-24.27834,72.59788],[-24.79296,72.3302],[-23.44296,72.08016],[-22.13281,71.46898],[-21.75356,70.66369],[-23.53603,70.471],[-24.30702,70.85649],[-25.54341,71.43094],[-25.20135,70.75226],[-26.36276,70.22646],[-23.72742,70.18401],[-22.34902,70.12946],[-25.02927,69.2588],[-27.74737,68.47046],[-30.67371,68.12503],[-31.77665,68.12078],[-32.81105,67.73547],[-34.20196,66.67974],[-36.35284,65.9789],[-37.04378,65.93768],[-38.37505,65.69213],[-39.81222,65.45848],[-40.66899,64.83997],[-40.68281,64.13902],[-41.1887,63.48246],[-42.81938,62.68233],[-42.41666,61.90093],[-42.86619,61.07404],[-43.3784,60.09772],[-44.7875,60.03676],[-46.26364,60.85328],[-48.26294,60.85843],[-49.23308,61.40681],[-49.90039,62.38336],[-51.63325,63.62691],[-52.14014,64.27842],[-52.27659,65.1767],[-53.66166,66.09957],[-53.30161,66.8365],[-53.96911,67.18899],[-52.9804,68.35759],[-51.47536,68.72958],[-51.08041,69.14781],[-50.87122,69.9291],[-52.013585,69.574925],[-52.55792,69.42616],[-53.45629,69.283625],[-54.68336,69.61003],[-54.75001,70.28932],[-54.35884,70.821315],[-53.431315,70.835755],[-51.39014,70.56978],[-53.10937,71.20485],[-54.00422,71.54719],[-55,71.406537],[-55.83468,71.65444],[-54.71819,72.58625],[-55.32634,72.95861],[-56.12003,73.64977],[-57.32363,74.71026],[-58.59679,75.09861],[-58.58516,75.51727],[-61.26861,76.10238],[-63.39165,76.1752],[-66.06427,76.13486],[-68.50438,76.06141],[-69.66485,76.37975],[-71.40257,77.00857],[-68.77671,77.32312],[-66.76397,77.37595],[-71.04293,77.63595],[-73.297,78.04419],[-73.15938,78.43271],[-69.37345,78.91388],[-65.7107,79.39436],[-65.3239,79.75814],[-68.02298,80.11721],[-67.15129,80.51582],[-63.68925,81.21396],[-62.23444,81.3211],[-62.65116,81.77042],[-60.28249,82.03363],[-57.20744,82.19074],[-54.13442,82.19962],[-53.04328,81.88833],[-50.39061,82.43883],[-48.00386,82.06481],[-46.59984,81.985945],[-44.523,81.6607],[-46.9007,82.19979],[-46.76379,82.62796]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Guatemala","SOV_A3":"GTM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Guatemala","ADM0_A3":"GTM","GEOU_DIF":0,"GEOUNIT":"Guatemala","GU_A3":"GTM","SU_DIF":0,"SUBUNIT":"Guatemala","SU_A3":"GTM","BRK_DIFF":0,"NAME":"Guatemala","NAME_LONG":"Guatemala","BRK_A3":"GTM","BRK_NAME":"Guatemala","BRK_GROUP":null,"ABBREV":"Guat.","POSTAL":"GT","FORMAL_EN":"Republic of Guatemala","FORMAL_FR":null,"NAME_CIAWF":"Guatemala","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Guatemala","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":3,"MAPCOLOR9":3,"MAPCOLOR13":6,"POP_EST":15460732,"POP_RANK":14,"GDP_MD_EST":131800,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"GT","ISO_A2":"GT","ISO_A3":"GTM","ISO_A3_EH":"GTM","ISO_N3":"320","UN_A3":"320","WB_A2":"GT","WB_A3":"GTM","WOE_ID":23424834,"WOE_ID_EH":23424834,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GTM","ADM0_A3_US":"GTM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":5,"TINY":4,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-92.229249,13.735338,-88.225023,17.819326],"geometry":{"type":"Polygon","coordinates":[[[-89.14308,17.808319],[-89.150806,17.015577],[-89.229122,15.886938],[-88.930613,15.887273],[-88.604586,15.70638],[-88.518364,15.855389],[-88.225023,15.727722],[-88.68068,15.346247],[-89.154811,15.066419],[-89.22522,14.874286],[-89.145535,14.678019],[-89.353326,14.424133],[-89.587343,14.362586],[-89.534219,14.244816],[-89.721934,14.134228],[-90.064678,13.88197],[-90.095555,13.735338],[-90.608624,13.909771],[-91.23241,13.927832],[-91.689747,14.126218],[-92.22775,14.538829],[-92.20323,14.830103],[-92.087216,15.064585],[-92.229249,15.251447],[-91.74796,16.066565],[-90.464473,16.069562],[-90.438867,16.41011],[-90.600847,16.470778],[-90.711822,16.687483],[-91.08167,16.918477],[-91.453921,17.252177],[-91.002269,17.254658],[-91.00152,17.817595],[-90.067934,17.819326],[-89.14308,17.808319]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Guyana","SOV_A3":"GUY","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Guyana","ADM0_A3":"GUY","GEOU_DIF":0,"GEOUNIT":"Guyana","GU_A3":"GUY","SU_DIF":0,"SUBUNIT":"Guyana","SU_A3":"GUY","BRK_DIFF":0,"NAME":"Guyana","NAME_LONG":"Guyana","BRK_A3":"GUY","BRK_NAME":"Guyana","BRK_GROUP":null,"ABBREV":"Guy.","POSTAL":"GY","FORMAL_EN":"Co-operative Republic of Guyana","FORMAL_FR":null,"NAME_CIAWF":"Guyana","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Guyana","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":4,"MAPCOLOR13":8,"POP_EST":737718,"POP_RANK":11,"GDP_MD_EST":6093,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"GY","ISO_A2":"GY","ISO_A3":"GUY","ISO_A3_EH":"GUY","ISO_N3":"328","UN_A3":"328","WB_A2":"GY","WB_A3":"GUY","WOE_ID":23424836,"WOE_ID_EH":23424836,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"GUY","ADM0_A3_US":"GUY","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-61.410303,1.268088,-56.539386,8.367035],"geometry":{"type":"Polygon","coordinates":[[[-56.539386,1.899523],[-56.782704,1.863711],[-57.335823,1.948538],[-57.660971,1.682585],[-58.11345,1.507195],[-58.429477,1.463942],[-58.540013,1.268088],[-59.030862,1.317698],[-59.646044,1.786894],[-59.718546,2.24963],[-59.974525,2.755233],[-59.815413,3.606499],[-59.53804,3.958803],[-59.767406,4.423503],[-60.111002,4.574967],[-59.980959,5.014061],[-60.213683,5.244486],[-60.733574,5.200277],[-61.410303,5.959068],[-61.139415,6.234297],[-61.159336,6.696077],[-60.543999,6.856584],[-60.295668,7.043911],[-60.637973,7.415],[-60.550588,7.779603],[-59.758285,8.367035],[-59.101684,7.999202],[-58.482962,7.347691],[-58.454876,6.832787],[-58.078103,6.809094],[-57.542219,6.321268],[-57.147436,5.97315],[-57.307246,5.073567],[-57.914289,4.812626],[-57.86021,4.576801],[-58.044694,4.060864],[-57.601569,3.334655],[-57.281433,3.333492],[-57.150098,2.768927],[-56.539386,1.899523]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Honduras","SOV_A3":"HND","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Honduras","ADM0_A3":"HND","GEOU_DIF":0,"GEOUNIT":"Honduras","GU_A3":"HND","SU_DIF":0,"SUBUNIT":"Honduras","SU_A3":"HND","BRK_DIFF":0,"NAME":"Honduras","NAME_LONG":"Honduras","BRK_A3":"HND","BRK_NAME":"Honduras","BRK_GROUP":null,"ABBREV":"Hond.","POSTAL":"HN","FORMAL_EN":"Republic of Honduras","FORMAL_FR":null,"NAME_CIAWF":"Honduras","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Honduras","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":5,"MAPCOLOR9":2,"MAPCOLOR13":5,"POP_EST":9038741,"POP_RANK":13,"GDP_MD_EST":43190,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"HO","ISO_A2":"HN","ISO_A3":"HND","ISO_A3_EH":"HND","ISO_N3":"340","UN_A3":"340","WB_A2":"HN","WB_A3":"HND","WOE_ID":23424841,"WOE_ID_EH":23424841,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"HND","ADM0_A3_US":"HND","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[-89.353326,12.984686,-83.147219,16.005406],"geometry":{"type":"Polygon","coordinates":[[[-89.353326,14.424133],[-89.145535,14.678019],[-89.22522,14.874286],[-89.154811,15.066419],[-88.68068,15.346247],[-88.225023,15.727722],[-88.121153,15.688655],[-87.901813,15.864458],[-87.61568,15.878799],[-87.522921,15.797279],[-87.367762,15.84694],[-86.903191,15.756713],[-86.440946,15.782835],[-86.119234,15.893449],[-86.001954,16.005406],[-85.683317,15.953652],[-85.444004,15.885749],[-85.182444,15.909158],[-84.983722,15.995923],[-84.52698,15.857224],[-84.368256,15.835158],[-84.063055,15.648244],[-83.773977,15.424072],[-83.410381,15.270903],[-83.147219,14.995829],[-83.489989,15.016267],[-83.628585,14.880074],[-83.975721,14.749436],[-84.228342,14.748764],[-84.449336,14.621614],[-84.649582,14.666805],[-84.820037,14.819587],[-84.924501,14.790493],[-85.052787,14.551541],[-85.148751,14.560197],[-85.165365,14.35437],[-85.514413,14.079012],[-85.698665,13.960078],[-85.801295,13.836055],[-86.096264,14.038187],[-86.312142,13.771356],[-86.520708,13.778487],[-86.755087,13.754845],[-86.733822,13.263093],[-86.880557,13.254204],[-87.005769,13.025794],[-87.316654,12.984686],[-87.489409,13.297535],[-87.793111,13.38448],[-87.723503,13.78505],[-87.859515,13.893312],[-88.065343,13.964626],[-88.503998,13.845486],[-88.541231,13.980155],[-88.843073,14.140507],[-89.058512,14.340029],[-89.353326,14.424133]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Croatia","SOV_A3":"HRV","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Croatia","ADM0_A3":"HRV","GEOU_DIF":0,"GEOUNIT":"Croatia","GU_A3":"HRV","SU_DIF":0,"SUBUNIT":"Croatia","SU_A3":"HRV","BRK_DIFF":0,"NAME":"Croatia","NAME_LONG":"Croatia","BRK_A3":"HRV","BRK_NAME":"Croatia","BRK_GROUP":null,"ABBREV":"Cro.","POSTAL":"HR","FORMAL_EN":"Republic of Croatia","FORMAL_FR":null,"NAME_CIAWF":"Croatia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Croatia","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":4,"MAPCOLOR9":5,"MAPCOLOR13":1,"POP_EST":4292095,"POP_RANK":12,"GDP_MD_EST":94240,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"HR","ISO_A2":"HR","ISO_A3":"HRV","ISO_A3_EH":"HRV","ISO_N3":"191","UN_A3":"191","WB_A2":"HR","WB_A3":"HRV","WOE_ID":23424843,"WOE_ID_EH":23424843,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"HRV","ADM0_A3_US":"HRV","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[13.656976,42.479991,19.390476,46.503751],"geometry":{"type":"Polygon","coordinates":[[[19.005485,44.860234],[18.553214,45.08159],[17.861783,45.06774],[17.002146,45.233777],[16.534939,45.211608],[16.318157,45.004127],[15.959367,45.233777],[15.750026,44.818712],[16.23966,44.351143],[16.456443,44.04124],[16.916156,43.667722],[17.297373,43.446341],[17.674922,43.028563],[18.56,42.65],[18.450017,42.479992],[18.450016,42.479991],[17.50997,42.849995],[16.930006,43.209998],[16.015385,43.507215],[15.174454,44.243191],[15.37625,44.317915],[14.920309,44.738484],[14.901602,45.07606],[14.258748,45.233777],[13.952255,44.802124],[13.656976,45.136935],[13.679403,45.484149],[13.71506,45.500324],[14.411968,45.466166],[14.595109,45.634941],[14.935244,45.471695],[15.327675,45.452316],[15.323954,45.731783],[15.67153,45.834154],[15.768733,46.238108],[16.564808,46.503751],[16.882515,46.380632],[17.630066,45.951769],[18.456062,45.759481],[18.829825,45.908872],[19.072769,45.521511],[19.390476,45.236516],[19.005485,44.860234]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Haiti","SOV_A3":"HTI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Haiti","ADM0_A3":"HTI","GEOU_DIF":0,"GEOUNIT":"Haiti","GU_A3":"HTI","SU_DIF":0,"SUBUNIT":"Haiti","SU_A3":"HTI","BRK_DIFF":0,"NAME":"Haiti","NAME_LONG":"Haiti","BRK_A3":"HTI","BRK_NAME":"Haiti","BRK_GROUP":null,"ABBREV":"Haiti","POSTAL":"HT","FORMAL_EN":"Republic of Haiti","FORMAL_FR":null,"NAME_CIAWF":"Haiti","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Haiti","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":1,"MAPCOLOR9":7,"MAPCOLOR13":2,"POP_EST":10646714,"POP_RANK":14,"GDP_MD_EST":19340,"POP_YEAR":2017,"LASTCENSUS":2003,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"HA","ISO_A2":"HT","ISO_A3":"HTI","ISO_A3_EH":"HTI","ISO_N3":"332","UN_A3":"332","WB_A2":"HT","WB_A3":"HTI","WOE_ID":23424839,"WOE_ID_EH":23424839,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"HTI","ADM0_A3_US":"HTI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-74.458034,18.030993,-71.624873,19.915684],"geometry":{"type":"Polygon","coordinates":[[[-71.712361,19.714456],[-71.624873,19.169838],[-71.701303,18.785417],[-71.945112,18.6169],[-71.687738,18.31666],[-71.708305,18.044997],[-72.372476,18.214961],[-72.844411,18.145611],[-73.454555,18.217906],[-73.922433,18.030993],[-74.458034,18.34255],[-74.369925,18.664908],[-73.449542,18.526053],[-72.694937,18.445799],[-72.334882,18.668422],[-72.79165,19.101625],[-72.784105,19.483591],[-73.415022,19.639551],[-73.189791,19.915684],[-72.579673,19.871501],[-71.712361,19.714456]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Hungary","SOV_A3":"HUN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Hungary","ADM0_A3":"HUN","GEOU_DIF":0,"GEOUNIT":"Hungary","GU_A3":"HUN","SU_DIF":0,"SUBUNIT":"Hungary","SU_A3":"HUN","BRK_DIFF":0,"NAME":"Hungary","NAME_LONG":"Hungary","BRK_A3":"HUN","BRK_NAME":"Hungary","BRK_GROUP":null,"ABBREV":"Hun.","POSTAL":"HU","FORMAL_EN":"Republic of Hungary","FORMAL_FR":null,"NAME_CIAWF":"Hungary","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Hungary","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":6,"MAPCOLOR9":1,"MAPCOLOR13":5,"POP_EST":9850845,"POP_RANK":13,"GDP_MD_EST":267600,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"HU","ISO_A2":"HU","ISO_A3":"HUN","ISO_A3_EH":"HUN","ISO_N3":"348","UN_A3":"348","WB_A2":"HU","WB_A3":"HUN","WOE_ID":23424844,"WOE_ID_EH":23424844,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"HUN","ADM0_A3_US":"HUN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[16.202298,45.759481,22.710531,48.623854],"geometry":{"type":"Polygon","coordinates":[[[16.202298,46.852386],[16.534268,47.496171],[16.340584,47.712902],[16.903754,47.714866],[16.979667,48.123497],[17.488473,47.867466],[17.857133,47.758429],[18.696513,47.880954],[18.777025,48.081768],[19.174365,48.111379],[19.661364,48.266615],[19.769471,48.202691],[20.239054,48.327567],[20.473562,48.56285],[20.801294,48.623854],[21.872236,48.319971],[22.085608,48.422264],[22.64082,48.15024],[22.710531,47.882194],[22.099768,47.672439],[21.626515,46.994238],[21.021952,46.316088],[20.220192,46.127469],[19.596045,46.17173],[18.829838,45.908878],[18.829825,45.908872],[18.456062,45.759481],[17.630066,45.951769],[16.882515,46.380632],[16.564808,46.503751],[16.370505,46.841327],[16.202298,46.852386]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Indonesia","SOV_A3":"IDN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Indonesia","ADM0_A3":"IDN","GEOU_DIF":0,"GEOUNIT":"Indonesia","GU_A3":"IDN","SU_DIF":0,"SUBUNIT":"Indonesia","SU_A3":"IDN","BRK_DIFF":0,"NAME":"Indonesia","NAME_LONG":"Indonesia","BRK_A3":"IDN","BRK_NAME":"Indonesia","BRK_GROUP":null,"ABBREV":"Indo.","POSTAL":"INDO","FORMAL_EN":"Republic of Indonesia","FORMAL_FR":null,"NAME_CIAWF":"Indonesia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Indonesia","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":6,"MAPCOLOR9":6,"MAPCOLOR13":11,"POP_EST":260580739,"POP_RANK":17,"GDP_MD_EST":3028000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"4. Emerging region:MIKT","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"ID","ISO_A2":"ID","ISO_A3":"IDN","ISO_A3_EH":"IDN","ISO_N3":"360","UN_A3":"360","WB_A2":"ID","WB_A3":"IDN","WOE_ID":23424846,"WOE_ID_EH":23424846,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"IDN","ADM0_A3_US":"IDN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[95.293026,-10.359987,141.033852,5.479821],"geometry":{"type":"MultiPolygon","coordinates":[[[[120.715609,-10.239581],[120.295014,-10.25865],[118.967808,-9.557969],[119.90031,-9.36134],[120.425756,-9.665921],[120.775502,-9.969675],[120.715609,-10.239581]]],[[[124.968682,-8.89279],[125.07002,-9.089987],[125.08852,-9.393173],[124.43595,-10.140001],[123.579982,-10.359987],[123.459989,-10.239995],[123.550009,-9.900016],[123.980009,-9.290027],[124.968682,-8.89279]]],[[[117.900018,-8.095681],[118.260616,-8.362383],[118.87846,-8.280683],[119.126507,-8.705825],[117.970402,-8.906639],[117.277731,-9.040895],[116.740141,-9.032937],[117.083737,-8.457158],[117.632024,-8.449303],[117.900018,-8.095681]]],[[[122.903537,-8.094234],[122.756983,-8.649808],[121.254491,-8.933666],[119.924391,-8.810418],[119.920929,-8.444859],[120.715092,-8.236965],[121.341669,-8.53674],[122.007365,-8.46062],[122.903537,-8.094234]]],[[[108.623479,-6.777674],[110.539227,-6.877358],[110.759576,-6.465186],[112.614811,-6.946036],[112.978768,-7.594213],[114.478935,-7.776528],[115.705527,-8.370807],[114.564511,-8.751817],[113.464734,-8.348947],[112.559672,-8.376181],[111.522061,-8.302129],[110.58615,-8.122605],[109.427667,-7.740664],[108.693655,-7.6416],[108.277763,-7.766657],[106.454102,-7.3549],[106.280624,-6.9249],[105.365486,-6.851416],[106.051646,-5.895919],[107.265009,-5.954985],[108.072091,-6.345762],[108.486846,-6.421985],[108.623479,-6.777674]]],[[[134.724624,-6.214401],[134.210134,-6.895238],[134.112776,-6.142467],[134.290336,-5.783058],[134.499625,-5.445042],[134.727002,-5.737582],[134.724624,-6.214401]]],[[[127.249215,-3.459065],[126.874923,-3.790983],[126.183802,-3.607376],[125.989034,-3.177273],[127.000651,-3.129318],[127.249215,-3.459065]]],[[[130.471344,-3.093764],[130.834836,-3.858472],[129.990547,-3.446301],[129.155249,-3.362637],[128.590684,-3.428679],[127.898891,-3.393436],[128.135879,-2.84365],[129.370998,-2.802154],[130.471344,-3.093764]]],[[[141.00021,-2.600151],[141.017057,-5.859022],[141.033852,-9.117893],[140.143415,-8.297168],[139.127767,-8.096043],[138.881477,-8.380935],[137.614474,-8.411683],[138.039099,-7.597882],[138.668621,-7.320225],[138.407914,-6.232849],[137.92784,-5.393366],[135.98925,-4.546544],[135.164598,-4.462931],[133.66288,-3.538853],[133.367705,-4.024819],[132.983956,-4.112979],[132.756941,-3.746283],[132.753789,-3.311787],[131.989804,-2.820551],[133.066845,-2.460418],[133.780031,-2.479848],[133.696212,-2.214542],[132.232373,-2.212526],[131.836222,-1.617162],[130.94284,-1.432522],[130.519558,-0.93772],[131.867538,-0.695461],[132.380116,-0.369538],[133.985548,-0.78021],[134.143368,-1.151867],[134.422627,-2.769185],[135.457603,-3.367753],[136.293314,-2.307042],[137.440738,-1.703513],[138.329727,-1.702686],[139.184921,-2.051296],[139.926684,-2.409052],[141.00021,-2.600151]]],[[[125.240501,1.419836],[124.437035,0.427881],[123.685505,0.235593],[122.723083,0.431137],[121.056725,0.381217],[120.183083,0.237247],[120.04087,-0.519658],[120.935905,-1.408906],[121.475821,-0.955962],[123.340565,-0.615673],[123.258399,-1.076213],[122.822715,-0.930951],[122.38853,-1.516858],[121.508274,-1.904483],[122.454572,-3.186058],[122.271896,-3.5295],[123.170963,-4.683693],[123.162333,-5.340604],[122.628515,-5.634591],[122.236394,-5.282933],[122.719569,-4.464172],[121.738234,-4.851331],[121.489463,-4.574553],[121.619171,-4.188478],[120.898182,-3.602105],[120.972389,-2.627643],[120.305453,-2.931604],[120.390047,-4.097579],[120.430717,-5.528241],[119.796543,-5.6734],[119.366906,-5.379878],[119.653606,-4.459417],[119.498835,-3.494412],[119.078344,-3.487022],[118.767769,-2.801999],[119.180974,-2.147104],[119.323394,-1.353147],[119.825999,0.154254],[120.035702,0.566477],[120.885779,1.309223],[121.666817,1.013944],[122.927567,0.875192],[124.077522,0.917102],[125.065989,1.643259],[125.240501,1.419836]]],[[[128.688249,1.132386],[128.635952,0.258486],[128.12017,0.356413],[127.968034,-0.252077],[128.379999,-0.780004],[128.100016,-0.899996],[127.696475,-0.266598],[127.39949,1.011722],[127.600512,1.810691],[127.932378,2.174596],[128.004156,1.628531],[128.594559,1.540811],[128.688249,1.132386]]],[[[109.66326,2.006467],[109.830227,1.338136],[110.514061,0.773131],[111.159138,0.976478],[111.797548,0.904441],[112.380252,1.410121],[112.859809,1.49779],[113.80585,1.217549],[114.621355,1.430688],[115.134037,2.821482],[115.519078,3.169238],[115.865517,4.306559],[117.015214,4.306094],[117.882035,4.137551],[117.313232,3.234428],[118.04833,2.28769],[117.875627,1.827641],[118.996747,0.902219],[117.811858,0.784242],[117.478339,0.102475],[117.521644,-0.803723],[116.560048,-1.487661],[116.533797,-2.483517],[116.148084,-4.012726],[116.000858,-3.657037],[114.864803,-4.106984],[114.468652,-3.495704],[113.755672,-3.43917],[113.256994,-3.118776],[112.068126,-3.478392],[111.703291,-2.994442],[111.04824,-3.049426],[110.223846,-2.934032],[110.070936,-1.592874],[109.571948,-1.314907],[109.091874,-0.459507],[108.952658,0.415375],[109.069136,1.341934],[109.66326,2.006467]]],[[[105.817655,-5.852356],[104.710384,-5.873285],[103.868213,-5.037315],[102.584261,-4.220259],[102.156173,-3.614146],[101.399113,-2.799777],[100.902503,-2.050262],[100.141981,-0.650348],[99.26374,0.183142],[98.970011,1.042882],[98.601351,1.823507],[97.699598,2.453184],[97.176942,3.308791],[96.424017,3.86886],[95.380876,4.970782],[95.293026,5.479821],[95.936863,5.439513],[97.484882,5.246321],[98.369169,4.26837],[99.142559,3.59035],[99.693998,3.174329],[100.641434,2.099381],[101.658012,2.083697],[102.498271,1.3987],[103.07684,0.561361],[103.838396,0.104542],[103.437645,-0.711946],[104.010789,-1.059212],[104.369991,-1.084843],[104.53949,-1.782372],[104.887893,-2.340425],[105.622111,-2.428844],[106.108593,-3.061777],[105.857446,-4.305525],[105.817655,-5.852356]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"India","SOV_A3":"IND","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"India","ADM0_A3":"IND","GEOU_DIF":0,"GEOUNIT":"India","GU_A3":"IND","SU_DIF":0,"SUBUNIT":"India","SU_A3":"IND","BRK_DIFF":0,"NAME":"India","NAME_LONG":"India","BRK_A3":"IND","BRK_NAME":"India","BRK_GROUP":null,"ABBREV":"India","POSTAL":"IND","FORMAL_EN":"Republic of India","FORMAL_FR":null,"NAME_CIAWF":"India","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"India","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":3,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":1281935911,"POP_RANK":18,"GDP_MD_EST":8721000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"3. Emerging region:BRIC","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"IN","ISO_A2":"IN","ISO_A3":"IND","ISO_A3_EH":"IND","ISO_N3":"356","UN_A3":"356","WB_A2":"IN","WB_A3":"IND","WOE_ID":23424848,"WOE_ID_EH":23424848,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"IND","ADM0_A3_US":"IND","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[68.176645,7.965535,97.402561,35.49401],"geometry":{"type":"Polygon","coordinates":[[[92.672721,22.041239],[92.146035,23.627499],[91.869928,23.624346],[91.706475,22.985264],[91.158963,23.503527],[91.46773,24.072639],[91.915093,24.130414],[92.376202,24.976693],[91.799596,25.147432],[90.872211,25.132601],[89.920693,25.26975],[89.832481,25.965082],[89.355094,26.014407],[88.563049,26.446526],[88.209789,25.768066],[88.931554,25.238692],[88.306373,24.866079],[88.084422,24.501657],[88.69994,24.233715],[88.52977,23.631142],[88.876312,22.879146],[89.031961,22.055708],[88.888766,21.690588],[88.208497,21.703172],[86.975704,21.495562],[87.033169,20.743308],[86.499351,20.151638],[85.060266,19.478579],[83.941006,18.30201],[83.189217,17.671221],[82.192792,17.016636],[82.191242,16.556664],[81.692719,16.310219],[80.791999,15.951972],[80.324896,15.899185],[80.025069,15.136415],[80.233274,13.835771],[80.286294,13.006261],[79.862547,12.056215],[79.857999,10.357275],[79.340512,10.308854],[78.885345,9.546136],[79.18972,9.216544],[78.277941,8.933047],[77.941165,8.252959],[77.539898,7.965535],[76.592979,8.899276],[76.130061,10.29963],[75.746467,11.308251],[75.396101,11.781245],[74.864816,12.741936],[74.616717,13.992583],[74.443859,14.617222],[73.534199,15.990652],[73.119909,17.92857],[72.820909,19.208234],[72.824475,20.419503],[72.630533,21.356009],[71.175273,20.757441],[70.470459,20.877331],[69.16413,22.089298],[69.644928,22.450775],[69.349597,22.84318],[68.176645,23.691965],[68.842599,24.359134],[71.04324,24.356524],[70.844699,25.215102],[70.282873,25.722229],[70.168927,26.491872],[69.514393,26.940966],[70.616496,27.989196],[71.777666,27.91318],[72.823752,28.961592],[73.450638,29.976413],[74.42138,30.979815],[74.405929,31.692639],[75.258642,32.271105],[74.451559,32.7649],[74.104294,33.441473],[73.749948,34.317699],[74.240203,34.748887],[75.757061,34.504923],[76.871722,34.653544],[77.837451,35.49401],[78.912269,34.321936],[78.811086,33.506198],[79.208892,32.994395],[79.176129,32.48378],[78.458446,32.618164],[78.738894,31.515906],[79.721367,30.882715],[81.111256,30.183481],[80.476721,29.729865],[80.088425,28.79447],[81.057203,28.416095],[81.999987,27.925479],[83.304249,27.364506],[84.675018,27.234901],[85.251779,26.726198],[86.024393,26.630985],[87.227472,26.397898],[88.060238,26.414615],[88.174804,26.810405],[88.043133,27.445819],[88.120441,27.876542],[88.730326,28.086865],[88.814248,27.299316],[88.835643,27.098966],[89.744528,26.719403],[90.373275,26.875724],[91.217513,26.808648],[92.033484,26.83831],[92.103712,27.452614],[91.696657,27.771742],[92.503119,27.896876],[93.413348,28.640629],[94.56599,29.277438],[95.404802,29.031717],[96.117679,29.452802],[96.586591,28.83098],[96.248833,28.411031],[97.327114,28.261583],[97.402561,27.882536],[97.051989,27.699059],[97.133999,27.083774],[96.419366,27.264589],[95.124768,26.573572],[95.155153,26.001307],[94.603249,25.162495],[94.552658,24.675238],[94.106742,23.850741],[93.325188,24.078556],[93.286327,23.043658],[93.060294,22.703111],[93.166128,22.27846],[92.672721,22.041239]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Ireland","SOV_A3":"IRL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ireland","ADM0_A3":"IRL","GEOU_DIF":0,"GEOUNIT":"Ireland","GU_A3":"IRL","SU_DIF":0,"SUBUNIT":"Ireland","SU_A3":"IRL","BRK_DIFF":0,"NAME":"Ireland","NAME_LONG":"Ireland","BRK_A3":"IRL","BRK_NAME":"Ireland","BRK_GROUP":null,"ABBREV":"Ire.","POSTAL":"IRL","FORMAL_EN":"Ireland","FORMAL_FR":null,"NAME_CIAWF":"Ireland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Ireland","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":3,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":5011102,"POP_RANK":13,"GDP_MD_EST":322000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"EI","ISO_A2":"IE","ISO_A3":"IRL","ISO_A3_EH":"IRL","ISO_N3":"372","UN_A3":"372","WB_A2":"IE","WB_A3":"IRL","WOE_ID":23424803,"WOE_ID_EH":23424803,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"IRL","ADM0_A3_US":"IRL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-9.977086,51.669301,-6.032985,55.131622],"geometry":{"type":"Polygon","coordinates":[[[-7.572168,55.131622],[-7.366031,54.595841],[-7.572168,54.059956],[-6.95373,54.073702],[-6.197885,53.867565],[-6.032985,53.153164],[-6.788857,52.260118],[-8.561617,51.669301],[-9.977086,51.820455],[-9.166283,52.864629],[-9.688525,53.881363],[-8.327987,54.664519],[-7.572168,55.131622]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Iran","SOV_A3":"IRN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Iran","ADM0_A3":"IRN","GEOU_DIF":0,"GEOUNIT":"Iran","GU_A3":"IRN","SU_DIF":0,"SUBUNIT":"Iran","SU_A3":"IRN","BRK_DIFF":0,"NAME":"Iran","NAME_LONG":"Iran","BRK_A3":"IRN","BRK_NAME":"Iran","BRK_GROUP":null,"ABBREV":"Iran","POSTAL":"IRN","FORMAL_EN":"Islamic Republic of Iran","FORMAL_FR":null,"NAME_CIAWF":"Iran","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Iran, Islamic Rep.","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":13,"POP_EST":82021564,"POP_RANK":16,"GDP_MD_EST":1459000,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"IR","ISO_A2":"IR","ISO_A3":"IRN","ISO_A3_EH":"IRN","ISO_N3":"364","UN_A3":"364","WB_A2":"IR","WB_A3":"IRN","WOE_ID":23424851,"WOE_ID_EH":23424851,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"IRN","ADM0_A3_US":"IRN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2.5,"MAX_LABEL":6.7},"bbox":[44.109225,25.078237,63.316632,39.713003],"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[60.803193,34.404102],[60.52843,33.676446],[60.9637,33.528832],[60.536078,32.981269],[60.863655,32.18292],[60.941945,31.548075],[61.699314,31.379506],[61.781222,30.73585],[60.874248,29.829239],[61.369309,29.303276],[61.771868,28.699334],[62.72783,28.259645],[62.755426,27.378923],[63.233898,27.217047],[63.316632,26.756532],[61.874187,26.239975],[61.497363,25.078237],[59.616134,25.380157],[58.525761,25.609962],[57.397251,25.739902],[56.970766,26.966106],[56.492139,27.143305],[55.72371,26.964633],[54.71509,26.480658],[53.493097,26.812369],[52.483598,27.580849],[51.520763,27.86569],[50.852948,28.814521],[50.115009,30.147773],[49.57685,29.985715],[48.941333,30.31709],[48.567971,29.926778],[48.014568,30.452457],[48.004698,30.985137],[47.685286,30.984853],[47.849204,31.709176],[47.334661,32.469155],[46.109362,33.017287],[45.416691,33.967798],[45.64846,34.748138],[46.151788,35.093259],[46.07634,35.677383],[45.420618,35.977546],[44.772677,37.170437],[44.77267,37.17045],[44.225756,37.971584],[44.421403,38.281281],[44.109225,39.428136],[44.79399,39.713003],[44.952688,39.335765],[45.457722,38.874139],[46.143623,38.741201],[46.50572,38.770605],[47.685079,39.508364],[48.060095,39.582235],[48.355529,39.288765],[48.010744,38.794015],[48.634375,38.270378],[48.883249,38.320245],[49.199612,37.582874],[50.147771,37.374567],[50.842354,36.872814],[52.264025,36.700422],[53.82579,36.965031],[53.921598,37.198918],[54.800304,37.392421],[55.511578,37.964117],[56.180375,37.935127],[56.619366,38.121394],[57.330434,38.029229],[58.436154,37.522309],[59.234762,37.412988],[60.377638,36.527383],[61.123071,36.491597],[61.210817,35.650072]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Iraq","SOV_A3":"IRQ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Iraq","ADM0_A3":"IRQ","GEOU_DIF":0,"GEOUNIT":"Iraq","GU_A3":"IRQ","SU_DIF":0,"SUBUNIT":"Iraq","SU_A3":"IRQ","BRK_DIFF":0,"NAME":"Iraq","NAME_LONG":"Iraq","BRK_A3":"IRQ","BRK_NAME":"Iraq","BRK_GROUP":null,"ABBREV":"Iraq","POSTAL":"IRQ","FORMAL_EN":"Republic of Iraq","FORMAL_FR":null,"NAME_CIAWF":"Iraq","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Iraq","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":3,"MAPCOLOR13":1,"POP_EST":39192111,"POP_RANK":15,"GDP_MD_EST":596700,"POP_YEAR":2017,"LASTCENSUS":1997,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"IZ","ISO_A2":"IQ","ISO_A3":"IRQ","ISO_A3_EH":"IRQ","ISO_N3":"368","UN_A3":"368","WB_A2":"IQ","WB_A3":"IRQ","WOE_ID":23424855,"WOE_ID_EH":23424855,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"IRQ","ADM0_A3_US":"IRQ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7.5},"bbox":[38.792341,29.099025,48.567971,37.385264],"geometry":{"type":"Polygon","coordinates":[[[44.772677,37.170437],[45.420618,35.977546],[46.07634,35.677383],[46.151788,35.093259],[45.64846,34.748138],[45.416691,33.967798],[46.109362,33.017287],[47.334661,32.469155],[47.849204,31.709176],[47.685286,30.984853],[48.004698,30.985137],[48.014568,30.452457],[48.567971,29.926778],[47.974519,29.975819],[47.302622,30.05907],[46.568713,29.099025],[44.709499,29.178891],[41.889981,31.190009],[40.399994,31.889992],[39.195468,32.161009],[38.792341,33.378686],[41.006159,34.419372],[41.383965,35.628317],[41.289707,36.358815],[41.837064,36.605854],[42.349591,37.229873],[42.779126,37.385264],[43.942259,37.256228],[44.293452,37.001514],[44.772677,37.170437]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Iceland","SOV_A3":"ISL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Iceland","ADM0_A3":"ISL","GEOU_DIF":0,"GEOUNIT":"Iceland","GU_A3":"ISL","SU_DIF":0,"SUBUNIT":"Iceland","SU_A3":"ISL","BRK_DIFF":0,"NAME":"Iceland","NAME_LONG":"Iceland","BRK_A3":"ISL","BRK_NAME":"Iceland","BRK_GROUP":null,"ABBREV":"Iceland","POSTAL":"IS","FORMAL_EN":"Republic of Iceland","FORMAL_FR":null,"NAME_CIAWF":"Iceland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Iceland","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":9,"POP_EST":339747,"POP_RANK":10,"GDP_MD_EST":16150,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"IC","ISO_A2":"IS","ISO_A3":"ISL","ISO_A3_EH":"ISL","ISO_N3":"352","UN_A3":"352","WB_A2":"IS","WB_A3":"ISL","WOE_ID":23424845,"WOE_ID_EH":23424845,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ISL","ADM0_A3_US":"ISL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[-24.326184,63.496383,-13.609732,66.526792],"geometry":{"type":"Polygon","coordinates":[[[-14.508695,66.455892],[-14.739637,65.808748],[-13.609732,65.126671],[-14.909834,64.364082],[-17.794438,63.678749],[-18.656246,63.496383],[-19.972755,63.643635],[-22.762972,63.960179],[-21.778484,64.402116],[-23.955044,64.89113],[-22.184403,65.084968],[-22.227423,65.378594],[-24.326184,65.611189],[-23.650515,66.262519],[-22.134922,66.410469],[-20.576284,65.732112],[-19.056842,66.276601],[-17.798624,65.993853],[-16.167819,66.526792],[-14.508695,66.455892]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Israel","SOV_A3":"IS1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Israel","ADM0_A3":"ISR","GEOU_DIF":0,"GEOUNIT":"Israel","GU_A3":"ISR","SU_DIF":0,"SUBUNIT":"Israel","SU_A3":"ISR","BRK_DIFF":0,"NAME":"Israel","NAME_LONG":"Israel","BRK_A3":"ISR","BRK_NAME":"Israel","BRK_GROUP":null,"ABBREV":"Isr.","POSTAL":"IS","FORMAL_EN":"State of Israel","FORMAL_FR":null,"NAME_CIAWF":"Israel","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Israel","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":9,"POP_EST":8299706,"POP_RANK":13,"GDP_MD_EST":297000,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"IL","ISO_A3":"ISR","ISO_A3_EH":"ISR","ISO_N3":"376","UN_A3":"376","WB_A2":"IL","WB_A3":"ISR","WOE_ID":23424852,"WOE_ID_EH":23424852,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ISR","ADM0_A3_US":"ISR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[34.265433,29.501326,35.836397,33.277426],"geometry":{"type":"Polygon","coordinates":[[[34.823243,29.761081],[34.26544,31.21936],[34.265435,31.219357],[34.265433,31.219361],[34.556372,31.548824],[34.488107,31.605539],[34.752587,32.072926],[34.955417,32.827376],[35.098457,33.080539],[35.126053,33.0909],[35.460709,33.08904],[35.552797,33.264275],[35.821101,33.277426],[35.836397,32.868123],[35.700798,32.716014],[35.719918,32.709192],[35.545665,32.393992],[35.18393,32.532511],[34.974641,31.866582],[35.225892,31.754341],[34.970507,31.616778],[34.927408,31.353435],[35.397561,31.489086],[35.420918,31.100066],[34.922603,29.501326],[34.823243,29.761081]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Italy","SOV_A3":"ITA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Italy","ADM0_A3":"ITA","GEOU_DIF":0,"GEOUNIT":"Italy","GU_A3":"ITA","SU_DIF":0,"SUBUNIT":"Italy","SU_A3":"ITA","BRK_DIFF":0,"NAME":"Italy","NAME_LONG":"Italy","BRK_A3":"ITA","BRK_NAME":"Italy","BRK_GROUP":null,"ABBREV":"Italy","POSTAL":"I","FORMAL_EN":"Italian Republic","FORMAL_FR":null,"NAME_CIAWF":"Italy","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Italy","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":7,"MAPCOLOR9":8,"MAPCOLOR13":7,"POP_EST":62137802,"POP_RANK":16,"GDP_MD_EST":2221000,"POP_YEAR":2017,"LASTCENSUS":2012,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"IT","ISO_A2":"IT","ISO_A3":"ITA","ISO_A3_EH":"ITA","ISO_N3":"380","UN_A3":"380","WB_A2":"IT","WB_A3":"ITA","WOE_ID":23424853,"WOE_ID_EH":23424853,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ITA","ADM0_A3_US":"ITA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[6.749955,36.619987,18.480247,47.115393],"geometry":{"type":"MultiPolygon","coordinates":[[[[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546]]],[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Jamaica","SOV_A3":"JAM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Jamaica","ADM0_A3":"JAM","GEOU_DIF":0,"GEOUNIT":"Jamaica","GU_A3":"JAM","SU_DIF":0,"SUBUNIT":"Jamaica","SU_A3":"JAM","BRK_DIFF":0,"NAME":"Jamaica","NAME_LONG":"Jamaica","BRK_A3":"JAM","BRK_NAME":"Jamaica","BRK_GROUP":null,"ABBREV":"Jam.","POSTAL":"J","FORMAL_EN":"Jamaica","FORMAL_FR":null,"NAME_CIAWF":"Jamaica","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Jamaica","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":4,"MAPCOLOR13":10,"POP_EST":2990561,"POP_RANK":12,"GDP_MD_EST":25390,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"JM","ISO_A2":"JM","ISO_A3":"JAM","ISO_A3_EH":"JAM","ISO_N3":"388","UN_A3":"388","WB_A2":"JM","WB_A3":"JAM","WOE_ID":23424858,"WOE_ID_EH":23424858,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"JAM","ADM0_A3_US":"JAM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-78.337719,17.701116,-76.199659,18.524218],"geometry":{"type":"Polygon","coordinates":[[[-77.569601,18.490525],[-76.896619,18.400867],[-76.365359,18.160701],[-76.199659,17.886867],[-76.902561,17.868238],[-77.206341,17.701116],[-77.766023,17.861597],[-78.337719,18.225968],[-78.217727,18.454533],[-77.797365,18.524218],[-77.569601,18.490525]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Jordan","SOV_A3":"JOR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Jordan","ADM0_A3":"JOR","GEOU_DIF":0,"GEOUNIT":"Jordan","GU_A3":"JOR","SU_DIF":0,"SUBUNIT":"Jordan","SU_A3":"JOR","BRK_DIFF":0,"NAME":"Jordan","NAME_LONG":"Jordan","BRK_A3":"JOR","BRK_NAME":"Jordan","BRK_GROUP":null,"ABBREV":"Jord.","POSTAL":"J","FORMAL_EN":"Hashemite Kingdom of Jordan","FORMAL_FR":null,"NAME_CIAWF":"Jordan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Jordan","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":4,"POP_EST":10248069,"POP_RANK":14,"GDP_MD_EST":86190,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"JO","ISO_A2":"JO","ISO_A3":"JOR","ISO_A3_EH":"JOR","ISO_N3":"400","UN_A3":"400","WB_A2":"JO","WB_A3":"JOR","WOE_ID":23424860,"WOE_ID_EH":23424860,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"JOR","ADM0_A3_US":"JOR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[34.922603,29.197495,39.195468,33.378686],"geometry":{"type":"Polygon","coordinates":[[[38.792341,33.378686],[39.195468,32.161009],[39.004886,32.010217],[37.002166,31.508413],[37.998849,30.5085],[37.66812,30.338665],[37.503582,30.003776],[36.740528,29.865283],[36.501214,29.505254],[36.068941,29.197495],[34.956037,29.356555],[34.922603,29.501326],[35.420918,31.100066],[35.397561,31.489086],[35.545252,31.782505],[35.545665,32.393992],[35.719918,32.709192],[36.834062,32.312938],[38.792341,33.378686]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Japan","SOV_A3":"JPN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Japan","ADM0_A3":"JPN","GEOU_DIF":0,"GEOUNIT":"Japan","GU_A3":"JPN","SU_DIF":0,"SUBUNIT":"Japan","SU_A3":"JPN","BRK_DIFF":0,"NAME":"Japan","NAME_LONG":"Japan","BRK_A3":"JPN","BRK_NAME":"Japan","BRK_GROUP":null,"ABBREV":"Japan","POSTAL":"J","FORMAL_EN":"Japan","FORMAL_FR":null,"NAME_CIAWF":"Japan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Japan","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":5,"MAPCOLOR13":4,"POP_EST":126451398,"POP_RANK":17,"GDP_MD_EST":4932000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"JA","ISO_A2":"JP","ISO_A3":"JPN","ISO_A3_EH":"JPN","ISO_N3":"392","UN_A3":"392","WB_A2":"JP","WB_A3":"JPN","WOE_ID":23424856,"WOE_ID_EH":23424856,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"JPN","ADM0_A3_US":"JPN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":7},"bbox":[129.408463,31.029579,145.543137,45.551483],"geometry":{"type":"MultiPolygon","coordinates":[[[[134.638428,34.149234],[134.766379,33.806335],[134.203416,33.201178],[133.79295,33.521985],[133.280268,33.28957],[133.014858,32.704567],[132.363115,32.989382],[132.371176,33.463642],[132.924373,34.060299],[133.492968,33.944621],[133.904106,34.364931],[134.638428,34.149234]]],[[[140.976388,37.142074],[140.59977,36.343983],[140.774074,35.842877],[140.253279,35.138114],[138.975528,34.6676],[137.217599,34.606286],[135.792983,33.464805],[135.120983,33.849071],[135.079435,34.596545],[133.340316,34.375938],[132.156771,33.904933],[130.986145,33.885761],[132.000036,33.149992],[131.33279,31.450355],[130.686318,31.029579],[130.20242,31.418238],[130.447676,32.319475],[129.814692,32.61031],[129.408463,33.296056],[130.353935,33.604151],[130.878451,34.232743],[131.884229,34.749714],[132.617673,35.433393],[134.608301,35.731618],[135.677538,35.527134],[136.723831,37.304984],[137.390612,36.827391],[138.857602,37.827485],[139.426405,38.215962],[140.05479,39.438807],[139.883379,40.563312],[140.305783,41.195005],[141.368973,41.37856],[141.914263,39.991616],[141.884601,39.180865],[140.959489,38.174001],[140.976388,37.142074]]],[[[143.910162,44.1741],[144.613427,43.960883],[145.320825,44.384733],[145.543137,43.262088],[144.059662,42.988358],[143.18385,41.995215],[141.611491,42.678791],[141.067286,41.584594],[139.955106,41.569556],[139.817544,42.563759],[140.312087,43.333273],[141.380549,43.388825],[141.671952,44.772125],[141.967645,45.551483],[143.14287,44.510358],[143.910162,44.1741]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Kazakhstan","SOV_A3":"KAZ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Kazakhstan","ADM0_A3":"KAZ","GEOU_DIF":0,"GEOUNIT":"Kazakhstan","GU_A3":"KAZ","SU_DIF":0,"SUBUNIT":"Kazakhstan","SU_A3":"KAZ","BRK_DIFF":0,"NAME":"Kazakhstan","NAME_LONG":"Kazakhstan","BRK_A3":"KAZ","BRK_NAME":"Kazakhstan","BRK_GROUP":null,"ABBREV":"Kaz.","POSTAL":"KZ","FORMAL_EN":"Republic of Kazakhstan","FORMAL_FR":null,"NAME_CIAWF":"Kazakhstan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Kazakhstan","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":1,"MAPCOLOR9":6,"MAPCOLOR13":1,"POP_EST":18556698,"POP_RANK":14,"GDP_MD_EST":460700,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"KZ","ISO_A2":"KZ","ISO_A3":"KAZ","ISO_A3_EH":"KAZ","ISO_N3":"398","UN_A3":"398","WB_A2":"KZ","WB_A3":"KAZ","WOE_ID":-90,"WOE_ID_EH":23424871,"WOE_NOTE":"Includes Baykonur Cosmodrome as an admin-1","ADM0_A3_IS":"KAZ","ADM0_A3_US":"KAZ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Central Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[46.466446,40.662325,87.35997,55.38525],"geometry":{"type":"Polygon","coordinates":[[[87.35997,49.214981],[86.598776,48.549182],[85.768233,48.455751],[85.720484,47.452969],[85.16429,47.000956],[83.180484,47.330031],[82.458926,45.53965],[81.947071,45.317027],[79.966106,44.917517],[80.866206,43.180362],[80.18015,42.920068],[80.25999,42.349999],[79.643645,42.496683],[79.142177,42.856092],[77.658392,42.960686],[76.000354,42.988022],[75.636965,42.8779],[74.212866,43.298339],[73.645304,43.091272],[73.489758,42.500894],[71.844638,42.845395],[71.186281,42.704293],[70.962315,42.266154],[70.388965,42.081308],[69.070027,41.384244],[68.632483,40.668681],[68.259896,40.662325],[67.985856,41.135991],[66.714047,41.168444],[66.510649,41.987644],[66.023392,41.994646],[66.098012,42.99766],[64.900824,43.728081],[63.185787,43.650075],[62.0133,43.504477],[61.05832,44.405817],[60.239972,44.784037],[58.689989,45.500014],[58.503127,45.586804],[55.928917,44.995858],[55.968191,41.308642],[55.455251,41.259859],[54.755345,42.043971],[54.079418,42.324109],[52.944293,42.116034],[52.50246,41.783316],[52.446339,42.027151],[52.692112,42.443895],[52.501426,42.792298],[51.342427,43.132975],[50.891292,44.031034],[50.339129,44.284016],[50.305643,44.609836],[51.278503,44.514854],[51.316899,45.245998],[52.16739,45.408391],[53.040876,45.259047],[53.220866,46.234646],[53.042737,46.853006],[52.042023,46.804637],[51.191945,47.048705],[50.034083,46.60899],[49.10116,46.39933],[48.59325,46.56104],[48.694734,47.075628],[48.05725,47.74377],[47.31524,47.71585],[46.466446,48.394152],[47.043672,49.152039],[46.751596,49.356006],[47.54948,50.454698],[48.577841,49.87476],[48.702382,50.605128],[50.766648,51.692762],[52.328724,51.718652],[54.532878,51.02624],[55.71694,50.62171],[56.77798,51.04355],[58.36332,51.06364],[59.642282,50.545442],[59.932807,50.842194],[61.337424,50.79907],[61.588003,51.272659],[59.967534,51.96042],[60.927269,52.447548],[60.739993,52.719986],[61.699986,52.979996],[60.978066,53.664993],[61.4366,54.00625],[65.178534,54.354228],[65.66687,54.60125],[68.1691,54.970392],[69.068167,55.38525],[70.865267,55.169734],[71.180131,54.133285],[72.22415,54.376655],[73.508516,54.035617],[73.425679,53.48981],[74.38482,53.54685],[76.8911,54.490524],[76.525179,54.177003],[77.800916,53.404415],[80.03556,50.864751],[80.568447,51.388336],[81.945986,50.812196],[83.383004,51.069183],[83.935115,50.889246],[84.416377,50.3114],[85.11556,50.117303],[85.54127,49.692859],[86.829357,49.826675],[87.35997,49.214981]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Kenya","SOV_A3":"KEN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Kenya","ADM0_A3":"KEN","GEOU_DIF":0,"GEOUNIT":"Kenya","GU_A3":"KEN","SU_DIF":0,"SUBUNIT":"Kenya","SU_A3":"KEN","BRK_DIFF":0,"NAME":"Kenya","NAME_LONG":"Kenya","BRK_A3":"KEN","BRK_NAME":"Kenya","BRK_GROUP":null,"ABBREV":"Ken.","POSTAL":"KE","FORMAL_EN":"Republic of Kenya","FORMAL_FR":null,"NAME_CIAWF":"Kenya","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Kenya","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":2,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":47615739,"POP_RANK":15,"GDP_MD_EST":152700,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"KE","ISO_A2":"KE","ISO_A3":"KEN","ISO_A3_EH":"KEN","ISO_N3":"404","UN_A3":"404","WB_A2":"KE","WB_A3":"KEN","WOE_ID":23424863,"WOE_ID_EH":23424863,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"KEN","ADM0_A3_US":"KEN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[33.893569,-4.67677,41.855083,5.506],"geometry":{"type":"Polygon","coordinates":[[[35.298007,5.506],[35.817448,5.338232],[35.817448,4.776966],[36.159079,4.447864],[36.855093,4.447864],[38.120915,3.598605],[38.43697,3.58851],[38.67114,3.61607],[38.89251,3.50074],[39.559384,3.42206],[39.85494,3.83879],[40.76848,4.25702],[41.1718,3.91909],[41.855083,3.918912],[40.98105,2.78452],[40.993,-0.85829],[41.58513,-1.68325],[40.88477,-2.08255],[40.63785,-2.49979],[40.26304,-2.57309],[40.12119,-3.27768],[39.80006,-3.68116],[39.60489,-4.34653],[39.20222,-4.67677],[37.7669,-3.67712],[37.69869,-3.09699],[34.07262,-1.05982],[33.903711,-0.95],[33.893569,0.109814],[34.18,0.515],[34.6721,1.17694],[35.03599,1.90584],[34.59607,3.05374],[34.47913,3.5556],[34.005,4.249885],[34.620196,4.847123],[35.298007,5.506]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Kyrgyzstan","SOV_A3":"KGZ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Kyrgyzstan","ADM0_A3":"KGZ","GEOU_DIF":0,"GEOUNIT":"Kyrgyzstan","GU_A3":"KGZ","SU_DIF":0,"SUBUNIT":"Kyrgyzstan","SU_A3":"KGZ","BRK_DIFF":0,"NAME":"Kyrgyzstan","NAME_LONG":"Kyrgyzstan","BRK_A3":"KGZ","BRK_NAME":"Kyrgyzstan","BRK_GROUP":null,"ABBREV":"Kgz.","POSTAL":"KG","FORMAL_EN":"Kyrgyz Republic","FORMAL_FR":null,"NAME_CIAWF":"Kyrgyzstan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Kyrgyz Republic","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":7,"MAPCOLOR9":7,"MAPCOLOR13":6,"POP_EST":5789122,"POP_RANK":13,"GDP_MD_EST":21010,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"KG","ISO_A2":"KG","ISO_A3":"KGZ","ISO_A3_EH":"KGZ","ISO_N3":"417","UN_A3":"417","WB_A2":"KG","WB_A3":"KGZ","WOE_ID":23424864,"WOE_ID_EH":23424864,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"KGZ","ADM0_A3_US":"KGZ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Central Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[69.464887,39.279463,80.25999,43.298339],"geometry":{"type":"Polygon","coordinates":[[[80.25999,42.349999],[80.11943,42.123941],[78.543661,41.582243],[78.187197,41.185316],[76.904484,41.066486],[76.526368,40.427946],[75.467828,40.562072],[74.776862,40.366425],[73.822244,39.893973],[73.960013,39.660008],[73.675379,39.431237],[71.784694,39.279463],[70.549162,39.604198],[69.464887,39.526683],[69.55961,40.103211],[70.648019,39.935754],[71.014198,40.244366],[71.774875,40.145844],[73.055417,40.866033],[71.870115,41.3929],[71.157859,41.143587],[70.420022,41.519998],[71.259248,42.167711],[70.962315,42.266154],[71.186281,42.704293],[71.844638,42.845395],[73.489758,42.500894],[73.645304,43.091272],[74.212866,43.298339],[75.636965,42.8779],[76.000354,42.988022],[77.658392,42.960686],[79.142177,42.856092],[79.643645,42.496683],[80.25999,42.349999]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Cambodia","SOV_A3":"KHM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Cambodia","ADM0_A3":"KHM","GEOU_DIF":0,"GEOUNIT":"Cambodia","GU_A3":"KHM","SU_DIF":0,"SUBUNIT":"Cambodia","SU_A3":"KHM","BRK_DIFF":0,"NAME":"Cambodia","NAME_LONG":"Cambodia","BRK_A3":"KHM","BRK_NAME":"Cambodia","BRK_GROUP":null,"ABBREV":"Camb.","POSTAL":"KH","FORMAL_EN":"Kingdom of Cambodia","FORMAL_FR":null,"NAME_CIAWF":"Cambodia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Cambodia","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":6,"MAPCOLOR13":5,"POP_EST":16204486,"POP_RANK":14,"GDP_MD_EST":58940,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"CB","ISO_A2":"KH","ISO_A3":"KHM","ISO_A3_EH":"KHM","ISO_N3":"116","UN_A3":"116","WB_A2":"KH","WB_A3":"KHM","WOE_ID":23424776,"WOE_ID_EH":23424776,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"KHM","ADM0_A3_US":"KHM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[102.348099,10.486544,107.614548,14.570584],"geometry":{"type":"Polygon","coordinates":[[[102.584932,12.186595],[102.348099,13.394247],[102.988422,14.225721],[104.281418,14.416743],[105.218777,14.273212],[106.043946,13.881091],[106.496373,14.570584],[107.382727,14.202441],[107.614548,13.535531],[107.491403,12.337206],[105.810524,11.567615],[106.24967,10.961812],[105.199915,10.88931],[104.334335,10.486544],[103.49728,10.632555],[103.09069,11.153661],[102.584932,12.186595]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"South Korea","SOV_A3":"KOR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"South Korea","ADM0_A3":"KOR","GEOU_DIF":0,"GEOUNIT":"South Korea","GU_A3":"KOR","SU_DIF":0,"SUBUNIT":"South Korea","SU_A3":"KOR","BRK_DIFF":0,"NAME":"South Korea","NAME_LONG":"Republic of Korea","BRK_A3":"KOR","BRK_NAME":"Republic of Korea","BRK_GROUP":null,"ABBREV":"S.K.","POSTAL":"KR","FORMAL_EN":"Republic of Korea","FORMAL_FR":null,"NAME_CIAWF":"Korea, South","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Korea, Rep.","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":1,"MAPCOLOR13":5,"POP_EST":51181299,"POP_RANK":16,"GDP_MD_EST":1929000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"4. Emerging region:MIKT","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"KS","ISO_A2":"KR","ISO_A3":"KOR","ISO_A3_EH":"KOR","ISO_N3":"410","UN_A3":"410","WB_A2":"KR","WB_A3":"KOR","WOE_ID":23424868,"WOE_ID_EH":23424868,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"KOR","ADM0_A3_US":"KOR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":17,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[126.117398,34.390046,129.468304,38.612243],"geometry":{"type":"Polygon","coordinates":[[[128.349716,38.612243],[129.21292,37.432392],[129.46045,36.784189],[129.468304,35.632141],[129.091377,35.082484],[128.18585,34.890377],[127.386519,34.475674],[126.485748,34.390046],[126.37392,34.93456],[126.559231,35.684541],[126.117398,36.725485],[126.860143,36.893924],[126.174759,37.749686],[126.237339,37.840378],[126.68372,37.804773],[127.073309,38.256115],[127.780035,38.304536],[128.205746,38.370397],[128.349716,38.612243]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Kosovo","SOV_A3":"KOS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Kosovo","ADM0_A3":"KOS","GEOU_DIF":0,"GEOUNIT":"Kosovo","GU_A3":"KOS","SU_DIF":0,"SUBUNIT":"Kosovo","SU_A3":"KOS","BRK_DIFF":0,"NAME":"Kosovo","NAME_LONG":"Kosovo","BRK_A3":"KOS","BRK_NAME":"Kosovo","BRK_GROUP":null,"ABBREV":"Kos.","POSTAL":"KO","FORMAL_EN":"Republic of Kosovo","FORMAL_FR":null,"NAME_CIAWF":"Kosovo","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Kosovo","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":11,"POP_EST":1895250,"POP_RANK":12,"GDP_MD_EST":18490,"POP_YEAR":2017,"LASTCENSUS":1981,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"KV","ISO_A2":"XK","ISO_A3":"-99","ISO_A3_EH":"-99","ISO_N3":"-99","UN_A3":"-099","WB_A2":"KV","WB_A3":"KSV","WOE_ID":-90,"WOE_ID_EH":29389201,"WOE_NOTE":"Subunit of Serbia in WOE still; should include 29389201, 29389207, 29389218, 29389209 and 29389214.","ADM0_A3_IS":"KOS","ADM0_A3_US":"KOS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[20.0707,41.84711,21.77505,43.27205],"geometry":{"type":"Polygon","coordinates":[[[20.590247,41.855409],[20.52295,42.21787],[20.283755,42.32026],[20.0707,42.58863],[20.25758,42.81275],[20.49679,42.88469],[20.63508,43.21671],[20.81448,43.27205],[20.95651,43.13094],[21.143395,43.068685],[21.27421,42.90959],[21.43866,42.86255],[21.63302,42.67717],[21.77505,42.6827],[21.66292,42.43922],[21.54332,42.32025],[21.576636,42.245224],[21.3527,42.2068],[20.76216,42.05186],[20.71731,41.84711],[20.590247,41.855409]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Kuwait","SOV_A3":"KWT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Kuwait","ADM0_A3":"KWT","GEOU_DIF":0,"GEOUNIT":"Kuwait","GU_A3":"KWT","SU_DIF":0,"SUBUNIT":"Kuwait","SU_A3":"KWT","BRK_DIFF":0,"NAME":"Kuwait","NAME_LONG":"Kuwait","BRK_A3":"KWT","BRK_NAME":"Kuwait","BRK_GROUP":null,"ABBREV":"Kwt.","POSTAL":"KW","FORMAL_EN":"State of Kuwait","FORMAL_FR":null,"NAME_CIAWF":"Kuwait","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Kuwait","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":2875422,"POP_RANK":12,"GDP_MD_EST":301100,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"KU","ISO_A2":"KW","ISO_A3":"KWT","ISO_A3_EH":"KWT","ISO_N3":"414","UN_A3":"414","WB_A2":"KW","WB_A3":"KWT","WOE_ID":23424870,"WOE_ID_EH":23424870,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"KWT","ADM0_A3_US":"KWT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[46.568713,28.526063,48.416094,30.05907],"geometry":{"type":"Polygon","coordinates":[[[46.568713,29.099025],[47.302622,30.05907],[47.974519,29.975819],[48.183189,29.534477],[48.093943,29.306299],[48.416094,28.552004],[47.708851,28.526063],[47.459822,29.002519],[46.568713,29.099025]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Laos","SOV_A3":"LAO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Laos","ADM0_A3":"LAO","GEOU_DIF":0,"GEOUNIT":"Laos","GU_A3":"LAO","SU_DIF":0,"SUBUNIT":"Laos","SU_A3":"LAO","BRK_DIFF":0,"NAME":"Laos","NAME_LONG":"Lao PDR","BRK_A3":"LAO","BRK_NAME":"Laos","BRK_GROUP":null,"ABBREV":"Laos","POSTAL":"LA","FORMAL_EN":"Lao People\'s Democratic Republic","FORMAL_FR":null,"NAME_CIAWF":"Laos","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Lao PDR","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":1,"MAPCOLOR9":1,"MAPCOLOR13":9,"POP_EST":7126706,"POP_RANK":13,"GDP_MD_EST":40960,"POP_YEAR":2017,"LASTCENSUS":2005,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"LA","ISO_A2":"LA","ISO_A3":"LAO","ISO_A3_EH":"LAO","ISO_N3":"418","UN_A3":"418","WB_A2":"LA","WB_A3":"LAO","WOE_ID":23424872,"WOE_ID_EH":23424872,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LAO","ADM0_A3_US":"LAO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":4,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[100.115988,13.881091,107.564525,22.464753],"geometry":{"type":"Polygon","coordinates":[[[101.180005,21.436573],[101.270026,21.201652],[101.80312,21.174367],[101.652018,22.318199],[102.170436,22.464753],[102.754896,21.675137],[103.203861,20.766562],[104.435,20.758733],[104.822574,19.886642],[104.183388,19.624668],[103.896532,19.265181],[105.094598,18.666975],[105.925762,17.485315],[106.556008,16.604284],[107.312706,15.908538],[107.564525,15.202173],[107.382727,14.202441],[106.496373,14.570584],[106.043946,13.881091],[105.218777,14.273212],[105.544338,14.723934],[105.589039,15.570316],[104.779321,16.441865],[104.716947,17.428859],[103.956477,18.240954],[103.200192,18.309632],[102.998706,17.961695],[102.413005,17.932782],[102.113592,18.109102],[101.059548,17.512497],[101.035931,18.408928],[101.282015,19.462585],[100.606294,19.508344],[100.548881,20.109238],[100.115988,20.41785],[100.329101,20.786122],[101.180005,21.436573]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Lebanon","SOV_A3":"LBN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Lebanon","ADM0_A3":"LBN","GEOU_DIF":0,"GEOUNIT":"Lebanon","GU_A3":"LBN","SU_DIF":0,"SUBUNIT":"Lebanon","SU_A3":"LBN","BRK_DIFF":0,"NAME":"Lebanon","NAME_LONG":"Lebanon","BRK_A3":"LBN","BRK_NAME":"Lebanon","BRK_GROUP":null,"ABBREV":"Leb.","POSTAL":"LB","FORMAL_EN":"Lebanese Republic","FORMAL_FR":null,"NAME_CIAWF":"Lebanon","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Lebanon","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":12,"POP_EST":6229794,"POP_RANK":13,"GDP_MD_EST":85160,"POP_YEAR":2017,"LASTCENSUS":1970,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"LE","ISO_A2":"LB","ISO_A3":"LBN","ISO_A3_EH":"LBN","ISO_N3":"422","UN_A3":"422","WB_A2":"LB","WB_A3":"LBN","WOE_ID":23424873,"WOE_ID_EH":23424873,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LBN","ADM0_A3_US":"LBN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":4,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[35.126053,33.08904,36.61175,34.644914],"geometry":{"type":"Polygon","coordinates":[[[35.821101,33.277426],[35.552797,33.264275],[35.460709,33.08904],[35.126053,33.0909],[35.482207,33.90545],[35.979592,34.610058],[35.998403,34.644914],[36.448194,34.593935],[36.61175,34.201789],[36.06646,33.824912],[35.821101,33.277426]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Liberia","SOV_A3":"LBR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Liberia","ADM0_A3":"LBR","GEOU_DIF":0,"GEOUNIT":"Liberia","GU_A3":"LBR","SU_DIF":0,"SUBUNIT":"Liberia","SU_A3":"LBR","BRK_DIFF":0,"NAME":"Liberia","NAME_LONG":"Liberia","BRK_A3":"LBR","BRK_NAME":"Liberia","BRK_GROUP":null,"ABBREV":"Liberia","POSTAL":"LR","FORMAL_EN":"Republic of Liberia","FORMAL_FR":null,"NAME_CIAWF":"Liberia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Liberia","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":9,"POP_EST":4689021,"POP_RANK":12,"GDP_MD_EST":3881,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"LI","ISO_A2":"LR","ISO_A3":"LBR","ISO_A3_EH":"LBR","ISO_N3":"430","UN_A3":"430","WB_A2":"LR","WB_A3":"LBR","WOE_ID":23424876,"WOE_ID_EH":23424876,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LBR","ADM0_A3_US":"LBR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-11.438779,4.355755,-7.539715,8.541055],"geometry":{"type":"Polygon","coordinates":[[[-8.439298,7.686043],[-8.485446,7.395208],[-8.385452,6.911801],[-8.60288,6.467564],[-8.311348,6.193033],[-7.993693,6.12619],[-7.570153,5.707352],[-7.539715,5.313345],[-7.635368,5.188159],[-7.712159,4.364566],[-7.974107,4.355755],[-9.004794,4.832419],[-9.91342,5.593561],[-10.765384,6.140711],[-11.438779,6.785917],[-11.199802,7.105846],[-11.146704,7.396706],[-10.695595,7.939464],[-10.230094,8.406206],[-10.016567,8.428504],[-9.755342,8.541055],[-9.33728,7.928534],[-9.403348,7.526905],[-9.208786,7.313921],[-8.926065,7.309037],[-8.722124,7.711674],[-8.439298,7.686043]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Libya","SOV_A3":"LBY","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Libya","ADM0_A3":"LBY","GEOU_DIF":0,"GEOUNIT":"Libya","GU_A3":"LBY","SU_DIF":0,"SUBUNIT":"Libya","SU_A3":"LBY","BRK_DIFF":0,"NAME":"Libya","NAME_LONG":"Libya","BRK_A3":"LBY","BRK_NAME":"Libya","BRK_GROUP":null,"ABBREV":"Libya","POSTAL":"LY","FORMAL_EN":"Libya","FORMAL_FR":null,"NAME_CIAWF":"Libya","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Libya","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":11,"POP_EST":6653210,"POP_RANK":13,"GDP_MD_EST":90890,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"LY","ISO_A2":"LY","ISO_A3":"LBY","ISO_A3_EH":"LBY","ISO_N3":"434","UN_A3":"434","WB_A2":"LY","WB_A3":"LBY","WOE_ID":23424882,"WOE_ID_EH":23424882,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LBY","ADM0_A3_US":"LBY","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[9.319411,19.58047,25.16482,33.136996],"geometry":{"type":"Polygon","coordinates":[[[11.999506,23.471668],[11.560669,24.097909],[10.771364,24.562532],[10.303847,24.379313],[9.948261,24.936954],[9.910693,25.365455],[9.319411,26.094325],[9.716286,26.512206],[9.629056,27.140953],[9.756128,27.688259],[9.683885,28.144174],[9.859998,28.95999],[9.805634,29.424638],[9.48214,30.307556],[9.970017,30.539325],[10.056575,30.961831],[9.950225,31.37607],[10.636901,31.761421],[10.94479,32.081815],[11.432253,32.368903],[11.488787,33.136996],[12.66331,32.79278],[13.08326,32.87882],[13.91868,32.71196],[15.24563,32.26508],[15.71394,31.37626],[16.61162,31.18218],[18.02109,30.76357],[19.08641,30.26639],[19.57404,30.52582],[20.05335,30.98576],[19.82033,31.75179],[20.13397,32.2382],[20.85452,32.7068],[21.54298,32.8432],[22.89576,32.63858],[23.2368,32.19149],[23.60913,32.18726],[23.9275,32.01667],[24.92114,31.89936],[25.16482,31.56915],[24.80287,31.08929],[24.95762,30.6616],[24.70007,30.04419],[25,29.238655],[25,25.6825],[25,22],[25,20.00304],[23.85,20],[23.83766,19.58047],[19.84926,21.49509],[15.86085,23.40972],[14.8513,22.86295],[14.143871,22.491289],[13.581425,23.040506],[11.999506,23.471668]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Sri Lanka","SOV_A3":"LKA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Sri Lanka","ADM0_A3":"LKA","GEOU_DIF":0,"GEOUNIT":"Sri Lanka","GU_A3":"LKA","SU_DIF":0,"SUBUNIT":"Sri Lanka","SU_A3":"LKA","BRK_DIFF":0,"NAME":"Sri Lanka","NAME_LONG":"Sri Lanka","BRK_A3":"LKA","BRK_NAME":"Sri Lanka","BRK_GROUP":null,"ABBREV":"Sri L.","POSTAL":"LK","FORMAL_EN":"Democratic Socialist Republic of Sri Lanka","FORMAL_FR":null,"NAME_CIAWF":"Sri Lanka","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Sri Lanka","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":4,"MAPCOLOR13":9,"POP_EST":22409381,"POP_RANK":15,"GDP_MD_EST":236700,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"CE","ISO_A2":"LK","ISO_A3":"LKA","ISO_A3_EH":"LKA","ISO_N3":"144","UN_A3":"144","WB_A2":"LK","WB_A3":"LKA","WOE_ID":23424778,"WOE_ID_EH":23424778,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LKA","ADM0_A3_US":"LKA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[79.695167,5.96837,81.787959,9.824078],"geometry":{"type":"Polygon","coordinates":[[[81.787959,7.523055],[81.637322,6.481775],[81.21802,6.197141],[80.348357,5.96837],[79.872469,6.763463],[79.695167,8.200843],[80.147801,9.824078],[80.838818,9.268427],[81.304319,8.564206],[81.787959,7.523055]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Lesotho","SOV_A3":"LSO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Lesotho","ADM0_A3":"LSO","GEOU_DIF":0,"GEOUNIT":"Lesotho","GU_A3":"LSO","SU_DIF":0,"SUBUNIT":"Lesotho","SU_A3":"LSO","BRK_DIFF":0,"NAME":"Lesotho","NAME_LONG":"Lesotho","BRK_A3":"LSO","BRK_NAME":"Lesotho","BRK_GROUP":null,"ABBREV":"Les.","POSTAL":"LS","FORMAL_EN":"Kingdom of Lesotho","FORMAL_FR":null,"NAME_CIAWF":"Lesotho","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Lesotho","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":5,"MAPCOLOR9":2,"MAPCOLOR13":8,"POP_EST":1958042,"POP_RANK":12,"GDP_MD_EST":6019,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"LT","ISO_A2":"LS","ISO_A3":"LSO","ISO_A3_EH":"LSO","ISO_N3":"426","UN_A3":"426","WB_A2":"LS","WB_A3":"LSO","WOE_ID":23424880,"WOE_ID_EH":23424880,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LSO","ADM0_A3_US":"LSO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Southern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[26.999262,-30.645106,29.325166,-28.647502],"geometry":{"type":"Polygon","coordinates":[[[28.978263,-28.955597],[29.325166,-29.257387],[29.018415,-29.743766],[28.8484,-30.070051],[28.291069,-30.226217],[28.107205,-30.545732],[27.749397,-30.645106],[26.999262,-29.875954],[27.532511,-29.242711],[28.074338,-28.851469],[28.5417,-28.647502],[28.978263,-28.955597]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Lithuania","SOV_A3":"LTU","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Lithuania","ADM0_A3":"LTU","GEOU_DIF":0,"GEOUNIT":"Lithuania","GU_A3":"LTU","SU_DIF":0,"SUBUNIT":"Lithuania","SU_A3":"LTU","BRK_DIFF":0,"NAME":"Lithuania","NAME_LONG":"Lithuania","BRK_A3":"LTU","BRK_NAME":"Lithuania","BRK_GROUP":null,"ABBREV":"Lith.","POSTAL":"LT","FORMAL_EN":"Republic of Lithuania","FORMAL_FR":null,"NAME_CIAWF":"Lithuania","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Lithuania","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":3,"MAPCOLOR13":9,"POP_EST":2823859,"POP_RANK":12,"GDP_MD_EST":85620,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"LH","ISO_A2":"LT","ISO_A3":"LTU","ISO_A3_EH":"LTU","ISO_N3":"440","UN_A3":"440","WB_A2":"LT","WB_A3":"LTU","WOE_ID":23424875,"WOE_ID_EH":23424875,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LTU","ADM0_A3_US":"LTU","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[21.0558,53.905702,26.588279,56.372528],"geometry":{"type":"Polygon","coordinates":[[[26.494331,55.615107],[26.588279,55.167176],[25.768433,54.846963],[25.536354,54.282423],[24.450684,53.905702],[23.484128,53.912498],[23.243987,54.220567],[22.731099,54.327537],[22.651052,54.582741],[22.757764,54.856574],[22.315724,55.015299],[21.268449,55.190482],[21.0558,56.031076],[22.201157,56.337802],[23.878264,56.273671],[24.860684,56.372528],[25.000934,56.164531],[25.533047,56.100297],[26.494331,55.615107]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Luxembourg","SOV_A3":"LUX","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Luxembourg","ADM0_A3":"LUX","GEOU_DIF":0,"GEOUNIT":"Luxembourg","GU_A3":"LUX","SU_DIF":0,"SUBUNIT":"Luxembourg","SU_A3":"LUX","BRK_DIFF":0,"NAME":"Luxembourg","NAME_LONG":"Luxembourg","BRK_A3":"LUX","BRK_NAME":"Luxembourg","BRK_GROUP":null,"ABBREV":"Lux.","POSTAL":"L","FORMAL_EN":"Grand Duchy of Luxembourg","FORMAL_FR":null,"NAME_CIAWF":"Luxembourg","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Luxembourg","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":7,"MAPCOLOR9":3,"MAPCOLOR13":7,"POP_EST":594130,"POP_RANK":11,"GDP_MD_EST":58740,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"LU","ISO_A2":"LU","ISO_A3":"LUX","ISO_A3_EH":"LUX","ISO_N3":"442","UN_A3":"442","WB_A2":"LU","WB_A3":"LUX","WOE_ID":23424881,"WOE_ID_EH":23424881,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LUX","ADM0_A3_US":"LUX","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":5,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5.7,"MAX_LABEL":10},"bbox":[5.674052,49.442667,6.242751,50.128052],"geometry":{"type":"Polygon","coordinates":[[[5.674052,49.529484],[5.782417,50.090328],[6.043073,50.128052],[6.242751,49.902226],[6.18632,49.463803],[5.897759,49.442667],[5.674052,49.529484]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Latvia","SOV_A3":"LVA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Latvia","ADM0_A3":"LVA","GEOU_DIF":0,"GEOUNIT":"Latvia","GU_A3":"LVA","SU_DIF":0,"SUBUNIT":"Latvia","SU_A3":"LVA","BRK_DIFF":0,"NAME":"Latvia","NAME_LONG":"Latvia","BRK_A3":"LVA","BRK_NAME":"Latvia","BRK_GROUP":null,"ABBREV":"Lat.","POSTAL":"LV","FORMAL_EN":"Republic of Latvia","FORMAL_FR":null,"NAME_CIAWF":"Latvia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Latvia","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":7,"MAPCOLOR9":6,"MAPCOLOR13":13,"POP_EST":1944643,"POP_RANK":12,"GDP_MD_EST":50650,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"LG","ISO_A2":"LV","ISO_A3":"LVA","ISO_A3_EH":"LVA","ISO_N3":"428","UN_A3":"428","WB_A2":"LV","WB_A3":"LVA","WOE_ID":23424874,"WOE_ID_EH":23424874,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"LVA","ADM0_A3_US":"LVA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[21.0558,55.615107,28.176709,57.970157],"geometry":{"type":"Polygon","coordinates":[[[28.176709,56.16913],[27.10246,55.783314],[26.494331,55.615107],[25.533047,56.100297],[25.000934,56.164531],[24.860684,56.372528],[23.878264,56.273671],[22.201157,56.337802],[21.0558,56.031076],[21.090424,56.783873],[21.581866,57.411871],[22.524341,57.753374],[23.318453,57.006236],[24.12073,57.025693],[24.312863,57.793424],[25.164594,57.970157],[25.60281,57.847529],[26.463532,57.476389],[27.288185,57.474528],[27.770016,57.244258],[27.855282,56.759326],[28.176709,56.16913]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Morocco","SOV_A3":"MAR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Morocco","ADM0_A3":"MAR","GEOU_DIF":0,"GEOUNIT":"Morocco","GU_A3":"MAR","SU_DIF":0,"SUBUNIT":"Morocco","SU_A3":"MAR","BRK_DIFF":0,"NAME":"Morocco","NAME_LONG":"Morocco","BRK_A3":"MAR","BRK_NAME":"Morocco","BRK_GROUP":null,"ABBREV":"Mor.","POSTAL":"MA","FORMAL_EN":"Kingdom of Morocco","FORMAL_FR":null,"NAME_CIAWF":"Morocco","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Morocco","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":9,"POP_EST":33986655,"POP_RANK":15,"GDP_MD_EST":282800,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"MO","ISO_A2":"MA","ISO_A3":"MAR","ISO_A3_EH":"MAR","ISO_N3":"504","UN_A3":"504","WB_A2":"MA","WB_A3":"MAR","WOE_ID":23424893,"WOE_ID_EH":23424893,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MAR","ADM0_A3_US":"MAR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-17.020428,21.420734,-1.124551,35.759988],"geometry":{"type":"Polygon","coordinates":[[[-2.169914,35.168396],[-1.792986,34.527919],[-1.733455,33.919713],[-1.388049,32.864015],[-1.124551,32.651522],[-1.307899,32.262889],[-2.616605,32.094346],[-3.06898,31.724498],[-3.647498,31.637294],[-3.690441,30.896952],[-4.859646,30.501188],[-5.242129,30.000443],[-6.060632,29.7317],[-7.059228,29.579228],[-8.674116,28.841289],[-8.66559,27.656426],[-8.817828,27.656426],[-8.794884,27.120696],[-9.413037,27.088476],[-9.735343,26.860945],[-10.189424,26.860945],[-10.551263,26.990808],[-11.392555,26.883424],[-11.71822,26.104092],[-12.030759,26.030866],[-12.500963,24.770116],[-13.89111,23.691009],[-14.221168,22.310163],[-14.630833,21.86094],[-14.750955,21.5006],[-17.002962,21.420734],[-17.020428,21.42231],[-16.973248,21.885745],[-16.589137,22.158234],[-16.261922,22.67934],[-16.326414,23.017768],[-15.982611,23.723358],[-15.426004,24.359134],[-15.089332,24.520261],[-14.824645,25.103533],[-14.800926,25.636265],[-14.43994,26.254418],[-13.773805,26.618892],[-13.139942,27.640148],[-13.121613,27.654148],[-12.618837,28.038186],[-11.688919,28.148644],[-10.900957,28.832142],[-10.399592,29.098586],[-9.564811,29.933574],[-9.814718,31.177736],[-9.434793,32.038096],[-9.300693,32.564679],[-8.657476,33.240245],[-7.654178,33.697065],[-6.912544,34.110476],[-6.244342,35.145865],[-5.929994,35.759988],[-5.193863,35.755182],[-4.591006,35.330712],[-3.640057,35.399855],[-2.604306,35.179093],[-2.169914,35.168396]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Moldova","SOV_A3":"MDA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Moldova","ADM0_A3":"MDA","GEOU_DIF":0,"GEOUNIT":"Moldova","GU_A3":"MDA","SU_DIF":0,"SUBUNIT":"Moldova","SU_A3":"MDA","BRK_DIFF":0,"NAME":"Moldova","NAME_LONG":"Moldova","BRK_A3":"MDA","BRK_NAME":"Moldova","BRK_GROUP":null,"ABBREV":"Mda.","POSTAL":"MD","FORMAL_EN":"Republic of Moldova","FORMAL_FR":null,"NAME_CIAWF":"Moldova","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Moldova","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":4,"MAPCOLOR13":12,"POP_EST":3474121,"POP_RANK":12,"GDP_MD_EST":18540,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"MD","ISO_A2":"MD","ISO_A3":"MDA","ISO_A3_EH":"MDA","ISO_N3":"498","UN_A3":"498","WB_A2":"MD","WB_A3":"MDA","WOE_ID":23424885,"WOE_ID_EH":23424885,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MDA","ADM0_A3_US":"MDA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[26.619337,45.488283,30.024659,48.467119],"geometry":{"type":"Polygon","coordinates":[[[26.619337,48.220726],[26.857824,48.368211],[27.522537,48.467119],[28.259547,48.155562],[28.670891,48.118149],[29.122698,47.849095],[29.050868,47.510227],[29.415135,47.346645],[29.559674,46.928583],[29.908852,46.674361],[29.83821,46.525326],[30.024659,46.423937],[29.759972,46.349988],[29.170654,46.379262],[29.072107,46.517678],[28.862972,46.437889],[28.933717,46.25883],[28.659987,45.939987],[28.485269,45.596907],[28.233554,45.488283],[28.054443,45.944586],[28.160018,46.371563],[28.12803,46.810476],[27.551166,47.405117],[27.233873,47.826771],[26.924176,48.123264],[26.619337,48.220726]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Madagascar","SOV_A3":"MDG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Madagascar","ADM0_A3":"MDG","GEOU_DIF":0,"GEOUNIT":"Madagascar","GU_A3":"MDG","SU_DIF":0,"SUBUNIT":"Madagascar","SU_A3":"MDG","BRK_DIFF":0,"NAME":"Madagascar","NAME_LONG":"Madagascar","BRK_A3":"MDG","BRK_NAME":"Madagascar","BRK_GROUP":null,"ABBREV":"Mad.","POSTAL":"MG","FORMAL_EN":"Republic of Madagascar","FORMAL_FR":null,"NAME_CIAWF":"Madagascar","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Madagascar","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":5,"MAPCOLOR9":2,"MAPCOLOR13":3,"POP_EST":25054161,"POP_RANK":15,"GDP_MD_EST":36860,"POP_YEAR":2017,"LASTCENSUS":1993,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"MA","ISO_A2":"MG","ISO_A3":"MDG","ISO_A3_EH":"MDG","ISO_N3":"450","UN_A3":"450","WB_A2":"MG","WB_A3":"MDG","WOE_ID":23424883,"WOE_ID_EH":23424883,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MDG","ADM0_A3_US":"MDG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[43.254187,-25.601434,50.476537,-12.040557],"geometry":{"type":"Polygon","coordinates":[[[49.543519,-12.469833],[49.808981,-12.895285],[50.056511,-13.555761],[50.217431,-14.758789],[50.476537,-15.226512],[50.377111,-15.706069],[50.200275,-16.000263],[49.860606,-15.414253],[49.672607,-15.710204],[49.863344,-16.451037],[49.774564,-16.875042],[49.498612,-17.106036],[49.435619,-17.953064],[49.041792,-19.118781],[48.548541,-20.496888],[47.930749,-22.391501],[47.547723,-23.781959],[47.095761,-24.94163],[46.282478,-25.178463],[45.409508,-25.601434],[44.833574,-25.346101],[44.03972,-24.988345],[43.763768,-24.460677],[43.697778,-23.574116],[43.345654,-22.776904],[43.254187,-22.057413],[43.433298,-21.336475],[43.893683,-21.163307],[43.89637,-20.830459],[44.374325,-20.072366],[44.464397,-19.435454],[44.232422,-18.961995],[44.042976,-18.331387],[43.963084,-17.409945],[44.312469,-16.850496],[44.446517,-16.216219],[44.944937,-16.179374],[45.502732,-15.974373],[45.872994,-15.793454],[46.312243,-15.780018],[46.882183,-15.210182],[47.70513,-14.594303],[48.005215,-14.091233],[47.869047,-13.663869],[48.293828,-13.784068],[48.84506,-13.089175],[48.863509,-12.487868],[49.194651,-12.040557],[49.543519,-12.469833]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Mexico","SOV_A3":"MEX","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Mexico","ADM0_A3":"MEX","GEOU_DIF":0,"GEOUNIT":"Mexico","GU_A3":"MEX","SU_DIF":0,"SUBUNIT":"Mexico","SU_A3":"MEX","BRK_DIFF":0,"NAME":"Mexico","NAME_LONG":"Mexico","BRK_A3":"MEX","BRK_NAME":"Mexico","BRK_GROUP":null,"ABBREV":"Mex.","POSTAL":"MX","FORMAL_EN":"United Mexican States","FORMAL_FR":null,"NAME_CIAWF":"Mexico","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Mexico","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":1,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":124574795,"POP_RANK":17,"GDP_MD_EST":2307000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"4. Emerging region:MIKT","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"MX","ISO_A2":"MX","ISO_A3":"MEX","ISO_A3_EH":"MEX","ISO_N3":"484","UN_A3":"484","WB_A2":"MX","WB_A3":"MEX","WOE_ID":23424900,"WOE_ID_EH":23424900,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MEX","ADM0_A3_US":"MEX","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":6.7},"bbox":[-117.12776,14.538829,-86.811982,32.72083],"geometry":{"type":"Polygon","coordinates":[[[-88.300031,18.499982],[-88.490123,18.486831],[-88.848344,17.883198],[-89.029857,18.001511],[-89.150909,17.955468],[-89.14308,17.808319],[-90.067934,17.819326],[-91.00152,17.817595],[-91.002269,17.254658],[-91.453921,17.252177],[-91.08167,16.918477],[-90.711822,16.687483],[-90.600847,16.470778],[-90.438867,16.41011],[-90.464473,16.069562],[-91.74796,16.066565],[-92.229249,15.251447],[-92.087216,15.064585],[-92.20323,14.830103],[-92.22775,14.538829],[-93.359464,15.61543],[-93.875169,15.940164],[-94.691656,16.200975],[-95.250227,16.128318],[-96.053382,15.752088],[-96.557434,15.653515],[-97.263592,15.917065],[-98.01303,16.107312],[-98.947676,16.566043],[-99.697397,16.706164],[-100.829499,17.171071],[-101.666089,17.649026],[-101.918528,17.91609],[-102.478132,17.975751],[-103.50099,18.292295],[-103.917527,18.748572],[-104.99201,19.316134],[-105.493038,19.946767],[-105.731396,20.434102],[-105.397773,20.531719],[-105.500661,20.816895],[-105.270752,21.076285],[-105.265817,21.422104],[-105.603161,21.871146],[-105.693414,22.26908],[-106.028716,22.773752],[-106.90998,23.767774],[-107.915449,24.548915],[-108.401905,25.172314],[-109.260199,25.580609],[-109.444089,25.824884],[-109.291644,26.442934],[-109.801458,26.676176],[-110.391732,27.162115],[-110.641019,27.859876],[-111.178919,27.941241],[-111.759607,28.467953],[-112.228235,28.954409],[-112.271824,29.266844],[-112.809594,30.021114],[-113.163811,30.786881],[-113.148669,31.170966],[-113.871881,31.567608],[-114.205737,31.524045],[-114.776451,31.799532],[-114.9367,31.393485],[-114.771232,30.913617],[-114.673899,30.162681],[-114.330974,29.750432],[-113.588875,29.061611],[-113.424053,28.826174],[-113.271969,28.754783],[-113.140039,28.411289],[-112.962298,28.42519],[-112.761587,27.780217],[-112.457911,27.525814],[-112.244952,27.171727],[-111.616489,26.662817],[-111.284675,25.73259],[-110.987819,25.294606],[-110.710007,24.826004],[-110.655049,24.298595],[-110.172856,24.265548],[-109.771847,23.811183],[-109.409104,23.364672],[-109.433392,23.185588],[-109.854219,22.818272],[-110.031392,22.823078],[-110.295071,23.430973],[-110.949501,24.000964],[-111.670568,24.484423],[-112.182036,24.738413],[-112.148989,25.470125],[-112.300711,26.012004],[-112.777297,26.32196],[-113.464671,26.768186],[-113.59673,26.63946],[-113.848937,26.900064],[-114.465747,27.14209],[-115.055142,27.722727],[-114.982253,27.7982],[-114.570366,27.741485],[-114.199329,28.115003],[-114.162018,28.566112],[-114.931842,29.279479],[-115.518654,29.556362],[-115.887365,30.180794],[-116.25835,30.836464],[-116.721526,31.635744],[-117.12776,32.53534],[-115.99135,32.61239],[-114.72139,32.72083],[-114.815,32.52528],[-113.30498,32.03914],[-111.02361,31.33472],[-109.035,31.34194],[-108.24194,31.34222],[-108.24,31.754854],[-106.50759,31.75452],[-106.1429,31.39995],[-105.63159,31.08383],[-105.03737,30.64402],[-104.70575,30.12173],[-104.45697,29.57196],[-103.94,29.27],[-103.11,28.97],[-102.48,29.76],[-101.6624,29.7793],[-100.9576,29.38071],[-100.45584,28.69612],[-100.11,28.11],[-99.52,27.54],[-99.3,26.84],[-99.02,26.37],[-98.24,26.06],[-97.53,25.84],[-97.140008,25.869997],[-97.528072,24.992144],[-97.702946,24.272343],[-97.776042,22.93258],[-97.872367,22.444212],[-97.699044,21.898689],[-97.38896,21.411019],[-97.189333,20.635433],[-96.525576,19.890931],[-96.292127,19.320371],[-95.900885,18.828024],[-94.839063,18.562717],[-94.42573,18.144371],[-93.548651,18.423837],[-92.786114,18.524839],[-92.037348,18.704569],[-91.407903,18.876083],[-90.77187,19.28412],[-90.53359,19.867418],[-90.451476,20.707522],[-90.278618,20.999855],[-89.601321,21.261726],[-88.543866,21.493675],[-87.658417,21.458846],[-87.05189,21.543543],[-86.811982,21.331515],[-86.845908,20.849865],[-87.383291,20.255405],[-87.621054,19.646553],[-87.43675,19.472403],[-87.58656,19.04013],[-87.837191,18.259816],[-88.090664,18.516648],[-88.300031,18.499982]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Macedonia","SOV_A3":"MKD","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Macedonia","ADM0_A3":"MKD","GEOU_DIF":0,"GEOUNIT":"Macedonia","GU_A3":"MKD","SU_DIF":0,"SUBUNIT":"Macedonia","SU_A3":"MKD","BRK_DIFF":0,"NAME":"Macedonia","NAME_LONG":"Macedonia","BRK_A3":"MKD","BRK_NAME":"Macedonia","BRK_GROUP":null,"ABBREV":"Mkd.","POSTAL":"MK","FORMAL_EN":"Former Yugoslav Republic of Macedonia","FORMAL_FR":null,"NAME_CIAWF":"Macedonia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Macedonia, FYR","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":2103721,"POP_RANK":12,"GDP_MD_EST":29520,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"MK","ISO_A2":"MK","ISO_A3":"MKD","ISO_A3_EH":"MKD","ISO_N3":"807","UN_A3":"807","WB_A2":"MK","WB_A3":"MKD","WOE_ID":23424890,"WOE_ID_EH":23424890,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MKD","ADM0_A3_US":"MKD","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[20.463175,40.842727,22.952377,42.32026],"geometry":{"type":"Polygon","coordinates":[[[21.02004,40.842727],[20.605182,41.086226],[20.463175,41.515089],[20.590247,41.855404],[20.590247,41.855409],[20.71731,41.84711],[20.76216,42.05186],[21.3527,42.2068],[21.576636,42.245224],[21.91708,42.30364],[22.380526,42.32026],[22.881374,41.999297],[22.952377,41.337994],[22.76177,41.3048],[22.597308,41.130487],[22.055378,41.149866],[21.674161,40.931275],[21.02004,40.842727]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Mali","SOV_A3":"MLI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Mali","ADM0_A3":"MLI","GEOU_DIF":0,"GEOUNIT":"Mali","GU_A3":"MLI","SU_DIF":0,"SUBUNIT":"Mali","SU_A3":"MLI","BRK_DIFF":0,"NAME":"Mali","NAME_LONG":"Mali","BRK_A3":"MLI","BRK_NAME":"Mali","BRK_GROUP":null,"ABBREV":"Mali","POSTAL":"ML","FORMAL_EN":"Republic of Mali","FORMAL_FR":null,"NAME_CIAWF":"Mali","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Mali","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":7,"POP_EST":17885245,"POP_RANK":14,"GDP_MD_EST":38090,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"ML","ISO_A2":"ML","ISO_A3":"MLI","ISO_A3_EH":"MLI","ISO_N3":"466","UN_A3":"466","WB_A2":"ML","WB_A3":"MLI","WOE_ID":23424891,"WOE_ID_EH":23424891,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MLI","ADM0_A3_US":"MLI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[-12.17075,10.096361,4.27021,24.974574],"geometry":{"type":"Polygon","coordinates":[[[0.374892,14.928908],[-0.266257,14.924309],[-0.515854,15.116158],[-1.066363,14.973815],[-2.001035,14.559008],[-2.191825,14.246418],[-2.967694,13.79815],[-3.103707,13.541267],[-3.522803,13.337662],[-4.006391,13.472485],[-4.280405,13.228444],[-4.427166,12.542646],[-5.220942,11.713859],[-5.197843,11.375146],[-5.470565,10.95127],[-5.404342,10.370737],[-5.816926,10.222555],[-6.050452,10.096361],[-6.205223,10.524061],[-6.493965,10.411303],[-6.666461,10.430811],[-6.850507,10.138994],[-7.622759,10.147236],[-7.89959,10.297382],[-8.029944,10.206535],[-8.335377,10.494812],[-8.282357,10.792597],[-8.407311,10.909257],[-8.620321,10.810891],[-8.581305,11.136246],[-8.376305,11.393646],[-8.786099,11.812561],[-8.905265,12.088358],[-9.127474,12.30806],[-9.327616,12.334286],[-9.567912,12.194243],[-9.890993,12.060479],[-10.165214,11.844084],[-10.593224,11.923975],[-10.87083,12.177887],[-11.036556,12.211245],[-11.297574,12.077971],[-11.456169,12.076834],[-11.513943,12.442988],[-11.467899,12.754519],[-11.553398,13.141214],[-11.927716,13.422075],[-12.124887,13.994727],[-12.17075,14.616834],[-11.834208,14.799097],[-11.666078,15.388208],[-11.349095,15.411256],[-10.650791,15.132746],[-10.086846,15.330486],[-9.700255,15.264107],[-9.550238,15.486497],[-5.537744,15.50169],[-5.315277,16.201854],[-5.488523,16.325102],[-5.971129,20.640833],[-6.453787,24.956591],[-4.923337,24.974574],[-1.550055,22.792666],[1.823228,20.610809],[2.060991,20.142233],[2.683588,19.85623],[3.146661,19.693579],[3.158133,19.057364],[4.267419,19.155265],[4.27021,16.852227],[3.723422,16.184284],[3.638259,15.56812],[2.749993,15.409525],[1.385528,15.323561],[1.015783,14.968182],[0.374892,14.928908]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Myanmar","SOV_A3":"MMR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Myanmar","ADM0_A3":"MMR","GEOU_DIF":0,"GEOUNIT":"Myanmar","GU_A3":"MMR","SU_DIF":0,"SUBUNIT":"Myanmar","SU_A3":"MMR","BRK_DIFF":0,"NAME":"Myanmar","NAME_LONG":"Myanmar","BRK_A3":"MMR","BRK_NAME":"Myanmar","BRK_GROUP":null,"ABBREV":"Myan.","POSTAL":"MM","FORMAL_EN":"Republic of the Union of Myanmar","FORMAL_FR":null,"NAME_CIAWF":"Burma","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Myanmar","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":13,"POP_EST":55123814,"POP_RANK":16,"GDP_MD_EST":311100,"POP_YEAR":2017,"LASTCENSUS":1983,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"BM","ISO_A2":"MM","ISO_A3":"MMR","ISO_A3_EH":"MMR","ISO_N3":"104","UN_A3":"104","WB_A2":"MM","WB_A3":"MMR","WOE_ID":23424763,"WOE_ID_EH":23424763,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MMR","ADM0_A3_US":"MMR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[92.303234,9.93296,101.180005,28.335945],"geometry":{"type":"Polygon","coordinates":[[[92.368554,20.670883],[92.303234,21.475485],[92.652257,21.324048],[92.672721,22.041239],[93.166128,22.27846],[93.060294,22.703111],[93.286327,23.043658],[93.325188,24.078556],[94.106742,23.850741],[94.552658,24.675238],[94.603249,25.162495],[95.155153,26.001307],[95.124768,26.573572],[96.419366,27.264589],[97.133999,27.083774],[97.051989,27.699059],[97.402561,27.882536],[97.327114,28.261583],[97.911988,28.335945],[98.246231,27.747221],[98.68269,27.508812],[98.712094,26.743536],[98.671838,25.918703],[97.724609,25.083637],[97.60472,23.897405],[98.660262,24.063286],[98.898749,23.142722],[99.531992,22.949039],[99.240899,22.118314],[99.983489,21.742937],[100.416538,21.558839],[101.150033,21.849984],[101.180005,21.436573],[100.329101,20.786122],[100.115988,20.41785],[99.543309,20.186598],[98.959676,19.752981],[98.253724,19.708203],[97.797783,18.62708],[97.375896,18.445438],[97.859123,17.567946],[98.493761,16.837836],[98.903348,16.177824],[98.537376,15.308497],[98.192074,15.123703],[98.430819,14.622028],[99.097755,13.827503],[99.212012,13.269294],[99.196354,12.804748],[99.587286,11.892763],[99.038121,10.960546],[98.553551,9.93296],[98.457174,10.675266],[98.764546,11.441292],[98.428339,12.032987],[98.509574,13.122378],[98.103604,13.64046],[97.777732,14.837286],[97.597072,16.100568],[97.16454,16.928734],[96.505769,16.427241],[95.369352,15.71439],[94.808405,15.803454],[94.188804,16.037936],[94.533486,17.27724],[94.324817,18.213514],[93.540988,19.366493],[93.663255,19.726962],[93.078278,19.855145],[92.368554,20.670883]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Montenegro","SOV_A3":"MNE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Montenegro","ADM0_A3":"MNE","GEOU_DIF":0,"GEOUNIT":"Montenegro","GU_A3":"MNE","SU_DIF":0,"SUBUNIT":"Montenegro","SU_A3":"MNE","BRK_DIFF":0,"NAME":"Montenegro","NAME_LONG":"Montenegro","BRK_A3":"MNE","BRK_NAME":"Montenegro","BRK_GROUP":null,"ABBREV":"Mont.","POSTAL":"ME","FORMAL_EN":"Montenegro","FORMAL_FR":null,"NAME_CIAWF":"Montenegro","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Montenegro","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":4,"MAPCOLOR13":5,"POP_EST":642550,"POP_RANK":11,"GDP_MD_EST":10610,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"MJ","ISO_A2":"ME","ISO_A3":"MNE","ISO_A3_EH":"MNE","ISO_N3":"499","UN_A3":"499","WB_A2":"ME","WB_A3":"MNE","WOE_ID":20069817,"WOE_ID_EH":20069817,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MNE","ADM0_A3_US":"MNE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[18.450017,41.877551,20.3398,43.52384],"geometry":{"type":"Polygon","coordinates":[[[20.0707,42.58863],[19.801613,42.500093],[19.738051,42.688247],[19.304486,42.195745],[19.371768,41.877551],[19.16246,41.95502],[18.88214,42.28151],[18.450017,42.479992],[18.56,42.65],[18.70648,43.20011],[19.03165,43.43253],[19.21852,43.52384],[19.48389,43.35229],[19.63,43.21378],[19.95857,43.10604],[20.3398,42.89852],[20.25758,42.81275],[20.0707,42.58863]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Mongolia","SOV_A3":"MNG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Mongolia","ADM0_A3":"MNG","GEOU_DIF":0,"GEOUNIT":"Mongolia","GU_A3":"MNG","SU_DIF":0,"SUBUNIT":"Mongolia","SU_A3":"MNG","BRK_DIFF":0,"NAME":"Mongolia","NAME_LONG":"Mongolia","BRK_A3":"MNG","BRK_NAME":"Mongolia","BRK_GROUP":null,"ABBREV":"Mong.","POSTAL":"MN","FORMAL_EN":"Mongolia","FORMAL_FR":null,"NAME_CIAWF":"Mongolia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Mongolia","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":5,"MAPCOLOR13":6,"POP_EST":3068243,"POP_RANK":12,"GDP_MD_EST":37000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"MG","ISO_A2":"MN","ISO_A3":"MNG","ISO_A3_EH":"MNG","ISO_N3":"496","UN_A3":"496","WB_A2":"MN","WB_A3":"MNG","WOE_ID":23424887,"WOE_ID_EH":23424887,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MNG","ADM0_A3_US":"MNG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[87.751264,41.59741,119.772824,52.047366],"geometry":{"type":"Polygon","coordinates":[[[116.678801,49.888531],[116.191802,49.134598],[115.485282,48.135383],[115.742837,47.726545],[116.308953,47.85341],[117.295507,47.697709],[118.064143,48.06673],[118.866574,47.74706],[119.772824,47.048059],[119.66327,46.69268],[118.874326,46.805412],[117.421701,46.672733],[116.717868,46.388202],[115.985096,45.727235],[114.460332,45.339817],[113.463907,44.808893],[112.436062,45.011646],[111.873306,45.102079],[111.348377,44.457442],[111.667737,44.073176],[111.829588,43.743118],[111.129682,43.406834],[110.412103,42.871234],[109.243596,42.519446],[107.744773,42.481516],[106.129316,42.134328],[104.964994,41.59741],[104.522282,41.908347],[103.312278,41.907468],[101.83304,42.514873],[100.845866,42.663804],[99.515817,42.524691],[97.451757,42.74889],[96.349396,42.725635],[95.762455,43.319449],[95.306875,44.241331],[94.688929,44.352332],[93.480734,44.975472],[92.133891,45.115076],[90.94554,45.286073],[90.585768,45.719716],[90.970809,46.888146],[90.280826,47.693549],[88.854298,48.069082],[88.013832,48.599463],[87.751264,49.297198],[88.805567,49.470521],[90.713667,50.331812],[92.234712,50.802171],[93.10421,50.49529],[94.147566,50.480537],[94.815949,50.013433],[95.81402,49.97746],[97.25976,49.72605],[98.231762,50.422401],[97.82574,51.010995],[98.861491,52.047366],[99.981732,51.634006],[100.88948,51.516856],[102.06521,51.25991],[102.25589,50.51056],[103.676545,50.089966],[104.62158,50.27532],[105.886591,50.406019],[106.888804,50.274296],[107.868176,49.793705],[108.475167,49.282548],[109.402449,49.292961],[110.662011,49.130128],[111.581231,49.377968],[112.89774,49.543565],[114.362456,50.248303],[114.96211,50.140247],[115.485695,49.805177],[116.678801,49.888531]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Mozambique","SOV_A3":"MOZ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Mozambique","ADM0_A3":"MOZ","GEOU_DIF":0,"GEOUNIT":"Mozambique","GU_A3":"MOZ","SU_DIF":0,"SUBUNIT":"Mozambique","SU_A3":"MOZ","BRK_DIFF":0,"NAME":"Mozambique","NAME_LONG":"Mozambique","BRK_A3":"MOZ","BRK_NAME":"Mozambique","BRK_GROUP":null,"ABBREV":"Moz.","POSTAL":"MZ","FORMAL_EN":"Republic of Mozambique","FORMAL_FR":null,"NAME_CIAWF":"Mozambique","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Mozambique","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":2,"MAPCOLOR9":1,"MAPCOLOR13":4,"POP_EST":26573706,"POP_RANK":15,"GDP_MD_EST":35010,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"MZ","ISO_A2":"MZ","ISO_A3":"MOZ","ISO_A3_EH":"MOZ","ISO_N3":"508","UN_A3":"508","WB_A2":"MZ","WB_A3":"MOZ","WOE_ID":23424902,"WOE_ID_EH":23424902,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MOZ","ADM0_A3_US":"MOZ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[30.179481,-26.742192,40.775475,-10.317096],"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[35.312398,-11.439146],[36.514082,-11.720938],[36.775151,-11.594537],[37.47129,-11.56876],[37.82764,-11.26879],[38.427557,-11.285202],[39.521,-10.89688],[40.31659,-10.3171],[40.316586,-10.317098],[40.316589,-10.317096],[40.478387,-10.765441],[40.437253,-11.761711],[40.560811,-12.639177],[40.59962,-14.201975],[40.775475,-14.691764],[40.477251,-15.406294],[40.089264,-16.100774],[39.452559,-16.720891],[38.538351,-17.101023],[37.411133,-17.586368],[36.281279,-18.659688],[35.896497,-18.84226],[35.1984,-19.552811],[34.786383,-19.784012],[34.701893,-20.497043],[35.176127,-21.254361],[35.373428,-21.840837],[35.385848,-22.14],[35.562546,-22.09],[35.533935,-23.070788],[35.371774,-23.535359],[35.60747,-23.706563],[35.458746,-24.12261],[35.040735,-24.478351],[34.215824,-24.816314],[33.01321,-25.357573],[32.574632,-25.727318],[32.660363,-26.148584],[32.915955,-26.215867],[32.83012,-26.742192],[32.071665,-26.73382],[31.985779,-26.29178],[31.837778,-25.843332],[31.752408,-25.484284],[31.930589,-24.369417],[31.670398,-23.658969],[31.191409,-22.25151],[32.244988,-21.116489],[32.508693,-20.395292],[32.659743,-20.30429],[32.772708,-19.715592],[32.611994,-19.419383],[32.654886,-18.67209],[32.849861,-17.979057],[32.847639,-16.713398],[32.328239,-16.392074],[31.852041,-16.319417],[31.636498,-16.07199],[31.173064,-15.860944],[30.338955,-15.880839],[30.274256,-15.507787],[30.179481,-14.796099],[33.214025,-13.97186],[33.7897,-14.451831],[34.064825,-14.35995],[34.459633,-14.61301],[34.517666,-15.013709],[34.307291,-15.478641],[34.381292,-16.18356],[35.03381,-16.8013],[35.339063,-16.10744],[35.771905,-15.896859],[35.686845,-14.611046],[35.267956,-13.887834],[34.907151,-13.565425],[34.559989,-13.579998],[34.280006,-12.280025],[34.559989,-11.52002]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Mauritania","SOV_A3":"MRT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Mauritania","ADM0_A3":"MRT","GEOU_DIF":0,"GEOUNIT":"Mauritania","GU_A3":"MRT","SU_DIF":0,"SUBUNIT":"Mauritania","SU_A3":"MRT","BRK_DIFF":0,"NAME":"Mauritania","NAME_LONG":"Mauritania","BRK_A3":"MRT","BRK_NAME":"Mauritania","BRK_GROUP":null,"ABBREV":"Mrt.","POSTAL":"MR","FORMAL_EN":"Islamic Republic of Mauritania","FORMAL_FR":null,"NAME_CIAWF":"Mauritania","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Mauritania","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":3,"MAPCOLOR9":2,"MAPCOLOR13":1,"POP_EST":3758571,"POP_RANK":12,"GDP_MD_EST":16710,"POP_YEAR":2017,"LASTCENSUS":2000,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"MR","ISO_A2":"MR","ISO_A3":"MRT","ISO_A3_EH":"MRT","ISO_N3":"478","UN_A3":"478","WB_A2":"MR","WB_A3":"MRT","WOE_ID":23424896,"WOE_ID_EH":23424896,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MRT","ADM0_A3_US":"MRT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-17.063423,14.616834,-4.923337,27.395744],"geometry":{"type":"Polygon","coordinates":[[[-8.6844,27.395744],[-4.923337,24.974574],[-6.453787,24.956591],[-5.971129,20.640833],[-5.488523,16.325102],[-5.315277,16.201854],[-5.537744,15.50169],[-9.550238,15.486497],[-9.700255,15.264107],[-10.086846,15.330486],[-10.650791,15.132746],[-11.349095,15.411256],[-11.666078,15.388208],[-11.834208,14.799097],[-12.17075,14.616834],[-12.830658,15.303692],[-13.435738,16.039383],[-14.099521,16.304302],[-14.577348,16.598264],[-15.135737,16.587282],[-15.623666,16.369337],[-16.12069,16.455663],[-16.463098,16.135036],[-16.549708,16.673892],[-16.270552,17.166963],[-16.146347,18.108482],[-16.256883,19.096716],[-16.377651,19.593817],[-16.277838,20.092521],[-16.536324,20.567866],[-17.063423,20.999752],[-16.845194,21.333323],[-12.929102,21.327071],[-13.118754,22.77122],[-12.874222,23.284832],[-11.937224,23.374594],[-11.969419,25.933353],[-8.687294,25.881056],[-8.6844,27.395744]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Malawi","SOV_A3":"MWI","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Malawi","ADM0_A3":"MWI","GEOU_DIF":0,"GEOUNIT":"Malawi","GU_A3":"MWI","SU_DIF":0,"SUBUNIT":"Malawi","SU_A3":"MWI","BRK_DIFF":0,"NAME":"Malawi","NAME_LONG":"Malawi","BRK_A3":"MWI","BRK_NAME":"Malawi","BRK_GROUP":null,"ABBREV":"Mal.","POSTAL":"MW","FORMAL_EN":"Republic of Malawi","FORMAL_FR":null,"NAME_CIAWF":"Malawi","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Malawi","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":5,"POP_EST":19196246,"POP_RANK":14,"GDP_MD_EST":21200,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"MI","ISO_A2":"MW","ISO_A3":"MWI","ISO_A3_EH":"MWI","ISO_N3":"454","UN_A3":"454","WB_A2":"MW","WB_A3":"MWI","WOE_ID":23424889,"WOE_ID_EH":23424889,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MWI","ADM0_A3_US":"MWI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[32.688165,-16.8013,35.771905,-9.230599],"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[34.280006,-12.280025],[34.559989,-13.579998],[34.907151,-13.565425],[35.267956,-13.887834],[35.686845,-14.611046],[35.771905,-15.896859],[35.339063,-16.10744],[35.03381,-16.8013],[34.381292,-16.18356],[34.307291,-15.478641],[34.517666,-15.013709],[34.459633,-14.61301],[34.064825,-14.35995],[33.7897,-14.451831],[33.214025,-13.97186],[32.688165,-13.712858],[32.991764,-12.783871],[33.306422,-12.435778],[33.114289,-11.607198],[33.31531,-10.79655],[33.485688,-10.525559],[33.231388,-9.676722],[32.759375,-9.230599],[33.73972,-9.41715],[33.940838,-9.693674],[34.28,-10.16],[34.559989,-11.52002]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Malaysia","SOV_A3":"MYS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Malaysia","ADM0_A3":"MYS","GEOU_DIF":0,"GEOUNIT":"Malaysia","GU_A3":"MYS","SU_DIF":0,"SUBUNIT":"Malaysia","SU_A3":"MYS","BRK_DIFF":0,"NAME":"Malaysia","NAME_LONG":"Malaysia","BRK_A3":"MYS","BRK_NAME":"Malaysia","BRK_GROUP":null,"ABBREV":"Malay.","POSTAL":"MY","FORMAL_EN":"Malaysia","FORMAL_FR":null,"NAME_CIAWF":"Malaysia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Malaysia","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":4,"MAPCOLOR9":3,"MAPCOLOR13":6,"POP_EST":31381992,"POP_RANK":15,"GDP_MD_EST":863000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"MY","ISO_A2":"MY","ISO_A3":"MYS","ISO_A3_EH":"MYS","ISO_N3":"458","UN_A3":"458","WB_A2":"MY","WB_A3":"MYS","WOE_ID":23424901,"WOE_ID_EH":23424901,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MYS","ADM0_A3_US":"MYS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[100.085757,0.773131,119.181904,6.928053],"geometry":{"type":"MultiPolygon","coordinates":[[[[114.204017,4.525874],[114.659596,4.007637],[114.869557,4.348314],[115.347461,4.316636],[115.4057,4.955228],[115.45071,5.44773],[116.220741,6.143191],[116.725103,6.924771],[117.129626,6.928053],[117.643393,6.422166],[117.689075,5.98749],[118.347691,5.708696],[119.181904,5.407836],[119.110694,5.016128],[118.439727,4.966519],[118.618321,4.478202],[117.882035,4.137551],[117.015214,4.306094],[115.865517,4.306559],[115.519078,3.169238],[115.134037,2.821482],[114.621355,1.430688],[113.80585,1.217549],[112.859809,1.49779],[112.380252,1.410121],[111.797548,0.904441],[111.159138,0.976478],[110.514061,0.773131],[109.830227,1.338136],[109.66326,2.006467],[110.396135,1.663775],[111.168853,1.850637],[111.370081,2.697303],[111.796928,2.885897],[112.995615,3.102395],[113.712935,3.893509],[114.204017,4.525874]]],[[[102.141187,6.221636],[102.371147,6.128205],[102.961705,5.524495],[103.381215,4.855001],[103.438575,4.181606],[103.332122,3.726698],[103.429429,3.382869],[103.502448,2.791019],[103.854674,2.515454],[104.247932,1.631141],[104.228811,1.293048],[103.519707,1.226334],[102.573615,1.967115],[101.390638,2.760814],[101.27354,3.270292],[100.695435,3.93914],[100.557408,4.76728],[100.196706,5.312493],[100.30626,6.040562],[100.085757,6.464489],[100.259596,6.642825],[101.075516,6.204867],[101.154219,5.691384],[101.814282,5.810808],[102.141187,6.221636]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Namibia","SOV_A3":"NAM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Namibia","ADM0_A3":"NAM","GEOU_DIF":0,"GEOUNIT":"Namibia","GU_A3":"NAM","SU_DIF":0,"SUBUNIT":"Namibia","SU_A3":"NAM","BRK_DIFF":0,"NAME":"Namibia","NAME_LONG":"Namibia","BRK_A3":"NAM","BRK_NAME":"Namibia","BRK_GROUP":null,"ABBREV":"Nam.","POSTAL":"NA","FORMAL_EN":"Republic of Namibia","FORMAL_FR":null,"NAME_CIAWF":"Namibia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Namibia","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":1,"MAPCOLOR9":1,"MAPCOLOR13":7,"POP_EST":2484780,"POP_RANK":12,"GDP_MD_EST":25990,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"WA","ISO_A2":"NA","ISO_A3":"NAM","ISO_A3_EH":"NAM","ISO_N3":"516","UN_A3":"516","WB_A2":"NA","WB_A3":"NAM","WOE_ID":23424987,"WOE_ID_EH":23424987,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NAM","ADM0_A3_US":"NAM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Southern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7.5},"bbox":[11.734199,-29.045462,25.084443,-16.941343],"geometry":{"type":"Polygon","coordinates":[[[11.734199,-17.301889],[12.215461,-17.111668],[12.814081,-16.941343],[13.462362,-16.971212],[14.058501,-17.423381],[14.209707,-17.353101],[18.263309,-17.309951],[18.956187,-17.789095],[21.377176,-17.930636],[23.215048,-17.523116],[24.033862,-17.295843],[24.682349,-17.353411],[25.07695,-17.578823],[25.084443,-17.661816],[24.520705,-17.887125],[24.217365,-17.889347],[23.579006,-18.281261],[23.196858,-17.869038],[21.65504,-18.219146],[20.910641,-18.252219],[20.881134,-21.814327],[19.895458,-21.849157],[19.895768,-24.76779],[19.894734,-28.461105],[19.002127,-28.972443],[18.464899,-29.045462],[17.836152,-28.856378],[17.387497,-28.783514],[17.218929,-28.355943],[16.824017,-28.082162],[16.344977,-28.576705],[15.601818,-27.821247],[15.210472,-27.090956],[14.989711,-26.117372],[14.743214,-25.39292],[14.408144,-23.853014],[14.385717,-22.656653],[14.257714,-22.111208],[13.868642,-21.699037],[13.352498,-20.872834],[12.826845,-19.673166],[12.608564,-19.045349],[11.794919,-18.069129],[11.734199,-17.301889]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"France","SOV_A3":"FR1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Dependency","ADMIN":"New Caledonia","ADM0_A3":"NCL","GEOU_DIF":0,"GEOUNIT":"New Caledonia","GU_A3":"NCL","SU_DIF":0,"SUBUNIT":"New Caledonia","SU_A3":"NCL","BRK_DIFF":0,"NAME":"New Caledonia","NAME_LONG":"New Caledonia","BRK_A3":"NCL","BRK_NAME":"New Caledonia","BRK_GROUP":null,"ABBREV":"New C.","POSTAL":"NC","FORMAL_EN":"New Caledonia","FORMAL_FR":"Nouvelle-Cal\xe9donie","NAME_CIAWF":"New Caledonia","NOTE_ADM0":"Fr.","NOTE_BRK":null,"NAME_SORT":"New Caledonia","NAME_ALT":null,"MAPCOLOR7":7,"MAPCOLOR8":5,"MAPCOLOR9":9,"MAPCOLOR13":11,"POP_EST":279070,"POP_RANK":10,"GDP_MD_EST":10770,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"NC","ISO_A2":"NC","ISO_A3":"NCL","ISO_A3_EH":"NCL","ISO_N3":"540","UN_A3":"540","WB_A2":"NC","WB_A3":"NCL","WOE_ID":23424903,"WOE_ID_EH":23424903,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NCL","ADM0_A3_US":"NCL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Melanesia","REGION_WB":"East Asia & Pacific","NAME_LEN":13,"LONG_LEN":13,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":-99,"MIN_ZOOM":0,"MIN_LABEL":4.6,"MAX_LABEL":8},"bbox":[164.029606,-22.399976,167.120011,-20.105646],"geometry":{"type":"Polygon","coordinates":[[[165.77999,-21.080005],[166.599991,-21.700019],[167.120011,-22.159991],[166.740035,-22.399976],[166.189732,-22.129708],[165.474375,-21.679607],[164.829815,-21.14982],[164.167995,-20.444747],[164.029606,-20.105646],[164.459967,-20.120012],[165.020036,-20.459991],[165.460009,-20.800022],[165.77999,-21.080005]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Niger","SOV_A3":"NER","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Niger","ADM0_A3":"NER","GEOU_DIF":0,"GEOUNIT":"Niger","GU_A3":"NER","SU_DIF":0,"SUBUNIT":"Niger","SU_A3":"NER","BRK_DIFF":0,"NAME":"Niger","NAME_LONG":"Niger","BRK_A3":"NER","BRK_NAME":"Niger","BRK_GROUP":null,"ABBREV":"Niger","POSTAL":"NE","FORMAL_EN":"Republic of Niger","FORMAL_FR":null,"NAME_CIAWF":"Niger","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Niger","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":3,"MAPCOLOR13":13,"POP_EST":19245344,"POP_RANK":14,"GDP_MD_EST":20150,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"NG","ISO_A2":"NE","ISO_A3":"NER","ISO_A3_EH":"NER","ISO_N3":"562","UN_A3":"562","WB_A2":"NE","WB_A3":"NER","WOE_ID":23424906,"WOE_ID_EH":23424906,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NER","ADM0_A3_US":"NER","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[0.295646,11.660167,15.903247,23.471668],"geometry":{"type":"Polygon","coordinates":[[[3.61118,11.660167],[2.848643,12.235636],[2.490164,12.233052],[2.154474,11.94015],[2.177108,12.625018],[1.024103,12.851826],[0.993046,13.33575],[0.429928,13.988733],[0.295646,14.444235],[0.374892,14.928908],[1.015783,14.968182],[1.385528,15.323561],[2.749993,15.409525],[3.638259,15.56812],[3.723422,16.184284],[4.27021,16.852227],[4.267419,19.155265],[5.677566,19.601207],[8.572893,21.565661],[11.999506,23.471668],[13.581425,23.040506],[14.143871,22.491289],[14.8513,22.86295],[15.096888,21.308519],[15.47106,21.04845],[15.487148,20.730415],[15.903247,20.387619],[15.685741,19.95718],[15.300441,17.92795],[15.247731,16.627306],[13.97217,15.68437],[13.540394,14.367134],[13.956699,13.996691],[13.954477,13.353449],[14.595781,13.330427],[14.495787,12.859396],[14.213531,12.802035],[14.181336,12.483657],[13.995353,12.461565],[13.318702,13.556356],[13.083987,13.596147],[12.302071,13.037189],[11.527803,13.32898],[10.989593,13.387323],[10.701032,13.246918],[10.114814,13.277252],[9.524928,12.851102],[9.014933,12.826659],[7.804671,13.343527],[7.330747,13.098038],[6.820442,13.115091],[6.445426,13.492768],[5.443058,13.865924],[4.368344,13.747482],[4.107946,13.531216],[3.967283,12.956109],[3.680634,12.552903],[3.61118,11.660167]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Nigeria","SOV_A3":"NGA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Nigeria","ADM0_A3":"NGA","GEOU_DIF":0,"GEOUNIT":"Nigeria","GU_A3":"NGA","SU_DIF":0,"SUBUNIT":"Nigeria","SU_A3":"NGA","BRK_DIFF":0,"NAME":"Nigeria","NAME_LONG":"Nigeria","BRK_A3":"NGA","BRK_NAME":"Nigeria","BRK_GROUP":null,"ABBREV":"Nigeria","POSTAL":"NG","FORMAL_EN":"Federal Republic of Nigeria","FORMAL_FR":null,"NAME_CIAWF":"Nigeria","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Nigeria","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":2,"POP_EST":190632261,"POP_RANK":17,"GDP_MD_EST":1089000,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"NI","ISO_A2":"NG","ISO_A3":"NGA","ISO_A3_EH":"NGA","ISO_N3":"566","UN_A3":"566","WB_A2":"NG","WB_A3":"NGA","WOE_ID":23424908,"WOE_ID_EH":23424908,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NGA","ADM0_A3_US":"NGA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[2.691702,4.240594,14.577178,13.865924],"geometry":{"type":"Polygon","coordinates":[[[2.691702,6.258817],[2.749063,7.870734],[2.723793,8.506845],[2.912308,9.137608],[3.220352,9.444153],[3.705438,10.06321],[3.60007,10.332186],[3.797112,10.734746],[3.572216,11.327939],[3.61118,11.660167],[3.680634,12.552903],[3.967283,12.956109],[4.107946,13.531216],[4.368344,13.747482],[5.443058,13.865924],[6.445426,13.492768],[6.820442,13.115091],[7.330747,13.098038],[7.804671,13.343527],[9.014933,12.826659],[9.524928,12.851102],[10.114814,13.277252],[10.701032,13.246918],[10.989593,13.387323],[11.527803,13.32898],[12.302071,13.037189],[13.083987,13.596147],[13.318702,13.556356],[13.995353,12.461565],[14.181336,12.483657],[14.577178,12.085361],[14.468192,11.904752],[14.415379,11.572369],[13.57295,10.798566],[13.308676,10.160362],[13.1676,9.640626],[12.955468,9.417772],[12.753672,8.717763],[12.218872,8.305824],[12.063946,7.799808],[11.839309,7.397042],[11.745774,6.981383],[11.058788,6.644427],[10.497375,7.055358],[10.118277,7.03877],[9.522706,6.453482],[9.233163,6.444491],[8.757533,5.479666],[8.500288,4.771983],[7.462108,4.412108],[7.082596,4.464689],[6.698072,4.240594],[5.898173,4.262453],[5.362805,4.887971],[5.033574,5.611802],[4.325607,6.270651],[3.57418,6.2583],[2.691702,6.258817]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Nicaragua","SOV_A3":"NIC","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Nicaragua","ADM0_A3":"NIC","GEOU_DIF":0,"GEOUNIT":"Nicaragua","GU_A3":"NIC","SU_DIF":0,"SUBUNIT":"Nicaragua","SU_A3":"NIC","BRK_DIFF":0,"NAME":"Nicaragua","NAME_LONG":"Nicaragua","BRK_A3":"NIC","BRK_NAME":"Nicaragua","BRK_GROUP":null,"ABBREV":"Nic.","POSTAL":"NI","FORMAL_EN":"Republic of Nicaragua","FORMAL_FR":null,"NAME_CIAWF":"Nicaragua","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Nicaragua","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":9,"POP_EST":6025951,"POP_RANK":13,"GDP_MD_EST":33550,"POP_YEAR":2017,"LASTCENSUS":2005,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"NU","ISO_A2":"NI","ISO_A3":"NIC","ISO_A3_EH":"NIC","ISO_N3":"558","UN_A3":"558","WB_A2":"NI","WB_A3":"NIC","WOE_ID":23424915,"WOE_ID_EH":23424915,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NIC","ADM0_A3_US":"NIC","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-87.668493,10.726839,-83.147219,15.016267],"geometry":{"type":"Polygon","coordinates":[[[-83.655612,10.938764],[-83.895054,10.726839],[-84.190179,10.79345],[-84.355931,10.999226],[-84.673069,11.082657],[-84.903003,10.952303],[-85.561852,11.217119],[-85.71254,11.088445],[-86.058488,11.403439],[-86.52585,11.806877],[-86.745992,12.143962],[-87.167516,12.458258],[-87.668493,12.90991],[-87.557467,13.064552],[-87.392386,12.914018],[-87.316654,12.984686],[-87.005769,13.025794],[-86.880557,13.254204],[-86.733822,13.263093],[-86.755087,13.754845],[-86.520708,13.778487],[-86.312142,13.771356],[-86.096264,14.038187],[-85.801295,13.836055],[-85.698665,13.960078],[-85.514413,14.079012],[-85.165365,14.35437],[-85.148751,14.560197],[-85.052787,14.551541],[-84.924501,14.790493],[-84.820037,14.819587],[-84.649582,14.666805],[-84.449336,14.621614],[-84.228342,14.748764],[-83.975721,14.749436],[-83.628585,14.880074],[-83.489989,15.016267],[-83.147219,14.995829],[-83.233234,14.899866],[-83.284162,14.676624],[-83.182126,14.310703],[-83.4125,13.970078],[-83.519832,13.567699],[-83.552207,13.127054],[-83.498515,12.869292],[-83.473323,12.419087],[-83.626104,12.32085],[-83.719613,11.893124],[-83.650858,11.629032],[-83.85547,11.373311],[-83.808936,11.103044],[-83.655612,10.938764]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Netherlands","SOV_A3":"NL1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"Netherlands","ADM0_A3":"NLD","GEOU_DIF":0,"GEOUNIT":"Netherlands","GU_A3":"NLD","SU_DIF":0,"SUBUNIT":"Netherlands","SU_A3":"NLD","BRK_DIFF":0,"NAME":"Netherlands","NAME_LONG":"Netherlands","BRK_A3":"NLD","BRK_NAME":"Netherlands","BRK_GROUP":null,"ABBREV":"Neth.","POSTAL":"NL","FORMAL_EN":"Kingdom of the Netherlands","FORMAL_FR":null,"NAME_CIAWF":"Netherlands","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Netherlands","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":9,"POP_EST":17084719,"POP_RANK":14,"GDP_MD_EST":870800,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"NL","ISO_A2":"NL","ISO_A3":"NLD","ISO_A3_EH":"NLD","ISO_N3":"528","UN_A3":"528","WB_A2":"NL","WB_A3":"NLD","WOE_ID":-90,"WOE_ID_EH":23424909,"WOE_NOTE":"Doesn\'t include new former units of Netherlands Antilles (24549811, 24549808, and 24549809)","ADM0_A3_IS":"NLD","ADM0_A3_US":"NLD","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Western Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[3.314971,50.803721,7.092053,53.510403],"geometry":{"type":"Polygon","coordinates":[[[6.156658,50.803721],[5.606976,51.037298],[4.973991,51.475024],[4.047071,51.267259],[3.314971,51.345755],[3.315011,51.345777],[3.830289,51.620545],[4.705997,53.091798],[6.074183,53.510403],[6.90514,53.482162],[7.092053,53.144043],[6.84287,52.22844],[6.589397,51.852029],[5.988658,51.851616],[6.156658,50.803721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Norway","SOV_A3":"NOR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Norway","ADM0_A3":"NOR","GEOU_DIF":0,"GEOUNIT":"Norway","GU_A3":"NOR","SU_DIF":0,"SUBUNIT":"Norway","SU_A3":"NOR","BRK_DIFF":0,"NAME":"Norway","NAME_LONG":"Norway","BRK_A3":"NOR","BRK_NAME":"Norway","BRK_GROUP":null,"ABBREV":"Nor.","POSTAL":"N","FORMAL_EN":"Kingdom of Norway","FORMAL_FR":null,"NAME_CIAWF":"Norway","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Norway","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":8,"MAPCOLOR13":12,"POP_EST":5320045,"POP_RANK":13,"GDP_MD_EST":364700,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"NO","ISO_A3":"-99","ISO_A3_EH":"-99","ISO_N3":"-99","UN_A3":"-99","WB_A2":"NOR","WB_A3":"-99","WOE_ID":-90,"WOE_ID_EH":23424910,"WOE_NOTE":"Does not include Svalbard, Jan Mayen, or Bouvet Islands (28289410).","ADM0_A3_IS":"NOR","ADM0_A3_US":"NOR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[4.992078,58.078884,31.293418,80.657144],"geometry":{"type":"MultiPolygon","coordinates":[[[[28.59193,69.064777],[29.015573,69.766491],[27.732292,70.164193],[26.179622,69.825299],[25.689213,69.092114],[24.735679,68.649557],[23.66205,68.891247],[22.356238,68.841741],[21.244936,69.370443],[20.645593,69.106247],[20.025269,69.065139],[19.87856,68.407194],[17.993868,68.567391],[17.729182,68.010552],[16.768879,68.013937],[16.108712,67.302456],[15.108411,66.193867],[13.55569,64.787028],[13.919905,64.445421],[13.571916,64.049114],[12.579935,64.066219],[11.930569,63.128318],[11.992064,61.800362],[12.631147,61.293572],[12.300366,60.117933],[11.468272,59.432393],[11.027369,58.856149],[10.356557,59.469807],[8.382,58.313288],[7.048748,58.078884],[5.665835,58.588155],[5.308234,59.663232],[4.992078,61.970998],[5.9129,62.614473],[8.553411,63.454008],[10.527709,64.486038],[12.358347,65.879726],[14.761146,67.810642],[16.435927,68.563205],[19.184028,69.817444],[21.378416,70.255169],[23.023742,70.202072],[24.546543,71.030497],[26.37005,70.986262],[28.165547,71.185474],[31.293418,70.453788],[30.005435,70.186259],[31.101042,69.558101],[29.39955,69.15692],[28.59193,69.064777]]],[[[24.72412,77.85385],[22.49032,77.44493],[20.72601,77.67704],[21.41611,77.93504],[20.8119,78.25463],[22.88426,78.45494],[23.28134,78.07954],[24.72412,77.85385]]],[[[18.25183,79.70175],[21.54383,78.95611],[19.02737,78.5626],[18.47172,77.82669],[17.59441,77.63796],[17.1182,76.80941],[15.91315,76.77045],[13.76259,77.38035],[14.66956,77.73565],[13.1706,78.02493],[11.22231,78.8693],[10.44453,79.65239],[13.17077,80.01046],[13.71852,79.66039],[15.14282,79.67431],[15.52255,80.01608],[16.99085,80.05086],[18.25183,79.70175]]],[[[25.447625,80.40734],[27.407506,80.056406],[25.924651,79.517834],[23.024466,79.400012],[20.075188,79.566823],[19.897266,79.842362],[18.462264,79.85988],[17.368015,80.318896],[20.455992,80.598156],[21.907945,80.357679],[22.919253,80.657144],[25.447625,80.40734]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Nepal","SOV_A3":"NPL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Nepal","ADM0_A3":"NPL","GEOU_DIF":0,"GEOUNIT":"Nepal","GU_A3":"NPL","SU_DIF":0,"SUBUNIT":"Nepal","SU_A3":"NPL","BRK_DIFF":0,"NAME":"Nepal","NAME_LONG":"Nepal","BRK_A3":"NPL","BRK_NAME":"Nepal","BRK_GROUP":null,"ABBREV":"Nepal","POSTAL":"NP","FORMAL_EN":"Nepal","FORMAL_FR":null,"NAME_CIAWF":"Nepal","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Nepal","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":12,"POP_EST":29384297,"POP_RANK":15,"GDP_MD_EST":71520,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"NP","ISO_A2":"NP","ISO_A3":"NPL","ISO_A3_EH":"NPL","ISO_N3":"524","UN_A3":"524","WB_A2":"NP","WB_A3":"NPL","WOE_ID":23424911,"WOE_ID_EH":23424911,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NPL","ADM0_A3_US":"NPL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[80.088425,26.397898,88.174804,30.422717],"geometry":{"type":"Polygon","coordinates":[[[81.111256,30.183481],[81.525804,30.422717],[82.327513,30.115268],[83.337115,29.463732],[83.898993,29.320226],[84.23458,28.839894],[85.011638,28.642774],[85.82332,28.203576],[86.954517,27.974262],[88.120441,27.876542],[88.043133,27.445819],[88.174804,26.810405],[88.060238,26.414615],[87.227472,26.397898],[86.024393,26.630985],[85.251779,26.726198],[84.675018,27.234901],[83.304249,27.364506],[81.999987,27.925479],[81.057203,28.416095],[80.088425,28.79447],[80.476721,29.729865],[81.111256,30.183481]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"New Zealand","SOV_A3":"NZ1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"New Zealand","ADM0_A3":"NZL","GEOU_DIF":0,"GEOUNIT":"New Zealand","GU_A3":"NZL","SU_DIF":0,"SUBUNIT":"New Zealand","SU_A3":"NZL","BRK_DIFF":0,"NAME":"New Zealand","NAME_LONG":"New Zealand","BRK_A3":"NZL","BRK_NAME":"New Zealand","BRK_GROUP":null,"ABBREV":"N.Z.","POSTAL":"NZ","FORMAL_EN":"New Zealand","FORMAL_FR":null,"NAME_CIAWF":"New Zealand","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"New Zealand","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":4,"POP_EST":4510327,"POP_RANK":12,"GDP_MD_EST":174800,"POP_YEAR":2017,"LASTCENSUS":2006,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"NZ","ISO_A2":"NZ","ISO_A3":"NZL","ISO_A3_EH":"NZL","ISO_N3":"554","UN_A3":"554","WB_A2":"NZ","WB_A3":"NZL","WOE_ID":23424916,"WOE_ID_EH":23424916,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"NZL","ADM0_A3_US":"NZL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Australia and New Zealand","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":6.7},"bbox":[166.509144,-46.641235,178.517094,-34.450662],"geometry":{"type":"MultiPolygon","coordinates":[[[[173.020375,-40.919052],[173.247234,-41.331999],[173.958405,-40.926701],[174.247587,-41.349155],[174.248517,-41.770008],[173.876447,-42.233184],[173.22274,-42.970038],[172.711246,-43.372288],[173.080113,-43.853344],[172.308584,-43.865694],[171.452925,-44.242519],[171.185138,-44.897104],[170.616697,-45.908929],[169.831422,-46.355775],[169.332331,-46.641235],[168.411354,-46.619945],[167.763745,-46.290197],[166.676886,-46.219917],[166.509144,-45.852705],[167.046424,-45.110941],[168.303763,-44.123973],[168.949409,-43.935819],[169.667815,-43.555326],[170.52492,-43.031688],[171.12509,-42.512754],[171.569714,-41.767424],[171.948709,-41.514417],[172.097227,-40.956104],[172.79858,-40.493962],[173.020375,-40.919052]]],[[[174.612009,-36.156397],[175.336616,-37.209098],[175.357596,-36.526194],[175.808887,-36.798942],[175.95849,-37.555382],[176.763195,-37.881253],[177.438813,-37.961248],[178.010354,-37.579825],[178.517094,-37.695373],[178.274731,-38.582813],[177.97046,-39.166343],[177.206993,-39.145776],[176.939981,-39.449736],[177.032946,-39.879943],[176.885824,-40.065978],[176.508017,-40.604808],[176.01244,-41.289624],[175.239567,-41.688308],[175.067898,-41.425895],[174.650973,-41.281821],[175.22763,-40.459236],[174.900157,-39.908933],[173.824047,-39.508854],[173.852262,-39.146602],[174.574802,-38.797683],[174.743474,-38.027808],[174.697017,-37.381129],[174.292028,-36.711092],[174.319004,-36.534824],[173.840997,-36.121981],[173.054171,-35.237125],[172.636005,-34.529107],[173.007042,-34.450662],[173.551298,-35.006183],[174.32939,-35.265496],[174.612009,-36.156397]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Oman","SOV_A3":"OMN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Oman","ADM0_A3":"OMN","GEOU_DIF":0,"GEOUNIT":"Oman","GU_A3":"OMN","SU_DIF":0,"SUBUNIT":"Oman","SU_A3":"OMN","BRK_DIFF":0,"NAME":"Oman","NAME_LONG":"Oman","BRK_A3":"OMN","BRK_NAME":"Oman","BRK_GROUP":null,"ABBREV":"Oman","POSTAL":"OM","FORMAL_EN":"Sultanate of Oman","FORMAL_FR":null,"NAME_CIAWF":"Oman","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Oman","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":6,"POP_EST":3424386,"POP_RANK":12,"GDP_MD_EST":173100,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"MU","ISO_A2":"OM","ISO_A3":"OMN","ISO_A3_EH":"OMN","ISO_N3":"512","UN_A3":"512","WB_A2":"OM","WB_A3":"OMN","WOE_ID":23424898,"WOE_ID_EH":23424898,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"OMN","ADM0_A3_US":"OMN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[52.00001,16.651051,59.80806,26.395934],"geometry":{"type":"MultiPolygon","coordinates":[[[[56.261042,25.714606],[56.070821,26.055464],[56.362017,26.395934],[56.485679,26.309118],[56.391421,25.895991],[56.261042,25.714606]]],[[[55.208341,22.70833],[55.234489,23.110993],[55.525841,23.524869],[55.528632,23.933604],[55.981214,24.130543],[55.804119,24.269604],[55.886233,24.920831],[56.396847,24.924732],[56.84514,24.241673],[57.403453,23.878594],[58.136948,23.747931],[58.729211,23.565668],[59.180502,22.992395],[59.450098,22.660271],[59.80806,22.533612],[59.806148,22.310525],[59.442191,21.714541],[59.282408,21.433886],[58.861141,21.114035],[58.487986,20.428986],[58.034318,20.481437],[57.826373,20.243002],[57.665762,19.736005],[57.7887,19.06757],[57.694391,18.94471],[57.234264,18.947991],[56.609651,18.574267],[56.512189,18.087113],[56.283521,17.876067],[55.661492,17.884128],[55.269939,17.632309],[55.2749,17.228354],[54.791002,16.950697],[54.239253,17.044981],[53.570508,16.707663],[53.108573,16.651051],[52.782184,17.349742],[52.00001,19.000003],[54.999982,19.999994],[55.666659,22.000001],[55.208341,22.70833]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Pakistan","SOV_A3":"PAK","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Pakistan","ADM0_A3":"PAK","GEOU_DIF":0,"GEOUNIT":"Pakistan","GU_A3":"PAK","SU_DIF":0,"SUBUNIT":"Pakistan","SU_A3":"PAK","BRK_DIFF":0,"NAME":"Pakistan","NAME_LONG":"Pakistan","BRK_A3":"PAK","BRK_NAME":"Pakistan","BRK_GROUP":null,"ABBREV":"Pak.","POSTAL":"PK","FORMAL_EN":"Islamic Republic of Pakistan","FORMAL_FR":null,"NAME_CIAWF":"Pakistan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Pakistan","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":11,"POP_EST":204924861,"POP_RANK":17,"GDP_MD_EST":988200,"POP_YEAR":2017,"LASTCENSUS":1998,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"PK","ISO_A2":"PK","ISO_A3":"PAK","ISO_A3_EH":"PAK","ISO_N3":"586","UN_A3":"586","WB_A2":"PK","WB_A3":"PAK","WOE_ID":23424922,"WOE_ID_EH":23424922,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PAK","ADM0_A3_US":"PAK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Southern Asia","REGION_WB":"South Asia","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[60.874248,23.691965,77.837451,37.133031],"geometry":{"type":"Polygon","coordinates":[[[60.874248,29.829239],[62.549857,29.318572],[63.550261,29.468331],[64.148002,29.340819],[64.350419,29.560031],[65.046862,29.472181],[66.346473,29.887943],[66.381458,30.738899],[66.938891,31.304911],[67.683394,31.303154],[67.792689,31.58293],[68.556932,31.71331],[68.926677,31.620189],[69.317764,31.901412],[69.262522,32.501944],[69.687147,33.105499],[70.323594,33.358533],[69.930543,34.02012],[70.881803,33.988856],[71.156773,34.348911],[71.115019,34.733126],[71.613076,35.153203],[71.498768,35.650563],[71.262348,36.074388],[71.846292,36.509942],[72.920025,36.720007],[74.067552,36.836176],[74.575893,37.020841],[75.158028,37.133031],[75.896897,36.666806],[76.192848,35.898403],[77.837451,35.49401],[76.871722,34.653544],[75.757061,34.504923],[74.240203,34.748887],[73.749948,34.317699],[74.104294,33.441473],[74.451559,32.7649],[75.258642,32.271105],[74.405929,31.692639],[74.42138,30.979815],[73.450638,29.976413],[72.823752,28.961592],[71.777666,27.91318],[70.616496,27.989196],[69.514393,26.940966],[70.168927,26.491872],[70.282873,25.722229],[70.844699,25.215102],[71.04324,24.356524],[68.842599,24.359134],[68.176645,23.691965],[67.443667,23.944844],[67.145442,24.663611],[66.372828,25.425141],[64.530408,25.237039],[62.905701,25.218409],[61.497363,25.078237],[61.874187,26.239975],[63.316632,26.756532],[63.233898,27.217047],[62.755426,27.378923],[62.72783,28.259645],[61.771868,28.699334],[61.369309,29.303276],[60.874248,29.829239]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Panama","SOV_A3":"PAN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Panama","ADM0_A3":"PAN","GEOU_DIF":0,"GEOUNIT":"Panama","GU_A3":"PAN","SU_DIF":0,"SUBUNIT":"Panama","SU_A3":"PAN","BRK_DIFF":0,"NAME":"Panama","NAME_LONG":"Panama","BRK_A3":"PAN","BRK_NAME":"Panama","BRK_GROUP":null,"ABBREV":"Pan.","POSTAL":"PA","FORMAL_EN":"Republic of Panama","FORMAL_FR":null,"NAME_CIAWF":"Panama","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Panama","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":6,"MAPCOLOR13":3,"POP_EST":3753142,"POP_RANK":12,"GDP_MD_EST":93120,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"PM","ISO_A2":"PA","ISO_A3":"PAN","ISO_A3_EH":"PAN","ISO_N3":"591","UN_A3":"591","WB_A2":"PA","WB_A3":"PAN","WOE_ID":23424924,"WOE_ID_EH":23424924,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PAN","ADM0_A3_US":"PAN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-82.965783,7.220541,-77.242566,9.61161],"geometry":{"type":"Polygon","coordinates":[[[-77.353361,8.670505],[-77.474723,8.524286],[-77.242566,7.935278],[-77.431108,7.638061],[-77.753414,7.70984],[-77.881571,7.223771],[-78.214936,7.512255],[-78.429161,8.052041],[-78.182096,8.319182],[-78.435465,8.387705],[-78.622121,8.718124],[-79.120307,8.996092],[-79.557877,8.932375],[-79.760578,8.584515],[-80.164481,8.333316],[-80.382659,8.298409],[-80.480689,8.090308],[-80.00369,7.547524],[-80.276671,7.419754],[-80.421158,7.271572],[-80.886401,7.220541],[-81.059543,7.817921],[-81.189716,7.647906],[-81.519515,7.70661],[-81.721311,8.108963],[-82.131441,8.175393],[-82.390934,8.292362],[-82.820081,8.290864],[-82.850958,8.073823],[-82.965783,8.225028],[-82.913176,8.423517],[-82.829771,8.626295],[-82.868657,8.807266],[-82.719183,8.925709],[-82.927155,9.07433],[-82.932891,9.476812],[-82.546196,9.566135],[-82.187123,9.207449],[-82.207586,8.995575],[-81.808567,8.950617],[-81.714154,9.031955],[-81.439287,8.786234],[-80.947302,8.858504],[-80.521901,9.111072],[-79.9146,9.312765],[-79.573303,9.61161],[-79.021192,9.552931],[-79.05845,9.454565],[-78.500888,9.420459],[-78.055928,9.24773],[-77.729514,8.946844],[-77.353361,8.670505]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Peru","SOV_A3":"PER","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Peru","ADM0_A3":"PER","GEOU_DIF":0,"GEOUNIT":"Peru","GU_A3":"PER","SU_DIF":0,"SUBUNIT":"Peru","SU_A3":"PER","BRK_DIFF":0,"NAME":"Peru","NAME_LONG":"Peru","BRK_A3":"PER","BRK_NAME":"Peru","BRK_GROUP":null,"ABBREV":"Peru","POSTAL":"PE","FORMAL_EN":"Republic of Peru","FORMAL_FR":null,"NAME_CIAWF":"Peru","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Peru","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":11,"POP_EST":31036656,"POP_RANK":15,"GDP_MD_EST":410400,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"PE","ISO_A2":"PE","ISO_A3":"PER","ISO_A3_EH":"PER","ISO_N3":"604","UN_A3":"604","WB_A2":"PE","WB_A3":"PER","WOE_ID":23424919,"WOE_ID_EH":23424919,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PER","ADM0_A3_US":"PER","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[-81.410943,-18.347975,-68.66508,-0.057205],"geometry":{"type":"Polygon","coordinates":[[[-69.529678,-10.951734],[-68.66508,-12.5613],[-68.88008,-12.899729],[-68.929224,-13.602684],[-68.948887,-14.453639],[-69.339535,-14.953195],[-69.160347,-15.323974],[-69.389764,-15.660129],[-68.959635,-16.500698],[-69.590424,-17.580012],[-69.858444,-18.092694],[-70.372572,-18.347975],[-71.37525,-17.773799],[-71.462041,-17.363488],[-73.44453,-16.359363],[-75.237883,-15.265683],[-76.009205,-14.649286],[-76.423469,-13.823187],[-76.259242,-13.535039],[-77.106192,-12.222716],[-78.092153,-10.377712],[-79.036953,-8.386568],[-79.44592,-7.930833],[-79.760578,-7.194341],[-80.537482,-6.541668],[-81.249996,-6.136834],[-80.926347,-5.690557],[-81.410943,-4.736765],[-81.09967,-4.036394],[-80.302561,-3.404856],[-80.184015,-3.821162],[-80.469295,-4.059287],[-80.442242,-4.425724],[-80.028908,-4.346091],[-79.624979,-4.454198],[-79.205289,-4.959129],[-78.639897,-4.547784],[-78.450684,-3.873097],[-77.837905,-3.003021],[-76.635394,-2.608678],[-75.544996,-1.56161],[-75.233723,-0.911417],[-75.373223,-0.152032],[-75.106625,-0.057205],[-74.441601,-0.53082],[-74.122395,-1.002833],[-73.659504,-1.260491],[-73.070392,-2.308954],[-72.325787,-2.434218],[-71.774761,-2.16979],[-71.413646,-2.342802],[-70.813476,-2.256865],[-70.047709,-2.725156],[-70.692682,-3.742872],[-70.394044,-3.766591],[-69.893635,-4.298187],[-70.794769,-4.251265],[-70.928843,-4.401591],[-71.748406,-4.593983],[-72.891928,-5.274561],[-72.964507,-5.741251],[-73.219711,-6.089189],[-73.120027,-6.629931],[-73.724487,-6.918595],[-73.723401,-7.340999],[-73.987235,-7.52383],[-73.571059,-8.424447],[-73.015383,-9.032833],[-73.226713,-9.462213],[-72.563033,-9.520194],[-72.184891,-10.053598],[-71.302412,-10.079436],[-70.481894,-9.490118],[-70.548686,-11.009147],[-70.093752,-11.123972],[-69.529678,-10.951734]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Philippines","SOV_A3":"PHL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Philippines","ADM0_A3":"PHL","GEOU_DIF":0,"GEOUNIT":"Philippines","GU_A3":"PHL","SU_DIF":0,"SUBUNIT":"Philippines","SU_A3":"PHL","BRK_DIFF":0,"NAME":"Philippines","NAME_LONG":"Philippines","BRK_A3":"PHL","BRK_NAME":"Philippines","BRK_GROUP":null,"ABBREV":"Phil.","POSTAL":"PH","FORMAL_EN":"Republic of the Philippines","FORMAL_FR":null,"NAME_CIAWF":"Philippines","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Philippines","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":8,"POP_EST":104256076,"POP_RANK":17,"GDP_MD_EST":801900,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"RP","ISO_A2":"PH","ISO_A3":"PHL","ISO_A3_EH":"PHL","ISO_N3":"608","UN_A3":"608","WB_A2":"PH","WB_A3":"PHL","WOE_ID":23424934,"WOE_ID_EH":23424934,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PHL","ADM0_A3_US":"PHL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[117.174275,5.581003,126.537424,18.505227],"geometry":{"type":"MultiPolygon","coordinates":[[[[126.376814,8.414706],[126.478513,7.750354],[126.537424,7.189381],[126.196773,6.274294],[125.831421,7.293715],[125.363852,6.786485],[125.683161,6.049657],[125.396512,5.581003],[124.219788,6.161355],[123.93872,6.885136],[124.243662,7.36061],[123.610212,7.833527],[123.296071,7.418876],[122.825506,7.457375],[122.085499,6.899424],[121.919928,7.192119],[122.312359,8.034962],[122.942398,8.316237],[123.487688,8.69301],[123.841154,8.240324],[124.60147,8.514158],[124.764612,8.960409],[125.471391,8.986997],[125.412118,9.760335],[126.222714,9.286074],[126.306637,8.782487],[126.376814,8.414706]]],[[[123.982438,10.278779],[123.623183,9.950091],[123.309921,9.318269],[122.995883,9.022189],[122.380055,9.713361],[122.586089,9.981045],[122.837081,10.261157],[122.947411,10.881868],[123.49885,10.940624],[123.337774,10.267384],[124.077936,11.232726],[123.982438,10.278779]]],[[[118.504581,9.316383],[117.174275,8.3675],[117.664477,9.066889],[118.386914,9.6845],[118.987342,10.376292],[119.511496,11.369668],[119.689677,10.554291],[119.029458,10.003653],[118.504581,9.316383]]],[[[121.883548,11.891755],[122.483821,11.582187],[123.120217,11.58366],[123.100838,11.165934],[122.637714,10.741308],[122.00261,10.441017],[121.967367,10.905691],[122.03837,11.415841],[121.883548,11.891755]]],[[[125.502552,12.162695],[125.783465,11.046122],[125.011884,11.311455],[125.032761,10.975816],[125.277449,10.358722],[124.801819,10.134679],[124.760168,10.837995],[124.459101,10.88993],[124.302522,11.495371],[124.891013,11.415583],[124.87799,11.79419],[124.266762,12.557761],[125.227116,12.535721],[125.502552,12.162695]]],[[[121.527394,13.06959],[121.26219,12.20556],[120.833896,12.704496],[120.323436,13.466413],[121.180128,13.429697],[121.527394,13.06959]]],[[[121.321308,18.504065],[121.937601,18.218552],[122.246006,18.47895],[122.336957,18.224883],[122.174279,17.810283],[122.515654,17.093505],[122.252311,16.262444],[121.662786,15.931018],[121.50507,15.124814],[121.728829,14.328376],[122.258925,14.218202],[122.701276,14.336541],[123.950295,13.782131],[123.855107,13.237771],[124.181289,12.997527],[124.077419,12.536677],[123.298035,13.027526],[122.928652,13.55292],[122.671355,13.185836],[122.03465,13.784482],[121.126385,13.636687],[120.628637,13.857656],[120.679384,14.271016],[120.991819,14.525393],[120.693336,14.756671],[120.564145,14.396279],[120.070429,14.970869],[119.920929,15.406347],[119.883773,16.363704],[120.286488,16.034629],[120.390047,17.599081],[120.715867,18.505227],[121.321308,18.504065]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Papua New Guinea","SOV_A3":"PNG","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Papua New Guinea","ADM0_A3":"PNG","GEOU_DIF":0,"GEOUNIT":"Papua New Guinea","GU_A3":"PNG","SU_DIF":1,"SUBUNIT":"Papua New Guinea","SU_A3":"PN1","BRK_DIFF":0,"NAME":"Papua New Guinea","NAME_LONG":"Papua New Guinea","BRK_A3":"PN1","BRK_NAME":"Papua New Guinea","BRK_GROUP":null,"ABBREV":"P.N.G.","POSTAL":"PG","FORMAL_EN":"Independent State of Papua New Guinea","FORMAL_FR":null,"NAME_CIAWF":"Papua New Guinea","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Papua New Guinea","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":1,"POP_EST":6909701,"POP_RANK":13,"GDP_MD_EST":28020,"POP_YEAR":2017,"LASTCENSUS":2000,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"PP","ISO_A2":"PG","ISO_A3":"PNG","ISO_A3_EH":"PNG","ISO_N3":"598","UN_A3":"598","WB_A2":"PG","WB_A3":"PNG","WOE_ID":23424926,"WOE_ID_EH":23424926,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PNG","ADM0_A3_US":"PNG","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Melanesia","REGION_WB":"East Asia & Pacific","NAME_LEN":16,"LONG_LEN":16,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2.5,"MAX_LABEL":7.5},"bbox":[141.00021,-10.652476,156.019965,-2.500002],"geometry":{"type":"MultiPolygon","coordinates":[[[[141.033852,-9.117893],[141.017057,-5.859022],[141.00021,-2.600151],[142.735247,-3.289153],[144.583971,-3.861418],[145.27318,-4.373738],[145.829786,-4.876498],[145.981922,-5.465609],[147.648073,-6.083659],[147.891108,-6.614015],[146.970905,-6.721657],[147.191874,-7.388024],[148.084636,-8.044108],[148.734105,-9.104664],[149.306835,-9.071436],[149.266631,-9.514406],[150.038728,-9.684318],[149.738798,-9.872937],[150.801628,-10.293687],[150.690575,-10.582713],[150.028393,-10.652476],[149.78231,-10.393267],[148.923138,-10.280923],[147.913018,-10.130441],[147.135443,-9.492444],[146.567881,-8.942555],[146.048481,-8.067414],[144.744168,-7.630128],[143.897088,-7.91533],[143.286376,-8.245491],[143.413913,-8.983069],[142.628431,-9.326821],[142.068259,-9.159596],[141.033852,-9.117893]]],[[[155.880026,-6.819997],[155.599991,-6.919991],[155.166994,-6.535931],[154.729192,-5.900828],[154.514114,-5.139118],[154.652504,-5.042431],[154.759991,-5.339984],[155.062918,-5.566792],[155.547746,-6.200655],[156.019965,-6.540014],[155.880026,-6.819997]]],[[[151.982796,-5.478063],[151.459107,-5.56028],[151.30139,-5.840728],[150.754447,-6.083763],[150.241197,-6.317754],[149.709963,-6.316513],[148.890065,-6.02604],[148.318937,-5.747142],[148.401826,-5.437756],[149.298412,-5.583742],[149.845562,-5.505503],[149.99625,-5.026101],[150.139756,-5.001348],[150.236908,-5.53222],[150.807467,-5.455842],[151.089672,-5.113693],[151.647881,-4.757074],[151.537862,-4.167807],[152.136792,-4.14879],[152.338743,-4.312966],[152.318693,-4.867661],[151.982796,-5.478063]]],[[[153.140038,-4.499983],[152.827292,-4.766427],[152.638673,-4.176127],[152.406026,-3.789743],[151.953237,-3.462062],[151.384279,-3.035422],[150.66205,-2.741486],[150.939965,-2.500002],[151.479984,-2.779985],[151.820015,-2.999972],[152.239989,-3.240009],[152.640017,-3.659983],[153.019994,-3.980015],[153.140038,-4.499983]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Poland","SOV_A3":"POL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Poland","ADM0_A3":"POL","GEOU_DIF":0,"GEOUNIT":"Poland","GU_A3":"POL","SU_DIF":0,"SUBUNIT":"Poland","SU_A3":"POL","BRK_DIFF":0,"NAME":"Poland","NAME_LONG":"Poland","BRK_A3":"POL","BRK_NAME":"Poland","BRK_GROUP":null,"ABBREV":"Pol.","POSTAL":"PL","FORMAL_EN":"Republic of Poland","FORMAL_FR":null,"NAME_CIAWF":"Poland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Poland","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":7,"MAPCOLOR9":1,"MAPCOLOR13":2,"POP_EST":38476269,"POP_RANK":15,"GDP_MD_EST":1052000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"PL","ISO_A2":"PL","ISO_A3":"POL","ISO_A3_EH":"POL","ISO_N3":"616","UN_A3":"616","WB_A2":"PL","WB_A3":"POL","WOE_ID":23424923,"WOE_ID_EH":23424923,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"POL","ADM0_A3_US":"POL","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[14.074521,49.027395,24.029986,54.851536],"geometry":{"type":"Polygon","coordinates":[[[23.484128,53.912498],[23.527536,53.470122],[23.804935,53.089731],[23.799199,52.691099],[23.199494,52.486977],[23.508002,52.023647],[23.527071,51.578454],[24.029986,50.705407],[23.922757,50.424881],[23.426508,50.308506],[22.51845,49.476774],[22.776419,49.027395],[22.558138,49.085738],[21.607808,49.470107],[20.887955,49.328772],[20.415839,49.431453],[19.825023,49.217125],[19.320713,49.571574],[18.909575,49.435846],[18.853144,49.49623],[18.392914,49.988629],[17.649445,50.049038],[17.554567,50.362146],[16.868769,50.473974],[16.719476,50.215747],[16.176253,50.422607],[16.238627,50.697733],[15.490972,50.78473],[15.016996,51.106674],[14.607098,51.745188],[14.685026,52.089947],[14.4376,52.62485],[14.074521,52.981263],[14.353315,53.248171],[14.119686,53.757029],[14.8029,54.050706],[16.363477,54.513159],[17.622832,54.851536],[18.620859,54.682606],[18.696255,54.438719],[19.66064,54.426084],[20.892245,54.312525],[22.731099,54.327537],[23.243987,54.220567],[23.484128,53.912498]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"United States of America","SOV_A3":"US1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Dependency","ADMIN":"Puerto Rico","ADM0_A3":"PRI","GEOU_DIF":0,"GEOUNIT":"Puerto Rico","GU_A3":"PRI","SU_DIF":0,"SUBUNIT":"Puerto Rico","SU_A3":"PRI","BRK_DIFF":0,"NAME":"Puerto Rico","NAME_LONG":"Puerto Rico","BRK_A3":"PRI","BRK_NAME":"Puerto Rico","BRK_GROUP":null,"ABBREV":"P.R.","POSTAL":"PR","FORMAL_EN":"Commonwealth of Puerto Rico","FORMAL_FR":null,"NAME_CIAWF":"Puerto Rico","NOTE_ADM0":"Commonwealth of U.S.A.","NOTE_BRK":null,"NAME_SORT":"Puerto Rico","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":1,"MAPCOLOR13":1,"POP_EST":3351827,"POP_RANK":12,"GDP_MD_EST":131000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"RQ","ISO_A2":"PR","ISO_A3":"PRI","ISO_A3_EH":"PRI","ISO_N3":"630","UN_A3":"630","WB_A2":"PR","WB_A3":"PRI","WOE_ID":23424935,"WOE_ID_EH":23424935,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PRI","ADM0_A3_US":"PRI","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":-99,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-67.242428,17.946553,-65.591004,18.520601],"geometry":{"type":"Polygon","coordinates":[[[-66.282434,18.514762],[-65.771303,18.426679],[-65.591004,18.228035],[-65.847164,17.975906],[-66.599934,17.981823],[-67.184162,17.946553],[-67.242428,18.37446],[-67.100679,18.520601],[-66.282434,18.514762]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"North Korea","SOV_A3":"PRK","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"North Korea","ADM0_A3":"PRK","GEOU_DIF":0,"GEOUNIT":"North Korea","GU_A3":"PRK","SU_DIF":0,"SUBUNIT":"North Korea","SU_A3":"PRK","BRK_DIFF":0,"NAME":"North Korea","NAME_LONG":"Dem. Rep. Korea","BRK_A3":"PRK","BRK_NAME":"Dem. Rep. Korea","BRK_GROUP":null,"ABBREV":"N.K.","POSTAL":"KP","FORMAL_EN":"Democratic People\'s Republic of Korea","FORMAL_FR":null,"NAME_CIAWF":"Korea, North","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Korea, Dem. Rep.","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":5,"MAPCOLOR9":3,"MAPCOLOR13":9,"POP_EST":25248140,"POP_RANK":15,"GDP_MD_EST":40000,"POP_YEAR":2013,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"KN","ISO_A2":"KP","ISO_A3":"PRK","ISO_A3_EH":"PRK","ISO_N3":"408","UN_A3":"408","WB_A2":"KP","WB_A3":"PRK","WOE_ID":23424865,"WOE_ID_EH":23424865,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PRK","ADM0_A3_US":"PRK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":15,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[124.265625,37.669071,130.780007,42.985387],"geometry":{"type":"MultiPolygon","coordinates":[[[[124.265625,39.928493],[125.079942,40.569824],[126.182045,41.107336],[126.869083,41.816569],[127.343783,41.503152],[128.208433,41.466772],[128.052215,41.994285],[129.596669,42.424982],[129.994267,42.985387],[130.64,42.395024],[130.64,42.395],[130.779992,42.22001],[130.400031,42.280004],[129.965949,41.941368],[129.667362,41.601104],[129.705189,40.882828],[129.188115,40.661808],[129.0104,40.485436],[128.633368,40.189847],[127.967414,40.025413],[127.533436,39.75685],[127.50212,39.323931],[127.385434,39.213472],[127.783343,39.050898],[128.349716,38.612243],[128.205746,38.370397],[127.780035,38.304536],[127.073309,38.256115],[126.68372,37.804773],[126.237339,37.840378],[126.174759,37.749686],[125.689104,37.94001],[125.568439,37.752089],[125.27533,37.669071],[125.240087,37.857224],[124.981033,37.948821],[124.712161,38.108346],[124.985994,38.548474],[125.221949,38.665857],[125.132859,38.848559],[125.38659,39.387958],[125.321116,39.551385],[124.737482,39.660344],[124.265625,39.928493]]],[[[130.780005,42.22001],[130.780007,42.220007],[130.780004,42.220008],[130.780005,42.22001]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Portugal","SOV_A3":"PRT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Portugal","ADM0_A3":"PRT","GEOU_DIF":0,"GEOUNIT":"Portugal","GU_A3":"PRT","SU_DIF":1,"SUBUNIT":"Portugal","SU_A3":"PR1","BRK_DIFF":0,"NAME":"Portugal","NAME_LONG":"Portugal","BRK_A3":"PR1","BRK_NAME":"Portugal","BRK_GROUP":null,"ABBREV":"Port.","POSTAL":"P","FORMAL_EN":"Portuguese Republic","FORMAL_FR":null,"NAME_CIAWF":"Portugal","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Portugal","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":7,"MAPCOLOR9":1,"MAPCOLOR13":4,"POP_EST":10839514,"POP_RANK":14,"GDP_MD_EST":297100,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"PO","ISO_A2":"PT","ISO_A3":"PRT","ISO_A3_EH":"PRT","ISO_N3":"620","UN_A3":"620","WB_A2":"PT","WB_A3":"PRT","WOE_ID":23424925,"WOE_ID_EH":23424925,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PRT","ADM0_A3_US":"PRT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-9.526571,36.838269,-6.389088,42.280469],"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.671946,42.134689],[-8.263857,42.280469],[-8.013175,41.790886],[-7.422513,41.792075],[-7.251309,41.918346],[-6.668606,41.883387],[-6.389088,41.381815],[-6.851127,41.111083],[-6.86402,40.330872],[-7.026413,40.184524],[-7.066592,39.711892],[-7.498632,39.629571],[-7.098037,39.030073],[-7.374092,38.373059],[-7.029281,38.075764],[-7.166508,37.803894],[-7.537105,37.428904],[-7.453726,37.097788],[-7.855613,36.838269],[-8.382816,36.97888],[-8.898857,36.868809],[-8.746101,37.651346],[-8.839998,38.266243],[-9.287464,38.358486],[-9.526571,38.737429],[-9.446989,39.392066],[-9.048305,39.755093],[-8.977353,40.159306],[-8.768684,40.760639],[-8.790853,41.184334],[-8.990789,41.543459],[-9.034818,41.880571]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Paraguay","SOV_A3":"PRY","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Paraguay","ADM0_A3":"PRY","GEOU_DIF":0,"GEOUNIT":"Paraguay","GU_A3":"PRY","SU_DIF":0,"SUBUNIT":"Paraguay","SU_A3":"PRY","BRK_DIFF":0,"NAME":"Paraguay","NAME_LONG":"Paraguay","BRK_A3":"PRY","BRK_NAME":"Paraguay","BRK_GROUP":null,"ABBREV":"Para.","POSTAL":"PY","FORMAL_EN":"Republic of Paraguay","FORMAL_FR":null,"NAME_CIAWF":"Paraguay","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Paraguay","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":6,"MAPCOLOR13":2,"POP_EST":6943739,"POP_RANK":13,"GDP_MD_EST":64670,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"PA","ISO_A2":"PY","ISO_A3":"PRY","ISO_A3_EH":"PRY","ISO_N3":"600","UN_A3":"600","WB_A2":"PY","WB_A3":"PRY","WOE_ID":23424917,"WOE_ID_EH":23424917,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PRY","ADM0_A3_US":"PRY","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-62.685057,-27.548499,-54.29296,-19.342747],"geometry":{"type":"Polygon","coordinates":[[[-54.625291,-25.739255],[-54.788795,-26.621786],[-55.695846,-27.387837],[-56.486702,-27.548499],[-57.60976,-27.395899],[-58.618174,-27.123719],[-57.63366,-25.603657],[-57.777217,-25.16234],[-58.807128,-24.771459],[-60.028966,-24.032796],[-60.846565,-23.880713],[-62.685057,-22.249029],[-62.291179,-21.051635],[-62.265961,-20.513735],[-61.786326,-19.633737],[-60.043565,-19.342747],[-59.115042,-19.356906],[-58.183471,-19.868399],[-58.166392,-20.176701],[-57.870674,-20.732688],[-57.937156,-22.090176],[-56.88151,-22.282154],[-56.473317,-22.0863],[-55.797958,-22.35693],[-55.610683,-22.655619],[-55.517639,-23.571998],[-55.400747,-23.956935],[-55.027902,-24.001274],[-54.652834,-23.839578],[-54.29296,-24.021014],[-54.293476,-24.5708],[-54.428946,-25.162185],[-54.625291,-25.739255]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Israel","SOV_A3":"IS1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Disputed","ADMIN":"Palestine","ADM0_A3":"PSX","GEOU_DIF":0,"GEOUNIT":"Palestine","GU_A3":"PSX","SU_DIF":0,"SUBUNIT":"Palestine","SU_A3":"PSX","BRK_DIFF":0,"NAME":"Palestine","NAME_LONG":"Palestine","BRK_A3":"PSX","BRK_NAME":"Palestine","BRK_GROUP":null,"ABBREV":"Pal.","POSTAL":"PAL","FORMAL_EN":"West Bank and Gaza","FORMAL_FR":null,"NAME_CIAWF":null,"NOTE_ADM0":"Partial self-admin.","NOTE_BRK":"Partial self-admin.","NAME_SORT":"Palestine (West Bank and Gaza)","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":5,"MAPCOLOR13":8,"POP_EST":4543126,"POP_RANK":12,"GDP_MD_EST":21220.77,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"PS","ISO_A3":"PSE","ISO_A3_EH":"PSE","ISO_N3":"275","UN_A3":"275","WB_A2":"GZ","WB_A3":"WBG","WOE_ID":28289408,"WOE_ID_EH":28289408,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"PSE","ADM0_A3_US":"PSX","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":-99,"MIN_ZOOM":7,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[34.927408,31.353435,35.545665,32.532511],"geometry":{"type":"Polygon","coordinates":[[[35.397561,31.489086],[34.927408,31.353435],[34.970507,31.616778],[35.225892,31.754341],[34.974641,31.866582],[35.18393,32.532511],[35.545665,32.393992],[35.545252,31.782505],[35.397561,31.489086]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Qatar","SOV_A3":"QAT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Qatar","ADM0_A3":"QAT","GEOU_DIF":0,"GEOUNIT":"Qatar","GU_A3":"QAT","SU_DIF":0,"SUBUNIT":"Qatar","SU_A3":"QAT","BRK_DIFF":0,"NAME":"Qatar","NAME_LONG":"Qatar","BRK_A3":"QAT","BRK_NAME":"Qatar","BRK_GROUP":null,"ABBREV":"Qatar","POSTAL":"QA","FORMAL_EN":"State of Qatar","FORMAL_FR":null,"NAME_CIAWF":"Qatar","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Qatar","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":4,"POP_EST":2314307,"POP_RANK":12,"GDP_MD_EST":334500,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"QA","ISO_A2":"QA","ISO_A3":"QAT","ISO_A3_EH":"QAT","ISO_N3":"634","UN_A3":"634","WB_A2":"QA","WB_A3":"QAT","WOE_ID":23424930,"WOE_ID_EH":23424930,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"QAT","ADM0_A3_US":"QAT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[50.743911,24.556331,51.6067,26.114582],"geometry":{"type":"Polygon","coordinates":[[[50.810108,24.754743],[50.743911,25.482424],[51.013352,26.006992],[51.286462,26.114582],[51.589079,25.801113],[51.6067,25.21567],[51.389608,24.627386],[51.112415,24.556331],[50.810108,24.754743]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Romania","SOV_A3":"ROU","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Romania","ADM0_A3":"ROU","GEOU_DIF":0,"GEOUNIT":"Romania","GU_A3":"ROU","SU_DIF":0,"SUBUNIT":"Romania","SU_A3":"ROU","BRK_DIFF":0,"NAME":"Romania","NAME_LONG":"Romania","BRK_A3":"ROU","BRK_NAME":"Romania","BRK_GROUP":null,"ABBREV":"Rom.","POSTAL":"RO","FORMAL_EN":"Romania","FORMAL_FR":null,"NAME_CIAWF":"Romania","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Romania","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":3,"MAPCOLOR13":13,"POP_EST":21529967,"POP_RANK":15,"GDP_MD_EST":441000,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"RO","ISO_A2":"RO","ISO_A3":"ROU","ISO_A3_EH":"ROU","ISO_N3":"642","UN_A3":"642","WB_A2":"RO","WB_A3":"ROM","WOE_ID":23424933,"WOE_ID_EH":23424933,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ROU","ADM0_A3_US":"ROU","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[20.220192,43.688445,29.626543,48.220881],"geometry":{"type":"Polygon","coordinates":[[[28.558081,43.707462],[27.970107,43.812468],[27.2424,44.175986],[26.065159,43.943494],[25.569272,43.688445],[24.100679,43.741051],[23.332302,43.897011],[22.944832,43.823785],[22.65715,44.234923],[22.474008,44.409228],[22.705726,44.578003],[22.459022,44.702517],[22.145088,44.478422],[21.562023,44.768947],[21.483526,45.18117],[20.874313,45.416375],[20.762175,45.734573],[20.220192,46.127469],[21.021952,46.316088],[21.626515,46.994238],[22.099768,47.672439],[22.710531,47.882194],[23.142236,48.096341],[23.760958,47.985598],[24.402056,47.981878],[24.866317,47.737526],[25.207743,47.891056],[25.945941,47.987149],[26.19745,48.220881],[26.619337,48.220726],[26.924176,48.123264],[27.233873,47.826771],[27.551166,47.405117],[28.12803,46.810476],[28.160018,46.371563],[28.054443,45.944586],[28.233554,45.488283],[28.679779,45.304031],[29.149725,45.464925],[29.603289,45.293308],[29.626543,45.035391],[29.141612,44.82021],[28.837858,44.913874],[28.558081,43.707462]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Russia","SOV_A3":"RUS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Russia","ADM0_A3":"RUS","GEOU_DIF":0,"GEOUNIT":"Russia","GU_A3":"RUS","SU_DIF":0,"SUBUNIT":"Russia","SU_A3":"RUS","BRK_DIFF":0,"NAME":"Russia","NAME_LONG":"Russian Federation","BRK_A3":"RUS","BRK_NAME":"Russia","BRK_GROUP":null,"ABBREV":"Rus.","POSTAL":"RUS","FORMAL_EN":"Russian Federation","FORMAL_FR":null,"NAME_CIAWF":"Russia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Russian Federation","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":5,"MAPCOLOR9":7,"MAPCOLOR13":7,"POP_EST":142257519,"POP_RANK":17,"GDP_MD_EST":3745000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"3. Emerging region:BRIC","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"RS","ISO_A2":"RU","ISO_A3":"RUS","ISO_A3_EH":"RUS","ISO_N3":"643","UN_A3":"643","WB_A2":"RU","WB_A3":"RUS","WOE_ID":23424936,"WOE_ID_EH":23424936,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"RUS","ADM0_A3_US":"RUS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":18,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.2},"bbox":[-180,41.151416,180,81.2504],"geometry":{"type":"MultiPolygon","coordinates":[[[[143.648007,50.7476],[144.654148,48.976391],[143.173928,49.306551],[142.558668,47.861575],[143.533492,46.836728],[143.505277,46.137908],[142.747701,46.740765],[142.09203,45.966755],[141.906925,46.805929],[142.018443,47.780133],[141.904445,48.859189],[142.1358,49.615163],[142.179983,50.952342],[141.594076,51.935435],[141.682546,53.301966],[142.606934,53.762145],[142.209749,54.225476],[142.654786,54.365881],[142.914616,53.704578],[143.260848,52.74076],[143.235268,51.75666],[143.648007,50.7476]]],[[[22.731099,54.327537],[20.892245,54.312525],[19.66064,54.426084],[19.888481,54.86616],[21.268449,55.190482],[22.315724,55.015299],[22.757764,54.856574],[22.651052,54.582741],[22.731099,54.327537]]],[[[184.98575,66.58435],[185.66017,66.33556],[185.42818,67.06219],[188.14269,66.91308],[190.10042,65.97724],[189.10893,65.54139],[187.46975,65.43791],[187.445,64.46079],[187.04467,64.25269],[186.10816,64.2826],[185.34608,64.63125],[184.01647,64.92288],[183.79284,65.35667],[182.77734,65.52024],[181.64007,65.39052],[181.09668,65.74044],[181.31389,66.11211],[180.11623,65.87456],[180.56732,65.40411],[180,64.979709],[180,68.963636],[182.45,68.2],[185.07175,67.20589],[184.98575,66.58435]]],[[[180,70.832199],[178.903425,70.78114],[178.7253,71.0988],[180,71.515714],[180,70.832199]]],[[[181.30622,70.89302],[180,70.832199],[180,71.515714],[180.128125,71.55762],[180.97567,71.55553],[182.422055,71.26948],[182.336425,71.13277],[181.30622,70.89302]]],[[[143.60385,73.21244],[142.08763,73.20544],[140.038155,73.31692],[139.86312,73.36983],[140.81171,73.76506],[142.06207,73.85758],[143.48283,73.47525],[143.60385,73.21244]]],[[[150.73167,75.08406],[149.575925,74.68892],[147.977465,74.778355],[146.11919,75.17298],[146.358485,75.49682],[148.22223,75.345845],[150.73167,75.08406]]],[[[145.086285,75.562625],[144.3,74.82],[140.61381,74.84768],[138.95544,74.61148],[136.97439,75.26167],[137.51176,75.94917],[138.831075,76.13676],[141.471615,76.09289],[145.086285,75.562625]]],[[[57.535693,70.720464],[56.944979,70.632743],[53.677375,70.762658],[53.412017,71.206662],[51.601895,71.474759],[51.455754,72.014881],[52.478275,72.229442],[52.444169,72.774731],[54.427614,73.627548],[53.50829,73.749814],[55.902459,74.627486],[55.631933,75.081412],[57.868644,75.60939],[61.170044,76.251883],[64.498368,76.439055],[66.210977,76.809782],[68.15706,76.939697],[68.852211,76.544811],[68.180573,76.233642],[64.637326,75.737755],[61.583508,75.260885],[58.477082,74.309056],[56.986786,73.333044],[55.419336,72.371268],[55.622838,71.540595],[57.535693,70.720464]]],[[[106.97013,76.97419],[107.24,76.48],[108.1538,76.72335],[111.07726,76.71],[113.33151,76.22224],[114.13417,75.84764],[113.88539,75.32779],[112.77918,75.03186],[110.15125,74.47673],[109.4,74.18],[110.64,74.04],[112.11919,73.78774],[113.01954,73.97693],[113.52958,73.33505],[113.96881,73.59488],[115.56782,73.75285],[118.77633,73.58772],[119.02,73.12],[123.20066,72.97122],[123.25777,73.73503],[125.38,73.56],[126.97644,73.56549],[128.59126,73.03871],[129.05157,72.39872],[128.46,71.98],[129.71599,71.19304],[131.28858,70.78699],[132.2535,71.8363],[133.85766,71.38642],[135.56193,71.65525],[137.49755,71.34763],[138.23409,71.62803],[139.86983,71.48783],[139.14791,72.41619],[140.46817,72.84941],[149.5,72.2],[150.35118,71.60643],[152.9689,70.84222],[157.00688,71.03141],[158.99779,70.86672],[159.83031,70.45324],[159.70866,69.72198],[160.94053,69.43728],[162.27907,69.64204],[164.05248,69.66823],[165.94037,69.47199],[167.83567,69.58269],[169.57763,68.6938],[170.81688,69.01363],[170.0082,69.65276],[170.45345,70.09703],[173.64391,69.81743],[175.72403,69.87725],[178.6,69.4],[180,68.963636],[180,64.979709],[179.99281,64.97433],[178.7072,64.53493],[177.41128,64.60821],[178.313,64.07593],[178.90825,63.25197],[179.37034,62.98262],[179.48636,62.56894],[179.22825,62.3041],[177.3643,62.5219],[174.56929,61.76915],[173.68013,61.65261],[172.15,60.95],[170.6985,60.33618],[170.33085,59.88177],[168.90046,60.57355],[166.29498,59.78855],[165.84,60.16],[164.87674,59.7316],[163.53929,59.86871],[163.21711,59.21101],[162.01733,58.24328],[162.05297,57.83912],[163.19191,57.61503],[163.05794,56.15924],[162.12958,56.12219],[161.70146,55.28568],[162.11749,54.85514],[160.36877,54.34433],[160.02173,53.20257],[158.53094,52.95868],[158.23118,51.94269],[156.78979,51.01105],[156.42,51.7],[155.99182,53.15895],[155.43366,55.38103],[155.91442,56.76792],[156.75815,57.3647],[156.81035,57.83204],[158.36433,58.05575],[160.15064,59.31477],[161.87204,60.343],[163.66969,61.1409],[164.47355,62.55061],[163.25842,62.46627],[162.65791,61.6425],[160.12148,60.54423],[159.30232,61.77396],[156.72068,61.43442],[154.21806,59.75818],[155.04375,59.14495],[152.81185,58.88385],[151.26573,58.78089],[151.33815,59.50396],[149.78371,59.65573],[148.54481,59.16448],[145.48722,59.33637],[142.19782,59.03998],[138.95848,57.08805],[135.12619,54.72959],[136.70171,54.60355],[137.19342,53.97732],[138.1647,53.75501],[138.80463,54.25455],[139.90151,54.18968],[141.34531,53.08957],[141.37923,52.23877],[140.59742,51.23967],[140.51308,50.04553],[140.06193,48.44671],[138.55472,46.99965],[138.21971,46.30795],[136.86232,45.1435],[135.51535,43.989],[134.86939,43.39821],[133.53687,42.81147],[132.90627,42.79849],[132.27807,43.28456],[130.93587,42.55274],[130.78,42.22],[130.64,42.395],[130.633866,42.903015],[131.144688,42.92999],[131.288555,44.11152],[131.02519,44.96796],[131.883454,45.321162],[133.09712,45.14409],[133.769644,46.116927],[134.11235,47.21248],[134.50081,47.57845],[135.026311,48.47823],[133.373596,48.183442],[132.50669,47.78896],[130.98726,47.79013],[130.582293,48.729687],[129.397818,49.4406],[127.6574,49.76027],[127.287456,50.739797],[126.939157,51.353894],[126.564399,51.784255],[125.946349,52.792799],[125.068211,53.161045],[123.57147,53.4588],[122.245748,53.431726],[121.003085,53.251401],[120.177089,52.753886],[120.725789,52.516226],[120.7382,51.96411],[120.18208,51.64355],[119.27939,50.58292],[119.288461,50.142883],[117.879244,49.510983],[116.678801,49.888531],[115.485695,49.805177],[114.96211,50.140247],[114.362456,50.248303],[112.89774,49.543565],[111.581231,49.377968],[110.662011,49.130128],[109.402449,49.292961],[108.475167,49.282548],[107.868176,49.793705],[106.888804,50.274296],[105.886591,50.406019],[104.62158,50.27532],[103.676545,50.089966],[102.25589,50.51056],[102.06521,51.25991],[100.88948,51.516856],[99.981732,51.634006],[98.861491,52.047366],[97.82574,51.010995],[98.231762,50.422401],[97.25976,49.72605],[95.81402,49.97746],[94.815949,50.013433],[94.147566,50.480537],[93.10421,50.49529],[92.234712,50.802171],[90.713667,50.331812],[88.805567,49.470521],[87.751264,49.297198],[87.35997,49.214981],[86.829357,49.826675],[85.54127,49.692859],[85.11556,50.117303],[84.416377,50.3114],[83.935115,50.889246],[83.383004,51.069183],[81.945986,50.812196],[80.568447,51.388336],[80.03556,50.864751],[77.800916,53.404415],[76.525179,54.177003],[76.8911,54.490524],[74.38482,53.54685],[73.425679,53.48981],[73.508516,54.035617],[72.22415,54.376655],[71.180131,54.133285],[70.865267,55.169734],[69.068167,55.38525],[68.1691,54.970392],[65.66687,54.60125],[65.178534,54.354228],[61.4366,54.00625],[60.978066,53.664993],[61.699986,52.979996],[60.739993,52.719986],[60.927269,52.447548],[59.967534,51.96042],[61.588003,51.272659],[61.337424,50.79907],[59.932807,50.842194],[59.642282,50.545442],[58.36332,51.06364],[56.77798,51.04355],[55.71694,50.62171],[54.532878,51.02624],[52.328724,51.718652],[50.766648,51.692762],[48.702382,50.605128],[48.577841,49.87476],[47.54948,50.454698],[46.751596,49.356006],[47.043672,49.152039],[46.466446,48.394152],[47.31524,47.71585],[48.05725,47.74377],[48.694734,47.075628],[48.59325,46.56104],[49.10116,46.39933],[48.64541,45.80629],[47.67591,45.64149],[46.68201,44.6092],[47.59094,43.66016],[47.49252,42.98658],[48.58437,41.80888],[47.987283,41.405819],[47.815666,41.151416],[47.373315,41.219732],[46.686071,41.827137],[46.404951,41.860675],[45.7764,42.09244],[45.470279,42.502781],[44.537623,42.711993],[43.93121,42.55496],[43.75599,42.74083],[42.3944,43.2203],[40.92219,43.38215],[40.076965,43.553104],[39.955009,43.434998],[38.68,44.28],[37.53912,44.65721],[36.67546,45.24469],[37.40317,45.40451],[38.23295,46.24087],[37.67372,46.63657],[39.14767,47.04475],[39.1212,47.26336],[38.223538,47.10219],[38.255112,47.5464],[38.77057,47.82562],[39.738278,47.898937],[39.89562,48.23241],[39.67465,48.78382],[40.080789,49.30743],[40.06904,49.60105],[38.594988,49.926462],[38.010631,49.915662],[37.39346,50.383953],[36.626168,50.225591],[35.356116,50.577197],[35.37791,50.77394],[35.022183,51.207572],[34.224816,51.255993],[34.141978,51.566413],[34.391731,51.768882],[33.7527,52.335075],[32.715761,52.238465],[32.412058,52.288695],[32.15944,52.06125],[31.78597,52.10168],[31.540018,52.742052],[31.305201,53.073996],[31.49764,53.16743],[32.304519,53.132726],[32.693643,53.351421],[32.405599,53.618045],[31.731273,53.794029],[31.791424,53.974639],[31.384472,54.157056],[30.757534,54.811771],[30.971836,55.081548],[30.873909,55.550976],[29.896294,55.789463],[29.371572,55.670091],[29.229513,55.918344],[28.176709,56.16913],[27.855282,56.759326],[27.770016,57.244258],[27.288185,57.474528],[27.716686,57.791899],[27.42015,58.72457],[28.131699,59.300825],[27.98112,59.47537],[29.1177,60.02805],[28.07,60.50352],[30.211107,61.780028],[31.139991,62.357693],[31.516092,62.867687],[30.035872,63.552814],[30.444685,64.204453],[29.54443,64.948672],[30.21765,65.80598],[29.054589,66.944286],[29.977426,67.698297],[28.445944,68.364613],[28.59193,69.064777],[29.39955,69.15692],[31.10108,69.55811],[32.13272,69.90595],[33.77547,69.30142],[36.51396,69.06342],[40.29234,67.9324],[41.05987,67.45713],[41.12595,66.79158],[40.01583,66.26618],[38.38295,65.99953],[33.91871,66.75961],[33.18444,66.63253],[34.81477,65.90015],[34.878574,65.436213],[34.94391,64.41437],[36.23129,64.10945],[37.01273,63.84983],[37.14197,64.33471],[36.539579,64.76446],[37.17604,65.14322],[39.59345,64.52079],[40.4356,64.76446],[39.7626,65.49682],[42.09309,66.47623],[43.01604,66.41858],[43.94975,66.06908],[44.53226,66.75634],[43.69839,67.35245],[44.18795,67.95051],[43.45282,68.57079],[46.25,68.25],[46.82134,67.68997],[45.55517,67.56652],[45.56202,67.01005],[46.34915,66.66767],[47.89416,66.88455],[48.13876,67.52238],[50.22766,67.99867],[53.71743,68.85738],[54.47171,68.80815],[53.48582,68.20131],[54.72628,68.09702],[55.44268,68.43866],[57.31702,68.46628],[58.802,68.88082],[59.94142,68.27844],[61.07784,68.94069],[60.03,69.52],[60.55,69.85],[63.504,69.54739],[64.888115,69.234835],[68.51216,68.09233],[69.18068,68.61563],[68.16444,69.14436],[68.13522,69.35649],[66.93008,69.45461],[67.25976,69.92873],[66.72492,70.70889],[66.69466,71.02897],[68.54006,71.9345],[69.19636,72.84336],[69.94,73.04],[72.58754,72.77629],[72.79603,72.22006],[71.84811,71.40898],[72.47011,71.09019],[72.79188,70.39114],[72.5647,69.02085],[73.66787,68.4079],[73.2387,67.7404],[71.28,66.32],[72.42301,66.17267],[72.82077,66.53267],[73.92099,66.78946],[74.18651,67.28429],[75.052,67.76047],[74.46926,68.32899],[74.93584,68.98918],[73.84236,69.07146],[73.60187,69.62763],[74.3998,70.63175],[73.1011,71.44717],[74.89082,72.12119],[74.65926,72.83227],[75.15801,72.85497],[75.68351,72.30056],[75.28898,71.33556],[76.35911,71.15287],[75.90313,71.87401],[77.57665,72.26717],[79.65202,72.32011],[81.5,71.75],[80.61071,72.58285],[80.51109,73.6482],[82.25,73.85],[84.65526,73.80591],[86.8223,73.93688],[86.00956,74.45967],[87.16682,75.11643],[88.31571,75.14393],[90.26,75.64],[92.90058,75.77333],[93.23421,76.0472],[95.86,76.14],[96.67821,75.91548],[98.92254,76.44689],[100.75967,76.43028],[101.03532,76.86189],[101.99084,77.28754],[104.3516,77.69792],[106.06664,77.37389],[104.705,77.1274],[106.97013,76.97419]]],[[[105.07547,78.30689],[99.43814,77.921],[101.2649,79.23399],[102.08635,79.34641],[102.837815,79.28129],[105.37243,78.71334],[105.07547,78.30689]]],[[[51.136187,80.54728],[49.793685,80.415428],[48.894411,80.339567],[48.754937,80.175468],[47.586119,80.010181],[46.502826,80.247247],[47.072455,80.559424],[44.846958,80.58981],[46.799139,80.771918],[48.318477,80.78401],[48.522806,80.514569],[49.09719,80.753986],[50.039768,80.918885],[51.522933,80.699726],[51.136187,80.54728]]],[[[99.93976,78.88094],[97.75794,78.7562],[94.97259,79.044745],[93.31288,79.4265],[92.5454,80.14379],[91.18107,80.34146],[93.77766,81.0246],[95.940895,81.2504],[97.88385,80.746975],[100.186655,79.780135],[99.93976,78.88094]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Rwanda","SOV_A3":"RWA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Rwanda","ADM0_A3":"RWA","GEOU_DIF":0,"GEOUNIT":"Rwanda","GU_A3":"RWA","SU_DIF":0,"SUBUNIT":"Rwanda","SU_A3":"RWA","BRK_DIFF":0,"NAME":"Rwanda","NAME_LONG":"Rwanda","BRK_A3":"RWA","BRK_NAME":"Rwanda","BRK_GROUP":null,"ABBREV":"Rwa.","POSTAL":"RW","FORMAL_EN":"Republic of Rwanda","FORMAL_FR":null,"NAME_CIAWF":"Rwanda","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Rwanda","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":2,"MAPCOLOR9":3,"MAPCOLOR13":10,"POP_EST":11901484,"POP_RANK":14,"GDP_MD_EST":21970,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"RW","ISO_A2":"RW","ISO_A3":"RWA","ISO_A3_EH":"RWA","ISO_N3":"646","UN_A3":"646","WB_A2":"RW","WB_A3":"RWA","WOE_ID":23424937,"WOE_ID_EH":23424937,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"RWA","ADM0_A3_US":"RWA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[29.024926,-2.917858,30.816135,-1.134659],"geometry":{"type":"Polygon","coordinates":[[[30.469674,-2.413855],[29.938359,-2.348487],[29.632176,-2.917858],[29.024926,-2.839258],[29.117479,-2.292211],[29.254835,-2.21511],[29.291887,-1.620056],[29.579466,-1.341313],[29.821519,-1.443322],[30.419105,-1.134659],[30.816135,-1.698914],[30.758309,-2.28725],[30.46967,-2.41383],[30.469674,-2.413855]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":7,"SOVEREIGNT":"Western Sahara","SOV_A3":"SAH","ADM0_DIF":0,"LEVEL":2,"TYPE":"Indeterminate","ADMIN":"Western Sahara","ADM0_A3":"SAH","GEOU_DIF":0,"GEOUNIT":"Western Sahara","GU_A3":"SAH","SU_DIF":0,"SUBUNIT":"Western Sahara","SU_A3":"SAH","BRK_DIFF":1,"NAME":"W. Sahara","NAME_LONG":"Western Sahara","BRK_A3":"B28","BRK_NAME":"W. Sahara","BRK_GROUP":null,"ABBREV":"W. Sah.","POSTAL":"WS","FORMAL_EN":"Sahrawi Arab Democratic Republic","FORMAL_FR":null,"NAME_CIAWF":"Western Sahara","NOTE_ADM0":"Self admin.","NOTE_BRK":"Self admin.; Claimed by Morocco","NAME_SORT":"Western Sahara","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":7,"MAPCOLOR9":4,"MAPCOLOR13":4,"POP_EST":603253,"POP_RANK":11,"GDP_MD_EST":906.5,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2007,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"WI","ISO_A2":"EH","ISO_A3":"ESH","ISO_A3_EH":"ESH","ISO_N3":"732","UN_A3":"732","WB_A2":"EH","WB_A3":"-99","WOE_ID":23424990,"WOE_ID_EH":23424990,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"MAR","ADM0_A3_US":"SAH","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":9,"LONG_LEN":14,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":4.7,"MIN_LABEL":6,"MAX_LABEL":11},"bbox":[-17.063423,20.999752,-8.665124,27.656426],"geometry":{"type":"Polygon","coordinates":[[[-8.66559,27.656426],[-8.665124,27.589479],[-8.6844,27.395744],[-8.687294,25.881056],[-11.969419,25.933353],[-11.937224,23.374594],[-12.874222,23.284832],[-13.118754,22.77122],[-12.929102,21.327071],[-16.845194,21.333323],[-17.063423,20.999752],[-17.020428,21.42231],[-17.002962,21.420734],[-14.750955,21.5006],[-14.630833,21.86094],[-14.221168,22.310163],[-13.89111,23.691009],[-12.500963,24.770116],[-12.030759,26.030866],[-11.71822,26.104092],[-11.392555,26.883424],[-10.551263,26.990808],[-10.189424,26.860945],[-9.735343,26.860945],[-9.413037,27.088476],[-8.794884,27.120696],[-8.817828,27.656426],[-8.66559,27.656426]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Saudi Arabia","SOV_A3":"SAU","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Saudi Arabia","ADM0_A3":"SAU","GEOU_DIF":0,"GEOUNIT":"Saudi Arabia","GU_A3":"SAU","SU_DIF":0,"SUBUNIT":"Saudi Arabia","SU_A3":"SAU","BRK_DIFF":0,"NAME":"Saudi Arabia","NAME_LONG":"Saudi Arabia","BRK_A3":"SAU","BRK_NAME":"Saudi Arabia","BRK_GROUP":null,"ABBREV":"Saud.","POSTAL":"SA","FORMAL_EN":"Kingdom of Saudi Arabia","FORMAL_FR":null,"NAME_CIAWF":"Saudi Arabia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Saudi Arabia","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":1,"MAPCOLOR9":6,"MAPCOLOR13":7,"POP_EST":28571770,"POP_RANK":15,"GDP_MD_EST":1731000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"SA","ISO_A2":"SA","ISO_A3":"SAU","ISO_A3_EH":"SAU","ISO_N3":"682","UN_A3":"682","WB_A2":"SA","WB_A3":"SAU","WOE_ID":23424938,"WOE_ID_EH":23424938,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SAU","ADM0_A3_US":"SAU","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":12,"LONG_LEN":12,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2.7,"MAX_LABEL":7},"bbox":[34.632336,16.347891,55.666659,32.161009],"geometry":{"type":"Polygon","coordinates":[[[51.579519,24.245497],[51.617708,24.014219],[52.000733,23.001154],[55.006803,22.496948],[55.208341,22.70833],[55.666659,22.000001],[54.999982,19.999994],[52.00001,19.000003],[49.116672,18.616668],[48.183344,18.166669],[47.466695,17.116682],[47.000005,16.949999],[46.749994,17.283338],[46.366659,17.233315],[45.399999,17.333335],[45.216651,17.433329],[44.062613,17.410359],[43.791519,17.319977],[43.380794,17.579987],[43.115798,17.08844],[43.218375,16.66689],[42.779332,16.347891],[42.649573,16.774635],[42.347989,17.075806],[42.270888,17.474722],[41.754382,17.833046],[41.221391,18.6716],[40.939341,19.486485],[40.247652,20.174635],[39.801685,20.338862],[39.139399,21.291905],[39.023696,21.986875],[39.066329,22.579656],[38.492772,23.688451],[38.02386,24.078686],[37.483635,24.285495],[37.154818,24.858483],[37.209491,25.084542],[36.931627,25.602959],[36.639604,25.826228],[36.249137,26.570136],[35.640182,27.37652],[35.130187,28.063352],[34.632336,28.058546],[34.787779,28.607427],[34.83222,28.957483],[34.956037,29.356555],[36.068941,29.197495],[36.501214,29.505254],[36.740528,29.865283],[37.503582,30.003776],[37.66812,30.338665],[37.998849,30.5085],[37.002166,31.508413],[39.004886,32.010217],[39.195468,32.161009],[40.399994,31.889992],[41.889981,31.190009],[44.709499,29.178891],[46.568713,29.099025],[47.459822,29.002519],[47.708851,28.526063],[48.416094,28.552004],[48.807595,27.689628],[49.299554,27.461218],[49.470914,27.109999],[50.152422,26.689663],[50.212935,26.277027],[50.113303,25.943972],[50.239859,25.60805],[50.527387,25.327808],[50.660557,24.999896],[50.810108,24.754743],[51.112415,24.556331],[51.389608,24.627386],[51.579519,24.245497]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Sudan","SOV_A3":"SDN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Sudan","ADM0_A3":"SDN","GEOU_DIF":0,"GEOUNIT":"Sudan","GU_A3":"SDN","SU_DIF":0,"SUBUNIT":"Sudan","SU_A3":"SDN","BRK_DIFF":0,"NAME":"Sudan","NAME_LONG":"Sudan","BRK_A3":"SDN","BRK_NAME":"Sudan","BRK_GROUP":null,"ABBREV":"Sudan","POSTAL":"SD","FORMAL_EN":"Republic of the Sudan","FORMAL_FR":null,"NAME_CIAWF":"Sudan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Sudan","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":6,"MAPCOLOR9":4,"MAPCOLOR13":1,"POP_EST":37345935,"POP_RANK":15,"GDP_MD_EST":176300,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"SU","ISO_A2":"SD","ISO_A3":"SDN","ISO_A3_EH":"SDN","ISO_N3":"729","UN_A3":"729","WB_A2":"SD","WB_A3":"SDN","WOE_ID":-90,"WOE_ID_EH":23424952,"WOE_NOTE":"Almost all FLickr photos are in the north.","ADM0_A3_IS":"SDN","ADM0_A3_US":"SDN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[21.93681,8.229188,38.41009,22],"geometry":{"type":"Polygon","coordinates":[[[24.567369,8.229188],[23.805813,8.666319],[23.459013,8.954286],[23.394779,9.265068],[23.55725,9.681218],[23.554304,10.089255],[22.977544,10.714463],[22.864165,11.142395],[22.87622,11.38461],[22.50869,11.67936],[22.49762,12.26024],[22.28801,12.64605],[21.93681,12.58818],[22.03759,12.95546],[22.29658,13.37232],[22.18329,13.78648],[22.51202,14.09318],[22.30351,14.32682],[22.56795,14.94429],[23.02459,15.68072],[23.88689,15.61084],[23.83766,19.58047],[23.85,20],[25,20.00304],[25,22],[29.02,22],[32.9,22],[36.86623,22],[37.18872,21.01885],[36.96941,20.83744],[37.1147,19.80796],[37.48179,18.61409],[37.86276,18.36786],[38.41009,17.998307],[37.904,17.42754],[37.16747,17.26314],[36.85253,16.95655],[36.75389,16.29186],[36.32322,14.82249],[36.42951,14.42211],[36.27022,13.56333],[35.86363,12.57828],[35.26049,12.08286],[34.83163,11.31896],[34.73115,10.91017],[34.25745,10.63009],[33.96162,9.58358],[33.97498,8.68456],[33.963393,9.464285],[33.824963,9.484061],[33.842131,9.981915],[33.721959,10.325262],[33.206938,10.720112],[33.086766,11.441141],[33.206938,12.179338],[32.743419,12.248008],[32.67475,12.024832],[32.073892,11.97333],[32.314235,11.681484],[32.400072,11.080626],[31.850716,10.531271],[31.352862,9.810241],[30.837841,9.707237],[29.996639,10.290927],[29.618957,10.084919],[29.515953,9.793074],[29.000932,9.604232],[28.966597,9.398224],[27.97089,9.398224],[27.833551,9.604232],[27.112521,9.638567],[26.752006,9.466893],[26.477328,9.55273],[25.962307,10.136421],[25.790633,10.411099],[25.069604,10.27376],[24.794926,9.810241],[24.537415,8.917538],[24.194068,8.728696],[23.88698,8.61973],[24.567369,8.229188]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"South Sudan","SOV_A3":"SDS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"South Sudan","ADM0_A3":"SDS","GEOU_DIF":0,"GEOUNIT":"South Sudan","GU_A3":"SDS","SU_DIF":0,"SUBUNIT":"South Sudan","SU_A3":"SDS","BRK_DIFF":0,"NAME":"S. Sudan","NAME_LONG":"South Sudan","BRK_A3":"SDS","BRK_NAME":"S. Sudan","BRK_GROUP":null,"ABBREV":"S. Sud.","POSTAL":"SS","FORMAL_EN":"Republic of South Sudan","FORMAL_FR":null,"NAME_CIAWF":"South Sudan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"South Sudan","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":3,"MAPCOLOR9":3,"MAPCOLOR13":5,"POP_EST":13026129,"POP_RANK":14,"GDP_MD_EST":20880,"POP_YEAR":2017,"LASTCENSUS":2008,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"SS","ISO_A3":"SSD","ISO_A3_EH":"SSD","ISO_N3":"728","UN_A3":"728","WB_A2":"SS","WB_A3":"SSD","WOE_ID":-99,"WOE_ID_EH":-99,"WOE_NOTE":"Includes states of 20069899, 20069897, 20069898, 20069901, 20069909, and 20069908 but maybe more?","ADM0_A3_IS":"SSD","ADM0_A3_US":"SDS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":11,"ABBREV_LEN":7,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[23.88698,3.509172,35.298007,12.248008],"geometry":{"type":"Polygon","coordinates":[[[27.374226,5.233944],[27.213409,5.550953],[26.465909,5.946717],[26.213418,6.546603],[25.796648,6.979316],[25.124131,7.500085],[25.114932,7.825104],[24.567369,8.229188],[23.88698,8.61973],[24.194068,8.728696],[24.537415,8.917538],[24.794926,9.810241],[25.069604,10.27376],[25.790633,10.411099],[25.962307,10.136421],[26.477328,9.55273],[26.752006,9.466893],[27.112521,9.638567],[27.833551,9.604232],[27.97089,9.398224],[28.966597,9.398224],[29.000932,9.604232],[29.515953,9.793074],[29.618957,10.084919],[29.996639,10.290927],[30.837841,9.707237],[31.352862,9.810241],[31.850716,10.531271],[32.400072,11.080626],[32.314235,11.681484],[32.073892,11.97333],[32.67475,12.024832],[32.743419,12.248008],[33.206938,12.179338],[33.086766,11.441141],[33.206938,10.720112],[33.721959,10.325262],[33.842131,9.981915],[33.824963,9.484061],[33.963393,9.464285],[33.97498,8.68456],[33.8255,8.37916],[33.2948,8.35458],[32.95418,7.78497],[33.56829,7.71334],[34.0751,7.22595],[34.25032,6.82607],[34.70702,6.59422],[35.298007,5.506],[34.620196,4.847123],[34.005,4.249885],[33.39,3.79],[32.68642,3.79232],[31.88145,3.55827],[31.24556,3.7819],[30.833852,3.509172],[29.9535,4.173699],[29.715995,4.600805],[29.159078,4.389267],[28.696678,4.455077],[28.428994,4.287155],[27.979977,4.408413],[27.374226,5.233944]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Senegal","SOV_A3":"SEN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Senegal","ADM0_A3":"SEN","GEOU_DIF":0,"GEOUNIT":"Senegal","GU_A3":"SEN","SU_DIF":0,"SUBUNIT":"Senegal","SU_A3":"SEN","BRK_DIFF":0,"NAME":"Senegal","NAME_LONG":"Senegal","BRK_A3":"SEN","BRK_NAME":"Senegal","BRK_GROUP":null,"ABBREV":"Sen.","POSTAL":"SN","FORMAL_EN":"Republic of Senegal","FORMAL_FR":null,"NAME_CIAWF":"Senegal","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Senegal","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":6,"MAPCOLOR9":5,"MAPCOLOR13":5,"POP_EST":14668522,"POP_RANK":14,"GDP_MD_EST":39720,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"SG","ISO_A2":"SN","ISO_A3":"SEN","ISO_A3_EH":"SEN","ISO_N3":"686","UN_A3":"686","WB_A2":"SN","WB_A3":"SEN","WOE_ID":23424943,"WOE_ID_EH":23424943,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SEN","ADM0_A3_US":"SEN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-17.625043,12.33209,-11.467899,16.598264],"geometry":{"type":"Polygon","coordinates":[[[-11.513943,12.442988],[-11.658301,12.386583],[-12.203565,12.465648],[-12.278599,12.35444],[-12.499051,12.33209],[-13.217818,12.575874],[-13.700476,12.586183],[-15.548477,12.62817],[-15.816574,12.515567],[-16.147717,12.547762],[-16.677452,12.384852],[-16.841525,13.151394],[-15.931296,13.130284],[-15.691001,13.270353],[-15.511813,13.27857],[-15.141163,13.509512],[-14.712197,13.298207],[-14.277702,13.280585],[-13.844963,13.505042],[-14.046992,13.794068],[-14.376714,13.62568],[-14.687031,13.630357],[-15.081735,13.876492],[-15.39877,13.860369],[-15.624596,13.623587],[-16.713729,13.594959],[-17.126107,14.373516],[-17.625043,14.729541],[-17.185173,14.919477],[-16.700706,15.621527],[-16.463098,16.135036],[-16.12069,16.455663],[-15.623666,16.369337],[-15.135737,16.587282],[-14.577348,16.598264],[-14.099521,16.304302],[-13.435738,16.039383],[-12.830658,15.303692],[-12.17075,14.616834],[-12.124887,13.994727],[-11.927716,13.422075],[-11.553398,13.141214],[-11.467899,12.754519],[-11.513943,12.442988]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Solomon Islands","SOV_A3":"SLB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Solomon Islands","ADM0_A3":"SLB","GEOU_DIF":0,"GEOUNIT":"Solomon Islands","GU_A3":"SLB","SU_DIF":0,"SUBUNIT":"Solomon Islands","SU_A3":"SLB","BRK_DIFF":0,"NAME":"Solomon Is.","NAME_LONG":"Solomon Islands","BRK_A3":"SLB","BRK_NAME":"Solomon Is.","BRK_GROUP":null,"ABBREV":"S. Is.","POSTAL":"SB","FORMAL_EN":null,"FORMAL_FR":null,"NAME_CIAWF":"Solomon Islands","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Solomon Islands","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":6,"POP_EST":647581,"POP_RANK":11,"GDP_MD_EST":1198,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"BP","ISO_A2":"SB","ISO_A3":"SLB","ISO_A3_EH":"SLB","ISO_N3":"090","UN_A3":"090","WB_A2":"SB","WB_A3":"SLB","WOE_ID":23424766,"WOE_ID_EH":23424766,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SLB","ADM0_A3_US":"SLB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Melanesia","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":15,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[156.491358,-10.826367,162.398646,-6.599338],"geometry":{"type":"MultiPolygon","coordinates":[[[[162.119025,-10.482719],[162.398646,-10.826367],[161.700032,-10.820011],[161.319797,-10.204751],[161.917383,-10.446701],[162.119025,-10.482719]]],[[[160.852229,-9.872937],[160.462588,-9.89521],[159.849447,-9.794027],[159.640003,-9.63998],[159.702945,-9.24295],[160.362956,-9.400304],[160.688518,-9.610162],[160.852229,-9.872937]]],[[[161.679982,-9.599982],[161.529397,-9.784312],[160.788253,-8.917543],[160.579997,-8.320009],[160.920028,-8.320009],[161.280006,-9.120011],[161.679982,-9.599982]]],[[[159.875027,-8.33732],[159.917402,-8.53829],[159.133677,-8.114181],[158.586114,-7.754824],[158.21115,-7.421872],[158.359978,-7.320018],[158.820001,-7.560003],[159.640003,-8.020027],[159.875027,-8.33732]]],[[[157.538426,-7.34782],[157.33942,-7.404767],[156.90203,-7.176874],[156.491358,-6.765943],[156.542828,-6.599338],[157.14,-7.021638],[157.538426,-7.34782]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Sierra Leone","SOV_A3":"SLE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Sierra Leone","ADM0_A3":"SLE","GEOU_DIF":0,"GEOUNIT":"Sierra Leone","GU_A3":"SLE","SU_DIF":0,"SUBUNIT":"Sierra Leone","SU_A3":"SLE","BRK_DIFF":0,"NAME":"Sierra Leone","NAME_LONG":"Sierra Leone","BRK_A3":"SLE","BRK_NAME":"Sierra Leone","BRK_GROUP":null,"ABBREV":"S.L.","POSTAL":"SL","FORMAL_EN":"Republic of Sierra Leone","FORMAL_FR":null,"NAME_CIAWF":"Sierra Leone","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Sierra Leone","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":1,"MAPCOLOR13":7,"POP_EST":6163195,"POP_RANK":13,"GDP_MD_EST":10640,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"SL","ISO_A2":"SL","ISO_A3":"SLE","ISO_A3_EH":"SLE","ISO_N3":"694","UN_A3":"694","WB_A2":"SL","WB_A3":"SLE","WOE_ID":23424946,"WOE_ID_EH":23424946,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SLE","ADM0_A3_US":"SLE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":12,"LONG_LEN":12,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-13.24655,6.785917,-10.230094,10.046984],"geometry":{"type":"Polygon","coordinates":[[[-13.24655,8.903049],[-12.711958,9.342712],[-12.596719,9.620188],[-12.425929,9.835834],[-12.150338,9.858572],[-11.917277,10.046984],[-11.117481,10.045873],[-10.839152,9.688246],[-10.622395,9.26791],[-10.65477,8.977178],[-10.494315,8.715541],[-10.505477,8.348896],[-10.230094,8.406206],[-10.695595,7.939464],[-11.146704,7.396706],[-11.199802,7.105846],[-11.438779,6.785917],[-11.708195,6.860098],[-12.428099,7.262942],[-12.949049,7.798646],[-13.124025,8.163946],[-13.24655,8.903049]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"El Salvador","SOV_A3":"SLV","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"El Salvador","ADM0_A3":"SLV","GEOU_DIF":0,"GEOUNIT":"El Salvador","GU_A3":"SLV","SU_DIF":0,"SUBUNIT":"El Salvador","SU_A3":"SLV","BRK_DIFF":0,"NAME":"El Salvador","NAME_LONG":"El Salvador","BRK_A3":"SLV","BRK_NAME":"El Salvador","BRK_GROUP":null,"ABBREV":"El. S.","POSTAL":"SV","FORMAL_EN":"Republic of El Salvador","FORMAL_FR":null,"NAME_CIAWF":"El Salvador","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"El Salvador","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":6,"MAPCOLOR13":8,"POP_EST":6172011,"POP_RANK":13,"GDP_MD_EST":54790,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"ES","ISO_A2":"SV","ISO_A3":"SLV","ISO_A3_EH":"SLV","ISO_N3":"222","UN_A3":"222","WB_A2":"SV","WB_A3":"SLV","WOE_ID":23424807,"WOE_ID_EH":23424807,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SLV","ADM0_A3_US":"SLV","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Central America","REGION_WB":"Latin America & Caribbean","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[-90.095555,13.149017,-87.723503,14.424133],"geometry":{"type":"Polygon","coordinates":[[[-90.095555,13.735338],[-90.064678,13.88197],[-89.721934,14.134228],[-89.534219,14.244816],[-89.587343,14.362586],[-89.353326,14.424133],[-89.058512,14.340029],[-88.843073,14.140507],[-88.541231,13.980155],[-88.503998,13.845486],[-88.065343,13.964626],[-87.859515,13.893312],[-87.723503,13.78505],[-87.793111,13.38448],[-87.904112,13.149017],[-88.483302,13.163951],[-88.843228,13.259734],[-89.256743,13.458533],[-89.812394,13.520622],[-90.095555,13.735338]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Somaliland","SOV_A3":"SOL","ADM0_DIF":0,"LEVEL":2,"TYPE":"Indeterminate","ADMIN":"Somaliland","ADM0_A3":"SOL","GEOU_DIF":0,"GEOUNIT":"Somaliland","GU_A3":"SOL","SU_DIF":0,"SUBUNIT":"Somaliland","SU_A3":"SOL","BRK_DIFF":1,"NAME":"Somaliland","NAME_LONG":"Somaliland","BRK_A3":"B30","BRK_NAME":"Somaliland","BRK_GROUP":null,"ABBREV":"Solnd.","POSTAL":"SL","FORMAL_EN":"Republic of Somaliland","FORMAL_FR":null,"NAME_CIAWF":null,"NOTE_ADM0":"Self admin.","NOTE_BRK":"Self admin.; Claimed by Somalia","NAME_SORT":"Somaliland","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":5,"MAPCOLOR13":2,"POP_EST":3500000,"POP_RANK":12,"GDP_MD_EST":12250,"POP_YEAR":2013,"LASTCENSUS":-99,"GDP_YEAR":2013,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"-99","ISO_A2":"SO","ISO_A3":"-99","ISO_A3_EH":"-99","ISO_N3":"-99","UN_A3":"-099","WB_A2":"SOL","WB_A3":"-99","WOE_ID":-99,"WOE_ID_EH":-99,"WOE_NOTE":"Includes old states of 2347021, 2347020, 2347017 and portion of 2347016.","ADM0_A3_IS":"SOM","ADM0_A3_US":"SOM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":4,"MIN_LABEL":4.5,"MAX_LABEL":9},"bbox":[42.55876,7.99688,48.948206,11.46204],"geometry":{"type":"Polygon","coordinates":[[[42.776852,10.926879],[43.145305,11.46204],[43.47066,11.27771],[43.666668,10.864169],[44.117804,10.445538],[44.614259,10.442205],[45.556941,10.698029],[46.645401,10.816549],[47.525658,11.127228],[48.021596,11.193064],[48.378784,11.375482],[48.948206,11.410622],[48.948205,11.410617],[48.948205,11.410617],[48.942005,11.394266],[48.938491,10.982327],[48.938233,9.9735],[48.93813,9.451749],[48.486736,8.837626],[47.78942,8.003],[46.94834,7.99688],[43.67875,9.18358],[43.29699,9.54048],[42.92812,10.02194],[42.55876,10.57258],[42.776852,10.926879]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Somalia","SOV_A3":"SOM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Somalia","ADM0_A3":"SOM","GEOU_DIF":0,"GEOUNIT":"Somalia","GU_A3":"SOM","SU_DIF":0,"SUBUNIT":"Somalia","SU_A3":"SOM","BRK_DIFF":0,"NAME":"Somalia","NAME_LONG":"Somalia","BRK_A3":"SOM","BRK_NAME":"Somalia","BRK_GROUP":null,"ABBREV":"Som.","POSTAL":"SO","FORMAL_EN":"Federal Republic of Somalia","FORMAL_FR":null,"NAME_CIAWF":"Somalia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Somalia","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":8,"MAPCOLOR9":6,"MAPCOLOR13":7,"POP_EST":7531386,"POP_RANK":13,"GDP_MD_EST":4719,"POP_YEAR":2017,"LASTCENSUS":1987,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"SO","ISO_A2":"SO","ISO_A3":"SOM","ISO_A3_EH":"SOM","ISO_N3":"706","UN_A3":"706","WB_A2":"SO","WB_A3":"SOM","WOE_ID":-90,"WOE_ID_EH":23424949,"WOE_NOTE":"Includes Somaliland (2347021, 2347020, 2347017 and portion of 2347016)","ADM0_A3_IS":"SOM","ADM0_A3_US":"SOM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[40.98105,-1.68325,51.13387,12.02464],"geometry":{"type":"Polygon","coordinates":[[[41.855083,3.918912],[42.12861,4.23413],[42.76967,4.25259],[43.66087,4.95755],[44.9636,5.00162],[47.78942,8.003],[48.486736,8.837626],[48.93813,9.451749],[48.938233,9.9735],[48.938491,10.982327],[48.942005,11.394266],[48.948205,11.410617],[48.948205,11.410617],[49.26776,11.43033],[49.72862,11.5789],[50.25878,11.67957],[50.73202,12.0219],[51.1112,12.02464],[51.13387,11.74815],[51.04153,11.16651],[51.04531,10.6409],[50.83418,10.27972],[50.55239,9.19874],[50.07092,8.08173],[49.4527,6.80466],[48.59455,5.33911],[47.74079,4.2194],[46.56476,2.85529],[45.56399,2.04576],[44.06815,1.05283],[43.13597,0.2922],[42.04157,-0.91916],[41.81095,-1.44647],[41.58513,-1.68325],[40.993,-0.85829],[40.98105,2.78452],[41.855083,3.918912]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Republic of Serbia","SOV_A3":"SRB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Republic of Serbia","ADM0_A3":"SRB","GEOU_DIF":0,"GEOUNIT":"Republic of Serbia","GU_A3":"SRB","SU_DIF":0,"SUBUNIT":"Republic of Serbia","SU_A3":"SRB","BRK_DIFF":0,"NAME":"Serbia","NAME_LONG":"Serbia","BRK_A3":"SRB","BRK_NAME":"Serbia","BRK_GROUP":null,"ABBREV":"Serb.","POSTAL":"RS","FORMAL_EN":"Republic of Serbia","FORMAL_FR":null,"NAME_CIAWF":"Serbia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Serbia","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":3,"MAPCOLOR9":2,"MAPCOLOR13":10,"POP_EST":7111024,"POP_RANK":13,"GDP_MD_EST":101800,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"RI","ISO_A2":"RS","ISO_A3":"SRB","ISO_A3_EH":"SRB","ISO_N3":"688","UN_A3":"688","WB_A2":"YF","WB_A3":"SRB","WOE_ID":-90,"WOE_ID_EH":20069818,"WOE_NOTE":"Expired WOE also contains Kosovo.","ADM0_A3_IS":"SRB","ADM0_A3_US":"SRB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":7},"bbox":[18.829825,42.245224,22.986019,46.17173],"geometry":{"type":"Polygon","coordinates":[[[22.65715,44.234923],[22.410446,44.008063],[22.500157,43.642814],[22.986019,43.211161],[22.604801,42.898519],[22.436595,42.580321],[22.545012,42.461362],[22.380526,42.32026],[21.91708,42.30364],[21.576636,42.245224],[21.54332,42.32025],[21.66292,42.43922],[21.77505,42.6827],[21.63302,42.67717],[21.43866,42.86255],[21.27421,42.90959],[21.143395,43.068685],[20.95651,43.13094],[20.81448,43.27205],[20.63508,43.21671],[20.49679,42.88469],[20.25758,42.81275],[20.3398,42.89852],[19.95857,43.10604],[19.63,43.21378],[19.48389,43.35229],[19.21852,43.52384],[19.454,43.5681],[19.59976,44.03847],[19.11761,44.42307],[19.36803,44.863],[19.00548,44.86023],[19.005485,44.860234],[19.390476,45.236516],[19.072769,45.521511],[18.829825,45.908872],[18.829838,45.908878],[19.596045,46.17173],[20.220192,46.127469],[20.762175,45.734573],[20.874313,45.416375],[21.483526,45.18117],[21.562023,44.768947],[22.145088,44.478422],[22.459022,44.702517],[22.705726,44.578003],[22.474008,44.409228],[22.65715,44.234923]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Suriname","SOV_A3":"SUR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Suriname","ADM0_A3":"SUR","GEOU_DIF":0,"GEOUNIT":"Suriname","GU_A3":"SUR","SU_DIF":0,"SUBUNIT":"Suriname","SU_A3":"SUR","BRK_DIFF":0,"NAME":"Suriname","NAME_LONG":"Suriname","BRK_A3":"SUR","BRK_NAME":"Suriname","BRK_GROUP":null,"ABBREV":"Sur.","POSTAL":"SR","FORMAL_EN":"Republic of Suriname","FORMAL_FR":null,"NAME_CIAWF":"Suriname","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Suriname","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":7,"MAPCOLOR13":6,"POP_EST":591919,"POP_RANK":11,"GDP_MD_EST":8547,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"NS","ISO_A2":"SR","ISO_A3":"SUR","ISO_A3_EH":"SUR","ISO_N3":"740","UN_A3":"740","WB_A2":"SR","WB_A3":"SUR","WOE_ID":23424913,"WOE_ID_EH":23424913,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SUR","ADM0_A3_US":"SUR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[-58.044694,1.817667,-53.958045,6.025291],"geometry":{"type":"Polygon","coordinates":[[[-54.524754,2.311849],[-55.097587,2.523748],[-55.569755,2.421506],[-55.973322,2.510364],[-56.073342,2.220795],[-55.9056,2.021996],[-55.995698,1.817667],[-56.539386,1.899523],[-57.150098,2.768927],[-57.281433,3.333492],[-57.601569,3.334655],[-58.044694,4.060864],[-57.86021,4.576801],[-57.914289,4.812626],[-57.307246,5.073567],[-57.147436,5.97315],[-55.949318,5.772878],[-55.84178,5.953125],[-55.03325,6.025291],[-53.958045,5.756548],[-54.478633,4.896756],[-54.399542,4.212611],[-54.011504,3.62257],[-54.184284,3.194172],[-54.27123,2.738748],[-54.524754,2.311849]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Slovakia","SOV_A3":"SVK","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Slovakia","ADM0_A3":"SVK","GEOU_DIF":0,"GEOUNIT":"Slovakia","GU_A3":"SVK","SU_DIF":0,"SUBUNIT":"Slovakia","SU_A3":"SVK","BRK_DIFF":0,"NAME":"Slovakia","NAME_LONG":"Slovakia","BRK_A3":"SVK","BRK_NAME":"Slovakia","BRK_GROUP":null,"ABBREV":"Svk.","POSTAL":"SK","FORMAL_EN":"Slovak Republic","FORMAL_FR":null,"NAME_CIAWF":"Slovakia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Slovak Republic","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":4,"MAPCOLOR9":4,"MAPCOLOR13":9,"POP_EST":5445829,"POP_RANK":13,"GDP_MD_EST":168800,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"LO","ISO_A2":"SK","ISO_A3":"SVK","ISO_A3_EH":"SVK","ISO_N3":"703","UN_A3":"703","WB_A2":"SK","WB_A3":"SVK","WOE_ID":23424877,"WOE_ID_EH":23424877,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SVK","ADM0_A3_US":"SVK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[16.879983,47.758429,22.558138,49.571574],"geometry":{"type":"Polygon","coordinates":[[[16.979667,48.123497],[16.879983,48.470013],[16.960288,48.596982],[17.101985,48.816969],[17.545007,48.800019],[17.886485,48.903475],[17.913512,48.996493],[18.104973,49.043983],[18.170498,49.271515],[18.399994,49.315001],[18.554971,49.495015],[18.853144,49.49623],[18.909575,49.435846],[19.320713,49.571574],[19.825023,49.217125],[20.415839,49.431453],[20.887955,49.328772],[21.607808,49.470107],[22.558138,49.085738],[22.280842,48.825392],[22.085608,48.422264],[21.872236,48.319971],[20.801294,48.623854],[20.473562,48.56285],[20.239054,48.327567],[19.769471,48.202691],[19.661364,48.266615],[19.174365,48.111379],[18.777025,48.081768],[18.696513,47.880954],[17.857133,47.758429],[17.488473,47.867466],[16.979667,48.123497]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Slovenia","SOV_A3":"SVN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Slovenia","ADM0_A3":"SVN","GEOU_DIF":0,"GEOUNIT":"Slovenia","GU_A3":"SVN","SU_DIF":0,"SUBUNIT":"Slovenia","SU_A3":"SVN","BRK_DIFF":0,"NAME":"Slovenia","NAME_LONG":"Slovenia","BRK_A3":"SVN","BRK_NAME":"Slovenia","BRK_GROUP":null,"ABBREV":"Slo.","POSTAL":"SLO","FORMAL_EN":"Republic of Slovenia","FORMAL_FR":null,"NAME_CIAWF":"Slovenia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Slovenia","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":3,"MAPCOLOR9":2,"MAPCOLOR13":12,"POP_EST":1972126,"POP_RANK":12,"GDP_MD_EST":68350,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"SI","ISO_A2":"SI","ISO_A3":"SVN","ISO_A3_EH":"SVN","ISO_N3":"705","UN_A3":"705","WB_A2":"SI","WB_A3":"SVN","WOE_ID":23424945,"WOE_ID_EH":23424945,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SVN","ADM0_A3_US":"SVN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Southern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[13.69811,45.452316,16.564808,46.852386],"geometry":{"type":"Polygon","coordinates":[[[13.806475,46.509306],[14.632472,46.431817],[15.137092,46.658703],[16.011664,46.683611],[16.202298,46.852386],[16.370505,46.841327],[16.564808,46.503751],[15.768733,46.238108],[15.67153,45.834154],[15.323954,45.731783],[15.327675,45.452316],[14.935244,45.471695],[14.595109,45.634941],[14.411968,45.466166],[13.71506,45.500324],[13.93763,45.591016],[13.69811,46.016778],[13.806475,46.509306]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Sweden","SOV_A3":"SWE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Sweden","ADM0_A3":"SWE","GEOU_DIF":0,"GEOUNIT":"Sweden","GU_A3":"SWE","SU_DIF":0,"SUBUNIT":"Sweden","SU_A3":"SWE","BRK_DIFF":0,"NAME":"Sweden","NAME_LONG":"Sweden","BRK_A3":"SWE","BRK_NAME":"Sweden","BRK_GROUP":null,"ABBREV":"Swe.","POSTAL":"S","FORMAL_EN":"Kingdom of Sweden","FORMAL_FR":null,"NAME_CIAWF":"Sweden","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Sweden","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":4,"MAPCOLOR9":2,"MAPCOLOR13":4,"POP_EST":9960487,"POP_RANK":13,"GDP_MD_EST":498100,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":-99,"FIPS_10_":"SW","ISO_A2":"SE","ISO_A3":"SWE","ISO_A3_EH":"SWE","ISO_N3":"752","UN_A3":"752","WB_A2":"SE","WB_A3":"SWE","WOE_ID":23424954,"WOE_ID_EH":23424954,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SWE","ADM0_A3_US":"SWE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Northern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[11.027369,55.361737,23.903379,69.106247],"geometry":{"type":"Polygon","coordinates":[[[20.645593,69.106247],[21.978535,68.616846],[23.539473,67.936009],[23.56588,66.396051],[23.903379,66.006927],[22.183173,65.723741],[21.213517,65.026005],[21.369631,64.413588],[19.778876,63.609554],[17.847779,62.7494],[17.119555,61.341166],[17.831346,60.636583],[18.787722,60.081914],[17.869225,58.953766],[16.829185,58.719827],[16.44771,57.041118],[15.879786,56.104302],[14.666681,56.200885],[14.100721,55.407781],[12.942911,55.361737],[12.625101,56.30708],[11.787942,57.441817],[11.027369,58.856149],[11.468272,59.432393],[12.300366,60.117933],[12.631147,61.293572],[11.992064,61.800362],[11.930569,63.128318],[12.579935,64.066219],[13.571916,64.049114],[13.919905,64.445421],[13.55569,64.787028],[15.108411,66.193867],[16.108712,67.302456],[16.768879,68.013937],[17.729182,68.010552],[17.993868,68.567391],[19.87856,68.407194],[20.025269,69.065139],[20.645593,69.106247]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Swaziland","SOV_A3":"SWZ","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Swaziland","ADM0_A3":"SWZ","GEOU_DIF":0,"GEOUNIT":"Swaziland","GU_A3":"SWZ","SU_DIF":0,"SUBUNIT":"Swaziland","SU_A3":"SWZ","BRK_DIFF":0,"NAME":"Swaziland","NAME_LONG":"Swaziland","BRK_A3":"SWZ","BRK_NAME":"Swaziland","BRK_GROUP":null,"ABBREV":"Swz.","POSTAL":"SW","FORMAL_EN":"Kingdom of Swaziland","FORMAL_FR":null,"NAME_CIAWF":"Swaziland","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Swaziland","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":5,"POP_EST":1467152,"POP_RANK":12,"GDP_MD_EST":11060,"POP_YEAR":2017,"LASTCENSUS":2007,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"WZ","ISO_A2":"SZ","ISO_A3":"SWZ","ISO_A3_EH":"SWZ","ISO_N3":"748","UN_A3":"748","WB_A2":"SZ","WB_A3":"SWZ","WOE_ID":23424993,"WOE_ID_EH":23424993,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SWZ","ADM0_A3_US":"SWZ","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Southern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[30.676609,-27.285879,32.071665,-25.660191],"geometry":{"type":"Polygon","coordinates":[[[31.837778,-25.843332],[31.985779,-26.29178],[32.071665,-26.73382],[31.86806,-27.177927],[31.282773,-27.285879],[30.685962,-26.743845],[30.676609,-26.398078],[30.949667,-26.022649],[31.04408,-25.731452],[31.333158,-25.660191],[31.837778,-25.843332]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Syria","SOV_A3":"SYR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Syria","ADM0_A3":"SYR","GEOU_DIF":0,"GEOUNIT":"Syria","GU_A3":"SYR","SU_DIF":0,"SUBUNIT":"Syria","SU_A3":"SYR","BRK_DIFF":0,"NAME":"Syria","NAME_LONG":"Syria","BRK_A3":"SYR","BRK_NAME":"Syria","BRK_GROUP":null,"ABBREV":"Syria","POSTAL":"SYR","FORMAL_EN":"Syrian Arab Republic","FORMAL_FR":null,"NAME_CIAWF":"Syria","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Syrian Arab Republic","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":6,"POP_EST":18028549,"POP_RANK":14,"GDP_MD_EST":50280,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2015,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"SY","ISO_A2":"SY","ISO_A3":"SYR","ISO_A3_EH":"SYR","ISO_N3":"760","UN_A3":"760","WB_A2":"SY","WB_A3":"SYR","WOE_ID":23424956,"WOE_ID_EH":23424956,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"SYR","ADM0_A3_US":"SYR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[35.700798,32.312938,42.349591,37.229873],"geometry":{"type":"Polygon","coordinates":[[[42.349591,37.229873],[41.837064,36.605854],[41.289707,36.358815],[41.383965,35.628317],[41.006159,34.419372],[38.792341,33.378686],[36.834062,32.312938],[35.719918,32.709192],[35.700798,32.716014],[35.836397,32.868123],[35.821101,33.277426],[36.06646,33.824912],[36.61175,34.201789],[36.448194,34.593935],[35.998403,34.644914],[35.905023,35.410009],[36.149763,35.821535],[36.41755,36.040617],[36.685389,36.259699],[36.739494,36.81752],[37.066761,36.623036],[38.167727,36.90121],[38.699891,36.712927],[39.52258,36.716054],[40.673259,37.091276],[41.212089,37.074352],[42.349591,37.229873]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Chad","SOV_A3":"TCD","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Chad","ADM0_A3":"TCD","GEOU_DIF":0,"GEOUNIT":"Chad","GU_A3":"TCD","SU_DIF":0,"SUBUNIT":"Chad","SU_A3":"TCD","BRK_DIFF":0,"NAME":"Chad","NAME_LONG":"Chad","BRK_A3":"TCD","BRK_NAME":"Chad","BRK_GROUP":null,"ABBREV":"Chad","POSTAL":"TD","FORMAL_EN":"Republic of Chad","FORMAL_FR":null,"NAME_CIAWF":"Chad","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Chad","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":1,"MAPCOLOR9":8,"MAPCOLOR13":6,"POP_EST":12075985,"POP_RANK":14,"GDP_MD_EST":30590,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"CD","ISO_A2":"TD","ISO_A3":"TCD","ISO_A3_EH":"TCD","ISO_N3":"148","UN_A3":"148","WB_A2":"TD","WB_A3":"TCD","WOE_ID":23424777,"WOE_ID_EH":23424777,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TCD","ADM0_A3_US":"TCD","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Middle Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[13.540394,7.421925,23.88689,23.40972],"geometry":{"type":"Polygon","coordinates":[[[22.864165,11.142395],[22.231129,10.971889],[21.723822,10.567056],[21.000868,9.475985],[20.059685,9.012706],[19.094008,9.074847],[18.81201,8.982915],[18.911022,8.630895],[18.389555,8.281304],[17.96493,7.890914],[16.705988,7.508328],[16.456185,7.734774],[16.290562,7.754307],[16.106232,7.497088],[15.27946,7.421925],[15.436092,7.692812],[15.120866,8.38215],[14.979996,8.796104],[14.544467,8.965861],[13.954218,9.549495],[14.171466,10.021378],[14.627201,9.920919],[14.909354,9.992129],[15.467873,9.982337],[14.923565,10.891325],[14.960152,11.555574],[14.89336,12.21905],[14.495787,12.859396],[14.595781,13.330427],[13.954477,13.353449],[13.956699,13.996691],[13.540394,14.367134],[13.97217,15.68437],[15.247731,16.627306],[15.300441,17.92795],[15.685741,19.95718],[15.903247,20.387619],[15.487148,20.730415],[15.47106,21.04845],[15.096888,21.308519],[14.8513,22.86295],[15.86085,23.40972],[19.84926,21.49509],[23.83766,19.58047],[23.88689,15.61084],[23.02459,15.68072],[22.56795,14.94429],[22.30351,14.32682],[22.51202,14.09318],[22.18329,13.78648],[22.29658,13.37232],[22.03759,12.95546],[21.93681,12.58818],[22.28801,12.64605],[22.49762,12.26024],[22.50869,11.67936],[22.87622,11.38461],[22.864165,11.142395]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":6,"SOVEREIGNT":"Togo","SOV_A3":"TGO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Togo","ADM0_A3":"TGO","GEOU_DIF":0,"GEOUNIT":"Togo","GU_A3":"TGO","SU_DIF":0,"SUBUNIT":"Togo","SU_A3":"TGO","BRK_DIFF":0,"NAME":"Togo","NAME_LONG":"Togo","BRK_A3":"TGO","BRK_NAME":"Togo","BRK_GROUP":null,"ABBREV":"Togo","POSTAL":"TG","FORMAL_EN":"Togolese Republic","FORMAL_FR":"R\xe9publique Togolaise","NAME_CIAWF":"Togo","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Togo","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":1,"MAPCOLOR9":3,"MAPCOLOR13":5,"POP_EST":7965055,"POP_RANK":13,"GDP_MD_EST":11610,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"TO","ISO_A2":"TG","ISO_A3":"TGO","ISO_A3_EH":"TGO","ISO_N3":"768","UN_A3":"768","WB_A2":"TG","WB_A3":"TGO","WOE_ID":23424965,"WOE_ID_EH":23424965,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TGO","ADM0_A3_US":"TGO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Western Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":4,"LONG_LEN":4,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":5,"MAX_LABEL":10},"bbox":[-0.049785,5.928837,1.865241,11.018682],"geometry":{"type":"Polygon","coordinates":[[[0.899563,10.997339],[0.772336,10.470808],[1.077795,10.175607],[1.425061,9.825395],[1.463043,9.334624],[1.664478,9.12859],[1.618951,6.832038],[1.865241,6.142158],[1.060122,5.928837],[0.836931,6.279979],[0.570384,6.914359],[0.490957,7.411744],[0.712029,8.312465],[0.461192,8.677223],[0.365901,9.465004],[0.36758,10.191213],[-0.049785,10.706918],[0.023803,11.018682],[0.899563,10.997339]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Thailand","SOV_A3":"THA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Thailand","ADM0_A3":"THA","GEOU_DIF":0,"GEOUNIT":"Thailand","GU_A3":"THA","SU_DIF":0,"SUBUNIT":"Thailand","SU_A3":"THA","BRK_DIFF":0,"NAME":"Thailand","NAME_LONG":"Thailand","BRK_A3":"THA","BRK_NAME":"Thailand","BRK_GROUP":null,"ABBREV":"Thai.","POSTAL":"TH","FORMAL_EN":"Kingdom of Thailand","FORMAL_FR":null,"NAME_CIAWF":"Thailand","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Thailand","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":8,"MAPCOLOR13":1,"POP_EST":68414135,"POP_RANK":16,"GDP_MD_EST":1161000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"TH","ISO_A2":"TH","ISO_A3":"THA","ISO_A3_EH":"THA","ISO_N3":"764","UN_A3":"764","WB_A2":"TH","WB_A3":"THA","WOE_ID":23424960,"WOE_ID_EH":23424960,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"THA","ADM0_A3_US":"THA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[97.375896,5.691384,105.589039,20.41785],"geometry":{"type":"Polygon","coordinates":[[[105.218777,14.273212],[104.281418,14.416743],[102.988422,14.225721],[102.348099,13.394247],[102.584932,12.186595],[101.687158,12.64574],[100.83181,12.627085],[100.978467,13.412722],[100.097797,13.406856],[100.018733,12.307001],[99.478921,10.846367],[99.153772,9.963061],[99.222399,9.239255],[99.873832,9.207862],[100.279647,8.295153],[100.459274,7.429573],[101.017328,6.856869],[101.623079,6.740622],[102.141187,6.221636],[101.814282,5.810808],[101.154219,5.691384],[101.075516,6.204867],[100.259596,6.642825],[100.085757,6.464489],[99.690691,6.848213],[99.519642,7.343454],[98.988253,7.907993],[98.503786,8.382305],[98.339662,7.794512],[98.150009,8.350007],[98.25915,8.973923],[98.553551,9.93296],[99.038121,10.960546],[99.587286,11.892763],[99.196354,12.804748],[99.212012,13.269294],[99.097755,13.827503],[98.430819,14.622028],[98.192074,15.123703],[98.537376,15.308497],[98.903348,16.177824],[98.493761,16.837836],[97.859123,17.567946],[97.375896,18.445438],[97.797783,18.62708],[98.253724,19.708203],[98.959676,19.752981],[99.543309,20.186598],[100.115988,20.41785],[100.548881,20.109238],[100.606294,19.508344],[101.282015,19.462585],[101.035931,18.408928],[101.059548,17.512497],[102.113592,18.109102],[102.413005,17.932782],[102.998706,17.961695],[103.200192,18.309632],[103.956477,18.240954],[104.716947,17.428859],[104.779321,16.441865],[105.589039,15.570316],[105.544338,14.723934],[105.218777,14.273212]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Tajikistan","SOV_A3":"TJK","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Tajikistan","ADM0_A3":"TJK","GEOU_DIF":0,"GEOUNIT":"Tajikistan","GU_A3":"TJK","SU_DIF":0,"SUBUNIT":"Tajikistan","SU_A3":"TJK","BRK_DIFF":0,"NAME":"Tajikistan","NAME_LONG":"Tajikistan","BRK_A3":"TJK","BRK_NAME":"Tajikistan","BRK_GROUP":null,"ABBREV":"Tjk.","POSTAL":"TJ","FORMAL_EN":"Republic of Tajikistan","FORMAL_FR":null,"NAME_CIAWF":"Tajikistan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Tajikistan","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":5,"POP_EST":8468555,"POP_RANK":13,"GDP_MD_EST":25810,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"TI","ISO_A2":"TJ","ISO_A3":"TJK","ISO_A3_EH":"TJK","ISO_N3":"762","UN_A3":"762","WB_A2":"TJ","WB_A3":"TJK","WOE_ID":23424961,"WOE_ID_EH":23424961,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TJK","ADM0_A3_US":"TJK","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Central Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[67.44222,36.738171,74.980002,40.960213],"geometry":{"type":"Polygon","coordinates":[[[74.980002,37.41999],[73.948696,37.421566],[73.260056,37.495257],[72.63689,37.047558],[72.193041,36.948288],[71.844638,36.738171],[71.448693,37.065645],[71.541918,37.905774],[71.239404,37.953265],[71.348131,38.258905],[70.806821,38.486282],[70.376304,38.138396],[70.270574,37.735165],[70.116578,37.588223],[69.518785,37.608997],[69.196273,37.151144],[68.859446,37.344336],[68.135562,37.023115],[67.83,37.144994],[68.392033,38.157025],[68.176025,38.901553],[67.44222,39.140144],[67.701429,39.580478],[68.536416,39.533453],[69.011633,40.086158],[69.329495,40.727824],[70.666622,40.960213],[70.45816,40.496495],[70.601407,40.218527],[71.014198,40.244366],[70.648019,39.935754],[69.55961,40.103211],[69.464887,39.526683],[70.549162,39.604198],[71.784694,39.279463],[73.675379,39.431237],[73.928852,38.505815],[74.257514,38.606507],[74.864816,38.378846],[74.829986,37.990007],[74.980002,37.41999]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Turkmenistan","SOV_A3":"TKM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Turkmenistan","ADM0_A3":"TKM","GEOU_DIF":0,"GEOUNIT":"Turkmenistan","GU_A3":"TKM","SU_DIF":0,"SUBUNIT":"Turkmenistan","SU_A3":"TKM","BRK_DIFF":0,"NAME":"Turkmenistan","NAME_LONG":"Turkmenistan","BRK_A3":"TKM","BRK_NAME":"Turkmenistan","BRK_GROUP":null,"ABBREV":"Turkm.","POSTAL":"TM","FORMAL_EN":"Turkmenistan","FORMAL_FR":null,"NAME_CIAWF":"Turkmenistan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Turkmenistan","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":2,"MAPCOLOR9":1,"MAPCOLOR13":9,"POP_EST":5351277,"POP_RANK":13,"GDP_MD_EST":94720,"POP_YEAR":2017,"LASTCENSUS":1995,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"TX","ISO_A2":"TM","ISO_A3":"TKM","ISO_A3_EH":"TKM","ISO_N3":"795","UN_A3":"795","WB_A2":"TM","WB_A3":"TKM","WOE_ID":23424972,"WOE_ID_EH":23424972,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TKM","ADM0_A3_US":"TKM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Central Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":12,"LONG_LEN":12,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[52.50246,35.270664,66.54615,42.751551],"geometry":{"type":"Polygon","coordinates":[[[66.518607,37.362784],[66.217385,37.39379],[65.745631,37.661164],[65.588948,37.305217],[64.746105,37.111818],[64.546479,36.312073],[63.982896,36.007957],[63.193538,35.857166],[62.984662,35.404041],[62.230651,35.270664],[61.210817,35.650072],[61.123071,36.491597],[60.377638,36.527383],[59.234762,37.412988],[58.436154,37.522309],[57.330434,38.029229],[56.619366,38.121394],[56.180375,37.935127],[55.511578,37.964117],[54.800304,37.392421],[53.921598,37.198918],[53.735511,37.906136],[53.880929,38.952093],[53.101028,39.290574],[53.357808,39.975286],[52.693973,40.033629],[52.915251,40.876523],[53.858139,40.631034],[54.736845,40.951015],[54.008311,41.551211],[53.721713,42.123191],[52.91675,41.868117],[52.814689,41.135371],[52.50246,41.783316],[52.944293,42.116034],[54.079418,42.324109],[54.755345,42.043971],[55.455251,41.259859],[55.968191,41.308642],[57.096391,41.32231],[56.932215,41.826026],[57.78653,42.170553],[58.629011,42.751551],[59.976422,42.223082],[60.083341,41.425146],[60.465953,41.220327],[61.547179,41.26637],[61.882714,41.084857],[62.37426,40.053886],[63.518015,39.363257],[64.170223,38.892407],[65.215999,38.402695],[66.54615,37.974685],[66.518607,37.362784]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"East Timor","SOV_A3":"TLS","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"East Timor","ADM0_A3":"TLS","GEOU_DIF":0,"GEOUNIT":"East Timor","GU_A3":"TLS","SU_DIF":0,"SUBUNIT":"East Timor","SU_A3":"TLS","BRK_DIFF":0,"NAME":"Timor-Leste","NAME_LONG":"Timor-Leste","BRK_A3":"TLS","BRK_NAME":"Timor-Leste","BRK_GROUP":null,"ABBREV":"T.L.","POSTAL":"TL","FORMAL_EN":"Democratic Republic of Timor-Leste","FORMAL_FR":null,"NAME_CIAWF":"Timor-Leste","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Timor-Leste","NAME_ALT":"East Timor","MAPCOLOR7":2,"MAPCOLOR8":2,"MAPCOLOR9":4,"MAPCOLOR13":3,"POP_EST":1291358,"POP_RANK":12,"GDP_MD_EST":4975,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"TT","ISO_A2":"TL","ISO_A3":"TLS","ISO_A3_EH":"TLS","ISO_N3":"626","UN_A3":"626","WB_A2":"TP","WB_A3":"TMP","WOE_ID":23424968,"WOE_ID_EH":23424968,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TLS","ADM0_A3_US":"TLS","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":11,"LONG_LEN":11,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[124.968682,-9.393173,127.335928,-8.273345],"geometry":{"type":"Polygon","coordinates":[[[125.08852,-9.393173],[125.07002,-9.089987],[124.968682,-8.89279],[125.086246,-8.656887],[125.947072,-8.432095],[126.644704,-8.398247],[126.957243,-8.273345],[127.335928,-8.397317],[126.967992,-8.668256],[125.925885,-9.106007],[125.08852,-9.393173]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":5,"SOVEREIGNT":"Trinidad and Tobago","SOV_A3":"TTO","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Trinidad and Tobago","ADM0_A3":"TTO","GEOU_DIF":0,"GEOUNIT":"Trinidad and Tobago","GU_A3":"TTO","SU_DIF":0,"SUBUNIT":"Trinidad and Tobago","SU_A3":"TTO","BRK_DIFF":0,"NAME":"Trinidad and Tobago","NAME_LONG":"Trinidad and Tobago","BRK_A3":"TTO","BRK_NAME":"Trinidad and Tobago","BRK_GROUP":null,"ABBREV":"Tr.T.","POSTAL":"TT","FORMAL_EN":"Republic of Trinidad and Tobago","FORMAL_FR":null,"NAME_CIAWF":"Trinidad and Tobago","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Trinidad and Tobago","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":5,"POP_EST":1218208,"POP_RANK":12,"GDP_MD_EST":43570,"POP_YEAR":2017,"LASTCENSUS":2011,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"TD","ISO_A2":"TT","ISO_A3":"TTO","ISO_A3_EH":"TTO","ISO_N3":"780","UN_A3":"780","WB_A2":"TT","WB_A3":"TTO","WOE_ID":23424958,"WOE_ID_EH":23424958,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TTO","ADM0_A3_US":"TTO","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Caribbean","REGION_WB":"Latin America & Caribbean","NAME_LEN":19,"LONG_LEN":19,"ABBREV_LEN":5,"TINY":2,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4.5,"MAX_LABEL":9.5},"bbox":[-61.95,10,-60.895,10.89],"geometry":{"type":"Polygon","coordinates":[[[-61.68,10.76],[-61.105,10.89],[-60.895,10.855],[-60.935,10.11],[-61.77,10],[-61.95,10.09],[-61.66,10.365],[-61.68,10.76]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Tunisia","SOV_A3":"TUN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Tunisia","ADM0_A3":"TUN","GEOU_DIF":0,"GEOUNIT":"Tunisia","GU_A3":"TUN","SU_DIF":0,"SUBUNIT":"Tunisia","SU_A3":"TUN","BRK_DIFF":0,"NAME":"Tunisia","NAME_LONG":"Tunisia","BRK_A3":"TUN","BRK_NAME":"Tunisia","BRK_GROUP":null,"ABBREV":"Tun.","POSTAL":"TN","FORMAL_EN":"Republic of Tunisia","FORMAL_FR":null,"NAME_CIAWF":"Tunisia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Tunisia","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":3,"MAPCOLOR9":3,"MAPCOLOR13":2,"POP_EST":11403800,"POP_RANK":14,"GDP_MD_EST":130800,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"TS","ISO_A2":"TN","ISO_A3":"TUN","ISO_A3_EH":"TUN","ISO_N3":"788","UN_A3":"788","WB_A2":"TN","WB_A3":"TUN","WOE_ID":23424967,"WOE_ID_EH":23424967,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TUN","ADM0_A3_US":"TUN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Northern Africa","REGION_WB":"Middle East & North Africa","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[7.524482,30.307556,11.488787,37.349994],"geometry":{"type":"Polygon","coordinates":[[[9.48214,30.307556],[9.055603,32.102692],[8.439103,32.506285],[8.430473,32.748337],[7.612642,33.344115],[7.524482,34.097376],[8.140981,34.655146],[8.376368,35.479876],[8.217824,36.433177],[8.420964,36.946427],[9.509994,37.349994],[10.210002,37.230002],[10.18065,36.724038],[11.028867,37.092103],[11.100026,36.899996],[10.600005,36.41],[10.593287,35.947444],[10.939519,35.698984],[10.807847,34.833507],[10.149593,34.330773],[10.339659,33.785742],[10.856836,33.76874],[11.108501,33.293343],[11.488787,33.136996],[11.432253,32.368903],[10.94479,32.081815],[10.636901,31.761421],[9.950225,31.37607],[10.056575,30.961831],[9.970017,30.539325],[9.48214,30.307556]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Turkey","SOV_A3":"TUR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Turkey","ADM0_A3":"TUR","GEOU_DIF":0,"GEOUNIT":"Turkey","GU_A3":"TUR","SU_DIF":0,"SUBUNIT":"Turkey","SU_A3":"TUR","BRK_DIFF":0,"NAME":"Turkey","NAME_LONG":"Turkey","BRK_A3":"TUR","BRK_NAME":"Turkey","BRK_GROUP":null,"ABBREV":"Tur.","POSTAL":"TR","FORMAL_EN":"Republic of Turkey","FORMAL_FR":null,"NAME_CIAWF":"Turkey","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Turkey","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":8,"MAPCOLOR13":4,"POP_EST":80845215,"POP_RANK":16,"GDP_MD_EST":1670000,"POP_YEAR":2017,"LASTCENSUS":2000,"GDP_YEAR":2016,"ECONOMY":"4. Emerging region:MIKT","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"TU","ISO_A2":"TR","ISO_A3":"TUR","ISO_A3_EH":"TUR","ISO_N3":"792","UN_A3":"792","WB_A2":"TR","WB_A3":"TUR","WOE_ID":23424969,"WOE_ID_EH":23424969,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TUR","ADM0_A3_US":"TUR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[26.043351,35.821535,44.79399,42.141485],"geometry":{"type":"MultiPolygon","coordinates":[[[[43.582746,41.092143],[43.752658,40.740201],[43.656436,40.253564],[44.400009,40.005],[44.79399,39.713003],[44.109225,39.428136],[44.421403,38.281281],[44.225756,37.971584],[44.77267,37.17045],[44.772677,37.170437],[44.293452,37.001514],[43.942259,37.256228],[42.779126,37.385264],[42.349591,37.229873],[41.212089,37.074352],[40.673259,37.091276],[39.52258,36.716054],[38.699891,36.712927],[38.167727,36.90121],[37.066761,36.623036],[36.739494,36.81752],[36.685389,36.259699],[36.41755,36.040617],[36.149763,35.821535],[35.782085,36.274995],[36.160822,36.650606],[35.550936,36.565443],[34.714553,36.795532],[34.026895,36.21996],[32.509158,36.107564],[31.699595,36.644275],[30.621625,36.677865],[30.391096,36.262981],[29.699976,36.144357],[28.732903,36.676831],[27.641187,36.658822],[27.048768,37.653361],[26.318218,38.208133],[26.8047,38.98576],[26.170785,39.463612],[27.28002,40.420014],[28.819978,40.460011],[29.240004,41.219991],[31.145934,41.087622],[32.347979,41.736264],[33.513283,42.01896],[35.167704,42.040225],[36.913127,41.335358],[38.347665,40.948586],[39.512607,41.102763],[40.373433,41.013673],[41.554084,41.535656],[42.619549,41.583173],[43.582746,41.092143]]],[[[26.117042,41.826905],[27.135739,42.141485],[27.99672,42.007359],[28.115525,41.622886],[28.988443,41.299934],[28.806438,41.054962],[27.619017,40.999823],[27.192377,40.690566],[26.358009,40.151994],[26.043351,40.617754],[26.056942,40.824123],[26.294602,40.936261],[26.604196,41.562115],[26.117042,41.826905]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Taiwan","SOV_A3":"TWN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Taiwan","ADM0_A3":"TWN","GEOU_DIF":0,"GEOUNIT":"Taiwan","GU_A3":"TWN","SU_DIF":0,"SUBUNIT":"Taiwan","SU_A3":"TWN","BRK_DIFF":1,"NAME":"Taiwan","NAME_LONG":"Taiwan","BRK_A3":"B77","BRK_NAME":"Taiwan","BRK_GROUP":null,"ABBREV":"Taiwan","POSTAL":"TW","FORMAL_EN":null,"FORMAL_FR":null,"NAME_CIAWF":"Taiwan","NOTE_ADM0":null,"NOTE_BRK":"Self admin.; Claimed by China","NAME_SORT":"Taiwan","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":5,"MAPCOLOR9":7,"MAPCOLOR13":2,"POP_EST":23508428,"POP_RANK":15,"GDP_MD_EST":1127000,"POP_YEAR":2017,"LASTCENSUS":-99,"GDP_YEAR":2016,"ECONOMY":"2. Developed region:nonG7","INCOME_GRP":"2. High income:nonOECD","WIKIPEDIA":-99,"FIPS_10_":"TW","ISO_A2":"TW","ISO_A3":"TWN","ISO_A3_EH":"TWN","ISO_N3":"158","UN_A3":"-099","WB_A2":"TW","WB_A3":"-99","WOE_ID":23424971,"WOE_ID_EH":23424971,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TWN","ADM0_A3_US":"TWN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[120.106189,21.970571,121.951244,25.295459],"geometry":{"type":"Polygon","coordinates":[[[121.777818,24.394274],[121.175632,22.790857],[120.74708,21.970571],[120.220083,22.814861],[120.106189,23.556263],[120.69468,24.538451],[121.495044,25.295459],[121.951244,24.997596],[121.777818,24.394274]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"United Republic of Tanzania","SOV_A3":"TZA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"United Republic of Tanzania","ADM0_A3":"TZA","GEOU_DIF":0,"GEOUNIT":"Tanzania","GU_A3":"TZA","SU_DIF":0,"SUBUNIT":"Tanzania","SU_A3":"TZA","BRK_DIFF":0,"NAME":"Tanzania","NAME_LONG":"Tanzania","BRK_A3":"TZA","BRK_NAME":"Tanzania","BRK_GROUP":null,"ABBREV":"Tanz.","POSTAL":"TZ","FORMAL_EN":"United Republic of Tanzania","FORMAL_FR":null,"NAME_CIAWF":"Tanzania","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Tanzania","NAME_ALT":null,"MAPCOLOR7":3,"MAPCOLOR8":6,"MAPCOLOR9":2,"MAPCOLOR13":2,"POP_EST":53950935,"POP_RANK":16,"GDP_MD_EST":150600,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"TZ","ISO_A2":"TZ","ISO_A3":"TZA","ISO_A3_EH":"TZA","ISO_N3":"834","UN_A3":"834","WB_A2":"TZ","WB_A3":"TZA","WOE_ID":23424973,"WOE_ID_EH":23424973,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"TZA","ADM0_A3_US":"TZA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[29.339998,-11.720938,40.31659,-0.95],"geometry":{"type":"Polygon","coordinates":[[[29.339998,-4.499983],[29.753512,-4.452389],[30.11632,-4.09012],[30.50554,-3.56858],[30.75224,-3.35931],[30.74301,-3.03431],[30.52766,-2.80762],[30.469674,-2.413855],[30.46967,-2.41383],[30.758309,-2.28725],[30.816135,-1.698914],[30.419105,-1.134659],[30.76986,-1.01455],[31.86617,-1.02736],[33.903711,-0.95],[34.07262,-1.05982],[37.69869,-3.09699],[37.7669,-3.67712],[39.20222,-4.67677],[38.74054,-5.90895],[38.79977,-6.47566],[39.44,-6.84],[39.47,-7.1],[39.19469,-7.7039],[39.25203,-8.00781],[39.18652,-8.48551],[39.53574,-9.11237],[39.9496,-10.0984],[40.316586,-10.317098],[40.31659,-10.3171],[39.521,-10.89688],[38.427557,-11.285202],[37.82764,-11.26879],[37.47129,-11.56876],[36.775151,-11.594537],[36.514082,-11.720938],[35.312398,-11.439146],[34.559989,-11.52002],[34.28,-10.16],[33.940838,-9.693674],[33.73972,-9.41715],[32.759375,-9.230599],[32.191865,-8.930359],[31.556348,-8.762049],[31.157751,-8.594579],[30.74001,-8.340006],[30.740015,-8.340007],[30.199997,-7.079981],[29.620032,-6.520015],[29.419993,-5.939999],[29.519987,-5.419979],[29.339998,-4.499983]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Uganda","SOV_A3":"UGA","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Uganda","ADM0_A3":"UGA","GEOU_DIF":0,"GEOUNIT":"Uganda","GU_A3":"UGA","SU_DIF":0,"SUBUNIT":"Uganda","SU_A3":"UGA","BRK_DIFF":0,"NAME":"Uganda","NAME_LONG":"Uganda","BRK_A3":"UGA","BRK_NAME":"Uganda","BRK_GROUP":null,"ABBREV":"Uga.","POSTAL":"UG","FORMAL_EN":"Republic of Uganda","FORMAL_FR":null,"NAME_CIAWF":"Uganda","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Uganda","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":6,"MAPCOLOR13":4,"POP_EST":39570125,"POP_RANK":15,"GDP_MD_EST":84930,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"UG","ISO_A2":"UG","ISO_A3":"UGA","ISO_A3_EH":"UGA","ISO_N3":"800","UN_A3":"800","WB_A2":"UG","WB_A3":"UGA","WOE_ID":23424974,"WOE_ID_EH":23424974,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"UGA","ADM0_A3_US":"UGA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[29.579466,-1.443322,35.03599,4.249885],"geometry":{"type":"Polygon","coordinates":[[[29.579466,-1.341313],[29.587838,-0.587406],[29.819503,-0.20531],[29.875779,0.59738],[30.086154,1.062313],[30.468508,1.583805],[30.85267,1.849396],[31.174149,2.204465],[30.773347,2.339883],[30.83386,3.509166],[30.833852,3.509172],[31.24556,3.7819],[31.88145,3.55827],[32.68642,3.79232],[33.39,3.79],[34.005,4.249885],[34.47913,3.5556],[34.59607,3.05374],[35.03599,1.90584],[34.6721,1.17694],[34.18,0.515],[33.893569,0.109814],[33.903711,-0.95],[31.86617,-1.02736],[30.76986,-1.01455],[30.419105,-1.134659],[29.821519,-1.443322],[29.579466,-1.341313]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Ukraine","SOV_A3":"UKR","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Ukraine","ADM0_A3":"UKR","GEOU_DIF":0,"GEOUNIT":"Ukraine","GU_A3":"UKR","SU_DIF":0,"SUBUNIT":"Ukraine","SU_A3":"UKR","BRK_DIFF":0,"NAME":"Ukraine","NAME_LONG":"Ukraine","BRK_A3":"UKR","BRK_NAME":"Ukraine","BRK_GROUP":null,"ABBREV":"Ukr.","POSTAL":"UA","FORMAL_EN":"Ukraine","FORMAL_FR":null,"NAME_CIAWF":"Ukraine","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Ukraine","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":1,"MAPCOLOR9":6,"MAPCOLOR13":3,"POP_EST":44033874,"POP_RANK":15,"GDP_MD_EST":352600,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"UP","ISO_A2":"UA","ISO_A3":"UKR","ISO_A3_EH":"UKR","ISO_N3":"804","UN_A3":"804","WB_A2":"UA","WB_A3":"UKR","WOE_ID":23424976,"WOE_ID_EH":23424976,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"UKR","ADM0_A3_US":"UKR","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Europe","REGION_UN":"Europe","SUBREGION":"Eastern Europe","REGION_WB":"Europe & Central Asia","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7},"bbox":[22.085608,45.293308,40.080789,52.335075],"geometry":{"type":"Polygon","coordinates":[[[31.785998,52.101678],[32.159412,52.061267],[32.412058,52.288695],[32.715761,52.238465],[33.7527,52.335075],[34.391731,51.768882],[34.141978,51.566413],[34.224816,51.255993],[35.022183,51.207572],[35.377924,50.773955],[35.356116,50.577197],[36.626168,50.225591],[37.39346,50.383953],[38.010631,49.915662],[38.594988,49.926462],[40.069058,49.601055],[40.080789,49.30743],[39.674664,48.783818],[39.895632,48.232405],[39.738278,47.898937],[38.770585,47.825608],[38.255112,47.5464],[38.223538,47.10219],[37.425137,47.022221],[36.759855,46.6987],[35.823685,46.645964],[34.962342,46.273197],[35.020788,45.651219],[35.510009,45.409993],[36.529998,45.46999],[36.334713,45.113216],[35.239999,44.939996],[33.882511,44.361479],[33.326421,44.564877],[33.546924,45.034771],[32.454174,45.327466],[32.630804,45.519186],[33.588162,45.851569],[33.298567,46.080598],[31.74414,46.333348],[31.675307,46.706245],[30.748749,46.5831],[30.377609,46.03241],[29.603289,45.293308],[29.149725,45.464925],[28.679779,45.304031],[28.233554,45.488283],[28.485269,45.596907],[28.659987,45.939987],[28.933717,46.25883],[28.862972,46.437889],[29.072107,46.517678],[29.170654,46.379262],[29.759972,46.349988],[30.024659,46.423937],[29.83821,46.525326],[29.908852,46.674361],[29.559674,46.928583],[29.415135,47.346645],[29.050868,47.510227],[29.122698,47.849095],[28.670891,48.118149],[28.259547,48.155562],[27.522537,48.467119],[26.857824,48.368211],[26.619337,48.220726],[26.19745,48.220881],[25.945941,47.987149],[25.207743,47.891056],[24.866317,47.737526],[24.402056,47.981878],[23.760958,47.985598],[23.142236,48.096341],[22.710531,47.882194],[22.64082,48.15024],[22.085608,48.422264],[22.280842,48.825392],[22.558138,49.085738],[22.776419,49.027395],[22.51845,49.476774],[23.426508,50.308506],[23.922757,50.424881],[24.029986,50.705407],[23.527071,51.578454],[24.005078,51.617444],[24.553106,51.888461],[25.327788,51.910656],[26.337959,51.832289],[27.454066,51.592303],[28.241615,51.572227],[28.617613,51.427714],[28.992835,51.602044],[29.254938,51.368234],[30.157364,51.416138],[30.555117,51.319503],[30.619454,51.822806],[30.927549,52.042353],[31.785998,52.101678]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Uruguay","SOV_A3":"URY","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Uruguay","ADM0_A3":"URY","GEOU_DIF":0,"GEOUNIT":"Uruguay","GU_A3":"URY","SU_DIF":0,"SUBUNIT":"Uruguay","SU_A3":"URY","BRK_DIFF":0,"NAME":"Uruguay","NAME_LONG":"Uruguay","BRK_A3":"URY","BRK_NAME":"Uruguay","BRK_GROUP":null,"ABBREV":"Ury.","POSTAL":"UY","FORMAL_EN":"Oriental Republic of Uruguay","FORMAL_FR":null,"NAME_CIAWF":"Uruguay","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Uruguay","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":2,"MAPCOLOR9":2,"MAPCOLOR13":10,"POP_EST":3360148,"POP_RANK":12,"GDP_MD_EST":73250,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"UY","ISO_A2":"UY","ISO_A3":"URY","ISO_A3_EH":"URY","ISO_N3":"858","UN_A3":"858","WB_A2":"UY","WB_A3":"URY","WOE_ID":23424979,"WOE_ID_EH":23424979,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"URY","ADM0_A3_US":"URY","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[-58.427074,-34.952647,-53.209589,-30.109686],"geometry":{"type":"Polygon","coordinates":[[[-58.427074,-33.909454],[-58.349611,-33.263189],[-58.132648,-33.040567],[-58.14244,-32.044504],[-57.874937,-31.016556],[-57.625133,-30.216295],[-56.976026,-30.109686],[-55.973245,-30.883076],[-55.60151,-30.853879],[-54.572452,-31.494511],[-53.787952,-32.047243],[-53.209589,-32.727666],[-53.650544,-33.202004],[-53.373662,-33.768378],[-53.806426,-34.396815],[-54.935866,-34.952647],[-55.67409,-34.752659],[-56.215297,-34.859836],[-57.139685,-34.430456],[-57.817861,-34.462547],[-58.427074,-33.909454]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"United States of America","SOV_A3":"US1","ADM0_DIF":1,"LEVEL":2,"TYPE":"Country","ADMIN":"United States of America","ADM0_A3":"USA","GEOU_DIF":0,"GEOUNIT":"United States of America","GU_A3":"USA","SU_DIF":0,"SUBUNIT":"United States","SU_A3":"USA","BRK_DIFF":0,"NAME":"United States of America","NAME_LONG":"United States","BRK_A3":"USA","BRK_NAME":"United States","BRK_GROUP":null,"ABBREV":"U.S.A.","POSTAL":"US","FORMAL_EN":"United States of America","FORMAL_FR":null,"NAME_CIAWF":"United States","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"United States of America","NAME_ALT":null,"MAPCOLOR7":4,"MAPCOLOR8":5,"MAPCOLOR9":1,"MAPCOLOR13":1,"POP_EST":326625791,"POP_RANK":17,"GDP_MD_EST":18560000,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"1. Developed region:G7","INCOME_GRP":"1. High income:OECD","WIKIPEDIA":0,"FIPS_10_":"US","ISO_A2":"US","ISO_A3":"USA","ISO_A3_EH":"USA","ISO_N3":"840","UN_A3":"840","WB_A2":"US","WB_A3":"USA","WOE_ID":23424977,"WOE_ID_EH":23424977,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"USA","ADM0_A3_US":"USA","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"North America","REGION_UN":"Americas","SUBREGION":"Northern America","REGION_WB":"North America","NAME_LEN":24,"LONG_LEN":13,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":5.7},"bbox":[-171.791111,18.91619,-66.96466,71.357764],"geometry":{"type":"MultiPolygon","coordinates":[[[[-122.84,49],[-120,49],[-117.03121,49],[-116.04818,49],[-113,49],[-110.05,49],[-107.05,49],[-104.04826,48.99986],[-100.65,49],[-97.22872,49.0007],[-95.15907,49],[-95.15609,49.38425],[-94.81758,49.38905],[-94.64,48.84],[-94.32914,48.67074],[-93.63087,48.60926],[-92.61,48.45],[-91.64,48.14],[-90.83,48.27],[-89.6,48.01],[-89.272917,48.019808],[-88.378114,48.302918],[-87.439793,47.94],[-86.461991,47.553338],[-85.652363,47.220219],[-84.87608,46.900083],[-84.779238,46.637102],[-84.543749,46.538684],[-84.6049,46.4396],[-84.3367,46.40877],[-84.14212,46.512226],[-84.091851,46.275419],[-83.890765,46.116927],[-83.616131,46.116927],[-83.469551,45.994686],[-83.592851,45.816894],[-82.550925,45.347517],[-82.337763,44.44],[-82.137642,43.571088],[-82.43,42.98],[-82.9,42.43],[-83.12,42.08],[-83.142,41.975681],[-83.02981,41.832796],[-82.690089,41.675105],[-82.439278,41.675105],[-81.277747,42.209026],[-80.247448,42.3662],[-78.939362,42.863611],[-78.92,42.965],[-79.01,43.27],[-79.171674,43.466339],[-78.72028,43.625089],[-77.737885,43.629056],[-76.820034,43.628784],[-76.5,44.018459],[-76.375,44.09631],[-75.31821,44.81645],[-74.867,45.00048],[-73.34783,45.00738],[-71.50506,45.0082],[-71.405,45.255],[-71.08482,45.30524],[-70.66,45.46],[-70.305,45.915],[-69.99997,46.69307],[-69.237216,47.447781],[-68.905,47.185],[-68.23444,47.35486],[-67.79046,47.06636],[-67.79134,45.70281],[-67.13741,45.13753],[-66.96466,44.8097],[-68.03252,44.3252],[-69.06,43.98],[-70.11617,43.68405],[-70.645476,43.090238],[-70.81489,42.8653],[-70.825,42.335],[-70.495,41.805],[-70.08,41.78],[-70.185,42.145],[-69.88497,41.92283],[-69.96503,41.63717],[-70.64,41.475],[-71.12039,41.49445],[-71.86,41.32],[-72.295,41.27],[-72.87643,41.22065],[-73.71,40.931102],[-72.24126,41.11948],[-71.945,40.93],[-73.345,40.63],[-73.982,40.628],[-73.952325,40.75075],[-74.25671,40.47351],[-73.96244,40.42763],[-74.17838,39.70926],[-74.90604,38.93954],[-74.98041,39.1964],[-75.20002,39.24845],[-75.52805,39.4985],[-75.32,38.96],[-75.071835,38.782032],[-75.05673,38.40412],[-75.37747,38.01551],[-75.94023,37.21689],[-76.03127,37.2566],[-75.72205,37.93705],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.717615],[-76.32933,38.08326],[-76.989998,38.239992],[-76.30162,37.917945],[-76.25874,36.9664],[-75.9718,36.89726],[-75.86804,36.55125],[-75.72749,35.55074],[-76.36318,34.80854],[-77.397635,34.51201],[-78.05496,33.92547],[-78.55435,33.86133],[-79.06067,33.49395],[-79.20357,33.15839],[-80.301325,32.509355],[-80.86498,32.0333],[-81.33629,31.44049],[-81.49042,30.72999],[-81.31371,30.03552],[-80.98,29.18],[-80.535585,28.47213],[-80.53,28.04],[-80.056539,26.88],[-80.088015,26.205765],[-80.13156,25.816775],[-80.38103,25.20616],[-80.68,25.08],[-81.17213,25.20126],[-81.33,25.64],[-81.71,25.87],[-82.24,26.73],[-82.70515,27.49504],[-82.85526,27.88624],[-82.65,28.55],[-82.93,29.1],[-83.70959,29.93656],[-84.1,30.09],[-85.10882,29.63615],[-85.28784,29.68612],[-85.7731,30.15261],[-86.4,30.4],[-87.53036,30.27433],[-88.41782,30.3849],[-89.18049,30.31598],[-89.593831,30.159994],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.40823,29.15961],[-89.77928,29.30714],[-90.15463,29.11743],[-90.880225,29.148535],[-91.626785,29.677],[-92.49906,29.5523],[-93.22637,29.78375],[-93.84842,29.71363],[-94.69,29.48],[-95.60026,28.73863],[-96.59404,28.30748],[-97.14,27.83],[-97.37,27.38],[-97.38,26.69],[-97.33,26.21],[-97.14,25.87],[-97.53,25.84],[-98.24,26.06],[-99.02,26.37],[-99.3,26.84],[-99.52,27.54],[-100.11,28.11],[-100.45584,28.69612],[-100.9576,29.38071],[-101.6624,29.7793],[-102.48,29.76],[-103.11,28.97],[-103.94,29.27],[-104.45697,29.57196],[-104.70575,30.12173],[-105.03737,30.64402],[-105.63159,31.08383],[-106.1429,31.39995],[-106.50759,31.75452],[-108.24,31.754854],[-108.24194,31.34222],[-109.035,31.34194],[-111.02361,31.33472],[-113.30498,32.03914],[-114.815,32.52528],[-114.72139,32.72083],[-115.99135,32.61239],[-117.12776,32.53534],[-117.295938,33.046225],[-117.944,33.621236],[-118.410602,33.740909],[-118.519895,34.027782],[-119.081,34.078],[-119.438841,34.348477],[-120.36778,34.44711],[-120.62286,34.60855],[-120.74433,35.15686],[-121.71457,36.16153],[-122.54747,37.55176],[-122.51201,37.78339],[-122.95319,38.11371],[-123.7272,38.95166],[-123.86517,39.76699],[-124.39807,40.3132],[-124.17886,41.14202],[-124.2137,41.99964],[-124.53284,42.76599],[-124.14214,43.70838],[-124.020535,44.615895],[-123.89893,45.52341],[-124.079635,46.86475],[-124.39567,47.72017],[-124.68721,48.184433],[-124.566101,48.379715],[-123.12,48.04],[-122.58736,47.096],[-122.34,47.36],[-122.5,48.18],[-122.84,49]]],[[[-140.985988,69.711998],[-140.986,69.712],[-140.9925,66.00003],[-140.99778,60.30639],[-140.013,60.27682],[-139.039,60],[-138.34089,59.56211],[-137.4525,58.905],[-136.47972,59.46389],[-135.47583,59.78778],[-134.945,59.27056],[-134.27111,58.86111],[-133.35556,58.41028],[-132.73042,57.69289],[-131.70781,56.55212],[-130.00778,55.91583],[-129.98,55.285],[-130.53611,54.80278],[-130.536109,54.802754],[-130.53611,54.802753],[-131.085818,55.178906],[-131.967211,55.497776],[-132.250011,56.369996],[-133.539181,57.178887],[-134.078063,58.123068],[-135.038211,58.187715],[-136.628062,58.212209],[-137.800006,58.499995],[-139.867787,59.537762],[-140.825274,59.727517],[-142.574444,60.084447],[-143.958881,59.99918],[-145.925557,60.45861],[-147.114374,60.884656],[-148.224306,60.672989],[-148.018066,59.978329],[-148.570823,59.914173],[-149.727858,59.705658],[-150.608243,59.368211],[-151.716393,59.155821],[-151.859433,59.744984],[-151.409719,60.725803],[-150.346941,61.033588],[-150.621111,61.284425],[-151.895839,60.727198],[-152.57833,60.061657],[-154.019172,59.350279],[-153.287511,58.864728],[-154.232492,58.146374],[-155.307491,57.727795],[-156.308335,57.422774],[-156.556097,56.979985],[-158.117217,56.463608],[-158.433321,55.994154],[-159.603327,55.566686],[-160.28972,55.643581],[-161.223048,55.364735],[-162.237766,55.024187],[-163.069447,54.689737],[-164.785569,54.404173],[-164.942226,54.572225],[-163.84834,55.039431],[-162.870001,55.348043],[-161.804175,55.894986],[-160.563605,56.008055],[-160.07056,56.418055],[-158.684443,57.016675],[-158.461097,57.216921],[-157.72277,57.570001],[-157.550274,58.328326],[-157.041675,58.918885],[-158.194731,58.615802],[-158.517218,58.787781],[-159.058606,58.424186],[-159.711667,58.93139],[-159.981289,58.572549],[-160.355271,59.071123],[-161.355003,58.670838],[-161.968894,58.671665],[-162.054987,59.266925],[-161.874171,59.633621],[-162.518059,59.989724],[-163.818341,59.798056],[-164.662218,60.267484],[-165.346388,60.507496],[-165.350832,61.073895],[-166.121379,61.500019],[-165.734452,62.074997],[-164.919179,62.633076],[-164.562508,63.146378],[-163.753332,63.219449],[-163.067224,63.059459],[-162.260555,63.541936],[-161.53445,63.455817],[-160.772507,63.766108],[-160.958335,64.222799],[-161.518068,64.402788],[-160.777778,64.788604],[-161.391926,64.777235],[-162.45305,64.559445],[-162.757786,64.338605],[-163.546394,64.55916],[-164.96083,64.446945],[-166.425288,64.686672],[-166.845004,65.088896],[-168.11056,65.669997],[-166.705271,66.088318],[-164.47471,66.57666],[-163.652512,66.57666],[-163.788602,66.077207],[-161.677774,66.11612],[-162.489715,66.735565],[-163.719717,67.116395],[-164.430991,67.616338],[-165.390287,68.042772],[-166.764441,68.358877],[-166.204707,68.883031],[-164.430811,68.915535],[-163.168614,69.371115],[-162.930566,69.858062],[-161.908897,70.33333],[-160.934797,70.44769],[-159.039176,70.891642],[-158.119723,70.824721],[-156.580825,71.357764],[-155.06779,71.147776],[-154.344165,70.696409],[-153.900006,70.889989],[-152.210006,70.829992],[-152.270002,70.600006],[-150.739992,70.430017],[-149.720003,70.53001],[-147.613362,70.214035],[-145.68999,70.12001],[-144.920011,69.989992],[-143.589446,70.152514],[-142.07251,69.851938],[-140.985988,69.711998],[-140.985988,69.711998]]],[[[-155.54211,19.08348],[-155.68817,18.91619],[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,19.70294],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.99302],[-155.06226,19.8591],[-154.80741,19.50871],[-154.83147,19.45328],[-155.22217,19.23972],[-155.54211,19.08348]]],[[[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.8643],[-156.71055,20.92676],[-156.61258,21.01249],[-156.25711,20.91745],[-155.99566,20.76404],[-156.07926,20.64397]]],[[[-156.75824,21.17684],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.21958],[-156.75824,21.17684]]],[[[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.57912],[-158.0252,21.71696],[-157.94161,21.65272],[-157.65283,21.32217]]],[[[-159.34512,21.982],[-159.46372,21.88299],[-159.80051,22.06533],[-159.74877,22.1382],[-159.5962,22.23618],[-159.36569,22.21494],[-159.34512,21.982]]],[[[-153.006314,57.115842],[-154.00509,56.734677],[-154.516403,56.992749],[-154.670993,57.461196],[-153.76278,57.816575],[-153.228729,57.968968],[-152.564791,57.901427],[-152.141147,57.591059],[-153.006314,57.115842]]],[[[-165.579164,59.909987],[-166.19277,59.754441],[-166.848337,59.941406],[-167.455277,60.213069],[-166.467792,60.38417],[-165.67443,60.293607],[-165.579164,59.909987]]],[[[-171.731657,63.782515],[-171.114434,63.592191],[-170.491112,63.694975],[-169.682505,63.431116],[-168.689439,63.297506],[-168.771941,63.188598],[-169.52944,62.976931],[-170.290556,63.194438],[-170.671386,63.375822],[-171.553063,63.317789],[-171.791111,63.405846],[-171.731657,63.782515]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Uzbekistan","SOV_A3":"UZB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Uzbekistan","ADM0_A3":"UZB","GEOU_DIF":0,"GEOUNIT":"Uzbekistan","GU_A3":"UZB","SU_DIF":0,"SUBUNIT":"Uzbekistan","SU_A3":"UZB","BRK_DIFF":0,"NAME":"Uzbekistan","NAME_LONG":"Uzbekistan","BRK_A3":"UZB","BRK_NAME":"Uzbekistan","BRK_GROUP":null,"ABBREV":"Uzb.","POSTAL":"UZ","FORMAL_EN":"Republic of Uzbekistan","FORMAL_FR":null,"NAME_CIAWF":"Uzbekistan","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Uzbekistan","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":3,"MAPCOLOR9":5,"MAPCOLOR13":4,"POP_EST":29748859,"POP_RANK":15,"GDP_MD_EST":202300,"POP_YEAR":2017,"LASTCENSUS":1989,"GDP_YEAR":2016,"ECONOMY":"6. Developing region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"UZ","ISO_A2":"UZ","ISO_A3":"UZB","ISO_A3_EH":"UZB","ISO_N3":"860","UN_A3":"860","WB_A2":"UZ","WB_A3":"UZB","WOE_ID":23424980,"WOE_ID_EH":23424980,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"UZB","ADM0_A3_US":"UZB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Central Asia","REGION_WB":"Europe & Central Asia","NAME_LEN":10,"LONG_LEN":10,"ABBREV_LEN":4,"TINY":5,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[55.928917,37.144994,73.055417,45.586804],"geometry":{"type":"Polygon","coordinates":[[[67.83,37.144994],[67.075782,37.356144],[66.518607,37.362784],[66.54615,37.974685],[65.215999,38.402695],[64.170223,38.892407],[63.518015,39.363257],[62.37426,40.053886],[61.882714,41.084857],[61.547179,41.26637],[60.465953,41.220327],[60.083341,41.425146],[59.976422,42.223082],[58.629011,42.751551],[57.78653,42.170553],[56.932215,41.826026],[57.096391,41.32231],[55.968191,41.308642],[55.928917,44.995858],[58.503127,45.586804],[58.689989,45.500014],[60.239972,44.784037],[61.05832,44.405817],[62.0133,43.504477],[63.185787,43.650075],[64.900824,43.728081],[66.098012,42.99766],[66.023392,41.994646],[66.510649,41.987644],[66.714047,41.168444],[67.985856,41.135991],[68.259896,40.662325],[68.632483,40.668681],[69.070027,41.384244],[70.388965,42.081308],[70.962315,42.266154],[71.259248,42.167711],[70.420022,41.519998],[71.157859,41.143587],[71.870115,41.3929],[73.055417,40.866033],[71.774875,40.145844],[71.014198,40.244366],[70.601407,40.218527],[70.45816,40.496495],[70.666622,40.960213],[69.329495,40.727824],[69.011633,40.086158],[68.536416,39.533453],[67.701429,39.580478],[67.44222,39.140144],[68.176025,38.901553],[68.392033,38.157025],[67.83,37.144994]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Venezuela","SOV_A3":"VEN","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Venezuela","ADM0_A3":"VEN","GEOU_DIF":0,"GEOUNIT":"Venezuela","GU_A3":"VEN","SU_DIF":0,"SUBUNIT":"Venezuela","SU_A3":"VEN","BRK_DIFF":0,"NAME":"Venezuela","NAME_LONG":"Venezuela","BRK_A3":"VEN","BRK_NAME":"Venezuela","BRK_GROUP":null,"ABBREV":"Ven.","POSTAL":"VE","FORMAL_EN":"Bolivarian Republic of Venezuela","FORMAL_FR":"Rep\xfablica Bolivariana de Venezuela","NAME_CIAWF":"Venezuela","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Venezuela, RB","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":3,"MAPCOLOR9":1,"MAPCOLOR13":4,"POP_EST":31304016,"POP_RANK":15,"GDP_MD_EST":468600,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"VE","ISO_A2":"VE","ISO_A3":"VEN","ISO_A3_EH":"VEN","ISO_N3":"862","UN_A3":"862","WB_A2":"VE","WB_A3":"VEN","WOE_ID":23424982,"WOE_ID_EH":23424982,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"VEN","ADM0_A3_US":"VEN","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"South America","REGION_UN":"Americas","SUBREGION":"South America","REGION_WB":"Latin America & Caribbean","NAME_LEN":9,"LONG_LEN":9,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":7.5},"bbox":[-73.304952,0.724452,-59.758285,12.162307],"geometry":{"type":"Polygon","coordinates":[[[-60.733574,5.200277],[-60.601179,4.918098],[-60.966893,4.536468],[-62.08543,4.162124],[-62.804533,4.006965],[-63.093198,3.770571],[-63.888343,4.02053],[-64.628659,4.148481],[-64.816064,4.056445],[-64.368494,3.79721],[-64.408828,3.126786],[-64.269999,2.497006],[-63.422867,2.411068],[-63.368788,2.2009],[-64.083085,1.916369],[-64.199306,1.492855],[-64.611012,1.328731],[-65.354713,1.095282],[-65.548267,0.789254],[-66.325765,0.724452],[-66.876326,1.253361],[-67.181294,2.250638],[-67.447092,2.600281],[-67.809938,2.820655],[-67.303173,3.318454],[-67.337564,3.542342],[-67.621836,3.839482],[-67.823012,4.503937],[-67.744697,5.221129],[-67.521532,5.55687],[-67.34144,6.095468],[-67.695087,6.267318],[-68.265052,6.153268],[-68.985319,6.206805],[-69.38948,6.099861],[-70.093313,6.960376],[-70.674234,7.087785],[-71.960176,6.991615],[-72.198352,7.340431],[-72.444487,7.423785],[-72.479679,7.632506],[-72.360901,8.002638],[-72.439862,8.405275],[-72.660495,8.625288],[-72.78873,9.085027],[-73.304952,9.152],[-73.027604,9.73677],[-72.905286,10.450344],[-72.614658,10.821975],[-72.227575,11.108702],[-71.973922,11.608672],[-71.331584,11.776284],[-71.360006,11.539994],[-71.94705,11.423282],[-71.620868,10.96946],[-71.633064,10.446494],[-72.074174,9.865651],[-71.695644,9.072263],[-71.264559,9.137195],[-71.039999,9.859993],[-71.350084,10.211935],[-71.400623,10.968969],[-70.155299,11.375482],[-70.293843,11.846822],[-69.943245,12.162307],[-69.5843,11.459611],[-68.882999,11.443385],[-68.233271,10.885744],[-68.194127,10.554653],[-67.296249,10.545868],[-66.227864,10.648627],[-65.655238,10.200799],[-64.890452,10.077215],[-64.329479,10.389599],[-64.318007,10.641418],[-63.079322,10.701724],[-61.880946,10.715625],[-62.730119,10.420269],[-62.388512,9.948204],[-61.588767,9.873067],[-60.830597,9.38134],[-60.671252,8.580174],[-60.150096,8.602757],[-59.758285,8.367035],[-60.550588,7.779603],[-60.637973,7.415],[-60.295668,7.043911],[-60.543999,6.856584],[-61.159336,6.696077],[-61.139415,6.234297],[-61.410303,5.959068],[-60.733574,5.200277]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"Vietnam","SOV_A3":"VNM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Vietnam","ADM0_A3":"VNM","GEOU_DIF":0,"GEOUNIT":"Vietnam","GU_A3":"VNM","SU_DIF":0,"SUBUNIT":"Vietnam","SU_A3":"VNM","BRK_DIFF":0,"NAME":"Vietnam","NAME_LONG":"Vietnam","BRK_A3":"VNM","BRK_NAME":"Vietnam","BRK_GROUP":null,"ABBREV":"Viet.","POSTAL":"VN","FORMAL_EN":"Socialist Republic of Vietnam","FORMAL_FR":null,"NAME_CIAWF":"Vietnam","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Vietnam","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":6,"MAPCOLOR9":5,"MAPCOLOR13":4,"POP_EST":96160163,"POP_RANK":16,"GDP_MD_EST":594900,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"VM","ISO_A2":"VN","ISO_A3":"VNM","ISO_A3_EH":"VNM","ISO_N3":"704","UN_A3":"704","WB_A2":"VN","WB_A3":"VNM","WOE_ID":23424984,"WOE_ID_EH":23424984,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"VNM","ADM0_A3_US":"VNM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"South-Eastern Asia","REGION_WB":"East Asia & Pacific","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":5,"TINY":2,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":2,"MAX_LABEL":7},"bbox":[102.170436,8.59976,109.33527,23.352063],"geometry":{"type":"Polygon","coordinates":[[[102.170436,22.464753],[102.706992,22.708795],[103.504515,22.703757],[104.476858,22.81915],[105.329209,23.352063],[105.811247,22.976892],[106.725403,22.794268],[106.567273,22.218205],[107.04342,21.811899],[108.05018,21.55238],[106.715068,20.696851],[105.881682,19.75205],[105.662006,19.058165],[106.426817,18.004121],[107.361954,16.697457],[108.269495,16.079742],[108.877107,15.276691],[109.33527,13.426028],[109.200136,11.666859],[108.36613,11.008321],[107.220929,10.364484],[106.405113,9.53084],[105.158264,8.59976],[104.795185,9.241038],[105.076202,9.918491],[104.334335,10.486544],[105.199915,10.88931],[106.24967,10.961812],[105.810524,11.567615],[107.491403,12.337206],[107.614548,13.535531],[107.382727,14.202441],[107.564525,15.202173],[107.312706,15.908538],[106.556008,16.604284],[105.925762,17.485315],[105.094598,18.666975],[103.896532,19.265181],[104.183388,19.624668],[104.822574,19.886642],[104.435,20.758733],[103.203861,20.766562],[102.754896,21.675137],[102.170436,22.464753]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":4,"SOVEREIGNT":"Vanuatu","SOV_A3":"VUT","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Vanuatu","ADM0_A3":"VUT","GEOU_DIF":0,"GEOUNIT":"Vanuatu","GU_A3":"VUT","SU_DIF":0,"SUBUNIT":"Vanuatu","SU_A3":"VUT","BRK_DIFF":0,"NAME":"Vanuatu","NAME_LONG":"Vanuatu","BRK_A3":"VUT","BRK_NAME":"Vanuatu","BRK_GROUP":null,"ABBREV":"Van.","POSTAL":"VU","FORMAL_EN":"Republic of Vanuatu","FORMAL_FR":null,"NAME_CIAWF":"Vanuatu","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Vanuatu","NAME_ALT":null,"MAPCOLOR7":6,"MAPCOLOR8":3,"MAPCOLOR9":7,"MAPCOLOR13":3,"POP_EST":282814,"POP_RANK":10,"GDP_MD_EST":723,"POP_YEAR":2017,"LASTCENSUS":2009,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"NH","ISO_A2":"VU","ISO_A3":"VUT","ISO_A3_EH":"VUT","ISO_N3":"548","UN_A3":"548","WB_A2":"VU","WB_A3":"VUT","WOE_ID":23424907,"WOE_ID_EH":23424907,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"VUT","ADM0_A3_US":"VUT","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Oceania","REGION_UN":"Oceania","SUBREGION":"Melanesia","REGION_WB":"East Asia & Pacific","NAME_LEN":7,"LONG_LEN":7,"ABBREV_LEN":4,"TINY":2,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":4,"MAX_LABEL":9},"bbox":[166.629137,-16.59785,167.844877,-14.626497],"geometry":{"type":"MultiPolygon","coordinates":[[[[167.844877,-16.466333],[167.515181,-16.59785],[167.180008,-16.159995],[167.216801,-15.891846],[167.844877,-16.466333]]],[[[167.107712,-14.93392],[167.270028,-15.740021],[167.001207,-15.614602],[166.793158,-15.668811],[166.649859,-15.392704],[166.629137,-14.626497],[167.107712,-14.93392]]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Yemen","SOV_A3":"YEM","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Yemen","ADM0_A3":"YEM","GEOU_DIF":0,"GEOUNIT":"Yemen","GU_A3":"YEM","SU_DIF":0,"SUBUNIT":"Yemen","SU_A3":"YEM","BRK_DIFF":0,"NAME":"Yemen","NAME_LONG":"Yemen","BRK_A3":"YEM","BRK_NAME":"Yemen","BRK_GROUP":null,"ABBREV":"Yem.","POSTAL":"YE","FORMAL_EN":"Republic of Yemen","FORMAL_FR":null,"NAME_CIAWF":"Yemen","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Yemen, Rep.","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":3,"MAPCOLOR9":3,"MAPCOLOR13":11,"POP_EST":28036829,"POP_RANK":15,"GDP_MD_EST":73450,"POP_YEAR":2017,"LASTCENSUS":2004,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"YM","ISO_A2":"YE","ISO_A3":"YEM","ISO_A3_EH":"YEM","ISO_N3":"887","UN_A3":"887","WB_A2":"RY","WB_A3":"YEM","WOE_ID":23425002,"WOE_ID_EH":23425002,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"YEM","ADM0_A3_US":"YEM","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Asia","REGION_UN":"Asia","SUBREGION":"Western Asia","REGION_WB":"Middle East & North Africa","NAME_LEN":5,"LONG_LEN":5,"ABBREV_LEN":4,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[42.604873,12.58595,53.108573,19.000003],"geometry":{"type":"Polygon","coordinates":[[[52.00001,19.000003],[52.782184,17.349742],[53.108573,16.651051],[52.385206,16.382411],[52.191729,15.938433],[52.168165,15.59742],[51.172515,15.17525],[49.574576,14.708767],[48.679231,14.003202],[48.238947,13.94809],[47.938914,14.007233],[47.354454,13.59222],[46.717076,13.399699],[45.877593,13.347764],[45.62505,13.290946],[45.406459,13.026905],[45.144356,12.953938],[44.989533,12.699587],[44.494576,12.721653],[44.175113,12.58595],[43.482959,12.6368],[43.222871,13.22095],[43.251448,13.767584],[43.087944,14.06263],[42.892245,14.802249],[42.604873,15.213335],[42.805015,15.261963],[42.702438,15.718886],[42.823671,15.911742],[42.779332,16.347891],[43.218375,16.66689],[43.115798,17.08844],[43.380794,17.579987],[43.791519,17.319977],[44.062613,17.410359],[45.216651,17.433329],[45.399999,17.333335],[46.366659,17.233315],[46.749994,17.283338],[47.000005,16.949999],[47.466695,17.116682],[48.183344,18.166669],[49.116672,18.616668],[52.00001,19.000003]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":2,"SOVEREIGNT":"South Africa","SOV_A3":"ZAF","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"South Africa","ADM0_A3":"ZAF","GEOU_DIF":0,"GEOUNIT":"South Africa","GU_A3":"ZAF","SU_DIF":0,"SUBUNIT":"South Africa","SU_A3":"ZAF","BRK_DIFF":0,"NAME":"South Africa","NAME_LONG":"South Africa","BRK_A3":"ZAF","BRK_NAME":"South Africa","BRK_GROUP":null,"ABBREV":"S.Af.","POSTAL":"ZA","FORMAL_EN":"Republic of South Africa","FORMAL_FR":null,"NAME_CIAWF":"South Africa","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"South Africa","NAME_ALT":null,"MAPCOLOR7":2,"MAPCOLOR8":3,"MAPCOLOR9":4,"MAPCOLOR13":2,"POP_EST":54841552,"POP_RANK":16,"GDP_MD_EST":739100,"POP_YEAR":2017,"LASTCENSUS":2001,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"3. Upper middle income","WIKIPEDIA":-99,"FIPS_10_":"SF","ISO_A2":"ZA","ISO_A3":"ZAF","ISO_A3_EH":"ZAF","ISO_N3":"710","UN_A3":"710","WB_A2":"ZA","WB_A3":"ZAF","WOE_ID":23424942,"WOE_ID_EH":23424942,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ZAF","ADM0_A3_US":"ZAF","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Southern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":12,"LONG_LEN":12,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":1.7,"MAX_LABEL":6.7},"bbox":[16.344977,-34.819166,32.83012,-22.091313],"geometry":{"type":"Polygon","coordinates":[[[19.895768,-24.76779],[20.165726,-24.917962],[20.758609,-25.868136],[20.66647,-26.477453],[20.889609,-26.828543],[21.605896,-26.726534],[22.105969,-26.280256],[22.579532,-25.979448],[22.824271,-25.500459],[23.312097,-25.26869],[23.73357,-25.390129],[24.211267,-25.670216],[25.025171,-25.71967],[25.664666,-25.486816],[25.765849,-25.174845],[25.941652,-24.696373],[26.485753,-24.616327],[26.786407,-24.240691],[27.11941,-23.574323],[28.017236,-22.827754],[29.432188,-22.091313],[29.839037,-22.102216],[30.322883,-22.271612],[30.659865,-22.151567],[31.191409,-22.25151],[31.670398,-23.658969],[31.930589,-24.369417],[31.752408,-25.484284],[31.837778,-25.843332],[31.333158,-25.660191],[31.04408,-25.731452],[30.949667,-26.022649],[30.676609,-26.398078],[30.685962,-26.743845],[31.282773,-27.285879],[31.86806,-27.177927],[32.071665,-26.73382],[32.83012,-26.742192],[32.580265,-27.470158],[32.462133,-28.301011],[32.203389,-28.752405],[31.521001,-29.257387],[31.325561,-29.401978],[30.901763,-29.909957],[30.622813,-30.423776],[30.055716,-31.140269],[28.925553,-32.172041],[28.219756,-32.771953],[27.464608,-33.226964],[26.419452,-33.61495],[25.909664,-33.66704],[25.780628,-33.944646],[25.172862,-33.796851],[24.677853,-33.987176],[23.594043,-33.794474],[22.988189,-33.916431],[22.574157,-33.864083],[21.542799,-34.258839],[20.689053,-34.417175],[20.071261,-34.795137],[19.616405,-34.819166],[19.193278,-34.462599],[18.855315,-34.444306],[18.424643,-33.997873],[18.377411,-34.136521],[18.244499,-33.867752],[18.25008,-33.281431],[17.92519,-32.611291],[18.24791,-32.429131],[18.221762,-31.661633],[17.566918,-30.725721],[17.064416,-29.878641],[17.062918,-29.875954],[16.344977,-28.576705],[16.824017,-28.082162],[17.218929,-28.355943],[17.387497,-28.783514],[17.836152,-28.856378],[18.464899,-29.045462],[19.002127,-28.972443],[19.894734,-28.461105],[19.895768,-24.76779]],[[28.978263,-28.955597],[28.5417,-28.647502],[28.074338,-28.851469],[27.532511,-29.242711],[26.999262,-29.875954],[27.749397,-30.645106],[28.107205,-30.545732],[28.291069,-30.226217],[28.8484,-30.070051],[29.018415,-29.743766],[29.325166,-29.257387],[28.978263,-28.955597]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Zambia","SOV_A3":"ZMB","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Zambia","ADM0_A3":"ZMB","GEOU_DIF":0,"GEOUNIT":"Zambia","GU_A3":"ZMB","SU_DIF":0,"SUBUNIT":"Zambia","SU_A3":"ZMB","BRK_DIFF":0,"NAME":"Zambia","NAME_LONG":"Zambia","BRK_A3":"ZMB","BRK_NAME":"Zambia","BRK_GROUP":null,"ABBREV":"Zambia","POSTAL":"ZM","FORMAL_EN":"Republic of Zambia","FORMAL_FR":null,"NAME_CIAWF":"Zambia","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Zambia","NAME_ALT":null,"MAPCOLOR7":5,"MAPCOLOR8":8,"MAPCOLOR9":5,"MAPCOLOR13":13,"POP_EST":15972000,"POP_RANK":14,"GDP_MD_EST":65170,"POP_YEAR":2017,"LASTCENSUS":2010,"GDP_YEAR":2016,"ECONOMY":"7. Least developed region","INCOME_GRP":"4. Lower middle income","WIKIPEDIA":-99,"FIPS_10_":"ZA","ISO_A2":"ZM","ISO_A3":"ZMB","ISO_A3_EH":"ZMB","ISO_N3":"894","UN_A3":"894","WB_A2":"ZM","WB_A3":"ZMB","WOE_ID":23425003,"WOE_ID_EH":23425003,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ZMB","ADM0_A3_US":"ZMB","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":6,"LONG_LEN":6,"ABBREV_LEN":6,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[21.887843,-17.961229,33.485688,-8.238257],"geometry":{"type":"Polygon","coordinates":[[[23.215048,-17.523116],[22.562478,-16.898451],[21.887843,-16.08031],[21.933886,-12.898437],[24.016137,-12.911046],[23.930922,-12.565848],[24.079905,-12.191297],[23.904154,-11.722282],[24.017894,-11.237298],[23.912215,-10.926826],[24.257155,-10.951993],[24.314516,-11.262826],[24.78317,-11.238694],[25.418118,-11.330936],[25.75231,-11.784965],[26.553088,-11.92444],[27.16442,-11.608748],[27.388799,-12.132747],[28.155109,-12.272481],[28.523562,-12.698604],[28.934286,-13.248958],[29.699614,-13.257227],[29.616001,-12.178895],[29.341548,-12.360744],[28.642417,-11.971569],[28.372253,-11.793647],[28.49607,-10.789884],[28.673682,-9.605925],[28.449871,-9.164918],[28.734867,-8.526559],[29.002912,-8.407032],[30.346086,-8.238257],[30.74001,-8.340006],[31.157751,-8.594579],[31.556348,-8.762049],[32.191865,-8.930359],[32.759375,-9.230599],[33.231388,-9.676722],[33.485688,-10.525559],[33.31531,-10.79655],[33.114289,-11.607198],[33.306422,-12.435778],[32.991764,-12.783871],[32.688165,-13.712858],[33.214025,-13.97186],[30.179481,-14.796099],[30.274256,-15.507787],[29.516834,-15.644678],[28.947463,-16.043051],[28.825869,-16.389749],[28.467906,-16.4684],[27.598243,-17.290831],[27.044427,-17.938026],[26.706773,-17.961229],[26.381935,-17.846042],[25.264226,-17.73654],[25.084443,-17.661816],[25.07695,-17.578823],[24.682349,-17.353411],[24.033862,-17.295843],[23.215048,-17.523116]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","LABELRANK":3,"SOVEREIGNT":"Zimbabwe","SOV_A3":"ZWE","ADM0_DIF":0,"LEVEL":2,"TYPE":"Sovereign country","ADMIN":"Zimbabwe","ADM0_A3":"ZWE","GEOU_DIF":0,"GEOUNIT":"Zimbabwe","GU_A3":"ZWE","SU_DIF":0,"SUBUNIT":"Zimbabwe","SU_A3":"ZWE","BRK_DIFF":0,"NAME":"Zimbabwe","NAME_LONG":"Zimbabwe","BRK_A3":"ZWE","BRK_NAME":"Zimbabwe","BRK_GROUP":null,"ABBREV":"Zimb.","POSTAL":"ZW","FORMAL_EN":"Republic of Zimbabwe","FORMAL_FR":null,"NAME_CIAWF":"Zimbabwe","NOTE_ADM0":null,"NOTE_BRK":null,"NAME_SORT":"Zimbabwe","NAME_ALT":null,"MAPCOLOR7":1,"MAPCOLOR8":5,"MAPCOLOR9":3,"MAPCOLOR13":9,"POP_EST":13805084,"POP_RANK":14,"GDP_MD_EST":28330,"POP_YEAR":2017,"LASTCENSUS":2002,"GDP_YEAR":2016,"ECONOMY":"5. Emerging region:G20","INCOME_GRP":"5. Low income","WIKIPEDIA":-99,"FIPS_10_":"ZI","ISO_A2":"ZW","ISO_A3":"ZWE","ISO_A3_EH":"ZWE","ISO_N3":"716","UN_A3":"716","WB_A2":"ZW","WB_A3":"ZWE","WOE_ID":23425004,"WOE_ID_EH":23425004,"WOE_NOTE":"Exact WOE match as country","ADM0_A3_IS":"ZWE","ADM0_A3_US":"ZWE","ADM0_A3_UN":-99,"ADM0_A3_WB":-99,"CONTINENT":"Africa","REGION_UN":"Africa","SUBREGION":"Eastern Africa","REGION_WB":"Sub-Saharan Africa","NAME_LEN":8,"LONG_LEN":8,"ABBREV_LEN":5,"TINY":-99,"HOMEPART":1,"MIN_ZOOM":0,"MIN_LABEL":3,"MAX_LABEL":8},"bbox":[25.264226,-22.271612,32.849861,-15.507787],"geometry":{"type":"Polygon","coordinates":[[[29.432188,-22.091313],[28.794656,-21.639454],[28.02137,-21.485975],[27.727228,-20.851802],[27.724747,-20.499059],[27.296505,-20.39152],[26.164791,-19.293086],[25.850391,-18.714413],[25.649163,-18.536026],[25.264226,-17.73654],[26.381935,-17.846042],[26.706773,-17.961229],[27.044427,-17.938026],[27.598243,-17.290831],[28.467906,-16.4684],[28.825869,-16.389749],[28.947463,-16.043051],[29.516834,-15.644678],[30.274256,-15.507787],[30.338955,-15.880839],[31.173064,-15.860944],[31.636498,-16.07199],[31.852041,-16.319417],[32.328239,-16.392074],[32.847639,-16.713398],[32.849861,-17.979057],[32.654886,-18.67209],[32.611994,-19.419383],[32.772708,-19.715592],[32.659743,-20.30429],[32.508693,-20.395292],[32.244988,-21.116489],[31.191409,-22.25151],[30.659865,-22.151567],[30.322883,-22.271612],[29.839037,-22.102216],[29.432188,-22.091313]]]}}]}');let ah="topHolder-Naw8dV",ag="visible-DgfEcp",a_="postWrapper-Ty1szc",ab="itemRank-t0ecuE";function af(){let e=(0,u._)(["By ",""]);return af=function(){return e},e}function aA(){let e=(0,u._)(["Explore Substack in ",""]);return aA=function(){return e},e}function aE(){let e=(0,u._)(["Explore Substack in ",""]);return aE=function(){return e},e}let ay=am.qT.sort((e,t)=>e.properties.NAME.localeCompare(t.properties.NAME)).filter(e=>"AQ"!==e.properties.ISO_A2&&"TF"!==e.properties.ISO_A2);function aN(e){let{pub:t,index:n,user:i}=e,r=(0,ap.Zm)({publication:t,subscriptionSource:"country-leaderboard"}),o=(0,N.fOI)(t,{params:{utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.internationalLeaderboard}}),s=t.author_name;return(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},justifyContent:{desktop:"space-between",mobile:"start"},className:"item-CTZJr5",children:[(0,a.jsx)("div",{className:ab,children:n+1}),(0,a.jsxs)(E.pT,{justifyContent:"space-between",direction:"row",gap:4,alignItems:"center",children:[(0,a.jsxs)(E.pT,{className:"itemLogoAndName-FYpRhQ",direction:"row",gap:{desktop:12,mobile:16},alignItems:"center",children:[(0,a.jsx)(ad.Nq,{belowTheFold:!0,pub:t,size:40}),(0,a.jsx)("a",{href:o,onClick:()=>{(0,M.fN)(t,"leaderboards",{position:n+1})},rel:"noopener noreferrer",target:"_blank","data-native":!0,style:{textDecoration:"none"},children:(0,a.jsxs)(E.I1,{gap:2,className:"itemNameAndAuthor-ovWoU_",children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",ellipsis:!0,children:t.name}),(0,a.jsxs)(y.EY.B4,{translated:!0,color:"secondary",ellipsis:!0,children:["By ",I18N.p(s)]})]})})]}),(0,a.jsx)(A.K0,{rounded:!0,size:"sm",priority:r.isSubscribed?"secondary-outline":"primary",type:"submit",newTab:!0,href:i?void 0:(0,N.eV6)(t,{addBase:!0,utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.internationalLeaderboard}),onClick:i?r.toggle:void 0,flex:"auto",children:r.isSubscribed?(0,a.jsx)(t2.A,{}):(0,a.jsx)(ao.A,{})})]})]},t.id)}function aO(e){let{post:t,index:n}=e,i=t.publication,r=(0,N.wu9)(i,t,{urlParams:{utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.internationalLeaderboard}}),{iTemplate:o,language:s}=(0,h.GO)(),l=t.description||t.subtitle||o(af(),i.author_name);return(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:12,mobile:16},alignItems:"start",className:a_,children:[(0,a.jsx)("div",{className:ab,children:n+1}),(0,a.jsxs)(E.I1,{flex:"grow",gap:8,style:{width:"100%"},children:[(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:12,mobile:4},alignItems:"start",justifyContent:"space-between",children:[(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)(ad.Nq,{belowTheFold:!0,pub:i,size:20}),(0,a.jsx)(y.EY.Meta,{as:"a",href:(0,N.eV6)(i,{addBase:!0,utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.internationalLeaderboard}),rel:"noopener noreferrer",target:"_blank",children:i.name})]}),(0,a.jsx)(y.EY.Meta,{children:(0,tg.A)(t.post_date).locale(s).format("MMM DD")})]}),(0,a.jsx)("a",{href:r,rel:"noopener noreferrer",target:"_blank","data-native":!0,style:{textDecoration:"none"},children:(0,a.jsx)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:4,children:(0,a.jsxs)(E.I1,{gap:4,children:[(0,a.jsx)(y.EY.B3,{weight:"semibold",children:t.title}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:l.length>200?l.substr(0,200).concat("..."):l})]})})})]})]},i.id)}let av=e=>{let{countries:t,selectedCountry:n,setSelectedCountry:i}=e,{iString:r}=(0,h.GO)(),o=t.map(e=>({label:e.properties.NAME,value:e.properties.ISO_A2}));return(0,a.jsx)(as.Z,{options:o,value:n?n.id:null,onChange:e=>{if(e){let n=t.find(t=>t.properties.ISO_A2===e);n&&i({id:n.properties.ISO_A2,name:n.properties.NAME,bbox:n.bbox})}},placeholder:r("Select or search for a country...")})},ax=e=>{let{user:t}=e,{iString:i,iTemplate:r}=(0,h.GO)(),[s,l]=(0,o.useState)(1400),c=(0,o.useRef)((0,f.sg)(()=>{window.innerWidth>=1400?l(1400):window.innerWidth>=1e3?l(1e3):window.innerWidth>=800?l(800):l(500)},50)),d={1400:{width:500,height:500,altitude:1.6},1e3:{width:450,height:450,altitude:1.4},800:{width:450,height:450,altitude:1.6},500:{width:250,height:250,altitude:1.6}},{isLoading:u,result:p}=(0,au.vZ)({module:"./react-globe.gl.substack.common.js",onRequest:()=>(c.current(),n.e("5034").then(n.t.bind(n,39089,23))),fetchImmediately:!0}),m=(0,o.useRef)(),[g,_]=(0,o.useState)((()=>{if("undefined"==typeof window)return null;let e=new URL(window.location.href).searchParams.get("country");if(!e)return null;let t=am.qT.find(t=>t.properties.ISO_A2===e);return t?{id:t.properties.ISO_A2,name:t.properties.NAME,bbox:t.bbox}:null})()),{result:A,isLoading:N}=(0,b.st)({pathname:"/api/v1/international-leaderboard",query:{country:null==g?void 0:g.id},deps:[g],auto:!0});(0,o.useEffect)(()=>{m.current&&"undefined"!=typeof window&&(window.addEventListener("resize",c.current,!0),m.current.controls().autoRotate=!g,m.current.controls().autoRotateSpeed=2,m.current.controls().enableZoom=!1,m.current.controls().enabled=s>800,m.current.controls().addEventListener("start",()=>{m.current&&(m.current.controls().autoRotate=!1)}),g?m.current.pointOfView({lat:(g.bbox[1]+g.bbox[3])/2,lng:(g.bbox[0]+g.bbox[2])/2,altitude:d[s].altitude},200):m.current.pointOfView({lat:30,lng:20,altitude:d[s].altitude},200))},[u,g,s,!!A]),(0,o.useEffect)(()=>{if(g){let e=new URL(window.location.href);e.searchParams.set("country",g.id),window.history.pushState(null,"",e.toString())}},[g]);let O=(0,a.jsx)(E.I1,{children:!u&&p&&A?(0,a.jsxs)(E.I1,{gap:24,children:[s<=800&&(0,a.jsx)(av,{countries:ay,selectedCountry:g,setSelectedCountry:_}),(0,a.jsx)(p.default,{ref:m,polygonsData:ay,polygonAltitude:.01,polygonCapColor:e=>(null==g?void 0:g.id)===(null==e?void 0:e.properties.ISO_A2)?"#F3DBCF":"white",polygonStrokeColor:()=>"black",polygonSideColor:()=>"#F3DBCF",showAtmosphere:!1,backgroundColor:"#FFFFFF",width:d[s].width,height:d[s].height,renderConfig:{antialias:!0,alpha:!1},onGlobeClick:()=>{var e;(null==(e=m.current)?void 0:e.controls)&&(m.current.controls().autoRotate=!1)},onPolygonClick:s>800?e=>{_({id:e.properties.ISO_A2,name:e.properties.NAME,bbox:e.bbox})}:null,globeImageUrl:"/img/globe2.png"}),s>800&&(0,a.jsx)(av,{countries:ay,selectedCountry:g,setSelectedCountry:_})]}):(0,a.jsx)(ac.y$,{size:40})});return(0,a.jsxs)(E.pT,{direction:"column",alignItems:"center",justifyContent:"start",gap:32,style:{backgroundColor:"white",minHeight:"900px"},paddingTop:48,paddingBottom:56,paddingX:24,children:[(0,a.jsxs)(E.I1,{gap:16,alignItems:"center",style:{textAlign:"center"},children:[s<=800&&(0,a.jsx)(y.EY.MarketingHeading2,{weight:"regular",children:g?r(aA(),g.name):i("Explore Substack around the world")}),s>800&&(0,a.jsx)(y.EY.MarketingHeading1,{children:g?r(aE(),g.name):i("Explore Substack around the world")}),(0,a.jsx)(y.EY.MarketingBody,{style:{textAlign:"center"},children:i(s>800?"Click on the spinning globe to explore trending posts and top publications by country":"Discover trending posts and top publications by country")})]}),s<1400&&O,(0,a.jsxs)(E.pT,{direction:s<=800?"column":"row",className:"wrapper-yzKBiV",alignItems:s<=800?"center":"start",justifyContent:s<=800?"center":"space-between",gap:64*(s<=800),children:[(0,a.jsxs)(E.pT,{className:I()(ah,{[ag]:!!g}),direction:"column",gap:32,children:[s<=800&&(0,a.jsxs)(y.EY.H4,{translated:!0,children:["Top publications based in ",I18N.p((null==g?void 0:g.name)||"")]}),s>800&&(0,a.jsxs)(y.EY.H3,{translated:!0,children:["Top publications based in ",I18N.p((null==g?void 0:g.name)||"")]}),(0,a.jsxs)(E.pT,{direction:"column",gap:24,children:[!N&&A&&A.pubs.length>0&&A.pubs.map((e,n)=>(0,a.jsx)(aN,{pub:{id:e.id,name:e.name,author_name:e.author_name,logo_url:e.logo_url,author_photo_url:e.author_photo_url,subdomain:e.subdomain},user:t,index:n})),!N&&A&&0===A.pubs.length&&(0,a.jsxs)(y.EY.Meta,{translated:!0,children:["This country doesn’t currently have any widely read publications."," ",(0,a.jsx)("a",{href:"/signup?utm_source=".concat(eg.VU.substack,"&utm_campaign=").concat(eg._9.internationalLeaderboard),children:"Could you be the first?"})]}),!N&&A&&A.pubs.length<3&&A.pubs.length>0&&(0,a.jsxs)(y.EY.Meta,{translated:!0,children:["This country currently has a limited number of publications. Why not"," ",(0,a.jsx)("a",{href:"/signup?utm_source=".concat(eg.VU.substack,"&utm_campaign=").concat(eg._9.internationalLeaderboard),children:"start your own Substack"})," ","today?"]}),N&&(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})}),(0,a.jsx)(E.I1,{gap:8,children:(0,a.jsx)(al.O,{width:"100%",height:"50px"})})]})]})]}),1400===s&&O,(0,a.jsxs)(E.pT,{className:I()(ah,{[a_]:!0,[ag]:!!g}),direction:"column",gap:32,children:[s<=800&&(0,a.jsxs)(y.EY.H4,{translated:!0,children:["Top posts in ",I18N.p((null==g?void 0:g.name)||"")]}),s>800&&(0,a.jsxs)(y.EY.H3,{translated:!0,children:["Top posts in ",I18N.p((null==g?void 0:g.name)||"")]}),(0,a.jsxs)(E.pT,{direction:"column",gap:32,children:[!N&&A&&A.posts.length>0&&A.posts.map((e,t)=>(0,a.jsx)(aO,{post:e,index:t})),!N&&A&&0===A.posts.length&&(0,a.jsxs)(y.EY.Meta,{translated:!0,children:["This country doesn’t currently have any widely read posts."," ",(0,a.jsx)("a",{href:"/signup?utm_source=".concat(eg.VU.substack,"&utm_campaign=").concat(eg._9.internationalLeaderboard),children:"Could you be the first?"})]}),!N&&A&&A.posts.length<3&&A.posts.length>0&&(0,a.jsxs)(y.EY.Meta,{translated:!0,children:["This country currently has a limited number of posts. Why not"," ",(0,a.jsx)("a",{href:"/signup?utm_source=".concat(eg.VU.substack,"&utm_campaign=").concat(eg._9.internationalLeaderboard),children:"start your own Substack"})," ","today?"]}),N&&(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{width:"100%",height:"15px"}),(0,a.jsx)(al.O,{width:"100%",height:"50px"})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{width:"100%",height:"15px"}),(0,a.jsx)(al.O,{width:"100%",height:"50px"})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{width:"100%",height:"15px"}),(0,a.jsx)(al.O,{width:"100%",height:"50px"})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{width:"100%",height:"15px"}),(0,a.jsx)(al.O,{width:"100%",height:"50px"})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{width:"100%",height:"15px"}),(0,a.jsx)(al.O,{width:"100%",height:"50px"})]})]})]})]})]})]})};var aS=n(49807);let aw={primaryText:"primaryText-KtH6Rn",financeSummitPage:"financeSummitPage-T1SXeb",header:"header-M_JLS5",mobile:"mobile-PZUECB",postHeader:"postHeader-zZVuOQ",textContainer:"textContainer-zA9g0G",liveSection:"liveSection-bvlAEK",liveEvents:"liveEvents-sdhR7H",liveEventContainer:"liveEventContainer-khXceW",liveEventDescription:"liveEventDescription-oPODJ2",writerDetailsContainer:"writerDetailsContainer-HX5tZZ",liveEventLeft:"liveEventLeft-foYqjk",liveEventRight:"liveEventRight-QEvqqR",overlay:"overlay-blmmlt",noBottomBorder:"noBottomBorder-qbZK20",footer:"footer-Nzs_qr",footerImageContainer:"footerImageContainer-lWRGWX",down:"down-f2bQa5",downIcon:"downIcon-yAzsRX",otherWriters:"otherWriters-mBDHVf",section:"section-WR5PUR",sectionTitle:"sectionTitle-Dv9DSe",sectionSubtitle:"sectionSubtitle-baEDYd",sectionContent:"sectionContent-yrUz8X",collapsibleQuestionContainer:"collapsibleQuestionContainer-yRm5Lh"},aI={width:"95%",marginTop:"4px"},aM=[{date:"9:30 AM ET",headers:["The World in 2025"],img:"paul-krugman-azeem-azhar.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Nobel Prize-winning economist"," ",(0,a.jsx)("a",{href:"https://paulkrugman.substack.com/",target:"_blank",children:"Paul Krugman"})," ","and one of the most influential thinkers on exponential technologies, Azeem Azhar of"," ",(0,a.jsx)("a",{href:"http://exponentialview.co/",target:"_blank",children:"Exponential View"}),", will discuss the economy, AI, and geopolitics in 2025 and beyond."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://paulkrugman.substack.com/p/krugman-and-azhar-the-world-in-2025",target:"_blank",children:"Paul Krugman"})," ","or"," ",(0,a.jsx)("a",{href:"https://www.exponentialview.co/p/paul-krugman-and-azeem-on-the-world",target:"_blank",children:"Exponential View"}),"."]})},{date:"10:30 AM ET",headers:["Trump, Money, Drones, and Wars"],img:"dr-pippa-malmgren-dan-bonner.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Dr. Pippa Malmgren of"," ",(0,a.jsx)("a",{href:"https://drpippa.substack.com/",target:"_blank",children:"Pippa's Pen & Podcast"})," ","and Dan Denning, Research Director at"," ",(0,a.jsx)("a",{href:"https://www.bonnerprivateresearch.com/",target:"_blank",children:"Bonner Private Research"}),", take on the biggest geopolitical issues investors must deal with in 2025. Urgently, does Donald Trump's new memecoin ($TRUMP) have its roots in an ancient Roman sea battle? More importantly, could it force the Fed to stop inflating away the value of the US dollar AND give Trump a way to circumvent Congress? What happened to the drone story? And are we in a Hot War in Cold Places and a Cold War in Hot Places? What about the new Stargate project?"]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://www.bonnerprivateresearch.com/p/market-forecast-2025",target:"_blank",children:"Bonner Private Research"}),"."]})},{date:"11 AM ET",headers:["Charting the Uncharted in 2025: Economics to Geopolitics"],img:"dominic-frisby-joel-bowman.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Join two renegade thinkers as they chart a course through the unpredictable terrain of 2025. Dominic Frisby of"," ",(0,a.jsx)("a",{href:"https://www.theflyingfrisby.com/",target:"_blank",children:"The Flying Frisby"})," ","will be in conversation with Joel Bowman of"," ",(0,a.jsx)("a",{href:"https://joelbowman.substack.com/",target:"_blank",children:"Notes from the End of the World"})," ","for a discussion ranging from economics to geopolitics, with a dash of irreverent humor."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://www.theflyingfrisby.com/p/live-with-dominic-frisby",target:"_blank",children:"The Flying Frisby"})," ","or"," ",(0,a.jsx)("a",{href:"https://joelbowman.substack.com/p/live-from-the-end-of-the-world",target:"_blank",children:"Notes from the End of the World"}),"."]})},{date:"11:30 AM ET",headers:["The View from the Bottom: Solo GPs on the Venture Landscape"],img:"mario-gabrele-packy-mccormick.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Mario Gabriele of"," ",(0,a.jsx)("a",{href:"https://thegeneralist.substack.com/",target:"_blank",children:"The Generalist"})," ","and Packy McCormick of"," ",(0,a.jsx)("a",{href:"https://www.notboring.co/",target:"_blank",children:"Not Boring"})," ","will discuss the world of solo General Partners, sharing their perspectives on the opportunities, challenges, and lessons that shape their work in investing."]}),watch:(0,a.jsx)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI})},{date:"12 PM ET",headers:["Is a Sustainable Recovery on the Horizon?"],img:"danielle-dimartino-adam-taggart.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Data suggests the U.S. may begin to exit a recession in 2025, depending on how policymakers and the economy respond to the delayed recognition of job losses that seem to have started in April 2024. Join Danielle DiMartino Booth, publisher of"," ",(0,a.jsx)("a",{href:"https://dimartinobooth.substack.com/",target:"_blank",children:"The Daily Feather"})," ",'and author of the book "Fed Up: An Insider\'s Take on Why the Federal Reserve is Bad for America," and Adam Taggart of'," ",(0,a.jsx)("a",{href:"https://adamtaggart.substack.com/",target:"_blank",children:"Thoughtful Money"})," ","as they explore how we can determine if a sustainable recovery is truly underway."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://adamtaggart.substack.com/p/is-a-sustainable-recovery-on-the",target:"_blank",children:"Thoughtful Money"})," ","or"," ",(0,a.jsx)("a",{href:"https://dimartinobooth.substack.com/p/is-a-sustainable-recovery-on-the-bf5",target:"_blank",children:"The Daily Feather"}),"."]})},{date:"12:30 PM ET",headers:["Opportunities, Risks, and Strategies for Investing in 2025, with Pieter Siegers and Bertrand Seguin"],img:"pieter-siegers-bertrand-seguin.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Pieter Siegers of"," ",(0,a.jsx)("a",{href:"https://www.compoundingquality.net/",target:"_blank",children:"Compounding Quality"})," ","and Bertrand Seguin of App Economy Insights/",(0,a.jsx)("a",{href:"https://www.appeconomyinsights.com/",target:"_blank",children:"How They Make Money"})," ","will guide you on investing wisely in 2025. Where are the opportunities? And the main risks? To measure is to know. Plenty of examples will be given to inspire you for the new year."]}),watch:(0,a.jsx)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI})},{date:"1 PM ET",headers:["From Financial Markets to Financial Planning"],img:"douglas-boneparth-sam-ro.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Douglas Boneparth, founder of Bone Fide Wealth and publisher of"," ",(0,a.jsx)("a",{href:"https://www.readthejointaccount.com/",target:"_blank",children:"The Joint Account"}),", and Sam Ro of"," ",(0,a.jsx)("a",{href:"https://www.tker.co/",target:"_blank",children:"TKer.co"})," ","will discuss the outlook for markets in 2025. What are the risks and opportunities? What does it mean for your finances? And how should individual investors think about it all in the years ahead? They will tackle the timely money questions on everyone's minds right now."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://www.tker.co/p/market-forecast-summit-2025-sam-ro-doug-boneparth?utm_source=publication-search",target:"_blank",children:"TKer"})," ","or"," ",(0,a.jsx)("a",{href:"https://www.readthejointaccount.com/p/half-baked",target:"_blank",children:"The Joint Account"}),"."]})},{date:"1:30 PM ET",headers:["View from London: Future of the Finance Industry"],img:"stephen-clapham-marc-rubinstein.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Stephen Clapham of"," ",(0,a.jsx)("a",{href:"https://behindthebalancesheet.substack.com/",target:"_blank",children:"Behind the Balance Sheet"})," ","and Marc Rubinstein of"," ",(0,a.jsx)("a",{href:"https://www.netinterest.co/",target:"_blank",children:"Net Interest"})," ","will discuss the future of the finance industry, offering insights and global perspectives from London."]}),watch:(0,a.jsx)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI})},{date:"2 PM ET",headers:["How Inflation Will Shape Bond Portfolios in 2025"],img:"kevin-muir-adam-taggart.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Kevin Muir of"," ",(0,a.jsx)("a",{href:"https://posts.themacrotourist.com/",target:"_blank",children:"The MacroTourist"})," ","brings 25 years of trading experience and deep background in macro to this dialogue with Adam Taggart of"," ",(0,a.jsx)("a",{href:"https://adamtaggart.substack.com/",target:"_blank",children:"Thoughtful Money"}),", where they'll discuss what inflation will look like in 2025 and how that will affect your bond portfolio."]}),watch:(0,a.jsx)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI})},{date:"2:30 PM ET",headers:["Preparing for the Great Wealth Transfer"],img:"ally-jane-ayers-lindsey-stanberry.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Ally-Jane Ayers of"," ",(0,a.jsx)("a",{href:"https://moneychangeseverything.substack.com/",target:"_blank",children:"Money Changes Everything"})," ","and Lindsey Stanberry of"," ",(0,a.jsx)("a",{href:"https://thepurse.substack.com/",target:"_blank",children:"The Purse"})," ","will discuss how women can prepare for the Great Wealth transfer and ensure that their spending and investing align with their values."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://thepurse.substack.com/p/preparing-for-the-great-wealth-transfer-substack-live",target:"_blank",children:"The Purse"})," ","or"," ",(0,a.jsx)("a",{href:"https://open.substack.com/pub/moneychangeseverything/p/preparing-for-the-great-wealth-transfer",target:"_blank",children:"Money Changes Everything"}),"."]})},{date:"3:30 PM ET",headers:["Prediction for Financial Scams in 2025"],img:"matt-taibbi-matt-stoller.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Join Matt Taibbi of"," ",(0,a.jsx)("a",{href:"https://www.racket.news/",target:"_blank",children:"Racket News"})," ","and Matt Stoller of"," ",(0,a.jsx)("a",{href:"https://www.thebignewsletter.com/",target:"_blank",children:"BIG"})," ","to talk about scams and big business in 2025. From self-dealing in the private equity realm to cryptocurrencies to monopolies to TikTok to big tech censorship, how will commerce operate in the second Trump term?"]}),watch:(0,a.jsx)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI})},{date:"4 PM ET",headers:["Decoding the Options and Bond Markets for 2025"],img:"dan-passarelli-russel-rhoads.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Dan Passarelli of"," ",(0,a.jsx)("a",{href:"https://wealthbuildingwithoptions.substack.com/",target:"_blank",children:"Wealth Building with Options"})," ","and Russell Rhoads of"," ",(0,a.jsx)("a",{href:"https://russellrhoads.substack.com/",target:"_blank",children:"ListDer Research"})," ","will delve into what the options market reveals about 2025. These financial thought leaders will share insights from the bond market, options volatility, and more, offering guidance on the timing of the next interest rate cuts and strategies likely to succeed in the year ahead."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://wealthbuildingwithoptions.substack.com/p/live-with-dan-passarelli",target:"_blank",children:"Wealth Building with Options"})," ","or"," ",(0,a.jsx)("a",{href:"https://russellrhoads.substack.com/p/live-with-dan-passarelli",target:"_blank",children:"ListDer Research"}),"."]})},{date:"5 PM ET",headers:["Venture Capital and the Private Markets in 2025"],img:"eric-newcomer-andrew-reed.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Eric Newcomer of"," ",(0,a.jsx)("a",{href:"https://www.newcomer.co/",target:"_blank",children:"Newcomer"})," ","and"," ",(0,a.jsx)("a",{href:"https://www.sequoiacap.com/",target:"_blank",children:"Sequoia Capital"})," ","partner Andrew Reed will discuss how startup investing is shaping up in 2025. How does the M&A and IPO market look for private venture-backed startups? What are the tradeoffs between staying private and going public right now? They will also explore trends in venture capital, like the rise of megafunds and what Andrew has learned over the years from his Sequoia partners about investing in startups."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://www.newcomer.co/p/venture-capital-and-the-private-markets-fb0",target:"_blank",children:"Newcomer"}),"."]})},{date:"5:30 PM ET",headers:["How Can the U.S. Stay Ahead Technologically?"],img:"noah-smith-patrick-collison.png",imagePlacement:"right",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["How can the U.S. stay ahead technologically? What do people really need more of, and how do we get it to them? Noah Smith of"," ",(0,a.jsx)("a",{href:"https://www.noahpinion.blog/",target:"_blank",children:"Noahpinion"})," ","and"," ",(0,a.jsx)("a",{href:"https://stripe.com/",target:"_blank",children:"Stripe"})," ","CEO Patrick Collison tackle the hard-hitting questions."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://www.noahpinion.blog/p/patrick-collison-interview-at-least",target:"_blank",children:"Noahpinion"}),"."]})},{date:"6 PM ET",headers:["Dollars, Bonds, and Their Impact on Digital Currency"],img:"michael-howell-james-lavish.png",imagePlacement:"left",content:(0,a.jsxs)(y.EY,{font:"display",fontSize:17,style:aI,children:["Michael Howell of"," ",(0,a.jsx)("a",{href:"https://capitalwars.substack.com/",target:"_blank",children:"Capital Wars"})," ","and James Lavish of"," ",(0,a.jsx)("a",{href:"https://www.jameslavish.com/",target:"_blank",children:"The Informationist"})," ","will discuss how movements in the U.S. dollar and bond markets shape the crypto ecosystem, impacting prices, adoption, and market stability."]}),watch:(0,a.jsxs)(y.EY,{font:"display",fontSize:15,fontStyle:"italic",style:aI,children:["Missed their session? Watch the recording via"," ",(0,a.jsx)("a",{href:"https://capitalwars.substack.com/p/dollars-bonds-and-digital-currencies",target:"_blank",children:"Capital Wars"})," ","or"," ",(0,a.jsx)("a",{href:"https://www.jameslavish.com/p/dollars-bonds-and-digital-currencies",target:"_blank",children:"The Informationist"}),"."]})}],aC=e=>{let{img:t,date:n,headers:i,content:r,imagePlacement:o,watch:s}=e,l=(0,tb.Iu)(),c=l||"left"===o?aw.liveEventLeft:aw.liveEventRight,d=l||"left"===o?aw.liveEventRight:aw.liveEventLeft;return(0,a.jsxs)(E.pT,{gap:20,direction:{desktop:"row",mobile:"column"},alignItems:"center",className:I()(aw.liveEventContainer,l&&aw.mobile),children:[(0,a.jsx)(E.I1,{className:I()(aw.liveEventImgContainer,c),children:(0,a.jsx)(ed.o,{src:"/img/finance_summit_page/".concat(t),maxWidth:568,useRetinaSizing:!0,imageIsFixedWidth:!1})}),(0,a.jsxs)(E.I1,{gap:12,className:I()(aw.liveEventDescription,d),children:[(0,a.jsx)(y.EY,{font:"display",fontWeight:"bold",fontSize:17,className:aw.primaryText,children:n}),(0,a.jsxs)(y.EY.MarketingHeading2,{style:{fontWeight:400},className:aw.primaryText,children:[i[0],i[1]&&(0,a.jsx)("br",{}),i[1],i[2]&&(0,a.jsx)("br",{}),i[2]]}),r,s]})]})};function ak(e){let{openInstallDialog:t,text:n}=e,i={utm_campaign:eg._9.appMarketing},r=(0,N.zw3)(i),o=(0,N.cxW)(i);return(0,eh.m0)()||(0,eh.aR)()?(0,a.jsx)(A.$n,{localNavigation:!1,href:(0,eh.m0)()?r:o,size:"lg",children:n||"Get the Substack app"}):(0,a.jsx)(A.$n,{size:"lg",onClick:t,children:n||"Get the Substack App"})}let aj=l(()=>{let{open:e,modal:t}=(0,ec.El)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appPage}),n=(0,tb.Iu)(),i=(0,o.useRef)(null);return(0,a.jsxs)("div",{className:"app-page finance-summit-page",children:[(0,a.jsx)(J.O,{title:"The Substack Market Forecast Summit",description:"As we enter 2025, the Substack Market Forecast Summit will bring together influential finance and business figures, writers, and commentators for a daylong virtual event on Friday, January 31. Featuring back-to-back live video conversations between leading voices, the summit will explore the trends, challenges, and opportunities that may shape the year ahead. All discussions will be live streamed exclusively in the Substack app. Download the app now to join the conversation.",image:(0,aS.dJ9)("/img/finance_summit_page/social-header.png",1e3)}),(0,a.jsx)("div",{className:"app-page",style:{background:"#191919"},children:(0,a.jsx)("div",{className:aw.financeSummitPage,children:(0,a.jsxs)(E.pT,{gap:20,direction:{desktop:"row",mobile:"column"},justifyContent:"center",alignItems:"center",className:I()(aw.header,n&&aw.mobile),children:[(0,a.jsx)(E.I1,{gap:12,children:(0,a.jsx)(ed.o,{src:"/img/finance_summit_page/hero-img.png",maxWidth:568,useRetinaSizing:!0,imageIsFixedWidth:!1})}),(0,a.jsxs)(E.I1,{alignItems:"start",gap:12,children:[(0,a.jsx)(y.EY,{font:"marketing",className:aw.primaryText,style:{fontSize:"17px"},translated:!0,children:"As we enter 2025, the Substack Market Forecast Summit will bring together influential finance and business figures, writers, and commentators for a daylong virtual event on Friday, January 31."}),(0,a.jsxs)(y.EY,{font:"marketing",className:aw.primaryText,style:{fontSize:"17px"},translated:!0,children:["Featuring back-to-back live video conversations with leading voices like"," ",(0,a.jsx)("a",{href:"https://substack.com/@paulkrugman",children:"Paul Krugman"}),","," ",(0,a.jsx)("a",{href:"https://substack.com/@taibbi",children:"Matt Taibbi"}),","," ",(0,a.jsx)("a",{href:"https://substack.com/@noahpinion",children:"Noah Smith"}),","," ",(0,a.jsx)("a",{href:"https://patrickcollison.com/about",children:"Patrick Collison"}),","," ",(0,a.jsx)("a",{href:"https://substack.com/@dimartinobooth",children:"Danielle DiMartino Booth"}),", and more, the summit will explore the trends, challenges, and opportunities that may shape the year ahead."]}),(0,a.jsx)(y.EY,{font:"marketing",className:aw.primaryText,style:{fontSize:"17px"},translated:!0,children:"All discussions will be live streamed exclusively in the Substack app. Download the app now to join the conversation."}),(0,a.jsx)(ak,{openInstallDialog:e})]})]})})}),(0,a.jsxs)(E.I1,{alignItems:"center",className:I()("cohort-pagex",aw.liveSection),ref:i,gap:32,children:[(0,a.jsxs)(E.I1,{gap:20,alignItems:"center",textAlign:"center",className:aw.textContainer,children:[(0,a.jsx)(y.EY.MarketingHeading1,{className:aw.primaryText,translated:!0,children:"Live, only in the Substack app on Friday, January 31, 2025"}),(0,a.jsx)(y.EY,{align:"center",font:"marketing",className:aw.primaryText,style:{fontSize:"24px",maxWidth:"630px",padding:"0 20px;"},translated:!0,children:"We encourage you to subscribe to these publishers for updates"})]}),(0,a.jsx)(E.I1,{className:aw.liveEvents,gap:32,children:aM.map(e=>(0,a.jsx)(aC,(0,r._)({},e)))})]}),(0,a.jsxs)(E.I1,{className:I()(aw.section,aw.collapsibleQuestionContainer),style:{padding:"96px 16px 48px",border:"none"},children:[(0,a.jsx)("span",{className:aw.sectionTitle,children:"FAQ"}),(0,a.jsx)(tN,{className:"financeSummitQuestion",answerClassName:"financeSummitAnswer",question:"How do I attend Substack’s Market Forecast Summit?",answer:(0,a.jsx)("p",{children:"The Substack Market Forecast Summit will be streamed as live videos in the Substack app on Friday, January 31. Download the app to join the conversation."})}),(0,a.jsx)(tN,{question:"Do I need to be an expert in finance or business to join these conversations?",answer:(0,a.jsx)("p",{children:"Anyone is welcome to join. While some discussions may include industry-specific terms, the insights shared are valuable for anyone interested in understanding the financial and business landscape for the year ahead."})}),(0,a.jsx)(tN,{question:"How do I download the Substack app?",answer:(0,a.jsxs)("p",{children:["The Substack app can be downloaded for free on"," ",(0,a.jsx)("a",{href:"https://apps.apple.com/us/app/substack/id1581650857",children:"iOS"})," and"," ",(0,a.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.substack.app&hl=en_US",children:"Android"})," devices."]})}),(0,a.jsx)(tN,{question:"Do I need a Substack account to participate?",answer:(0,a.jsxs)("p",{children:["Yes, you’ll need a Substack account to watch the Market Forecast Summit. Signing up is easy – just"," ",(0,a.jsx)("a",{href:"https://substack.com/signup",children:"create an account"})," through the app or website to get started."]})}),(0,a.jsx)(tN,{question:"How do I get notifications for upcoming events?",answer:(0,a.jsx)("p",{children:"To stay up to date, subscribe to the participating publishers after downloading the app. Enable push notifications, and you’ll receive alerts when your chosen publisher goes live, ensuring you never miss a session."})}),(0,a.jsx)(tN,{question:"When can we expect more programming details?",answer:(0,a.jsx)("p",{children:"We’re adding new details regularly. Check this website for the latest updates on programming and speakers."})}),(0,a.jsx)(tN,{question:"Can I ask questions or participate during the live video?",answer:(0,a.jsx)("p",{children:"Each live video will have a chat section where you can interact with other viewers and the participants."})}),(0,a.jsx)(tN,{question:"How do I tune into their live video?",answer:(0,a.jsx)("p",{children:"Directly within the Substack app. You can either click the push notification when the session begins, or you can visit the publisher’s profile and click on their profile picture to access the live stream."})}),(0,a.jsx)(tN,{question:"Will the live video streams be open to the public or only to subscribers?",answer:(0,a.jsx)("p",{children:"Anyone with a Substack account can watch these live streams."})}),(0,a.jsx)(tN,{className:aw.noBottomBorder,question:"I’m unable to make the live video session. Can I watch it later?",answer:(0,a.jsx)("p",{children:"Participants may choose to share the video after the live stream. Be sure to check their Substacks for updates."})})]}),(0,a.jsxs)(E.I1,{justifyContent:"center",alignItems:"center",className:I()(aw.section,aw.footer),style:{padding:"64px 16px 64px"},children:[(0,a.jsx)(y.EY.MarketingHeading1,{className:aw.footerHeading,translated:!0,align:"center",children:"The best conversations in finance happen on Substack"}),(0,a.jsx)(ak,{openInstallDialog:e})]}),t]})});var aL=n(56381);let aR="sectionImage-nowOPj",aT="whatsNextImage-f2YgXQ",aP="icon-Ul0xfh",aD=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.getStartedPage}),aB=e=>{let{children:t,size:n="regular",href:i}=e;return(0,a.jsx)("a",{href:i,className:"rightArrowLink-IOZYmZ",target:"__blank",rel:"noopener noreferrer",children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"regular"===n?"regular":"semibold",color:"substack",children:t}),(0,a.jsx)(ej.A,{size:"regular"===n?16:24})]})})},aU=e=>{let{question:t,children:n}=e,[i,r]=(0,o.useState)(!1);return(0,a.jsxs)(E.I1,{className:"question-GeSWbk",paddingY:32,borderBottom:"detail",onClick:()=>{r(!i)},children:[(0,a.jsxs)(E.Ye,{alignItems:"start",gap:16,justifyContent:"space-between",children:[(0,a.jsx)(y.EY.H2,{font:"marketing",weight:"regular",children:t}),i?(0,a.jsx)(tf.A,{size:32,className:aP}):(0,a.jsx)(tA.A,{size:32,className:aP})]}),(0,a.jsx)(tE.N,{open:i,children:(0,a.jsx)(E.I1,{paddingTop:16,className:"answer-behorK",onClick:e=>{e.stopPropagation()},gap:32,children:n})})]})};var aG=n(75107);let aF=(0,N.JlH)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.ghost});var aW=n(99851);class aY extends o.Component{async componentDidMount(){try{let e=await m().get("/api/v1/email/unsubscribe").query({token:this.props.token});this.setState((0,R._)((0,r._)({},e.body),{loading:!1}))}catch(e){(0,f.jL)()}}render(){var e;let{}=this.props,{loading:t,unsubscribeUser:n,subscriptions:i}=null!=(e=this.state)?e:{};return!t&&n&&i?(0,a.jsx)("div",{className:"page typography",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"notice-box",children:[(0,a.jsx)("div",{className:"notice-box-title",children:"Email settings for"}),(0,a.jsx)("div",{className:"notice-box-email",children:n.email}),i.length>0?[i.length>1&&(0,a.jsxs)("div",{className:"notice-box-content",children:[(0,a.jsx)("span",{children:"\xa0"}),(0,a.jsx)("a",{className:"button ".concat(i.some(e=>e.email_disabled)?"primary":"outline"),href:"javascript:void(0)",onClick:()=>this.toggleAllEmailSetting(),"data-native":!0,children:i.some(e=>e.email_disabled)?"Turn on all emails":"Turn off all emails"})]}),i.map(e=>(0,a.jsxs)("div",{className:"notice-box-content",children:[(0,a.jsx)("span",{children:(0,a.jsx)("a",{href:(0,N.$_T)(e),target:"_blank",children:e.name})}),(0,a.jsx)("a",{className:"button ".concat(e.email_disabled?"primary":"outline"),href:"javascript:void(0)",onClick:()=>this.toggleEmailSetting(e),"data-native":!0,children:e.email_disabled&&Object.values(e.email_settings||{}).every(e=>"disabled"===e)?"Turn on emails":"Turn off emails"})]}))]:(0,a.jsx)("p",{children:"No subscriptions found"})]})})}):(0,a.jsx)("div",{className:"page typography",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("p",{className:"main-loader",children:"Loading.."})})})}constructor(...e){super(...e),(0,aW._)(this,"state",{loading:!0,changingSetting:!1}),(0,aW._)(this,"toggleEmailSetting",e=>(0,f.vL)(this,"changingSetting",async t=>{let n=JSON.parse(JSON.stringify(e));e.email_disabled=!e.email_disabled,e.email_settings=e.email_settings?Object.keys(e.email_settings).reduce((e,t)=>(0,R._)((0,r._)({},e),{[t]:"disabled"}),{}):e.email_settings,this.setState({subscriptions:t.subscriptions});try{await m().post("/api/v1/email/unsubscribe/".concat(e.publication_id)).send({token:this.props.token,email_disabled:e.email_disabled,affect_sections:!0})}catch(a){if(alert((0,f.uX)(a)),!t.subscriptions)return void console.warn("No subscription found in state");let e=t.subscriptions.map(e=>e.publication_id===n.publication_id?n:e);this.setState({subscriptions:e})}})),(0,aW._)(this,"toggleAllEmailSetting",()=>(0,f.vL)(this,"changingSetting",async()=>{var e,t;let n=null==(e=this.state.subscriptions)?void 0:e.some(e=>e.email_disabled&&Object.values(e.email_settings||{}).every(e=>"disabled"===e)),a=JSON.parse(JSON.stringify(this.state.subscriptions));null==(t=this.state.subscriptions)||t.forEach(e=>{e.email_disabled=!n}),this.setState({subscriptions:this.state.subscriptions});try{await m().post("/api/v1/email/unsubscribe/all").send({token:this.props.token,email_disabled:!n})}catch(e){alert((0,f.uX)(e)),this.setState({subscriptions:a})}}))}}var aK=n(64997),aH=n(82776);function aV(){let e=(0,u._)(["Earnings estimate calculated for "," paid subscribers, priced ","/month. It is net of Substack and credit card fees. Actual subscriber counts and earnings may vary."]);return aV=function(){return e},e}function az(){let{iString:e,iTemplate:t,language:n}=(0,h.GO)(),i={en:"usd",ca:"eur",da:"dkk",es:"eur",pt:"eur","pt-br":"brl",it:"eur",de:"eur",fr:"eur",ja:"jpy",pl:"pln",tr:"try",nb:"nok",nl:"eur",sv:"sek"},{subscribers:r,amountPerMonth:o,payoutPerMonth:s,onUpdate:l,isModalOpen:c,setIsModalOpen:d}=aq(),u=t(aV(),r,(0,aH.centsToPriceString)(o,i[n]));return(0,a.jsxs)("div",{className:"borderless-calculator",children:[(0,a.jsx)("div",{className:"borderless-calculator-title",children:e("Estimate what you could make on Substack")}),(0,a.jsxs)("div",{className:"borderless-calculator-input-container",children:[(0,a.jsxs)("select",{className:"borderless-calculator-subscribers",value:r,onInput:e=>l({subs:e.target.value}),children:[(0,a.jsx)("option",{value:"50",children:e("50 subscribers")}),(0,a.jsx)("option",{value:"100",children:e("100 subscribers")}),(0,a.jsx)("option",{value:"200",children:e("200 subscribers")}),(0,a.jsx)("option",{value:"400",children:e("400 subscribers")}),(0,a.jsx)("option",{value:"800",children:e("800 subscribers")}),(0,a.jsx)("option",{value:"2000",children:e("2,000 subscribers")}),(0,a.jsx)("option",{value:"5000",children:e("5,000 subscribers")}),(0,a.jsx)("option",{value:"10000",children:e("10,000 subscribers")}),(0,a.jsx)("option",{value:"50000",children:e("50,000 subscribers")})]}),(0,a.jsxs)("select",{className:"borderless-calculator-plan",value:o,onInput:e=>l({amt:e.target.value}),children:[(0,a.jsx)("option",{value:"500",children:e("$5/month")}),(0,a.jsx)("option",{value:"700",children:e("$7/month")}),(0,a.jsx)("option",{value:"1000",children:e("$10/month")}),(0,a.jsx)("option",{value:"1500",children:e("$15/month")}),(0,a.jsx)("option",{value:"3000",children:e("$30/month")}),(0,a.jsx)("option",{value:"7500",children:e("$75/month")})]})]}),(0,a.jsxs)("div",{className:"borderless-calculator-payout",children:[(0,a.jsx)("span",{className:"borderless-calculator-payout-value",children:(0,aH.centsToPriceString)(s,i[n])}),(0,a.jsx)("span",{className:"borderless-calculator-payout-period",children:e("per month")}),(0,a.jsx)("a",{className:"borderless-calculator-payout-info",href:"javascript:void(0)",onClick:()=>{d(!0),(0,M.u4)(M.qY.EARNING_CALCULATOR_INFO_CLICKED,{subscribers:r,amountPerMonth:o,payoutPerMonth:s})},children:(0,a.jsx)(aK.A,{size:18,stroke:"var(--color-fg-secondary)"})}),(0,a.jsxs)(B.aF,{isOpen:c,onClose:()=>d(!1),children:[(0,a.jsx)(U.rQ,{title:e("Earnings Calculator"),onClose:()=>d(!1),showDivider:!0}),(0,a.jsx)(B.cw,{children:(0,a.jsxs)(E.VP,{gap:20,children:[(0,a.jsx)(y.EY.B4,{color:"secondary",children:u}),(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",children:e("How many subscribers could I get?")}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:e("It depends on how many people find value in what you're making. If you have a highly engaged email list, aim for 10% to become paid subscribers over time.")})]}),(0,a.jsxs)(E.VP,{gap:4,children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",children:e("How much could I charge?")}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:e("Usually more than you think! In general, for personal interest, try $5 to $10 per month. For professional interest, you can often go substantially higher.")})]}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:(0,a.jsx)(y.Yq,{decoration:"underline",href:"/?utm_source=".concat(eg.VU.about,"&utm_content=").concat(eg.fL.earningCalculator),children:e("See some real-world examples")})})]})}),(0,a.jsx)(B.jl,{direction:"column",primaryButton:(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>d(!1),children:e("Done")})})]})]}),(0,a.jsx)("a",{className:"borderless-calculator-button button primary",style:{height:"48px",lineHeight:"18px",borderRadius:"4px"},onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_GET_STARTED_CLICKED)},href:(0,N.f5H)({utm_source:eg.VU.about,utm_content:eg.fL.earningCalculator}),children:e("Get started")}),(0,a.jsx)("div",{className:"borderless-calculator-fineprint",children:e("Writers keep 90% of their revenue minus credit card fees.")})]})}let aq=()=>{let[e,t]=(0,o.useState)(800),[n,a]=(0,o.useState)(700),[i,r]=(0,o.useState)(463800),[s,l]=(0,o.useState)(!1);return{subscribers:e,amountPerMonth:n,payoutPerMonth:i,onUpdate:o=>{let{subs:s,amt:l}=o;if(!s&&!l)return;let c=Number(s)||e,d=Number(l)||n;t(c),a(d),r(100*Math.round(c*(d-.029*d-30-.1*d)/100)),(0,M.u4)(M.qY.EARNING_CALCULATOR_UPDATED,{payoutPerMonth:i,subscribers:c,amountPerMonth:d})},isModalOpen:s,setIsModalOpen:l}},aJ=(0,N.f5H)({utm_source:eg.VU.goingPaid}),aZ="going-paid";var aX=n(7350),aQ=n.n(aX),a$=n(87677),a0=n(16461);let a1=e=>{let{title:t,description:n,secondParagraph:i,children:r,id:o}=e;return(0,a.jsxs)("div",{className:"resources-section",id:o,children:[(0,a.jsxs)("h4",{className:"section-title",children:[" ",t," "]}),(0,a.jsxs)("p",{className:"section-description",children:[n,i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{})," ",(0,a.jsx)("br",{})," ",i]}):null]}),r]})},a2=e=>{let{title:t,link:n}=e;return(0,a.jsxs)("a",{href:n,className:"resource",target:"_blank",children:[(0,a.jsxs)("div",{className:"title-container",children:[(0,a.jsx)(a0.A,{className:"resource-icon"}),(0,a.jsx)("span",{className:"resource-title",children:t})]}),(0,a.jsx)(a$.A,{className:"arrow-icon",fill:"none"})]})},a3=e=>{let{title:t,byline:n,imageUrl:i,link:r}=e;return(0,a.jsx)("div",{className:"featured-resource",children:(0,a.jsxs)("a",{href:r,target:"_blank",children:[(0,a.jsx)("img",{src:(0,N.dJ9)(i,700),alt:"",className:"featured-image"}),(0,a.jsxs)("div",{className:"text-container",children:[(0,a.jsx)("h5",{className:"featured-title",children:t}),(0,a.jsxs)("div",{className:"featured-byline",children:[(0,a.jsx)(a0.A,{height:17,width:17,stroke:"#666666",className:"resource-icon"}),n]})]})]})})},a4=l(e=>{let{}=e,[t,n]=(0,o.useState)(0),{iString:i}=(0,h.GO)();return(0,o.useEffect)(()=>{document.body.style["overflow-x"]="unset";let e=aQ()(()=>{let e=document.querySelectorAll(".section-title"),t=Array.from(e).findIndex(e=>e.getBoundingClientRect().top>=200);n(null!=t?t:e.length)},100);return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[]),(0,a.jsxs)("div",{className:"going-paid-guide-page",children:[(0,a.jsx)(aL.k,{priority:"primary"}),(0,a.jsx)(J.O,{title:"Substack - Going paid guide",description:"If you’re writing on Substack and considering adding paid subscriptions, this guide will help you develop a successful paid publication."}),(0,a.jsxs)("div",{className:"going-paid-guide-hero",children:[(0,a.jsx)("h1",{className:"hero-header",children:i("A guide to paid subscriptions.")}),(0,a.jsx)("h2",{className:"hero-subtitle",children:i("If you’re writing on Substack and considering adding paid subscriptions, this guide will help you develop a successful paid publication.")})]}),(0,a.jsxs)("div",{className:"resources",children:[(0,a.jsx)("div",{className:"navigator",children:(0,a.jsxs)("div",{className:"floating-navigator",children:[(0,a.jsx)("a",{className:1==t||0==t?"selected":"",href:"#setting-goals",children:i("Start by setting goals")}),(0,a.jsx)("a",{className:2==t?"selected":"",href:"#publication-strategy",children:i("Develop a publication strategy")}),(0,a.jsx)("a",{className:3==t?"selected":"",href:"#design",children:i("Elevate your publication using design")}),(0,a.jsx)("a",{className:4==t?"selected":"",href:"#grow-free-list",children:i("Grow your free list")}),(0,a.jsx)("a",{className:5==t?"selected":"",href:"#prepare-launch",children:i("Prepare for a successful launch")}),(0,a.jsx)("a",{className:-1==t?"selected":"",href:"#grow-paid-list",children:i("Grow a paid readership")})]})}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)(a1,{title:i("Start by setting goals"),description:i("When trying to decide whether to go paid, start by taking a look at your numbers. The value of your writer-reader relationship can be measured along two major axes: reach and engagement. Your reach is the size of your readership, and your engagement is how much your readers pay attention. Assessing these factors will help you make informed decisions about your earning potential, and feel more confident when you do turn on paid subscriptions."),id:"setting-goals",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Goal-setting guide"),byline:i("Guide"),link:"https://on.substack.com/p/grow-1",imageUrl:"/img/going_paid_guide/1.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("Understand your numbers"),link:"https://support.substack.com/hc/en-us/articles/5320347155860-A-guide-to-Substack-metrics"}),(0,a.jsx)(a2,{title:i("A guide to your subscriber dashboard"),link:"https://on.substack.com/p/subscriber-dashboard-guide"}),(0,a.jsx)(a2,{title:i("Getting comfortable asking for money"),link:"https://on.substack.com/p/going-paid-the-examined-family"}),(0,a.jsx)(a2,{title:i("How Edwin Dorsey grew The Bear Cave"),link:"https://on.substack.com/p/going-paid-the-bear-cave"})]})]})}),(0,a.jsx)(a1,{title:i("Develop a publication strategy"),description:i("Subscribers don’t pay for a single post or piece of information. Rather, they will pay for ongoing access to a writer – their unique worldview, expertise, and style."),secondParagraph:i("In order to develop a potent publication strategy, you’ll need to be cognitively clear on who you are writing for and why they are drawn to your writing. Only once you have an understanding of who your readers are and why they tune into your writing, can you map out what you will offer these readers."),id:"publication-strategy",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Publication strategy guide"),byline:i("Guide"),link:"https://on.substack.com/p/grow-2",imageUrl:"/img/going_paid_guide/2.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("Building community around your publication"),link:"https://on.substack.com/p/how-to-build-community-around-your "}),(0,a.jsx)(a2,{title:i("Post format options on Substack"),link:"https://www.youtube.com/watch?v=1tiIL1OdyQs"}),(0,a.jsx)(a2,{title:i("What writers can provide their readers"),link:"https://on.substack.com/p/what-writers-can-do-for-readers-casey-newton "})]})]})}),(0,a.jsx)(a1,{title:i("Elevate your publication using design"),description:i("Readers’ impressions of your publication aren’t just about your writing. They also respond to the overall look and feel of your Substack site, posts, and social media presence. Effective, evocative design elements can level up how you visually communicate your publication’s value."),id:"design",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Guide to publication branding & design"),byline:i("Guide"),link:"https://on.substack.com/p/grow-3",imageUrl:"/img/going_paid_guide/3.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("Tools to customize & organize your publication"),link:"https://on.substack.com/p/guide-website-customization-organization"}),(0,a.jsx)(a2,{title:i("Designing a great reader experience"),link:"https://www.youtube.com/watch?v=WcT0TV-TlnA"}),(0,a.jsx)(a2,{title:i("Bringing your own designs to life"),link:"https://www.youtube.com/watch?v=PrnphjlFHcI"})]})]})}),(0,a.jsx)(a1,{title:i("Grow your free list"),description:i("The key to growth is writing and promoting your work regularly and consistently. It’s hard to predict which pieces will take off or when someone big will find and share your Substack. Even if growth feels slow at first, over time, the growth will compound into a self-propelling momentum."),id:"grow-free-list",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Guide to growing your readership"),byline:i("Guide"),link:"https://on.substack.com/p/grow-4",imageUrl:"/img/going_paid_guide/4.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("Why free posts pay"),link:"https://on.substack.com/p/why-free-posts-pay-avoiding-a-tempting"}),(0,a.jsx)(a2,{title:i("Developing revenue goals"),link:"https://on.substack.com/p/grow-1"}),(0,a.jsx)(a2,{title:i("How Scott Hines got his first 1,000 signups"),link:"https://on.substack.com/p/how-scott-hines-got-his-first-1000"}),(0,a.jsx)(a2,{title:i('Noah Smith’s "try before you buy" approach'),link:"https://on.substack.com/p/grow-series-16-noah-smith"}),(0,a.jsx)(a2,{title:i("How Erik Hoel found his first 4,000 subscribers"),link:"https://on.substack.com/p/grow-series-9"})]})]})}),(0,a.jsx)(a1,{title:i("Prepare for a successful launch"),description:i("A paid launch only happens once. Successful launch strategies attract a base of paid subscribers from which future growth will spring. So treat your launch as the most important moment in the life of your Substack. The best launches are not just one moment or one day, but a series of efforts that drive a wave of excitement, attention, and subscriptions to your work."),id:"prepare-launch",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Guide to launching paid subscriptions"),byline:i("Guide"),link:"https://on.substack.com/p/grow-5",imageUrl:"/img/going_paid_guide/5.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("How Christopher Curtis launched and grew The Rover"),link:"https://on.substack.com/p/going-paid-the-rover"}),(0,a.jsx)(a2,{title:i("Setting a price for your publication"),link:"https://on.substack.com/p/grow-1"}),(0,a.jsx)(a2,{title:i("How Lenny Rachitsky earned $65,000 in his first year of writing"),link:"https://on.substack.com/p/how-lenny-rachitsky-earned-65000"})]})]})}),(0,a.jsx)(a1,{title:i("Grow a paid readership"),description:i("Not every writer makes six figures overnight; some of the most successful writers on Substack took months to get to where they are today. The good news about subscription businesses is that recurring revenue is more steady and predictable than selling one-off content, like a book or an article."),secondParagraph:i("Even so, as you continue on your journey as an independent writer, you’ll have to experiment with ways to keep growing. We tend to see 5-10% of free subscribers convert to paying subscriptions, with 10% being a rate to aim for. If your conversion rate is significantly below 10%, use tried-and-true tactics from other writers to improve it."),id:"grow-paid-list",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(a3,{title:i("Guide to growing your paid subscribers"),byline:i("Guide"),link:"https://on.substack.com/p/free-vs-paid",imageUrl:"/img/going_paid_guide/6.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(a2,{title:i("A growth masterclass with Judd Legum of Popular Information"),link:"https://on.substack.com/p/a-growth-masterclass-with-judd-legum"}),(0,a.jsx)(a2,{title:i("How Walt Hickey of Numlock News expanded to multiple newsletters"),link:"https://on.substack.com/p/how-walt-hickey-of-numlock-news-expanded"})]})]})})]})]})]})}),a9=(0,N.f5H)({utm_source:eg.VU.goingPaid}),a8="going-paid";function a7(e){let{state:t,code:n,scope:i,error:r}=e;return(0,o.useEffect)(()=>{(0,f.V2)((0,N.yRP)("/api/v1/google/oauth_callback/with_session",{state:t,code:n,scope:i,error:r}),{local_navigation:!1})},[t,n,i,r]),(0,a.jsx)("div",{className:"main-loader",children:"Loading..."})}let a5=e=>{let{title:t,children:n,id:i}=e;return(0,a.jsxs)("div",{className:"events-section",id:i,children:[t&&(0,a.jsxs)("h3",{className:"section-title",children:[" ",t," "]}),n]})},a6=e=>{let{title:t,description:n,url:i}=e;return(0,a.jsx)("a",{href:i,className:"event",target:"_blank",children:(0,a.jsxs)("div",{className:"event-content",children:[(0,a.jsx)("h3",{className:"event-title",children:(0,a.jsx)("a",{href:i,children:t})}),(0,a.jsx)("p",{className:"event-description",children:n})]})})},ie=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"grow-page",children:[(0,a.jsx)(J.O,{title:"Substack Grow\xa0– a crash course for writers ready to pursue independence",description:"Substack Grow is a series of six workshops for writers who want to grow. It covers the essential knowledge writers need to grow their readership and paid subscriptions on Substack."}),(0,a.jsxs)("div",{className:"grow-hero",children:[(0,a.jsx)("div",{className:"hero-preamble",children:"Substack Grow"}),(0,a.jsx)("h1",{className:"hero-header",children:"The essential knowledge writers need to succeed on Substack."}),(0,a.jsx)("h2",{className:"hero-subtitle",children:"Substack Grow is a crash course for writers ready to pursue independence by building a loyal readership and kickstarting paid subscriptions."})]}),(0,a.jsxs)("div",{className:"explain-section",children:[(0,a.jsx)("img",{className:"explain-section-image",src:"/img/grow_page/grow.png",alt:""}),(0,a.jsxs)("div",{className:"explain-section-content",children:[(0,a.jsx)("div",{className:"explain-section-header",children:"Substack Grow is a series of six workshops for writers who want to grow"}),(0,a.jsxs)("div",{className:"explain-section-description",children:["It covers the essential knowledge writers need to grow their readership and paid subscriptions on Substack.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"All sessions are free, "}),"and participating writers can choose to attend all sessions or only the most relevant ones.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Because promoting your writing and going paid can be intimidating, Substack Grow is designed to be a collaborative experience. Participants will have the opportunity to workshop ideas with their peers during live sessions, and to continue conversations online together.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"The live sessions for the first Substack Grow ended. Writers can access the recaps from the live session on the ",(0,a.jsx)("a",{href:"https://on.substack.com",children:"Substack Blog"})," "," or view the curriculum below."]})]})]}),(0,a.jsxs)("div",{className:"events-container",children:[(0,a.jsxs)(a5,{id:"past-events",title:"Curriculum",children:[(0,a.jsx)(a6,{title:"Setting goals for your Substack",description:"Writers can’t achieve goals if they don’t set them. In this session, we’ll help you get clear on what growth you’d like to see on Substack and work on setting ambitious but realistic goals for growth.",date:"August 11, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-1"}),(0,a.jsx)(a6,{title:"Developing a publication strategy",description:"Successful publications “do a job” for their readers. We’ll help you crystallize the value of your publication and make a plan for how to realize that value through both free and paid posts.",date:"August 18, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-2"}),(0,a.jsx)(a6,{title:"Building a home for your publication",description:"Learn how to construct the essential architecture of your Substack publication - from visual assets to post formatting.",date:"August 25, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-3"}),(0,a.jsx)(a6,{title:"Growing your readership",description:"Promoting a Substack publication sounds simple, but for many writers this can be the hardest step. So we’ve gathered expert tips and key insights on how to spread the word about your Substack.",date:"September 1, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-4"}),(0,a.jsx)(a6,{title:"Preparing for a successful launch",description:"Pin down your strategy for one of the biggest moments in any independent writer’s journey: the transition from free to paid subscriptions.",date:"September 8, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-5"}),(0,a.jsx)(a6,{title:"Growing a paid readership",description:"Learn what works for converting free readers to paid subscribers.",date:"September 15, 2021 at 4pm PT / 7pm ET",url:"https://on.substack.com/p/grow-6"})]}),(0,a.jsx)("div",{className:"blog-cta"}),(0,a.jsxs)("div",{className:"questions-container",children:[(0,a.jsx)("div",{className:"questions-header",children:"Who is Substack Grow for?"}),(0,a.jsxs)("div",{className:"questions-subtitle",children:[(0,a.jsx)("strong",{children:"Writers eager to set the foundation for striking out on their own. "}),"Professional writers looking to start an independent publication that is financially viable. Entrepreneurial and emerging writers who want to earn money by writing about their passions or expertise. Writers and editors banding together to cover a topic not well served in existing media.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"Committed writers "}),"who have been publishing consistently on Substack and seeing promising signals that they could turn on paid subscriptions (e.g. list sizes in the hundreds or thousands, open rates of 25% or higher)."]})]})]})]})}),it="quoteSection-t8xKtZ",ia="quoteSectionQuote-mxiMYC",ii="benefit-DlOsww",ir=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.growth});var io=n(94394),is=n.n(io);let il=[{name:"Ghoghari Hasnain – Cyberrubus",year:2025,link:"https://www.linkedin.com/in/hasnain-g-9667ba1ba"},{name:"Marco Apolonio",year:2025},{name:"Abhirup Konwar",link:"https://www.linkedin.com/in/abhirup-konwar-a626201a6",year:2025},{name:"Michal Biesiada",link:"https://github.com/mbiesiad",year:2025},{name:"Hans Gr\xf8nskag Hammer",link:"https://www.linkedin.com/in/hansghammer/",year:2025},{name:"Sidharth Banthia",link:"https://www.linkedin.com/in/sidharth-banthia-0aa308272",year:2024},{name:"Sangharsha Upadhyaya",link:"https://github.com/noob6t5",year:2024},{name:"Oluwatimilehin Alabi",year:2024,link:"https://www.linkedin.com/in/alviiin/"},{name:"Bernardo Rodrigues",link:"https://www.linkedin.com/in/Bernardofsrodrigues",year:2024},{name:"Pham Khanh from Calif",link:"https://www.linkedin.com/in/pham-k-68414378/",year:2024},{name:"zakx",link:"https://koeln.ccc.de/",year:2023},{name:"MacroVisor",link:"https://macrovisor.substack.com/",year:2023},{name:"Ayesha Tariq",link:"https://ayeshatariq.substack.com/",year:2023},{name:"Peter Schiffer",link:"mailto:peter@pschiffer.eu",year:2022},{name:"Mipam Ludwig Uderzo",link:"https://www.linkedin.com/in/mipam-ludwig-uderzo-49099820b/",year:2022}],ic=e=>{let{year:t,legends:n}=e;return(0,a.jsxs)("div",{className:"fame-acknowledgements-year-block",children:[(0,a.jsx)("div",{className:"fame-acknowledgements-year",children:t}),(0,a.jsx)("div",{className:"fame-acknowledgements-name",children:(0,a.jsx)("ul",{children:n.map(e=>(0,a.jsx)(id,{name:e.name,link:e.link}))})})]})},id=e=>{let{name:t,link:n}=e;return(0,a.jsx)("li",{children:n?(0,a.jsx)("a",{target:"_blank",rel:"noopener",href:n,children:t}):t})};var iu=n(84565),ip=n(12215),im=n(10996);n(97432),n(24142),n(53989),n(99520),n(39520),n(53928);var ih=n(54754),ig=n(55247),i_=n(49095),ib=n(28194);function iA(){let e=(0,u._)(["By ",""]);return iA=function(){return e},e}function iE(e){let{includePrice:t=!0,includeRankingDetail:i=!0,includeByline:r=!0,includeBadge:o=!1,rankingDetailOverrideText:s=null,language:l="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l||e.language,{iTemplate:d}=I18N.i(l||e.language),u=(0,aH.getByLine)(e),p=null;return i&&(p=s||(e.rankingDetailByLanguage&&"en"!==c&&e.rankingDetailByLanguage[c]?e.rankingDetailByLanguage[c].rankingDetail:e.rankingDetail)),(0,a.jsxs)(ih.r,{separator:" \xb7 ",children:[r&&u?(0,a.jsxs)(E.pT,{inline:!0,gap:4,children:[d(iA(),u),o&&(0,a.jsx)(au.Ic,{module:"../user_badge/UserBadge",resolve:e=>e.UserStatusSymbols,onRequest:()=>Promise.resolve().then(n.bind(n,49095)),size:"sm",tier:e.author_bestseller_tier,userId:e.author_id,whileLoading:e.author_bestseller_tier?(0,a.jsx)(E.pT,{alignItems:"center",children:(0,a.jsx)(i_.UserStatusSymbols,{size:"sm",tier:e.author_bestseller_tier})}):(0,a.jsx)(a.Fragment,{})})]}):null,p,t&&function(e,t){let{language:n}=t,a=!e.disable_monthly_subscriptions&&e.plans&&e.plans.filter(e=>"month"===e.interval).sort((e,t)=>e.amount-t.amount)[0],i=!e.disable_annual_subscriptions&&e.plans&&e.plans.filter(e=>"year"===e.interval).sort((e,t)=>e.amount-t.amount)[0],r=a||i;if(r)return(0,ib.xB)(r,{language:n})}(e,{language:l})]})}n(56262);var iy=n(60250),iN=n(8853),iO=n(37767),iv=n(68410),ix=n(49315),iS=n(52673);function iw(e){let{className:t,hideBorders:n,items:i,menuItemClassName:r,selectedMenuItemClassName:s,selectedSlug:l,pub:c,maxWidth:d}=e,{isMobile:u}=(0,iv.sM)(),p=(0,o.useRef)(null),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(!1);function b(e){let{scrollLeft:t,scrollWidth:n,clientWidth:a}=e;h(t>10),_(n-(a+t)>10)}let f=e=>()=>{let{current:t}=p;t&&t.scrollBy({left:250*e,behavior:"smooth"})};return(0,o.useEffect)(()=>{b(p.current)},[]),(0,a.jsx)("div",{className:I()("overflow-list-container",t),style:{maxWidth:d},children:(0,a.jsxs)(E.Ye,{borderBottom:n?void 0:"detail",borderTop:n||u?void 0:"detail",className:I()("section-bar",{scroll:!0,"overflow-left":m,"overflow-right":g}),font:"text",height:u?44:48,justifyContent:u?"start":"center",paddingX:4,position:"relative",children:[(0,a.jsx)("div",{ref:p,className:"overflow-items",onScroll:e=>b(e.target),children:i.map(e=>{let{label:t,href:n,slug:i,isNative:o,onClick:d,noFollow:u,subItems:p,newTab:m}=e;return p?(0,a.jsx)(ix.W1,{align:"start",trigger:(0,a.jsx)("div",{className:I()("menu-item",{selected:i===l},r,s&&{[s]:i===l}),children:(0,a.jsxs)(iO.A,{native:o,rel:u?"nofollow":null,onClick:d,children:[(0,a.jsx)("span",{className:"overflow-item-text",children:t}),(0,a.jsx)(aG.A,{className:iS.A.chevron,size:16})]})}),children:p.map(e=>{let{label:t,href:n,isNative:i,onClick:r,noFollow:o,logoUrl:s}=e,l=s||(null==c?void 0:c.logo_url);return(0,a.jsx)(ix.Dr,{href:n,leading:l?(0,a.jsx)(iN.c,{height:24,radius:"xs",src:l,width:24}):null,native:i,rel:o?"nofollow":void 0,onClick:r,children:t})})}):(0,a.jsx)("div",{className:I()("menu-item",{selected:i===l},r,s&&{[s]:i===l}),children:(0,a.jsx)(iO.A,{href:n,native:o,newTab:m,rel:u?"nofollow":null,onClick:d,children:(0,a.jsx)("span",{className:"overflow-item-text",children:t})})})})}),(0,a.jsx)("div",{className:"left-button",children:(0,a.jsx)("div",{className:"scroll-button-hitbox",role:"button",onClick:f(-1),children:(0,a.jsx)(iy.A,{strokeWidth:1.5})})}),(0,a.jsx)("div",{className:"right-button",children:(0,a.jsx)("div",{className:"scroll-button-hitbox",role:"button",onClick:f(1),children:(0,a.jsx)(a$.A,{strokeWidth:1.5})})})]})})}var iI=n(73030);let iM="itemRank-xfPl0Z",iC="itemLogoAndName-zNnZEJ",ik="itemNameAndAuthor-SioTbw";function ij(e){var t,n;let{iString:i,language:r}=(0,h.GO)(),{publications:o,categories:s,ranking:l,onCategoryClicked:c,categoryId:d}=e,u="featured"===d,p=s.find(e=>e.id===d),m=[{label:i("Featured"),slug:"featured",onClick:()=>c({categoryId:"featured",ranking:null!=l?l:null,categories:s})}].concat(s.map(e=>({label:i(e.name),slug:e.slug,onClick:()=>c({categoryId:e.id,ranking:null!=l?l:null,categories:s})})));return(0,a.jsxs)(eR,{title:i("Publish on Substack and own your work"),contentWidth:"wide",children:[(0,a.jsx)("div",{className:"menuContainer-FQSLc7",children:(0,a.jsx)(iw,{hideBorders:!0,items:m,selectedSlug:null!=(t=null==p?void 0:p.slug)?t:"featured",className:"overflowMenu-IIwUC4",menuItemClassName:"menuItem-zDsx3A",selectedMenuItemClassName:"selectedMenuItem-blc7ZM"})}),(0,a.jsx)(iL,{publications:o,categoryId:d,language:r}),(0,a.jsx)(E.pT,{paddingTop:40,children:(0,a.jsx)(A.$n,{priority:"primary",size:"lg",href:u?(0,aS.jS)("staff-picks"):(0,aS.jS)(null!=(n=null==p?void 0:p.slug)?n:"staff-picks"),localNavigation:!1,children:i("See who else is on Substack")})})]})}function iL(e){let{publications:t,categoryId:n,language:i}=e;if("featured"===n&&t.length){let e=(0,iI.PX)(i);return(0,a.jsx)(ep.az,{gap:48,className:"staticHomepagePublicationDisplay-WSJLKn","data-test-id":"HomepageLeaderboardWrapper",children:t.sort((t,n)=>{var a,i;return(null==(a=e[t.id])?void 0:a.rank)-(null==(i=e[n.id])?void 0:i.rank)}).map(t=>{var n;return(0,a.jsx)(iR,{pub:t,blurb:null==(n=e[t.id])?void 0:n.blurb})})})}return(0,a.jsx)(E.I1,{"data-test-id":"HomepageLeaderboardWrapper",gap:{desktop:56,mobile:40},className:"leaderboard-V8C1AP",children:0===t.length?[1,2,3,4,5].map(e=>(0,a.jsx)(iP,{num:e})):t.map((e,t)=>(0,a.jsx)(iT,{pub:e,index:t,categoryId:n},e.id))})}function iR(e){var t;let{pub:n,blurb:i}=e,r=(0,N.fOI)(n,{params:{UTM_SOURCE:eg.VU.leaderboard}}),o=null!=i?i:"",s=/\[.+\]\(https:\/\/.+\)/g,l=o.split(s).filter(Boolean),c=1===l.length?null:null==(t=o.match(s))?void 0:t[0].split(/\[|\]|\(|\)/).filter(Boolean);return(0,a.jsxs)(E.I1,{gap:16,children:[(0,a.jsxs)(E.I1,{children:[(0,a.jsx)(ad.Nq,{size:48,pub:n}),(0,a.jsx)(y.EY.H3,{as:"a",href:r,weight:"semibold",color:"primary",font:"serif",paddingTop:8,children:n.name}),(0,a.jsx)(y.EY.H4,{color:"primary",weight:"regular",font:"serif",children:n.author_name})]}),c?(0,a.jsxs)(y.EY.B2,{children:[l[0],(0,a.jsx)(y.EY.B3,{as:"a",href:c[1],children:c[0]}),l[1]]}):(0,a.jsx)(y.EY.B2,{children:o})]},n.id)}function iT(e){var t;let{pub:n,index:i,categoryId:r}=e,o=(0,N.fOI)(n,{params:{utm_source:eg.VU.leaderboard}}),s=n.author_name||(null==(t=n.author)?void 0:t.name)||n.name,{language:l}=(0,h.GO)();return(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:20,mobile:16},children:[(0,a.jsx)("div",{className:iM,children:i+1}),(0,a.jsxs)(E.pT,{className:iC,direction:{desktop:"row",mobile:"column"},gap:{desktop:32,mobile:16},children:[(0,a.jsx)(ad.Nq,{belowTheFold:!0,pub:n,size:64}),(0,a.jsx)("a",{href:o,onClick:()=>{(0,M.fN)(n,"leaderboards",{position:i+1,category:r})},rel:"noopener","data-native":!0,children:(0,a.jsxs)(E.I1,{gap:4,className:ik,children:[(0,a.jsx)(y.EY.MarketingHeading4,{children:n.name}),(0,a.jsx)(y.EY.MarketingHeading5,{children:s})]})})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(y.EY.MarketingBody,{children:n.editorial_bio||n.hero_text}),(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",children:iE(n,{includeByline:!1,language:l})})]})]},n.id)}function iP(e){let{num:t}=e;return(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{desktop:20,mobile:16},children:[(0,a.jsx)("div",{className:iM,children:t}),(0,a.jsxs)(E.pT,{className:iC,direction:{desktop:"row",mobile:"column"},gap:{desktop:32,mobile:16},children:[(0,a.jsx)(al.O,{width:64,height:64,radius:"sm"}),(0,a.jsxs)(E.I1,{gap:4,className:ik,children:[(0,a.jsx)(E.pT,{paddingBottom:4,children:(0,a.jsx)(al.O,{height:30,width:200})}),(0,a.jsx)(al.O,{height:24,width:140})]})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(al.O,{}),(0,a.jsx)(al.O,{})]})]})}var iD=n(99862);let iB=(e,t)=>t?e.slice(0,t):e,iU=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,_.x6)("/api/v1/category/public/".concat(e,"/").concat(t,"?page=").concat(n))},iG=e=>{let{categoryId:t,ranking:n,categories:a}=e,i="";"string"==typeof t&&["twitter"].includes(t)&&(i=t);let r=a.find(e=>e.id===t);return((null==r?void 0:r.slug)&&(i="".concat(r.slug,"/").concat(n)),i)?"/discover/category/".concat(i):"/discover"},iF={desktop:15,mobile:6},iW=e=>{let{className:t,hasFeatured:n,categories:i,categoryId:r,categoryIds:s,loadingCategoryId:l,ranking:c,onCategoryClicked:d,defaultExpanded:u,expandedCategoryIds:p,onToggleCategory:m}=e,[g,_]=(0,o.useState)(u||!1),[b,f]=(0,o.useState)(new Set),E=iF[(0,eZ.useMediaQuery)({query:"only screen and (max-width: 650px)"})?"mobile":"desktop"],{iString:y}=(0,h.GO)(),N=null!=p?p:b,O=i?g?i:i.slice(0,E):[],v=e=>e.id===r||(null==s?void 0:s.includes(e.id));return(0,a.jsxs)("div",{className:I()("categories",t),children:[n&&(0,a.jsx)(A.$n,{priority:"featured"!==r||l&&"featured"!==l?"secondary":"primary-mono",loading:"featured"===l&&"featured"!==r,onClick:()=>{d({categoryId:"featured",ranking:"all",categories:i})},children:y("Featured")}),O.map(e=>{var t;let n=N.has(e.id),o=e.subcategories&&e.subcategories.length>0,s=v(e)&&(!l||l===e.id),u=l===e.id&&r!==e.id;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.$n,{priority:s?"primary-mono":"secondary-outline",loading:u,onClick:()=>{var t;d({categoryId:e.id,ranking:c,categories:i}),o&&(t=e.id,m?m(t):f(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}))},className:s?"test-active":"test-inactive",children:y(e.name||"")}),n&&o&&(null==e||null==(t=e.subcategories)?void 0:t.map(e=>{let t=v(e)&&(!l||l===e.id),n=l===e.id&&r!==e.id;return(0,a.jsx)(A.$n,{priority:t?"primary-mono":"secondary",loading:n,onClick:()=>d({categoryId:e.id,ranking:c,categories:i}),children:y(e.name)},e.id)}))]})}),i&&i.length>E&&!g&&(0,a.jsx)(A.K0,{priority:"secondary-outline",onClick:()=>_(!0),children:(0,a.jsx)(ao.A,{size:20})})]})},iY=e=>{let{publications:t,explanations:n,ranking:i,openInNew:r,startRankAt:o=0,source:s,onPublicationVisited:l=null,user:c,categoryId:d}=e,{language:u}=(0,h.GO)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"publications",children:t.map((e,t)=>{var p,m,h,g,_,b,f;let A,E=n&&n[t];if(!e)return;E||(E=[]);let y=E.filter(e=>["posts.title","posts.subtitle"].includes(e.type)),O=!!(null==(g=y[0])||null==(h=g.posts)||null==(m=h[0])||null==(p=m[0])?void 0:p.slug);O&&(A=null==(f=y[0])||null==(b=f.posts)||null==(_=b[0])?void 0:_[0]);let v=E.filter(e=>"description"===e.type)[0],x=E.filter(e=>["name","subdomain","hero_text","custom_domain","author_name"].includes(e.type)).length>0||!v&&!A,S=E.filter(e=>"description"===e.type).map(e=>e.keyword),w=E.filter(e=>["posts.title","posts.subtitle"].includes(e.type)).map(e=>e.keyword),I=(0,N.fOI)(e,{params:{utm_source:s||eg.VU.discover},signedIn:!!c});return(0,a.jsxs)("a",{className:"publication",href:I,"data-native":!0,target:r?"_blank":void 0,onClick:()=>{(0,M.fN)(e,s||"leaderboards",{position:t+1,category:d}),l&&l(e)},rel:"noopener",children:["paid"===i?(0,a.jsx)("div",{className:"publication-rank",children:t+1+o}):null,(0,a.jsxs)("div",{className:"publication-content",children:[(0,a.jsx)(ad.Nq,{pub:e,belowTheFold:!0}),(0,a.jsxs)("div",{className:"publication-text-area",children:[(0,a.jsx)("div",{className:"publication-title",children:e.name}),(x||A)&&(0,a.jsx)("div",{className:"publication-description",children:e.editorial_bio||iK(e.hero_text,S)}),!x&&v&&!A&&(0,a.jsx)("div",{className:"publication-description",children:iK(v.sentence,S)}),!x&&A&&(0,a.jsx)("div",{className:"publication-explanation-box",children:O&&(0,a.jsx)("a",{className:"title",href:(0,N.wu9)(e,A),children:(0,a.jsxs)("div",{className:"post-preview-content",children:[(0,a.jsxs)("div",{className:"left-flex",children:[(0,a.jsx)("p",{className:"title",children:iK(A.title,w)}),(0,a.jsx)("p",{className:"subtitle",children:iK(A.subtitle,w)})]}),(0,a.jsx)("div",{className:"right-flex",children:(0,a.jsx)("img",{src:A.cover_image,className:A.cover_image?"":"no-preview"})})]})})}),(0,a.jsx)("div",{className:"publication-author",children:iE(e,{language:u})})]})]})]},e.id)})})})};function iK(e,t){if(!e)return"";let n=RegExp(t.join("|"),"ig"),i=e.split(n),r=[...e.matchAll(n)];return(0,a.jsx)("span",{children:i.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[e,t!==i.length-1&&(0,a.jsx)("b",{children:r[t]})]}))})}let iH=e=>{let{onCategoryClicked:t,categoryId:n,ranking:i,loadingRanking:r,categories:o}=e;return"string"==typeof n&&["featured","twitter"].includes(n)?null:(0,a.jsxs)("div",{className:"ranking-toggle",children:[(0,a.jsx)(iO.A,{className:I()({active:"paid"===i&&!r||"paid"===r,loading:"paid"===r&&"paid"!==i}),onClick:()=>t({categoryId:n,ranking:"paid",categories:o}),children:"Top paid"})," \xb7 ",(0,a.jsx)(iO.A,{className:I()({active:"all"===i&&!r||"all"===r,loading:"all"===r&&"all"!==i}),onClick:()=>t({categoryId:n,ranking:"all",categories:o}),children:"All"})]})},iV=e=>{var{Component:t=iz}=e;let n=function(e){let t=c(),{categories:n,publications:a=[],categoryId:i,featuredPublications:s=[],user:l,categorySlug:d="featured",rankingSlug:u,hasMore:p,updateUrl:m=!1,maxPublications:h=5,homepageFeaturedPublications:g=[],isHomepage:b}=(0,r._)({},t,e),f=b?8:h,[A,E]=(0,o.useState)(null!=n?n:[]),[y,N]=(0,o.useState)(iB(a,h)),[O,v]=(0,o.useState)(null!=i?i:"featured"),[x,S]=(0,o.useState)(b&&g.length?iB(g,f):iB(s,h)),[w,I]=(0,o.useState)(null),[C,k]=(0,o.useState)("paid"),[j,L]=(0,o.useState)(null),[R,T]=(0,o.useState)(0),[P,D]=(0,o.useState)(!!p);(0,o.useEffect)(()=>{let e=u||"paid";k(e),A||(0,_.x6)("/api/v1/homepage/initial-category-data").then(t=>{let{categories:n,publications:a,featuredPublications:i}=t;E(n);let r=(0,iI.D$)(d,n);return(v(r),S(iB(i,h)),"featured"===r)?a:iU(r,e,0).then(e=>{let{publications:t,more:n}=e;return T(0),h||D(n),t})}).then(e=>{N(iB(e,h))})},[A,d,u,h]);let B=(0,o.useCallback)(()=>{let e=R+1;(0,M.u4)(M.qY.VIEWED_MORE_CATEGORY,{categoryId:O,ranking:C,page:e}),iU(O,C,e).then(t=>{let{publications:n,more:a}=t,i=new Set(y.map(e=>e.id));T(e),N(y.concat(n.filter(e=>!i.has(e.id)))),D(a)})},[O,C,R,y,T,N,D]),U=(0,o.useCallback)(async e=>{let{categoryId:t,ranking:n}=e;if(v(t),T(0),"featured"===t||"twitter"===t){I(null),L(null),D(!1),"featured"===t&&N(iB(x,h));return}I(t),L(n),N([]),D(!1);let{publications:a,more:i}=await iU(t,n,0);v(t),I(null),L(null),k(n),T(0),h||D(i),N(iB(a,h))},[I,L,v,T,D,N,x,h]);return{categories:A,publications:"featured"===O?x:y,categoryId:O,ranking:null!=C?C:void 0,loadingCategoryId:w,loadingRanking:j,featuredPublications:x,user:null!=l?l:void 0,categorySlug:d,rankingSlug:u,hasMore:P,viewMore:B,loadPublications:U,onCategoryClicked:e=>{let{categoryId:t,ranking:n,categories:a}=e;(0,M.u4)(M.qY.CLICKED_CATEGORY,{categoryId:t,ranking:n}),m&&(0,iD.route)(iG({categoryId:t,categories:a,ranking:n}),!0),U({categoryId:t,ranking:n})},getCategoryIdFromSlug:iI.D$,setCategoryId:v,setRanking:k,onRankingChange:e=>{k(e),m&&(0,iD.route)(iG({categoryId:O,categories:A,ranking:e}),!0),U({categoryId:O,ranking:e})},maxPublications:h}}((0,tt._)(e,["Component"]));return n.categories?(0,a.jsx)(t,(0,r._)({},n)):null};class iz extends o.Component{componentDidUpdate(e){if(this.props.categorySlug===e.categorySlug&&this.props.rankingSlug===e.rankingSlug)return;let t=(0,iI.D$)(this.props.categorySlug,this.props.categories),n=this.props.rankingSlug||"paid";this.props.loadPublications({categoryId:t,ranking:n})}startReading(e){window.sessionStorage.setItem("initialJoinSubstack","true"),(0,M.u4)(M.qY.HOMEPAGE_READER_LINK_CLICKED,{url:(0,N.q$g)()}),(0,f.V2)((0,N.q$g)(),{event:e})}render(){let{categories:e,publications:t,categoryId:n,loadingCategoryId:i,ranking:r,loadingRanking:o,onCategoryClicked:s,hasMore:l,viewMore:c,featuredPublications:d,maxPublications:u}=this.props,p="featured"===n,m="twitter"===n,h=e.find(e=>e.id===n);return(0,a.jsx)("div",{className:I()("new-landing-page reader-landing-page page",{"category-featured":p}),children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"landing-content",children:[(0,a.jsxs)("div",{className:"landing-section landing-publications",children:[(0,a.jsx)("div",{className:"publications-header not-mobile",children:(0,a.jsx)(iH,{categories:e,categoryId:n,ranking:r,onCategoryClicked:s})}),(0,a.jsx)(iY,{publications:t,ranking:p?"all":r,categoryId:n}),"all"===r&&!p&&!m&&!u&&l&&(0,a.jsx)("div",{className:"view-more",children:(0,a.jsx)(A.$n,{priority:"secondary-outline",onClick:c,children:"View more"})}),u&&"featured"!==n&&(0,a.jsx)("div",{className:"see-all",style:{paddingLeft:"all"===r?"108px":"146px"},children:(0,a.jsxs)("a",{href:p?(0,N.U4Y)():(0,N.U4Y)(h,r),"data-native":!0,children:["See all"," ",(0,a.jsx)(a$.A,{size:11,stroke:"var(--color-fg-primary-themed)",style:{marginLeft:"3px"}})]})})]}),(0,a.jsxs)("div",{className:"landing-section landing-categories",children:[(0,a.jsx)("div",{className:"only-mobile",children:(0,a.jsx)("div",{className:"mobile-toggle",children:(0,a.jsx)(iH,{categories:e,categoryId:n,ranking:r,onCategoryClicked:s})})}),(0,a.jsx)(iW,{hasFeatured:d&&d.length>0,categories:e,categoryId:n,loadingCategoryId:i,onCategoryClicked:s,ranking:r,loadingRanking:o})]})]})})})}}var iq=n(26683),iJ=n(27749),iZ=n(38952),iX=n(64892),iQ=n(16267),i$=n(5180),i0=n(41842),i1=n(97307),i2=n(97213),i3=n(25006),i4=n(60322),i9=n(95555),i8=n(48965),i7=n(56720),i5=n(96400),i6=n(91392);let re=e=>{let{iString:t}=i5.TH.i(e||"en");return[{name:"_ga family",id:i6.Pv.GA_TRACKING,type:i6.UF.PERFORMANCE,description:t("3rd party analytics tracking."),owner:i6.pz.PUBLISHER},{name:"Google Tag Manager",id:i6.Pv.GA_TAG_MANAGER,type:i6.UF.PERFORMANCE,description:t("Used for Google tag management and 3rd party analytics tracking."),owner:i6.pz.PUBLISHER},{name:"Facebook Pixel",id:i6.Pv.FB_PIXEL,type:i6.UF.PERFORMANCE,description:t("Used for facebook ad campaign 3rd party analytics."),owner:i6.pz.PUBLISHER},{name:"Twitter Pixel",id:i6.Pv.TWITTER_PIXEL,type:i6.UF.PERFORMANCE,description:t("Used for X (formerly known as Twitter) ad campaign 3rd party analytics."),owner:i6.pz.PUBLISHER},{name:"Parse.ly Pixel",id:i6.Pv.PARSELY_PIXEL,type:i6.UF.PERFORMANCE,description:t("Used for parse.ly 3rd party analytics."),owner:i6.pz.PUBLISHER},{name:"intro_popup_last_hidden_at",id:i6.HY.INTRO_POPUP_LAST_HIDDEN_AT,type:i6.UF.FUNCTIONALITY,description:t("Prevents showing introductory information the user has already seen."),owner:i6.pz.SUBSTACK},{name:"muxData",id:i6.HY.MUX_DATA,type:i6.UF.FUNCTIONALITY,description:t("Used for anonymous video metric collection and aggregation."),owner:i6.pz.SUBSTACK},{name:"like_upsell_last_shown_at",id:i6.HY.LIKE_UPSELL_LAST_SHOWN_AT,type:i6.UF.FUNCTIONALITY,description:t("Prevents users from repeatedly being shown features."),owner:i6.pz.SUBSTACK},{name:"chatbot_terms_last_accepted_at",id:i6.HY.CHATBOT_TERMS_LAST_ACCEPTED_AT,type:i6.UF.FUNCTIONALITY,description:t("Prevents users from repeatedly having to accept chatbot terms."),owner:i6.pz.SUBSTACK},{name:"preferred_language",id:i6.HY.PREFERRED_LANGUAGE,type:i6.UF.FUNCTIONALITY,description:t("Stores the user's preferred language"),owner:i6.pz.SUBSTACK},{name:"visit_id",id:i6.HY.VISIT_ID,type:i6.UF.PERFORMANCE,description:t("First party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"ajs_anonymous_id",id:i6.HY.ANONYMOUS_ID,type:i6.UF.PERFORMANCE,description:t("First party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"ab_testing_id",id:i6.HY.AB_TESTING_ID,type:i6.UF.PERFORMANCE,description:t("First party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"ab_experiment_sampled",id:i6.HY.AB_EXPERIMENT_SAMPLED,type:i6.UF.PERFORMANCE,description:t("First party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"_ga family",id:i6.HY.GA_TRACKING,type:i6.UF.PERFORMANCE,description:t("3rd party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"AdQuick tracking pixel",id:i6.HY.AD_QUICK_TRACKING_PIXEL,type:i6.UF.PERFORMANCE,description:t("3rd party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"Meta tracking pixel",id:i6.HY.META_TRACKING_PIXEL,type:i6.UF.PERFORMANCE,description:t("3rd party analytics tracking."),owner:i6.pz.SUBSTACK},{name:"_dd_s",id:i6.HY.DATADOG_S,type:i6.UF.PERFORMANCE,description:t("First party cookie used to identify and diagnose technical problems on the site."),owner:i6.pz.SUBSTACK},{name:"fs_uid",id:i6.HY.FULLSTORY_UID,type:i6.UF.PERFORMANCE,description:t("Used to track user actions across the site for debugging purposes."),owner:i6.pz.SUBSTACK},{name:"__zlcmid",id:i6.HY.ZENDESK_ID,type:i6.UF.PERFORMANCE,description:t("Stores visitor’s machine-id for authentication with Zendesk chat widget."),owner:i6.pz.SUBSTACK},{name:"substack.sid",id:i6.HY.SESSION_SID,type:i6.UF.NECESSARY,description:t("Session identifier."),owner:i6.pz.SUBSTACK},{name:"connect.sid",id:i6.HY.CUSTOM_DOMAIN_SESSION_SID,type:i6.UF.NECESSARY,description:t("Session identifier."),owner:i6.pz.SUBSTACK},{name:"substack.lli",id:i6.HY.LIKELY_LOGGED_IN,type:i6.UF.NECESSARY,description:t("Communicates login state across first party domains"),owner:i6.pz.SUBSTACK},{name:"disable_html_pixels",id:i6.HY.DISABLE_HTML_PIXELS,type:i6.UF.NECESSARY,description:t("Ensures a consistent user experience across network requests."),owner:i6.pz.SUBSTACK},{name:"experiment_",id:i6.HY.DISABLE_EXPERIMENTS,type:i6.UF.NECESSARY,description:t("Ensures a consistent user experience across network requests."),owner:i6.pz.SUBSTACK},{name:"hideCookieBanner",id:i6.HY.HIDE_COOKIE_BANNER,type:i6.UF.NECESSARY,description:t("Ensures a consistent user experience across network requests."),owner:i6.pz.SUBSTACK},{name:"cf_clearance",id:i6.HY.CF_CLEARENCE,type:i6.UF.NECESSARY,description:t("Used to grant access to our servers from our Content Delivery Network."),owner:i6.pz.SUBSTACK},{name:"__cf_bm",id:i6.HY.CF_BM,type:i6.UF.NECESSARY,description:t("Used to block bot access to the site"),owner:i6.pz.SUBSTACK},{name:"AWSALBTG / AWSALBTGCORS",id:i6.HY.AWSALB,type:i6.UF.NECESSARY,description:t("Ensures a consistent user experience across network requests."),owner:i6.pz.SUBSTACK},{name:"cookie_storage_key",id:i6.HY.COOKIE_STORAGE_KEY,type:i6.UF.NECESSARY,description:t("Allows us to store your cookie preferences."),owner:i6.pz.SUBSTACK},{name:"substack.oauth_interaction",id:i6.HY.OAUTH_INTERACTION,type:i6.UF.NECESSARY,description:t("Manages your current step in a multi-stage OAuth process like login or consent."),owner:i6.pz.SUBSTACK},{name:"substack.oauth_session",id:i6.HY.OAUTH_SESSION,type:i6.UF.NECESSARY,description:t("Keeps your OAuth logins active."),owner:i6.pz.SUBSTACK},{name:"substack.oauth_resume",id:i6.HY.OAUTH_RESUME,type:i6.UF.NECESSARY,description:t("Helps continue a multi-stage process after you have completed an action, like logging in or giving consent."),owner:i6.pz.SUBSTACK}]},rt=re().filter(e=>e.owner===i6.pz.SUBSTACK&&e.type!==i6.UF.NECESSARY).map(e=>e.id),rn=re().filter(e=>e.owner===i6.pz.PUBLISHER&&e.type!==i6.UF.NECESSARY).map(e=>e.id),ra={[i6.HY.GA_TRACKING]:"_ga",[i6.HY.GA_TAG_MANAGER]:"_ga",[i6.HY.MUX_DATA]:"muxData",[i6.HY.ANONYMOUS_ID]:i6.FI.ANONYMOUS_ID,[i6.HY.VISIT_ID]:i6.FI.VISIT_ID,[i6.HY.AB_TESTING_ID]:i6.FI.AB_TESTING_ID,[i6.HY.AB_EXPERIMENT_SAMPLED]:i6.FI.AB_EXPERIMENT_SAMPLED,[i6.HY.LIKE_UPSELL_LAST_SHOWN_AT]:i6.FI.LIKE_UPSELL_LAST_SHOWN_AT,[i6.HY.INTRO_POPUP_LAST_HIDDEN_AT]:i6.FI.INTRO_POPUP_LAST_HIDDEN_AT,[i6.HY.DISABLE_HTML_PIXELS]:i6.FI.DISABLE_HTML_PIXELS,[i6.HY.COOKIE_STORAGE_KEY]:i6.FI.COOKIE_STORAGE_KEY,[i6.HY.OAUTH_INTERACTION]:i6.FI.OAUTH_INTERACTION,[i6.HY.OAUTH_SESSION]:i6.FI.OAUTH_SESSION,[i6.HY.OAUTH_RESUME]:i6.FI.OAUTH_RESUME,[i6.HY.EXPERIMENTS]:"experiment_",[i6.HY.DATADOG_S]:"_dd_s",[i6.HY.FULLSTORY_UID]:"fs_",[i6.HY.ZENDESK_ID]:"__zlcmid",[i6.Pv.GA_TAG_MANAGER]:"_ga",[i6.Pv.GA_TRACKING]:"_ga",[i6.Pv.FB_PIXEL]:"_fbp",[i6.Pv.TWITTER_PIXEL]:"_twq",[i6.Pv.PARSELY_PIXEL]:"_parsely_visitor"};i6.HY.AB_TESTING_ID,i6.HY.AB_EXPERIMENT_SAMPLED,i6.HY.ANONYMOUS_ID,i6.HY.VISIT_ID,i6.HY.EXPERIMENTS,i6.HY.DISABLE_HTML_PIXELS,i6.HY.DISABLE_EXPERIMENTS,i6.HY.COOKIE_STORAGE_KEY,null==ra||ra[i6.HY.ANONYMOUS_ID];let ri="cellPadding-f5tfb5",rr=e=>{let{open:t,onSubdomain:n,close:i}=e,[r,s]=(0,o.useState)(n?i6.pz.PUBLISHER:i6.pz.SUBSTACK),[l,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!0),[p,m]=(0,o.useState)(!1),[g,f]=(0,o.useState)(new Set),y=(0,i3.df)(),{popToast:N}=(0,i8.d)(),{iString:O}=(0,h.GO)(),{language:v}=(0,h.GO)(),x=re(v),{refetch:S}=(0,b.st)({pathname:"/api/v1/cookie_preferences",method:"POST"});(0,o.useEffect)(()=>{let e=async()=>{u(!0),c(!1);try{var e,t,n,a;let i=await (0,_.x6)("/api/v1/cookie_preferences"),r=null==(e=i.pubPreferences)?void 0:e.find(e=>e.pubId===(null==y?void 0:y.id)),o=new Set([...null!=(n=null==(t=i.substackPreferences)?void 0:t.disabledCookies)?n:[],...null!=(a=null==r?void 0:r.disabledCookies)?a:[]]);f(o)}catch(e){f(new Set([...rt,...rn]))}finally{u(!1)}};t&&((0,M.u4)(M.qY.COOKIE_MANAGEMENT_MODAL_SEEN,{}),e())},[t,null==y?void 0:y.id]);let w=async e=>{let{substackDisabledCookies:t,pubDisabledCookies:n}=e;ip.set(i6.HY.HIDE_COOKIE_BANNER,new Date().toJSON(),{expires:365}),await S({json:{pubDisabledCookies:n,substackDisabledCookies:t}})},I=async()=>{let e,t;if(p)return;m(!0);let n=Array.from(g),o=Object.values(i6.Pv),s=Object.values(i6.HY);l?(t=n.filter(e=>o.includes(e)),e=n.filter(e=>s.includes(e))):(t=[...rn],e=[...rt]);try{await w({substackDisabledCookies:e,pubDisabledCookies:t});let o=l?n:[...rt,...rn];(0,M.u4)(M.qY.COOKIE_PREFERENCES_SET,{disabledCookies:o,tab:r}),(0,M.u4)(M.qY.COOKIE_MANAGEMENT_MODAL_SUBMITTED,{disabledCookies:o,tab:r}),N(()=>(0,a.jsx)(i8.y,{text:O("Preferences saved")})),window.location.reload(),i()}catch(e){N(()=>(0,a.jsx)(i8.y,{text:O("Failed to save preferences. Please try again.")})),m(!1)}},C=async()=>{if(!p){m(!0);try{await w({substackDisabledCookies:[],pubDisabledCookies:[]}),(0,M.u4)(M.qY.COOKIE_PREFERENCES_SET,{disabledCookies:[],tab:r}),(0,M.u4)(M.qY.COOKIE_MANAGEMENT_MODAL_SUBMITTED,{disabledCookies:[],tab:r}),N(()=>(0,a.jsx)(i8.y,{text:O("Preferences saved")})),window.location.reload(),i()}catch(e){N(()=>(0,a.jsx)(i8.y,{text:O("Failed to save preferences. Please try again.")})),m(!1)}}},k=e=>{l||c(!0),f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),(0,M.u4)(M.qY.COOKIE_MANAGEMENT_MODAL_COOKIE_TOGGLED,{cookie:e})},j=[{value:i6.pz.PUBLISHER,label:O("Publisher")},{value:i6.pz.SUBSTACK,label:O("Substack")}];return(0,a.jsxs)(B.aF,{isOpen:t,onClose:I,className:"modal-bBpQD3",disableCloseOnBackdropClick:!0,children:[(0,a.jsx)(B.rQ,{onClose:()=>{(0,M.u4)(M.qY.COOKIE_MANAGEMENT_MODAL_DISMISSED,{}),I()},title:O("Cookie Preferences")}),(0,a.jsx)(B.cw,{className:"grow-CBXF8f",children:d?(0,a.jsx)(E.VP,{flex:"grow",justifyContent:"center",alignItems:"center",children:(0,a.jsx)(ac.y$,{})}):(0,a.jsxs)(E.I1,{flex:"fill",gap:8,children:[n&&(0,a.jsx)(i9.r,{tabs:j,value:r,onChange:s}),(0,a.jsxs)(E.I1,{flex:"fill",children:["publisher"===r&&(0,a.jsx)(ro,{cookies:x.filter(e=>e.owner===i6.pz.PUBLISHER),disabledCookies:g,toggleState:k}),"substack"===r&&(0,a.jsx)(ro,{cookies:x.filter(e=>e.owner===i6.pz.SUBSTACK),disabledCookies:g,toggleState:k})]})]})}),(0,a.jsx)(B.jl,{primaryButton:(0,a.jsx)(A.$n,{onClick:I,disabled:d||p,children:l?O("Save preferences"):O("Reject All")}),secondaryButton:(0,a.jsx)(A.$n,{onClick:C,disabled:d||p,children:O("Accept all")}),showDivider:!0})]})},ro=e=>{let{cookies:t,disabledCookies:n,toggleState:i}=e;return(0,a.jsx)("table",{className:"table-m2WTld",children:(0,a.jsx)("tbody",{children:t.map(e=>(0,a.jsx)(rs,(0,R._)((0,r._)({},e),{onToggle:()=>i(e.id),enabled:!n.has(e.id)})))})})},rs=e=>{let{name:t,type:n,description:i,enabled:r,onToggle:o}=e;return(0,a.jsxs)("tr",{className:"rowBorderBottom-tHD_Mb",children:[(0,a.jsx)("td",{className:ri,children:(0,a.jsxs)(E.I1,{gap:2,alignItems:"start",children:[(0,a.jsx)(y.EY.B4,{children:t}),(0,a.jsx)(rl,{cookieType:n})]})}),(0,a.jsx)("td",{className:ri,children:(0,a.jsx)(y.EY.B5,{color:"secondary",children:i})}),(0,a.jsx)("td",{className:ri,children:n!==i6.UF.NECESSARY&&(0,a.jsx)(i4.S,{checked:r,onChange:o})})]},t)},rl=e=>{let{cookieType:t}=e,{language:n}=(0,h.GO)(),i=(e=>{let{iString:t}=i5.TH.i(e||"en");return{Necessary:t("These cookies are essential for you to browse the website and use its features."),Performance:t("These cookies collect information about how you use a website, like which pages you visited and which links you clicked on."),Functionality:t("These cookies allow us to remember choices you have made in the past, and do things like auto-login")}})(n);return(0,a.jsx)(i7.m_,{text:i[t],children:(0,a.jsxs)(E.Ye,{justifyContent:"start",alignItems:"center",gap:4,children:[(0,a.jsx)(y.EY.Meta,{children:t}),(0,a.jsx)(i2.A,{size:16,stroke:"var(--color-fg-secondary)"})]})})},rc=e=>{let{onSubdomain:t,publication:n}=e,i=(null==n?void 0:n.id)?"SUBSTACK_USER_HID_COOKIE_BANNER_".concat(null==n?void 0:n.id):"SUBSTACK_USER_HID_COOKIE_BANNER",[r,s]=(0,o.useState)(()=>{if("undefined"!=typeof window){let e=ip.get(i6.HY.HIDE_COOKIE_BANNER),t=localStorage.getItem(i);return e||t}return!0}),[l,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(r),{popToast:p}=(0,i8.d)(),{iString:m}=(0,h.GO)(),{refetch:g}=(0,b.st)({pathname:"/api/v1/cookie_preferences",method:"POST"});(0,o.useEffect)(()=>{r||(0,M.u4)(M.qY.COOKIE_BANNER_SEEN,{})},[r]);let _=async e=>{let t=e?[]:rt,n=e?[]:rn;ip.set(i6.HY.HIDE_COOKIE_BANNER,new Date().toJSON(),{expires:31536e6}),"undefined"!=typeof window&&localStorage.setItem(i,"true"),s(!0),await g({json:{pubDisabledCookies:n,substackDisabledCookies:t}}),(0,M.u4)(M.qY.COOKIE_BANNER_CLICKED,{acceptAll:e}),(0,M.u4)(M.qY.COOKIE_PREFERENCES_SET,{disabledCookies:[...t,...n]}),u(!0),p(()=>(0,a.jsx)(i8.y,{text:m("Cookie preferences saved")})),window.location.reload()};return(0,a.jsxs)("div",{children:[!d&&(0,a.jsx)(E.I1,{className:"cookieBanner-fZ6hup",alignItems:"center",color:"white",children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:{mobile:4,desktop:8},padding:4,children:[(0,a.jsx)(y.EY.H4,{color:"primary",translated:!0,children:"Cookie Policy"}),(0,a.jsxs)(y.EY.B5,{color:"secondary",translated:!0,style:{paddingRight:"16px"},children:["We use cookies to improve your experience, for analytics, and for marketing. You can accept, reject, or manage your preferences. See our"," ",(0,a.jsx)(y.EY.B5,{color:"secondary",decoration:"underline",as:"a",href:"https://substack.com/tos",children:"privacy policy"}),"."]}),(0,a.jsxs)(E.pT,{gap:{mobile:6,desktop:6},children:[(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>{c(!0),u(!0),"undefined"!=typeof window&&localStorage.setItem(i,"true")},size:"sm",children:m("Manage")}),(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>_(!1),size:"sm",children:m("Reject")}),(0,a.jsx)(A.$n,{priority:"secondary",onClick:()=>_(!0),size:"sm",children:m("Accept")})]})]})}),(0,a.jsx)(rr,{onSubdomain:t,open:l,close:()=>{c(!1)}})]})};n(34372),n(17028),n(56778),n(98747),n(50014);let rd=[{label:"Serif",families:[{name:"Andada Pro",weights:[600,700,800],defaultWeight:800,fallback:"sans-serif"},{name:"Besley",weights:[700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"Bitter",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"IBM Plex Serif",weights:[500,600,700],defaultWeight:700,fallback:"sans-serif"},{name:"Lora",weights:[500,600,700],defaultWeight:600,fallback:"sans-serif"},{name:"Roboto Slab",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"STIX Two Text",weights:[500,600,700],defaultWeight:700,fallback:"sans-serif"},{name:"Yrsa",weights:[500,600,700],defaultWeight:700,fallback:"sans-serif"}]},{label:"Sans Serif",families:[{name:"System",weights:[700,900],defaultWeight:700,fallback:"sans-serif",keys:{700:"sans",900:"heavy_sans"}},{name:"Fira Sans",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"Inter Tight",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"Lato",weights:[700,900],defaultWeight:900,fallback:"sans-serif"},{name:"Nunito Sans",weights:[600,700,800,900],defaultWeight:800,fallback:"sans-serif"},{name:"PT Sans",weights:[700],defaultWeight:700,fallback:"sans-serif"},{name:"Raleway",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"Roboto",weights:[600,700,800,900],defaultWeight:700,fallback:"sans-serif"},{name:"Source Sans 3",weights:[600,700,800,900],defaultWeight:800,fallback:"sans-serif"}]},{label:"Monospace",families:[{name:"Roboto Mono",weights:[500,600,700],defaultWeight:700,fallback:"monospace"}]}],ru=[{name:"Lora",weights:[400],defaultWeight:400,fallback:"sans-serif"},{name:"Roboto Mono",weights:[400],defaultWeight:400,fallback:"monospace"},{name:"Roboto Slab",weights:[400],defaultWeight:400,fallback:"sans-serif"},{name:"Spectral",weights:[400],defaultWeight:400,fallback:"sans-serif"}];[...rd.flatMap(e=>e.families).filter(e=>!("keys"in e)),...ru];function rp(e,t){if(!("keys"in t))for(let a of t.weights){var n;let i={font:t.name,weight:a,fallback:t.fallback};e[n=t.name,"".concat(n.toLowerCase().replace(/ /g,"_"),"_").concat(a)]=i}}var rm=function(){let e={},t={};for(let t of rd)for(let n of t.families)rp(e,n);for(let e of ru)rp(t,e);return{heading:e,body:t}}();for(let[e,t]of Object.entries({fancy_serif:"lora_600",mono:"roboto_mono_700",slab:"roboto_slab_700"})){let n=rm.heading[t];n&&(rm.heading[e]=n)}for(let[e,t]of Object.entries({fancy_serif:"lora_400",classic_serif:"spectral_400",mono:"roboto_mono_400",slab:"roboto_slab_400"})){let n=rm.body[t];n&&(rm.body[e]=n)}var rh=n(58643);rh.A.colors.primitive.gray["700"].toRgb();let rg=rh.A.colors.primitive.white,r_=rh.A.colors.primitive.black;(0,R._)((0,r._)({},rg.toRgb()),{a:0});let rb=rh.A.colors.light,rf=rh.A.colors.dark;rb.semantic.substack.bg.primary.toRgb(),rb.semantic.substack.bg["primary-hover"].toRgb(),rb.semantic.substack.bg["primary-hover"].toRgb(),(0,R._)((0,r._)({},rb.semantic.substack.bg.primary.toRgb()),{a:.2}),rg.toRgb(),(0,R._)((0,r._)({},rb.semantic.substack.bg.primary.toRgb()),{a:.2}),(0,R._)((0,r._)({},rb.semantic.substack.bg.primary.toRgb()),{a:.3}),rf.semantic.substack.bg.primary.toRgb(),rf.semantic.substack.bg["primary-hover"].toRgb(),rf.semantic.substack.bg["primary-hover"].toRgb(),(0,R._)((0,r._)({},rf.semantic.substack.bg.primary.toRgb()),{a:.2}),rg.toRgb(),(0,R._)((0,r._)({},rf.semantic.substack.bg.primary.toRgb()),{a:.2}),(0,R._)((0,r._)({},rf.semantic.substack.bg.primary.toRgb()),{a:.3}),(0,R._)((0,r._)({},r_.toRgb()),{a:.8}),(0,R._)((0,r._)({},r_.toRgb()),{a:.5}),(0,R._)((0,r._)({},r_.toRgb()),{a:.3}),rb.semantic.substack.fg.primary.toRgb(),(0,R._)((0,r._)({},rg.toRgb()),{a:.9}),(0,R._)((0,r._)({},rg.toRgb()),{a:.5}),(0,R._)((0,r._)({},rg.toRgb()),{a:.3}),rf.semantic.substack.fg.primary.toRgb(),rg.toRgb(),rg.toRgb(),rb.bg["primary-hover"].toRgb(),rb.bg.primary.toRgb(),rb.bg.secondary.toRgb(),rb.bg.tertiary.toRgb(),rb.bg.tertiary.toRgb(),rb.bg.quaternary.toRgb(),rf.bg.primary.toRgb(),rf.bg["primary-hover"].toRgb(),rf.bg["primary-hover"].toRgb(),rf.bg.secondary.toRgb(),rf.bg.tertiary.toRgb(),rf.bg.tertiary.toRgb(),rf.bg.quaternary.toRgb();var rA=n(92636);function rE(e){let{slug:t,ranking:n,urlParams:a}=e;return(0,rA.yR)("/leaderboard/".concat(t,"/").concat(n),a)}function ry(){let{urlParams:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,rA.yR)("/browse",e)}function rN(){let e=(0,u._)(["Top in ",""]);return rN=function(){return e},e}function rO(){let e=(0,u._)(["Top in ",""]);return rO=function(){return e},e}let rv=e=>{let{slug:t,categoriesMap:n,setExpandCategories:i,hide:r}=e,{iString:o,iTemplate:s}=(0,h.GO)();if("collapse"===t)return(0,a.jsx)("u",{children:(0,a.jsx)("a",{onClick:()=>i(!1),children:"See less categories"})});if("expand"===t)return(0,a.jsx)("u",{children:(0,a.jsx)("a",{onClick:()=>i(!0),children:"See more categories"})});let l=n[null!=t?t:"undefined"];return l?(0,a.jsx)("a",{href:"".concat((0,N.$_T)(),"/top/").concat(l.slug),"data-native":!0,style:{display:r?"none":void 0},children:s(rN(),o(l.canonical_name))}):null},rx=e=>{let{categories:t}=e;t=null!=t?t:[];let{iString:n,iTemplate:i}=(0,h.GO)(),[r,s]=(0,o.useState)(!1),l={utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_content:eg.fL.footer},c={culture:rE({slug:"culture",ranking:"paid",urlParams:l}),"food & drink":rE({slug:"food",ranking:"paid",urlParams:l}),finance:rE({slug:"finance",ranking:"paid",urlParams:l}),sports:rE({slug:"sports",ranking:"paid",urlParams:l}),politics:rE({slug:"politics",ranking:"paid",urlParams:l}),technology:rE({slug:"technology",ranking:"paid",urlParams:l}),faith:rE({slug:"faith",ranking:"paid",urlParams:l}),business:rE({slug:"business",ranking:"paid",urlParams:l})},d=["culture","food","finance","sports","politics","technology","faith","business"],u=t.length>0?null==t?void 0:t.map(e=>null==e?void 0:e.slug).filter(e=>!d.includes(e)):[],p={};if(t.length>0)for(let e of t)e&&(p[e.slug]=e);return(0,a.jsxs)("div",{className:"footer-wrap www-footer",children:[(0,a.jsx)("div",{className:"home-footer",children:(0,a.jsxs)("div",{className:"footer-contain",children:[(0,a.jsxs)("div",{className:"footer-info",children:[(0,a.jsxs)("div",{className:"footer-info-col",children:[(0,a.jsx)("h3",{children:n("Discover")}),(0,a.jsx)("a",{href:ry({urlParams:l}),"data-native":!0,children:n("Featured")}),(0,a.jsx)("a",{href:"/app?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Get the app")}),(0,a.jsx)("a",{href:"https://reader.substack.com?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Substack Reader")}),(0,a.jsx)("a",{href:rE({slug:"podcast",ranking:"paid",urlParams:l}),"data-native":!0,children:n("Top podcasts")}),(null==t?void 0:t.length)>0?d.concat(u).concat(r?"collapse":"expand").filter(e=>"podcast"!==e).map(e=>(0,a.jsx)(rv,{slug:e,categoriesMap:p,setExpandCategories:s,hide:u.includes(e)&&!r})):Object.entries(c).map(e=>{let[t,n]=e;return(0,a.jsx)("a",{href:n,"data-native":!0,children:i(rO(),t)})}),(0,a.jsx)("a",{href:"/topics?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Topics")})]}),(0,a.jsxs)("div",{className:"footer-info-col",children:[(0,a.jsx)("h3",{children:n("Creators")}),(0,a.jsx)("a",{href:"/switch?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Switch to Substack")}),(0,a.jsx)("a",{href:"/get-started?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Get started")}),(0,a.jsx)("a",{href:"/going-paid?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Go paid")}),(0,a.jsx)("a",{href:"/video?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For video")}),(0,a.jsx)("a",{href:"/podcasts?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For podcasts")}),(0,a.jsx)("a",{href:"/for-bloggers?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For bloggers")}),(0,a.jsx)("a",{href:"/investing-and-business?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For finance writers")}),(0,a.jsx)("a",{href:"/book?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For authors")}),(0,a.jsx)("a",{href:"/food-writers?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For food writers")}),(0,a.jsx)("a",{href:"/local-news?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("For local news")})]}),(0,a.jsxs)("div",{className:"footer-info-col",children:[(0,a.jsx)("h3",{children:n("Company")}),(0,a.jsx)("a",{href:(0,N.DNs)(null,{params:{utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_content:eg.fL.footer}}),"data-native":!0,children:n("About")}),(0,a.jsx)("a",{href:(0,N.RPh)(),children:n("Help")}),(0,a.jsx)("a",{href:"/jobs?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Jobs")}),(0,a.jsx)("a",{href:"https://on.substack.com?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Blog")}),(0,a.jsx)("a",{href:"/vulnerability-disclosure?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Vulnerability Policy")}),(0,a.jsx)("a",{href:"/contact?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Contact")}),(0,a.jsx)("a",{href:"/sitemap","data-native":!0,children:n("Sitemap")})]}),(0,a.jsxs)("div",{className:"footer-info-col",children:[(0,a.jsx)("h3",{children:n("Resources")}),(0,a.jsx)("a",{href:"/resources?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Resource center")}),(0,a.jsx)("a",{href:"/going-paid-guide?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Guide to going paid")}),(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us?s=support%40substack.com","data-native":!0,children:n("Help center")}),(0,a.jsx)("a",{href:"/community-and-programs?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Community and programs")}),(0,a.jsx)("a",{href:"/brand?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.footer),"data-native":!0,children:n("Brand assets")})]})]}),(0,a.jsxs)("div",{className:"logo-copy-wrapper",children:[(0,a.jsx)(eV.A,{className:"navbar-logo-wordmark substack-logo-wordmark"}),(0,a.jsx)("div",{className:"slogan",children:n("Substack is the home for great culture")})]})]})}),(0,a.jsx)("div",{className:"footer-divider"}),(0,a.jsxs)("div",{className:"footer-bottom-bar",children:[(0,a.jsxs)("div",{className:"app-badges",children:[(0,a.jsx)("a",{className:"app-badge",href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_content:eg.fL.wwwFooter}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"web_footer",app_store:"ios"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/app-store-white.png?v=1",238),height:40,width:134,loading:"lazy"})}),(0,a.jsx)("a",{className:"app-badge",href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_content:eg.fL.wwwFooter}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"web_footer",app_store:"android"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/google-play-white.png",238),height:40,width:134,loading:"lazy"})})]}),(0,a.jsxs)("div",{className:"footer-bottom-links",children:[(0,a.jsx)("span",{className:"copyright bottom-item",children:"\xa9 Substack Inc."}),(0,a.jsx)("a",{className:"bottom-item",href:(0,G.gB)(),"data-native":!0,children:n("Privacy")}),(0,a.jsx)("a",{className:"bottom-item",href:(0,G.lk)(),"data-native":!0,children:n("Terms")}),(0,a.jsx)("a",{className:"bottom-item",href:(0,G.an)(),"data-native":!0,children:n("Accessibility")}),(0,a.jsx)("a",{className:"bottom-item",href:(0,G.iQ)(),"data-native":!0,children:n("Collection notice")})]})]})]})};var rS=n(89230),rw=n(98445),rI=n(91378),rM=n(82519),rC=n(65544),rk=n(43145);let rj=()=>{let{language:e,baseLanguage:t,setPreferredLanguage:n}=(0,h.GO)(),{path:i}=(0,ei.zy)();if(!(i5.xc.includes(i)&&"en"!==t))return null;let r=[{name:"English",value:"en"},{name:"Catal\xe0",value:"ca"},{name:"Deutsch",value:"de"},{name:"Espa\xf1ol",value:"es"},{name:"Fran\xe7ais",value:"fr"},{name:"Italiano",value:"it"},{name:"Portugu\xeas",value:"pt"}],o=r.find(t=>t.value===e),s=[...r.filter(e=>e.value===t||"en"===e.value)];return(0,a.jsx)(rC.W,{trigger:(0,a.jsx)(A.$n,{priority:"secondary",leading:(0,a.jsx)(rI.A,{size:20}),trailing:(0,a.jsx)(rM.A,{}),children:null==o?void 0:o.name}),children:s.map(e=>(0,a.jsx)(rk.Dr,{onClick:()=>{e.value!==(null==o?void 0:o.value)&&(n(e.value),setTimeout(()=>{window.location.reload()},100))},trailing:(null==o?void 0:o.value)===e.value?(0,a.jsx)(t2.A,{size:20}):void 0,children:(0,a.jsx)(y.EY.B3,{children:e.name})}))})};var rL=n(44080),rR=n(81143),rT=n(2929),rP=n(68058),rD=n(92707),rB=n(92170),rU=n(44512),rG=n(39101);function rF(e){let{className:t,count:n}=e;return(0,a.jsx)(E.pT,{alignItems:"center",justifyContent:"center",radius:"md",className:I()(rG.A.badge,!n&&rG.A.dot,t),children:(0,a.jsx)(y.EY.Digit,{style:{color:"var(--color-button-primary-fg)"},children:n?n<100?n:"99+":"0"})})}var rW=n(13950),rY=n(51419),rK=n(52820);let rH=(0,o.createContext)(!1);var rV=n(97640),rz=n(55200),rq=n(24078),rJ=n(15040),rZ=n(72285);let rX=eg.VU.userMenu,rQ="https://support.substack.com/hc/en-us/?utm_source=".concat(rX);function r$(e){var{user:t,pub:n}=e,i=(0,tt._)(e,["user","pub"]);let{iString:s}=(0,h.GO)(),l=(0,o.useContext)(rH),c=(0,tb.Iu)(),{getExperimentVariant:d,exposeExperiment:u}=(0,rK.Wk)(),p=(0,ei.W5)("/p/:slug"),{webviewPlatform:m}=(0,rY.eG)(),g=(null==p?void 0:p.slug)||null,_=d("web_view_get_app"),b=c&&!t&&!!m&&g&&_;if((0,o.useEffect)(()=>{b&&u("web_view_get_app")},[b,u]),t)return(0,a.jsx)(r0,(0,R._)((0,r._)({},i),{user:t,pub:n}));if(b&&"control"!==_){let e=(0,N.XV8)(null==n?void 0:n.subdomain,g,{source:eg.VU.navbarSignIn,redirect:"app-store"}),t=s("treatment_get_app"===_?"Get app":"Sign in");return(0,a.jsx)(A.$n,{priority:"tertiary",size:c?"sm":"md",className:I()({"force-desktop":l}),onClick:()=>{if((0,M.u4)(M.qY.NAV_BAR_CTA_CLICKED,{type:"web_view_get_app",variant:_}),"treatment_deep_link"===_){let e=(0,N.a7q)({for_pub:null==n?void 0:n.subdomain});setTimeout(()=>{(0,f.V2)(e)},3e3)}(0,f.V2)(e)},children:t})}return(0,a.jsx)(A.$n,{href:(0,N.a7q)({for_pub:null==n?void 0:n.subdomain}),priority:"tertiary",size:c?"sm":"md",className:I()({"force-desktop":l}),"data-native":!0,children:s("Sign in")})}function r0(e){var{user:t,pub:n}=e,i=(0,tt._)(e,["user","pub"]);let o=t.photo_url?(0,a.jsx)(r1,{user:t}):(0,a.jsx)(A.K0,{priority:"tertiary",size:"sm",children:(0,a.jsx)(rS.A,{size:20})});return(0,a.jsx)(r2,(0,R._)((0,r._)({},i),{user:t,pub:n,trigger:o}))}let r1=(0,o.forwardRef)((e,t)=>{var{user:n}=e,i=(0,tt._)(e,["user"]);let{isMobile:o}=(0,iv.sM)();return(0,a.jsx)(A.Nm,(0,R._)((0,r._)({},i),{resetCss:!0,position:"relative",className:rZ.A.avatarButton,showFocus:!0,animate:!0,radius:"full",ref:t,children:(0,a.jsx)(rJ.Ex,{priority:"secondary",theme:"default",fillIcon:!0,placement:"bottom-right",content:(0,a.jsx)(rM.A,{size:14}),children:(0,a.jsx)(rq.eu,{user:n,size:o?32:40,"aria-hidden":!0})})}))});function r2(e){let{trigger:t,user:n,pub:i,enableCustomerServiceMode:r,disableCustomerServiceMode:o,freeSignup:s}=e,{iString:l}=(0,h.GO)(),{activityUnreadCount:c}=(0,rV.Vd)(),{onOpen:d,onClose:u}=(0,rW.xF)(),p=e=>()=>{(0,M.u4)(e)};return(0,a.jsxs)(ix.W1,{trigger:t,onOpen:()=>{(0,M.u4)(M.qY.USER_MENU_OPENED),d()},onClose:()=>{(0,M.u4)(M.qY.USER_MENU_DISMISSED),u()},"aria-label":l("More options"),children:[(0,a.jsx)(r3,{user:n}),(0,a.jsxs)(ix.H9,{children:[(0,a.jsx)(ix.Dr,{href:(0,N.oT5)({urlParams:{utm_source:rX}}),onClick:p(M.qY.USER_MENU_FEED_CLICKED),leading:(0,a.jsx)(rD.A,{size:20}),"data-native":!0,children:l("Home")}),(0,a.jsx)(ix.Dr,{href:(0,N.q$g)({utm_source:rX}),onClick:p(M.qY.USER_MENU_READER_CLICKED),leading:(0,a.jsx)(rB.A,{size:20}),"data-native":!0,children:l("Subscriptions")}),(0,a.jsx)(ix.Dr,{href:(0,aS.ehp)(),onClick:p(M.qY.USER_MENU_CHAT_CLICKED),leading:(0,a.jsx)(rP.A,{size:20}),"data-native":!0,children:l("Chat")}),(0,a.jsx)(ix.Dr,{href:(0,N.M)({utm_source:rX}),onClick:p(M.qY.USER_MENU_ACTIVITY_CLICKED),leading:(0,a.jsx)(rT.A,{size:20}),"data-native":!0,children:(0,a.jsxs)(E.pT,{flex:"grow",justifyContent:"space-between",children:[l("Activity"),c>0&&(0,a.jsx)(rF,{className:"indicator-badge",count:c})]})}),(0,a.jsx)(ix.Dr,{href:(0,N.U4Y)(),onClick:p(M.qY.USER_MENU_DISCOVER_CLICKED),leading:(0,a.jsx)(rU.A,{size:20}),"data-native":!0,children:l("Explore")})]}),(0,a.jsx)(r4,{freeSignup:null!=s&&s,pub:null!=i?i:null,user:n}),(0,a.jsx)(r9,{pub:null!=i?i:null}),!n.reader_installed_at&&(0,a.jsx)(ix.H9,{children:(0,a.jsx)(ix.Dr,{href:(0,N.DS2)({utm_campaign:eg._9.appMarketing,utm_content:eg.fL.userMenuLink}),priority:"accent","data-native":!0,children:l("Get the app")})}),(0,a.jsx)(r8,{enableCustomerServiceMode:r,disableCustomerServiceMode:o,pub:null!=i?i:null,user:n}),(0,a.jsx)(r7,{pub:null!=i?i:null})]})}let r3=e=>{let{user:t}=e,{iString:n}=(0,h.GO)(),i=(0,rz.l)(t,{utm_source:rX}),r="",o="";return t&&(r=(null==t?void 0:t.profile_set_up_at)&&t.name?t.name:t.email,o=(null==t?void 0:t.profile_set_up_at)?t.handle?"@".concat(t.handle):null:n("Set up your profile")),(0,a.jsx)(ix.Dr,{href:i,onClick:()=>(0,M.u4)(M.qY.USER_MENU_PROFILE_CLICKED),"data-native":!0,children:(0,a.jsxs)(E.pT,{gap:12,alignItems:"center",children:[(0,a.jsx)(rq.eu,{size:40,user:null!=t?t:void 0,"aria-hidden":!0}),(0,a.jsxs)(E.I1,{flex:"grow",children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",children:r}),o&&(0,a.jsx)(y.EY.B4,{color:"secondary",children:o})]})]})})},r4=e=>{let{freeSignup:t,user:n,pub:i}=e,{iString:r}=(0,h.GO)(),o=i&&(t||n&&(n.is_subscribed||n.is_free_subscribed)),s=!!(null==n?void 0:n.subdomain),l=n?(0,N.yRA)(n,{params:{utm_source:eg.VU.substack}}):void 0;return s||o?(0,a.jsxs)(ix.H9,{children:[o&&(0,a.jsx)(ix.Dr,{href:(0,N.yRP)("/account",{utm_source:rX}),onClick:()=>(0,M.u4)(M.qY.USER_MENU_MANAGE_SUBSCRIPTION_CLICKED),priority:"secondary","data-native":!0,children:r("Manage subscription")}),s&&l&&(0,a.jsx)(ix.Dr,{priority:"secondary",href:l,"data-native":!0,trailing:(0,a.jsx)(rL.A,{}),children:r("Dashboard")})]}):null},r9=e=>{let{pub:t}=e,{iString:n}=(0,h.GO)();return(0,a.jsxs)(ix.H9,{children:[(0,a.jsx)(ix.Dr,{href:(0,N.tFi)({utm_source:rX}),onClick:()=>(0,M.u4)(M.qY.USER_MENU_ACCOUNT_SETTINGS_CLICKED),priority:"secondary","data-native":!0,children:n("Settings")}),(0,a.jsx)(ix.Dr,{href:rQ,priority:"secondary",children:n("Support")}),(0,a.jsx)(ix.Dr,{href:(0,N.bgT)({utm_source:rX,for_pub:null==t?void 0:t.subdomain}),priority:"secondary","data-native":!0,children:n("Sign out")})]})},r8=e=>{let{disableCustomerServiceMode:t,enableCustomerServiceMode:n,pub:i,user:r}=e;return(null==r?void 0:r.is_global_admin)&&(n||t)?(0,a.jsxs)(ix.H9,{children:[n&&(0,a.jsx)(ix.Dr,{priority:"secondary",onClick:n,trailing:(0,a.jsx)(rR.A,{}),"data-native":!0,children:"Enter support mode"}),t&&(0,a.jsx)(ix.Dr,{priority:"secondary",onClick:t,trailing:(0,a.jsx)(rR.A,{}),"data-native":!0,children:"Exit support mode"}),i&&(0,a.jsx)(ix.Dr,{priority:"secondary",href:"".concat((0,aS.$_T)({subdomain:"admin"}),"/publications/").concat(i.id),trailing:(0,a.jsx)(rR.A,{}),"data-native":!0,children:"Open in Underground"})]}):null},r7=e=>{let{pub:t}=e,{iString:n}=(0,h.GO)();return(0,a.jsx)(ix.H9,{children:(0,a.jsx)(y.EY.B4,{size:12,color:"secondary",children:(0,a.jsxs)(E.pT,{gap:12,padding:8,className:"footer",children:[(0,a.jsx)(y.Yq,{href:(0,N.DNs)(null,{params:{utm_source:rX}}),"data-native":!0,children:n("About")}),(0,a.jsx)(y.Yq,{href:(0,G._)({pub:t,utm_source:rX}),children:n("Privacy")}),(0,a.jsx)(y.Yq,{href:(0,G.Ru)({pub:t,utm_source:rX}),children:n("Terms")}),(0,a.jsx)(y.Yq,{href:(0,G.iQ)({utm_source:rX}),children:n("Data")}),(0,a.jsx)(y.Yq,{href:(0,G.an)({utm_source:rX}),children:n("Accessibility")})]})})})};var r5=n(69324);function r6(e){let{user:t,hideSearch:n,enableI18n:i,customCta:r}=e,[s,l]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!1),{iString:u}=(0,h.GO)(),{path:p}=(0,ei.zy)(),m=Object.values(i5.uI).includes(p),g=(0,o.useCallback)(()=>{l(!s)},[s]),_=(0,o.useCallback)(()=>{let e=document.documentElement.scrollTop>0;e!==c&&d(e)},[c]);(0,o.useEffect)(()=>(window.addEventListener("scroll",_),()=>{window.removeEventListener("scroll",_)}),[c,_]);let b=[(0,a.jsx)(oa,{}),(0,a.jsx)(oi,{}),(0,a.jsx)(on,{})],f=[(0,a.jsx)(A.Nm,{resetCss:!0,className:"homepage-nav-for-writers small no-margin",href:"/about-i?utm_source=".concat(eg.VU.menuDropdown),children:u("About")}),(0,a.jsx)(A.Nm,{resetCss:!0,className:"homepage-nav-for-writers small no-margin",href:"/going-paid-i?utm_source=".concat(eg.VU.menuDropdown),children:u("Go paid")})];return(0,a.jsxs)("div",{className:I()("homepage-nav",{"homepage-nav-mobile-menu-open":s}),children:[(0,a.jsx)("div",{className:I()("homepage-nav-bar",{"body-is-scrolled":c}),children:(0,a.jsxs)("div",{className:"homepage-nav-wrap",children:[(0,a.jsxs)("div",{className:"left",children:[(0,a.jsx)(A.Nm,{resetCss:!0,className:"homepage-nav-mobile-menu-toggle outline-grayscale",onClick:g,children:(0,a.jsx)(rS.A,{className:"burger-icon",size:24,stroke:"#3a261c"})}),(0,a.jsx)("a",{className:"homepage-nav-logo",href:m?"/home-i":"/","data-native":!0,children:(0,a.jsx)(eV.A,{className:"nav-logo-icon"})}),m?f:b]}),(0,a.jsxs)("div",{className:"right",children:[!n&&(0,a.jsx)(oc,{}),i&&(0,a.jsx)(rj,{}),(0,a.jsx)(oo,{user:t,customCta:r}),t?(0,a.jsx)(r$,{user:t}):(0,a.jsx)(os,{})]})]})}),(0,a.jsx)(ol,{user:t,hideSearch:n,onCloseClick:()=>l(!1),useI18NLinks:m})]})}let oe=e=>{let{iString:t}=I18N.i(e);return{forReaders:[{href:(0,N.DS2)({utm_source:eg.VU.menuDropdown}),label:t("Substack App"),newTab:!0},{href:(0,aS.oT5)({urlParams:{utm_source:eg.VU.menuDropdown}}),label:t("Home"),newTab:!0,native:!0,loggedInOnly:!0},{href:"/inbox?utm_source=".concat(eg.VU.menuDropdown),label:t("Subscriptions"),newTab:!0,native:!0,loggedInOnly:!0},{href:ry({urlParams:{utm_source:eg.VU.menuDropdown}}),label:t("Discover"),newTab:!0,native:!0},{href:"https://on.substack.com/s/stories",label:t("Featured"),newTab:!0},{href:"https://www.substack.com/globe",label:t("Substacks around the world"),newTab:!1,native:!0}],forWriters:[{href:"/switch?utm_source=".concat(eg.VU.menuDropdown),label:t("Switch to Substack"),native:!0},{href:"/going-paid?utm_source=".concat(eg.VU.menuDropdown),analyticsEvent:M.qY.HOMEPAGE_GOING_PAID_LINK_CLICKED,label:t("Go paid"),native:!0},{href:"/growthfeatures?utm_source=".concat(eg.VU.menuDropdown),analyticsEvent:M.qY.HOMEPAGE_GROW_LINK_CLICKED,label:t("Grow your audience"),native:!0},{href:"https://pages.substack.com/livevideoshows?utm_source=".concat(eg.VU.menuDropdown),label:t("For live video"),analyticsEvent:M.qY.HOMEPAGE_LIVE_VIDEO_LINK_CLICKED},{href:"/video?utm_source=".concat(eg.VU.menuDropdown),label:t("For video"),analyticsEvent:M.qY.HOMEPAGE_VIDEO_LINK_CLICKED},{href:"/podcasts?utm_source=".concat(eg.VU.menuDropdown),label:t("For podcasts"),analyticsEvent:M.qY.HOMEPAGE_PODCAST_LINK_CLICKED},{href:"/for-bloggers?utm_source=".concat(eg.VU.menuDropdown),label:t("For bloggers"),native:!0},{href:"/investing-and-business?utm_source=".concat(eg.VU.menuDropdown),label:t("For finance writers"),native:!0},{href:"/book?utm_source=".concat(eg.VU.menuDropdown),label:t("For authors"),native:!0},{href:"/food-writers?utm_source=".concat(eg.VU.menuDropdown),label:t("For food writers"),native:!0},{href:"/local-news?utm_source=".concat(eg.VU.menuDropdown),label:t("For local news"),native:!0}],resources:[{href:"/get-started?utm_source=".concat(eg.VU.menuDropdown),label:t("How to start a Substack"),newTab:!1,native:!0},{href:"/going-paid-guide?utm_source=".concat(eg.VU.menuDropdown),label:t("Going paid guide"),native:!0},{href:"/resources?utm_source=".concat(eg.VU.menuDropdown),label:t("Resource center"),native:!0},{href:"/community-and-programs?utm_source=".concat(eg.VU.menuDropdown),label:t("Community & programs"),native:!0},{href:"https://support.substack.com/hc/en-us/?utm_source=".concat(eg.VU.menuDropdown),label:t("Help center"),newTab:!0,native:!0},{href:"https://substack.com/brand?utm_source=".concat(eg.VU.menuDropdown),label:t("Brand assets"),newTab:!0,native:!0}]}};function ot(e){let{desktop:t,noUser:n}=e;return function(e){let{href:i,label:r,newTab:o,native:s,analyticsEvent:l,loggedInOnly:c}=e;return n&&c?null:(0,a.jsxs)("a",{href:i,target:o?"_blank":void 0,rel:o?"noopener":void 0,"data-native":s?"":void 0,analyticsEvent:l,children:[t&&(0,a.jsx)("span",{className:"underline",children:r}),!t&&r]})}}let on=()=>{let{iString:e,language:t}=(0,h.GO)(),n=oe(t);return(0,a.jsx)(or,{links:n.forReaders,label:e("Explore")})},oa=()=>{let{iString:e,language:t}=(0,h.GO)(),n=oe(t);return(0,a.jsx)(or,{links:n.resources,label:e("Resources")})},oi=()=>{let{iString:e,language:t}=(0,h.GO)(),n=oe(t);return(0,a.jsx)(or,{links:n.forWriters,label:e("Creators")})},or=e=>{let{links:t,label:n}=e,i=(0,e8.Jd)();return(0,a.jsx)(ix.W1,{trigger:(0,a.jsx)(A.Nm,{resetCss:!0,className:"homepage-nav-for-writers small no-margin",children:(0,a.jsxs)(E.ov,{direction:"row",gap:6,children:[(0,a.jsx)(y.EY,{fontSize:17,children:n}),(0,a.jsx)(aG.A,{size:18,stroke:"var(--color-fg-primary)"})]})}),align:"start",children:t.map(e=>e.loggedInOnly&&!i?null:(0,a.jsx)(ix.Dr,{href:e.href,native:e.native,target:e.newTab?"_blank":void 0,children:e.label},e.href))})},oo=e=>{let{user:t,customCta:n}=e,{iString:i}=(0,h.GO)(),r=(0,tb.Iu)(),o=n?n.href:t?(0,N.yRA)(t,{params:{utm_source:eg.VU.menu}}):void 0,s=n?n.label:i("Dashboard"),l=M.qY.HOMEPAGE_DASHBOARD_LINK_CLICKED;return o||(o=(0,N.f5H)({utm_source:eg.VU.substack}),s=i("Start publishing"),l=M.qY.HOMEPAGE_GET_STARTED_CLICKED),(0,a.jsx)(A.$n,{href:o,analyticsEvent:l,size:r?"sm":"md",localNavigation:!1,children:s})},os=()=>{let{iString:e}=(0,h.GO)(),t=(0,tb.Iu)();return(0,a.jsx)(E.pT,{bg:"white",radius:"sm",children:(0,a.jsx)(A.$n,{href:(0,N.a7q)(),size:t?"sm":"md",priority:"tertiary",localNavigation:!1,children:e("Sign in")})})},ol=e=>{let{user:t,hideSearch:n,onCloseClick:i,useI18NLinks:r}=e,{iString:o,language:s}=(0,h.GO)(),l=oe(s),c=[{href:"/about-i?utm_source=".concat(eg.VU.menuDropdown),label:o("About"),newTab:!0,native:!0},{href:"/going-paid-i?utm_source=".concat(eg.VU.menuDropdown),label:o("Go paid"),newTab:!0,native:!0}];return(0,a.jsxs)("div",{className:"homepage-nav-mobile-menu",children:[(0,a.jsx)(t3.A,{className:"mobile-menu-close-button",size:16,onClick:()=>i()}),!n&&(0,a.jsx)(oc,{}),r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mobile-menu-section",children:c.map(ot({noUser:!t}))})," "]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mobile-menu-section",children:[(0,a.jsx)("div",{className:"mobile-menu-header",children:o("Explore")}),l.forReaders.map(ot({noUser:!t}))]}),(0,a.jsxs)("div",{className:"mobile-menu-section",children:[(0,a.jsx)("div",{className:"mobile-menu-header",children:o("Creators")}),l.forWriters.map(ot({noUser:!t}))]}),(0,a.jsxs)("div",{className:"mobile-menu-section",children:[(0,a.jsx)("div",{className:"mobile-menu-header",children:o("Resources")}),l.resources.map(ot({noUser:!t}))]})]})]})},oc=()=>{let{open:e}=(0,r5.Ku)(),{iString:t}=(0,h.GO)(),n=(0,o.useRef)(null);return(0,a.jsxs)("form",{onSubmit:e=>{var t;e.preventDefault();let a=null==n||null==(t=n.current)?void 0:t.value;a&&((0,M.u4)(M.qY.HEADER_SEARCHED,{query:a}),(0,f.V2)("/search/".concat(encodeURIComponent(a)),{event:e,local_navigation:!1}))},className:"homepage-nav-search-bar",onClick:e,children:[(0,a.jsx)("input",{type:"text",name:"query",placeholder:t("Search Substack..."),autoComplete:"off",ref:n}),(0,a.jsx)(rw.A,{size:24,stroke:"#555555"})]})};var od=n(70357),ou=n(75303);function op(e){let t,n,{user:i,title:r,showBack:s=!0,showLogo:l=!0,showUserIndicator:c}=e,{leftRef:d,rightRef:u}=(t=(0,o.useRef)(null),n=(0,o.useRef)(null),(0,o.useLayoutEffect)(()=>{if(t.current&&n.current){let e=Math.max(t.current.clientWidth,n.current.clientWidth);t.current.style.width="".concat(e,"px"),n.current.style.width="".concat(e,"px")}},[]),{leftRef:t,rightRef:n});return(0,a.jsxs)(E.fI,{padding:16,gap:12,children:[(0,a.jsxs)(ob,{ref:d,children:[s&&(0,a.jsx)(om,{}),l&&(0,a.jsx)(oh,{})]}),(0,a.jsx)(og,{children:r&&(0,a.jsx)(y.EY.H4,{textAlign:"center",ellipsis:!0,children:r})}),(0,a.jsx)(of,{ref:u,children:c&&(0,a.jsx)(r$,{user:i})})]})}function om(){let e=(0,tb.Iu)(),t=2===history.length;return(0,a.jsx)(A.K0,{size:e?"sm":"md",onClick:()=>t?(0,f.V2)("/"):history.back(),priority:"tertiary",children:(0,a.jsx)(iy.A,{})})}function oh(){return(0,a.jsx)(ou.AE,{href:"/","data-native":!0,children:(0,a.jsx)(E.ov,{flex:"auto",children:(0,a.jsx)(od.A,{fill:"var(--color-nav-logo)",size:24})})})}let og=(0,ou.I4)({display:"flex",justifyContent:"center",alignItems:"center",flex:"grow",minWidth:0}),o_=(0,ou.I4)({display:"flex",alignItems:"center",flex:"auto",gap:12}),ob=(0,ou.I4)({justifyContent:"start"},o_),of=(0,ou.I4)({justifyContent:"end"},o_);var oA=n(12860),oE=n(56804),oy=n(75030),oN=n(6045),oO=n(31096),ov=n(88377);function ox(e){var t;let{children:n,initialData:i}=e;return(0,a.jsx)(oO.A,{user:i.user,siteConfigs:null!=(t=i.siteConfigs)?t:{},experimentInfo:i,language:i.language,preferredLanguage:i.preferredLanguage,loadGlobalSearch:!0,isMarketingPage:!0,children:(0,a.jsx)(ov.J.Provider,{value:"react-router",children:(0,a.jsx)(s.Provider,{value:i,children:n})})})}let oS=(0,o.createContext)(()=>{}),ow={cookies:"Information Collected Automatically","personal-data-collected":"Personal Data Collected","personal-data-access":"What Personal Information can I access?"};function oI(e){let{user:t}=e;return!function(e){let{user:t,pub:n=null,noBase:i=!1}=e,r=(0,i8.d)();(0,o.useEffect)(()=>{async function e(){await m().put("/api/v1/user-setting").send({type:"has_seen_reader_to_writer_upsell",value_bool:!0})}let o=new URL(location.toString()),s=o.searchParams.get("profile-setup-message");if(!s)return;let l="start-writing"===s?Number(o.searchParams.get("nthPub")):void 0;o.searchParams.delete("nthPub"),o.searchParams.delete("profile-setup-message"),history.replaceState({},"",o);let c=((e,t,n,i,r)=>{if(!n)return null;switch(e){case"post-login":if(!n.profile_set_up_at)return null;return{title:"Your profile is set up!",body:"Now you can like posts, leave comments, and follow other people on Substack.",ctaText:"View your profile",ctaLink:(0,N.gYq)(n,{utm_source:eg.VU.profileToast,noBase:t})};case"post-subscribe-success":if(!i||!n.profile_set_up_at)return null;return{title:"Welcome to ".concat(i?i.name:""),body:(0,a.jsxs)(y.EY,{children:["You'll now receive new posts in your inbox. Next, check out the"," ",(0,a.jsx)(y.Yq,{decoration:"underline",target:"_blank",href:i?(0,N.qy7)(i):void 0,children:"archive"})," ","or visit your profile."]}),ctaText:"View your profile",ctaLink:(0,N.gYq)(n,{utm_source:eg.VU.profileToast,noBase:t})};case"start-writing":return{title:"Want to start writing on Substack?",body:"Congrats on subscribing to your ".concat((0,aH.numberToOrdinal)(r)," Substack! Start your own just 5 minutes"),ctaText:"Start writing",ctaLink:(0,N.f5H)({utm_source:eg.VU.profileToast})};default:return null}})(s,i,t,n,l);c&&("start-writing"===s&&e(),r.popToast(()=>(0,a.jsx)(im.NP,{theme:n?oN.A.pubTheme:oy.A.elevatedTheme,children:(0,a.jsxs)(E.I1,{gap:20,bg:"primary",radius:"md",shadow:"lg",border:"detail",sizing:"border-box",position:"relative",padding:20,className:"wrapper-vT80lr",children:[(0,a.jsx)(E.Ye,{flex:"grow",justifyContent:"space-between",alignItems:"start",children:(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(y.EY.H3,{weight:"heavy",flex:"grow",color:"primary",children:c.title}),(0,a.jsx)(y.EY.B3,{color:"secondary",children:c.body})]})}),(0,a.jsx)(A.$n,{priority:"primary",onClick:e=>{(0,oE.o)(e,c.ctaLink,{native:!0})},children:c.ctaText})]})})))},[])}({user:t}),null}let oM="dividerLine-et4x1X",oC="appBadge-JN1t_5",ok="logged_out_home",oj="logged_out_home_marketing";function oL(){let e;e=(0,o.useContext)(oS),(0,o.useEffect)(()=>(e(!0),()=>e(!1)),[!0,e]);let t=(0,i1.n)(),n=(0,o.useMemo)(()=>({subscriptions:[],publicationUsers:[],onboardingModal:t,requireLogin:null}),[t]),[i,s]=(0,i$._0)(),{canFetchMore:l,lastPage:c,fetchMore:d,fetchFirstPage:u}=(0,b.U1)({pathname:"/api/v1/reader/feed",auto:!1,pages:i.pages,dispatch:s,getPageInit:e=>{var t;let{lastPage:n,init:a}=e,i=null==n||null==(t=n.result)?void 0:t.nextCursor;return i&&(a.query=(0,R._)((0,r._)({},a.query),{cursor:i})),a}});(0,o.useEffect)(()=>{u()},[]);let p=l&&(null==c?void 0:c.result)&&null!=c.result.nextCursor,{bodyRef:m}=function(e,t,n){let{shouldCheck:a,threshold:i=200,bodyRef:r}=n,s=(0,o.useRef)(),l=null!=r?r:s,c=()=>{let t=l.current;if(t){let{bottom:n}=t.getBoundingClientRect();n{if(a)return window.addEventListener("scroll",c,{capture:!0,passive:!0}),c(),()=>{window.removeEventListener("scroll",c,{capture:!0})}},t),{bodyRef:l,check:c}}(d,[i.pages],{shouldCheck:!!p,threshold:640}),h=(0,o.useMemo)(()=>i.pages.map(e=>(0,R._)((0,r._)({},e),{result:e.result?(0,R._)((0,r._)({},e.result),{items:e.result.items.map(e=>{var t,n,a;let o=(0,r._)({},e);return"publication"in o&&o.publication&&(o.publication=null!=(t=i.publications.get(o.publication.id))?t:o.publication),"post"in o&&o.post&&(o.post=null!=(n=i.posts.get(o.post.id))?n:o.post),"comment"in o&&o.comment&&(o.comment=null!=(a=i.comments.get(o.comment.id))?a:o.comment),o})}):null})),[i.pages,i.publications,i.posts,i.comments]),g=(0,o.useMemo)(()=>({dispatch:s}),[]),_=(0,N.cxW)({utm_source:ok,utm_campaign:oj}),f=(0,N.zw3)({utm_source:ok,utm_campaign:oj});return(0,a.jsxs)(S.Dx.Provider,{value:n,children:[(0,a.jsxs)("div",{className:"container-xokRyi",children:[(0,a.jsx)(oR,{appStoreUrl:_,playStoreUrl:f}),(0,a.jsx)("div",{className:"feedArea-dEEDQL",children:(0,a.jsxs)("div",{className:"feedContent-Rg4N6O",children:[(0,a.jsx)("div",{className:"feedHeading-OJHc5E",children:(0,a.jsx)(y.EY.H3,{weight:"heavy",children:"Home"})}),(0,a.jsx)(i$.et.Provider,{value:g,children:(0,a.jsx)(i$.tO.Provider,{value:i,children:(0,a.jsx)(iq.Sd,{children:(0,a.jsx)(iJ.LH,{surface:"feed",children:(0,a.jsx)(iQ.c,{children:(0,a.jsx)(E.I1,{ref:m,paddingBottom:20,fontSize:15,font:"text",color:"primary",role:"region","aria-label":"Home feed",children:h.map(e=>e.result?e.result.items.map(e=>(0,a.jsx)(iZ.GJ,{item:e},"entity_key"in e?e.entity_key:void 0)):(0,a.jsx)(iX.D,{})).flat()})})})})})})]})})]}),(0,a.jsx)(i0.K,(0,R._)((0,r._)({},t.modalProps),{entry:"reader2",skipRedirectOnExit:!0}))]})}function oR(e){let{appStoreUrl:t,playStoreUrl:n}=e,{onboardingModal:i}=(0,S.eE)();return(0,a.jsxs)("div",{className:"sidebar-OFdNEb",children:[(0,a.jsx)("div",{className:"sidebarLogo-rVshRr",children:(0,a.jsx)(eV.A,{color:"white"})}),(0,a.jsx)("div",{className:"sidebarHeading-pLKhiZ",children:(0,a.jsx)(y.EY,{weight:"heavy",color:"white",children:"Log in or sign up"})}),(0,a.jsx)("div",{className:"sidebarSubtitle-AdyGIb",children:(0,a.jsx)(y.EY.B2,{color:"white",children:"Join the most interesting and insightful discussions."})}),(0,a.jsxs)("div",{className:"sidebarButtons-CLjMjY",children:[(0,a.jsx)(A.$n,{priority:"primary",size:"md",href:"/sign-in",children:"Sign in"}),(0,a.jsx)(A.$n,{priority:"secondary",size:"md",onClick:()=>null==i?void 0:i.open(),children:"Create an account"})]}),(0,a.jsxs)("div",{className:"qrSection-VTOsxm",children:[(0,a.jsx)("div",{className:"qrCode-uP0PQL",children:(0,a.jsx)(ec.hj,{utm_source:ok,utm_campaign:oj,size:140})}),(0,a.jsx)(y.EY.B2,{color:"white",children:"Scan to get the app"})]}),(0,a.jsxs)("div",{className:"divider-yG59hJ",children:[(0,a.jsx)("div",{className:oM}),(0,a.jsx)(y.EY.B2,{color:"white",children:"OR"}),(0,a.jsx)("div",{className:oM})]}),(0,a.jsxs)("div",{className:"appBadges-E91SzH",children:[(0,a.jsx)("a",{href:t,className:oC,children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/app-store-white.png",268),height:40,width:134,alt:"Download on the App Store",loading:"lazy"})}),(0,a.jsx)("a",{href:n,className:oC,children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/google-play-white.png",268),height:40,width:134,alt:"Get it on Google Play",loading:"lazy"})})]})]})}let oT=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.home}),oP=()=>{var e,t,n,i,s;let l=c(),[d]=(0,el.o)(),u=null!=(e=d.get("categoryId"))?e:"categoryId"in l&&l.categoryId,{iString:p}=(0,h.GO)();(0,o.useEffect)(()=>{for(let e of((0,M.u4)(M.qY.WRITING_HOMEPAGE_VISITED),document.querySelectorAll("a")))e.addEventListener("click",()=>{let t=e.href,n=e.getAttribute("analyticsEvent")||M.qY.HOMEPAGE_LINK_CLICKED;t.includes("utm_source=".concat(eg.VU.discover))||(0,M.u4)(n,{url:t}),(0,M.e$)(n,{})})},[]);let m={utm_campaign:eg._9.appMarketing,utm_source:eg.VU.homePage},{open:g,modal:_}=(0,ec.El)(m),[b,f]=(0,o.useState)("posts"),O=e=>{f(e===b?null:e)},v=p("Start a Substack"),x=(0,N.zw3)(m),S=(0,N.cxW)(m),w=(0,o.useRef)(null),C=(0,o.useCallback)(()=>{w.current&&w.current.scrollIntoView({behavior:"smooth"})},[]),k=(0,a.jsxs)(y.EY,{as:"div",translated:!0,children:["The app for",(0,a.jsx)("br",{}),"independent voices"]}),j=(0,a.jsxs)(y.EY,{as:"span",translated:!0,children:["Yes. More than ",(0,a.jsx)("a",{href:"/growthfeatures",children:"50% of all new free subscriptions"})," and 30% of paid subscriptions to Substacks come from within our network."]}),L=(0,a.jsxs)(y.EY,{as:"span",translated:!0,children:["If you already have an audience on Wordpress, Mailchimp, Beehiiv, Ghost, Medium, Tumblr, or another platform, you can easily"," ",(0,a.jsx)("a",{href:"https://substack.com/signup/import",target:"_blank",children:"import your posts and your email list"})," ","in the Substack setup process."]}),R=(0,eh.Fr)()?(0,a.jsx)("a",{href:(0,eh.m0)()?x:(0,eh.aR)()?S:void 0,children:(0,a.jsx)(A.$n,{size:"lg",priority:"primary",onClick:()=>(0,eh.m0)()||(0,eh.aR)()?void 0:g(),className:eB.headerCta,flex:"grow",children:p("Get the app")})}):(0,a.jsx)("a",{href:(0,N.xPB)({params:{utm_source:eg.VU.homePage}}),children:(0,a.jsx)(A.$n,{size:"lg",priority:"primary",className:eB.headerCta,flex:"grow",children:p("Explore")})});return(0,a.jsxs)("div",{className:eB.home,children:[(0,a.jsx)(ez,{showNav:!1,showAvailableOn:!1,utm_source_prefix:"home",pageTitle:k,primaryUpsell:R,secondaryUpsell:(0,a.jsx)(A.$n,{size:"lg",priority:"secondary",href:oT,onClick:()=>(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:oT}),className:I()(eB.headerCta,eB.headerSecondaryCta),flex:"grow",localNavigation:!1,children:v}),scrollDown:C}),_,(0,a.jsxs)("div",{ref:w,children:[u&&(0,a.jsx)(iV,(0,r._)({maxPublications:5,Component:ij,isHomepage:!0},l)),(0,a.jsxs)(tx,{title:p("Creating a new media ecosystem"),children:[(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-1.png",width:1136},title:p("You made it, you own it."),body:p("You always own your intellectual property, mailing list, and subscriber payments. With full editorial control and no gatekeepers, you can do the work you most believe in."),link:{text:v,url:oT}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-2.png",width:1136},title:p("Grow your audience."),body:p("Marketing isn’t all on your shoulders. More than 50% of all new free subscriptions and 30% of paid subscriptions to Substacks come from within our network."),link:{text:v,url:oT}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-3.png",width:1136},title:p("Let us handle everything else."),body:p("A Substack combines a website, blog, podcast, video tools, payment system, and customer support team — all integrated seamlessly in a simple interface. We handle the admin, billing, and tech so you can focus on making your best work."),link:{text:v,url:oT}})]}),(0,a.jsx)(eR,{backgroundColor:"wash",title:p("A world-class reading, watching, and listening experience"),className:eB.readingExperiences,contentWidth:"wide",children:(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},justifyContent:"space-between",alignItems:{desktop:"start",mobile:"center"},gap:40,children:[(0,a.jsxs)(E.I1,{justifyContent:"space-between",alignItems:"center",gap:32,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/home_page/phone-v4.png",880),className:eB.readingExperiencesImage}),R]}),(0,a.jsxs)(E.I1,{className:eB.accordion,children:[(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[null!=(t=eB.expanded)?t:"undefined"]:"posts"===b}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>O("posts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>O("posts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Posts"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"Substack’s simple system lets you publish to the web, email, and our app simultaneously so you can find new subscribers and always reach your existing audience."}),(0,a.jsx)("a",{href:oT,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:v}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[null!=(n=eB.expanded)?n:"undefined"]:"podcasts"===b}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>O("podcasts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>O("podcasts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{translated:!0,children:"Podcasts"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"We make it easy to start a podcast—including video podcasts—, and produce voiceovers and narrations for your text posts. Share episodes to Substack subscribers and to all the major podcast players with one click.You can make your show free to everyone or you can use a paywall for: the whole podcast; select episodes; or at any point in a particular episode."}),(0,a.jsx)("a",{href:oT,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:v}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[null!=(i=eB.expanded)?i:"undefined"]:"video"===b}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>O("video"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>O("video"),children:(0,a.jsx)(y.EY.MarketingHeading2,{translated:!0,children:"Video"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"Create a video post, upload or record videos directly into a post, or engage with subscribers in real-time with live video. You can also turn your videos into a podcast, make videos available to everyone, or use a paywall for a whole or part of a video."}),(0,a.jsx)("a",{href:oT,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:v}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[null!=(s=eB.expanded)?s:"undefined"]:"threads"===b}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>O("threads"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>O("threads"),children:(0,a.jsx)(y.EY.MarketingHeading2,{translated:!0,children:"Community"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"On Substack, you’re not publishing into a void. Comments, Chat, Notes, direct messaging, and community threads connect you and your subscribers directly."}),(0,a.jsx)("a",{href:oT,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:v}),(0,a.jsx)(ej.A,{})]})})]})]})]})}),(0,a.jsx)(tL,{quote:"Starting a Substack was the best decision of my life.",author:"Edwin Dorsey, The Bear Cave",action:{text:v,buttonProps:{href:oT,onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:oT})},localNavigation:!1}}}),(0,a.jsxs)(eP,{backgroundColor:"wash",title:p("Substack basics"),children:[(0,a.jsx)(eD,{question:p("What is a Substack?"),answer:p("Substack is much more than a newsletter platform. A Substack is an all-encompassing publication that accommodates text, video, and audio. No tech knowledge is required. Anyone can start a Substack and publish posts directly to subscribers’ inboxes—in email and in the Substack app. Without ads or gatekeepers\xa0 in the way, you can sustain a direct relationship with your audience and retain full control over your creative work.")}),(0,a.jsx)(eD,{question:p("Do I need to pay for Substack?"),answer:p("It’s free to get started on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like building growth tools to help publishers, developing new features,\xa0 and providing world-class customer support. There are no hidden fees and we only make money when publishers do.")}),(0,a.jsx)(eD,{question:p("Do I own what I publish on Substack?"),answer:p("You will always own your work, everything you publish, and your relationships with your subscribers. We make it easy to import and export your archive, subscriber list, and payments information to and from other platforms.")}),(0,a.jsx)(eD,{question:p("Will Substack help me grow my audience?"),answer:j}),(0,a.jsx)(eD,{question:p("How do I move my past work to Substack?"),answer:L})]}),(0,a.jsx)(eR,{paddingY:120,children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{translated:!0,as:"h2",children:"Get started in minutes"}),(0,a.jsx)(A.$n,{size:"lg",href:oT,onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:oT})},localNavigation:!1,children:v})]})})]})]})},oD=()=>{let{getExperimentVariant:e,exposeExperiment:t}=(0,iu.NQ)(),n=e("logged_out_home_marketing"),i=(0,eh.Fr)({checkFirst4:!0}),r="treatment"===n&&!i;return((0,o.useEffect)(()=>{n&&!i&&t("logged_out_home_marketing")},[n,t,i]),r)?(0,a.jsx)(oL,{}):(0,a.jsx)(oP,{})},oB=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.home}),oU=l(e=>{let{iString:t}=(0,h.GO)();(0,o.useEffect)(()=>{for(let e of((0,M.u4)(M.qY.WRITING_HOMEPAGE_VISITED),Array.from(document.querySelectorAll("a"))))e.addEventListener("click",()=>{let t=e.href,n=e.getAttribute("analyticsEvent")||M.qY.HOMEPAGE_LINK_CLICKED;t.includes("utm_source=".concat(eg.VU.discover))||(0,M.u4)(n,{url:t}),(0,M.e$)(n,{})})},[]);let n={utm_campaign:eg._9.appMarketing,utm_source:eg.VU.homePage},{open:i,modal:s}=(0,ec.El)(n),[l,c]=(0,o.useState)("posts"),d=e=>{c(e===l?null:e)},u=t("Create your Substack"),p=(0,N.zw3)(n),m=(0,N.cxW)(n),g=()=>(0,a.jsx)("br",{}),_=(0,a.jsxs)(y.EY,{as:"div",translated:!0,children:["Do your best work,",(0,a.jsx)(g,{children:" "}),"supported by your",(0,a.jsx)(g,{children:" "}),"subscribers"]}),b=(0,a.jsxs)(y.EY,{as:"span",translated:!0,children:["Yes. More than ",(0,a.jsx)("a",{href:"/growthfeatures",children:"40% of all new free subscriptions"})," and around 20% of paid subscriptions to Substacks come from within our network."]}),f=(0,a.jsxs)(y.EY,{as:"span",translated:!0,children:["If you already have an audience on Wordpress, Mailchimp, Ghost, Medium, Tumblr, or another platform, you can easily"," ",(0,a.jsx)("a",{href:"https://substack.com/signup/import",target:"_blank",rel:"noopener",children:"import your posts and your email list"})," ","in the Substack setup process."]}),O=(0,a.jsx)("a",{href:(0,eh.m0)()?p:(0,eh.aR)()?m:void 0,children:(0,a.jsx)(A.$n,{size:"lg",priority:"primary",onClick:()=>(0,eh.m0)()||(0,eh.aR)()?void 0:i(),className:eB.headerCta,flex:"grow",children:t("Get the app")})});return(0,a.jsxs)("div",{className:eB.home,children:[(0,a.jsx)(tj,{backgroundColor:"green",title:_,body:t("Substack lets independent writers and podcasters publish directly to their audience and get paid through subscriptions."),bodyMaxWidth:380,primaryAction:{text:t("Create your Substack"),buttonProps:{href:oB,localNavigation:!1}},secondaryAction:{text:t("Find Substacks to read"),buttonProps:{href:ry(),localNavigation:!1}},image:{path:"/img/home_page/hero_image.png",width:1166},height:"short"}),s,(0,a.jsxs)("div",{children:[e.categoryId&&(0,a.jsx)(iV,(0,r._)({maxPublications:5,Component:ij},e)),(0,a.jsxs)(tx,{title:t("Building a new economic engine for culture"),children:[(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-1.png",width:1136},title:t("You wrote it, you own it."),body:t("You always own your intellectual property, mailing list, and subscriber payments. With full editorial control and no gatekeepers, you can do the work you most believe in."),link:{text:u,url:oB}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-2.png",width:1136},title:t("Grow your audience."),body:t("Marketing isn’t all on your shoulders. More than 40% of all new free subscriptions and around 20% of paid subscriptions to Substacks come from within our network."),link:{text:u,url:oB}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-3.png",width:1136},title:t("Let us handle everything else."),body:t("A Substack combines a blog, newsletter, payment system, and customer support team — all integrated seamlessly with a simple interface. We handle the admin, billing, and tech so you can focus on your best work."),link:{text:u,url:oB}})]}),(0,a.jsx)(eR,{backgroundColor:"wash",title:t("A world-class reading and listening experience"),contentWidth:"wide",children:(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},justifyContent:"space-between",alignItems:{desktop:"start",mobile:"center"},gap:40,children:[(0,a.jsxs)(E.I1,{justifyContent:"space-between",alignItems:"center",gap:32,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/home_page/phone-v4.png",880),className:eB.readingExperiencesImage}),O]}),(0,a.jsxs)(E.I1,{className:eB.accordion,children:[(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"posts"===l}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>d("posts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>d("posts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Posts"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"Substack’s simple system lets you publish to the web, email, and our app simultaneously so you can find new readers and always reach your existing audience."}),(0,a.jsx)("a",{href:oB,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:u}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"podcasts"===l}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>d("podcasts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>d("podcasts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{translated:!0,children:"Podcasts"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"We make it easy to start a subscription podcast. Share episodes to Substack subscribers and to all the major podcast players with one click."}),(0,a.jsx)("a",{href:oB,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:u}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"video"===l}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>d("video"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>d("video"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:t("Video")})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"Upload or record videos directly into a Substack post. Make videos available to everyone or only paid subscribers."}),(0,a.jsx)("a",{href:oB,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:u}),(0,a.jsx)(ej.A,{})]})})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"threads"===l}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>d("threads"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>d("threads"),children:(0,a.jsx)(y.EY.MarketingHeading2,{translated:!0,children:"Community"})}),(0,a.jsx)(y.EY.MarketingBody,{translated:!0,className:eB.accordionItemContent,children:"On Substack, you’re not publishing into a void. Comments and community threads connect you and your subscribers directly."}),(0,a.jsx)("a",{href:oB,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:u}),(0,a.jsx)(ej.A,{})]})})]})]})]})}),(0,a.jsx)(tL,{quote:t("“I feel like Substack’s giving my voice the home it had been missing for so many years“"),quoteIncludesPunctuation:!0,author:"Garance Dor\xe9, The High Light",action:{text:u,buttonProps:{href:oB,onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:oB})},localNavigation:!1}}}),(0,a.jsxs)(eR,{backgroundColor:"wash",title:t("Great writers are on Substack."),contentWidth:"wide",children:[(0,a.jsx)(y.EY,{translated:!0,font:"text",weight:"regular",size:24,lineHeight:32,align:"center",style:{maxWidth:840},children:"From food and faith to politics and economics, Substack is the new home for the world's best writers."}),(0,a.jsx)(E.pT,{justifyContent:"center",paddingTop:{desktop:64,mobile:0},children:(0,a.jsx)(A.$n,{size:"lg",href:ry(),onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:ry()})},localNavigation:!0,children:t("Discover Great Writing")})})]}),(0,a.jsxs)(eP,{backgroundColor:"wash",title:t("Substack basics"),children:[(0,a.jsx)(eD,{question:t("What is a Substack?"),answer:t("Substack helps anyone set up a blog and email newsletter. No tech knowledge is required. Without ads and algorithms to get in the way, you can sustain a direct relationship with your readers and retain full control over your creative work.")}),(0,a.jsx)(eD,{question:t("Do I need to pay for Substack?"),answer:t("It’s free to get started on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like development and customer support. There are no hidden fees and we only make money when writers do.")}),(0,a.jsx)(eD,{question:t("Do I own what I publish on Substack?"),answer:t("You will always own your content and your relationships with your subscribers. We make it easy to import and export your archive, email list, and payments information to and from other platforms.")}),(0,a.jsx)(eD,{question:t("Will Substack help me grow my audience?"),answer:b}),(0,a.jsx)(eD,{question:t("How do I move my past work to Substack?"),answer:f})]}),(0,a.jsx)(eR,{paddingY:120,children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{translated:!0,as:"h2",children:"Get started in minutes"}),(0,a.jsx)(A.$n,{size:"lg",href:oB,onClick:()=>{(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:oB})},localNavigation:!1,children:u})]})})]})]})});var oG=n(17186);n(73973),(0,o.createContext)(null).displayName="PublishInitialDataContext";var oF=n(96599),oW=n(10706),oY=n(17545),oK=n(90751),oH=n(90918),oV=n(38374);let oz=e=>{let{onCancel:t,onSkip:n}=e,{iString:i}=(0,h.GO)();return(0,a.jsx)(oH.Nw,{children:(0,a.jsxs)(oH.KY,{children:[(0,a.jsx)(y.EY.H2,{children:i("Something went wrong")}),(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)(A.$n,{onClick:t,priority:"secondary",flex:"grow",children:i("Try again")}),(0,a.jsx)(A.$n,{onClick:n,flex:"grow",children:i("Create a publication")})]})]})})};var oq=n(20249),oJ=n.n(oq);let oZ={"s-stack":"s-stack-kR3vWg",sStack:"s-stack-kR3vWg","s-stack-medium":"s-stack-medium-fK_mN1",sStackMedium:"s-stack-medium-fK_mN1","s-stack-small":"s-stack-small-JQf0pK",sStackSmall:"s-stack-small-JQf0pK","s-stack-large":"s-stack-large-VFw6TS",sStackLarge:"s-stack-large-VFw6TS","s-stack-xl":"s-stack-xl-L11qBv",sStackXl:"s-stack-xl-L11qBv",jobPageSubhead:"jobPageSubhead-ojwBBm",jobsIcon:"jobsIcon-lStHV3",jobPageMarketingHeading:"jobPageMarketingHeading-LEAXve",jobsIconPaperflight:"jobsIconPaperflight-XZhx3j",jobsHero:"jobsHero-_4JHvW",jobsHeroImage:"jobsHeroImage-RTVZzs",jobsHeroHeading:"jobsHeroHeading-bMYbYT",jobsHeroSubheading:"jobsHeroSubheading-j_5jjD",jobsHeroButton:"jobsHeroButton-YrdWwf",jobsMissionImage:"jobsMissionImage-s4QdrH",jobQuote:"jobQuote-tJTrTF",jobQuoteImage:"jobQuoteImage-Yfv16U",jobsFundingImage:"jobsFundingImage-h1WwcS",jobsFundingHeading:"jobsFundingHeading-vjI9_T",jobsFundingStack:"jobsFundingStack-VQ_o0w",jobPerks:"jobPerks-WMcdOx",jobPagePerkGrid:"jobPagePerkGrid-L1ircf",jobPagePerkInterstitial:"jobPagePerkInterstitial-gDKOLV",jobPagePerk:"jobPagePerk-R399fJ","flexible-vacation-and-paid-time-off":"flexible-vacation-and-paid-time-off-r_LTxO",flexibleVacationAndPaidTimeOff:"flexible-vacation-and-paid-time-off-r_LTxO","holidays-and-winter-shutdown":"holidays-and-winter-shutdown-B1tx1A",holidaysAndWinterShutdown:"holidays-and-winter-shutdown-B1tx1A","internet-stipends":"internet-stipends-T12ci5",internetStipends:"internet-stipends-T12ci5","parental-leave":"parental-leave-rTSuvq",parentalLeave:"parental-leave-rTSuvq",jobPagePerkIcon:"jobPagePerkIcon-SGQGTH",jobPagePerkHeading:"jobPagePerkHeading-VrKEwt",jobPagePerkSubhead:"jobPagePerkSubhead-J_eZK4",galleryInner:"galleryInner-VdgViV",galleryItem:"galleryItem-c3OP4E",galleryItemFirst:"galleryItemFirst-Wxw3H4",jobPageStoryGrid:"jobPageStoryGrid-mDfjIp",jobPageStoryColumn:"jobPageStoryColumn-Vsn1Nh",jobPageStoryImage:"jobPageStoryImage-osfZ0l",marqueeBackground:"marqueeBackground-L52gm2",jobPageMarquee:"jobPageMarquee-ZoWBrR",quoteContainer:"quoteContainer-FDfuaz",quoteImage:"quoteImage-Xy24BA",quoteAuthor:"quoteAuthor-ZqvZgw",quoteColumn:"quoteColumn-Qi4mqF","jobs-page-roles-intro":"jobs-page-roles-intro-yD0uSv",jobsPageRolesIntro:"jobs-page-roles-intro-yD0uSv","jobs-page-team":"jobs-page-team-dJw0De",jobsPageTeam:"jobs-page-team-dJw0De","jobs-page-team-title":"jobs-page-team-title-sutJln",jobsPageTeamTitle:"jobs-page-team-title-sutJln","jobs-page-team-role":"jobs-page-team-role-OgsLj0",jobsPageTeamRole:"jobs-page-team-role-OgsLj0","jobs-page-team-role-location":"jobs-page-team-role-location-RTp3R8",jobsPageTeamRoleLocation:"jobs-page-team-role-location-RTp3R8","jobs-page-team-role-title":"jobs-page-team-role-title-vGVDAJ",jobsPageTeamRoleTitle:"jobs-page-team-role-title-vGVDAJ",jobApplyBtn:"jobApplyBtn-aiDhAM","jobs-page-team-role-description":"jobs-page-team-role-description-pxuy5i",jobsPageTeamRoleDescription:"jobs-page-team-role-description-pxuy5i","press-grid":"press-grid-lJLQeq",pressGrid:"press-grid-lJLQeq","press-quote":"press-quote-xZWNrT",pressQuote:"press-quote-xZWNrT","press-grid-link":"press-grid-link-qWEjU1",pressGridLink:"press-grid-link-qWEjU1","press-grid-link-text":"press-grid-link-text-tcpTRD",pressGridLinkText:"press-grid-link-text-tcpTRD","press-logo":"press-logo-ZVRHWu",pressLogo:"press-logo-ZVRHWu",buildSection:"buildSection-ryurQl",buildCTAImage:"buildCTAImage-hvvx4b",buildCtaImage:"buildCTAImage-hvvx4b"},oX=[{title:"Remote work support",image:"/img/jobs_page/v2/remote.png",description:"All employees receive a generous allowance to customize their home offices."},{title:"Comprehensive health care",image:"/img/jobs_page/v2/health.png",description:"Substack covers 100% of premiums for employees and their dependents, as well as fully funded HRA plans."},{title:"Parental leave",image:"/img/jobs_page/v2/parental.png",description:"We want employees to be fully present for the new members of their family, so we offer generous parental leave."},{title:"Flexible vacation and paid time off",image:"/img/jobs_page/v2/vacation.png",description:"You’re the best person to decide when you need a day — or a week — off to travel or decompress. Our flexible vacation policy puts you in control."},{title:"Holidays and Winter shutdown",image:"/img/jobs_page/v2/holiday.png",description:"In addition to flexible time off, we honor 12 paid holidays annually on average. And we close the office between Christmas Eve and New Year’s day to recharge each year."},{title:"Internet stipends",image:"/img/jobs_page/v2/internet.png",description:"Many of our employees work from home or on the go. We offer full time employees a monthly stipend to cover phone and internet costs."}],oQ=()=>(0,a.jsx)(a.Fragment,{children:oX.map(e=>(0,a.jsxs)(E.I1,{className:I()(oZ.jobPagePerk,oZ[oJ()(e.title)]),gap:12,id:oJ()(e.title),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)(e.image),maxWidth:140,imageProps:{height:140},className:I()(oZ.jobPagePerkIcon)}),(0,a.jsx)(y.EY.MarketingHeading4,{className:I()(oZ.jobPagePerkHeading),children:e.title}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(oZ.jobPagePerkSubhead),children:e.description})]},e.title))}),o$=["aaronparnas","whattocook","georgesaunders","jameelajamil","jamespatterson","jessicareedkraus","jimacosta","joannagoddard","joesjournal","kareem","leandramcohen","mirandajuly","natesilver","pamelaanderson","pattismith","seanspicer","tinabrown","wishbonekitchen","ottolenghi","yourrichbff"],o0={aaronparnas:"The Parnas Perspective",whattocook:"What To Cook When You Don’t Feel Like Cooking",georgesaunders:"Story Club",jameelajamil:"A Low Desire To Please",jamespatterson:"Hungry Dogs",jessicareedkraus:"House Inhabit",jimacosta:"The Jim Acosta Show",joannagoddard:"Big Salad",joesjournal:"Joe’s Journal",kareem:"Kareem Abdul-Jabbar",leandramcohen:"The Cereal Aisle",mirandajuly:"Miranda July",natesilver:"Silver Bulletin",pamelaanderson:"The Open Journal",pattismith:"Patti Smith",seanspicer:"Sean Spicer",tinabrown:"Fresh Hell",wishbonekitchen:"The Group Chat",ottolenghi:"Ottolenghi",yourrichbff:"enRICHed"},o1={aaronparnas:"Aaron Parnas",whattocook:"Caroline Chambers",georgesaunders:"George Saunders",jameelajamil:"Jameela Jamil",jamespatterson:"James Patterson",jessicareedkraus:"Jessica Reed Kraus",jimacosta:"Jim Acosta",joannagoddard:"Joanna Goddard",joesjournal:"Joseph Gordon Levitt",kareem:"Kareem Abdul-Jabbar",leandramcohen:"Leandra Medine Cohen",mirandajuly:"Miranda July",natesilver:"Nate Silver",pamelaanderson:"Pamela Anderson",pattismith:"Patti Smith",seanspicer:"Sean Spicer",tinabrown:"Tina Brown",wishbonekitchen:"Wishbone Kitchen",ottolenghi:"Yotam Ottolenghi",yourrichbff:"Your Rich BFF"},o2={aaronparnas:"Attorney and political commentator breaking down U.S. and global news with clarity and urgency.",whattocook:"Recipe developer and food writer known for family-friendly, flavor-packed meals that anyone can cook.",georgesaunders:"Booker Prize-winning author sharing exclusive stories, writing advice, and deep dives into craft and character.",jameelajamil:"Actress and activist writing about media, wellness, mental health, and public discourse with radical honesty.",jamespatterson:"Bestselling author bringing original fiction and behind-the-scenes insights directly to his readers.",jessicareedkraus:"Narrative deep dives into the worlds of politics, celebrity, and internet culture—told with a sharp eye, skeptical mind, and unapologetically personal voice.",jimacosta:"Veteran journalist and CNN anchor offering behind-the-scenes analysis and unfiltered takes on U.S. politics.",joannagoddard:"Beloved lifestyle writer and founder of Cup of Jo, sharing personal essays, culture picks, and community conversation.",joesjournal:"Actor and founder of HitRecord sharing creative experiments, personal reflections, and conversations with fellow artists.",kareem:"NBA legend and award-winning author writing about sports, politics, history, and American culture.",leandramcohen:"Fashion writer and humorist exploring style, motherhood, and identity with signature wit and candor.",mirandajuly:"Artist, writer, and filmmaker sharing unfiltered, improvisational work across mediums, alongside a vibrant community chat.",natesilver:"Data-driven takes on politics, polling, and the media from the founder of FiveThirtyEight.",pamelaanderson:"Actress and activist sharing deeply personal writing, reflections, and updates on her creative work.",pattismith:"Iconic musician and poet chronicling life on tour, creativity, and behind-the-scenes reflections.",seanspicer:"Inside-the-room political commentary and conservative analysis from the former White House press secretary.",tinabrown:"Legendary editor and media powerhouse offering sharp commentary on culture, power, and politics.",wishbonekitchen:"Private chef and viral food creator serving up approachable, seasonal recipes and life updates from the kitchen.",ottolenghi:"Renowned chef and author offering exclusive recipes, stories, and test kitchen insights each week.",yourrichbff:"Former Wall Street trader turning finance into fun, with sharp, accessible money advice for everyday life."},o3={aaronparnas:["169, 149, 87","56, 74, 90"],whattocook:["134, 157, 196","44, 66, 108"],georgesaunders:["119, 128, 121","68, 85, 70"],jameelajamil:["169, 93, 96","79, 60, 41"],jamespatterson:["111, 164, 118","62, 108, 83"],jessicareedkraus:["148, 141, 140","141, 37, 12"],jimacosta:["120, 124, 136","95, 85, 61"],joannagoddard:["144, 172, 197","24, 78, 129"],joesjournal:["140, 77, 89","109, 76, 92"],kareem:["127, 114, 138","60, 36, 68"],leandramcohen:["173, 108, 84","68, 49, 47"],mirandajuly:["162, 126, 104","76, 44, 44"],natesilver:["4, 152, 40","7, 148, 37"],pamelaanderson:["148, 153, 134","107, 107, 46"],pattismith:["149, 132, 124","63, 62, 60"],seanspicer:["164, 116, 92","79, 60, 52"],tinabrown:["140, 13, 12","140, 13, 12"],wishbonekitchen:["137, 96, 16","137, 96, 16"],ottolenghi:["196, 124, 140","149, 4, 17"],yourrichbff:["109, 162, 92","95, 90, 53"]},o4={aaronparnas:"https://aaronparnas.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),whattocook:"https://whattocook.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),georgesaunders:"https://georgesaunders.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jameelajamil:"https://jameelajamil.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jamespatterson:"https://jamespatterson.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jessicareedkraus:"https://jessicareedkraus.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),jimacosta:"https://jimacosta.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),joannagoddard:"https://joannagoddard.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),joesjournal:"https://journal.hitrecord.org/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),kareem:"https://kareem.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),leandramcohen:"https://leandramcohen.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),mirandajuly:"https://mirandajuly.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),natesilver:"https://www.natesilver.net/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),pamelaanderson:"https://pamelaanderson.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),pattismith:"https://pattismith.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),seanspicer:"https://www.seanspicer.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),tinabrown:"https://tinabrown.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),wishbonekitchen:"https://wishbonekitchen.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),ottolenghi:"https://ottolenghi.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about),yourrichbff:"https://yourrichbff.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.about)},o9=()=>{let e=o$.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(em,{author:o1[e],coverImageUrl:"/img/about_page/".concat(e,"-cover.jpg"),description:o2[e],logoUrl:"/img/about_page/".concat(e,"-logo.jpg"),title:o0[e],backgroundColors:o3[e],url:o4[e]})},e));return(0,a.jsxs)("div",{className:I()(e_["showcase-marquee"],oZ.jobPageMarquee),children:[(0,a.jsx)("ul",{className:I()(e_["marquee-content"]),children:e}),(0,a.jsx)("ul",{className:I()(e_["marquee-content"]),"aria-hidden":"true",children:e})]})},o8=[{content:"I love that Substack is big enough to have a real shot at changing the world, yet small enough that my own contributions matter. I love that we’re building a healthy alternative to social media and mainstream media. I love being part of a company with principled founders, and a strong commitment to free speech.",image:"/img/jobs_page/v2/team-dayne.jpg",author:"Dayne Rathbone, Product Research"},{content:"Working at Substack is a refreshing escape from the advertising and attention-fracking business models that dominate the technology landscape. I'm proud to work on a team that has the courage & ambition to make a real impact in the world, coupled with principles and incentives which make it likely this change will actually be for the good.",image:"/img/jobs_page/v2/team-niall.jpg",author:"Niall Wingham, Engineer"},{content:"I love so many things about Substack, but one of my favorites is the range of backgrounds my teammates bring. We have people from social media, TV, publishing, tech, and freelance writing — it creates a really unique mix of perspectives all working toward the same goal. Beyond being united by the mission, nearly everyone here is also genuinely creative. We make time to write, make music, or record podcasts. It’s a special group of people.",image:"/img/jobs_page/v2/team-bailey.jpg",author:"Bailey Dunn, Partnerships"},{content:"Working with Substack means doing meaningful work in media while being truly valued as an individual. It’s a place where you’re seen, supported, and surrounded by incredible people.",image:"/img/jobs_page/v2/team-will.jpg",author:"Will Taliaferro, User Support"}],o7=()=>(0,a.jsx)(E.pT,{wrap:"wrap",className:I()(oZ.quoteContainer),children:o8.map(e=>(0,a.jsxs)(E.I1,{gap:20,className:I()(oZ.quoteColumn),children:[(0,a.jsx)(y.EY.MarketingBody,{children:e.content}),(0,a.jsxs)(E.pT,{direction:"row",alignItems:"center",gap:12,children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)(e.image),maxWidth:200,className:I()(oZ.quoteImage),imageProps:{height:200}}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(oZ.quoteAuthor),children:e.author})]})]},e.author))}),o5=[{logo:'',quote:"A new economic engine for culture",url:"https://on.substack.com/p/2million"},{logo:'',quote:"Substack: Chris Best and Hamish McKenzie",url:"https://wondery.com/shows/how-i-built-this/episode/10386-substack-chris-best-and-hamish-mckenzie/"},{logo:'',quote:"The New Substack Universe",url:"https://nymag.com/intelligencer/article/the-new-substack-universe.html"},{logo:'',quote:"Why is everyone suddenly on Substack?",url:"https://www.newsweek.com/why-everyone-suddenly-substack-2039011"},{logo:'',quote:"Substack is social media worth participating in",url:"https://post.substack.com/p/substack-is-a-social-media-app"},{logo:'',quote:"Substack: 2025 TIME100 Most Influential Companies",url:"https://time.com/collections/time100-companies-2025/7289596/substack/"},{logo:'',quote:"Why Substack is an island in the chaotic ocean of social media",url:"https://adage.com/brand-marketing/aa-substack-hottest-brands-2025/"},{logo:'\n',quote:"Substack raises $100M, becoming unicorn with $1.1B valuation",url:"https://www.axios.com/2025/07/17/substack-newsletter-funding-creator-economy"}],o6=()=>(0,a.jsx)("div",{className:I()(oZ["press-grid"]),children:o5.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:I()(oZ["press-logo"]),dangerouslySetInnerHTML:{__html:e.logo}}),(0,a.jsxs)(y.EY.MarketingHeading4,{className:I()(oZ["press-quote"]),children:["“",e.quote,"”"]}),(0,a.jsx)("a",{href:e.url,style:{textDecoration:"none"},className:I()(oZ["press-grid-link"]),children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{className:I()(oZ["press-grid-link-text"]),children:"Read article"}),(0,a.jsx)(ej.A,{size:20})]})})]},e.quote))}),se=e=>{let{quote:t,author:n,authorImage:i,quoteIncludesPunctuation:r}=e;return(0,a.jsxs)(E.I1,{gap:32,alignItems:"center",children:[(0,a.jsxs)(y.EY.MarketingHeading4,{align:"center",className:I()(oZ.jobQuote),children:[!r&&"“",t,!r&&"”"]}),i?(0,a.jsxs)(E.pT,{direction:{mobile:"column-reverse",desktop:"row"},alignItems:"center",gap:12,children:[(0,a.jsx)(ed.o,{className:I()(oZ.jobQuoteImage),src:(0,N.dJ9)(i),maxWidth:200,imageProps:{height:200}}),(0,a.jsx)(y.EY.MarketingBody,{children:n})]}):(0,a.jsxs)(y.EY.MarketingBody,{children:["– ",n]})]})},st=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.mediaStartup}),sn=e=>{let{icon:t,title:n,description:i}=e;return(0,a.jsxs)(E.I1,{gap:16,alignItems:"center",className:"feature-UhpK6h",children:[(0,a.jsx)(E.pT,{className:"featureIcon-ZCc4ac",alignItems:"center",justifyContent:"center",children:(0,a.jsx)(ed.o,{src:t,maxWidth:120,style:{width:120,height:120}})}),(0,a.jsx)(y.EY.H3,{font:"marketing",weight:"semibold",align:"center",children:n}),(0,a.jsx)(y.EY.MarketingBody,{align:"center",color:"secondary",children:i})]})},sa=l(()=>{let{iString:e}=(0,h.GO)(),t=(0,a.jsxs)(y.EY,{as:"div",translated:!0,className:"heroTitle-ibShAF",children:["Now is the time to start a media business.",(0,a.jsx)("br",{}),"Build yours on Substack."]}),n=[{name:"The Free Press",description:"Bold and independent coverage of politics and culture",logo:"/img/startups/icons/the-free-press.png",screenshot:"/img/startups/screenshots/the-free-press-2.png",url:"https://www.thefp.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["249, 49, 44","182, 22, 19"]},{name:"Lenny's Newsletter",description:"Product, growth, and career advice",logo:"/img/startups/icons/lennys-newsletter.jpg",screenshot:"/img/startups/screenshots/lennys-newsletter.png",url:"https://lennysnewsletter.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["247,138,31","250,183,28"]},{name:"The Bulwark",description:"Honest News. Smart Analysis. Good Faith",logo:"/img/startups/icons/the-bulwark.jpg",screenshot:"/img/startups/screenshots/the-bulwark.png",url:"https://www.thebulwark.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["208,1,28","0, 0, 0"]},{name:"Pirate Wires",description:"Tech, politics, culture",logo:"/img/startups/icons/pirate-wires.jpg",screenshot:"/img/startups/screenshots/pirate-wires.png",url:"https://www.piratewires.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["0, 0, 0","175, 175, 175"]},{name:"Feed Me",description:"The spirit of enterprise",logo:"/img/startups/icons/feed-me.jpg",screenshot:"/img/startups/screenshots/feed-me.png",url:"https://readfeedme.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["2, 111, 1","2, 80, 1"]},{name:"Zeteo",description:"Breaking news from Mehdi Hasan and friends",logo:"/img/startups/icons/zeteo.jpg",screenshot:"/img/startups/screenshots/zeteo.png",url:"https://zeteo.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.startups),palette:["174, 2, 1","197, 81, 75"]}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(aL.k,{priority:"primary"}),(0,a.jsx)(J.O,{title:e("The home for media startups"),description:e("Substack gives founders everything they need to launch, grow, and thrive.")}),(0,a.jsx)(tj,{backgroundColor:"white",title:t,body:e("The world is ready for independent voices and new institutions. Substack gives ambitious founders everything they need to launch, grow, and thrive."),bodyMaxWidth:480,primaryAction:{text:e("Start building today"),buttonProps:{href:st,onClick:()=>(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:st}),localNavigation:!1}},image:{path:"/img/startups/hero.png",width:600},height:"short"}),(0,a.jsx)(eR,{backgroundColor:"wash",title:e("Now is the time to build"),children:(0,a.jsx)(E.I1,{gap:32,alignItems:"center",children:(0,a.jsxs)(E.pT,{className:"whyNowIllustration-kQM3ID",padding:40,direction:"column",children:[(0,a.jsx)(ed.o,{src:"/img/startups/build.png",maxWidth:1920,imageProps:{height:1080},style:{maxWidth:"100%",height:"auto"}}),(0,a.jsxs)(y.EY.MarketingBody,{align:"left",className:"whyNowCopy-aczpWd",children:[(0,a.jsx)("p",{children:"The media is going through a volatile transition as the industry adjusts to the ongoing ramifications of the internet and the start of the AI age, but the public’s appetite for trustworthy information is greater than ever. While some of the giants of yesterday are struggling to survive this transition, there is an immense opportunity for ambitious media founders to build a new generation of institutions."}),(0,a.jsx)("p",{children:"New institutions built on independent voices and direct audience relationships are shaping a better system. These startups are the future, showing the way forward to a media ecosystem that can be richer, deeper, more open, and more valuable than what has come before. As the best of these voices succeed and grow on Substack, we provide them with infrastructure that flexes to meet their growing ambitions. Substack integrates web, newsletter, podcast, video, and community tools seamlessly with an app that helps startups. We handle hosting, payments, analytics, and support so founders can focus on their business. There has never been a better time to start building."})]})]})})}),(0,a.jsx)(eR,{title:e("Media startups leading the way"),children:(0,a.jsxs)(E.I1,{gap:40,alignItems:"center",children:[(0,a.jsx)("div",{className:"successStoriesGrid-zNeEVW",children:n.map((e,t)=>(0,a.jsx)(em,{coverImageUrl:e.screenshot,description:e.description,logoUrl:e.logo,title:e.name,backgroundColors:e.palette,url:e.url},t))}),(0,a.jsx)(E.pT,{className:"testimonial-rPYP3M",padding:32,children:(0,a.jsxs)(E.I1,{gap:16,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingBody,{className:"testimonialText-fkYHKh",align:"center",children:"“Substack tools are incredible. Their CMS alone would be a compelling reason to build with them, but their entire publishing backend is beautiful, and their growth network is unlike anything else in the business.”"}),(0,a.jsx)(y.EY.MarketingBody,{color:"secondary",align:"center",className:"testimonialSource-ixbl3T",children:"— Mike Solana, Pirate Wires"})]})})]})}),(0,a.jsx)(eR,{backgroundColor:"wash",title:e("Why build on Substack?"),children:(0,a.jsxs)("div",{className:"featuresGrid-hTBezC",children:[(0,a.jsx)(sn,{icon:"/img/startups/icon1.png",title:"All-in-one publishing",description:"Website, newsletter, podcast, video, and community tools integrated seamlessly"}),(0,a.jsx)(sn,{icon:"/img/startups/icon2.png",title:"Audience growth",description:"More than 30% of new paid subscriptions come from within Substack's network of users"}),(0,a.jsx)(sn,{icon:"/img/startups/icon3.png",title:"Build it, own it",description:"You own your content, subscriber list, and audience completely"}),(0,a.jsx)(sn,{icon:"/img/startups/icon4.png",title:"Focus on building",description:"We handle hosting, payments, analytics, and support so you can build your business"}),(0,a.jsx)(sn,{icon:"/img/startups/icon5.png",title:"Scale to the next level",description:"Substack scales with you and flexes to meet your ambitions"})]})}),(0,a.jsx)(eR,{paddingY:80,children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{translated:!0,as:"h2",align:"center",children:"Ready to build your media startup?"}),(0,a.jsx)(A.$n,{size:"lg",href:st,onClick:()=>(0,M.u4)(M.qY.HOMEPAGE_LINK_CLICKED,{url:st}),localNavigation:!1,children:e("Start building today")})]})})]})}),si=(0,o.createContext)({code:null});var sr=n(55561);let so=l(e=>{let{onResults:t,onQuery:n,children:i,defaultQuery:r}=e,{query:s,page:l,resource:c,allResults:d,onSearch:u,onMore:p}=(0,sr.z)({defaultQuery:r});(0,o.useEffect)(()=>{t({results:c.result,loading:c.isLoading,error:c.error,query:s,page:l})},[c.result,c.isLoading,c.error]);let m=(0,o.useRef)(null);return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("div",{className:"discover-search-bar",children:[(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=e.currentTarget.search.value;n(t),u(t)},children:(0,a.jsx)("input",{className:"search-bar",name:"search",placeholder:"Search for a publication or topic …",ref:m,defaultValue:r})}),(0,a.jsx)(rw.A,{size:24,stroke:"#555555"})]}),"function"==typeof i?i({results:s?d.results:null,more:d.more,error:c.error,loading:c.isLoading,query:s,onSearch:u}):null,d.more&&(0,a.jsx)("div",{className:"view-more",children:(0,a.jsx)(A.$n,{priority:"secondary",onClick:p,disabled:c.isLoading,children:"View more"})})]})});class ss extends o.Component{componentDidMount(){let e={isMounted:!0},t=this.props.defaultQuery||(0,ee.y)("query");!t&&this.props.notFound&&this.props.url&&(t=this.props.url.split("/").pop()),t&&(e=(0,R._)((0,r._)({},e),{defaultQuery:t,hasSearchQuery:!0})),this.setState(e)}render(){var e;let t=this.props,{defaultQuery:n,isMounted:i,hasSearchQuery:o,hasNoResults:s}=null!=(e=this.state)?e:{};return(0,a.jsxs)("div",{className:"discover-page new-landing-page",children:[void 0===t.categorySlug?(0,a.jsx)(J.O,{title:"Discover Substack Newsletters",description:"Find great things to read on Substack. Browse top publications, find writers you follow, or search by topic.",seoProps:{noindex:!!(t.notFound||t.defaultQuery||(0,ee.y)("query")||s||o)}}):(0,a.jsx)(J.O,{title:"Top ".concat(t.categorySlug.toString().replace(/^\w/,e=>e.toUpperCase())," Newsletters on Substack"),description:"Browse top ".concat(t.categorySlug," Substack publications, find writers you follow, or search by topic.")}),(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"explore-header",children:[(0,a.jsx)("h1",{className:"display-type",children:"Discover world class culture"}),(0,a.jsx)("p",{className:"discover-page-subtitle",children:"Browse top publications, find writers and creators to follow, or search by topic."}),i&&(0,a.jsx)(so,{defaultQuery:null!=n?n:void 0,onQuery:this.onSearchQuery,onResults:this.onSearchResults,children:e=>(0,a.jsx)(sc,(0,r._)({categories:t.categories,user:t.user},e))})]}),!(o&&!s)&&(0,a.jsx)(iV,(0,R._)((0,r._)({},t),{updateUrl:!0}))]})]})}constructor(e,t){super(e,t),(0,aW._)(this,"onSearchQuery",e=>{this.setState({hasSearchQuery:!!e,hasNoResults:!1}),e&&(0,f.V2)("/discover/".concat(encodeURIComponent(e)))}),(0,aW._)(this,"onSearchResults",e=>{let{results:t,loading:n,error:a,query:i,page:r}=e;!i||n||a||(null==t?void 0:t.results)&&t.results.length>0||r>0?this.state.hasNoResults&&this.setState({hasNoResults:!1}):this.setState({hasNoResults:!0})}),this.state={tab:e.topList?"top-".concat(e.topList):"top-paid",hideTop:!1,defaultQuery:null,isMounted:!1,hasSearchQuery:!1,hasNoResults:!1},this.onSearchQuery=this.onSearchQuery.bind(this)}}let sl=l(ss),sc=e=>{let{results:t,explanations:n,loading:i,error:r,query:o,categories:s,user:l}=e;return i&&(!t||0===t.length)?(0,a.jsx)("div",{className:"items",children:"Searching..."}):r?(0,a.jsxs)("div",{className:"items",children:['Error searching for "',o,'"']}):Array.isArray(t)?(0,a.jsxs)("div",{className:"items search-results",children:[(0,a.jsxs)("p",{className:"results-description",children:[t.length?"Showing":"There are no"," results for ",(0,a.jsxs)("b",{children:["“",o,"”"]})]}),(0,a.jsx)(iY,{publications:t,explanations:n,ranking:"all",source:"discover_search",openInNew:!1,categories:s,user:l})]}):null},sd=()=>((0,o.useContext)(si).code=404,(0,a.jsxs)("div",{className:"not-found-page",children:[(0,a.jsx)(J.O,{title:"Page Not Found"}),(0,a.jsx)(sl,{notFound:!0})]}));var su=n(38217),sp=n(79107);let sm=e=>Object.entries(e).map(e=>{let[t,n]=e;return{id:t,visibility:n}}),sh=e=>{let{profile:t}=e,[n,i]=(0,o.useState)(t.name||""),[r,s]=(0,o.useState)(!!t.tos_accepted_at),[l,c]=(0,o.useState)(null),d=!!(0,ee.y)("commentProfileFlow"),u=(0,o.useCallback)(e=>e.then(()=>{c(null)}).catch(e=>{var t,n;let a=null==(n=e.response)||null==(t=n.body)?void 0:t.errors[0];c(a?a.msg:"An error occurred")}),[]),p=(0,o.useCallback)(e=>{let{name:t}=e;return(0,M.u4)(M.qY.PROFILE_STARTED,{has_name:!!t,tos_accepted:r}),u(m().put("/api/v1/user/profile").send({name:t,accept_tos:r})).then(()=>{d?(0,f.V2)((0,N.yRP)("".concat((0,N.Ewe)(),"/profile/visibility"),{next:(0,ee.y)("next")})):(0,f.V2)("".concat((0,N.Ewe)(),"/profile/fill"))})},[u,r,d]);return(0,a.jsxs)("div",{className:"page profile-page edit-profile-page onboarding-profile-page start-profile-page",children:[(0,a.jsx)(eV.A,{className:"substack-logo",width:38,height:43}),(0,a.jsx)("h1",{children:d?"To leave a comment, please finish setting up your profile":"Set up your profile"}),(0,a.jsxs)("div",{className:"edit-section",children:[(0,a.jsx)("label",{className:"edit-section-title",htmlFor:"profile-name",children:"Name"}),(0,a.jsx)("input",{type:"text",id:"profile-name",onInput:e=>{i(e.target.value)},value:n}),(0,a.jsxs)("label",{className:"accept-tos",children:[(0,a.jsx)("input",{type:"checkbox",checked:r,tabIndex:0,onInput:()=>s(!r)}),(0,a.jsxs)("span",{children:["I accept the"," ",(0,a.jsx)("a",{href:(0,G.lk)(),target:"_blank",children:"Terms of Service"})," ","and"," ",(0,a.jsx)("a",{href:(0,G.gB)(),target:"_blank",children:"Privacy Policy"})]})]})]}),l&&(0,a.jsxs)("div",{className:"edit-section error-message",children:["Error: ",l]}),(0,a.jsx)("button",{className:"set-up-profile-button",disabled:n.length<2||!r,onClick:()=>p({name:n}),children:(0,a.jsx)("span",{children:d?"Continue":"Get started"})})]})},sg=e=>{let{profile:t}=e,n=t.name,[i,r]=(0,o.useState)(null),[s,l]=(0,o.useState)(t.bio),[c,d]=(0,o.useState)(s),[u,p]=(0,o.useState)(null),h=!t.publicationUsers.length&&!t.subscriptions.length,g=h?(0,N.gYq)(t):"/profile/visibility",_=(0,o.useCallback)(e=>e.then(()=>{p(null)}).catch(e=>{var t,n;let a=null==(n=e.response)||null==(t=n.body)?void 0:t.errors[0];p(a?a.msg:"An error occurred")}),[]),b=(0,o.useCallback)(e=>{let{bio:t}=e;l(t);let a={name:n,bio:t,complete:h};return i&&(a.photo_url=i),(0,M.u4)(M.qY.PROFILE_FILLED_OUT,{bio_completed:!!t,photo_changed:!!i,complete:h}),_(m().put("/api/v1/user/profile").send(a)).then(()=>{(0,f.V2)(g,{local_navigation:!1})})},[n,g,i,h,_]);return(0,a.jsxs)("div",{className:"page profile-page edit-profile-page onboarding-profile-page fill-profile-page",children:[(0,a.jsx)(eV.A,{className:"substack-logo",width:38,height:43}),(0,a.jsx)("h1",{children:"Fill out your profile"}),(0,a.jsx)("div",{className:"flex edit-section center",children:(0,a.jsx)(su.U,{user:{photo_url:i||t.photo_url||null},onChangePhoto:e=>{let{photo_url:t}=e;return r(t)}})}),(0,a.jsxs)("div",{className:"edit-section",children:[(0,a.jsx)("label",{className:"edit-section-title",htmlFor:"profile-bio",children:"Bio"}),(0,a.jsx)("textarea",{rows:3,id:"profile-bio",onInput:e=>d(e.target.value),value:c})]}),u&&(0,a.jsxs)("div",{className:"edit-section error-message",children:["Error: ",u]}),(0,a.jsx)("button",{className:"set-up-profile-button",onClick:()=>b({name:n,bio:c}),children:(0,a.jsx)("span",{children:"Continue"})}),(0,a.jsx)("a",{href:"/profile/visibility",className:"skip-button","data-native":!0,children:(0,a.jsx)("span",{children:"Skip for now"})})]})},s_=e=>{let t={};for(let n of e)t[n.id]="public";return t},sb=e=>Object.entries(e).some(e=>{let[,t]=e;return"private"===t}),sf=(e,t)=>{let n=0;for(let a of e)a.visibility===t&&n++;return n},sA=e=>{let{profile:t}=e,{publicationUsers:n}=t,i=(0,aH.sortSubscriptions)(t.subscriptions),[s,l]=(0,o.useState)(s_(n)),[c,d]=(0,o.useState)(s_(i)),u=sb(s),p=sb(c),[h,g]=(0,o.useState)(!1),_=(0,o.useCallback)(()=>{if(h)return;g(!0);let e=sm(s),n=sm(c);(0,M.u4)(M.qY.PROFILE_VISIBILITY_SET,{complete:!0,public_writes:sf(e,"public"),private_writes:sf(e,"private"),public_reads:sf(n,"public"),private_reads:sf(n,"private")}),m().put("/api/v1/user/profile").send({name:t.name,writes_visibility:e,reads_visibility:n,complete:!0}).then(()=>{let e=(0,ee.y)("next")||(window.sessionStorage.getItem("initialJoinSubstack")?(0,N.q$g)():(0,N.gYq)(t));window.sessionStorage.removeItem("initialJoinSubstack"),(0,f.V2)(e)}).catch(e=>{alert((0,f.uX)(e,"Something went wrong, please retry"))}).finally(()=>{g(!1)})},[h,t,c,s]),b=(0,o.useCallback)(e=>{let{type:t,publicationUser:n,subscription:a,visibility:i}=e;"writes"===t?l(e=>{var t;return(0,r._)({},e,{[null!=(t=n.id)?t:"undefined"]:i})}):d(e=>{var t;return(0,r._)({},e,{[null!=(t=a.id)?t:"undefined"]:i})})},[]),A=(0,o.useCallback)((e,t)=>{let n=Object.keys("writes"===e?s:c);("writes"===e?l:d)(Object.fromEntries(n.map(e=>[e,t])))},[s,c]);return(0,a.jsxs)("div",{className:"page profile-page edit-profile-page onboarding-profile-page fill-profile-page",children:[(0,a.jsx)(eV.A,{className:"substack-logo",width:38,height:43}),(0,a.jsx)("h1",{children:"Choose what to show on your profile"}),i.length>=5&&(0,a.jsx)("button",{className:"set-up-profile-button top-button",disabled:h,onClick:_,children:(0,a.jsx)("span",{children:"Continue"})}),n.length>0&&(0,a.jsxs)("div",{className:"publication-section writes",children:[(0,a.jsxs)("div",{className:"publication-section-header",children:[(0,a.jsx)("h2",{className:"publication-section-title",children:"Listed publications"}),n.length>1&&(0,a.jsx)("button",{className:"all-toggle",onClick:()=>A("writes",u?"public":"private"),children:u?"Show all":"Hide all"})]}),(0,a.jsx)("div",{className:"publication-list",children:n.map(e=>(0,a.jsx)(sp.w,{type:"writes",publicationUser:e,publication:e.publication,visibility:s[e.id],onVisibilityChange:b},e.id))})]}),i.length>0&&(0,a.jsxs)("div",{className:"publication-section reads",children:[(0,a.jsxs)("div",{className:"publication-section-header",children:[(0,a.jsx)("h2",{className:"publication-section-title",children:"Listed subscriptions"}),i.length>1&&(0,a.jsx)("button",{className:"all-toggle",onClick:()=>A("reads",p?"public":"private"),children:p?"Show all":"Hide all"})]}),(0,a.jsx)("div",{className:"publication-list",children:i.map(e=>(0,a.jsx)(sp.w,{type:"reads",subscription:e,publication:e.publication,visibility:c[e.id],onVisibilityChange:b},e.id))})]}),0===n.length&&0===i.length&&(0,a.jsx)("div",{children:"You don’t have any publications or subscriptions to list, yet."}),(0,a.jsx)("button",{className:"set-up-profile-button",disabled:h,onClick:_,children:(0,a.jsx)("span",{children:"Continue"})})]})},sE=e=>{let{imageUrl:t,title:n,children:i,isImageLeft:r,maxWidth:o}=e;return(0,a.jsxs)("div",{className:r?"health-section-section health-section-section-left":"health-section-section",children:[(0,a.jsx)("img",{src:t,className:"health-section-section-image",style:{maxWidth:o}}),(0,a.jsxs)("div",{className:"health-section-section-text-container",children:[(0,a.jsx)("div",{className:"health-section-section-title",children:n}),(0,a.jsx)("div",{className:"health-section-section-subtitle",children:i})]})]})},sy=e=>{let{title:t,date:n,info:i,children:r}=e;return(0,a.jsxs)("div",{className:"program",children:[(0,a.jsx)("div",{className:"program-title",children:t}),(0,a.jsx)("div",{className:"program-date",children:n}),(0,a.jsx)("div",{className:"program-info",children:i}),(0,a.jsx)("div",{className:"program-description",children:r})]})},sN=l(e=>{let{}=e,t="https://airtable.com/shr5PBlzNrJv0Cqn5";return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack Go",description:"Substack Go is a month-long program for Substack writers looking to supercharge their publishing efforts. Participating writers will be connected to a small squad of their peers to keep going and building their publications, together.",image:(0,aS.dJ9)("/img/programs/go/og.png",2400)}),(0,a.jsx)("div",{className:"go-hero",children:(0,a.jsxs)("div",{className:"go-hero-content",children:[(0,a.jsx)("div",{className:"go-hero-header",children:"Being independent shouldn’t mean being alone."}),(0,a.jsx)("div",{className:"go-hero-subtitle",children:"Substack Go is a month-long program for Substack writers looking to supercharge their publishing efforts. Participating writers will be connected to a small squad of their peers to keep going and building their publications, together."}),(0,a.jsx)("a",{className:"button big-button primary",href:t,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,children:"Join the waitlist"})]})}),(0,a.jsx)("div",{className:"health-section",children:(0,a.jsx)("div",{className:"health-section-content",children:(0,a.jsxs)(sE,{imageUrl:(0,aS.dJ9)("/img/programs/go/go.png",864),maxWidth:432,title:"The support system writers need to build momentum.",children:["During the month of February, Substack will connect participants to a small squad of eight to ten fellow Substack writers for four weeks of support and structured guidance.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Writers will leave the program with an understanding of Substack fundamentals, a squad of peers to turn to, and an established writing and publishing cadence.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("em",{children:["The first program ran in February of 2022.",(0,a.jsx)("a",{href:t,children:" Join the waitlist"})," for the next iteration of Substack Go."]}),(0,a.jsx)("a",{className:"button big-button primary",href:t,style:{height:"48px",lineHeight:"28px",borderRadius:"4px",marginTop:"32px"},"data-native":!0,children:"Join the waitlist"})]})})}),(0,a.jsx)("div",{className:"program-overview-section",children:(0,a.jsxs)("div",{className:"program-overview-section-content",children:[(0,a.jsx)("div",{className:"program-overview-section-header",children:"Program overview."}),(0,a.jsx)(sy,{title:"Go kickoff",date:"Tuesday, February 1",info:"One 60-minute session, offered three times to accommodate different time zones.",children:"At the kickoff session, we’ll introduce you to the small squad that you will meet with throughout Go. Writers will be paired based on category, region, or writing stage, as well as time availability. We’ll help writers get to know their squads and set and share personal goals."}),(0,a.jsxs)(sy,{title:"Daily Tips",date:"Delivered to inboxes daily throughout the month of February.",children:["Participating writers will be added to a private publication just for Substack Go writers. There, the Substack team will publish daily bite-sized tips on a strategic theme.",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Week 1: Developing goals for your publication"}),(0,a.jsx)("li",{children:"Week 2: Differentiating your writing"}),(0,a.jsx)("li",{children:"Week 3: Touring the Substack editor"}),(0,a.jsx)("li",{children:"Week 4: Finding and engaging with readers"})]})]}),(0,a.jsx)(sy,{title:"Roundtables",date:"Friday, February 4, 11, 18, and 25",info:"Weekly 45-minute sessions, offered three times each week to accommodate different time zones.",children:"Each week the Substack team and writer squads will gather together for facilitated critiques called “Roundtables.” Treat the Writer Roundtables as you would a newsroom or writing studio—a space for you to seek feedback on a key part of your publication from fellow writers."}),(0,a.jsxs)("div",{className:"program-overview-section-disclaimer",children:["Participating writers are encouraged to carve out time to publish consistently while participating in Substack Go. Whether you publish monthly, weekly, daily or somewhere in between, the experience will be most meaningful for writers who maintain their drumbeat. Events like ",(0,a.jsx)("a",{href:"https://substack.com/events",target:"_blank",children:"Writing Hour"})," offer extra accountability and space to write with fellow writers"]})]})}),(0,a.jsx)("div",{className:"health-section",children:(0,a.jsx)("div",{className:"health-section-content",children:(0,a.jsxs)(sE,{isImageLeft:!0,maxWidth:392,imageUrl:(0,aS.dJ9)("/img/programs/go/blocks.png",784),title:"Who is Substack Go for?",children:["Go is for writers getting started or restarted, eager to set the foundation for publishing regularly in community with fellow writers.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Writers are required to have a ",(0,a.jsx)("a",{href:"http://substack.com/",children:"Substack publication"})," and be in compliance with the ",(0,a.jsx)("a",{href:"https://substack.com/content",children:"Content Guidelines"}),"."]})})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"To flourish, writers need a support structure."}),(0,a.jsx)("div",{className:"final-section-subtitle",children:"If you’d like to go deeper into your writing and publishing practice, or to kickstart a new one, you don’t have to go at it alone."}),(0,a.jsx)("a",{className:"button big-button primary",href:t,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,children:"Join the waitlist"})]})})]})}),sO=e=>{let{title:t,children:n}=e;return(0,a.jsxs)("div",{className:"program",children:[(0,a.jsx)("div",{className:"program-title",children:t}),(0,a.jsx)("div",{className:"program-description",children:n})]})},sv=e=>{let{title:t,children:n}=e;return(0,a.jsxs)("div",{className:"program-small",children:[(0,a.jsx)("div",{className:"program-small-title",children:t}),(0,a.jsx)("div",{className:"program-small-description",children:n})]})},sx=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Substack Fellowships",description:"Substack offers ongoing fellowship opportunities to support writers who are ready to turn their writing practice into a career.",image:(0,aS.dJ9)("/img/programs/programs/og.png",2400)}),(0,a.jsx)("div",{className:"go-hero",children:(0,a.jsxs)("div",{className:"go-hero-content",children:[(0,a.jsx)("div",{className:"go-hero-header",children:"Programs to help writers navigate independence."}),(0,a.jsx)("div",{className:"go-hero-subtitle",children:"At Substack, we believe that writing can be both a form of expression and a way to make income on your own terms. We welcome applications from writers who are ready to turn their writing practice into a career."}),(0,a.jsx)("img",{className:"programs-hero-image",src:(0,aS.dJ9)("/img/programs/programs/programs-hero.png",1216),alt:"programs-illustration"})]})}),(0,a.jsx)(tV,{testimonial:"“This fellowship is such a thrilling opportunity that will help Power Plays thrive, and it encapsulates why Substack was the perfect place to launch this newsletter — they really do care about writers and journalism.”",authorName:"Lindsay Gibbs",publicationName:"Power Plays",publicationUrl:"https://www.powerplays.news"}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content-small",children:[(0,a.jsx)(tq,{isImageLeft:!0,small:!0,imageUrl:"/img/going_paid/bridge.png",title:"Intensives are sprints for driven writers.",subtitle:"These immersive, short-form programs recur each quarter, and bring writers close to Substack’s product and insights to help evolve their publications around a specific theme or genre."}),(0,a.jsx)(tq,{small:!0,imageUrl:"/img/going_paid/flag.png",title:"Fellowships power long-term independence.",subtitle:"Through fellowships, Substack provides writers with substantial support over an extended period, allowing them to dedicate their attention to launching a media business on Substack."}),(0,a.jsx)(tq,{isImageLeft:!0,small:!0,imageUrl:"/img/going_paid/cat.png",title:"Writing with benefits.",subtitle:"Substack’s fellows receive services, strategic coaching, mentorship, and exposure. Participating writers share their tips and strategies, forming a powerful support structure."})]})}),(0,a.jsx)("div",{className:"program-overview-section",id:"programs",children:(0,a.jsxs)("div",{className:"program-overview-section-content",children:[(0,a.jsx)("div",{className:"program-overview-section-header",children:"Upcoming Programs"}),(0,a.jsx)(sO,{title:"Summer of Sound",children:(0,a.jsx)("div",{children:"Substack's Summer of Sound is an immersive, month-long intensive for podcasters, audio creators, and musicians to deepen their skills and accelerate their publications. Applications are now closed."})})]})}),(0,a.jsx)("div",{className:"program-overview-section",id:"programs",children:(0,a.jsxs)("div",{className:"program-overview-section-content",children:[(0,a.jsx)("div",{className:"program-overview-section-header",children:"Current Programs"}),(0,a.jsx)(sO,{title:"Food Intensive",children:(0,a.jsxs)("div",{children:["In Spring 2022, we selected 10 fellows for"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/substack-food-fellowship?s=w",children:"Substack's Food Intensive"}),". These emerging food & drink writers are currently focused on enhancing their publications and defining the future of food writing on Substack."]})})]})}),(0,a.jsx)("div",{className:"program-overview-section",id:"programs",children:(0,a.jsxs)("div",{className:"program-overview-section-content",children:[(0,a.jsx)("div",{className:"program-overview-section-header-small",children:"Past Programs"}),(0,a.jsxs)(sv,{title:"Substack Grow Intensive",children:["This ",(0,a.jsx)("a",{href:"https://on.substack.com/p/substack-grow-fellowship",children:"cohort"})," participated in a fellowship rooted in strategic advancement and community leadership."]}),(0,a.jsxs)(sv,{title:"Local News Fellowship",children:["Substack supported "," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/announcing-the-winners-of-substack",children:"local news"})," journalists around the world to build their media businesses independently."]}),(0,a.jsxs)(sv,{title:"Substack Fellowship for Independent Writers, 2020",children:[(0,a.jsx)("a",{href:"https://on.substack.com/p/introducing-the-new-batch-of-substack",children:"This program"})," built on our first fellowship, with the aim of giving prominence to emerging talent."]}),(0,a.jsxs)(sv,{title:"Substack Fellowship for Independent Writers, 2019",children:["Substack’s "," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/introducing-the-substack-fellowship",children:"first program"})," was designed to help five writers take their publications to the next level."]})]})}),(0,a.jsx)(tV,{testimonial:"“Thanks to Substack's fellowship program I now have all the tools I need to succeed, a plan to earn a living from my newsletter, and a community of writers to support me along the way.”",authorName:"Elle Griffin",publicationName:"The Novelleist",publicationUrl:"https://ellegriffin.substack.com"})]})});var sS=n(28528),sw=n(74762),sI=n(18540),sM=n(69706);let sC=e=>{let{pub:t}=e,n=(0,ap.Zm)({publication:t,subscriptionSource:"leaderboard-sidebar",sourceNoteId:null}),i=(0,aH.getByLine)(t,{skipMultiContributorCheck:!0});return(0,a.jsxs)(E.Ye,{gap:12,justifyContent:"space-between",alignItems:"center",children:[(0,a.jsxs)(E.Ye,{as:"a",href:(0,N.$_T)(t),gap:12,alignItems:"center",children:[(0,a.jsx)(ad.Nq,{pub:t,size:40,belowTheFold:!0}),(0,a.jsxs)(E.I1,{gap:2,children:[(0,a.jsx)(y.EY.B4,{children:t.name}),i?(0,a.jsxs)(y.EY.B4,{color:"secondary",children:["By ",i]}):null]})]}),n.isSubscribed?(0,a.jsx)(A.K0,{priority:"secondary",size:"sm",onClick:n.unsubscribe,children:(0,a.jsx)(ao.A,{size:20})}):(0,a.jsx)(A.K0,{priority:"primary",size:"sm",onClick:n.subscribe,children:(0,a.jsx)(ao.A,{size:20})})]})},sk=e=>{let{pubs:t}=e;return(0,a.jsx)(E.I1,{gap:16,children:t.map(e=>(0,a.jsx)(sC,{pub:e}))})},sj=e=>{let{pub:t,post:n,descriptor:i,index:r}=e;return(0,a.jsxs)(E.pT,{as:"a",href:(0,N.wu9)(t,n),direction:{desktop:"row",mobile:"column"},border:"detail",radius:"md",children:[(0,a.jsx)(sw.t,{post:n,className:"postImage-mS1cy4",imageWidth:1250,imageAspectRatio:sM.qr,isBelowTheFold:r>0,playButtonSize:null,squareImageSize:"large"}),(0,a.jsxs)(E.I1,{gap:16,paddingX:12,paddingY:16,children:[(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(y.EY.H4,{children:n.title}),(0,a.jsx)(y.EY.B4,{clamp:3,children:n.description})]}),(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)(y.EY.Meta,{color:"secondary",children:i.toUpperCase()}),n.reaction_count>0&&(0,a.jsxs)(y.EY.Meta,{color:"secondary",children:[n.reaction_count," LIKES"]}),n.restacks&&n.restacks>0&&(0,a.jsxs)(y.EY.Meta,{color:"secondary",children:[n.restacks," RESTACKS"]}),n.comment_count>0&&(0,a.jsxs)(y.EY.Meta,{color:"secondary",children:[n.comment_count," COMMENTS"]})]})]})]})},sL=e=>{let{pub:t,mediumLengthDescription:n,topPost:i,mostRecentPost:r,otherCategories:o,index:s}=e,l=(0,tb.Iu)(),c=(0,ap.Zm)({publication:t,subscriptionSource:"leaderboard",sourceNoteId:null}),d=(0,aH.getByLine)(t,{skipMultiContributorCheck:!0});return(0,a.jsx)(sS.XL,{pub:t,children:(0,a.jsxs)(E.I1,{gap:56,children:[(0,a.jsx)(sI.c,{}),(0,a.jsxs)(E.I1,{gap:48,children:[(0,a.jsxs)(E.I1,{gap:32,children:[(0,a.jsxs)(E.pT,{direction:{mobile:"column",desktop:"row"},gap:{desktop:12,mobile:24},justifyContent:"space-between",alignItems:"center",children:[(0,a.jsxs)(E.Ye,{as:"a",href:(0,N.$_T)(t),gap:16,alignItems:"center",children:[(0,a.jsx)(ad.Nq,{pub:t,size:64,belowTheFold:s>0}),(0,a.jsxs)(y.EY.H3,{as:"h2",children:[s+1,". ",t.name,d?" - ".concat(d):null]})]}),c.isSubscribed?(0,a.jsx)(A.$n,{onClick:c.unsubscribe,priority:"secondary-outline",flex:l?"grow":"auto",children:"Subscribed"}):(0,a.jsx)(A.$n,{priority:"secondary",onClick:c.subscribe,flex:l?"grow":"auto",children:"Subscribe"})]}),(0,a.jsxs)(E.I1,{gap:16,children:[n?(0,a.jsx)(y.EY.B3,{children:n}):!!t.hero_text&&(0,a.jsx)(y.EY.B3,{children:t.hero_text}),(0,a.jsxs)(E.Ye,{gap:12,justifyContent:"space-between",children:[t.rankingDetailFreeIncluded||t.rankingDetail?(0,a.jsx)(y.EY.Meta,{color:"secondary",children:(t.rankingDetailFreeIncluded||t.rankingDetail||"").toUpperCase()}):null,o&&(null==o?void 0:o.length)>0&&(0,a.jsxs)(y.EY.Meta,{color:"secondary",children:["ALSO APPEARS IN: ",o.join(", ").toUpperCase()]})]})]})]}),!!(i||r)&&(0,a.jsxs)(E.I1,{gap:16,children:[(0,a.jsx)(y.EY.Meta,{children:"RECENT AND TOP POSTS"}),(0,a.jsxs)(E.I1,{gap:24,children:[i&&(0,a.jsx)(sj,{pub:t,post:i,descriptor:"popular post",index:s}),r&&(0,a.jsx)(sj,{pub:t,post:r,descriptor:"Published ".concat((0,tg.A)(r.post_date).fromNow()),index:s})]})]})]})]})})},sR=e=>{let{categorySlug:t,pubsForSeoLeaderboard:n,trendingPubs:i,relatedPubs:r,category:s,categories:l}=e;(0,o.useEffect)(()=>{(0,M.u4)(M.qY.PUBLIC_LEADERBOARD_VIEWED,{category:t})},[]);let c=(null==i?void 0:i.length)>0,d=(null==r?void 0:r.length)>0,u=l.filter(e=>e.slug!==t&&"podcast"!==e.slug);return(0,a.jsxs)("div",{className:"home-VnF9kI",children:[(0,a.jsx)(J.O,{title:"Best ".concat(s.name," Newsletters on Substack"),description:s.leaderboard_description}),(0,a.jsxs)(E.I1,{children:[(0,a.jsxs)(E.pT,{padding:48,direction:{mobile:"column",desktop:"row"},gap:96,children:[(0,a.jsxs)(E.I1,{gap:56,children:[(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsxs)(E.Ye,{gap:16,justifyContent:"space-between",children:[(0,a.jsxs)(E.Ye,{gap:8,children:[(0,a.jsx)(y.EY.Meta,{as:"a",href:(0,N.LNy)(),color:"secondary",children:"HOME"}),(0,a.jsx)(y.EY.Meta,{color:"secondary",children:">"}),(0,a.jsx)(y.EY.Meta,{color:"secondary",children:s.name.toUpperCase()})]}),(0,a.jsxs)(y.EY.Meta,{as:"h1",color:"secondary",children:["TOP ",n.length," ",s.name.toUpperCase()," NEWSLETTERS ON SUBSTACK"]})]}),(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsxs)(y.EY.H2,{as:"h1",children:["Top ",s.name," Substacks"]}),(0,a.jsx)(y.EY.B3,{children:s.leaderboard_description?s.leaderboard_description:"Top, trending, and related Substack ".concat(s.name," publications.")})]})]}),(0,a.jsx)(E.I1,{gap:56,children:n.map((e,t)=>{let{pub:n,mediumLengthDescription:i,topPost:r,mostRecentPost:o}=e;return(0,a.jsx)(sL,{pub:n,mediumLengthDescription:i,topPost:r,mostRecentPost:o,index:t})})})]}),(0,a.jsxs)(E.I1,{className:"trendingSidebar-lpXyXT",gap:48,children:[c&&(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsxs)(y.EY.H4,{as:"h3",children:["Rising ",s.name," Substacks"]}),(0,a.jsx)(sk,{pubs:i})]}),c&&d&&(0,a.jsx)(sI.c,{className:"sideBarDivider-ULYE2q"}),d&&(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsxs)(y.EY.H4,{as:"h3",children:["Related ",s.name," Substacks"]}),(0,a.jsx)(sk,{pubs:r})]})]})]}),(0,a.jsx)(E.pT,{padding:64,alignItems:"center",justifyContent:"center",children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",as:"h2",children:"Explore top publications by category"}),(0,a.jsx)(E.pT,{gap:12,direction:{desktop:"row",mobile:"column"},justifyContent:"space-between",style:{width:"100%"},children:ek()(u,Math.ceil(u.length/3)).map(e=>(0,a.jsx)(E.I1,{gap:12,alignItems:{desktop:void 0,mobile:"center"},children:e.map(e=>(0,a.jsxs)(y.Yq,{href:"".concat((0,N.$_T)(),"/top/").concat(e.slug),color:"secondary",children:["Top ",e.name," newsletters"]}))}))})]})})]})]})},sT=e=>{let{title:t,description:n,children:i,id:r}=e;return(0,a.jsxs)("div",{className:"resources-section",id:r,children:[(0,a.jsxs)("h4",{className:"section-title",children:[" ",t," "]}),(0,a.jsxs)("p",{className:"section-description",children:[" ",n," "]}),i]})},sP=e=>{let{title:t,link:n}=e;return(0,a.jsxs)("a",{href:n,className:"resource",target:"_blank",children:[(0,a.jsxs)("div",{className:"title-container",children:[(0,a.jsx)(a0.A,{className:"resource-icon"}),(0,a.jsx)("span",{className:"resource-title",children:t})]}),(0,a.jsx)(a$.A,{className:"arrow-icon",fill:"none"})]})},sD=e=>{let{title:t,byline:n,imageUrl:i,link:r}=e;return(0,a.jsx)("div",{className:"featured-resource",children:(0,a.jsxs)("a",{href:r,target:"_blank",children:[(0,a.jsx)("img",{src:(0,N.dJ9)(i,700),alt:"",className:"featured-image"}),(0,a.jsxs)("div",{className:"text-container",children:[(0,a.jsx)("h5",{className:"featured-title",children:t}),(0,a.jsxs)("div",{className:"featured-byline",children:[(0,a.jsx)(a0.A,{height:17,width:17,stroke:"#666666",className:"resource-icon"}),n]})]})]})})},sB=l(e=>{let{}=e,[t,n]=(0,o.useState)(0);return(0,o.useEffect)(()=>{document.body.style["overflow-x"]="unset";let e=aQ()(()=>{let e=document.querySelectorAll(".section-title"),t=Array.from(e).findIndex(e=>e.getBoundingClientRect().top>=200);n(null!=t?t:e.length)},100);return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[]),(0,a.jsxs)("div",{className:"resources-page",children:[(0,a.jsx)(aL.k,{priority:"primary"}),(0,a.jsx)(J.O,{title:"Substack - Creator Resources",description:"Inside tips and expert advice for how to succeed on Substack."}),(0,a.jsxs)("div",{className:"resources-hero",children:[(0,a.jsx)("h1",{className:"hero-header",children:"How to Succeed on Substack."}),(0,a.jsxs)("h2",{className:"hero-subtitle",children:["Our Resource Center has ",(0,a.jsx)("span",{className:"bold-italic",children:"inside tips"})," and ",(0,a.jsx)("span",{className:"bold-italic",children:"expert advice"})," for writers and creators."]})]}),(0,a.jsxs)("div",{className:"resources",children:[(0,a.jsx)("div",{className:"navigator",children:(0,a.jsxs)("div",{className:"floating-navigator",children:[(0,a.jsx)("a",{className:1==t||0==t?"selected":"",href:"#essentials",children:"Essentials"}),(0,a.jsx)("a",{className:2==t?"selected":"",href:"#growing-your-list",children:"Growing your list"}),(0,a.jsx)("a",{className:3==t?"selected":"",href:"#going-paid",children:"Going paid"}),(0,a.jsx)("a",{className:4==t?"selected":"",href:"#podcasting",children:"Podcasting on Substack"}),(0,a.jsx)("a",{className:5==t?"selected":"",href:"#fostering-community",children:"Fostering community"}),(0,a.jsx)("a",{className:-1==t?"selected":"",href:"#media-business",children:"Building a media business"})]})}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)(sT,{title:"Essentials",description:"Learn the fundamentals of publishing on Substack.",id:"essentials",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsxs)("div",{className:"left-column",children:[(0,a.jsx)(sP,{title:"Kickstarting a community on Substack",link:"https://on.substack.com/p/start-passion-project"}),(0,a.jsx)(sP,{title:"Launching a media business on Substack",link:"https://on.substack.com/p/start-media-biz"}),(0,a.jsx)(sP,{title:"How to use the Substack subscriber dashboard",link:"https://on.substack.com/p/subscriber-dashboard-guide"})]}),(0,a.jsxs)("div",{className:"right-column",children:[(0,a.jsx)(sP,{title:"How to set up your Substack publication",link:"https://on.substack.com/p/setting-up-your-substack-for-the"}),(0,a.jsx)(sP,{title:"How to publish your first Substack post",link:"https://on.substack.com/p/how-to-use-the-substack-editor"}),(0,a.jsx)(sP,{title:"How to format and style a Substack post",link:"https://on.substack.com/p/how-to-craft-and-style-a-post"})]})]})}),(0,a.jsxs)(sT,{title:"Growing your list",description:"Tips for finding and growing your audience on Substack.",id:"growing-your-list",children:[(0,a.jsxs)("div",{className:"featured-container",children:[(0,a.jsx)(sD,{title:"Your guide to getting your first 100 signups",byline:"Guide",link:"https://on.substack.com/p/getting-your-first-100-signups",imageUrl:"/img/resources_page/first-100-subs.png"}),(0,a.jsx)(sD,{title:"Becky Malinsky on the power of a very clear topic",byline:"Talk",link:"https://on.substack.com/p/grow-series-24-becky-malinsky",imageUrl:"/img/resources_page/becky.png"}),(0,a.jsx)(sD,{title:"Judd Legum on essential growth tactics",byline:"Tips",link:"https://on.substack.com/p/a-growth-masterclass-with-judd-legum",imageUrl:"/img/resources_page/judd.png"})]}),(0,a.jsx)(sP,{title:"Abigail Koffler on growing her email list from scratch",link:"https://on.substack.com/p/how-abigail-koffler-grew-her-email"}),(0,a.jsx)(sP,{title:"Scott Hines of Action Cookbook on getting his first 1,000 signups",link:"https://on.substack.com/p/how-scott-hines-got-his-first-1000"}),(0,a.jsx)(sP,{title:"Polina Pompliano of the Profile on consistency driving growth",link:"https://on.substack.com/p/grow-series-4"}),(0,a.jsx)(sP,{title:"Sarah Noeckel of Femstreet on getting her first 5,000 signups",link:"https://on.substack.com/p/zero-to-"}),(0,a.jsx)(sP,{title:"Petition on growing their finance publication anonymously",link:"https://on.substack.com/p/how-petition-grew-their-newsletter"})]}),(0,a.jsx)(sT,{title:"Going paid",description:"What every writer needs to know about going paid and making money from subscriptions.",id:"going-paid",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(sD,{title:"Your guide to going paid on Substack",byline:"Guide",link:"https://substack.com/going-paid-guide",imageUrl:"/img/resources_page/going-paid.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(sP,{title:"Lenny Rachitsky of Lenny’s Newsletter on launching a paid newsletter",link:"https://on.substack.com/p/how-lenny-rachitsky-earned-65000"}),(0,a.jsx)(sP,{title:"Edwin Dorsey of The Bear Cave on launching a paid investing newsletter",link:"https://on.substack.com/p/going-paid-the-bear-cave"}),(0,a.jsx)(sP,{title:"Courtney Martin on launching a paid family newsletter",link:"https://on.substack.com/p/going-paid-the-examined-family"}),(0,a.jsx)(sP,{title:"Christopher Curtis on launching an investigative journalism newsletter",link:"https://on.substack.com/p/going-paid-the-rover"}),(0,a.jsx)(sP,{title:"Anne Kadet on growing her paid list without a paywall",link:"https://on.substack.com/p/grow-series-20-anne-kadet"})]})]})}),(0,a.jsx)(sT,{title:"Podcasting on Substack",description:"How to distribute episodes through Substack (and all the major podcast apps).",id:"podcasting",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)("div",{className:"left-column",children:(0,a.jsx)(sP,{title:"How to publish podcasts on Substack",link:"https://on.substack.com/p/how-to-use-substack-for-podcasts"})}),(0,a.jsx)("div",{className:"right-column",children:(0,a.jsx)(sP,{title:"How to bring more audio into your Substack",link:"https://on.substack.com/p/how-to-bring-more-audio-into-your "})})]})}),(0,a.jsx)(sT,{title:"Fostering community",description:"Grow a community around your writing and connect with devoted, discerning readers.",id:"fostering-community",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsx)(sD,{title:"How to find and engage your readers",byline:"Guide",link:"https://on.substack.com/p/how-to-engage-readers-substack",imageUrl:"/img/resources_page/build-community.png"}),(0,a.jsxs)("div",{className:"single-column",children:[(0,a.jsx)(sP,{title:"Terrell Johnson of The Half Marathoner on using discussion threads",link:"https://on.substack.com/p/how-to-use-discussion-threads-to"}),(0,a.jsx)(sP,{title:"How Erin Moon of The Swipe Up nurtured a reader community",link:"https://on.substack.com/p/how-erin-moon-built-a-thriving-community"}),(0,a.jsx)(sP,{title:"Yanyi, Kirstie Taylor, and Default Friend on writing an advice column",link:"https://on.substack.com/p/advice-on-advice-columns"}),(0,a.jsx)(sP,{title:"Building a niche audience with Jarrett Carter of HBCU Digest",link:"https://on.substack.com/p/how-jarrett-carter-successfully-built"})]})]})}),(0,a.jsx)(sT,{title:"Building a media business",description:"Guidance on managing your paid publication on Substack.",id:"media-business",children:(0,a.jsxs)("div",{className:"two-column-container",children:[(0,a.jsxs)("div",{className:"left-column",children:[(0,a.jsx)(sP,{title:"How to think like a business for writers",link:"https://on.substack.com/p/how-to-think-like-a-business-patrick-mckenzie"}),(0,a.jsx)(sP,{title:"How to approach taxes and finance for writers",link:"https://on.substack.com/p/your-tax-and-finance-questions-answered"})]}),(0,a.jsxs)("div",{className:"right-column",children:[(0,a.jsx)(sP,{title:"How to understand legal questions for writers",link:"https://on.substack.com/p/your-legal-questions-answered"}),(0,a.jsx)(sP,{title:"How to build a team publication on Substack",link:"https://on.substack.com/p/group-publishing-tools-on-substack"})]})]})}),(0,a.jsxs)("div",{className:"banner",children:[(0,a.jsx)("div",{className:"banner-header",children:"Tips and stories in your inbox"}),(0,a.jsx)("div",{className:"banner-subtitle",children:"Subscribe to the Substack Blog to receive stories and insights from successful writers."}),(0,a.jsx)("a",{className:"button big-button primary top-pad",href:"https://on.substack.com/s/resources",style:{height:"48px",lineHeight:"28px"},"data-native":!0,children:"Subscribe to the Substack Blog"})]}),(0,a.jsxs)("div",{className:"questions-container",children:[(0,a.jsx)("div",{className:"questions-header",children:"Still have questions?"}),(0,a.jsxs)("div",{className:"questions-subtitle",children:["Writer success is Substack’s #1 priority. If your question isn’t covered here, visit our Help Center or ",(0,a.jsx)("a",{href:"https://substack.com/support",children:"write to our support team"})," and they will assist you."]}),(0,a.jsx)("div",{className:"buttons-container",children:(0,a.jsx)("a",{className:"button big-button secondary top-pad",href:"https://support.substack.com/hc/en-us/categories/360002403472-Writers",style:{border:"1px solid #D8D8D8",color:"#1C110B",height:"48px",lineHeight:"28px"},"data-native":!0,children:"Go to Help Center"})})]})]})]})]})});var sU=n(35276),sG=n(43294);function sF(e){let{user:t,freeSignupEmail:n,google_setup_state:i,onSuccess:r,referrerCode:s}=e,{iString:l}=(0,h.GO)(),c=(null==t?void 0:t.email)?t.email:(null==i?void 0:i.email)?i.email:n||"",[d,u]=(0,o.useState)(!1),[p,m]=(0,o.useState)(c),[f]=(0,o.useState)(!!(null==i?void 0:i.email)),y=(0,sG.X)(),{isLoading:N,error:O,refetch:v,clearError:x}=(0,b.st)({pathname:"/api/v1/user/accept_publisher_agreement",method:"POST",auto:!1,deps:[]}),{trackInputFilled:S,trackSubmitPressed:w,trackError:I}=(0,g.a)("Writer Signup Publisher Agreement Form"),M=async e=>{e.preventDefault(),w(),x();let t=Object.fromEntries(new FormData(e.currentTarget).entries()),n=await v({json:t});n instanceof Error?I(n):r(n)};return(0,a.jsx)(sU.W,{title:l("Create your account"),subscript:l("Sign up now, and publishing is free forever. Once you start charging for subscriptions, you keep 90% after credit card transaction fees."),children:(0,a.jsx)(E.VP,{gap:12,children:(0,a.jsx)("form",{className:"form",onSubmit:M,noValidate:!0,children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsxs)(H.A0,{children:[(0,a.jsx)($.JU,{htmlFor:"email",children:l("Your email address")}),(0,a.jsx)(H.ks,{ref:y,name:"email",id:"email",placeholder:l("Type your email..."),disabled:f||N,value:p,onChange:e=>m(e.currentTarget.value),onBlur:S}),O&&(0,a.jsx)(X.yn,{children:(()=>{if(!O)return null;if(O instanceof _.fk){var e,t,n,a;return(null==(n=O.body)||null==(t=n.errors)||null==(e=t[0])?void 0:e.msg)||(null==(a=O.body)?void 0:a.error)||"Something went wrong"}return"Something went wrong"})()})]}),(0,a.jsx)(E.VP,{paddingBottom:12,children:(0,a.jsx)(ig.U,{checked:d,onCheckboxChange:e=>{u(e)}})}),(0,a.jsx)(A.$n,{size:"lg",type:"submit",disabled:!d||N,loading:N,children:l("Continue")}),(0,a.jsx)("input",{type:"hidden",name:"source",value:"publication-creation"}),(0,a.jsx)("input",{type:"hidden",name:"google_setup_state_id",value:(null==i?void 0:i.google_id)||""}),(0,a.jsx)("input",{type:"hidden",name:"google_access_token",value:(null==i?void 0:i.access_token)||""}),(0,a.jsx)("input",{type:"hidden",name:"referrer_code",value:s||""})]})})})})}var sW=n(38221),sY=n.n(sW),sK=n(58059),sH=n.n(sK),sV=n(79804),sz=n(42250);function sq(){let e=(0,u._)(["","'s Substack"]);return sq=function(){return e},e}function sJ(){let e=(0,u._)(["","'s Substack"]);return sJ=function(){return e},e}function sZ(e){var t,n;let{onSuccess:i,staffContactId:r,referrerCode:s,inviteOnly:l,user:c,eventId:d,title:u,subtitle:p,inherit_mailing_list:y,type:N,ctaText:O,children:v}=e,{iString:x,iTemplate:S,language:w,preferredLanguage:I}=(0,h.GO)(),[C,k]=(0,o.useState)([]),[j,L]=(0,o.useState)(!1),[R,T]=(0,o.useState)(""),[P,D]=(0,o.useState)(""),[B,U]=(0,o.useState)(""),[G]=(0,o.useState)((null==(n=(0,oG.xm)(oV.E))||null==(t=n.pub)?void 0:t.logo_url)||(null==c?void 0:c.photo_url)||null),[F,W]=(0,o.useState)(!1),[Y,K]=(0,o.useState)(!1),[V,z]=(0,o.useState)(!1),[q,J]=(0,o.useState)(null),Z=(0,o.useRef)(null),{isLoading:Q,error:ee,refetch:et,clearError:en}=(0,b.st)({pathname:"/api/v1/publication",method:"POST",auto:!1,deps:[]}),{trackInputFilled:ea,trackSubmitPressed:ei,trackError:er}=(0,g.a)("Writer Signup Create Publication Form"),eo=async e=>{if(0===e.length){k([]),J(null);return}try{let t=await m().get("/api/v1/check_subdomain",{subdomain:e});if(t.body.available)L(!0),k([]),J(null);else{let e=[{msg:x("This URL is taken. Try another.")}];L(!1),k(e),J(t.body.suggested)}}catch(i){var t,n,a;let e=[];null==(a=i.response)||null==(n=a.body)||null==(t=n.errors)||t.forEach(t=>{var n;null!=(n=i.response)&&n.body.errors&&i.response.body.errors.length>1&&"Please enter a valid web URL (letters and numbers only)"===t.msg||e.push(t)}),L(!1),k(e),J(null)}},es=(0,o.useRef)(sY()(e=>{eo(e)},500)).current,el=async()=>{if(!F){W(!0);try{let e=await m().get("/api/v1/publication/suggestion");e.body.subdomain&&(T(e.body.subdomain),L(!0))}catch(e){console.error("Failed to get subdomain suggestion:",e)}W(!1)}};(0,o.useEffect)(()=>{var e,t;let n=(0,oG.xm)(oV.E);(null==n||null==(e=n.pub)?void 0:e.hero_text)?U(n.pub.hero_text):U(x("My personal Substack")),(null==n||null==(t=n.pub)?void 0:t.name)?D(n.pub.name):(0,aH.guessFirstName)(c.name)?D(S(sq(),(0,aH.guessFirstName)(c.name))):c.name?D(S(sJ(),c.name)):D(x("My Substack")),el()},[]);let ec=r,ed=d;"undefined"!=typeof localStorage&&(ec=ec||localStorage.getItem("staffContactId"),ed=ed||localStorage.getItem("eventId"));let eu=(0,oG.xm)(oV.E),ep=async e=>{var t,n,a;e.preventDefault(),ei(),en(),z(!1);let r=Object.fromEntries(new FormData(e.currentTarget).entries());r.captcha_response=Z.current?Z.current.getResponse():null;let o=await et({json:r});if(o instanceof Error){if(er(o),o instanceof _.fk){let e=(null==(t=o.response)?void 0:t.status)===401&&/captcha/i.test((0,f.uX)(o));K(!1),z(e)}}else(0,M.tj)((null==(a=window)||null==(n=a._analyticsConfig)?void 0:n.adwordsAccountId)&&window._analyticsConfig.adwordsEventSendTo?{send_to:"".concat(window._analyticsConfig.adwordsAccountId,"/").concat(window._analyticsConfig.adwordsEventSendTo)}:{}),(0,oG.f4)(oV.E),i({pub:o,importData:eu})};return(0,a.jsxs)(sU.W,{title:u||x("Choose your URL"),subtitle:p,subscript:x("Don't worry, you can change this later"),children:[(0,a.jsx)(E.VP,{gap:12,display:Y?"none":"block",children:(0,a.jsx)("form",{className:"form",onSubmit:ep,noValidate:!0,children:(0,a.jsxs)(E.VP,{gap:12,children:[(0,a.jsxs)(H.A0,{children:[(0,a.jsx)($.sb,{htmlFor:"subdomain",children:x("Substack URL")}),(0,a.jsx)(sX,{subdomainValue:R,setSubdomainValue:T,checkSubdomain:es,subdomainErrors:C,subdomainValid:j,disabled:Q,trackInputFilled:ea}),C.map(e=>(0,a.jsx)(X.yn,{children:e.msg},e.msg)),q&&(0,a.jsx)(sQ,{suggestedSubdomain:q,setSubdomainValue:T,setSubdomainValid:L,setSubdomainErrors:k,setSuggestedSubdomain:J})]}),v,ee&&(0,a.jsx)(X.yn,{children:(()=>{if(!ee)return null;if(ee instanceof _.fk){var e,t,n,a;return(null==(n=ee.body)||null==(t=n.errors)||null==(e=t[0])?void 0:e.msg)||(null==(a=ee.body)?void 0:a.error)||"Something went wrong"}return"Something went wrong"})()}),V&&(0,a.jsx)(sz.A,{ref:Z,className:"login-captcha"}),(0,a.jsx)(A.$n,{size:"lg",type:"submit",disabled:!j||!B||!P||Q,loading:Q,children:O||x("Continue")}),ec&&(0,a.jsx)("input",{type:"hidden",name:"staff_contact_id",value:"".concat(ec)}),ed&&(0,a.jsx)("input",{type:"hidden",name:"event_id",value:ed}),s&&(0,a.jsx)("input",{type:"hidden",name:"referrer_code",value:s}),l&&(0,a.jsx)("input",{type:"hidden",name:"invite_only",value:l}),("en"!==w||I)&&(0,a.jsx)("input",{name:"language",type:"hidden",value:I||w}),(0,a.jsx)("input",{name:"name",type:"hidden",value:P}),(0,a.jsx)("input",{name:"hero_text",type:"hidden",value:B}),(0,a.jsx)("input",{type:"hidden",name:"import_id",value:eu&&eu.import_id}),y&&(0,a.jsx)("input",{type:"hidden",name:"inherit_mailing_list",value:y}),N&&(0,a.jsx)("input",{type:"hidden",name:"type",value:N}),G&&(0,a.jsx)("input",{type:"hidden",name:"logo_url",value:G})]})})}),Y&&(0,a.jsx)(s$,{})]})}function sX(e){let{subdomainValue:t,setSubdomainValue:n,checkSubdomain:i,subdomainErrors:r,subdomainValid:s,disabled:l,trackInputFilled:c}=e,d=(0,o.useRef)(sH()(()=>{(0,M.u4)(M.qY.SUBDOMAIN_CHANGED)})).current;return(0,a.jsxs)(E.fI,{gap:12,alignItems:"center",children:[(0,a.jsx)(H.ks,{name:"subdomain",id:"subdomain",flex:"grow",value:t,disabled:l,onInput:e=>{let t=e.currentTarget.value;n(t),i(t),d()},onBlur:c,error:r.length>0,trailing:t?s?(0,a.jsx)(sV.A,{size:16,stroke:"var(--color-semantic-success-fg-primary) !important"}):(0,a.jsx)(D.A,{size:16,stroke:"var(--color-semantic-error-fg-primary) !important"}):null}),(0,a.jsx)(y.EY.B3,{color:"secondary",children:".substack.com"})]})}function sQ(e){let{suggestedSubdomain:t,setSubdomainValue:n,setSubdomainValid:i,setSubdomainErrors:r,setSuggestedSubdomain:o}=e,{iString:s}=(0,h.GO)();return(0,a.jsxs)(X.EE,{children:[s("Available: "),(0,a.jsx)(y.Yq,{cursor:"pointer",decoration:"underline",onClick:()=>{n(t),i(!0),r([]),o(null),(0,M.u4)(M.qY.SUGGESTED_SUBDOMAIN_SELECTED)},children:t})]})}function s$(){return(0,a.jsx)(E.ov,{paddingY:120,children:(0,a.jsx)(ac.y$,{})})}var s0=n(23181),s1=n.n(s0);function s2(e){let{pub:t,onSuccess:n}=e,{iString:i}=(0,h.GO)(),r=(0,sG.X)(),[s,l]=(0,o.useState)(s1()(5).map(()=>"")),c=s.some(e=>!!e),{isLoading:d,error:u,refetch:p,clearError:m}=(0,b.st)({pathname:"/api/v1/subscriber/add",method:"POST",auto:!1,deps:[]}),g=async e=>{e.preventDefault(),m();let a={email:s.filter(Boolean).join(","),subscription:!1,sendEmail:!1,source:"create-pub",publication_id:null==t?void 0:t.id};await p({json:a}) instanceof Error||n()},f=(0,o.useCallback)(e=>t=>{l(n=>n.map((n,a)=>a===e?t.target.value:n))},[]),y=[i("partner@gmail.com"),i("roommate@comcast.net"),i("parent@yahoo.com"),i("best.friend@aol.com"),i("penpal@protonmail.com")];return(0,a.jsx)(sU.W,{title:i("Add your first subscribers"),subtitle:i("Most people start by adding close friends or family"),subscript:i("Don't worry, no one will be notified until your first post"),children:(0,a.jsx)("form",{className:"form",onSubmit:g,noValidate:!0,children:(0,a.jsxs)(E.VP,{gap:20,children:[(0,a.jsx)(E.VP,{gap:12,children:s1()(5).map(e=>(0,a.jsx)(Z.j,{ref:0===e?r:null,value:s[e],onChange:f(e),onInput:f(e),placeholder:y[e]||i("person@example.com"),disabled:d},e))}),u&&(0,a.jsx)(X.yn,{children:(()=>{if(!u)return null;if(u instanceof _.fk){var e,t,n,a;return(null==(n=u.body)||null==(t=n.errors)||null==(e=t[0])?void 0:e.msg)||(null==(a=u.body)?void 0:a.error)||"Something went wrong"}return"Something went wrong"})()}),(0,a.jsx)(A.$n,{type:"submit",size:"lg",loading:d,disabled:!c||d,children:i("Continue")})]})})})}var s3=n(87833);function s4(e){let{profile:t,onFinalizeVisibility:n,onSetVisibility:i,source:o,hideButton:s}=e,{iString:l}=(0,h.GO)();if(!t)return null;let c=t.subscriptions.every(e=>{let{visibility:t}=e;return"public"===t});return(0,a.jsxs)(E.VP,{children:[(0,a.jsx)(E.fI,{justifyContent:"end",pullX:8,children:(0,a.jsx)(A.$n,{size:"sm",priority:"quaternary",onClick:()=>{let e=c?"private":"public";i(t.subscriptions.reduce((t,n)=>{let{publication:a}=n;return(0,R._)((0,r._)({},t),{[a.id]:e})},{})),(0,M.u4)(M.qY.PROFILE_EDITED,{type:"visibility_toggled_all",for:"reads",count:t.subscriptions.length,newVisibility:e})},children:l(c?"Hide all":"Show all")})}),(0,a.jsx)(E.VP,{minHeight:320,gap:4,children:t.subscriptions.map(e=>{let n;return(0,a.jsx)(s9,{sub:e,onSetVisibility:(n=e.publication,e=>{i(t.subscriptions.reduce((t,a)=>{let{visibility:i,publication:o}=a;return(0,R._)((0,r._)({},t),{[o.id]:o.id===n.id?e:i})},{})),(0,M.u4)(M.qY.PROFILE_EDITED,{type:"read_visibility_toggled",visibility:e})}),source:o},e.id)})}),!s&&(0,a.jsx)(A.$n,{priority:"primary",onClick:n,children:l("Done")})]})}function s9(e){let{sub:t,onSetVisibility:n}=e,i=t.publication;return(0,a.jsxs)(s8,{children:[(0,a.jsx)(ad.Nq,{pub:i,size:32}),(0,a.jsx)(y.EY.B3,{weight:"medium",flex:"grow",children:i.name}),(0,a.jsx)(i4.S,{checked:"public"===t.visibility,onChange:()=>n("public"===t.visibility?"private":"public")})]})}let s8=(0,ep.I4)({display:"flex",paddingY:8,gap:12,alignItems:"center",minWidth:0});function s7(e){let{isOpen:t,onClose:n,profile:i,setProfile:o}=e,{iString:s}=(0,h.GO)();return(0,a.jsxs)(B.aF,{isOpen:t,onClose:n,children:[(0,a.jsx)(B.rQ,{title:s("Visible subscriptions"),description:s("These subscriptions will be shown on your profile. You can choose to hide some or all of them."),showDivider:!0,onClose:n}),(0,a.jsx)(B.cw,{children:(0,a.jsx)(s4,{profile:i,onFinalizeVisibility:n,onSetVisibility:e=>{o((0,R._)((0,r._)({},i),{subscriptions:i.subscriptions.map(t=>{var n;return e[t.publication.id]?(0,R._)((0,r._)({},t),{visibility:null!=(n=e[t.publication.id])?n:"private"}):t})}))},source:"writer-onboarding",hideButton:!0})}),(0,a.jsx)(B.jl,{showDivider:!0,direction:"column",primaryButton:(0,a.jsx)(A.$n,{priority:"primary",onClick:n,children:s("Done")})})]})}var s5=n(5109);function s6(e){let{toRecommend:t,setToRecommend:n,onFinalize:i,hideButton:o}=e,{iString:s}=(0,h.GO)(),l=e=>{n(t.map(t=>void 0!==e[t.id]?(0,R._)((0,r._)({},t),{recommended:e[t.id]}):t))},c=t.every(e=>!0===e.recommended);return(0,a.jsxs)(E.VP,{children:[(0,a.jsx)(E.fI,{justifyContent:"end",pullX:8,children:(0,a.jsx)(A.$n,{size:"sm",priority:"quaternary",onClick:()=>{l(t.reduce((e,t)=>(0,R._)((0,r._)({},e),{[t.id]:!c}),{}))},children:s(c?"Hide all":"Recommend all")})}),(0,a.jsx)(E.VP,{minHeight:320,gap:4,children:t.map(e=>(0,a.jsx)(le,{pub:e,onToggle:()=>{var n;return l({[e.id]:!(null==(n=t.find(t=>t.id===e.id))?void 0:n.recommended)})}},e.id))}),!o&&(0,a.jsx)(A.$n,{priority:"primary",onClick:i,children:s("Done")})]})}function le(e){let{pub:t,onToggle:n}=e;return(0,a.jsxs)(s8,{children:[(0,a.jsx)(ad.Nq,{pub:t,size:32}),(0,a.jsx)(y.EY.B3,{weight:"medium",flex:"grow",children:t.name}),(0,a.jsx)(i4.S,{checked:!0===t.recommended,onChange:n})]})}function lt(e){let{isOpen:t,onClose:n,toRecommend:i,setToRecommend:r}=e,{iString:o}=(0,h.GO)();return(0,a.jsxs)(B.aF,{isOpen:t,onClose:n,children:[(0,a.jsx)(B.rQ,{title:o("Recommended publications"),description:(0,a.jsxs)(a.Fragment,{children:[o("These recommendations will be displayed when people subscribe to you on Substack. "),(0,a.jsx)(y.Yq,{href:"https://support.substack.com/hc/en-us/articles/5036794583828-How-can-I-recommend-other-publications-on-Substack-",target:"_blank",decoration:"underline",children:o("Learn More")})]}),showDivider:!0,onClose:n}),(0,a.jsx)(B.cw,{children:(0,a.jsx)(s6,{toRecommend:i,setToRecommend:r,onFinalize:n,hideButton:!0})}),(0,a.jsx)(B.jl,{showDivider:!0,direction:"column",primaryButton:(0,a.jsx)(A.$n,{priority:"primary",onClick:n,children:o("Done")})})]})}function ln(e){var t,n;let{user:i,profile:s,toRecommend:l,showRecommendations:c,onSuccess:d,setProfile:u,setToRecommend:p}=e,{iString:m}=(0,h.GO)(),g=(0,oG.xm)(oV.E),_=(0,R._)((0,r._)({},i),{name:(null==i?void 0:i.name)||(null==g||null==(t=g.pub)?void 0:t.author_name),bio:(null==i?void 0:i.bio)||(null==g||null==(n=g.pub)?void 0:n.author_bio)}),[b,f]=(0,o.useState)(!1),[A,y]=(0,o.useState)(!1),[N,O]=(0,o.useState)(!1),v=!!_.name,x=v&&!N;return(0,a.jsxs)(sU.W,{title:m("Set up your profile"),children:[(0,a.jsx)(E.VP,{display:x?"none":"block",children:(0,a.jsx)(s5.dx,{pageTitle:null,user:_,freeSignup:!0,freeSignupEmail:null,needsPhoto:!1,optionalPhoto:!0,showHandle:!1,isPostInvite:!1,primaryEligiblePublications:[],onSuccess:e=>d(e.body),onEditReadVisibility:()=>{f(!0)},numVisibleSubscriptions:(null==s?void 0:s.subscriptions.filter(e=>{let{visibility:t}=e;return"public"===t}).length)||0,onEditRecommendations:c?()=>{y(!0)}:null,numRecommendationsToMake:l.filter(e=>!0===e.recommended).length,numSubscriptions:(null==s?void 0:s.subscriptions.length)||0,complete:!0,text:m("Continue"),profileExists:!!(null==s?void 0:s.profile_set_up_at),prepareData:e=>(e.reads_visibility=(null==s?void 0:s.subscriptions.map(e=>{let{id:t,visibility:n}=e;return{id:t,visibility:n}}))||[],e.user_links=e.socialNetwork&&e.socialHandle?[{type:e.socialNetwork,value:e.socialHandle}]:[],e),autoSubmit:v,onAutoSubmitFailed:()=>O(!0),showSocialHandle:!0})}),x&&(0,a.jsx)(la,{}),s&&(0,a.jsx)(s7,{isOpen:b,onClose:()=>f(!1),profile:s,setProfile:u}),c&&(0,a.jsx)(lt,{isOpen:A,onClose:()=>y(!1),profile:s,setToRecommend:p,toRecommend:l})]})}function la(){return(0,a.jsx)(E.ov,{paddingY:120,children:(0,a.jsx)(ac.y$,{})})}var li=n(30684),lr=n(82286),lo=n(38921);function ls(){let e=(0,u._)(["Recommend "," and continue"]);return ls=function(){return e},e}function ll(e){let{pub:t,suggestions:n}=e,{iString:i,iTemplate:r}=(0,h.GO)(),[s,l]=(0,o.useState)(n.map(e=>{let{id:t}=e;return t})),[c,d]=(0,o.useState)(!1),u=()=>{(0,f.V2)((0,N.Z96)(t,{addBase:!0}),{local_navigation:!1})},p=async()=>{if(s.length>0)try{d(!0),await m().put("/api/v1/recommendations/multiple").send({recommending_publication_id:t.id,recommended_publication_ids:s,source:"writer_onboarding",suggested:s.map(()=>!0)}),(0,M.u4)(M.qY.RECOMMEND_FROM_WRITER_ONBOARDING_CLICKED,{numberOfRecommendations:s.length})}catch(t){var e,n;"undefined"!=typeof Sentry?null==(n=Sentry)||null==(e=n.captureMessage)||e.call(n,"Bulk Recommend from Writer Onboarding Failed"):console.error("Bulk Recommend from Writer Onboarding Failed")}finally{u()}else(0,M.u4)(M.qY.RECOMMEND_FROM_WRITER_ONBOARDING_SKIPPED),u()};return(0,a.jsx)(sU.W,{title:i("Recommend other Substacks"),subtitle:i("Help your subscribers find other great Substacks by recommending your favorites."),children:(0,a.jsxs)(E.VP,{gap:20,children:[(0,a.jsx)(lo.A,{publications:n,selected:s,setSelected:l}),(0,a.jsx)(A.$n,{priority:"primary",size:"lg",onClick:p,disabled:c,children:s.length>0?r(ls(),s.length):i("Continue")})]})})}var lc=n(44471);function ld(){let e=(0,u._)(["Next, head to "," and tell the world about your new Substack."]);return ld=function(){return e},e}function lu(e){let{pub:t,redirectLink:n}=e,i=n||(0,N.Z96)(t,{addBase:!0}),{iString:r,iTemplate:o}=(0,h.GO)(),s="".concat(t.subdomain,".substack.com");return(0,a.jsx)(sU.W,{children:(0,a.jsxs)(E.VP,{gap:20,children:[(0,a.jsx)(E.ov,{children:(0,a.jsx)(lc.A,{size:40,stroke:"var(--color-semantic-success-fg-primary)"})}),(0,a.jsxs)(E.ov,{direction:"column",gap:8,textAlign:"center",children:[(0,a.jsx)(y.EY.H3,{weight:"bold",children:r("You're all set!")}),(0,a.jsx)(y.EY.B3,{color:"secondary",children:o(ld(),s)})]}),(0,a.jsx)(A.$n,{href:i,priority:"primary",size:"lg",children:r("Done")})]})})}let lp=e=>{(0,M.u4)(e),(0,M.e$)(e,{})};var lm=n(91648),lh=n.n(lm),lg=n(38018);function l_(){let e=(0,u._)(["Subscribe to "," and continue"]);return l_=function(){return e},e}let lb="CATEGORIES",lf="PUBS_FROM_CATEGORIES";function lA(e){let{categories:t,onSkip:n,onSuccess:i}=e,{iString:r,iTemplate:s}=(0,h.GO)(),[l,c]=(0,o.useState)(lb),[d,u]=(0,o.useState)([]),[p,g]=(0,o.useState)(new Set),[_,b]=(0,o.useState)([]),[f,y]=(0,o.useState)([]),[N,O]=(0,o.useState)(!1),v=async()=>{let e;try{let n=d.length?d:t.slice(0,3).map(e=>e.id),a=await m().get("/api/v1/category/public/multiple").query({categoryIds:JSON.stringify(n)});e=lE(a.body),b(e),y(e.map(e=>{let{id:t}=e;return t})),c(lf)}catch(e){n();return}},x=async()=>{if(f.length>0)try{O(!0),await m().post("/api/v1/bulk_signup").send({publications:f,source:"writer-onboarding"}),(0,M.u4)(M.qY.READER_ONBOARDING_BULK_SUBSCRIBED,{entry:"writer-onboarding",numberOfSubscriptions:f.length,recommendationsFrom:"categories"})}catch(n){var e,t;"undefined"!=typeof Sentry?null==(t=Sentry)||null==(e=t.captureMessage)||e.call(t,"Bulk Signup from Writer Onboarding Failed"):console.error("Bulk Signup from Writer Onboardng Failed")}finally{i()}else(0,M.u4)(M.qY.READER_ONBOARDING_BULK_SUBSCRIBE_SKIPPED,{entry:"writer-onboarding",recommendationsFrom:"categories"}),i()};return(0,a.jsx)(sU.W,{title:l===lb?r("What are you interested in?"):r("Recommendations"),subtitle:l===lb?r("Select a few topics to get personalized recommendations"):r("Based on your interests, here are some Substacks you might enjoy"),children:(0,a.jsx)(E.VP,{gap:20,children:l===lb?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(iW,{hasFeatured:!1,categories:t,categoryIds:d,onCategoryClicked:e=>{let{categoryId:t}=e;d.includes(t)?u(d.filter(e=>e!==t)):u([...d,t])},ranking:"all",defaultExpanded:!1,expandedCategoryIds:p,onToggleCategory:e=>{g(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}}),(0,a.jsx)(A.$n,{priority:"primary",onClick:v,children:r("Continue")})]}):l===lf?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.K0,{size:"sm",priority:"secondary",onClick:()=>c(lb),children:(0,a.jsx)(iy.A,{size:20})}),(0,a.jsx)(lo.A,{publications:_,selected:f,setSelected:y,onRecommendationFirstVisible:(e,t)=>{(0,M.u4)(M.qY.READER_ONBOARDING_PUB_RECOMMENDED,{entry:"writer-onboarding",publication_id:e.id,recommendationFrom:"leaderboard",suggestion_rank:t})}}),(0,a.jsxs)(A.$n,{priority:"primary",onClick:x,disabled:N,children:[f.length>0&&s(l_(),f.length),0===f.length&&r("Continue without subscribing")]})]}):null})})}let lE=(e,t,n,a)=>{var i,r;let o=Object.entries(e).filter(e=>{let[t]=e;return"promoted"!==t&&"suggested"!==t}).map(e=>{let[t,n]=e;return n}),s=new Set,l=o.map(e=>e.length),c=l.length>0?Math.max(...l):0,d=[];for(let e=0;e(0,R._)((0,r._)({},e),{visibility:"public"}))})},()=>{let e=this.getSuggestedRecommendations({limit:10})||[];this.setState({toRecommend:e.map(e=>(0,R._)((0,r._)({},e),{recommended:!0})),loading:!1})})}catch(e){this.setState({loading:!1})}}async setUserAndFetchProfile(e){this.setState({user:e,loading:!0}),await this.onSetUser(e)}async onSetUser(e){let{localNavigation:t=!1,replace:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.props.importer_name?(0,f.V2)("/signup/import?importer_name=".concat(this.props.importer_name),{local_navigation:t,replace:n}):await this.fetchProfile(e)}setProfile(e){this.setState({profile:e})}getSuggestedRecommendations(){var e,t,n,a,i,r,o,s,l;let{limit:c=5}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(null==(e=this.state.profile)?void 0:e.subscriptions)&&!(null==(n=this.state.profile)||null==(t=n.writerReferrer)?void 0:t.publications))return[];let d=(null!=(s=null==(i=this.state.profile)||null==(a=i.subscriptions)?void 0:a.sort((e,t)=>("subscribed"!==e.membership_state)-("subscribed"!==t.membership_state)))?s:[]).filter(e=>{let{publication:t}=e;return![aH.SUBSTACK_PUBLICATION_ID_ON,aH.SUBSTACK_PUBLICATION_ID_READ].includes(t.id)}).filter(e=>{let{publication:t}=e;return!t.invite_only}),u=null!=(l=null==(o=this.state.profile)||null==(r=o.writerReferrer)?void 0:r.publications)?l:[],p=d.map(e=>{let{publication:t}=e;return t}).filter(e=>!u.find(t=>t.id===e.id));return[...u,...p].slice(0,c)}setToRecommend(e){this.setState({toRecommend:e})}createPublicationSuccess(){let{pub:e,importData:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e?m().put("/api/v1/recommendations/multiple").send({recommending_publication_id:e.id,recommended_publication_ids:(this.state.toRecommend||[]).filter(e=>!0===e.recommended).map(e=>e.id),source:"writer_onboarding",suggested:(this.state.toRecommend||[]).filter(e=>!0===e.recommended).map(()=>!0)}).then(()=>this.setState({pub:e,importData:t})).catch(n=>{console.error(n),this.setState({pub:e,importData:t})}):console.error("createPublicationSuccess called but no pub passed")}render(){var e;let{freeSignupEmail:t,google_setup_state:n,staffContactId:i,eventId:r,r:o,inviteOnly:s,userHasPublication:l,categories:c,iString:d,baseLanguage:u,preferredLanguage:p,setPreferredLanguage:m}=this.props,{user:h,profile:g,pub:_,ignoreExistingPublication:b,imported:A,importData:E,finishedAddingSubs:y,subscribedToOthers:O,toRecommend:v,setUpProfile:x,loading:S,doesNotHaveEmailList:w}=null!=(e=this.state)?e:{},M=0,C=null;if(S)return(0,a.jsx)(lr.z7,{});if(null==h?void 0:h.publisher_agreement_accepted_at)if(this.hasProfile())if(_)if(A||w)if(y)if(!x&&this.getSuggestedRecommendations().length)M=7,C=(0,a.jsx)(ll,{pub:_,suggestions:this.getSuggestedRecommendations()});else if(O){M=9;let e=(0,N.Z96)(_,{addBase:!0});C=(0,a.jsx)(lu,{pub:_,redirectLink:e})}else M=8,C=(0,a.jsx)(lA,{categories:c||[],onSuccess:()=>this.setState({subscribedToOthers:!0}),onSkip:()=>this.setState({subscribedToOthers:!0})});else M=6,C=(0,a.jsx)(s2,{pub:_,onSuccess:()=>this.onSuccessAddSubs()});else M=5,C=(0,a.jsx)(s3.L,{pub:_,importData:E,onSuccess:()=>this.onSuccessImport()});else if(M=3,l&&!b){if((0,ee.y)("r")&&"undefined"!=typeof window&&window.navigator)return document.location.href=(0,N.x0e)({utm_source:eg.VU.substack,utm_content:eg.fL.signup}),null;"undefined"!=typeof window&&window.navigator&&(document.location.href=(0,N.tFi)({utm_source:eg.VU.signup,section:"publications"}))}else C=(0,a.jsx)(sZ,{staffContactId:i,eventId:r,referrerCode:o,inviteOnly:!!s,user:h,onSuccess:e=>this.createPublicationSuccess(e)});else M=2,C=(0,a.jsx)(ln,{user:h,profile:g,toRecommend:v||[],showRecommendations:!!(null==v?void 0:v.length),onSuccess:e=>{this.setState({user:e,setUpProfile:!0})},setProfile:e=>this.setProfile(e),setToRecommend:e=>this.setToRecommend(e)});else M=1,C=(0,a.jsx)(sF,{user:h,freeSignupEmail:t,google_setup_state:n,referrerCode:o,onSuccess:e=>{this.setUserAndFetchProfile(e)}});return(0,a.jsxs)(lr.Nw,{className:I()("container","container-dstbb9"),children:[(0,a.jsx)(J.O,{title:d("Substack | Signup")}),C,(0,a.jsx)(lN,{step:M,skipHandlers:{5:()=>this.onSkipImport(),6:()=>this.onSkipAddSubs(),7:()=>{let e=(0,N.Z96)(_,{addBase:!0});(0,f.V2)(e)},8:()=>this.setState({subscribedToOthers:!0})}}),(0,a.jsx)(lO,{setPreferredLanguage:m,baseLanguage:u,preferredLanguage:p,step:M})]})}constructor(e,t){super(e,t),this.state={ignoreExistingPublication:!!(0,ee.y)("ignoreExisting"),user:e.user,emailBoxSelected:!0,subscribedToOthers:!1,doesNotHaveEmailList:!1}}}function lN(e){let{step:t,skipHandlers:n}=e,{iString:i}=(0,h.GO)(),r=n[t];return r?(0,a.jsx)(A.$n,{priority:"secondary-outline",onClick:r,children:i("Skip")}):null}function lO(e){let{setPreferredLanguage:t,baseLanguage:n,preferredLanguage:i,step:r}=e;return"en"!==n&&!i&&[1,2,3].includes(r)?(0,a.jsx)(E.ov,{children:(0,a.jsx)(A.$n,{leading:(0,a.jsx)(li.A,{size:16}),onClick:()=>t("en"),priority:"secondary-outline",size:"sm",children:"Switch language to English"})}):null}function lv(e){let{pubId:t,error:n,staff_contact_id:a}=e,{iString:i}=(0,h.GO)();return(0,o.useEffect)(()=>{(0,f.V2)((0,N.yRP)("/signup",{pubId:t,error:n,staff_contact_id:a}),{local_navigation:!1})},[t,n,a]),i("Loading...")}(0,aW._)(ly,"contextType",iu.Ke);let lx=l(()=>{let{sitemapHeader:e,sitemapDescription:t,sitemapLinks:n}=c();return n?(0,a.jsxs)("div",{className:"cohort-page sitemap-page",children:[(0,a.jsx)(J.O,{title:e,description:t}),(0,a.jsx)("h1",{children:e}),(0,a.jsx)("div",{children:n.map(e=>(0,a.jsx)("p",{children:(0,a.jsx)("a",{className:"sitemap-link","data-native":!0,href:e.href,children:e.text})}))})]}):(0,a.jsx)(sd,{})});var lS=n(37110),lw=n(8337);function lI(e){let{setHasAcceptedTerms:t}=e,[n,i]=(0,o.useState)(!1),r=(0,e8.ur)(),s=(0,f.rr)(),{iString:l}=(0,h.GO)(),c=async()=>{ip.set(i6.FI.CHATBOT_TERMS_LAST_ACCEPTED_AT,new Date().toJSON(),{expires:3650}),r.user&&await (0,_.x6)("/api/v1/user-setting",{method:"PUT",json:{type:"chatbot_terms_last_accepted_at",value_datetime:new Date().toISOString()}}),t(!0)};return(0,a.jsxs)(E.I1,{border:"detail",className:"disclaimerContainer-PXNNfq",children:[(0,a.jsx)("div",{style:{backgroundColor:"#ff6919",height:64,display:"flex",alignItems:"center",paddingLeft:20,color:"white",fontSize:18,fontWeight:"bold"},children:l("Chat with Substack")}),(0,a.jsxs)(E.I1,{className:s?"mobileContainer-oHxfgL":"",justifyContent:"center",alignSelf:"center",children:[(0,a.jsxs)(y.EY.B2,{translated:!0,padding:20,children:["The Substack chatbot is here to answer your questions! Please review the"," ",(0,a.jsx)(y.Yq,{href:"".concat((0,aS.Ewe)(),"/chatbot-tos"),color:"substack",decoration:"underline",target:"_blank",children:I18N.p("Terms & Conditions")})," ","to proceed."]}),(0,a.jsxs)(E.Ye,{justifyContent:"center",alignItems:"center",gap:12,paddingLeft:20,paddingRight:20,children:[(0,a.jsx)(i4.S,{onChange:()=>i(!n),checked:n}),(0,a.jsx)(y.EY.B3,{translated:!0,children:"I have read, understood, and agree to the Terms & Conditions."})]}),(0,a.jsx)(E.Ye,{justifyContent:"center",gap:16,padding:16,children:(0,a.jsx)(A.$n,{size:"lg",priority:"primary",disabled:!n,onClick:c,children:l("Accept")})})]})]})}function lM(){let e=(0,e8.Jd)(),t=(0,lw.w)(),n=(e=>{let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if("undefined"!=typeof window&&!window.decagonEmbed){n(!0);let t=document.createElement("script");t.setAttribute("src","https://decagon.ai/loaders/substack_embed.js"),t.onload=()=>{window.decagonEmbed.setUserId(null==e?void 0:e.id),n(!1)},document.body.appendChild(t)}},[e]),t})(e),i=(e=>{let{user:t,tokens:n,loading:a}=e,[i,s]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{var e;"undefined"!=typeof window&&(null==(e=window.decagonEmbed)?void 0:e.setMetadata)&&!a&&(window.decagonEmbed.setMetadata((0,r._)({email:null==t?void 0:t.email,url:window.location.href},n.apiToken&&{token:n.apiToken})),n.signatureToken&&window.decagonEmbed.setUserIdAuth(n.signatureToken.signature,n.signatureToken.epoch))},[t,n,a]),(0,o.useEffect)(()=>{let e=setInterval(()=>{var t;"undefined"!=typeof window&&(null==(t=window.decagonEmbed)?void 0:t.isReady)&&window.decagonEmbed.isReady()&&(s(!0),1)&&clearInterval(e)},50);return()=>clearInterval(e)},[]),i})({user:e,tokens:t,loading:n});return(0,a.jsx)("div",{className:"decagonEmbedContainer-JqgvI0",id:"decagon-embed-container",style:{visibility:n||!i?"hidden":"visible"}})}function lC(){let{hasAcceptedTerms:e,setHasAcceptedTerms:t}=(0,lS.Xd)();return(0,a.jsxs)("div",{className:"supportBotPageContainer-XHVg43",children:[(0,a.jsx)(J.O,{title:"Support"}),e?(0,a.jsx)(lM,{}):(0,a.jsx)(lI,{setHasAcceptedTerms:t})]})}let lk="switch-to-substack",lj=l(e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(aL.k,{priority:"primary"}),(0,a.jsx)(J.O,{title:"Switch to Substack",description:"Substack is the simplest way to start a subscription publication, and the best place to grow it."}),(0,a.jsx)("div",{className:"cohort-hero",children:(0,a.jsxs)("div",{className:"cohort-hero-content",children:[(0,a.jsx)("div",{className:"switch-hero-title",children:"Switch to Substack"}),(0,a.jsx)("div",{className:"switch-hero-subtitle",children:"Substack is the simplest way to start a subscription publication, and the best place to grow it."}),(0,a.jsxs)("div",{className:"switch-form-container",children:[(0,a.jsxs)("form",{method:"GET",action:"/signup/import",children:[(0,a.jsx)("label",{htmlFor:"import_url",className:"switch-label",children:"URL for your blog or newsletter"}),(0,a.jsx)("br",{}),(0,a.jsx)("input",{name:"import_url",id:"import_url",placeholder:"Paste your blog URL here...",className:"switch-form"}),(0,a.jsx)("input",{type:"hidden",name:"utm_source",value:"substack"}),(0,a.jsx)("input",{type:"hidden",name:"utm_medium",value:"web"}),(0,a.jsx)("input",{type:"hidden",name:"utm_campaign",value:"cohort_pages"}),(0,a.jsx)("input",{type:"hidden",name:"utm_content",value:"switch-to-substack"}),(0,a.jsx)("input",{type:"submit",value:"Get started",className:"button big-button primary form-button",style:{height:"44px",lineHeight:"25px",borderRadius:"4px"}})]}),(0,a.jsxs)("div",{className:"form-info",children:["We support imports from Mailchimp, Beehiiv, Ghost, WordPress, Tinyletter, Medium, Tumblr, and even some custom web pages.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360037830351?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.switchToSubstack),children:"Need help"})," finding your URL?"]})]})]})}),(0,a.jsx)(tV,{testimonial:"“After only a few months on Substack, we have multiple times more subscribers than we ever had during our time on Patreon, and we can see there's still lots of room for growth.”",authorName:"Berny Belvedere",publicationName:"Arc Digital",publicationUrl:"https://www.arcdigital.media",cohortName:lk}),(0,a.jsx)("div",{className:"cohort-substack-benefits",children:(0,a.jsxs)("div",{className:"cohort-substack-benefits-content",children:[(0,a.jsxs)("div",{className:"benefits-text-container",children:[(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Switching takes less than 5 minutes."}),(0,a.jsx)("div",{className:"benefit-description",children:"Import your mailing lists and writing archives from Beehiiv, WordPress, Medium, Tumblr, Mailchimp, TinyLetter, Ghost, and even some custom websites."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"True independence."}),(0,a.jsx)("div",{className:"benefit-description",children:"Own all your content. Own your subscriber list. Build a community. Keep 90% of the revenue."})]}),(0,a.jsxs)("div",{className:"benefit",children:[(0,a.jsx)("div",{className:"benefit-title",children:"Subscription publishing made simple."}),(0,a.jsx)("div",{className:"benefit-description",children:"Choose which posts you publish as free or only for paid subscribers. Zero tech knowledge required. We take care of everything except the hard part (the writing itself)."})]})]}),(0,a.jsx)("img",{src:"/img/cohorts/benefits-illustration.png",alt:"benefits-illustration",className:"benefit-image"})]})}),(0,a.jsx)(tz,{testimonial:"“[My Substack] is already giving me more direct contact with readers than I've had in any other setting.”",authorName:"Ted Gioia",publicationName:"Culture Notes of an Honest Broker",publicationUrl:"https://tedgioia.substack.com",signupUrl:"/signup/import?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_content=").concat(eg.fL.switchToSubstack),cohortName:lk}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Great writers have moved to Substack."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle",children:"From food and faith to politics and economics, Substack is the new home for the world's best writers."}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Delia Cai of Deez Links",pubLogoUrl:"/img/switch_to_substack/delia.png",description:"Delia Cai started Deez Links in 2016 on TinyLetter. When Delia moved to Substack in 2018, she went through an “amazing growth trajectory” and joined Vanity Fair as a senior correspondent.",pubUrl:"https://deezlinks.substack.com",cohortName:lk}),(0,a.jsx)(tY,{pubName:"Judd Legum of Popular Information",pubLogoUrl:"/img/switch_to_substack/legum.png",description:"Judd Legum, founder of political blog ThinkProgress, launched Popular Information on Substack in July 2018. Popular Information now has more than 100,000 signups.",pubUrl:"https://popular.info",cohortName:lk})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Erin Moon of The Swipe Up",pubLogoUrl:"/img/switch_to_substack/moon.png",description:"Erin first started her newsletter on MailChimp, and became frustrated because of how little interaction there was with readers. She moved to Substack and today has more than 8,500 subscribers with a ~ 50% open rate.",pubUrl:"https://erinhmoon.substack.com",cohortName:lk}),(0,a.jsx)(tY,{pubName:"Jarrett Carter of HBCU Digest",pubLogoUrl:"/img/switch_to_substack/carter.png",description:"Jarrett Carter moved his writing over to Substack after 10 years of blogging and sharing articles on social media. In just a year, he has built an email list of 50,000 readers.",pubUrl:"https://www.hbcudigest.com",cohortName:lk})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"Courtney Martin of the Examined Family",pubLogoUrl:"/img/switch_to_substack/martin.png",description:'Courtney had a weekly column at the On Being Project, and transferred her readers to Substack in 2019. She was “amazed at the response" from readers eager to fund her.',pubUrl:"https://courtney.substack.com",cohortName:lk}),(0,a.jsx)(tY,{pubName:"Dinner by Jenny Rosenstrach",pubLogoUrl:"/img/switch_to_substack/jenny.png",description:"Jenny Rosenstrach has written Dinner: A Love Story for more than a decade. She moved her blog and its 1,500-post archive to Substack in January 2021",pubUrl:"https://dinneralovestory.substack.com",cohortName:lk})]})]})}),(0,a.jsx)(tV,{testimonial:" “[On Substack], I don’t need to write SEO-friendly headlines or stress about traffic numbers. I don’t have to worry about putting celebrities in my story or hoping some dubious aggregator picks up a piece. I merely have to write and hit “send.” It’s a nice life.”",authorName:"Ross Barkan",publicationName:"Political Currents",publicationUrl:"https://rossbarkan.substack.com",cohortName:lk}),(0,a.jsx)("div",{className:"switch-final-section",children:(0,a.jsxs)("div",{className:"switch-final-section-content",children:[(0,a.jsx)("div",{className:"switch-final-section-header",children:"Switch to Substack now."}),(0,a.jsx)("div",{className:"switch-final-section-subtitle",children:"It takes 5 minutes to import your email lists, writing, and podcast episodes."}),(0,a.jsxs)("div",{className:"switch-form-container",children:[(0,a.jsxs)("form",{method:"GET",action:"/signup/import",children:[(0,a.jsx)("label",{htmlFor:"import_url",className:"switch-label",children:"URL for your blog or newsletter"}),(0,a.jsx)("br",{}),(0,a.jsx)("input",{name:"import_url",id:"import_url",placeholder:"Paste your blog URL here...",className:"switch-form"}),(0,a.jsx)("input",{type:"hidden",name:"utm_source",value:"substack"}),(0,a.jsx)("input",{type:"hidden",name:"utm_medium",value:"web"}),(0,a.jsx)("input",{type:"hidden",name:"utm_campaign",value:"cohort_pages"}),(0,a.jsx)("input",{type:"hidden",name:"utm_content",value:"switch-to-substack"}),(0,a.jsx)("input",{type:"submit",value:"Get started",className:"button big-button primary form-button",style:{height:"44px",lineHeight:"25px",borderRadius:"4px"}})]}),(0,a.jsxs)("div",{className:"form-info",children:["We support imports from Mailchimp, Ghost, Beehiiv, WordPress, Tinyletter, Medium, Tumblr, and even some custom web pages.",(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360037830351?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.switchToSubstack),children:"Need help"})," finding your URL?"]})]})]})})]})});var lL=n(38970),lR=n.n(lL),lT=n(38305),lP=n(46370),lD=n(58292);function lB(e,t,n){return(0,N.yRP)((0,N.wu9)(t,e,{comments:!(0,aH.shouldUseInlineComments)(t,e)}),n)}n(18947),!function(){try{(0,oG.xm)("comment-collapse-state",[])}catch(e){return console.error("Failed to load comment collapse state:",e),[]}}();let lU={topicPage:"topicPage-PhEdIo",postContainer:"postContainer-PXj83O",commentsContainer:"commentsContainer-eKfmZ_",commentBody:"commentBody-tIKgQj",commentIcon:"commentIcon-vq83Dh",relatedPubsSidebar:"relatedPubsSidebar-Ge00HH",relatedPubsListItem:"relatedPubsListItem-EQyY_T"},lG=e=>{let{topic:t,posts:n,pubs:i,comments:r}=e,s=(0,tb.Iu)(),l=(0,o.useMemo)(()=>lR()(i,"id"),[i]);return(0,o.useEffect)(()=>{(0,M.u4)(M.qY.TOPIC_PAGE_VIEWED,{topic:t.slug})},[]),(0,a.jsxs)("div",{className:lU.topicPage,children:[(0,a.jsx)(J.O,{title:t.title_content,description:t.meta_description}),(0,a.jsx)(E.I1,{children:(0,a.jsxs)(E.Ye,{gap:64,children:[(0,a.jsxs)(E.I1,{gap:32,padding:16,children:[(0,a.jsxs)(E.Ye,{gap:16,justifyContent:"space-between",className:lU.navigationBar,children:[(0,a.jsxs)(E.Ye,{gap:8,children:[(0,a.jsx)(y.EY.Meta,{translated:!0,as:"a",href:(0,N.LNy)(),children:"Home"}),(0,a.jsx)(y.EY.Meta,{children:">"}),(0,a.jsx)(y.EY.Meta,{translated:!0,as:"a","data-native":!0,href:"/topics",children:"Topics"}),!s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY.Meta,{children:">"}),(0,a.jsx)(y.EY.Meta,{children:t.short_name})]})]}),(0,a.jsx)(y.EY.Meta,{as:"h1",children:t.h1_content})]}),(0,a.jsx)(y.EY.H2,{as:"h1",children:t.full_name}),(0,a.jsx)(E.I1,{gap:16,children:n.flatMap((e,n)=>[(0,a.jsx)(sI.c,{},"divider-".concat(e.id)),(0,a.jsx)(lY,{post:e,pub:l[e.publication_id],comments:r[e.id]},"post-".concat(e.id)),s&&1===n&&(0,a.jsx)(lW,{topic:t,pubs:i})])})]}),!s&&(0,a.jsx)(lF,{topic:t,pubs:i})]})})]})},lF=e=>{let{topic:t,pubs:n}=e;return(0,a.jsxs)(E.I1,{className:lU.relatedPubsSidebar,gap:20,children:[(0,a.jsxs)(y.EY.H4,{children:["Related ",t.short_name," Substacks"]}),n.map(e=>(0,a.jsx)(lJ,{pub:e}))]})},lW=e=>{let{topic:t,pubs:n}=e;return(0,a.jsxs)(E.I1,{className:lU.relatedPubsListItem,gap:16,children:[(0,a.jsxs)(y.EY.Meta,{children:["Related ",t.short_name," Substacks"]}),(0,a.jsx)(E.I1,{gap:20,children:n.map(e=>(0,a.jsx)(lJ,{pub:e}))})]})},lY=e=>{let{post:t,pub:n,comments:i}=e;return(0,a.jsx)(E.I1,{as:"article",gap:8,className:lU.postContainer,children:(0,a.jsxs)(E.I1,{gap:8,children:[(0,a.jsx)(lK,{post:t,pub:n}),(0,a.jsx)(lH,{post:t,pub:n}),(0,a.jsx)(lq,{post:t,pub:n,comments:i})]})})},lK=e=>{let{post:t,pub:n}=e;return(0,a.jsxs)(E.Ye,{gap:12,justifyContent:"space-between",alignItems:"center",className:lU.postHeader,children:[(0,a.jsx)(ad.Nq,{pub:n,size:20,belowTheFold:!0}),(0,a.jsx)(y.EY.Meta,{flex:"grow",children:(0,a.jsx)(k.p2,{href:(0,N.fOI)(n),children:n.name})}),(0,a.jsx)(y.EY.Meta,{children:(0,f.Wy)(t.post_date)})]})},lH=e=>{let{post:t,pub:n}=e;return(0,a.jsxs)(E.Ye,{gap:24,children:[(0,a.jsxs)(E.I1,{gap:4,flex:"grow",children:[(0,a.jsx)(y.EY.H4,{as:"h2",children:(0,a.jsx)(k.p2,{href:(0,N.wu9)(n,t),children:t.title})}),t.subtitle&&(0,a.jsx)(y.EY.B3,{children:t.subtitle}),t.truncated_body_text&&(0,a.jsx)(y.EY.B4,{color:"secondary",children:t.truncated_body_text}),(0,a.jsx)(lz,{post:t})]}),t.cover_image&&(0,a.jsx)(lV,{post:t})]})},lV=e=>{let{post:t}=e,[n,i]=(0,o.useState)(!1),r=(0,tb.Iu)();return null===t.cover_image||n?null:(0,a.jsx)(iN.c,{src:t.cover_image,width:r?64:160,aspectRatio:"thumb",radius:"sm",loading:"lazy",onError:()=>i(!0)})},lz=e=>{let{post:t}=e,n=t.publishedBylines,i=[];return n.length&&i.push((0,a.jsx)(lT.K,{array:n,limit:3,formatter:e=>e.name})),t.reaction_count>0&&i.push((0,a.jsxs)(a.Fragment,{children:[t.reaction_count," LIKES"]})),t.restacks&&t.restacks>0&&i.push((0,a.jsxs)(a.Fragment,{children:[t.restacks," RESTACKS"]})),(0,a.jsx)(y.EY.Meta,{children:i.flatMap((e,t)=>[0!==t&&" ∙ ",e])})},lq=e=>{let{post:t,pub:n,comments:i}=e;return 0===i.toDisplay.length?null:(0,a.jsxs)(E.I1,{className:lU.commentsContainer,gap:8,padding:16,children:[i.toDisplay.map(e=>(0,a.jsxs)(E.Ye,{gap:8,children:[(0,a.jsx)(rq.eu,{user:e,size:32}),(0,a.jsxs)(E.I1,{children:[(0,a.jsxs)(E.Ye,{gap:4,children:[(0,a.jsx)(y.EY.B4,{weight:"semibold",children:e.name}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:"•"}),(0,a.jsx)(y.EY.B4,{color:"secondary",children:(0,a.jsx)(k.p2,{href:(0,N.Erh)(n,t,e),children:(0,a.jsx)(lD.iE,{timestamp:e.date})})})]}),(0,a.jsx)(y.EY.B4,{className:lU.commentBody,children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"p";return(e||"").split("\n").filter(e=>e.trim()).map(e=>(0,a.jsx)(t,{children:(0,a.jsx)(tB(),{options:{validate:{url:e=>!!e&&!e.startsWith("/")},attributes:{rel:"nofollow ugc noopener"}},children:e})}))}(e.body,"div")})]})]},e.id)),i.totalCount>i.toDisplay.length&&(0,a.jsxs)(A.$n,{size:"sm",priority:"secondary",justifyContent:"center",href:lB(t,n),children:[(0,a.jsx)(lP.A,{className:lU.commentIcon}),(0,a.jsxs)(y.EY.B4,{as:"a",weight:"semibold",color:"secondary",href:lB(t,n),children:["Read all ",t.comment_count," comments"]})]})]})},lJ=e=>{let{pub:t}=e,n=(0,ap.Zm)({publication:t,subscriptionSource:"leaderboard-sidebar",sourceNoteId:null}),i=(0,aH.getByLine)(t,{skipMultiContributorCheck:!0});return(0,a.jsxs)(E.Ye,{gap:12,justifyContent:"space-between",alignItems:"center",children:[(0,a.jsxs)(E.Ye,{as:"a",href:(0,N.$_T)(t),gap:12,alignItems:"center",flex:"grow",children:[(0,a.jsx)(ad.Nq,{pub:t,size:40,belowTheFold:!0}),(0,a.jsxs)(E.I1,{gap:2,children:[(0,a.jsx)(y.EY.B4,{children:t.name}),i?(0,a.jsxs)(y.EY.B4,{color:"secondary",children:["By ",i]}):null]})]}),n.isSubscribed?(0,a.jsx)(A.K0,{rounded:!0,size:"md",onClick:n.unsubscribe,children:(0,a.jsx)(ao.A,{size:20})}):(0,a.jsx)(A.K0,{rounded:!0,size:"md",priority:"primary",onClick:n.subscribe,children:(0,a.jsx)(ao.A,{size:20})})]})},lZ=e=>{let{topics:t}=e,{iString:n}=(0,h.GO)();return(0,a.jsxs)("div",{className:"topicsIndexPage-EViX4r",children:[(0,a.jsx)(J.O,{title:n("Latest topics on Substack")}),(0,a.jsxs)(E.I1,{gap:32,paddingTop:12,flex:"grow",children:[(0,a.jsxs)(E.Ye,{gap:8,paddingX:8,children:[(0,a.jsx)(y.EY.Meta,{translated:!0,as:"a",href:(0,N.LNy)(),children:"Home"}),(0,a.jsx)(y.EY.Meta,{children:">"}),(0,a.jsx)(y.EY.Meta,{translated:!0,children:"Topics"})]}),(0,a.jsx)(y.EY.H2,{translated:!0,paddingX:8,children:"Topics"}),(0,a.jsx)(sI.c,{paddingX:8}),(0,a.jsx)(E.I1,{gap:8,children:t.map(e=>(0,a.jsxs)(E.Ye,{as:"a","data-native":!0,href:"/topics/".concat(e.slug),alignItems:"center",className:"topicRow-zGhIhY",children:[(0,a.jsx)(y.EY.H4,{padding:4,flex:"grow",children:e.short_name}),(0,a.jsx)(A.K0,{rounded:!0,size:"lg",children:(0,a.jsx)(a$.A,{})})]},e.slug))})]})]})};var lX=n(88218);let lQ=e=>{let{isMobile:t,signupUrl:n,onClickLink:i}=e,[r,s]=(0,o.useState)(!1),l=(0,o.useRef)(null),c=()=>{var e;s(!0),null==(e=l.current)||e.play()};return(0,a.jsxs)(eR,{title:"The new home for TikTok creators",paddingY:80,children:[!t&&(0,a.jsx)(y.EY.MarketingHeading4,{weight:"regular",align:"center",children:"Own your audience and earn money with subscriptions"}),(0,a.jsxs)("div",{className:"videoWrapper-gnxL_3",children:[(0,a.jsx)("video",{className:"video-pHsaS2",controls:!0,ref:l,children:(0,a.jsx)("source",{src:"https://substack-post-media.s3.us-east-1.amazonaws.com/public/assets/tiktok-page/substack-dear-culture-makers.mov",type:"video/mp4"})}),!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ed.o,{className:"videoScreenshot-W2FP0V",src:"https://substack-post-media.s3.us-east-1.amazonaws.com/public/assets/tiktok-page/substack-culture-poster.png",maxWidth:2e3,onClick:c}),(0,a.jsx)("div",{className:"buttonContainer-hOoj1Y",onClick:e=>{e.stopPropagation(),c()},children:(0,a.jsx)(lX.ro,{isPlaying:!1,size:t?56:72})})]})]}),(0,a.jsx)(A.$n,{href:n,onClick:()=>i({linkType:"start your substack"}),children:"Start your Substack"})]})};var l$=n(95187),l0=n(85731),l1=n(53594);let l2=e=>{let{coverImageUrl:t,isMobile:n,title:i,author:o,description:s,logoUrl:l,palette:c,url:d}=e;return(0,a.jsx)("a",{href:d,className:"link-chRcRo",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsxs)(E.I1,{radius:"md",overflow:"hidden",style:n?{width:260}:void 0,children:[(0,a.jsx)(ed.o,{className:"coverImage-om0LKb",src:t,maxWidth:560}),(0,a.jsxs)(E.I1,{position:"relative",padding:16,paddingTop:40,flex:"grow",children:[(0,a.jsx)(ep.az,{className:"logoBackground-YqXk5b",position:"absolute",inset:0,style:l?{backgroundImage:"url(".concat((0,N.dJ9)(l),")")}:void 0}),(0,a.jsx)(ep.az,{position:"absolute",inset:0,style:(0,r._)({WebkitBackdropFilter:"blur(40px) brightness(0.85)",backdropFilter:"blur(40px) brightness(0.85)"},(0,l1.ou)({palette:c,defaultColor:void 0}))}),(0,a.jsx)(ed.o,{className:"logo-tADUTS",src:l,maxWidth:100}),(0,a.jsxs)(E.I1,{gap:24,position:"relative",flex:"grow",children:[(0,a.jsxs)(E.I1,{flex:"grow",children:[(0,a.jsx)(y.EY.H4,{color:"white",children:i}),(0,a.jsx)(y.EY.Meta,{color:"white",opacity:60,children:o}),(0,a.jsx)(y.EY.B4,{color:"white",clamp:2,children:s})]}),(0,a.jsx)(E.I1,{alignItems:"start",children:(0,a.jsxs)(E.Ye,{bg:"glass-thick",radius:"sm",paddingY:8,paddingX:16,gap:8,alignItems:"center",children:[(0,a.jsx)(l0.A,{stroke:"none",fill:"rg(0,0,0,0.8)",size:16}),(0,a.jsx)(y.EY.B4,{weight:"semibold",children:"Watch"})]})})]})]})]})})},l3=e=>{let{isMobile:t}=e,n=(0,o.useRef)(null),i=l4.map(e=>(0,a.jsx)(l2,{author:l8[e],coverImageUrl:"https://substack-post-media.s3.amazonaws.com/public/assets/tiktok-page/cover-images/".concat(e,".webp"),description:l5[e],isMobile:t,logoUrl:"https://substack-post-media.s3.amazonaws.com/public/assets/tiktok-page/logos/".concat(e,".jpg"),title:l9[e],palette:l6[e],url:(0,aS.yRP)(l7[e],{utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.tiktok})}));return(0,a.jsx)(eR,{backgroundColor:"wash",contentWidth:"wide",title:"Explore top creators on Substack",children:t?(0,a.jsx)(l$.Z6,{className:"scrollbox-J_d7Cc",scrollRef:n,children:(0,a.jsx)(E.Ye,{paddingX:24,gap:20,children:i})}):(0,a.jsx)("div",{className:"container-XNi2gb",children:i})})},l4=["kareemrahma","mirandajuly","violetcooks","nothingbutrespect","thenewgarde","leoskepi","sundaystack","aaronparnas","lisaremillard","emilysundberg","throwingfits","hrhcollection","itslennnie","cheftineke","cocomocoe"],l9={kareemrahma:"Another New Thing with Kareem Rahma",mirandajuly:"Miranda July",violetcooks:"Violet’s Substack",nothingbutrespect:"Nothing But Respect",thenewgarde:"The New Garde with Alyssa Vingan",leoskepi:"Leo Skepi",sundaystack:"the sunday stack",aaronparnas:"The Parnas Perspective",lisaremillard:"FactsHQ",emilysundberg:"Feed Me",throwingfits:"Throwing Fits",hrhcollection:"HRH COLLECTION",cheftineke:"Tineke's Substack",cocomocoe:"Coco Mocoe",itslennnie:"Lennnie"},l8={kareemrahma:"Kareem Rahma",mirandajuly:"Miranda July",violetcooks:"Violet Witchel",nothingbutrespect:"Patrick Redford and Harry Krinsky",thenewgarde:"Alyssa Vingan",leoskepi:"Leo Skepi",sundaystack:"katie",aaronparnas:"Aaron Parnas",lisaremillard:"Lisa Remillard",emilysundberg:"Emily Sundberg",throwingfits:"Throwing Fits",hrhcollection:"HRH",cheftineke:"Tini Younger",cocomocoe:"Coco Mocoe",itslennnie:"Lennnie"},l7={kareemrahma:"https://substack.com/@kareemrahma",mirandajuly:"https://substack.com/@mirandajuly",violetcooks:"https://substack.com/@leftoversclub",nothingbutrespect:"https://nothingbutrespect.substack.com/",thenewgarde:"https://substack.com/@alyssavingan",leoskepi:"https://substack.com/@leoskepi",sundaystack:"https://sundaystack.substack.com/",aaronparnas:"https://substack.com/@aaronparnas",lisaremillard:"https://substack.com/@lisaremillard",emilysundberg:"https://substack.com/@emilysundberg",throwingfits:"https://www.throwingfits.com/",hrhcollection:"https://substack.com/@hrhcollection",itslennnie:"https://substack.com/@itslennnie",cheftineke:"https://substack.com/@tiniyounger",cocomocoe:"https://substack.com/@cocomocoe"},l5={kareemrahma:"I'm a comedian, writer, and producer. I'll be trying some new things here...like...Dad Stuff ™. Also seen on '@subwaytakes' and '@keepthemeterrunning', etc.",mirandajuly:"Off the cuff MJ writing/videos/picts/audio for paid subscribers and an ongoing All Fours Group Chat for everyone (not a book club! A place to talk about your own life.)",violetcooks:"Recipes, meal plans, shopping lists, and more for your food inspiration and organization.",nothingbutrespect:"The last uncompromised basketball podcast hosted by Patrick Redford and Harry Krinsky.",thenewgarde:"The New Garde is a podcast about the future of the fashion and beauty industries — and the culture surrounding them — hosted by two-time former editor-in-chief, Alyssa Vingan.",leoskepi:"Let's get into it \uD83D\uDE0F No more community guidelines & bullshit restrictions.",sundaystack:"all the food i'm cooking, techniques i'm finding, tasty things i'm trying & maybe some other stuff - you'll just have to find out :*",aaronparnas:"Providing you with the Gen Z perspective on all the issues in the news.",lisaremillard:'FactsHQ from "The News Girl" Lisa Remillard. Your daily dose of the news you need to know. Just the FACTS, broken down in the simplest way. No opinions. No BS.',emilysundberg:"A daily newsletter about the spirit of enterprise.",throwingfits:"Throwing Fits is the number #1 global men's fashion and lifestyle podcast. We are The Only Podcast That Matters™ (self-proclaimed).",cheftineke:"Social Media Chef/Influencer Contestant on Next Level Chef Season 2 Star of From Scratch with Tini on YouTube Bite Orginials",itslennnie:"hi my name's lennnie. i am a little blob just trying to help u get through the day \uD83C\uDF31",cocomocoe:"The place to talk trends, marketing and pop culture!",hrhcollection:"UNFILTERED HRH"},l6={kareemrahma:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},mirandajuly:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},violetcooks:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},nothingbutrespect:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},thenewgarde:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},aaronparnas:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},cocomocoe:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},hrhcollection:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},lisaremillard:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},leoskepi:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},emilysundberg:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},throwingfits:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},sundaystack:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},cheftineke:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}},itslennnie:{Vibrant:{rgb:[0,0,0],population:0},DarkVibrant:{rgb:[0,0,0],population:0},LightVibrant:{rgb:[0,0,0],population:0},Muted:{rgb:[0,0,0],population:0},DarkMuted:{rgb:[0,0,0],population:0},LightMuted:{rgb:[201,174,172],population:32}}},ce=e=>{let{children:t}=e,[n,i]=(0,o.useState)(0),r=(0,o.useCallback)(e=>{i(t=>t===e?null:e)},[]);return(0,a.jsx)(E.I1,{gap:24,children:o.Children.map(t,(e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,o.cloneElement)(e,{onToggle:r,index:t,isOpen:n===t}),(0,a.jsx)(sI.c,{})]}))})},ct=e=>{let{children:t,index:n,isOpen:i,title:r,onToggle:o}=e;return(0,a.jsxs)(E.Ye,{gap:16,alignItems:"start",onClick:()=>{void 0!==n&&(null==o||o(n))},children:[(0,a.jsx)(ep.az,{paddingTop:8,children:(0,a.jsx)(E.Ye,{alignItems:"center",className:I()("chevron-vRwlQK",{"chevronExpanded-qSOuzE":i}),justifyContent:"center",children:(0,a.jsx)(aG.A,{stroke:"#FF6719"})})}),(0,a.jsxs)(E.I1,{children:[(0,a.jsx)(y.EY.MarketingHeading3,{cursor:"pointer",weight:"regular",userSelect:"none",children:r}),(0,a.jsx)(tE.N,{open:null!=i&&i,children:(0,a.jsx)(ep.az,{paddingTop:24,children:t})})]})]})},cn=e=>{let{href:t,children:n,onClick:i}=e;return(0,a.jsx)("a",{href:t,style:{textDecoration:"none"},onClick:i,children:(0,a.jsxs)(E.Ye,{gap:6,alignItems:"center",color:"substack",children:[(0,a.jsx)(y.EY.MarketingBody,{weight:"semibold",color:"substack",children:n}),(0,a.jsx)(ej.A,{size:20})]})})},ca=e=>{let{}=e;return(0,a.jsxs)(ep.az,{className:"container-cNlhAG",position:"relative",children:[(0,a.jsx)(ed.o,{className:"phoneIllustration-XfakP1",src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/video-phone.png",maxWidth:1136}),(0,a.jsx)(ed.o,{className:"ball-De1uf8",src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/ball.png",maxWidth:296}),(0,a.jsx)("video",{className:"video-L2zlOU",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:(0,a.jsx)("source",{src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/ios-marketing-web.mp4",type:"video/mp4"})})]})},ci=e=>{let{isMobile:t,signupUrl:n,onClickLink:i}=e,r=(0,a.jsx)(cn,{href:n,onClick:()=>{i({linkType:"get started"})},children:"Get started"});return(0,a.jsx)(eR,{title:"A powerful toolkit for video creators",children:(0,a.jsxs)(E.I1,{gap:80,children:[(0,a.jsxs)("div",{className:I()("container-dORry5",{"containerMobile-HC0VmV":t}),children:[(0,a.jsx)(ep.az,{className:"accordionContainer-GUbUOO",paddingTop:56,children:(0,a.jsxs)(ce,{children:[(0,a.jsx)(ct,{title:"Live video",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Engage with your audience in real time and collaborate with other creators to leverage the Substack network."}),r]})}),(0,a.jsx)(ct,{title:"Paid memberships",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Build direct relationships through paid subscriptions instead of relying on an algorithm to reach your audience."}),r]})}),(0,a.jsx)(ct,{title:"Chat",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"A closed space just for you and your subscribers — like a group chat where you make the guest list and the rules."}),r]})}),(0,a.jsx)(ct,{title:"Discovery",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Benefit from the Substack network to grow your audience by posting posts, images, and videos to the home feed."}),r]})})]})}),(0,a.jsx)("div",{className:"imageContainer-cOea0S",children:(0,a.jsx)(ca,{})})]}),(0,a.jsx)("div",{className:"buttonContainer-DWbdVp",children:(0,a.jsx)(A.$n,{href:"https://on.substack.com/p/tiktok-to-substack-migration-bringing-followers",onClick:()=>{i({linkType:"learn more"})},children:"Learn More"})})]})})},cr=e=>{let{children:t,priority:n,url:i,onClick:r}=e,o=(0,tb.Iu)();return(0,a.jsx)("div",{className:"container-Wjdjfj",children:(0,a.jsx)("a",{className:I()("link-p2fhRw",{"linkMobile-hz4O_0":o}),href:i,onClick:r,children:(0,a.jsx)(A.$n,{size:"lg",flex:o?"grow":void 0,priority:n,children:t})})})},co=e=>{let{signupUrl:t,onClickLink:n}=e;return(0,a.jsx)(eR,{backgroundColor:"green",children:(0,a.jsxs)(E.I1,{gap:48,alignItems:"center",children:[(0,a.jsx)(ed.o,{className:"getStartedImage-PVUsY3",src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/get-started.png",maxWidth:800}),(0,a.jsxs)(E.I1,{gap:32,alignItems:"center",children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",align:"center",color:"white",children:"Get started in minutes"}),(0,a.jsx)(cr,{url:t,onClick:()=>n({linkType:"create your substack"}),children:"Create your Substack"})]})]})})},cs="appBadge-H51hVl",cl=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.tiktok}),cc=()=>(0,a.jsx)(eR,{title:"Get the app",backgroundColor:"wash",children:(0,a.jsxs)(E.pT,{gap:16,justifyContent:"center",children:[(0,a.jsx)("a",{className:cs,href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appDeckAppstoreButton}),onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_page",app_store:"ios"})},children:(0,a.jsx)("img",{src:(0,aS.dJ9)("/img/app_page/app-store.png",320),height:48})}),(0,a.jsx)("a",{className:cs,href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appPageBottomAppStoreButton}),onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_page",app_store:"android"})},children:(0,a.jsx)("img",{src:(0,aS.dJ9)("/img/app_page/google-play.png",320),height:48})})]})}),cd=e=>{let{}=e,t={target:"_blank",rel:"noopener noreferrer"};return(0,a.jsxs)(eP,{backgroundColor:"wash",title:"Video questions answered",children:[(0,a.jsx)(eD,{question:"How do I set up a video podcast?",answer:(0,a.jsxs)(a.Fragment,{children:["You can follow a"," ",(0,a.jsx)("a",(0,R._)((0,r._)({},t),{href:"https://support.substack.com/hc/en-us/articles/21093671091220",children:"step-by-step guide"})),"."]})}),(0,a.jsx)(eD,{question:"How much does it cost to use Substack to host my videos and/or podcast?",answer:"It’s free to publish on Substack. If you turn on paid subscriptions you will keep 90% of their revenue, minus credit card fees."}),(0,a.jsx)(eD,{question:"How can subscribers watch videos published on Substack?",answer:(0,a.jsxs)(a.Fragment,{children:["Subscribers will get new videos directly in their inbox. They can click through to watch on the web, or in"," ",(0,a.jsx)("a",(0,R._)((0,r._)({},t),{href:"https://substack.com/app?no_redirect=true",children:"the Substack app"})),"."]})}),(0,a.jsx)(eD,{question:"Will Substack help me grow my audience?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes, that’s one of the big benefits of publishing on Substack."," ",(0,a.jsx)("a",(0,R._)((0,r._)({},t),{href:"https://on.substack.com/p/substack-generates-1-in-3-new-subscriptions",children:"More than 50% of all new free subscriptions and around 25% of paid subscriptions"}))," ","to Substack publications come from within our network."]})}),(0,a.jsx)(eD,{question:"I have a question or problem that’s not answered here! ",answer:(0,a.jsxs)(a.Fragment,{children:["Answers to frequently-asked questions about Substack can be found on our"," ",(0,a.jsx)("a",(0,R._)((0,r._)({},t),{href:"https://support.substack.com/hc/en-us",children:"Support center"})),"."]})}),(0,a.jsx)(cr,{url:"https://support.substack.com/hc/en-us/search?utf8=%E2%9C%93&query=video",priority:"secondary",onClick:()=>void 0,children:"See more"})]})},cu=e=>{let{isMobile:t,signupUrl:n,onClickLink:i}=e,[r,s]=(0,o.useState)(!1),l=(0,o.useRef)(null),c=()=>{var e;s(!0),null==(e=l.current)||e.play()};return(0,a.jsxs)(eR,{title:"The home for great video",paddingY:80,children:[!t&&(0,a.jsx)(y.EY.MarketingHeading4,{weight:"regular",align:"center",children:"A place for creative freedom, direct connections, and a business built on subscriptions"}),(0,a.jsxs)("div",{className:"videoWrapper-kd0tuf",children:[(0,a.jsx)("video",{className:"video-uhndud",controls:!0,ref:l,children:(0,a.jsx)("source",{src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/substack-videos.mp4",type:"video/mp4"})}),!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ed.o,{className:"videoScreenshot-l_tbCP",src:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/video-screenshot.jpg",maxWidth:2e3,onClick:c}),(0,a.jsx)("div",{className:"buttonContainer-EY4y6i",onClick:e=>{e.stopPropagation(),c()},children:(0,a.jsx)(lX.ro,{isPlaying:!1,size:t?56:72})})]})]}),(0,a.jsx)(cr,{url:n,onClick:()=>i({linkType:"start your substack"}),children:"Start your Substack"})]})},cp=e=>{let{isMobile:t}=e,n=(0,o.useRef)(null),i=cm.map(e=>(0,a.jsx)(l2,{author:cg[e],coverImageUrl:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/cover-images/".concat(e,".jpg"),description:cb[e],isMobile:t,logoUrl:"https://substack-post-media.s3.amazonaws.com/public/assets/video-page/show-logos/".concat(e,".jpg"),title:ch[e],palette:cf[e],url:c_[e]}));return(0,a.jsx)(eR,{backgroundColor:"wash",contentWidth:"wide",title:"Explore great videos on Substack",children:t?(0,a.jsx)(l$.Z6,{className:"scrollbox-KfGpN3",scrollRef:n,children:(0,a.jsx)(E.Ye,{paddingX:24,gap:20,children:i})}):(0,a.jsx)("div",{className:"container-jZ4wjT",children:i})})},cm=["taibbi","cecexie","newcomer","jessicareedkraus","robertreich","chrishedges","brianbeutler","jennywalton","shalomauslander","ruthreichl","whattocook","ambertamblyn","thechriscuomoproject","bridgetphetasy","thelesbianprojectpod","truehoop"],ch={taibbi:"America This Week",cecexie:"Currently Workshopping",newcomer:"Newcomer",jessicareedkraus:"House Inhabit",robertreich:"The Coffee Klatch",chrishedges:"The Chris Hedges Report",brianbeutler:"Decoding the News",jennywalton:"JENNY SAIS QUOI",shalomauslander:"Ungodly",ruthreichl:"Three Ingredients",whattocook:"So Into That",ambertamblyn:"Further Ado",thechriscuomoproject:"The Chris Cuomo Project",bridgetphetasy:"Dumpster Fire",thelesbianprojectpod:"The Lesbian Project",truehoop:"True Hoop"},cg={taibbi:"Matt Taibbi",cecexie:"Cece Xie",newcomer:"Newcomer",jessicareedkraus:"Jessica Reed Kraus",robertreich:"Robert Reich",chrishedges:"Chris Hedges",brianbeutler:"Brian Buetler",jennywalton:"Jenny Walton",shalomauslander:"Shalom Auslander",ruthreichl:"Ruth Reichl",whattocook:"Caroline Chambers",ambertamblyn:"Amber Tamblyn",thechriscuomoproject:"Chris Cuomo",bridgetphetasy:"Bridget Phetasy",thelesbianprojectpod:"Julie Bindel & Kathleen Stock",truehoop:"Jarod Hector & David Thorpe"},c_={taibbi:"https://www.racket.news/s/america-this-week?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),cecexie:"https://cecexie.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),newcomer:"https://www.newcomer.co/s/pod?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),jessicareedkraus:"https://jessicareedkraus.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),robertreich:"https://robertreich.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),chrishedges:"https://chrishedges.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),brianbeutler:"https://www.offmessage.net/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),jennywalton:"https://jennywalton.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),shalomauslander:"https://shalomauslander.substack.com/s/ungodly?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),ruthreichl:"https://threeingredients.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),whattocook:"https://whattocook.substack.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),ambertamblyn:"https://ambertamblyn.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),thechriscuomoproject:"https://thechriscuomoproject.substack.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),bridgetphetasy:"https://www.phetasy.com/s/dumpster-fire-podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),thelesbianprojectpod:"https://www.thelesbianprojectpod.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video),truehoop:"https://www.truehoop.com/podcast?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.video)},cb={taibbi:"Welcome to America This Week, with Matt Taibbi and Walter Kirn, the national news wrap-up so true, we recommend you stow all sharp objects before reading.",cecexie:"Join Cece as she works through the perils and frisson of being alive. Part extremely online investigation and part niche liberal arts class discussion section, Currently Workshopping is a thoughtful and analytical foray into ourselves, society, and the ties that bind all of us together (whether we like it or not).",newcomer:"Hosts Eric Newcomer, Max Child, and James Wilsterman bring you a six-part podcast series on the rise of generative artificial intelligence.",jessicareedkraus:"Where pop culture deep dives mingle with quality conspiracy theories, lifestyle highlights, and trending water cooler gossip",robertreich:"Former Labor Secretary Robert Reich exposes where power lies in our system — and how it's used and abused.",chrishedges:"Covering US foreign policy, economic realities, and civil liberties in American society.",brianbeutler:"Why mainstream political media misses the mark so often, and how to consume it like a news professional.",jennywalton:"A nice little place to chat, that isn't Instagram",shalomauslander:"Good Lessons From a Bad God",ruthreichl:"Join Nancy Silverton, Laurie Ochoa and Ruth Reichl in truly delicious conversations about food. ",whattocook:"Conversations about finding easier and better ways to do (and enjoy) life",ambertamblyn:"Diving into everything from how to cross new creative thresholds, ways to un-numb ourselves in difficult times so we can remain politically and spiritually engaged, and juicy behind-the-scenes stories from Amber’s three decades in the entertainment industry.",thechriscuomoproject:"Together, we'll dive deep into the realms of politics, global affairs, and American culture, exploring these topics from a unique vantage point shaped by my years of insider experience.",bridgetphetasy:"A satirical show, created and hosted by comedian Bridget Phetasy, that takes a look at the week in news, current events, and politics.",thelesbianprojectpod:"All the sapphic traffic - for anyone who wants more lesbian in their life",truehoop:"Award-winning hard truths about the NBA since 2005."},cf={taibbi:{Vibrant:{rgb:[233,4,4],population:3},DarkVibrant:{rgb:[104,13,12],population:114},LightVibrant:{rgb:[209,158,156],population:9},Muted:{rgb:[154,90,93],population:12},DarkMuted:{rgb:[100,50,43],population:295},LightMuted:{rgb:[201,174,172],population:32}},cecexie:{Vibrant:{rgb:[152,96,69],population:19},DarkVibrant:{rgb:[28,19,12],population:185},LightVibrant:{rgb:[180,212,228],population:1},Muted:{rgb:[137,117,105],population:316},DarkMuted:{rgb:[108,71,55],population:347},LightMuted:{rgb:[204,189,179],population:473}},newcomer:{Vibrant:{rgb:[157.5,67.49999999999999,187.5],population:0},DarkVibrant:{rgb:[84,36,100],population:1},LightVibrant:{rgb:[167,158,243],population:258},Muted:{rgb:[164,100,100],population:3},DarkMuted:{rgb:[96,58,77],population:19},LightMuted:{rgb:[186,186,187],population:834}},jessicareedkraus:{Vibrant:{rgb:[196,136,114],population:99},DarkVibrant:{rgb:[43,16,14],population:50},LightVibrant:{rgb:[212,188,164],population:495},Muted:{rgb:[171,110,98],population:408},DarkMuted:{rgb:[82,54,51],population:388},LightMuted:{rgb:[212,188,172],population:338}},robertreich:{Vibrant:{rgb:[127.5,127.5,127.5],population:0},DarkVibrant:{rgb:[66.3,66.3,66.3],population:0},LightVibrant:{rgb:[188.7,188.7,188.7],population:0},Muted:{rgb:[125,125,125],population:494},DarkMuted:{rgb:[68,68,68],population:66},LightMuted:{rgb:[188,188,188],population:153}},chrishedges:{Vibrant:{rgb:[14.166666666666673,70.83333333333329,240.83333333333331],population:0},DarkVibrant:{rgb:[4,20,68],population:5324},LightVibrant:{rgb:[129.76666666666665,159.23333333333323,247.63333333333335],population:0},Muted:{rgb:[117,124,156],population:23},DarkMuted:{rgb:[42,55,97],population:127},LightMuted:{rgb:[186,190,204],population:28}},brianbeutler:{Vibrant:{rgb:[127.5,127.5,127.5],population:0},DarkVibrant:{rgb:[66.3,66.3,66.3],population:0},LightVibrant:{rgb:[188.7,188.7,188.7],population:0},Muted:{rgb:[124,124,124],population:6},DarkMuted:{rgb:[60,52,60],population:1},LightMuted:{rgb:[172,172,172],population:10}},jennywalton:{Vibrant:{rgb:[196,4,8],population:690},DarkVibrant:{rgb:[180,4,6],population:506},LightVibrant:{rgb:[195,98,99],population:91},Muted:{rgb:[180,137,134],population:33},DarkMuted:{rgb:[44,38,32],population:275},LightMuted:{rgb:[201,185,177],population:46}},shalomauslander:{Vibrant:{rgb:[168,145,38],population:94},DarkVibrant:{rgb:[76,100,44],population:1},LightVibrant:{rgb:[252,220,212],population:1},Muted:{rgb:[151,131,123],population:115},DarkMuted:{rgb:[68,68,65],population:30},LightMuted:{rgb:[206,177,168],population:75}},ruthreichl:{Vibrant:{rgb:[203,84,56],population:45},DarkVibrant:{rgb:[65,38,26],population:89},LightVibrant:{rgb:[215,135,113],population:323},Muted:{rgb:[163,103,82],population:467},DarkMuted:{rgb:[86,67,60],population:326},LightMuted:{rgb:[211,180,153],population:150}},whattocook:{Vibrant:{rgb:[248,149,6],population:37},DarkVibrant:{rgb:[20,97,186],population:18},LightVibrant:{rgb:[244,118,180],population:33},Muted:{rgb:[130,120,112],population:34},DarkMuted:{rgb:[94,78,77],population:17},LightMuted:{rgb:[177,188,206],population:32}},ambertamblyn:{Vibrant:{rgb:[228,92,80],population:65},DarkVibrant:{rgb:[114.87623762376238,25.600990099009902,17.723762376237627],population:0},LightVibrant:{rgb:[236,156,140],population:52},Muted:{rgb:[121,120,121],population:175},DarkMuted:{rgb:[108,107,108],population:154},LightMuted:{rgb:[236,236,220],population:4856}},thechriscuomoproject:null,bridgetphetasy:{Vibrant:{rgb:[236,117,35],population:13},DarkVibrant:{rgb:[115,39,31],population:29},LightVibrant:{rgb:[222,132,66],population:4},Muted:{rgb:[105,132,102],population:3},DarkMuted:{rgb:[46,89,55],population:204},LightMuted:{rgb:[197,181,178],population:33}},thelesbianprojectpod:{Vibrant:{rgb:[159,8,110],population:370},DarkVibrant:{rgb:[172,36,132],population:9},LightVibrant:{rgb:[236,164,164],population:1},Muted:{rgb:[145.67065868263472,7.329341317365265,100.77844311377247],population:0},DarkMuted:{rgb:[126.51923076923077,26.480769230769223,97.0961538461538],population:0},LightMuted:{rgb:[212,164,196],population:1}},truehoop:{Vibrant:{rgb:[243,141,45],population:699},DarkVibrant:{rgb:[109,66,26],population:21},LightVibrant:{rgb:[252,204,148],population:2},Muted:{rgb:[123,123,124],population:25},DarkMuted:{rgb:[60,60,68],population:1},LightMuted:{rgb:[196,196,196],population:8}}},cA=e=>{let{isMobile:t,signupUrl:n,onClickLink:i}=e,r=(0,a.jsx)(cn,{href:n,onClick:()=>{i({linkType:"get started"})},children:"Get started"});return(0,a.jsx)(eR,{title:"A powerful toolkit for video creators",children:(0,a.jsxs)(E.I1,{gap:80,children:[(0,a.jsxs)("div",{className:I()("container-t83AFu",{"containerMobile-kj__zK":t}),children:[(0,a.jsx)(ep.az,{className:"accordionContainer-Z4b9Po",paddingTop:56,children:(0,a.jsxs)(ce,{children:[(0,a.jsx)(ct,{title:"Video podcasts",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Upload video episodes to Substack and the audio can be automatically published to all the major Podcast networks."}),r]})}),(0,a.jsx)(ct,{title:"Paid exclusives",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Flexible paywalls let you publish entire videos to paid subscribers only or add a free preview."}),r]})}),(0,a.jsx)(ct,{title:"Live Video",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Engage with your audience in real time and collaborate with other creators to leverage the Substack network."}),(0,a.jsx)(cn,{href:"https://pages.substack.com/livevideoshows/",children:"Learn more"})]})}),(0,a.jsx)(ct,{title:"One home for everything",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Drive subscriptions through a direct connection with subscribers with a single home for your videos, writing, podcasts and community."}),r]})}),(0,a.jsx)(ct,{title:"Shareable clips",children:(0,a.jsxs)(E.I1,{gap:24,children:[(0,a.jsx)(y.EY.B4,{children:"Your subscribers can easily create and share branded clips from your video that will help you reach new audiences"}),r]})})]})}),(0,a.jsx)("div",{className:"imageContainer-dYhNae",children:(0,a.jsx)(ca,{})})]}),(0,a.jsx)(cr,{url:n,onClick:()=>{i({linkType:"start your substack"})},children:"Start your Substack"})]})})},cE=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.cohortPages,utm_content:eg.fL.video});function cy(e){let{id:t,videoKey:n}=e;return(0,a.jsx)("iframe",{src:(0,aS.yRP)("https://player.vimeo.com/video/".concat(t),{h:n}),width:"640",height:"360",style:{position:"absolute",height:"100%",width:"100%"},frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})}function cN(){var e;let{token:t}=c(),[n]=(0,el.o)();return(0,a.jsx)(n_,{token:null!=(e=null!=t?t:n.get("token"))?e:""})}function cO(){var e,t;let[n]=(0,el.o)(),{destination:i=null!=(e=n.get("destination"))?e:"",redirectPostId:r=null!=(t=n.get("postId"))?t:"",user:o}=c();return(0,a.jsx)(eo,{destination:i,postId:r,user:o})}function cv(e){let{title:t,html:n,nested:i=!1}=e;return(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(J.O,{title:t}),(0,a.jsx)("div",{className:"container-border",children:i?(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"page typography",children:(0,a.jsx)("div",{className:"body markup",dangerouslySetInnerHTML:{__html:n}})})}):(0,a.jsx)("div",{className:"page typography",children:(0,a.jsx)("div",{className:"body markup",dangerouslySetInnerHTML:{__html:n}})})})]})}let cx=[{path:"/",Component:function(){let e,t=(0,i.zy)().pathname,n=c(),[r,s]=(0,o.useState)(!1),l=(0,o.useCallback)(e=>s(e),[]);(0,o.useEffect)(()=>{if("undefined"!=typeof window){let e=window.location.hash&&window.location.hash.substr(1),t=ow[e];if(e&&t){for(let n of document.body.getElementsByTagName("*"))if(n.textContent===t){n.id=e;break}}}},[]);let{user:d,hideHeader:u,hideFooter:p,categories:m,showCookieBanner:h}=n,g=["/","/home","/growthfeatures"].includes(t),_=t.startsWith("/creator-agency"),b=t.startsWith("/discover")||_,f=t.startsWith("/about"),A=t.startsWith("/profile/"),E=d&&t.startsWith("/notifications"),y=t.startsWith("/signup"),O=t.startsWith("/app-link"),v=t.startsWith("/account/set-password"),x=t.startsWith("/account/reset"),S=["/bulletin","/twitter","/ghost"].includes(t),w=A||E,I=O||v||x||E||A||y,M="/"===t||"/home"===t;return e=g?"new-landing-page app-takeover transparent-nav transparent-nav--on-dark":f?"new-landing-page app-takeover":A?"profile-page-root":S?"transparent-nav":y?"new-landing-page signup-page":"new-landing-page",(0,a.jsx)(oA.n,{routes:cx,children:(0,a.jsx)(ox,{initialData:n,children:(0,a.jsx)(oS.Provider,{value:l,children:(0,a.jsxs)("div",{id:"substack-home",className:e||"",children:[(0,a.jsx)(J.O,{title:"Substack - A new economic engine for culture",description:"Substack is a media platform for video, writing, podcasts, and creator-centered communities, all powered by subscriptions.",image:"".concat((0,N.Ewe)(),"/img/home_page/og-homepage.png")}),!u&&!r&&(I?(0,a.jsx)(op,{user:d,title:A?"Profile":void 0,showBack:!0,showLogo:!0,showUserIndicator:null!=w?w:void 0}):(0,a.jsx)(r6,{customCta:_?{href:"/creator-agency-signup",label:"Request invitation"}:void 0,user:d,hideSearch:b,enableI18n:!0})),(0,a.jsx)(oI,{user:null!=d?d:void 0}),(0,a.jsx)(i.sv,{}),!p&&!r&&(0,a.jsx)(rx,{categories:M?m:void 0}),h&&(0,a.jsx)(rc,{})]})})})})},children:[{index:!0,Component:oD},{path:"welcome",Component:oD},{path:"home-i",Component:oU},{path:"book",Component:()=>{let e=(0,tb.Iu)(),{iString:t}=(0,h.GO)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(J.O,{title:"Substack for Authors and Publishers",description:"Substack is the most efficient and powerful way for authors to promote and sell upcoming and published books"}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:64,paddingTop:80,paddingBottom:120,paddingX:{mobile:24},children:[(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",children:"For Authors and Publishers"}),(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,align:"center",weight:"regular",children:"Nothing sells books like a great Substack"})]}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:80,children:[(0,a.jsx)("img",{className:tw.bookstackImage,src:e?(0,N.dJ9)("/img/book_page/bookstack_mobile.png",342):(0,N.dJ9)("/img/book_page/bookstack.png",900)}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:48,style:{maxWidth:920},children:[(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,align:"center",weight:"regular",children:"When it comes to bookselling, a Substack offers the most targeted promotion a writer can have, precisely because it is not advertising: writers are speaking to their most passionate readers who have already expressed keen interest in their work."}),(0,a.jsx)(E.pT,{justifyContent:"center",children:(0,a.jsx)(A.$n,{className:tw.button,size:"lg",href:tI,children:t("Start a Substack")})})]})]})]}),(0,a.jsxs)(eR,{titleGap:{desktop:80,mobile:64},backgroundColor:"wash",paddingY:120,children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",align:"center",children:"Substacks sell books at every stage — from preorder to backlist"}),(0,a.jsxs)(E.pT,{justifyContent:"center",direction:"column",gap:80,style:{maxWidth:960},children:[(0,a.jsxs)(E.pT,{justifyContent:"center",gap:{desktop:64,mobile:40},direction:{desktop:"row",mobile:"column"},children:[(0,a.jsx)("img",{className:tw.bookImage,src:(0,N.dJ9)("/img/book_page/you_could_make_book.png",200)}),(0,a.jsxs)(E.pT,{direction:"column",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading3,{children:"“An Ohio poet’s (decidedly feminist, undeniably lyrical) memoir is #3 on the hardcover nonfiction list…I can say this now without a doubt: We did this. Whether you preordered the book, requested it from your library, came to an event with friends, bought a copy or two or three for people you love, or just helped spread the word—thank you. I hadn’t even allowed myself to dream of this, but here we are.”"}),(0,a.jsx)("a",{className:tw.link,href:"https://maggiesmith.substack.com/p/on-gratitude-and-possibility",children:(0,a.jsx)(y.EY.B3,{color:"substack",children:(0,a.jsx)("u",{children:"Maggie Smith to her subscribers"})})})]})]}),(0,a.jsxs)(E.pT,{justifyContent:"center",gap:{desktop:64,mobile:40},direction:{desktop:"row",mobile:"column"},children:[(0,a.jsx)("img",{className:tw.bookImage,src:(0,N.dJ9)("/img/book_page/fat_talk_book.png",200)}),(0,a.jsxs)(E.pT,{direction:"column",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading3,{children:"“There is no doubt in my mind that this happened because of Burnt Toast. You preordered, you regular ordered, you library-requested, you left reviews, you talked the book up on social media and in your group texts, you did this.”"}),(0,a.jsx)("a",{className:tw.link,href:"https://virginiasolesmith.substack.com/p/a-fat-talk-love-note",children:(0,a.jsx)(y.EY.B3,{color:"substack",children:(0,a.jsx)("u",{children:"Virginia Sole-Smith to her subscribers"})})})]})]}),(0,a.jsxs)(E.pT,{justifyContent:"center",gap:{desktop:64,mobile:40},direction:{desktop:"row",mobile:"column"},children:[(0,a.jsx)("img",{className:tw.bookImage,src:(0,N.dJ9)("/img/book_page/how_to_raise_book.png",200)}),(0,a.jsxs)(E.pT,{direction:"column",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading3,{children:"“My book was first published in July 2021, and it continues to sell steadily every week. My editor credits my Substack for helping to drive continued sales. It’s sold just under 25,000 copies.”"}),(0,a.jsx)("a",{className:tw.link,href:"https://on.substack.com/p/grow-series-26-melinda-wenner-moyer",children:(0,a.jsx)(y.EY.B3,{color:"substack",children:(0,a.jsx)("u",{children:"Melinda Wenner Moyer"})})})]})]})]})]}),(0,a.jsxs)(tx,{title:"How the Substack model works",contentWidth:"medium",paddingY:120,titleGap:64,gap:64,children:[(0,a.jsx)(tS,{isImageOnRight:!0,image:{path:"/img/book_page/benefit_birds.png",width:470},title:"You wrote it, you own it.",body:(0,a.jsx)(y.EY.MarketingBody,{className:tw.benefit,children:"A Substack is the writer’s property: the email list, content, and payment relationships (should you choose to monetize) is the writer’s and the writer can take all of it with them if they ever decided to leave the platform."})}),(0,a.jsx)(tS,{image:{path:"/img/book_page/benefit_charts.png",width:470},title:(0,a.jsxs)(y.EY.MarketingHeading2,{weight:"regular",children:["A direct line to your",(0,a.jsx)("br",{}),"biggest fans"]}),body:(0,a.jsx)(y.EY.MarketingBody,{className:tw.benefit,children:"A Substack grows over time and with every post a writer sends out. Readers become your best promoters: they forward and share the emails and posts, and this results in an ever-growing email list."})}),(0,a.jsx)(tS,{isImageOnRight:!0,image:{path:"/img/book_page/benefit_toolkit.png",width:470},title:(0,a.jsxs)(y.EY.MarketingHeading2,{weight:"regular",children:["Subscription publishing",(0,a.jsx)("br",{}),"made simple."]}),body:(0,a.jsx)(y.EY.MarketingBody,{className:tw.benefit,children:"It is not technical: even the most luddite writers can easily set up and use a Substack. We handle the admin, billing, and tech so you can focus on doing your best writing."})}),(0,a.jsx)(E.pT,{justifyContent:"center",paddingTop:{desktop:64,mobile:0},children:(0,a.jsx)(A.$n,{className:tw.button,size:"lg",href:tI,children:t("Start a Substack")})})]}),(0,a.jsx)(eR,{backgroundColor:"wash",paddingY:120,children:(0,a.jsx)(E.I1,{justifyContent:"center",alignItems:"center",paddingX:20,children:(0,a.jsxs)(E.I1,{gap:56,style:{maxWidth:960},children:[(0,a.jsx)(y.EY.MarketingQuote,{align:"left",children:"“I realized that the Substack transcends the book and that I had perennial evergreen things that I wanted to talk about. My readers helped me realize that.”"}),(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/book_page/luke_profile.png",70),className:tw.authorImage,loading:"lazy"}),(0,a.jsx)(tM,{name:"Luke Burgis",subtext:"Over 18,000 subscribers",link:"https://read.lukeburgis.com/"})]})]})})}),(0,a.jsxs)(eR,{titleGap:64,paddingY:120,children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",weight:"regular",align:"center",children:"Start a Substack in just 5 minutes"}),(0,a.jsxs)(E.I1,{gap:{desktop:96,mobile:64},style:{width:"100%"},alignItems:"center",children:[(0,a.jsxs)(E.I1,{gap:{desktop:64,mobile:48},children:[(0,a.jsxs)(E.I1,{className:tw.stepsContainer,gap:{desktop:64,mobile:48},children:[(0,a.jsx)("div",{className:tw.border}),(0,a.jsxs)(E.Ye,{gap:32,children:[(0,a.jsx)("img",{className:tw.avatar,src:(0,N.dJ9)("/img/avatars/yellow.png",50),loading:"lazy"}),(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,weight:"regular",children:"Claim a URL and set up the basics of your publication: title, description, and upload any existing mailing list you may have. Don’t forget to add your book links."})]}),(0,a.jsxs)(E.Ye,{gap:32,children:[(0,a.jsx)("img",{className:tw.avatar,src:(0,N.dJ9)("/img/avatars/purple.png",50),loading:"lazy"}),(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,weight:"regular",children:"Tell your readers how you plan to use this space in your first post and About page."})]})]}),(0,a.jsxs)(E.Ye,{gap:32,children:[(0,a.jsx)("img",{className:tw.avatar,src:(0,N.dJ9)("/img/avatars/orange.png",50),loading:"lazy"}),(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,weight:"regular",children:"Recommend any writers you read and subscribe to, and connect with your peers already on the platform. Most writers will recommend you back and spread the word about your Substack."})]})]}),(0,a.jsx)("div",{className:tw.divider}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:64,children:[(0,a.jsx)(y.EY.MarketingHeading4,{className:tw.size28,style:{maxWidth:528},align:"center",weight:"regular",children:"Learn more from successful book authors on Substack:"}),(0,a.jsxs)(E.pT,{gap:32,direction:{desktop:"row",mobile:"column"},justifyContent:"center",alignItems:"center",children:[(0,a.jsx)(tC,{title:"Interview: Luke Burgis credits his Substack for the steady sales of his book",imageUrl:"/img/book_page/luke_interview_post.png",url:"https://read.substack.com/p/book-substack-luke-burgis"}),(0,a.jsx)(tC,{title:"How to promote your book on Substack",imageUrl:"/img/book_page/promote_book_post.png",url:"https://on.substack.com/p/how-to-promote-your-book-on-substack"}),(0,a.jsx)(tC,{title:"Interview: How Melinda Wenner Moyer’s Substack helped sell 25,000 copies of her book",imageUrl:"/img/book_page/melinda_interview_post.png",url:"https://on.substack.com/p/grow-series-26-melinda-wenner-moyer"})]})]}),(0,a.jsxs)(E.pT,{gap:{desktop:20,mobile:20},direction:{desktop:"row",mobile:"column"},justifyContent:"center",alignItems:"center",style:{width:"100%"},children:[(0,a.jsx)(A.$n,{className:tw.button,size:"lg",href:tI,flex:e?"grow":void 0,children:t("Start a Substack")}),(0,a.jsx)(A.$n,{className:tw.button,size:"lg",href:(0,N.JlH)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.growth}),priority:"secondary",flex:e?"grow":void 0,children:t("Import an email list")})]})]})]}),(0,a.jsxs)(eR,{backgroundColor:"wash",titleGap:64,paddingY:120,children:[(0,a.jsxs)(E.I1,{alignItems:"center",gap:{desktop:48,mobile:32},style:{maxWidth:834},children:[(0,a.jsx)("img",{className:tw.speechBubbleImage,src:(0,N.dJ9)("/img/book_page/speech_bubble.png",110)}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading2,{align:"center",children:"Book author & Publisher FAQ"}),(0,a.jsx)(y.EY.H2,{as:"div",weight:"regular",align:"center",children:"Frequently asked questions about starting and running a Substack that helps authors sell books."})]})]}),(0,a.jsxs)(E.I1,{alignItems:"center",style:{width:"100%"},children:[(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"What do other authors publish on Substack?",answer:"Writers use their Substacks to explore ideas, discuss their books, share their creative process and behind-the-scenes information with their readers, and even workshop with them ideas for future books."}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"How do I move my audience to Substack?",answer:(0,a.jsxs)(a.Fragment,{children:["If you already have an audience on Mailchimp, Ghost, Medium, Tumblr, Wordpress, or another platform, you can easily ",(0,a.jsx)("a",{href:"https://substack.com/signup/import",children:"import your posts and your email list"})," in the Substack setup process. For guides on how to move an audience from Instagram to Substack, go"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/migrate-from-instagram-web",children:"here"}),", and from Twitter, go"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/bringing-your-twitter-followers-to",children:"here"}),'."']})}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"How is Substack different from social media for book promotion?",answer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"Similar to social media, Substack provides a live, organic space where a writer can gather their most committed readers and continue the conversation about their books, long after the spotlight moves away from them after publication date. Comments and community tools encourage a sense of community amongst supporters."}),(0,a.jsx)("p",{children:"Unlike social media, however, on Substack writers have a direct relationship with readers. Algorithms don’t decide who sees your work—posts are delivered directly via email. This means that while the average Instagram account sees an engagement rate of 1% to 5%, on Substack we see open rates in the 30% to 70% range, depending on the size of the mailing list. Book links in posts of Substack writers get click rates ranging from 5% to 15%, compared with the typical 0.08% to 0.1% on social media. After running an experiment with a bookseller, one Substack writer found that 26% of the readers clicking on her book link actually bought the book—another record-breaking number compared with book reviews from magazines and other outlets."})]})}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"Do I own what I publish on Substack?",answer:"You will always own your content and your relationships with your subscribers and your intellectual property. We make it easy to import and export your archive, email list, and payments information to and from other platforms."}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"Will Substack help me grow my audience?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes. More than 40% of all new free subscriptions and around 20% of paid subscriptions to Substacks come from within our network. This is happening because Substack is a vibrant ecosystem of writers and readers. Writers here connect and collaborate with their peers, and help grow each other’s audiences. Today there are tens of millions of people active on Substack every week, they understand what it means to subscribe to a writer, and they are open to discovering new writers to fall in love with."," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/turn-on-your-growth-engine",children:"Learn more"})]})}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"How much does Substack cost?",answer:"On Substack, writers can get paid instead of paying for an email newsletter. Substack is free to get started. We don’t make money unless you do. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like tech development and customer support. When you turn on paid, Substack’s platform fee is 10%, and the credit-card payment processor, Stripe, also takes a fee, of 2.9% plus 30 cents per transaction."}),(0,a.jsx)(tN,{className:tw.collapsibleQuestion,answerClassName:tw.collapsibleQuestionAnswer,question:"I work at a publishing house and want to help my writers join Substack. How do I get in touch?",answer:(0,a.jsxs)(a.Fragment,{children:["If you are a publisher and would like to connect with us to help onboard your authors to Substack and claim your affiliate links, please write to us at:"," ",(0,a.jsx)("a",{href:"mailto:partnerships@substackinc.com",children:"partnerships@substackinc.com"}),", indicating the name of the publisher and imprint in the subject line."]})})]})]}),(0,a.jsxs)(E.I1,{alignItems:"center",justifyContent:"center",className:tw.footer,style:{backgroundImage:"url('".concat((0,N.dJ9)("/img/growth_page/footer.jpeg",2048),"')")},gap:120,children:[(0,a.jsxs)(E.I1,{gap:{desktop:32,mobile:32},alignItems:"center",justifyContent:"center",children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",color:"white",children:t("Start your Substack now")}),(0,a.jsx)(A.$n,{className:tw.button,size:"lg",href:tI,children:t("Start a Substack")})]}),(0,a.jsxs)(y.EY.B3,{color:"white",style:{maxWidth:480},children:["Still have questions? Check out our"," ",(0,a.jsxs)("a",{className:tw.link,href:"https://substack.com/resources",children:[" ",(0,a.jsxs)(y.EY.B3,{as:"span",color:"substack",children:[(0,a.jsx)("u",{children:"Writer Resource Center"})," "]})]})," ","and browse our"," ",(0,a.jsx)("a",{className:tw.link,href:"https://support.substack.com/hc/en-us",children:(0,a.jsx)(y.EY.B3,{as:"span",color:"substack",children:(0,a.jsx)("u",{children:"Help Center"})})}),"."]})]})]})}},{path:"resources",Component:sB},{path:"going-paid-guide",Component:a4},{path:"get-started",Component:()=>{let{iString:e}=(0,h.GO)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(aL.k,{priority:"primary"}),(0,a.jsx)(J.O,{title:"How to start a Substack",description:e("Substack is the simplest way to start a subscription publication, and the best place to grow it.")}),(0,a.jsx)(tj,{backgroundColor:"white",title:e("Get started on Substack"),body:e("The best time to start your Substack is today. We’re here to help you do your best work for your subscribers by connecting you to expert advice, insider tips, and a supportive community."),bodyMaxWidth:380,primaryAction:{text:e("Create your Substack"),buttonProps:{href:aD,localNavigation:!1}},image:{path:"https://substack-post-media.s3.amazonaws.com/public/assets/get-started-hero.gif",width:960},height:"short"}),(0,a.jsxs)(eR,{backgroundColor:"wash",title:e("Publish the stories and ideas you want, how you want to"),children:[(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsx)(y.EY,{translated:!0,font:"text",weight:"regular",size:24,lineHeight:32,align:"center",style:{maxWidth:840},children:"Substack gives writers flexibility to get their ideas out in writing, audio, video and more. Turn on paid subscriptions, or publish for free. You’re in control."})}),(0,a.jsx)(E.pT,{paddingTop:32,children:(0,a.jsx)("img",{className:aR,src:(0,N.dJ9)("/img/get_started_page/publish-the-stories.webp",1920)})}),(0,a.jsxs)(E.I1,{children:[(0,a.jsxs)(aU,{question:e("The fastest way to get started"),children:[(0,a.jsxs)(y.EY.MarketingBody,{translated:!0,children:["Start a publication ",(0,a.jsx)("a",{href:aD,children:"here"})," with one of our basic themes. Then, simply"," ",(0,a.jsx)("a",{target:"__blank",rel:"noopener noreferrer",href:"https://support.substack.com/hc/en-us/articles/360037829931-How-do-I-import-my-mailing-list-from-another-platform-such-as-TinyLetter-or-Mailchimp-",children:"upload your email list"})," ","if you have one, and publish a first post— that could be a text post, discussion thread, podcast, video, or"," ",(0,a.jsx)("a",{target:"__blank",rel:"noopener noreferrer",href:"https://on.substack.com/p/notes",children:"note"}),". Just don’t forget to include a “subscribe” button."]}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://on.substack.com/p/types-of-posts-on-substack",children:e("What can you create on Substack?")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/switch-newsletter",children:e("A guide to switch your newsletter to Substack")})]})]}),(0,a.jsxs)(aU,{question:e("Set up a subscription business"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"It’s free to get started on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like development and customer support. Learn how to set up your Substack to generate an income below."}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://substack.com/going-paid?utm_source=".concat(eg.VU.menuDropdown),children:e("Calculate your potential earnings from subscriptions")}),(0,a.jsx)(aB,{href:"https://support.substack.com/hc/en-us/articles/4405482746132-How-do-I-set-up-my-Stripe-account-to-start-receiving-payments-",children:e("Setting up pricing and turning on paid subscriptions")})]})]})]})]}),(0,a.jsxs)(eR,{title:e("Before your first post"),children:[(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsx)(y.EY,{translated:!0,font:"text",weight:"regular",size:24,lineHeight:32,align:"center",style:{maxWidth:840},children:"Here’s how to quickly dial in your settings and set up your publication’s basics, so you can start publishing right away."})}),(0,a.jsx)(E.pT,{paddingTop:32,children:(0,a.jsx)("img",{className:aR,src:(0,N.dJ9)("/img/get_started_page/before-your-first-post.webp",1920)})}),(0,a.jsxs)(E.I1,{children:[(0,a.jsxs)(aU,{question:e("Get clear on your value proposition"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"If you want your pitch to resonate with readers, you’ll need to understand who they are and what they want. Then, build a publication that appeals to their needs."}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://on.substack.com/p/grow-2#%C2%A7knowing-your-readers",children:e("Learn more about knowing your readers")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/how-to-polish-your-publications-about#%C2%A7the-about-page",children:e("How to polish your publication's About page and one-line description")})]})]}),(0,a.jsxs)(aU,{question:e("Customize your publication"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"What you choose for your name, logo, layout and publication descriptions all affect how subscribers recognize you and get to know your work. These elements are all easy to customize using our settings."}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://on.substack.com/p/start-basics#%C2%A7create-a-publication",children:e("Setting up your publication essentials")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/guide-website-customization-organization",children:e("A guide to customizing and organizing your Substack website")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/writing-a-good-welcome-email-on-substack",children:e("A writer's guide to crafting a precise and effective welcome email")})]})]}),(0,a.jsxs)(aU,{question:e("Create an editorial calendar"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Consistency is key to growing a publication. We recommend publishing a post at least once a week as a benchmark to get started. Publishing on a regular schedule, for example every Tuesday and Thursday at 9 a.m., helps readers build a habit and demonstrates your own commitment to your work."}),(0,a.jsx)(E.I1,{gap:6,children:(0,a.jsx)(aB,{href:"https://on.substack.com/p/how-to-create-consistent-writing-habit-lenny",children:e("How to build a consistent writing habit")})})]})]})]}),(0,a.jsxs)(eR,{backgroundColor:"wash",title:e("Announce your publication"),children:[(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsx)(y.EY,{translated:!0,font:"text",weight:"regular",size:24,lineHeight:32,align:"center",style:{maxWidth:840},children:"The launch is an important moment for your publication. It’s an opportunity to summon your supporters and drive a wave of excitement, attention, and subscriptions. Be bold and make a splash."})}),(0,a.jsx)(E.pT,{paddingTop:32,children:(0,a.jsx)("img",{className:aR,src:(0,N.dJ9)("/img/get_started_page/announce.webp",1920)})}),(0,a.jsxs)(E.I1,{children:[(0,a.jsxs)(aU,{question:e("Publish an announcement post"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Let the world know you are starting something new! Talk about why you’re launching a Substack, why it’s important to you, what readers can expect, and why they should join you. This should be a free post so everyone can see it. Don’t forget a button for readers to subscribe."}),(0,a.jsx)(E.I1,{gap:6,children:(0,a.jsx)(aB,{href:"https://on.substack.com/p/grow-3#%C2%A7the-art-of-buttons",children:e("How to use subscribe buttons")})})]}),(0,a.jsxs)(aU,{question:e("Tell everyone about your publication"),children:[(0,a.jsxs)(y.EY.MarketingBody,{translated:!0,children:["Add your Substack URL to your email signature,"," ",(0,a.jsx)("a",{target:"__blank",rel:"noopener noreferrer",href:"https://support.substack.com/hc/en-us/articles/360041759232-Can-I-embed-a-signup-form-for-my-publication-",children:"personal website"}),", as well as your social media links and bios. Don’t divide peoples’ attention: only direct people to one link. Keep posting and sharing your work as you go."]}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://on.substack.com/p/bringing-followers-from-instagram",children:e("Bringing your Instagram followers to Substack")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/bringing-your-twitter-followers-to",children:e("Bringing your Twitter followers to Substack")})]})]}),(0,a.jsxs)(aU,{question:e("Empower supporters to spread the word"),children:[(0,a.jsx)(y.EY.MarketingBody,{translated:!0,children:"Endorsing and being endorsed by both writers and readers on Substack is the most powerful way to grow. Setting up a few features and collaborations before you launch will help you create the most momentum."}),(0,a.jsxs)(E.I1,{gap:6,children:[(0,a.jsx)(aB,{href:"https://on.substack.com/p/recommendations?s=w",children:e("Turning on Recommendations")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/collaboration",children:e("How writers can collaborate to grow")}),(0,a.jsx)(aB,{href:"https://on.substack.com/p/subscriber-referrals",children:e("Turning on Subscriber Referrals")})]})]})]})]}),(0,a.jsxs)(eR,{title:e("What’s next?"),children:[(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsx)(y.EY,{translated:!0,font:"text",weight:"regular",size:24,lineHeight:32,align:"center",style:{maxWidth:840},children:"Keep exploring the tools and insider tips that will help you grow your audience, plus earn money directly from subscribers."})}),(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},justifyContent:"space-between",style:{width:"100%"},paddingTop:40,gap:{desktop:0,mobile:40},children:[(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:20,alignItems:{desktop:"start",mobile:"center"},children:[(0,a.jsx)("img",{className:aT,src:(0,N.dJ9)("/img/get_started_page/coin.webp",180)}),(0,a.jsxs)(E.pT,{direction:"column",gap:16,children:[(0,a.jsx)(y.EY.H2,{translated:!0,font:"marketing",weight:"regular",children:"How to make money"}),(0,a.jsx)(aB,{href:"/going-paid?utm_campaign=".concat(eg._9.getStartedPage),size:"big",children:e("Learn more about paid subscriptions")})]})]}),(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:20,alignItems:{desktop:"start",mobile:"center"},children:[(0,a.jsx)("img",{className:aT,src:(0,N.dJ9)("/img/get_started_page/stairs.webp",200)}),(0,a.jsxs)(E.pT,{direction:"column",gap:16,children:[(0,a.jsx)(y.EY.H2,{translated:!0,font:"marketing",weight:"regular",children:"Growing your audience"}),(0,a.jsx)(aB,{href:"/growthfeatures?utm_campaign=".concat(eg._9.getStartedPage),size:"big",children:e("Tools that help you grown on autopilot")})]})]})]})]})]})}},{path:"growthfeatures",Component:()=>{let{iString:e}=(0,h.GO)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tj,{backgroundColor:"green",title:e("Grow your publication on Substack"),body:e("With recommendations, referrals, and a powerful growth network, Substack writers and creators spend less time on marketing and more time on their craft."),leftBasis:620,bodyMaxWidth:500,primaryAction:{text:e("Start your Substack"),buttonProps:{href:ir}},image:{path:"/img/growth_page/hero.png",width:1042}}),(0,a.jsx)(E.I1,{alignItems:"center",children:(0,a.jsxs)(E.I1,{gap:56,className:"networkSection-yB4YNZ",paddingY:{desktop:120,mobile:80},borderBottom:"detail",alignItems:"center",children:[(0,a.jsx)("img",{className:"networkSectionImage-F80E8I",src:(0,N.dJ9)("/img/growth_page/network.png",440)}),(0,a.jsxs)(E.I1,{gap:40,alignItems:"center",paddingX:24,children:[(0,a.jsx)(y.EY,{className:"networkSectionIntro-sPiXdO",font:"marketing",weight:"regular",color:"primary",children:"The Substack Network drives 25% of paid subscriptions across the platform."}),(0,a.jsx)(y.EY,{lineHeight:36,font:"marketing",weight:"regular",color:"primary",className:"networkSectionValueProp-V24xXN",children:"There are millions of readers with email addresses and credit card information already in the Substack system, making them 3x more likely to pay for a subscription to your publication. That means you get readers and money for free just by publishing on Substack."})]})]})}),(0,a.jsxs)(tx,{title:"Substack’s most powerful feature is growth",children:[(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitpencil.jpeg",width:1136},title:"Recommendations",subtitle:"Simple cross-promotion for publishers",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:[(0,a.jsx)("a",{href:"https://on.substack.com/p/recommendations-update",target:"_blank",rel:"noopener",children:"Recommendations"})," ","is our human-powered system that helps creators suggest other creators to their readers via the subscribe flow, on their homepages, and in automated emails. Substack writers have called this feature “game changing” and industry analysts have called it an “",(0,a.jsx)("a",{href:"https://simonowens.substack.com/p/substack-found-its-unfair-advantage",target:"_blank",rel:"noopener",children:"unfair advantage."}),"”"]})}),(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitcoffee.png",width:1136},title:(0,a.jsxs)(y.EY.MarketingHeading2,{weight:"regular",children:["Guest posts, mentions,",(0,a.jsx)("br",{})," and cross-posts"]}),subtitle:"Tools for cross-pollination between creators",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:["Substack offers tools that make it easy for creators to collaborate and lift each other up through sharing each other’s work:"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/10522003894932-How-can-I-share-another-publication-s-post-with-my-subscribers-",target:"_blank",rel:"noopener",children:"Cross-posting"}),","," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/new-ways-recommend-discover#%C2%A7introducing-guest-posts",target:"_blank",rel:"noopener",children:"guest posts"}),","," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/10949110171668",target:"_blank",rel:"noopener",children:"mentions"}),", and"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/new-ways-recommend-discover#%C2%A7introducing-publication-and-post-embeds",target:"_blank",rel:"noopener",children:"publication and post embeds."})]})}),(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitplane.png",width:1136},title:"Referrals",subtitle:"Empower superfans to grow your publication",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:["Substack's referral tools —"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/subscriber-referrals",target:"_blank",rel:"noopener",children:"Subscriber Referrals"})," ","and"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/product-news-sept22#%C2%A7gift-referrals",target:"_blank",rel:"noopener",children:"Gift Referrals"})," ","— are custom-made for subscription publishers, allowing you to grow your audience through the quality of your work."]})}),(0,a.jsx)(E.pT,{justifyContent:"center",paddingTop:{desktop:64,mobile:0},children:(0,a.jsx)(A.$n,{size:"lg",href:ir,children:e("Start a Substack")})})]}),(0,a.jsx)(eR,{backgroundColor:"wash",children:(0,a.jsxs)(E.I1,{gap:48,justifyContent:"center",className:it,children:[(0,a.jsx)(y.EY,{className:ia,font:"marketing",weight:"regular",color:"primary",children:"“78% of new subscribers are now coming from other Substack newsletters recommending my newsletter. And 11% of paid. Game changing feature.”"}),(0,a.jsxs)(E.I1,{gap:16,children:[(0,a.jsxs)(y.EY.MarketingHeading4,{weight:"regular",children:["Lenny Rachitsky, ",(0,a.jsx)(y.EY,{as:"a",color:"substack",href:"https://www.lennysnewsletter.com/",target:"_blank",rel:"noopener",style:{textDecoration:"underline"},children:"Lenny’s Newsletter"})]}),(0,a.jsx)(y.EY.MarketingBody,{children:"Over 625,000 subscribers"})]})]})}),(0,a.jsxs)(tx,{title:"Growth on auto-pilot",gap:{desktop:40,mobile:80},children:[(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitswitchgears.png",width:1136},title:"Boost",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:[(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/9674586580244-What-is-Substack-Boost-",target:"_blank",rel:"noopener",children:"Substack Boost"})," ","is like having a secret growth team that puts Substack’s data and expertise to work without you having to lift a finger. Boost uses discounts and special offers at the right moment to maximize revenue."]}),link:{text:"Find out more about Substack Boost",url:"https://support.substack.com/hc/en-us/articles/9674586580244-What-is-Substack-Boost-"},isImageOnRight:!0}),(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitbook.png",width:1136},title:"The Substack app",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:["The Substack"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/product-news-nov22#%C2%A7browse-discover-great-writing-on-the-web-reader",target:"_blank",rel:"noopener",children:"web reader"})," ","and ",(0,a.jsx)("a",{href:"https://substack.com/app?no_redirect=true",children:"iOS and Android apps"})," are full of interactive discovery features—from search to leaderboards to reader profiles—that make it one-tap easy for new readers to find and subscribe to your publication. More than 25% of subscriptions originate from our apps."]}),isImageOnRight:!0}),(0,a.jsx)(tS,{image:{path:"/img/growth_page/benefitseo.png",width:1136},title:"SEO",body:(0,a.jsxs)(y.EY.MarketingBody,{className:ii,children:["Publishers on Substack get a dedicated SEO team focused on making Substack publications appear higher in search rankings. Our advanced"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/substack-seo-guide",target:"_blank",rel:"noopener",children:"SEO tools"})," ","are designed to offer customization where it counts."]}),link:{text:"Read more about Substack’s best-in-class SEO powers",url:"https://on.substack.com/p/substack-seo-guide"},isImageOnRight:!0}),(0,a.jsx)(E.pT,{justifyContent:"center",paddingTop:{desktop:64,mobile:0},children:(0,a.jsx)(A.$n,{size:"lg",href:ir,children:"Start a Substack"})})]}),(0,a.jsx)(eR,{backgroundColor:"wash",children:(0,a.jsxs)(E.I1,{gap:48,justifyContent:"center",className:it,children:[(0,a.jsx)(y.EY,{className:ia,font:"marketing",weight:"regular",color:"primary",children:"“Substack isn’t just a place to publish or read – it’s an ecosystem for writers and creators to collaborate and contribute to one another’s growth.”"}),(0,a.jsxs)(E.I1,{gap:16,children:[(0,a.jsxs)(y.EY.MarketingHeading4,{weight:"regular",children:["Mario Gabriele,"," ",(0,a.jsx)(y.EY,{as:"a",color:"substack",href:"https://thegeneralist.substack.com/p/substack",target:"_blank",rel:"noopener",style:{textDecoration:"underline"},children:"The Generalist"})]}),(0,a.jsx)(y.EY.MarketingBody,{children:"Over 100,000 subscribers"})]})]})}),(0,a.jsx)(E.pT,{alignItems:"center",justifyContent:"center",className:"footer-UTorXx",style:{backgroundImage:"url('".concat((0,N.dJ9)("/img/growth_page/footer.jpeg",2048),"')")},children:(0,a.jsxs)(E.I1,{gap:{desktop:32,mobile:32},alignItems:"center",justifyContent:"center",children:[(0,a.jsx)(y.EY.MarketingHeading1,{color:"white",children:"Get started in minutes"}),(0,a.jsxs)(E.pT,{gap:{desktop:20,mobile:20},direction:{desktop:"row",mobile:"column"},justifyContent:"center",alignItems:"center",children:[(0,a.jsx)(A.$n,{size:"lg",href:ir,children:"Start a Substack"}),(0,a.jsx)(A.$n,{size:"lg",href:(0,N.JlH)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.growth}),priority:"secondary",children:"Import an email list"})]})]})})]})}},{path:"globe",Component:function(){let{user:e}=c();return(0,a.jsx)(ax,{user:null!=e?e:void 0})}},{path:"grow",Component:ie},{path:"go",Component:sN},{path:"app",Component:function(){let{abTestingId:e,user:t}=c(),{open:n,modal:i}=(0,ec.El)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appPage,abTestingId:e});(0,o.useEffect)(()=>{(0,eh.Fr)()||(null==t?void 0:t.reader_installed_at)||n()},[]);let r=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),l=(0,a.jsxs)(y.EY,{as:"div",translated:!0,children:["The app for",(0,a.jsx)("br",{}),"independent voices"]});return(0,a.jsxs)("div",{className:"app-page",children:[(0,a.jsx)(J.O,{title:"Introducing the Substack app",description:"Discover exciting video, podcasts, and writing and engage with vibrant communities.",image:(0,N.dJ9)("/img/app_page/highlight-6-ios-v2.png",1e3)}),(0,a.jsx)(ez,{utm_source_prefix:"app",pageTitle:l,primaryUpsell:(0,a.jsx)(eq,{className:"get-the-app-button button primary app-store-badge",openInstallDialog:n,utm_source:eg.VU.appPageHeaderButton,children:"Get the Substack app"}),scrollDown:s}),(0,a.jsxs)("div",{className:"app-page-main",ref:r,children:[(0,a.jsxs)("div",{className:"app-hero",children:[(0,a.jsx)("p",{className:"hero-text",children:"Discover exciting video, podcasts, and writing and engage with vibrant communities."}),(0,a.jsxs)(E.pT,{gap:16,justifyContent:"center",children:[(0,a.jsx)("a",{className:"app-store-badge-button",href:(0,N.cxW)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appDeckAppstoreButton}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_page",app_store:"ios"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/app-store.png",320),height:48})}),(0,a.jsx)("a",{className:"app-store-badge-button",href:(0,N.zw3)({utm_campaign:eg._9.appMarketing,utm_source:eg.VU.appPageBottomAppStoreButton}),"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.APP_STORE_LINK_CLICKED,{source:"app_page",app_store:"android"})},children:(0,a.jsx)("img",{src:(0,N.dJ9)("/img/app_page/google-play.png",320),height:48})})]})]}),(0,a.jsxs)("div",{className:"app-persuaders",children:[(0,a.jsx)(eJ,{img:"/img/app_page/highlight-1-v5.png",title:"World-class video, podcasts, and writing",text:"The best stories, ideas, and culture right at your fingertips.",openAppInstallModal:n,utm_source:eg.VU.worldClassWriting,imgPlacement:"right"}),(0,a.jsx)(eJ,{img:"/img/app_page/highlight-2-v6.png",title:"Exciting discussions",text:"Join the most interesting and insightful discussions.",openAppInstallModal:n,utm_source:eg.VU.greatDiscussions,imgPlacement:"left"}),(0,a.jsx)(eJ,{img:"/img/app_page/highlight-3-v4.png",title:"All your subscriptions",text:"Easily find the latest posts from your favorite writers and creators.",openAppInstallModal:n,utm_source:eg.VU.allYourSubscriptions,imgPlacement:"right"}),(0,a.jsx)(eJ,{img:"/img/app_page/highlight-5-v2.png",title:"Subscriber chats",text:"Join chats hosted by the writers and creators you love.",openAppInstallModal:n,utm_source:eg.VU.subscriberChats,imgPlacement:"left"})]})]}),i]})}},{path:"app-download",Component:function(){let{abTestingId:e}=c();return(0,a.jsx)(e3,{abTestingId:e})}},{path:"ghost",Component:()=>{let{iString:e}=(0,h.GO)(),[t,n]=(0,o.useState)("posts"),i=e=>{n(e===t?null:e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(J.O,{title:"Move from Ghost To Substack",description:"Substack is the simplest way to start a subscription publication, and the best place to grow it."}),(0,a.jsx)(tj,{backgroundColor:"wash",title:"Move your publication from Ghost to Substack",body:"Switching takes less than 5 minutes. Import your mailing list, writing archive, and Stripe payment information from Ghost with one click.",leftBasis:620,bodyMaxWidth:500,primaryAction:{text:"Create your Substack",buttonProps:{href:aF,localNavigation:!1}},image:{path:"/img/ghost_page/car_ghost.png",width:1042}}),(0,a.jsxs)(tx,{title:"Switch to Substack today",children:[(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-2.png",width:1136},title:"Grow your audience",body:"Marketing isn’t all on your shoulders. More than 40% of all new free subscriptions and around 10% of paid subscriptions to Substacks come from within our network.",link:{text:"Switch to Substack",url:aF}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-3.png",width:1136},title:"Zero tech knowledge required",body:"Substack makes subscription publishing simple. We handle the admin, billing, and tech so you can focus on the hard part (the writing itself).",link:{text:"Switch to Substack",url:aF}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/blog.png",width:1136},title:"Free to get started.",body:"You’ll never pay anything to publish free content on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like development and customer support.",link:{text:"Switch to Substack",url:aF}})]}),(0,a.jsx)(tL,{backgroundColor:"wash",quote:"The single best decision I made was to start my newsletter on Substack. Substack is the platform that has evolved the most and helps writers grow the most. Revue, Ghost, Mailchimp, and ConvertKit all fall short in one or more areas.",author:"Gergely Orosz, Top Technology publisher on Substack",action:{text:"Create your Substack",buttonProps:{href:aF,localNavigation:!1}}}),(0,a.jsx)(eR,{title:"A world-class reading and listening experience",contentWidth:"wide",children:(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},justifyContent:"space-between",alignItems:{desktop:"start",mobile:"center"},gap:40,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/home_page/phoneV2.png",1136),className:eB.readingExperiencesImage}),(0,a.jsxs)(E.I1,{className:eB.accordion,children:[(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"posts"===t}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>i("posts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>i("posts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Posts"})}),(0,a.jsx)(y.EY.MarketingBody,{className:eB.accordionItemContent,children:"Substack’s simple system lets you publish to the web, email, and our app simultaneously so you can find new readers and always reach your existing audience."})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"podcasts"===t}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>i("podcasts"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>i("podcasts"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Podcasts"})}),(0,a.jsx)(y.EY.MarketingBody,{className:eB.accordionItemContent,children:"We make it easy to start a subscription podcast. Share episodes to Substack subscribers and to all the major podcast players with one click."})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"video"===t}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>i("video"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>i("video"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Video"})}),(0,a.jsx)(y.EY.MarketingBody,{className:eB.accordionItemContent,children:"Upload or record videos directly into a Substack post. Make videos available to everyone or only paid subscribers."})]}),(0,a.jsxs)(E.I1,{className:I()(eB.readingExperience,{[eB.expanded]:"threads"===t}),children:[(0,a.jsx)(A.Nm,{className:eB.expandCollapseButton,onClick:()=>i("threads"),children:(0,a.jsx)(aG.A,{size:32,stroke:"#FF6719"})}),(0,a.jsx)(A.Nm,{className:eB.readingExperienceHeaderButton,onClick:()=>i("threads"),children:(0,a.jsx)(y.EY.MarketingHeading2,{children:"Community"})}),(0,a.jsx)(y.EY.MarketingBody,{className:eB.accordionItemContent,children:"On Substack, you’re not publishing into a void. Comments and community threads connect you and your subscribers directly."})]})]})]})}),(0,a.jsx)(tL,{backgroundColor:"wash",quote:"Substack’s tools are the simplest, best-looking blog creation tools I've come across and I've tried them all.",author:"Jefferson Graham, former USA Today columnist",action:{text:"Create your Substack",buttonProps:{href:aF,localNavigation:!1}}}),(0,a.jsxs)(eP,{title:"All that Ghost offers, and more",children:[(0,a.jsx)(eD,{question:"What is a Substack?",answer:"Substack helps anyone set up a blog and email newsletter. No tech knowledge is required. Without ads and algorithms to get in the way, you can sustain a direct relationship with your readers and retain full control over your creative work."}),(0,a.jsx)(eD,{question:"Do I need to pay for Substack?",answer:"It’s free to get started on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like development and customer support. There are no hidden fees and we only make money when writers do."}),(0,a.jsx)(eD,{question:"Do I own what I publish on Substack?",answer:"You will always own your content and your relationships with your subscribers. We make it easy to import and export your archive, email list, and payments information to and from other platforms."}),(0,a.jsx)(eD,{question:"How will my subscribers’ experience change when I move to Substack?",answer:(0,a.jsxs)(a.Fragment,{children:["Your subscribers shouldn’t notice any major changes, just improvements. Once you have imported your email list, archive, and payment information from Ghost to Substack, you can simply resume publishing as normal. In your first Substack post, be sure to let your readers know that they can now read your publication in the"," ",(0,a.jsx)("a",{href:"https://substack.com/app?no_redirect=true",target:"_blank",rel:"noopener",children:"Substack mobile app"}),"."]})}),(0,a.jsx)(eD,{question:"Will Substack help me grow my audience?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes. More than"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/substack-generates-1-in-3-new-subscriptions",target:"_blank",rel:"noopener",children:"40% of all new free subscriptions"})," ","and around 12% of paid subscriptions to Substacks come from within our network."]})}),(0,a.jsx)(eD,{question:"I also publish videos and podcasts. Does Substack support that?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes. We make it easy to start a"," ",(0,a.jsx)("a",{href:"https://substack.com/podcasts",target:"_blank",rel:"noopener",children:"subscription podcast"}),". You can share episodes to Substack subscribers and to all the major podcast players with one click. You can also upload or record videos directly into a Substack post, and make those videos available to everyone or only paid subscribers."," "]})})]}),(0,a.jsx)(tL,{backgroundColor:"wash",quote:"The Substack platform is a dream!",author:"E. Jean Carroll, Columnist at Elle for 27 years"}),(0,a.jsx)(eR,{paddingY:120,children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",children:"Move to Substack now."}),(0,a.jsx)(y.EY.MarketingBody,{children:"It takes 5 minutes to import your email lists, writing, and podcast episodes."}),(0,a.jsx)(A.$n,{size:"lg",href:aF,localNavigation:!1,children:e("Switch to Substack")})]})})]})}},{path:"bulletin",Component:()=>{let{iString:e}=(0,h.GO)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tj,{backgroundColor:"wash",title:"Move your publication from Bulletin to Substack",body:"It’s easy to import your mailing list and post archive from Bulletin.",leftBasis:620,bodyMaxWidth:500,primaryAction:{text:"Import from Bulletin",buttonProps:{href:tT,localNavigation:!1}},secondaryAction:{text:"Start a Substack",buttonProps:{href:tP,localNavigation:!1}},image:{path:"/img/revue_page/blank.png",width:1042}}),(0,a.jsxs)(tx,{title:"Switch to Substack today",children:[(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-2.png",width:1136},title:"Grow your audience",body:"Marketing isn’t all on your shoulders. More than 40% of all new free subscriptions and around 10% of paid subscriptions to Substacks come from within our network.",link:{text:"Switch to Substack",url:tT}}),(0,a.jsx)(tS,{image:{path:"/img/home_page/benefit-1.png",width:1136},title:"You wrote it, you own it",body:"You will always own your mailing list, subscriber payment information, and intellectual property. If you decide to leave, you’ll take what you’ve built with you.",link:{text:"Switch to Substack",url:tT}}),(0,a.jsx)(tS,{image:{path:"/img/revue_page/world-class-experience.png",width:1136},title:"A world-class experience",body:"Podcasts, videos, comments and an app for your reader community offer subscribers the best reading experience on the internet. ",link:{text:"Switch to Substack",url:tT}})]}),(0,a.jsx)(tL,{backgroundColor:"wash",quote:"Substack’s tools are the simplest, best-looking blog creation tools I've come across and I've tried them all.",author:"Jefferson Graham, former USA Today columnist",action:{text:"Create your Substack",buttonProps:{href:tP,localNavigation:!1}}}),(0,a.jsxs)(eP,{title:"All that Bulletin offers, and more",children:[(0,a.jsx)(eD,{question:"What is a Substack?",answer:"Substack helps anyone set up a blog and email newsletter. No tech knowledge is required. Without ads and algorithms to get in the way, you can sustain a direct relationship with your readers and retain full control over your creative work."}),(0,a.jsx)(eD,{question:"Do I need to pay for Substack?",answer:"It’s free to get started on Substack. If you turn on paid subscriptions, Substack will keep a 10% cut of revenues for operating costs like development and customer support. There are no hidden fees and we only make money when writers do."}),(0,a.jsx)(eD,{question:"How will my subscribers’ experience change when I move to Substack?",answer:(0,a.jsxs)(a.Fragment,{children:["Your subscribers shouldn’t notice any major changes, just improvements. Once you have imported your email list and archive from Bulletin to Substack, you can simply resume publishing as normal. In your first Substack post, be sure to let your readers know that they can now read your publication in the"," ",(0,a.jsx)("a",{href:"https://substack.com/app?no_redirect=true",target:"_blank",rel:"noopener",children:"Substack iOS and Android apps"}),"."]})}),(0,a.jsx)(eD,{question:"If I move to Substack, will my audiences on Facebook, Twitter, and Instagram still be able to find my publication?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes. You can connect your Twitter account to a Substack publication to make sure your"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/new-find-substacks-by-people-you",target:"_blank",rel:"noopener",children:"Twitter followers see your publication"})," ","when they create a reader account on Substack. We also recommend adding your Substack URL to your bios and sharing on those platforms consistently as you make the transition."," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/bringing-followers-from-instagram",target:"_blank",rel:"noopener",children:"Learn more"}),"."]})}),(0,a.jsx)(eD,{question:"I also publish videos and podcasts. Does Substack support that?",answer:(0,a.jsxs)(a.Fragment,{children:["Yes. We make it easy to start a"," ",(0,a.jsx)("a",{href:"https://substack.com/podcasts",target:"_blank",rel:"noopener",children:"subscription podcast"}),". You can share episodes to Substack subscribers and to all the major podcast players with one click. You can also upload or record videos directly into a Substack post, and make those videos available to everyone or only paid subscribers."," "]})})]}),(0,a.jsx)(eR,{paddingY:120,children:(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{as:"h2",children:"Get started in minutes"}),(0,a.jsx)(y.EY.MarketingBody,{children:"It takes 5 minutes to import your email lists, writing, and podcast episodes."}),(0,a.jsx)(A.$n,{size:"lg",href:tT,localNavigation:!1,children:e("Switch to Substack")})]})})]})}},{path:"fellowships",Component:sx},{path:"events",Component:ar},{path:"community-and-programs",Component:ng},{path:"creator-agency",Component:function(){let{getConfigFor:e}=(0,es.mJ)();return e("enable_creator_agency_pages")?(0,a.jsx)(n1,{}):(0,a.jsx)(sd,{})}},{path:"creator-agency-signup",Component:function(){let{getConfigFor:e}=(0,es.mJ)();return e("enable_creator_agency_pages")?(0,a.jsx)(n7,{}):(0,a.jsx)(sd,{})}},{path:"creator-agency-opportunities",Component:function(){let{getConfigFor:e}=(0,es.mJ)();return e("enable_creator_agency_pages")?(0,a.jsx)(nG,{}):(0,a.jsx)(sd,{})}},{path:"local-news",Component:ns},{path:"podcasts",Component:np},{path:"financesummit",Component:aj},{path:"comic-book-creators",Component:t1},{path:"switch",Component:lj},{path:"investing-and-business",Component:nt},{path:"for-bloggers",Component:tQ},{path:"food-writers",Component:ni},{path:"startups",Component:sa},{path:"video",Component:()=>{let e=(0,tb.Iu)(),t=e=>{let{linkType:t}=e;(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"video",link_type:t})};return(0,a.jsxs)("div",{children:[(0,a.jsx)(J.O,{title:"The home for great video",description:"A place for creative freedom, direct connections, and a business built on subscriptions",image:(0,N.dJ9)("/img/app_page/highlight-6-ios-v2.png",1e3)}),(0,a.jsx)(cu,{isMobile:e,signupUrl:cE,onClickLink:t}),(0,a.jsx)(cp,{isMobile:e}),(0,a.jsx)(cA,{isMobile:e,signupUrl:cE,onClickLink:t}),(0,a.jsx)(cd,{}),(0,a.jsx)(co,{signupUrl:cE,onClickLink:t})]})}},{path:"tiktok",Component:()=>{let e=(0,tb.Iu)(),t=e=>{let{linkType:t}=e;(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"tiktok",link_type:t})};return(0,a.jsxs)("div",{children:[(0,a.jsx)(J.O,{title:"Substack for TikTok creators",description:"Own your audience and earn money with subscriptions",image:(0,aS.dJ9)("/img/app_page/highlight-6-ios-v2.png",1e3)}),(0,a.jsx)(lQ,{isMobile:e,onClickLink:t,signupUrl:cl}),(0,a.jsx)(l3,{isMobile:e}),(0,a.jsx)(ci,{isMobile:e,signupUrl:cl,onClickLink:t}),(0,a.jsx)(cc,{}),(0,a.jsx)(co,{signupUrl:cl,onClickLink:t})]})}},{path:"going-paid",Component:e=>{let{}=e,{iString:t}=(0,h.GO)();return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:t("Start a paid newsletter on Substack"),description:t("On Substack, creators earn a living doing what they love. Getting started is easy. Set up paid subscriptions in just a few minutes.")}),(0,a.jsx)("div",{className:"cohort-hero",children:(0,a.jsxs)("div",{className:"cohort-hero-content",children:[(0,a.jsx)("div",{className:"paid-hero-title",children:t("Your work is valuable.")}),(0,a.jsx)("div",{className:"paid-hero-subtitle",children:t("On Substack, creators earn a living doing what they love. Getting started is easy. Set up paid subscriptions in just a few minutes.")}),(0,a.jsx)(az,{})]})}),(0,a.jsx)(tV,{testimonial:"“I can still remember standing in the kitchen in March 2020 and watching the first $1.00 I made come through, from sharing my own research. Was a crazy feeling. A year later and it’s now my full-time ‘job’.”",authorName:"Conor Mac",publicationName:"Investment Talk",publicationUrl:"https://investmenttalk.substack.com",cohortName:aZ}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content",children:[(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/going_paid/bridge.png",title:"Get paid directly by your subscribers.",subtitle:"Choose which posts you publish as free or only for paid subscribers. Zero tech knowledge required. We take care of everything so you can focus on creating your best work."}),(0,a.jsx)(tq,{imageUrl:"/img/going_paid/flag.png",title:"True Independence.",subtitle:"Own all of your content and your subscriber list. Pursue ideas you’re passionate about. Build a community. Keep 90% of the revenue."}),(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/going_paid/cat.png",title:"A better model for creators.",subtitle:"The ad model demands that writers and creators attract 40,000 page views every day to earn just $1,000 a month. With the Substack model, a steady base of 1,000 subscribers paying $5 each month earns you $60,000 per year."})]})}),(0,a.jsx)(tz,{testimonial:"“I've never been involved in any media project like Substack. In journalism, you struggle just to stay afloat. Something is changing in media and I'm fortunate to be part of it.”",authorName:"Ted Gioia",publicationName:"The Honest Broker",publicationUrl:"https://www.honest-broker.com",signupUrl:aJ,cohortName:aZ}),(0,a.jsx)("div",{className:"cohort-examples",children:(0,a.jsxs)("div",{className:"cohort-examples-content",children:[(0,a.jsx)("div",{className:"cohort-examples-header",children:"Substack’s model is helping writers and creators thrive."}),(0,a.jsx)("div",{className:"cohort-examples-subtitle"}),(0,a.jsx)("div",{className:"examples-row",children:(0,a.jsx)(tY,{pubName:"The Bear Cave",pubLogoUrl:"/img/going_paid/bear.png",description:"One year after starting The Bear Cave without a pre-existing audience, Edwin Dorsey was earning more than $300,000 a year on Substack.",pubUrl:"https://thebearcave.substack.com",cohortName:aZ})}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Free Press",pubLogoUrl:"/img/going_paid/thefreepress.png",description:"Journalist Bari Weiss transformed her personal Substack into The Free Press in 2022, growing it into a full-fledged media organization that features multiple newsletters, podcasts, and video. She now has over a million subscribers, a 50-person staff, and generates millions in annual revenue.",pubUrl:"https://substack.com/@thefreepress",cohortName:aZ}),(0,a.jsx)(tY,{pubName:"Judd Legum of Popular Information",pubLogoUrl:"/img/going_paid/legum.png",description:"Judd Legum, founder of political blog ThinkProgress, launched Popular Information on Substack in July 2018. Popular Information now has more than 100,000 signups.",pubUrl:"https://popular.info",cohortName:aZ})]}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tY,{pubName:"The Charlotte Ledger",pubLogoUrl:"/img/going_paid/charlotte.png",description:"Tony Mecia, a local news veteran in NC, turned on subscriptions for his Substack after one year of writing. In 2021, the Charlotte Ledger is on pace to earn $175,000 in annual revenue.",pubUrl:"https://charlotteledger.substack.com",cohortName:aZ}),(0,a.jsx)(tY,{pubName:"Emily Atkin of Heated",pubLogoUrl:"/img/going_paid/heated.png",description:"Emily Atkin started her publication on the climate crisis in late 2019. Six months later, she was earning a six figure salary and focusing on the publication full-time.",pubUrl:"https://heated.world",cohortName:aZ}),(0,a.jsx)(tY,{pubName:"Leo Skepi",pubLogoUrl:"/img/going_paid/leoskepi.png",description:"Creator and podcaster Leo Skepi quickly drove more than 1,000 paid subscribers to his Substack channel from TikTok by offering no-holds-barred live videos and private group chats.",pubUrl:"https://substack.com/@leoskepi",cohortName:aZ})]})]})}),(0,a.jsx)(tV,{testimonial:"“Substack provides me with consistent income. For example, one Substack post can bring in a significant number of new subscribers, providing a steady revenue stream compared to the variability of brand deals.”",authorName:"Violet Witchel",publicationName:"Violet’s Substack",publicationUrl:"https://violetcooks.substack.com/",cohortName:aZ}),(0,a.jsx)("div",{className:"case-study-section",children:(0,a.jsxs)("div",{className:"case-study-section-content",children:[(0,a.jsx)("div",{className:"case-study-section-header-container",children:(0,a.jsx)("div",{className:"case-study-section-header",children:"Great writers and creators can earn a living on Substack."})}),(0,a.jsxs)("div",{className:"examples-row",children:[(0,a.jsx)(tK,{title:"How Emily Atkin turned her climate change newsletter into a six-figure income",imageUrl:"/img/going_paid/emily.png",description:"Emily Atkin, author of Heated, talked to an audience of Substack writers in NY about how she successfully launched paid subscriptions",caseStudyUrl:"https://on.substack.com/p/how-emily-atkin-turned-her-climate",cohortName:aZ}),(0,a.jsx)(tK,{title:"Going Paid: How Edwin Dorsey launched and grew The Bear Cave",imageUrl:"/img/going_paid/edwin.png",description:"Edwin Dorsey, publisher of The Bear Cave, shares tips on how to convert readers into paid subscribers",caseStudyUrl:"https://on.substack.com/p/going-paid-the-bear-cave",cohortName:aZ}),(0,a.jsx)(tK,{title:"How Petition grew their financial newsletter anonymously",imageUrl:"/img/going_paid/petition.png",description:"The authors of the anonymous newsletter Petition share their insights on starting without an existing audience",caseStudyUrl:"https://library.substack.com/p/how-petition-grew-their-newsletter",cohortName:aZ})]})]})}),(0,a.jsx)(tV,{testimonial:"“Being able to make a living off my writing has always been my dream... Eight years and a lot of failures later, Substack provided me with a platform to be able to succeed.”",authorName:"Emily Atkin",publicationName:"Heated",publicationUrl:"https://heated.world",cohortName:aZ}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:"Make money from your work. Start today."}),(0,a.jsxs)("div",{className:"final-section-subtitle",children:["“Substack changed my life.” - Lenny Rachitsky, ",(0,a.jsx)("a",{href:"https://www.lennysnewsletter.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.finance),target:"_blank",children:"Lenny’s Newsletter"})]}),(0,a.jsx)("a",{className:"button big-button primary",href:aJ,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},"data-native":!0,onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:"Get started"})]})})]})}},{path:"going-paid-i",Component:()=>{let{iString:e}=(0,h.GO)();return(0,a.jsxs)("div",{className:"cohort-page",children:[(0,a.jsx)(J.O,{title:"Start a paid newsletter on Substack",description:"On Substack, writers earn a living doing what they love. Getting started is easy. Set up paid subscriptions in just a few minutes."}),(0,a.jsx)("div",{className:"cohort-hero",children:(0,a.jsxs)("div",{className:"cohort-hero-content",children:[(0,a.jsx)("div",{className:"paid-hero-title",children:e("Great writing is valuable.")}),(0,a.jsx)("div",{className:"paid-hero-subtitle",children:e("On Substack, writers earn a living doing what they love. Getting started is easy. Set up paid subscriptions in just a few minutes.")}),(0,a.jsx)(az,{})]})}),(0,a.jsx)(tV,{testimonial:e("“Being able to make a living off my writing has always been my dream since I was in college and I took my first journalism class. Eight years and a lot of failures later, Substack provided me with a platform to be able to succeed. It’s honestly allowed me to achieve my dream. I make more money now than I had at any salaried journalism job.”"),authorName:"Emily Atkin",publicationName:"Heated",publicationUrl:"https://heated.world",cohortName:a8}),(0,a.jsx)("div",{className:"cohort-big-benefits",children:(0,a.jsxs)("div",{className:"cohort-big-benefits-content",children:[(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/going_paid/bridge.png",title:e("Get paid directly by your subscribers."),subtitle:e("Choose which posts you publish as free or only for paid subscribers. Zero tech knowledge required. We take care of everything except the hard part (the writing itself).")}),(0,a.jsx)(tq,{imageUrl:"/img/going_paid/flag.png",title:e("True Independence."),subtitle:e("Own all of your content and your subscriber list. Decide what you write about. Build a community. Keep 90% of the revenue.")}),(0,a.jsx)(tq,{isImageLeft:!0,imageUrl:"/img/going_paid/cat.png",title:e("A better model for writing."),subtitle:e("The ad model demands that writers attract 40,000 page views every day to earn just $1,000 a month. With the Substack model, a steady base of 1,000 subscribers paying $5 each month earns you $60,000 per year.")})]})}),(0,a.jsx)(tz,{testimonial:e("“I had no idea my Substack would grow like this. I am getting hundreds of new subscribers every day and it has no sign of slowing down. The reason it’s growing so fast is because almost 250 other Substackers are recommending it. This is what makes Substack different from the competitive nature of social media.”"),authorName:"Emma Gannon",publicationName:"The Hyphen",publicationUrl:"https://thehyphen.substack.com",signupUrl:a9,cohortName:a8}),(0,a.jsx)(tV,{testimonial:e("“Being able to make a living off my writing has always been my dream... Eight years and a lot of failures later, Substack provided me with a platform to be able to succeed.”"),authorName:"Emily Atkin",publicationName:"Heated",publicationUrl:"https://heated.world",cohortName:a8}),(0,a.jsx)(eR,{title:e("Great writers can earn a living on Substack. Get started in three simple steps."),contentWidth:"wide",children:(0,a.jsxs)(E.I1,{children:[(0,a.jsx)(aU,{question:e("Create an account"),children:(0,a.jsx)(y.EY.MarketingBody,{children:e("A Substack combines a blog, newsletter, payment system, and customer support team — all integrated seamlessly with a simple interface.")})}),(0,a.jsx)(aU,{question:e("Set up payments"),children:(0,a.jsxs)(y.EY.MarketingBody,{translated:!0,children:["Substack makes it simple to collect and manage payments. Substack displays prices in subscriber’s"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/16523703337108-Can-readers-pay-for-subscriptions-using-their-local-currency-on-Substack-",target:"_blank",rel:"noopener",children:"local currencies"})," ","and supports"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/18687769631252-How-can-readers-pay-for-a-subscription-on-my-Substack-publication-",target:"_blank",rel:"noopener",children:"payment methods"})," ","including iDEAL, Bancontact, Sofort, and SEPA direct in addition to credit cards."]})}),(0,a.jsx)(aU,{question:e("Start publishing"),children:(0,a.jsxs)(y.EY.MarketingBody,{translated:!0,children:["You choose which posts you publish to free or paid subscribers. Advanced tools allow you to send free subscribers"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/4407989020308-How-do-I-publish-a-free-preview-of-a-paid-post-on-Substack-",target:"_blank",rel:"noopener",children:"a free preview of a paid post"})," ","or paywall"," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/360037832711-How-do-I-enable-or-disable-comments-on-my-posts-",target:"_blank",rel:"noopener",children:"comments"}),","," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/chat-guide",target:"_blank",rel:"noopener",children:"Chats"}),","," ",(0,a.jsx)("a",{href:"https://support.substack.com/hc/en-us/articles/9503089884308-How-do-I-paywall-my-archive-of-free-posts-on-Substack-",target:"_blank",rel:"noopener",children:"your archive"})," ","and more, all of which can help turn free readers into paying subscribers."]})})]})}),(0,a.jsx)("div",{className:"final-section",children:(0,a.jsxs)("div",{className:"final-section-content",children:[(0,a.jsx)("div",{className:"final-section-header",children:e("Make money writing. Start today.")}),(0,a.jsxs)("div",{className:"final-section-subtitle",children:[e("“Substack changed my life.” - Lenny Rachitsky, "),(0,a.jsx)("a",{href:"https://www.lennysnewsletter.com/?utm_source=".concat(eg.VU.substack,"&utm_medium=").concat(eg.Jn.web,"&utm_campaign=").concat(eg._9.cohortPages,"&utm_content=").concat(eg.fL.finance),target:"_blank",rel:"noopener",children:e("Lenny’s Newsletter")})]}),(0,a.jsx)("a",{className:"button big-button primary",href:a9,style:{height:"48px",lineHeight:"28px",borderRadius:"4px"},onClick:()=>{(0,M.u4)(M.qY.COHORT_PAGE_CLICKED,{cohort:"bloggers",link_type:"get started"})},children:e("Get started")})]})})]})}},{path:"about",Component:eM},{path:"about-i",Component:()=>{let{iString:e}=(0,h.GO)();(0,o.useEffect)(()=>{(0,M.u4)(M.qY.ABOUT_PAGE_VISITED)},[]);let t=(0,f.rr)(),n=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.about});return(0,a.jsxs)("div",{className:eB.home,children:[(0,a.jsx)(E.pT,{as:"section",className:I()(e_.heroGreen,e_.zIndex),paddingBottom:{desktop:120,mobile:48},paddingTop:0,direction:"column",children:(0,a.jsxs)(E.I1,{children:[(0,a.jsx)(E.I1,{justifyContent:"end",children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/about_page_2/cover.png"),maxWidth:2e3,imageProps:{height:1125},className:e_.coverImage})}),(0,a.jsx)(E.I1,{justifyContent:"center",alignItems:"center",paddingX:20,children:(0,a.jsxs)(E.I1,{gap:32,children:[(0,a.jsx)(y.EY.MarketingHeading1,{color:"white",style:{maxWidth:669},children:e("Building a new economic engine for culture")}),(0,a.jsx)(y.EY.MarketingBody,{color:"white",style:{maxWidth:862},children:e("We started Substack because we believe that what you read matters and that good writing is valuable – and as the platform has evolved, we've come to expand that view to include all forms of cultural work. On Substack, writers and creators can publish their work and make money from paid subscriptions while readers can directly support the work that they deeply value.")})]})})]})}),(0,a.jsx)(E.pT,{as:"section",paddingY:{desktop:120,mobile:48},paddingX:20,direction:"column",justifyContent:"center",alignItems:"center",children:(0,a.jsxs)(E.I1,{style:{maxWidth:960},gap:48,children:[(0,a.jsx)(y.EY.MarketingBody,{children:e("Substack has been called a media company, a newsletter platform, and a social network, but none of those really fit. Substack is something new: a subscription network. When readers pay writers directly, writers can focus on doing the work they care about most. A few hundred paid subscribers can support a livelihood. A few thousand makes it lucrative.")}),(0,a.jsx)(y.EY.MarketingBody,{children:e("Today Substack's subscription network encompasses more than 50 million active subscriptions, including 5 million paid subscriptions. Some of the world's most celebrated writers are here —Margaret Atwood, George Saunders, and Kareem Abdul-Jabbar, to name a few—and they have been joined by a new generation of writers who are building their livelihoods and communities on Substack.")}),(0,a.jsx)(y.EY.MarketingBody,{children:e("As Substack grows to accommodate more writers, podcasters, videomakers, musicians, scientists, and culture-makers of all kinds, we believe that together we can build a new economic engine for culture. We think the internet's powers, married to the right business model, can be harnessed to build the most valuable media economy the world has ever known—an economy where value is measured not only in dollars but also in quality, in good-faith discourse, and in creating an internet that celebrates and supports humanity.")}),(0,a.jsx)(E.pT,{justifyContent:"center",children:(0,a.jsx)(A.$n,{size:"lg",href:n,localNavigation:!1,children:e("Start a Substack")})})]})}),(0,a.jsx)(E.pT,{as:"section",className:e_.heroWash,paddingY:{desktop:120,mobile:48},paddingX:20,direction:"column",justifyContent:"center",alignItems:"center",children:(0,a.jsx)(E.I1,{justifyContent:"center",alignItems:"center",paddingX:20,children:(0,a.jsxs)(E.I1,{gap:56,style:{maxWidth:960},children:[(0,a.jsx)(y.EY.MarketingQuote,{align:"left",children:e("“I had no idea my Substack would grow like this. I am getting hundreds of new subscribers every day and it has no sign of slowing down. The reason it’s growing so fast is because almost 250 other Substackers are recommending it. This is what makes Substack different from the competitive nature of social media.”")}),(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/authors/emma.png"),className:e_.authorImage,loading:"lazy"}),(0,a.jsx)(eU,{name:"Emma Gannon",subtext:e("Over 20,000 subscribers"),link:"https://thehyphen.substack.com"})]})]})})}),(0,a.jsx)(E.pT,{as:"section",paddingY:{desktop:120,mobile:48},paddingX:20,direction:"column",justifyContent:"center",alignItems:"center",children:(0,a.jsxs)(E.I1,{alignItems:"center",justifyContent:"center",className:e_.howSubstackWorksWrapper,gap:t?64:120,children:[(0,a.jsx)(y.EY.MarketingHeading1,{className:e_.sectionHeader,children:e("How the Substack model works")}),(0,a.jsx)(eK,{title:e("We only make money when writers make money."),body:e("When a reader pays for a subscription on Substack, an average of 86% of the money goes to the writer and the remainder covers our revenue share and Stripe’s payment processor fees. Since we only make money when publishers make money, our interests remain aligned with those of writers and readers. To date, readers have paid writers hundreds of millions of dollars through Substack."),imgSource:"/img/about_page_3/pie.png",imageFirst:!0}),(0,a.jsx)(eK,{title:e("The subscription model enables independence."),body:e("Writers and creators need to be loyal only to their subscribers, not to advertisers, and can focus on quality more than inundation. A few hundred paid subscribers will support a writer’s livelihood. A few thousand makes it lucrative. (The top 10 publishers collectively earn more than $25 million annually.)"),imgSource:"/img/about_page_3/coins.png",link:{url:"/going-paid",text:e("Estimate your earnings")}}),(0,a.jsx)(eK,{title:e("Our network helps writers grow and readers discover new writing."),body:e("More than 40% of all subscriptions and 15% of paid subscriptions on the platform come directly from the Substack network. This is happening because there are tens of millions of people active on Substack every week, they understand what it means to subscribe to a writer, and they are open to discovering new writing to fall in love with."),imgSource:"/img/about_page_3/graph.png",imageFirst:!0,link:{url:"https://on.substack.com/p/turn-on-your-growth-engine",text:e("Learn more")}}),(0,a.jsx)(E.pT,{justifyContent:"center",children:(0,a.jsx)(A.$n,{size:"lg",href:n,localNavigation:!1,children:e("Start a Substack")})})]})}),(0,a.jsxs)(eP,{title:e("Substack's principles"),backgroundColor:"wash",narrowTitleGap:!0,children:[(0,a.jsx)(E.Ye,{justifyContent:"center",children:(0,a.jsxs)(y.EY.MarketingBody,{align:"center",style:{maxWidth:576},children:[e("With every product and feature we build, we will stay true to the following principles:")," "]})}),(0,a.jsx)(eD,{question:e("Great work is valuable and deserves to be rewarded with money."),answer:e("Publishers should have a way to make a living, or even a fortune, from doing the work they believe in. Money is the fuel that makes our entire engine work, and it’s a healthier, more honest metric than “eyeballs” or engagement.")}),(0,a.jsx)(eD,{question:e("The people have the power."),answer:e("Publishers own their content and relationship with their subscribers and have complete editorial control. Readers and consumers choose who they enter subscription relationships with.")}),(0,a.jsx)(eD,{question:e("A free press and free speech are fundamental to a trustworthy media system."),answer:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(y.EY,{translated:!0,children:["We take a"," ",(0,a.jsx)("a",{href:"https://on.substack.com/p/society-has-a-trust-problem-more",children:"hands-off approach to content moderation"})," ","and instead support community moderation, where publishers set their own terms of engagement for their community, and readers choose which communities suit them."]})})}),(0,a.jsx)(eD,{question:e("We help readers take back their mind"),answer:e("On Substack, you are the customer. We want to help you be intentional in determining your media diet. We don’t seek to trap you in an attention game that can never be won, and instead we want to help you find and spend time with work that you deeply value.")})]}),(0,a.jsx)(E.pT,{as:"section",paddingY:{desktop:120,mobile:48},paddingX:20,direction:"column",justifyContent:"center",alignItems:"center",children:(0,a.jsxs)(E.I1,{gap:80,style:{maxWidth:960},children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",children:e("Don't just take it from us...")}),(0,a.jsxs)(E.I1,{gap:56,children:[(0,a.jsx)(y.EY.MarketingQuote,{align:"left",children:e("“I’m happy to settle in a place that values writing and conversation. I feel like it’s giving my voice the home it had been missing for so many years.”")}),(0,a.jsxs)(E.Ye,{gap:12,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/authors/garance.png"),className:e_.authorImage,loading:"lazy"}),(0,a.jsx)(eU,{name:"Garance Dor\xe9",subtext:e("Thousands of paid subscribers"),link:"https://garancedore.substack.com/"})]})]}),(0,a.jsx)(eF,{}),(0,a.jsx)(E.pT,{justifyContent:"center",children:(0,a.jsx)(A.$n,{size:"lg",href:n,localNavigation:!1,children:e("Start a Substack")})})]})}),(0,a.jsx)(eY,{}),(0,a.jsx)(E.pT,{as:"section",className:I()(eb["hero--green"],eb.isDark),paddingY:{desktop:120,mobile:80},paddingX:20,direction:{desktop:"row",mobile:"column"},alignItems:"center",justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.I1,{className:eb.heroInnerRow,justifyContent:"center",alignItems:"center",gap:32,style:{maxWidth:620},children:[(0,a.jsx)(y.EY.MarketingHeading1,{color:"white",align:"center",children:e("Get started in minutes")}),(0,a.jsx)(A.$n,{size:"lg",href:n,localNavigation:!1,children:e("Start a Substack")})]})})]})}},{path:"brand",Component:()=>{(0,o.useEffect)(()=>{(0,M.u4)(M.qY.WRITING_BRANDPAGE_VISITED)},[]);let{iString:e}=(0,h.GO)(),t=e("Create your Substack"),n=(0,N.f5H)({utm_source:eg.VU.substack,utm_medium:eg.Jn.web,utm_campaign:eg._9.brand});return(0,a.jsxs)("div",{className:eB.home,children:[(0,a.jsx)(E.pT,{as:"section",paddingY:{desktop:120,mobile:20},paddingX:20,direction:{desktop:"row",mobile:"column"},alignItems:{desktop:"center",mobile:"start"},justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.I1,{className:eb.heroInnerRow,justifyContent:{desktop:"center",mobile:"start"},alignItems:"center",gap:80,style:{maxWidth:960},children:[(0,a.jsx)(E.I1,{className:eb.heroText,style:{maxWidth:813},children:(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",children:"Substack brand assets and resources"})}),(0,a.jsx)("img",{src:(0,N.dJ9)("/img/brand_page/folder.png",1700),className:eB.coverImage}),(0,a.jsx)(y.EY,{className:eB.customHeaderText,children:"The brand resources featured here, including our name and logo, are trademarks protected by law (trademark law insists that we say this). Please read these guidelines carefully—including the important legal notice at the bottom—to make sure you use these brand resources in the right way."})]})}),(0,a.jsx)(tx,{title:"Using the Substack Brand",backgroundColor:"wash",children:(0,a.jsxs)(E.I1,{gap:80,alignItems:"center",children:[(0,a.jsx)(tS,{image:{path:"/img/brand_page/brush.png",width:300},maxWidth:900,narrowImage:!0,title:"Using the Substack brand",body:"Anyone using Substack's assets should use only the logos found on this page and follow our guidelines."}),(0,a.jsx)(tS,{image:{path:"/img/brand_page/pens.png",width:300},maxWidth:900,narrowImage:!0,title:"Citing Substack in the media",body:"Writers deserve credit for their ideas, so proper attribution is essential. When citing a Substack publication, broadcast media must verbally mention its full name and include it onscreen in the chyron, if applicable. Text-based media should include the full name of the publication and a link to the original source."}),(0,a.jsx)(tS,{image:{path:"/img/brand_page/microphone.png",width:300},maxWidth:900,narrowImage:!0,title:"Feature Substack in your work",body:"Interested in featuring Substack or a specific writer or podcaster in your work? Email press@substackinc.com with your request and we'll get back to you."})]})}),(0,a.jsxs)(eP,{title:"Brand guidelines and assets",narrowTitleGap:!0,children:[(0,a.jsx)(y.EY.MarketingBody,{align:"center",style:{maxWidth:800},children:"Anyone using Substack's brand assets should use only the logos found on this page. By using the download links below, you agree to follow these guidelines, including the rules below:"}),(0,a.jsx)(eD,{question:"1. Please don't alter our logos.",answer:"You may not change the color, proportions, font, or any other part of the design of our logos. Similarly, do not add any extra features or embellishments to our logos."}),(0,a.jsx)(eD,{question:"2. Respect our trademarks.",answer:"You may not use the Substack brand or brand assets in a way that implies our partnership, sponsorship, or endorsement without explicit written permission. The Legal Notice below has more information."}),(0,a.jsx)(eD,{question:"3. Keep it clean.",answer:"Please don't place our logos anywhere that would make them difficult to see or that would imply a connection to any other business or product. Always leave some white space around our logos."}),(0,a.jsx)("hr",{className:eB.horizontalDivider}),(0,a.jsx)(y.EY,{style:{maxWidth:528},className:eB.agreeTo,align:"center",children:"If you agree to all that, you can download the brand assets here:"}),(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},alignItems:"center",gap:{desktop:120,mobile:80},children:[(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/substack.png",500),className:eB.logoImg}),(0,a.jsx)("a",{href:"".concat((0,N.Ewe)(),"/img/substack.png"),download:"substack.png",children:(0,a.jsxs)(E.Ye,{justifyContent:"center",gap:4,alignItems:"center",children:[(0,a.jsx)(y.EY.B1,{align:"center",color:"substack",children:"Download logo"}),(0,a.jsx)(tk.A,{size:22,stroke:"#FF6719"})]})})]}),(0,a.jsxs)(E.I1,{alignItems:"center",gap:32,children:[(0,a.jsx)("img",{src:(0,N.dJ9)("/img/substack_wordmark.png",500),className:eB.logoImg}),(0,a.jsx)("a",{href:"".concat((0,N.Ewe)(),"/img/substack_wordmark.png"),download:"substack_wordmark.png",children:(0,a.jsxs)(E.Ye,{justifyContent:"center",gap:4,alignItems:"center",children:[(0,a.jsx)(y.EY.B1,{align:"center",color:"substack",children:"Download wordmark"}),(0,a.jsx)(tk.A,{size:22,stroke:"#FF6719"})]})})]})]})]}),(0,a.jsx)(E.pT,{as:"section",className:eb["hero--wash"],paddingY:{desktop:120,mobile:32},paddingX:32,direction:{desktop:"row",mobile:"column"},alignItems:{desktop:"center",mobile:"start"},justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.I1,{className:eb.heroInnerRow,justifyContent:"center",alignItems:"center",gap:32,style:{maxWidth:1156},children:[(0,a.jsx)(y.EY.MarketingHeading1,{children:"Legal Notice"}),(0,a.jsxs)(E.I1,{gap:12,children:[(0,a.jsx)(y.EY.MarketingBody,{children:"The Substack name and the Substack logo—together with any word, symbol, or device we at Substack, Inc. use to indicate the source of our products—are our protected trademarks (the “Substack Marks”). We ask that any use of the Substack Marks respect the terms of these guidelines, which we may modify or cancel at any time, at our sole discretion, without notice."}),(0,a.jsxs)(y.EY.MarketingBody,{children:["These guidelines do not provide you any license or permission to make trademark use of the Substack Marks. You may only use the Substack Marks:"," ",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"as allowed by law—for instance, when making a “fair use” or when accurately referring to our business and its products by our name;"}),(0,a.jsx)("li",{children:"or with our advance, express, and written permission."})]})]}),(0,a.jsxs)(y.EY.MarketingBody,{children:["Further, you must not:",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"use the Substack Marks in any way that would suggest association between Substack and any other party, or that would imply our sponsorship or endorsement of any other party, product, or business;"}),(0,a.jsx)("li",{children:"use the Substack Marks in any way that would dilute, diminish, or tarnish them;"}),(0,a.jsx)("li",{children:"use the Substack Marks to refer to goods or services provided by any business other than Substack, Inc. and our affiliates;"}),(0,a.jsx)("li",{children:"use the Substack Marks to refer generically to the products and services we provide;"}),(0,a.jsx)("li",{children:" alter, modify, re-color, or otherwise create variations of the Substack Marks;"}),(0,a.jsx)("li",{children:" use the Substack Marks on any merchandise;"}),(0,a.jsx)("li",{children:"or incorporate the Substack Marks into your own trademarks or into the name of your business, product, or service."})]})]}),(0,a.jsx)(y.EY.MarketingBody,{children:"Substack, Inc. is committed to maintaining the integrity of the Substack Marks, and reserves the right to take appropriate enforcement action in the event of any infringement of its legal rights."})]})]})}),(0,a.jsx)(E.pT,{as:"section",className:I()(eb["hero--green"],eb.isDark),paddingY:{desktop:120,mobile:80},paddingX:20,direction:{desktop:"row",mobile:"column"},alignItems:"center",justifyContent:{desktop:"center",mobile:"start"},children:(0,a.jsxs)(E.I1,{className:eb.heroInnerRow,justifyContent:"center",alignItems:"center",gap:32,style:{maxWidth:1156},children:[(0,a.jsx)(y.EY.MarketingHeading1,{color:"white",align:"center",children:"Get started in minutes"}),(0,a.jsx)(A.$n,{size:"lg",href:n,localNavigation:!1,children:t})]})})]})}},{path:"top/:categorySlug",Component:function(){let{pubsForSeoLeaderboard:e,trendingPubs:t,relatedPubs:n,category:r,categories:o}=c(),{categorySlug:s}=(0,i.g)();return(0,a.jsx)(sR,{categorySlug:s,pubsForSeoLeaderboard:e,trendingPubs:t,relatedPubs:n,category:r,categories:o})}},{path:"topics/:slug",Component:function(){let{topic:e,posts:t,pubs:n,comments:i}=c();return(0,a.jsx)(lG,{topic:e,posts:t,pubs:n,comments:i})}},{path:"topics",Component:function(){let{topics:e}=c();return(0,a.jsx)(lZ,{topics:e})}},{path:"support",Component:function(){return(0,a.jsx)(lS.LY,{children:(0,a.jsx)(lC,{})})}},{path:"changelog",Component:function(){let{publicChanges:e}=c();return(null==e?void 0:e.length)?(0,a.jsx)(tF,{publicChanges:e}):null}},{path:"jobs",Component:function(){let[e,t]=(0,o.useState)(null),[n,i]=(0,o.useState)(null);async function r(){try{let e=await m().get("https://api.ashbyhq.com/posting-api/job-board/substack");t(e.body.jobs.map(e=>({url:e.jobUrl,text:e.title,team:e.team,location:e.location,secondaryLocations:e.secondaryLocations.map(e=>e.location)})))}catch(e){i(e)}}(0,o.useEffect)(()=>{r()},[]);let s=e&&is()(e,"team");return(0,a.jsxs)("div",{className:I()(oZ["jobs-page"]),children:[(0,a.jsx)(J.O,{title:"Substack - Jobs",description:"Join the team building the new economic engine for culture.",image:(0,N.dJ9)("/img/jobs_page/og-jobs.png",2400)}),(0,a.jsx)("div",{className:I()(oZ.jobsHero),children:(0,a.jsx)(eR,{contentWidth:"wide",children:(0,a.jsxs)(E.pT,{direction:{desktop:"row",mobile:"column"},gap:{mobile:24,desktop:12},children:[(0,a.jsxs)(E.I1,{alignItems:{desktop:"start",mobile:"stretch"},justifyContent:"center",className:I()(oZ["s-grid-item"],oZ["s-stack"]),children:[(0,a.jsx)(y.EY.MarketingHeading1,{className:I()(oZ.jobsHeroHeading),children:"Join the team building the new economic engine for culture"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(oZ.jobsHeroSubheading),children:"Our team believes what you watch, read, and listen to matters. We’re here to help creators go independent and thrive —and we’re hiring."}),(0,a.jsx)(A.$n,{size:"lg",priority:"primary",href:"#openings",localNavigation:!1,className:I()(oZ.jobsHeroButton),children:"See openings"})]}),(0,a.jsx)(E.I1,{className:I()(oZ["s-grid-item"]),children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/jobs_hero_cropped.png"),maxWidth:1600,imageProps:{height:880},className:I()(oZ.jobsHeroImage)})})]})})}),(0,a.jsxs)(eR,{contentWidth:"wide",paddingY:{desktop:80,mobile:80},titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"Our Mission"}),(0,a.jsx)(y.EY.MarketingBody,{align:"center",className:I()(oZ.jobPageSubhead),children:"At Substack, our mission is to build a new economic engine for culture — empowering writers, creators, and publishers to own their work, own their audience, and earn directly from their ideas. We provide simple, creator-first tools that make independent publishing sustainable, and shift value from platforms to the people who create. By linking great work with fair pay, we aim to strengthen independent culture and public discourse."}),(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/full-team.png"),maxWidth:3468,imageProps:{height:1482},className:I()(oZ.jobsMissionImage)}),(0,a.jsx)(se,{quote:"I enjoy working at Substack for three reasons: I get to work on and solve challenging problems every day; I am continually learning new things and developing myself; it may sound clich\xe9 but the people I work with are all awesome and if there's a common thread unifying us all, it’s a commitment to the mission and a good dose of humility.",author:"Mike Cohen, Head of AI & ML Engineering",authorImage:"/img/jobs_page/v2/team-mike.jpg"})]}),(0,a.jsx)(eR,{backgroundColor:"wash",contentWidth:"wide",children:(0,a.jsxs)(E.Ye,{direction:{mobile:"column",desktop:"row"},wrap:{mobile:"wrap",desktop:"nowrap"},gap:{mobile:12,desktop:64},children:[(0,a.jsx)(E.I1,{children:(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/team-times-square.png"),maxWidth:900,imageProps:{height:1120},className:I()(oZ.jobsFundingImage)})}),(0,a.jsxs)(E.I1,{gap:0,justifyContent:"center",className:I()(oZ.jobsFundingStack),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/paperflight.png"),maxWidth:176,imageProps:{height:176},className:I()(oZ.jobsIcon,oZ.jobsIconPaperflight)}),(0,a.jsx)(y.EY.MarketingHeading1,{className:I()(oZ.jobsFundingHeading),children:"We’ve come far – and we’re only getting started"}),(0,a.jsx)(y.EY.MarketingHeading4,{className:I()(oZ.jobQuote),children:"Substack’s successfully raised $100M in Series C funding in July of 2025"}),(0,a.jsx)(y.EY.MarketingBody,{children:"We are backed by Andreessen Horowitz, BOND, and The Chernin Group (TCG). Substack was part of the winter 2018 YC batch."}),(0,a.jsx)(y.EY.MarketingHeading4,{className:I()(oZ.jobQuote),children:"Our team is currently more than 100 people spread across the US, Canada, and the UK."}),(0,a.jsx)(y.EY.MarketingBody,{children:"Our HQ is in San Francisco, and we’re growing — including a new office in New York City."})]})]})}),(0,a.jsxs)("div",{className:I()(oZ.jobPerks),children:[(0,a.jsxs)(eR,{contentWidth:"wide",paddingY:{desktop:80,mobile:48},titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"Support to do your best work"}),(0,a.jsx)(y.EY.MarketingBody,{align:"center",className:I()(oZ.jobPageSubhead),children:"We offer robust benefits, though we know you’ll get those from many companies. What we we offer is an even more unique opportunity — the chance to work with and support independent creators around the\xa0world."}),(0,a.jsx)(E.Ye,{className:I()(oZ.jobPagePerkGrid),wrap:"wrap",children:(0,a.jsx)(oQ,{})})]}),(0,a.jsx)("div",{className:I()(oZ.galleryOuter),children:(0,a.jsxs)(E.pT,{overflowX:"auto",gap:12,className:I()(oZ.galleryInner),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/gallery/nyc-office-0.jpg"),maxWidth:830,imageProps:{height:1227},className:I()(oZ.galleryItem,oZ.galleryItemFirst)}),(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/gallery/nyc-office-1.jpg"),maxWidth:1865,imageProps:{height:1233},className:I()(oZ.galleryItem)}),(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/gallery/sf-office.jpg"),maxWidth:844,imageProps:{height:1239},className:I()(oZ.galleryItem)}),(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/gallery/nyc-office-2.jpg"),maxWidth:842,imageProps:{height:1237},className:I()(oZ.galleryItem)}),(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/gallery/nyc-office-3.jpg"),maxWidth:1890,imageProps:{height:1260},className:I()(oZ.galleryItem)})]})}),(0,a.jsxs)(eR,{paddingY:80,children:[(0,a.jsx)(se,{quote:"Substack is truly a mission-based company that cares deeply about the success of writers and creators. The entire company is dedicated to making it possible for publishers to earn a living doing what they love, and the ability to build their own space online that they control without advertising-based algorithms. I feel so lucky and fulfilled that I get to do this work every day.",author:"Christina, Creator Marketing",authorImage:"/img/jobs_page/v2/team-christina.jpg"}),(0,a.jsx)("div",{align:"center",children:(0,a.jsx)(A.$n,{size:"lg",priority:"primary",href:"#openings",localNavigation:!1,children:"See openings"})})]})]}),(0,a.jsxs)(eR,{contentWidth:"wide",paddingY:80,titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"Our Story"}),(0,a.jsx)(y.EY.MarketingBody,{align:"center",className:I()(oZ.jobPageSubhead),children:"Substack’s story is purposeful reinvention. Launched as a subscription-first alternative to ad-driven media, we restore ownership and value to creators. Today, we’re a new media app that connects you with the creators, ideas, and communities you care about most. We provide publishing, payments, and analytics so writers, podcasters, and publishers can own their audiences and earn directly — and our leadership remains committed to shifting power back to creators."}),(0,a.jsxs)(E.Ye,{direction:"row",wrap:{mobile:"wrap",desktop:"nowrap"},justifyContent:{mobile:"center",desktop:"space-between"},gap:24,className:I()(oZ.jobPageStoryGrid),children:[(0,a.jsxs)(E.I1,{gap:12,className:I()(oZ.jobPageStoryColumn),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/profile-chris-best.png"),maxWidth:1600,imageProps:{height:880},className:I()(oZ.jobPageStoryImage)}),(0,a.jsxs)("div",{children:[(0,a.jsx)(y.EY.MarketingHeading4,{children:"Chris Best"}),(0,a.jsx)(y.EY.MarketingBody,{children:"Co-founder and CEO"})]})]}),(0,a.jsxs)(E.I1,{gap:12,className:I()(oZ.jobPageStoryColumn),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/profile-jairaj-sethi.png"),maxWidth:1600,imageProps:{height:880},className:I()(oZ.jobPageStoryImage)}),(0,a.jsxs)("div",{children:[(0,a.jsx)(y.EY.MarketingHeading4,{children:"Jairaj Sethi"}),(0,a.jsx)(y.EY.MarketingBody,{children:"Co-founder and CTO"})]})]}),(0,a.jsxs)(E.I1,{gap:12,className:I()(oZ.jobPageStoryColumn),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/profile-hamish-mckenzie.png"),maxWidth:1600,imageProps:{height:880},className:I()(oZ.jobPageStoryImage)}),(0,a.jsxs)("div",{children:[(0,a.jsx)(y.EY.MarketingHeading4,{children:"Hamish McKenzie"}),(0,a.jsx)(y.EY.MarketingBody,{children:"Co-founder and CWO"})]})]})]})]}),(0,a.jsxs)("div",{className:I()(oZ.marqueeBackground),children:[(0,a.jsxs)(eR,{paddingY:0,titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"Work on the product that makes a difference"}),(0,a.jsx)(y.EY.MarketingBody,{className:I()(oZ.jobPageSubhead),align:"center",children:"The voices who choose to spread their work on Substack"})]}),(0,a.jsx)(o9,{})]}),(0,a.jsxs)(eR,{contentWidth:"wide",paddingY:80,children:[(0,a.jsxs)(E.pT,{align:"center",direction:"column",className:I()(oZ.jobPageEmployeeQuoteHeading),children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/love.png"),maxWidth:240,imageProps:{height:246},className:I()(oZ.jobsIcon)}),(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),style:{marginBlockStart:24},children:"Why our team loves working at Substack"})]}),(0,a.jsx)(o7,{})]}),(0,a.jsx)("div",{id:"openings"}),(0,a.jsxs)(eR,{backgroundColor:"wash",paddingY:80,titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"Join our growing team"}),(0,a.jsxs)("div",{className:I()(oZ["job-listings-inner"]),children:[(0,a.jsxs)(y.EY.MarketingBody,{align:"center",className:I()(oZ.jobPageSubhead),children:["Explore our open roles and if you see a role that sounds like your next step, apply below. If none of these jobs are a fit but you’d like us to keep you in mind for future opportunities, send us your resume"," ",(0,a.jsx)("a",{href:"mailto:recruiting@substackinc.com",children:"here"}),"."]}),n?(0,a.jsxs)("p",{className:"error",children:["Failed to load postings. ",(0,f.uX)(n)]}):e?s&&Object.keys(s).sort().map(e=>{var t;return(0,a.jsxs)("div",{className:I()(oZ["jobs-page-team"]),children:[(0,a.jsx)("h4",{className:I()(oZ["jobs-page-team-title"]),children:e}),(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-roles"]),children:null==(t=s[e])?void 0:t.sort((e,t)=>e.text.localeCompare(t.text)).map(e=>(0,a.jsxs)("a",{className:I()(oZ["jobs-page-team-role"]),href:e.url,"data-native":!0,children:[(0,a.jsxs)("div",{className:I()(oZ["jobs-page-team-role-description"]),children:[(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-role-title"]),children:e.text}),(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-role-location"]),children:[e.location].concat(e.secondaryLocations).join(", ")})]}),(0,a.jsx)(A.$n,{className:I()(oZ.jobApplyBtn),priority:"primary",children:"Apply"})]},e.url))})]},e)}):(0,a.jsxs)("div",{className:I()(oZ["jobs-page-team"]),children:[(0,a.jsx)("h4",{className:I()(oZ["jobs-page-team-title"]),children:"\xa0"}),(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-roles"]),children:(0,a.jsxs)("a",{className:I()(oZ["jobs-page-team-role"]),href:"javascript:void(0)","data-native":!0,children:[(0,a.jsxs)("div",{className:I()(oZ["jobs-page-team-role-description"]),children:[(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-role-title"]),children:"\xa0"}),(0,a.jsx)("div",{className:I()(oZ["jobs-page-team-role-location"]),children:"\xa0"})]}),(0,a.jsx)(A.$n,{className:I()(oZ.jobApplyBtn),priority:"primary",children:"\xa0"})]})})]})]})]}),(0,a.jsxs)(eR,{contentWidth:"wide",paddingY:80,titleGap:16,children:[(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),children:"What the world is saying"}),(0,a.jsx)(o6,{})]}),(0,a.jsx)("div",{className:I()(oZ.buildSection),children:(0,a.jsx)(eR,{contentWidth:"wide",paddingY:80,children:(0,a.jsxs)("div",{align:"center",children:[(0,a.jsx)(ed.o,{src:(0,N.dJ9)("/img/jobs_page/v2/stairs.png"),maxWidth:601,imageProps:{height:544},className:I()(oZ.buildCTAImage)}),(0,a.jsx)(y.EY.MarketingHeading1,{align:"center",fontWeight:"semibold",className:I()(oZ.jobPageMarketingHeading),style:{marginBlock:32},children:"Let’s make a difference together"}),(0,a.jsx)(A.$n,{size:"lg",priority:"primary",href:"#openings",localNavigation:!1,style:{width:160,height:52},children:"See openings"})]})})})]})}},{path:"vulnerability-disclosure",Component:e=>{let{}=e;return(0,a.jsxs)("div",{className:"cohort-page vulnerability-disclosure-page",children:[(0,a.jsx)(J.O,{title:"Substack Vulnerability Disclosure Policy",description:"Responsible security vulnerability disclosure policy and bug bounty details"}),(0,a.jsx)(tJ,{title:"Substack Vulnerability Disclosure Policy",subtitle:"We take the security of our systems seriously, and we value the security community. The disclosure of vulnerabilities helps us ensure the security and privacy of our users."}),(0,a.jsx)("div",{className:"vulnerability-guidelines",children:(0,a.jsxs)("div",{className:"vulnerability-guidelines-content",children:[(0,a.jsx)("div",{className:"vulnerability-guidelines-header",children:"Guidelines"}),(0,a.jsxs)("div",{className:"vulnerability-guidelines-body",children:[(0,a.jsx)("p",{children:"We require that all researchers:"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Make every effort to avoid privacy violations, degradation of user experience, disruption to production systems, and destruction of data during security testing."}),(0,a.jsx)("li",{children:"Perform research only within the scope set out below."}),(0,a.jsx)("li",{children:"Use the identified communication channels to report vulnerability information to us."}),(0,a.jsx)("li",{children:"Keep information about any vulnerabilities you’ve discovered confidential between yourself and Substack until we’ve had 90 days to resolve the issue."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"If you follow these guidelines when reporting an issue to us, we commit to:"}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["Recognize your contribution on our ",(0,a.jsx)("a",{href:"/hall-of-fame",children:"Security Researcher Hall of Fame"}),", if you are the first to report the issue and we make a code or configuration change based on the issue. Note that we don’t offer any monetary compensation at this time."]}),(0,a.jsx)("li",{children:"Work with you to understand and resolve the issue quickly (including an initial confirmation of your report within 72 hours of submission)."}),(0,a.jsx)("li",{children:"Not pursue or support any legal action related to your research."})]})]}),(0,a.jsx)("div",{className:"vulnerability-guidelines-small-header",children:"In Scope"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"substack.com"}),(0,a.jsx)("li",{children:"reader.substack.com"}),(0,a.jsx)("li",{children:"Substack's iOS app"})]}),(0,a.jsx)("div",{className:"vulnerability-guidelines-small-header",children:"Out of scope"}),(0,a.jsx)("p",{children:"Any services hosted by 3rd party providers and services are excluded from scope. Any web apps or surface areas meant for employees of Substack are also excluded from scope."}),"In the interest of the safety of our users, staff, the Internet at large and you as a security researcher, the following test types are excluded from scope:",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Findings from physical testing such as office access (e.g. open doors, tailgating)"}),(0,a.jsx)("li",{children:"Findings derived primarily from social engineering (e.g. phishing, vishing)"}),(0,a.jsx)("li",{children:"Findings from applications or systems not listed in the ‘Scope’ section"}),(0,a.jsx)("li",{children:"UI and UX bugs and spelling mistakes"}),(0,a.jsx)("li",{children:"Network level Denial of Service (DoS/DDoS) vulnerabilities"})]}),(0,a.jsx)("p",{children:"Things we do not want to receive:"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Personally identifiable information (PII)"}),(0,a.jsx)("li",{children:"Credit card holder data"})]})]}),(0,a.jsx)("div",{className:"vulnerability-guidelines-header",children:"Reporting a security vulnerability"}),(0,a.jsxs)("div",{className:"vulnerability-guidelines-body",children:[(0,a.jsx)("p",{children:"If you believe you’ve found a security vulnerability in one of our products or platforms please send it to us by emailing security@substackinc.com. Please include the following details with your report:"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Description of the location and potential impact of the vulnerability."}),(0,a.jsx)("li",{children:"A detailed description of the steps required to reproduce the vulnerability (POC scripts, screenshots, and compressed screen captures are all helpful)."}),(0,a.jsxs)("li",{children:["Your name/handle and a link for recognition in our ",(0,a.jsx)("a",{href:"/hall-of-fame",children:"Hall of Fame."})]})]}),(0,a.jsx)("p",{children:"If you’d like to encrypt the information, please use our PGP key."}),(0,a.jsxs)("div",{className:"pgp-key-headers",children:[(0,a.jsx)("b",{children:"KeyID:"})," 4ED9E010",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Key Type:"})," RSA",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Key Size:"})," 4096/4096",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"UserID:"})," Substack Security ","",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Fingerprint:"})," 0A22 F8A8 0456 2638 DD74 BA94 2D86 525E 4ED9 E010"]}),(0,a.jsx)("pre",{className:"vulnerability-guidelines-pgp-public-key",children:"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGJ+eQUBEACf8m0LBYAxLiz+fzisFtBw43e1Lll/UyFnl02a9Rx9hWtqu+wS\naM0+xp5oEyqBJMiG//Gu09aAhP4W7hC0RFdyq0JrT+Lhbo+Z0+oYt4WawKo7mPeq\nS2T8O/83AcJ7gX7W7NHeW/iCQyTUN8hlFiDLq+HLOwPWa2bnGx5Vusl/oO7i4gUT\nq7f6LfFUzPwoOe4Mm9ZzWsZ2VnABhvLY94y+DKWebcpvPdOXkXKebhyhpXEfcaob\ne1T4Vi6Rm95DcJvGD0X6csIF56OaCx3ie6FGI9Wsc7C6w1xaO/NM/eRdYho/mf3f\n22+BGC1ovLX4bRLKvFk3YDBNDpFRRbsvwKOBnGJodPTe874Ngd717RpuT6EDDQJJ\nkm9cUg8avsNGblPck6XNKG2j4Oynl81MLodU53aviqZFaFMefE1Z9ID/wrn2GZt6\npsuAjhsDcx4SNMlRLdAJayRZtElKUhkj00WUNbm5tst08Gu4livHoeHdzhLgX6Mg\nuxORd2CIuN1g2+IVRXh9hxXzn47FyeFfQgcIGTAcrHDqbhb+5YYnCnoWG6v/Isc2\nqQSBjz+XwqiQLM6s17JM4PyIauN3GI8pmJv92C/TZZfPo7j4sW9agpdk6OVNLdWo\nHzzi38mZd5O8f87Z2uq3FwqOYfZuIxAtD2+zr/tzKlInA2mYwbL+Cy5bcQARAQAB\ntCxTdWJzdGFjayBTZWN1cml0eSA8c2VjdXJpdHlAc3Vic3RhY2tpbmMuY29tPokC\nTgQTAQgAOBYhBAoi+KgEViY43XS6lC2GUl5O2eAQBQJifnkFAhsDBQsJCAcCBhUK\nCQgLAgQWAgMBAh4BAheAAAoJEC2GUl5O2eAQfDQP+wSrbC0ZYmU1eQCrn5xPGV61\n/sl1hxIKzTWlYxrX0nc0VT6X+mnojZrYY3F29r29AnQ5+Pl6PAHH3PAAL5NxtPX/\nmAJN1StYcDza7p4qyO/bUv/2GrQ9K3Ozbsaef0JRT56txjBA67whsIPmc/Zy5/Ll\n00S1kVyJDeeOFjPOOuCLPvS5QL+BMw5fi9iwIySB7DfVpC7Ic6g5yX9u14eAylyV\ngHR/MRiscLLXnCmp+1w8j2Abih18IZqEqPJcIubPt8OXYnDnc4ptw3Zd6c8Fegfr\n2t+4mzc3YVbsmWfQ7x4w/hTLVjVu3k1ICWM0f0KO0oKCuRYfmdzDB1NS9HjNoFfM\nmUAFO1ZA4kI/oRc7Ycbfu0Sqe6wnk3kwEzwYfl4IMkXXj29NRgF4IAO9GMg11G3O\n+CeH8jsYYIxDfVeJ5yjRZuQO0385iHaPxCuI7lMUkSgnE5KPZRD7BlBgDF0kjiGq\nD+fChobEtjaTx/23kUiEzMZrI+oT4O1YlNIKTLA26CTgG2lYub9CJaSgEukXXjvr\nfzyg21jY0zJZxnkXre157EXqN3af9dIcyXa9TgILwaTrEOGSdYlwU+yWjVBoKPnA\nXC+wJ1YaO1c/rlwPxKREmL0pCsVbxKLYVOeS9p1y24yZQz8OwWPdaIywelQNfWVS\n77PvF22r3yPGeVcOigxfuQINBGJ+eQUBEAC02f0oVdWTUiSyH6/ZfpiFsyiXwQxx\nlqX7Wh3QHernTzGksUQMsIo+Yogt3bU9qcnrHXJlu9cvH9QC0I3rw8yUaxHIWPPF\nraH8sGHov6cx7DFzuFHpFIUJ000nofp5BKEy6e9Gs8XCQtdYoTkdCmOXXEzS2FGK\nMlDEWbBVWcormn9vJwgv7ygIKMQEqqOpblx7NztpP0OxULjSquRjllqLTmETf6zX\n7E+K46ekkIm/VxInRY242vJHeK9Mh1BDmfB0M7odOX3m/Yf+u8IufBzh841ZCPfL\naBfUfKCLAQcIfc1CGHQIzSewgStmCXDnsM7w00ri3k7cdqZQTCUGQevgT0MXBhpd\nY1KSPa/wnsiHNhKuN23xZSCBZVWuyAYfsr5Wu3ok/vsJ084Luyd4VKkHYmUho1MO\nGaOVcUKF7ZGVIeHr/Iuvwby9NewEfM/0IkyHbgnBNgH2TflhSboJ78hVU8SWglpo\nAGHcmbW0lhnuupFTRrJ9eV3wS6BZMS21x/JgPkV/i38S/Z1bZbXhJaUEOc6BzuTx\nJg8BBnYGWMSsNpt+0JKyLg6DNTqL3AjNXzO4Qj7VtHND/ddmJrcfnJuBOYO4WcU2\nqg2tauN4ShWdXZ7wZdLfvUzBIXnUiiWINet6jmv5sD65SktKZLCjrp5PlIi/PD1K\ncQeDGWB+16eudwARAQABiQI2BBgBCAAgFiEECiL4qARWJjjddLqULYZSXk7Z4BAF\nAmJ+eQUCGwwACgkQLYZSXk7Z4BAgKw/+O4ccxwSMztnVhZj4jTFrAK4RcXUlagJ2\nemJyYyJD/sODuaiqrsRbTOuVHiISQdRiPXpFhLmb956Cq4+WiP0AqPP3+Hrzh+gH\nK214QfeXrWe1EeMiNb8td3d4Ml83OE0G3pqnS8z94sQ7FQeOc+WdsO2CMeNkCMRA\nLlIsvsj92PAZ5wnrrRENdxbAupEVYNsdnQXQDSJ/49YIYqID9gsBJTBFE1SHD7QS\nUu9vCukEshgu/JW0LyLFRaSMgVGtT0g01f1RawjqTG4jFLJmUdYBfr93WURgGODK\ny/iffVIZ4gawXGYcQZfFqJWukV+U5DJcXKKjOPyCd6ihwPbIrMFDT84FU33OaEsI\nRpHASjUcniJ9AIdjtulev4pD9sjNz8jLFkocpjqDsqUVZJxJMc3oLgEnuCLuMS/L\nhT948eMX98JC4w1s8dgQYYy2N8SqFpTqQRiqcEIRt2hFcwtilWN+cky7eCd1yDJb\nximYjLCraTA8627nojoDVH//WoOZXAdI9MXhTY4m22dYlqqhf5Mt20vaIM7fGhXl\nog9N0ZXmrMhUsVLqGDxz/6nplAlk1xCOcDj2N18y4Lm/DE54hW3Iar+QtpQ6lk66\ns7fXI6C4EZBtCIycgEMo1lrUAGSUswxVCjrwiY1faZ3m1hD1FO2A+yzvFg3s2bwv\nXHkqnaHf8kY=\n=0q1C\n-----END PGP PUBLIC KEY BLOCK-----\n"})]})]})})]})}},{path:"hall-of-fame",Component:()=>(0,a.jsxs)("div",{className:"hall-of-fame-page cohort-page",children:[(0,a.jsx)(J.O,{title:"Hall of Fame"}),(0,a.jsx)(tJ,{title:"Hall of Fame",subtitle:"Substack thanks the following people who have helped make our site safer."}),(0,a.jsx)("div",{className:"fame-acknowledgements",children:(0,a.jsx)("div",{className:"fame-acknowledgements-content",children:Object.entries(is()(n6()(il,"year"),"year")).map(e=>{let[t,n]=e;return(0,a.jsx)(ic,{year:parseInt(t),legends:n})})})})]})},{path:"contact",Component:nb},{path:"sitemap/:pageNum",Component:lx},{path:"sitemap",Component:lx},{path:"signup",Component:function(){let e=c(),t=(0,h.GO)(),[n]=(0,el.o)();return(0,a.jsx)(ly,(0,r._)({},e,t,Object.fromEntries(n)))}},{path:"signup/oauth_redirect",Component:function(){var e,t;let[n]=(0,el.o)();return(0,a.jsx)(lv,{pubId:Number(null!=(e=n.get("pubId"))?e:0),error:n.get("error"),staff_contact_id:Number(null!=(t=n.get("staff_contact_id"))?t:0)})}},{path:"signup/import",Component:e=>{var t,n;let{pub:i}=e,{pub:r}=c(),s=null!=(t=null!=i?i:r)?t:void 0,{iString:l}=(0,h.GO)(),[d,u]=(0,o.useState)(null),[p,m]=(0,o.useState)(null!=(n=(0,ee.y)("import_url"))?n:void 0),[g,_]=(0,o.useState)(!1),[b,f]=(0,o.useState)(!1),A=()=>{(0,M.u4)(M.qY.IMPORT_PUBLICATION_ERROR_SKIPPED),document.location.href=s?(0,N.muC)(s,{section:"import-posts"}):(0,N.f5H)()},E=e=>{s?(_(!0),u(e)):((0,oG.X3)(oV.E,e),document.location.href=(0,N.f5H)())},y=async function(){let{pub:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,M.u4)(M.qY.IMPORT_PUBLICATION_COMPLETE),s?(await new Promise(e=>setTimeout(e,5e3)),document.location.href=(0,N.Xt9)(s)):e?document.location.href=(0,N.uoh)(e,{addBase:!0,params:{importer_name:null==d?void 0:d.importer_name}}):document.location.href=(0,N.f5H)()},O=()=>{(0,M.u4)(M.qY.IMPORT_PUBLICATION_CANCELLED),u(null)};return(0,a.jsx)("div",{className:"page typography signup-page",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(J.O,{title:l(s?"Import your posts":"Import your publication")}),b?(null==d?void 0:d.import_id)?(0,a.jsx)(oW.T,{pub:s,replace_existing:d.replace_existing,audience:d.audience,num_posts:d.num_posts,import_id:d.import_id,section:d.section,onComplete:y,onFail:()=>_(!1)}):(0,a.jsx)(oF.gl,{pub:s,siteUrl:p,onConfirm:E,onCancel:O}):(null==d?void 0:d.importer_name)?!g&&(null==d?void 0:d.importer_name)&&p?(0,a.jsx)(oK.c,{importData:d,importer_name:d.importer_name,pub:s,onCancel:O,onConfirm:E,siteUrl:p}):(null==d?void 0:d.import_id)?(0,a.jsx)(oW.T,{pub:s,replace_existing:d.replace_existing,audience:d.audience,num_posts:d.num_posts,import_id:d.import_id,section:d.section,onComplete:y,onFail:()=>_(!1)}):(0,a.jsx)(oz,{onCancel:O,onSkip:A}):(0,a.jsx)(oY.r,{pub:s,onImport:e=>{let{data:t,url:n}=e;(0,M.u4)(M.qY.IMPORT_PUBLICATION_LOADED),u(t),m(null!=n?n:void 0)},onSkip:A,onMoveToGenericImporter:()=>{f(!0)}})]})})}},{path:"google/oauth_callback",Component:function(){var e,t,n;let[i]=(0,el.o)();return(0,a.jsx)(a7,{state:null!=(e=i.get("state"))?e:"",code:null!=(t=i.get("code"))?t:"",scope:null!=(n=i.get("scope"))?n:"",error:i.get("error")})}},{path:"appeals",Component:function(){let{iString:e}=(0,h.GO)(),{user:t}=(0,e8.ur)(),[n,i]=(0,o.useState)(""),[r,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[p,m]=(0,o.useState)([]);(0,o.useEffect)(()=>{var e;t&&t.is_globally_banned||(window.location.href=(0,N.$_T)()),!function(e){if(!(0,e7.y0)("appeals_center_enabled"))return!1;let t=(0,e7.y0)("appeals_rollout_percentage"),n="number"==typeof t?t:null!=t?Number(t):0;return!!e&&!(n<=0)&&Math.abs(e%100){try{let e=await (0,_.x6)("/api/v1/appeals/under-review",{method:"GET"});if(!e.appealCase){m([]),c(!1),u(!1);return}let t=e.appealCase.attempts.map(e=>({status:e.status,created_at:e.created_at}));m(t),u("rejected"===e.appealCase.status);let n=e.appealCase.attempts.some(e=>"under_review"===e.status);c(n)}catch(t){if(t instanceof Error&&"You have exhausted your appeal attempts"===t.message)return void u(!0);alert(e("Something went wrong. Please try again."))}},[e]);(0,o.useEffect)(()=>{g()},[g]);let b=async()=>{if(!r){s(!0);try{var a;await (0,_.x6)("/api/v1/appeals",{method:"POST",json:{contentModerationReason:null!=(a=null==t?void 0:t.ban_reason)?a:"general",userInput:n||null}}),i(""),await g()}catch(t){alert(e("Something went wrong. Please try again."))}finally{s(!1)}}};return(0,a.jsxs)("div",{className:"page typography",children:[(0,a.jsx)(J.O,{title:e("Appeals Center")}),(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)(E.I1,{paddingY:32,gap:24,children:[(0,a.jsx)(y.EY.H2,{children:e("Appeals Center")}),!d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.EY.B2,{children:e("Upon review, we've determined that your account is in violation of Substack’s Content Guidelines.")}),(0,a.jsx)(y.EY.B2,{children:e("Submit an appeal to request a review of your account suspension. In some cases, account changes may be required before access is restored.")}),(0,a.jsxs)(E.Ye,{gap:12,alignItems:"stretch",children:[(0,a.jsx)(A.$n,{priority:"primary",size:"lg",onClick:b,disabled:r||l,children:p.length>=1&&!l?e("Resubmit an appeal"):e("Submit New Appeal")}),(0,a.jsx)(H.A0,{flex:"grow",children:(0,a.jsx)(H.ks,{value:n,onChange:e=>i(e.currentTarget.value),placeholder:e("Optional context (up to 200 characters)"),maxLength:200,disabled:l})})]}),(0,a.jsxs)(y.EY.B3,{children:[e("Use this space to provide brief context relevant to your appeal. For account access issues, billing, or other support requests, visit")," ",(0,a.jsx)("a",{href:"https://substack.com/support",target:"_blank",rel:"noreferrer",children:"https://substack.com/support"}),"."]})]}),d&&(0,a.jsx)(e5.F,{theme:"error",Icon:D.A,description:e("Upon review, we've determined that your account remains in violation of Substack's Content Guidelines and will not be reactivated.")}),(0,a.jsx)(t_,{appeals:p})]})})]})}},{path:"account",children:[{path:"set-password",Component:function(){var e;let{email:t}=c(),{iString:n}=(0,h.GO)(),[i]=(0,el.o)();return(0,a.jsx)(en,{email:null!=(e=null!=t?t:i.get("email"))?e:"",title:n("Set password")})}},{path:"forgot",Component:function(){var e;let{email:t=""}=c(),[n]=(0,el.o)();return(0,a.jsx)(en,{email:null!=(e=null!=t?t:n.get("email"))?e:""})}},{path:"reset",Component:function(){var e;let{token:t=""}=c(),[n]=(0,el.o)();return(0,a.jsx)(ea,{token:null!=(e=null!=t?t:n.get("token"))?e:""})}},{path:"delete",Component:function(){let{user:e}=c();return e?(0,a.jsx)(K,{user:e}):null}},{path:"email",Component:function(){let{user:e}=c();return(0,a.jsx)(x,{user:e,successRedirect:f.mp})}},{path:"mfa-reset",Component:function(){let e=(0,b.st)({pathname:"/api/v1/mfa-recover/questions",auto:!0});return(0,a.jsx)("div",{className:"page",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)(E.I1,{gap:24,paddingBottom:24,children:[(0,a.jsx)(y.EY.H1,{translated:!0,children:"Reset Two-Factor Authentication"}),e.error&&(0,a.jsx)(k.dt,{error:e.error})]}),e.result&&(0,a.jsx)(V,{questions:e.result.questions}),(0,a.jsxs)(y.EY,{weight:"light",translated:!0,children:["Need help? See our support page for"," ",(0,a.jsx)(y.Yq,{href:"https://support.substack.com/hc/en-us/articles/4785929336980-What-is-Two-Factor-Authentication-How-do-I-use-it-",color:"substack",children:"help with two-factor authentication."})," "]})]})})}},{path:"unsubscribed",Component:er},{path:"unsubscribe",Component:function(){let{token:e}=c();return(0,a.jsx)(aY,{token:null!=e?e:""})}}]},{path:"profile",children:[{path:"start",Component:function(){let{profile:e}=c();return(0,a.jsx)(sh,{profile:e})}},{path:"fill",Component:function(){let{profile:e}=c();return(0,a.jsx)(sg,{profile:e})}},{path:"visibility",Component:function(){let{profile:e}=c();return(0,a.jsx)(sA,{profile:e})}}]},{path:"content",Component:function(){let{content_policy:e}=c();return(0,a.jsx)(cv,{title:"Content Guidelines",html:null!=e?e:""})}},{path:"ccpa",Component:function(){let{ccpa_policy:e}=c();return(0,a.jsx)(cv,{title:"CCPA Policy",html:null!=e?e:""})}},{path:"tos",Component:function(){let{terms_of_service:e}=c();return(0,a.jsx)(cv,{title:"Terms of Use",html:null!=e?e:""})}},{path:"credit-tos",Component:function(){let{credit_terms_of_service:e}=c();return(0,a.jsx)(cv,{title:"Terms of Service for Substack Credits",html:null!=e?e:""})}},{path:"us-gov-tos",Component:function(){let{us_gov_terms_of_service:e}=c();return(0,a.jsx)(cv,{title:"US Government Terms of Service Amendment",html:null!=e?e:""})}},{path:"accessibility",Component:function(){let{accessibility_page:e}=c();return(0,a.jsx)(cv,{title:"Accessibility at Substack",html:null!=e?e:""})}},{path:"chatbot-tos",Component:function(){let{chatbot_terms_of_service:e}=c();return(0,a.jsx)(cv,{title:"Terms of Service for the Substack Chatbot",html:null!=e?e:""})}},{path:"reader_eula",Component:function(){let{reader_eula:e}=c();return(0,a.jsx)(cv,{title:"Substack Reader End User License Agreement",html:null!=e?e:""})}},{path:"dsa-transparency-report",Component:function(){let{dsa_transparency_report:e}=c();return(0,a.jsx)(cv,{title:"DSA Transparency Report",html:null!=e?e:""})}},{path:"privacy",Component:function(){let{privacy_policy:e}=c();return(0,a.jsx)(cv,{title:"Privacy Policy",html:null!=e?e:"",nested:!0})}},{path:"pa",Component:function(){let{publisher_agreement:e}=c();return(0,a.jsx)(cv,{title:"Publisher Agreement",html:null!=e?e:"",nested:!0})}},{path:"dispute",Component:function(){let{copyright_dispute_policy:e}=c();return(0,a.jsx)(cv,{title:"Copyright Dispute Policy",html:null!=e?e:"",nested:!0})}},{path:"repeat_infringer",Component:function(){let{repeat_infringer:e}=c();return(0,a.jsx)(cv,{title:"Copyright Repeat Infringer Policy",html:null!=e?e:"",nested:!0})}},{path:"app-link/login",Component:cN},{path:"login",Component:cN},{path:"redirect/:id",Component:cO},{path:"redirect/2/:id",Component:cO},{path:"vimeo-embed/:post_id/:video_id/:video_key?",Component:function(){let{vimeoInfo:e}=c();return e?(0,a.jsx)(cy,{id:e.id,videoKey:e.key}):null}},{path:"*",Component:sd}]}],cS=(0,i.Ys)(cx,{hydrationData:window.__staticRouterHydrationData});window.__SUBSTACK_ROUTER_TYPE__="react-router",(0,d.f)(function(e){let{initialData:t}=e;return(0,a.jsx)(s.Provider,{value:t,children:(0,a.jsx)(i.pg,{router:cS})})})},14984:function(e,t,n){n.d(t,{fk:()=>d,tB:()=>u});var a=n(74848),i=n(50014),r=n.n(i),o=n(96540);n(46271);var s=n(17186);n(49807),n(84985);let l={surfaces:[],addSurface:()=>void 0},c=(0,o.createContext)(l);function d(){return(0,o.useContext)(c)}function u(e){let{user:t,children:n}=e,{surfaces:i,addSurface:d}=(e=>{let[t,n]=(0,o.useState)([]),a=(0,o.useMemo)(()=>e?"".concat("user-recent-surfaces","-").concat(e.id):"",[e]);(0,o.useEffect)(()=>{if(!e)return;let t=(0,s.xm)(a);n(null!=t?t:[])},[e,a]);let i=(0,o.useCallback)(e=>{var t;let i=null!=(t=(0,s.xm)(a))?t:[],o="visited-publication"===e.type?{type:e.type,publication:{id:e.publication.id,name:e.publication.name,base_url:e.publication.base_url,logo_url:e.publication.logo_url,custom_domain:e.publication.custom_domain,custom_domain_optional:e.publication.custom_domain_optional,subdomain:e.publication.subdomain,theme:e.publication.theme,theme_var_background_pop:e.publication.theme_var_background_pop,author_photo_url:e.publication.author_photo_url,author:e.publication.author,cover_photo_url:e.publication.cover_photo_url}}:{type:e.type,profile:{name:e.profile.name,id:e.profile.id,photo_url:e.profile.photo_url}},l=r()([o,...i],e=>"visited-publication"===e.type?"pub-".concat(e.publication.id):"profile-".concat(e.profile.id)).slice(0,10);n(l);try{(0,s.X3)(a,l)}catch(e){console.error("Failed to update local recent surfaces:",e)}},[a]);return e?{surfaces:t,addSurface:i}:l})(t);return(0,a.jsx)(c.Provider,{value:{surfaces:i,addSurface:d},children:n})}},38921:function(e,t,n){n.d(t,{A:()=>f});var a=n(79785),i=n(74848),r=n(96540),o=n(84605),s=n(82772),l=n(35369),c=n(18540),d=n(76977),u=n(81203),p=n(63136),m=n(19718),h=n(39318),g=n(57324);function _(){let e=(0,a._)(["By ",""]);return _=function(){return e},e}function b(e){var t;let{pub:n,selected:a,setSelected:l,onRecommendationFirstVisible:c,index:b}=e,{iTemplate:f}=(0,o.GO)(),A=(0,r.useRef)(null);(0,s.S8)(A,()=>{null==c||c(n,b)},{threshold:.5});let E="".concat((0,h.$_T)(n),"/?utm_source=").concat(g.VU.homepageReaderOnboarding),y=null!=(t=n.editorial_bio)?t:n.hero_text;return(0,i.jsxs)(m.V,{ref:A,selected:a,onChange:()=>l(!a),checkboxName:n.name,children:[(0,i.jsx)(u.Nq,{pub:n,size:48}),(0,i.jsx)(d.VP,{justifyContent:"start",alignItems:"start",gap:2,flex:"grow",minWidth:0,children:(0,i.jsxs)(d.VP,{flex:"grow",minWidth:0,children:[(0,i.jsx)(p.Yq,{href:E,"data-native":!0,target:"_blank",decoration:"hover-underline",onClick:e=>e.stopPropagation(),children:(0,i.jsx)(p.EY.B3,{weight:"medium",children:n.name})}),(0,i.jsx)(p.EY.B4,{color:"secondary",children:f(_(),n.author_name)}),y&&(0,i.jsx)(p.EY.B4,{color:"secondary",textAlign:"left",children:y})]})})]})}function f(e){let{publications:t,selected:n,setSelected:a,onRecommendationFirstVisible:s,onToggle:u}=e,{iString:p}=(0,o.GO)(),m=n.lengtha(m?t.map(e=>{let{id:t}=e;return t}):[]),children:p(m?"Select all":"Deselect all")})}),t.map((e,t)=>(0,i.jsxs)(r.Fragment,{children:[t>0&&(0,i.jsx)(c.c,{}),(0,i.jsx)(b,{pub:e,selected:n.includes(e.id),setSelected:t=>{t?a([...n.filter(t=>t!==e.id),e.id]):a(n.filter(t=>t!==e.id)),null==u||u(e.id,t)},index:t,onRecommendationFirstVisible:s},e.id)]},e.id))]})}},87833:function(e,t,n){n.d(t,{G:()=>S,L:()=>x});var a=n(69277),i=n(70408),r=n(79785),o=n(74848),s=n(85500),l=n(48697),c=n(71464),d=n(96540),u=n(17515),p=n(35276),m=n(84605),h=n(35369),g=n(33727),_=n(60322),b=n(97515),f=n(76977),A=n(20500),E=n(23168),y=n(57820),N=n(63136),O=n(45234);function v(){let e=(0,r._)(["","% Complete"]);return v=function(){return e},e}function x(e){var t;let{onSuccess:n,importData:a,pub:i}=e,{iString:r}=(0,m.GO)(),s={MailchimpImporter:{name:"Mailchimp",url:O.A.MAILCHIMP},MailchimpArchiveImporter:{name:"Mailchimp",url:O.A.MAILCHIMP}}[null!=(t=null==a?void 0:a.importer_name)?t:"undefined"],l=r("Don't have an email list yet? Substack will help you build one.");return(0,o.jsx)(p.W,{title:r("Import your mailing list"),subtitle:(0,o.jsx)(L,{specificInstructions:s}),subscript:l,children:(0,o.jsx)(S,{pub:i,onSuccess:n})})}function S(e){var t;let{pub:n,onSuccess:a,onError:i}=e,{iString:r}=(0,m.GO)(),[{files:s,isDragging:l,errors:c},{openFileDialog:u,getInputProps:p,getDragProps:g,removeFile:_}]=(0,E.l)({accept:".csv,.xlsx,.ods,text/csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.oasis.opendocument.spreadsheet",maxSize:0x3200000}),[b,A]=(0,d.useState)(!1),[y,N]=(0,d.useState)(!1),O=(0,d.useRef)(null),v=(null==(t=s[0])?void 0:t.file)instanceof File?s[0].file:null;return(0,o.jsxs)(f.VP,{gap:12,children:[(0,o.jsx)(w,{files:s,isDragging:l,errors:c,openFileDialog:u,getInputProps:p,getDragProps:g,removeFile:_}),v&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{checked:y,onChange:N}),(0,o.jsx)(h.$n,{loading:b,disabled:!y,onClick:()=>{if(v){if(!y)return void alert(r("Please confirm that everyone on this list has opted in to receiving emails."));A(!0),O.current&&O.current.uploadFile(v)}},children:r("Import list")})]}),(0,o.jsx)(C,{pub:n,importerRef:O,onSuccess:()=>{A(!1),null==a||a()},setLoading:A,onError:i})]})}function w(e){var t,n,i;let{files:r,isDragging:d,errors:u,openFileDialog:p,getInputProps:g,getDragProps:_,removeFile:y}=e,{iString:O}=(0,m.GO)(),v=null==(t=r[0])?void 0:t.file.name,x=null!=(i=null==(n=r[0])?void 0:n.file.size)?i:0,S=!!v;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I,{isDragging:d,isFilled:S,dragProps:_(),children:S?(0,o.jsxs)(f.fI,{alignItems:"center",gap:12,padding:12,children:[(0,o.jsx)(s.A,{}),(0,o.jsxs)(f.VP,{flex:"grow",children:[(0,o.jsx)(N.EY.B4,{weight:"medium",children:v}),(0,o.jsx)(N.EY.B5,{color:"secondary",children:(0,E.z)(x)})]}),(0,o.jsx)(h.K0,{onClick:()=>{var e;return y(null==(e=r[0])?void 0:e.id)},priority:"quaternary",children:(0,o.jsx)(l.A,{size:20})})]}):(0,o.jsx)(b.p,{icon:d?(0,o.jsx)(c.A,{}):(0,o.jsx)(s.A,{}),title:O("Drop your subscriber list here"),description:O("CSV, XLSX, or ODS • Max 50MB"),button:(0,o.jsx)(h.$n,{onClick:p,priority:"primary-mono",children:O("Select file")})})}),(0,o.jsx)("input",(0,a._)({},g())),u.length>0&&(0,o.jsx)(A.yn,{role:"alert",align:"center",children:u[0]})]})}function I(e){let{isDragging:t,isFilled:n,dragProps:r,children:s}=e;return(0,o.jsx)(g.Z,(0,i._)((0,a._)({display:"flex",radius:"sm",overflow:"hidden",position:"relative",border:n?"unset":"detail",outline:n?"detail":"unset",borderStyle:n?"none":"dashed",bg:t?"secondary":"primary",elevated:!1,padding:32*!n},r),{children:s}))}function M(e){let{checked:t,onChange:n}=e,{iString:a}=(0,m.GO)();return(0,o.jsxs)(f.ov,{as:"label",gap:12,padding:8,children:[(0,o.jsx)(_.S,{checked:t,onChange:n,size:"sm",autoFocus:!0}),(0,o.jsx)(N.EY.B3,{weight:"medium",children:a("These people have opted in to receiving emails")})]})}function C(e){let{pub:t,importerRef:n,onSuccess:a,setLoading:i,onError:r}=e,s=()=>{i(!1),null==r||r()};return(0,o.jsx)(k,{ref:n,urls:["/api/v1/import.json?publication_id=".concat(t.id)],onError:s,onAbort:s,onUpload:a})}class k extends u.A{render(){let{uploading:e,percentComplete:t}=this.state;return e?(0,o.jsx)(j,{percentComplete:null!=t?t:0}):null}}let j=e=>{let{percentComplete:t}=e,{iTemplate:n}=(0,m.GO)(),a=Math.round(t?100*t:0);return(0,o.jsxs)(f.VP,{gap:12,padding:8,children:[(0,o.jsx)(y.hZ,{percent:null!=t?t:0,height:4,padding:0}),(0,o.jsx)(N.EY.B4,{textAlign:"center",color:"secondary",children:n(v(),a)})]})};function L(e){let{specificInstructions:t}=e;return t?(0,o.jsxs)(N.EY,{translated:!0,children:["Export your mailing list from"," ",(0,o.jsx)(N.Yq,{decoration:"underline",href:t.url,target:"_blank",rel:"noopener nofollow",children:I18N.p(t.name)})," ","and import it here."]}):(0,o.jsxs)(N.EY,{translated:!0,children:["Bring your list from"," ",(0,o.jsx)(N.Yq,{decoration:"underline",href:O.A.PATREON,target:"_blank",rel:"noopener nofollow",children:"Patreon"}),","," ",(0,o.jsx)(N.Yq,{decoration:"underline",href:O.A.GHOST,target:"_blank",rel:"noopener nofollow",children:"Ghost"}),","," ",(0,o.jsx)(N.Yq,{decoration:"underline",href:O.A.MAILCHIMP,target:"_blank",rel:"noopener nofollow",children:"Mailchimp"}),","," ",(0,o.jsx)(N.Yq,{decoration:"underline",href:O.A.TINYLETTER,target:"_blank",rel:"noopener nofollow",children:"TinyLetter"}),", and more."]})}},20956:function(e,t,n){n.d(t,{x:()=>p});var a=n(69277),i=n(70408),r=n(74848),o=n(84605),s=n(18540),l=n(76977),c=n(63136),d=n(67140),u=n(5955);function p(e){return(0,r.jsx)(l.VP,{gap:8,children:(0,r.jsx)(m,(0,i._)((0,a._)({},e),{separator:(0,r.jsx)(s.c,{})}))})}function m(e){let{date:t,replyCount:n,retweetCount:a,likeCount:i,impressionCount:s,separator:l}=e,{iCombo:p}=(0,o.GO)(),m=n>0||a>0||i>0,_=n>0&&a>0,b=(n>0||a>0)&&i>0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c.EY.B4,{color:"secondary",children:[(0,r.jsx)(h,{children:(0,u.hV)(t)}),s>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g,{}),(0,r.jsxs)(h,{children:[(0,d.V)(s,"number-truncated")," ",p("tweetStats","View","Views",s)]})]})]}),m&&l,m&&(0,r.jsxs)(c.EY.B4,{color:"secondary",children:[n>0&&(0,r.jsxs)(h,{children:[(0,d.V)(n,"number-truncated")," ",p("tweetStats","Reply","Replies",n)]}),_&&(0,r.jsx)(g,{}),a>0&&(0,r.jsxs)(h,{children:[(0,d.V)(a,"number-truncated")," ",p("tweetStats","Repost","Reposts",a)]}),b&&(0,r.jsx)(g,{}),i>0&&(0,r.jsxs)(h,{children:[(0,d.V)(i,"number-truncated")," ",p("tweetStats","Like","Likes",i)]})]})]})}function h(e){let{children:t}=e;return(0,r.jsx)(c.EY,{as:"span",children:t})}function g(){return(0,r.jsx)(h,{children:" \xb7 "})}},5955:function(e,t,n){n.d(t,{hV:()=>i,sK:()=>r});var a=n(16291);function i(e){return(0,a.A)(e).format("h:mm A \xb7 MMM D, YYYY")}function r(e){return e?"X avatar for @".concat(e):"X avatar"}n(49807)},73030:function(e,t,n){n.d(t,{D$:()=>r,Ew:()=>a,PX:()=>i});let a=25,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",{iString:t}=I18N.i(e);return{482856:{blurb:t("Since retiring from the NBA, Kareem Abdul-Jabbar has authored 17 books and written award-winning columns. Now, the basketball legend makes Substack his home for thoughts on sports, politics, and pop culture, and how they define America."),rank:1},260347:{blurb:t("A new media company founded by journalist Bari Weiss, The Free Press employs more than 25 full-time staff. From podcasts, events, and investigative stories to their signature commentary, The Free Press produces work that drives the news and shifts the culture."),rank:2},567420:{blurb:t("New York Times bestseller, Booker Prize winner, and creative writing professor at Syracuse University, George Saunders offers a masterclass in storytelling and the craft of short fiction with a unique, educational Substack. Since 2021, his community has grown to more than 125,000 subscribers."),rank:3},220361:{blurb:t("Recipe developer and cookbook author Caroline Chambers’ number one food newsletter offers family-friendly meals and no-nonsense cooking. She also hosts [So Into That](https://whattocook.substack.com/podcast), a new Substack show featuring acclaimed guests diving into recommendations and lifestyle hacks."),rank:4},1662278:{blurb:t("Painter, fashion director, and illustrator Jenny Walton offers glimpses into her fabulous life in Milan. From vintage shopping and flea market finds to a guide to personal style, Jenny calls her Substack “a nice little place to chat that isn’t Instagram.”"),rank:5},445285:{blurb:t("Fashion and culture writer Viv Chen delivers thoughtful reflections and recommendations for secondhand and designer fashion enthusiasts. If you identify as an eBay gremlin, The Molehill is for you."),rank:6},2325511:{blurb:t("Founded by award-winning journalist Mehdi Hasan, Zeteo is a new media organization with more than 150,000 subscribers. Zeteo publishes a weekly streaming show, [Mehdi Unfiltered](https://zeteo.com/s/mehdi-unfiltered), alongside podcasts and essays from contributors including Greta Thunberg, John Harwood, Viet Thanh Nguyen, and Naomi Klein."),rank:7},61371:{blurb:t("Pioneering blogger and journalist Andrew Sullivan publishes essays on politics and the culture wars on his Substack The Weekly Dish, which is also home to his podcast, [The Dishcast](https://andrewsullivan.substack.com). With more than 160,000 subscribers, Sullivan is among the most influential writers in U.S. politics."),rank:8}}},r=(e,t)=>{if(!e)return"featured";if("featured"===e||"twitter"===e||"podcast"===e)return e;let n=t.find(t=>t.slug===e);return n?n.id:"featured"}},96209:function(e,t,n){n.d(t,{C9:()=>a}),n(42877);let a=(e,t)=>{let n,{showLiveOverlay:a,subtitle:i,aspectRatio:r,pub:o,includeBumper:s,includeHeadlines:l,headlineText:c}=null!=t?t:{},d={skip_bumper:!s},u=!1,p=e.width&&e.height?e.width/e.height:1,m=!!e.live_stream_id,h=!(e.live_stream_id&&p>=1);if(e.liveStream){var g,_,b;u=(null!=(_=e.liveStream.joinedOrCompletedLiveStreamInvites)?_:[]).length>0,n=null!=(b=null==(g=e.liveStream.user)?void 0:g.handle)?b:void 0}return(null==o?void 0:o.author_handle)&&(n=o.author_handle),(m||a)&&(h||(d.legacy_watermark={type:"legacy_watermark",show:!1}),(p<1||["vertical_fill","vertical_fit"].includes(null!=r?r:""))&&(a&&(d.live_overlay={type:"live_overlay",position:u?"bottom":"center",subtitle:i||(n?"@".concat(n):void 0)}),d.captions={type:"captions",position:u?["center","center"]:["center",700]})),l&&c&&(d.headline={type:"headline",text:c,position:m&&u?["center","center"]:["center",142]},d.legacy_watermark={type:"legacy_watermark",show:!1},delete d.live_overlay),d}},3843:function(e,t,n){n.d(t,{im:()=>a,wk:()=>i});let a={test1:"SubstackInc",badnews:"ryangrim",dmortberg:"danielortberg",offthechain:"APompliano",on:"SubstackInc",petition:"petition",popularinformation:"JuddLegum",shane:"shanesnow",signalproblems:"A_W_Gordon",sinocism:"niubi",taibbi:"mtaibbi",thefirstand15th:"tressiemcphd",thenewsletter:"jbouie",numlock:"WaltHickey"},i=900},54584:function(e,t,n){n(69843)},17460:function(e,t,n){n.d(t,{A:()=>r});var a=n(66067),i=n.n(a);function r(e){let{only_non_ascii:t=!1,useNamedReferences:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?i().encode(e||"",{useNamedReferences:n,decimal:!0,allowUnsafeSymbols:t}):e}},96400:function(e,t,n){let a;n.d(t,{KD:()=>w,TH:()=>j,ri:()=>N,uI:()=>O,xc:()=>v});var i=n(82776);let r=n(76190),o=(a=r&&r.hasOwnProperty("default")?r.default:r)();o.setLocale("de");let s=a();s.setLocale("ca");let l=a();l.setLocale("fr");let c=a();c.setLocale("es");let d=a();d.setLocale("pt");let u=a();u.setLocale("pt");let p=a();p.setLocale("it");let m=a();m.setLocale("tr");let h=a();h.setLocale("pl");let g=a();g.setLocale("nb");let _=a();_.setLocale("nl");let b=a();b.setLocale("sv");let f=a();f.setLocale("da");let A=a();A.setLocale("ja");let E=a();a().setLocale("en");let y=["en","ca","da","de","es","fr","ja","nb","nl","pl","pt","pt-br","it","tr","sv"],N=y.filter(e=>"en"!==e),O={"/going-paid":"/going-paid-i","/about":"/about-i"},v=[...new Set([...Object.keys(O),...Object.values(O),"/signup","/get-started"])],x=e=>({ca:s,da:f,de:o,es:c,fr:l,ja:A,pl:h,pt:d,"pt-br":u,it:p,tr:m,nb:g,nl:_,sv:b})[e]||E,S=e=>(Array.isArray(e)?(e[0]||"")+e.slice(1).map((e,t)=>"%".concat(t+1).concat(e)).join(""):e).toString(),w=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};if(a&&y.includes(a))return a;let i=null==(e=null!=t?t:null==n?void 0:n.pub)?void 0:e.language,r=n?M(n):void 0;return i||r||"en"},M=e=>{for(let t of C(e)){if(y.includes(t))return t;let e=t.split("-")[0];if(e&&y.includes(e))return e}return"en"},C=e=>{var t,n,a,i,r,o;let s=null!=(a=null==(t=e.appBuildNumber)?void 0:t.call(e))?a:0,l=(null==(n=e.clientPlatform)?void 0:n.call(e))!=="ios"||s>=4622,c=[];if(l){for(let t of null!=(o=null==(i=e.acceptsLanguages)?void 0:i.call(e))?o:[])if("*"!==t){let e=k(t);c.includes(e)||c.push(e)}let t=String(null==(r=e.locale)?void 0:r.language).toLowerCase();if(t){let e=k(t);c.includes(e)||c.push(e)}}return 0===c.length&&c.push("en"),c};function k(e){var t;return(e=e.toLowerCase(),y.includes(e))?e:null!=(t=e.split("-")[0])?t:"en"}let j={i:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=x("string"==typeof e?e:e?I({pub:e.pub}):"en");return{iString:function(e){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i3?i-3:0),o=3;o2?a-2:0),r=2;r1?n-1:0),i=1;i4?r-4:0),s=4;se}},p:e=>[e,null],l:(e,t)=>{let n=x(e),a=JSON.parse(JSON.stringify(t));n.loadJSON(a,"messages")},n:()=>{let e={},t={};return i.CORE_SUPPORTED_LANGUAGES.forEach(e=>{t[e]=j.i(e)}),e.iStringN=function(e){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{o[n]=t[n].iString(e,...a)}),o},e.iTemplateN=function(e){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{o[n]=t[n].iTemplate(e,...a)}),o},e.iPluralN=function(e,n,a){for(var r=arguments.length,o=Array(r>3?r-3:0),s=3;s{l[i]=t[i].iPlural(e,n,a,...o)}),l},e},s:e=>e};"undefined"!=typeof window?window.I18N=j:n.g.I18N=j},33333:function(e,t,n){function a(e){let{streamId:t}=e;return"live-stream:".concat(t)}n.d(t,{sl:()=>a}),RegExp("^live-stream:(?\\d+)$"),RegExp("^live-stream:(?\\d+)-pub:(?\\d+)$")},38704:function(e,t,n){function a(e,t,n){let a=new Map(e);return a.set(t,n),a}function i(e,t){let n=new Map(e);return n.delete(t),n}n.d(t,{Jb:()=>a,QT:()=>i})},56458:function(e,t,n){n.d(t,{Ed:()=>l,Fk:()=>o,XP:()=>s,a8:()=>c,m4:()=>d,wq:()=>u});var a=n(4016),i=n(27162);n(67734),n(39318),n(49807),n(82776);let r=function(e){let{usePreview:t=!1,useDraft:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(null==e?void 0:e.type){case"newsletter":return n?e.draftVoiceoverUpload:e.voiceoverUpload;case"podcast":if(t)return n?e.draftPodcastPreviewUpload:e.podcastPreviewUpload;return n?e.draftPodcastUpload:e.podcastUpload;case"video":return n?e.draftVideoUpload:e.videoUpload;default:return null}},o=function(e){let{usePreview:t=!1,useDraft:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let a=r(e,{usePreview:t,useDraft:n});if(a){var i;return null!=(i=a.duration)?i:null}if((null==e?void 0:e.type)==="podcast"&&!t){let t=n?e.draft_podcast_duration:e.podcast_duration;return null!=t?t:null}return null},s=e=>!!e&&"podcast"===e.type&&!!e.podcastUpload&&!!e.podcastUpload.is_free_preview,l=e=>{var t;let{post:n}=e;return!!n&&!!(null==(t=n.podcastFields)?void 0:t.free_podcast_url)},c=e=>{var t,n;return e.is_www?null!=(n=e.logo_url)?n:void 0:e.logo_url||e.cover_photo_url||e.author_photo_url||(null==(t=e.author)?void 0:t.photo_url)},d=e=>{var t,n,r;if((0,a.s7)({pub:e}))return"Founders";let o=e&&"plans"in e&&Array.isArray(null==e?void 0:e.plans)&&null!=(r=e.plans.find(e=>(0,i.T)({plan:e})))?r:null;return null!=(n=null==o||null==(t=o.metadata)?void 0:t.short_description)?n:null},u=e=>{var t,n,a,i,r;return!!(null==e||null==(a=e.videoUpload)||null==(n=a.extractedAudio)||null==(t=n.transcription)?void 0:t.transcript_url)||!!(null==e||null==(r=e.podcastUpload)||null==(i=r.transcription)?void 0:i.transcript_url)}},4016:function(e,t,n){n.d(t,{C3:()=>l,Tu:()=>c,V6:()=>r,lu:()=>o,s7:()=>i,zM:()=>s}),n(83673);let a=new Set([0x83c163a,0x82bc701,0x81adcb6,0x8455987,0x8487b09,0x85eb9a5,0x861de49,0x8653d00,0x868d293,0x86f9884,0x872b528,0x8798da8,0x87d48d6,0x8809a67,0x883f640,0x8961657,0x8aedf0b,0x8bc9b46,0x8559743,0x887329b,0x888f704,0x88a9886,0x8910626,0x8999664,0x89d3d02,0x8a084ae,0x8c6f81e,0x8cb3c01,0x8cf2aa9,0x90a54a4,0x9aa80e8]);function i(e){let{pub:t,includeTheRampart:n=!1}=e;return!!t&&(!!n&&1620566===t.id||87281===t.id)}let r=e=>"privatewires"===e?"https://privatewires.net":"pwprod"===e?"https://pirate-wires-island.vercel.app":"piratewires"===e?"https://www.piratewires.com":"thefreedomfrequency"===e?"https://thefreedomfrequency.org":"preamblestaging521"===e?"https://staging-thepreamble.vercel.app":"sharonmcmahon"===e?"https://thepreamble.com":void 0;function o(e){var t;let{pub:n}=e;return!!n&&[260347,3116199].includes(null!=(t=n.id)?t:0)}function s(e){let{post:t}=e;return!!t&&a.has(t.id)&&!!t.podcast_preview_upload_id}function l(e){let{pub:t}=e;return"privatewires"===t.subdomain||"pwprod"===t.subdomain||"piratewires"===t.subdomain}function c(e){var t;let{post:n,pub:a}=e;if(!l({pub:a}))return!1;let i=null!=(t=n.draft_section_id)?t:n.section_id;if(i&&a.sections){let e=a.sections.find(e=>e.id===i);if(e&&"Pirate Wires Daily"===e.name)return!0}return!1}},35884:function(e,t,n){n(82776)},46009:function(e,t,n){n.d(t,{j_:()=>l,lL:()=>s});var a=n(69277),i=n(70408),r=n(39318),o=n(49807);n(82776);let s=e=>{var t,n,s,l,c,d,u,p,m,h,g,_;let{fallbackToLogosInsteadOfGenericArt:b,pub:f,section:A}=e,E=null==A?void 0:A.podcastSettings,y=null!=(n=null!=(t=null==E?void 0:E.podcast_title)?t:null==A?void 0:A.name)?n:null,N=null!=(l=null!=(s=null==E?void 0:E.podcast_description)?s:null==A?void 0:A.description)?l:null,O=null!=(c=null==E?void 0:E.itunes_podcast_primary_category)?c:null,v=null!=(d=null==E?void 0:E.itunes_podcast_primary_subcategory)?d:null,x=null!=(u=null==E?void 0:E.itunes_podcast_secondary_category)?u:null,S=null!=(p=null==E?void 0:E.itunes_podcast_secondary_subcategory)?p:null,w=(null==E?void 0:E.itunes_explicit)||!1,I=(null==E?void 0:E.podcast_art_url)||(0,r.r$1)(),M=!(null==E?void 0:E.podcast_art_url)||(0,o.ScI)(E.podcast_art_url),C=(null==E?void 0:E.paid_podcast_episode_art_url)||null,k=(null==E?void 0:E.podcast_byline)||f.podcast_byline||f.author_name||"",j=null!=(h=null!=(m=null==E?void 0:E.language)?m:f.podcast_language)?h:"",L=!!E&&!!E.podcast_feed_url,R=L?E.podcast_feed_url:(0,r.mWT)({pub:(0,i._)((0,a._)({},f),{section:A})}),T=f.hide_podcast_from_pub_listings;return{title:y,description:N,primaryCategory:O,primarySubcategory:v,secondaryCategory:x,secondarySubcategory:S,isExplicit:w,artUrl:M&&b?null!=(_=null!=(g=A.logo_url)?g:f.logo_url)?_:"":I,byline:k,language:j,isRedirected:L,podcastRssUrl:R,paidEpisodeArtUrl:C,hidePodcastFromPubListings:T}},l=e=>{var t,n,i,s;let{fallbackToLogosInsteadOfGenericArt:l,pub:c}=e,d=c.podcast_title||c.name,u=c.podcast_description||c.hero_text,p=c.itunes_podcast_primary_category,m=c.itunes_podcast_primary_subcategory,h=c.itunes_podcast_secondary_category,g=c.itunes_podcast_secondary_subcategory,_=null!=(t=c.itunes_explicit)&&t,b=c.podcast_art_url||(0,r.r$1)(),f=!c.podcast_art_url||(0,o.ScI)(c.podcast_art_url),A=c.podcast_byline||c.author_name,E=null!=(n=c.podcast_language)?n:"",y=!!c.show_pub_podcast_tab,N=!!c.podcast_feed_url,O=(0,a._)({},c);delete O.section;let v=N?c.podcast_feed_url:(0,r.mWT)({pub:O}),x=c.hide_podcast_from_pub_listings;return{title:d,description:u,primaryCategory:p,primarySubcategory:m,secondaryCategory:h,secondarySubcategory:g,isExplicit:_,artUrl:f&&l?null!=(i=c.logo_url)?i:"":b,byline:A,language:E,isRedirected:N,podcastRssUrl:v,showPodcastTab:y,paidEpisodeArtUrl:null!=(s=c.paid_podcast_episode_art_url)?s:null,hidePodcastFromPubListings:x}}},46754:function(e,t,n){n.d(t,{QE:()=>s,RP:()=>l});var a=n(39318);let i=/^.*(https?:\/\/(?:www\.)?polymarket\.com\/event\/([^/\s?]+)(?:\/([^/\s?]+))?).*$/,r=/^.*(https?:\/\/(?:www\.)?polymarket\.com\/sports\/(?:[^/\s?]+\/)*([^/\s?]+)).*$/,o=/^.*(https?:\/\/(?:www\.)?polymarket\.com\/@([^/\s?]+)).*$/,s=e=>{var t,n,a;let s=i.exec(e);if(s)return null!=(t=s[1])?t:null;let l=r.exec(e);if(l)return null!=(n=l[1])?n:null;let c=o.exec(e);return c&&null!=(a=c[1])?a:null},l=e=>{if(!e)return null;let t="true"===new URL(e,"https://polymarket.com").searchParams.get("graphMode"),n=i.exec(e);if(n&&n[2]){let e=n[2],a=n[3]||void 0;return{eventSlug:e,marketSlug:a,isGraphMode:t,fullEmbedUrl:c(e,a,t)}}let a=r.exec(e);if(a&&a[2]){let e=a[2];return{eventSlug:e,marketSlug:void 0,isGraphMode:t,fullEmbedUrl:c(e,void 0,t)}}let s=o.exec(e);if(s&&s[2]){let e=s[2];return{profileName:e,isGraphMode:!1,fullEmbedUrl:d(e)}}return null},c=(e,t,n)=>{let i="".concat((0,a.$_T)(),"/embed/polymarket/").concat(e).concat(t?"/".concat(t):"");return n?"".concat(i,"?graphMode=true"):i},d=e=>"".concat((0,a.$_T)(),"/embed/polymarket/profile/").concat(e)},56262:function(e,t,n){n.r(t),n.d(t,{getAllAudiences:()=>u,getAudiencesForPublicListing:()=>p,getCommentAuthor:()=>w,getCoverImageUrl:()=>I,getDurationForPostPreview:()=>C,getFoundingAudiences:()=>h,getFreePodcastUrl:()=>M,getPaidAudiences:()=>m,getPostAuthor:()=>S,getPreamble:()=>k,isFoundingAudience:()=>_,isPaidAudience:()=>g,isSubscriptionLevel:()=>b,previewSubHasFullAccessToPost:()=>x,pubRoleHasFullAccessToPost:()=>O,pubRolesHaveFullAccessToPost:()=>v,subHasFullAccessToPost:()=>y,userHasCommentAccess:()=>N,userHasFullAccessToPost:()=>E});var a=n(69277),i=n(32641),r=n(82776);let o=["founding","only_paid","everyone","only_free"],s=["founding","only_paid","everyone"],l=["founding","only_paid"],c=["founding"],d=["free","paid","founding"];function u(){return[...o]}function p(){return[...s]}function m(){return[...l]}function h(){return[...c]}function g(e){return m().includes(e)}function _(e){return h().includes(e)}function b(e){return d.map(String).includes(e)}function f(e,t){if(!t||(null==e?void 0:e.subscription_publication_id)===t){if((null==e?void 0:e.is_founding)||(null==e?void 0:e.is_contributor))return"founding";if(null==e?void 0:e.is_subscribed)return"paid"}return"free"}function A(e){switch(e){case"founding":return["founding"];case"only_paid":return["paid","founding"];case"only_free":return["free"];case"everyone":return["free","paid","founding"];default:throw Error("Unknown audience: ".concat(e))}}function E(e,t){if(!t)return!1;if(!t.audience)throw Error("Post has no audience");if(e&&e.is_contributor&&e.subscription_publication_id===t.publication_id)return!0;let n=f(e,t.publication_id);return A(t.audience).includes(n)}function y(e,t){if(!t)return!1;if(!t.audience)throw Error("Post has no audience");let n=function(e,t){if(!t||(null==e?void 0:e.publication_id)===t){if((null==e?void 0:e.membership_state)==="subscribed"&&(null==e?void 0:e.is_founding))return"founding";if((null==e?void 0:e.membership_state)==="subscribed")return"paid"}return"free"}(e,t.publication_id);return A(t.audience).includes(n)}function N(e,t){if(!t)return!1;if(e&&e.is_contributor&&e.subscription_publication_id===t.publication_id)return!0;let n=f(e,t.publication_id);return"everyone"===t.write_comment_permissions?!!e:"only_paid"===t.write_comment_permissions&&("founding"===n||"paid"===n)}function O(e,t){if(!t)return!1;if(!t.audience)throw Error("Post has no audience");let n=(0,r.isAtLeastContributorRole)(null==e?void 0:e.role)||(null==e?void 0:e.membership_state)==="subscribed"&&(null==e?void 0:e.is_founding)?"founding":(null==e?void 0:e.membership_state)==="subscribed"?"paid":"free";return A(t.audience).includes(n)}function v(e,t){return!!(t&&O(null==e?void 0:e[t.publication_id],t))}function x(e,t,n){let{audienceOverride:a}=n;if(!t)return!1;if(!t.audience&&!a)throw Error("Post has no audience");return A(null!=a?a:t.audience).includes(e)}function S(e,t){var n;let o=null==t||null==(n=t.publishedBylines)?void 0:n[0];if(o)return o;let s=e.contributors.find(e=>e.owner);if(s){let{user_id:e}=s,t=(0,i._)(s,["user_id"]);return(0,a._)({id:e},t)}let l=e.contributors.find(e=>(0,r.isAtLeastContributorRole)(e.role));if(l){let{user_id:e}=l,t=(0,i._)(l,["user_id"]);return(0,a._)({id:e},t)}return{id:e.author_id,name:e.author_name,photo_url:e.author_photo_url,bio:e.author_bio}}function w(e){var t,n,a,i,r,o,s,l,c,d,u,p,m,h,g,_,b,f;return{id:null!=(c=null!=(l=null==(t=e.user)?void 0:t.id)?l:e.user_id)?c:-1,name:null!=(u=null!=(d=null==(n=e.user)?void 0:n.name)?d:e.name)?u:"",handle:null!=(p=null==(a=e.user)?void 0:a.handle)?p:e.handle,photo_url:null!=(m=null==(i=e.user)?void 0:i.photo_url)?m:e.photo_url,bestseller_tier:null!=(g=null!=(h=null==(r=e.user)?void 0:r.bestseller_tier)?h:e.user_bestseller_tier)?g:null,status:null!=(b=null!=(_=null==(o=e.user)?void 0:o.status)?_:e.userStatus)?b:null,primary_publication:null!=(f=null==(s=e.user)?void 0:s.primary_publication)?f:e.user_primary_publication}}function I(e){return!e.cover_image||/12634ced-0eb6-4238-a94a-70ab242c5ad8/.test(e.cover_image)||/fa15c776-f514-42fe-8ee0-4c94148a0a8a/.test(e.cover_image)||/8826edac-0d50-4ba0-b861-f3ed9336878b/.test(e.cover_image)||/49be2356-6491-4a6f-84a5-15e99d23b6d1/.test(e.cover_image)?null:e.cover_image}function M(e){var t,n;let{post:a}=e;return null!=(n=null==(t=a.podcastFields)?void 0:t.free_podcast_url)?n:null}function C(e){var t,n,a,i,r,o,s,l;let{post:c}=e;return null!=(l=null!=(s=null!=(o=null!=(r=null==(t=c.videoUpload)?void 0:t.duration)?r:null==(a=c.podcastUpload)||null==(n=a.full_podcast_info)?void 0:n.duration)?o:null==(i=c.podcastUpload)?void 0:i.duration)?s:c.podcast_duration)?l:0}function k(e,t,n){let{is_freemail:a,is_free_preview:i,sectionEmailRenderElements:o}=n,s=(e,n)=>{var a,i;let r=!("section"in t&&(null==(a=t.section)?void 0:a.ignore_publication_email_settings));return null!=(i=null==o?void 0:o[n])?i:r?null==e?void 0:e[n]:null};return i?s(e.email_render_elements,"free_preview_preamble"):(0,r.isPaidPub)(e)?"everyone"===t.audience?s(e,a?"public_post_free_signup_preamble":"public_post_subscriber_preamble"):g(t.audience)?s(e,"subscriber_post_subscriber_preamble"):void 0:s(e.email_render_elements,"email_preamble_for_free_writer")}},9740:function(e,t,n){function a(e,t){if(e){if(e.author_id===t)return!0;for(let n of e.contributors)if(n.user_id===t)return!0}return!1}n.d(t,{Ie:()=>a}),n(83673),n(16291),n(39318),n(82776)},59167:function(e,t,n){n.d(t,{h:()=>r});var a=n(16291);function i(e){var t;let n=[e.is_primary,(null==(t=e.publication)?void 0:t.author_id)===e.user_id,"admin"===e.role,"contributor"===e.role].map(e=>e?"0":"1").join("");return"".concat(n,"-").concat((0,a.A)(e.created_at).valueOf())}function r(e){return e.slice(0).sort((e,t)=>i(e)>i(t)?1:-1)}},19601:function(e,t,n){n(56262)},58278:function(e,t,n){n.d(t,{JG:()=>s,d9:()=>o,uB:()=>l});var a=n(12550),i=n.n(a),r=n(82776);let o=function(e){let{softMax:t=32,hardMax:n=48,extension:a=!1,extensionSeparator:r="-"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=s(e);if(o.length>t){let e=o.indexOf("-",t);-1!==e&&(o=o.substr(0,e))}o.length>n&&(o=o.substr(0,n));let l=a&&"string"==typeof a?a:i()().substr(0,3);return o?a&&(o+="".concat(r).concat(l)):o=l,o},s=function(e){let{hashIfEmpty:t=!1,allowUnicode:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(e||"").toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(n?RegExp("[^\\p{L}\\p{N}-]+","gu"):/[^\w-]+/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"");return e&&"string"==typeof e&&!a&&t?Array.from(e).map(e=>e.codePointAt(0)).map(e=>{var t;return null!=(t=null==e?void 0:e.toString(16))?t:""}).join("").substring(0,12):a},l=(e,t)=>s((0,r.truncateText)(e,500,{ellipsis:""}),{allowUnicode:t})},96301:function(e,t,n){n.d(t,{KB:()=>i,cE:()=>r}),n(4016);let a=new Set(["subscribed","free_signup"]);function i(e){return a.has(e)}function r(e,t){if(!e)return!1;if(!t)return!0;let n=["unsubscribed","free_signup","subscribed"];return n.indexOf(e)>=n.indexOf(t)}},463:function(e,t,n){n.d(t,{P2:()=>r,sG:()=>i});var a=n(52482);function i(e){return e&&r(e).pop()||null}function r(e){return(0,a.find)(e).filter(e=>"url"===e.type&&e.href.startsWith("http"))}},86898:function(e,t,n){n(4016)},50129:function(e,t,n){n.d(t,{CP:()=>r,_d:()=>o,bO:()=>s});var a,i,r=((a={}).Removed="removed",a.Unavailable="unavailable",a.BlockedYou="blocked-you",a.YouBlocked="you-blocked",a.YouMuted="you-muted",a.Geoblocked="geoblocked",a);function o(e){return"missing"===e.type}var s=((i={}).comments_disabled="comments_disabled",i.free_subscription_required="free_subscription_required",i.paid_subscription_required="paid_subscription_required",i.founding_subscription_required="founding_subscription_required",i)},75914:function(e,t,n){n.d(t,{j3:()=>i,tL:()=>r});var a,i=((a={}).Base="base",a.Secondary="secondary",a.Topic="topic",a.Category="category",a);function r(e,t){var n,a;return"post"===e.type&&!!e.mediaClip||"comment"===e.type&&!!(null==(n=e.comment.attachments)?void 0:n.some(e=>"post"===e.type&&e.mediaClip))||(t&&"attachments"in t?!!(null==(a=t.attachments)?void 0:a.some(e=>"post"===e.type&&e.mediaClip)):!!(t&&"mediaClip"in t&&t.mediaClip))}},47851:function(e,t,n){n.d(t,{mn:()=>a});let a={comp_one_month:"1 month comp",comp_three_months:"3 month comp",comp_six_months:"6 month comp",comp_nine_months:"9 month comp",comp_twelve_months:"12 month comp",custom:"Custom"}},26911:function(e,t,n){n.d(t,{j3:()=>a.j3,hn:()=>i.h,tL:()=>a.tL}),n(15606);var a=n(75914);n(23246);var i=n(53217);n(96129)},49807:function(e,t,n){n.d(t,{$_T:()=>l.$_,AF5:()=>M,BpC:()=>l.Bp,Bss:()=>F,Bte:()=>x,D0i:()=>p.D0,Dlv:()=>C,Dor:()=>R,EVw:()=>u.EV,EWE:()=>l.EW,Ewe:()=>l.Ew,FCy:()=>p.FC,Hj9:()=>j,Hr8:()=>c.Hr,Ip$:()=>f,JQq:()=>D,M$q:()=>c.M$,RYA:()=>c.RY,Rtp:()=>K,SJN:()=>y,ScI:()=>Y,Sns:()=>L,Tkp:()=>c.Tk,UUj:()=>O,Vvu:()=>c.Vv,Xrv:()=>N,Z96:()=>E,Zgx:()=>c.Zg,_h3:()=>v,bzS:()=>k,d4Y:()=>u.d4,d5y:()=>l.d5,dJ9:()=>u.dJ,e$6:()=>b,eV6:()=>_,eX$:()=>p.eX,ehp:()=>W,fmI:()=>h.fm,gAK:()=>U,gYq:()=>h.gY,j5y:()=>I,jS:()=>G,k5Q:()=>H,kGL:()=>c.kG,muC:()=>A,oT5:()=>c.oT,q$n:()=>c.q$,qdI:()=>l.qd,rfn:()=>h.rf,sWz:()=>w,sXh:()=>l.sX,stX:()=>p.st,tLs:()=>B,w4p:()=>l.w4,wVQ:()=>T,wu9:()=>p.wu,xJz:()=>l.xJ,xWO:()=>S,yRP:()=>l.yR});var a=n(69277),i=n(70408),r=n(98111),o=n(4016),s=n(58278),l=n(92636),c=n(70189),d=n(41086),u=n(39891),p=n(18947),m=n(82776),h=n(28700);let g="/".concat("chat");function _(e){let{root:t,user:n,addBase:a,skipToken:i=!1,doNotAutoSubmit:r=!1,params:o={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t?/[&?]$/.test(t)||(t.includes("?")||t.endsWith("%%")?t+="&":t+="?"):t=a?"".concat((0,l.$_)(e),"/subscribe?"):"/subscribe?",null==n?void 0:n.email)o.autoSubmit=!r,o.email=null==n?void 0:n.email;else if(!o.token&&!i){var s;o.token="undefined"!=typeof window&&(null==(s=window._preloads)?void 0:s.original_url)?(0,d.y)(window._preloads.original_url,"token"):null}return t+(0,l.Bp)(o)}function b(e){var t,n;let{pubId:a,postId:i,commentId:r,params:o,noBase:s,jumpToDestination:c}=e,d=!c&&(0,l.PH)()&&(!a||"undefined"!=typeof window&&(null==(n=window._preloads)||null==(t=n.pub)?void 0:t.id)===a),u=d?"/publish":s?"":(0,l.Ew)();return(0,l.yR)("".concat(u,"/chat").concat(a&&!d?"/".concat(a):"").concat(i?"/post/".concat(i):"").concat(r?"/reply/".concat(r):""),o)}function f(e){let{addBase:t,baseUrlOptions:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?(0,l.$_)(e,n):"";return"".concat(a,"/publish")}function A(e){let{addBase:t=!1,baseUrlOptions:n={},section:a="",params:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,l.yR)("".concat(f(e,{addBase:t,baseUrlOptions:n}),"/settings"),i);return a&&(r+="#".concat(a)),r}function E(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?(0,l.$_)(e):"",i="".concat(a,"/publish/home");return n?(0,l.yR)(i,n):i}function y(e){let{addBase:t,params:n,referrer:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t?(0,l.$_)(e):"",s="".concat(o,"/meetings"),c=(0,i._)((0,a._)({},n),{referrer:r});return n||r?(0,l.yR)(s,c):s}function N(e){let{liveStreamId:t,utm_source:n,utm_campaign:i,params:r}=e;return(0,l.yR)("".concat((0,l.qd)(),"/live-stream/").concat(t),(0,a._)({utm_source:n,utm_campaign:i},r))}function O(e){let{liveStreamId:t,utm_source:n,utm_campaign:i,noBase:r,params:o}=e,s=r?"":(0,l.$_)();return(0,l.yR)("".concat(s,"/live-stream/").concat(t),(0,a._)({utm_source:n,utm_campaign:i},o))}function v(e){let{tab:t,utm_source:n,utm_campaign:a,redirect:i}=e;return(0,l.yR)("".concat((0,l.qd)(),"/").concat(t),{utm_source:n,utm_campaign:a,redirect:i})}function x(e){let{subdomain:t,utm_source:n,utm_campaign:a,redirect:i}=e;return(0,l.yR)("".concat((0,l.qd)(),"/pub/").concat(t),{utm_source:n,utm_campaign:a,redirect:i})}function S(e){let{pubKey:t,utm_source:n,utm_campaign:a,r:i,redirect:r,modal:o}=e;return(0,l.yR)("".concat((0,l.qd)(),"/pub/").concat(t,"/chat"),{utm_source:n,utm_campaign:a,redirect:r,modal:o,r:i})}function w(e){let{postId:t,targetReplyId:n,utm_source:a,utm_campaign:i,showTarget:r,redirect:o,modal:s}=e;return(0,l.yR)("".concat((0,l.qd)(),"/chat/posts/").concat(t),{target_reply_id:n,utm_source:a,utm_campaign:i,showTarget:r,redirect:o,modal:s})}function I(e){let{commentId:t,targetReplyId:n,utm_source:a,utm_campaign:i,showTarget:r,redirect:o,modal:s}=e;return(0,l.yR)("".concat((0,l.qd)(),"/chat/replies/").concat(t),{target_reply_id:n,showTarget:r,utm_source:a,utm_campaign:i,redirect:o,modal:s})}function M(e){let{urlParams:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.Zg)(e,{baseUrl:(0,l.qd)(),urlParams:t})}function C(e){let t=e.trim();if(/\s/.test(t))return null;try{let e=new URL(t);if(!["http:","https:"].includes(e.protocol))return null;return e}catch(e){return null}}let k=(e,t,n,a)=>{switch(e){case"user":default:return function(e){let{user_id:t,user_name:n,utm_source:a,utm_campaign:i,redirect:r}=e,o="".concat((0,l.qd)(),"/users/").concat(t),c=(0,s.JG)(n,{hashIfEmpty:!0});return c&&(o+="-".concat(c)),(0,l.yR)(o,{utm_source:a,utm_campaign:i,redirect:r})}({user_id:t,user_name:n,utm_source:"mentions"});case"pub":return a?(0,l.yR)(a,{utm_source:"mentions"}):""}};function j(e){if(e){if(e.startsWith(l.w4)||e.startsWith("https://res.cloudinary.com")||e.startsWith("https://bucketeer"))return!0;let t="https://".concat((0,m.getPostMediaBucketName)(),".s3.amazonaws.com");if(e.startsWith(t))return!0}return!1}function L(e){return!!function(e){let t;if(!e)return null;try{t=new URL(e)}catch(e){return null}if(!t.hostname.startsWith("open.substack.com"))return null;let n=/\/pub\/([^/?#]+)\/p\/([^/?#]+)/.exec(t.pathname);return n&&n[1]&&n[2]?{subdomain:n[1],slug:n[2],urlParams:Object.fromEntries(t.searchParams)}:null}(e)}function R(e){let{addBase:t,section:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(n=n||(null==e?void 0:e.section)))throw Error("Section not found");let a=t?(0,l.$_)(e):"";return"".concat(a,"/s/").concat(n.slug||n.id)}let T=e=>{var t;let n="".concat(null!=(t=null==e?void 0:e.base)?t:"","/api/v1/fb/auth");return e?(0,l.yR)(n,e):n};function P(e){var t;let n=e.match(/^https?:\/\/open\.substack\.com(?:\.localhost:5000)?\/pub\/([^\/]+)/);return n||(n=e.match(/^https?:\/\/([^\.]+)\.substack\.com/))?null!=(t=n[1])?t:null:null}function D(e){let{url:t,currentSubdomain:n,currentCustomDomain:a}=e;if(L(t))return n===P(t);let i=!!t.match(/http:\/\/\w*\.substack\.com\.localhost:5000/),r=n?(0,o.V6)(n):void 0;return r?new URL(r).hostname.replace(/^www\./,"")===new URL(t).hostname.replace(/^www\./,""):a&&!i?a.replace(/^www\./,"")===new URL(t).hostname.replace(/^www\./,""):n===P(t)}let B=function(e,t){let{addBase:n,params:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(null==e?void 0:e.id))return"";let r=n?(0,l.$_)(e):"";return(0,l.yR)("".concat(r,"/leaderboard?"),(0,a._)({},i,(null==t?void 0:t.id)&&{referrer_token:t.id.toString(36)}))},U=(e,t)=>{if(!e)return"";let n=(0,l.$_)(e);return"".concat(r.T.SURVEY_URL_PREFIX).concat(n,"/survey/").concat(t,"?token=").concat(r.T.SURVEY_TOKEN)};function G(e){return"".concat((0,l.Ew)(),"/browse/").concat(e)}function F(e,t){return(0,l.c$)("/collection/".concat(e),t)}function W(e){return(0,l.c$)(g,e)}function Y(e){return!!e&&e.includes("generic.png")}function K(e){let{categoryId:t,ranking:n,utm_source:a,focusedPubId:i,backAction:r}=e;return(0,l.yR)("".concat((0,l.$_)(),"/leaderboard/").concat(t).concat("for-you"===t?"":"/".concat("trending"===n?"rising":n)),{utm_source:a,focusedPubId:i,backAction:r})}function H(e){let{query:t,utm_source:n,fromSuggestedSearch:a,searching:i}=e;return(0,l.yR)("/search/".concat(encodeURIComponent(t)),{utm_source:n,fromSuggestedSearch:a,searching:i})}},39318:function(e,t,n){n.d(t,{$_T:()=>_.$_T,BpC:()=>_.BpC,Cv_:()=>eN,D09:()=>g.D0,DNs:()=>j,DS2:()=>eb,Dlv:()=>_.Dlv,EVw:()=>_.EVw,EWE:()=>_.EWE,EZZ:()=>es,Erh:()=>m.Er,Ewe:()=>_.Ewe,Gn4:()=>ei,H10:()=>em,Ji1:()=>g.Ji,JlH:()=>X,LNy:()=>V,M:()=>w,MYz:()=>el,Pzx:()=>eh,Q5N:()=>e_,RPh:()=>en,RY1:()=>K,T$x:()=>ec,U4Y:()=>q,UuW:()=>eg,W$o:()=>h.W$,WY0:()=>T,XV8:()=>M,Xt9:()=>k,YL9:()=>ed,Z96:()=>_.Z96,ZEl:()=>A,a7q:()=>H,aJp:()=>F,b1y:()=>eu,bgT:()=>er,c8C:()=>I,cxW:()=>f.cx,cxh:()=>eO,dJ9:()=>_.dJ9,eV6:()=>J,f5H:()=>Z,fOI:()=>y,fxv:()=>P,gKg:()=>eE,gWk:()=>D,gYq:()=>_.gYq,hdL:()=>O,mWT:()=>$,man:()=>ey,muC:()=>_.muC,my9:()=>R,nqe:()=>G,oMA:()=>v,oOP:()=>N,oRR:()=>E,oSl:()=>eo,oT5:()=>u.oT,pIF:()=>g.pI,q$g:()=>x,qCG:()=>ev,qy7:()=>C,r$1:()=>eA,rfn:()=>_.rfn,rmE:()=>ep,sTG:()=>ex,stX:()=>_.stX,t77:()=>W,tFi:()=>U,tbS:()=>ea,uoh:()=>Q,wHz:()=>f.wH,wpu:()=>Y,wu9:()=>_.wu9,x0e:()=>B,xPB:()=>z,yRA:()=>L,yRP:()=>_.yRP,zw3:()=>f.zw});var a=n(69277),i=n(70408),r=n(32641),o=n(69843),s=n.n(o);n(3843);var l=n(66684),c=n(4016),d=n(58278),u=n(70189),p=n(9036),m=n(18947),h=n(28700),g=n(46058),_=n(49807),b=n(57324),f=n(55298);let A="https://substack.link/publication-ban-appeal";function E(e,t){let{skipHash:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof e&&(t=e,e=document.location.pathname+document.location.search+document.location.hash);let a=(0,_.yRP)(e.split("?")[0].split("#")[0],Object.assign((0,p.m)(e),t));return -1===e.indexOf("#")||n||(a+=e.substr(e.indexOf("#"))),a}(0,_.$_T)();let y=function(e){let{params:t={},signedIn:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,_.D0i)(n,e);return(0,_.yRP)("".concat((0,_.$_T)(e),"/"),(0,a._)({lli:i},t))},N=e=>!e||!e.startsWith("/")||e.startsWith("//")||!/\.svg(\?|#|$)/.test(e)?e:"".concat(_.w4p,"/").concat(e),O=e=>{let t=(0,_.Ewe)();return"".concat(t,"/discover/stocks/").concat(e)},v=(e,t)=>{let n=(0,_.$_T)({subdomain:"admin"});return(0,_.yRP)("".concat(n,"/customer_support_mode"),{for_pub:t?t.subdomain:void 0,redirect:e})},x=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_.xJz;return(0,_.yRP)((0,_.d5y)("".concat("reader",".").concat(t)),{utm_source:e})},S=function(e){let{query:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_.xJz;return(0,_.yRP)("".concat((0,_.d5y)(n)).concat(e),t)},w=e=>S("/activity",{query:e}),I=e=>S("/inbox/saved",e),M=function(e,t){let{params:n={},redirect:i=null,source:r=null,postUuid:o=null,inbox:s=null,hostOverride:l=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!t)return"";let c=l?o?"".concat(l,"/p/").concat(o):"".concat(l,"/p/").concat(t):o?"".concat((0,_.qdI)(),"/pub/").concat(e,"/drafts/").concat(o):"".concat((0,_.qdI)(),"/pub/").concat(e,"/p/").concat(t),d=(0,a._)({utm_source:r,redirect:i,inbox:s},n);return(0,_.yRP)(c,d)},C=function(e){let{params:t,section:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n?"/s/".concat(n.slug||n.id):"";return(0,_.yRP)("".concat(a,"/archive"),t)},k=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?(0,_.$_T)(e):"";return(0,_.yRP)("".concat(a,"/archive"),n)},j=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?(0,_.$_T)(e):"";return(0,_.yRP)("".concat(a,"/about"),n)},L=function(e){let t,{params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.primary_publication)t=(0,_.$_T)(e.primary_publication);else{if(!e.subdomain)return;t=(0,_.$_T)({subdomain:e.subdomain})}let a="".concat(t,"/publish/home");return(0,_.yRP)(a,n)},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,_.yRP)("".concat((0,_.$_T)(e),"/subscribe"),t);return -1===n.indexOf("?")?"".concat(n,"?"):n},T=function(e){return"".concat((0,_.$_T)(e),"/subscribe?plan=founding&")},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)("/account/login",e)},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?(0,_.yRP)("".concat((0,_.Ewe)(),"/refer/").concat(e),t):null},B=function(){let{utm_source:e,utm_content:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)("".concat((0,_.Ewe)(),"/referral"),{utm_source:e,utm_content:t})},U=function(){let{utm_source:e,section:t,highlightNotification:n,modal:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)("".concat((0,_.Ewe)(),"/settings"),{utm_source:e,section:t,highlightNotification:n,modal:a})},G=function(){let{highlight:e,utm_source:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return U({section:"notifications",highlightNotification:e,utm_source:t})},F=e=>"".concat((0,_.$_T)(e),"/?utm_source=").concat(b.VU.substack,"&utm_medium=").concat(b.Jn.email,"&utm_content=").concat(b.fL.share,"&action=share"),W=(e,t)=>{var{startAtSubscribeFlow:n}=t,i=(0,r._)(t,["startAtSubscribeFlow"]);let o="".concat((0,_.$_T)(e),"/listen");if(i){let e=(0,_.BpC)(i);e&&(o+="?".concat(e))}return n?J(e,(0,a._)({addBase:!0,next:o,skipPodcastSetupPage:!0},i)):o},Y=function(e){var t;let{addBase:n,params:r,noSection:o,section:s,user:l,startAtSubscribeFlow:d}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u="";if(n&&(u+=(0,_.$_T)(e)),(s=null!=(t=null!=s?s:(null==e?void 0:e.is_www)?null:null==e?void 0:e.section)?t:null)&&!o&&(u+="/s/".concat(s.slug||s.id)),u+="/account/add-podcast",l&&l.email&&!(0,c.lu)({pub:e})&&(r=(0,i._)((0,a._)({},r),{email:l.email}),u+="/email"),r){let e=(0,_.BpC)(r);e&&(u+="?".concat(e))}return d?J(e,(0,a._)({addBase:!0,next:u,skipPodcastSetupPage:!0},r)):u},K=e=>{let{useOriginalUrl:t}=e;if(t&&"undefined"!=typeof window&&window._preloads.original_url)try{let e=new URL(window._preloads.original_url);return"".concat(e.pathname).concat(e.search).concat(e.hash)}catch(e){}return"".concat(document.location.pathname).concat(document.location.search).concat(document.location.hash)},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{for_pub:t,email:n,prefilled_email:a,with_password:i,error:r,message:o,change_user:s,justTrying:l,useOriginalUrl:c,isOAuth:d,only_allow_signin:u}=e,{redirect:p}=e;return"string"!=typeof p&&(p=K({useOriginalUrl:null!=c&&c})),(0,_.yRP)("".concat((0,_.Ewe)(),"/sign-in"),{redirect:p,for_pub:t,email:n,prefilled_email:a,with_password:i,error:r,message:o,change_user:s,justTrying:l,isOAuth:d,only_allow_signin:u})},V=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)("".concat((0,_.Ewe)(),"/welcome"),{utm_source:e})},z=function(){let{isAbbreviated:e,redirect:t,postRedirectToast:n,pubId:i=null,referringUserKey:r=null,params:o={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=null;if(t)try{s=new URL(t),n&&s.searchParams.set("profile-setup-message",n)}catch(e){s=new URL((0,_.Ewe)())}let l=(0,a._)({action:"signup",isAbbreviated:e,redirect:s?s.toString():null,pubId:i},o);return r&&(l.r=r),(0,_.yRP)("".concat((0,_.Ewe)(),"/"),l)},q=(e,t)=>"".concat((0,_.Ewe)(),"/discover").concat(e?"/category/".concat(e.slug):"/recomendations").concat("all"===t?"/all":"");function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var{signedIn:n=!1,addBase:i=!1,root:o,user:s}=t,l=(0,r._)(t,["signedIn","addBase","root","user"]);let c=(0,_.D0i)(n,e);return(0,_.eV6)(e,{root:o,user:s,addBase:i,params:(0,a._)({},void 0===c?{}:{lli:c},l)})}let Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E("".concat((0,_.Ewe)(),"/signup"),e)},X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E("".concat((0,_.Ewe)(),"/signup/import"),e)},Q=function(e){let{addBase:t=!1,baseUrlOptions:n={},params:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,_.yRP)("".concat((0,_.Ip$)(e,{addBase:t,baseUrlOptions:n}),"/stripe-import"),a)},$=e=>{let{pub:t,token:n=null}=e,{section:a}=t;if(a){var i;return(null==(i=a.podcastSettings)?void 0:i.podcast_feed_url)?a.podcastSettings.podcast_feed_url:ee({pubId:t.id,sectionId:a.id,token:n})}return t.podcast_feed_url?t.podcast_feed_url:ee({pubId:t.id,sectionId:null,token:n})};function ee(e){let{pubId:t,sectionId:n,token:a}=e;if(n){let e="".concat((0,_.$_T)({subdomain:"api"}),"/feed/podcast/").concat(t,"/s/");return a?e+="".concat(n,"/private/").concat(a,".rss"):e+="".concat(n,".rss"),e}let i="".concat((0,_.$_T)({subdomain:"api"}),"/feed/podcast/").concat(t);return a?i+="/private/".concat(a,".rss"):i+=".rss",i}let et=function(e){let{noOverride:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.support_email&&!t?e.support_email:"support+".concat(e.subdomain,"@substack.com"):"support@substack.com"},en=(e,t)=>"https://support.substack.com/hc/en-us?s=".concat(encodeURIComponent(et(e,t))),ea=e=>{let{noteId:t,variant:n,type:a,aspectRatio:i="stories"}=e;return(0,_.yRP)("".concat((0,_.$_T)(),"/api/v1/note/asset/").concat(t,"/").concat(n,"/").concat(a),{aspectRatio:"stories"===i?void 0:"grid"})},ei=e=>{var t,n;let a;return(a=(0,_.Dlv)(e))&&a.pathname.startsWith("/p/")&&null!=(n=null==(t=(0,_.Dlv)(e))?void 0:t.pathname.split("/")[2])?n:null},er=function(){let{redirect:e,for_pub:t,utm_source:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=e||"",(0,_.yRP)("".concat((0,_.Ewe)(),"/sign-out"),{redirect:e,for_pub:t,utm_source:n})},eo=550,es=728,el=[424,848,1272,1456],ec=1200,ed=2880,eu=320,ep=550,em=function(e){var t,n;let{post:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let i="substack-video";if("audio"===e.media_type&&(s()(e.thumbnail_id)||1===e.thumbnail_id))return null==a||null==(t=a.podcast_episode_image_info)?void 0:t.url;let r=e.post_id?"https://".concat(i,".s3.amazonaws.com/video_upload/post/").concat(e.post_id):"https://".concat(i,".s3.amazonaws.com/video_upload/user/").concat(e.user_id);return"".concat(r,"/").concat(e.id,"/transcoded-").concat((null!=(n=e.thumbnail_id)?n:1).toString().padStart(5,"0"),".png")},eh=function(e){var t;let{isStatic:a,post:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{videoPlayerDimensions:r}=n(82776),{height:o,width:s}=r(e,{isStatic:a});return(0,_.dJ9)(null!=(t=em(e,{post:i}))?t:"",2*s,{crop:s/o<1920/1080?"pad":"fill",height:2*o,trailingSegments:a?["l_".concat("play_button_usfui2",",w_144,e_colorize:0")]:[]})},eg=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,_.yRP)("https://substack.com/app-link/publications/".concat(e.id,"/drafts/").concat(t),n)},e_=e=>(0,_.yRP)("substack://sign-in/challenge",{token:e}),eb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)("".concat((0,_.Ewe)(),"/app"),e)},ef=function(){let{pathOnly:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="/img/podcast/generic.png";return e?t:"".concat((0,_.Ewe)()).concat(t)},eA=()=>{let e=ef({pathOnly:!0});return(0,_.dJ9)(e,1400)},eE=e=>(0,_.yRP)("https://twitter.com/intent/tweet",e),ey=e=>{let{text:t,query:n}=e;return(0,_.yRP)("https://bsky.app/intent/compose",(0,i._)((0,a._)({},n),{text:t}))},eN=e=>{var t;let{post:n,height:a}=e;return(null==(t=n.videoUpload)?void 0:t.is_mux)?"/api/v1/video/upload/".concat(n.videoUpload.id,"/preview.gif?height=").concat(a):null},eO=e=>{let{userId:t,pub:n,addBase:a=!1}=e;if(!n.authorPagesInfo)return null;let i=n.authorPagesInfo.find(e=>e.user_id===t);if(!i)return null;let r=a?(0,_.$_T)(n):"";return"".concat(r,"/w/").concat((0,d.d9)(i.name))},ev=e=>{let{campaignId:t,medium:n,userId:a,pubId:i,url:r,postId:o,referrer:s}=e,c=null;r&&(c=encodeURIComponent((0,l.A)(r)));let d=null;s&&(d=encodeURIComponent((0,l.A)(s)));let u=o?String(o).replace(/\D/g,""):null;return o&&/\D/.test(String(o))&&console.log('Corrupted postId detected: "'.concat(o,'" (cleaned to: "').concat(u,'")'),{medium:n,campaignId:t,pubId:i,userId:a,url:r,postId:o}),"".concat((0,_.$_T)(),"/sponsorship-campaigns/").concat(t,"/link?pub_id=").concat(i,"&medium=").concat(n).concat(a?"&user_id=".concat(a):"").concat(u?"&post_id=".concat(u):"").concat(d?"&referrer=".concat(d):"").concat(c?"&url=".concat(c):"")},ex=e=>{let{campaignId:t,pub:n}=e;return"".concat((0,_.$_T)(n),"/publish/sponsorship-campaigns/").concat(t)}},55298:function(e,t,n){n.d(t,{cx:()=>r,wH:()=>i,zw:()=>o});var a=n(92636);let i=e=>(0,a.yR)("".concat((0,a.Ew)(),"/app/app-store-redirect"),e),r=e=>(0,a.yR)("".concat((0,a.Ew)(),"/app/get-ios"),e),o=e=>(0,a.yR)("".concat((0,a.Ew)(),"/app/get-android"),e)},70189:function(e,t,n){n.d(t,{EX:()=>A,Hr:()=>R,Kg:()=>T,M$:()=>S,RV:()=>w,RY:()=>O,Tk:()=>P,Vv:()=>M,XX:()=>L,Zg:()=>v,a5:()=>C,g0:()=>b,kG:()=>I,n:()=>f,oT:()=>E,pi:()=>k,q$:()=>N,st:()=>y,w1:()=>x});var a=n(69277),i=n(56262),r=n(26911),o=n(92636),s=n(28700),l=n(82776);new RegExp("/(".concat(Object.values(r.j3).join("|"),")/([^\\/]+)"));let c=/^\/profile\/(\d+)-([^\/]+)\/note\/c-(\d+)(\/stats|\/replies)?$/,d=/^\/profile\/(\d+)-([^\/]+)\/note\/p-(\d+)$/,u=/^\/profile\/(\d+)-([^/]+)\/note\/m-([^/]+)$/,p=/^\/inbox\/post\/(\d+)$/,m=/^\/@[^\/]+\/note\/c-(\d+)(\/stats|\/replies)?$/,h=/^\/@[^\/]+\/note\/p-(\d+)$/,g=/^\/@[^/]+\/note\/m-([^/]+)$/,_=RegExp("/home/(short|post)/p-(\\d+)");function b(e){return(null==e?void 0:e.type)==="post"||(null==e?void 0:e.type)==="postViewer"}function f(e){let t=e.match(d),n=null==t?void 0:t[2];if(t&&n)return{type:"post",id:Number(t[3]),author:{id:Number(t[1]),name:n}};let a=e.match(p);if(a)return{type:"post",id:Number(a[1])};let i=e.match(h);if(i)return{type:"post",id:Number(i[1])};let r=e.match(g);if(r){let e=r[1];if(e&&(0,l.isUUID)(e))return{type:"media_clip",id:e}}let o=e.match(u);if(o){let e=o[3],t=o[2];if(e&&t&&(0,l.isUUID)(e))return{type:"media_clip",id:e,author:{id:Number(o[1]),name:t}}}let s=e.match(_);return s?{type:"short"===s[1]?"post":"postViewer",id:Number(s[2])}:null}function A(e){let t=e.match(c);if(t){let e=t[3],n=t[2];if(e&&n)return{type:"comment",id:Number(e),author:{id:Number(t[1]),name:n},isStats:"/stats"===t[4],isReplies:"/replies"===t[4]}}let n=e.match(m);return n?{type:"comment",id:Number(n[1]),isStats:"/stats"===n[2],isReplies:"/replies"===n[2]}:null}function E(){var e;let{baseUrl:t,urlParams:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="/",i=null!=t?t:(0,o.Ew)();return"undefined"!=typeof window&&(null==(e=window.location.href)?void 0:e.startsWith(i))||(a=i+a),(0,o.yR)(a,n)}function y(){var e;let{baseUrl:t,urlParams:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="/home/suggestions",i=null!=t?t:(0,o.Ew)();return"undefined"!=typeof window&&(null==(e=window.location.href)?void 0:e.startsWith(i))||(a=i+a),(0,o.yR)(a,n)}function N(e,t){var n,a;let{noBase:r,urlParams:l,mediaClip:c}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=(null==(n=t.publishedBylines)?void 0:n[0])?null==(a=t.publishedBylines)?void 0:a[0]:e?(0,i.getPostAuthor)(e,t):{id:0,name:"someone"},u=c?j(c.id):null;return(0,o.yR)("".concat((0,s.gY)(d,{noBase:r}),"/note/").concat(null!=u?u:k(t.id)),l)}function O(e,t){let{isPreview:n=!1}=t;return"".concat((0,o.Ew)(),"/embed/c/").concat(e.id,"?origin=").concat(window.location.origin).concat(n?"&isPreview=true":"")}function v(e){let{noBase:t,baseUrl:n,urlParams:a,noHandle:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.user_id?(0,o.yR)("".concat((0,s.gY)((0,i.getCommentAuthor)(e),{baseUrl:n,noBase:t,noHandle:r}),"/note/").concat(C(e.id)),a):E({baseUrl:n})}function x(e,t){let{noBase:n,baseUrl:a,noHandle:i,urlParams:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.yR)("".concat((0,s.gY)(t,{noBase:n,noHandle:i,baseUrl:a}),"/note/").concat(j(e.id)),r)}function S(e){let{noBase:t,baseUrl:n,urlParams:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?"":null!=n?n:(0,o.Ew)();return(0,o.yR)("".concat(i,"/note/").concat(e),a)}function w(e){let{noBase:t,urlParams:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?"":(0,o.$_)();return(0,o.yR)("".concat(a,"/note/").concat(C(e)),n)}function I(e){let{noBase:t,urlParams:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?"":(0,o.$_)();return(0,o.yR)("".concat(a,"/home/post/").concat(k(e)),n)}function M(e,t){return"".concat("comment"===t?"c":"media_clip"===t?"m":"p","-").concat(e)}function C(e){return"c-".concat(e)}function k(e){return"p-".concat(e)}function j(e){return"m-".concat(e)}function L(e){return(0,o.yR)(E(),(0,a._)({action:"compose"},e))}function R(e){let{noBase:t,isSmall:n,attachmentsOnly:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?"":(0,o.$_)();return(0,o.yR)("".concat(i,"/note/").concat(C(e),"/preview.jpeg"),{size:n?"sm":"md",attachmentsOnly:a?"1":void 0})}function T(e){let{noBase:t,baseUrl:n,urlParams:a,noHandle:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.user_id?(0,o.yR)("".concat((0,s.gY)((0,i.getCommentAuthor)(e),{baseUrl:n,noBase:t,noHandle:r}),"/note/").concat(C(e.id),"/stats"),a):E({baseUrl:n})}function P(e){let{type:t,id:n}=e;return"base"===t?E():"".concat(E(),"/").concat(t,"/").concat(n)}RegExp("^/notes/comment/(d+)$")},80856:function(e,t,n){n.d(t,{Ru:()=>o,_:()=>c,_4:()=>r,an:()=>d,gB:()=>l,iQ:()=>s,lk:()=>i});var a=n(92636);let i=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.yR)("".concat((0,a.Ew)(),"/tos"),{utm_source:e})},r=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.yR)("".concat((0,a.Ew)(),"/pa"),{utm_source:e})},o=function(){let{pub:e,utm_source:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?(0,a.yR)("".concat((0,a.$_)(e),"/tos"),{utm_source:t}):i({utm_source:t})},s=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,a.yR)("".concat((0,a.Ew)(),"/ccpa"),{utm_source:e}),"#personal-data-collected")},l=function(){let{utm_source:e,hash:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,a.yR)("".concat((0,a.Ew)(),"/privacy"),{utm_source:e})).concat(t?"#".concat(t):"")},c=function(){let{pub:e,utm_source:t,hash:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return"".concat(l({utm_source:t,hash:n}));let i=n?"#".concat(n):"";return"".concat((0,a.yR)("".concat((0,a.$_)(e),"/privacy"),{utm_source:t})).concat(i)},d=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,a.yR)("".concat((0,a.Ew)(),"/accessibility"),{utm_source:e}))}},18947:function(e,t,n){n.d(t,{D0:()=>p,Er:()=>d,FC:()=>m,XB:()=>h,eX:()=>u,st:()=>c,ti:()=>l,wu:()=>s});var a=n(69277),i=n(92636),r=n(70189),o=n(41086);function s(e,t){let{noBase:n,edit:o,email:s,comments:l,commentId:d,commentInput:u,highlightComment:m,replyToComment:h,commentContextId:g,uuid:_,urlParams:b,signedIn:f=!1,feedViewer:A=!1,clipId:E}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},y=t?_?t.uuid:t.slug:null;if((o||!y)&&e&&!e.is_www&&(null==t?void 0:t.id)){let a=n?"":(0,i.$_)(e);return"".concat(a).concat(function(e,t){let{params:n,addBase:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a?(0,i.$_)(e):"";return"".concat(r).concat((0,i.yR)("/publish/post/".concat(t),n))}(e,t.id,{params:b}))}if((null==t?void 0:t.type)==="restack"&&(null==t?void 0:t.id)){let a=n?"":(0,i.$_)(e);return"".concat(a,"/cp/").concat(t.id)}if(A||!e||!t||!y){let a=n?"":(0,i.$_)();return d?(0,r.RV)(d,{noBase:n,urlParams:b}):t&&E?(0,i.yR)("".concat((0,i.$_)(e),"/p/").concat(t.slug),b):t?(0,r.kG)(t.id,{noBase:n,urlParams:b}):(0,i.yR)("".concat(a,"/"),b)}let N=p(f,e);return c(e,y,{noBase:n,email:s,comments:l,commentId:d,commentInput:u,highlightComment:m,replyToComment:h,commentContextId:g,urlParams:(0,a._)({lli:N},b)})}function l(e,t,n){let{isPreview:a=!1}=n;return"".concat((0,i.$_)(e),"/embed/p/").concat(t,"?origin=").concat(window.location.origin).concat(a?"&isPreview=true":"")}function c(e,t){let{noBase:n,forceSubdomain:a,email:r,comments:o,commentId:s,commentInput:l,highlightComment:c,replyToComment:d,commentContextId:u,urlParams:p}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m="";return n||(m+=(0,i.$_)(e,{forceSubdomain:a})),m+="/p/".concat(t),o&&(!s||c)&&(m+="/comments"),!s||c||u||(m+="/comment/".concat(s)),r&&(m+="/email"),s&&(c||d)?m+="#comment-".concat(s).concat(d?"-reply":""):l&&(m+="#input"),s&&u&&(m+="/comment/".concat(u,"#comment-").concat(s)),p&&(m=(0,i.yR)(m,p)),m}function d(e,t,n,i){return e&&"profile"===e.homepage_type?(null==n?void 0:n.id)?(0,r.M$)("c-".concat(null==n?void 0:n.id)):(0,r.q$)(e,t):s(e,t,(0,a._)({comments:!0,commentId:null==n?void 0:n.id},i))}function u(e){let{mediaUploadId:t}=e;return"media-".concat(t)}function p(e,t){return t.custom_domain&&e?"1":void 0}function m(e){let{addBase:t,params:n={},signedIn:r,skipToken:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=p(r,e),c=t?(0,i.$_)(e):"";if(!(null==n?void 0:n.token)&&!s){var d;n.token="undefined"!=typeof window&&(null==(d=window._preloads)?void 0:d.original_url)?(0,o.y)(window._preloads.original_url,"token"):null}return(0,i.yR)("".concat(c,"/account"),(0,a._)({lli:l},n))}function h(e,t,n,a){return t.post_id?d(null!=n?n:void 0,null!=e?e:void 0,t,a):(0,r.Zg)(t,a)}n(39891)},28700:function(e,t,n){n.d(t,{W$:()=>d,dt:()=>o,fm:()=>l,gY:()=>c,rf:()=>s});var a=n(69277),i=n(58278),r=n(92636);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.c$)("/profile/".concat(e),(0,a._)({},t))}function s(e,t){let{searchParams:n,noBase:a,baseUrl:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a?"":null!=o?o:(0,r.Ew)(),l="".concat(s,"/profile/").concat(function(e){let{id:t,name:n,handle:a}=e;if(a)return"@".concat(a);let r=(0,i.JG)(n,{hashIfEmpty:!0});return"".concat(t).concat(r?"-".concat(r):"")}({id:e,name:t}));return(0,r.yR)(l,n)}let l=function(e){let{searchParams:t,noBase:n,baseUrl:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n?"":null!=a?a:(0,r.Ew)(),o="".concat(i,"/@").concat(e);return(0,r.yR)(o,t)};function c(e){let{utm_source:t,utm_content:n,utm_campaign:i,noBase:r,baseUrl:o,noHandle:c,extraParams:d}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,a._)({},d,t||n||i?{utm_source:t,utm_content:n,utm_campaign:i}:void 0),p=c?void 0:(null==e?void 0:e.handle)||(null==e?void 0:e.author_handle);return p?l(p,{noBase:r,baseUrl:o,searchParams:u}):s(e.author_id||e.user_id||e.id,e.user_profile_name||e.author_name||e.name,{noBase:r,baseUrl:o,searchParams:u})}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.yR)("".concat((0,r.Ew)(),"/profile/start"),e)}},98949:function(e,t,n){n.d(t,{Fr:()=>r,UN:()=>s,aR:()=>l,fJ:()=>o,m0:()=>d});let a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,i=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function r(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=((e="undefined"!=typeof navigator?navigator.userAgent||navigator.vendor:void 0)||"undefined"==typeof window||(e=window.opera),e);return!!n&&o(n,t)}function o(e){let{checkFirst4:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.lastIndex=0,i.lastIndex=0,!!(a.test(e)||t&&i.test(e.substr(0,4)))}function s(){if("undefined"==typeof navigator)return null;var e=navigator.userAgent;if(!e.match(/iPad/i)&&!e.match(/iPhone/i))return null;let t=e.indexOf("OS ");return -1===t?null:parseInt(e.substr(t+3,3).replace("_","."))||null}function l(){return!!s()}let c=/Android/i;function d(){var e;return"undefined"!=typeof navigator&&(e=navigator.userAgent,c.lastIndex=0,!!e&&c.test(e))}},82776:function(e,t,n){n.r(t),n.d(t,{AUDIENCE_ADJECTIVES:()=>eI,CENTS_PER_EMAIL:()=>ez,CORE_SUPPORTED_LANGUAGES:()=>eW,ChatError:()=>eX,DEFAULT_GIFT_LENGTH_DAYS:()=>ej,DEFAULT_GRANT_NUMBER:()=>eL,DEFAULT_MAX_BYLINES:()=>am,DEFAULT_PREVIEW_LIMIT:()=>eo,DEFAULT_PREVIEW_LIMIT_EMAIL:()=>es,DEFAULT_PROFILE_PAGE_SUBSCRIPTIONS_LIMIT:()=>er,EEA_COUNTRIES:()=>tf,EU_COUNTRIES:()=>tb,GIFT_LENGTH_MONTHS:()=>ek,GRACE_PERIOD_COUPON_TRIAL_DAYS:()=>ei,GRACE_PERIOD_DAYS:()=>et,HOMEPAGE_TYPE_CHANGE_CUTOFF:()=>eC,LINK_SUPPORTED_COUNTRIES:()=>tA,LIVE_STREAM_CONTENT_WARNINGS:()=>aR,MANUAL_BILLING_DAYS_UNTIL_DUE:()=>en,MAX_BANK_PAYMENT_ATTEMPTS:()=>ec,MAX_FILE_SIZE:()=>F,MAX_MEDIA_FILE_SIZE:()=>U,MAX_MEDIA_UPLOAD_CHUNK_SIZE:()=>G,MAX_PG_BIGINT:()=>eh,MAX_PG_INT:()=>ep,MAX_PODCAST_FIELD_LENGTH:()=>e_,MAX_PODCAST_FILE_SIZE:()=>B,MAX_SECTION_DESCRIPTION_LENGTH:()=>eb,MIN_MONTH_GAP_BETWEEN_PAUSES:()=>el,MISSING_IMAGE_HEIGHT:()=>y.xS,MISSING_IMAGE_URL:()=>y.lJ,MISSING_IMAGE_WIDTH:()=>y.GD,MONTH_NAMES:()=>eU,NO_PLATFORM_CUSTOMER_CLONE_COUNTRIES:()=>eH,NO_REPLY_EMAIL:()=>e6,NZD_COUNTRIES:()=>tE,OLD_PODCAST_CATEGORIES:()=>eB,PODCAST_CATEGORIES:()=>eD,PODCAST_SECTIONS_TO_MARK_AS_NEWSLETTERS:()=>eq,PUBLICATION_TIER_DESCRIPTIONS:()=>ad,PUB_IDS_TO_NOT_SHOW_FOLLOW_PROMPT_ON:()=>L,READ_WORDS_PER_MINUTE:()=>ed,SCHEDULED_LIVE_STREAM_NOTIFY_WINDOW_HOURS:()=>eJ,SECURITY_QUESTIONS:()=>ew,SENDER_REMINDER_2_DELAY_SINCE_LAST_REMINDER:()=>eT,SENDER_REMINDER_3_DELAY_SINCE_LAST_REMINDER:()=>eP,SENDER_REMINDER_DELAY:()=>eR,SPEAK_WORDS_PER_MINUTE:()=>eu,SPECIAL_SUBDOMAINS:()=>eS,STRIPE_COUNTRIES_WITH_TRANSFERS_ENABLED:()=>aT,STRIPE_DAYS_UNTIL_DUE:()=>ea,STRIPE_TAX_ID_TYPES:()=>eG,SUBSCRIPTION_WORDS:()=>n2,SUBSTACK_PUBLICATION_IDS:()=>X,SUBSTACK_PUBLICATION_ID_BETA:()=>z,SUBSTACK_PUBLICATION_ID_BLOGOLD:()=>V,SUBSTACK_PUBLICATION_ID_COMPANY:()=>Y,SUBSTACK_PUBLICATION_ID_LIBRARYOLD:()=>K,SUBSTACK_PUBLICATION_ID_ON:()=>W,SUBSTACK_PUBLICATION_ID_PRODUCTLAB:()=>Z,SUBSTACK_PUBLICATION_ID_READ:()=>q,SUBSTACK_PUBLICATION_ID_STORIESOLD:()=>H,SUBSTACK_PUBLICATION_ID_THREADSPILOT:()=>J,SUBSTACK_USER_ID:()=>Q,SUBSTACK_USER_IDS:()=>ee,SUBSTACK_WRITERS_USER_ID:()=>$,SUPPORTED_CURRENCIES:()=>ty,SUPPORTED_LANGUAGES:()=>eF,SUPPORTED_LANGUAGES_IN_LANGUAGE:()=>eY,SUPPORTED_SEARCH_LANGUAGES:()=>eK,TERSE_AUDIENCE_ADJECTIVES:()=>eM,TRANSPARENT_IMAGE_URL:()=>y.rd,WEEK_IN_SECONDS:()=>eV,anonymousName:()=>n0,areCommentsLocked:()=>n_,areHuesEqual:()=>tW,assertIsDefined:()=>R,assertIsError:()=>T,averageVectors:()=>aj,balanceTextWithCharacterWidths:()=>tg,baschezScoreToEmojis:()=>tX,baschezToCategory:()=>tZ,canDeleteComment:()=>nN,canDeletePost:()=>nv,canEditComment:()=>ny,canManageCommentAsPrimaryUser:()=>nE,canPostComments:()=>nb,canReplyToPost:()=>e5,canReportComment:()=>nx,canSeeCommenterEmails:()=>nm,canSeeComments:()=>nh,canSeeTranscription:()=>ng,centsToDollarString:()=>tM,centsToPriceString:()=>tI,colorLightness:()=>tH,colorLuma:()=>tV,commentsEnabledForPost:()=>nd,couldPostCommentsIfSubscribed:()=>nf,coverPageFreeSubscriberCount:()=>t6,currencySymbol:()=>tS,decimalToPercent:()=>ni,defaultAudienceForPub:()=>nI,defaultCommentLevelForPub:()=>nL,defaultSendEmailForPub:()=>nR,dollarFormatter:()=>tC,dollarStringToCents:()=>tk,endsWithPunctuation:()=>tl,ensureInList:()=>ak,escapeNewlines:()=>nc,extractAttributionDataFromRecord:()=>aD,extractEventAttributionDataFromRecord:()=>aB,flowTextBasedOnWidth:()=>aw,formatArray:()=>tq,formatBytes:()=>nX,formatEllipsis:()=>ts,formatPercentForDisplay:()=>na,formatPodcastDuration:()=>ab,formatPodcastDurationLower:()=>af,formattedBytesToNumber:()=>nQ,foundingMemberDescription:()=>n5,fromEnv:()=>ax,getAttributionDirectMap:()=>an,getAttributionOptions:()=>ai,getAttributionPatternMatchPlatforms:()=>aa,getByLine:()=>eQ,getBylineUsers:()=>nK,getCopyrightedContentBucketName:()=>ev,getCurrencyForCountry:()=>tN,getGiftValueText:()=>tR,getGlobalBanMessage:()=>ef,getImageUrlFromBucketKey:()=>eO,getInitalPayment:()=>tL,getModerationPolicyName:()=>ey,getNext5HoursAfterMidnight:()=>a_,getNumberWithCommas:()=>t5,getOpennodePaymentUrl:()=>n6,getPlanTitle:()=>aO,getPostCtaPresentParticiple:()=>nG,getPostCtaText:()=>nU,getPostEmbedMeta:()=>e1,getPostMediaBucketName:()=>eN,getPrintedByline:()=>nH,getPrintedPostType:()=>nF,getPublicationBanMessage:()=>eE,getReadableAttribution:()=>at,getRemovedContentBucketName:()=>ex,getRestackEmailSubject:()=>nW,getScheduledAt:()=>nr,getSectionBasedSubjectOverride:()=>aP,getSubscribeText:()=>e0,getSubscriptionSentenceWithCustomWords:()=>n9,getSubscriptionWord:()=>n8,getSuperscriptNumberString:()=>n7,getTrialEndOverride:()=>nT,getUserBanMessage:()=>eA,getValidAudienceLevels:()=>nC,getWithIndefiniteArticle:()=>aE,get_month_name:()=>nP,guessFirstName:()=>E.$k,guessLastName:()=>E.fF,handleDocumentLinkClick:()=>nJ,hasFoundingPlan:()=>nM,hashString:()=>ay,hexToHSV:()=>tU,hexToRgb:()=>tG,hidePaidPostsFor:()=>e3,isAppAttribution:()=>ar,isAtLeastContributorRole:()=>e2,isBigIntId:()=>eg,isDefaultMarblePhoto:()=>y.DH,isIntId:()=>em,isNotMainEntry:()=>nZ,isNotesAttribution:()=>ao,isPaidPub:()=>nw,isPinnable:()=>ap,isProbablyEmail:()=>al,isSearchEngineCrawlerQuick:()=>n$,isSubstackNetworkAttribution:()=>as,isTouchDevice:()=>aI,isUUID:()=>nV,isValidCommentLevel:()=>nj,isZeroDecimalCurrency:()=>tv,joinLines:()=>tQ,kFormatter:()=>aN,longestSetOfWordsBelowCost:()=>th,mode:()=>nB,normalizeHex:()=>tB,numberToHumanFileSize:()=>ae,numberToOrderOfMagnitude:()=>t4,numberToOrderOfMagnitudeString:()=>t9,numberToOrdinal:()=>t2,numberToRoughRankingString:()=>t7,numberToRoughShortString:()=>t8,numberToString:()=>t3,onlyOwnsRootComment:()=>nO,oxfordComma:()=>nD,paymentPeriodToPlan:()=>au,pluralize:()=>ns,possessive:()=>nl,postSocialDescription:()=>n1,preventOrphans:()=>tr,profilePageFreeSubscriberCountString:()=>nn,pubCurrency:()=>tO,pubHasPaymentsEnabled:()=>nS,pubRoleForManagingComment:()=>nA,pubUsesZeroDecimalCurrency:()=>tx,pubsWithCustomSubscriptionWords:()=>n4,randomString:()=>t$,resolveTwitterShareText:()=>e$,restacksEnabledForPost:()=>nu,rgbToHex:()=>tF,rgbaToString:()=>tY,roughFreeSubscriberCount:()=>ne,roughFreeSubscriberCountString:()=>nt,roundPriceUp:()=>tj,sanitizeInlineText:()=>ac,satoshiToBitcoin:()=>tw,secondsToHHMMSS:()=>tP,secondsToLargestUnit:()=>tT,sectionIsSpecificallyMarkedAsNewsletter:()=>eZ,setDateToMidnightPST:()=>ag,shouldHidePostFromArchive:()=>nY,shouldUseInlineComments:()=>e4,showCommentsOnPost:()=>np,simpleBalanceText:()=>td,sortSubscriptions:()=>e8,spellOutNumber:()=>no,startsWithVowel:()=>aA,streamToBuffer:()=>aS,stringCost:()=>tm,stripInvalidBytes:()=>te,subscriptionTypeText:()=>e7,textLengthAlphaNumericMinimumValidator:()=>av,toFlagEmoji:()=>aL,toMillis:()=>nz,toSentenceCase:()=>t1,toTitleCase:()=>t0,transformDocumentLink:()=>nq,truncAndFormatArray:()=>tz,truncateBytes:()=>tt,truncateNumber:()=>tJ,truncateText:()=>ta,truncateToValidBytes:()=>tn,truncateWords:()=>ti,twitterScreenNames:()=>j,userFromReferralKey:()=>aC,userReferralKey:()=>aM,validCommentLevels:()=>nk,validateColor:()=>tK,validateHex:()=>tD,videoPlayerDimensions:()=>ah});var a=n(99851),i=n(69277),r=n(70408),o=n(79785),s=n(2404),l=n.n(s),c=n(69843),d=n.n(c),u=n(6585),p=n.n(u),m=n(3843),h=n(98111),g=n(4016);n(50129);var _=n(2256),b=n(44289),f=n(48863),A=n(60639),E=n(50963),y=n(18742),N=n(65606),O=n(49705).Buffer;function v(){let e=(0,o._)(["Your account is currently suspended. We've removed your publication from public view due to a violation of Substack's ",". If you believe this is a mistake, visit our"]);return v=function(){return e},e}function x(){let e=(0,o._)(["We've removed your publication from public view due to a violation of Substack's ",". If you believe this was a mistake, you can submit an appeal to our Standards & Enforcement team"]);return x=function(){return e},e}function S(){let e=(0,o._)(["","k"]);return S=function(){return e},e}function w(){let e=(0,o._)(["","m"]);return w=function(){return e},e}function I(){let e=(0,o._)(["","b"]);return I=function(){return e},e}function M(){let e=(0,o._)(["","t"]);return M=function(){return e},e}function C(){let e=(0,o._)(["Over "," subscribers"]);return C=function(){return e},e}function k(){let e=(0,o._)(["Get "," in your inbox"]);return k=function(){return e},e}let j=m.im,L=[21267,260347];function R(e){if(null==e)throw new A.uV("Expected value to be defined, but received ".concat(e))}function T(e){if(!(e instanceof Error))throw new A.uV("Expected value to be an Error, but received ".concat(e))}let P=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],D=["CA","AU","HK","NZ"],B=0x15e00000,U=0x500000000,G=0x3200000,F=0x2bc00000,W=1,Y=46438,K=86696,H=81318,V=87805,z=508885,q=737237,J=1014268,Z=1056696,X=[1,46438,86696,81318,87805,508885,737237,1014268,1056696],Q=0x4d8b0ef,$=0x27ead30,ee=[0x4d8b0ef,0x27ead30],et=16,en=45,ea=30,ei=2/24,er=1e3,eo=356,es=256,el=6,ec=3,ed=220,eu=150,ep=0x7fffffff;function em(e){return"number"==typeof e&&Number.isInteger(e)&&e>0&&e<=ep}let eh=Number.MAX_SAFE_INTEGER;function eg(e){return"number"==typeof e&&Number.isInteger(e)&&e>0&&e<=eh}let e_=25e4,eb=1e3;function ef(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"general";return"Your account is currently suspended. Something you posted may have violated Substack's ".concat(ey(e),". If you believe this is a mistake, you can submit an appeal to our Standards & Enforcement team here:")}function eA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iTemplate:n}=I18N.i(t);return n(v(),ey(e,t))}function eE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iTemplate:n}=I18N.i(t);return n(x(),ey(e,t))}function ey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iString:n}=I18N.i(t);switch(e){case"hate":return n("Hate policy");case"illegal":return n("Illegal & Harmful Activities policy");case"impersonation":return n("Impersonation policy");case"plagiarism":return n("Plagiarism policy");case"porn":return n("Nudity, Porn, & Erotica policy");case"private_information":return n("Private Information policy");case"spam":return n("Spam & Phishing policy");default:return n("Content Guidelines, Terms of Service, or Publisher Agreement")}}function eN(){let e="substack-post-media";if(!e)throw new A.uV("postMediaBucketName is not defined");return e}function eO(e){return"https://".concat(eN(),".s3.amazonaws.com/").concat(e)}function ev(){return"substack-post-media"===eN()?"substack-copyrighted-media":"substack-copyrighted-media-staging"}function ex(){return"substack-post-media"===eN()?"substack-removed-media":"substack-removed-media-staging"}let eS=["cdn","cloudinary","delivery","jobs","mailgun","mail","support","www","callback","api","admin","reader","sublink","random","your","dashboard","open"],ew=["In what city or town did your parents meet?","What was your first teacher's last name?","What is your earliest memory?","What was the make and model of your first car?","What was the first concert you attended?","Where did you go on your first date?","What was your first favorite band?","What was your first computer or smartphone?","What is your least favorite color?","What was the first video game you beat?","Who was your favorite artist, musician, or celebrity when you were a teenager?"],eI={everyone:"public",only_free:"free-only",only_paid:"subscribers-only",founding:"founding-only"},eM={everyone:"public",only_free:"free-only",only_paid:"subscriber's",founding:"subscriber's"},eC=new Date("2020-01-16"),ek=1,ej=30,eL=3,eR=2592e5,eT=6048e5,eP=1728e6,eD={Arts:["Books","Design","Fashion & Beauty","Food","Performing Arts","Visual Arts"],Business:["Careers","Entrepreneurship","Investing","Management","Marketing","Non-Profit"],Comedy:["Comedy Interviews","Improv","Stand-Up"],Education:["Courses","How To","Language Learning","Self-Improvement"],Fiction:["Comedy Fiction","Drama","Science Fiction"],Government:[],History:[],"Health & Fitness":["Alternative Health","Fitness","Medicine","Mental Health","Nutrition","Sexuality"],"Kids & Family":["Education for Kids","Parenting","Pets & Animals","Stories for Kids"],Leisure:["Animation & Manga","Automotive","Aviation","Crafts","Games","Hobbies","Home & Garden","Video Games"],Music:["Music Commentary","Music History","Music Interviews"],News:["Business News","Daily News","Entertainment News","News Commentary","Politics","Sports News","Tech News"],"Religion & Spirituality":["Buddhism","Christianity","Hinduism","Islam","Judaism","Religion","Spirituality"],Science:["Astronomy","Chemistry","Earth Sciences","Life Sciences","Mathematics","Natural Sciences","Nature","Physics","Social Sciences"],"Society & Culture":["Documentary","Personal Journals","Philosophy","Places & Travel","Relationships"],Sports:["Baseball","Basketball","Cricket","Fantasy Sports","Football","Golf","Hockey","Rugby","Running","Soccer","Swimming","Tennis","Volleyball","Wilderness","Wrestling"],Technology:[],"True Crime":[],"TV & Film":["After Shows","Film History","Film Interviews","Film Reviews","TV Reviews"]},eB={Arts:["Books","Design","Fashion & Beauty","Food","Literature","Performing Arts","Visual Arts"],Business:["Business News","Careers","Investing","Management & Marketing","Shopping"],Comedy:[],Education:["Educational Technology","Higher Education","K-12","Language Courses","Training"],"Games & Hobbies":["Automotive","Aviation","Hobbies","Other Games","Video Games"],"Government & Organizations":["Local","National","Non-Profit","Regional"],Health:["Alternative Health","Fitness & Nutrition","Self-Help","Sexuality"],"Kids & Family":[],Music:[],"News & Politics":[],"Religion & Spirituality":["Buddhism","Christianity","Hinduism","Islam","Judaism","Other","Spirituality"],"Science & Medicine":["Medicine","Natural Sciences","Social Sciences"],"Society & Culture":["History","Personal Journals","Philosophy","Places & Travel"],"Sports & Recreation":["Amateur","College & High School","Outdoor","Professional"],Technology:["Gadgets","Tech News","Podcasting","Software How-To"],"TV & Film":[]},eU=["January","February","March","April","May","June","July","August","September","October","November","December"],eG=[{name:"eu_vat",description:"European VAT number"},{name:"au_abn",description:"Australian Business Number (AU ABN)"},{name:"au_arn",description:"Australian Taxation Office Reference Number"},{name:"br_cnpj",description:"Brazilian CNPJ number"},{name:"br_cpf",description:"Brazilian CPF number"},{name:"bg_uic",description:"Bulgaria Unified Identification Code"},{name:"ca_bn",description:"Canadian BN"},{name:"ca_gst_hst",description:"Canadian GST/HST number"},{name:"ca_pst_bc",description:"Canadian PST number (British Columbia)"},{name:"ca_pst_mb",description:"Canadian PST number (Manitoba)"},{name:"ca_pst_sk",description:"Canadian PST number (Saskatchewan)"},{name:"ca_qst",description:"Canadian QST number (Qu\xe9bec)"},{name:"cl_tin",description:"Chilean TIN"},{name:"eu_oss_vat",description:"European One Stop Shop VAT number for non-Union scheme"},{name:"ge_va",description:"Georgian VAT"},{name:"hk_br",description:"Hong Kong BR number"},{name:"hu_tin",description:"Hungary tax number (ad\xf3sz\xe1m)"},{name:"is_vat",description:"Icelandic VAT"},{name:"in_gst",description:"Indian GST number"},{name:"id_npwp",description:"Indonesian NPWP number"},{name:"il_vat",description:"Israel VAT"},{name:"jp_cn",description:"Japanese Corporate Number (*Hōjin Bangō*)"},{name:"jp_rn",description:"Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) "},{name:"li_uid",description:"Liechtensteinian UID number"},{name:"my_frp",description:"Malaysian FRP number"},{name:"my_itn",description:"Malaysian ITN C"},{name:"my_sst",description:"Malaysian SST number"},{name:"mx_rfc",description:"Mexican RFC number"},{name:"nz_gst",description:"New Zealand GST number"},{name:"no_vat",description:"Norwegian VAT number"},{name:"ru_inn",description:"Russian INN"},{name:"ru_kpp",description:"Russian KPP"},{name:"sa_vat",description:"Saudi Arabia VAT"},{name:"sg_gst",description:"Singaporean GST"},{name:"sg_uen",description:"Singaporean UEN"},{name:"si_tin",description:"Slovenia tax number (davčna številka)"},{name:"za_vat",description:"South African VAT number"},{name:"kr_brn",description:"Korean BRN"},{name:"es_cif",description:"Spanish CIF number"},{name:"ch_vat",description:"Switzerland VAT number"},{name:"tw_vat",description:"Taiwanese VAT"},{name:"th_vat",description:"Thai VAT"},{name:"ua_vat",description:"Ukrainian VAT"},{name:"ae_trn",description:"United Arab Emirates TRN"},{name:"gb_vat",description:"United Kingdom VAT number"},{name:"us_ein",description:"United States EIN"}],eF={ca:"Catalan",da:"Danish",de:"German",es:"Spanish",fr:"French",it:"Italian",ja:"Japanese",nb:"Norwegian",nl:"Dutch",pl:"Polish",pt:"Portuguese","pt-br":"Brazilian Portuguese",sv:"Swedish",tr:"Turkish"},eW=["en","ca","da","de","es","fr","it","ja","nb","nl","pl","pt","sv","tr"],eY={ca:"Catal\xe0",da:"Dansk",de:"Deutsch",es:"Espa\xf1ol",fr:"Fran\xe7ais",it:"Italiano",ja:"日本語",nb:"Norsk",nl:"Nederlands",pl:"Polski",pt:"Portugu\xeas","pt-br":"Portugu\xeas do Brasil",sv:"Svenska",tr:"T\xfcrk\xe7e"},eK=["ar","cs","de","el","en","es","fr","hi","hu","id","it","ja","ko","la","nl","no","pl","pt","ro","ru","sv","th","tr","vi","zh"],eH=["IN"],eV=604800,ez=.0064,eq={therampart:{sectionIds:[62635]},thebulwark:{sectionIds:[87956]}},eJ=3,eZ=e=>{var t;let{section:n,pub:a}=e;return!!(null==(t=eq[a.subdomain])?void 0:t.sectionIds.includes(n.id))};class eX extends Error{constructor({status:e,errType:t,errMessage:n,pub:o,body:s}){super(n),(0,a._)(this,"name",void 0),(0,a._)(this,"status",void 0),(0,a._)(this,"response",void 0),this.name=this.constructor.name,this.status=e,this.response={body:(0,r._)((0,i._)({},s),{status:t,error:n})},o&&(this.response.body.publication=o),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}function eQ(e){var t,n,a,i;let{skipMultiContributorCheck:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("popularinformation"===e.subdomain)return"Judd Legum";if("whyisthisinteresting"===e.subdomain)return"Noah & Colin";if("informant"===e.subdomain)return"Nick Martin";if("colinmeloy"===e.subdomain)return"Colin Meloy";if("petition"===e.subdomain||"russiandissent"===e.subdomain)return null;if("mattlabash"===e.subdomain)return"Matt Labash";if("wmbrown"===e.subdomain)return"Matt Hranek";if("bigtechontrial"===e.subdomain)return"Matt Stoller";if("thegreenspoon"===e.subdomain)return"Greta and Fanny";if("exponentialview"===e.subdomain)return"Azeem Azhar";if("thegodpod"===e.subdomain)return"God";if(!r&&"object"==typeof e&&"contributors"in e&&(null==(i=e.contributors)?void 0:i.length)>1)return null;let o=e.name||e.subdomain;for(let i of["object"==typeof e&&"contributors"in e&&(null==(n=e.contributors)||null==(t=n[0])?void 0:t.name),"object"==typeof e&&"author_name"in e&&e.author_name,e.email_from_name,null==e||null==(a=e.author)?void 0:a.name])if(i&&(i=i.split(/(,|\||\s-|-\s|\bfrom\b|\bat\b)/g)[0].trim())&&!i.startsWith(o)&&!o.startsWith(i)&&!i.endsWith(o)&&!o.endsWith(i))return i;return null}function e$(e){var t;let{pub:n,post:a}=e,i=(null==n?void 0:n.twitter_screen_name)||n&&j[null==n?void 0:n.subdomain],r=null!=(t=null==a?void 0:a.title)?t:null==n?void 0:n.name;return n&&!a&&(r="Subscribe to ".concat(r)),i&&(!a||n&&(!a.publishedBylines.length||a.publishedBylines.some(e=>e.id===n.author_id)))&&(r+=", by @".concat(i)),r}function e0(e){let{now:t=!1,isFreeSubscribed:n=!1,isMobile:a=!1,isPledged:i=!1,pledgesEnabled:r=!1,language:o,foundingUpsell:s,isFoundingSubscribed:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"Subscribe";let{iString:c}=I18N.i(o||e.language);return n9(e,()=>{if(n&&e.plans&&s&&!l)return c("Upgrade to founding");if(n&&e.plans&&a&&t)return c("Upgrade now");if(n&&e.plans&&a&&!t)return c("Upgrade");if(n&&e.plans&&!a&&t)return c("Upgrade to paid now");if(n&&e.plans&&!a&&!t)return c("Upgrade to paid");else if(n&&r&&!i&&t)return c("Pledge your support now");else if(n&&r&&!i&&!t)return c("Pledge your support");else if(t)return c("Subscribe now");return c("Subscribe")},o=>(n&&e.plans?t1(a?o.upgrade:o.upgradeToPaid):n&&r&&!i?"Pledge your support":t1(n8(e,"subscribe")))+(t?" now":""))}function e1(e){let{date:t,bylines:a,like_count:i,comment_count:r,language:o="en"}=e,{iPlural:s}=I18N.i(o),l=n(16291).A,c=[];return c.push(l(t).locale(o).fromNow()),i&&c.push(s("1 like","%1 likes",i)),r&&c.push(s("1 comment","%1 comments",r)),a&&a.length&&c.push(tq(a.map(e=>e.name).filter(e=>null!==e),o)),c.join(" \xb7 ")}function e2(e){return!!e&&b.q.includes(e)}let e3=["astralcodexten"];function e4(e,t){return!(!["astralcodexten","company","library","on","blog","stories"].includes(null==e?void 0:e.subdomain)&&((null==t?void 0:t.type)!=="podcast"||(0,g.lu)({pub:e}))&&((null==t?void 0:t.type)!=="video"||(0,g.lu)({pub:e})))}let e9=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toUpperCase().replace(/^(THE|A|AN)\s+/,"")};function e8(e){return e.sort((e,t)=>{var n,a;if(!e)return 1;if(!t||"subscribed"===e.membership_state&&"subscribed"!==t.membership_state)return -1;if("subscribed"===t.membership_state&&"subscribed"!==e.membership_state)return 1;let i=e9(null==(n=e.publication)?void 0:n.name),r=e9(null==(a=t.publication)?void 0:a.name);return ir)})}function e7(e){if(e.expiry&&new Date(e.expiry)>new Date)switch(e.type){case"gift":return"Gifted Subscription";case"comp":return"Comped Subscription";default:return"Paid Subscriber"}return!e.email_disabled||e.email_settings&&Object.values(e.email_settings||{}).some(e=>"individual"===e)?"Free Subscriber":e.email_settings&&Object.values(e.email_settings||{}).some(e=>"digest"===e)?"Follows in Digests":"Emails Disabled"}function e5(e){let{post:t,user:n}=e;return!!(t&&n&&n.has_publication&&!n.is_admin&&!n.is_contributor&&t.slug!==_._B)}let e6="no-reply@substack.com";function te(e){if(!e||"string"!=typeof e)return e;e=e.replace(/[\u0000-\u0008\u000B-\u001F\u007F]/g,e=>e.length>1?e:" ");try{return encodeURIComponent(e),e}catch(e){}return e.replace(/[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,e=>e.length>1?e:" ")}function tt(e,t){let n=new TextEncoder().encode(e);return n.length>t?new TextDecoder().decode(n.slice(0,t)):e}function tn(e){for(;;)try{return encodeURIComponent(e),e}catch(t){e=e.substring(0,e.length-1)}}function ta(e,t){let{words:n=null,ellipsis:a="…",extension:i=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;let r=!1;if(n){let t=new RegExp("^(\\w+\\W+){".concat(n-1,"}\\w+")).exec(e);t&&(r=!0,e=t[0])}return t&&e.length>t&&(r=!0,e=e.substring(0,t-a.length)),r&&(e=tn(e)+a,i&&(e+=i)),e}function ti(e,t){let{ellipsis:n="…",quotationMarks:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;a&&(t-=2);let i=e;if(e&&e.length>t){let a=e.split(/\s+/),r=[],o=0;for(;o<=t;){let e=a.shift();if(!e||o+e.length>t)break;r.push(e),o+=e.length+1}i=ts(r.join(" "),n)}return a&&(i.endsWith(" ")||i.startsWith(" "))&&(i=i.trim()),a?'"'.concat(i,'"'):i}let tr=e=>{var t;if(!e)return"";let n=e.trim(),a=n.split(/\s/);return(null!=(t=a[a.length-1])?t:"").length>5?n:n.replace(/(\s)(\S+)$/,"\xa0$2")},to=/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~]+$/g;function ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"…";return"".concat(e.replace(to,"")).concat(t)}function tl(e){return/[!.?](?:\s+)?$/.test(e)}let tc=new Set([" ","-"]);function td(e){let{maxCharsPerLine:t=55,maxLines:n=2,preferWide:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.length<=t)return[e];let i=t*n;if(e.length>i){let t=i;for(;t>=0&&" "!==e.charAt(t);)t--;e=ts(e.slice(0,t))}let r=a?t:Math.floor(e.length/n),o=-1,s=0,l=[];for(;s+r/[A-Z]/.test(e),tp=e=>/[\s-]/.test(e);function tm(e,t){let n=0;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{},i=e;if(tm(e,a)<=t)return[e];let r=[];for(let i=0;ie+t.length,0){var t,n;return(null==(n=e.draft_plans)||null==(t=n[0])?void 0:t.currency)||"usd"};function tv(e){return["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"].includes(e.toUpperCase())}function tx(e){return tv(tO(e))}function tS(e){let{locale:t="en-US"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Intl.NumberFormat(t,{style:"currency",currency:e,minimumFractionDigits:0,maximumFractionDigits:0}).format(0).replace(/\d/,"").trim()}let tw=e=>e/1e8;function tI(e,t){let{forceDecimals:n=!1,locale:a="en-US"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:n||e%100&&!tv(t)?2:0,maximumFractionDigits:"btc"===t?8:2}).format("btc"===t?tw(e):tv(t)?e:e/100);return"usd"===t&&"undefined"!=typeof window&&window._preloads&&window._preloads.country&&D.includes(window._preloads.country)&&(i="US".concat(i)),i}function tM(e){return new Intl.NumberFormat("en-US",{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100)}let tC=new Intl.NumberFormat("en-US",{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0});function tk(e){if(!e)return null;if("string"!=typeof e)throw Error("Bad type for dollar string");let t=e.replace(/[^0-9.]/g,"");return t?Math.round(100*Number(t)):null}function tj(e){let t=e/100;return 100*(t=t<50?Math.ceil(t):5*Math.ceil(t/5))}function tL(e){let{quantity:t=1,coupon:n=null,noTrial:a=!1,trial_end_override:i=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a&&(e.trial_period_days||n&&n.trial_period_days||i&&i>Date.now()/1e3+120))return 0;let r=e.amount*t;return n&&n.percent_off?r=Math.round(r*(1-(n.percent_off_precise||n.percent_off)/100)):n&&n.amount_off&&(r=Math.max(0,r-n.amount_off)),r}function tR(e){let t,n,a,i,{interval:r="month",interval_count:o=ek,multiplier:s=1,min:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let i of e){if(a){if(a!=i.currency)continue}else a=i.currency;"month"==i.interval?(!t||i.amount1&&void 0!==arguments[1]?arguments[1]:{},{iCombo:h}=I18N.i(u);if((e=Math.round(e))<(n||60))return(t=Math.round(e),c)?t:l&&s?h("secondsToLargestUnit","second","seconds",t):l&&!s?h("secondsToLargestUnit","sec","secs",t):!s&&p?h("secondsToLargestUnit","%1 sec ago","%1 secs ago",t):!s&&m?h("secondsToLargestUnit","%1 sec left","%1 secs left",t):s?p?h("secondsToLargestUnit","%1 second ago","%1 seconds ago",t):m?h("secondsToLargestUnit","%1 second left","%1 seconds left",t):h("secondsToLargestUnit","%1 second","%1 seconds",t):h("secondsToLargestUnit","%1 sec","%1 secs",t);if(e<(a||3600)&&d&&!c&&!l)return(t=Math.round(e/60),!s&&p)?h("secondsToLargestUnit","%1 min ago","%1 mins ago",t):!s&&m?h("secondsToLargestUnit","%1 min left","%1 mins left",t):s?p?h("secondsToLargestUnit","less than %1 second ago","less than %1 seconds ago",t):m?h("secondsToLargestUnit","less than %1 second left","less than %1 seconds left",t):h("secondsToLargestUnit","less than %1 minute","less than %1 minutes",t):h("secondsToLargestUnit","less than %1 min","less than %1 mins",t);if(e<(a||3600))return(t=Math.round(e/60),c)?t:l&&s?h("secondsToLargestUnit","minute","minutes",t):l&&!s?h("secondsToLargestUnit","min","mins",t):!s&&p?h("secondsToLargestUnit","%1 min ago","%1 mins ago",t):!s&&m?h("secondsToLargestUnit","%1 min left","%1 mins left",t):s?p?h("secondsToLargestUnit","%1 minute ago","%1 minutes ago",t):m?h("secondsToLargestUnit","%1 minute left","%1 minutes left",t):h("secondsToLargestUnit","%1 minute","%1 minutes",t):h("secondsToLargestUnit","%1 min","%1 mins",t);if(e<(i||86400))return(t=Math.round(e/60/60),c)?t:l&&s?h("secondsToLargestUnit","hour","hours",t):l&&!s?h("secondsToLargestUnit","hr","hrs",t):!s&&p?h("secondsToLargestUnit","%1 hr ago","%1 hrs ago",t):!s&&m?h("secondsToLargestUnit","%1 hr left","%1 hrs left",t):s?p?h("secondsToLargestUnit","%1 hour ago","%1 hours ago",t):p?h("secondsToLargestUnit","%1 hour left","%1 hours left",t):h("secondsToLargestUnit","%1 hour","%1 hours",t):h("secondsToLargestUnit","%1 hr","%1 hrs",t);if(e<(r||604800))return(t=Math.round(e/60/60/24),c)?t:l?h("secondsToLargestUnit","day","days",t):p?h("secondsToLargestUnit","%1 day ago","%1 days ago",t):m?h("secondsToLargestUnit","%1 day left","%1 days left",t):h("secondsToLargestUnit","%1 day","%1 days",t);else if(e<(o||0x1e187e0))return(t=Math.round(e/60/60/24/7),c)?t:l&&s?h("secondsToLargestUnit","week","weeks",t):l&&!s?h("secondsToLargestUnit","wk","wks",t):!s&&p?h("secondsToLargestUnit","%1 wk ago","%1 wks ago",t):!s&&m?h("secondsToLargestUnit","%1 wk left","%1 wks left",t):s?p?h("secondsToLargestUnit","%1 week ago","%1 weeks ago",t):m?h("secondsToLargestUnit","%1 week left","%1 weeks left",t):h("secondsToLargestUnit","%1 week","%1 weeks",t):h("secondsToLargestUnit","%1 wk","%1 wks",t);return(t=Math.round(e/60/60/24/365.25),c)?t:l&&s?h("secondsToLargestUnit","year","years",t):l&&!s?h("secondsToLargestUnit","yr","yrs",t):!s&&p?h("secondsToLargestUnit","%1 yr ago","%1 yrs ago",t):!s&&m?h("secondsToLargestUnit","%1 yr left","%1 yrs left",t):s?p?h("secondsToLargestUnit","%1 year ago","%1 years ago",t):m?h("secondsToLargestUnit","%1 year left","%1 years left",t):h("secondsToLargestUnit","%1 year","%1 years",t):h("secondsToLargestUnit","%1 yr","%1 yrs",t)}function tP(e){let{strict:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!1},n=Math.floor(e/60/60),a=Math.floor(e/60)%60,i=Math.floor(e%60);if(!t)return"".concat((n?"".concat(n,":"):"")+(n?"0".concat(a).slice(-2):a),":").concat("0".concat(i).slice(-2));let r=e=>e.toString().padStart(2,"0"),o=r(n),s=r(a),l=r(i);return"".concat(o,":").concat(s,":").concat(l)}function tD(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}function tB(e){return"#"!==e[0]&&(e="#".concat(e)),e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,a)=>t+t+n+n+a+a)}function tU(e){let t;function n(e,t){"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)&&(e="100%");let n="string"==typeof e&&-1!=e.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}e=tB(e);let a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),i=parseInt(null==a?void 0:a[1],16),r=parseInt(null==a?void 0:a[2],16),o=parseInt(null==a?void 0:a[3],16);i=n(i,255);let s=Math.max(i,r=n(r,255),o=n(o,255)),l=Math.min(i,r,o),c=s-l;if(s==l)t=0;else{switch(s){case i:t=(r-o)/c+6*(r.11&&t.h<.56){if(t.s>.25&&t.v>.5){if(t.s<.6&&t.v>.8)return!0;else if(t.s>.6)return!0}}else if(t.s>.25&&t.v>.5)return!0;return!1}function tH(e,t){let n=tG(e);return n?(n.r=Math.max(0,Math.min(255,Math.round(n.r*t))),n.g=Math.max(0,Math.min(255,Math.round(n.g*t))),n.b=Math.max(0,Math.min(255,Math.round(n.b*t))),tF(n)):e}function tV(e){let{r:t,g:n,b:a}=tG(e);return t/=255,n/=255,a/=255,.2126*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(a=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}function tz(e,t){let{name:n=e=>e,restWord:a="other",noNames:i="people",pluralizeRest:r=!0,showRestCount:o=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.map(n).filter(Boolean).slice(0,t);if(0===s.length)s.push(ns(e.length,i));else if(s.length1&&r?"s":""))}return tq(s)}function tq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iString:n}=I18N.i(t),a="";return 1===e.length?a=e[0]:2===e.length?a=e.join(" ".concat(n("and")," ")):e.length>2&&(a="".concat(e.slice(0,-1).join(", "),", ").concat(n("and")," ").concat(e.slice(-1))),a}function tJ(e){let{minSignificantDigits:t=1,language:n="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<1e3)return e.toString();let{iTemplate:a}=I18N.i(n),i=e=>{let n=Math.max(t-1-Math.floor(Math.log10(e)),0);return Math.round(e*Math.pow(10,n))/Math.pow(10,n)};return 1e3>Math.round(e/1e3)?(e/=1e3,a(S(),i(e))):1e3>Math.round(e/1e6)?(e/=1e6,a(w(),i(e))):1e3>Math.round(e/1e9)?(e/=1e9,a(I(),i(e))):(e/=1e12,a(M(),i(e)))}let tZ=e=>Math.max(0,Math.min(5,Math.floor(Math.log(Math.max(e,1))/Math.LN10+1e-9))-1),tX=e=>"\uD83D\uDD25".repeat(tZ(e));function tQ(e,t,n){let a=(e||"").trim().split(/[\s\r]*\n[\s\r]*/g).map(e=>e.trim()).filter(e=>e),i=[];for(;a.length>0;){let e=a.shift(),r=i[i.length-1];r&&r.length{var t;return(null==(t=e[0])?void 0:t.toUpperCase())+e.substr(1).toLowerCase()}).join(" ")}function t1(e,t){var n;let a=t?e.substr(1).toLowerCase():e.substr(1);return(null==(n=e[0])?void 0:n.toUpperCase())+a}function t2(e){let t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function t3(e){let{precision:t=0,language:n="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=Number(e.replace(/,/g,""))),new Intl.NumberFormat(n,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:t}).format(e)}function t4(e){return d()(e)?0:Math.pow(10,Math.floor(Math.log10(e)))||0}function t9(e,t){let{iString:n}=I18N.i(t);if(e<100)return n("tens");if(e<1e3)return n("hundreds");if(e<1e4)return n("thousands");if(e<1e5)return n("tens of thousands");if(e<1e6)return n("hundreds of thousands");else if(e<1e7)return n("millions");else if(e<1e8)return n("tens of millions");else if(e<1e9)return n("hundreds of millions");else if(e<1e10)return n("billions");else if(e<1e11)return n("tens of billions");else if(e<1e12)return n("hundreds of billions");else if(e<1e13)return n("trillions");else if(e<1e14)return n("tens of trillions");else if(e<1e15)return n("hundreds of trillions");return n("gagillions")}function t8(e){let{maximumFractionDigits:t=1,plusSignifier:n="+"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.toLocaleString(void 0,{notation:"compact",maximumFractionDigits:t,roundingMode:"floor"});return e>=1e3?"".concat(a).concat(n):e>0?a:"0"}function t7(e){return e<=10?"#".concat(e):e<=25?"Top 25":e<=50?"Top 50":e<=100?"Top 100":""}function t5(e){if(e<1e3)return null;let t=1e3*Math.floor(e/1e3);return t>=1e6&&(t=1e5*Math.floor(e/1e5)),t3(t)}function t6(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iTemplate:n}=I18N.i(t),a=t5(e);return a?n(C(),a):null}function ne(e){let t;return e?(t=e<1e3?1:e<1e4?100:e<1e6?1e3:1e5,Math.floor(e/t)*t):0}function nt(e){let t=ne(e);return t&&0!==t?t8(t):null}function nn(e,t){let{iString:n}=I18N.i(t);return e&&0!==e?"".concat(nt(e)," ").concat(n(1===e?"subscriber":"subscribers")):n("See subscribers")}let na=e=>1>Number(e)?"< 1%":"".concat(e,"%");function ni(e){let{rounded:t=!1,display:n=!1,decimalPlaces:a=-1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=100*parseFloat(e);return(a>=0&&(i=i.toFixed(a)),t&&(i=Math.floor(i)),n)?na(Number(i)):i}function nr(e){var t;return(null==e||null==(t=e.postSchedules)?void 0:t.length)&&e.postSchedules[0]&&e.postSchedules[0].trigger_at?new Date(e.postSchedules[0].trigger_at):"scheduled_at"in e&&e&&e.scheduled_at?e.email_sent_at&&e.should_send_email?void 0:new Date(Math.max(new Date(e.scheduled_at).getTime(),Date.now())):void 0}function no(e){if(0===e)return"zero";if(1===e)return"one";if(2===e)return"two";if(3===e)return"three";if(4===e)return"four";else if(5===e)return"five";else if(6===e)return"six";else if(7===e)return"seven";else if(8===e)return"eight";else if(9===e)return"nine";else if(10===e)return"ten";else if(11===e)return"eleven";else if(12===e)return"twelve";return t3(e)}function ns(e,t){let n,a,{zero_fallback:i="",just_word:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.lastIndexOf(" ")+1,s=t.substr(o),l=t.substr(0,o);return(["person","people"].includes(s)?(n="".concat(l,"person"),a="".concat(l,"people")):["Person","People"].includes(s)?(n="".concat(l,"Person"),a="".concat(l,"People")):["reply","replies"].includes(s)?(n="".concat(l,"reply"),a="".concat(l,"replies")):["Reply","Replies"].includes(s)?(n="".concat(l,"Reply"),a="".concat(l,"Replies")):["entry","entries"].includes(s)?(n="".concat(l,"entry"),a="".concat(l,"entries")):["Entry","Entries"].includes(s)?(n="".concat(l,"Entry"),a="".concat(l,"Entries")):["match","matches"].includes(s)?(n="".concat(l,"match"),a="".concat(l,"matches")):["Match","Matches"].includes(s)?(n="".concat(l,"Match"),a="".concat(l,"Matches")):(n=t,a="".concat(t,"s")),r||(n="".concat(t3(e)," ").concat(n),a="".concat(t3(e)," ").concat(a)),!e&&i)?i:1==e?n:a}function nl(e){return"".concat(e,"’").concat("s"===e[e.length-1]?"":"s")}function nc(e){return e.replace(/\n/g,"\\n")}function nd(e){let{publication:t,post:n}=e;return!(!n||["adhoc_email","page"].includes(null==n?void 0:n.type))&&t.community_enabled&&n&&"none"!==n.write_comment_permissions}function nu(e){let{publication:t,post:n}=e;return!!(t.community_enabled&&n)}function np(e){let{publication:t,post:n}=e;return(null==n?void 0:n.type)!=="page"&&(null==n?void 0:n.type)!=="adhoc_email"&&(null==n?void 0:n.slug)!==_._B&&(n&&n.comment_count>0||nd({publication:t,post:n}))}let nm=e=>!!(e&&e.is_contributor);function nh(e,t){let{bypassContentAccessCheck:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{userHasFullAccessToPost:i}=n(56262);return!t.is_geoblocked&&(!!(e&&t.publishedBylines&&t.publishedBylines.find(t=>t.id===e.id))||a||i(e,t))}function ng(e,t){let{bypassContentAccessCheck:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{userHasFullAccessToPost:i}=n(56262);return!!(e&&t.publishedBylines&&t.publishedBylines.find(t=>t.id===e.id))||a||i(e,t)}let n_=e=>"thread"===e.type&&"none"===e.write_comment_permissions;function nb(e,t,a){let{userHasFullAccessToPost:i,isFoundingAudience:r}=n(56262),o=e&&"id"in e?e.id:null;if(o&&t.publishedBylines&&t.publishedBylines.find(e=>e.id===o)||e&&e.is_contributor)return{canReply:!0};switch(t.write_comment_permissions||a.default_write_comment_permissions){case"everyone":return{canReply:!0};case"none":return{canReply:!1,repliesDisabledReason:"comments_disabled"};case"only_paid":{if(r(t.audience)){let n=!!e&&i(e,t);return{canReply:n,repliesDisabledReason:n?void 0:"founding_subscription_required"}}let n=!!(e&&e.is_subscribed);return{canReply:n,repliesDisabledReason:n?void 0:"paid_subscription_required"}}}return{canReply:!1}}function nf(e,t,n){return nb((0,r._)((0,i._)({},e),{is_subscribed:!0}),t,n).canReply}function nA(e,t){var n;return e&&t&&(null==(n=e.dashboard_pubs)?void 0:n.find(e=>e.can_post_notes_as_primary_user&&e.primary_user_id===t.user_id&&(!(null==t?void 0:t.publication_id)||(null==t?void 0:t.publication_id)===(null==e?void 0:e.id))))||null}function nE(e,t){return!!nA(e,t)}let ny=(e,t)=>!!(t&&e&&e.id===t.user_id||nE(e,t));function nN(e,t,n){let{pub:a,parentComments:i}=n;if(!e||!t)return!1;if(e.id===t.user_id)return!0;if(t.publication_id&&t.post_id){if(nv(e,a))return!0}else if(nO({user:e,comment:t,parentComments:i}))return!0;else if(nE(e,t))return!0;else if(a&&a.contributors.find(t=>t.user_id===e.id&&"community_moderator"===t.role))return!0;return!1}function nO(e){var t;let{user:n,comment:a,parentComments:i}=e;if(!n||!a||a.publication_id&&a.post_id||n.id===a.user_id||n.is_contributor)return!1;let r=Number(null==(t=a.ancestor_path)?void 0:t.split(".").filter(Boolean)[0]);if(!r)return!1;let o=null==i?void 0:i.find(e=>(null==e?void 0:e.id)===r);return n.id===(null==o?void 0:o.user_id)}function nv(e,t){return!!e&&!!(e.id===(null==t?void 0:t.author_id)||(null==t?void 0:t.contributors.find(t=>t.user_id===e.id&&e2(t.role))))}function nx(e,t){return!!e&&!!t&&e.id!==t.user_id}function nS(e){return!!e.plans}function nw(e){return!!(e.plans||e.has_subscribers)}function nI(e){let{type:t,coupon:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.plans&&"page"!==t?n?"only_free":"only_paid":"everyone"}function nM(e){let{pub:t}=e;return!!(t.plans&&t.plans.find(e=>{var t;return(null==(t=e.metadata)?void 0:t.founding)==="yes"}))}function nC(e){let{pub:t}=e;if(!t.plans)return["everyone"];let n=["everyone","only_paid"];return nM({pub:t})&&n.push("founding"),n}function nk(e,t,n){if("thread"===t)switch(e){case"only_paid":case"founding":return["only_paid"];default:return["everyone"]}switch(e){case"only_paid":case"founding":return["only_paid","none"];case"everyone":if(n)return["only_paid","everyone","none"];return["everyone","none"];default:return["none"]}}function nj(e,t,n,a){return null!=e&&nk(t,n,a).includes(e)}function nL(e,t,n,a){return nj(n.default_write_comment_permissions,e,t,a)?n.default_write_comment_permissions:nk(e,t,a)[0]}function nR(e,t,n){return"page"!==t&&("only_free"===n||!!e.default_post_publish_send_email)}function nT(e,t,n){return t&&"forever"===t.interval?0:Math.max(0,...[e.trial_end_override>Date.now()/1e3?e.trial_end_override:0,t&&"trial_period_days"in t&&t.trial_period_days&&Math.round((Date.now()+24*t.trial_period_days*36e5)/1e3),n&&n.trial_period_days&&Math.round((Date.now()+24*n.trial_period_days*36e5)/1e3)].filter(e=>e))}let nP=e=>eU[new Date(e).getMonth()];function nD(e){let{noBreakSpace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t?"\xa0":" ",a=[];if(1==e.length&&e[0])a=[e[0]];else if(2==e.length&&e[0]&&e[1])a=[e[0],"".concat(n,"and").concat(n),e[1]];else if(e.length>=3)for(let t=0;ta.join(""),a}function nB(e){var t;let n=new Map;for(let t of e){let e=n.get(t);e=(e||0)+1,n.set(t,e)}return null==(t=Array.from(n).sort((e,t)=>t[1]-e[1])[0])?void 0:t[0]}function nU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iString:n}=I18N.i(t);return n("thread"===e.type?"View thread":"podcast"===e.type?"Listen":"Read")}function nG(e){let{isFinalWord:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"podcast"===e?"listening".concat(t?"":" to"):"video"===e?"watching":"reading"}function nF(e){return"newsletter"===e?"post":"podcast"===e?"episode":"adhoc_email"===e?"email":"video"===e?"video":e}function nW(e){return"".concat(ta(e.title||"Untitled post",115))}function nY(e){return 10475===e.publication_id&&18994===e.section_id}function nK(e){let{isDraft:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?((t?e.draftBylines:e.publishedBylines)||[]).filter(e=>e.name):[]}function nH(e,t){let{isDraft:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=nK(t,{isDraft:n});return a.length>0?tq(a.map(e=>e.name).filter(e=>null!==e)):null}function nV(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(String(e))}function nz(e){return"string"==typeof e?p()(e)||0:"number"==typeof e?e:0}function nq(e){let t=e=>new RegExp("^.*".concat(e));if(e){if(e.includes(h.T.CHECKOUT_URL))return e.replace(t(h.T.CHECKOUT_URL),"/subscribe?");else if(e.includes(h.T.FOUNDING_CHECKOUT_URL))return e.replace(t(h.T.FOUNDING_CHECKOUT_URL),"/subscribe?plan=founding&");else if(e.includes(h.T.REFERRAL_URL))return e.replace(t(h.T.REFERRAL_URL),"/?showWelcome=true");else if(e.includes(h.T.UNSUBSCRIBE_URL))return e.replace(t(h.T.UNSUBSCRIBE_URL),"/account?");else if(e.includes(h.T.ONE_CLICK_UNSUBSCRIBE_URL))return e.replace(t(h.T.ONE_CLICK_UNSUBSCRIBE_URL),"/account?");else if(/^.*%%.*%%/.test(e))return null}return e}function nJ(e){let t=nq(e);if(t){let e=window.open(t,"_blank");(null==e?void 0:e.focus)&&e.focus()}}function nZ(e){var t;return!e||["publish","account"].includes(null!=(t=(document.location&&document.location.pathname||"").split("/")[1])?t:"")}function nX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";let n=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))," ").concat(P[n])}function nQ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return 0;let[t,n]=e.split(" "),a=P.indexOf(n);return a<0?0:Number(t)*Math.pow(1024,a)}function n$(e){return/Googlebot/i.test(e||"")?"Google":/bingbot/i.test(e||"")||/BingPreview/i.test(e||"")?"Bing":/Slurp/i.test(e||"")?"Yahoo":/DuckDuckBot/i.test(e||"")?"DDG":!!/Baiduspider/i.test(e||"")&&"Baidu"}function n0(e,t,n,a){return e.name?e.name:(n&&n.author_id===a.id||t&&t.publishedBylines&&t.publishedBylines.find(e=>e.id===a.id))&&e.email||"Someone"}function n1(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",{iTemplate:a}=I18N.i(n);return e&&e.description||t.hero_text||a(k(),t.name)}let n2=[{pubs:["thebulwark"],subscription:"membership",donateItem:"membership",subscriber:"member",subscribe:"join",subscribeTo:"join",upgrade:"join",upgradeTo:"join",upgradeToPaid:"join",upgradeSubscriptionTo:"upgrade your membership to"},{pubs:["georgesaunders"],donateItem:"scholarship"},{pubs:["thecoddlingmovie"],subscribe:new Date>new Date("2024-02-22T08:00:00Z")?"watch the film":"pre-order the film"}],n3={subscription:"subscription",donateItem:"subscription",subscriber:"subscriber",subscribe:"subscribe",subscribeTo:"subscribe to",upgrade:"upgrade",upgradeTo:"upgrade to",upgradeToPaid:"upgrade to paid",upgradeSubscriptionTo:"upgrade your subscription to"},n4=n2.flatMap(e=>e.pubs);function n9(e,t,n){let a=n2.find(t=>t.pubs.includes(null==e?void 0:e.subdomain))||null,r=a?(0,i._)({},n3,a):null;return r?n(r):t()}function n8(e,t){let n=e?n2.find(t=>t.pubs.includes(e.subdomain)):void 0,a=n&&n[t];if(!a&&!(a=n3[t]))throw Error("".concat(t," is not a valid subscription word"));return a}function n7(e){let t={0:8304,1:185,2:178,3:179,4:8308,5:8309,6:8310,7:8311,8:8312,9:8313};return String.fromCodePoint(...Array.from("".concat(e)).map(e=>t[e]))}let n5=e=>{var t,n,a;return null==e||null==(a=e.plans)||null==(n=a.find(e=>{var t;return null==(t=e.metadata)?void 0:t.founding}))||null==(t=n.metadata)?void 0:t.short_description},n6=e=>"https://".concat("","checkout.opennode.com/").concat(e);function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0===e?0:Math.floor(Math.log(e)/Math.log(1024));return"".concat(+(e/Math.pow(1024,t)).toPrecision(3)).concat(["B","KB","MB","GB","TB"][t])}function at(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return null;let{iString:n}=I18N.i(t),a=n("Substack Network"),i=n("Substack App"),r=n("Substack Live Video");if(ao(e))return i;let o={"blog.substack.com":a,"library.substack.com":a,"substack-network":a,"on.substack.com":a,"open.substack.com":i,"post-end-cta":"Post Footer CTA","stories.substack.com":a,"substack-activity-items":i,"substack-app":i,"substack-boost":a,"substack-categories-discovery":i,"substack-categories-discovery-search":i,"substack-chat":i,"substack-comment-links":a,"substack-country-leaderboards":i,"substack-cross-posts":a,"substack-facepiles":a,"substack-feed-item":i,"substack-follow-recommendations":i,"substack-guest-post-bio":a,"substack-homepage-recommendations":a,"substack-ios-in-app-purchase":"Substack iOS In-App Purchase","substack-leaderboards":i,"substack-live-stream":r,"substack-media-player":i,"substack-mentions":a,"substack-notes":i,"substack-onboarding-discovery":i,"substack-paid-gift":i,"substack-post-embeds":a,"substack-post-reply-comment":a,"substack-presubscribe":i,"substack-publication-embeds":a,"substack-reader-discovery":i,"substack-reader-profile-discovery":i,"substack-reader-shared":"Reader sharing","substack-your-weekly-stack":n("Substack Network — Your Weekly Stack"),"substack-recommendation-email":a,"substack-recommendations-page":a,"substack-referral":a,"substack-signup-flow":a,"substack-subscriber-referral":a,"substack-twitter-link":i,"substack-twitter-suggest":i,"substack-xp-post-template":a,"substack-xp-read-next":a,"substack.com":i,"t.co":"Twitter","www.substack.com":i,external:n("external form / api"),"googleads.g.doubleclick.net":"Google","score-upsell":n("Boost upsell to engaged subscribers"),"substack-boost-subscribe-page-upsell":n("Boost upsell on another publication")}[e];return o||(/(\b|\.)facebook\./.test(e)?"Facebook":/(\b|\.)instagram\./.test(e)?"Instagram":/(\b|\.)linkedin\./.test(e)?"LinkedIn":/(\b|\.)youtube\./.test(e)?"YouTube":/(\b|\.)duckduckgo\./.test(e)?"DuckDuckGo":/(\b|\.)medium\./.test(e)?"Medium":/(\b|\.)reddit\./.test(e)?"Reddit":/(\b|\.)bing\./.test(e)?"Bing":/(\b|\.)google\./.test(e)?"Google":(null==e?void 0:e.includes("."))?e:t0(e.replace(/-/g," ")))}function an(){return{"Substack Network":["blog.substack.com","library.substack.com","substack-network","on.substack.com","stories.substack.com","substack-boost","substack-comment-links","substack-cross-posts","substack-facepiles","substack-guest-post-bio","substack-homepage-recommendations","substack-mentions","substack-post-embeds","substack-post-reply-comment","substack-publication-embeds","substack-recommendation-email","substack-recommendations-page","substack-referral","substack-signup-flow","substack-subscriber-referral","substack-xp-post-template","substack-xp-read-next","substack-your-weekly-stack"],"Substack App":["open.substack.com","substack-activity-items","substack-app","substack-categories-discovery","substack-categories-discovery-search","substack-chat","substack-country-leaderboards","substack-feed-item","substack-follow-recommendations","substack-leaderboards","substack-media-player","substack-notes","substack-onboarding-discovery","substack-paid-gift","substack-presubscribe","substack-reader-discovery","substack-reader-profile-discovery","substack-twitter-link","substack-twitter-suggest","substack.com","www.substack.com"],Import:["import"],Direct:["direct"],"Substack Live Video":["substack-live-stream"],"Post Footer CTA":["post-end-cta"],"Substack iOS In-App Purchase":["substack-ios-in-app-purchase"],"Reader sharing":["substack-reader-shared"],Twitter:["t.co"],Google:["googleads.g.doubleclick.net"],"external form / api":["external"],"Boost upsell to engaged subscribers":["score-upsell"],"Boost upsell on another publication":["substack-boost-subscribe-page-upsell"]}}function aa(){return["Facebook","Instagram","LinkedIn","YouTube","DuckDuckGo","Medium","Reddit","Bing"]}function ai(){return[...Object.keys(an()),...aa()]}function ar(e){return!!ao(e)||["substack-activity-items","substack-app","substack-categories-discovery","substack-categories-discovery-search","substack-chat","substack-country-leaderboards","substack-feed-item","substack-follow-recommendations","substack-ios-in-app-purchase","substack-leaderboards","substack-live-stream","substack-media-player","substack-notes","substack-onboarding-discovery","substack-paid-gift","substack-presubscribe","substack-reader-discovery","substack-reader-profile-discovery","substack-twitter-link","substack-twitter-suggest","substack.com"].includes(e)}function ao(e){return["substack-feed-item","notes_inline_suggestions","notes_sidebar_suggestions","feed-nux","feed-twitter-suggestions","notes_all_suggestions","note_permalink_upsell","notes_likes","note_inline_upsell","notes_restacks","notes_quote_attachment","notes_context","substack-notes","profile-page-notes","notes-inline-suggestions","subscribe_header_notes","notes-all-suggestions","notes-like-list","new-follower-email","media-player"].includes(e)}function as(e){return!ar(e)&&/substack/i.test(e)}let al=e=>/^\S+@\S+\.\S+$/.test(e),ac=e=>(e||"").replace(/\s+/g," "),ad={"-2":{short:"Deleted - Flagged as spam",long:"This publication is deleted and every page will show a flagged error"},"-1":{short:"Noindexed - In moderation queue",long:"This publication is temporarily not available to search engines because it is pending moderation, where it will be approved or deleted"},0:{short:"Noindexed - New Pub",long:'This publication is temporarily not available to search engines because the author needs to create a new post other than "coming-soon"'},1:{short:"Available",long:"This publication is available to search engines"},2:{short:"Available w/priority",long:"This publication is available to search engines and is given priority SEO treatment"}};function au(e){return e?e<3456e3?"monthly":e<8121600?"quarterly":e<0xf53700?"semiannual":e<3456e4?"annual":e>3888e3?"lifetime":"other":"free"}function ap(e){return e&&("newspaper"===e.homepage_type||"magaziney"===e.homepage_type)}let am=35;function ah(e){let t,n,{isStatic:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.width>=e.height*(960/540)?n=Math.round((t=a?550:960)*(e.height/e.width)):e.width>=e.height?n=Math.round((t=a?550:728)*(e.height/e.width)):t=n=a?550:728,{height:n,width:t}}function ag(e){let t=n(16291).A,a=t(e);return t.utc([a.year(),a.month(),a.date(),8,0,0]).toDate()}function a_(){let{now:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(16291).A,a=e?t(e):t(),i=a.utc().startOf("day").add(5,"hour");return i.isBefore(a)&&(i=i.utc().add(1,"day")),i}function ab(e){let t=Math.round(e/60),n=Math.floor(t/60);return"".concat(n?"".concat(n,"HR "):"").concat(t%60,"M")}function af(e){let t=Math.round(e/60),n=Math.floor(t/60),a=t%60;return n?"".concat(n,"h ").concat(a,"m"):a?"".concat(a,"m"):"".concat(Math.round(e),"s")}function aA(e){let t=e.toLowerCase()[0];return["a","e","i","o","u"].includes(null!=t?t:"")}function aE(e){return"".concat(e.toLowerCase().startsWith("uni watch")?"a":aA(e)?"an":"a"," ").concat(e)}function ay(e){return e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0)}function aN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iContext:n}=I18N.i(t),a=n("thousandsAbbreviation","K");return Math.abs(e)>9999?"".concat(Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)).concat(a):(Math.sign(e)*Math.abs(e)).toString()}function aO(e){var t,n,a,i,r;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",{iString:s}=I18N.i(o);return s((null==(t=e.metadata)?void 0:t.short_description_english)==="Stammleser"||(null==(n=e.metadata)?void 0:n.short_description_english)==="Gr\xfcndungsmitglied"?"Founding Member":(null==(a=e.metadata)?void 0:a.short_description_english)?null==(i=e.metadata)?void 0:i.short_description_english:(null==(r=e.metadata)?void 0:r.short_description)?e.metadata.short_description:"year"===e.interval?"Annual":"forever"===e.interval?"Founding Membership":"month"===e.interval&&3===e.interval_count?"Quarterly":"month"===e.interval&&6===e.interval_count?"Semiannually":"day"===e.interval?"Daily":"week"===e.interval?"Weekly":"Monthly")}let av=function(){let{minLength:e,maxLength:t,minAlphaNumeric:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a=>{if(!a)return"Missing input";if(e&&a.lengtht)return"Must be at most ".concat(t," characters long");let i=RegExp("\\P{P}|`","gu"),r=a.match(i);if(!r||(null==r?void 0:r.length)<(null!=n?n:e))return"Must contain at least ".concat(null!=n?n:e," non-punctuation characters");let o=["`"],s=0;return(r.forEach(e=>{o.includes(e)&&(s+=1)}),r.length-s<(null!=n?n:e))?"Must contain at least ".concat(null!=n?n:e," non-punctuation characters"):null}};function ax(e,t){let n=N.env[e];if(void 0!==n)return n;if(void 0!==t)return t;throw Error("Missing required env var ".concat(e))}function aS(e){return new Promise((t,n)=>{let a=[];e.on("data",e=>a.push(e)),e.once("end",()=>t(O.concat(a))),e.once("error",n)})}function aw(e){let{maxWidth:t=55,maxLines:n=2,charWidth:a=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],r="",o=0;for(let s of e.split(" ")){let e=s.length*a;if(o+e<=t)r?(r+=" ".concat(s),o+=e+a):(r=s,o=e);else if(i.push(r),r=s,o=e,i.length===n)break}if(i.length===n&&r){let e=t-o;e>=3?r+="...":r="".concat(r.substring(0,r.length-(3-e)),"..."),i[n-1]=r}else r&&i.push(r);return i}function aI(){return"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)}function aM(e){return(null==e?void 0:e.id)&&e.id.toString(36)||null}function aC(e){if(!e)return null;let t=parseInt(e,36);return em(t)?t:null}function ak(e,t){return"string"!=typeof e?t[0]:t.includes(e)?e:t[0]}function aj(e){var t,n,a;let i=Array(null==(t=e[0])?void 0:t.length).fill(0);for(let t=0;tString.fromCodePoint(e.toUpperCase().codePointAt()+127397)).join("")}let aR=[{label:"Generic",value:"generic",url:"https://substack.com/content",message:void 0},{label:"Copyright Infringement",value:"copyright_infringement",url:"https://substack.com/dispute",message:"Warning: We have detected potential copyrighted content in your stream. Please remove any unauthorized content immediately to avoid additional enforcement actions from being taken against this stream or your account."},{label:"Explicit Content",value:"explicit_content",url:"https://substack.com/content",message:"Warning: We have detected a potential violation of Substack's Nudity/Porn/Erotica policy. As a reminder, Substack does not allow visual depictions of sexual acts. Please remove any violating content to avoid additional enforcement actions from being taken against this stream or your account."},{label:"Harmful and Illegal Activities",value:"harmful_and_illegal_activities",url:"https://substack.com/content",message:"We have detected a potential violation of Substack's Harmful & Illegal Activities policy. As a reminder, Substack does not allow content that promotes harmful or illegal activities, including material that advocates, threatens, or shows your causing harm to yourself, other people, or animals. Please remove any violating content to avoid additional enforcement actions from being taken against this stream or your account."}],aT=["US","GB","CA","FR","DE","ES","IT","NL","PL","GR","BE","IE","PT"];function aP(e,t,n){var a,i;if(!(0,g.C3)({pub:e}))return;let r=null;if("section"in t&&t.section?r=t.section:t.section_id&&(r=null==(a=e.sections)?void 0:a.find(e=>e.id===t.section_id)),!r&&t.draft_section_id&&n&&(r=null==(i=e.sections)?void 0:i.find(e=>e.id===t.draft_section_id)),!(!r||(0,g.Tu)({post:t,pub:e})||r.name.includes("Pirate Wires")))return"".concat(r.name," // ").concat(t.title||t.draft_title)}function aD(e){var t,n,a;return{sessionStarted:null!=(t=e.sessionStarted)?t:e.sessionStart,landingReferrer:null!=(n=e.landingReferrer)?n:e.originalReferrer,landingUrl:null!=(a=e.landingUrl)?a:e.landingPage,landingSurface:e.landingSurface,landingSurfaceId:e.landingSurfaceId,landingPublicationId:e.landingPublicationId}}function aB(e){var t;let n,a=+new Date,i=null!=(t=e.session_started_at)?t:e.sessionStarted;null!=i&&"number"==typeof i&&(n=new Date(i<2e4?a-1e3*i:i));let r=e.landingPublicationId;null==r&&null!=e.deepLink&&(r=(0,f.qc)(e.deepLink).publicationID);let o=e.landingSurfaceId,s=e.landingSurface;if(null==o&&null==s&&null!=e.deepLink){let t=(0,f.qc)(e.deepLink);s=t.surface,o=t.surfaceID}return{session_started_at:n,deep_link:e.deepLink,referrer:e.referrer,landing_referrer:e.landingReferrer,landing_url:e.landingUrl,landing_surface:s,landing_surface_id:String(o),landing_publication_id:r}}},69706:function(e,t,n){n.d(t,{B7:()=>r,UH:()=>l,Zi:()=>a,d8:()=>o,fo:()=>i,qr:()=>s});let a=1,i=1.5,r=16/9,o=1.91,s=1.91,l={square:1,editorial:1.5,thumb:1.91,landscape:16/9,portrait:9/16,instagram:.8,social:1.91,cover:3}},38474:function(e,t,n){n.d(t,{TM:()=>g,bq:()=>p,c:()=>c,q_:()=>m});var a=n(69277),i=n(15734),r=n.n(i),o=n(82776),s=n(91809),l=n(29496);let c={attrs:{url:{default:""},isEpisode:{default:!1},imageUrl:{default:""},title:{default:""},podcastTitle:{default:""},podcastByline:{default:""},duration:{default:""},numEpisodes:{default:""},targetUrl:{default:""},releaseDate:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"iframe.apple-podcast",getAttrs:n(78495).t}],toDOM:e=>{let{url:t,isEpisode:n}=e.attrs;return["div",{class:"apple-podcast-container","data-component-name":"ApplePodcastToDom"},["iframe",{class:"apple-podcast ".concat(n?"":"episode-list"),"data-attrs":JSON.stringify(e.attrs),src:t,frameborder:"0",allow:"autoplay *; encrypted-media *;",allowfullscreen:"true"}]]},toDOMStatic:e=>{let{imageUrl:t,isEpisode:n,podcastTitle:a,podcastByline:i,duration:r,numEpisodes:l,targetUrl:c}=e.attrs,d=e.attrs.title,u=a,p=(0,o.secondsToHHMMSS)(r/1e3);return n||(d=a,u=i,p=(0,o.pluralize)(l,"episode",{zero_fallback:"No episodes"})),(0,s.e)(t,d,u,p,{targetUrl:c})}},d=/[{var t;let n=d.exec(e);return n?{match:n[0],embedLink:n[2],countryCode:n[3],slug:n[4],podcastId:null==(t=n[5])?void 0:t.substr(2),episodeId:n[7]}:{match:!1}},p=(0,l.C)({name:"applePodcast",nodeSpec:c,addCommands(){return{insertApplePodcast:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),m=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&!t.nodes.applePodcast?null:u(e).match||null},h=async e=>{let t=u(e),{slug:n,podcastId:i,episodeId:o,countryCode:s}=t,l=(await r().get("/api/v1/apple_podcast").query({slug:n,podcastId:i,episodeId:o,country:s,appleUrl:e})).body;return(0,a._)({url:_(t),isEpisode:!!t.episodeId},l)},g=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema;if(!a.nodes.applePodcast)throw Error("ApplePodcast node not in schema");return a.nodes.applePodcast.create(await h(e))},_=e=>{let{countryCode:t,slug:n,podcastId:a,episodeId:i}=e,r=encodeURIComponent(n||"");return"https://embed.podcasts.apple.com/".concat(t||"us","/podcast/").concat(r,"/id").concat(a).concat(i?"?i=".concat(i):"")}},26116:function(e,t,n){n.d(t,{c:()=>l,ez:()=>u,lQ:()=>m,pK:()=>c});var a=n(69277),i=n(70408),r=n(9036),o=n(91809),s=n(29496);let l={attrs:{url:{default:""},title:{default:""},description:{default:""},thumbnail_url:{default:""},author:{default:""},embed_url:{default:""},is_album:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.bandcamp-wrap",getAttrs:n(78495).t}],toDOM:e=>["div",{class:"bandcamp-wrap".concat(e.attrs.is_album?" album":""),"data-attrs":JSON.stringify(e.attrs),"data-component-name":"BandcampToDOM"},["iframe",{src:e.attrs.embed_url,frameborder:"0",gesture:"media",scrolling:"no",allowfullscreen:"true"}]],toDOMStatic:e=>{let{thumbnail_url:t,author:n,title:a,description:i,url:r}=e.attrs;return(0,o.e)(t,a,(n||"").toString(),i,{targetUrl:r})}},c=(0,s.C)({name:"bandcamp",nodeSpec:l,addCommands(){return{insertBandcamp:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),d=/^.*(https?\:\/\/(\S+)?.bandcamp.com\/(...+)\/[^\/]+(\/[^\/]+)?(\?[\#]*)?(\#.*)?).*$/,u=e=>{var t;let n=d.exec(e);return null!=(t=n&&n[1])?t:null},p=async e=>{let t,o=!!(t=d.exec(e))&&"album"===t[3],s=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,l="dark"===(0,r.m)(e).theme?"dark":"light",c=(await s.get("/api/v1/bandcamp").query({url:e.trim(),is_album:o,theme:l})).body;return(0,i._)((0,a._)({},c),{is_album:o})},m=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.bandcamp.create(await p(e))}},39729:function(e,t,n){n.d(t,{Sy:()=>g,c:()=>d,iK:()=>u,li:()=>m});var a=n(83673),i=n.n(a),r=n(94729),o=n(16291),s=n(29496),l=n(78495),c=n(60639);let d={attrs:{postId:{default:""},authorDid:{default:""},authorName:{default:""},authorHandle:{default:""},authorAvatarUrl:{default:""},text:{default:""},createdAt:{default:""},uri:{default:""},imageUrls:{default:[]}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.bluesky-wrap",getAttrs:l.t}],toDOM:e=>{var t,n,a,i;let r,o,s,l,c;return t=e,o=String(Math.random()).slice(2),s=(n=t.attrs.authorDid,a=t.attrs.postId,i=o,"https://embed.bsky.app/embed/".concat(n,"/app.bsky.feed.post/").concat(a,"?id=").concat(i)),(l=document.createElement("div")).className="bluesky-wrap outer",l.style.height="auto",l.style.display="flex",l.style.marginBottom="24px",l.dataset.attrs=JSON.stringify(t.attrs),l.setAttribute("data-component-name","BlueskyCreateBlueskyEmbed"),c=document.createElement("iframe"),r=t.attrs.postId,c.id="bluesky-".concat(r),c.setAttribute("data-bluesky-id",o),c.src=s,c.width="100%",c.style.border="none",c.style.display="block",c.style.flexGrow="1",c.frameBorder="0",c.scrolling="no",l.appendChild(c),l},toDOMStatic:e=>(function(e){var t,n,a;let i=e.attrs,r=document.createElement("div");r.className="bluesky-wrap static",r.setAttribute("data-component-name","BlueskyCreateStaticBlueskyEmbed");let s=document.createElement("div"),l=document.createElement("img");l.className="bluesky-avatar",i.authorAvatarUrl&&(l.src=i.authorAvatarUrl),s.appendChild(l);let c=document.createElement("span");c.className="bluesky-author-name",c.textContent="".concat(null!=(t=i.authorName)?t:i.authorHandle," "),s.appendChild(c);let d=document.createElement("span");d.className="bluesky-author-handle",d.textContent="@".concat(i.authorHandle),s.appendChild(d),r.appendChild(s);let u=document.createElement("div");if(u.textContent=i.text,r.appendChild(u),i.imageUrls.length>0&&i.imageUrls[0]){let e=document.createElement("img");e.src=i.imageUrls[0],r.append(e)}let p=document.createElement("div");p.className="bluesky-created-at",p.textContent=(0,o.A)(i.createdAt).toString(),r.appendChild(p);let m=document.createElement("a");return n=i.authorDid,a=i.postId,m.href="proxy.php?url=https://bsky.app/profile/".concat(n,"/post/").concat(a,"?ref_src=embed"),m.text="View on Bluesky",r.appendChild(m),r})(e)},u=(0,s.C)({name:"bluesky",nodeSpec:d,addCommands(){return{insertBluesky:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),p=/^https:\/\/bsky.app\/profile\/([^\/]+)\/post\/([^\?]+)(\?.+)?$/;function m(e){let t=p.exec(e);return p.lastIndex=0,t&&t[0]}async function h(e){var t,n,a,s,l,c,d,u,m,h,g,_,b,f;let A,E=(A=p.exec(e))&&A[1]&&A[2]?{handle:A[1],postId:A[2]}:null;if(!E)return null;let{handle:y,postId:N}=E,O=await (0,r.x6)((b=y,f=N,"https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=at://".concat(b,"/app.bsky.feed.post/").concat(f)));if("blocked"in O.thread||"notFound"in O.thread)return null;let v=null;return(null==(n=O.thread)||null==(t=n.post)?void 0:t.embed)&&((null==(a=O.thread.post.embed)?void 0:a.thumbnail)?v=null==(l=O.thread.post.embed)?void 0:l.thumbnail:(null!=(s=O.thread.post.embed.images)?s:[]).length>0&&(v=O.thread.post.embed.images[0].thumb)),{postId:N,authorDid:null!=(c=O.thread.post.author.did)?c:"",authorName:null!=(d=O.thread.post.author.displayName)?d:"",authorHandle:null!=(u=O.thread.post.author.handle)?u:"",authorAvatarUrl:null!=(m=O.thread.post.author.avatar)?m:"",text:null!=(h=O.thread.post.record.text)?h:"",createdAt:(0,o.A)(null!=(g=O.thread.post.record.createdAt)?g:"").toISOString(),uri:null!=(_=O.thread.post.uri)?_:"",imageUrls:i()([v])}}async function g(e){var t;let{customSchema:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(a?{schema:a}:await Promise.resolve().then(n.bind(n,12135))).schema;if(!(null==(t=i.nodes.bluesky)?void 0:t.create))throw new c.uV("Bluesky node schema is missing");return i.nodes.bluesky.create(await h(e))}},10591:function(e,t,n){n.d(t,{N_:()=>O,Si:()=>j,TH:()=>S,U4:()=>R,WK:()=>L,XU:()=>I,ce:()=>x,eH:()=>k,ju:()=>M,mh:()=>v,nd:()=>N,pv:()=>y,yj:()=>w,yt:()=>C});var a=n(79785),i=n(86500),r=n(98111),o=n(4016),s=n(39318),l=n(49807),c=n(82776),d=n(57324),u=n(55714),p=n(4518);function m(){let e=(0,a._)(["Start writing today. Use the button below to create a Substack of your own"]);return m=function(){return e},e}function h(){let e=(0,a._)(["Share ",""]);return h=function(){return e},e}function g(){let e=(0,a._)(["Get ","% off a group subscription"]);return g=function(){return e},e}function _(){let e=(0,a._)(["Get a group subscription"]);return _=function(){return e},e}function b(){let e=(0,a._)(["Give a gift subscription"]);return b=function(){return e},e}function f(){let e=(0,a._)(["","! Subscribe for free to receive new posts and support my work."]);return f=function(){return e},e}function A(){let e=(0,a._)(["",". To receive new posts and support my work, consider becoming a free or paid subscriber."]);return A=function(){return e},e}function E(){let e=(0,a._)(["","! This post is public so feel free to share it."]);return E=function(){return e},e}let y=e=>(t,n)=>{let{iString:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:"".concat(r.T.CHECKOUT_URL,"&donate=true"),text:a("Donate Subscriptions")};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},N=e=>(t,n)=>{let{iString:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:"".concat(r.T.LEADERBOARD_URL,"&utm_source=").concat(d.VU.post),text:a("Refer a friend")};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},O=e=>{let{writerReferralCode:t,publication:n,postId:a}=e;return(e,i)=>{let{iString:r,iTemplate:o}=I18N.i({pub:n});if(!e.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!e.schema.nodes.captionedWriterReferralButton)return console.error("captionedWriterReferralButton node type not found in schema"),!1;if(!e.schema.nodes.ctaCaption)return console.error("ctaCaption node type not found in schema"),!1;if(!(0,p.c)(e,e.schema.nodes.button))return!1;let l=o(m()),c={url:"".concat((0,s.gWk)(t||""),"?utm_source=").concat(d.VU.substack,"&utm_context=").concat(d.rw.post,"&utm_content=").concat(a,"&utm_campaign=").concat(d._9.writerReferralButton),text:r("Start a Substack")},h=e.schema.nodes.captionedWriterReferralButton.create(c,e.schema.nodes.ctaCaption.create(null,[e.schema.text(l)]));return i&&i((0,u.DL)(e,h)),!0}},v=e=>(t,n)=>{let{iString:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:r.T.HALF_MAGIC_COMMENTS_URL,text:a("Leave a comment")};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},x=(e,t,n)=>(a,r)=>{if((0,i.u4)(i.qY.READER_SURVEY_LINKED_IN_POST,{editorVersion:"1",surveyId:t.id}),!a.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(a,a.schema.nodes.button))return!1;let o={url:"".concat((0,l.gAK)(e,t.id)),text:n};return r&&r((0,u.DL)(a,a.schema.nodes.button.create(o))),!0},S=e=>(t,n)=>{let{iString:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:r.T.SHARE_URL,text:a("Share")};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},w=e=>(t,n)=>{let{iTemplate:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:r.T.SHARE_PUB_URL,text:a(h(),e.name)};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},I=e=>{let{couponPub:t,scrollParent:n,parentClass:a,get_coupons:i,insert_coupon:r,SelectField:o,openPrompt:l,closePrompt:c,getNetworkErrorMessage:d}=e;return(e,u,m)=>{let{iString:h}=I18N.i({pub:t});if(!e.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(e,e.schema.nodes.button))return!1;let g={parentClass:a,root:n?document.querySelector(".".concat(n)):m.dom.parentNode,scrollParent:n,offsetTop:10},_=Object.assign({title:h("Loading..."),no_buttons:!0,language:t.language},g);return l(_),i().then(n=>{c(_);let a=n.map(e=>{var t;return{label:null!=(t=e.name)?t:"",value:e}}).concat([{label:h("Create new offer"),value:{create_new:!0}}]),i={coupon:new o({label:h("Select offer..."),required:!0,options:a,onChange:e=>{e&&"create_new"in e&&e.create_new&&(c(d),window.open("".concat((0,s.$_T)(t),"/publish/offers"),"_blank"))}})},d=Object.assign({title:h("Special Offer"),fields:i,language:null==t?void 0:t.language,onSubmit:t=>{let{coupon:n}=t;r({coupon:n,state:e,dispatch:m.dispatch,schema:e.schema})},onClose:()=>{m.focus()}},g);l(d)}).catch(e=>{c(_),alert(d(e))}),!1}},M=e=>{let{scrollParent:t,parentClass:n,TextField:a,openPrompt:i,publication:s}=e;return(e,l,c)=>{let{iString:d}=I18N.i({pub:s});if(!e.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(e,e.schema.nodes.button))return!1;let m={parentClass:n,title:d("Create a button"),root:t?document.querySelector(".".concat(t)):c.dom.parentNode,scrollParent:t,offsetTop:10,language:null==s?void 0:s.language,fields:{text:new a({label:d("Enter text..."),required:!0,clean:e=>(e||"").trim(),validate:e=>{if(e.length>40)return d("Too long")}}),href:new a({label:d("Enter URL..."),required:!0,clean:e=>(e||"").trim(),validate:e=>{if(!/^%%.*%%$/.test(e)){try{let t=new URL(e);if(["http:","https:","mailto:"].includes(t.protocol))return}catch(e){}return d("Invalid URL")}}})}};return m.onSubmit=t=>{let n=t.href;if((0,o.lu)({pub:s})){let[e,t]=n.split("#"),a=e.includes("?")?"&":"?",i=["utm_source=custom_button","utm_medium=".concat(r.T.SEND_MEDIUM),"utm_campaign=".concat(r.T.POST_ID)].join("&");n="".concat(e).concat(a).concat(i).concat(t?"#".concat(t):"")}let a={url:n,text:t.text};if(!e.schema.nodes.button)return console.error("Button node type not found in schema"),!1;l&&c.dispatch((0,u.DL)(e,e.schema.nodes.button.create(a)))},m.onClose=()=>{c.focus()},i(m),!0}},C=e=>{let{publication:t}=e;return(e,n)=>{let{iTemplate:a}=I18N.i({pub:t});if(!e.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(e,e.schema.nodes.button))return!1;let i=t.default_group_coupon,o={url:"".concat(r.T.CHECKOUT_URL,"group=true").concat(i?"&coupon=".concat(i):""),text:(0,c.getSubscriptionSentenceWithCustomWords)(t,()=>{var e;return i&&t.default_group_coupon_percent_off?a(g(),null!=(e=t.default_group_coupon_percent_off.split(".")[0])?e:""):a(_())},e=>i&&t.default_group_coupon_percent_off?"Get ".concat(t.default_group_coupon_percent_off.split(".")[0],"% off a group ").concat(e.subscription):"Get a group ".concat(e.subscription))};return n&&n((0,u.DL)(e,e.schema.nodes.button.create(o))),!0}},k=e=>(t,n)=>{let{iTemplate:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i={url:"".concat(r.T.CHECKOUT_URL,"&gift=true"),text:(0,c.getSubscriptionSentenceWithCustomWords)(e,()=>a(b()),e=>"Give a gift ".concat(e.subscription))};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(i))),!0},j=e=>(t,n)=>{if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let a={url:r.T.CHECKOUT_URL,text:(0,c.getSubscribeText)(e,{now:!0}),language:e.language};return n&&n((0,u.DL)(t,t.schema.nodes.button.create(a))),!0},L=e=>(t,n)=>{let{iTemplate:a}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!t.schema.nodes.subscribeWidget)return console.error("subscribeWidget node type not found in schema"),!1;if(!t.schema.nodes.ctaCaption)return console.error("ctaCaption node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let i="enabled"!==e.payments_state?a(f(),e.author_name===e.name?"Thanks for reading":"Thanks for reading ".concat(e.name)):a(A(),e.author_name===e.name?"This Substack is reader-supported":"".concat(e.name," is a reader-supported publication")),o={url:r.T.CHECKOUT_URL,text:(0,c.getSubscribeText)(e),language:e.language},s=t.schema.nodes.subscribeWidget.create(o,[t.schema.nodes.ctaCaption.create(null,[t.schema.text(i)])]);return n&&n((0,u.DL)(t,s)),!0},R=e=>(t,n)=>{let{iString:a,iTemplate:i}=I18N.i({pub:e});if(!t.schema.nodes.button)return console.error("Button node type not found in schema"),!1;if(!t.schema.nodes.captionedShareButton)return console.error("captionedShareButton node type not found in schema"),!1;if(!t.schema.nodes.ctaCaption)return console.error("ctaCaption node type not found in schema"),!1;if(!(0,p.c)(t,t.schema.nodes.button))return!1;let o=i(E(),e.author_name===e.name?"Thanks for reading":"Thanks for reading ".concat(e.name)),s={url:r.T.SHARE_URL,text:a("Share")},l=t.schema.nodes.captionedShareButton.create(s,t.schema.nodes.ctaCaption.create(null,[t.schema.text(o)]));return n&&n((0,u.DL)(t,l)),!0}},10933:function(e,t,n){n.d(t,{kI:()=>r});var a=n(55714);let i=e=>!(0,a.cy)(e.doc.toJSON(),e=>"paywall"===e.type),r=e=>(t,n)=>{if(!i(t))return!1;let{schema:a,tr:r}=t,s=a.nodes.paywall.create();return 1===r.selection.anchor?o(e)(t,n):(r.insert(r.selection.anchor,s),n&&(n(r),e()),!0)},o=e=>(t,n)=>{if(!i(t))return!1;let{schema:a,tr:r}=t,o=a.nodes.paywall.create(),s=0,l=0;for(;s<10&&l<3;){let e=t.doc.resolve(s).nodeAfter;if(!e)break;s+=e.nodeSize,l++}return r.insert(s,o),n&&(n(r),e()),!0}},42985:function(e,t,n){n.d(t,{XB:()=>g,_k:()=>m,c:()=>p,w1:()=>b,x7:()=>A});var a=n(69277),i=n(50172),r=n(47970),o=n(93946),s=n(70189),l=n(49807),c=n(57324),d=n(82061),u=n(29496);let p={attrs:{url:{default:""},commentId:{default:null},comment:{default:null}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.comment",getAttrs:e=>{if(e instanceof HTMLElement)try{var t;return JSON.parse(null!=(t=e.getAttribute("data-attrs"))?t:"")}catch(e){}return!1}}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return Object.assign(t,{className:"comment","data-attrs":JSON.stringify(e.attrs)}),(0,o.Mv)((0,i.h)(r.H,{commentId:e.attrs.commentId}),t),t}catch(t){return console.error("Error rendering CommentEmbed",t),(0,d.D)({msg:null,node:e,err:t,group:"block"})}return h(e)},toDOMStatic:e=>h(e)},m=(0,u.C)({name:"comment",nodeSpec:p,addCommands(){return{insertComment:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}});function h(e){return["div",{class:"comment","data-attrs":JSON.stringify(e.attrs),"data-component-name":"CommentPlaceholder"}]}function g(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&!t.nodes.comment)return null;let n=(0,l.Dlv)(e);return n&&(0,s.EX)(n.pathname)?e:null}async function _(e){let t,i=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,r=(0,l.Dlv)(e),o=r&&(0,s.EX)(r.pathname);if(!o)return console.warn("pathname did not match"),null;try{let{body:{item:{comment:{id:e,date:n,edited_at:a,body:r,body_json:s,restacks:l,reaction_count:c,attachments:d,name:u,user_id:p,photo_url:m,user_bestseller_tier:h,userStatus:g}}}}=await i.get("/api/v1/reader/comment/".concat(o.id));t={comment:{id:e,date:n,edited_at:a,body:r,body_json:s,restacks:l,reaction_count:c,attachments:d,name:u,user_id:p,photo_url:m,user_bestseller_tier:h,userStatus:g}}}catch(e){return console.warn(e),null}let d=(0,l.AF5)(o,{urlParams:{utm_source:c.VU.commentEmbed}});return(0,a._)({url:d,commentId:o.id},t)}async function b(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=await _(e);return i?a.nodes.comment.create(i):null}async function f(){let e,t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;try{e=(await t.get("/api/v1/reader/feed/last-note")).body;let n=(0,l.Zgx)(e);return _(n)}catch(e){return null}}async function A(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=await f();return i?a.nodes.comment.create(i):null}},70515:function(e,t,n){n.d(t,{$f:()=>s,$h:()=>r,fP:()=>o});var a=n(9740);n(50129);var i=n(75237);let r=9999;function o(e,t){let{attachments:n}=e;if(n&&n.length>0){for(let e of n)if("post"===e.type){for(let n of e.post.publishedBylines)if(n.id===t)return!0;if((0,a.Ie)(e.publication,t))return!0}else if("comment"===e.type){if(e.comment.user_id===t)return!0}else if("publication"===e.type&&(0,a.Ie)(e.publication,t))return!0}return(function(e){let t=[];if(e.body_json)for(let o of(0,i.A)(e.body_json)){var n,a,r;"substack_mention"!==o.type||(null==(n=o.attrs)?void 0:n.mentionType)!=="user"&&(null==(a=o.attrs)?void 0:a.mentionType)||t.push(null==(r=o.attrs)?void 0:r.id)}return new Set(t)})(e).has(t)}function s(e){var t;return Number(null==(t=e.ancestor_path)?void 0:t.split(".")[0])||e.id}},11993:function(e,t,n){n.d(t,{H:()=>i});var a=n(82776);function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];e.match(/^([a-z]+:)?\/\//i)||(e="http://".concat(e));try{t=new URL(e)}catch(t){return console.error("Failed to parse URL",e,t),e}t.hostname=t.hostname.replace(/^www\./,""),t.pathname=t.pathname.replace(/\/+$/,""),t.hash="";let r=new Set;t.hostname.includes("youtube")&&r.add("v"),t.searchParams.forEach((e,n)=>{r.has(n)||t.searchParams.delete(n)});let o=t.toString().replace(/^\w+:\/\//,"").replace(/\/+$/,"");return o?i?(0,a.truncateText)(o,n):o:e}},79431:function(e,t,n){n.d(t,{Bp:()=>_,c:()=>d,e$:()=>u,so:()=>f});var a=n(50172),i=n(9751),r=n(93946),o=n(49807),s=n(57324),l=n(82061),c=n(29496);let d={attrs:{url:{default:""},subdomain:{default:null},pub:{default:null}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.community-chat",getAttrs:e=>{if(e instanceof HTMLElement)try{var t;return JSON.parse(null!=(t=e.getAttribute("data-attrs"))?t:"")}catch(e){}return!1}}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");if(Object.assign(t,{className:"community-chat","data-attrs":JSON.stringify(e.attrs)}),!e.attrs.pub||!e.attrs.subdomain){let e=document.createElement("div");return e.innerText="Could not load subscriber chat link",t.appendChild(e),t}return(0,r.Mv)((0,a.h)(i.b,{pub:e.attrs.pub,subdomain:e.attrs.subdomain}),t),t}catch(t){return console.error("Error rendering CommunityChatEmbed",t),(0,l.D)({msg:null,node:e,err:t,group:"block"})}return p(e)},toDOMStatic:e=>p(e)},u=(0,c.C)({name:"communityChat",nodeSpec:d,addCommands(){return{insertCommunityChat:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})},insertCommunityChatEmbed:e=>t=>{var n,a;let{commands:i}=t,r={url:(0,o.xWO)({pubKey:e.subdomain,utm_source:s.VU.chatEmbed}),subdomain:e.subdomain,pub:{id:e.id,name:e.name,author_name:null!=(n=e.primary_profile_name)?n:e.author_name,author_photo_url:null!=(a=e.primary_profile_photo_url)?a:e.author_photo_url}};return i.insertContent({type:this.name,attrs:r})},insertVisitThreadButton:e=>t=>{let{commands:n}=t;return n.insertCommunityChatEmbed(e)}}}});function p(e){return["div",{class:"community-chat","data-attrs":JSON.stringify(e.attrs),"data-component-name":"CommunityChatRenderPlaceholder"}]}let m=/^https?:\/\/open\.substack\.com(?:\.localhost:5000)?\/pub\/([^/]+)\/chat(\?.*)?$/,h=/^https?:\/\/([^.]+)\.substack\.com(?:\.localhost:5000)?\/chat(\?.*)?$/,g=/^https?:\/\/substack\.com(?:\.localhost:5000)?\/chat\/(\d+)/;function _(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&!t.nodes.communityChat)return null;let n=(0,o.Dlv)(e);return n&&n.pathname.match(/^(\/pub\/[^/]+)?\/chat($|\/)/)?e:null}async function b(e){var t,a,i;let r,l=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,c=(r=(t=e).match(m))||(r=t.match(h))?null!=(a=r[1])?a:null:null,d=null;try{if(c){let{body:t}=await l.get("/api/v1/publication/chat-embed").query({subdomain:c,url:e});d=t}else{let t,n=(t=e.match(g))&&null!=(i=t[1])?i:null;if(n){let e=await l.get("/api/v1/publication/public/".concat(n));d=e.body.pub,c=e.body.pub.subdomain}}}catch(e){}return d?{url:(0,o.xWO)({pubKey:d.subdomain,utm_source:s.VU.chatEmbed}),subdomain:c,pub:d}:null}async function f(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=await b(e);return i?a.nodes.communityChat.create(i):null}},45595:function(e,t,n){n.d(t,{RD:()=>f,c:()=>h,iH:()=>g,oM:()=>E});var a=n(69277),i=n(70408),r=n(50172),o=n(99595),s=n(73577),l=n(58600),c=n(93946),d=n(49807),u=n(57324),p=n(82061),m=n(29496);let h={attrs:{url:{default:""},postId:{default:null},communityPost:{default:null},author:{default:null}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.community-post",getAttrs:e=>{if(e instanceof HTMLElement)try{var t;return JSON.parse(null!=(t=e.getAttribute("data-attrs"))?t:"")}catch(e){}return!1}}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return Object.assign(t,{className:"community-post","data-attrs":JSON.stringify(e.attrs)}),(0,c.Mv)((0,r.h)(l.B,{postId:e.attrs.postId}),t),t}catch(t){return console.error("Error rendering CommunityPostEmbed",t),(0,p.D)({msg:null,node:e,err:t,group:"block"})}return _(e)},toDOMStatic:e=>_(e)},g=(0,m.C)({name:"communityPost",nodeSpec:h,addCommands(){return{insertCommunityPost:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}},addNodeView:()=>(0,o.gu)(s.v)});function _(e){return["div",{class:"community-post","data-attrs":JSON.stringify(e.attrs),"data-component-name":"CommunityPostPlaceholder"}]}let b=/^\/chat(?:\/\d+)?\/posts?\/([-A-Fa-f0-9]+)$/;function f(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&!t.nodes.communityPost)return null;let n=(0,d.Dlv)(e);return n&&n.pathname.match(b)?e:null}async function A(e){var t,r;let o,s=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,l=(0,d.Dlv)(e),c=l&&(null==(t=l.pathname.match(b))?void 0:t[1]);if(!c)return null;try{o=(await s.get("/api/v1/community/posts/".concat(c))).body}catch(e){if(!(e instanceof Error))return null;{let t=e.response;if(402!==t.status||null==(r=t.body)||!r.status)return null;o=null==t?void 0:t.body}}let{user:p,communityPost:{id:m,publication_id:h,body:g,audience:_,type:f,media_assets:A,link_url:E,threadMediaUploads:y},status:N}=o,O={author:p},v=(null==y?void 0:y.length)&&y[0]?y[0].mediaUpload:null;"all_subscribers"!==_||N&&"FREE_SUBSCRIPTION_REQUIRED"!==N||(O=(0,i._)((0,a._)({},O),{communityPost:{id:m,publication_id:h,body:g,audience:_,type:f,media_assets:A,threadMediaUploads:v?[{mediaUpload:v}]:[],link_url:E?(0,d.yRP)(E,{utm_source:u.VU.postEmbed}):null}}));let x=(0,d.sWz)({postId:c,utm_source:u.VU.threadEmbed});return(0,a._)({url:x,postId:c},O)}async function E(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=await A(e);return i?a.nodes.communityPost.create(i):null}},70679:function(e,t,n){n.d(t,{I8:()=>l,c:()=>s,eZ:()=>m,nV:()=>_,t7:()=>u});var a=n(99851),i=n(39318),r=n(8283),o=n(29496);let s={attrs:{url:{default:""},thumbnail_url:{default:""},thumbnail_url_full:{default:""},height:{default:""},title:{default:""},description:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.datawrapper-wrap",getAttrs:n(78495).t}],toDOM:e=>g(e),toDOMStatic:e=>h(e)},l=(0,o.C)({name:"datawrapper",nodeSpec:s,addCommands(){return{insertDatawrapper:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),c=/^.*https?:\/\/datawrapper\.dwcdn\.net\/.*$/,d=/^.*https?:\/\/(www\.)?datawrapper.de\/_\/.*$/,u=e=>{let t=c.exec(e);if(t)return t[0];let n=d.exec(e);return n&&n[0]},p=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/datawrapper-embed").query({url:e.trim()})).body},m=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema;if(!a.nodes.datawrapper)throw Error("Datawrapper node not found in schema");return a.nodes.datawrapper.create(await p(e))},h=function(e){let{}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=document.createElement("div");t.className="datawrapper-wrap static",t.setAttribute("data-component-name","DatawrapperToDOMStatic");let n=document.createElement("a");if(n.href=e.attrs.url.replace(/embed\//,""),n.setAttribute("target","_blank"),e.attrs.title){let n=document.createElement("div");n.className="datawrapper-title",n.innerHTML=e.attrs.title,t.appendChild(n)}if(e.attrs.description){let n=document.createElement("div");n.className="datawrapper-description",n.innerHTML=e.attrs.description,t.appendChild(n)}let a=document.createElement("div"),r=document.createElement("img");return r.className="datawrapper-wrap thumbnail",r.src=(0,i.dJ9)(e.attrs.thumbnail_url,640),r.style.backgroundImage="url(".concat(e.attrs.thumbnail_url,")"),e.attrs.belowTheFold&&r.setAttribute("loading","lazy"),n.append(r),a.append(n),t.appendChild(a),t},g=e=>{let t=document.createElement("div");t.id="datawrapper-iframe",t.className="datawrapper-wrap outer",t.dataset.attrs=JSON.stringify(e.attrs),t.setAttribute("data-component-name","DatawrapperToDOM");let n=document.createElement("iframe");n.id="iframe-datawrapper",n.className="datawrapper-iframe",n.src=e.attrs.url,n.width="730",n.height=e.attrs.height||"455",n.frameBorder="0",n.scrolling="no",e.attrs.belowTheFold&&n.setAttribute("loading","lazy"),t.appendChild(n);let a=document.createElement("script");return a.type="text/javascript",a.text=r.I,t.appendChild(a),t};class _{constructor(e){(0,a._)(this,"dom",void 0);const t=g(e),n=t.querySelector(".datawrapper-iframe"),i=document.createElement("div");i.className="datawrapper-screen",i.addEventListener("dblclick",()=>{var e;i.classList.add("sunken"),null==(e=n.focus)||e.call(n)}),null==n||n.addEventListener("blur",()=>{i.classList.remove("sunken")}),t.appendChild(i),this.dom=t}}},21577:function(e,t,n){n.d(t,{TG:()=>x,c:()=>y,ed:()=>N,lL:()=>v});var a=n(69277),i=n(70408),r=n(32641),o=n(50172),s=n(26469),l=n(99595),c=n(44383),d=n.n(c),u=n(15734),p=n.n(u),m=n(16460),h=n(47074),g=n(68349),_=n(93946),b=n(49807),f=n(82061),A=n(29496);let E="digest-post-embed",y={attrs:{nodeId:{default:null},caption:{default:null},cta:{default:null},showBylines:{default:!0},size:{default:null},isEditorNode:{default:!1},title:{default:null},publishedBylines:{default:null},post_date:{default:null},cover_image:{default:null},cover_image_alt:{default:null},canonical_url:{default:null},section_name:{default:null},video_upload_id:{default:null},id:{default:null},type:{default:null},reaction_count:{default:null},comment_count:{default:null},publication_id:{default:null},publication_name:{default:null},publication_logo_url:{default:null},belowTheFold:{default:!1},youtube_url:{default:null},show_links:{default:null},feed_url:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,editable:!1,parseDOM:[{tag:".".concat(E),getAttrs:e=>{if("string"==typeof e)return!1;try{var t;let n=JSON.parse(null!=(t=e.getAttribute("data-attrs"))?t:"{}");return(0,i._)((0,a._)({},n),{nodeId:(0,g.QT)()})}catch(e){return!1}}}],toDOM:e=>{if("undefined"!=typeof window&&e.attrs.isEditorNode)try{let t=document.createElement("div");return t.className=E,t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,_.Mv)((0,o.h)(m.S,(0,i._)((0,a._)({},e.attrs),{caption:e.attrs.caption,cta:e.attrs.cta,showBylines:e.attrs.showBylines,size:e.attrs.size||void 0,isEditor:!0,pub:window._preloads.pub})),t),t}catch(t){return console.error("Error rendering DigestPostEmbedWeb",t),(0,f.D)({msg:null,node:e,err:t,group:"block"})}return O(e)},toDOMStatic:e=>["div",{class:E,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs))}]},N=(0,A.C)({name:"digestPostEmbed",nodeSpec:y,addNodeView:()=>(0,l.gu)(h.m),addCommands:()=>({convertDigestPostEmbedToLinkV2:e=>{let{pos:t,url:n}=e;return e=>{let{dispatch:a,state:i,chain:r}=e;if(a){let e=i.tr,a=t+n.length;return r().setNodeSelection(t).deleteSelection().command(e=>{let{tr:a}=e;return a.insertText(n,t),!0}).command(e=>{let{tr:r}=e;return i.schema.marks.link?(r.addMark(t,a+1,i.schema.marks.link.create({text:n,href:n})),!0):(console.warn("Link mark not in schema, cannot convert digest to v2"),!1)}).setTextSelection(s.U3.create(e.doc,t,a+1)).scrollIntoView().focus(a+2).run()}return!0}},convertDigestPostEmbedToEmbeddedPostV2:e=>{let{pos:t,attrs:n}=e;return e=>{let{dispatch:a,chain:i}=e;if(a){let e={id:n.id,url:n.url,title:n.title,publication_id:n.publication_id,publication_name:n.publication_name,publication_logo_url:n.publication_logo_url,date:n.post_date,comment_count:n.comment_count,bylines:n.publishedBylines};return i().setNodeSelection(t).deleteCurrentNode().insertContent({type:"embeddedPost",attrs:e}).run()}return!0}}})}),O=e=>["div",{class:E,"data-attrs":JSON.stringify(e.attrs)}],v=function(e){var t,n,a,i;let{customSchema:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r&&!r.nodes.digestPostEmbed)return null;let o=(0,b.Dlv)(e);if(!o)return null;let s=(0,b.JQq)({url:e,currentSubdomain:null==(n=window._preloads)||null==(t=n.pub)?void 0:t.subdomain,currentCustomDomain:null==(i=window._preloads)||null==(a=i.pub)?void 0:a.custom_domain});return o&&(o.pathname.startsWith("/p/")||(0,b.Sns)(o))&&s?e:null},x=async e=>{let{pub:t,post:n}=(await p().get("/api/v1/posts/digest_embed").query({url:e.trim()})).body,{truncated_body_text:o}=n,s=(0,r._)(n,["truncated_body_text"]),{id:l,name:c,logo_url:u}=t;n.is_draft&&alert("This post has not been published yet. Check that the embed looks correct before publishing.");let m=d()(s,["title","publishedBylines","post_date","cover_image","cover_image_alt","canonical_url","section_name","id","type","reaction_count","comment_count","video_upload_id","youtube_url","show_links","feed_url"]);return(0,i._)((0,a._)({caption:null!=o?o:"",cta:n.video_upload_id?"Watch now":"podcast"===n.type?"Listen now":"Read full story",size:"lg",isEditor:!0},m),{publishedBylines:m.publishedBylines.map(e=>d()(e,["id","name","bio","photo_url","is_guest","bestseller_tier","primaryPublicationSubscribeUrl","primaryPublicationUrl","primaryPublicationName","primaryPublicationId"])),publication_id:l,publication_name:c,publication_logo_url:null!=u?u:""})}},97966:function(e,t,n){n.d(t,{TG:()=>p,Xs:()=>g,c:()=>u,iO:()=>m});var a=n(69277),i=n(70408),r=n(39318),o=n(70189),s=n(49807),l=n(82776),c=n(57324),d=n(29496);let u={attrs:{id:{default:null},url:{default:null},publication_id:{default:null},publication_name:{default:null},publication_logo_url:{default:null},title:{default:null},truncated_body_text:{default:null},date:{default:null},like_count:{default:null},comment_count:{default:null},bylines:{default:null},utm_campaign:{default:null},belowTheFold:{default:!1},type:{default:null},language:{default:"en"}},untrackedAttrs:["truncated_body_text","bylines"],inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.embedded-post-wrap",getAttrs:n(78495).t}],toDOM:e=>{let{publication_logo_url:t,publication_name:n,title:a,truncated_body_text:i,url:o,bylines:s,date:d,like_count:u,comment_count:p,utm_campaign:m,id:h,type:g,language:_}=e.attrs,{iString:b}=I18N.i(_),f=(0,r.yRP)(o,{utm_source:c.VU.substack,utm_campaign:m||c._9.postEmbed,utm_medium:c.Jn.web});""===f&&console.error("Invalid path (".concat(o,") for post: ").concat(h));let A=document.createElement("div");A.classList.add("embedded-post-title-icon"),A.innerHTML='\n \n \n';let E=document.createElement("div");return E.classList.add("embedded-post-cta-icon"),E.innerHTML='\n \n',["div",{class:"embedded-post-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"EmbeddedPostToDOM"},["a",{class:"embedded-post",native:!0,href:f},["div",{class:"embedded-post-header"},t?["img",{class:"embedded-post-publication-logo",src:(0,r.dJ9)(t,56),loading:e.attrs.belowTheFold?"lazy":null}]:["span",{}],["span",{class:"embedded-post-publication-name"},n||b("Failed to embed post")]],["div",{class:"embedded-post-title-wrapper"},..."podcast"===g?[A]:[],["div",{class:"embedded-post-title"},a||b("Failed to embed post")]],...i?[["div",{class:"embedded-post-body"},(0,l.formatEllipsis)(i)]]:[],["div",{class:"embedded-post-cta-wrapper"},..."podcast"===g?[E]:[],["span",{class:"embedded-post-cta"},b("podcast"===g?"Listen now":"Read more")]],["div",{class:"embedded-post-meta"},(0,l.getPostEmbedMeta)({date:d,bylines:s,like_count:u,comment_count:p,language:_})]]]},toDOMStatic:e=>{let{publication_logo_url:t,publication_name:n,title:a,truncated_body_text:i,url:o,bylines:s,date:d,like_count:u,comment_count:p,utm_campaign:m,type:h,language:g}=e.attrs,{iString:_}=I18N.i(g),b=(0,r.yRP)(o,{utm_source:c.VU.substack,utm_campaign:m||c._9.postEmbed,utm_medium:c.Jn.email}),f=(0,r.dJ9)("/img/podcast-headphones.svg",19,{format:"png"}),A=(0,r.dJ9)("/img/audio-player-play.png",12);return["div",{class:"embedded-post-wrap","data-component-name":"EmbeddedPostToDOMStatic"},["div",{class:"embedded-post"},["div",{class:"embedded-post-header"},t?["img",{class:"embedded-post-publication-logo",src:(0,r.dJ9)(t,56),width:28,height:28}]:["span",{}],["span",{class:"embedded-post-publication-name"},n||_("Failed to embed post")]],["div",{class:"embedded-post-title-wrapper"},..."podcast"===h?[["img",{class:"embedded-post-title-icon embedded-post-title-icon-static",src:f}]]:[],["a",{class:"embedded-post-title",href:b||"#"},a||_("Failed to embed post")]],...i?[["div",{class:"embedded-post-body"},(0,l.formatEllipsis)(i)]]:[["br"],["br"]],["div",{class:"embedded-post-cta-wrapper"},..."podcast"===h?[["img",{width:12,height:12,class:"embedded-post-cta-icon-static",src:A}]]:[],["a",{class:"embedded-post-cta",href:b||"#"},_("podcast"===h?"Listen now":"Read more")]],["div",{class:"embedded-post-meta"},(0,l.getPostEmbedMeta)({date:d,bylines:s,like_count:u,comment_count:p,language:g})]]]}},p=(0,d.C)({name:"embeddedPost",nodeSpec:u,addCommands(){return{insertEmbeddedPost:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),m=function(e){var t,n,a,i;let{customSchema:l,forceAllowOwnPub:c=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l&&!l.nodes.embeddedPost)return null;let d=(0,r.Dlv)(e);if(!d)return null;let u=(0,o.n)(d.pathname);if(u&&(0,o.g0)(u))return e;let p=(0,s.JQq)({url:e,currentSubdomain:null==(n=window._preloads)||null==(t=n.pub)?void 0:t.subdomain,currentCustomDomain:null==(i=window._preloads)||null==(a=i.pub)?void 0:a.custom_domain});return d&&(d.pathname.startsWith("/p/")||(0,s.Sns)(d))&&!(p&&!c)?e:null},h=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;try{return(await t.get("/api/v1/posts/embed").query({url:e.trim()})).body}catch(e){return null}},g=async function(e){let{customSchema:t,language:r="en"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,s=await h(e);return s?o.nodes.embeddedPost.create((0,i._)((0,a._)({},s),{language:r})):null}},70084:function(e,t,n){n.d(t,{JA:()=>_,c:()=>m,fz:()=>h,oI:()=>g,t2:()=>f});var a=n(69277),i=n(70408),r=n(79785),o=n(39318),s=n(57324),l=n(29496),c=n(78495);function d(){let e=(0,r._)(["By ",""]);return d=function(){return e},e}function u(){let e=(0,r._)(["By ",""]);return u=function(){return e},e}let p=e=>e?{style:"background-color: ".concat(e)}:{},m={attrs:{id:{default:null},name:{default:""},logo_url:{default:null},base_url:{default:null},hero_text:{default:null},author_name:{default:null},show_subscribe:{default:!0},logo_bg_color:{default:null},language:{default:"en"}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.embedded-publication-wrap",getAttrs:c.t}],toDOMWithSubscribe:e=>{let{name:t,logo_url:n,base_url:i,hero_text:r,author_name:l,logo_bg_color:c,language:u}=e.attrs,{iString:m,iTemplate:h}=I18N.i(u);return["div",{class:"embedded-publication-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"EmbeddedPublicationToDOMWithSubscribe"},["div",{class:"embedded-publication show-subscribe"},["a",{class:"embedded-publication-link-part",native:!0,href:(0,o.yRP)(i,{utm_source:s.VU.substack,utm_campaign:s._9.publicationEmbed,utm_medium:s.Jn.web})},...n?[["img",(0,a._)({class:"embedded-publication-logo",src:(0,o.dJ9)(n),width:56,height:56},p(c))]]:[],["span",{class:"embedded-publication-name"},t||m("Failed to embed publication")],...r?[["div",{class:"embedded-publication-hero-text"},r]]:[],...l&&!t.includes(l)?[["div",{class:"embedded-publication-author-name"},h(d(),l)]]:[]],["form",{class:"embedded-publication-subscribe",method:"GET",action:(0,o.eV6)({base_url:i},{addBase:!0})},["input",{type:"hidden",name:"source",value:"publication-embed"}],["input",{type:"hidden",name:"autoSubmit",value:"true"}],["input",{type:"email",class:"email-input",name:"email",placeholder:m("Type your email...")}],["input",{type:"submit",class:"button primary",value:m("Subscribe")}]]]]},toDOMWithoutSubscribe:e=>{let{name:t,logo_url:n,base_url:i,hero_text:r,author_name:l,logo_bg_color:c,language:d}=e.attrs,{iString:m,iTemplate:h}=I18N.i(d);return["div",{class:"embedded-publication-wrap","data-attrs":JSON.stringify(e.attrs)},["a",{class:"embedded-publication embedded-publication-flex",native:!0,href:(0,o.yRP)(i,{utm_source:s.VU.substack,utm_campaign:s._9.publicationEmbed,utm_medium:s.Jn.web})},...n?[["div",{class:"embedded-publication-left"},["img",(0,a._)({class:"embedded-publication-logo",src:(0,o.dJ9)(n),width:40,height:40},p(c))]]]:[],["div",{class:"embedded-publication-right"},["span",{class:"embedded-publication-name"},t||m("Failed to embed publication")],...r?[["div",{class:"embedded-publication-hero-text"},r]]:[],...l&&!t.includes(l)?[["div",{class:"embedded-publication-author-name"},h(u(),l)]]:[]]]]},toDOMStatic:e=>{let{name:t,logo_url:n,base_url:i,hero_text:r,author_name:l,logo_bg_color:c}=e.attrs,d=(0,o.yRP)(i,{utm_source:s.VU.substack,utm_campaign:s._9.publicationEmbed,utm_medium:s.Jn.email});return["div",{class:"embedded-publication-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"EmbeddedPublicationToDOMStatic"},["table",{class:"embedded-publication"},["tr",{},...n?[["td",{class:"embedded-publication-left",valign:"top",width:56},["img",(0,a._)({class:"embedded-publication-logo",src:(0,o.dJ9)(n),width:40,height:40},p(c))]]]:[],["td",{class:"embedded-publication-right"},["span",{class:"embedded-publication-name"},["a",{href:d},t||"Failed to embed publication"]],...r?[["div",{class:"embedded-publication-hero-text"},["a",{href:d},r]]]:[],...l&&!t.includes(l)?[["div",{class:"embedded-publication-author-name"},["a",{href:d},"By ".concat(l)]]]:[]]]]]},toDOM:e=>e.attrs.show_subscribe?m.toDOMWithSubscribe(e):m.toDOMWithoutSubscribe(e)},h=(0,l.C)({name:"embeddedPublication",nodeSpec:m,addCommands(){return{insertEmbeddedPublication:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),g=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&!t.nodes.embeddedPublication)return null;let n=(0,o.Dlv)(e);return n&&(!n.pathname||"/"===n.pathname)?e:null},_=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;try{let n=await t.get("/api/v1/publication/embed").query({url:e.trim()});if(!n.body.id)return null;return n.body}catch(e){return null}},b=async e=>{let t=await _(e);return t?(0,i._)((0,a._)({},t),{show_subscribe:!0}):null},f=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=await b(e);return i?a.nodes.embeddedPublication.create(i):null}},79493:function(e,t,n){n.d(t,{u:()=>r});var a=n(42080),i=n(35974);let r=a.N_.extend({addKeyboardShortcuts(){return{"Mod-k":()=>this.editor.commands.addLink()}},addCommands:()=>({addLink:()=>e=>{let{state:t,dispatch:n,view:a}=e;return(0,i.c)(t.schema)(t,n,a)}})}).configure({autolink:!1,openOnClick:!1})},65768:function(e,t,n){n.d(t,{Ay:()=>p,tO:()=>h});var a=n(99851),i=n(15734),r=n.n(i),o=n(98111),s=n(39318),l=n(69706),c=n(8037),d=n(29496);class u{update(e){return e.type.name===this.fileEmbed.substackType}stopEvent(e){return"file-embed-menu-button"===e.target.className}constructor({fileEmbed:e,node:t,view:n,getPos:i}){(0,a._)(this,"dom",void 0),(0,a._)(this,"fileEmbed",void 0),this.fileEmbed=e,this.dom=e.buildNodeView(t,n,i)}}class p{getNodeView(e){let{editor:t,node:n,getPos:a}=e;return new u({fileEmbed:this,node:n,view:t.view,getPos:a})}get nodeSpec(){return{definition:this,attrs:{filename:{default:null},filetype:{default:null},filesize:{default:null},href:{default:null},title:{default:null},description:{default:null},thumbnail:{default:null},fileKey:{default:null},dirty:{default:!0},raw_href:{default:null},error:{default:null},empty:{default:!1}},substackType:this.substackType,inline:!1,atom:!0,group:"block",selectable:!1,draggable:!0,isolating:!0,defining:!0,parseDOM:(0,c.T_)({mimeTypesToSignature:this.mimeTypesToSignature,substackType:this.substackType,actionButtonAttr:this.actionButtonAttr}),toDOM:e=>{let t=["div",{class:"file-embed-wrapper","data-component-name":"FileToDOM"},["div",{class:"file-embed-container-reader"},["div",{class:"file-embed-container-top"},["image",{class:"file-embed-thumbnail".concat(e.attrs.thumbnail?"":"-default"),src:e.attrs.thumbnail||(0,s.dJ9)("/img/attachment_icon.svg")}],["div",{class:"file-embed-details"},["div",{class:"file-embed-details-h1"},e.attrs.title||e.attrs.filename||""],["div",{class:"file-embed-details-h2"},(0,c.iW)({attrs:e.attrs})]],["a",{class:"file-embed-button wide",href:e.attrs[this.actionButtonAttr]},["span",{class:"file-embed-button-text"},this.actionButtonText]]]]];return e.attrs.description&&t[2].push(["div",{class:"file-embed-description"},e.attrs.description]),t[2].push(["a",{class:"file-embed-button narrow",href:e.attrs[this.actionButtonAttr]},["span",{class:"file-embed-button-text"},this.actionButtonText]]),t},toDOMStatic:e=>{var t;let n,a,i=(null==(t=e.attrs)?void 0:t.title)||"";return e.attrs.thumbnail&&-1===e.attrs.thumbnail.indexOf("attachment_icon.svg")?(a=!1,n=(0,s.dJ9)(e.attrs.thumbnail,100,{aspect:l.fo,crop:"fill",gravity:"auto",height:150})):(a=!0,n=(0,s.dJ9)("/img/attachment_icon.svg",32,{aspect:l.Zi,crop:"fill",gravity:"auto",height:32})),i&&i.length>40&&(i="".concat(i.substr(0,40),"...")),["table",{class:"static-file-embed-table",cellspacing:"16","data-component-name":"FileToDOMStatic"},["tr",{},["td",{class:"static-file-embed-thumbnail-container ".concat(a?"default":"")},["img",{class:"static-file-embed-thumbnail ".concat(a?"default":""),src:n}]],["td",{class:"static-file-embed-details ".concat(a?"default":"")},["div",{class:"static-file-embed-details-h1"},i],["div",{class:"static-file-embed-details-h2"},(0,c.iW)({attrs:e.attrs})]]],...e.attrs.description?[["tr",{},["td",{class:"static-file-embed-description",colspan:"2"},["p",{style:"margin: 0;"},e.attrs.description||""]]]]:[],["tr",{},["td",{class:"static-file-embed-button-container",colspan:"2"},["table",{class:"static-file-embed-button",cellspacing:"0"},["tr",{},["td",{align:"center"},["a",{href:"".concat(e.attrs[this.actionButtonAttr],"?token=").concat(o.T.FILE_DOWNLOAD_TOKEN),class:"static-file-embed-anchor"},this.actionButtonText]]]]]]]}}}buildNodeView(e,t,n){var a,i,r,o;let c=document.createElement("div");c.className="file-embed-wrapper-editor";let d=document.createElement("div");d.className="file-embed-container",d.dataset.attrs=JSON.stringify(e.attrs),d.appendChild(this.generateContainerTop(e)),d.appendChild(this.generateDescription(e)),d.appendChild(this.generateButton("narrow"));let u=document.createElement("div");u.className="file-embed-aligner";let{button:p,menu:m}=this.generateDropdown(e,t,n);u.appendChild(d),u.appendChild(m),c.appendChild(u);let h=document.createElement("img");h.src=(0,s.dJ9)("/img/file_drag_default.png");let g=document.createElement("img");g.src=(0,s.dJ9)(null==e||null==(a=e.attrs)?void 0:a.thumbnail,100,{aspect:l.fo,crop:"fill",gravity:"auto",height:150}),c.addEventListener("dragstart",t=>{var n,a,i;(null==e||null==(n=e.attrs)?void 0:n.thumbnail)?null==(a=t.dataTransfer)||a.setDragImage(g,0,0):null==(i=t.dataTransfer)||i.setDragImage(h,0,0)}),(null==(r=t.state)||null==(i=r.doc)?void 0:i.nodeAt(t.state.doc.nodeSize-3))===e&&setTimeout(()=>{t.dispatch(t.state.tr.insertText("\r",t.state.doc.nodeSize-2))},0);let _=document.createElement("div");_.appendChild(this.generateSpinner());let b=this.generateErrorCover(t,e);return(null==(o=e.attrs)?void 0:o.error)&&(p.className="file-embed-menu-button hidden",d.className="file-embed-container covered error",d.appendChild(b)),e.startReplacing=()=>{_.className="file-embed-container cover",d.className="file-embed-container covered",p.className="file-embed-menu-button disabled",d.contains(b)&&d.removeChild(b),d.appendChild(_)},e.stopReplacing=e=>{e?(p.className="file-embed-menu-button hidden",d.className="file-embed-container covered error",d.appendChild(b)):(d.className="file-embed-container",p.className="file-embed-menu-button"),d.removeChild(_)},c}getFileAttrs(e){return{href:e.getAttribute("href"),filename:e.getAttribute("filename"),filetype:e.getAttribute("filetype"),filesize:e.getAttribute("filesize"),title:e.getAttribute("title"),dirty:e.getAttribute("dirty"),description:e.getAttribute("description"),error:e.getAttribute("error")}}generateThumbnail(e){let t=document.createElement("img");return t.className="file-embed-thumbnail".concat(e.attrs.thumbnail?"":"-default"),t.setAttribute("src",e.attrs.thumbnail||(0,s.dJ9)("/img/attachment_icon.svg")),e.updateThumbnail=async function(n){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{aspect:l.fo,crop:"fill",gravity:"auto",width:400,height:600};if(e.attrs.dirty=!0,!n){e.attrs.thumbnail=null,t.onload=()=>{t.className="file-embed-thumbnail-default"},t.src=(0,s.dJ9)("/img/attachment_icon.svg");return}let o=await new Promise((e,t)=>{if(!window.FileReader)return void t(TypeError("File reader API not found"));let a=new FileReader;a.onerror=t,a.onload=()=>{e(a.result)},a.readAsDataURL(n)}),c=await r().post("/api/v1/image").send({image:o}),d=(0,s.dJ9)(c.body.url,a,i);return e.attrs.thumbnail=d,t.onload=()=>{t.className="file-embed-thumbnail"},t.src=d,d},t}generateDetails(e){let t=document.createElement("div");t.className="file-embed-details";let n=document.createElement("div");n.className="file-embed-details-h1",n.innerText=e.attrs.title||e.attrs.filename;let a=document.createElement("div");return a.className="file-embed-details-h2",a.innerText=(0,c.iW)({attrs:e.attrs}),t.appendChild(n),t.appendChild(a),e.updateTitle=t=>{e.attrs.title=t,e.attrs.dirty=!0,n.innerText=t},t}generateButton(e){let t=document.createElement("button");t.className="file-embed-button primary mock ".concat(e);let n=document.createElement("span");return n.className="file-embed-button-text",n.innerText=this.actionButtonText,t.appendChild(n),t}generateDescription(e){let t=document.createElement("div");return t.className="file-embed-description ",t.innerText=e.attrs.description,e.updateDescription=n=>{e.attrs.dirty=!0,e.attrs.description=n?n.trim():null,t.innerText=n?n.trim():null},t}generateErrorCover(e,t){var n,a;let i=document.createElement("div");i.className="file-embed-container cover error";let r=document.createElement("div");r.className="file-embed-error-inner";let o=document.createElement("img");o.className="file-embed-error-icon",o.setAttribute("src",(0,s.oOP)("/img/alert-circle.svg"));let l=document.createElement("div");l.className="file-embed-error-message",l.innerText=null==(n=t.attrs.error)?void 0:n.message;let c=document.createElement("div");c.className="file-embed-error-button",c.onclick=this.makeReplaceButtonClickHandler(e,t);let d=document.createElement("span");return d.className="file-embed-error-button-text",d.innerText=(null==(a=t.attrs.error)?void 0:a.button)||"Try again",c.appendChild(d),r.appendChild(o),r.appendChild(l),r.appendChild(c),i.appendChild(r),i}generateSpinner(){let e=document.createElement("div");e.className="embed-loader-container";let t=document.createElement("div");t.className="embed-loader";let n=document.createElement("div");return n.innerText="Replacing...",n.className="embed-loader-text",e.appendChild(t),e.appendChild(n),e}makeReplaceButtonClickHandler(e,t){return()=>{let n=document.createElement("input");n.className="sidebar-item-hidden-file-input",n.type="file",n.oninput=n=>{var a,i;let r=null==(i=n.target)||null==(a=i.files)?void 0:a[0];e.dispatchEvent({type:"file_replace",node:t,file:r})},document.body.appendChild(n),n.click(),document.body.removeChild(n)}}generateDropdown(e,t,n){let a=document.createElement("div");a.className="post-editor-file-embed-dropdown-container dropdown-container";let i=document.createElement("div");i.className="dropdown-content";let r=document.createElement("div");r.className="dropdown-list",[{label:"Edit",icon:"edit",onclick:()=>{t.dispatchEvent(new CustomEvent("file_edit",{detail:{node:e}}))}},{label:"Replace",icon:"swap",onclick:this.makeReplaceButtonClickHandler(t,e)},{label:"Download",icon:"download",onclick:()=>{let t=document.createElement("a");t.href=e.attrs.raw_href,t.download=e.attrs.filename,document.body.appendChild(t);let n=window.onbeforeunload;window.onbeforeunload=null,t.click(),window.onbeforeunload=n,document.body.removeChild(t)}},{label:"Delete",icon:"trash",onclick:()=>{if("function"!=typeof n)return;let e=n();t.dispatch(t.state.tr.delete(e,e+1))}}].map(e=>{let t=document.createElement("div");t.className="dropdown-list-item",t.onclick=e.onclick;let n=document.createElement("div");n.className="dropdown-list-item-icon icon-".concat(e.icon);let a=document.createElement("span");return a.className="dropdown-list-item-text",a.innerText=e.label,t.appendChild(n),t.appendChild(a),t}).forEach(e=>{r.appendChild(e)}),i.appendChild(r);let o=document.createElement("div");o.className="file-embed-menu-button";let s=document.createElement("div");return s.className="dropdown-icon",s.appendChild(document.createElement("span")),s.appendChild(document.createElement("span")),s.appendChild(document.createElement("span")),s.appendChild(document.createElement("span")),o.appendChild(s),a.appendChild(o),a.appendChild(i),o.onclick=()=>{if("dropdown-content open"===i.className)return;i.className="dropdown-content open",s.className="dropdown-icon open",o.className="file-embed-menu-button open";let e=()=>{i.className="dropdown-content",s.className="dropdown-icon",o.className="file-embed-menu-button",document.removeEventListener("click",e)};setTimeout(()=>{document.addEventListener("click",e)},0)},{button:o,menu:a}}generateContainerTop(e){let t=document.createElement("div");return t.className="file-embed-container-top",t.appendChild(this.generateThumbnail(e)),t.appendChild(this.generateDetails(e)),t.appendChild(this.generateButton("wide")),t}constructor({substackType:e,actionButtonText:t,actionButtonAttr:n,mimeTypesToSignature:i}){(0,a._)(this,"substackType","file"),(0,a._)(this,"actionButtonText","Download"),(0,a._)(this,"actionButtonAttr","raw_href"),(0,a._)(this,"mimeTypesToSignature",void 0),e&&(this.substackType=e),t&&(this.actionButtonText=t),n&&(this.actionButtonAttr=n),this.mimeTypesToSignature=i}}let m=new p({actionButtonText:null,substackType:null,actionButtonAttr:null,mimeTypesToSignature:{}}),h=(0,d.C)({name:"file",nodeSpec:m.nodeSpec})},8037:function(e,t,n){let a;n.d(t,{Rq:()=>r,T_:()=>c,f9:()=>s,iW:()=>d,mw:()=>l,qy:()=>o});var i=n(82776);n.e("7578").then(n.t.bind(n,86049,19)).then(e=>{a=e.default});let r={"application/x-cbr":[[82,97,114,33,26,7,0],[82,97,114,33,26,7,1,0],[127,69,76,70]],"application/x-cbz":[[80,75,3,4],[80,75,5,6],[80,75,7,8]]},o={"application/vnd.amazon.kfx":[[75,70,88,32]],"application/vnd.amazon.kpf":[[80,75,3,4]],"application/epub+zip":[[80,75,3,4]],"application/x-mobipocket-ebook":[[77,79,66,73]]},s={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[[80,75,3,4],[80,75,5,6],[80,75,7,8]]},l={"application/pdf":[[37,80,68,70]]};function c(e){let{mimeTypesToSignature:t,substackType:n,actionButtonAttr:a}=e;return[{tag:"div.file-embed-wrapper",getAttrs:e=>{let r={};try{var o,s,l;let[c,d,u]=e.children[0].children;if(!c)return!1;let[p,m]=c.children;if(!m||!p)return!1;let[h,g]=m.children;if(!g)return!1;r.title=null==h?void 0:h.textContent;let[_,b]=(null==(o=g.textContent)?void 0:o.split("∙"))||[];if(!_||!b)return!1;r.filesize=(0,i.formattedBytesToNumber)(_);let f=null==(l=b.split("File"))||null==(s=l[0])?void 0:s.trim().toLowerCase();if(!f)return!1;if(t[f]||n===f)r.filetype=f;else{if("file"!==n)return!1;r.filetype=f}return(null==p?void 0:p.classList.contains("file-embed-thumbnail-default"))||(r.thumbnail=p.getAttribute("src")||""),r.description=null==d?void 0:d.innerText,r[a]=null==u?void 0:u.getAttribute("href"),r}catch(e){return!1}}}]}function d(e){var t;let{attrs:n}=e;return"".concat((0,i.numberToHumanFileSize)(null!=(t=Number(n.filesize))?t:void 0)," ∙ ").concat(function(e){var t,n,i,r;let{filetype:o}=e;return a&&o?["application/vnd.amazon.kfx","application/vnd.amazon.kpf","application/vnd.amazon.ebook"].includes(o)?"Kindle":null!=(r=null==(n=a.extension(o)||(null==(i=o.split("/").pop())?void 0:i.split("-").pop()))||null==(t=n.toUpperCase)?void 0:t.call(n))?r:"":""}({filetype:n.filetype})," file")}},31933:function(e,t,n){n.d(t,{c:()=>m,ik:()=>h,tZ:()=>b});var a=n(69277),i=n(32641),r=n(99595),o=n(15734),s=n.n(o),l=n(64399),c=n(68349),d=n(29496),u=n(78495);let p="fp-recirc-block",m={attrs:{nodeId:{default:null},title:{default:"Featured Stories"},postIds:{default:[]},showCount:{default:4},posts:{default:null},isEditorNode:{default:!1},align:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,editable:!1,parseDOM:[{tag:".".concat(p),getAttrs:u.t}],toDOM:e=>g(e),toDOMStatic:e=>{let t=e.attrs,{align:n}=t,r=(0,i._)(t,["align"]);return["div",{class:p,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},r))}]}},h=(0,d.C)({name:"fpRecircBlock",nodeSpec:m,addNodeView:()=>(0,r.gu)(l.n),addCommands:()=>({insertFpRecircBlock:e=>t=>{let{commands:n}=t,a={nodeId:(0,c.QT)(),title:e.title||"Featured Stories",postIds:e.postIds||[],showCount:e.showCount||4,posts:e.posts||void 0,isEditorNode:!0,align:e.align||null};return n.insertContent({type:"fpRecircBlock",attrs:a})},updateFpRecircBlock:e=>{let{pos:t,attrs:n}=e;return e=>{let{state:i,dispatch:r}=e;if(r){let e=i.doc.nodeAt(t);if(e&&"fpRecircBlock"===e.type.name){let o=i.tr;return o.setNodeMarkup(t,void 0,(0,a._)({},e.attrs,n)),r(o),!0}}return!1}}})}),g=e=>["div",{class:p,"data-attrs":JSON.stringify(e.attrs)}],_=e=>{var t,n,a;return{id:e.id,title:e.title,author_name:(null==(n=e.publishedBylines)||null==(t=n[0])?void 0:t.name)||e.author_name,author_names:null==(a=e.publishedBylines)?void 0:a.map(e=>e.name),cover_image:e.cover_image,canonical_url:e.canonical_url,post_date:e.post_date}},b=async(e,t)=>{try{if(e&&e.length>0)return((await s().get("/api/v1/posts/by_ids").query({ids:e.join(",")})).body.posts||[]).map(_);return((await s().get("/api/v1/archive").query({sort:"new",limit:4})).body||[]).map(_)}catch(e){return console.error("Error fetching fp recirc block posts:",e),[]}}},37859:function(e,t,n){n.d(t,{SU:()=>c,Sh:()=>s,Z7:()=>u,c:()=>o});var a=n(74728),i=n.n(a),r=n(29496);let o={attrs:{innerHTML:{default:""},stylesheet:{default:""}},untrackedAttrs:["innerHTML","stylesheet"],inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.github-gist",getAttrs:n(78495).t}],toDOMStatic:e=>p(e,!0),toDOM:e=>p(e,!1)},s=(0,r.C)({name:"gitgist",nodeSpec:o,addCommands(){return{insertGithubGist:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),l=/(https?:\/\/gist.github.com\/([^\s]*\/[^\s\.#]*)([\.#][^\s]*)?)/,c=function(e){var t;let{customSchema:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&!n.nodes.gitgist)return null;let a=l.exec(e);return null!=(t=a&&a[1])?t:null},d=async e=>{let t,a=(t=e.match(l))&&t[2]?t[2]:null,i=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await i.get("/api/v1/github/gist").query({id:a})).body},u=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.gitgist.create(await d(e))};function p(e,t){let n=document.createElement("div");n.classList.add("github-gist"),t?n.setAttribute("data-component-name","GitgistToDOMStatic"):(n.dataset.attrs=JSON.stringify(e.attrs),n.setAttribute("data-component-name","GitgistToDOM")),n.innerHTML=i()(e.attrs.innerHTML,{allowedTags:i().defaults.allowedTags,allowedAttributes:Object.assign({},i().defaults.allowedAttributes,{"*":["href","style","id","data-*","itemprop","class"]})});let a=document.createElement("link");if(a.rel="stylesheet",a.href=e.attrs.stylesheet,n.prepend(a),t){n.classList.add("static");let e=n.getElementsByTagName("td");for(let t=0;t".concat(n.innerHTML,"")),n.classList.add("content"),n.height="20px")}}return n}},31611:function(e,t,n){n.d(t,{CW:()=>b,Mi:()=>_,NT:()=>A,c:()=>g,h$:()=>y});var a=n(69277),i=n(32485),r=n.n(i),o=n(96540),s=n(65848),l=n(68349),c=n(39318),d=n(49807),u=n(69706),p=n(82061),m=n(29496);let h=e=>e.attrs.fullscreen?"full":e.attrs.imageSize||"normal",g={attrs:{src:{default:""},srcNoWatermark:{default:null},fullscreen:{default:null},imageSize:{default:null},height:{default:null},width:{default:null},resizeWidth:{default:null},bytes:{default:null},alt:{default:null},title:{default:null},type:{default:null},href:{default:null},belowTheFold:{default:!1},topImage:{default:!1},internalRedirect:{default:null},isProcessing:{default:!1},align:{default:null},offset:{default:!1}},inline:!1,atom:!0,group:"block",draggable:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"p",priority:100,getAttrs:e=>{if(e.textContent.trim())return!1;let[t]=e.getElementsByTagName("img");return!!t&&b(t)}},{tag:"img[src]",getAttrs:e=>!(e.getAttribute("height")&&1>=Number(e.getAttribute("height"))||e.getAttribute("width")&&1>=Number(e.getAttribute("width")))&&b(e)}],toDOM:e=>{let{ImageActions:t}=n(69380);try{let n,a,i,l=f(e),u=h(e),p=c.MYz.map(t=>({width:t,imageSrc:f(e,{maxWidth:t})})),m=c.MYz.map(t=>({width:t,imageSrc:f(e,{maxWidth:t,imageProps:{format:"webp"}})})),{isProcessing:g}=e.attrs;e.attrs.height&&e.attrs.width&&(n=e.attrs.height,a=e.attrs.width,e.attrs.resizeWidth?(n=e.attrs.resizeWidth*n/a,a=e.attrs.resizeWidth):O(e.attrs)&&a240&&b>240)&&_<4&&A<4;let y="undefined"==typeof window;i=e.attrs.href?(0,d.Hj9)(e.attrs.href)?(0,c.dJ9)(e.attrs.href):e.attrs.href:(0,c.dJ9)(e.attrs.src);let N=document.createElement("div");if(E&&y){N.className="image-link-expand";try{N.innerHTML=(0,s.renderToString)((0,o.createElement)(t,{size:20}))}catch(e){console.error("Error rendering ImageActions",e)}}return["a",{class:r()("image-link image2","left"===e.attrs.align&&"image2-align-left","right"===e.attrs.align&&"image2-align-right",e.attrs.offset&&"left"===e.attrs.align&&"image2-offset-left",e.attrs.offset&&"right"===e.attrs.align&&"image2-offset-right",E&&"is-viewable-img",g&&"processing"),target:"_blank",href:i,"data-component-name":"Image2ToDOM"},["div",{class:"image2-inset".concat("full"===u?" image2-full-screen":"")},["picture",{},["source",{type:"image/webp",srcset:m.map(e=>"".concat(e.imageSrc," ").concat(e.width,"w")).join(", "),sizes:"100vw"}],["img",{src:l,width:"full"===u?void 0:a,height:"full"===u?void 0:n,"data-attrs":JSON.stringify(e.attrs),class:"full"===u?"sizing-fullscreen":"large"===u?"sizing-large":"sizing-normal",alt:e.attrs.alt||"",title:e.attrs.title||e.attrs.alt,srcset:p.map(e=>"".concat(e.imageSrc," ").concat(e.width,"w")).join(", "),sizes:"100vw",loading:e.attrs.belowTheFold?"lazy":null,fetchpriority:e.attrs.topImage?"high":null}]],N]]}catch(t){return console.error("Error rendering Maximize2",t),(0,p.D)({msg:null,node:e,err:t,group:"block"})}},toDOMStatic:e=>{var t,n;let a=h(e),i=e.attrs.href||e.attrs.internalRedirect||(0,c.dJ9)(e.attrs.src,void 0,{quality:"normal"===a?"auto:good":"auto:best"});if(e.attrs.height&&e.attrs.width&&"full"!==a){let{width:t,height:n}=e.attrs,a=t;e.attrs.resizeWidth?a=e.attrs.resizeWidth:O(e.attrs)&&(a=Math.min(Math.max(t,c.b1y),c.rmE));let r=Math.min(a,c.oSl),o=n*r/t,s=a>c.oSl,l={"data-attrs":JSON.stringify(e.attrs),alt:e.attrs.alt||"",title:e.attrs.title||e.attrs.alt,width:r,height:o,class:s?"wide-image":"",src:(0,c.dJ9)(e.attrs.src,Math.min(!O(e.attrs)&&s?2*a:a,2*c.oSl),{lossy:N(e.attrs)})};return["table",{class:"image-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"Image2ToDOMStatic"},["tr",{},["td"],["td",{align:"left",class:"content",width:a},["a",{class:"image-link",target:"_blank",href:i},["img",l]]],["td"]]]}return"full"===a?["a",{class:"image-link",target:"_blank",href:i},["img",{src:(0,c.dJ9)(e.attrs.src,2*c.oSl,{lossy:N(e.attrs),crop:"limit",aspect:"full"===a?u.Zi:void 0}),"data-attrs":JSON.stringify(e.attrs),alt:e.attrs.alt||"",title:e.attrs.title||e.attrs.alt,height:e.attrs.height,width:e.attrs.width}]]:["a",{class:"image-link",target:"_blank",href:i},["img",{src:(0,c.dJ9)(e.attrs.src,2*c.oSl,{lossy:N(e.attrs)}),"data-attrs":JSON.stringify(e.attrs),alt:e.attrs.alt||"",title:e.attrs.title||e.attrs.alt,width:e.attrs.resizeWidth||e.attrs.width,height:e.attrs.resizeWidth?(t=e.attrs.width,n=e.attrs.height,n*e.attrs.resizeWidth/t):e.attrs.height}]]}},_=(0,m.C)({name:"image2",nodeSpec:g}),b=function(e,t){let n,a,i,{bytes:r,internalRedirect:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.getAttribute("data-attrs");if(s)try{return JSON.parse(s)}catch(e){}e.getAttribute("imageSize")&&(n=e.getAttribute("imageSize"));let l=e.getAttribute("style");if(l){let e=/max-height:\s*(\d+)px/.exec(l);e&&(a=Number(e[1]));let t=/max-width:\s*(\d+)px/.exec(l);t&&(i=Number(t[1]))}else e.getAttribute("width")&&e.getAttribute("height")&&(a=Number(e.getAttribute("height")),i=Number(e.getAttribute("width")));return e.complete&&e.naturalHeight&&e.naturalWidth&&(a=e.naturalHeight,i=e.naturalWidth),{src:(0,c.EVw)(e.getAttribute("data-medium-file")||e.getAttribute("src")),type:t,title:e.getAttribute("title"),alt:e.getAttribute("alt"),height:a,width:i,bytes:r,internalRedirect:o,imageSize:n,href:e.getAttribute("href"),align:e.getAttribute("align"),offset:"true"===e.getAttribute("offset")}},f=function(e){let{maxWidth:t=null,imageProps:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=h(e),r="full"===i?2*c.YL9:"large"===i?2*c.T$x:2*c.EZZ;return t&&(r=Math.min(t,r)),(0,c.dJ9)(e.attrs.src,r,(0,a._)({lossy:N(e.attrs)},n))},A=function(e){var t;let{customSchema:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&!n.nodes.image2)return null;let a=/(https?:\/\/(giphy\.com\/gifs|gph.is\/g|media\d*\.giphy\.com\/media)\/[^\s]+)/.exec(e);return null!=(t=a&&a[1])?t:null},E=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,a="image/gif",i=await t.get("/api/v1/giphy").query({url:e});return b(await new Promise(e=>(0,l.NN)(f({attrs:{type:a,src:i.body.url}}),e)),a,{bytes:i.body.bytes})},y=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.image2.create(await E(e))};function N(e){return O(e)&&(!e.bytes||e.bytes>5e6)}function O(e){return!!(e.type&&"image/gif"===e.type||e.src&&e.src.split("?")[0].split("#")[0].endsWith(".gif"))}},12135:function(e,t,n){n.r(t),n.d(t,{extractTags:()=>az,unserializeJson:()=>aD,nodeToHtml:()=>aW,unserializeDocAsync:()=>aG,hasExplicitPaywall:()=>io,migrateMarkdown:()=>aJ,checkForUnpublishableComments:()=>a5,fromHtml:()=>aq,migratePost:()=>aZ,checkForUnsafeLinks:()=>a6,normalizeDbPodcastDescriptionToHtmlString:()=>ia,getDefaultPodcastDescriptionWithoutFeedCTAs:()=>ii,schemaStatic:()=>ax,getCoverImage:()=>a$,getImagesFromBody:()=>a0,serializeDoc:()=>aF,setButtonActions:()=>a8,getDescription:()=>aQ,getFirstImageFromBody:()=>a1,unserializeDocToJSON:()=>aB,customMediaNodes:()=>aE,EMPTY_DOC:()=>ab,addIdsToHeaders:()=>aY,getImageUrlsFromPostBody:()=>a3,schema:()=>av,serializedToPodcastDescription:()=>aV,setBelowTheFoldAttribute:()=>it,unserializeDoc:()=>aU,HEADER_IMAGE_ATTRS_FROM_NODE_TYPE:()=>af,migratePublication:()=>aX,tipTapSchema:()=>aj,getCoverImages:()=>a4,getPreviewImageUrl:()=>a9,getHeaderImageFromBody:()=>a2,toHtml:()=>aK,purgeUnsafeLinks:()=>ie,getLinks:()=>a7,migrateProsemirrorToTiptap:()=>aT,migrateTiptapToProsemirror:()=>aP,createStringDoc:()=>ir,toText:()=>aH,tipTapNodes:()=>ak,trackedCustomNodes:()=>aN,getDimensionsFromImageUrl:()=>a_});var a=n(69277),i=n(70408),r=n(32641),o=n(88285),s=n(76229),l=n(93993),c=n(16571),d=n(55895),u=n(55679),p=n(31707),m=n(16233),h=n(96436),g=n(96282),_=n(58521),b=n(18708),f=n(60526),A=n(34688),E=n(61292),y=n(6142),N=n(35933),O=n(41002),v=n(39001),x=n(80829),S=n(90846),w=n(579),I=n(99595),M=n(83673),C=n.n(M),k=n(69843),j=n.n(k),L=n(63375),R=n.n(L),T=n(77003),P=n(98111),D=n(56458),B=n(58278),U=n(463),G=n(83075),F=n(39318),W=n(82776),Y=n(38474),K=n(50172),H=n(93510),V=n(93946),z=n(82061),q=n(29496),J=n(78495);let Z="image-asset-error",X={attrs:{url:{default:""}},group:"block",defining:!0,parseDOM:[{tag:"div.".concat(Z),getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window)try{e.attrs.isEditor=!0;let t=document.createElement("div");return t.className=Z,t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(H.Q,{node:(0,a._)({},e)}),t),t}catch(t){return console.error("Error rendering ImageAssetError",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return["div",{"data-attrs":JSON.stringify((0,a._)({},e.attrs)),"data-component-name":"AssetErrorToDOM"},["picture",["img",{src:W.MISSING_IMAGE_URL,height:W.MISSING_IMAGE_HEIGHT,width:W.MISSING_IMAGE_WIDTH}]]]},toDOMStatic:e=>["div",{"data-attrs":JSON.stringify((0,a._)({},e.attrs)),"data-component-name":"AssetErrorToDOMStatic"}]},Q=(0,q.C)({name:"assetError",nodeSpec:X,addNodeView:()=>(0,I.gu)(H.Q)});var $=n(38893),ee=n(88161);let et={attrs:{label:{default:null},mediaUploadId:{default:null},duration:{default:null},downloadable:{default:!1},isEditorNode:{default:!1}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.native-audio-embed",getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window&&e.attrs.isEditorNode)try{let t=document.createElement("div");return t.className="native-audio-embed",t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)($.$g,{label:e.attrs.label,src:"/api/v1/audio/upload/".concat(e.attrs.mediaUploadId,"/src"),duration:e.attrs.duration,downloadable:e.attrs.downloadable}),t),t}catch(t){return console.error("Error rendering AudioEmbedPlayer",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return ea(e)},toDOMStatic:e=>ea(e)},en=(0,q.C)({name:"audio",nodeSpec:et,addNodeView:()=>(0,I.gu)(ee.i),addCommands(){return{insertAudio:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:(0,i._)((0,a._)({},e),{isEditorNode:!0})})}}}}),ea=e=>["div",{class:"native-audio-embed","data-component-name":"AudioPlaceholder","data-attrs":JSON.stringify(e.attrs)}],ei={attrs:{label:{default:null},url:{default:null},duration:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.native-audio-url-embed",getAttrs:J.t}],toDOM:e=>["div",{class:"native-audio-url-embed","data-attrs":JSON.stringify(e.attrs),"data-component-name":"AudioUrlPlaceholder"}]},er=(0,q.C)({name:"audioUrl",nodeSpec:ei}),eo={attrs:{request_id:{default:null},url:{default:null},src:{default:null},type:{default:null}},untrackedAttrs:["src"],inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"a.augmentation-placeholder",getAttrs:J.t}],toDOM:e=>["a",{class:"augmentation-placeholder image-link","data-attrs":JSON.stringify(e.attrs),href:"javascript:void(0)","data-component-name":"AugmentationPlaceholderToDOM"},["img",{src:e.attrs.src||W.TRANSPARENT_IMAGE_URL}]]},es=(0,q.C)({name:"augmentation_placeholder",nodeSpec:eo,addCommands(){return{insertLoadingPlaceholder:(e,t)=>n=>{let{commands:a}=n;return t?a.insertContentAt(t,{type:this.name,attrs:e}):a.insertContent({type:this.name,attrs:e})}}}});var el=n(26116);let ec={content:"block+",group:"block",parseDOM:[{tag:"blockquote"},{tag:"p",priority:100,getAttrs:e=>!(!e.style.marginLeft||e.style.marginLeft.startsWith("0"))&&{}}],toDOM:()=>["blockquote",0]},ed=s.Ay.extend({parseHTML:()=>ec.parseDOM,addCommands(){return{setBlockquote:()=>e=>{let{state:t,commands:n}=e;return!(!(0,o.rU)(t,"paragraph")||(0,o.rU)(t,"pullquote")||(0,o.rU)(t,"calloutBlock"))&&n.wrapIn(this.name)},toggleBlockquote:()=>e=>{let{state:t,commands:n}=e;return!(!(0,o.rU)(t,"paragraph")||(0,o.rU)(t,"pullquote")||(0,o.rU)(t,"calloutBlock"))&&n.toggleWrap(this.name)},unsetBlockquote:()=>e=>{let{commands:t}=e;return t.lift(this.name)}}}});var eu=n(39729),ep=n(79785),em=n(86500),eh=n(68349),eg=n(49807),e_=n(57324),eb=n(4518);function ef(){let e=(0,ep._)(["Thanks for reading ","! Subscribe for free to receive new posts and support my work."]);return ef=function(){return e},e}function eA(){let e=(0,ep._)([""," is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber."]);return eA=function(){return e},e}function eE(){let e=(0,ep._)(["","! This post is public so feel free to share it."]);return eE=function(){return e},e}function ey(){let e=(0,ep._)(["Share ",""]);return ey=function(){return e},e}function eN(){let e=(0,ep._)(["Give a gift subscription"]);return eN=function(){return e},e}function eO(){let e=(0,ep._)(["Get ","% off a group subscription"]);return eO=function(){return e},e}function ev(){let e=(0,ep._)(["Get a group subscription"]);return ev=function(){return e},e}function ex(){let e=(0,ep._)(["Start writing today. Use the button below to create a Substack of your own."]);return ex=function(){return e},e}let eS={attrs:{url:{default:null},text:{default:null},action:{default:null},class:{default:null}},inline:!1,atom:!0,group:"block",draggable:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"p.button-wrapper[data-attrs]",priority:100,getAttrs:J.t}],toDOM:e=>eI(e)},ew=(0,q.C)({name:"button",nodeSpec:eS,addCommands(){var e=this;return{insertSubscribeButton:e=>t=>{let{commands:n}=t,a={url:P.T.CHECKOUT_URL,text:(0,W.getSubscribeText)(e,{now:!0})};return n.insertContent({type:this.name,attrs:a})},insertCustomButtonEditorV2:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})},insertSubscribeButtonWithPreamble:e=>t=>{let{commands:n,editor:a}=t,{iTemplate:i,iString:r}=I18N.i({pub:e}),o=e.author_name===e.name?r("enabled"!==e.payments_state?"Thanks for reading! Subscribe for free to receive new posts and support my work.":"This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber."):"enabled"!==e.payments_state?i(ef(),e.name):i(eA(),e.name),s={url:P.T.CHECKOUT_URL,text:(0,W.getSubscribeText)(e),language:e.language};return n.insertContent({type:"subscribeWidget",attrs:s,content:[a.schema.nodes.ctaCaption.create(null,[a.schema.text(o)]).toJSON()]})},insertCaptionedShareButton:e=>t=>{let{commands:n,editor:a}=t,{iString:i,iTemplate:r}=I18N.i({pub:e}),o=r(eE(),e.author_name===e.name?"Thanks for reading":"Thanks for reading ".concat(e.name)),s={url:P.T.SHARE_URL,text:i("Share")};return n.insertContent({type:"captionedShareButton",attrs:s,content:[a.state.schema.nodes.ctaCaption.create(null,[a.state.schema.text(o)]).toJSON()]})},insertSharePostButton:e=>t=>{let{commands:n}=t,{iString:a}=I18N.i({pub:e}),i={url:P.T.SHARE_URL,text:a("Share")};return n.insertContent({type:this.name,attrs:i})},insertSharePubButton:e=>t=>{let{commands:n}=t,{iTemplate:a}=I18N.i({pub:e}),i={url:P.T.SHARE_PUB_URL,text:a(ey(),e.name)};return n.insertContent({type:this.name,attrs:i})},insertCommentsButton:e=>t=>{let{commands:n}=t,{iString:a}=I18N.i({pub:e}),i={url:P.T.HALF_MAGIC_COMMENTS_URL,text:a("Leave a comment")};return n.insertContent({type:this.name,attrs:i})},insertGiftButton:e=>t=>{let{commands:n}=t,{iTemplate:a}=I18N.i({pub:e}),i={url:"".concat(P.T.CHECKOUT_URL,"&gift=true"),text:(0,W.getSubscriptionSentenceWithCustomWords)(e,()=>a(eN()),e=>"Give a gift ".concat(e.subscription))};return n.insertContent({type:this.name,attrs:i})},insertDonateButton:e=>t=>{let{commands:n}=t,{iString:a}=I18N.i({pub:e}),i={url:"".concat(P.T.CHECKOUT_URL,"&donate=true"),text:a("Donate Subscriptions")};return n.insertContent({type:this.name,attrs:i})},insertSurveyButton:(e,t,n)=>a=>{let{commands:i}=a;(0,em.u4)(em.qY.READER_SURVEY_LINKED_IN_POST,{editorVersion:"2",surveyId:t.id});let r={url:"".concat((0,eg.gAK)(e,t.id)),text:n};return i.insertContent({type:this.name,attrs:r})},insertGroupSubscriptionButton:e=>{let{publication:t}=e;return e=>{let{commands:n}=e,{iTemplate:a}=I18N.i({pub:t}),i=t.default_group_coupon,r={url:"".concat(P.T.CHECKOUT_URL,"group=true").concat(i?"&coupon=".concat(i):""),text:(0,W.getSubscriptionSentenceWithCustomWords)(t,()=>i&&t.default_group_coupon_percent_off?a(eO(),t.default_group_coupon_percent_off.split(".")[0]):a(ev()),e=>i&&t.default_group_coupon_percent_off?"Get ".concat(t.default_group_coupon_percent_off.split(".")[0],"% off a group ").concat(e.subscription):"Get a group ".concat(e.subscription))};return n.insertContent({type:this.name,attrs:r})}},insertCoupon:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o=>{let{commands:s}=o,l={url:(0,F.yRP)("".concat(t.base_url,"/subscribe"),(0,i._)((0,a._)({coupon:n.id},n.group_only&&{group:!0}),{utm_content:r.postId})),text:"Get ".concat((0,eh.zY)(n))};return s.insertContent({type:e.name,attrs:l})}},insertReferralButton:e=>t=>{let{commands:n}=t,{iString:a}=I18N.i({pub:e}),i={url:"".concat(P.T.LEADERBOARD_URL,"&utm_source=").concat(e_.VU.post),text:a("Refer a friend")};return n.insertContent({type:this.name,attrs:i})},insertCaptionedWriterReferralButtonV2:e=>{let{writerReferralCode:t,publication:n,postId:a}=e;return e=>{let{commands:i,state:r,dispatch:o}=e;if(!(0,eb.c)(r,r.schema.nodes.button))return!1;let{iString:s,iTemplate:l}=I18N.i({pub:n}),c=l(ex()),d={url:"".concat((0,F.gWk)(t||""),"?utm_source=").concat(e_.VU.substack,"&utm_context=").concat(e_.rw.post,"&utm_content=").concat(a,"&utm_campaign=").concat(e_._9.writerReferralButton),text:s("Start a Substack")},u=r.schema.nodes.captionedWriterReferralButton.create(d,r.schema.nodes.ctaCaption.create(null,[r.schema.text(c)]));return!o||i.insertContent(u.toJSON())}}}}}),eI=e=>{let t=document.createElement("span");t.textContent=e.attrs.text;let n=document.createElement("a");n.className="button primary",e.attrs.class&&(n.className+=" ".concat(e.attrs.class)),n.href=e.attrs.url,n.appendChild(t),n.addEventListener("click",e=>{/^.*%%.*%%/.test(n.href)&&(e.preventDefault(),(0,W.handleDocumentLinkClick)(n.href))});let a=document.createElement("p");return a.className="button-wrapper",a.setAttribute("data-attrs",JSON.stringify(e.attrs)),a.setAttribute("data-component-name","ButtonCreateButton"),a.appendChild(n),a};var eM=n(37855);let eC={content:"text*",group:"block",selectable:!0,defining:!0,isolating:!0,parseDOM:[{tag:"figcaption"}],toDOM:()=>["figcaption",{class:"image-caption"},0]},ek=(0,q.C)({name:"caption",nodeSpec:eC}),ej=e=>({content:"ctaCaption",attrs:{url:{default:null},text:{default:null}},inline:!1,group:"block",draggable:!0,atom:!1,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.captioned-button-wrap",getAttrs:J.t}],toDOM:t=>{let n=document.createElement("div");n.className="captioned-button-wrap",n.setAttribute("data-attrs",JSON.stringify(t.attrs)),n.setAttribute("data-component-name","CaptionedButtonToDOM");let i=document.createElement("div");i.className="preamble";let r=eI({attrs:(0,a._)({},t.attrs,e)});return n.appendChild(i),n.appendChild(r),{dom:n,contentDOM:i}}}),eL=e=>{let{substitutionAttrs:t,name:n}=e;return(0,q.C)({name:n,nodeSpec:ej(t)})},eR=eL({name:"captionedShareButton",substitutionAttrs:{url:P.T.SHARE_URL}}),eT=eL({name:"captionedWriterReferralButton",substitutionAttrs:{hasDynamicSubstitutions:!1}}),eP={content:"block caption*",atom:!1,selectable:!0,isolating:!1,defining:!0,draggable:!0,group:"block",parseDOM:[{tag:"figure"}],toDOM:()=>["div",{class:"captioned-image-container"},["figure",0]],toDOMStatic:()=>["div",{class:"captioned-image-container-static"},["figure",0]]},eD=(0,q.C)({name:"captionedImage",nodeSpec:eP});var eB=n(98107);let eU={attrs:{symbol:{default:""}},atom:!0,editable:!1,selectable:!0,isolating:!1,defining:!0,draggable:!1,inline:!0,group:"inline",parseDOM:[{tag:".cashtag-wrap",getAttrs:e=>{try{return JSON.parse(e.getElementsByTagName("a")[0].getAttribute("data-attrs"))}catch(e){return!1}}}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("span");return t.className="cashtag-wrap",(0,V.Mv)((0,K.h)(eB.A,{symbol:e.attrs.symbol.trim()}),t),t}catch(t){return console.error("Error rendering Cashtag",t),(0,z.D)({msg:null,node:e,err:t,group:"inline"})}return["span",{class:"cashtag-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"CashtagToDOM"}]},toDOMStatic:e=>["span",{class:"cashtag-wrap","data-component-name":"CashtagToDOMStatic","data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{prependSymbol:!0,isStatic:!0}))}]},eG=(0,q.C)({name:"cashtag",nodeSpec:eU});var eF=n(65768),eW=n(8037);let eY=new eF.Ay({actionButtonAttr:"href",substackType:"comic",mimeTypesToSignature:eW.Rq,actionButtonText:"Read now"}),eK=(0,q.C)({name:"comic",nodeSpec:eY.nodeSpec});var eH=n(42985),eV=n(79431),ez=n(45595);let eq={content:"text*",group:"block",draggable:!1,selectable:!0,isolating:!0,defining:!0,atom:!1,parseDOM:[{tag:"p.cta-caption"}],toDOM:()=>["p",{class:"cta-caption"},0]},eJ=(0,q.C)({name:"ctaCaption",nodeSpec:eq});var eZ=n(70679),eX=n(21577),eQ=n(57194),e$=n(65112),e0=n(55714);let e1="directMessage",e2={name:e1,group:"block",selectable:!0,inline:!1,draggable:!0,atom:!0,attrs:(0,e$.lh)({attrs:{userId:{default:null,keepOnSplit:!1},userName:{default:null,keepOnSplit:!1},canDm:{default:null,keepOnSplit:!1},dmUpgradeOptions:{default:null,keepOnSplit:!1},isEditorNode:{default:!1,keepOnSplit:!1}}}),parseDOM:[{tag:"div.directMessage",getAttrs:e=>{try{if(e instanceof HTMLElement){let t=e.getAttribute("data-attrs");if(t)return JSON.parse(t)}}catch(e){}return!1}}],toDOM:e=>{if("undefined"!=typeof window&&e.attrs.isEditorNode)try{e.attrs.isEditor=!0;let t=document.createElement("div");return t.className=e1,t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(eQ.u,{node:(0,a._)({},e)}),t),t}catch(t){return console.error("Error rendering DirectMessageEditor",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return["div",{class:"".concat(e1," button"),"data-attrs":JSON.stringify((0,a._)({},e.attrs)),"data-component-name":"DirectMessageToDOM"}]},toDOMStatic:e=>["div",{class:e1,"data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{isEmail:!0})),"data-component-name":"DirectMessageToDOMStatic"}]},e3=o.YY.create({name:"directMessageExtension",addCommands:()=>({insertDirectMessage:e=>t=>{let{dispatch:n,state:a}=t,{user:i}=e,r={userName:i.name,userId:i.id,isEditorNode:!0};return n&&n((0,e0.DL)(a,a.schema.nodes.directMessage.create(r))),!0}})}),e4=(0,q.C)({name:"directMessage",nodeSpec:e2,addCommands:e3.addCommands,addNodeView:()=>(0,I.gu)(eQ.u)}),e9=new eF.Ay({actionButtonAttr:null,substackType:"ebook",mimeTypesToSignature:eW.qy,actionButtonText:null}),e8=(0,q.C)({name:"ebook",nodeSpec:e9.nodeSpec});var e7=n(97966),e5=n(70084),e6=n(66151),te=n(32365),tt=n(49089),tn=n(26469),ta=n(15734),ti=n.n(ta);let tr=async(e,t,n)=>{let{schema:a}=t;if(!a.nodes.cashtag)return console.error("Cashtag node not found in schema"),!0;let i=a.nodes.cashtag.create({symbol:e,prependSymbol:!1}),r=t.tr;return r.replaceSelectionWith(i),n&&n(r),!0},to=async()=>(await ti().get("/api/v1/symbols/all")).body.symbols,ts=tt.P.configure({HTMLAttributes:{class:"mention"},suggestion:{pluginKey:new tn.hs("mention"),char:"$",allowSpaces:!1,startOfLine:!1,command:()=>{},items:()=>[],render:()=>({onStart:()=>{to()},onUpdate(){},onKeyDown:e=>"Escape"===e.event.key,async onExit(e){let t=e.text.trim();if(["$",""].includes(t))return;let n=await to();if(!/\$[a-z]+$/i.test(t)||t.length>6||!n.includes(t.toUpperCase().replace("$",""))||["BTC","ETH","SOL","XRP","BNB","LUNA"].includes(t.toUpperCase().replace("$","")))return;let a=e.editor.state.tr;a.setSelection(tn.U3.create(a.doc,e.range.from,e.range.to)).deleteSelection(),e.editor.view.dispatch(a),tr(t.toUpperCase(),e.editor.view.state,e.editor.view.dispatch),e.editor.commands.insertContent(" "),e.editor.view.dispatch(e.editor.state.tr)}})}});var tl=n(92678),tc=n(66347),td=n(64287),tu=n(89909),tp=n(43146),tm=n(79493),th=n(28072),tg=n(5113),t_=n(96208),tb=n(93692),tf=n(56456),tA=n(71979),tE=n(75820),ty=n(6411),tN=n.n(ty),tO=n(41195),tv=n(95660),tx=n(17048);function tS(){let e=(0,ep._)(["No results for ",""]);return tS=function(){return e},e}let tw=tt.P.extend({name:"substack_mentions_extension"}),tI={char:"@",pluginKey:new tn.hs("substack_mentions_extension"),decorationClass:"substack-mention",allowSpaces:!0,startOfLine:!1,command:e=>{var t;let{editor:n,range:a,props:i}=e;if(!i.item)return;let{name:r,id:o,type:s,url:l,photo_url:c}=i.item,d=n.view.state.selection.$to.nodeAfter;(null==d||null==(t=d.text)?void 0:t.startsWith(" "))&&(a.to+=1);let{schema:u}=n.state,p=n.state.tr;if(p.setSelection(tn.U3.create(p.doc,a.from,a.to)).deleteSelection(),n.view.dispatch(p),p=n.state.tr,!u.nodes.substack_mentions)return void console.error("substack_mentions node not found in schema");let m=u.nodes.substack_mentions.create({name:r,id:o,type:s,url:l,photo_url:c,uuid:(0,eh.QT)()});p.insert(a.from,m),n.view.dispatch(p),n.commands.insertContent(" "),n.view.dispatch(n.state.tr),p.setSelection(tn.U3.near(p.doc.resolve(a.from+1)))},items:async e=>{let{query:t}=e;return t.length<1?[]:await (0,tx._F)(t)},render:()=>{let e,t,n=tN().prototype.stopCallback,a=function(e){var t,n,a;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="undefined"!=typeof window&&null!=(a=null==(n=window._preloads)||null==(t=n.pub)?void 0:t.language)?a:"en",{iString:o,iTemplate:s}=I18N.i(r);return{items:e.items,query:e.query,isLoading:i,selectItem:t=>{t&&e.command({item:t})},placeholderText:o("Search for a person or publication"),noResultsText:s(tS(),e.query),minQueryLength:2,language:r}};return{onStart:i=>{e=new I.NV(tv.r,{props:a(i),editor:i.editor}),t=(0,tO.Ay)("body",{getReferenceClientRect:i.clientRect,appendTo:()=>document.getElementsByClassName("editor-scroll")[0]||document.body,content:e.element,popperOptions:{strategy:"absolute",modifiers:[{options:{altAxis:!0}}]},showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}),tN().prototype.stopCallback=function(e,t,a){return"esc"===a||n(e,t,a)}},onBeforeUpdate(n){t&&t[0].show(),e&&e.updateProps(a(n,!0)),n.clientRect&&t&&t[0].setProps({getReferenceClientRect:n.clientRect})},onUpdate(n){e&&e.updateProps(a(n,!1)),t&&t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(a){var i;return"Escape"===a.event.key?(t&&t[0]&&t[0].destroy(),t=null,e&&e.destroy(),e=null,setTimeout(()=>{tN().prototype.stopCallback=n},0),!0):null==e||null==(i=e.ref)?void 0:i.onKeyDown(a)},onExit(){tN().prototype.stopCallback=n,t&&t[0]&&t[0].destroy(),t=null,e&&e.destroy(),e=null}}}},tM=tw.configure({HTMLAttributes:{class:"substack-mention"},suggestion:tI});var tC=n(75371),tk=n(8221);let tj={attrs:{number:{default:1}},content:"block+",atom:!1,selectable:!1,isolating:!1,defining:!0,draggable:!1,group:"block",parseDOM:[{tag:".footnote"}],toDOM:e=>{let{number:t}=e.attrs;return["div",{class:"footnote","data-component-name":"FootnoteToDOM"},["a",{id:"footnote-".concat(t),href:"#footnote-anchor-".concat(t),class:"footnote-number",contenteditable:!1,target:"_self"},"".concat(t)],["div",{class:"footnote-content"},0]]},toDOMStatic:e=>{let{number:t}=e.attrs;return["div",{class:"footnote","data-component-name":"FootnoteToDOMStatic"},["span",{class:"footnote-number"},"".concat(t)],["div",{class:"footnote-content"},0]]}},tL=(0,q.C)({name:"footnote",nodeSpec:tj,addCommands:()=>({insertFootnote:()=>e=>{let{state:t,editor:n,dispatch:a}=e;if(!(0,tC.o)(t))return!1;let{schema:i}=n;if(!i.nodes.footnote)return console.warn("Footnote node type is not defined in the schema."),!1;if(!i.nodes.footnoteAnchor)return console.warn("FootnoteAnchor node type is not defined in the schema."),!1;if(!i.nodes.paragraph)return console.warn("Paragraph node type is not defined in the schema."),!1;let r=i.nodes.footnote.create({number:1},i.nodes.paragraph.create()),o=i.nodes.footnoteAnchor.create({number:1}),s=t.tr,l=(0,tk.Di)({schema:i,tr:s});if(null===l)return console.warn("Could not determine position to insert footnote."),!1;if(s.replaceWith(l,l,r),s.replaceSelectionWith(o),(0,tk.TD)({schema:i,tr:s}),a){try{s.setSelection(tn.U3.create(s.doc,l+2,l+2)).scrollIntoView()}catch(e){return console.error("could not set footnote text selection"),!1}a(s)}return!0}})}),tR={attrs:{number:{default:1}},atom:!0,selectable:!0,isolating:!1,defining:!0,draggable:!0,inline:!0,group:"inline",parseDOM:[{tag:".footnote-anchor"}],toDOM:e=>{let{number:t}=e.attrs;return["a",{class:"footnote-anchor","data-component-name":"FootnoteAnchorToDOM",id:"footnote-anchor-".concat(t),href:"#footnote-".concat(t),target:"_self"},"".concat(t)]},toDOMStatic:e=>{let{number:t}=e.attrs;return["span",{class:"footnote-anchor-email","data-component-name":"FootnoteAnchorToDOMStatic"},"".concat((0,W.getSuperscriptNumberString)(t))]}},tT=(0,q.C)({name:"footnoteAnchor",nodeSpec:tR});var tP=n(31933);let tD={content:"block+",group:"block",toDOM:()=>["div",{"data-component-name":"FragmentNodeToDOM"},0]},tB=(0,q.C)({name:"fragmentNode",nodeSpec:tD});var tU=n(37859);let tG=_.A.extend({draggable:!0}),tF={attrs:{src:{default:""},height:{default:null},width:{default:null},alt:{default:null},title:{default:null}},inline:!0,group:"inline",draggable:!0,toDOM:e=>{let t=(0,F.dJ9)(e.attrs.src,1100);return["img",{style:e.attrs.height&&e.attrs.width?"max-width:".concat(e.attrs.width,"px;max-height:").concat(e.attrs.height,"px"):"",src:t,alt:e.attrs.alt,title:e.attrs.title,"data-component-name":"ImageToDOM"}]},toDOMStatic:e=>{if(e.attrs.height&&e.attrs.width){let t=Math.min(e.attrs.width,550),n=(0,F.dJ9)(e.attrs.src,t);return["table",{class:"image-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"ImageToDOMStatic"},["tr",{},["td"],["td",{class:"content",width:t}],["td"]],["tr",{},["td"],["td",{align:"left",class:"content",width:t},["img",{src:n,alt:e.attrs.alt,title:e.attrs.title}]],["td"]]]}return["img",{src:(0,F.dJ9)(e.attrs.src,550),alt:e.attrs.alt,title:e.attrs.title}]}},tW=(0,q.C)({name:"image",nodeSpec:tF});var tY=n(21805),tK=n(36202);let tH="image-gallery-embed",tV={attrs:{gallery:{default:{}},isEditorNode:{default:!1}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:tH,getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window&&e.attrs.isEditorNode)try{e.attrs.isEditor=!0;let t=document.createElement("div");return t.className=tH,t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(tY.i_,{node:(0,a._)({},e)}),t),t}catch(t){return console.error("Error rendering ImageGallery",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return tz(e)},toDOMStatic:e=>["div",{class:tH,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs))}]},tz=e=>["div",{class:tH,"data-attrs":JSON.stringify(e.attrs)}],tq=o.bP.create({name:"imageGallery",group:tV.group,draggable:!0,addAttributes:()=>({gallery:{default:{}},isEditorNode:{default:!0}}),parseHTML:()=>[{tag:tH}],renderHTML(e){let{HTMLAttributes:t,node:n}=e;return this.options.isStatic&&tV.toDOMStatic?tV.toDOMStatic(n):["div",(0,a._)({class:tH},(0,o.KV)(t))]},addNodeView:()=>(0,I.gu)(tK.F),addCommands(){return{insertImageGallery:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})},updateImageGallery:e=>t=>{let{commands:n}=t;return n.updateAttributes(this.name,e)}}}});var tJ=n(31611),tZ=n(44383),tX=n.n(tZ),tQ=n(42455);let t$=()=>({src:{default:null,keepOnSplit:!1},alt:{default:null,keepOnSplit:!1},title:{default:null,keepOnSplit:!1},href:{default:null,keepOnSplit:!1},width:{default:"100%",keepOnSplit:!1},height:{default:"auto",keepOnSplit:!1},size:{default:"normal",keepOnSplit:!1},align:{default:"center",keepOnSplit:!1}}),t0="image3",t1={name:t0,group:"block",atom:!1,selectable:!0,content:"inline*",draggable:!0,attrs:(0,e$.lh)({attrs:t$()}),parseDOM:[{tag:"image3",getAttrs:e=>{try{if(e instanceof HTMLElement){let t=e.getAttribute("data-attrs");if(t)return JSON.parse(t)}}catch(e){}return!1}}],toDOM:e=>{var t;let n=!!(null==(t=e.content)?void 0:t.size),i={class:"image3","data-attrs":JSON.stringify((0,a._)({},e.attrs))};return n?["div",["div",i,0]]:["div",i]},toDOMStatic:e=>{var t;let n=!!(null==(t=e.content)?void 0:t.size),r={class:"image3","data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{isEmail:!0}))};return n?["div",["div",r,0]]:["div",r]}},t2=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,t3=o.bP.create({name:t0,inline:!1,group:"block",content:"inline*",draggable:!0,selectable:!0,isolating:!0,defining:!0,addOptions:()=>({HTMLAttributes:{}}),addAttributes:()=>t$(),parseHTML:()=>[{tag:'img[src]:not([src^="data:"])',getAttrs:e=>({src:e.getAttribute("src")})},{tag:"image3"},{tag:"p",priority:100,getAttrs:e=>{var t;if(null==e||null==(t=e.textContent)?void 0:t.trim())return!1;let[n]=Array.from(e.getElementsByTagName("img"));return!!n&&tX()((0,tJ.CW)(n,null),["src","alt","height","width"])}}],renderHTML(e){let{HTMLAttributes:t}=e;return["image3",(0,o.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setImage:e=>t=>{let{commands:n}=t,a=e.title?[{type:"text",text:e.title}]:[];try{return n.insertContent({type:this.name,attrs:e,content:a})}catch(e){return!1}},setUnsplashImage:e=>{let{url:t,width:n,height:a,description:i,userName:r,userHref:o}=e;return e=>{let{commands:s,editor:l}=e,c=l.schema.text("Photo by "),d=l.schema.text(r,[l.schema.marks.link.create({title:r,href:o})]),u=l.schema.text(" on "),p=l.schema.text("Unsplash",[l.schema.marks.link.create({title:"Unsplash",href:"https://unsplash.com"})]);return s.insertContent({type:this.name,attrs:{alt:i,src:t,height:a,width:n,type:"image/jpg"},content:w.FK.fromArray([c,d,u,p]).toJSON()})}}}},addNodeView:()=>(0,I.gu)(tQ._),addInputRules(){return[(0,o.jT)({find:t2,type:this.type,getAttributes:e=>{let[,,t,n,a,i,r]=e;return{src:n,type:a,alt:t,title:i,href:r}}})]}});var t4=n(78598);let t9={attrs:{persistentExpression:{default:""},id:{default:""}},atom:!0,editable:!1,selectable:!0,isolating:!1,defining:!0,draggable:!1,inline:!0,group:"inline",parseDOM:[{tag:"span.latex-inline",getAttrs:J.t}],toDOM:e=>["span",{class:"latex-inline","data-attrs":JSON.stringify(e.attrs),"data-component-name":"InlineLatexToDOM"}],toDOMStatic:e=>["span",{class:"latex-inline","data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{isStatic:!0})),"data-component-name":"InlineLatexToDOMStatic"}]},t8=(0,q.C)({name:"inline_latex",nodeSpec:t9,addCommands:()=>({insertInlineLatex:e=>t=>{let{state:n,dispatch:a,editor:i}=t,{schema:r}=i,o=r.nodes.inline_latex;if(!o||!(0,eb.c)(n,o))return!1;let s=o.create({persistentExpression:e.persistentExpression||"",id:(0,t4.$C)()});return a&&a(n.tr.replaceSelectionWith(s)),!0}}),addNodeView(){let{InlineLatexComponent:e}=n(73007);return(0,I.gu)(e)}});var t7=n(17768);function t5(){let e=(0,ep._)(["Get more from "," in the Substack app"]);return t5=function(){return e},e}function t6(){let e=(0,ep._)(["Read "," in the Substack app"]);return t6=function(){return e},e}function ne(){let e=(0,ep._)(["Get more from "," in the Substack app"]);return ne=function(){return e},e}function nt(){let e=(0,ep._)(["Read "," in the Substack app"]);return nt=function(){return e},e}let nn=e=>(0,F.wHz)({utm_campaign:e_._9.appMarketing,utm_content:e_.fL.authorPostInsert,utm_source:e}),na={attrs:{logo_url:{default:null},publication_name:{default:null},publication_subdomain:{default:null},author_name:{default:null},language:{default:"en"}},inline:!1,atom:!0,group:"block",draggable:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.install-substack-app-embed"}],toDOM:e=>{let{logo_url:t,publication_name:n,publication_subdomain:a,author_name:i,language:r}=e.attrs,{iString:o,iTemplate:s}=I18N.i(r);return["div",{class:"install-substack-app-embed install-substack-app-embed-web","data-component-name":"InstallSubstackAppToDOM"},["img",{class:"install-substack-app-embed-img",src:(0,F.dJ9)(t)}],["div",{class:"install-substack-app-embed-text"},["div",{class:"install-substack-app-header"},i?s(t5(),i):s(t6(),n)],["div",{class:"install-substack-app-text"},o("Available for iOS and Android")]],["a",{href:nn(a),target:"_blank",class:"install-substack-app-embed-link"},["button",{class:"install-substack-app-embed-btn button primary"},o("Get the app")]]]},toDOMStatic:e=>{let{logo_url:t,publication_name:n,publication_subdomain:a,author_name:i,language:r}=e.attrs,{iString:o,iTemplate:s}=I18N.i(r);return["div",{class:"install-substack-app-embed","data-component-name":"InstallSubstackAppToDOMStatic"},["table",{class:"install-substack-embed-table"},["tr",{},["td",{rowspan:2},["img",{class:"install-substack-app-embed-img",src:(0,F.dJ9)(t),width:64,height:64}]],["td",{class:"install-substack-app-header"},i?s(ne(),i):s(nt(),n)]],["tr",{},["td",{class:"install-substack-app-text"},o("Available for iOS and Android")]],["tr",{},["td",{colspan:2},["a",{href:nn(a),target:"_blank",class:"install-substack-app-embed-link"},["button",{class:"install-substack-app-embed-btn button primary"},o("Get the app")]]]]]]}},ni=(0,q.C)({name:"install_substack_app",nodeSpec:na,addCommands(){return{insertInstallSubstackAppEmbed:e=>t=>{let{commands:n}=t,a=(0,F.$_T)(e),i={logo_url:e.logo_url||"".concat(a,"/img/substack.png"),publication_name:e.name,language:e.language,author_name:e.author_name,publication_subdomain:e.subdomain};return n.insertContent({type:this.name,attrs:i})}}}});var nr=n(82979),no=n(58097),ns=n(51131);let nl={attrs:{name:{default:""},avatarUrl:{default:""},url:{default:""},isEditorNode:{default:!1}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.meeting-embed",getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window&&e.attrs.isEditorNode)try{let t=document.createElement("div");return t.className="meeting-embed",t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(ns.l,{name:e.attrs.name,avatarUrl:e.attrs.avatarUrl,url:e.attrs.url}),t),t}catch(t){return console.error("Error rendering MeetingEmbed",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return nd(e)},toDOMStatic:e=>nd(e)},nc=(0,q.C)({name:"meeting",nodeSpec:nl,addCommands:()=>({insertMeeting:e=>t=>{let{commands:n,dispatch:a}=t,{publication:i,meetingsConfig:r,usePublicationName:o}=e,s=(0,F.pIF)({id:r.user_id,photo_url:r.user_profile_photo_url});return o&&i.logo_url&&(s=(0,eg.dJ9)(i.logo_url,112)),!a||n.insertContent({type:"meeting",attrs:{name:o?i.name:r.user_name,avatarUrl:s,url:(0,eg.SJN)(i,{addBase:!0,params:{source:"embed"}}),isEditorNode:!0}})}})}),nd=e=>["div",{class:"meeting-embed","data-attrs":JSON.stringify(e.attrs),"data-component-name":"MeetingPlaceholder"}],nu={attrs:{name:{default:""},id:{default:null},type:{default:null},url:{default:null},photo_url:{default:null},uuid:{default:null}},atom:!0,editable:!1,selectable:!0,isolating:!1,defining:!0,draggable:!1,inline:!0,group:"inline",parseDOM:[{tag:".mention-wrap",getAttrs:e=>{try{return JSON.parse(e.getElementsByTagName("a")[0].getAttribute("data-attrs"))}catch(e){return!1}}}],toDOM:e=>{if("undefined"!=typeof window)try{var t;let n=document.createElement("span");return n.className="mention-wrap",n.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(tx.Ay,{name:(null==(t=e.attrs.name)?void 0:t.trim())||"",id:e.attrs.id||null,type:e.attrs.type||null,url:e.attrs.url||null,photo_url:e.attrs.photo_url||null,uuid:e.attrs.uuid||null,isEditorContext:!0}),n),n}catch(t){return console.error("Error rendering Mention",t),(0,z.D)({msg:null,node:e,err:t,group:"inline"})}return["span",{class:"mention-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"MentionToDOM"}]},toDOMStatic:e=>["span",{class:"mention-wrap","data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{isStatic:!0})),"data-component-name":"MentionToDOMStatic"}]},np=(0,q.C)({name:"substack_mentions",nodeSpec:nu});var nm=n(30131),nh=n(41298),ng=n(64998);let n_="poll-embed",nb={attrs:{id:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:n_,getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.className=n_,(0,V.Mv)((0,K.h)(ng.sP,{id:e.attrs.id,isEditor:!0}),t),t}catch(t){return console.error("Error rendering Poll",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return["div",{class:n_,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"PollToDOM"}]},toDOMStatic:e=>["div",{class:n_,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs)),"data-component-name":"PollToDOMStatic"}]},nf=(0,q.C)({name:"poll",nodeSpec:nb,addCommands(){return{insertPoll:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}});var nA=n(60440),nE=n(41758);let ny={content:"text*",group:"block",code:!0,defining:!0,isolating:!0,attrs:{params:{default:""},language:{default:"en"}},parseDOM:[{tag:"pre.text",preserveWhitespace:"full",priority:60}],toDOM:()=>{var e,t,n;let{iString:a}=I18N.i("undefined"!=typeof window&&null!=(n=null==(t=window._preloads)||null==(e=t.pub)?void 0:e.language)?n:"en");return["div",{class:"preformatted-block","data-component-name":"PreformattedTextBlockToDOM"},["label",{class:"hide-text",contenteditable:!1},a("Text within this block will maintain its original spacing when published")],["pre",{class:"text"},0]]},toDOMStatic:()=>["pre",{class:"text","data-component-name":"PreformattedTextBlockToDOMStatic"},0]},nN=(0,q.C)({name:"preformatted_text_block",nodeSpec:ny}),nO={attrs:{pub:{default:null},uuid:{default:null}},inline:!1,atom:!0,group:"block",draggable:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.install-substack-app-embed.preview-inapp"}],toDOM:e=>{let{pub:t,uuid:n}=e.attrs,{iString:a}=I18N.i({pub:t}),i="object"==typeof t?(0,F.$_T)(t):(0,F.$_T)({id:t}),r=t.logo_url||"".concat(i,"/img/substack.png");return["div",{class:"install-substack-app-embed preview-inapp","data-component-name":"PreviewInSubstackAppToDOM"},["img",{class:"install-substack-app-embed-img",src:(0,F.dJ9)(r)}],["div",{class:"install-substack-app-embed-text"},["div",{class:"install-substack-app-header"},a("Test in the Substack app")],["div",{class:"install-substack-app-text"},a("This section is only visible to you")]],["a",{href:(0,F.UuW)(t,n),target:"_blank",class:"install-substack-app-embed-link"},["button",{class:"install-substack-app-embed-btn button primary"},a("Open in app")]]]},toDOMStatic:e=>{let{pub:t,uuid:n}=e.attrs,{iString:a}=I18N.i({pub:t}),i="object"==typeof t?(0,F.$_T)(t):(0,F.$_T)({id:t}),r=t.logo_url||"".concat(i,"/img/substack.png");return["div",{class:"install-substack-app-embed preview-inapp","data-component-name":"PreviewInSubstackAppToDOMStatic"},["table",{class:"install-substack-embed-table"},["tr",{},["td",{rowspan:2},["img",{class:"install-substack-app-embed-img",src:(0,F.dJ9)(r),width:64,height:64}]],["td",{class:"install-substack-app-header"},a("Test in the Substack app")]],["tr",{},["td",{class:"install-substack-app-text"},a("This section is only visible to you")]],["tr",{},["td",{colspan:2},["a",{href:(0,F.UuW)(t,n),target:"_blank",class:"install-substack-app-embed-link"},["button",{class:"install-substack-app-embed-btn button primary"},a("Open in app")]]]]]]}},nv=(0,q.C)({name:"preview_in_substack_app",nodeSpec:nO}),nx={attrs:{align:{default:null},color:{default:null}},content:"block+",group:"block",defining:!0,parseDOM:[{tag:"q"},{tag:"div.pullquote"}],toDOM:e=>{let t=["pullquote"];return"wide"===e.attrs.align&&t.push("pullquote-align-wide"),"left"===e.attrs.align&&t.push("pullquote-align-left"),"right"===e.attrs.align&&t.push("pullquote-align-right"),"center"===e.attrs.align&&t.push("pullquote-align-center"),e.attrs.color&&t.push("pullquote-color-".concat(e.attrs.color)),["div",{class:t.join(" ")},0]},toDOMStatic:e=>["div",{class:"pullquote"},0]},nS=o.bP.create({name:"pullquote",defining:!0,content:nx.content,group:nx.group,addAttributes:()=>({align:{default:null},color:{default:null}}),renderHTML:e=>nx.toDOM(e.node),parseHTML:()=>nx.parseDOM,addNodeView(){let{PullquoteEditor:e}=n(15275);return(0,I.gu)(e)},addCommands(){let e=(e,t)=>n=>{let{state:r,dispatch:o}=n,{from:s,to:l}=r.selection,{pullquote:c}=r.schema.nodes,d=null,u=null;if(r.doc.nodesBetween(s,l,(e,t)=>{if(e.type===c)return d=e,u=t,!1}),!d||null===u)return!1;if(o){let n=r.tr,s=d.attrs;n.setNodeMarkup(u,void 0,(0,i._)((0,a._)({},s),{[e]:t})),o(n)}return!0};return{setPullquote:()=>e=>{let{state:t,commands:n}=e;return!(!(0,o.rU)(t,"paragraph")||(0,o.rU)(t,"blockquote")||(0,o.rU)(t,"calloutBlock"))&&n.wrapIn(this.name)},togglePullquote:()=>e=>{let{state:t,commands:n}=e;return!(!(0,o.rU)(t,"paragraph")||(0,o.rU)(t,"blockquote")||(0,o.rU)(t,"calloutBlock"))&&n.toggleWrap(this.name)},unsetPullquote:()=>e=>{let{commands:t}=e;return t.lift(this.name)},setPullquoteAlign:t=>e("align",t),setPullquoteColor:t=>e("color",t)}}});var nw=n(8321),nI=n(13086);let nM="recipe-embed",nC={attrs:{id:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!1,defining:!1,parseDOM:[{tag:nM,getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.setAttribute("data-component-name","RecipeToDOM"),t.className=nM,(0,V.Mv)((0,K.h)(nI.R,{node:{attrs:{id:e.attrs.id}}}),t),t}catch(t){return console.error("Error rendering RecipeNode",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return["div",{class:nM,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"RecipeToDOM"}]},toDOMStatic:e=>["div",{class:nM,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs)),"data-component-name":"RecipeToDomStatic"}],renderHTML(e){let{HTMLAttributes:t}=e;return["recipe",(0,o.KV)(this.options.HTMLAttributes,t)]},parseHTML:()=>[{tag:"recipe"}],addNodeView:()=>(0,I.gu)(nw.Y)},nk=(0,q.C)({name:"recipe",nodeSpec:nC,addCommands(){return{insertRecipe:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),nj={attrs:{name:{default:null},subdomain:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.referral-link",getAttrs:J.t}],toDOM:e=>{let t=e.attrs.name||"".concat(e.attrs.subdomain,".substack.com"),n=document.createElement("div");n.className="referral-link",n.setAttribute("data-attrs",JSON.stringify(e.attrs)),n.setAttribute("data-component-name","ReferralLinkToDOM");let a=document.createElement("h4");n.appendChild(a);let i=document.createElement("a");i.textContent=P.T.PRINTED_REFERRAL_URL,i.href="proxy.php?url=http://".concat(P.T.REFERRAL_URL),a.appendChild(i),i.addEventListener("click",e=>{if(i.href.endsWith("%%")){e.preventDefault();let t=window.open("/?referral_code=test&showWelcome=true","_blank");t&&t.focus&&t.focus()}});let r=document.createElement("a");return r.className="button primary",r.textContent="Share your referral link",r.href="proxy.php?url=mailto:?subject=".concat(encodeURIComponent("Check out ".concat(t)),"&body=").concat(encodeURIComponent("Subscribe using my link: "),"http://").concat(P.T.REFERRAL_URL),n.appendChild(r),n}},nL=(0,q.C)({name:"referral_link",nodeSpec:nj});var nR=n(35769);let nT={attrs:{isEditorNode:{default:!1},numReferralsRequired:{default:null},rewardDescription:{default:null},pub:{default:{}},tierNumber:{default:null}},atom:!0,content:"",isolating:!1,defining:!1,group:"block",parseDOM:[{getAttrs:J.t,tag:".referrals-tier-card"}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.className="referrals-tier-card",t.setAttribute("data-attrs",JSON.stringify(e.attrs)),(0,V.Mv)((0,K.h)(nR.P,{numReferralsRequired:e.attrs.numReferralsRequired,rewardDescription:e.attrs.rewardDescription,pub:nB(e.attrs.pub),tierNumber:e.attrs.tierNumber}),t),t}catch(t){return console.error("Error rendering ReferralsTierCardComponent",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return nD(e)},toDOMStatic:e=>nD(e)},nP=(0,q.C)({name:"referralTier",nodeSpec:nT}),nD=e=>["div",{class:"referrals-tier-card","data-attrs":JSON.stringify(e.attrs),"data-component-name":"ReferralsTierCardPlaceholder"}],nB=e=>{let t=(0,a._)({},e);return delete t.email_render_elements,t};var nU=n(75594),nG=n(54515);let nF="sponsorship-campaign-embed",nW={attrs:{id:{default:null},pub:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:nF,getAttrs:J.t}],toDOM:e=>{if("undefined"!=typeof window){var t;let n=null==(t=window._preloads)?void 0:t.pub,a=null==n?void 0:n.sponsorshipCampaigns;if(!a)return["div",{class:nF,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"SponsorshipCampaignToDOM",text:"Sponsorship campaign not found"}];let i=a[e.attrs.id];if(!i)return["div",{class:nF,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"SponsorshipCampaignToDOM",text:"Sponsorship campaign not found"}];try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.className=nF,(0,V.Mv)((0,K.h)(nG.eF,{campaign:i,isEditor:!0,pub:n}),t),t}catch(t){return console.error("Error rendering SponsorshipCampaign",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}}return["div",{class:nF,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"SponsorshipCampaignToDOM"}]},toDOMStatic:e=>["div",{class:nF,"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs)),"data-component-name":"SponsorshipCampaignToDOMStatic"}]},nY=(0,q.C)({name:"sponsorshipCampaign",nodeSpec:nW,addCommands(){return{insertSponsorshipCampaign:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),nK={attrs:{image:{default:""},title:{default:""},subtitle:{default:""},description:{default:""},url:{default:""}},inline:!0,group:"inline",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,toDOM:e=>["iframe",{class:"spotify-wrap","data-attrs":JSON.stringify(e.attrs),src:"https://open.spotify.com/embed?uri=".concat(encodeURIComponent(e.attrs.url),"&view=coverart&theme=white"),frameborder:"0",gesture:"media",allowfullscreen:"true","data-component-name":"SpotifyToDOM"}],toDOMStatic:e=>["a",{class:"spotify-wrap",href:e.attrs.url,"data-component-name":"SpotifyToDOMStatic"},["img",{class:"cover",src:(0,F.dJ9)("/img/spotify_play.png?v=1",156),style:"background-image:url(".concat(e.attrs.image,")")}],["span",{class:"content"},["img",{class:"logo",src:(0,F.dJ9)("/img/spotify_logo.png",40)}],["span",{class:"title"},e.attrs.title],["span",{class:"subtitle"},e.attrs.subtitle],["span",{class:"description"},e.attrs.description]]]},nH=(0,q.C)({name:"spotify",nodeSpec:nK});var nV=n(84262);let nz={content:"ctaCaption",attrs:{url:{default:null},text:{default:null},language:{default:"en"}},inline:!1,group:"block",draggable:!0,atom:!1,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.subscription-widget-wrap",getAttrs:J.t}],toDOM:e=>{let{text:t,language:n}=e.attrs,{iString:a}=I18N.i(n);return["div",{class:"subscription-widget-wrap-editor","data-attrs":JSON.stringify(e.attrs),"data-component-name":"SubscribeWidgetToDOM"},["div",{class:"subscription-widget show-subscribe"},["div",{class:"preamble"},0],["form",{class:"subscription-widget-subscribe"},["input",{type:"email",class:"email-input",name:"email",placeholder:a("Type your email…"),tabindex:-1}],["input",{type:"submit",class:"button primary",value:t}],["div",{class:"fake-input-wrapper"},["div",{class:"fake-input"}],["div",{class:"fake-button"}]]]]]},toDOMStatic:e=>["div",{class:"subscription-widget-wrap","data-component-name":"SubscribeWidgetToDOMStatic"},["div",{class:"subscription-widget show-subscribe"},["div",{class:"preamble"},0],eI(e)]]},nq=(0,q.C)({name:"subscribeWidget",nodeSpec:nz,addCommands(){return{insertSubscribeWidget:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),nJ={content:"block+",group:"block",defining:!1,isolating:!1,attrs:{params:{default:""}},parseDOM:[{tag:"pre.template-comment"}],toDOM:()=>["pre",{class:"template-comment","data-component-name":"TemplateCommentToDOM"},["code",0]]},nZ=(0,q.C)({name:"templateComment",nodeSpec:nJ});var nX=n(14304),nQ=n(74728),n$=n.n(nQ),n0=n(21076);let n1={attrs:{url:{default:""},html:{default:""},author:{default:""},author_name:{default:""},date:{default:""}},untrackedAttrs:["html"],inline:!0,group:"inline",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.tweet",getAttrs:function(e){try{let t=JSON.parse(e.getAttribute("data-attrs"));if("url"in t&&"html"in t&&"author"in t&&"author_name"in t&&"date"in t)return t;return!1}catch(e){return!1}}}],toDOM:e=>{let t=document.createElement("div");t.className="tweet",t.setAttribute("data-component-name","TwitterToDOM"),t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.innerHTML=n$()(e.attrs.html,{allowedTags:n$().defaults.allowedTags.concat(["img"]),allowedAttributes:Object.assign({},n$().defaults.allowedAttributes,{"*":["href","style","id","data-*","itemprop","class","align","alt","center","bgcolor"]})});let n=document.createElement("a");n.className="tweet-header",n.href="proxy.php?url=https://twitter.com/".concat(e.attrs.author),t.insertBefore(n,t.childNodes[0]);let a=document.createElement("img");a.src="proxy.php?url=".concat(eg.w4p,"/image/twitter_name/w_").concat(n0.Bh,"/").concat(e.attrs.author,".jpg"),n.appendChild(a);let i=document.createElement("span");i.className="tweet-author-name",i.textContent=e.attrs.author_name,n.appendChild(i);let r=document.createElement("span");r.className="tweet-author",r.textContent="@".concat(e.attrs.author),n.appendChild(r);let o=document.createElement("a");return o.className="tweet-date",o.textContent=e.attrs.date,o.href=e.attrs.url,t.appendChild(o),t.querySelectorAll&&Array.prototype.forEach.call(t.querySelectorAll("a"),e=>{e.target="_blank"}),t}},n2=(0,q.C)({name:"twitter",nodeSpec:n1});var n3=n(13625),n4=n(21533),n9=n(42114);let n8={attrs:{mediaUploadId:{default:null},duration:{default:null}},group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");t.className="native-video-embed",t.setAttribute("data-attrs",JSON.stringify(e.attrs));let n={mediaUploadId:e.attrs.mediaUploadId,pub:null,post:null,isEditor:!0};return(0,V.Mv)((0,K.h)(n9.i,n),t),t}catch(t){return console.error("Error rendering VideoEmbedPlayer",t),(0,z.D)({msg:null,node:e,err:t,group:"block"})}return n5(e)},toDOMStatic:e=>n5(e)},n7=(0,q.C)({name:"video",nodeSpec:n8,addNodeView:()=>(0,I.gu)(n4.L),addCommands(){return{insertVideo:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),n5=e=>["div",{class:"native-video-embed","data-component-name":"VideoPlaceholder","data-attrs":JSON.stringify(e.attrs)}];var n6=n(39248),ae=n(82528);let at={attrs:{videoId:{default:""}},inline:!0,group:"inline",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,toDOM:e=>{let t="https://www.youtube.com/embed/".concat(e.attrs.videoId);return["div",{class:"youtube-wrap","data-component-name":"YoutubeToDOM","data-attrs":JSON.stringify(e.attrs)},["iframe",{src:t,frameborder:"0",gesture:"media",allowfullscreen:"true"}]]},toDOMStatic:e=>["a",{href:"https://www.youtube.com/watch?v=".concat(e.attrs.videoId),target:"_blank",class:"youtube-wrap","data-component-name":"YoutubeToDOMStatic"},["img",{src:(0,ae.VG)(e.attrs.videoId,{maxWidth:550})}]]},an=(0,q.C)({name:"youtube",nodeSpec:at});var aa=n(28177),ai=n(36986),ar=n(5035),ao=n(69866),as=n(54958),al=n(25187),ac=n(90565),ad=n(54544),au=n(60597),ap=n(90032),am=n(79207),ah=n(68530),ag=n(72385);let a_=e=>{var t,n,a,i;let[r,o]=((null==(i=e.split("_"))||null==(a=i[1])||null==(n=a.split("."))||null==(t=n[0])?void 0:t.split("x"))||[0,0]).map(Number);return{width:r||0,height:o||0}},ab={type:"doc",content:[{type:"paragraph"}]},af={captionedImage:e=>{var t,n,a,i;let r=null==(t=e.content)?void 0:t.find(e=>{var t,n;return"image2"===e.type&&(null==(t=e.attrs)?void 0:t.width)>=300&&(null==e||null==(n=e.attrs)?void 0:n.height)>=300});if(!r)return{url:null,caption:void 0,alt:void 0};let o=null==e||null==(n=e.content)?void 0:n.find(e=>"caption"===e.type);return{url:null==r||null==(a=r.attrs)?void 0:a.src,caption:o,alt:null==r||null==(i=r.attrs)?void 0:i.alt}},image2:e=>{var t,n,a,i;return"number"!=typeof(null==(t=e.attrs)?void 0:t.width)&&"number"!=typeof(null==(n=e.attrs)?void 0:n.height)||e.attrs.width>=300&&e.attrs.height>=300?{url:null==e||null==(a=e.attrs)?void 0:a.src,alt:null==e||null==(i=e.attrs)?void 0:i.alt}:{url:null,caption:void 0,alt:void 0}},image3:e=>{var t,n,a,i,r;let o=a_(null==(t=e.attrs)?void 0:t.src);return"number"!=typeof(null==(n=e.attrs)?void 0:n.width)&&"number"!=typeof(null==(a=e.attrs)?void 0:a.height)||e.attrs.width>=300&&e.attrs.height>=300||o.width>=300&&o.height>=300?{url:null==(i=e.attrs)?void 0:i.src,caption:e.content,alt:null==(r=e.attrs)?void 0:r.alt}:{url:null,caption:void 0,alt:void 0}}},aA={image:e=>{var t;return a9(null==(t=e.attrs)?void 0:t.src)},image2:e=>{var t,n,a;return"number"!=typeof(null==(t=e.attrs)?void 0:t.width)&&"number"!=typeof(null==(n=e.attrs)?void 0:n.height)||e.attrs.width>=300&&e.attrs.height>=300?a9(null==(a=e.attrs)?void 0:a.src):null},image3:e=>{var t,n,a,i;let r=a_(null==(t=e.attrs)?void 0:t.src);return"number"!=typeof(null==(n=e.attrs)?void 0:n.width)&&"number"!=typeof(null==(a=e.attrs)?void 0:a.height)||e.attrs.width>=300&&e.attrs.height>=300||r.width>=300&&r.height>=300?a9(null==(i=e.attrs)?void 0:i.src):null},imageGallery:e=>{var t,n,a;return a9(null==(a=e.attrs)||null==(n=a.gallery.images)||null==(t=n[0])?void 0:t.src)},spotify:e=>{var t;return a9(null==(t=e.attrs)?void 0:t.image)},spotify2:e=>{var t;return a9(null==(t=e.attrs)?void 0:t.image)},opensea:e=>{var t;return a9(null==(t=e.attrs)?void 0:t.image)},twitter2:e=>{var t,n;if(null==(t=e.attrs)?void 0:t.photos){for(let t of e.attrs.photos)if(t.img_url)return a9(t.img_url)}return(null==(n=e.attrs)?void 0:n.expanded_url)&&e.attrs.expanded_url.image?e.attrs.expanded_url.image.url?a9(e.attrs.expanded_url.image.url):a9(e.attrs.expanded_url.image):null},vimeo:e=>{var t;return n6.VG(null==(t=e.attrs)?void 0:t.videoId,{playButton:!1})},youtube:e=>{var t;return ae.VG(null==(t=e.attrs)?void 0:t.videoId,{playButton:!1})},youtube2:e=>{var t;return ae.VG(null==(t=e.attrs)?void 0:t.videoId,{playButton:!1})},kindle:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.imageUrl)},applePodcast:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.imageUrl)},tiktok:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.thumbnail_url)},polymarket:e=>{var t,n;let a=Math.floor(new Date().getTime()/6e4);if(null==(t=e.attrs)?void 0:t.profileName)return(0,F.dJ9)("".concat((0,F.$_T)(),"/api/v1/polymarket-embed-image/profile/").concat(e.attrs.profileName,"?timestamp=").concat(a),800);if(null==(n=e.attrs)?void 0:n.eventSlug){let t=e.attrs.marketSlug?"/".concat(e.attrs.marketSlug):"";return(0,F.dJ9)("".concat((0,F.$_T)(),"/api/v1/polymarket-embed-image/").concat(e.attrs.eventSlug).concat(t,"?timestamp=").concat(a),800)}return null},prediction_market:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.thumbnail_url)},manifold:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.thumbnail_url)},lichess:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.thumbnail_url)},datawrapper:e=>{var t;return(0,F.dJ9)(null==(t=e.attrs)?void 0:t.thumbnail_url)},pinterest:e=>{var t;return a9(null==(t=e.attrs)?void 0:t.image)}},aE={augmentation_placeholder:eo,youtube2:ae.c,youtube:at,vimeo:n6.c,install_substack_app:na,preview_in_substack_app:nO,opensea:nm.c,twitter2:n3.c,twitter:n1,communityChat:eV.c,communityPost:ez.c,comment:eH.c,spotify2:nV.c,spotify:nK,soundcloud:nU.c,instagram:t7.c,image2:tJ.c,image:tF,button:eS,comic:eY.nodeSpec,file:eY.nodeSpec,pdf:as.A.nodeSpec,xlsx:ag.A.nodeSpec,ebook:e9.nodeSpec,referral_link:nj,bandcamp:el.c,kindle:nr.c,gitgist:tU.c,embeddedPost:e7.c,embeddedPublication:e5.c,applePodcast:Y.c,audio:et,video:n8,audioUrl:ei,tiktok:nX.c,bluesky:eu.c,poll:nb,sponsorshipCampaign:nW,imageGallery:tV,image3:t1,cashtag:eU,substack_mentions:nu,polymarket:nA.c,prediction_market:nE.c,manifold:nE.c,lichess:no.c,datawrapper:eZ.c,digestPostEmbed:eX.c,assetError:X,directMessage:e2,recipe:nC,pinterest:nh.c},ay=(0,i._)((0,a._)({},aE),{blockquote:ec,calloutBlock:eM.c,fragmentNode:tD,captionedImage:eP,caption:eC,ctaCaption:eq,footnote:tj,footnoteAnchor:tR,inline_latex:t9,latex_block:t4.c,paywall:ao.c,preformatted_text_block:ny,pullquote:nx,subscribeWidget:nz,captionedShareButton:ej({url:P.T.SHARE_URL}),captionedWriterReferralButton:ej({hasDynamicSubstitutions:!1}),templateComment:nJ,meeting:nl,referralTier:nT,fpRecircBlock:tP.c,[ar._1]:ar.c}),aN=(0,i._)((0,a._)({},aE),{subscribeWidget:nz,paywall:ao.c,templateComment:nJ}),aO={strikethrough:al.o,superscript:ad.L,subscript:ac.i},av=new w.Sj({nodes:aL(),marks:aR()}),ax=new w.Sj({nodes:aL({isStatic:!0}),marks:aR({isStatic:!0})}),aS=Object.keys(ay).filter(e=>!["blockquote","pullquote","calloutBlock","fpRecircBlock",ar._1,"inline_latex","latex_block"].includes(e)).map(e=>{let t=(0,e0.m0)(e,ay[e]),n=(0,a._)({},ay[e],t);return"youtube2"===e?n.addNodeView=()=>e=>{let{node:t}=e;return new ae.fe(t)}:"tiktok"===e?n.addNodeView=()=>e=>{let{node:t}=e;return new nX.e1(t)}:"lichess"===e?n.addNodeView=()=>e=>{let{node:t}=e;return new no.Hk(t)}:"datawrapper"===e?n.addNodeView=()=>e=>{let{node:t}=e;return new eZ.nV(t)}:"prediction_market"===e||"manifold"===e?n.addNodeView=()=>e=>{let{node:t}=e;return new nE.hG(t)}:"paywall"===e?n.addNodeView=()=>e=>new ao.U:"comic"===e?n.addNodeView=()=>e=>{let{node:t,editor:n,getPos:a}=e;return eY.getNodeView({node:t,editor:n,getPos:a})}:"pdf"===e?n.addNodeView=()=>e=>{let{node:t,editor:n,getPos:a}=e;return as.A.getNodeView({node:t,editor:n,getPos:a})}:"xlsx"===e?n.addNodeView=()=>e=>{let{node:t,editor:n,getPos:a}=e;return ag.A.getNodeView({node:t,editor:n,getPos:a})}:"ebook"===e?n.addNodeView=()=>e=>{let{node:t,editor:n,getPos:a}=e;return e9.getNodeView({node:t,editor:n,getPos:a})}:"augmentation_placeholder"===e&&(n.addNodeView=()=>(0,I.gu)(T.i)),o.bP.create(n)}),aw=s.Cv.extend({addCommands(){return{toggleBlockquote:()=>e=>{let{state:t,commands:n}=e;return!(!(0,o.rU)(t,"paragraph")||(0,o.rU)(t,"pullquote")||(0,o.rU)(t,"calloutBlock"))&&n.toggleWrap(this.name)}}},parseHTML:()=>ec.parseDOM}),aI=s.Cv.extend({name:"calloutBlock",addCommands(){return{toggleCalloutBlock:()=>e=>{let{state:t,commands:n}=e;if((0,o.rU)(t,"calloutBlock"))return n.lift("calloutBlock");if((0,o.rU)(t,"paragraph")||(0,o.rU)(t,"button"))return!((0,o.rU)(t,"pullquote")||(0,o.rU)(t,"blockquote"))&&n.toggleWrap(this.name);let a=[t.schema.nodes.paragraph,t.schema.nodes.button].filter(e=>!!e),i=!0;return t.doc.nodesBetween(t.selection.from,t.selection.to,(e,n,r,o)=>{if(r===t.doc&&(e.type===t.schema.nodes.blockquote||e.type===t.schema.nodes.pullquote||!a.includes(e.type)))return i=!1,!1}),!(!i||(0,o.rU)(t,"pullquote")||(0,o.rU)(t,"blockquote"))&&n.toggleWrap(this.name)}}},parseHTML:()=>[{tag:"div[data-callout]",priority:100},{tag:"div.callout-block",priority:99}],renderHTML:()=>["div",{class:"callout-block","data-callout":"true"},0],addInputRules:()=>[]}),aM=_.d.extend({addCommands:()=>({insertHorizontalRule:()=>e=>{let{state:t,dispatch:n}=e;return n&&t.schema.nodes.horizontalRule&&n((0,e0.DL)(t,t.schema.nodes.horizontalRule.create())),!0},setHorizontalRule:()=>e=>{let{state:t,dispatch:n}=e;if(n){if(!t.schema.nodes.horizontalRule)return console.error("horizontalRule is missing"),!1;n((0,e0.DL)(t,t.schema.nodes.horizontalRule.create()))}return!0}})}),aC=u.NG.extend({marks:"_"}),ak=[aw,l.yN,c.Rg,te.$,aI,d.Cy,aC,tl.q,p.y,td.t,m.B,h.D,g.B,aM,e6.K,ai.T,tp.W,t8,t4.A,th.N,tb.P,aa.S,tf.c,t_.k,tu.H,b.J2,tm.u,f.c,A._J,E.f,tg.p,nS,y.n,N.E,O.Z,v.E,x.n.extend({addKeyboardShortcuts:()=>({})}).configure({types:[...G.h]}),ts,tM,tc.I,e3,tP.ik,ar.E6,...aS],aj=(0,o._w)(ak);function aL(){let{isStatic:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S.wQ.spec.nodes;for(let e of G.h){let n=t.get(e);n&&(t=t.update(e,function(e){let t=e.attrs||{},n=e.toDOM,o=e.parseDOM;return(0,i._)((0,a._)({},e),{attrs:(0,i._)((0,a._)({},t),{textAlign:{default:null}}),toDOM:n?e=>{let t=n(e);return e.attrs.textAlign&&"left"!==e.attrs.textAlign&&Array.isArray(t)&&("object"!=typeof t[1]||null===t[1]||Array.isArray(t[1])?t.splice(1,0,{style:"text-align: ".concat(e.attrs.textAlign)}):t[1]=(0,i._)((0,a._)({},t[1]),{style:"".concat(t[1].style?"".concat(t[1].style,"; "):"","text-align: ").concat(e.attrs.textAlign)})),t}:void 0,parseDOM:o?o.map(e=>{let{attrs:t}=e,n=(0,r._)(e,["attrs"]);return(0,i._)((0,a._)({},n),{getAttrs:n=>{var r;let o=e.getAttrs?e.getAttrs(n):t||{};if(!1===o)return!1;let s=null==(r=n.style)?void 0:r.textAlign;return s&&["center","right","justify"].includes(s)?(0,i._)((0,a._)({},o||{}),{textAlign:s}):o||{}}})}):void 0})}(n)))}for(let n of Object.keys(ay)){let a=Object.assign({},ay[n]);e&&a.toDOMStatic&&(a.toDOM=a.toDOMStatic),delete a.toDOMStatic,t=t.get(n)?t.update(n,a):t.addToEnd(n,a)}return t}function aR(){let{isStatic:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S.wQ.spec.marks;for(let n of Object.keys(aO)){let a=Object.assign({},aO[n]);e&&a.toDOMStatic&&(a.toDOM=a.toDOMStatic),delete a.toDOMStatic,t=t.get(n)?t.update(n,a):t.addToEnd(n,a)}return t}function aT(e){let{postId:t,pubId:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e;return"string"==typeof a&&(a=aD(a,{postId:t,pubId:n})),(0,e0.jE)(a,e=>{let t=e0.rl.find(t=>t[0]===e.type);return t&&(e.type=t[1],e.attrs&&"orderedList"===t[1]&&(e.attrs.start=e.attrs.order)),e.marks&&e.marks.forEach(e=>{var t;let n=e0.EI.find(t=>t[0]===e.type);n&&(e.type=n[1]),"link"===e.type&&(null==(t=e.attrs)?void 0:t.href)===!0&&(e.attrs.href=null)}),e}),a}function aP(e){let{postId:t,pubId:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e;return"string"==typeof a&&(a=aD(a,{postId:t,pubId:n})),(0,e0.jE)(a,e=>{let t=e0.rl.find(t=>t[1]===e.type);return t&&(e.type=t[0],e.attrs&&"ordered_list"===t[0]&&(e.attrs.order=e.attrs.start)),e.marks&&e.marks.forEach(e=>{let t=e0.EI.find(t=>t[1]===e.type);t&&(e.type=t[0])}),e}),a}function aD(e){let t,{postId:n,pubId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&(e=(e=e.replace("http://substack-post-media","https://substack-post-media")).replace("http://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984","https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984")),e=aJ(e))try{t=JSON.parse(e)}catch(t){console.error("unserializeJson for post [".concat(n,"], pubId [").concat(a,"], could not parse serialized:"),e,t)}return null!=t?t:void 0}function aB(e){let{docStr:t,postId:n,pubId:a}=e,i=ie(aD(t,{postId:n,pubId:a})||ab);if(!i)throw Error("could not purgeUnsafeLinks");let r=i;return(r=aT(r,{postId:n,pubId:a}))||ab}function aU(e){let{customSchema:t,useTiptap:n,mutateJson:a,shouldSetBelowTheFoldAttribute:i=!1,shouldThrowOnInvalid:r,postId:o,pubId:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r=aD(e,{postId:o,pubId:s})||ab;a&&a(r);let l=ie(r);if(!l)throw Error("could not purgeUnsafeLinks");let c=l;return i&&(c=it(c)),c=n?aT(c,{postId:o,pubId:s}):aP(c,{postId:o,pubId:s}),(t||av).nodeFromJSON(c)}catch(n){if(console.error("Failed to parse JSON for post [".concat(o,"], serialized:"),e,n),r)throw Error("Failed to parse JSON: ".concat(n.message));return(t||av).nodeFromJSON(ab)}}async function aG(e){let{customSchema:t,useTiptap:n,mutateJson:a,shouldSetBelowTheFoldAttribute:i=!1,shouldThrowOnInvalid:r,postId:o,pubId:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r=aD(e,{postId:o,pubId:s})||ab;a&&await a(r);let l=ie(r);if(!l)throw Error("could not purgeUnsafeLinks");let c=l;return i&&(c=it(c)),c=n?aT(c,{postId:o,pubId:s}):aP(c,{postId:o,pubId:s}),(t||av).nodeFromJSON(c)}catch(n){if(console.error("Failed to parse JSON for post [".concat(o,"], serialized:"),e,n),r)throw Error("Failed to parse JSON: ".concat(n.message));return(t||av).nodeFromJSON(ab)}}function aF(e){let{runMigrations:t=!1,postId:n,pubId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.toJSON();return t&&(i=aP(i=ie(i=function(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?aD(e,{postId:t}):e;return(0,e0.jE)(n,e=>{e.text&&(e.text=(0,W.stripInvalidBytes)(e.text))},{nodeTypes:["text"]}),n}(i)),{postId:n,pubId:a})),JSON.stringify(i)}function aW(e,t){let n=document.createElement("div");return n.appendChild(w.ZF.fromSchema(t?ax:av).serializeFragment(w.FK.fromArray([e]),{document})),n}function aY(e){Array.from(e.querySelectorAll("h2, h3, h4, h5, h6")).forEach(e=>{if(!e.getAttribute("id")){var t;let n=(0,B.uB)(e.textContent||"",!0),a=document.createElement("div");a.setAttribute("id",n),a.setAttribute("class","anchor-target"),null==(t=e.parentNode)||t.insertBefore(a,e);let i=document.createElement("a");for(i.setAttribute("href","#".concat(n));e.firstChild;)i.appendChild(e.firstChild);e.appendChild(i)}})}function aK(e,t){let{isAmp:n,transform:i,useTipTap:r,pubId:o,postId:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){let n=aT(aD(e,{postId:s,pubId:o}),{postId:s,pubId:o});if(!n)throw Error("could not serialize json doc");try{return(0,ah.i)({doc:n,extensions:(e=>{let{isStatic:t,excludeDropCursor:n=!1}=e,i={};return n&&(i.dropcursor=!1),[tE.A.configure((0,a._)({history:!1,blockquote:!1,bulletList:!1,orderedList:!1,horizontalRule:!1},i)),tA.Ay,N.A,O.A,tm.u,ed,nS.configure({isStatic:t}),c.Ay,A.Ay,tq.configure({isStatic:t}),t3,en.configure({isStatic:t}),Y.bq.configure({isStatic:t}),n7.configure({isStatic:t}),n2.configure({isStatic:t}),n3.eC.configure({isStatic:t}),an.configure({isStatic:t}),ae.id.configure({isStatic:t}),ew.configure({isStatic:t}),tW.configure({isStatic:t}),tJ.Mi.configure({isStatic:t}),nq.configure({isStatic:t}),eJ.configure({isStatic:t}),eX.ed.configure({isStatic:t}),e7.TG.configure({isStatic:t}),e5.fz.configure({isStatic:t}),nH.configure({isStatic:t}),nV.hJ.configure({isStatic:t}),nk.configure({isStatic:t}),eG.configure({isStatic:t}),eF.tO.configure({isStatic:t}),e8.configure({isStatic:t}),eK.configure({isStatic:t}),np.configure({isStatic:t}),t7.t8.configure({isStatic:t}),nf.configure({isStatic:t}),nY.configure({isStatic:t}),ni.configure({isStatic:t}),el.pK.configure({isStatic:t}),n6.tC.configure({isStatic:t}),nX.zh.configure({isStatic:t}),eu.iK.configure({isStatic:t}),nm.qT.configure({isStatic:t}),nU.RX.configure({isStatic:t}),eV.e$.configure({isStatic:t}),eH._k.configure({isStatic:t}),ez.iH.configure({isStatic:t}),tU.Sh.configure({isStatic:t}),es.configure({isStatic:t}),nE.ny.configure({isStatic:t}),nE.Iu.configure({isStatic:t}),nA.LL.configure({isStatic:t}),nr.AI.configure({isStatic:t}),eZ.I8.configure({isStatic:t}),no.kP.configure({isStatic:t}),eD.configure({isStatic:t}),ek.configure({isStatic:t}),eR.configure({isStatic:t}),eT.configure({isStatic:t}),t4.A.configure({isStatic:t}),t8.configure({isStatic:t}),tL.configure({isStatic:t}),tT.configure({isStatic:t}),nN.configure({isStatic:t}),nc.configure({isStatic:t}),er.configure({isStatic:t}),nZ.configure({isStatic:t}),nL.configure({isStatic:t}),nP.configure({isStatic:t}),nv.configure({isStatic:t}),tB.configure({isStatic:t}),Q.configure({isStatic:t}),nh.FL.configure({isStatic:t}),tG,x.n.configure({types:[...G.h]}),tM,ts,e4.configure({isStatic:t}),tP.ik.configure({isStatic:t})]})({isStatic:null!=t&&t}),customDocument:document})}catch(e){return console.error("could not serialize fragment, for pubId [".concat(o,"], postId [").concat(s,"]"),e),document.createElement("div").innerHTML}}let l=aU(e,{shouldSetBelowTheFoldAttribute:!0,postId:s,pubId:o}),d=w.ZF.fromSchema(t?ax:av),u=document.createElement("div");try{d.serializeFragment(l.content,{document},u)}catch(e){return console.error("could not serialize fragment, for pubId [".concat(o,"], postId [").concat(s,"]"),e),u.innerHTML}return i&&i(u),n&&Array.from(u.querySelectorAll("img")).forEach(e=>{let t=document.createElement("amp-img");t.setAttribute("layout","intrinsic"),e.getAttributeNames().forEach(n=>{var a;"srcset"!==n&&t.setAttribute(n,null!=(a=e.getAttribute(n))?a:"null")}),e.replaceWith(t)}),u.innerHTML}function aH(e,t){let{postId:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,e0.fE)(aU(e,{postId:n}),t)}function aV(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,e0.Lz)(aU(e,{postId:t}))}function az(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,e0.Te)(aU(e,{postId:t}))}function aq(e){let{stripEmptyParagraphs:t,postId:n,pubId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=w.S4.fromSchema(av).parse(new DOMParser().parseFromString(e,"text/html"));return(t&&(i=(0,ap.c)(i,e=>!e.type||"paragraph"!==e.type.name||!!(0,e0.fE)(e))),i)?aF(i,{postId:n,pubId:a}):null}function aJ(e){return e&&"{"!==e[0]&&"null"!==e?aF(S.ee.parse(e)):e}function aZ(e){var t,n;return e.body=null!=(t=aJ(e.body))?t:null,e.draft_body=null!=(n=aJ(e.draft_body))?n:null,e}function aX(e){var t,n,a,i,r;return e.subscribe_content=null!=(t=aJ(e.subscribe_content))?t:null,e.welcome_email_content=null!=(n=aJ(e.welcome_email_content))?n:null,e.tos_content=null!=(a=aJ(e.tos_content))?a:null,e.privacy_content=null!=(i=aJ(e.privacy_content))?i:null,e.disclosures_content=null!=(r=aJ(e.disclosures_content))?r:null,e}function aQ(e,t){let{post:n=null,pubId:a,minCharacters:i=6,maxStopAfter:r=null,singleSentence:o=!0,language:s="en",excludeMediaPrefix:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{iString:c}=I18N.i(s),d=(null==n?void 0:n.type)==="thread"?145:250;(r||0===r)&&(d=Math.min(r,d));let u=(null==n?void 0:n.type)==="thread",p="";if(t)p+=t;else if(0!==d){var m;let t={paragraph:!0,blockquote:!0,list_item:!0,listItem:!0,heading:!0,code_block:!0,codeBlock:!0,hardbreak:!0,hard_break:!0,hardBreak:!0},r={caption:!0,footnote:!0};(0,e0.jE)("string"==typeof e?aD(e,{postId:null!=(m=null==n?void 0:n.id)?m:null,pubId:a}):e,e=>{if(d&&p.length>=d)return!1;if("paywall"===e.type)return am.Vw;if(e.type&&r[e.type])return!1;if("text"===e.type){let{text:t}=e;if(t)if("string"==typeof t){let e=t.match(/[.?!] /);if(o&&(null==e?void 0:e.index))return p+=t.slice(0,e.index+1),am.Vw;p+=t}else console.error("Expected text node to have string content, got",{postId:null==n?void 0:n.id,pubId:a})}else if(e.type&&t[e.type]&&p){if(p.length>i)return am.Vw;" "!==p[p.length-1]&&(p+=" ")}else if("substack_mentions"===e.type){var s,l;p+=null!=(l=null==(s=e.attrs)?void 0:s.name)?l:""}})}if(p=p.replace(/\s+/g," ").trim(),u&&d&&p.length>=d&&(p=(0,W.truncateText)(p,d)),((null==n?void 0:n.type)==="podcast"||(null==n?void 0:n.type)==="video")&&!l){let e=(0,D.Fk)(n);p="".concat(c((null==n?void 0:n.type)==="video"||(null==n?void 0:n.videoUpload)?"Watch now":"Listen now")," ").concat(e?"(".concat((0,W.secondsToLargestUnit)(e,{minutesCutoff:10800,language:s}),") "):"","| ").concat(p)}return p}function a$(e,t){var n;return null!=(n=a4(e,t)[0])?n:null}function a0(e){let{postId:t,pubId:n,width:a,height:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=aD(e,{postId:t,pubId:n});return r?R()(C()((0,e0.zM)(r,e=>{var t;return!!aA[null!=(t=e.type)?t:""]}).map(e=>{var t,n;let r=null==(t=aA[null!=(n=e.type)?n:""])?void 0:t.call(aA,e);return r?(0,F.dJ9)(r,a,{height:i}):null}))):[]}function a1(e){let{postId:t,pubId:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=a0(e,{postId:t,pubId:n});return a.length>0&&!j()(a[0])?a[0]:null}function a2(e){let{body:t}=e,n=aD(t);if(n)return(0,e0.zM)(n,e=>{var t;return!!af[null!=(t=e.type)?t:""]}).map(e=>{var t,n;return null==(t=af[null!=(n=e.type)?n:""])?void 0:t.call(af,e)})[0]}async function a3(e){let{body:t,postId:n}=e,a=aU(t,{postId:n}),i=[];return(0,e0.Rv)(a,e=>{switch(e.type.name){case"image":case"image2":e.attrs.src&&i.push(e.attrs.src);break;case"imageGallery":var t;null==(t=e.attrs.gallery.images)||t.map(e=>{e.src&&i.push(e.src)})}}),i}function a4(e,t){var n;let a=[];"podcast_episode_image_info"in t&&t.podcast_episode_image_info&&!t.podcast_episode_image_info.isDefaultArt&&t.podcast_episode_image_info.url!==t.podcast_art_url&&a.unshift(t.podcast_episode_image_info.url),a.unshift(...a0(e,{postId:t.id}));let i="podcastUpload"in t&&t.podcastUpload||"draftPodcastUpload"in t&&t.draftPodcastUpload||void 0;if((null==i?void 0:i.state)==="transcoded"&&(null!=(n=null==i?void 0:i.thumbnail_id)?n:1)>1){let e=(0,F.H10)(i);e&&a.unshift(e)}let r="videoUpload"in t&&t.videoUpload||"draftVideoUpload"in t&&t.draftVideoUpload||void 0;if((null==r?void 0:r.state)==="transcoded"){let e=(0,F.H10)(r);e&&a.unshift(e)}return a}function a9(e){return"string"!=typeof e?null:(e=e.replace(/\/l_twitter_play_button_rvaygk[^/]+/g,""),(0,F.dJ9)(e,void 0,{height:600}))}function a8(e){(0,e0.jE)(e,e=>{var t;return"button"===e.type&&((null==(t=e.attrs)?void 0:t.url)&&"string"==typeof e.attrs.url&&e.attrs.url.startsWith("%%")&&(e.attrs.action=e.attrs.url.replace(/%%/g,"")),!0)},{nodeTypes:"button"})}function a7(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("string"==typeof n){let e=aD(n,{postId:t});if(!e)return[];n=e}a8(n);let a=[];return(0,e0.jE)(n,e=>{var t,n,i;if("button"===e.type&&(null==(t=e.attrs)?void 0:t.url)&&!e.attrs.action)a.push({text:e.attrs.text,url:e.attrs.url});else if("image2"===e.type&&(null==(n=e.attrs)?void 0:n.href))a.push({text:e.attrs.href,url:e.attrs.href});else if(e.marks){for(let t of e.marks)if("link"===t.type&&(null==(i=t.attrs)?void 0:i.href)){a.push({text:e.text,url:t.attrs.href});break}}}),a}function a5(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;let n=e;if("string"==typeof n){let e=aD(n,{postId:t});if(!e)return!1;n=e}return!!(0,e0.cy)(n,e=>"templateComment"===e.type)}function a6(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;let n=e;if("string"==typeof n){let e=aD(n,{postId:t});if(!e)return!1;n=e}return!!(0,e0.cy)(n,e=>{for(let s of["href","src","url"]){var t,n,a,i,r,o;if((null==e||null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:"))||(null==e||null==(o=e.marks)?void 0:o.find(e=>{var t,n,a,i,r;return null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:")})))return!0}return!1})}function ie(e){let t,{postId:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){let a=aD(e,{postId:n});if(!a)return null;t=a}else t=e;return(0,au.M5)(t)?(0,ap.c)(t,e=>{for(let s of["href","src","url"]){var t,n,a,i,r,o;if((null==e||null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:"))||(null==e||null==(o=e.marks)?void 0:o.find(e=>{var t,n,a,i,r;return null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:")})))return!1}return!0}):(0,ap.c)(t,e=>{for(let s of["href","src","url"]){var t,n,a,i,r,o;if((null==e||null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:"))||(null==e||null==(o=e.marks)?void 0:o.find(e=>{var t,n,a,i,r;return null==(i=e.attrs)||null==(a=i[s])||null==(n=a.trim)||null==(t=(r=n.call(a)).toLowerCase)?void 0:t.call(r).startsWith("javascript:")})))return!1}return!0})}function it(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,{postId:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="string"==typeof e?aD(e,{postId:n}):e;if(!a)return;let i=!1;return"doc"===a.type&&a.content&&a.content.map((e,n)=>{n>t?(0,e0.jE)(e,e=>{!e.content&&e.attrs&&(e.attrs.belowTheFold=!0)}):i||(0,e0.jE)(e,e=>{!e.content&&(null==e?void 0:e.type)=="image2"&&e.attrs&&(e.attrs.topImage=!0,i=!0)})}),a}function ia(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return JSON.parse(e),aV(e,{postId:t})}catch(t){return e}}function ii(e,t){let{body:n,hasPodcastPreview:a}=t;if(!e||!n)return null;let i=n;return a&&(i=JSON.stringify((0,e0.n)(aD(n,{postId:e.id}),{maxLength:"post_preview_limit"in e&&e.post_preview_limit&&"number"==typeof e.post_preview_limit?e.post_preview_limit:356}))),aV(i,{postId:e.id})}function ir(e){return aF(av.node("doc",null,e.split("\n").map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let t=[],n=(0,U.P2)(e);if(n.length>0){let a=e;for(;;){let e=n.map(e=>[a.indexOf(e.value),e.value]).sort().find(e=>{let[t]=e;return t>=0});if(!e)break;let[i,r]=e;if(i>0&&t.push(av.text(a.substring(0,i))),!av.marks.link){console.error("link is missing from schema");continue}t.push(av.text(r,[av.marks.link.create({title:r,href:r,target:"_blank"})])),a=a.substring(i+r.length)}a&&t.push(av.text(a))}else t.push(av.text(e));return av.node("paragraph",null,t)})))}function io(e){let{postId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;let n=e;if("string"==typeof e){let a=aD(e,{postId:t});if(!a)return!1;n=a}else n=e;return(0,e0.Ll)(n)}Object.entries(aj.nodes).forEach(e=>{let[t,n]=e;void 0!==ay[t]&&(n.spec=(0,a._)({},ay[t],n.spec))})},17768:function(e,t,n){n.d(t,{VM:()=>g,Ys:()=>d,c:()=>l,t8:()=>c});var a=n(16291),i=n(49807),r=n(29496),o=n(78495);let s=/[@#][\w.]+|\n/g,l={attrs:{instagram_id:{default:""},title:{default:""},author_name:{default:""},thumbnail_url:{default:""},timestamp:{default:""},belowTheFold:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.instagram",getAttrs:o.t}],toDOM:e=>{let t=document.createElement("div");t.className="instagram",t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.setAttribute("data-component-name","InstagramToDOM");let n=document.createElement("div");n.className="instagram-top-bar",t.appendChild(n);let r=document.createElement("a");r.className="instagram-author-name",r.href=p(e.attrs.author_name),r.target="_blank",r.textContent=e.attrs.author_name,n.appendChild(r);let o=document.createElement("a");o.className="instagram-image",o.href=u(e.attrs.instagram_id),o.target="_blank",t.appendChild(o);let l=document.createElement("img");l.src=(0,i.dJ9)(e.attrs.thumbnail_url,640),e.attrs.belowTheFold&&l.setAttribute("loading","lazy"),o.appendChild(l);let c=document.createElement("div");c.className="instagram-bottom-bar",t.appendChild(c);let d=document.createElement("div");if(d.className="instagram-title",function(e,t){let n,a;if(!e)return;let i=0;for(;n=s.exec(e);)switch(it=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),d=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&!t.nodes.instagram?null:_(e)[1]},u=e=>"https://instagram.com/p/".concat(e),p=e=>"https://instagram.com/".concat(e),m=e=>"https://instagram.com/explore/tags/".concat(e.substr(1),"/"),h=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/instagram/post/".concat(_(e)[0]))).body},g=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.instagram.create(await h(e))},_=e=>{let t=/(https?:\/\/(?:www\.)?(?:instagram\.com|instagr\.am)\/(?:p|reel|reels)\/([^\/\b\s\?\#]+)[^\s]*)/.exec(e);if(t){var n,a;return[null!=(n=t[2])?n:null,null!=(a=t[1])?a:null]}return[null,null]}},82979:function(e,t,n){n.d(t,{AI:()=>c,Rj:()=>d,c:()=>l,gE:()=>p});var a=n(39318),i=n(29496),r=n(78495);let o=/https?:\/\/read\.amazon(?:\.co)?\.[a-z]+\/kp\/(?:embed|card)\?asin=([^&#\s\b'"]+)[^\b\s'"]*/i,s=[RegExp(']+src="proxy.php?url='.concat(o.source,'"[^>]*><\\/iframe>'),"i"),o],l={attrs:{kindleId:{default:""},imageUrl:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.kindle-wrap",getAttrs:r.t}],toDOM:e=>{let t=m(e.attrs.kindleId);return["div",{class:"kindle-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"KindleToDOM"},["iframe",{src:t,frameborder:"0",gesture:"media",allow:"autoplay; fullscreen",allowautoplay:"true",allowfullscreen:"true"}]]},toDOMStatic:e=>["table",{class:"kindle-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"KindleToDOMStatic"},["tr",{},["td"],["td",{align:"left",class:"content",width:200},["a",{class:"image-link",target:"_blank",href:h(e.attrs.kindleId)},["img",{"data-attrs":JSON.stringify(e.attrs),alt:"",width:"".concat(200),class:"wide-image",src:(0,a.dJ9)(e.attrs.imageUrl,400)}]]],["td"]]]},c=(0,i.C)({name:"kindle",nodeSpec:l,addCommands(){return{insertKindle:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),d=e=>{for(let t of s){let n=t.exec(e);if(n)return n[0]}return null},u=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/kindle").query({embedText:e})).body},p=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.kindle.create(await u(e))},m=e=>(0,a.yRP)("https://read.amazon.com/kp/card",{asin:e,preview:"inline",linkCode:"kpe",hideShare:"true"}),h=e=>"https://www.amazon.com/gp/product/".concat(e,"/")},78598:function(e,t,n){n.d(t,{$C:()=>d,A:()=>p,c:()=>u});var a=n(69277),i=n(70408);n(50172);var r=n(99595),o=n(13022);n(82061);var s=n(55714),l=n(29496),c=n(78495);let d=()=>{let e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=t.length;for(let a=0;a<10;a++)e+=t.charAt(Math.floor(Math.random()*n));return e},u={content:"text*",group:"block",code:!0,defining:!0,isolating:!0,attrs:{persistentExpression:{default:""},id:{default:""}},parseDOM:[{tag:"pre.text",preserveWhitespace:"full",priority:60},{tag:"div.latexWrapper",getAttrs:c.t}],toDOM:e=>["div",{class:"latex-rendered","data-attrs":JSON.stringify((0,a._)({},e.attrs)),"data-component-name":"LatexBlockToDOM"}],toDOMStatic:e=>["div",{class:"latex-rendered","data-attrs":JSON.stringify((0,i._)((0,a._)({},e.attrs),{isEmail:!0})),"data-component-name":"LatexBlockToDOMStatic"}]},p=(0,l.C)({name:"latex_block",nodeSpec:u,addCommands(){return{insertLatex:e=>t=>{var n;let{commands:a,state:i,dispatch:r}=t,l={persistentExpression:null!=(n=e.persistentExpression)?n:"",id:e.id||d()};if(!(0,o.Ay)("latex_upgraded_inline")&&i&&r){let e=i.schema.nodes.latex_block;return!!e&&(r((0,s.DL)(i,e.create(l))),!0)}return a.insertContent({type:this.name,attrs:l})}}},addNodeView(){if((0,o.Ay)("latex_upgraded_inline")){let{BlockLatexComponent:e}=n(71825);return(0,r.gu)(e)}let{LegacyLatexComponent:e}=n(62716);return(0,r.gu)(e)}})},58097:function(e,t,n){n.d(t,{Hh:()=>c,Hk:()=>h,Wc:()=>u,c:()=>o,kP:()=>s});var a=n(99851),i=n(39318),r=n(29496);let o={attrs:{url:{default:""},thumbnail_url:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.lichess-wrap",getAttrs:n(78495).t}],toDOM:e=>m(e),toDOMStatic:e=>p(e)},s=(0,r.C)({name:"lichess",nodeSpec:o,addCommands(){return{insertLichess:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),l=/^.*(https?\:\/\/(\S+)?(?:(.?lichess.org\/.*).*)).*$/,c=e=>{let t=l.exec(e);return t&&t[0]},d=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/lichess-embed").query({url:e.trim()})).body},u=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.lichess.create(await d(e))},p=function(e){let{}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=document.createElement("div");t.className="lichess-wrap static",t.setAttribute("data-component-name","LichessToDOMStatic");let n=document.createElement("a");n.href=e.attrs.url.replace(/embed\//,""),n.setAttribute("target","_blank");let a=document.createElement("img");return a.className="lichess-wrap thumbnail",a.src=(0,i.dJ9)(e.attrs.thumbnail_url,640),a.style.backgroundImage="url(".concat(e.attrs.thumbnail_url,")"),e.attrs.belowTheFold&&a.setAttribute("loading","lazy"),n.append(a),t.appendChild(n),t},m=e=>{let t=document.createElement("div");t.id="lichess-iframe",t.className="lichess-wrap outer",t.dataset.attrs=JSON.stringify(e.attrs),t.setAttribute("data-component-name","LichessToDOM");let n=document.createElement("iframe");return n.id="iframe-lichess",n.className="lichess-iframe",n.src=e.attrs.url,n.width="560",n.height="405px",n.frameBorder="0",e.attrs.belowTheFold&&n.setAttribute("loading","lazy"),t.appendChild(n),t};class h{constructor(e){(0,a._)(this,"dom",void 0);const t=m(e),n=t.querySelector(".lichess-iframe"),i=document.createElement("div");i.className="lichess-screen",i.addEventListener("dblclick",()=>{i.classList.add("sunken"),n.focus()}),n.addEventListener("blur",()=>{i.classList.remove("sunken")}),t.appendChild(i),this.dom=t}}},30131:function(e,t,n){n.d(t,{FR:()=>m,c:()=>l,qT:()=>c,yJ:()=>u,zN:()=>h});var a=n(15734),i=n.n(a),r=n(39318),o=n(82776),s=n(29496);let l={attrs:{collection:{default:""},collection_slug:{default:""},creator:{default:""},description:{default:""},image_url:{default:""},name:{default:""},animation_url:{default:""},nft_logo_url:{default:""},permalink:{default:""},youtube_url:{default:null},belowTheFold:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.opensea",getAttrs:n(78495).t}],toDOMStatic:function(e){let t=document.createElement("div");t.className="opensea static",t.setAttribute("data-component-name","OpenseaToDOMStatic");let n=document.createElement("table");n.className="opensea-header-table";let a=document.createElement("tr");a.className="opensea-header-row";let i=document.createElement("tr"),s=document.createElement("td"),l=document.createElement("a");l.className="opensea-title",e.attrs.permalink&&l.setAttribute("href",e.attrs.permalink),l.textContent=e.attrs.name,s.appendChild(l),i.appendChild(l);let c=document.createElement("tr"),d=document.createElement("td"),u=document.createElement("a");u.className="opensea-collection",e.attrs.collection_slug&&u.setAttribute("href","https://opensea.io/collection/".concat(e.attrs.collection_slug)),u.textContent=(0,o.truncateText)(e.attrs.collection,50),d.appendChild(u),c.appendChild(d);let p=document.createElement("td"),m=document.createElement("table");p.className="opensea-masthead",m.appendChild(i),m.appendChild(c),p.appendChild(m);let h=document.createElement("td");h.className="nft-logo";let g=document.createElement("a"),_=document.createElement("img");e.attrs.nft_logo_url&&_.setAttribute("src",(0,r.dJ9)(e.attrs.nft_logo_url)),e.attrs.permalink&&g.setAttribute("href",e.attrs.permalink),e.attrs.belowTheFold&&g.setAttribute("loading","lazy"),g.appendChild(_),h.appendChild(g),a.appendChild(p),a.appendChild(h),n.appendChild(a);let b=document.createElement("a");e.attrs.permalink&&b.setAttribute("href",e.attrs.permalink);let f=document.createElement("img");f.className="opensea-image",e.attrs.image_url&&f.setAttribute("src",(0,r.dJ9)(e.attrs.image_url,600,{crop:"fill"})),f.setAttribute("alt",e.attrs.name),f.setAttribute("width","500"),e.attrs.belowTheFold&&f.setAttribute("loading","lazy"),b.appendChild(f);let A=document.createElement("table");A.className="opensea-footer-table";let E=document.createElement("tr"),y=document.createElement("td");y.className="opensea-description",y.textContent=(0,o.truncateText)(e.attrs.description,200),E.appendChild(y);let N=document.createElement("tr"),O=document.createElement("td"),v=document.createElement("a");O.className="opensea-creator",e.attrs.creator&&v.setAttribute("href","https://opensea.io/".concat(e.attrs.creator,"?tab=created")),v.textContent="Created by ".concat((0,o.truncateText)(e.attrs.creator,50)),O.appendChild(v),N.appendChild(O);let x=document.createElement("tr"),S=document.createElement("td"),w=document.createElement("a"),I=document.createElement("table"),M=document.createElement("tr"),C=document.createElement("td");return w.className="opensea-cta-link",e.attrs.permalink&&w.setAttribute("href",e.attrs.permalink),I.setAttribute("cellspacing","16"),I.className="opensea-cta-table",C.className="opensea-cta",C.textContent="View on OpenSea",M.appendChild(C),I.appendChild(M),w.appendChild(I),S.appendChild(w),x.appendChild(S),e.attrs.description&&A.appendChild(E),A.appendChild(N),A.appendChild(x),t.appendChild(n),t.appendChild(b),t.appendChild(A),t.querySelectorAll&&Array.prototype.forEach.call(t.querySelectorAll("a"),e=>{e.target="_blank"}),t},toDOM:function(e){let t,n,a=document.createElement("div");a.className="opensea",a.setAttribute("data-component-name","OpenseaToDOM");let i=document.createElement("a");i.className="opensea-title",e.attrs.permalink&&i.setAttribute("href",e.attrs.permalink),i.textContent=e.attrs.name;let s=document.createElement("a");s.className="opensea-collection",e.attrs.collection_slug&&s.setAttribute("href","https://opensea.io/collection/".concat(e.attrs.collection_slug)),s.textContent=(0,o.truncateText)(e.attrs.collection,50);let l=document.createElement("div");l.className="opensea-masthead",l.appendChild(i),l.appendChild(s);let c=document.createElement("a");e.attrs.permalink&&c.setAttribute("href",e.attrs.permalink);let d=document.createElement("img");e.attrs.nft_logo_url&&d.setAttribute("src",(0,r.dJ9)(e.attrs.nft_logo_url)),e.attrs.belowTheFold&&d.setAttribute("loading","lazy"),c.appendChild(d);let u=document.createElement("div");u.className="opensea-header",u.appendChild(l),u.appendChild(c);let p=document.createElement("a");e.attrs.permalink&&p.setAttribute("href",e.attrs.permalink),p.className="opensea-media-link";let m=["mp3","wav","oga"].some(t=>{var n;return null==(n=e.attrs.animation_url)?void 0:n.endsWith(t)}),h=["gltf","glb","webm","mp4","m4v","ogv","ogg"].some(t=>{var n;return null==(n=e.attrs.animation_url)?void 0:n.endsWith(t)}),g=!e.attrs.animation_url,_=e.attrs.animation_url&&!m&&!h;(g||m||_||e.attrs.youtube_url)&&((n=document.createElement("img")).className="opensea-image",e.attrs.image_url&&n.setAttribute("src",(0,r.dJ9)(e.attrs.image_url,600,{crop:"fill"})),e.attrs.belowTheFold&&n.setAttribute("loading","lazy"),n.setAttribute("alt",e.attrs.name),p.appendChild(n)),(m||h)&&((t=document.createElement(m?"audio":"video")).className="opensea-player",t.setAttribute("controls",!0),t.setAttribute("loop",!0),t.setAttribute("src",e.attrs.animation_url),t.setAttribute("alt","OpenSea NFT media"),e.attrs.belowTheFold&&t.setAttribute("loading","lazy")),n&&p.appendChild(n),t&&p.appendChild(t);let b=document.createElement("div");b.className="opensea-description",b.textContent=(0,o.truncateText)(e.attrs.description,200);let f=document.createElement("a");f.className="opensea-creator",e.attrs.creator&&f.setAttribute("href","https://opensea.io/".concat(e.attrs.creator,"?tab=created")),f.textContent="Created by ".concat((0,o.truncateText)(e.attrs.creator,50));let A=document.createElement("a");A.className="opensea-cta",e.attrs.permalink&&A.setAttribute("href",e.attrs.permalink),A.textContent="View on OpenSea";let E=document.createElement("div");return E.className="opensea-footer",e.attrs.description&&E.appendChild(b),E.appendChild(f),E.appendChild(A),a.appendChild(u),a.appendChild(p),a.appendChild(E),a.querySelectorAll&&Array.prototype.forEach.call(a.querySelectorAll("a"),e=>{e.target="_blank"}),a}},c=(0,s.C)({name:"opensea",nodeSpec:l,addCommands(){return{insertOpensea:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),d=async e=>{var t,n,a,o,s,l;return(await i().get("/api/v1/opensea").query({contract:null==(a=(0,r.Dlv)(e))||null==(n=a.pathname.match(/assets\/(ethereum\/)?(.+)/))||null==(t=n[2])?void 0:t.split("/")[0],token_id:null==(l=(0,r.Dlv)(e))||null==(s=l.pathname.match(/assets\/(ethereum\/)?(.+)/))||null==(o=s[2])?void 0:o.split("/")[1]})).body},u=async(e,t)=>{let{customSchema:n}=t;return n.nodes.opensea.create(await d(e))},p=/^https:\/\/opensea.io\/assets\/.+/,m=e=>{let t=p.exec(e);return t&&t[0]},h=e=>null!==m(e)},41298:function(e,t,n){n.d(t,{DI:()=>_,FL:()=>p,c:()=>u,sF:()=>h});var a=n(50172),i=n(73653),r=n(93946),o=n(39318),s=n(82061),l=n(29496),c=n(78495);let d="pinterest-embed",u={attrs:{url:{default:""},thumbnail_url:{default:""},title:{default:""},author_name:{default:""},author_url:{default:""},belowTheFold:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.pinterest-embed-wrap",getAttrs:c.t}],toDOM:e=>f(e),toDOMStatic:e=>b(e)},p=(0,l.C)({name:"pinterest",nodeSpec:u,addCommands(){return{insertPinterest:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),m=/^https?:\/\/(?:(?:www\.)?pinterest\.com\/(?:pin\/[^/]+|[^/]+\/[^/]+)|pin\.it\/[^/]+)\/?.*$/,h=e=>{let t=m.exec(e);return t&&t[0]},g=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/pinterest-embed").query({url:e.trim()})).body},_=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema;if(!a.nodes.pinterest)throw Error("Pinterest node type not found in schema");return a.nodes.pinterest.create(await g(e))},b=e=>{let t=e.attrs.url||"",n=350,a=350,i=350,r=350;return e.attrs.thumbnail_url?e.attrs.width&&e.attrs.height?(n=e.attrs.width,r=Math.round((a=e.attrs.height)*(i=Math.min(n,o.oSl))/n),["table",{className:"image-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"PinterestToDOMStatic"},["tr",{},["td",{}],["td",{align:"left",className:"content",width:String(i)},["a",{className:"image-link",target:"_blank",href:t},["img",{"data-attrs":JSON.stringify(e.attrs),alt:e.attrs.title||"Pinterest Pin",title:e.attrs.title||"Pinterest Pin",width:String(i),height:String(r),className:n>o.oSl?"wide-image":"",src:(0,o.dJ9)(e.attrs.thumbnail_url,2*Math.min(n,o.oSl)),loading:e.attrs.belowTheFold?"lazy":null}]]],["td",{}]],["tr",{},["td",{}],["td",{align:"center"},["figcaption",{className:"image-caption",style:"box-sizing: content-box;color: #777777;font-size: 14px;line-height: 20px;font-weight: 400;letter-spacing: -.15px;margin-top: 8px;width: 70%;padding-left: 15%;padding-right: 15%;text-align: center;"},["a",{href:e.attrs.url||"#",target:"_blank",style:"color: inherit; text-decoration: none;"},e.attrs.title||"View on Pinterest"]]],["td",{}]]]):["table",{className:"image-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"PinterestToDOMStatic"},["tr",{},["td",{}],["td",{align:"left",className:"content",width:String(350)},["a",{className:"image-link",target:"_blank",href:t},["img",{"data-attrs":JSON.stringify(e.attrs),alt:e.attrs.title||"Pinterest Pin",title:e.attrs.title||"Pinterest Pin",src:(0,o.dJ9)(e.attrs.thumbnail_url,2*o.oSl),loading:e.attrs.belowTheFold?"lazy":null}]]],["td",{}]],["tr",{},["td",{}],["td",{align:"center"},["figcaption",{class:"image-caption",style:"box-sizing: content-box;color: #777777;font-size: 14px;line-height: 20px;font-weight: 400;letter-spacing: -.15px;margin-top: 8px;width: 70%;padding-left: 15%;padding-right: 15%;text-align: center;"},["a",{href:e.attrs.url||"#",target:"_blank",style:"color: inherit; text-decoration: none;"},e.attrs.title||"View on Pinterest"]]],["td",{}]]]:["table",{className:"image-wrapper pinterest-text-wrapper",width:"100%",border:"0",cellSpacing:"0",cellPadding:"0","data-component-name":"PinterestToDOMStatic"},["tr",{},["td",{}],["td",{align:"left",className:"content",width:String(350)},["a",{className:"image-link pinterest-text-link",target:"_blank",href:t},["div",{className:"pinterest-fallback-text",style:"padding: 10px; border: 1px solid #e8e8e8; border-radius: 4px; text-align: center;"},["div",{className:"pinterest-identifier",style:"font-weight: bold; margin-bottom: 5px;"},"Pinterest"],["span",{style:"display: block;"},["a",{href:e.attrs.url||"#",target:"_blank",style:"color: inherit; text-decoration: none;"},e.attrs.title||"View on Pinterest"]],e.attrs.author_name?["span",{className:"pinterest-author",style:"display: block; margin-top: 8px; font-size: 0.9em; color: #666;"},"By ".concat(e.attrs.author_name)]:null]]],["td",{}]]]},f=e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.className=d,t.setAttribute("data-component-name","PinterestNodeWrapper"),(0,r.Mv)((0,a.h)(i.L,{attrs:e.attrs}),t),t}catch(t){return console.error("Error rendering PinterestNode:",t),(0,s.D)({msg:"Error rendering Pinterest embed",node:e,err:t,group:"block"})}let t=document.createElement("div");t.className="".concat(d," pinterest-ssr-fallback"),t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.setAttribute("data-component-name","PinterestToDOMPreact");let n=document.createElement("p");return n.textContent="Loading Pinterest Pin...",t.appendChild(n),t}},60440:function(e,t,n){n.d(t,{LL:()=>m,c:()=>p,hI:()=>g});var a=n(50172),i=n(65113),r=n(93946),o=n(46754),s=n(39318),l=n(82061),c=n(29496),d=n(78495);let u="polymarket-embed",p={attrs:{eventSlug:{default:""},marketSlug:{default:""},profileName:{default:""},belowTheFold:{default:!1},fullEmbedUrl:{default:""},isGraphMode:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.".concat(u),getAttrs:d.t}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.className=u,t.setAttribute("data-component-name","PolymarketNodeWrapper"),(0,r.Mv)((0,a.h)(i.t,{attrs:e.attrs}),t),t}catch(t){return console.error("Error rendering PolymarketNode:",t),(0,l.D)({msg:"Error rendering Polymarket embed",node:e,err:t,group:"block"})}return["div",{class:u,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"PolymarketToDOM"}]},toDOMStatic:e=>_(e)},m=(0,c.C)({name:"polymarket",nodeSpec:p,addCommands(){return{insertPolymarket:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),h=async e=>{let t=(0,o.RP)(e);if(!t)throw Error("Invalid Polymarket URL");return t},g=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.polymarket.create(await h(e))},_=function(e){let t,n,a,{}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.createElement("div");if(i.className="polymarket-wrap static",i.setAttribute("data-component-name","PolymarketToDOMStatic"),e.attrs.profileName){let i=Math.floor(new Date().getTime()/6e4);t="".concat((0,s.$_T)(),"/api/v1/polymarket-embed-image/profile/").concat(e.attrs.profileName,"?timestamp=").concat(i),n="".concat((0,s.$_T)(),"/polymarket/link/profile/").concat(e.attrs.profileName,"?click_target=email"),a="Polymarket profile"}else{let i=Math.floor(new Date().getTime()/6e4);t="".concat((0,s.$_T)(),"/api/v1/polymarket-embed-image/").concat(e.attrs.eventSlug).concat(e.attrs.marketSlug?"/".concat(e.attrs.marketSlug):"","?timestamp=").concat(i).concat(e.attrs.isGraphMode?"&graphMode=true":""),n="".concat((0,s.$_T)(),"/polymarket/link/").concat(e.attrs.eventSlug).concat(e.attrs.marketSlug?"/".concat(e.attrs.marketSlug):"","?click_target=email"),a="Polymarket prediction market"}let r=document.createElement("p"),o=document.createElement("a");o.href=n,o.target="_blank";let l=document.createElement("img");return l.className="polymarket-image",l.src=(0,s.dJ9)(t,800),l.width=400,l.height=120,l.alt=a,o.appendChild(l),r.appendChild(o),i.appendChild(r),i}},41758:function(e,t,n){n.d(t,{Iu:()=>s,J7:()=>d,c:()=>o,hG:()=>g,i1:()=>p,ny:()=>l});var a=n(99851),i=n(39318),r=n(29496);let o={attrs:{url:{default:""},thumbnail_url:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.prediction-market-wrap",getAttrs:n(78495).t}],toDOM:e=>h(e),toDOMStatic:e=>m(e)},s=(0,r.C)({name:"prediction_market",nodeSpec:o,addCommands(){return{insertPredictionMarket:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),l=(0,r.C)({name:"manifold",nodeSpec:o}),c=/^.*(https?:\/\/(\S+)?(?:(.?manifold\.markets|metaculus\.com\/questions\/.*\/|polymarket\.com\/event\/[^\/]+(\/[^\/]+)?))).*$/,d=e=>{let t=c.exec(e);return t&&t[0]},u=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/prediction-embed").query({url:e.trim()})).body},p=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.prediction_market.create(await u(e))},m=function(e){let{}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=document.createElement("div");t.className="prediction-market-wrap static",t.setAttribute("data-component-name","PredictionMarketToDOMStatic");let n=document.createElement("a");n.href=e.attrs.url.replace(/embed\//,""),n.setAttribute("target","_blank");let a=document.createElement("img");return a.className="prediction-market thumbnail",a.src=(0,i.dJ9)(e.attrs.thumbnail_url,640),a.style.backgroundImage="url(".concat(e.attrs.thumbnail_url,")"),e.attrs.belowTheFold&&a.setAttribute("loading","lazy"),n.append(a),t.appendChild(n),t},h=e=>{let t=document.createElement("div"),n=e.attrs.url.includes("polymarket");t.id="prediction-market-iframe",t.className="prediction-market-wrap outer",t.dataset.attrs=JSON.stringify(e.attrs),t.setAttribute("data-component-name","PredictionMarketToDOM");let a=document.createElement("iframe");return a.id="iframe-prediction-market",a.className="prediction-market-iframe",a.src=e.attrs.url,a.width=n?"400px":"560px",a.height=n?"180px":"405px",a.frameBorder="0",e.attrs.belowTheFold&&a.setAttribute("loading","lazy"),t.appendChild(a),t};class g{constructor(e){(0,a._)(this,"dom",void 0);const t=h(e),n=t.querySelector(".prediction-market-iframe"),i=document.createElement("div");i.className="prediction-market-screen",i.addEventListener("dblclick",()=>{i.classList.add("sunken"),n.focus()}),n.addEventListener("blur",()=>{i.classList.remove("sunken")}),t.appendChild(i),this.dom=t}}},75594:function(e,t,n){n.d(t,{AF:()=>c,RX:()=>l,c:()=>s,d1:()=>u});var a=n(69277),i=n(39318),r=n(91809),o=n(29496);let s={attrs:{url:{default:""},title:{default:""},description:{default:""},thumbnail_url:{default:""},author_name:{default:""},author_url:{default:""},targetUrl:{default:""}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.soundcloud-wrap",getAttrs:n(78495).t}],toDOM:e=>["div",{class:"soundcloud-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"SoundcloudToDOM"},["iframe",{src:(0,i.oRR)("https://w.soundcloud.com/player/?auto_play=false&buying=false&liking=false&download=false&sharing=false&show_artwork=true&show_comments=false&show_playcount=false&show_user=true&hide_related=true&visual=false&start_track=0",{url:e.attrs.url}),frameborder:"0",gesture:"media",scrolling:"no",allowfullscreen:"true"}]],toDOMStatic:e=>{let{thumbnail_url:t,author_name:n,title:a,targetUrl:i}=e.attrs;return(0,r.e)(t,a,n,null,{targetUrl:i})}},l=(0,o.C)({name:"soundcloud",nodeSpec:s,addCommands(){return{insertSoundcloud:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),c=function(e){var t;let{customSchema:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&!n.nodes.soundcloud)return null;let a=/^.*(https?\:\/\/(www\.)?soundcloud.com\/[^\/]+\/[^\/]+(\/[^\/]+)?(\?[\#]*)?(\#.*)?).*$/.exec(e);return null!=(t=a&&a[1])?t:null},d=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default,i=(await t.get("/api/v1/soundcloud").query({url:e.trim()})).body;return(0,a._)({targetUrl:e.trim()},i)},u=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.soundcloud.create(await d(e))}},84262:function(e,t,n){n.d(t,{Xs:()=>c,c:()=>r,hJ:()=>o,mc:()=>s});var a=n(91809),i=n(29496);let r={attrs:{image:{default:""},title:{default:""},subtitle:{default:""},description:{default:""},url:{default:""},belowTheFold:{default:!1},noScroll:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"iframe.spotify-wrap",getAttrs:n(78495).t}],toDOM:e=>{let t="spotify-wrap",n=d(e.attrs.url).params;return(null==n?void 0:n.show)||(null==n?void 0:n.episode)?t+=" podcast":(null==n?void 0:n.playlist)?t+=" playlist":(null==n?void 0:n.album)?t+=" album":(null==n?void 0:n.artist)&&(t+=" artist"),["iframe",{class:t,"data-attrs":JSON.stringify(e.attrs),src:u(e.attrs.url),frameborder:"0",gesture:"media",allowfullscreen:"true",allow:"encrypted-media",loading:e.attrs.belowTheFold?"lazy":null,"data-component-name":"Spotify2ToDOM",scrolling:e.attrs.noScroll?"no":null}]},toDOMStatic:e=>{let{image:t,title:n,subtitle:i,description:r,url:o}=e.attrs;return(0,a.e)(t,n,i,r,{targetUrl:o})}},o=(0,i.C)({name:"spotify2",nodeSpec:r,addCommands(){return{insertSpotify:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),s=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&!t.nodes.spotify2?null:d(e).url},l=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/spotify").query({url:e})).body},c=async(e,t)=>{let{customSchema:n}=t;return n.nodes.spotify2.create(await l(e))},d=e=>{var t,n,a,i;if(null==e?void 0:e.includes("anchor.fm")){let a=/((?:https?:\/\/(?:www\.)?anchor\.fm\/(?:embed\/)?|anchor:)([^"'\s\b?#()]*))/.exec(e);if(a)return{params:{show:"podcast"},url:null!=(t=a[1])?t:null,base:null!=(n=a[2])?n:null,platform:"anchor"}}let r=/((?:https?:\/\/(open|podcasters)\.spotify\.com\/(?:embed\/)?|spotify:)([^"'\s\b?#()]*)(?:[?#][\S]*)?)/.exec(e);if(!r)return{params:null,url:null,base:null,platform:null};let o=r[3].split(/[/:]/),s={};for(let e=1;e{let{params:t,base:n,platform:a}=d(e),i=[];if(t){if("anchor"===a)return"https://anchor.fm/".concat(n);if("open"===n)t.user&&t.playlist?i.push("user",t.user,"playlist",t.playlist):t.playlist?i.push("playlist",t.playlist):t.album?i.push("album",t.album):t.track?i.push("track",t.track):t.artist?i.push("artist",t.artist):t.show?i.push("show",t.show):t.pod?i.push("pod",t.pod):(t.episode||t.episodes)&&i.push("episode",t.episode||t.episodes);else for(let[e,n]of Object.entries(t))n&&(i.push(e),i.push(n));return"https://".concat(n,".spotify.com/").concat("open"===n?"embed":"","/").concat(i.join("/"))}}},14304:function(e,t,n){n.d(t,{S$:()=>d,c:()=>s,e1:()=>_,z7:()=>p,zh:()=>l});var a=n(99851),i=n(98111),r=n(39318),o=n(29496);let s={attrs:{url:{default:""},title:{default:""},thumbnail_url:{default:""},author:{default:""},embed_url:{default:""},author_url:{default:""},belowTheFold:{default:!1}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDom:[{tag:"div.tiktok-wrap",getAttrs:n(78495).t}],toDOM:e=>g(e),toDOMStatic:e=>h(e)},l=(0,o.C)({name:"tiktok",nodeSpec:s,addCommands(){return{insertTiktok:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),c=/^.*(https?\:\/\/(\S+)?(?:vt.tiktok.com\/|(.?tiktok.com\/.*\/video\/).*)).*$/,d=e=>{let t=c.exec(e);return t&&t[0]},u=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/tiktok").query({url:e.trim()})).body},p=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.tiktok.create(await u(e))},m=e=>"tiktok-".concat(null==e?void 0:e.split("/").slice(-1)[0]),h=function(e){var t,n,a,o;let{useTikTokUrl:s=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=document.createElement("div");l.className="tiktok-wrap static",l.setAttribute("data-component-name","TikTokCreateStaticTikTokEmbed");let c="".concat(s?e.attrs.url:"".concat(i.T.POST_URL,"/#tiktok-").concat(null==(t=e.attrs.embed_url)?void 0:t.split("/").slice(-1)[0])),d=document.createElement("a");d.href=c,d.setAttribute("target","_blank");let u=document.createElement("img");u.className="tiktok thumbnail",u.src=(0,r.dJ9)(e.attrs.thumbnail_url,640),u.style.backgroundImage="url(".concat((0,r.dJ9)(e.attrs.thumbnail_url),")"),e.attrs.belowTheFold&&u.setAttribute("loading","lazy"),d.append(u);let p=document.createElement("div");p.classList.add("content");let m=document.createElement("a");m.classList.add("author"),m.href=e.attrs.author_url,m.setAttribute("target","_blank"),m.appendChild(document.createTextNode((null==(o=e.attrs.author_url)||null==(a=o.split)||null==(n=a.call(o,"/").slice(-1))?void 0:n[0])||e.attrs.author));let h=document.createElement("a");return h.classList.add("title"),h.href=c,h.setAttribute("target","_blank"),h.appendChild(document.createTextNode(e.attrs.title)),p.appendChild(m),p.appendChild(h),l.appendChild(d),l.appendChild(p),l},g=e=>{var t;let n=e.attrs.embed_url,a=document.createElement("div");a.id=m(n),a.className="tiktok-wrap outer",a.dataset.attrs=JSON.stringify(e.attrs),a.setAttribute("data-component-name","TikTokCreateTikTokEmbed");let i=document.createElement("iframe");i.id="iframe-".concat(m(n)),i.className="tiktok-iframe",i.src=n,i.frameBorder="0",null==(t=i.setAttribute)||t.call(i,"allow","autoplay; fullscreen; encrypted-media"),i.allowFullscreen="true",i.allowautoplay="true",i.allowfullscreen="true",i.scrolling="no",e.attrs.belowTheFold&&i.setAttribute("loading","lazy"),a.appendChild(i);let o=document.createElement("iframe");o.src="proxy.php?url=https://team-hosted-public.s3.amazonaws.com/set-then-check-cookie.html",o.id="third-party-iframe-".concat(m(n)),o.className="third-party-cookie-check-iframe",o.style.display="none",e.attrs.belowTheFold&&o.setAttribute("loading","lazy"),a.append(o);let s=h(e,{useTikTokUrl:!0});a.appendChild(s);let l=document.createElement("div");l.classList.add("fallback-failure"),l.id="fallback-failure-".concat(m(n));let c=document.createElement("div");c.classList.add("error-content");let d=document.createElement("img");return d.classList.add("error-icon"),d.src=(0,r.oOP)("/img/alert-circle.svg"),e.attrs.belowTheFold&&d.setAttribute("loading","lazy"),c.appendChild(d),c.appendChild(document.createTextNode("Tiktok failed to load.")),c.appendChild(document.createElement("br")),c.appendChild(document.createElement("br")),c.appendChild(document.createTextNode("Enable 3rd party cookies or use another browser")),l.appendChild(c),a.appendChild(l),a};class _{constructor(e){(0,a._)(this,"dom",void 0);const t=g(e),n=t.querySelector(".tiktok-iframe"),i=document.createElement("div");i.className="tiktok-screen";const r=document.createElement("h1");r.className="instructions",r.innerText="Double click to interact",i.appendChild(r),i.addEventListener("dblclick",()=>{i.classList.add("sunken"),n.focus()}),n.addEventListener("blur",()=>{i.classList.remove("sunken")}),t.appendChild(i),this.dom=t}}},13625:function(e,t,n){n.d(t,{GW:()=>b,c:()=>m,eC:()=>h,hq:()=>g});var a=n(69277),i=n(50172),r=n(99595),o=n(93946),s=n(50395),l=n(78622),c=n(82061),d=n(29496),u=n(78495);let p="twitter-embed",m={attrs:{url:{default:""},full_text:{default:""},username:{default:""},name:{default:""},profile_image_url:{default:""},date:{default:""},photos:{default:[]},quoted_tweet:{default:{}},reply_count:{default:0},retweet_count:{default:0},like_count:{default:0},impression_count:{default:0},expanded_url:{default:null},video_url:{default:null},belowTheFold:{default:!1}},untrackedAttrs:["full_text","photos","quoted_tweet","expanded_url","reply_count","retweet_count","like_count","impression_count","video_url"],inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.twitter-embed",getAttrs:u.t}],toDOM:e=>{if("undefined"!=typeof window)try{let t=document.createElement("div");return t.setAttribute("data-attrs",JSON.stringify(e.attrs)),t.setAttribute("data-component-name","Twitter2ToDOM"),t.className=p,(0,o.Mv)((0,i.h)(l.K,{attrs:e.attrs}),t),t}catch(t){return console.error("Error rendering TweetNode",t),(0,c.D)({msg:null,node:e,err:t,group:"block"})}return["div",{class:p,"data-attrs":JSON.stringify(e.attrs),"data-component-name":"Twitter2ToDOM"}]},toDOMStatic:e=>["table",{class:"".concat(p," static"),"data-attrs":JSON.stringify((0,a._)({isEmail:!0},e.attrs)),"data-component-name":"TweetToDOMStatic"}],addNodeView:()=>(0,r.gu)(s.V)},h=(0,d.C)({name:"twitter2",nodeSpec:m,addCommands(){return{insertTwitter:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),g=function(e){var t;let{customSchema:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&!n.nodes.twitter2)return null;let a=/(https?:\/\/(mobile\.twitter\.com|twitter\.com|t\.co|x\.com)\/.*\/status\/[^\/\s]*)/.exec(e);return null!=(t=a&&a[1])?t:null},_=async e=>{let t=(await Promise.resolve().then(n.t.bind(n,15734,23))).default;return(await t.get("/api/v1/tweet").query({url:e})).body},b=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema.nodes.twitter2.create(await _(e))}},60597:function(e,t,n){function a(e){let{fragment:t}=e;return"content"in t?t.content:[]}function i(e){let{fragment:t,content:n}=e;t.content=n}function r(e){return"type"in e&&"object"==typeof e.type}function o(e){return"type"in e&&"string"==typeof e.type}n.d(t,{M5:()=>o,p0:()=>a,rQ:()=>r,x6:()=>i})},55714:function(e,t,n){n.d(t,{Ao:()=>B,DL:()=>V,EI:()=>b,JK:()=>T,Ll:()=>q,Lz:()=>I,OB:()=>L,Q7:()=>Y,Rv:()=>g.Rv,Te:()=>N,WS:()=>H,Z3:()=>z,cy:()=>y,f$:()=>P,fD:()=>G,fE:()=>M,jE:()=>g.jE,jp:()=>j,m0:()=>k,n:()=>A,rl:()=>_,zM:()=>E,zl:()=>R});var a=n(69277),i=n(70408),r=n(26469);n(83673);var o=n(69843),s=n.n(o),l=n(31521),c=n.n(l),d=n(17460),u=n(28700),p=n(82776),m=n(82061),h=n(90032),g=n(79207);let _=[["list_item","listItem"],["bullet_list","bulletList"],["ordered_list","orderedList"],["hard_break","hardBreak"],["horizontal_rule","horizontalRule"],["code_block","codeBlock"]],b=[["em","italic"],["strong","bold"],["strikethrough","strike"]],f={image2:1,image:0,horizontal_rule:0,audio:0,video:0,youtube:0,youtube2:0,vimeo:0,opensea:0,twitter:0,twitter2:0,spotify:0,spotify2:0,soundcloud:0,bandcamp:0,kindle:0,tiktok:0,polymarket:0,prediction_market:0,lichess:0,datawrapper:0,recipe:0,pinterest:0},A=function(e){let{maxLength:t=356,getAfterCutoff:n=!1,withEllipsis:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i="",r=!1,o={},s=q(e),l=!1,c=(0,h.c)(e,e=>{var a;if(r)return n;if("paywall"===e.type)return r=!0,!1;if(s)return!0;let c=null!=(a=e.type)?a:"undefined";if(o[c]=(o[c]||0)+1,e.type&&e.type in f&&o[c]>f[e.type])return r=!0,n;let d=t-i.length;if(d<=0&&!s||!(d>0))return n;if(n){if("text"===e.type&&e.text){if(!(t-(i+=e.text).length<=0))return!1;e.text=e.text.substring(e.text.length+t-i.length-1,e.text.length)}}else if("text"===e.type&&e.text){i+=e.text;let t=e.text;e.text=(0,p.truncateText)(t,d),l=t!==e.text}return!0});if(c&&a&&!l){let e=function(e){let t=[],n=[e];for(;n.length;){var a;let e=n.pop();if(!e)break;if(e.content&&(null==(a=e.content)?void 0:a.length)>0)for(let t=e.content.length-1;t>=0;t--){let a=e.content[t];a&&n.push(a)}else t.push(e)}return t}(c),t=null,n=null;for(let a=e.length-1;a>=0&&(!t||!n);a--){let i=e[a];null===t&&(null==i?void 0:i.type)==="text"&&(t=a),null===n&&(null==i?void 0:i.type)!=="text"&&(null==i?void 0:i.type)!=="paragraph"&&(n=a)}let a=null!==t?e[t]:null,i=a&&null!==n&&null!==t&&n>t;a&&!i&&(a.text=C(a.text))}return c},E=(e,t)=>{let n=[];if(e&&(t(e)&&n.push(e),e.content))for(let a of e.content)n=n.concat(E(a,t));return n},y=(e,t)=>{if(e){if(t(e))return e;if(e.content)for(let n of e.content){let e=y(n,t);if(e)return e}}return null},N=e=>{let t=[];return e.nodesBetween(0,e.content.size,e=>{var n;(null==(n=e.type)?void 0:n.name)==="cashtag"&&t.push(e.attrs.symbol)},0),t},O=new Set(["caption","footnote","captionedImage","image","image2"]),v=new Set(["bullet_list","bulletList","ordered_list","orderedList","blockquote"]),x="x_li_start_placeholder_x",S=(e,t)=>{var n,a,i,r;if((null==(n=e.type)?void 0:n.name)==="list_item"||(null==(a=e.type)?void 0:a.name)==="listItem")return{open:x,close:""};if((null==(i=e.type)?void 0:i.name)==="paragraph"||e.isBlock&&e.textContent.length>0&&!v.has(null==(r=e.type)?void 0:r.name)){let e="

";return(t.length>0?t[t.length-1]:null)===x&&(t.pop(),e+="* "),{open:e,close:"

"}}return null},w=e=>{var t,n,a;let{node:i,recursiveDepth:r,tokens:o}=e;if(r>100)return console.warn("Reached max recursive depth while converting document to HTML for podcast"),!1;let s=!0;if(O.has(null==(t=i.type)?void 0:t.name))s=!1;else if(i.isText){if(i.text&&i.text.length>0){let e=i.marks.find(e=>"link"===e.type.name&&e.attrs.href&&"string"==typeof e.attrs.href),t=i.marks.find(e=>"em"===e.type.name),n=i.marks.find(e=>"strong"===e.type.name),a=i.text;t&&(a="".concat(a,"")),n&&(a="".concat(a,"")),e&&(a='').concat(a,"")),o.push(a)}}else if(S(i,[])){let e=S(i,o);e&&o.push(e.open),i.descendants(e=>w({node:e,recursiveDepth:r+1,tokens:o})),e&&o.push(e.close),s=!1}else if((null==(n=i.type)?void 0:n.name)==="cashtag")o.push("".concat(i.attrs.symbol," "));else if((null==(a=i.type)?void 0:a.name)==="substack_mentions"){let e=i.marks.find(e=>"em"===e.type.name),t=i.marks.find(e=>"strong"===e.type.name),n=i.attrs.name;if(e&&(n="".concat(n,"")),t&&(n="".concat(n,"")),"user"===i.attrs.type){let e=(0,u.rf)(i.attrs.id,i.attrs.name);o.push('').concat(n,""))}else if("pub"===i.attrs.type){let e=i.attrs.url;o.push('').concat(n,""))}}return s},I=e=>{let t=[];return e.descendants(e=>w({node:e,recursiveDepth:1,tokens:t})),t.filter(e=>e!==x).join("").trim()},M=function(e){let{withLinks:t=!0,withCaptionsAndFootnotes:n=!1,withQuotes:a=!0,forPodcast:i=!1,truncateAt:r=null,truncateTo:o=r,truncateEllipsis:l="…",truncateExtension:c=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u="",m="",h="",g=!0;return e.nodesBetween(0,e.content.size,e=>{var r,_,b,f,A,E,y;if(!n&&["caption","footnote"].includes(null==(r=e.type)?void 0:r.name)||!a&&((null==(_=e.type)?void 0:_.name)==="pullquote"||(null==(b=e.type)?void 0:b.name)==="blockquote"||(null==(f=e.type)?void 0:f.name)==="calloutBlock"))return!1;if(e.isText){if(e.text&&e.text.length>0){let n;g=!1,!s()(o)&&u.length=o&&(n=(0,p.truncateText)(e.text,o-u.length,{ellipsis:l,extension:c}));let a=e.marks.filter(e=>"link"===e.type.name&&e.attrs.href)[0],r=e.marks.filter(e=>"em"===e.type.name)[0],_=e.marks.filter(e=>"strong"===e.type.name)[0],b=e.text;u+=b,r&&i&&(n&&(n="".concat(n,"")),b="".concat(b,"")),_&&i&&(n&&(n="".concat(n,"")),b="".concat(b,"")),a&&t?i?(n&&(h="".concat(m,'').concat(n,"")),m+='').concat(b,"")):(n&&(h="".concat(m).concat(n," [ ").concat(a.attrs.href," ]")),m+="".concat(b," [ ").concat(a.attrs.href," ]")):(n&&(h=m+n),m+=b)}}else!g&&["hard_break","hardBreak"].includes(null==(A=e.type)?void 0:A.name)?(g=!0,u+="\n",i?m+="
":m+="\n"):!g&&e.isBlock?(g=!0,u+="\n",i?m+="

":m+="\n"):(null==(E=e.type)?void 0:E.name)==="cashtag"?m+="".concat(e.attrs.symbol," "):(null==(y=e.type)?void 0:y.name)==="substack_mentions"&&(m+="".concat(e.attrs.name," "))},0),!s()(r)&&u.length>r&&h&&(m=h),m=m.trim(),i&&(m=m.replace(/\s*()+$/,"").trim()),m},C=e=>"".concat(c()(e,"."),"..."),k=(e,t)=>(0,i._)((0,a._)({name:e},t),{addAttributes:()=>t.attrs||{},parseHTML:()=>t.parseDOM,renderHTML(n){let{node:a}=n;if(!t.toDOM)return console.warn("trying to create TipTapNode, no toDOM found for node",e),["span"];try{return t.toDOM(a)}catch(t){try{return console.error("error in toDOM for node",e,t),(0,m.D)({msg:null,node:a,err:t,group:a.isInline?"inline":"block"})}catch(t){return console.error("error rendering error element for node",e,t),(null==a?void 0:a.isInline)?["span"]:["div"]}}}}),j=(e,t)=>{let n,a,i;if(e.doc.nodesBetween(e.selection.from,e.selection.to,(e,r)=>{if(n||a)return!1;let o=e.marks.find(e=>e.type===t);o&&(n=e,a=o,i={from:r,to:r+e.nodeSize})}),n)return{node:n,mark:a,pos:i}},L=(e,t)=>{let n,a,i;if(e.doc.nodesBetween(e.selection.from,e.selection.to,(r,o)=>{if(n||a||!(o<=e.selection.from)||!(e.selection.to<=o+r.nodeSize))return!1;{let e=r.marks.find(e=>e.type===t);e&&(n=r,a=e,i={from:o,to:o+r.nodeSize})}}),!n){if(e.selection.empty){let s=e.doc.resolve(e.selection.from),l=s.nodeBefore&&s.nodeBefore.marks.find(e=>e.type===t),c=s.nodeAfter&&s.nodeAfter.marks.find(e=>e.type===t);if(l||c){var r,o;n=c?s.nodeAfter:s.nodeBefore,a=c||l,i=c?{from:s.pos,to:s.pos+s.nodeAfter.nodeSize}:{from:s.pos-(null!=(o=null==(r=s.nodeBefore)?void 0:r.nodeSize)?o:0),to:s.pos}}}if(!n)return}return{node:n,mark:a,pos:i}},R=function(e){let{allowedMarks:t=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e.selection.empty||T(e,e.selection.from,e.selection.to,{allowedMarks:t})},T=function(e,t,n){let{allowedMarks:a=[]}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!0,r=!1;return e.doc.nodesBetween(t,n,t=>{if(!i)return!1;t.type!==e.schema.nodes.text?r?i=!1:r=!0:t.marks.find(e=>!a.includes(e.type))&&(i=!1)}),i},P=(e,t)=>{if(e.selection.empty)return!1;let n=Array.isArray(t)?t:[t];if("node"in e.selection){var a;let t=e.selection;return n.includes(null==(a=t.node)?void 0:a.type)}return D(e,e.selection.from,e.selection.to,n)},D=(e,t,n,a)=>{let i=null;return e.doc.nodesBetween(t,n,e=>{if(!(!1!==i&&a.includes(e.type)))return i=!1,!1;i=!0}),i||!1},B=e=>e.selection.empty?null:U(e,e.selection.from,e.selection.to),U=(e,t,n)=>{let a=null;return e.doc.nodesBetween(t,n,t=>!a&&(t.type===e.schema.nodes.image2?(a=t.attrs.href,!1):void(t.type===e.schema.nodes.image3&&(a=t.attrs.href)))),a||null},G=(e,t,n)=>{e.selection.empty||F(e,t,e.selection.from,e.selection.to,n)},F=(e,t,n,a,i)=>{e.doc.nodesBetween(n,a,(n,a)=>{(n.type===e.schema.nodes.image2||n.type===e.schema.nodes.image3)&&t.setNodeMarkup(a,n.type,Object.assign({},n.attrs,{href:i}),n.marks)})},W=e=>({top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}),Y=(e,t,n,a)=>{let i=document.body,r=window.innerWidth<=481,o=K(e,t.from,t.to,t=>[e.state.schema.nodes.image,e.state.schema.nodes.image2].includes(t.type))?-44:8,s=W(e.coordsAtPos(t.from)),l=W(e.coordsAtPos(t.to));n.style.position="fixed";let c=l.bottom+(r?i.scrollTop:0),d=i.clientHeight-n.clientHeight-96-o;s.topn.clientWidth?(a&&(a.style.left="10px"),n.style.right="",n.style.left="".concat(s.left,"px")):(a&&(a.style.left="".concat(s.left-i.clientWidth+n.clientWidth,"px")),n.style.right="10px",n.style.left=""),r||c{let i=!1;return e.state.doc.nodesBetween(t,n,e=>{if(i)return!1;i=a(e)}),i},H=(e,t)=>{var n;return t.includes(null==(n=e.doc.resolve(e.selection.from).node(1))?void 0:n.type)},V=(e,t)=>{var n,a,i;let o=e.tr,s=o.selection instanceof r.U3,l=s&&(null==(i=o.selection.$from)||null==(a=i.parent)||null==(n=a.content)?void 0:n.size)===0?e.selection.to-1:e.selection.to;if(Array.isArray(t))for(let e of t.slice().reverse())o.insert(l,e);else o.insert(l,t);return s||o.setSelection(r.nh.near(o.doc.resolve(l))),o},z=(e,t)=>{let n=e.tr;return n.replaceSelectionWith(t),n},q=e=>!!y(e,e=>"paywall"===e.type)},8221:function(e,t,n){function a(e){let{tr:t,schema:n}=e,a=!1,i=1,r=1;return t.doc.descendants((e,o)=>{if(e.type===n.nodes.footnote){if(e.attrs.number!==i){let r=n.nodes.footnote.create({number:i},e.content);t.replaceWith(o,o+e.nodeSize,r),a=!0}i+=1}else if(e.type===n.nodes.footnoteAnchor){if(e.attrs.number!==r){let i=n.nodes.footnoteAnchor.create({number:r});t.replaceWith(o,o+e.nodeSize,i),a=!0}r+=1}}),a}function i(e){let{tr:t,schema:n}=e,a=0;t.doc.nodesBetween(0,t.selection.from,e=>{e.type===n.nodes.footnoteAnchor&&(a+=1)});let i=[];if(t.doc.forEach((e,t)=>{e.type===n.nodes.footnote&&i.push(t)}),ai,TD:()=>a})},79207:function(e,t,n){n.d(t,{Rv:()=>i,Vw:()=>s,jE:()=>r});var a=n(60597);function i(e,t){let{nodeTypes:n,reverse:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o(e,t,{nodeTypes:n,reverse:a})}function r(e,t){let{nodeTypes:n,reverse:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o(e,t,{nodeTypes:n,reverse:a})}function o(e,t){var n;let{nodeTypes:i,reverse:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!e)return;i&&!Array.isArray(i)&&(i=[i]);let c=!1;if("type"in e&&e.type&&(i?"string"==typeof e.type&&i.includes(e.type)?c=!0:"string"!=typeof e.type&&"name"in e.type&&i.includes(e.type.name)&&(c=!0):c=!0),"type"in e&&c){let n=t(e,l);if(!1===n||n===s)return n}let d=[];if((0,a.M5)(e))Array.isArray(e.content)&&(d=e.content);else if((null==(n=e.content)?void 0:n.childCount)&&e.content.childCount>0)for(let t=0;td,c:()=>r,ou:()=>l,tC:()=>o,zd:()=>c});var a=n(49807),i=n(29496);let r={attrs:{videoId:{default:""},videoKey:{default:""},belowTheFold:{default:!1}},untrackedAttrs:["videoKey"],inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.vimeo-wrap",getAttrs:n(78495).t}],toDOM:e=>{var t;let n=s(e.attrs.videoId,e.attrs.videoKey);return["div",{id:(t=e.attrs.videoId,"vimeo-".concat(t)),class:"vimeo-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"VimeoToDOM"},["div",{class:"vimeo-inner"},["iframe",{src:n,frameborder:"0",gesture:"media",allow:"autoplay; fullscreen",allowautoplay:"true",allowfullscreen:"true",loading:e.attrs.belowTheFold?"lazy":null}]]]},toDOMStatic:e=>["a",{href:u(e.attrs.videoId,e.attrs.videoKey),target:"_blank",class:"vimeo-wrap","data-component-name":"VimeoToDOMStatic"},["img",{src:d(e.attrs.videoId,{maxWidth:550})}]]},o=(0,i.C)({name:"vimeo",nodeSpec:r,addCommands(){return{insertVimeo:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"https://player.vimeo.com/video/".concat(e,"?autoplay=0").concat(t?"&h=".concat(t):"")},l=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&!t.nodes.vimeo?null:p(e)[2]},c=async(e,t)=>{let{customSchema:n}=t,a=(e=>{let[t,n]=p(e);return t?{videoId:t,videoKey:n}:null})(e);return a?n.nodes.vimeo.create(a):null},d=function(e){let{maxWidth:t=728,playButton:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(a.w4p,"/image/vimeo/w_").concat(t,",c_limit,d_video_placeholder.png").concat(n?"/l_youtube_play_qyqt8q,w_170":"","/").concat(e)},u=(e,t)=>"https://vimeo.com/".concat(e).concat(t?"/".concat(t):"");function p(e){let t=/(https?:\/\/[^\s]*vimeo.com\/(?:channels\/[^/]+\/|video\/)?(\d+)(\/([0-9a-f]+))?[^\s\"\'"]*)/.exec(e);return t?[t[2],t[4],t[1]]:[null,null,null]}},82528:function(e,t,n){n.d(t,{NO:()=>c,Sw:()=>d,VG:()=>p,c:()=>s,fe:()=>b,id:()=>l});var a=n(99851),i=n(9036),r=n(49807),o=n(29496);let s={attrs:{videoId:{default:""},startTime:{default:null},endTime:{default:null}},inline:!1,group:"block",draggable:!0,atom:!0,selectable:!0,isolating:!0,defining:!0,parseDOM:[{tag:"div.youtube-wrap",getAttrs:n(78495).t},{tag:"iframe",getAttrs:e=>{try{let t=e.src&&g(e.src)[0];if(t)return{videoId:t};return!1}catch(e){return!1}}},{tag:"object",getAttrs:e=>{try{let t=e.data&&g(e.data)[0];if(t)return{videoId:t};for(let t of e.querySelectorAll("param")){let e=t.value&&g(t.value)[0];if(e)return{videoId:e}}for(let t of e.querySelectorAll("embed")){let e=t.src&&g(t.src)[0];if(e)return{videoId:e}}return!1}catch(e){return!1}}}],toDOM:e=>{let t=h(e.attrs.videoId,{start:e.attrs.startTime,end:e.attrs.endTime});return["div",{id:_(e.attrs.videoId),class:"youtube-wrap","data-attrs":JSON.stringify(e.attrs),"data-component-name":"Youtube2ToDOM"},["div",{class:"youtube-inner"},["iframe",{src:t,frameborder:"0",loading:"lazy",gesture:"media",allow:"autoplay; fullscreen",allowautoplay:"true",allowfullscreen:"true",width:"728",height:"409"}]]]},toDOMStatic:e=>["a",{href:m(e.attrs),target:"_blank",class:"youtube-wrap","data-component-name":"Youtube2ToDOMStatic"},["img",{src:p(e.attrs.videoId,{maxWidth:728})}]]},l=(0,o.C)({name:"youtube2",nodeSpec:s,addCommands(){return{insertYoutube:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}}}),c=function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&!t.nodes.youtube2?null:g(e)[1]},d=async function(e){let{customSchema:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t?{schema:t}:await Promise.resolve().then(n.bind(n,12135))).schema,i=u(e);return i?a.nodes.youtube2?a.nodes.youtube2.create(i):(console.error("Schema does not have a youtube2 node"),null):null},u=e=>{var t;let n,a=g(e)[0];if(!a)return null;let r=(t=e,{start:(n=(0,i.m)(t)).start||n.t,end:n.end});return{videoId:a,startTime:r.start,endTime:r.end}},p=function(e){let{maxWidth:t=728,playButton:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(r.w4p,"/image/youtube/w_").concat(t,",c_limit").concat(n?"/l_youtube_play_qyqt8q,w_120":"","/").concat(e)},m=e=>"https://www.youtube.com/watch?".concat((0,r.BpC)({v:e.videoId,start:e.startTime,end:e.endTime})),h=function(e){let{start:t,end:n,enableJsApi:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"https://www.youtube-nocookie.com/embed/".concat(e,"?").concat((0,r.BpC)({start:t,end:n,rel:0,autoplay:0,showinfo:0,enablejsapi:+!!a}))},g=e=>{var t,n,a;let r=/(https?\:\/\/(www\.|m\.)?youtube\.com\/(v\/)?watch\?[^\s]+)/.exec(e);if(r){let e=(0,i.m)(r[1]).v||null;if(e)return[e,null!=(t=r[1])?t:null]}let o=/(https?:\/\/(?:youtu\.be|www\.youtube\.com\/embed|www\.youtube-nocookie\.com\/embed|www\.youtube\.com\/v|www\.youtube\.com\/shorts|www\.youtube\.com\/live)\/([A-z0-9\-_]+)[^\s]*)/.exec(e);return o?[null!=(n=o[2])?n:null,null!=(a=o[1])?a:null]:[null,null]};function _(e){return"youtube2-".concat(e)}class b{constructor(e){(0,a._)(this,"dom",void 0);const t=h(e.attrs.videoId,{start:e.attrs.startTime,end:e.attrs.endTime,enableJsApi:!0}),n=document.createElement("div");n.id=_(e.attrs.videoId),n.className="youtube-wrap",n.dataset.attrs=JSON.stringify(e.attrs);const i=document.createElement("div");i.className="youtube-inner",n.appendChild(i);const r=document.createElement("iframe");r.src=t,r.frameBorder="0",r.gesture="media",r.allow="autoplay; fullscreen",r.allowautoplay="true",r.allowFullscreen=!0,r.style.backgroundImage="url(".concat(p(e.attrs.videoId,{maxWidth:728}),")"),i.appendChild(r);const o=document.createElement("div");o.className="youtube-overlay";const s=document.createElement("div");s.className="youtube-instructions",s.innerText="Double click to interact with video",o.appendChild(s),o.addEventListener("dblclick",()=>{o.classList.add("disabled"),r.classList.remove("disabled"),r.focus()}),r.addEventListener("blur",()=>{var e;o.classList.remove("hidden"),o.classList.remove("disabled"),r.classList.add("disabled"),null==(e=r.contentWindow)||e.postMessage(JSON.stringify({event:"command",func:"pauseVideo",args:""}),"*")}),i.appendChild(o),this.dom=n}}}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return l[e].call(n.exports,n,n.exports,d),n.loaded=!0,n.exports}if(d.m=l,d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(n,a){if(1&a&&(n=this(n)),8&a||"object"==typeof n&&n&&(4&a&&n.__esModule||16&a&&"function"==typeof n.then))return n;var i=Object.create(null);d.r(i);var r={};e=e||[null,t({}),t([]),t(t)];for(var o=2&a&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>{r[e]=()=>n[e]});return r.default=()=>n,d.d(i,r),i},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce((t,n)=>(d.f[n](e,t),t),[])),d.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),d.u=e=>"4453"===e?"static/js/4453.e614b198.js":"1494"===e?"static/js/1494.a380006b.js":"4262"===e?"static/js/4262.9e39aeec.js":"3585"===e?"static/js/3585.7a23f057.js":"417"===e?"static/js/417.0d186b62.js":"3975"===e?"static/js/3975.2f704dce.js":"static/js/async/"+e+"."+({107:"1f865259",1070:"a495221e",1148:"0d675bf2",1186:"a696aba5",1252:"1fe9d416",1279:"b8a2fc9f",1291:"cef0f73f",1396:"9d24cb0c",1490:"f90c8d96",1509:"99fe64e7",1567:"16ec1db6",1568:"6b3aa70a",160:"9952824b",1646:"d1c10236",1679:"064f749b",1740:"6c1b6b4b",1767:"d407042e",1783:"e025152b",1868:"dae1dcd3",1879:"10d1d109",1904:"c02dff8f",1916:"247663b7",194:"b4d6692c",1979:"830e46ae",2047:"ed97652b",2108:"e5deff8a",2187:"ecc982ad",2197:"3987a7f9",2208:"ae8fff8e",2214:"73f8432d",2219:"569bb928",2230:"3bb50407",224:"4e65dd2f",2265:"025303d4",2275:"5893c068",229:"e24d7669",2346:"9319c022",245:"047450b0",2455:"e5c12180",2469:"3435b2a6",2475:"556cd246",2496:"a82456ce",251:"0df8dc46",2582:"a520bf86",2679:"c7d80d51",2684:"f9d97961",273:"ef8e740e",2748:"ab6fa542",2782:"3c109de4",2784:"48a71453",2847:"18eb2ce7",2870:"9a27f155",2871:"ea4f478a",2881:"794a036a",2900:"1f514460",291:"a275ab6d",2932:"f6c8b8dc",2947:"d9a8a263",3026:"19889368",3058:"84445ed0",3065:"7f5e90b4",3109:"771990e7",3142:"ada381b3",3151:"ec6ce7f5",3159:"70eec7e1",3328:"c2cf6793",3377:"11803e7a",3396:"f33646a1",3407:"5a6ddb47",3426:"fe833977",3451:"4ab34e5f",3556:"92622d32",3558:"d1cf22ea",3616:"3912be59",365:"4954749f",3672:"195a2d2d",3684:"48d8510a",3751:"f0e0d401",3775:"860b7f3e",379:"b6588964",3805:"95ba8a9f",3813:"599f3a13",3892:"409b1250",3932:"e314a07e",3935:"12e2406c",3961:"474a0fad",3965:"2ece7b69",397:"9d60c283",3981:"ebab9270",4019:"720a2816",4022:"8fb11266",4036:"18b34372",4117:"88a0feb0",4126:"44911d66",4175:"aca49f38",4192:"ae8946e8",4231:"fef24834",4255:"b70788af",4271:"a27f9531",4279:"6889bb0d",4298:"40a618a2",4309:"ead4b8e6",4311:"435ace1b",4391:"678349ca",4430:"dd58c427",4437:"096783a4",4452:"290cc36f",4490:"5c18c745",4496:"6aa58b25",4592:"a591d36c",4630:"af49642c",4645:"5b00405c",4662:"b71e20a8",4667:"375c259c",4668:"a90af385",4723:"8b155184",475:"731aa77a",4755:"1c5a78e7",4773:"56c3d7db",4794:"059f885a",4800:"f422d146",4822:"7c78b9eb",4877:"45bbb093",4942:"637a323a",4945:"c8f8ee0f",4955:"6eb06c26",497:"22f95b69",5034:"d659d1b8",5037:"539f6dab",505:"7d1876bd",5087:"774fcfe5",5203:"8a93ffeb",5208:"9433905f",5212:"e5d35196",5272:"82b9d65c",5287:"519f1b17",53:"53de4a79",5310:"b98f5d2a",534:"b4029f4e",5347:"1f2b1529",5374:"c4184bf4",5394:"ebce8c99",5396:"2b190c6a",545:"260c2b36",5488:"28d05c07",549:"353c4cf4",5505:"0c27bfbd",551:"ce6420a9",5532:"3a85c136",5585:"fdcc244d",5624:"efc2e4ec",5638:"3513408a",564:"844705ec",5644:"d1157896",5703:"f9f61787",5716:"71dbe0d3",5721:"df7f9c9f",5776:"484a6d33",5861:"45b4a37c",5887:"d96576b6",5889:"725b6db1",5897:"c344292c",5922:"fe9b68ec",597:"2e937450",607:"ed52dbd8",6073:"ae304a70",6087:"1ce728d4",6111:"51399a51",6175:"5411e352",619:"c763b736",6190:"8cb88760",6240:"97004c19",626:"324293a2",6260:"e72d66bf",6277:"95bd7bb4",628:"62e1bda9",6289:"bd4b31ac",6291:"c7e3efe9",6297:"896e594e",6322:"121738c3",6333:"362ca346",636:"5f69139a",6367:"a05e58f3",6397:"c5055a45",6405:"47b2dab6",6483:"8826195c",6518:"5c17cd1b",6520:"e93f62be",6597:"380ba5b3",6611:"3e76ec74",6644:"7719569e",6675:"ee302507",6718:"ede6330c",6757:"d991ce35",6818:"c3e2e3b4",6844:"78a87462",6860:"5bf8384a",6891:"f3d335a8",69:"34ec6ceb",6904:"054510c3",6919:"81ab8422",694:"436d93be",6948:"de5c74c8",6980:"50fd55c6",7036:"a3127d48",7042:"34277e90",7084:"dbd61607",7087:"282451c7",7115:"2ee94b0e",712:"722d9fac",7155:"65bda3a7",7231:"ba22d055",7304:"ef4fd216",7363:"df66db09",7450:"f2339a21",7511:"83e5b7f9",7512:"f79eb964",7530:"dff02b4e",7544:"e72fce07",7578:"0eee09dc",7693:"31332c34",77:"6c7bdcfd",7747:"70e9f6e8",7752:"7e687d13",7758:"4224ff87",777:"83147327",780:"bf155c50",7810:"9fe0ec25",7823:"da0c22d1",7882:"1a322fca",7885:"a7842e0b",790:"90443f65",7929:"ebabbb9b",7950:"e4d503bc",7957:"ddb35e32",7970:"1aac6c0d",7980:"49293fd1",8032:"eff4f55a",8136:"96613054",816:"22af8a66",8184:"6ed8a413",8189:"1e5f4702",819:"1cd45cac",8224:"29b2ca06",8274:"f086f66f",8319:"7f1e4d9a",832:"83e4c2da",837:"c51bd435",8409:"1762322a",8417:"12c2cfa7",8444:"64d76bdd",8456:"9431c08b",8472:"4aadadb2",8476:"185651bf",8483:"bb0e44b3",850:"956a5a85",8519:"1a0f5cf6",8529:"c3f28e06",8537:"f61c4c31",8572:"41c30f27",8575:"f60fe1d4",8588:"cf9b5019",8662:"58b15f8a",8690:"8f513e7a",87:"16111b58",877:"8aeea383",8838:"47ee5e7e",8911:"e5821293",8920:"108b5783",8922:"5dd2c65e",8942:"5c332179",8951:"0a528a5c",8980:"01e7ff83",8982:"83f9502f",8986:"5d6980c7",9002:"b7aa4776",9031:"9d95d39f",9032:"a27f845a",9093:"63926d25",911:"0820c5ce",9110:"454fdf10",9138:"49911957",9187:"adbf4f5c",9234:"511d09fc",9247:"2c84a65a",9250:"95dd22df",9291:"697b346a",9378:"991c0d49",9429:"30db05f3",9444:"6caef9db",9447:"846dcde5",9468:"5923cdbb",9552:"1ed7c49a",9558:"06b333b7",9565:"5a292b82",957:"47cc9a9c",9592:"b3c6c3f6",960:"c7c95fb9",9612:"b5796430",963:"66d71f22",9645:"09d0ea4f",966:"34be36ac",9693:"d52a646f",9694:"e3c331f3",9695:"ca846d79",9864:"da858326",9887:"6462c7e3",993:"ab8d95ea",9989:"fff43fc6"})[e]+".js",d.miniCssF=e=>"static/css/async/"+e+"."+({273:"53aebfa3",3775:"9d441b38",397:"17fbefce",4667:"400114c3",7363:"92492746",7758:"8db3c09e",8911:"2028d23f"})[e]+".css",d.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="substack:",d.l=function(e,t,i,r){if(n[e])return void n[e].push(t);if(void 0!==i)for(var o,s,l=document.getElementsByTagName("script"),c=0;c{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),d.nc=void 0,i=[],d.O=(e,t,n,a)=>{if(t){a=a||0;for(var r=i.length;r>0&&i[r-1][2]>a;r--)i[r]=i[r-1];i[r]=[t,n,a];return}for(var o=1/0,r=0;r=a)&&Object.keys(d.O).every(e=>d.O[e](t[l]))?t.splice(l--,1):(s=!1,an=r[e]=[t,a]);t.push(n[2]=a);var i=d.p+d.u(e),o=Error();d.l(i,function(t){if(d.o(r,e)&&(0!==(n=r[e])&&(r[e]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,n[1](o)}},"chunk-"+e,e)}},d.O.j=e=>0===r[e],o=(e,t)=>{var n,a,[i,o,s]=t,l=0;if(i.some(e=>0!==r[e])){for(n in o)d.o(o,n)&&(d.m[n]=o[n]);if(s)var c=s(d)}for(e&&e(t);l