kaggle-ConnectX/Research/MuZero_ The Walkthrough (Pa.../7012.f1ee6871.chunk.js

2 lines
59 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunklite=self.webpackChunklite||[]).push([[7012],{73004:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var r=t(67294);function o(){return(o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var l=r.createElement("path",{d:"M4 7.33L10.03 14l.5.55.5-.55 5.96-6.6-.98-.9-5.98 6.6h1L4.98 6.45z",fillRule:"evenodd"});const i=function(e){return r.createElement("svg",o({width:21,height:21,viewBox:"0 0 21 21"},e),l)}},84783:(e,n,t)=>{"use strict";t.d(n,{b3:()=>P,Iq:()=>T,Fp:()=>V});var r=t(63038),o=t.n(r),l=t(28655),i=t.n(l),a=t(71439),u=t(46829),c=t(67294),s=t(12291),d=t(34664),m=t(24087),g=t(324),h=t(62181),f=t(7530),p=t(25597),v=t(64504),b=t(62630),E=t(27572),S=t(28309),_=t(72955),x=t(73004),y=t(27952);function C(){var e=i()(["\n mutation UnsubscribeCollectionEmailsMutation($id: ID!) {\n unsubscribeCollectionEmails(collectionId: $id) {\n __typename\n id\n isUserSubscribedToCollectionEmails\n }\n }\n"]);return C=function(){return e},e}function w(){var e=i()(["\n mutation SubscribeCollectionEmailsMutation($id: ID!) {\n subscribeCollectionEmails(collectionId: $id) {\n __typename\n id\n isUserSubscribedToCollectionEmails\n }\n }\n"]);return w=function(){return e},e}function L(){var e=i()(["\n mutation UnfollowCollectionMutation($id: ID!) {\n unfollowCollection(targetCollectionId: $id) {\n __typename\n id\n viewerIsFollowing\n }\n }\n"]);return L=function(){return e},e}function I(){var e=i()(["\n mutation FollowCollectionMutation($id: ID!) {\n followCollection(targetCollectionId: $id) {\n __typename\n id\n viewerIsFollowing\n isUserSubscribedToCollectionEmails\n }\n }\n"]);return I=function(){return e},e}function A(){var e=i()(["\n fragment CollectionFollowButton_collection on Collection {\n __typename\n id\n viewerIsFollowing\n name\n viewerIsSubscribedToLetters\n canToggleEmail\n slug\n isUserSubscribedToCollectionEmails\n ...collectionUrl_collection\n ...SusiClickable_collection\n }\n ","\n ","\n"]);return A=function(){return e},e}function M(){var e=i()(["\n fragment CollectionFollowButton_post on Post {\n __typename\n id\n }\n"]);return M=function(){return e},e}var k="collectionFollowPopover",P=(0,a.Ps)(M()),T=(0,a.Ps)(A(),y.nf,h.Os),R="follow_card",H=function(e){var n=e.children,t=e.extraTopPadding,r=e.extraBottomPadding,o=e.padding,l=e.margin,i=e.borderTop;return c.createElement(f.xu,{padding:o||"".concat(t?"20px":"5px"," 20px ").concat(r?"20px":"5px"," 20px"),margin:l,borderTop:i?"BASE_LIGHTER":"NONE"},n)},N=(0,a.Ps)(I()),D=(0,a.Ps)(L()),B=(0,a.Ps)(w()),F=(0,a.Ps)(C()),O=function(e){return function(n){return e?{fill:n.baseColor.text.lighter,marginLeft:"2px",width:"18px",height:"auto",position:"absolute",bottom:"0"}:{fill:"inherit",marginLeft:"6px"}}},V=function(e){var n=e.buttonSize,t=e.buttonStyleFn,r=e.collection,l=e.isPopoverVisible,i=e.isToastVisible,a=e.post,y=e.simpleButton,C=e.isLinkStyle,w=e.susiEntry,L=(0,S.Iq)(),I=(0,s.v9)((function(e){return{isAmp:e.config.isAmp,authDomain:e.config.authDomain}}),s.wU),A=I.isAmp,M=I.authDomain,P=r&&r.name?r.name:"",T=(0,b.Av)(),R=(0,E.pK)(),V=c.useState(!!l),G=o()(V,2),z=G[0],j=G[1],Y=c.useState(!!i),X=o()(Y,2),$=X[0],Z=X[1],q=function(e){return{followCollectionMutation:function(e){var n=(0,u.useMutation)(N),t=o()(n,1)[0];return c.useCallback((function(){return t({variables:{id:e.id},optimisticResponse:{followCollection:{__typename:"Collection",id:e.id,viewerIsFollowing:!0,isUserSubscribedToCollectionEmails:!1}}})}),[e])}(e),unfollowCollectionMutation:function(e){var n=(0,u.useMutation)(D),t=o()(n,1)[0];return c.useCallback((function(){return t({variables:{id:e.id},optimisticResponse:{unfollowCollection:{__typename:"Collection",id:e.id,viewerIsFollowing:!1}}})}),[e])}(e),subscribeCollectionEmailsMutation:function(e){var n=(0,u.useMutation)(B),t=o()(n,1)[0];return c.useCallback((function(){return t({variables:{id:e.id},optimisticResponse:{subscribeCollectionEmails:{__typename:"Collection",id:e.id,isUserSubscribedToCollectionEmails:!0}}})}),[e])}(e),unsubscribeCollectionEmailsMutation:function(e){var n=(0,u.useMutation)(F),t=o()(n,1)[0];return c.useCallback((function(){return t({variables:{id:e.id},optimisticResponse:{unsubscribeCollectionEmails:{__typename:"Collection",id:e.id,isUserSubscribedToCollectionEmails:!1}}})}),[e])}(e)}}(r),Q=q.followCollectionMutation,K=q.unfollowCollectionMutation,J=q.subscribeCollectionEmailsMutation,ee=q.unsubscribeCollectionEmailsMutation,ne=c.useCallback((function(){j(!1)}),[]);c.useEffect((function(){return _.V6.on("scroll",ne),function(){_.V6.off("scroll",ne)}}),[ne]);var te=c.useCallback((function(){r.viewerIsFollowing||(T.event("collection.followed",{collectionId:r.id,followSource:R}),Q()),j(!0)}),[r]),re=c.useCallback((function(){T.event("collection.unfollowed",{collectionId:r.id,followSource:R}),K(),j(!1)}),[]),oe=c.useCallback((function(){j(!1)}),[]),le=c.useCallback((function(e){T.event("client.action",{action:"toggle-subscribe-collection-emails",eventType:"click",classAttribute:"checkbox"}),e.target.checked?J():ee(),Z(!0)}),[]),ie=c.useCallback((function(){Z(!1)}),[]);if(A)return null;if(y)return W(M,r,a,te,re,n,t);var ae=function(e){var n=e.children,t=e.buttonSize,o=void 0===t?"SMALL":t,l=e.buttonStyle,i=e.isPopoverVisible,u=e.linkStyle,s=void 0===u?null:u;return c.createElement(m.Z,null,(function(e){return e?null!=s?c.createElement(f.rU,{ariaControls:k,ariaExpanded:i?"true":"false",onClick:te,linkStyle:s},n):c.createElement(f.zx,{ariaControls:k,ariaExpanded:i?"true":"false",size:o,onClick:te,buttonStyle:l},n):c.createElement(h.R9,{collection:r,buttonStyle:"STRONG",linkStyle:"OBVIOUS",isButton:!C,buttonSize:o,operation:"register",actionUrl:U(M,r,a)||"",susiEntry:w},n)}))},ue=!!r.isUserSubscribedToCollectionEmails;return c.createElement(d.f,null,c.createElement(f.J2,{ariaId:k,isVisible:!!z,hide:oe,popoverRenderFn:function(){return c.createElement(f.xu,{width:"280px",display:"flex",flexDirection:"column"},c.createElement(H,{extraTopPadding:!0},c.createElement(v.X6,{scale:"XS"},"Youre following ",P)),c.createElement(H,null,c.createElement(v.F,{scale:"M"},"Youll now see more stories from ",P," across Medium.")),r.canToggleEmail&&c.createElement(H,null,c.createElement(v.F,{scale:"M"},c.createElement("label",null,c.createElement(f.xu,{display:"inline",marginRight:"5px"},c.createElement("input",{type:"checkbox",onChange:le,checked:ue})),"Receive emails from this publication"))),c.createElement(H,{extraBottomPadding:!0},c.createElement(v.F,{scale:"M"},c.createElement(f.rU,{onClick:re,linkStyle:"OBVIOUS",inline:!0},"Unfollow publication"))))}},c.createElement(ae,{isPopoverVisible:!!z,buttonStyle:r.viewerIsFollowing?"OBVIOUS":"STRONG",linkStyle:C?r.viewerIsFollowing?"SUBTLE":"OBVIOUS":null,buttonSize:n},c.createElement(f.xu,{display:"flex",flexDirection:"row"},r.viewerIsFollowing?"Following":"Follow",r.viewerIsFollowing&&c.createElement("span",{className:L({marginBottom:C?null:"-6px",position:"relative"})},c.createElement(x.Z,{className:L(O(C))}))))),c.createElement(g.N8,null,c.createElement(p.Z,{isVisible:!!$,hide:ie,duration:2e3},c.createElement(v.F,{scale:"M"},ue?"Youll now receive emails from ".concat(P,"."):"Youll no longer receive emails from ".concat(P,".")))))},U=function(e,n,t){return n.slug&&(t&&t.id?(0,y.TA)(e,n.slug,t.id):(0,y.Ll)(e,n.slug))},W=function(e,n,t,r,o){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"REGULAR",i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(e){return e?"STRONG":"OBVIOUS"},a=i(!!n.viewerIsFollowing);return c.createElement(m.Z,null,(function(i){return i?c.createElement(f.zx,{size:l,onClick:n.viewerIsFollowing?o:r,buttonStyle:a},n.viewerIsFollowing?"Following":"Follow"):c.createElement(h.R9,{collection:n,buttonStyle:"OBVIOUS",isButton:!0,buttonSize:"REGULAR",operation:"register",actionUrl:U(e,n,t)||"",susiEntry:R},n.viewerIsFollowing?"Following":"Follow")}))}},2330:(e,n,t)=>{"use strict";t.d(n,{r:()=>h,f:()=>f});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(8558),u=t(7530),c=t(67995),s=t(28309),d=t(14391),m=t(90038);function g(){var e=o()(["\n fragment PublisherLogo_image on ImageMetadata {\n id\n originalHeight\n originalWidth\n }\n"]);return g=function(){return e},e}function h(e){var n=e.clamp,t=void 0===n?1:n,r=e.maxWidth,o=e.maxHeight,l=e.textScale,g=void 0===l?"S":l,h=e.withTextColorSubtle,f=void 0!==h&&h,p=e.customNameColor,v=e.name,b=e.logo,E=e.nameTreatment,S=e.leadingTrim,_=void 0!==S&&S,x=e.withWordBreak,y=void 0!==x&&x,C=(0,s.Iq)(),w=(0,c.n)({name:"heading",scale:g,clamp:t,leadingTrim:_}),L=function(e,n){return function(t){return{color:n||t.baseColor.text[e]}}}(f?"normal":"dark",p),I=y?{wordBreak:"break-word"}:{};if(!b||!b.id||E===d.m3.NAME_TREATMENT_TEXT)return i.createElement("span",{className:C([w,L,I])},v||"");var A=b.id,M=b.originalWidth||100,k=b.originalHeight||100;if(r&&M>r){var P=M/r;M=Math.floor(M/P),k=Math.floor(k/P)}if(o&&k>o){var T=k/o;M=Math.floor(M/T),k=Math.floor(k/T)}return i.createElement(u.xu,{width:"".concat(M,"px"),height:"".concat(k,"px")},i.createElement(a.UV,{miroId:A,alt:v||"Publication logo",width:M,height:k,strategy:m._S.Resample}))}var f=(0,l.Ps)(g())},52872:(e,n,t)=>{"use strict";function r(e,n,t){var r=t/n||0,o={xs:{maxHeight:32,maxWidth:320},md:{maxHeight:40,maxWidth:400},xl:{maxHeight:60,maxWidth:600}};return r<=2.5?o={xs:{maxHeight:50,maxWidth:125},md:{maxHeight:70,maxWidth:175},xl:{maxHeight:90,maxWidth:225}}:r<5&&(o={xs:{maxHeight:40,maxWidth:200},md:{maxHeight:50,maxWidth:250},xl:{maxHeight:70,maxWidth:350}}),o[e]}t.d(n,{p:()=>r})},47012:(e,n,t)=>{"use strict";t.d(n,{Go:()=>tn,aU:()=>on,Mv:()=>rn,I_:()=>an});var r=t(28655),o=t.n(r),l=t(63038),i=t.n(l),a=t(59713),u=t.n(a),c=t(71439),s=t(67294),d=t(12291),m=t(46197),g=t(60046),h=t(56862),f=t(51562),p=t(28309);function v(){return(v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var b=s.createElement("path",{d:"M0 .5h14M0 7h14M0 13.5h14"});const E=function(e){return s.createElement("svg",v({width:14,height:14},e),b)};var S=function(e){return{stroke:e.baseColor.fill.lighter}},_={display:"flex",alignItems:"center",justifyContent:"center",margin:"0px",border:"0px",padding:"0px",cursor:"pointer"};function x(e){var n=e.onClick,t=e.ariaLabel,r=void 0===t?"expand":t,o=(0,p.Iq)();return s.createElement("button",{className:o(_),onClick:n,"aria-label":r},s.createElement(E,{className:o(S)}))}var y=t(73882),C=t(61722),w=t(65357),L=t(47700),I=t(60295),A=t(39555),M=t(88584),k=t(85274),P=t(25885),T=function(e){var n,t,r,o,l,a,u=e.children,c=e.rules,d=void 0===c?{}:c,m=(0,p.Iq)(),g={borderRadius:"1000px",backgroundColor:(n=(0,p.Fg)(),t=(0,P.n2)(n.backgroundColor),r=i()(t,3),o=r[0],l=r[1],a=r[2],(0,P.JX)([o,l,a,.8]))};return s.createElement("div",{className:m([g,d])},u)},R=t(55388),H=t(9785),N=t(98281),D=t(68421),B=t(7530),F=t(27572),O=t(14391);function V(){var e=o()(["\n fragment MetaHeaderActions_post on Post {\n ...MetabarButtonConversionLI_post\n isLocked\n pendingCollection {\n ...MetaHeaderActions_collection_common\n }\n ...MetabarPostMenuButton_post\n }\n ","\n ","\n ","\n"]);return V=function(){return e},e}function U(){var e=o()(["\n fragment MetaHeaderActions_publisher on Publisher {\n __typename\n ...MetaHeaderPubMenu_publisher\n ...SearchWidget_publisher\n ... on Collection {\n id\n viewerIsEditor\n creator {\n id\n }\n customStyleSheet {\n navigation {\n navItems {\n name\n }\n }\n }\n ...CollectionAvatar_collection\n ...CollectionMetabarActionsPopover_collection\n ...MetaHeaderActions_collection_common\n }\n ... on User {\n id\n ...UserAvatar_user\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return U=function(){return e},e}function W(){var e=o()(["\n fragment MetaHeaderActions_collection_common on Collection {\n creator {\n id\n }\n viewerIsEditor\n }\n"]);return W=function(){return e},e}var G,z="12px",j=function(e){var n,t,r,o=e.publisher,l=e.post,i=e.hideAboutLink,a=void 0!==i&&i,u=(0,H.YC)().value,c="Collection"===o.__typename?o:null,d="User"===(null==o?void 0:o.__typename)?o:null,m=!(null==u||!u.mediumMemberAt),g=c&&c.creator&&c.creator.id===(null==u?void 0:u.id),h=c&&c.viewerIsEditor,p=g||h,v=l&&l.creator&&l.creator.id===(null==u?void 0:u.id),b=d&&d.id===(null==u?void 0:u.id),E=!!d&&(null==u?void 0:u.id)===d.id,S=p||E,_=u&&!m&&!p&&!b&&!v,x=(0,k.N)().isNewPostButtonVisible,A=!(null==c||null===(n=c.customStyleSheet)||void 0===n||null===(t=n.navigation)||void 0===t||null===(r=t.navItems)||void 0===r||!r.length);return s.createElement(B.xu,{display:"flex",alignItems:"center",marginRight:S?"24px":"12px",height:"32px",overflow:"visible"},u&&!S&&s.createElement(T,null,s.createElement(w.Q,{publisher:o,hideAboutLink:a})),u&&s.createElement(F.cW,{source:{name:"search-popover"}},s.createElement(B.xu,{marginLeft:"8px",marginRight:"10px"},s.createElement(T,null,s.createElement(R.Rh,{publisher:o,setIsMetabarLocked:function(){}})))),c&&p&&s.createElement(s.Fragment,null,s.createElement(B.xu,{marginLeft:z,marginRight:z},s.createElement(D.o,{flag:O.T3.AURORA_NAV_AVAILABLE,isVisible:c.isAuroraEligible&&!A,targetDistance:15,padding:12,text:"You can now add sections to your publication. Go to Design your publication to get started."},s.createElement(C.o,{collection:c,paddingTop:"0px",paddingBottom:"0px"},s.createElement(y.v,{collection:c,size:32})))),x&&s.createElement(M.F,{collection:c,paddingTop:"0px",paddingBottom:"0px",marginLeft:z})),_&&s.createElement(f.W,{featureString:"li-post-page-navbar",target:"upsell-button"},s.createElement(B.xu,{marginRight:z,sm:{display:"none"}},s.createElement(I.Z,{post:l}))),u&&E&&s.createElement(s.Fragment,null,s.createElement(B.xu,{marginLeft:z,marginRight:z,display:"flex",alignItems:"center"},s.createElement(L.W,{viewer:u,setIsMetabarLocked:function(){}},s.createElement(N.ZP,{user:u,scale:"XS"}))),x&&s.createElement(B.xu,{marginLeft:z},s.createElement(k.Q,null))))},Y=(0,c.Ps)(W()),X=(0,c.Ps)(U(),w.f,R.Aw,y.d,C.s,Y,N.WQ),$=(0,c.Ps)(V(),I.V,Y,A.R),Z=t(70405),q=t(85489),Q=t(65849),K=t(90038);function J(){var e=o()(["\n fragment MetaHeaderBackground_customStyleSheet on CustomStyleSheet {\n id\n header {\n headerScale\n backgroundImageDisplayMode\n backgroundImageVerticalAlignment\n backgroundColorDisplayMode\n backgroundColor {\n ...getHexFromColorValue_colorValue\n ...getOpaqueHexFromColorValue_colorValue\n }\n secondaryBackgroundColor {\n ...getHexFromColorValue_colorValue\n }\n postBackgroundColor {\n ...getHexFromColorValue_colorValue\n }\n backgroundImage {\n ...MetaHeaderBackground_imageMetadata\n }\n }\n }\n ","\n ","\n ","\n"]);return J=function(){return e},e}function ee(){var e=o()(["\n fragment MetaHeaderBackground_imageMetadata on ImageMetadata {\n id\n originalWidth\n }\n"]);return ee=function(){return e},e}var ne=(G={},u()(G,O.v2.START,"top"),u()(G,O.v2.END,"bottom"),u()(G,O.v2.CENTER,"center"),G),te=function(e){return(0,K.W6)({miroId:e.id,width:e.originalWidth||2e3,strategy:K._S.Resample,freezeGifs:!1})},re=function(e,n){var t=(e||{}).header,r=n?(0,q.eQ)(null==t?void 0:t.postBackgroundColor):null,o=n?(0,q.Z)(null==t?void 0:t.backgroundColor):(0,q.eQ)(null==t?void 0:t.backgroundColor);return{altHex:r,primaryHex:o,backgroundColor:r||o}},oe=function(e,n){var t,r,o=(e||{}).header,l=(0,Q.jb)(),i=null!==(t=null==e||null===(r=e.header)||void 0===r?void 0:r.headerScale)&&void 0!==t?t:l.headerScale;return n||i===O.w6.HEADER_SCALE_SMALL?null:null==o?void 0:o.backgroundImage},le=function(e){var n,t=e.customStyleSheet,r=e.withAltBackground,o=void 0!==r&&r,l=e.children,i=(0,p.Iq)(),a=function(e,n){var t,r,o,l,i=(e||{}).header,a=(0,Q.jb)(),u=null!==(t=null==e||null===(r=e.header)||void 0===r?void 0:r.backgroundImageDisplayMode)&&void 0!==t?t:a.backgroundColorDisplayMode,c=n?O.PG.COLOR_DISPLAY_MODE_SOLID:null!==(o=null==e||null===(l=e.header)||void 0===l?void 0:l.backgroundColorDisplayMode)&&void 0!==o?o:a.backgroundColorDisplayMode,d=oe(e,n),m=d?te(d):"",g=re(e,n),h=g.altHex,f=g.primaryHex,p=g.backgroundColor;return s.useMemo((function(){return function(n){var t=(0,q.eQ)(null==i?void 0:i.secondaryBackgroundColor),r={display:"flex",flexDirection:"column"};if(!d&&p&&c===O.PG.COLOR_DISPLAY_MODE_SOLID&&(r.backgroundColor=p||n.backgroundColor),h)return r;var o=[];if(d&&c===O.PG.COLOR_DISPLAY_MODE_SOLID?o.push("linear-gradient(to bottom, ".concat(f||"transparent",", ").concat(f||"transparent",")")):c===O.PG.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT&&o.push("linear-gradient(to bottom, ".concat(f||"transparent",", ").concat(t||"transparent",")")),d){var l,s;o.push("url(".concat(m,")"));var g=null!==(l=null==e||null===(s=e.header)||void 0===s?void 0:s.backgroundImageVerticalAlignment)&&void 0!==l?l:a.backgroundImageVerticalAlignment,v=ne[g];switch(r.backgroundPosition=v,u){case O.zc.IMAGE_DISPLAY_MODE_FILL:r.backgroundSize="cover";break;case O.zc.IMAGE_DISPLAY_MODE_TILE:r.backgroundRepeatX="repeat",r.backgroundRepeatY="repeat",r.backgroundSize="auto";break;case O.zc.IMAGE_DISPLAY_MODE_FIT:r.backgroundRepeatX="no-repeat",r.backgroundRepeatY="no-repeat",r.backgroundSize="contain";break;case O.zc.IMAGE_DISPLAY_MODE_AUTO:r.backgroundRepeatX="no-repeat",r.backgroundRepeatY="no-repeat",r.backgroundSize="auto"}}return o.length>0&&(r.backgroundImage=o.join(", ")),r}}),[e,m])}(t,o),u=(null!==(n=null==t?void 0:t.header)&&void 0!==n?n:{}).backgroundImage;return s.createElement(s.Fragment,null,u&&s.createElement(Z.q,null,s.createElement("link",{rel:"preload",href:te(u),as:"image"})),s.createElement("div",{className:i(a)},l))},ie=(0,c.Ps)(ee()),ae=(0,c.Ps)(J(),ie,q.xW,q.hB),ue=t(18704),ce=t(55014),se=t(84014),de=t(65393),me=t(62117),ge=t(22091),he=t(64504),fe=t(51064);function pe(){var e=o()(["\n fragment MetaHeaderNavVertical_publisher on Publisher {\n id\n ...PublisherAboutLink_publisher\n ...MetaHeaderNavLink_publisher\n }\n ","\n ","\n"]);return pe=function(){return e},e}function ve(){var e=o()(["\n fragment MetaHeaderNavVertical_customStyleSheet on CustomStyleSheet {\n id\n navigation {\n navItems {\n ...MetaHeaderNavLink_headerNavigationItem\n }\n }\n }\n ","\n"]);return ve=function(){return e},e}var be=s.forwardRef((function(e,n){var t=e.customStyleSheet,r=e.publisher,o=(0,se.yR)(t,r),l=o.navItems;return o.isNavVisible?s.createElement(ge.xu,{display:"none",sm:{display:"flex"},flexDirection:"column",tag:"nav",width:"100%",padding:"8px 0 16px 0",ref:n},s.createElement(he.F,{scale:"XL",tag:"span"},l.map((function(e,n){return s.createElement(ge.xu,{key:n,tag:"span",margin:"14px 0"},s.createElement(de.d9,{navItem:e,publisher:r}))})),s.createElement(ge.xu,{tag:"span",margin:"14px 0"},s.createElement(me.w,{publisher:r})))):null})),Ee=(0,c.Ps)(ve(),de.Ze),Se=(0,c.Ps)(pe(),me.u,de.ud),_e=t(22669),xe=t(67995);function ye(){var e=o()(["\n fragment MetaHeaderTagline_publisher on Publisher {\n __typename\n ... on Collection {\n tagline\n }\n ... on User {\n bio\n }\n }\n"]);return ye=function(){return e},e}function Ce(){var e=o()(["\n fragment MetaHeaderTagline_customStyleSheet on CustomStyleSheet {\n id\n header {\n taglineColor {\n ...getHexFromColorValue_colorValue\n }\n taglineTreatment\n }\n }\n ","\n"]);return Ce=function(){return e},e}var we=function(e){var n,t=e.publisher,r=e.customStyleSheet,o=e.color,l=void 0===o?"LIGHTER":o,i=(0,p.Iq)(),a=(0,xe.n)({name:"subtitle",scale:"M",color:l}),u=(null!==(n=null==r?void 0:r.header)&&void 0!==n?n:{}).taglineColor,c=(0,q.eQ)(u),d=c?{color:c}:{},m=Le(r,t),g=m.tagline;return m.isTaglineVisible?s.createElement("span",{className:i([a,d])},s.createElement(_e.Z,null,g)):null},Le=function(e,n){var t,r,o=(0,Q.jb)(),l=null!==(t=null==e||null===(r=e.header)||void 0===r?void 0:r.taglineTreatment)&&void 0!==t?t:o.taglineTreatment,i="Collection"===n.__typename?n.tagline:n.bio;return{tagline:i,isTaglineVisible:!!i&&l===O.KI.TAGLINE_TREATMENT_HEADER}},Ie=(0,c.Ps)(Ce(),q.xW),Ae=(0,c.Ps)(ye()),Me=t(3658),ke=t(6401),Pe=t(62181),Te=t(24438),Re=t(74465);function He(){var e=o()(["\n fragment MetaHeaderTop_publisher on Publisher {\n __typename\n ... on Collection {\n slug\n ...CollectionMetabarActionsPopover_collection\n ...CollectionAvatar_collection\n ...MetaHeaderTop_collection\n }\n ... on User {\n username\n id\n }\n }\n ","\n ","\n ","\n"]);return He=function(){return e},e}function Ne(){var e=o()(["\n fragment MetaHeaderTop_post on Post {\n id\n collection {\n ...MetaHeaderTop_collection\n }\n pendingCollection {\n ...MetaHeaderTop_collection\n }\n }\n ","\n"]);return Ne=function(){return e},e}function De(){var e=o()(["\n fragment MetaHeaderTop_collection on Collection {\n id\n viewerIsEditor\n creator {\n id\n }\n }\n"]);return De=function(){return e},e}var Be,Fe="16px",Oe="10px",Ve=function(e){var n,t,r=e.publisher,o=e.post,l=e.withBottomBorder,i=(0,d.v9)((function(e){return e.config.authDomain})),a=(0,H.YC)().value,u="Collection"===(null==r?void 0:r.__typename)?r.slug:void 0,c="User"===(null==r?void 0:r.__typename)?r.username:null,m="Collection"===(null==r?void 0:r.__typename)?r:null!==(n=null==o?void 0:o.pendingCollection)&&void 0!==n?n:null==o?void 0:o.collection,p=a&&m&&(null==m||null===(t=m.creator)||void 0===t?void 0:t.id)===(null==a?void 0:a.id),v=null==m?void 0:m.viewerIsEditor,b=p||v,E=a&&"User"===(null==r?void 0:r.__typename)&&a.id===r.id;return s.createElement(ge.xu,{zIndex:Re.ZP.metabar,position:"relative",borderBottom:l?"BASE_LIGHTER":"NONE"},s.createElement(ge.Pm,null,s.createElement(ge.xu,{height:(0,Te.a)(62),display:"flex",alignItems:"center"},s.createElement(ge.xu,{flexGrow:"1",flexDirection:"row",display:"flex",alignItems:"center"},!a&&s.createElement(f.W,{featureString:"lo-meta-header",target:"sign-up-button"},s.createElement(ge.xu,{marginRight:"16px"},s.createElement(Pe.R9,{susiEntry:"nav_reg",isButton:!0,buttonStyle:"OBVIOUS",operation:"register"},"Get started"))),s.createElement(ke.a,{removeSpacing:!0,isButton:!1,collectionSlug:u,postId:null==o?void 0:o.id,username:c})),"Collection"===(null==r?void 0:r.__typename)&&b&&s.createElement(ge.xu,{marginRight:Fe,sm:{marginRight:Oe}},s.createElement(C.o,{collection:r},s.createElement(y.v,{collection:r,size:32}))),"User"===(null==r?void 0:r.__typename)&&a&&E&&s.createElement(ge.xu,{marginRight:Fe,sm:{marginRight:Oe}},s.createElement(L.W,{viewer:a,setIsMetabarLocked:function(){}},s.createElement(N.ZP,{user:a,scale:"XS"}))),s.createElement(h.Z,{href:"https://".concat(i,"/"),ariaLabel:"Homepage"},s.createElement(g.YR,null)))))},Ue=(0,c.Ps)(De()),We=(0,c.Ps)(Ne(),Ue),Ge=(0,c.Ps)(He(),C.s,y.d,Ue),ze=t(78820),je=t(34664),Ye=t(82395),Xe=t(15849),$e=t(98701),Ze=t(60054);function qe(){var e=o()(["\n fragment MetaHeader_post on Post {\n id\n ...SusiClickable_post\n ...MetaHeaderTop_post\n ...MetaHeaderActions_post\n }\n ","\n ","\n ","\n"]);return qe=function(){return e},e}function Qe(){var e=o()(["\n fragment MetaHeader_customStyleSheet on CustomStyleSheet {\n id\n header {\n headerScale\n horizontalAlignment\n }\n ...MetaHeaderBackground_customStyleSheet\n ...MetaHeaderEngagement_customStyleSheet\n ...MetaHeaderLogo_customStyleSheet\n ...MetaHeaderNavVertical_customStyleSheet\n ...MetaHeaderTagline_customStyleSheet\n ...MetaHeaderThemeProvider_customStyleSheet\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return Qe=function(){return e},e}function Ke(){var e=o()(["\n fragment MetaHeader_publisher on Publisher {\n __typename\n name\n ...MetaHeaderEngagement_publisher\n ...MetaHeaderLogo_publisher\n ...MetaHeaderNavVertical_publisher\n ...MetaHeaderTagline_publisher\n ...MetaHeaderThemeProvider_publisher\n ...MetaHeaderActions_publisher\n ...MetaHeaderTop_publisher\n ... on Collection {\n id\n favicon {\n id\n }\n tagline\n ...CollectionNavigationContextProvider_collection\n }\n ... on User {\n id\n bio\n }\n }\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return Ke=function(){return e},e}var Je={overflowX:"scroll",whiteSpace:"nowrap",scrollbarWidth:"none","-ms-overflow-style":"none","::-webkit-scrollbar":{display:"none"}},en=(Be={},u()(Be,O.v2.START,"flex-start"),u()(Be,O.v2.END,"flex-end"),u()(Be,O.v2.CENTER,"center"),Be),nn=function(e){return{maxWidth:(0,Te.a)(e.maxWidths.inset),minWidth:"0",width:"100%",marginTop:"12px"}},tn=function(e){var n,t,r,o=e.publisher,l=e.customStyleSheet,a=e.post,u=e.forceSmall,c=void 0!==u&&u,v=e.disableAboutLink,b=void 0!==v&&v,E=e.disableFollowersLink,S=void 0!==E&&E,_=(0,ce.uP)(l,o).shouldShowLogo,y=(0,p.Iq)(),C=(0,p.Fg)(),w=(0,d.v9)((function(e){return e.config.authDomain})),L=(0,d.v9)((function(e){return e.config.isAmp})),I=(0,H.YC)().value,A=(0,Q.jb)(),M=ln({customStyleSheet:l,forceSmall:c}),k=an({publisher:o,customStyleSheet:l,forceSmall:c}),P=(0,se.yR)(l,o).isNavVisible,T=function(){var e=(0,fe.O)(!1),n=i()(e,3),t=n[0],r=n[1],o=n[2],l=s.useRef(null),a=function(e){var n=l.current,t=e.target;n&&t&&!n.contains(t)&&o()};return s.useEffect((function(){return document.addEventListener("click",a,!0),document.addEventListener("touch",a,!0),function(){document.removeEventListener("click",a,!0),document.removeEventListener("touch",a,!0)}}),[]),{verticalNavRef:l,isVerticalNavVisible:t,showVerticalNav:r,hideVerticalNav:o}}(),R=T.verticalNavRef,N=T.isVerticalNavVisible,D=T.showVerticalNav,B=T.hideVerticalNav,F=M===O.w6.HEADER_SCALE_SMALL,V=F&&_,U=C.newFonts.heading,W=V?void 0:(0,$e.mu)((function(e){var n=i()(e,1)[0];return(0,Te.a)(-1*n)}),(0,Xe.AC)(U,"XS")),G=F?O.v2.START:null!==(n=null==l||null===(t=l.header)||void 0===t?void 0:t.horizontalAlignment)&&void 0!==n?n:A.horizontalAlignment,z=!!oe(l,c),Y=!F||P,X=F?P?184:115:334,$=F?115:X-(Y?70:0),Z=(0,ze.PB)(o,w),q="".concat((0,ze.Zu)(o)," Homepage"),K=!!re(l,c).backgroundColor,J=!(z||K)||Y,ee="Collection"===o.__typename?o:null;return s.createElement(m.Jr,{collection:ee},ee&&s.createElement(Ze.s,{faviconImageId:null==ee||null===(r=ee.favicon)||void 0===r?void 0:r.id}),s.createElement(ge.xu,{boxShadow:J?"inset 0 -1px 0 ".concat(C.baseColor.border.lighter):void 0,minHeight:(0,Te.a)(X),sm:{boxShadow:"inset 0 -1px 0 ".concat(C.baseColor.border.lighter),minHeight:(0,Te.a)(230)}},s.createElement(Me.OD,{publisher:o,customStyleSheet:l,withAltBackground:c},s.createElement(le,{customStyleSheet:l,withAltBackground:c},s.createElement(ge.xu,{display:"none",sm:{display:"block"}},s.createElement(Ve,{withBottomBorder:!(z||K),post:a,publisher:o})),s.createElement(ge.Pm,null,s.createElement(ge.xu,{display:"flex",flexDirection:F?"row":"column",alignItems:F?"center":void 0,justifyContent:"space-between",minHeight:(0,Te.a)($),sm:{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",minHeight:(0,Te.a)(98)}},!F&&s.createElement(ge.xu,{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:(0,Te.a)(41),sm:{display:"none"},zIndex:Re.ZP.metabar},s.createElement(je.f,null,(!I||L)&&s.createElement(s.Fragment,null,s.createElement(f.W,{featureString:"lo-meta-header",target:"sign-in-link"},s.createElement(he.F,{scale:"M"},s.createElement(Pe.R9,{linkStyle:"OBVIOUS",operation:"login",susiEntry:"nav_reg"},"Sign in"))),s.createElement(f.W,{featureString:"lo-meta-header",target:"sign-up-button"},s.createElement(ge.xu,{marginLeft:"14px",marginRight:"24px"},s.createElement(Pe.R9,{buttonSize:"REGULAR",isButton:!0,buttonStyle:"OBVIOUS",operation:"register",post:a,susiEntry:"nav_reg"},"Get started")))),I&&s.createElement(j,{publisher:o,post:a,hideAboutLink:b})),s.createElement(h.Z,{href:"https://".concat(w,"/"),ariaLabel:"Homepage"},s.createElement(g.YR,{contrast:K?"darker":"normal"}))),s.createElement(ge.xu,{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"flex-start"},s.createElement("div",{className:y({paddingTop:W,display:"flex",width:"100%"})},s.createElement(ge.xu,{width:"100%",display:"flex",flexDirection:F?"row":"column",alignItems:F?_?"center":"flex-end":en[G],marginBottom:F?"0px":"38px",marginTop:F?"-32px":"25px",textAlign:G===O.v2.CENTER?"center":void 0,flexWrap:"wrap",sm:{display:"flex",alignItems:F?"flex-start":void 0,flexDirection:F?"column":void 0,marginBottom:"28px",marginTop:"0px"}},s.createElement(ge.xu,{marginLeft:G===O.v2.START?void 0:(0,Te.a)(24),marginRight:(0,Te.a)(24),sm:{marginTop:"28px"},marginTop:"32px"},s.createElement(h.Z,{href:Z,ariaLabel:q},s.createElement(ce.fI,{publisher:o,customStyleSheet:l,withAltNameTreatment:c,forcedTextScale:F?"XS":void 0,withTextColorSubtle:!1}))),k&&s.createElement("div",{className:y(nn)},s.createElement(we,{customStyleSheet:l,publisher:o})),!Y&&s.createElement(ge.xu,{sm:{display:"none"},marginTop:"32px"},s.createElement(ue.i_,{customStyleSheet:l,publisher:o,disableAboutLink:b,disableFollowersLink:S})))),F&&s.createElement(ge.xu,{display:"flex",justifySelf:"flex-end",alignItems:"center",sm:{display:"none"},zIndex:Re.ZP.metabar},s.createElement(je.f,null,(!I||L)&&s.createElement(s.Fragment,null,s.createElement(f.W,{featureString:"lo-meta-header",target:"sign-in-link"},s.createElement(he.F,{scale:"M"},s.createElement(Pe.R9,{linkStyle:"OBVIOUS",operation:"login",susiEntry:"nav_reg"},"Sign in"))),s.createElement(f.W,{featureString:"lo-meta-header",target:"sign-up-button"},s.createElement(ge.xu,{marginLeft:"14px",marginRight:"24px",marginTop:"-3px",marginBottom:"-3px"},s.createElement(Pe.R9,{isButton:!0,buttonSize:"REGULAR",buttonStyle:"OBVIOUS",operation:"register",post:a,susiEntry:"nav_reg"},"Get started")))),I&&s.createElement(j,{publisher:o,hideAboutLink:b})),s.createElement(h.Z,{href:"https://".concat(w,"/"),ariaLabel:"Homepage"},s.createElement(g.YR,{contrast:K?"darker":"normal"})))))))),s.createElement(ge.xu,{display:Y?"block":"none",sm:{display:"block"}},s.createElement(ge.Pm,null,s.createElement("div",{className:P?y(Je):void 0},s.createElement(ge.xu,{height:(0,Te.a)(70),display:"flex",alignItems:"center",paddingTop:"1px"},s.createElement(ge.xu,{margin:G===O.v2.CENTER?"0 auto":void 0,sm:P?{margin:"0"}:void 0},s.createElement(ue.i_,{customStyleSheet:l,publisher:o,disableAboutLink:b,disableFollowersLink:S,followersLinkInFront:!0})),P&&s.createElement(ge.xu,{display:"none",sm:{display:"block"},position:"absolute",right:"24px"},N?s.createElement(Ye.R,{onClick:B,ariaLabel:"Collapse navbar"}):s.createElement(x,{onClick:D,ariaLabel:"Expand navbar"}))))))),P&&N&&s.createElement(ge.xu,{borderBottom:"BASE_LIGHTER"},s.createElement(ge.Pm,null,s.createElement(be,{ref:R,customStyleSheet:l,publisher:o}))))},rn=(0,c.Ps)(Ke(),m.hD,ue.QP,ce.XN,Se,Ae,Me.k8,X,Ge),on=(0,c.Ps)(Qe(),ae,ue.Al,ce.Ig,Ee,Ie,Me.a6),ln=((0,c.Ps)(qe(),Pe.qU,We,$),function(e){var n,t,r=e.customStyleSheet,o=e.forceSmall,l=void 0!==o&&o,i=(0,Q.jb)();return l?O.w6.HEADER_SCALE_SMALL:null!==(n=null==r||null===(t=r.header)||void 0===t?void 0:t.headerScale)&&void 0!==n?n:i.headerScale}),an=function(e){var n=e.publisher,t=e.customStyleSheet,r=e.forceSmall,o=void 0!==r&&r,l=Le(t,n).isTaglineVisible,i=ln({customStyleSheet:t,forceSmall:o});return l&&i!==O.w6.HEADER_SCALE_SMALL}},18704:(e,n,t)=>{"use strict";t.d(n,{i_:()=>E,Al:()=>S,QP:()=>_});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(84014),u=t(42691),c=t(62117),s=t(45755),d=t(15886),m=t(9785),g=t(68421),h=t(22091),f=t(64504),p=t(14391);function v(){var e=o()(["\n fragment MetaHeaderEngagement_publisher on Publisher {\n ...MetaHeaderNav_publisher\n ...PublisherAboutLink_publisher\n ...PublisherFollowButton_publisher\n ...PublisherFollowerCount_publisher\n ... on Collection {\n creator {\n id\n }\n }\n }\n ","\n ","\n ","\n ","\n"]);return v=function(){return e},e}function b(){var e=o()(["\n fragment MetaHeaderEngagement_customStyleSheet on CustomStyleSheet {\n ...MetaHeaderNav_customStyleSheet\n }\n ","\n"]);return b=function(){return e},e}var E=function(e){var n=e.customStyleSheet,t=e.publisher,r=e.disableAboutLink,o=void 0!==r&&r,l=e.disableFollowersLink,v=void 0!==l&&l,b=e.followersLinkInFront,E=void 0!==b&&b,S=(0,m.YC)().value,_=function(e,n){var t,r=!!n&&"User"===e.__typename&&n.id===e.id,o=!!n&&"Collection"===e.__typename&&n.id===(null==e||null===(t=e.creator)||void 0===t?void 0:t.id);return{isFollowButtonVisible:!r&&!o,isFollowerCountVisible:(0,d.ds)(e).isFollowerCountVisible}}(t,S),x=_.isFollowButtonVisible,y=_.isFollowerCountVisible,C=(0,a.yR)(n,t).isNavVisible,w=i.createElement(h.xu,{marginTop:"-14px",marginBottom:"-16px"},i.createElement(s.D,{publisher:t,susiEntry:"User"===t.__typename?"follow_profile":"follow_header",buttonSize:"REGULAR"}));return i.createElement(f.F,{tag:"span",scale:"L",leadingTrim:!0},i.createElement(h.xu,{display:"flex",alignItems:"center"},x&&E&&i.createElement(h.xu,{marginRight:"32px"},w),y&&i.createElement(i.Fragment,null,i.createElement(h.xu,{display:"inline-flex",flexDirection:"column",marginRight:"12px"},i.createElement(g.o,{flag:p.T3.FOLLOWERS_TOOLTIP,isVisible:"User"===t.__typename&&t.id===(null==S?void 0:S.id),targetDistance:15,text:"You can now see a full list of your followers here, and people you follow from the About page."},i.createElement(d.Jh,{publisher:t,disableLink:v})),C&&v&&i.createElement(u.t,null)),C&&i.createElement(h.xu,{marginLeft:"12px",display:"block",sm:{display:"none"}},"·")),C&&i.createElement(h.xu,{marginLeft:"12px",display:"block",sm:{display:"none"}},i.createElement(a.Ex,{customStyleSheet:n,publisher:t})),i.createElement(h.xu,{marginLeft:"12px",display:"flex",flexDirection:"column",sm:C?{display:"none"}:void 0},i.createElement(c.w,{publisher:t,disableLink:o}),C&&o&&i.createElement(u.t,null)),x&&!E&&i.createElement(h.xu,{marginLeft:"24px",sm:{marginLeft:C?"0px":"24px"}},w)))},S=(0,l.Ps)(b(),a.Qc),_=(0,l.Ps)(v(),a.Y$,c.u,s.f,d.jS)},55014:(e,n,t)=>{"use strict";t.d(n,{fI:()=>H,uP:()=>N,Ig:()=>B,XN:()=>F});var r,o,l,i,a=t(28655),u=t.n(a),c=t(59713),s=t.n(c),d=t(71439),m=t(67294),g=t(2330),h=t(52872),f=t(49925),p=t(85489),v=t(65849),b=t(8558),E=t(67995),S=t(28309),_=t(14391),x=t(90038);function y(){var e=u()(["\n fragment MetaHeaderLogo_publisher on Publisher {\n __typename\n id\n name\n ... on Collection {\n logo {\n ...MetaHeaderLogo_imageMetadata\n ...PublisherLogo_image\n }\n }\n ...auroraHooks_publisher\n }\n ","\n ","\n ","\n"]);return y=function(){return e},e}function C(){var e=u()(["\n fragment MetaHeaderLogo_customStyleSheet on CustomStyleSheet {\n id\n header {\n nameColor {\n ...getHexFromColorValue_colorValue\n }\n nameTreatment\n postNameTreatment\n logoImage {\n ...MetaHeaderLogo_imageMetadata\n }\n logoScale\n }\n }\n ","\n ","\n"]);return C=function(){return e},e}function w(){var e=u()(["\n fragment MetaHeaderLogo_imageMetadata on ImageMetadata {\n id\n originalWidth\n originalHeight\n ...PublisherLogo_image\n }\n ","\n"]);return w=function(){return e},e}var L=function(e,n){var t,r,o=null!==(t=null==n?void 0:n.originalWidth)&&void 0!==t?t:0,l=null!==(r=null==n?void 0:n.originalHeight)&&void 0!==r?r:0,i=Math.min(e.width/o,e.height/l);return{width:Math.floor(i*o),height:Math.floor(i*l)}},I=(r={},s()(r,_.w6.HEADER_SCALE_SMALL,{small:{width:175,height:70},large:{width:175,height:70}}),s()(r,_.w6.HEADER_SCALE_MEDIUM,{small:{width:225,height:90},large:{width:225,height:90}}),s()(r,_.w6.HEADER_SCALE_LARGE,{small:{width:275,height:110},large:{width:275,height:110}}),r),A=(o={},s()(o,_.w6.HEADER_SCALE_SMALL,{small:{width:160,height:32},large:{width:240,height:48}}),s()(o,_.w6.HEADER_SCALE_MEDIUM,{small:{width:280,height:56},large:{width:360,height:72}}),s()(o,_.w6.HEADER_SCALE_LARGE,{small:{width:280,height:64},large:{width:520,height:104}}),o),M=(l={},s()(l,_.w6.HEADER_SCALE_SMALL,{small:{width:280,height:24},large:{width:320,height:32}}),s()(l,_.w6.HEADER_SCALE_MEDIUM,{small:{width:280,height:40},large:{width:600,height:60}}),s()(l,_.w6.HEADER_SCALE_LARGE,{small:{width:280,height:60},large:{width:680,height:80}}),l),k=function(e,n){var t,r,o=(null!==(t=null==n?void 0:n.originalWidth)&&void 0!==t?t:0)/(null!==(r=null==n?void 0:n.originalHeight)&&void 0!==r?r:0);return o<=2.5?I[e]:o<5?A[e]:M[e]},P=function(e,n){var t=k(e,n),r=L(t.small,n),o=L(t.large,n);return{width:{xs:"".concat(r.width,"px"),sm:"".concat(r.width,"px"),md:"".concat(o.width,"px"),lg:"".concat(o.width,"px"),xl:"".concat(o.width,"px")},height:{xs:"".concat(r.height,"px"),sm:"".concat(r.height,"px"),md:"".concat(o.height,"px"),lg:"".concat(o.height,"px"),xl:"".concat(o.height,"px")}}},T=(i={},s()(i,_.w6.HEADER_SCALE_SMALL,{xs:"XS",sm:"XS",md:"M",lg:"M",xl:"M"}),s()(i,_.w6.HEADER_SCALE_MEDIUM,{xs:"XS",sm:"XS",md:"L",lg:"L",xl:"L"}),s()(i,_.w6.HEADER_SCALE_LARGE,{xs:"XS",sm:"XS",md:"XL",lg:"XL",xl:"XL"}),i),R={wordBreak:"break-word"},H=function(e){var n,t,r,o,l,i,a,u=e.customStyleSheet,c=e.publisher,s=e.withTextColorSubtle,d=void 0!==s&&s,f=e.withAltNameTreatment,y=e.forcedTextScale,C=e.forceSmall,w=void 0!==C&&C,I=(0,S.Iq)(),A=(null!==(n=null==u?void 0:u.header)&&void 0!==n?n:{}).nameColor,M=(0,p.eQ)(A),H=(0,v.jb)(),D=w?_.w6.HEADER_SCALE_SMALL:null!==(t=null==u||null===(r=u.header)||void 0===r?void 0:r.logoScale)&&void 0!==t?t:H.logoScale,B=null!==(o=null==u||null===(l=u.header)||void 0===l?void 0:l.nameTreatment)&&void 0!==o?o:H.nameTreatment,F=null!==(i=null==u||null===(a=u.header)||void 0===a?void 0:a.postNameTreatment)&&void 0!==i?i:H.postNameTreatment,O=[(0,E.n)({name:"heading",scale:T[D],leadingTrim:!0}),function(e){return{color:M||e.baseColor.text[d?"normal":"dark"]}},R],V=N(u,c),U=V.logo,W=V.shouldShowLogo,G=(null==U?void 0:U.originalHeight)||0,z=(null==U?void 0:U.originalWidth)||0,j=(0,h.p)("xs",G,z);if(y)return m.createElement(g.r,{withTextColorSubtle:d,customNameColor:M,nameTreatment:f?F:B,maxHeight:35,maxWidth:j.maxWidth,textScale:y,logo:U,name:c.name,clamp:0,leadingTrim:!0,withWordBreak:!0});if(!W||!U)return m.createElement("span",{className:I(O)},c.name||"");var Y=k(D,U),X=L(Y.large,U);return m.createElement(b.UV,{miroId:U.id,alt:c.name||"Publication logo",width:X.width,height:X.height,strategy:x._S.Resample,rules:P(null!=D?D:H.logoScale,U)})},N=function(e,n){var t,r,o,l=(0,v.jb)(),i=null==e||null===(t=e.header)||void 0===t?void 0:t.logoImage,a=null!==(r=null==e||null===(o=e.header)||void 0===o?void 0:o.nameTreatment)&&void 0!==r?r:l.nameTreatment,u=(0,f.Iq)(n),c=void 0!==i,s="Collection"===n.__typename?n.logo:null,d=u&&c?i:s;return{logo:d,shouldShowLogo:(null==d?void 0:d.id)&&a===_.m3.NAME_TREATMENT_LOGO}},D=(0,d.Ps)(w(),g.f),B=(0,d.Ps)(C(),p.xW,D),F=(0,d.Ps)(y(),D,g.f,f.C5)},84014:(e,n,t)=>{"use strict";t.d(n,{yR:()=>p,Ex:()=>v,Qc:()=>b,Y$:()=>E});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(5977),u=t(42691),c=t(65393),s=t(22091),d=t(64504),m=t(14391),g=t(87598);function h(){var e=o()(["\n fragment MetaHeaderNav_publisher on Publisher {\n id\n ...MetaHeaderNavLink_publisher\n }\n ","\n"]);return h=function(){return e},e}function f(){var e=o()(["\n fragment MetaHeaderNav_customStyleSheet on CustomStyleSheet {\n id\n navigation {\n navItems {\n name\n ...MetaHeaderNavLink_headerNavigationItem\n }\n }\n }\n ","\n"]);return f=function(){return e},e}var p=function(e,n){var t,r=((null==e||null===(t=e.navigation)||void 0===t?void 0:t.navItems)||[]).filter((function(e){var n;return!(null===(n=e.name)||void 0===n||!n.trim())}));return{isNavVisible:r.length>0&&"Collection"===n.__typename,navItems:r}},v=function(e){var n=e.customStyleSheet,t=e.publisher,r=S(),o=p(n,t),l=o.navItems;if(!o.isNavVisible)return null;var a=!1;return i.createElement(s.xu,{display:"flex",alignItems:"center",tag:"nav"},l.map((function(e,n){var o=r(e)&&!a;return o&&(a=!0),i.createElement(s.xu,{key:n,tag:"span",margin:"0 12px",display:"flex",flexDirection:"column"},o?i.createElement(d.F,{scale:"L",color:"DARKER"},e.name):i.createElement(c.d9,{navItem:e,publisher:t}),o&&i.createElement(u.t,null))})))},b=(0,l.Ps)(f(),c.Ze),E=(0,l.Ps)(h(),c.ud),S=function(){var e=(0,g.G)(),n=(0,a.TH)();return function(t){var r,o;switch(t.type){case m.Me.NAV_TYPE_LINK:return e(null!==(r=t.href)&&void 0!==r?r:"");case m.Me.NAV_TYPE_TAG:return!(null===(o=t.tagSlugs)||void 0===o||!o.length)&&n.pathname.includes("tagged/".concat(t.tagSlugs[0]))}return!1}}},42691:(e,n,t)=>{"use strict";t.d(n,{t:()=>l});var r=t(67294),o=t(22091),l=function(){return r.createElement(o.xu,{position:"relative",width:"100%"},r.createElement(o.xu,{position:"absolute",width:"100%",top:"23px",borderBottom:"BASE_DARKER"}))}},65393:(e,n,t)=>{"use strict";t.d(n,{d9:()=>m,Ze:()=>g,ud:()=>h});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(12291),u=t(72214),c=t(22091);function s(){var e=o()(["\n fragment MetaHeaderNavLink_publisher on Publisher {\n id\n ...getNavItemHref_publisher\n }\n ","\n"]);return s=function(){return e},e}function d(){var e=o()(["\n fragment MetaHeaderNavLink_headerNavigationItem on HeaderNavigationItem {\n name\n ...getNavItemHref_headerNavigationItem\n }\n ","\n"]);return d=function(){return e},e}var m=function(e){var n=e.publisher,t=e.navItem,r=(0,a.v9)((function(e){return e})),o=r.config.authDomain,l=r.navigation.hostname,s=(0,u.hl)(n,t,o),d=s.startsWith("/")||s.startsWith("#")||s.includes(o)||s.includes(l);return i.createElement(c.rU,{href:s,target:d?void 0:"_blank"},t.name)},g=(0,l.Ps)(d(),u.qQ),h=(0,l.Ps)(s(),u.EV)},3658:(e,n,t)=>{"use strict";t.d(n,{_5:()=>f,OD:()=>v,XL:()=>b,a6:()=>E,k8:()=>S});var r=t(28655),o=t.n(r),l=t(82492),i=t.n(l),a=t(71439),u=t(67294),c=t(28309),s=t(534);function d(){var e=o()(["\n fragment MetaHeaderThemeProvider_publisher on Publisher {\n __typename\n customStyleSheet {\n ...MetaHeaderThemeProvider_customStyleSheet\n }\n ... on Collection {\n colorPalette {\n ...customDefaultBackgroundTheme_colorPalette\n }\n }\n }\n ","\n ","\n"]);return d=function(){return e},e}function m(){var e=o()(["\n fragment MetaHeaderThemeProvider_customStyleSheet on CustomStyleSheet {\n id\n ...useMetaHeaderTheme_customStyleSheet\n }\n ","\n"]);return m=function(){return e},e}function g(){var e=o()(["\n fragment useMetaHeaderTheme_customStyleSheet on CustomStyleSheet {\n ...customDefaultBackgroundTheme_customStyleSheet\n global {\n colorPalette {\n primary {\n colorPalette {\n tintBackgroundSpectrum {\n ...ThemeUtil_colorSpectrum\n }\n }\n }\n }\n }\n header {\n backgroundColor {\n colorPalette {\n tintBackgroundSpectrum {\n ...ThemeUtil_colorSpectrum\n }\n }\n }\n postBackgroundColor {\n colorPalette {\n tintBackgroundSpectrum {\n ...ThemeUtil_colorSpectrum\n }\n }\n }\n backgroundImage {\n id\n }\n }\n }\n ","\n ","\n"]);return g=function(){return e},e}var h=function(e,n){var t,r,o,l,i,a,u=null==e||null===(t=e.header)||void 0===t||null===(r=t.backgroundColor)||void 0===r||null===(o=r.colorPalette)||void 0===o?void 0:o.tintBackgroundSpectrum,c=null==e||null===(l=e.header)||void 0===l||null===(i=l.postBackgroundColor)||void 0===i||null===(a=i.colorPalette)||void 0===a?void 0:a.tintBackgroundSpectrum;return n&&null!=c?c:u},f=function(e){var n,t,r,o,l,i,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=arguments.length>2?arguments[2]:void 0,d=(0,c.Fg)(),m=h(e,a),g=(null==e||null===(n=e.header)||void 0===n||null===(t=n.backgroundImage)||void 0===t?void 0:t.id)||m,f=null==e||null===(r=e.global)||void 0===r||null===(o=r.colorPalette)||void 0===o||null===(l=o.primary)||void 0===l||null===(i=l.colorPalette)||void 0===i?void 0:i.tintBackgroundSpectrum,v=m?(0,s.yd)({tint:m,accentTint:g?null:f},d):(0,s.zI)(e,d,u);return p(v)},p=function(e){return i()({},e,{newFonts:{heading:{fontSize:{XL:80,L:64,M:48,S:36,XS:27},lineHeight:{XL:88,L:72,M:56,S:40,XS:34},weight:700}}})},v=function(e){var n=e.publisher,t=e.customStyleSheet,r=e.children,o=e.withAltBackground,l="Collection"===n.__typename?n.colorPalette:null,i=f(t,o,l);return u.createElement(c.f6,{theme:i},r)},b=(0,a.Ps)(g(),s.Ui,s.zK),E=(0,a.Ps)(m(),b),S=(0,a.Ps)(d(),E,s.L9)},62117:(e,n,t)=>{"use strict";t.d(n,{w:()=>g,u:()=>h});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(12291),u=t(22091),c=t(64504),s=t(61250),d=t(27952);function m(){var e=o()(["\n fragment PublisherAboutLink_publisher on Publisher {\n __typename\n id\n ... on Collection {\n slug\n }\n ... on User {\n ...userUrl_user\n }\n }\n ","\n"]);return m=function(){return e},e}var g=function(e){var n,t=e.publisher,r=e.disableLink,o=void 0!==r&&r,l=(0,a.v9)((function(e){return e.config}),a.wU).authDomain,m=(0,s.GE)("ShowCollectionMasthead",{collectionSlug:"Collection"===t.__typename&&null!==(n=t.slug)&&void 0!==n?n:""}),g="User"===t.__typename?(0,d.Jq)(t,l):"",h="Collection"===t.__typename?m:g;return o?i.createElement(c.F,{tag:"span",scale:"L",color:"DARKER"},"About"):i.createElement(u.rU,{href:h},"About")},h=(0,l.Ps)(m(),d.$m)},45755:(e,n,t)=>{"use strict";t.d(n,{D:()=>s,f:()=>d});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(84783),u=t(31001);function c(){var e=o()(["\n fragment PublisherFollowButton_publisher on Publisher {\n __typename\n ... on Collection {\n ...CollectionFollowButton_collection\n }\n ... on User {\n ...UserFollowButton_user\n }\n }\n ","\n ","\n"]);return c=function(){return e},e}var s=function(e){var n=e.publisher,t=e.buttonSize,r=e.isLinkStyle,o=void 0!==r&&r,l=e.susiEntry;return"Collection"===n.__typename?i.createElement(a.Fp,{buttonSize:t,collection:n,isLinkStyle:o,susiEntry:l}):i.createElement(u.Bv,{buttonSize:t,user:n,isLinkStyle:o,susiEntry:l})},d=(0,l.Ps)(c(),a.Iq,u.sj)},15886:(e,n,t)=>{"use strict";t.d(n,{ds:()=>g,Jh:()=>h,jS:()=>f});var r=t(28655),o=t.n(r),l=t(71439),i=t(67294),a=t(22091),u=t(64504),c=t(61250),s=t(27390),d=t(27952);function m(){var e=o()(["\n fragment PublisherFollowerCount_publisher on Publisher {\n __typename\n id\n ... on Collection {\n slug\n subscriberCount\n }\n ... on User {\n socialStats {\n followerCount\n }\n username\n }\n }\n"]);return m=function(){return e},e}var g=function(e){var n,t,r=null!==(n="Collection"===e.__typename?e.subscriberCount:null===(t=e.socialStats)||void 0===t?void 0:t.followerCount)&&void 0!==n?n:0;return{followerCount:r,isFollowerCountVisible:r>0}},h=function(e){var n,t,r=e.publisher,o=e.disableLink,l=void 0!==o&&o,m=e.linkStyle,h=void 0===m?"SUBTLE":m,f=g(r),p=f.followerCount,v=f.isFollowerCountVisible,b=(0,c.GE)("ShowLiteCollectionFollowers",{collectionSlug:"Collection"===r.__typename&&null!==(n=r.slug)&&void 0!==n?n:""}),E="User"===r.__typename?(0,d.ol)(null!==(t=r.username)&&void 0!==t?t:""):b,S=!l;if(!v)return null;var _="".concat((0,s.pY)(p)," Follower").concat(1===p?"":"s");return S?i.createElement(a.rU,{href:E,linkStyle:h},_):i.createElement(u.F,{tag:"span",scale:"L",color:"DARKER"},_)},f=(0,l.Ps)(m())},78820:(e,n,t)=>{"use strict";t.d(n,{Zu:()=>x,n_:()=>S,xt:()=>v,KQ:()=>b,In:()=>E,PB:()=>_});var r=t(63038),o=t.n(r),l=t(28655),i=t.n(l),a=t(46829),u=t(71439),c=t(67294);function s(){var e=i()(["\n mutation postSetPinnedByCreatorAt($postId: ID!, $isPinned: Boolean!) {\n postSetPinnedByCreatorAt(targetPostId: $postId, isPinned: $isPinned) {\n __typename\n ... on Post {\n id\n pinnedByCreatorAt\n }\n }\n }\n"]);return s=function(){return e},e}function d(){var e=i()(["\n mutation setPinnedAt($postId: ID!, $collectionId: ID!, $pinnedAt: Boolean!) {\n __typename\n setPinnedAt(targetPostId: $postId, targetCollectionId: $collectionId, pinnedAt: $pinnedAt) {\n __typename\n ... on Post {\n id\n collection {\n id\n }\n pendingCollection {\n id\n }\n pinnedAt\n }\n }\n }\n"]);return d=function(){return e},e}var m=(0,u.Ps)(d()),g=(0,u.Ps)(s()),h=t(61250),f=t(27952);function p(){var e=i()(["\n fragment useIsPinnedInContext_post on Post {\n id\n collection {\n id\n }\n pendingCollection {\n id\n }\n pinnedAt\n pinnedByCreatorAt\n }\n"]);return p=function(){return e},e}var v=(0,u.Ps)(p()),b=function(e){var n=e.id,t=e.collection,r=e.pendingCollection,l=e.pinnedAt,i=(t||r||{id:""}).id,u=(0,a.useMutation)(m,{optimisticResponse:{__typename:"Mutation",setPinnedAt:{__typename:"Post",id:n,collection:t,pendingCollection:r,pinnedAt:l?0:Date.now()}}}),s=o()(u,1)[0],d=c.useCallback((function(){return s({variables:{postId:n,collectionId:i,pinnedAt:!l}})}),[n,i,l,s]);return[l,d]},E=function(e){var n=e.id,t=e.pinnedByCreatorAt,r=(0,a.useMutation)(g,{optimisticResponse:{postSetPinnedByCreatorAt:{__typename:"Post",id:n,pinnedByCreatorAt:t?0:Date.now()}}}),l=o()(r,1)[0],i=c.useCallback((function(){return l({variables:{postId:n,isPinned:!t}})}),[n,l,t]);return[t,i]},S=function(e,n){var t=b(e),r=o()(t,2),l=r[0],i=r[1],a=E(e),u=o()(a,2),s=u[0],d=u[1],m=c.useCallback((function(){return"Collection"===n?i():d()}),[n,i,d]);return["Collection"===n?l:s,m]},_=function(e,n){var t="Collection"===e.__typename?e.slug:null,r=(0,h.GE)("ShowCollectionHome",t?{collectionSlug:t}:{collectionSlug:""});return"Collection"===e.__typename?r:"User"===e.__typename&&e.username?(0,f.AW)(e,n):""},x=function(e){switch(e.__typename){case"Collection":return"Publication";case"User":return"Author";default:return"Publisher"}}},82395:(e,n,t)=>{"use strict";t.d(n,{R:()=>h});var r=t(67294),o=t(28309);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{clipRule:"evenodd",d:"M10.08.32L5.78 4.6 1.5.3.88.94l4.3 4.29L.88 9.5l.62.61 4.29-4.29 4.29 4.29.61-.61L6.4 5.2 10.69.94"});function a(){return(a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var u=r.createElement("path",{d:"M12.6.59L7 6.19 1.39.6l-.8.8L6.19 7 .6 12.61l.8.8L7 7.81l5.61 5.6.8-.8L7.81 7l5.6-5.61"});function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var s=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.08.89l-3.5 3.5-3.5-3.5-.5.5 3.5 3.5-3.5 3.5.5.5 3.5-3.5 3.5 3.5.5-.5-3.5-3.5 3.5-3.5"}),d={EXTRA_SMALL:function(e){return r.createElement("svg",c({width:9,height:9},e),s)},SMALL:function(e){return r.createElement("svg",l({width:11,height:11,fill:"none"},e),i)},MEDIUM:function(e){return r.createElement("svg",a({width:14,height:14},e),u)}},m=function(e){return{fill:e.baseColor.fill.lighter,":hover":{fill:e.baseColor.fill.darker},":focus":{fill:e.baseColor.fill.darker}}},g=function(e){return{display:"flex",alignItems:"center",justifyContent:"center",padding:"EXTRA_SMALL"===e?"4px":"0px",margin:"0px",border:"0px",cursor:"pointer"}};function h(e){var n=e.onClick,t=e.size,l=void 0===t?"MEDIUM":t,i=e.ariaLabel,a=void 0===i?"close":i,u=(0,o.Iq)(),c=d[l];return r.createElement("button",{className:u(g(l)),onClick:n,"aria-label":a},r.createElement(c,{className:u(m)}))}},85489:(e,n,t)=>{"use strict";t.d(n,{eQ:()=>M,xW:()=>k,Z:()=>P,hB:()=>T,MQ:()=>R,BH:()=>H,fl:()=>N,zO:()=>W,_3:()=>G});var r=t(50008),o=t.n(r),l=t(63038),i=t.n(l),a=t(28655),u=t.n(a),c=t(14176),s=t.n(c),d=t(45220),m=t.n(d),g=t(18446),h=t.n(g),f=t(1469),p=t.n(f),v=t(71439);function b(){var e=u()(["\n fragment SupportedTypeStyles_styleNode on StyleNode {\n type {\n color\n fontSize {\n phone\n tablet\n desktop\n }\n fontStyle\n letterSpacing\n lineHeight {\n phone\n tablet\n desktop\n }\n textAlign\n textDecoration\n textTransform\n weight\n }\n }\n"]);return b=function(){return e},e}function E(){var e=u()(["\n fragment SupportedContainerStyles_styleNode on StyleNode {\n container {\n backgroundColor\n borderColor\n borderRadius\n borderStyle\n borderWidth\n marginBottom\n marginLeft\n marginRight\n marginTop\n paddingBottom\n paddingLeft\n paddingRight\n paddingTop\n }\n }\n"]);return E=function(){return e},e}function S(){var e=u()(["\n fragment getHasCustomBackgroundColor_publisher on Publisher {\n customStyleSheet {\n ...getHasCustomBackgroundColor_customStyleSheet\n }\n }\n ","\n"]);return S=function(){return e},e}function _(){var e=u()(["\n fragment getHasCustomBackgroundColor_customStyleSheet on CustomStyleSheet {\n id\n global {\n colorPalette {\n background {\n rgb\n }\n }\n }\n }\n"]);return _=function(){return e},e}function x(){var e=u()(["\n fragment getHasCustomPrimaryColor_publisher on Publisher {\n customStyleSheet {\n ...getHasCustomPrimaryColor_customStyleSheet\n }\n }\n ","\n"]);return x=function(){return e},e}function y(){var e=u()(["\n fragment getHasCustomPrimaryColor_customStyleSheet on CustomStyleSheet {\n id\n global {\n colorPalette {\n primary {\n rgb\n }\n }\n }\n }\n"]);return y=function(){return e},e}function C(){var e=u()(["\n fragment getOpaqueHexFromColorValue_colorValue on ColorValue {\n rgb\n }\n"]);return C=function(){return e},e}function w(){var e=u()(["\n fragment getHexFromColorValue_colorValue on ColorValue {\n rgb\n alpha\n }\n"]);return w=function(){return e},e}var L,I,A=/^#?([0-9a-fA-F]{6})([0-9a-fA-F]{2})?$|^#?([0-9a-fA-F]{3})([0-9a-fA-F]{1})?$/;!function(e){e.FULL_WIDTH="FULL_WIDTH",e.HALF_WIDTH="HALF_WIDTH"}(L||(L={})),function(e){e.TEXT="TEXT",e.COLOR_PICKER="COLOR_PICKER"}(I||(I={}));var M=function(e){if(!e)return e;var n=e.rgb,t=e.alpha;return"#".concat(n).concat(t||"")},k=(0,v.Ps)(w()),P=function(e,n){if(!e)return e;var t=e.rgb;return"#".concat(t).concat(null!=n?n:"")},T=(0,v.Ps)(C()),R=function(e){var n=A.exec(e);if(!n)return null;var t=i()(n,5),r=t[1],o=t[2],l=t[3],a=t[4];return{rgb:r||l,alpha:o||a||null}},H=function(e){if(!e)return null;var n=/rgba?\((\d+),(\d+),(\d+),?(\d*\.?\d+)?\)/.exec(e.replace(/\s+/g,""))||[],t=i()(n,5),r=[t[1],t[2],t[3],t[4]];return r[3]=r[3]?Math.round(255*+r[3]).toString():"255",{rgb:(r=r.map((function(e){return(+e).toString(16).padStart(2,"0")}))).slice(0,3).join(""),alpha:r[3]||null}},N=function(e){var n=null==e?void 0:e.container;if(!e||!n)return function(){return{}};var t=s()(n,m());return delete t.__typename,function(e){return D(t)}},D=function(e){var n=Object.entries(e).map((function(e){var n=i()(e,2),t=n[0],r=n[1];return[t,"object"===o()(r)?r:B(r)]}));return F(n)},B=function(e){return e?{xs:e,sm:e,md:e,lg:e,xl:e}:e},F=function(e){return e.reduce((function(e,n){return e[n[0]]=n[1],e}),{})},O=(0,v.Ps)(y()),V=((0,v.Ps)(x(),O),(0,v.Ps)(_())),U=((0,v.Ps)(S(),V),function e(n){if("object"===o()(n)&&null!==n){for(var t=0,r=Object.values(n);t<r.length;t++)if(!e(r[t]))return!1;return!0}return null==n||""===n}),W=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!n&&!t)return U(n)&&U(t);if(!t)return U(n);if(!n)return U(t);if("object"!==o()(n))return n===t;if(p()(n)&&p()(t))return h()(n,t);for(var l=0,a=Object.entries(n);l<a.length;l++){var u=i()(a[l],2),c=u[0],s=u[1];if(!r.includes(c)){var d=t[c];if(!e(s,d))return!1}}return!0},G=(0,v.Ps)(E());(0,v.Ps)(b())},65849:(e,n,t)=>{"use strict";t.d(n,{jb:()=>o,Jq:()=>i});var r=t(14391),o=function(){return l()},l=function(){return{horizontalAlignment:r.v2.START,headerScale:r.w6.HEADER_SCALE_SMALL,logoScale:r.w6.HEADER_SCALE_MEDIUM,backgroundColorDisplayMode:r.PG.COLOR_DISPLAY_MODE_SOLID,backgroundImageDisplayMode:r.zc.IMAGE_DISPLAY_MODE_FILL,backgroundImageVerticalAlignment:r.v2.START,nameTreatment:r.m3.NAME_TREATMENT_TEXT,postNameTreatment:r.m3.NAME_TREATMENT_LOGO,taglineTreatment:r.KI.TAGLINE_TREATMENT_SIDEBAR,backgroundColor:null,secondaryBackgroundColor:null,postBackgroundColor:null,taglineColor:null,backgroundImage:null,logoImage:null,nameColor:null}},i=function(){return a()},a=function(){return{font1:{name:r.G7.SANS_SERIF_1},font2:{name:r.G7.SANS_SERIF_1},font3:{name:r.G7.SERIF_2}}}},96210:(e,n,t)=>{"use strict";t.d(n,{w:()=>o,f:()=>l});var r=t(67294),o=r.createContext({isWorkingPreview:!1}),l=function(){return r.useContext(o)}},72214:(e,n,t)=>{"use strict";t.d(n,{hl:()=>m,qQ:()=>g,EV:()=>h,w7:()=>f,u6:()=>v});var r=t(28655),o=t.n(r),l=t(71439),i=t(14391),a=t(96879),u=t(27952);function c(){var e=o()(["\n fragment getNavItemHref_publisher on Publisher {\n id\n ...publisherUrl_publisher\n }\n ","\n"]);return c=function(){return e},e}function s(){var e=o()(["\n fragment getNavItemHref_headerNavigationItem on HeaderNavigationItem {\n href\n tagSlugs\n type\n }\n"]);return s=function(){return e},e}var d,m=function(e,n,t){var r,o;switch(n.type){case i.Me.NAV_TYPE_LINK:return n.href||"#";case i.Me.NAV_TYPE_TAG:return(0,a.Rk)((0,u.Wh)(e,null!==(r=null===(o=n.tagSlugs)||void 0===o?void 0:o[0])&&void 0!==r?r:"",t),{fromNav:"true"})}return"#"},g=(0,l.Ps)(s()),h=(0,l.Ps)(c(),u.uI);!function(e){e.MissingName="Please enter a section name",e.MissingTag="Please add a tag",e.MissingLink="Please enter a link",e.MissingNameAndTag="Please enter a section name and a tag",e.MissingNameAndLink="Please enter a section name and a link"}(d||(d={}));var f=function(e){var n;switch(e.type){case i.Me.NAV_TYPE_TAG:if(null===(n=e.tagSlugs)||void 0===n||!n.length)return e.name?d.MissingTag:d.MissingNameAndTag;break;case i.Me.NAV_TYPE_LINK:if(null==e||!e.href)return e.name?d.MissingLink:d.MissingNameAndLink}return e.name?null:d.MissingName},p=function(e){return!f(e)},v=function(e){return 0===e.length||(null==e?void 0:e.every(p))}},68421:(e,n,t)=>{"use strict";t.d(n,{o:()=>C});var r=t(67154),o=t.n(r),l=t(63038),i=t.n(l),a=t(6479),u=t.n(a),c=t(28655),s=t.n(c),d=t(71439),m=t(46829),g=t(67294),h=t(96210),f=t(9785),p=t(22091),v=t(82318),b=t(80362),E=t(64504),S=t(24438);function _(){var e=s()(["\n mutation DismissFlagMutation($userId: ID!, $flag: UserDismissableFlags!) {\n userDismissFlag(userId: $userId, flag: $flag)\n }\n"]);return _=function(){return e},e}var x=(0,d.Ps)(_()),y=function(e){var n=e.children,t=e.flag,r=e.text,l=e.viewer,a=e.padding,c=void 0===a?20:a,s=u()(e,["children","flag","text","viewer","padding"]),d=g.useState(!1),h=i()(d,2),f=h[0],_=h[1],y=(0,m.useMutation)(x,{variables:{userId:l.id,flag:t}}),C=i()(y,1)[0],w=g.useCallback((function(){_(!1),C()}),[f]);return g.useEffect((function(){return _(!0)}),[]),g.createElement(b.Z,o()({disablePortalOverlay:!0,hide:w,isVisible:f,popoverRenderFn:function(){return g.createElement(p.xu,{minWidth:"200px",padding:(0,S.a)(c)},g.createElement(E.F,{scale:"S"},r),g.createElement(p.xu,{marginTop:"20px"},g.createElement(E.F,{scale:"S"},g.createElement(v.Z,{linkStyle:"OBVIOUS",onClick:function(){return w()}},"Got it"))))}},s),n)},C=function(e){var n=e.children,t=e.flag,r=e.isVisible,l=void 0===r||r,i=u()(e,["children","flag","isVisible"]),a=(0,h.f)().isWorkingPreview,c=(0,f.YC)().value;return a||null!=c&&c.dismissableFlags.includes(t)||!c||!l?n:g.createElement(y,o()({flag:t,viewer:c},i),n)}}}]);
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/7012.f1ee6871.chunk.js.map