(self.webpackChunklite=self.webpackChunklite||[]).push([[8052],{93394:(e,n,i)=>{"use strict";i.d(n,{Z:()=>o});var a=i(67294);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";i.d(n,{L:()=>E});var a=i(87329),l=i(72821),t=i(95472),o=i(68216),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderBackground_customStyleSheet"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomStyleSheet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"global"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colorPalette"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"background"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headerScale"}},{kind:"Field",name:{kind:"Name",value:"backgroundImageDisplayMode"}},{kind:"Field",name:{kind:"Name",value:"backgroundImageVerticalAlignment"}},{kind:"Field",name:{kind:"Name",value:"backgroundColorDisplayMode"}},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alpha"}},{kind:"Field",name:{kind:"Name",value:"rgb"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getOpaqueHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"secondaryBackgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"postBackgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"backgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}}]}}]}}].concat((0,a.Z)(l.xW.definitions),(0,a.Z)(l.hB.definitions))},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderBackground_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderBackground_customStyleSheet"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colorPalette"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tintBackgroundSpectrum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"legacyHeaderBackgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionTintBackgroundTheme_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"publisherUrl_publisher"}}]}}].concat((0,a.Z)(d.definitions),(0,a.Z)(t.VR.definitions),(0,a.Z)(o.uI.definitions))},m=i(14337),u=i(18821),s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderLogo_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logoImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderLogo_image"}}]}},{kind:"Field",name:{kind:"Name",value:"appNameColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"getHexFromColorValue_colorValue"}}]}},{kind:"Field",name:{kind:"Name",value:"appNameTreatment"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"CustomHeaderTooltip_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"publisherUrl_publisher"}}]}}].concat((0,a.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderLogo_image"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}}]),(0,a.Z)(l.xW.definitions),(0,a.Z)(u.H.definitions),(0,a.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"CustomHeaderTooltip_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appNameTreatment"}},{kind:"Field",name:{kind:"Name",value:"nameTreatment"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]),(0,a.Z)(o.uI.definitions))},c=i(57831),k={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNameplate_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherAvatar_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderLogo_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherFollowersCount_publisher"}}]}}].concat((0,a.Z)(m.v.definitions),(0,a.Z)(s.definitions),(0,a.Z)(c.h.definitions))},v=i(92001),g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"MutePopoverOptions_collection"}}]}}].concat((0,a.Z)(v.G.definitions))},p={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MutePopoverOptions_creator"}}]}}].concat((0,a.Z)(v.m.definitions))},S={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher_user"}}]}}]}}].concat((0,a.Z)(g.definitions),(0,a.Z)(p.definitions))},h=i(19308),N=i(84492),f={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderActions_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MetaHeaderPubMenu_publisher"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FollowAndSubscribeButtons_user"}}]}}]}}].concat((0,a.Z)(S.definitions),(0,a.Z)(h.I.definitions),(0,a.Z)(N.i.definitions))},b={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNav_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navigation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNavLink_headerNavigationItem"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNavLink_publisher"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"navItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tagSlug"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customDomainState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"live"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hasSubdomain"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",alias:{kind:"Name",value:"homePostsPublished"},name:{kind:"Name",value:"homepagePostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}]}}].concat((0,a.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNavLink_headerNavigationItem"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HeaderNavigationItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"normalizedTagSlug"}}]}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]),(0,a.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeaderNavLink_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]),(0,a.Z)(u.H.definitions))},E={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherHeader_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderBackground_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNameplate_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderActions_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherHeaderNav_publisher"}}]}}].concat((0,a.Z)(r.definitions),(0,a.Z)(k.definitions),(0,a.Z)(f.definitions),(0,a.Z)(b.definitions))}},13152:(e,n,i)=>{"use strict";i.d(n,{B:()=>d});var a=i(67294),l=i(51615),t=i(75221),o=i(75101),d=function(){var e=(0,l.TH)(),n=(0,o.G)();return a.useCallback((function(i){var a,l;return i.type===t.Me.NAV_TYPE_LINK?n(null!==(a=i.href)&&void 0!==a?a:""):i.type===t.Me.NAV_TYPE_TAG&&!(null===(l=i.tagSlugs)||void 0===l||!l.length)&&e.pathname.includes("tagged/".concat(i.tagSlugs[0]))}),[e.pathname,n])}},65850:(e,n,i)=>{"use strict";i.d(n,{U:()=>Oe});var a,l,t,o,d=i(67294),r=i(57682),m=i(96370),u=i(77355),s=i(31889),c=function(e){return{xs:"24px 0",sm:"24px 0",md:"".concat(r.BG,"px 0 ").concat(e||r.ZD,"px"),lg:"".concat(r.BG,"px 0 ").concat(e||r.ZD,"px"),xl:"".concat(r.BG,"px 0 ").concat(e||r.ZD,"px")}},k=function(e){var n=e.profileInfos,i=e.navbar,a=e.withBoxShadow,l=void 0===a||a,t=e.headerMarginBottom,o=(0,s.F)();return d.createElement(m.P,{size:"app"},d.createElement(u.x,{boxShadow:l?"inset 0 -1px 0 ".concat(o.colorTokens.border.neutral.primary.base):void 0,margin:c(t)},d.createElement(u.x,{alignItems:{xs:"flex-start",sm:"flex-start",md:"center",lg:"center",xl:"center"},display:"flex",flexWrap:{xs:"wrap",sm:"wrap",md:"nowrap",lg:"nowrap",xl:"nowrap"},justifyContent:{xs:"space-between",sm:"space-between",md:"flex-end",lg:"flex-end",xl:"flex-end"},marginBottom:{xs:"24px",sm:"24px",md:"40px",lg:"40px",xl:"40px"}},n),i))},v=i(82405),g=i(34699),p=i(39832),S=i(66021),h=i(25735),N=i(6443),f=i(39727),b=i(86801),E=i(18733),_=i(38352),F=i(96462),y=i(45509),T=i(93310),x=i(73917),C=i(78817),A=i(21755),I=i(14646),D=i(92661),P=i(43487),L=i(93394),w=i(17583),M=i(68894),O=i(50458),H=function(e){var n=e.copyUrl,i=e.hidePopover,a=e.copySource,l=e.collection,t=e.author,o=l?{collectionId:l.id}:{authorId:null==t?void 0:t.id};return d.createElement(_.Sl,null,d.createElement(b._,{url:n,onClick:i,reportData:o,source:a,copyStyle:"TEXT"},l?"Copy link to publication":"Copy link to profile"))},R=function(e){var n=e.publisher,i=e.hideAboutLink,a=void 0!==i&&i,l=(0,h.V)({name:"enable_lite_pub_stats",placeholder:!1}),t=(0,d.useRef)(null),o=(0,P.v9)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation}})),r=o.authDomain,m=o.currentLocation,s=(0,I.I)(),c="Collection"===n.__typename?n:null,k=null==c?void 0:c.slug,v=(0,D.uk)(),b=(0,D.H2)(),R=(0,M.O)(!1),V=(0,g.Z)(R,3),Z=V[0],B=V[1],U=V[2],G=(0,w.s)(),Y=G===A.j.xs||G===A.j.sm,W="User"===n.__typename?n:null,z=(W||{}).id,j="publisherMenu",K=(0,f.g)(c),X=K.loading,q=K.viewerEdge,Q=null==q?void 0:q.isEditor,J=(0,M.O)(!1),$=(0,g.Z)(J,4),ee=$[0],ne=$[2],ie=$[3],ae=(0,d.useCallback)((function(){ne(),setTimeout((function(){t.current&&t.current.focus()}))}),[ne,t]),le=d.useCallback((function(){Y&&B()}),[Y]),te=(0,N.H)().value,oe=!!te&&W&&z===te.id,de=c?"collection_home":"user_profile",re=null==W?void 0:W.username,me=c?b("ShowCollectionHome",{collectionSlug:null!=k?k:""}):b("ShowUser",{username:null!=re?re:""});return X?null:d.createElement(E.N8,null,d.createElement(x.J,{ariaId:j,isVisible:ee,hide:ae,popoverRenderFn:function(){return d.createElement(_.mX,null,!!c&&function(e){var n=e.newsletterV3?(0,O.iB)(e.newsletterV3.slug,r,e):(0,O.P5)(e,r);return d.createElement(d.Fragment,null,d.createElement(H,{copyUrl:me,hidePopover:ae,copySource:de,collection:e,author:W}),!a&&!Q&&d.createElement(_.Sl,null,d.createElement(T.r,{href:v("ShowCollectionMasthead",{collectionSlug:k||""})},"About ",null==e?void 0:e.name)),te&&e&&d.createElement(S.q,{hidePopover:ae,collection:e}),Q&&d.createElement(d.Fragment,null,d.createElement(_.Sl,null,d.createElement(T.r,{href:(0,O.I7)(e,r)},"Stories")),d.createElement(_.Sl,null,d.createElement(T.r,{href:l?b("FetchCollectionStats",{collectionSlug:e.slug||""}):(0,O.nh)(e,m)},"View Stats")),d.createElement(_.Sl,null,d.createElement(T.r,{href:(0,O.J6)(e,r)},"Design your publication")),d.createElement(_.Sl,null,d.createElement(T.r,{href:n},"Newsletter")),d.createElement(_.Sl,null,d.createElement(T.r,{href:(0,O.Fd)(e,r)},"Settings"))))}(c),te&&W&&z&&(e=W,oe?d.createElement(d.Fragment,null,d.createElement(H,{copyUrl:me,hidePopover:ae,copySource:de,collection:c,author:W}),d.createElement(_.Sl,null,d.createElement(T.r,{href:Y?void 0:(0,O.aL)(r),onClick:le},"Design your profile"),d.createElement(p.D,{hide:U,isVisible:Z}))):d.createElement(d.Fragment,null,d.createElement(H,{copyUrl:me,hidePopover:ae,copySource:de,collection:c,author:W}),d.createElement(S.q,{hidePopover:ae,creator:e}),d.createElement(F.F,{hidePopover:ae,creator:e,viewer:te}),d.createElement(y.j,{hidePopover:ae,creator:e,viewer:te}))));var e},display:"flex",targetDistance:15},d.createElement(C.P,{onClick:ie,"aria-controls":j,ariaExpanded:ee?"true":"false",ariaLabel:"Publisher Menu",ref:t},d.createElement(u.x,{padding:"4px",ariaHidden:"true"},d.createElement(L.Z,{className:s((function(e){return{fill:e.colorTokens.foreground.neutral.secondary.base,":hover":{fill:e.colorTokens.foreground.neutral.primary.hover}}}))})))))},V=i(61095),Z=i(31711),B=i(18634),U=i(66411),G=function(e){var n=e.publisher,i="User"===n.__typename,a=(0,V.Pd)({id:i?n.id:""}),l=a.viewerEdge,t=a.loading,o=!!(0,N.H)().value;return d.createElement(d.Fragment,null,o&&d.createElement(B.y,{xs:!0,sm:!0,xl:!0,marginLeft:"12px"},d.createElement(R,{publisher:n,hideAboutLink:i})),!t&&(!i||!(null!=l&&l.isUser))&&!(null!=l&&l.isBlocking)&&d.createElement(B.y,{xs:!0,sm:!0,md:!0,displayValue:"flex",flexBasis:{xs:"100%",sm:"100%",md:"content",lg:"content",xl:void 0},justifyContent:{xs:"space-between",sm:"space-between",md:"flex-end",lg:"flex-end",xl:void 0},marginTop:{xs:"20px",sm:"20px",md:void 0,lg:void 0,xl:void 0},width:"100%"},"User"===n.__typename?d.createElement(U.cW,{source:{name:"publisher_header_actions"},extendSource:!0},d.createElement(Z.N,{creator:n,followButtonSize:"REGULAR",susiEntry:"follow_profile",showMembershipUpsellModal:!0,width:"100%"})):d.createElement(v.F,{buttonSize:"REGULAR",collection:n,susiEntry:"follow_header"})),o&&d.createElement(B.y,{md:!0,lg:!0,marginLeft:"12px"},d.createElement(R,{publisher:n,hideAboutLink:i})))},Y=i(96156),W=i(70405),z=i(78757),j=i(74954),K=i(38722),X=i(75221),q=i(46696),Q=i(3207),J=(a={},(0,Y.Z)(a,X.v2.START,"top"),(0,Y.Z)(a,X.v2.END,"bottom"),(0,Y.Z)(a,X.v2.CENTER,"center"),a),$=function(e){var n,i,a,l,t,o,r,m,u,s,c,k,v,g,p,S,h,N,f,b=e.publisher,E=(0,I.I)(),_=b.customStyleSheet,F=null!=_?_:{},y=F.global,x=F.header,C=(0,z.P)(b),A=null!==(n="Collection"===b.__typename&&!b.isAuroraVisible&&b.legacyHeaderBackgroundImage)&&void 0!==n?n:null,D=null!==(i=null==x?void 0:x.backgroundImage)&&void 0!==i?i:A,P=!("Collection"!==b.__typename||b.isAuroraVisible||null==b||null===(a=b.colorPalette)||void 0===a||null===(l=a.tintBackgroundSpectrum)||void 0===l||!l.backgroundColor||null!=b&&null!==(t=b.colorPalette)&&void 0!==t&&null!==(o=t.tintBackgroundSpectrum)&&void 0!==o&&o.backgroundColor.includes("#FFFFFF")||D),L=null!==(r=null==_||null===(m=_.header)||void 0===m?void 0:m.backgroundImageDisplayMode)&&void 0!==r?r:K.Yk.backgroundImageDisplayMode,w=null!==(u=null==_||null===(s=_.header)||void 0===s?void 0:s.backgroundColorDisplayMode)&&void 0!==u?u:K.Yk.backgroundColorDisplayMode,M=D?(f=D,(0,q.W6)({miroId:f.id,width:f.originalWidth||2e3,strategy:q._S.Resample,freezeGifs:!1})):"",O=d.useMemo((function(){return function(e){var n=(0,j.eQ)(null==x?void 0:x.backgroundColor),i=(0,j.eQ)(null==x?void 0:x.secondaryBackgroundColor),a={display:"flex",flexDirection:"column",height:"150px"},l=[];if("Collection"===b.__typename&&P?a.backgroundColor=(0,Q.N9)(b,e).backgroundColor:w===X.PG.COLOR_DISPLAY_MODE_SOLID?l.push("linear-gradient(to bottom, ".concat(n||"transparent",", ").concat(n||"transparent",")")):w===X.PG.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT&&l.push("linear-gradient(to bottom, ".concat(n||"transparent",", ").concat(i||"transparent",")")),D){var t,o;l.push("url(".concat(M,")"));var d=null!==(t=null==_||null===(o=_.header)||void 0===o?void 0:o.backgroundImageVerticalAlignment)&&void 0!==t?t:K.Yk.backgroundImageVerticalAlignment,r=J[d];if(a.backgroundPosition=r,A){var m=A.focusPercentX,u=A.focusPercentY;a.backgroundPosition=m&&u?"".concat(A.focusPercentX,"% ").concat(A.focusPercentY,"%"):J[X.v2.CENTER]}switch(L){case X.zc.IMAGE_DISPLAY_MODE_FILL:a.backgroundSize="cover";break;case X.zc.IMAGE_DISPLAY_MODE_TILE:a.backgroundRepeat="repeat",a.backgroundSize="auto";break;case X.zc.IMAGE_DISPLAY_MODE_FIT:a.backgroundRepeat="no-repeat",a.backgroundSize="contain";break;case X.zc.IMAGE_DISPLAY_MODE_AUTO:a.backgroundRepeat="no-repeat",a.backgroundSize="auto"}}return l.length>0&&(a.backgroundImage=l.join(", ")),a}}),[_,M]),H=!(null!=x&&x.backgroundColor)||"00"===(null==x||null===(c=x.backgroundColor)||void 0===c?void 0:c.alpha)||(null==x||null===(k=x.backgroundColor)||void 0===k?void 0:k.rgb)===(null==y||null===(v=y.colorPalette)||void 0===v||null===(g=v.background)||void 0===g?void 0:g.rgb),R=!(null!=x&&x.secondaryBackgroundColor)||"00"===(null==x||null===(p=x.secondaryBackgroundColor)||void 0===p?void 0:p.alpha)||(null==x||null===(S=x.secondaryBackgroundColor)||void 0===S?void 0:S.rgb)===(null==y||null===(h=y.colorPalette)||void 0===h||null===(N=h.background)||void 0===N?void 0:N.rgb),V=(!x||(null==x?void 0:x.backgroundColorDisplayMode)===X.PG.COLOR_DISPLAY_MODE_SOLID)&&H,Z=(!x||(null==x?void 0:x.backgroundColorDisplayMode)===X.PG.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT)&&H&&R;return M||!V&&!Z||P?d.createElement(d.Fragment,null,M&&d.createElement(W.ql,null,d.createElement("link",{rel:"preload",href:M,as:"image"})),d.createElement(T.r,{href:C},d.createElement("div",{className:E(O)}))):null},ee=function(e){var n,i,a,l=e.customStyleSheet,t=null==l||null===(n=l.header)||void 0===n?void 0:n.logoImage,o=null!==(i=null==l||null===(a=l.header)||void 0===a?void 0:a.appNameTreatment)&&void 0!==i?i:K.Yk.nameTreatment,d=void 0!==t,r="Collection"===e.__typename?e.logo:null,m=d?t:r,u="Collection"===e.__typename&&!e.isAuroraVisible&&!(null==r||!r.id);return{logo:m,shouldShowLogo:!(null==m||!m.id)&&(o===X.m3.NAME_TREATMENT_LOGO||u)}},ne=i(80350),ie=i(30826),ae=i(87691),le=i(65968),te=i(64238),oe=i(4381),de=i(92780),re=i(64718),me=i(21919),ue=i(98863),se=i(8751),ce=i(87329),ke=i(68216),ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomHeaderTooltipQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"editors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isExcluded"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"dismissableFlags"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}]}}].concat((0,ce.Z)(ke.nf.definitions))},ge=function(e){var n=e.confirm,i=e.deny,a=e.publisher,l=(0,D.H2)(),t="Collection"===a.__typename?l("ShowCollectionDesignEditor",{collectionSlug:a.slug||a.id}):l("ShowUserDesignEditor",{});return d.createElement(u.x,{padding:"10px",width:"288px"},d.createElement(ae.F,{tag:"div",scale:"S",color:"DARKER"},"You may notice some updates to your header design. If you had a logo, you can turn it back on in the design editor on desktop."),d.createElement(u.x,{display:"flex",justifyContent:"flex-start",marginTop:"10px"},d.createElement(T.r,{onClick:n,href:t},d.createElement(ae.F,{scale:"S",color:"ACCENT"},"Update now")),d.createElement(u.x,{width:"10px"}),d.createElement(T.r,{onClick:i},d.createElement(ae.F,{scale:"S",color:"LIGHTER"},"Maybe later"))))},pe=function(e){var n=e.confirm,i=e.deny,a=e.publisher,l=(0,D.H2)()("ShowCollectionSettings",{collectionSlug:a.slug||a.id});return d.createElement(u.x,{padding:"10px",width:"288px"},d.createElement(ae.F,{tag:"div",scale:"S",color:"DARKER"},"We updated your publication's story pages to match our new design. You can make changes in Settings."),d.createElement(u.x,{display:"flex",justifyContent:"flex-start",marginTop:"10px"},d.createElement(T.r,{onClick:n,href:l},d.createElement(ae.F,{scale:"S",color:"ACCENT"},"Go to Settings")),d.createElement(u.x,{width:"10px"}),d.createElement(T.r,{onClick:i},d.createElement(ae.F,{scale:"S",color:"LIGHTER"},"Maybe Later"))))},Se=function(e){var n=e.children,i=e.publisher,a="Collection"===i.__typename&&!i.isAuroraVisible,l="User"===i.__typename,t=a?X.T3.BETA_LEGACY_PUB_HEADER_TOOLTIP:l?X.T3.BETA_CUSTOM_HEADER_LOGO_TOOLTIP:X.T3.BETA_PUB_CUSTOM_HEADER_LOGO_TOOLTIP,o=l?null:a?X.T3.BETA_LEGACY_PUB_HEADER_PERSONAL_TOOLTIP:X.T3.BETA_PUB_CUSTOM_HEADER_LOGO_PERSONAL_TOOLTIP,r=i.customStyleSheet,m=(0,N.H)(),u=m.value,s=m.loading,c=(0,ue.f)().isWorkingPreview,k=(0,V.Pd)({id:l?i.id:""}),v=k.viewerEdge,p=k.loading,S=(0,f.g)({id:l?"":i.id}),h=S.viewerEdge,b=S.loading,E=(0,M.O)(!1),_=(0,g.Z)(E,4),F=_[0],y=_[1],T=_[3],C=(0,re.a)(ve,{variables:{collectionId:l?"":i.id},ssr:!1}),A=C.loading,I=C.data,D=(0,me.D)(se.a),P=(0,g.Z)(D,1)[0];d.useEffect((function(){var e,n,i,d,m=l&&!p&&(null==v?void 0:v.isUser)&&(null==u?void 0:u.dismissableFlags)&&!(null!=u&&u.dismissableFlags.includes(t)),s=!l&&!b&&!A&&(null==h?void 0:h.isEditor)&&(null==I||null===(e=I.collection)||void 0===e||null===(n=e.editors)||void 0===n?void 0:n.every((function(e){var n,i;return(null==e||null===(n=e.user)||void 0===n?void 0:n.dismissableFlags)&&!(null!=e&&null!==(i=e.user)&&void 0!==i&&i.dismissableFlags.includes(t))})))&&(null==u?void 0:u.dismissableFlags)&&o&&!(null!=u&&u.dismissableFlags.includes(o)),k=(null==r||null===(i=r.header)||void 0===i?void 0:i.nameTreatment)===X.m3.NAME_TREATMENT_LOGO&&(null==r||null===(d=r.header)||void 0===d?void 0:d.appNameTreatment)!==X.m3.NAME_TREATMENT_LOGO;a&&!c&&s?y():!k||c||!m&&!s||y()}),[c,p,s,b,A,a,t]);var L=(0,d.useCallback)((function(){if(!u)return null;var e=function(){P({variables:{userId:u.id,flag:t}}),T()},n=function(){l?P({variables:{userId:u.id,flag:t}}):o&&P({variables:{userId:u.id,flag:o}}),T()};return a&&"Collection"===i.__typename?d.createElement(pe,{confirm:e,deny:n,publisher:i}):d.createElement(ge,{confirm:e,deny:n,publisher:i})}),[P,T,l,i,t,o]);return d.createElement(x.J,{disablePortalOverlay:!0,isVisible:F,display:"block",hide:T,placement:"top",popoverRenderFn:L,targetDistance:10,role:"tooltip"},n)},he=(l={},(0,Y.Z)(l,X.w6.HEADER_SCALE_SMALL,{small:{width:175,height:70},large:{width:175,height:70}}),(0,Y.Z)(l,X.w6.HEADER_SCALE_MEDIUM,{small:{width:225,height:90},large:{width:225,height:90}}),(0,Y.Z)(l,X.w6.HEADER_SCALE_LARGE,{small:{width:275,height:110},large:{width:275,height:110}}),l),Ne=(t={},(0,Y.Z)(t,X.w6.HEADER_SCALE_SMALL,{small:{width:160,height:32},large:{width:240,height:48}}),(0,Y.Z)(t,X.w6.HEADER_SCALE_MEDIUM,{small:{width:280,height:56},large:{width:360,height:72}}),(0,Y.Z)(t,X.w6.HEADER_SCALE_LARGE,{small:{width:280,height:64},large:{width:520,height:104}}),t),fe=(o={},(0,Y.Z)(o,X.w6.HEADER_SCALE_SMALL,{small:{width:280,height:24},large:{width:320,height:32}}),(0,Y.Z)(o,X.w6.HEADER_SCALE_MEDIUM,{small:{width:280,height:40},large:{width:600,height:60}}),(0,Y.Z)(o,X.w6.HEADER_SCALE_LARGE,{small:{width:280,height:60},large:{width:680,height:80}}),o),be=function(e,n){var i,a,l=null!==(i=null==n?void 0:n.originalWidth)&&void 0!==i?i:0,t=null!==(a=null==n?void 0:n.originalHeight)&&void 0!==a?a:0,o=Math.min(e.width/l,e.height/t);return{width:Math.floor(o*l),height:Math.floor(o*t)}},Ee={wordBreak:"break-all"},_e=function(e){var n,i=e.publisher,a=(0,I.I)(),l=(0,z.P)(i),t=(0,te.o)("User"===i.__typename?i:null),o=i.customStyleSheet,r=(null!==(n=null==o?void 0:o.header)&&void 0!==n?n:{}).appNameColor,m=(0,j.eQ)(r),s=(0,de.n)({name:"heading",scale:{xs:"M",sm:"M",md:"XL",lg:"XL",xl:"XL"},fontWeight:"NORMAL",clamp:1,color:"NORMAL"}),c=ee(i),k=c.logo;if(!c.shouldShowLogo||!k)return d.createElement(u.x,{display:"flex",alignItems:"center"},d.createElement(Se,{publisher:i},d.createElement(T.r,{href:l},d.createElement("span",{className:a([s,function(e){return{color:m||e.baseColor.text.dark}},Ee])},i.name||""))),t&&d.createElement(u.x,{marginLeft:"5px",marginTop:{xs:"2px",sm:"3px",md:"3px",lg:"3px",xl:"3px"}},d.createElement(le._,{size:"L",mobileSize:"M"})));var v=function(e,n){if(null==n||!n.originalWidth||null==n||!n.originalHeight)return he[e];var i=n.originalWidth/n.originalHeight;return i<=2.5?he[e]:i<5?Ne[e]:fe[e]}(X.w6.HEADER_SCALE_MEDIUM,k),g=be(v.small,k),p=be(v.large,k);return d.createElement(Se,{publisher:i},d.createElement(T.r,{href:l},d.createElement(oe.UV,{miroId:k.id,alt:i.name||"Publication logo",width:p.width,height:p.height,strategy:q._S.Resample,rules:{width:{xs:"".concat(g.width,"px"),sm:"".concat(g.width,"px"),md:"".concat(p.width,"px"),lg:"".concat(p.width,"px"),xl:"".concat(p.width,"px")},height:{xs:"".concat(g.height,"px"),sm:"".concat(g.height,"px"),md:"".concat(p.height,"px"),lg:"".concat(p.height,"px"),xl:"".concat(p.height,"px")}}})))},Fe=function(e){var n=e.publisher,i=ee(n),a=i.logo,l=i.shouldShowLogo;return d.createElement(u.x,{display:"flex",alignItems:"center",justifyContent:"flex-start",flexGrow:"1",flexShrink:"1",marginRight:{xs:"0",sm:"0",md:"16px",lg:"16px",xl:"0"}},(!a||!l)&&d.createElement(B.y,{xs:!0,sm:!0,marginRight:"20px"},d.createElement(ie.G,{publisher:n})),d.createElement(u.x,null,d.createElement(_e,{publisher:n}),d.createElement(B.y,{xs:!0,sm:!0},d.createElement(ae.F,{scale:"L"},d.createElement(ne.e,{publisher:n})))))},ye=i(51873),Te=i(62685),xe=i(47172),Ce=function(e){var n=e.navItem,i=e.publisher,a=(0,P.v9)((function(e){return e.config.authDomain})),l=(0,P.v9)((function(e){return e.navigation.hostname})),t=function(e){var n=e.navItem,i=e.publisher,a=(0,D.H2)();if(n.type===X.Me.NAV_TYPE_LINK)return n.href||"#";if(n.type===X.Me.NAV_TYPE_TAG){var l,t=null===(l=n.tags)||void 0===l?void 0:l[0],o=(null==t?void 0:t.normalizedTagSlug)||(null==t?void 0:t.id)||"";return"Collection"===i.__typename&&i.slug?a("ShowCollectionTagged",{collectionSlug:i.slug,tagSlug:o}):a("ShowTagPosts",{tagSlug:o})}return"#"}({navItem:n,publisher:i}),o=t.startsWith("/")||t.startsWith("#")||t.includes(a)||t.includes(l);if(!n.name)return null;var r=d.createElement(xe.v,{text:n.name,href:t,target:o?void 0:"_blank"});return n.dismissibleFlag?d.createElement(Te.o,{flag:n.dismissibleFlag.flag,text:n.dismissibleFlag.popoverText,dismissText:n.dismissibleFlag.dismissText,placement:"bottom",targetDistance:5,preventParentClick:!0,styleOverrides:{left:"-16px",top:"-6px"}},r):r},Ae=i(68427),Ie=i(84739),De=i(25550),Pe=i(97318),Le=i(13152),we=function(e){var n,i,a=e.publisher,l=(0,s.F)(),t=(null!=a?a:{}).customStyleSheet,o=(0,D.H2)(),r=(0,Ie.I)(),m=(0,Ae.B)(),c=(0,De.r)().viewerId,k=(0,te.o)("User"===a.__typename?a:null),v=(0,Pe.Z)({id:"User"===a.__typename&&a.id?a.id:""}).data,g=[{name:"Home",href:"User"===a.__typename?r(a):m(a),tagSlugs:[],tags:[],type:X.Me.NAV_TYPE_LINK}];if("User"===a.__typename&&a.username){var p,S,h=(null===(p=a.homePostsPublished)||void 0===p?void 0:p.posts)&&a.homePostsPublished.posts.length>0,N="User"===(null==v||null===(S=v.userResult)||void 0===S?void 0:S.__typename)&&v.userResult.viewerEdge.hasList;k&&g.push({name:"Books",href:o("ShowUserBooks",{username:a.username}),tagSlugs:[],tags:[],type:X.Me.NAV_TYPE_LINK}),h&&N&&g.push({name:"Lists",href:o("ShowUserLists",{username:a.username}),tagSlugs:[],tags:[],type:X.Me.NAV_TYPE_LINK}),g.push({name:"About",href:o("ShowUserAbout",{username:a.username}),tagSlugs:[],tags:[],type:X.Me.NAV_TYPE_LINK,dismissibleFlag:c===a.id?{flag:X.T3.TOOLTIP_ABOUT_EDITOR,popoverText:"You can now style text and images on your about page"}:void 0})}else"Collection"===a.__typename&&a.slug&&g.push({name:"About",href:o("ShowCollectionMasthead",{collectionSlug:a.slug}),tagSlugs:[],tags:[],type:X.Me.NAV_TYPE_LINK});var f=(null!==(n=null==t||null===(i=t.navigation)||void 0===i?void 0:i.navItems)&&void 0!==n?n:[]).filter((function(e){var n;return!(null===(n=e.name)||void 0===n||!n.trim())}));"Collection"!==a.__typename||a.isAuroraVisible||(f=a.navItems.map((function(e){return{name:e.title,href:e.url,tags:[],type:X.Me.NAV_TYPE_LINK}})));var b=[].concat(g,(0,ce.Z)(f)),E=(0,Le.B)(),_=!1;return d.createElement(u.x,{position:"relative",height:"".concat(39,"px"),overflow:"hidden",tag:"nav",boxShadow:"inset 0 -1px 0 ".concat(l.colorTokens.border.neutral.primary.base)},d.createElement(ye.J8,null,b.map((function(e,n){return E(e)&&!_&&(_=!0),e.name?d.createElement(u.x,{tag:"span",key:"".concat(e.name,"-").concat(n),paddingBottom:"6px",minWidth:"-webkit-max-content"},d.createElement(Ce,{navItem:e,publisher:a})):null}))))},Me=function(e){var n=e.publisher,i=e.includeBackground,a=void 0===i||i,l=e.headerMarginBottom;return d.createElement(u.x,null,a&&d.createElement($,{publisher:n}),d.createElement(k,{profileInfos:d.createElement(d.Fragment,null,d.createElement(Fe,{publisher:n}),d.createElement(G,{publisher:n})),navbar:d.createElement(we,{publisher:n}),headerMarginBottom:l}))},Oe=(0,d.memo)(Me)},39832:(e,n,i)=>{"use strict";i.d(n,{D:()=>u});var a=i(67294),l=i(13791),t=i(77355),o=i(21755),d=i(20113),r=i(87691),m=i(17583),u=function(e){var n=e.hide,i=e.isVisible,u=(0,m.s)();return a.createElement(l.v,{isVisible:i,hide:n,confirmText:"Okay, got it",showCancelButton:!1},a.createElement(t.x,{textAlign:"center"},a.createElement(d.X6,{scale:u===o.j.xs?"M":"L"},"Only available on desktop"),a.createElement(t.x,{margin:"8px 0 30px"},a.createElement(r.F,{scale:"L"},"To design your profile, view this page from a desktop web browser."))))}},14337:(e,n,i)=>{"use strict";i.d(n,{v:()=>o});var a=i(87329),l=i(84683),t=i(27048),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherAvatar_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}}]}}]}}].concat((0,a.Z)(l.d.definitions),(0,a.Z)(t.W.definitions))}},72821:(e,n,i)=>{"use strict";i.d(n,{xW:()=>a,hB:()=>l});var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getHexFromColorValue_colorValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ColorValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}},{kind:"Field",name:{kind:"Name",value:"alpha"}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getOpaqueHexFromColorValue_colorValue"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ColorValue"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}}]}},74954:(e,n,i)=>{"use strict";i.d(n,{eQ:()=>u,MQ:()=>s,BH:()=>c,zO:()=>v});var a=i(90484),l=i(34699),t=i(18446),o=i.n(t),d=i(1469),r=i.n(d),m=/^#?([0-9a-fA-F]{6})([0-9a-fA-F]{2})?$|^#?([0-9a-fA-F]{3})([0-9a-fA-F]{1})?$/,u=function(e){if(!e)return e;var n=e.rgb,i=e.alpha,a="#".concat(n).concat(i||"");return m.exec(a)?a:null},s=function(e){var n=m.exec(e);if(!n)return null;var i=(0,l.Z)(n,5),a=i[1],t=i[2],o=i[3],d=i[4];return{rgb:a||o,alpha:t||d||null}},c=function(e){if(!e)return null;var n=/rgba?\((\d+),(\d+),(\d+),?(\d*\.?\d+)?\)/.exec(e.replace(/\s+/g,""))||[],i=(0,l.Z)(n,5),a=[i[1],i[2],i[3],i[4]];return a[3]=a[3]?Math.round(255*+a[3]).toString():"255",{rgb:(a=a.map((function(e){return(+e).toString(16).padStart(2,"0")}))).slice(0,3).join(""),alpha:a[3]||null}},k=function e(n){if("object"===(0,a.Z)(n)&&null!==n){for(var i=0,l=Object.values(n);i2&&void 0!==arguments[2]?arguments[2]:[];if(!n&&!i)return k(n)&&k(i);if(!i)return k(n);if(!n)return k(i);if("object"!==(0,a.Z)(n))return n===i;if(r()(n)&&r()(i))return o()(n,i);for(var d=0,m=Object.entries(n);d{"use strict";i.d(n,{Yk:()=>l,jb:()=>t,Jq:()=>o,se:()=>r});var a=i(75221),l={horizontalAlignment:a.v2.START,headerScale:a.w6.HEADER_SCALE_SMALL,logoScale:a.w6.HEADER_SCALE_MEDIUM,backgroundColorDisplayMode:a.PG.COLOR_DISPLAY_MODE_SOLID,backgroundImageDisplayMode:a.zc.IMAGE_DISPLAY_MODE_FILL,backgroundImageVerticalAlignment:a.v2.START,appNameTreatment:a.m3.NAME_TREATMENT_TEXT,postNameTreatment:a.m3.NAME_TREATMENT_LOGO,taglineTreatment:a.KI.TAGLINE_TREATMENT_SIDEBAR,backgroundColor:null,secondaryBackgroundColor:null,postBackgroundColor:null,taglineColor:null,backgroundImage:null,logoImage:null,appNameColor:null,nameColor:null,nameTreatment:a.m3.NAME_TREATMENT_TEXT},t=function(){return l},o=function(){return d()},d=function(){return{font1:{name:a.G7.SANS_SERIF_1},font2:{name:a.G7.SANS_SERIF_1},font3:{name:a.G7.SERIF_2}}},r=function(){return m()},m=function(){return{visibility:a.n$.BLOGROLL_VISIBILITY_SIDEBAR}}},62685:(e,n,i)=>{"use strict";i.d(n,{$:()=>a,o:()=>E});var a,l=i(22122),t=i(34699),o=i(81253),d=i(21919),r=i(67294),m=i(98863),u=i(6443),s=i(8751),c=i(77355),k=i(93310),v=i(73917),g=i(87691),p=i(29746),S=i(18627),h=i(14646),N=["children","flag","text","renderFn","viewer","padding","placement","darkTheme","dismissText","onDismiss","preventParentClick","autoDismissFlag"],f=["children","flag","isVisible"];!function(e){e.CTA="CTA",e.DISMISSED="DISMISSED"}(a||(a={}));var b=function(e){var n=e.children,i=e.flag,m=e.text,u=e.renderFn,f=e.viewer,b=e.padding,E=void 0===b?16:b,_=e.placement,F=e.darkTheme,y=e.dismissText,T=void 0===y?"Got it":y,x=e.onDismiss,C=e.preventParentClick,A=e.autoDismissFlag,I=(0,o.Z)(e,N),D=(0,S.A)(),P=(0,r.useState)(!1),L=(0,t.Z)(P,2),w=L[0],M=L[1],O=(0,r.useRef)(!1),H=(0,d.D)(s.a,{variables:{userId:f.id,flag:i}}),R=(0,t.Z)(H,1)[0],V=(0,h.I)(),Z=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.DISMISSED;M(!1),R(),x&&x(),O.current=!0,D.event("user.dismissedPopover",{flag:i,action:e})}),[w,x]);(0,r.useEffect)((function(){return M(!0)}),[]),(0,r.useEffect)((function(){if(A)return function(){O.current||R()}}),[]);var B=(0,r.useCallback)((function(){return r.createElement(c.x,{width:"200px",padding:(0,p.a)(E)},r.createElement(g.F,{scale:"S",color:"WHITE"},m),r.createElement(c.x,{marginTop:"8px"},r.createElement(g.F,{scale:"S",color:F?"WHITE":void 0},r.createElement(k.r,{onClick:function(e){C&&e.preventDefault(),Z(a.DISMISSED)}},r.createElement("span",{className:V(v.u)},T)))))}),[Z,E,m,C]);return r.createElement(v.J,(0,l.Z)({disablePortalOverlay:!0,hide:Z,isVisible:w,popoverRenderFn:u?u(Z):B,darkTheme:!0,placement:_},I),n)},E=function(e){var n=e.children,i=e.flag,a=e.isVisible,t=void 0===a||a,d=(0,o.Z)(e,f),s=(0,m.f)().isWorkingPreview,c=(0,u.H)().value;return s||null!=c&&c.dismissableFlags.includes(i)||!c||!t?n:r.createElement(b,(0,l.Z)({flag:i,viewer:c},d),n)}},97318:(e,n,i)=>{"use strict";i.d(n,{Z:()=>t});var a=i(64718),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserHasListQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hasList"}}]}}]}}]}}]}}]},t=function(e){var n=e.id,i=void 0===n?"":n,t=e.username,o=void 0===t?"":t;return(0,a.a)(l,{variables:{id:i,username:o},skip:!i&&!o})}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/8052.60aa38b6.chunk.js.map